@elyx-code/project-logic-tree 0.0.6206 → 0.0.6207

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/dist/index.js +1023 -1010
  2. package/dist/index.umd.cjs +27 -27
  3. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- (function(h,n){typeof exports=="object"&&typeof module<"u"?n(exports):typeof define=="function"&&define.amd?define(["exports"],n):(h=typeof globalThis<"u"?globalThis:h||self,n(h["@elyx-code/project-logic-tree"]={}))})(this,function(h){"use strict";var VW=Object.defineProperty;var BW=(h,n,z)=>n in h?VW(h,n,{enumerable:!0,configurable:!0,writable:!0,value:z}):h[n]=z;var f=(h,n,z)=>(BW(h,typeof n!="symbol"?n+"":n,z),z);var n=(r=>(r.DefinitionEntity="definition-entity",r.BuiltInBaseEntity="built-in-base-entity",r.Project="project",r.InstalledProject="installed-project",r.GlobalEvent="global-event",r.DataType="data-type",r.FunctionCall="function-call",r.FunctionDeclaration="function-declaration",r.ActionDescriptor="action-descriptor",r.ValueDescriptor="value-descriptor",r.ArgumentDeclaration="argument-declaration",r.InputMap="input-map",r.ReturnStatement="return-statement",r.BreakStatement="break-statement",r.ContinueStatement="continue-statement",r.ReturnDeclaration="return-declaration",r.OutputMap="output-map",r.PrimitiveEntity="primitive-entity",r.LiteralValue="literal-value",r.Property="property",r.Operation="operation",r.Condition="condition",r.VariableDeclaration="variable-declaration",r.VariableInstance="variable-instance",r.Search="search",r.Loop="loop",r.InternalCall="internal-call",r.GenericReference="generic-reference",r))(n||{}),z=(r=>(r.HTTP_ENDPOINT="BUILT_IN_HTTP_ENDPOINT_ENTITY",r.RELATIONAL_DATABASE="BUILT_IN_RELATIONAL_DATABASE_ENTITY",r.PERSISTED_ENTITY="BUILT_IN_PERSISTED_ENTITY_ENTITY",r.CRON_JOB="BUILT_IN_CRON_JOB_ENTITY",r.EXECUTION="BUILT_IN_EXECUTION_ENTITY",r.KEY_VALUE_PARAM="BUILT_IN_KEY_VALUE_PARAM_ENTITY",r))(z||{}),vt=(r=>(r.CurrentDateAndTime="current-date-and-time",r.Unique="unique",r.Random="random",r))(vt||{}),L=(r=>(r.EntityTemplate="entity-template",r.ActionDescriptor="action-descriptor",r.String="string",r.Number="number",r.Boolean="boolean",r.Null="null",r.Enum="enum",r.KeyValue="key-value",r.Date="date",r.UUID="uuid",r.File="file",r.Untyped="untyped",r))(L||{}),Qe=(r=>(r.Addition="addition",r.Subtraction="subtraction",r.Multiplication="multiplication",r.Division="division",r.Remainder="remainder",r.Exponentiation="exponentiation",r))(Qe||{}),Ee=(r=>(r.Join="string-join",r.Split="string-split",r.DeleteLast="string-delete-last",r.DeleteFirst="string-delete-first",r.DeleteIndex="string-delete-index",r.AddIndex="string-add-index",r.ReplaceFirst="string-replace-first",r.ReplaceLast="string-replace-last",r.ReplaceIndex="string-replace-index",r.ReplaceSingleMatch="string-replace-single-match",r.ReplaceAllMatches="string-replace-all-matches",r.GetIndex="string-get-index",r.GetFirst="string-get-first",r.GetLast="string-get-last",r.Append="string-append",r.Prepend="string-prepend",r))(Ee||{}),he=(r=>(r.Join="list-join",r.Split="list-split",r.DeleteLast="list-delete-last",r.DeleteFirst="list-delete-first",r.DeleteIndex="list-delete-index",r.AddIndex="list-add-index",r.ReplaceFirst="list-replace-first",r.ReplaceLast="list-replace-last",r.ReplaceIndex="list-replace-index",r.ReplaceSingleMatch="list-replace-single-match",r.ReplaceAllMatches="list-replace-all-matches",r.GetIndex="list-get-index",r.GetFirst="list-get-first",r.GetLast="list-get-last",r.Append="list-append",r.Prepend="list-prepend",r))(he||{}),Ke=(r=>(r.Parallel="parallel",r.Sequential="sequential",r.Wait="wait",r))(Ke||{}),Xe=(r=>(r.CreateNewInstance="create-new-instance",r.Validate="validate",r))(Xe||{}),_t=(r=>(r.HttpRequest="base-http-request",r))(_t||{}),yt=(r=>(r.Equal="equal",r.NotEqual="not-equal",r.And="and",r.Or="or",r.LessThan="less-than",r.MoreThan="more-than",r.LessThanOrEqual="less-than-or-equal",r.MoreThanOrEqual="more-than-or-equal",r))(yt||{}),vi=(r=>(r.Empty="empty",r.NotEmpty="not-empty",r))(vi||{}),Q=(r=>(r.ManualFlow="manual-flow-loop",r.Counted="counted-loop",r.List="list-loop",r.ObjectKeys="object-keys-loop",r.ObjectValues="object-values-loop",r.String="string-loop",r))(Q||{}),N=(r=>(r.FixedArguments="fixed-arguments",r.FixedReturns="fixed-returns",r.ReturnedError="returned-error",r.OngoingProcessExecution="ongoing-process-execution",r.DynamicArgument="dynamic-argument-types",r.DynamicReturn="dynamic-return-types",r))(N||{}),Dt=(r=>(r.OrDataTypeGroup="or-data-type-group",r.AndDataTypeGroup="and-data-type-group",r))(Dt||{}),Qi=(r=>(r.PROJECT_PUBLICATION_COMPLETED="GLOBAL_EVENT_PROJECT_PUBLICATION_COMPLETED",r))(Qi||{}),di=(r=>(r.DeletePersistedEntity="base-delete-persisted-entity",r.SoftDeletePersistedEntity="base-soft-delete-persisted-entity",r.AbortExecution="base-abort-execution",r))(di||{}),$n=(r=>(r.Error="error",r.Task="task",r.Return="return",r))($n||{});const Ir=[n.VariableDeclaration,n.VariableInstance,n.InputMap,n.ReturnDeclaration],Tt=[n.VariableDeclaration,n.VariableInstance,n.ArgumentDeclaration,n.OutputMap],sf=[...Ir,...Tt],et=[n.VariableDeclaration,n.VariableInstance],fw=[n.FunctionDeclaration,n.Condition,n.Loop,n.Operation,n.FunctionCall,n.Search,n.InternalCall,n.GlobalEvent,n.DefinitionEntity,n.ReturnStatement,n.BreakStatement,n.ContinueStatement,n.VariableDeclaration,n.VariableInstance,n.LiteralValue,n.ActionDescriptor,n.ValueDescriptor,n.Property,n.DataType,n.InstalledProject,n.ArgumentDeclaration,n.InputMap,n.OutputMap,n.ReturnDeclaration],yw=[n.FunctionDeclaration,n.Property,n.ArgumentDeclaration,n.ReturnDeclaration],af=[n.FunctionCall,n.VariableInstance,n.InputMap,n.OutputMap,n.InternalCall],hw=[...af,n.Condition,n.Loop,n.Operation,n.Condition],Gn=[n.GlobalEvent],dd=[n.Operation,n.FunctionCall,n.Search,n.VariableDeclaration,n.VariableInstance,n.Loop],of=[...dd,n.InternalCall],ka=[...dd,n.Condition],ot=[...ka,n.InternalCall],lt=[n.FunctionDeclaration,...Gn],Mi=[...ot,n.ReturnStatement,n.BreakStatement,n.ContinueStatement],ud=[...ka,n.ReturnStatement,n.BreakStatement,n.ContinueStatement],Ni=[...ot,...lt],lf=[...ka,...lt],mw=[...Mi,...lt],vw=[...ud,...lt],dt=[...lt,n.Loop],nt=[n.ReturnStatement,n.BreakStatement,n.ContinueStatement],Tw=[n.DefinitionEntity,n.BuiltInBaseEntity,n.Project,n.InstalledProject,n.GlobalEvent,n.DataType,n.FunctionCall,n.FunctionDeclaration,n.ActionDescriptor,n.ValueDescriptor,n.ArgumentDeclaration,n.InputMap,n.ReturnStatement,n.BreakStatement,n.ContinueStatement,n.ReturnDeclaration,n.OutputMap,n.PrimitiveEntity,n.LiteralValue,n.Property,n.Operation,n.Condition,n.VariableDeclaration,n.VariableInstance,n.Search,n.Loop,n.InternalCall],Sa=[n.DefinitionEntity,n.GlobalEvent,n.FunctionDeclaration,n.FunctionCall,n.VariableDeclaration,n.VariableInstance,n.Operation,n.Condition,n.ReturnStatement,n.BreakStatement,n.ContinueStatement,n.InstalledProject,n.Loop,n.Search],df=[n.DefinitionEntity,n.FunctionDeclaration,n.ArgumentDeclaration,n.ReturnDeclaration,n.Property,n.VariableDeclaration,n.Search,n.Project,n.InstalledProject,n.ActionDescriptor,n.ValueDescriptor],Ti=[n.BuiltInBaseEntity,n.PrimitiveEntity],uf=[n.DefinitionEntity,n.FunctionDeclaration,n.ArgumentDeclaration,n.ReturnDeclaration,n.Property,n.VariableDeclaration,n.GlobalEvent,n.Search,n.Project,n.InstalledProject,n.ActionDescriptor,n.ValueDescriptor,n.InputMap,n.OutputMap,n.FunctionCall,n.Operation,n.Condition,n.ReturnStatement,n.BreakStatement,n.ContinueStatement,n.VariableInstance,n.LiteralValue,n.InternalCall];var Za=(r=>(r.ActionOngoingProcessOutputValue="action-ongoing-process-output-value-descriptor-id",r))(Za||{});const k={[n.PrimitiveEntity]:{[L.String]:{id:"8b5fbe15-4c2b-48c0-9fd8-e5efbe3978dc",properties:{}},[L.Boolean]:{id:"f596545d-1565-4faa-9969-d95fa5edfea4",properties:{}},[L.Number]:{id:"ecb84c29-6153-4b82-86a5-fce2b5f92002",properties:{}},[L.KeyValue]:{id:"b6f3c3c4-9c3d-4f9d-9e9e-1c0f6a3c8c6b",properties:{}},[L.Enum]:{id:"9542b8b4-2642-4eee-9db9-def7963a17a0",properties:{options:{id:"00ccfcae-2104-45ef-bf6c-50ddccd74286",dataType:{id:"7dd59b70-f97b-43a7-a051-fde1842ce5d6",defaultValue:{id:"enum-options-property-data-type-default-value-id"}}}}},[L.UUID]:{id:"4a6234aa-c0f6-4731-b4dd-750388029226",properties:{}},[L.Date]:{id:"dc58f38b-d574-4956-aac6-32ce9529b937",properties:{}},[L.Null]:{id:"7d698f34-5a89-4aab-846b-07ef3843b8c4",properties:{}},[L.Untyped]:{id:"4044a018-818e-49d7-bf9a-c3dd1fff2102",properties:{}}},[n.ValueDescriptor]:{"action-ongoing-process-output-value-descriptor-id":{id:"action-ongoing-process-output-value-descriptor-id",dataType:{id:"process-output-value-data-type-id"}}},[n.BuiltInBaseEntity]:{[z.KEY_VALUE_PARAM]:{id:z.KEY_VALUE_PARAM},[z.HTTP_ENDPOINT]:{id:z.HTTP_ENDPOINT,properties:{method:{id:"http-endpoint-built-in-method-property-id"},path:{id:"http-endpoint-built-in-path-property-id"},cors:{id:"http-endpoint-built-in-cors-property-id"}},methods:{handler:{id:"http-endpoint-built-in-handler-method-id"}}},[z.PERSISTED_ENTITY]:{id:z.PERSISTED_ENTITY,properties:{database:{id:"persisted-built-in-base-entity-database-property-id"},primaryKey:{id:"persisted-built-in-base-entity-primary-key-property-id"}}},[z.RELATIONAL_DATABASE]:{id:z.RELATIONAL_DATABASE,properties:{identifier:{id:"relational-database-built-in-base-entity-identifier-property-id"},username:{id:"relational-database-built-in-base-entity-username-property-id"},password:{id:"relational-database-built-in-base-entity-password-property-id"},minSize:{id:"relational-database-built-in-base-entity-min-size-property-id"},default:{id:"relational-database-built-in-base-entity-default-property-id"},autoscaling:{id:"relational-database-built-in-base-entity-autoscaling-property-id"}}},[z.CRON_JOB]:{id:z.CRON_JOB,properties:{expression:{id:"cron-job-built-in-base-entity-expression-property-id"}}}},[n.Operation]:{[Ee.Join]:{id:Ee.Join,inputs:{separator:{id:"join-strings-separator-input-id"},first:{id:"join-strings-first-string-input-id"},second:{id:"join-strings-second-string-input-id"},dynamicString:{id:"join-strings-dynamic-string-input-id"}},outputs:{result:{id:"join-strings-result-string-return-delaration-id"},error:{id:"join-strings-error-return-delaration-id"}}},[Ee.Split]:{id:Ee.Split,inputs:{stringValue:{id:"split-string-string-input-id"},indexLocation:{id:"split-string-index-input-id"}},outputs:{firstPartResult:{id:"split-string-first-part-result-string-return-delaration-id"},secondPartResult:{id:"split-string-second-part-result-string-return-delaration-id"},error:{id:"split-string-error-return-delaration-id"}}},[Qe.Addition]:{id:Qe.Addition,inputs:{firstSummand:{id:"number-addition-first-summand-number-input-id"},secondSummand:{id:"number-addition-second-summand-number-input-id"},dynamicSummand:{id:"number-addition-dynamic-summand-number-input-id"}},outputs:{result:{id:"number-addition-result-number-return-delaration-id",dataType:{id:"number-addition-result-number-data-type-id"}},error:{id:"number-addition-error-return-delaration-id"}}},[Qe.Subtraction]:{id:Qe.Subtraction,inputs:{minuend:{id:"number-subtraction-minuend-number-input-id"},subtrahend:{id:"number-subtraction-subtrahend-number-input-id"},dynamicSubtrahend:{id:"number-subtraction-dynamic-subtrahend-number-input-id"}},outputs:{result:{id:"number-subtraction-result-number-return-delaration-id",dataType:{id:"number-subtraction-result-number-data-type-id"}},error:{id:"number-subtraction-error-return-delaration-id"}}},[_t.HttpRequest]:{id:_t.HttpRequest,inputs:{url:{id:"http-request-url-input-id"},query:{id:"http-request-query-input-id"},method:{id:"http-request-method-input-id"},headers:{id:"http-request-headers-input-id"},body:{id:"http-request-body-string-input-id"}},outputs:{code:{id:"http-response-code-return-delaration-id"},body:{id:"http-response-body-return-delaration-id"},headers:{id:"http-response-headers-return-delaration-id"},error:{id:"http-request-error-return-delaration-id"}}},[Xe.Validate]:{id:Xe.Validate,inputs:{entityToMatch:{id:"validate-data-entity-to-match-input-id"},dataToValidate:{id:"validate-data-data-to-validate-input-id"}},outputs:{outputEntity:{id:"validate-data-output-entity-return-delaration-id"},error:{id:"validate-data-error-return-delaration-id"}}},[Ke.Parallel]:{id:Ke.Parallel,inputs:{listOfActions:{id:"parallel-execution-list-of-actions-input-id"}},outputs:{results:{id:"parallel-execution-results-output-id",dataType:{id:"parallel-execution-results-data-type-id"}},error:{id:"parallel-execution-error-output-id"}}}},[n.Loop]:{[Q.List]:{id:Q.List,inputs:{list:{id:"iterate-over-list-loop-list-input-id"}},outputs:{results:{id:"iterate-over-list-loop-output-id"}},body:{id:"iterate-over-list-loop-body-descriptor-id",inputs:{iterationNumber:{id:"iterate-over-list-loop-iteration-number-input-id"},currentValue:{id:"iterate-over-list-loop-current-value-input-id"}}}},[Q.String]:{id:Q.String,inputs:{string:{id:"iterate-over-string-loop-string-input-id"}},outputs:{results:{id:"iterate-over-string-loop-output-id"}},body:{id:"iterate-over-string-loop-body-descriptor-id",inputs:{iterationNumber:{id:"iterate-over-string-loop-iteration-number-input-id"},currentValue:{id:"iterate-over-string-loop-current-value-input-id"}}}},[Q.ObjectKeys]:{id:Q.ObjectKeys,inputs:{object:{id:"iterate-over-object-keys-loop-object-input-id"}},outputs:{results:{id:"iterate-over-object-keys-loop-output-id"}},body:{id:"iterate-over-object-keys-loop-body-descriptor-id",inputs:{iterationNumber:{id:"iterate-over-object-keys-loop-iteration-number-input-id"},currentValue:{id:"iterate-over-object-keys-loop-current-value-input-id"}}}},[Q.ObjectValues]:{id:Q.ObjectValues,inputs:{object:{id:"iterate-over-object-values-loop-object-input-id"}},outputs:{results:{id:"iterate-over-object-values-loop-output-id"}},body:{id:"iterate-over-object-values-loop-body-descriptor-id",inputs:{iterationNumber:{id:"iterate-over-object-values-loop-iteration-number-input-id"},currentValue:{id:"iterate-over-object-values-loop-current-value-input-id"}}}},[Q.ManualFlow]:{id:Q.ManualFlow,inputs:{},outputs:{results:{id:"manual-flow-loop-output-id"}},body:{id:"manual-flow-loop-body-descriptor-id",inputs:{iterationNumber:{id:"iterate-over-manual-flow-loop-iteration-number-input-id"}}}},[Q.Counted]:{id:Q.Counted,inputs:{number:{id:"counted-loop-number-input-id"}},outputs:{results:{id:"counted-loop-output-id"}},body:{id:"counted-loop-body-descriptor-id",inputs:{iterationNumber:{id:"counted-loop-iteration-number-input-id"}}}}},[n.Condition]:{[yt.MoreThanOrEqual]:{id:yt.MoreThanOrEqual,inputs:{leftHand:{id:"condition-more-than-or-equal-left-hand-input-id",dataType:{id:"condition-more-than-or-equal-left-hand-data-type-id"}},rightHand:{id:"condition-more-than-or-equal-right-hand-input-id",dataType:{id:"condition-more-than-or-equal-right-hand-data-type-id"}}}},[vi.NotEmpty]:{id:vi.NotEmpty,inputs:{leftHand:{id:"condition-not-empty-input-id"}}}},[n.GlobalEvent]:{[Qi.PROJECT_PUBLICATION_COMPLETED]:{id:Qi.PROJECT_PUBLICATION_COMPLETED}}},ui=k[n.PrimitiveEntity],se={type:n.PrimitiveEntity,id:ui.string.id,description:"A string of characters.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.String,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[],methods:[]},er={type:n.PrimitiveEntity,id:ui.boolean.id,description:"A 'true' or 'false' value.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.Boolean,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[],methods:[]},ve={type:n.PrimitiveEntity,id:ui.number.id,description:"A number value.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.Number,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[],methods:[]},pd={type:n.PrimitiveEntity,id:ui.null.id,description:"An explicitly empty value.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.Null,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[],methods:[]},Ot={type:n.PrimitiveEntity,id:ui.untyped.id,description:"Data of any type that isn't known in advance.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.Untyped,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[],methods:[]},pf={id:"c2f52f01-8f2e-490e-8083-72289c8189c1",type:n.GenericReference,entityId:ui.enum.properties.options.id,version:"1",entityType:n.Property},cf={id:"4e803941-2e6a-4227-b803-b8877c0d7fee",type:n.GenericReference,entityId:"00ccfcae-2104-45ef-bf6c-50ddccd74286",version:"1",entityType:n.Property},ff={like:!1,inferred:!1,id:ui.enum.properties.options.dataType.id,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!0,entity:se,asType:!1,parent:cf},yf={id:"a2983c4c-0286-4ef1-8b5c-5a52904d3200",type:n.GenericReference,entityId:"9542b8b4-2642-4eee-9db9-def7963a17a0",version:"1",entityType:n.PrimitiveEntity},hf={constant:!1,hidden:!1,required:!0,id:ui.enum.properties.options.id,name:"Options",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,implements:null,static:!1,index:0,defaultValue:{id:ui.enum.properties.options.dataType.defaultValue.id,type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.KeyValue,autogeneration:null,value:[],valueAsTypeList:null,valueAsTypeSingle:null,parent:pf},dataType:ff,description:"Options for the enum. Each option is a text value.",parent:yf},tr={type:n.PrimitiveEntity,id:ui.enum.id,description:"A set of text options to choose from.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.Enum,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[hf],methods:[]},Li={type:n.PrimitiveEntity,id:ui.date.id,description:"A date and time value.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.Date,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[],methods:[]},ir={type:n.PrimitiveEntity,id:ui.uuid.id,description:"A unique identifier in the form of a 36-character string.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.UUID,static:!1,abstract:!1,abstractMethods:[],extends:[se],properties:[],methods:[]},Fn={type:n.PrimitiveEntity,id:ui[L.KeyValue].id,description:"A complex data structure with any combination of properties with names and values.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.KeyValue,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[],methods:[]},mf=[se,er,ve,pd,Ot,tr,Li,ir,Fn],Ui=k[n.Operation][Qe.Addition],vf={type:n.GenericReference,id:"3bd4aeb2-e3b7-4120-b289-011ebb03dba5",entityId:Ui.inputs.firstSummand.id,version:"1",entityType:n.ValueDescriptor},Tf={like:!1,inferred:!1,id:"number-addition-first-number-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,isList:!1,asType:!1,parent:vf},If={type:n.GenericReference,id:"9f486db2-a983-4293-9eef-81d4fc8d2d3e",entityId:Ui.inputs.secondSummand.id,version:"1",entityType:n.ValueDescriptor},Ef={like:!1,inferred:!1,id:"1d4abe83-3e87-4f74-99be-c1fd8c2f8d2d",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,asType:!1,isList:!1,parent:If},Af={type:n.GenericReference,id:"da5e9fe9-f18a-49e3-98e5-c1bf7b9b3153",entityId:Ui.outputs.result.id,version:"1",entityType:n.ValueDescriptor},bf={like:!1,inferred:!1,id:Ui.outputs.result.dataType.id,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,asType:!1,isList:!1,parent:Af},Rf={type:n.GenericReference,id:"a6c14305-d4f7-43ae-9d5e-b7dbacdc830a",entityId:Qe.Addition,version:"1",entityType:n.ActionDescriptor},cd={id:Ui.inputs.firstSummand.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Summand",description:"The first number to add",defaultValue:null,dataType:Tf,required:!0,parentRelationType:N.FixedArguments,index:0,parent:Rf},Df={type:n.GenericReference,id:"c5015128-4a65-462c-9da0-1c86e83ef897",entityId:Qe.Addition,version:"1",entityType:n.ActionDescriptor},fd={id:Ui.inputs.secondSummand.id,type:n.ValueDescriptor,description:"The second number to add",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Summand",defaultValue:null,dataType:Ef,required:!0,parentRelationType:N.FixedArguments,index:1,parent:Df},yd={type:n.GenericReference,id:"caac2bc7-c23c-4f01-9581-a515c2e4637f",entityId:Qe.Addition,version:"1",entityType:n.ActionDescriptor},hd={parentRelationType:N.FixedReturns,id:Ui.outputs.result.id,type:n.ValueDescriptor,description:"The result number of the addition",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Result",defaultValue:null,dataType:bf,required:!0,index:0,parent:yd},Of={type:n.GenericReference,id:"number-addition-operation-error-parent-ref",entityId:Qe.Addition,version:"1",entityType:n.ActionDescriptor},Pf={parentRelationType:N.FixedReturns,id:Ui.outputs.error.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Error",description:"An error that occurred during the operation.",defaultValue:null,dataType:null,required:!0,index:1,parent:Of},wf={type:n.GenericReference,id:"number-addition-operation-dynamic-summand-argument-type-parent-ref",entityId:Ui.inputs.dynamicSummand.id,version:"1",entityType:n.ValueDescriptor},Cf={like:!1,inferred:!1,id:"number-addition-operation-dynamic-summand-argument-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,asType:!1,isList:!1,parent:wf},Vf={parentRelationType:N.DynamicArgument,id:Ui.inputs.dynamicSummand.id,type:n.ValueDescriptor,description:"A number to add",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Summand",defaultValue:null,dataType:Cf,required:!0,index:2,parent:yd},qa={id:Qe.Addition,type:n.ActionDescriptor,description:"Sum numbers",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:Qe.Addition,inputs:[cd,fd,Vf],error:Pf,outputs:[hd],parent:null},gi=k[n.Operation][Qe.Subtraction],Bf={type:n.GenericReference,id:"3bd4aeb2-e3b7-4120-b289-011ebb03dba5",entityId:gi.inputs.minuend.id,version:"1",entityType:n.ValueDescriptor},_f={like:!1,inferred:!1,id:"number-subtraction-first-number-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,isList:!1,asType:!1,parent:Bf},Mf={type:n.GenericReference,id:"9f486db2-a983-4293-9eef-81d4fc8d2d3e",entityId:gi.inputs.subtrahend.id,version:"1",entityType:n.ValueDescriptor},Nf={like:!1,inferred:!1,id:"1d4abe83-3e87-4f74-99be-c1fd8c2f8d2d",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,asType:!1,isList:!1,parent:Mf},Lf={type:n.GenericReference,id:"da5e9fe9-f18a-49e3-98e5-c1bf7b9b3153",entityId:gi.outputs.result.id,version:"1",entityType:n.ValueDescriptor},Uf={like:!1,inferred:!1,id:gi.outputs.result.dataType.id,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,asType:!1,isList:!1,parent:Lf},md={type:n.GenericReference,id:"a6c14305-d4f7-43ae-9d5e-b7dbacdc830a",entityId:Qe.Subtraction,version:"1",entityType:n.ActionDescriptor},gf={id:gi.inputs.minuend.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Minuend",description:"Base number to substract from",defaultValue:null,dataType:_f,required:!0,parentRelationType:N.FixedArguments,index:0,parent:md},jf={type:n.GenericReference,id:"c5015128-4a65-462c-9da0-1c86e83ef897",entityId:Qe.Subtraction,version:"1",entityType:n.ActionDescriptor},$f={id:gi.inputs.subtrahend.id,type:n.ValueDescriptor,description:"The second number to substract",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Subtrahend",defaultValue:null,dataType:Nf,required:!0,parentRelationType:N.FixedArguments,index:1,parent:jf},Gf={type:n.GenericReference,id:"caac2bc7-c23c-4f01-9581-a515c2e4637f",entityId:Qe.Subtraction,version:"1",entityType:n.ActionDescriptor},Ff={parentRelationType:N.FixedReturns,id:gi.outputs.result.id,type:n.ValueDescriptor,description:"The result number of the subtraction",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Result",defaultValue:null,dataType:Uf,required:!0,index:0,parent:Gf},xf={type:n.GenericReference,id:"number-subtraction-operation-error-parent-ref",entityId:Qe.Subtraction,version:"1",entityType:n.ActionDescriptor},kf={parentRelationType:N.FixedReturns,id:gi.outputs.error.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Error",description:"An error that occurred during the operation.",defaultValue:null,dataType:null,required:!0,index:1,parent:xf},Sf={type:n.GenericReference,id:"number-subtraction-operation-dynamic-subtrahend-argument-type-parent-ref",entityId:gi.inputs.dynamicSubtrahend.id,version:"1",entityType:n.ValueDescriptor},Zf={like:!1,inferred:!1,id:"number-subtraction-operation-dynamic-subtrahend-argument-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,asType:!1,isList:!1,parent:Sf},qf={id:gi.inputs.dynamicSubtrahend.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Subtrahend",description:"A number to substract",defaultValue:null,dataType:Zf,required:!0,parentRelationType:N.DynamicArgument,index:2,parent:md},vd={id:Qe.Subtraction,type:n.ActionDescriptor,description:"Substract numbers",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:Qe.Subtraction,inputs:[gf,$f,qf],error:kf,outputs:[Ff],parent:null},Jf={[Qe.Addition]:qa,[Qe.Subtraction]:vd},Ii=k[n.Operation][Ee.Join],Wf={type:n.GenericReference,id:"join-strings-first-string-argument-declaration",entityId:Ii.inputs.first.id,version:"1",entityType:n.ValueDescriptor},zf={like:!1,inferred:!1,id:"join-strings-first-string-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:se,asType:!1,isList:!1,parent:Wf},Yf={type:n.GenericReference,id:"join-strings-second-string-argument-declaration",entityId:Ii.inputs.second.id,version:"1",entityType:n.ValueDescriptor},Hf={like:!1,inferred:!1,id:"join-strings-second-string-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:se,asType:!1,isList:!1,parent:Yf},Kf={type:n.GenericReference,id:"join-strings-result-string-return-delaration",entityId:Ii.outputs.result.id,version:"1",entityType:n.ValueDescriptor},Xf={like:!1,inferred:!1,id:"join-strings-result-string-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:se,asType:!1,isList:!1,parent:Kf},Qf={type:n.GenericReference,id:"join-strings-operation-first-string-argument-parent-ref",entityId:Ee.Join,version:"1",entityType:n.ActionDescriptor},Ja={id:Ii.inputs.first.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Text",description:"The first text to join to the second one. Its value will be at the beginning of the resulting text.",defaultValue:null,dataType:zf,parentRelationType:N.FixedArguments,required:!0,index:1,parent:Qf},ey={type:n.GenericReference,id:"join-strings-first-string-argument-declaration",entityId:Ii.inputs.first.id,version:"1",entityType:n.ValueDescriptor},ty={type:n.GenericReference,id:"join-strings-separator-string-data-type-default-value-parent-ref",entityId:Ii.inputs.separator.id,version:"1",entityType:n.ValueDescriptor},iy={type:n.LiteralValue,id:"join-strings-separator-string-data-type-default-value-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.String,value:"",valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null,parent:ty},ry={like:!1,inferred:!1,id:"join-strings-separator-string-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:se,asType:!1,isList:!1,parent:ey},ny={type:n.GenericReference,id:"join-strings-operation-separator-string-argument-parent-ref",entityId:Ee.Join,version:"1",entityType:n.ActionDescriptor},sy={id:Ii.inputs.separator.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Separator",description:"The text value that will be inserted between each of the values that are joined.",defaultValue:iy,dataType:ry,parentRelationType:N.FixedArguments,required:!1,index:0,parent:ny},ay={type:n.GenericReference,id:"join-strings-operation-second-string-argument-parent-ref",entityId:Ee.Join,version:"1",entityType:n.ActionDescriptor},Wa={id:Ii.inputs.second.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Text",description:"The second text to join to the first one. Its value will be at the end of the resulting text.",defaultValue:null,dataType:Hf,parentRelationType:N.FixedArguments,required:!0,index:2,parent:ay},oy={type:n.GenericReference,id:"join-strings-operation-result-string-return-parent-ref",entityId:Ee.Join,version:"1",entityType:n.ActionDescriptor},Cs={parentRelationType:N.FixedReturns,id:Ii.outputs.result.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Result",description:"The resulting text value.",defaultValue:null,dataType:Xf,required:!0,index:0,parent:oy},ly={type:n.GenericReference,id:"join-strings-operation-error-parent-ref",entityId:Ee.Join,version:"1",entityType:n.ActionDescriptor},dy={parentRelationType:N.FixedReturns,id:Ii.outputs.error.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Error",description:"An error that occurred during the operation.",defaultValue:null,dataType:null,required:!0,index:1,parent:ly},uy={type:n.GenericReference,id:"join-strings-dynamic-string-argument-declaration",entityId:Ii.inputs.dynamicString.id,version:"1",entityType:n.ValueDescriptor},py={like:!1,inferred:!1,id:"join-strings-dynamic-string-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:se,asType:!1,isList:!1,parent:uy},cy={type:n.GenericReference,id:"join-strings-operation-dynamic-string-argument-parent-ref",entityId:Ee.Join,version:"1",entityType:n.ActionDescriptor},fy={id:Ii.inputs.dynamicString.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Text",description:"Text to join to the previous ones. Its value will be at the end of the resulting text.",defaultValue:null,dataType:py,parentRelationType:N.DynamicArgument,required:!0,index:3,parent:cy},Vs={id:Ee.Join,type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:Ee.Join,description:"Join text values together, to form a single resulting text value.",inputs:[sy,Ja,Wa,fy],outputs:[Cs],error:dy,parent:null},rr=k[n.Operation][Ee.Split],yy={type:n.GenericReference,id:"split-string-string-argument-declaration",entityId:rr.inputs.stringValue.id,version:"1",entityType:n.ValueDescriptor},hy={like:!1,inferred:!1,id:"split-string-string-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:se,asType:!1,isList:!1,parent:yy},my={type:n.GenericReference,id:"split-string-index-argument-declaration",entityId:rr.inputs.indexLocation.id,version:"1",entityType:n.ValueDescriptor},vy={like:!1,inferred:!1,id:"split-string-index-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,asType:!1,isList:!1,parent:my},Ty={type:n.GenericReference,id:"split-string-first-part-result-string-return-delaration",entityId:rr.outputs.firstPartResult.id,version:"1",entityType:n.ValueDescriptor},Iy={like:!1,inferred:!1,id:"split-string-first-part-result-string-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:se,asType:!1,isList:!1,parent:Ty},Ey={type:n.GenericReference,id:"split-string-second-part-result-string-return-delaration",entityId:rr.outputs.secondPartResult.id,version:"1",entityType:n.ValueDescriptor},Ay={like:!1,inferred:!1,id:"split-string-second-part-result-string-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:se,asType:!1,isList:!1,parent:Ey},by={type:n.GenericReference,id:"split-string-operation-string-argument-parent-ref",entityId:Ee.Join,version:"1",entityType:n.ActionDescriptor},Ry={id:rr.inputs.stringValue.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Text value",description:"The text value that will be split into two at the given index location.",defaultValue:null,dataType:hy,parentRelationType:N.FixedArguments,required:!0,index:0,parent:by},Dy={type:n.GenericReference,id:"split-string-operation-index-argument-parent-ref",entityId:Ee.Join,version:"1",entityType:n.ActionDescriptor},Oy={id:rr.inputs.indexLocation.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Index location",description:"The index location where the text will be split into two. The text at this index will be the beginning of the second text.",defaultValue:null,dataType:vy,parentRelationType:N.FixedArguments,required:!0,index:1,parent:Dy},Py={type:n.GenericReference,id:"split-string-operation-second-part-result-string-return-parent-ref",entityId:Ee.Join,version:"1",entityType:n.ActionDescriptor},Iw={parentRelationType:N.FixedReturns,id:rr.outputs.secondPartResult.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Second part",description:"The secont part of the resulting text value.",defaultValue:null,dataType:Ay,required:!0,index:1,parent:Py},wy={type:n.GenericReference,id:"split-string-operation-first-part-result-string-return-parent-ref",entityId:Ee.Join,version:"1",entityType:n.ActionDescriptor},Cy={parentRelationType:N.FixedReturns,id:rr.outputs.firstPartResult.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"First part",description:"The first part of the resulting text value.",defaultValue:null,dataType:Iy,required:!0,index:0,parent:wy},Vy={type:n.GenericReference,id:"split-string-operation-error-parent-ref",entityId:Ee.Join,version:"1",entityType:n.ActionDescriptor},By={parentRelationType:N.FixedReturns,id:rr.outputs.error.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Error",description:"An error that occurred during the operation.",defaultValue:null,dataType:null,required:!0,index:1,parent:Vy},Td={id:Ee.Split,type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:Ee.Split,description:"Split a text into two, at the given index location.",inputs:[Ry,Oy],outputs:[Cy],error:By,parent:null},_y={[Ee.Join]:Vs,[Ee.Split]:Td};var My=(r=>(r.FirstInputList="join-list-first-list-argument-declaration",r.SecondInputList="join-list-second-list-argument-declaration",r))(My||{}),Ny=(r=>(r.ResultList="join-list-result-list-return-delaration",r.Error="join-list-error-return-delaration",r))(Ny||{});const Ly={type:n.GenericReference,id:"join-list-operation-first-list-argument-ref",entityId:"join-list-first-list-argument-declaration",version:"1",entityType:n.ValueDescriptor},Uy={like:!1,inferred:!1,id:"join-list-first-list-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,asType:!1,isList:!0,parent:Ly},gy={type:n.GenericReference,id:"join-list-operation-second-list-argument-ref",entityId:"join-list-second-list-argument-declaration",version:"1",entityType:n.ValueDescriptor},jy={like:!1,inferred:!1,id:"join-list-second-list-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,asType:!1,isList:!0,parent:gy},$y={type:n.GenericReference,id:"join-list-operation-result-list-return-ref",entityId:"join-list-result-list-return-delaration",version:"1",entityType:n.ValueDescriptor},Gy={like:!1,inferred:!1,id:"join-list-result-list-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:se,asType:!1,isList:!0,parent:$y},Fy={type:n.GenericReference,id:"join-list-operation-first-list-argument-parent-ref",entityId:he.Join,version:"1",entityType:n.ActionDescriptor},xy={id:"join-list-first-list-argument-declaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"First value",description:"The first list to join to the second one. Its values will be at the beginning of the resulting list.",defaultValue:null,dataType:Uy,parentRelationType:N.FixedArguments,required:!0,index:0,parent:Fy},ky={type:n.GenericReference,id:"join-list-operation-second-list-argument-parent-ref",entityId:he.Join,version:"1",entityType:n.ActionDescriptor},Sy={id:"join-list-second-list-argument-declaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Second value",description:"The second list to join to the first one. Its values will be at the end of the resulting list.",defaultValue:null,dataType:jy,parentRelationType:N.FixedArguments,required:!0,index:1,parent:ky},Zy={type:n.GenericReference,id:"join-list-operation-result-list-return-parent-ref",entityId:he.Join,version:"1",entityType:n.ActionDescriptor},qy={parentRelationType:N.FixedReturns,id:"join-list-result-list-return-delaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Result",description:"The resulting list value.",defaultValue:null,dataType:Gy,required:!0,index:0,parent:Zy},Jy={type:n.GenericReference,id:"join-list-operation-error-parent-ref",entityId:he.Join,version:"1",entityType:n.ActionDescriptor},Wy={parentRelationType:N.FixedReturns,id:"join-list-error-return-delaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Error",description:"An error that occurred during the operation.",defaultValue:null,dataType:null,required:!0,index:1,parent:Jy},Id={id:he.Join,type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:he.Join,description:"Join two lists together, to form a single resulting list value.",inputs:[xy,Sy],error:Wy,outputs:[qy],parent:null};var zy=(r=>(r.InputList="list-to-split-argument-declaration",r.SplitIndex="split-list-index-argument-declaration",r))(zy||{}),Yy=(r=>(r.FirstOutputList="split-list-first-output-list-return-delaration",r.SecondOutputList="split-list-second-output-list-return-delaration",r.Error="split-list-error-return-delaration",r))(Yy||{});const Hy={type:n.GenericReference,id:"split-list-operation-input-list-argument-ref",entityId:"list-to-split-argument-declaration",version:"1",entityType:n.ValueDescriptor},Ky={like:!1,inferred:!1,id:"split-list-operation-input-list-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:se,asType:!1,isList:!0,parent:Hy},Xy={type:n.GenericReference,id:"split-list-operation-split-index-argument-ref",entityId:"split-list-index-argument-declaration",version:"1",entityType:n.ValueDescriptor},Qy={like:!1,inferred:!1,id:"split-list-operation-split-index-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,asType:!1,isList:!1,parent:Xy},Ed={type:n.GenericReference,id:"split-list-operation-first-output-list-return-ref",entityId:"split-list-first-output-list-return-delaration",version:"1",entityType:n.ValueDescriptor},eh={like:!1,inferred:!1,id:"split-list-operation-first-output-list-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:se,asType:!1,isList:!0,parent:Ed},th={type:n.GenericReference,id:"split-list-operation-input-list-argument-parent-ref",entityId:he.Split,version:"1",entityType:n.ActionDescriptor},ih={id:"list-to-split-argument-declaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"List to split",description:"The list to split at the given index",defaultValue:null,dataType:Ky,parentRelationType:N.FixedArguments,required:!0,index:0,parent:th},rh={type:n.GenericReference,id:"split-list-operation-split-index-argument-parent-ref",entityId:he.Split,version:"1",entityType:n.ActionDescriptor},nh={id:"split-list-index-argument-declaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Split location",description:"The index at which to split the list. The value at this index will be the first value of the second list.",defaultValue:null,dataType:Qy,parentRelationType:N.FixedArguments,required:!0,index:1,parent:rh},sh={type:n.GenericReference,id:"split-list-operation-first-output-list-return-parent-ref",entityId:he.Split,version:"1",entityType:n.ActionDescriptor},ah={parentRelationType:N.FixedReturns,id:"split-list-first-output-list-return-delaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"First list",description:"The list of values up to the split index",defaultValue:null,dataType:eh,required:!0,index:0,parent:sh},oh={like:!1,inferred:!1,id:"split-list-operation-second-output-list-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:se,asType:!1,isList:!0,parent:Ed},lh={type:n.GenericReference,id:"split-list-operation-second-output-list-return-parent-ref",entityId:he.Split,version:"1",entityType:n.ActionDescriptor},dh={parentRelationType:N.FixedReturns,id:"split-list-second-output-list-return-delaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Second list",description:"The list of values up to the split index",defaultValue:null,dataType:oh,required:!0,index:0,parent:lh},uh={type:n.GenericReference,id:"split-list-operation-error-parent-ref",entityId:he.Split,version:"1",entityType:n.ActionDescriptor},ph={parentRelationType:N.FixedReturns,id:"split-list-error-return-delaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Error",description:"An error that occurred during the operation.",defaultValue:null,dataType:null,required:!0,index:1,parent:uh},Ad={id:he.Split,type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:he.Split,description:"Splits a given list at the given index, and returns two lists, one with the values up to the index, and the other with the values after the index",inputs:[ih,nh],outputs:[ah,dh],error:ph,parent:null};var ch=(r=>(r.InputList="get-last-in-list-input-list-argument-declaration",r))(ch||{}),fh=(r=>(r.OutputElement="get-last-in-list-output-element-return-delaration",r.Error="get-last-in-list-error-return-delaration",r))(fh||{});const yh={type:n.GenericReference,id:"get-last-in-list-operation-input-list-argument-ref",entityId:"get-last-in-list-input-list-argument-declaration",version:"1",entityType:n.ValueDescriptor},hh={like:!1,inferred:!1,id:"get-last-in-list-input-list-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,asType:!1,isList:!0,parent:yh},mh={type:n.GenericReference,id:"get-last-in-list-operation-output-element-return-ref",entityId:"get-last-in-list-output-element-return-delaration",version:"1",entityType:n.ValueDescriptor},vh={like:!1,inferred:!1,id:"get-last-in-list-output-element-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:se,asType:!1,isList:!0,parent:mh},Th={type:n.GenericReference,id:"get-last-in-list-operation-input-list-argument-parent-ref",entityId:he.GetLast,version:"1",entityType:n.ActionDescriptor},Ih={id:"get-last-in-list-input-list-argument-declaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"List",description:"The list to get the last element from.",defaultValue:null,dataType:hh,parentRelationType:N.FixedArguments,required:!0,index:0,parent:Th},Eh={type:n.GenericReference,id:"get-last-in-list-operation-output-element-return-parent-ref",entityId:he.GetLast,version:"1",entityType:n.ActionDescriptor},Ah={parentRelationType:N.FixedReturns,id:"get-last-in-list-output-element-return-delaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Last element",description:"The last element of the given list.",defaultValue:null,dataType:vh,required:!0,index:0,parent:Eh},bh={type:n.GenericReference,id:"get-last-in-list-operation-error-parent-ref",entityId:he.GetLast,version:"1",entityType:n.ActionDescriptor},Rh={parentRelationType:N.FixedReturns,id:"get-last-in-list-error-return-delaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Error",description:"An error that occurred during the operation.",defaultValue:null,dataType:null,required:!0,index:1,parent:bh},bd={id:he.GetLast,type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:he.GetLast,description:"Outputs the last element of a given list.",inputs:[Ih],outputs:[Ah],error:Rh,parent:null};var Dh=(r=>(r.List="append-to-list-lsit-argument-declaration",r.ElementToAppend="append-to-list-element-to-append-argument-declaration",r))(Dh||{}),Oh=(r=>(r.ResultList="append-to-list-result-list-return-delaration",r.Error="append-to-list-error-return-delaration",r))(Oh||{});const Ph={type:n.GenericReference,id:"append-to-list-operation-lsit-argument-ref",entityId:"append-to-list-lsit-argument-declaration",version:"1",entityType:n.ValueDescriptor},wh={like:!1,inferred:!1,id:"append-to-list-lsit-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,asType:!1,isList:!0,parent:Ph},Ch={type:n.GenericReference,id:"append-to-list-operation-second-list-argument-ref",entityId:"append-to-list-element-to-append-argument-declaration",version:"1",entityType:n.ValueDescriptor},Vh={like:!1,inferred:!1,id:"append-to-list-second-list-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,asType:!1,isList:!0,parent:Ch},Bh={type:n.GenericReference,id:"append-to-list-operation-result-list-return-ref",entityId:"append-to-list-result-list-return-delaration",version:"1",entityType:n.ValueDescriptor},_h={like:!1,inferred:!1,id:"append-to-list-result-list-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:se,asType:!1,isList:!0,parent:Bh},Mh={type:n.GenericReference,id:"append-to-list-operation-lsit-argument-parent-ref",entityId:he.Append,version:"1",entityType:n.ActionDescriptor},Rd={id:"append-to-list-lsit-argument-declaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"List value",description:"The list to which the element will be appended",defaultValue:null,dataType:wh,parentRelationType:N.FixedArguments,required:!0,index:0,parent:Mh},Nh={type:n.GenericReference,id:"append-to-list-operation-second-list-argument-parent-ref",entityId:he.Append,version:"1",entityType:n.ActionDescriptor},Dd={id:"append-to-list-element-to-append-argument-declaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Element",description:"The element that will be added at the end of the list",defaultValue:null,dataType:Vh,parentRelationType:N.FixedArguments,required:!0,index:1,parent:Nh},Lh={type:n.GenericReference,id:"append-to-list-operation-result-list-return-parent-ref",entityId:he.Append,version:"1",entityType:n.ActionDescriptor},Uh={parentRelationType:N.FixedReturns,id:"append-to-list-result-list-return-delaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Result",description:"The resulting list value.",defaultValue:null,dataType:_h,required:!0,index:0,parent:Lh},gh={type:n.GenericReference,id:"append-to-list-operation-error-parent-ref",entityId:he.Append,version:"1",entityType:n.ActionDescriptor},jh={parentRelationType:N.FixedReturns,id:"append-to-list-error-return-delaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Error",description:"An error that occurred during the operation.",defaultValue:null,dataType:null,required:!0,index:1,parent:gh},za={id:he.Append,type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:he.Append,description:"Adds a given element to the end of a list value.",inputs:[Rd,Dd],error:jh,outputs:[Uh],parent:null},$h={[he.Join]:Id,[he.Split]:Ad,[he.GetLast]:bd,[he.Append]:za},xn=k[n.Operation][Ke.Parallel],Gh={id:"parallel-execution-list-of-functions-blueprint-dynamic-output-parent-ref",type:n.GenericReference,entityId:"parallel-execution-list-of-functions-blueprint-id",version:"1",entityType:n.ActionDescriptor},Fh={id:"parallel-execution-list-of-functions-blueprint-dynamic-output-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Any output value",description:"An output value of any type, to be used in the action to be executed.",defaultValue:null,dataType:null,required:!1,index:0,parent:Gh,parentRelationType:N.DynamicArgument},xh={id:"parallel-execution-list-of-functions-blueprint-dynamic-input-parent-ref",type:n.GenericReference,entityId:"parallel-execution-list-of-functions-blueprint-id",version:"1",entityType:n.ActionDescriptor},kh={id:"parallel-execution-list-of-functions-blueprint-dynamic-input-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Any input value",description:"An input value of any type, to be used in the action to be executed.",defaultValue:null,dataType:null,required:!1,index:0,parent:xh,parentRelationType:N.DynamicArgument},Sh={id:"parallel-execution-list-of-functions-blueprint-parent-ref",type:n.GenericReference,entityId:"parallel-execution-list-of-functions-argument-data-type-id",version:"1",entityType:n.DataType},Zh={id:"parallel-execution-list-of-functions-blueprint-id",type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Action to execute",description:"An action of any type, to be executed. It can contain any number of inputs and outputs.",inputs:[kh],outputs:[Fh],error:null,parent:Sh},qh={type:n.GenericReference,id:"3bd4aeb2-e3b7-4120-b289-011ebb03dba5",entityId:xn.inputs.listOfActions.id,version:"1",entityType:n.ValueDescriptor},Jh={like:!1,inferred:!1,id:"parallel-execution-list-of-functions-argument-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Zh,asType:!1,isList:!0,parent:qh},Wh={type:n.GenericReference,id:"da5e9fe9-f18a-49e3-98e5-c1bf7b9b3153",entityId:xn.outputs.results.id,version:"1",entityType:n.ValueDescriptor},zh={like:!1,inferred:!1,id:xn.outputs.results.dataType.id,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,asType:!1,isList:!0,parent:Wh},Yh={type:n.GenericReference,id:"a6c14305-d4f7-43ae-9d5e-b7dbacdc830a",entityId:Ke.Parallel,version:"1",entityType:n.ActionDescriptor},Od={id:xn.inputs.listOfActions.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Actions to execute",description:"A value, of a list of actions to be executed in parallel",dataType:Jh,defaultValue:null,required:!0,index:0,parent:Yh,parentRelationType:N.FixedArguments},Hh={type:n.GenericReference,id:"caac2bc7-c23c-4f01-9581-a515c2e4637f",entityId:Ke.Parallel,version:"1",entityType:n.ActionDescriptor},Pd={id:xn.outputs.results.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"List of execution results",description:"Each execution result, in the same order as the input list of actions. One item on this list for each executed action.",dataType:zh,defaultValue:null,required:!0,index:0,parent:Hh,parentRelationType:N.FixedReturns},Kh={type:n.GenericReference,id:"parallel-execution-operation-error-parent-ref",entityId:Ke.Parallel,version:"1",entityType:n.ActionDescriptor},Xh={id:xn.outputs.error.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Error",description:"An error that occurred during the operation.",defaultValue:null,dataType:null,required:!0,index:1,parent:Kh,parentRelationType:N.ReturnedError},Oi={id:Ke.Parallel,type:n.ActionDescriptor,description:"Execute a list of actions in parallel",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:Ke.Parallel,inputs:[Od],outputs:[Pd],error:Xh,parent:null};var Qh=(r=>(r.MillisecondsNumber="wait-milliseconds-number-argument-declaration",r))(Qh||{}),em=(r=>(r.Error="wait-operation-error-return-delaration",r))(em||{});const tm={type:n.GenericReference,id:"3bd4aeb2-e3b7-4120-b289-011ebb03dba5",version:"1",entityType:n.ValueDescriptor,entityId:"wait-milliseconds-number-argument-declaration"},im={like:!1,inferred:!1,id:"wait-milliseconds-number-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,isList:!1,asType:!1,parent:tm},rm={type:n.GenericReference,id:"a6c14305-d4f7-43ae-9d5e-b7dbacdc830a",version:"1",entityType:n.ActionDescriptor,entityId:Ke.Wait},en={id:"wait-milliseconds-number-argument-declaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Milliseconds to wait",description:"The amount of milliseconds to wait before calling the next entity",defaultValue:null,dataType:im,required:!0,index:0,parent:rm,parentRelationType:N.FixedArguments},nm={type:n.GenericReference,id:"wait-operation-error-parent-ref",entityId:Ke.Wait,version:"1",entityType:n.ActionDescriptor},sm={id:"wait-operation-error-return-delaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Error",description:"An error that occurred during the operation.",defaultValue:null,dataType:null,required:!0,index:1,parent:nm,parentRelationType:N.ReturnedError},Zt={id:Ke.Wait,type:n.ActionDescriptor,description:"Wait for the given amount of milliseconds before calling the next entity",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:Ke.Wait,inputs:[en],outputs:[],error:sm,parent:null};var am=(r=>(r.ListOfFunctions="sequential-execution-list-of-functions-argument-declaration",r))(am||{}),om=(r=>(r.ListOfExecutionResults="sequential-execution-result-return-delaration",r.Error="sequential-execution-error-return-delaration",r))(om||{});const lm={id:"sequential-execution-list-of-functions-blueprint-dynamic-output-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Any output value",description:"An output value of any type, to be used in the action to be executed.",defaultValue:null,dataType:null,required:!1,index:0,parent:null,parentRelationType:N.DynamicArgument},dm={id:"sequential-execution-list-of-functions-blueprint-dynamic-input-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Any input value",description:"An input value of any type, to be used in the action to be executed.",defaultValue:null,dataType:null,required:!1,index:0,parent:null,parentRelationType:N.DynamicArgument},um={id:"sequential-execution-list-of-functions-blueprint-id",type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Action to execute",description:"An action of any type, to be executed. It can contain any number of inputs and outputs.",inputs:[dm],outputs:[lm],error:null,parent:null},pm={type:n.GenericReference,id:"parallel-execution-list-of-functions-argument-declaration-id",entityId:"sequential-execution-list-of-functions-argument-declaration",version:"1",entityType:n.ValueDescriptor},cm={like:!1,inferred:!1,id:"sequential-execution-list-of-functions-argument-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:um,asType:!1,isList:!0,parent:pm},fm={type:n.GenericReference,id:"sequential-execution-list-of-execution-results-return-declaration-id",entityId:"sequential-execution-result-return-delaration",version:"1",entityType:n.ValueDescriptor},ym={like:!1,inferred:!1,id:"sequential-execution-list-of-execution-results-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,asType:!1,isList:!0,parent:fm},hm={type:n.GenericReference,id:"parallel-execution-operation-list-of-functions-argument-parent-ref",entityId:Ke.Sequential,version:"1",entityType:n.ActionDescriptor},wd={id:"sequential-execution-list-of-functions-argument-declaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Actions to execute",description:"A value, of a list of actions to be executed in parallel",defaultValue:null,dataType:cm,required:!0,index:0,parent:hm,parentRelationType:N.FixedArguments},mm={type:n.GenericReference,id:"parallel-execution-operation-list-of-execution-results-return-parent-ref",entityId:Ke.Sequential,version:"1",entityType:n.ActionDescriptor},Cd={id:"sequential-execution-result-return-delaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"List of execution results",description:"Each execution result, in the same order as the input list of actions. One item on this list for each executed action.",defaultValue:null,dataType:ym,required:!0,index:0,parent:mm,parentRelationType:N.FixedReturns},vm={type:n.GenericReference,id:"sequential-execution-operation-error-parent-ref",entityId:Ke.Sequential,version:"1",entityType:n.ActionDescriptor},Tm={id:"sequential-execution-error-return-delaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Error",description:"An error that occurred during the operation.",defaultValue:null,dataType:null,required:!0,index:1,parent:vm,parentRelationType:N.ReturnedError},nr={id:Ke.Sequential,type:n.ActionDescriptor,description:"Execute a list of actions one after the other",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:Ke.Sequential,inputs:[wd],outputs:[Cd],error:Tm,parent:null},Im={[Ke.Parallel]:Oi,[Ke.Wait]:Zt,[Ke.Sequential]:nr};var Em=(r=>(r.EntityToInstanciate="entity-to-instanciate-argument-declaration",r.NewEntityData="new-entity-data-argument-declaration",r))(Em||{}),Am=(r=>(r.Error="create-new-instance-error-return-delaration",r))(Am||{});const bm={type:n.GenericReference,id:"new-entity-data-argument-declaration-parent-ref",entityId:Xe.CreateNewInstance,version:"1",entityType:n.ActionDescriptor},Rm={type:n.GenericReference,id:"new-entity-data-argument-data-type-parent-ref",entityId:"new-entity-data-argument-declaration",version:"1",entityType:n.ValueDescriptor},Dm={like:!1,inferred:!1,id:"new-entity-data-argument-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,isList:!1,asType:!1,parent:Rm},Om={id:"new-entity-data-argument-declaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Data for new entity",description:"The data to be used to create the new entity, with all the required properties",dataType:Dm,required:!0,defaultValue:null,parentRelationType:N.FixedArguments,index:1,parent:bm},Pm={type:n.GenericReference,id:"entity-to-instanciate-argument-declaration-ref",version:"1",entityType:n.ValueDescriptor,entityId:"entity-to-instanciate-argument-declaration"},wm={like:!1,inferred:!1,id:"entity-to-instanciate-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,isList:!1,asType:!0,parent:Pm},Cm={type:n.GenericReference,id:"create-new-instance-operation-ref",version:"1",entityType:n.ActionDescriptor,entityId:Xe.CreateNewInstance},Vm={id:"entity-to-instanciate-argument-declaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Entity to create a new copy of",description:"The entity of which a new copy will to be created",defaultValue:null,dataType:wm,required:!0,parentRelationType:N.FixedArguments,index:0,parent:Cm},Bm={type:n.GenericReference,id:"create-new-instance-output-entity-declaration-parent-ref",entityId:Xe.CreateNewInstance,version:"1",entityType:n.ActionDescriptor},_m={parentRelationType:N.FixedReturns,id:"create-new-instance-output-entity-declaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Created entity",description:"The entity that was created",defaultValue:null,dataType:null,parent:Bm,required:!0,index:0},Mm={type:n.GenericReference,id:"create-new-instance-error-parent-ref",entityId:Xe.CreateNewInstance,version:"1",entityType:n.ActionDescriptor},Nm={parentRelationType:N.FixedReturns,id:"create-new-instance-error-return-delaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Error",description:"An error that occurred during the operation.",defaultValue:null,dataType:null,required:!0,index:1,parent:Mm},tn={id:Xe.CreateNewInstance,type:n.ActionDescriptor,description:"Creates a new copy of a given entity, with the given values for each property, or default values if a value is not provided",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:Xe.CreateNewInstance,inputs:[Vm,Om],outputs:[_m],error:Nm,parent:null},kn=k[n.Operation][Xe.Validate],Lm={type:n.GenericReference,id:"validate-data-operation-data-to-validate-argument-declaration-ref",version:"1",entityType:n.ValueDescriptor,entityId:kn.inputs.dataToValidate.id},Um={like:!1,inferred:!1,id:"validate-data-operation-data-to-validate-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,isList:!1,asType:!1,parent:Lm},gm={type:n.GenericReference,id:"validate-data-operation-data-to-validate-argument-parent-ref",version:"1",entityType:n.ActionDescriptor,entityId:Xe.Validate},jm={id:kn.inputs.dataToValidate.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Data to validate",description:"The value to validate against the given entity type",defaultValue:null,dataType:Um,required:!0,parentRelationType:N.FixedArguments,index:0,parent:gm},$m={type:n.GenericReference,id:"validate-data-operation-entity-to-match-type-argument-declaration-ref",version:"1",entityType:n.ValueDescriptor,entityId:kn.inputs.entityToMatch.id},Gm={like:!1,inferred:!1,id:"validate-data-operation-entity-to-match-type-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,isList:!1,asType:!0,parent:$m},Fm={type:n.GenericReference,id:"validate-data-operation-entity-to-match-type-argument-parent-ref",version:"1",entityType:n.ActionDescriptor,entityId:Xe.Validate},xm={id:kn.inputs.entityToMatch.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Entity to match",description:"The entity to match the data against",dataType:Gm,defaultValue:null,required:!0,index:0,parentRelationType:N.FixedArguments,parent:Fm},km={type:n.GenericReference,id:"validate-data-operation-output-entity-declaration-parent-ref",entityId:Xe.Validate,version:"1",entityType:n.ActionDescriptor},Sm={id:kn.outputs.outputEntity.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,dataType:null,name:"Output value",description:"A value with the type of the entity that was validated",defaultValue:null,parent:km,required:!0,index:0,parentRelationType:N.FixedReturns},Zm={type:n.GenericReference,id:"wait-operation-error-parent-ref",entityId:Xe.Validate,version:"1",entityType:n.ActionDescriptor},qm={id:kn.outputs.error.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Error",description:"An error that occurred during the operation.",dataType:null,defaultValue:null,required:!0,index:1,parent:Zm,parentRelationType:N.ReturnedError},rn={id:Xe.Validate,type:n.ActionDescriptor,description:"Validates the given data to see if it matches the structure of a given type/entity",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:Xe.Validate,inputs:[xm,jm],outputs:[Sm],error:qm,parent:null},Jm={[Xe.CreateNewInstance]:tn,[Xe.Validate]:rn},Et=k[n.Operation]["base-http-request"],Wm={type:n.GenericReference,id:"d87cf943-57e1-4d19-9f05-190fa8c8ebc4",version:"1",entityType:n.ValueDescriptor,entityId:Et.inputs.url.id},zm={id:"http-request-url-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:"https://some-url.com",name:L.String,valueAsTypeSingle:null,valueAsTypeList:null,parent:Wm,autogeneration:null},Ym={type:n.GenericReference,id:"aed50d73-eab5-42ce-b00e-7f5c45a9026f",entityId:Et.inputs.url.id,version:"1",entityType:n.ValueDescriptor},Hm={like:!1,inferred:!1,id:"0deb4ef7-d739-4ddc-a4d6-50bd6fababe3",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:se,asType:!1,isList:!1,parent:Ym},Km={type:n.GenericReference,id:"c3145af6-3387-464a-8887-272e483c856d",entityId:Et.inputs.query.id,version:"1",entityType:n.ValueDescriptor},Xm={like:!1,inferred:!1,id:"2a5ba737-6335-4cc4-a2c0-16dca4052fac",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:se,asType:!1,isList:!1,parent:Km},Qm={type:n.GenericReference,id:"075556b7-e468-48f7-8485-7159eaf389b2",version:"1",entityType:n.ValueDescriptor,entityId:Et.inputs.method.id},e0={id:"http-request-method-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:"GET",name:L.Enum,valueAsTypeSingle:null,valueAsTypeList:null,parent:Qm,autogeneration:null},t0={type:n.GenericReference,id:"aed647c8-a1b5-4cfc-9a3d-97887a567a80",entityId:Et.inputs.method.id,version:"1",entityType:n.ValueDescriptor},i0={like:!1,inferred:!1,id:"6df7ec2b-5dbd-44af-896b-17b314e88560",type:n.DataType,parentRelationType:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:tr,isList:!1,asType:!1,options:["GET","POST","PUT","DELETE","PATCH","OPTIONS","HEAD","TRACE","CONNECT","CUSTOM"],parent:t0},r0={type:n.GenericReference,id:"77203dfa-d2f6-4804-9556-e1cce46228f3",entityId:Et.inputs.headers.id,version:"1",entityType:n.ValueDescriptor},n0={like:!1,inferred:!1,id:"2c8a2a07-69c6-40ad-b5c9-f0dc4d5955ce",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Ot,asType:!1,isList:!1,parent:r0},s0={type:n.GenericReference,id:"03db68a0-7ab6-4c6a-85b6-f4b95ebb53ff",entityId:Et.inputs.body.id,version:"1",entityType:n.ValueDescriptor},a0={like:!1,inferred:!1,id:"0397876c-ed54-4ee9-85a4-04fd16dad973",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Ot,asType:!1,isList:!1,parent:s0},o0={type:n.GenericReference,id:"182f767f-50e8-4394-ba5f-43e78c232733",version:"1",entityType:n.ValueDescriptor,entityId:Et.outputs.code.id},l0={like:!1,inferred:!1,id:"45e6d0bc-0c0e-4059-a7a1-6bee925d73d0",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,asType:!1,isList:!1,parent:o0},d0={type:n.GenericReference,id:"2baaa53a-9aef-4bd1-b06d-967c17b7b627",version:"1",entityType:n.ValueDescriptor,entityId:Et.outputs.headers.id},u0={type:n.GenericReference,id:"69f34d6c-c686-4165-b6ff-70dae8e1778b",version:"1",entityType:n.ValueDescriptor,entityId:Et.outputs.headers.id},p0={like:!1,inferred:!1,id:"dac63bfa-640d-4f4e-ba0f-86c2401bcfbe",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Ot,isList:!1,asType:!1,parent:u0},c0={type:n.GenericReference,id:"744334e0-5135-4214-85d0-809437cb620b",version:"1",entityType:n.ValueDescriptor,entityId:Et.outputs.body.id},f0={type:n.GenericReference,id:"0e0e20df-1a46-432c-ba01-fd96508a6a61",version:"1",entityType:n.ValueDescriptor,entityId:Et.outputs.body.id},y0={like:!1,inferred:!1,id:"05fc1a5d-151a-479a-9c4e-4063f3456177",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Ot,isList:!1,asType:!1,parent:f0},h0={type:n.GenericReference,id:"26911792-f707-4bf1-b6f7-03d04a84232c",version:"1",entityType:n.ActionDescriptor,entityId:_t.HttpRequest},Ya={id:Et.inputs.method.id,type:n.ValueDescriptor,description:"A single word that represents the type of request you want to make. For example: GET, POST, PUT, DELETE, PATCH, OPTIONS, HEAD, TRACE, CONNECT, CUSTOM",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Method",defaultValue:e0,dataType:i0,required:!1,index:0,parentRelationType:N.FixedArguments,parent:h0},m0={type:n.GenericReference,id:"eee0c501-0ae6-4448-b914-aada76d63163",version:"1",entityType:n.ActionDescriptor,entityId:_t.HttpRequest},Ha={id:Et.inputs.url.id,type:n.ValueDescriptor,description:"The base domain, or address where the request is being sent to. For example: https://some-url.com",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"URL",dataType:Hm,defaultValue:zm,required:!1,index:1,parentRelationType:N.FixedArguments,parent:m0},v0={type:n.GenericReference,id:"670091a4-21b1-4223-ad4c-b6dada0aec49",version:"1",entityType:n.ActionDescriptor,entityId:_t.HttpRequest},Vd={id:Et.inputs.query.id,type:n.ValueDescriptor,description:"A text with standarized format, without spaces that is added at the end of the URL path, after the ? character. It contains data that might be used to process the request. For example: /api/users?name=John&age=30",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Query Params",defaultValue:null,dataType:Xm,required:!1,index:2,parentRelationType:N.FixedArguments,parent:v0},T0={type:n.GenericReference,id:"85aad3eb-22fe-45f9-b68c-1dc7061f41e0",version:"1",entityType:n.ActionDescriptor,entityId:_t.HttpRequest},Ka={id:Et.inputs.headers.id,type:n.ValueDescriptor,description:"A set of any properties, with names and values that represent metadata about the request, such as the server, date, content type, and more, that you want to send alongside your request data.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Headers",defaultValue:null,dataType:n0,required:!1,index:3,parent:T0,parentRelationType:N.FixedArguments},I0={type:n.GenericReference,id:"c3e2a4af-9b84-4574-8b30-5044ffc51776",version:"1",entityType:n.ActionDescriptor,entityId:_t.HttpRequest},Xa={id:Et.inputs.body.id,type:n.ValueDescriptor,description:"The main data payload of the request. This is the data that you want to send to the server. It could be anything, but it is usually a KeyValue data structure or a text value.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Body",dataType:a0,defaultValue:null,required:!1,index:4,parentRelationType:N.FixedArguments,parent:I0},E0={type:n.GenericReference,id:"92e04dc7-2145-4a31-908e-03810f7235e8",version:"1",entityType:n.ActionDescriptor,entityId:_t.HttpRequest},Qa={id:Et.outputs.code.id,type:n.ValueDescriptor,description:'A standardized status code of the response. It is a 3-digit number that represents the response status. For example, 200 means "OK", 404 means "Not Found", and 500 means "Internal Server Error".',version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Code",defaultValue:null,dataType:l0,required:!0,index:0,parentRelationType:N.FixedReturns,parent:E0},A0={type:n.GenericReference,id:"86aca556-bbf1-4679-9909-31db61b288e2",version:"1",entityType:n.ActionDescriptor,entityId:_t.HttpRequest},eo={parentRelationType:N.FixedReturns,id:Et.outputs.headers.id,type:n.ValueDescriptor,description:"A set of any properties, with names and value that the server sent back to you. It represents metadata about the response, such as the server, date, content type, and more.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Headers",defaultValue:{id:"http-response-headers-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:{},name:L.KeyValue,parent:d0,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null},dataType:p0,required:!0,index:1,parent:A0},b0={type:n.GenericReference,id:"ccf3d1be-04e4-4d03-99fd-5bc1e1919f90",version:"1",entityType:n.ActionDescriptor,entityId:_t.HttpRequest},to={id:Et.outputs.body.id,type:n.ValueDescriptor,description:"The main data payload of the response. This is the data that the server sent back to you. It could be anything, but it is usually a KeyValue data structure or a text value.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Body",parentRelationType:N.FixedReturns,dataType:y0,defaultValue:{id:"http-response-body-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:{},name:L.KeyValue,parent:c0,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null},required:!0,index:2,parent:b0},R0={type:n.GenericReference,id:"21487ffc-82b9-473d-bc19-6e7d7c480ed7",version:"1",entityType:n.ActionDescriptor,entityId:_t.HttpRequest},D0={type:n.GenericReference,id:"ad69861b-32f7-4461-b7f7-aa84a82578d9",version:"1",entityType:n.ValueDescriptor,entityId:Et.outputs.error.id},O0={like:!1,inferred:!1,id:"5da68b15-57bc-40c1-b79f-a9075e0f22c1",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Ot,isList:!1,asType:!1,parent:D0},Bd={parentRelationType:N.ReturnedError,id:Et.outputs.error.id,type:n.ValueDescriptor,description:"Http request error, if any. Contains a payload describing what went wrong.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Error",defaultValue:null,dataType:O0,required:!0,index:0,parent:R0},Bs={type:n.ActionDescriptor,id:_t.HttpRequest,name:_t.HttpRequest,description:"Make an HTTP request, out to the internet, to a given URL with the specified method, query parameters, headers, and body.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,inputs:[Ya,Ha,Vd,Ka,Xa],outputs:[Qa,eo,to],error:Bd,parent:null},P0={[_t.HttpRequest]:Bs},w0={..._y,...Jf,...$h,...Im,...Jm,...P0},C0=Object.values(w0),Ew=k[n.Loop]["manual-flow-loop"],V0={id:"manual-flow-loop-dynamic-return-declaration-parent-ref-id",type:n.GenericReference,entityId:Q.ManualFlow,version:"1",entityType:n.ActionDescriptor},B0={id:Ew.outputs.results.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Ouput value",description:"An output value of the loop",defaultValue:null,required:!1,dataType:null,index:0,parent:V0,parentRelationType:N.DynamicReturn},io={id:Q.ManualFlow,type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:Q.ManualFlow,description:"A loop that is manually controlled by the continue and break statements. It runs until the break statement is called, and it can skip to the next iteration with the continue statement.",inputs:[],outputs:[B0],error:null,parent:null},_s=k[n.Loop]["manual-flow-loop"],_0={id:"manual-flow-loop-current-iteration-number-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"manual-flow-loop-current-iteration-number-declaration-id",version:"1",entityType:n.ValueDescriptor},M0={like:!1,inferred:!1,id:"manual-flow-loop-current-iteration-number-declaration-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,entity:ve,asType:!1,parent:_0},N0={id:"manual-flow-loop-current-iteration-number-declaration-parent-ref-id",type:n.GenericReference,entityId:_s.body.id,version:"1",entityType:n.ActionDescriptor},_d={id:_s.body.inputs.iterationNumber.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Current iteration number",description:"The number of the current iteration of the manual flow loop. Keeps track of the number of iterations that have been executed.",defaultValue:null,dataType:M0,required:!0,index:0,parentRelationType:N.FixedArguments,parent:N0},L0={id:"manual-flow-loop-body-any-dynamic-argument-parent-ref-id",type:n.GenericReference,entityId:_s.body.id,version:"1",entityType:n.ActionDescriptor},U0={id:"manual-flow-loop-body-any-dynamic-argument-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Any value",description:"Values inputed to the loop's body as an aggregation of the respective values outputed.",defaultValue:null,dataType:null,required:!1,index:1,parentRelationType:N.DynamicArgument,parent:L0},g0={id:"manual-flow-loop-body-any-dynamic-return-parent-ref-id",type:n.GenericReference,entityId:_s.body.id,version:"1",entityType:n.ActionDescriptor},j0={id:"manual-flow-loop-body-any-dynamic-return-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Any value",description:"Values outputed by the loop's body.",defaultValue:null,dataType:null,required:!1,index:0,parentRelationType:N.DynamicReturn,parent:g0},ro={id:_s.body.id,type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Iteration logic trigger",description:"Describes the body of the manual flow loop.",inputs:[_d,U0],outputs:[j0],error:null,parent:null},$0=k[n.Loop]["string-loop"],G0={id:"iterate-over-string-loop-string-argument-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"iterate-over-string-loop-string-argument-declaration-id",version:"1",entityType:n.ValueDescriptor},F0={like:!1,inferred:!1,id:"iterate-over-string-loop-string-argument-declaration-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,entity:se,asType:!1,parent:G0},x0={id:"iterate-over-string-loop-string-argument-declaration-parent-ref-id",type:n.GenericReference,entityId:Q.String,version:"1",entityType:n.ActionDescriptor},k0={id:$0.inputs.string.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Texts",description:"The text to iterate over the characters of",defaultValue:null,required:!0,dataType:F0,index:0,parent:x0,parentRelationType:N.FixedArguments},S0={id:"iterate-over-string-loop-dynamic-return-declaration-parent-ref-id",type:n.GenericReference,entityId:Q.String,version:"1",entityType:n.ActionDescriptor},Z0={id:$0.outputs.results.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Ouput value",description:"An output value of the loop",defaultValue:null,required:!1,dataType:null,index:0,parent:S0,parentRelationType:N.DynamicReturn},Ms={id:Q.String,type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:Q.String,description:"Iterates over a string of entities",inputs:[k0],outputs:[Z0],error:null,parent:null},nn=k[n.Loop]["string-loop"],q0={id:"iterate-over-string-loop-body-current-value-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"iterate-over-string-loop-body-current-value-declaration-id",version:"1",entityType:n.ValueDescriptor},J0={like:!1,inferred:!1,id:"iterate-over-string-loop-body-current-value-declaration-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,entity:se,asType:!1,parent:q0},W0={id:"iterate-over-string-loop-body-current-value-declaration-parent-ref-id",type:n.GenericReference,entityId:nn.body.id,version:"1",entityType:n.ActionDescriptor},Md={id:nn.body.inputs.currentValue.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Current value",description:"The current value in the string that is being iterated over. This value is passed to the child actions.",defaultValue:null,dataType:J0,required:!0,index:1,parentRelationType:N.FixedArguments,parent:W0},z0={id:"iterate-over-string-loop-body-current-iteration-number-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"iterate-over-string-loop-body-current-iteration-number-declaration-id",version:"1",entityType:n.ValueDescriptor},Y0={like:!1,inferred:!1,id:"iterate-over-string-loop-body-current-iteration-number-declaration-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,entity:ve,asType:!1,parent:z0},H0={id:"iterate-over-string-loop-body-current-iteration-number-declaration-parent-ref-id",type:n.GenericReference,entityId:nn.body.id,version:"1",entityType:n.ActionDescriptor},Nd={id:nn.body.inputs.iterationNumber.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Current iteration number",description:"The number of the current iteration of the string loop. Keeps track of the number of iterations that have been executed.",defaultValue:null,dataType:Y0,required:!0,index:0,parentRelationType:N.FixedArguments,parent:H0},K0={id:"iterate-over-string-loop-body-any-dynamic-argument-parent-ref-id",type:n.GenericReference,entityId:nn.body.id,version:"1",entityType:n.ActionDescriptor},X0={id:"iterate-over-string-loop-body-any-dynamic-argument-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Any value",description:"Values inputed to the loop's body as an aggregation of the respective values outputed.",defaultValue:null,dataType:null,required:!1,index:2,parentRelationType:N.DynamicArgument,parent:K0},Q0={id:"iterate-over-string-loop-body-any-dynamic-return-parent-ref-id",type:n.GenericReference,entityId:nn.body.id,version:"1",entityType:n.ActionDescriptor},ev={id:"iterate-over-string-loop-body-any-dynamic-return-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Any value",description:"Values outputed by the loop's body.",defaultValue:null,dataType:null,required:!1,index:0,parentRelationType:N.DynamicReturn,parent:Q0},no={id:nn.body.id,type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Iteration logic trigger",description:"Describes the body of the string loop.",inputs:[Nd,Md,X0],outputs:[ev],error:null,parent:null},tv=k[n.Loop]["list-loop"],iv={id:"iterate-over-list-loop-list-argument-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"iterate-over-list-loop-list-argument-declaration-id",version:"1",entityType:n.ValueDescriptor},rv={like:!1,inferred:!1,id:"iterate-over-list-loop-list-argument-declaration-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!0,entity:null,asType:!1,parent:iv},nv={id:"iterate-over-list-loop-list-argument-declaration-parent-ref-id",type:n.GenericReference,entityId:Q.List,version:"1",entityType:n.ActionDescriptor},sv={id:tv.inputs.list.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"List",description:"The list to iterate over",required:!0,defaultValue:null,dataType:rv,index:0,parent:nv,parentRelationType:N.FixedArguments},av={id:"iterate-over-list-loop-dynamic-return-declaration-parent-ref-id",type:n.GenericReference,entityId:Q.List,version:"1",entityType:n.ActionDescriptor},ov={id:tv.outputs.results.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Ouput value",description:"An output value of the loop",required:!1,defaultValue:null,dataType:null,index:0,parent:av,parentRelationType:N.DynamicReturn},Er={id:Q.List,type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:Q.List,description:"Iterates over a list of entities",inputs:[sv],outputs:[ov],error:null,parent:null},sn=k[n.Loop]["list-loop"],lv={id:"iterate-over-list-loop-body-current-value-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"iterate-over-list-loop-body-current-value-declaration-id",version:"1",entityType:n.ValueDescriptor},dv={like:!1,inferred:!1,id:"iterate-over-list-loop-body-current-value-declaration-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,entity:null,asType:!1,parent:lv},uv={id:"iterate-over-list-loop-body-current-value-declaration-parent-ref-id",type:n.GenericReference,entityId:sn.body.id,version:"1",entityType:n.ActionDescriptor},so={id:sn.body.inputs.currentValue.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Current value",description:"The current value in the list that is being iterated over. This value is passed to the child actions.",defaultValue:null,dataType:dv,required:!0,index:1,parentRelationType:N.FixedArguments,parent:uv},pv={id:"iterate-over-list-loop-body-current-iteration-number-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"iterate-over-list-loop-body-current-iteration-number-declaration-id",version:"1",entityType:n.ValueDescriptor},cv={like:!1,inferred:!1,id:"iterate-over-list-loop-body-current-iteration-number-declaration-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,entity:ve,asType:!1,parent:pv},fv={id:"iterate-over-list-loop-body-current-iteration-number-declaration-parent-ref-id",type:n.GenericReference,entityId:sn.body.id,version:"1",entityType:n.ActionDescriptor},yv={id:sn.body.inputs.iterationNumber.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Current iteration number",description:"The number of the current iteration of the list loop. Keeps track of the number of iterations that have been executed.",defaultValue:null,dataType:cv,required:!0,index:0,parentRelationType:N.FixedArguments,parent:fv},hv={id:"iterate-over-list-loop-body-any-dynamic-argument-parent-ref-id",type:n.GenericReference,entityId:sn.body.id,version:"1",entityType:n.ActionDescriptor},mv={id:"iterate-over-list-loop-body-any-dynamic-argument-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Any value",description:"Values inputed to the loop's body as an aggregation of the respective values outputed.",defaultValue:null,dataType:null,required:!1,index:2,parentRelationType:N.DynamicArgument,parent:hv},vv={id:"iterate-over-list-loop-body-any-dynamic-return-parent-ref-id",type:n.GenericReference,entityId:sn.body.id,version:"1",entityType:n.ActionDescriptor},Tv={id:"iterate-over-list-loop-body-any-dynamic-return-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Any value",description:"Values outputed by the loop's body.",defaultValue:null,dataType:null,required:!1,index:0,parentRelationType:N.DynamicReturn,parent:vv},Ns={id:sn.body.id,type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Iteration logic trigger",description:"Describes the body of the list loop.",inputs:[yv,so,mv],outputs:[Tv],error:null,parent:null},Iv=k[n.Loop]["object-keys-loop"],Ev={id:"iterate-over-object-keys-loop-object-argument-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"iterate-over-object-keys-loop-object-argument-declaration-id",version:"1",entityType:n.ValueDescriptor},Av={like:!1,inferred:!1,id:"iterate-over-object-keys-loop-object-argument-declaration-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,entity:Ot,asType:!1,parent:Ev},bv={id:"iterate-over-object-keys-loop-object-argument-declaration-parent-ref-id",type:n.GenericReference,entityId:Q.ObjectKeys,version:"1",entityType:n.ActionDescriptor},Rv={id:Iv.inputs.object.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Object",description:"The object to iterate over",required:!0,defaultValue:null,dataType:Av,index:0,parent:bv,parentRelationType:N.FixedArguments},Dv={id:"iterate-over-object-keys-loop-dynamic-return-declaration-parent-ref-id",type:n.GenericReference,entityId:Q.ObjectKeys,version:"1",entityType:n.ActionDescriptor},Ov={id:Iv.outputs.results.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Ouput value",description:"An output value of the loop",defaultValue:null,required:!1,dataType:null,index:0,parent:Dv,parentRelationType:N.DynamicReturn},Sn={id:Q.ObjectKeys,type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:Q.ObjectKeys,description:"Iterates over a object of entities",inputs:[Rv],outputs:[Ov],error:null,parent:null},an=k[n.Loop]["object-keys-loop"],Pv={id:"iterate-over-object-keys-loop-body-current-value-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"iterate-over-object-keys-loop-body-current-value-declaration-id",version:"1",entityType:n.ValueDescriptor},wv={like:!1,inferred:!1,id:"iterate-over-object-keys-loop-body-current-value-declaration-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,entity:se,asType:!1,parent:Pv},Cv={id:"iterate-over-object-keys-loop-body-current-value-declaration-parent-ref-id",type:n.GenericReference,entityId:an.body.id,version:"1",entityType:n.ActionDescriptor},Ld={id:an.body.inputs.currentValue.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Current value",description:"The current value in the object-keys that is being iterated over. This value is passed to the child actions.",defaultValue:null,dataType:wv,required:!0,index:1,parentRelationType:N.FixedArguments,parent:Cv},Vv={id:"iterate-over-object-keys-loop-body-current-iteration-number-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"iterate-over-object-keys-loop-body-current-iteration-number-declaration-id",version:"1",entityType:n.ValueDescriptor},Bv={like:!1,inferred:!1,id:"iterate-over-object-keys-loop-body-current-iteration-number-declaration-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,entity:ve,asType:!1,parent:Vv},_v={id:"iterate-over-object-keys-loop-body-current-iteration-number-declaration-parent-ref-id",type:n.GenericReference,entityId:an.body.id,version:"1",entityType:n.ActionDescriptor},Mv={id:an.body.inputs.iterationNumber.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Current iteration number",description:"The number of the current iteration of the object-keys loop. Keeps track of the number of iterations that have been executed.",defaultValue:null,dataType:Bv,required:!0,index:0,parentRelationType:N.FixedArguments,parent:_v},Nv={id:"iterate-over-object-keys-loop-body-any-dynamic-argument-parent-ref-id",type:n.GenericReference,entityId:an.body.id,version:"1",entityType:n.ActionDescriptor},Lv={id:"iterate-over-object-keys-loop-body-any-dynamic-argument-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Any value",description:"Values inputed to the loop's body as an aggregation of the respective values outputed.",defaultValue:null,dataType:null,required:!1,index:2,parentRelationType:N.DynamicArgument,parent:Nv},Uv={id:"iterate-over-object-keys-loop-body-any-dynamic-return-parent-ref-id",type:n.GenericReference,entityId:an.body.id,version:"1",entityType:n.ActionDescriptor},gv={id:"iterate-over-object-keys-loop-body-any-dynamic-return-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Any value",description:"Values outputed by the loop's body.",defaultValue:null,dataType:null,required:!1,index:0,parentRelationType:N.DynamicReturn,parent:Uv},Ud={id:an.body.id,type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Iteration logic trigger",description:"Describes the body of the object-keys loop.",inputs:[Mv,Ld,Lv],outputs:[gv],error:null,parent:null},jv=k[n.Loop]["object-values-loop"],$v={id:"iterate-over-object-values-loop-object-argument-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"iterate-over-object-values-loop-object-argument-declaration-id",version:"1",entityType:n.ValueDescriptor},Gv={like:!1,inferred:!1,id:"iterate-over-object-values-loop-object-argument-declaration-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,entity:Ot,asType:!1,parent:$v},Fv={id:"iterate-over-object-values-loop-object-argument-declaration-parent-ref-id",type:n.GenericReference,entityId:Q.ObjectValues,version:"1",entityType:n.ActionDescriptor},xv={id:jv.inputs.object.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Object",description:"The object to iterate over",required:!0,defaultValue:null,dataType:Gv,index:0,parent:Fv,parentRelationType:N.FixedArguments},kv={id:"iterate-over-object-values-loop-dynamic-return-declaration-parent-ref-id",type:n.GenericReference,entityId:Q.ObjectValues,version:"1",entityType:n.ActionDescriptor},Sv={id:jv.outputs.results.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Ouput value",description:"An output value of the loop",defaultValue:null,required:!1,dataType:null,index:0,parent:kv,parentRelationType:N.DynamicReturn},Zn={id:Q.ObjectValues,type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:Q.ObjectValues,description:"Iterates over a object of entities",inputs:[xv],outputs:[Sv],error:null,parent:null},on=k[n.Loop]["object-values-loop"],Zv={id:"iterate-over-object-values-loop-body-current-value-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"iterate-over-object-values-loop-body-current-value-declaration-id",version:"1",entityType:n.ValueDescriptor},qv={id:"iterate-over-object-values-loop-body-current-value-declaration-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:null,entity:null,asType:null,like:!1,inferred:!1,parent:Zv},Jv={id:"iterate-over-object-values-loop-body-current-value-declaration-parent-ref-id",type:n.GenericReference,entityId:on.body.id,version:"1",entityType:n.ActionDescriptor},gd={id:on.body.inputs.currentValue.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Current value",description:"The current value in the object-values that is being iterated over. This value is passed to the child actions.",defaultValue:null,dataType:qv,required:!0,index:1,parentRelationType:N.FixedArguments,parent:Jv},Wv={id:"iterate-over-object-values-loop-body-current-iteration-number-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"iterate-over-object-values-loop-body-current-iteration-number-declaration-id",version:"1",entityType:n.ValueDescriptor},zv={like:!1,inferred:!1,id:"iterate-over-object-values-loop-body-current-iteration-number-declaration-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,entity:ve,asType:!1,parent:Wv},Yv={id:"iterate-over-object-values-loop-body-current-iteration-number-declaration-parent-ref-id",type:n.GenericReference,entityId:on.body.id,version:"1",entityType:n.ActionDescriptor},Hv={id:on.body.inputs.iterationNumber.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Current iteration number",description:"The number of the current iteration of the object-values loop. Keeps track of the number of iterations that have been executed.",defaultValue:null,dataType:zv,required:!0,index:0,parentRelationType:N.FixedArguments,parent:Yv},Kv={id:"iterate-over-object-values-loop-body-any-dynamic-argument-parent-ref-id",type:n.GenericReference,entityId:on.body.id,version:"1",entityType:n.ActionDescriptor},Xv={id:"iterate-over-object-values-loop-body-any-dynamic-argument-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Any value",description:"Values inputed to the loop's body as an aggregation of the respective values outputed.",defaultValue:null,dataType:null,required:!1,index:2,parentRelationType:N.DynamicArgument,parent:Kv},Qv={id:"iterate-over-object-values-loop-body-any-dynamic-return-parent-ref-id",type:n.GenericReference,entityId:on.body.id,version:"1",entityType:n.ActionDescriptor},eT={id:"iterate-over-object-values-loop-body-any-dynamic-return-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Any value",description:"Values outputed by the loop's body.",defaultValue:null,dataType:null,required:!1,index:0,parentRelationType:N.DynamicReturn,parent:Qv},jd={id:on.body.id,type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Iteration logic trigger",description:"Describes the body of the object-values loop.",inputs:[Hv,gd,Xv],outputs:[eT],error:null,parent:null},$d=k[n.Loop]["counted-loop"],tT={id:"counted-loop-string-argument-declaration-data-type-default-value-parent-ref-id",type:n.GenericReference,entityId:$d.inputs.number.id,version:"1",entityType:n.ValueDescriptor},iT={id:"counted-loop-string-argument-declaration-data-type-default-value-id",type:n.LiteralValue,name:L.Number,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:5,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null,parent:tT},rT={id:"counted-loop-string-argument-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"counted-loop-string-argument-declaration-id",version:"1",entityType:n.ValueDescriptor},nT={like:!1,inferred:!1,id:"counted-loop-string-argument-declaration-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,entity:ve,asType:!1,parent:rT},sT={id:"counted-loop-string-argument-declaration-parent-ref-id",type:n.GenericReference,entityId:Q.Counted,version:"1",entityType:n.ActionDescriptor},aT={id:$d.inputs.number.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Number of iterations",description:"The number of iterations to perform",required:!0,dataType:nT,defaultValue:iT,index:0,parent:sT,parentRelationType:N.FixedArguments},oT={id:"counted-loop-dynamic-return-declaration-parent-ref-id",type:n.GenericReference,entityId:Q.Counted,version:"1",entityType:n.ActionDescriptor},lT={id:$d.outputs.results.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Ouput value",description:"An output value of the loop",defaultValue:null,required:!1,dataType:null,index:0,parent:oT,parentRelationType:N.DynamicReturn},Ls={id:Q.Counted,type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:Q.Counted,description:"Iterates a given number of times",inputs:[aT],outputs:[lT],error:null,parent:null},Us=k[n.Loop]["counted-loop"],dT={id:"counted-loop-body-current-iteration-number-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"counted-loop-body-current-iteration-number-declaration-id",version:"1",entityType:n.ValueDescriptor},uT={like:!1,inferred:!1,id:"counted-loop-body-current-iteration-number-declaration-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,entity:ve,asType:!1,parent:dT},pT={id:"counted-loop-body-current-iteration-number-declaration-parent-ref-id",type:n.GenericReference,entityId:Us.body.id,version:"1",entityType:n.ActionDescriptor},Gd={id:Us.body.inputs.iterationNumber.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Current iteration number",description:"The number of the current iteration of the string loop. Keeps track of the number of iterations that have been executed.",defaultValue:null,dataType:uT,required:!0,index:0,parentRelationType:N.FixedArguments,parent:pT},cT={id:"counted-loop-body-any-dynamic-argument-parent-ref-id",type:n.GenericReference,entityId:Us.body.id,version:"1",entityType:n.ActionDescriptor},fT={id:"counted-loop-body-any-dynamic-argument-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Any value",description:"Values inputed to the loop's body as an aggregation of the respective values outputed.",defaultValue:null,dataType:null,required:!1,index:1,parentRelationType:N.DynamicArgument,parent:cT},yT={id:"counted-loop-body-any-dynamic-return-parent-ref-id",type:n.GenericReference,entityId:Us.body.id,version:"1",entityType:n.ActionDescriptor},hT={id:"counted-loop-body-any-dynamic-return-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Any value",description:"Values outputed by the loop's body.",defaultValue:null,dataType:null,required:!1,index:0,parentRelationType:N.DynamicReturn,parent:yT},ao={id:Us.body.id,type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Iteration logic trigger",description:"Describes the body of the string loop.",inputs:[Gd,fT],outputs:[hT],error:null,parent:null},mT=[io,Er,Ms,Sn,Zn,Ls],vT=[ro,Ns,no,Ud,jd,ao],Ar=k[n.BuiltInBaseEntity][z.HTTP_ENDPOINT].properties,gs=k[n.BuiltInBaseEntity][z.HTTP_ENDPOINT].methods,TT={id:"endpointBuiltInCorsPropertyDataTypeRef",type:n.GenericReference,version:"1",entityType:n.ValueDescriptor,entityId:Ar.cors.id},IT={id:"endpointBuiltInCorsPropertyRef",type:n.GenericReference,version:"1",entityType:n.Property,entityId:Ar.cors.id},ET={like:!1,inferred:!1,id:"endpointBuiltInCorsPropertyDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!0,entity:se,asType:!1,parent:IT},AT={id:"endpointBuiltInBaseEntityRef",type:n.GenericReference,version:"1",entityType:n.BuiltInBaseEntity,entityId:z.HTTP_ENDPOINT},bT={constant:!1,hidden:!0,required:!0,id:Ar.cors.id,name:"Allowed origins",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!0,implements:null,static:!0,index:0,dataType:ET,defaultValue:{id:"endpointBuiltInCorsPropertyDataTypeDefaultValueId",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.KeyValue,value:["*"],parent:TT,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},description:"The origins that are allowed to access this endpoint, use * for all origins, or http://example.com/* to be as specific as you need.",parent:AT},RT={id:"endpointBuiltInPathPropertyDataTypeRef",type:n.GenericReference,version:"1",entityType:n.ValueDescriptor,entityId:Ar.path.id},DT={id:"endpointBuiltInPathPropertyRef",type:n.GenericReference,version:"1",entityType:n.Property,entityId:Ar.path.id},OT={like:!1,inferred:!1,id:"endpointBuiltInPathPropertyDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:se,asType:!1,parent:DT},PT={id:"endpointBuiltInBaseEntityRefTwo",type:n.GenericReference,version:"1",entityType:n.BuiltInBaseEntity,entityId:z.HTTP_ENDPOINT},Fd={constant:!1,id:Ar.path.id,hidden:!1,required:!0,name:"Path",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!0,implements:null,static:!0,index:1,dataType:OT,defaultValue:{id:"endpointBuiltInPathPropertyDataTypeDefaultValueId",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.String,value:"/",parent:RT,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},description:"Path to the endpoint, for example /api/users, or /api/users/{id}, or /api/users/{id}/:name. The path can contain parameters, which are defined by curly braces, and will be passed to the endpoint event as variables with the same name.",parent:PT},wT={id:"endpointBuiltInMethodPropertyDataTypeRef",type:n.GenericReference,version:"1",entityType:n.ValueDescriptor,entityId:Ar.method.id},CT={id:"endpointBuiltInMethodPropertyRef",type:n.GenericReference,version:"1",entityType:n.Property,entityId:"endpointBuiltInMethodProperty"},VT={like:!1,inferred:!1,id:"endpointBuiltInMethodPropertyDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,entity:tr,isList:!0,asType:!1,options:["GET","POST","PUT","DELETE","PATCH","OPTIONS","HEAD","TRACE","CONNECT","CUSTOM"],parent:CT},BT={id:"endpointBuiltInBaseEntityRefThree",type:n.GenericReference,version:"1",entityType:n.BuiltInBaseEntity,entityId:z.HTTP_ENDPOINT},xd={constant:!1,hidden:!1,required:!0,id:Ar.method.id,name:"Method",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,index:2,implements:null,defaultValue:{id:"endpointBuiltInMethodPropertyDataTypeDefaultValueId",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:"GET",name:L.Enum,parent:wT,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},abstract:!0,static:!0,dataType:VT,description:"The HTTP method that this endpoint will respond to, for example GET, POST, PUT, DELETE, etc.",parent:BT},_T={id:"endpointRequestHeadersVariableDataTypeRef",type:n.GenericReference,version:"1",entityType:n.ValueDescriptor,entityId:"endpointRequestHeadersArgumentDeclaration"},MT={id:"endpointRequestHeadersArgumentDeclarationRef",type:n.GenericReference,version:"1",entityType:n.ArgumentDeclaration,entityId:"endpointRequestHeadersArgumentDeclaration"},NT={like:!1,inferred:!1,id:"endpointRequestHeadersVariableDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!0,entity:Ot,asType:!1,parent:MT},LT={id:"endpointRequestBodyArgumentDeclarationRef",type:n.GenericReference,version:"1",entityType:n.ArgumentDeclaration,entityId:"endpointRequestBodyArgumentDeclaration"},UT={like:!1,inferred:!1,id:"endpointRequestBodyVariableDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,asType:!1,entity:Ot,parent:LT},gT={id:"endpointRequestQueryParamsVariableDataTypeRef",type:n.GenericReference,version:"1",entityType:n.ValueDescriptor,entityId:"endpointRequestQueryParamsArgumentDeclaration"},jT={id:"endpointRequestQueryParamsArgumentDeclarationRef",type:n.GenericReference,version:"1",entityType:n.ArgumentDeclaration,entityId:"endpointRequestQueryParamsArgumentDeclaration"},$T={like:!1,inferred:!1,id:"endpointRequestQueryParamsVariableDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!0,asType:!1,entity:Fn,parent:jT},GT={id:"endpointPathParamsVariableDataTypeRef",type:n.GenericReference,version:"1",entityType:n.ValueDescriptor,entityId:"endpointPathParamsArgumentDeclaration"},FT={id:"endpointPathParamsArgumentDeclarationRef",type:n.GenericReference,version:"1",entityType:n.ArgumentDeclaration,entityId:"endpointPathParamsArgumentDeclaration"},xT={like:!1,inferred:!1,id:"endpointPathParamsVariableDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!0,entity:Fn,asType:!1,parent:FT},kT={id:"endpointReachedTriggerActionDescriptorRef",type:n.GenericReference,version:"1",entityType:n.ActionDescriptor,entityId:gs.handler.id},kd={id:"endpointRequestHeadersArgumentDeclaration",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:"A set of any properties, with names and value that transmit metadata about the request.",type:n.ValueDescriptor,name:"Request headers",dataType:NT,defaultValue:{id:"endpointRequestHeadersVariableDataTypeDefaultValueId",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.KeyValue,value:{},parent:_T,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},required:!0,index:0,parentRelationType:N.FixedArguments,parent:kT},ST={id:"endpointReachedTriggerActionDescriptorRefTwo",type:n.GenericReference,version:"1",entityType:n.ActionDescriptor,entityId:gs.handler.id},Sd={id:"endpointPathParamsArgumentDeclaration",type:n.ValueDescriptor,description:"A standarized text, without spaces that is added at the end of the domain and routes the request to a specific resource within the target server. For example: /api/users/123, /api/users/123/:name, /api/users/123/:name/:age.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Path parameters",dataType:xT,defaultValue:{id:"endpointPathParamsVariableDataTypeDefaultValueId",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.KeyValue,value:[],parent:GT,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},required:!0,index:1,parentRelationType:N.FixedArguments,parent:ST},ZT={id:"endpointReachedTriggerActionDescriptorRefThree",type:n.GenericReference,version:"1",entityType:n.ActionDescriptor,entityId:gs.handler.id},Zd={id:"endpointRequestQueryParamsArgumentDeclaration",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:"A text with standarized format, without spaces that is added at the end of the URL path, after the ? character. It contains data that might be used to process the request. For example: /api/users?name=John&age=30",type:n.ValueDescriptor,name:"Request query params",dataType:$T,defaultValue:{id:"endpointRequestQueryParamsVariableDataTypeDefaultValueId",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.KeyValue,value:[],parent:gT,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},required:!0,index:2,parentRelationType:N.FixedArguments,parent:ZT},qT={id:"endpointReachedTriggerActionDescriptorRefFour",type:n.GenericReference,version:"1",entityType:n.ActionDescriptor,entityId:gs.handler.id},qd={id:"endpointRequestBodyArgumentDeclaration",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:"The main data payload of the request.",type:n.ValueDescriptor,name:"Request body",dataType:UT,defaultValue:null,index:3,required:!0,parentRelationType:N.FixedArguments,parent:qT},JT={id:"endpointResponseCodeReturnDeclarationRef",type:n.GenericReference,version:"1",entityType:n.ReturnDeclaration,entityId:"endpointResponseCodeReturnDeclaration"},WT={like:!1,inferred:!1,id:"9ba575b0-6f8e-436d-a3de-3b843622aa17",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,asType:!1,isList:!1,parent:JT},zT={id:"endpointReturnStatementRef",type:n.GenericReference,version:"1",entityType:n.ActionDescriptor,entityId:"endpointReturnStatement"},Jd={id:"endpointResponseCodeReturnDeclaration",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:"A standarized number that represents the status of the response. 200 for OK, 404 for not found, 500 for server error, etc.",type:n.ValueDescriptor,name:"Response code",dataType:WT,defaultValue:null,required:!0,index:0,parentRelationType:N.FixedReturns,parent:zT},YT={id:"endpointResponseHeadersDataTypeRef",type:n.GenericReference,version:"1",entityType:n.ValueDescriptor,entityId:"endpointResponseHeadersReturnDeclaration"},HT={id:"endpointResponseHeadersReturnDeclarationRef",type:n.GenericReference,version:"1",entityType:n.ReturnDeclaration,entityId:"endpointResponseHeadersReturnDeclaration"},KT={like:!1,inferred:!1,id:"endpointResponseHeadersDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!0,entity:Ot,asType:!1,parent:HT},XT={id:"endpointReturnStatementRefTwo",type:n.GenericReference,version:"1",entityType:n.ActionDescriptor,entityId:"endpointReturnStatement"},Wd={id:"endpointResponseHeadersReturnDeclaration",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:"A set of any properties, with names and value that transmit metadata about the response.",type:n.ValueDescriptor,name:"Response headers",dataType:KT,defaultValue:{id:"endpointResponseHeadersDataTypeDefaultValueId",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.KeyValue,value:{},parent:YT,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},required:!1,index:1,parentRelationType:N.FixedReturns,parent:XT},QT={id:"endpointResponseBodyReturnDeclarationRef",type:n.GenericReference,version:"1",entityType:n.ReturnDeclaration,entityId:"endpointResponseBodyReturnDeclaration"},eI={like:!1,inferred:!1,id:"endpointResponseBodyDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,asType:!1,entity:Ot,parent:QT},tI={id:"endpointReturnStatementRefThree",type:n.GenericReference,version:"1",entityType:n.ActionDescriptor,entityId:"endpointReturnStatement"},zd={id:"endpointResponseBodyReturnDeclaration",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:"The main data payload of the response.",type:n.ValueDescriptor,name:"Response body",dataType:eI,defaultValue:null,required:!1,index:2,parentRelationType:N.FixedReturns,parent:tI},iI={id:"endpointBuiltInBaseEntityRefFour",type:n.GenericReference,version:"1",entityType:n.BuiltInBaseEntity,entityId:z.HTTP_ENDPOINT},Yd={id:gs.handler.id,type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Endpoint reached",description:"Fired when the endpoint is reached.",inputs:[kd,Sd,Zd,qd],outputs:[Jd,Wd,zd],error:null,parent:iI},js={id:z.HTTP_ENDPOINT,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:"An HTTP endpoint that can be reached by a client from the internet.",name:z.HTTP_ENDPOINT,type:n.BuiltInBaseEntity,interactive:!1,abstract:!0,static:!0,properties:[bT,Fd,xd],abstractMethods:[Yd],extends:[],methods:[]},Mt=k[n.BuiltInBaseEntity].BUILT_IN_RELATIONAL_DATABASE_ENTITY,rI={id:"relational-database-built-in-base-entity-identifier-property-data-type-ref-id",type:n.GenericReference,entityId:Mt.properties.identifier.id,version:"1",entityType:n.Property},nI={id:"relational-database-built-in-base-entity-identifier-property-ref-id",type:n.GenericReference,entityId:Mt.properties.identifier.id,version:"1",entityType:n.Property},sI={like:!1,inferred:!1,id:"relational-database-built-in-base-entity-identifier-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:se,asType:!1,parent:nI},qn={id:"relational-database-built-in-base-entity-ref-id",type:n.GenericReference,entityId:z.PERSISTED_ENTITY,version:"1",entityType:n.BuiltInBaseEntity},oo={constant:!1,id:Mt.properties.identifier.id,hidden:!1,required:!0,name:"Identifier name",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!0,static:!0,implements:null,index:0,defaultValue:{id:"relational-database-built-in-base-entity-identifier-property-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.String,value:null,parent:rI,autogeneration:{type:vt.Unique,rangeStart:null,rangeEnd:null},valueAsTypeList:null,valueAsTypeSingle:null},dataType:sI,description:"The name of the main database inside of the server instance where the data will be stored.",parent:qn},Aw={id:"relational-database-built-in-base-entity-username-property-data-type-ref-id",type:n.GenericReference,entityId:"relational-database-built-in-base-entity-username-property-data-type-idd",version:"1",entityType:n.Property},aI={id:"relational-database-built-in-base-entity-username-property-ref-id",type:n.GenericReference,entityId:Mt.properties.username.id,version:"1",entityType:n.Property},oI={like:!1,inferred:!1,id:"relational-database-built-in-base-entity-username-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:se,asType:!1,parent:aI},lo={constant:!1,hidden:!1,required:!0,id:Mt.properties.username.id,name:"Username",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!0,static:!0,implements:null,index:1,defaultValue:{id:"relational-database-built-in-base-entity-username-property-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.String,value:"postgres",parent:{id:"relational-database-built-in-base-entity-username-property-data-type-default-value-parent-ref-id",type:n.GenericReference,entityId:Mt.properties.username.id,version:"1",entityType:n.Property},autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},dataType:oI,description:"The username that will be used to connect to the database.",parent:qn},bw={id:"relational-database-built-in-base-entity-password-property-data-type-ref-id",type:n.GenericReference,entityId:"relational-database-built-in-base-entity-password-property-data-type-id",version:"1",entityType:n.Property},lI={id:"relational-database-built-in-base-entity-password-property-ref-id",type:n.GenericReference,entityId:Mt.properties.password.id,version:"1",entityType:n.Property},dI={like:!1,inferred:!1,id:"relational-database-built-in-base-entity-password-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:se,asType:!1,parent:lI},uo={constant:!1,hidden:!1,required:!0,id:Mt.properties.password.id,name:"Password",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!0,static:!0,implements:null,index:2,defaultValue:null,dataType:dI,description:"The password that will be used to connect to the database.",parent:qn},uI={id:"relational-database-built-in-base-entity-min-size-property-data-type-ref-id",type:n.GenericReference,entityId:Mt.properties.minSize.id,version:"1",entityType:n.Property},pI={id:"relational-database-built-in-base-entity-min-size-property-ref-id",type:n.GenericReference,entityId:Mt.properties.minSize.id,version:"1",entityType:n.Property},cI={like:!1,inferred:!1,id:"relational-database-built-in-base-entity-min-size-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ve,asType:!1,parent:pI},po={constant:!1,hidden:!0,required:!0,id:Mt.properties.minSize.id,name:"Minimum GB size",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!0,static:!0,implements:null,index:3,defaultValue:{id:"relational-database-built-in-base-entity-min-size-property-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.Number,value:6,parent:uI,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},dataType:cI,description:"The minimum size of the database in GB.",parent:qn},fI={id:"relational-database-built-in-base-entity-default-property-data-type-ref-id",type:n.GenericReference,entityId:Mt.properties.default.id,version:"1",entityType:n.Property},yI={id:"relational-database-built-in-base-entity-default-property-ref-id",type:n.GenericReference,entityId:Mt.properties.default.id,version:"1",entityType:n.Property},hI={like:!1,inferred:!1,id:"relational-database-built-in-base-entity-default-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:er,asType:!1,parent:yI},Hd={constant:!1,hidden:!0,required:!0,id:Mt.properties.default.id,name:"Default",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!0,static:!0,implements:null,index:4,defaultValue:{id:"relational-database-built-in-base-entity-default-property-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.Boolean,value:!1,parent:fI,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},dataType:hI,description:"If true, this database will be the default database for the server instance and all the new entities.",parent:qn},mI={id:"relational-database-built-in-base-entity-autoscaling-property-ref-id",type:n.GenericReference,entityId:Mt.properties.autoscaling.id,version:"1",entityType:n.Property},vI={id:"relational-database-built-in-base-entity-autoscaling-property-data-type-ref-id",type:n.GenericReference,entityId:Mt.properties.autoscaling.id,version:"1",entityType:n.Property},TI={like:!1,inferred:!1,id:"relational-database-built-in-base-entity-autoscaling-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:er,asType:!1,parent:mI},II={id:"relational-database-built-in-base-entity-autoscaling-property-parent-ref-id",type:n.GenericReference,entityId:z.PERSISTED_ENTITY,version:"1",entityType:n.BuiltInBaseEntity},Kd={constant:!1,hidden:!0,required:!0,id:Mt.properties.autoscaling.id,name:"Auto-scaling",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!0,static:!0,implements:null,index:4,defaultValue:{id:"relational-database-built-in-base-entity-autoscaling-property-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.Boolean,value:!1,parent:vI,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},dataType:TI,description:"If true, this database will automatically scale up or down in memory size, based on the usage.",parent:II},ji={id:z.RELATIONAL_DATABASE,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:"This entity provisions a relational database in the cloud.",name:z.RELATIONAL_DATABASE,type:n.BuiltInBaseEntity,abstract:!0,static:!0,interactive:!1,properties:[oo,lo,uo,po,Hd,Kd],abstractMethods:[],methods:[],extends:[]},EI={type:n.GenericReference,entityId:"persisted-built-in-base-entity-ref-id",version:"1",entityType:n.BuiltInBaseEntity,id:di.DeletePersistedEntity},Xd={type:n.FunctionDeclaration,id:di.DeletePersistedEntity,name:di.DeletePersistedEntity,description:"Permanently deletes the current copy of an entity from the database",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,parent:EI,inputs:[],calls:[],implements:null,collapsed:!1,index:0,private:!1,x:0,y:0},AI=k[n.BuiltInBaseEntity][z.PERSISTED_ENTITY].properties,Rw={id:"persisted-built-in-base-entity-database-property-data-type-ref-id",type:n.GenericReference,entityId:"persisted-built-in-base-entity-database-property-data-type-id",version:"1",entityType:n.DataType},bI={id:"persisted-built-in-base-entity-database-property-ref-id",type:n.GenericReference,entityId:"persisted-built-in-base-entity-database-property-id",version:"1",entityType:n.Property},RI={like:!1,inferred:!1,id:"persisted-built-in-base-entity-database-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ji,asType:!1,parent:bI},DI={id:"persisted-built-in-base-entity-database-property-parent-ref-id",type:n.GenericReference,entityId:z.PERSISTED_ENTITY,version:"1",entityType:n.BuiltInBaseEntity},Jn={constant:!1,hidden:!0,required:!0,id:AI.database.id,name:"Database",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,defaultValue:null,private:!1,abstract:!0,implements:null,static:!0,index:0,dataType:RI,description:"The database that the entity belongs to.",parent:DI},OI={id:"persisted-built-in-base-entity-primary-key-property-number-data-type-option-parent-ref-id",type:n.GenericReference,entityId:"persisted-built-in-base-entity-primary-key-property-data-type-id",version:"1",entityType:n.DataType},PI={like:!1,inferred:!1,id:"persisted-built-in-base-entity-primary-key-property-number-data-type-option-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ve,asType:!1,parentRelationType:Dt.OrDataTypeGroup,parent:OI},wI={id:"persisted-built-in-base-entity-primary-key-property-string-data-type-option-parent-ref-id",type:n.GenericReference,entityId:"persisted-built-in-base-entity-primary-key-property-data-type-id",version:"1",entityType:n.DataType},CI={like:!1,inferred:!1,id:"persisted-built-in-base-entity-primary-key-property-string-data-type-option-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:se,asType:!1,parentRelationType:Dt.OrDataTypeGroup,parent:wI},VI={id:"persisted-built-in-base-entity-primary-key-property-uuid-data-type-option-parent-ref-id",type:n.GenericReference,entityId:"persisted-built-in-base-entity-primary-key-property-data-type-id",version:"1",entityType:n.DataType},BI={like:!1,inferred:!1,id:"persisted-built-in-base-entity-primary-key-property-uuid-data-type-option-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ir,asType:!1,parentRelationType:Dt.OrDataTypeGroup,parent:VI},_I={id:"persisted-built-in-base-entity-primary-key-property-ref-id",type:n.GenericReference,entityId:"persisted-built-in-base-entity-primary-key-property-id",version:"1",entityType:n.Property},MI={like:!1,inferred:!1,id:"persisted-built-in-base-entity-primary-key-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,andChildrenGroup:null,orChildrenGroup:[BI,CI,PI],isList:!1,entity:null,asType:null,implementationChooseOne:!0,parent:_I},NI={id:"persisted-built-in-base-entity-primary-key-property-parent-ref-id",type:n.GenericReference,entityId:z.PERSISTED_ENTITY,version:"1",entityType:n.BuiltInBaseEntity},Wn={constant:!1,hidden:!1,required:!0,id:AI.primaryKey.id,name:"Primary key",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,defaultValue:null,private:!1,abstract:!0,implements:null,static:!1,index:0,dataType:MI,description:"A property with a unique value for the entity, that can be used to identify the entity among other entities of the same type.",parent:NI},Ct={id:z.PERSISTED_ENTITY,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:"An entity that is permanently stored in the database and can be accessed at any point.",name:z.PERSISTED_ENTITY,type:n.BuiltInBaseEntity,abstract:!0,static:!1,interactive:!0,abstractMethods:[],properties:[Jn,Wn],methods:[Xd],extends:[]},LI={type:n.GenericReference,entityId:"persisted-built-in-base-entity-ref-id",version:"1",entityType:n.BuiltInBaseEntity,id:di.SoftDeletePersistedEntity},Dw={type:n.FunctionDeclaration,id:di.SoftDeletePersistedEntity,name:di.SoftDeletePersistedEntity,description:"Designates the entity as deleted, but does not remove it from the database.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,parent:LI,inputs:[],calls:[],implements:null,collapsed:!1,index:0,private:!1,x:0,y:0},UI={id:"cron-job-triggered-function-declaration-blueprint-parent-ref-id",type:n.GenericReference,version:"1",entityType:n.BuiltInBaseEntity,entityId:z.HTTP_ENDPOINT},Qd={id:"cron-job-triggered-function-declaration-blueprint-id",name:"Cron job triggered",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.ActionDescriptor,description:"Executed when the cron job is triggered",inputs:[],error:null,outputs:[],parent:UI},gI=k[n.BuiltInBaseEntity].BUILT_IN_CRON_JOB_ENTITY,Ow={id:"cron-job-built-in-base-entity-expression-property-data-type-ref",type:n.GenericReference,entityId:"cron-job-built-in-base-entity-expression-property-data-type",version:"1",entityType:n.DataType},jI={id:"cron-job-built-in-base-entity-expression-property-ref",type:n.GenericReference,entityId:gI.properties.expression.id,version:"1",entityType:n.Property},Pw={like:!1,inferred:!1,id:"cron-job-built-in-base-entity-expression-property-data-type",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:se,asType:!1,parent:jI},$I={id:"cron-job-built-in-base-entity-ref",type:n.GenericReference,entityId:z.CRON_JOB,version:"1",entityType:n.BuiltInBaseEntity},GI={constant:!1,hidden:!1,required:!0,id:gI.properties.expression.id,name:"Cron expression",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,defaultValue:null,private:!1,abstract:!0,implements:null,static:!0,index:0,dataType:Pw,description:"The cron-job expression that defines when the cron-job job should be triggered. The expression should be in the format of a cron-job expression.",parent:$I},co={id:z.CRON_JOB,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:"This entity represents a scheduled trigger. The action on this entity will be executed one the time set by the cron-job expression is reached.",name:z.CRON_JOB,type:n.BuiltInBaseEntity,abstract:!0,static:!0,interactive:!1,properties:[GI],methods:[],abstractMethods:[Qd],extends:[]},FI={type:n.GenericReference,id:"execution-built-in-entity-abort-method-parent-ref-id",version:"1",entityType:n.BuiltInBaseEntity,entityId:"execution-built-in-entity-id"},eu={id:"execution-built-in-entity-abort-method-id",type:n.FunctionDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:di.AbortExecution,description:"Aborts the execution of the entity",inputs:[],calls:[],implements:null,private:!1,collapsed:!1,index:null,x:0,y:0,parent:FI},fo={id:z.EXECUTION,type:n.BuiltInBaseEntity,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:z.EXECUTION,description:"A reference to an ongoing execution of any entity that can be called. Eg: Operations, custom trigger calls, etc.",static:!1,abstract:!1,interactive:!0,extends:[],properties:[],methods:[eu],abstractMethods:[]},xI=[js,ji,Ct,co,fo],ww=k[n.Condition]["not-empty"],kI={type:n.GenericReference,id:"not-empty-condition-ref",version:"1",entityType:n.ActionDescriptor,entityId:vi.NotEmpty},SI={id:ww.inputs.leftHand.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Value",description:"The value to check if it is not empty",defaultValue:null,dataType:null,required:!0,parentRelationType:N.FixedArguments,index:0,parent:kI},ln={type:n.ActionDescriptor,id:vi.NotEmpty,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:vi.NotEmpty,description:"Checks if the value is not empty",parent:null,inputs:[SI],outputs:[],error:null},ZI={[vi.NotEmpty]:ln},zn=k[n.Condition]["more-than-or-equal"],qI={type:n.GenericReference,id:"more-than-or-equal-condition-left-hand-argument-data-type-parent-ref",version:"1",entityType:n.ValueDescriptor,entityId:zn.inputs.leftHand.id},JI={type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,id:zn.inputs.leftHand.dataType.id,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,like:!1,isList:!1,inferred:!1,andChildrenGroup:null,orChildrenGroup:null,asType:!1,parent:qI},WI={type:n.GenericReference,id:"more-than-or-equal-condition-left-hand-argument-parent-ref",version:"1",entityType:n.ActionDescriptor,entityId:yt.MoreThanOrEqual},zI={id:zn.inputs.leftHand.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"First value",description:"The first value to compare",defaultValue:null,dataType:JI,required:!0,parentRelationType:N.FixedArguments,index:0,parent:WI},YI={type:n.GenericReference,id:"more-than-or-equal-condition-right-hand-argument-data-type-parent-ref",version:"1",entityType:n.ValueDescriptor,entityId:zn.inputs.rightHand.id},HI={type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,id:zn.inputs.rightHand.dataType.id,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,like:!1,isList:!1,inferred:!1,andChildrenGroup:null,orChildrenGroup:null,asType:!1,parent:YI},KI={type:n.GenericReference,id:"more-than-or-equal-condition-right-hand-argument-parent-ref",version:"1",entityType:n.ActionDescriptor,entityId:yt.MoreThanOrEqual},XI={id:zn.inputs.rightHand.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Second value",description:"The second value to compare",defaultValue:null,dataType:HI,required:!0,parentRelationType:N.FixedArguments,index:1,parent:KI},Yn={type:n.ActionDescriptor,id:yt.MoreThanOrEqual,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:yt.MoreThanOrEqual,description:"Checks if the value is not empty",parent:null,inputs:[zI,XI],outputs:[],error:null},QI={[yt.MoreThanOrEqual]:Yn},eE={...ZI,...QI},tE=Object.values(eE),yo={type:n.ActionDescriptor,id:Qi.PROJECT_PUBLICATION_COMPLETED,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:Qi.PROJECT_PUBLICATION_COMPLETED,description:"The event that is triggered when the project has completed its publication and all its code and resurces are now deployed and ready to be used by the users",parent:null,inputs:[],outputs:[],error:null},iE={[Qi.PROJECT_PUBLICATION_COMPLETED]:yo},rE=Object.values(iE),tu=k[n.ValueDescriptor][Za.ActionOngoingProcessOutputValue],nE={type:n.GenericReference,id:"182f767f-50e8-4394-ba5f-43e78c232733",version:"1",entityType:n.ValueDescriptor,entityId:tu.id},sE={like:!1,inferred:!1,id:tu.dataType.id,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:fo,asType:!1,isList:!1,parent:nE},ho={id:tu.id,type:n.ValueDescriptor,description:"A value that represents the ongoing process of the parent action",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Process",defaultValue:null,dataType:sE,required:!0,index:0,parent:null,parentRelationType:N.OngoingProcessExecution},aE=[ho],oE=[...mf,...C0,...mT,...vT,...xI,...tE,...rE,...aE];var We;(function(r){r.assertEqual=i=>i;function a(i){}r.assertIs=a;function e(i){throw new Error}r.assertNever=e,r.arrayToEnum=i=>{const s={};for(const l of i)s[l]=l;return s},r.getValidEnumValues=i=>{const s=r.objectKeys(i).filter(o=>typeof i[i[o]]!="number"),l={};for(const o of s)l[o]=i[o];return r.objectValues(l)},r.objectValues=i=>r.objectKeys(i).map(function(s){return i[s]}),r.objectKeys=typeof Object.keys=="function"?i=>Object.keys(i):i=>{const s=[];for(const l in i)Object.prototype.hasOwnProperty.call(i,l)&&s.push(l);return s},r.find=(i,s)=>{for(const l of i)if(s(l))return l},r.isInteger=typeof Number.isInteger=="function"?i=>Number.isInteger(i):i=>typeof i=="number"&&isFinite(i)&&Math.floor(i)===i;function t(i,s=" | "){return i.map(l=>typeof l=="string"?`'${l}'`:l).join(s)}r.joinValues=t,r.jsonStringifyReplacer=(i,s)=>typeof s=="bigint"?s.toString():s})(We||(We={}));var iu;(function(r){r.mergeShapes=(a,e)=>({...a,...e})})(iu||(iu={}));const H=We.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),sr=r=>{switch(typeof r){case"undefined":return H.undefined;case"string":return H.string;case"number":return isNaN(r)?H.nan:H.number;case"boolean":return H.boolean;case"function":return H.function;case"bigint":return H.bigint;case"symbol":return H.symbol;case"object":return Array.isArray(r)?H.array:r===null?H.null:r.then&&typeof r.then=="function"&&r.catch&&typeof r.catch=="function"?H.promise:typeof Map<"u"&&r instanceof Map?H.map:typeof Set<"u"&&r instanceof Set?H.set:typeof Date<"u"&&r instanceof Date?H.date:H.object;default:return H.unknown}},S=We.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),Cw=r=>JSON.stringify(r,null,2).replace(/"([^"]+)":/g,"$1:");class ei extends Error{get errors(){return this.issues}constructor(a){super(),this.issues=[],this.addIssue=t=>{this.issues=[...this.issues,t]},this.addIssues=(t=[])=>{this.issues=[...this.issues,...t]};const e=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,e):this.__proto__=e,this.name="ZodError",this.issues=a}format(a){const e=a||function(s){return s.message},t={_errors:[]},i=s=>{for(const l of s.issues)if(l.code==="invalid_union")l.unionErrors.map(i);else if(l.code==="invalid_return_type")i(l.returnTypeError);else if(l.code==="invalid_arguments")i(l.argumentsError);else if(l.path.length===0)t._errors.push(e(l));else{let o=t,d=0;for(;d<l.path.length;){const u=l.path[d];d===l.path.length-1?(o[u]=o[u]||{_errors:[]},o[u]._errors.push(e(l))):o[u]=o[u]||{_errors:[]},o=o[u],d++}}};return i(this),t}static assert(a){if(!(a instanceof ei))throw new Error(`Not a ZodError: ${a}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,We.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(a=e=>e.message){const e={},t=[];for(const i of this.issues)i.path.length>0?(e[i.path[0]]=e[i.path[0]]||[],e[i.path[0]].push(a(i))):t.push(a(i));return{formErrors:t,fieldErrors:e}}get formErrors(){return this.flatten()}}ei.create=r=>new ei(r);const Hn=(r,a)=>{let e;switch(r.code){case S.invalid_type:r.received===H.undefined?e="Required":e=`Expected ${r.expected}, received ${r.received}`;break;case S.invalid_literal:e=`Invalid literal value, expected ${JSON.stringify(r.expected,We.jsonStringifyReplacer)}`;break;case S.unrecognized_keys:e=`Unrecognized key(s) in object: ${We.joinValues(r.keys,", ")}`;break;case S.invalid_union:e="Invalid input";break;case S.invalid_union_discriminator:e=`Invalid discriminator value. Expected ${We.joinValues(r.options)}`;break;case S.invalid_enum_value:e=`Invalid enum value. Expected ${We.joinValues(r.options)}, received '${r.received}'`;break;case S.invalid_arguments:e="Invalid function arguments";break;case S.invalid_return_type:e="Invalid function return type";break;case S.invalid_date:e="Invalid date";break;case S.invalid_string:typeof r.validation=="object"?"includes"in r.validation?(e=`Invalid input: must include "${r.validation.includes}"`,typeof r.validation.position=="number"&&(e=`${e} at one or more positions greater than or equal to ${r.validation.position}`)):"startsWith"in r.validation?e=`Invalid input: must start with "${r.validation.startsWith}"`:"endsWith"in r.validation?e=`Invalid input: must end with "${r.validation.endsWith}"`:We.assertNever(r.validation):r.validation!=="regex"?e=`Invalid ${r.validation}`:e="Invalid";break;case S.too_small:r.type==="array"?e=`Array must contain ${r.exact?"exactly":r.inclusive?"at least":"more than"} ${r.minimum} element(s)`:r.type==="string"?e=`String must contain ${r.exact?"exactly":r.inclusive?"at least":"over"} ${r.minimum} character(s)`:r.type==="number"?e=`Number must be ${r.exact?"exactly equal to ":r.inclusive?"greater than or equal to ":"greater than "}${r.minimum}`:r.type==="date"?e=`Date must be ${r.exact?"exactly equal to ":r.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(r.minimum))}`:e="Invalid input";break;case S.too_big:r.type==="array"?e=`Array must contain ${r.exact?"exactly":r.inclusive?"at most":"less than"} ${r.maximum} element(s)`:r.type==="string"?e=`String must contain ${r.exact?"exactly":r.inclusive?"at most":"under"} ${r.maximum} character(s)`:r.type==="number"?e=`Number must be ${r.exact?"exactly":r.inclusive?"less than or equal to":"less than"} ${r.maximum}`:r.type==="bigint"?e=`BigInt must be ${r.exact?"exactly":r.inclusive?"less than or equal to":"less than"} ${r.maximum}`:r.type==="date"?e=`Date must be ${r.exact?"exactly":r.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(r.maximum))}`:e="Invalid input";break;case S.custom:e="Invalid input";break;case S.invalid_intersection_types:e="Intersection results could not be merged";break;case S.not_multiple_of:e=`Number must be a multiple of ${r.multipleOf}`;break;case S.not_finite:e="Number must be finite";break;default:e=a.defaultError,We.assertNever(r)}return{message:e}};let lE=Hn;function Vw(r){lE=r}function mo(){return lE}const vo=r=>{const{data:a,path:e,errorMaps:t,issueData:i}=r,s=[...e,...i.path||[]],l={...i,path:s};if(i.message!==void 0)return{...i,path:s,message:i.message};let o="";const d=t.filter(u=>!!u).slice().reverse();for(const u of d)o=u(l,{data:a,defaultError:o}).message;return{...i,path:s,message:o}},Bw=[];function W(r,a){const e=mo(),t=vo({issueData:a,data:r.data,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,e,e===Hn?void 0:Hn].filter(i=>!!i)});r.common.issues.push(t)}class Lt{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(a,e){const t=[];for(const i of e){if(i.status==="aborted")return ye;i.status==="dirty"&&a.dirty(),t.push(i.value)}return{status:a.value,value:t}}static async mergeObjectAsync(a,e){const t=[];for(const i of e){const s=await i.key,l=await i.value;t.push({key:s,value:l})}return Lt.mergeObjectSync(a,t)}static mergeObjectSync(a,e){const t={};for(const i of e){const{key:s,value:l}=i;if(s.status==="aborted"||l.status==="aborted")return ye;s.status==="dirty"&&a.dirty(),l.status==="dirty"&&a.dirty(),s.value!=="__proto__"&&(typeof l.value<"u"||i.alwaysSet)&&(t[s.value]=l.value)}return{status:a.value,value:t}}}const ye=Object.freeze({status:"aborted"}),Kn=r=>({status:"dirty",value:r}),qt=r=>({status:"valid",value:r}),ru=r=>r.status==="aborted",nu=r=>r.status==="dirty",dn=r=>r.status==="valid",$s=r=>typeof Promise<"u"&&r instanceof Promise;function To(r,a,e,t){if(e==="a"&&!t)throw new TypeError("Private accessor was defined without a getter");if(typeof a=="function"?r!==a||!t:!a.has(r))throw new TypeError("Cannot read private member from an object whose class did not declare it");return e==="m"?t:e==="a"?t.call(r):t?t.value:a.get(r)}function dE(r,a,e,t,i){if(t==="m")throw new TypeError("Private method is not writable");if(t==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof a=="function"?r!==a||!i:!a.has(r))throw new TypeError("Cannot write private member to an object whose class did not declare it");return t==="a"?i.call(r,e):i?i.value=e:a.set(r,e),e}typeof SuppressedError=="function"&&SuppressedError;var re;(function(r){r.errToObj=a=>typeof a=="string"?{message:a}:a||{},r.toString=a=>typeof a=="string"?a:a==null?void 0:a.message})(re||(re={}));var Gs,Fs;class $i{constructor(a,e,t,i){this._cachedPath=[],this.parent=a,this.data=e,this._path=t,this._key=i}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const uE=(r,a)=>{if(dn(a))return{success:!0,data:a.value};if(!r.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const e=new ei(r.common.issues);return this._error=e,this._error}}};function Te(r){if(!r)return{};const{errorMap:a,invalid_type_error:e,required_error:t,description:i}=r;if(a&&(e||t))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return a?{errorMap:a,description:i}:{errorMap:(l,o)=>{var d,u;const{message:y}=r;return l.code==="invalid_enum_value"?{message:y??o.defaultError}:typeof o.data>"u"?{message:(d=y??t)!==null&&d!==void 0?d:o.defaultError}:l.code!=="invalid_type"?{message:o.defaultError}:{message:(u=y??e)!==null&&u!==void 0?u:o.defaultError}},description:i}}class Ge{get description(){return this._def.description}_getType(a){return sr(a.data)}_getOrReturnCtx(a,e){return e||{common:a.parent.common,data:a.data,parsedType:sr(a.data),schemaErrorMap:this._def.errorMap,path:a.path,parent:a.parent}}_processInputParams(a){return{status:new Lt,ctx:{common:a.parent.common,data:a.data,parsedType:sr(a.data),schemaErrorMap:this._def.errorMap,path:a.path,parent:a.parent}}}_parseSync(a){const e=this._parse(a);if($s(e))throw new Error("Synchronous parse encountered promise.");return e}_parseAsync(a){const e=this._parse(a);return Promise.resolve(e)}parse(a,e){const t=this.safeParse(a,e);if(t.success)return t.data;throw t.error}safeParse(a,e){var t;const i={common:{issues:[],async:(t=e==null?void 0:e.async)!==null&&t!==void 0?t:!1,contextualErrorMap:e==null?void 0:e.errorMap},path:(e==null?void 0:e.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:a,parsedType:sr(a)},s=this._parseSync({data:a,path:i.path,parent:i});return uE(i,s)}"~validate"(a){var e,t;const i={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:a,parsedType:sr(a)};if(!this["~standard"].async)try{const s=this._parseSync({data:a,path:[],parent:i});return dn(s)?{value:s.value}:{issues:i.common.issues}}catch(s){!((t=(e=s==null?void 0:s.message)===null||e===void 0?void 0:e.toLowerCase())===null||t===void 0)&&t.includes("encountered")&&(this["~standard"].async=!0),i.common={issues:[],async:!0}}return this._parseAsync({data:a,path:[],parent:i}).then(s=>dn(s)?{value:s.value}:{issues:i.common.issues})}async parseAsync(a,e){const t=await this.safeParseAsync(a,e);if(t.success)return t.data;throw t.error}async safeParseAsync(a,e){const t={common:{issues:[],contextualErrorMap:e==null?void 0:e.errorMap,async:!0},path:(e==null?void 0:e.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:a,parsedType:sr(a)},i=this._parse({data:a,path:t.path,parent:t}),s=await($s(i)?i:Promise.resolve(i));return uE(t,s)}refine(a,e){const t=i=>typeof e=="string"||typeof e>"u"?{message:e}:typeof e=="function"?e(i):e;return this._refinement((i,s)=>{const l=a(i),o=()=>s.addIssue({code:S.custom,...t(i)});return typeof Promise<"u"&&l instanceof Promise?l.then(d=>d?!0:(o(),!1)):l?!0:(o(),!1)})}refinement(a,e){return this._refinement((t,i)=>a(t)?!0:(i.addIssue(typeof e=="function"?e(t,i):e),!1))}_refinement(a){return new Ci({schema:this,typeName:pe.ZodEffects,effect:{type:"refinement",refinement:a}})}superRefine(a){return this._refinement(a)}constructor(a){this.spa=this.safeParseAsync,this._def=a,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:e=>this["~validate"](e)}}optional(){return Fi.create(this,this._def)}nullable(){return Or.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return wi.create(this)}promise(){return ts.create(this,this._def)}or(a){return Zs.create([this,a],this._def)}and(a){return qs.create(this,a,this._def)}transform(a){return new Ci({...Te(this._def),schema:this,typeName:pe.ZodEffects,effect:{type:"transform",transform:a}})}default(a){const e=typeof a=="function"?a:()=>a;return new Hs({...Te(this._def),innerType:this,defaultValue:e,typeName:pe.ZodDefault})}brand(){return new ou({typeName:pe.ZodBranded,type:this,...Te(this._def)})}catch(a){const e=typeof a=="function"?a:()=>a;return new Ks({...Te(this._def),innerType:this,catchValue:e,typeName:pe.ZodCatch})}describe(a){const e=this.constructor;return new e({...this._def,description:a})}pipe(a){return Xs.create(this,a)}readonly(){return Qs.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const _w=/^c[^\s-]{8,}$/i,Mw=/^[0-9a-z]+$/,Nw=/^[0-9A-HJKMNP-TV-Z]{26}$/i,Lw=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,Uw=/^[a-z0-9_-]{21}$/i,gw=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,jw=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,$w=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,Gw="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let su;const Fw=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,xw=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,kw=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,Sw=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Zw=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,qw=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,pE="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",Jw=new RegExp(`^${pE}$`);function cE(r){let a="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return r.precision?a=`${a}\\.\\d{${r.precision}}`:r.precision==null&&(a=`${a}(\\.\\d+)?`),a}function Ww(r){return new RegExp(`^${cE(r)}$`)}function fE(r){let a=`${pE}T${cE(r)}`;const e=[];return e.push(r.local?"Z?":"Z"),r.offset&&e.push("([+-]\\d{2}:?\\d{2})"),a=`${a}(${e.join("|")})`,new RegExp(`^${a}$`)}function zw(r,a){return!!((a==="v4"||!a)&&Fw.test(r)||(a==="v6"||!a)&&kw.test(r))}function Yw(r,a){if(!gw.test(r))return!1;try{const[e]=r.split("."),t=e.replace(/-/g,"+").replace(/_/g,"/").padEnd(e.length+(4-e.length%4)%4,"="),i=JSON.parse(atob(t));return!(typeof i!="object"||i===null||!i.typ||!i.alg||a&&i.alg!==a)}catch{return!1}}function Hw(r,a){return!!((a==="v4"||!a)&&xw.test(r)||(a==="v6"||!a)&&Sw.test(r))}class Pi extends Ge{_parse(a){if(this._def.coerce&&(a.data=String(a.data)),this._getType(a)!==H.string){const s=this._getOrReturnCtx(a);return W(s,{code:S.invalid_type,expected:H.string,received:s.parsedType}),ye}const t=new Lt;let i;for(const s of this._def.checks)if(s.kind==="min")a.data.length<s.value&&(i=this._getOrReturnCtx(a,i),W(i,{code:S.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),t.dirty());else if(s.kind==="max")a.data.length>s.value&&(i=this._getOrReturnCtx(a,i),W(i,{code:S.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),t.dirty());else if(s.kind==="length"){const l=a.data.length>s.value,o=a.data.length<s.value;(l||o)&&(i=this._getOrReturnCtx(a,i),l?W(i,{code:S.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}):o&&W(i,{code:S.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}),t.dirty())}else if(s.kind==="email")$w.test(a.data)||(i=this._getOrReturnCtx(a,i),W(i,{validation:"email",code:S.invalid_string,message:s.message}),t.dirty());else if(s.kind==="emoji")su||(su=new RegExp(Gw,"u")),su.test(a.data)||(i=this._getOrReturnCtx(a,i),W(i,{validation:"emoji",code:S.invalid_string,message:s.message}),t.dirty());else if(s.kind==="uuid")Lw.test(a.data)||(i=this._getOrReturnCtx(a,i),W(i,{validation:"uuid",code:S.invalid_string,message:s.message}),t.dirty());else if(s.kind==="nanoid")Uw.test(a.data)||(i=this._getOrReturnCtx(a,i),W(i,{validation:"nanoid",code:S.invalid_string,message:s.message}),t.dirty());else if(s.kind==="cuid")_w.test(a.data)||(i=this._getOrReturnCtx(a,i),W(i,{validation:"cuid",code:S.invalid_string,message:s.message}),t.dirty());else if(s.kind==="cuid2")Mw.test(a.data)||(i=this._getOrReturnCtx(a,i),W(i,{validation:"cuid2",code:S.invalid_string,message:s.message}),t.dirty());else if(s.kind==="ulid")Nw.test(a.data)||(i=this._getOrReturnCtx(a,i),W(i,{validation:"ulid",code:S.invalid_string,message:s.message}),t.dirty());else if(s.kind==="url")try{new URL(a.data)}catch{i=this._getOrReturnCtx(a,i),W(i,{validation:"url",code:S.invalid_string,message:s.message}),t.dirty()}else s.kind==="regex"?(s.regex.lastIndex=0,s.regex.test(a.data)||(i=this._getOrReturnCtx(a,i),W(i,{validation:"regex",code:S.invalid_string,message:s.message}),t.dirty())):s.kind==="trim"?a.data=a.data.trim():s.kind==="includes"?a.data.includes(s.value,s.position)||(i=this._getOrReturnCtx(a,i),W(i,{code:S.invalid_string,validation:{includes:s.value,position:s.position},message:s.message}),t.dirty()):s.kind==="toLowerCase"?a.data=a.data.toLowerCase():s.kind==="toUpperCase"?a.data=a.data.toUpperCase():s.kind==="startsWith"?a.data.startsWith(s.value)||(i=this._getOrReturnCtx(a,i),W(i,{code:S.invalid_string,validation:{startsWith:s.value},message:s.message}),t.dirty()):s.kind==="endsWith"?a.data.endsWith(s.value)||(i=this._getOrReturnCtx(a,i),W(i,{code:S.invalid_string,validation:{endsWith:s.value},message:s.message}),t.dirty()):s.kind==="datetime"?fE(s).test(a.data)||(i=this._getOrReturnCtx(a,i),W(i,{code:S.invalid_string,validation:"datetime",message:s.message}),t.dirty()):s.kind==="date"?Jw.test(a.data)||(i=this._getOrReturnCtx(a,i),W(i,{code:S.invalid_string,validation:"date",message:s.message}),t.dirty()):s.kind==="time"?Ww(s).test(a.data)||(i=this._getOrReturnCtx(a,i),W(i,{code:S.invalid_string,validation:"time",message:s.message}),t.dirty()):s.kind==="duration"?jw.test(a.data)||(i=this._getOrReturnCtx(a,i),W(i,{validation:"duration",code:S.invalid_string,message:s.message}),t.dirty()):s.kind==="ip"?zw(a.data,s.version)||(i=this._getOrReturnCtx(a,i),W(i,{validation:"ip",code:S.invalid_string,message:s.message}),t.dirty()):s.kind==="jwt"?Yw(a.data,s.alg)||(i=this._getOrReturnCtx(a,i),W(i,{validation:"jwt",code:S.invalid_string,message:s.message}),t.dirty()):s.kind==="cidr"?Hw(a.data,s.version)||(i=this._getOrReturnCtx(a,i),W(i,{validation:"cidr",code:S.invalid_string,message:s.message}),t.dirty()):s.kind==="base64"?Zw.test(a.data)||(i=this._getOrReturnCtx(a,i),W(i,{validation:"base64",code:S.invalid_string,message:s.message}),t.dirty()):s.kind==="base64url"?qw.test(a.data)||(i=this._getOrReturnCtx(a,i),W(i,{validation:"base64url",code:S.invalid_string,message:s.message}),t.dirty()):We.assertNever(s);return{status:t.value,value:a.data}}_regex(a,e,t){return this.refinement(i=>a.test(i),{validation:e,code:S.invalid_string,...re.errToObj(t)})}_addCheck(a){return new Pi({...this._def,checks:[...this._def.checks,a]})}email(a){return this._addCheck({kind:"email",...re.errToObj(a)})}url(a){return this._addCheck({kind:"url",...re.errToObj(a)})}emoji(a){return this._addCheck({kind:"emoji",...re.errToObj(a)})}uuid(a){return this._addCheck({kind:"uuid",...re.errToObj(a)})}nanoid(a){return this._addCheck({kind:"nanoid",...re.errToObj(a)})}cuid(a){return this._addCheck({kind:"cuid",...re.errToObj(a)})}cuid2(a){return this._addCheck({kind:"cuid2",...re.errToObj(a)})}ulid(a){return this._addCheck({kind:"ulid",...re.errToObj(a)})}base64(a){return this._addCheck({kind:"base64",...re.errToObj(a)})}base64url(a){return this._addCheck({kind:"base64url",...re.errToObj(a)})}jwt(a){return this._addCheck({kind:"jwt",...re.errToObj(a)})}ip(a){return this._addCheck({kind:"ip",...re.errToObj(a)})}cidr(a){return this._addCheck({kind:"cidr",...re.errToObj(a)})}datetime(a){var e,t;return typeof a=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:a}):this._addCheck({kind:"datetime",precision:typeof(a==null?void 0:a.precision)>"u"?null:a==null?void 0:a.precision,offset:(e=a==null?void 0:a.offset)!==null&&e!==void 0?e:!1,local:(t=a==null?void 0:a.local)!==null&&t!==void 0?t:!1,...re.errToObj(a==null?void 0:a.message)})}date(a){return this._addCheck({kind:"date",message:a})}time(a){return typeof a=="string"?this._addCheck({kind:"time",precision:null,message:a}):this._addCheck({kind:"time",precision:typeof(a==null?void 0:a.precision)>"u"?null:a==null?void 0:a.precision,...re.errToObj(a==null?void 0:a.message)})}duration(a){return this._addCheck({kind:"duration",...re.errToObj(a)})}regex(a,e){return this._addCheck({kind:"regex",regex:a,...re.errToObj(e)})}includes(a,e){return this._addCheck({kind:"includes",value:a,position:e==null?void 0:e.position,...re.errToObj(e==null?void 0:e.message)})}startsWith(a,e){return this._addCheck({kind:"startsWith",value:a,...re.errToObj(e)})}endsWith(a,e){return this._addCheck({kind:"endsWith",value:a,...re.errToObj(e)})}min(a,e){return this._addCheck({kind:"min",value:a,...re.errToObj(e)})}max(a,e){return this._addCheck({kind:"max",value:a,...re.errToObj(e)})}length(a,e){return this._addCheck({kind:"length",value:a,...re.errToObj(e)})}nonempty(a){return this.min(1,re.errToObj(a))}trim(){return new Pi({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Pi({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Pi({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(a=>a.kind==="datetime")}get isDate(){return!!this._def.checks.find(a=>a.kind==="date")}get isTime(){return!!this._def.checks.find(a=>a.kind==="time")}get isDuration(){return!!this._def.checks.find(a=>a.kind==="duration")}get isEmail(){return!!this._def.checks.find(a=>a.kind==="email")}get isURL(){return!!this._def.checks.find(a=>a.kind==="url")}get isEmoji(){return!!this._def.checks.find(a=>a.kind==="emoji")}get isUUID(){return!!this._def.checks.find(a=>a.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(a=>a.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(a=>a.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(a=>a.kind==="cuid2")}get isULID(){return!!this._def.checks.find(a=>a.kind==="ulid")}get isIP(){return!!this._def.checks.find(a=>a.kind==="ip")}get isCIDR(){return!!this._def.checks.find(a=>a.kind==="cidr")}get isBase64(){return!!this._def.checks.find(a=>a.kind==="base64")}get isBase64url(){return!!this._def.checks.find(a=>a.kind==="base64url")}get minLength(){let a=null;for(const e of this._def.checks)e.kind==="min"&&(a===null||e.value>a)&&(a=e.value);return a}get maxLength(){let a=null;for(const e of this._def.checks)e.kind==="max"&&(a===null||e.value<a)&&(a=e.value);return a}}Pi.create=r=>{var a;return new Pi({checks:[],typeName:pe.ZodString,coerce:(a=r==null?void 0:r.coerce)!==null&&a!==void 0?a:!1,...Te(r)})};function Kw(r,a){const e=(r.toString().split(".")[1]||"").length,t=(a.toString().split(".")[1]||"").length,i=e>t?e:t,s=parseInt(r.toFixed(i).replace(".","")),l=parseInt(a.toFixed(i).replace(".",""));return s%l/Math.pow(10,i)}class br extends Ge{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(a){if(this._def.coerce&&(a.data=Number(a.data)),this._getType(a)!==H.number){const s=this._getOrReturnCtx(a);return W(s,{code:S.invalid_type,expected:H.number,received:s.parsedType}),ye}let t;const i=new Lt;for(const s of this._def.checks)s.kind==="int"?We.isInteger(a.data)||(t=this._getOrReturnCtx(a,t),W(t,{code:S.invalid_type,expected:"integer",received:"float",message:s.message}),i.dirty()):s.kind==="min"?(s.inclusive?a.data<s.value:a.data<=s.value)&&(t=this._getOrReturnCtx(a,t),W(t,{code:S.too_small,minimum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),i.dirty()):s.kind==="max"?(s.inclusive?a.data>s.value:a.data>=s.value)&&(t=this._getOrReturnCtx(a,t),W(t,{code:S.too_big,maximum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),i.dirty()):s.kind==="multipleOf"?Kw(a.data,s.value)!==0&&(t=this._getOrReturnCtx(a,t),W(t,{code:S.not_multiple_of,multipleOf:s.value,message:s.message}),i.dirty()):s.kind==="finite"?Number.isFinite(a.data)||(t=this._getOrReturnCtx(a,t),W(t,{code:S.not_finite,message:s.message}),i.dirty()):We.assertNever(s);return{status:i.value,value:a.data}}gte(a,e){return this.setLimit("min",a,!0,re.toString(e))}gt(a,e){return this.setLimit("min",a,!1,re.toString(e))}lte(a,e){return this.setLimit("max",a,!0,re.toString(e))}lt(a,e){return this.setLimit("max",a,!1,re.toString(e))}setLimit(a,e,t,i){return new br({...this._def,checks:[...this._def.checks,{kind:a,value:e,inclusive:t,message:re.toString(i)}]})}_addCheck(a){return new br({...this._def,checks:[...this._def.checks,a]})}int(a){return this._addCheck({kind:"int",message:re.toString(a)})}positive(a){return this._addCheck({kind:"min",value:0,inclusive:!1,message:re.toString(a)})}negative(a){return this._addCheck({kind:"max",value:0,inclusive:!1,message:re.toString(a)})}nonpositive(a){return this._addCheck({kind:"max",value:0,inclusive:!0,message:re.toString(a)})}nonnegative(a){return this._addCheck({kind:"min",value:0,inclusive:!0,message:re.toString(a)})}multipleOf(a,e){return this._addCheck({kind:"multipleOf",value:a,message:re.toString(e)})}finite(a){return this._addCheck({kind:"finite",message:re.toString(a)})}safe(a){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:re.toString(a)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:re.toString(a)})}get minValue(){let a=null;for(const e of this._def.checks)e.kind==="min"&&(a===null||e.value>a)&&(a=e.value);return a}get maxValue(){let a=null;for(const e of this._def.checks)e.kind==="max"&&(a===null||e.value<a)&&(a=e.value);return a}get isInt(){return!!this._def.checks.find(a=>a.kind==="int"||a.kind==="multipleOf"&&We.isInteger(a.value))}get isFinite(){let a=null,e=null;for(const t of this._def.checks){if(t.kind==="finite"||t.kind==="int"||t.kind==="multipleOf")return!0;t.kind==="min"?(e===null||t.value>e)&&(e=t.value):t.kind==="max"&&(a===null||t.value<a)&&(a=t.value)}return Number.isFinite(e)&&Number.isFinite(a)}}br.create=r=>new br({checks:[],typeName:pe.ZodNumber,coerce:(r==null?void 0:r.coerce)||!1,...Te(r)});class Rr extends Ge{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(a){if(this._def.coerce)try{a.data=BigInt(a.data)}catch{return this._getInvalidInput(a)}if(this._getType(a)!==H.bigint)return this._getInvalidInput(a);let t;const i=new Lt;for(const s of this._def.checks)s.kind==="min"?(s.inclusive?a.data<s.value:a.data<=s.value)&&(t=this._getOrReturnCtx(a,t),W(t,{code:S.too_small,type:"bigint",minimum:s.value,inclusive:s.inclusive,message:s.message}),i.dirty()):s.kind==="max"?(s.inclusive?a.data>s.value:a.data>=s.value)&&(t=this._getOrReturnCtx(a,t),W(t,{code:S.too_big,type:"bigint",maximum:s.value,inclusive:s.inclusive,message:s.message}),i.dirty()):s.kind==="multipleOf"?a.data%s.value!==BigInt(0)&&(t=this._getOrReturnCtx(a,t),W(t,{code:S.not_multiple_of,multipleOf:s.value,message:s.message}),i.dirty()):We.assertNever(s);return{status:i.value,value:a.data}}_getInvalidInput(a){const e=this._getOrReturnCtx(a);return W(e,{code:S.invalid_type,expected:H.bigint,received:e.parsedType}),ye}gte(a,e){return this.setLimit("min",a,!0,re.toString(e))}gt(a,e){return this.setLimit("min",a,!1,re.toString(e))}lte(a,e){return this.setLimit("max",a,!0,re.toString(e))}lt(a,e){return this.setLimit("max",a,!1,re.toString(e))}setLimit(a,e,t,i){return new Rr({...this._def,checks:[...this._def.checks,{kind:a,value:e,inclusive:t,message:re.toString(i)}]})}_addCheck(a){return new Rr({...this._def,checks:[...this._def.checks,a]})}positive(a){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:re.toString(a)})}negative(a){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:re.toString(a)})}nonpositive(a){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:re.toString(a)})}nonnegative(a){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:re.toString(a)})}multipleOf(a,e){return this._addCheck({kind:"multipleOf",value:a,message:re.toString(e)})}get minValue(){let a=null;for(const e of this._def.checks)e.kind==="min"&&(a===null||e.value>a)&&(a=e.value);return a}get maxValue(){let a=null;for(const e of this._def.checks)e.kind==="max"&&(a===null||e.value<a)&&(a=e.value);return a}}Rr.create=r=>{var a;return new Rr({checks:[],typeName:pe.ZodBigInt,coerce:(a=r==null?void 0:r.coerce)!==null&&a!==void 0?a:!1,...Te(r)})};class xs extends Ge{_parse(a){if(this._def.coerce&&(a.data=!!a.data),this._getType(a)!==H.boolean){const t=this._getOrReturnCtx(a);return W(t,{code:S.invalid_type,expected:H.boolean,received:t.parsedType}),ye}return qt(a.data)}}xs.create=r=>new xs({typeName:pe.ZodBoolean,coerce:(r==null?void 0:r.coerce)||!1,...Te(r)});class un extends Ge{_parse(a){if(this._def.coerce&&(a.data=new Date(a.data)),this._getType(a)!==H.date){const s=this._getOrReturnCtx(a);return W(s,{code:S.invalid_type,expected:H.date,received:s.parsedType}),ye}if(isNaN(a.data.getTime())){const s=this._getOrReturnCtx(a);return W(s,{code:S.invalid_date}),ye}const t=new Lt;let i;for(const s of this._def.checks)s.kind==="min"?a.data.getTime()<s.value&&(i=this._getOrReturnCtx(a,i),W(i,{code:S.too_small,message:s.message,inclusive:!0,exact:!1,minimum:s.value,type:"date"}),t.dirty()):s.kind==="max"?a.data.getTime()>s.value&&(i=this._getOrReturnCtx(a,i),W(i,{code:S.too_big,message:s.message,inclusive:!0,exact:!1,maximum:s.value,type:"date"}),t.dirty()):We.assertNever(s);return{status:t.value,value:new Date(a.data.getTime())}}_addCheck(a){return new un({...this._def,checks:[...this._def.checks,a]})}min(a,e){return this._addCheck({kind:"min",value:a.getTime(),message:re.toString(e)})}max(a,e){return this._addCheck({kind:"max",value:a.getTime(),message:re.toString(e)})}get minDate(){let a=null;for(const e of this._def.checks)e.kind==="min"&&(a===null||e.value>a)&&(a=e.value);return a!=null?new Date(a):null}get maxDate(){let a=null;for(const e of this._def.checks)e.kind==="max"&&(a===null||e.value<a)&&(a=e.value);return a!=null?new Date(a):null}}un.create=r=>new un({checks:[],coerce:(r==null?void 0:r.coerce)||!1,typeName:pe.ZodDate,...Te(r)});class Io extends Ge{_parse(a){if(this._getType(a)!==H.symbol){const t=this._getOrReturnCtx(a);return W(t,{code:S.invalid_type,expected:H.symbol,received:t.parsedType}),ye}return qt(a.data)}}Io.create=r=>new Io({typeName:pe.ZodSymbol,...Te(r)});class ks extends Ge{_parse(a){if(this._getType(a)!==H.undefined){const t=this._getOrReturnCtx(a);return W(t,{code:S.invalid_type,expected:H.undefined,received:t.parsedType}),ye}return qt(a.data)}}ks.create=r=>new ks({typeName:pe.ZodUndefined,...Te(r)});class Ss extends Ge{_parse(a){if(this._getType(a)!==H.null){const t=this._getOrReturnCtx(a);return W(t,{code:S.invalid_type,expected:H.null,received:t.parsedType}),ye}return qt(a.data)}}Ss.create=r=>new Ss({typeName:pe.ZodNull,...Te(r)});class Xn extends Ge{constructor(){super(...arguments),this._any=!0}_parse(a){return qt(a.data)}}Xn.create=r=>new Xn({typeName:pe.ZodAny,...Te(r)});class pn extends Ge{constructor(){super(...arguments),this._unknown=!0}_parse(a){return qt(a.data)}}pn.create=r=>new pn({typeName:pe.ZodUnknown,...Te(r)});class ar extends Ge{_parse(a){const e=this._getOrReturnCtx(a);return W(e,{code:S.invalid_type,expected:H.never,received:e.parsedType}),ye}}ar.create=r=>new ar({typeName:pe.ZodNever,...Te(r)});class Eo extends Ge{_parse(a){if(this._getType(a)!==H.undefined){const t=this._getOrReturnCtx(a);return W(t,{code:S.invalid_type,expected:H.void,received:t.parsedType}),ye}return qt(a.data)}}Eo.create=r=>new Eo({typeName:pe.ZodVoid,...Te(r)});class wi extends Ge{_parse(a){const{ctx:e,status:t}=this._processInputParams(a),i=this._def;if(e.parsedType!==H.array)return W(e,{code:S.invalid_type,expected:H.array,received:e.parsedType}),ye;if(i.exactLength!==null){const l=e.data.length>i.exactLength.value,o=e.data.length<i.exactLength.value;(l||o)&&(W(e,{code:l?S.too_big:S.too_small,minimum:o?i.exactLength.value:void 0,maximum:l?i.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:i.exactLength.message}),t.dirty())}if(i.minLength!==null&&e.data.length<i.minLength.value&&(W(e,{code:S.too_small,minimum:i.minLength.value,type:"array",inclusive:!0,exact:!1,message:i.minLength.message}),t.dirty()),i.maxLength!==null&&e.data.length>i.maxLength.value&&(W(e,{code:S.too_big,maximum:i.maxLength.value,type:"array",inclusive:!0,exact:!1,message:i.maxLength.message}),t.dirty()),e.common.async)return Promise.all([...e.data].map((l,o)=>i.type._parseAsync(new $i(e,l,e.path,o)))).then(l=>Lt.mergeArray(t,l));const s=[...e.data].map((l,o)=>i.type._parseSync(new $i(e,l,e.path,o)));return Lt.mergeArray(t,s)}get element(){return this._def.type}min(a,e){return new wi({...this._def,minLength:{value:a,message:re.toString(e)}})}max(a,e){return new wi({...this._def,maxLength:{value:a,message:re.toString(e)}})}length(a,e){return new wi({...this._def,exactLength:{value:a,message:re.toString(e)}})}nonempty(a){return this.min(1,a)}}wi.create=(r,a)=>new wi({type:r,minLength:null,maxLength:null,exactLength:null,typeName:pe.ZodArray,...Te(a)});function Qn(r){if(r instanceof It){const a={};for(const e in r.shape){const t=r.shape[e];a[e]=Fi.create(Qn(t))}return new It({...r._def,shape:()=>a})}else return r instanceof wi?new wi({...r._def,type:Qn(r.element)}):r instanceof Fi?Fi.create(Qn(r.unwrap())):r instanceof Or?Or.create(Qn(r.unwrap())):r instanceof Gi?Gi.create(r.items.map(a=>Qn(a))):r}class It extends Ge{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const a=this._def.shape(),e=We.objectKeys(a);return this._cached={shape:a,keys:e}}_parse(a){if(this._getType(a)!==H.object){const u=this._getOrReturnCtx(a);return W(u,{code:S.invalid_type,expected:H.object,received:u.parsedType}),ye}const{status:t,ctx:i}=this._processInputParams(a),{shape:s,keys:l}=this._getCached(),o=[];if(!(this._def.catchall instanceof ar&&this._def.unknownKeys==="strip"))for(const u in i.data)l.includes(u)||o.push(u);const d=[];for(const u of l){const y=s[u],c=i.data[u];d.push({key:{status:"valid",value:u},value:y._parse(new $i(i,c,i.path,u)),alwaysSet:u in i.data})}if(this._def.catchall instanceof ar){const u=this._def.unknownKeys;if(u==="passthrough")for(const y of o)d.push({key:{status:"valid",value:y},value:{status:"valid",value:i.data[y]}});else if(u==="strict")o.length>0&&(W(i,{code:S.unrecognized_keys,keys:o}),t.dirty());else if(u!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const u=this._def.catchall;for(const y of o){const c=i.data[y];d.push({key:{status:"valid",value:y},value:u._parse(new $i(i,c,i.path,y)),alwaysSet:y in i.data})}}return i.common.async?Promise.resolve().then(async()=>{const u=[];for(const y of d){const c=await y.key,I=await y.value;u.push({key:c,value:I,alwaysSet:y.alwaysSet})}return u}).then(u=>Lt.mergeObjectSync(t,u)):Lt.mergeObjectSync(t,d)}get shape(){return this._def.shape()}strict(a){return re.errToObj,new It({...this._def,unknownKeys:"strict",...a!==void 0?{errorMap:(e,t)=>{var i,s,l,o;const d=(l=(s=(i=this._def).errorMap)===null||s===void 0?void 0:s.call(i,e,t).message)!==null&&l!==void 0?l:t.defaultError;return e.code==="unrecognized_keys"?{message:(o=re.errToObj(a).message)!==null&&o!==void 0?o:d}:{message:d}}}:{}})}strip(){return new It({...this._def,unknownKeys:"strip"})}passthrough(){return new It({...this._def,unknownKeys:"passthrough"})}extend(a){return new It({...this._def,shape:()=>({...this._def.shape(),...a})})}merge(a){return new It({unknownKeys:a._def.unknownKeys,catchall:a._def.catchall,shape:()=>({...this._def.shape(),...a._def.shape()}),typeName:pe.ZodObject})}setKey(a,e){return this.augment({[a]:e})}catchall(a){return new It({...this._def,catchall:a})}pick(a){const e={};return We.objectKeys(a).forEach(t=>{a[t]&&this.shape[t]&&(e[t]=this.shape[t])}),new It({...this._def,shape:()=>e})}omit(a){const e={};return We.objectKeys(this.shape).forEach(t=>{a[t]||(e[t]=this.shape[t])}),new It({...this._def,shape:()=>e})}deepPartial(){return Qn(this)}partial(a){const e={};return We.objectKeys(this.shape).forEach(t=>{const i=this.shape[t];a&&!a[t]?e[t]=i:e[t]=i.optional()}),new It({...this._def,shape:()=>e})}required(a){const e={};return We.objectKeys(this.shape).forEach(t=>{if(a&&!a[t])e[t]=this.shape[t];else{let s=this.shape[t];for(;s instanceof Fi;)s=s._def.innerType;e[t]=s}}),new It({...this._def,shape:()=>e})}keyof(){return yE(We.objectKeys(this.shape))}}It.create=(r,a)=>new It({shape:()=>r,unknownKeys:"strip",catchall:ar.create(),typeName:pe.ZodObject,...Te(a)}),It.strictCreate=(r,a)=>new It({shape:()=>r,unknownKeys:"strict",catchall:ar.create(),typeName:pe.ZodObject,...Te(a)}),It.lazycreate=(r,a)=>new It({shape:r,unknownKeys:"strip",catchall:ar.create(),typeName:pe.ZodObject,...Te(a)});class Zs extends Ge{_parse(a){const{ctx:e}=this._processInputParams(a),t=this._def.options;function i(s){for(const o of s)if(o.result.status==="valid")return o.result;for(const o of s)if(o.result.status==="dirty")return e.common.issues.push(...o.ctx.common.issues),o.result;const l=s.map(o=>new ei(o.ctx.common.issues));return W(e,{code:S.invalid_union,unionErrors:l}),ye}if(e.common.async)return Promise.all(t.map(async s=>{const l={...e,common:{...e.common,issues:[]},parent:null};return{result:await s._parseAsync({data:e.data,path:e.path,parent:l}),ctx:l}})).then(i);{let s;const l=[];for(const d of t){const u={...e,common:{...e.common,issues:[]},parent:null},y=d._parseSync({data:e.data,path:e.path,parent:u});if(y.status==="valid")return y;y.status==="dirty"&&!s&&(s={result:y,ctx:u}),u.common.issues.length&&l.push(u.common.issues)}if(s)return e.common.issues.push(...s.ctx.common.issues),s.result;const o=l.map(d=>new ei(d));return W(e,{code:S.invalid_union,unionErrors:o}),ye}}get options(){return this._def.options}}Zs.create=(r,a)=>new Zs({options:r,typeName:pe.ZodUnion,...Te(a)});const or=r=>r instanceof Ws?or(r.schema):r instanceof Ci?or(r.innerType()):r instanceof zs?[r.value]:r instanceof Dr?r.options:r instanceof Ys?We.objectValues(r.enum):r instanceof Hs?or(r._def.innerType):r instanceof ks?[void 0]:r instanceof Ss?[null]:r instanceof Fi?[void 0,...or(r.unwrap())]:r instanceof Or?[null,...or(r.unwrap())]:r instanceof ou||r instanceof Qs?or(r.unwrap()):r instanceof Ks?or(r._def.innerType):[];class Ao extends Ge{_parse(a){const{ctx:e}=this._processInputParams(a);if(e.parsedType!==H.object)return W(e,{code:S.invalid_type,expected:H.object,received:e.parsedType}),ye;const t=this.discriminator,i=e.data[t],s=this.optionsMap.get(i);return s?e.common.async?s._parseAsync({data:e.data,path:e.path,parent:e}):s._parseSync({data:e.data,path:e.path,parent:e}):(W(e,{code:S.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[t]}),ye)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(a,e,t){const i=new Map;for(const s of e){const l=or(s.shape[a]);if(!l.length)throw new Error(`A discriminator value for key \`${a}\` could not be extracted from all schema options`);for(const o of l){if(i.has(o))throw new Error(`Discriminator property ${String(a)} has duplicate value ${String(o)}`);i.set(o,s)}}return new Ao({typeName:pe.ZodDiscriminatedUnion,discriminator:a,options:e,optionsMap:i,...Te(t)})}}function au(r,a){const e=sr(r),t=sr(a);if(r===a)return{valid:!0,data:r};if(e===H.object&&t===H.object){const i=We.objectKeys(a),s=We.objectKeys(r).filter(o=>i.indexOf(o)!==-1),l={...r,...a};for(const o of s){const d=au(r[o],a[o]);if(!d.valid)return{valid:!1};l[o]=d.data}return{valid:!0,data:l}}else if(e===H.array&&t===H.array){if(r.length!==a.length)return{valid:!1};const i=[];for(let s=0;s<r.length;s++){const l=r[s],o=a[s],d=au(l,o);if(!d.valid)return{valid:!1};i.push(d.data)}return{valid:!0,data:i}}else return e===H.date&&t===H.date&&+r==+a?{valid:!0,data:r}:{valid:!1}}class qs extends Ge{_parse(a){const{status:e,ctx:t}=this._processInputParams(a),i=(s,l)=>{if(ru(s)||ru(l))return ye;const o=au(s.value,l.value);return o.valid?((nu(s)||nu(l))&&e.dirty(),{status:e.value,value:o.data}):(W(t,{code:S.invalid_intersection_types}),ye)};return t.common.async?Promise.all([this._def.left._parseAsync({data:t.data,path:t.path,parent:t}),this._def.right._parseAsync({data:t.data,path:t.path,parent:t})]).then(([s,l])=>i(s,l)):i(this._def.left._parseSync({data:t.data,path:t.path,parent:t}),this._def.right._parseSync({data:t.data,path:t.path,parent:t}))}}qs.create=(r,a,e)=>new qs({left:r,right:a,typeName:pe.ZodIntersection,...Te(e)});class Gi extends Ge{_parse(a){const{status:e,ctx:t}=this._processInputParams(a);if(t.parsedType!==H.array)return W(t,{code:S.invalid_type,expected:H.array,received:t.parsedType}),ye;if(t.data.length<this._def.items.length)return W(t,{code:S.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),ye;!this._def.rest&&t.data.length>this._def.items.length&&(W(t,{code:S.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),e.dirty());const s=[...t.data].map((l,o)=>{const d=this._def.items[o]||this._def.rest;return d?d._parse(new $i(t,l,t.path,o)):null}).filter(l=>!!l);return t.common.async?Promise.all(s).then(l=>Lt.mergeArray(e,l)):Lt.mergeArray(e,s)}get items(){return this._def.items}rest(a){return new Gi({...this._def,rest:a})}}Gi.create=(r,a)=>{if(!Array.isArray(r))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Gi({items:r,typeName:pe.ZodTuple,rest:null,...Te(a)})};class Js extends Ge{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(a){const{status:e,ctx:t}=this._processInputParams(a);if(t.parsedType!==H.object)return W(t,{code:S.invalid_type,expected:H.object,received:t.parsedType}),ye;const i=[],s=this._def.keyType,l=this._def.valueType;for(const o in t.data)i.push({key:s._parse(new $i(t,o,t.path,o)),value:l._parse(new $i(t,t.data[o],t.path,o)),alwaysSet:o in t.data});return t.common.async?Lt.mergeObjectAsync(e,i):Lt.mergeObjectSync(e,i)}get element(){return this._def.valueType}static create(a,e,t){return e instanceof Ge?new Js({keyType:a,valueType:e,typeName:pe.ZodRecord,...Te(t)}):new Js({keyType:Pi.create(),valueType:a,typeName:pe.ZodRecord,...Te(e)})}}class bo extends Ge{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(a){const{status:e,ctx:t}=this._processInputParams(a);if(t.parsedType!==H.map)return W(t,{code:S.invalid_type,expected:H.map,received:t.parsedType}),ye;const i=this._def.keyType,s=this._def.valueType,l=[...t.data.entries()].map(([o,d],u)=>({key:i._parse(new $i(t,o,t.path,[u,"key"])),value:s._parse(new $i(t,d,t.path,[u,"value"]))}));if(t.common.async){const o=new Map;return Promise.resolve().then(async()=>{for(const d of l){const u=await d.key,y=await d.value;if(u.status==="aborted"||y.status==="aborted")return ye;(u.status==="dirty"||y.status==="dirty")&&e.dirty(),o.set(u.value,y.value)}return{status:e.value,value:o}})}else{const o=new Map;for(const d of l){const u=d.key,y=d.value;if(u.status==="aborted"||y.status==="aborted")return ye;(u.status==="dirty"||y.status==="dirty")&&e.dirty(),o.set(u.value,y.value)}return{status:e.value,value:o}}}}bo.create=(r,a,e)=>new bo({valueType:a,keyType:r,typeName:pe.ZodMap,...Te(e)});class cn extends Ge{_parse(a){const{status:e,ctx:t}=this._processInputParams(a);if(t.parsedType!==H.set)return W(t,{code:S.invalid_type,expected:H.set,received:t.parsedType}),ye;const i=this._def;i.minSize!==null&&t.data.size<i.minSize.value&&(W(t,{code:S.too_small,minimum:i.minSize.value,type:"set",inclusive:!0,exact:!1,message:i.minSize.message}),e.dirty()),i.maxSize!==null&&t.data.size>i.maxSize.value&&(W(t,{code:S.too_big,maximum:i.maxSize.value,type:"set",inclusive:!0,exact:!1,message:i.maxSize.message}),e.dirty());const s=this._def.valueType;function l(d){const u=new Set;for(const y of d){if(y.status==="aborted")return ye;y.status==="dirty"&&e.dirty(),u.add(y.value)}return{status:e.value,value:u}}const o=[...t.data.values()].map((d,u)=>s._parse(new $i(t,d,t.path,u)));return t.common.async?Promise.all(o).then(d=>l(d)):l(o)}min(a,e){return new cn({...this._def,minSize:{value:a,message:re.toString(e)}})}max(a,e){return new cn({...this._def,maxSize:{value:a,message:re.toString(e)}})}size(a,e){return this.min(a,e).max(a,e)}nonempty(a){return this.min(1,a)}}cn.create=(r,a)=>new cn({valueType:r,minSize:null,maxSize:null,typeName:pe.ZodSet,...Te(a)});class es extends Ge{constructor(){super(...arguments),this.validate=this.implement}_parse(a){const{ctx:e}=this._processInputParams(a);if(e.parsedType!==H.function)return W(e,{code:S.invalid_type,expected:H.function,received:e.parsedType}),ye;function t(o,d){return vo({data:o,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,mo(),Hn].filter(u=>!!u),issueData:{code:S.invalid_arguments,argumentsError:d}})}function i(o,d){return vo({data:o,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,mo(),Hn].filter(u=>!!u),issueData:{code:S.invalid_return_type,returnTypeError:d}})}const s={errorMap:e.common.contextualErrorMap},l=e.data;if(this._def.returns instanceof ts){const o=this;return qt(async function(...d){const u=new ei([]),y=await o._def.args.parseAsync(d,s).catch(E=>{throw u.addIssue(t(d,E)),u}),c=await Reflect.apply(l,this,y);return await o._def.returns._def.type.parseAsync(c,s).catch(E=>{throw u.addIssue(i(c,E)),u})})}else{const o=this;return qt(function(...d){const u=o._def.args.safeParse(d,s);if(!u.success)throw new ei([t(d,u.error)]);const y=Reflect.apply(l,this,u.data),c=o._def.returns.safeParse(y,s);if(!c.success)throw new ei([i(y,c.error)]);return c.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...a){return new es({...this._def,args:Gi.create(a).rest(pn.create())})}returns(a){return new es({...this._def,returns:a})}implement(a){return this.parse(a)}strictImplement(a){return this.parse(a)}static create(a,e,t){return new es({args:a||Gi.create([]).rest(pn.create()),returns:e||pn.create(),typeName:pe.ZodFunction,...Te(t)})}}class Ws extends Ge{get schema(){return this._def.getter()}_parse(a){const{ctx:e}=this._processInputParams(a);return this._def.getter()._parse({data:e.data,path:e.path,parent:e})}}Ws.create=(r,a)=>new Ws({getter:r,typeName:pe.ZodLazy,...Te(a)});class zs extends Ge{_parse(a){if(a.data!==this._def.value){const e=this._getOrReturnCtx(a);return W(e,{received:e.data,code:S.invalid_literal,expected:this._def.value}),ye}return{status:"valid",value:a.data}}get value(){return this._def.value}}zs.create=(r,a)=>new zs({value:r,typeName:pe.ZodLiteral,...Te(a)});function yE(r,a){return new Dr({values:r,typeName:pe.ZodEnum,...Te(a)})}class Dr extends Ge{constructor(){super(...arguments),Gs.set(this,void 0)}_parse(a){if(typeof a.data!="string"){const e=this._getOrReturnCtx(a),t=this._def.values;return W(e,{expected:We.joinValues(t),received:e.parsedType,code:S.invalid_type}),ye}if(To(this,Gs,"f")||dE(this,Gs,new Set(this._def.values),"f"),!To(this,Gs,"f").has(a.data)){const e=this._getOrReturnCtx(a),t=this._def.values;return W(e,{received:e.data,code:S.invalid_enum_value,options:t}),ye}return qt(a.data)}get options(){return this._def.values}get enum(){const a={};for(const e of this._def.values)a[e]=e;return a}get Values(){const a={};for(const e of this._def.values)a[e]=e;return a}get Enum(){const a={};for(const e of this._def.values)a[e]=e;return a}extract(a,e=this._def){return Dr.create(a,{...this._def,...e})}exclude(a,e=this._def){return Dr.create(this.options.filter(t=>!a.includes(t)),{...this._def,...e})}}Gs=new WeakMap,Dr.create=yE;class Ys extends Ge{constructor(){super(...arguments),Fs.set(this,void 0)}_parse(a){const e=We.getValidEnumValues(this._def.values),t=this._getOrReturnCtx(a);if(t.parsedType!==H.string&&t.parsedType!==H.number){const i=We.objectValues(e);return W(t,{expected:We.joinValues(i),received:t.parsedType,code:S.invalid_type}),ye}if(To(this,Fs,"f")||dE(this,Fs,new Set(We.getValidEnumValues(this._def.values)),"f"),!To(this,Fs,"f").has(a.data)){const i=We.objectValues(e);return W(t,{received:t.data,code:S.invalid_enum_value,options:i}),ye}return qt(a.data)}get enum(){return this._def.values}}Fs=new WeakMap,Ys.create=(r,a)=>new Ys({values:r,typeName:pe.ZodNativeEnum,...Te(a)});class ts extends Ge{unwrap(){return this._def.type}_parse(a){const{ctx:e}=this._processInputParams(a);if(e.parsedType!==H.promise&&e.common.async===!1)return W(e,{code:S.invalid_type,expected:H.promise,received:e.parsedType}),ye;const t=e.parsedType===H.promise?e.data:Promise.resolve(e.data);return qt(t.then(i=>this._def.type.parseAsync(i,{path:e.path,errorMap:e.common.contextualErrorMap})))}}ts.create=(r,a)=>new ts({type:r,typeName:pe.ZodPromise,...Te(a)});class Ci extends Ge{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===pe.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(a){const{status:e,ctx:t}=this._processInputParams(a),i=this._def.effect||null,s={addIssue:l=>{W(t,l),l.fatal?e.abort():e.dirty()},get path(){return t.path}};if(s.addIssue=s.addIssue.bind(s),i.type==="preprocess"){const l=i.transform(t.data,s);if(t.common.async)return Promise.resolve(l).then(async o=>{if(e.value==="aborted")return ye;const d=await this._def.schema._parseAsync({data:o,path:t.path,parent:t});return d.status==="aborted"?ye:d.status==="dirty"||e.value==="dirty"?Kn(d.value):d});{if(e.value==="aborted")return ye;const o=this._def.schema._parseSync({data:l,path:t.path,parent:t});return o.status==="aborted"?ye:o.status==="dirty"||e.value==="dirty"?Kn(o.value):o}}if(i.type==="refinement"){const l=o=>{const d=i.refinement(o,s);if(t.common.async)return Promise.resolve(d);if(d instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return o};if(t.common.async===!1){const o=this._def.schema._parseSync({data:t.data,path:t.path,parent:t});return o.status==="aborted"?ye:(o.status==="dirty"&&e.dirty(),l(o.value),{status:e.value,value:o.value})}else return this._def.schema._parseAsync({data:t.data,path:t.path,parent:t}).then(o=>o.status==="aborted"?ye:(o.status==="dirty"&&e.dirty(),l(o.value).then(()=>({status:e.value,value:o.value}))))}if(i.type==="transform")if(t.common.async===!1){const l=this._def.schema._parseSync({data:t.data,path:t.path,parent:t});if(!dn(l))return l;const o=i.transform(l.value,s);if(o instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:e.value,value:o}}else return this._def.schema._parseAsync({data:t.data,path:t.path,parent:t}).then(l=>dn(l)?Promise.resolve(i.transform(l.value,s)).then(o=>({status:e.value,value:o})):l);We.assertNever(i)}}Ci.create=(r,a,e)=>new Ci({schema:r,typeName:pe.ZodEffects,effect:a,...Te(e)}),Ci.createWithPreprocess=(r,a,e)=>new Ci({schema:a,effect:{type:"preprocess",transform:r},typeName:pe.ZodEffects,...Te(e)});class Fi extends Ge{_parse(a){return this._getType(a)===H.undefined?qt(void 0):this._def.innerType._parse(a)}unwrap(){return this._def.innerType}}Fi.create=(r,a)=>new Fi({innerType:r,typeName:pe.ZodOptional,...Te(a)});class Or extends Ge{_parse(a){return this._getType(a)===H.null?qt(null):this._def.innerType._parse(a)}unwrap(){return this._def.innerType}}Or.create=(r,a)=>new Or({innerType:r,typeName:pe.ZodNullable,...Te(a)});class Hs extends Ge{_parse(a){const{ctx:e}=this._processInputParams(a);let t=e.data;return e.parsedType===H.undefined&&(t=this._def.defaultValue()),this._def.innerType._parse({data:t,path:e.path,parent:e})}removeDefault(){return this._def.innerType}}Hs.create=(r,a)=>new Hs({innerType:r,typeName:pe.ZodDefault,defaultValue:typeof a.default=="function"?a.default:()=>a.default,...Te(a)});class Ks extends Ge{_parse(a){const{ctx:e}=this._processInputParams(a),t={...e,common:{...e.common,issues:[]}},i=this._def.innerType._parse({data:t.data,path:t.path,parent:{...t}});return $s(i)?i.then(s=>({status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new ei(t.common.issues)},input:t.data})})):{status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new ei(t.common.issues)},input:t.data})}}removeCatch(){return this._def.innerType}}Ks.create=(r,a)=>new Ks({innerType:r,typeName:pe.ZodCatch,catchValue:typeof a.catch=="function"?a.catch:()=>a.catch,...Te(a)});class Ro extends Ge{_parse(a){if(this._getType(a)!==H.nan){const t=this._getOrReturnCtx(a);return W(t,{code:S.invalid_type,expected:H.nan,received:t.parsedType}),ye}return{status:"valid",value:a.data}}}Ro.create=r=>new Ro({typeName:pe.ZodNaN,...Te(r)});const Xw=Symbol("zod_brand");class ou extends Ge{_parse(a){const{ctx:e}=this._processInputParams(a),t=e.data;return this._def.type._parse({data:t,path:e.path,parent:e})}unwrap(){return this._def.type}}class Xs extends Ge{_parse(a){const{status:e,ctx:t}=this._processInputParams(a);if(t.common.async)return(async()=>{const s=await this._def.in._parseAsync({data:t.data,path:t.path,parent:t});return s.status==="aborted"?ye:s.status==="dirty"?(e.dirty(),Kn(s.value)):this._def.out._parseAsync({data:s.value,path:t.path,parent:t})})();{const i=this._def.in._parseSync({data:t.data,path:t.path,parent:t});return i.status==="aborted"?ye:i.status==="dirty"?(e.dirty(),{status:"dirty",value:i.value}):this._def.out._parseSync({data:i.value,path:t.path,parent:t})}}static create(a,e){return new Xs({in:a,out:e,typeName:pe.ZodPipeline})}}class Qs extends Ge{_parse(a){const e=this._def.innerType._parse(a),t=i=>(dn(i)&&(i.value=Object.freeze(i.value)),i);return $s(e)?e.then(i=>t(i)):t(e)}unwrap(){return this._def.innerType}}Qs.create=(r,a)=>new Qs({innerType:r,typeName:pe.ZodReadonly,...Te(a)});function hE(r,a={},e){return r?Xn.create().superRefine((t,i)=>{var s,l;if(!r(t)){const o=typeof a=="function"?a(t):typeof a=="string"?{message:a}:a,d=(l=(s=o.fatal)!==null&&s!==void 0?s:e)!==null&&l!==void 0?l:!0,u=typeof o=="string"?{message:o}:o;i.addIssue({code:"custom",...u,fatal:d})}}):Xn.create()}const Qw={object:It.lazycreate};var pe;(function(r){r.ZodString="ZodString",r.ZodNumber="ZodNumber",r.ZodNaN="ZodNaN",r.ZodBigInt="ZodBigInt",r.ZodBoolean="ZodBoolean",r.ZodDate="ZodDate",r.ZodSymbol="ZodSymbol",r.ZodUndefined="ZodUndefined",r.ZodNull="ZodNull",r.ZodAny="ZodAny",r.ZodUnknown="ZodUnknown",r.ZodNever="ZodNever",r.ZodVoid="ZodVoid",r.ZodArray="ZodArray",r.ZodObject="ZodObject",r.ZodUnion="ZodUnion",r.ZodDiscriminatedUnion="ZodDiscriminatedUnion",r.ZodIntersection="ZodIntersection",r.ZodTuple="ZodTuple",r.ZodRecord="ZodRecord",r.ZodMap="ZodMap",r.ZodSet="ZodSet",r.ZodFunction="ZodFunction",r.ZodLazy="ZodLazy",r.ZodLiteral="ZodLiteral",r.ZodEnum="ZodEnum",r.ZodEffects="ZodEffects",r.ZodNativeEnum="ZodNativeEnum",r.ZodOptional="ZodOptional",r.ZodNullable="ZodNullable",r.ZodDefault="ZodDefault",r.ZodCatch="ZodCatch",r.ZodPromise="ZodPromise",r.ZodBranded="ZodBranded",r.ZodPipeline="ZodPipeline",r.ZodReadonly="ZodReadonly"})(pe||(pe={}));const eC=(r,a={message:`Input not instance of ${r.name}`})=>hE(e=>e instanceof r,a),Do=Pi.create,lu=br.create,tC=Ro.create,iC=Rr.create,du=xs.create,mE=un.create,rC=Io.create,nC=ks.create,vE=Ss.create,sC=Xn.create,Oo=pn.create,aC=ar.create,oC=Eo.create,lC=wi.create,TE=It.create,dC=It.strictCreate,uC=Zs.create,pC=Ao.create,cC=qs.create,fC=Gi.create,IE=Js.create,yC=bo.create,hC=cn.create,mC=es.create,vC=Ws.create,TC=zs.create,EE=Dr.create,IC=Ys.create,EC=ts.create,AE=Ci.create,AC=Fi.create,bC=Or.create,RC=Ci.createWithPreprocess,DC=Xs.create;var v=Object.freeze({__proto__:null,defaultErrorMap:Hn,setErrorMap:Vw,getErrorMap:mo,makeIssue:vo,EMPTY_PATH:Bw,addIssueToContext:W,ParseStatus:Lt,INVALID:ye,DIRTY:Kn,OK:qt,isAborted:ru,isDirty:nu,isValid:dn,isAsync:$s,get util(){return We},get objectUtil(){return iu},ZodParsedType:H,getParsedType:sr,ZodType:Ge,datetimeRegex:fE,ZodString:Pi,ZodNumber:br,ZodBigInt:Rr,ZodBoolean:xs,ZodDate:un,ZodSymbol:Io,ZodUndefined:ks,ZodNull:Ss,ZodAny:Xn,ZodUnknown:pn,ZodNever:ar,ZodVoid:Eo,ZodArray:wi,ZodObject:It,ZodUnion:Zs,ZodDiscriminatedUnion:Ao,ZodIntersection:qs,ZodTuple:Gi,ZodRecord:Js,ZodMap:bo,ZodSet:cn,ZodFunction:es,ZodLazy:Ws,ZodLiteral:zs,ZodEnum:Dr,ZodNativeEnum:Ys,ZodPromise:ts,ZodEffects:Ci,ZodTransformer:Ci,ZodOptional:Fi,ZodNullable:Or,ZodDefault:Hs,ZodCatch:Ks,ZodNaN:Ro,BRAND:Xw,ZodBranded:ou,ZodPipeline:Xs,ZodReadonly:Qs,custom:hE,Schema:Ge,ZodSchema:Ge,late:Qw,get ZodFirstPartyTypeKind(){return pe},coerce:{string:r=>Pi.create({...r,coerce:!0}),number:r=>br.create({...r,coerce:!0}),boolean:r=>xs.create({...r,coerce:!0}),bigint:r=>Rr.create({...r,coerce:!0}),date:r=>un.create({...r,coerce:!0})},any:sC,array:lC,bigint:iC,boolean:du,date:mE,discriminatedUnion:pC,effect:AE,enum:EE,function:mC,instanceof:eC,intersection:cC,lazy:vC,literal:TC,map:yC,nan:tC,nativeEnum:IC,never:aC,null:vE,nullable:bC,number:lu,object:TE,oboolean:()=>du().optional(),onumber:()=>lu().optional(),optional:AC,ostring:()=>Do().optional(),pipeline:DC,preprocess:RC,promise:EC,record:IE,set:hC,strictObject:dC,string:Do,symbol:rC,transformer:AE,tuple:fC,undefined:nC,union:uC,unknown:Oo,void:oC,NEVER:ye,ZodIssueCode:S,quotelessJson:Cw,ZodError:ei});function bE(r){var i,s,l;if(!(r!=null&&r.dataType))return Oo();const a=!r.required,e=r.dataType.isList||!1;let t=Oo();if(((i=r.dataType.entity)==null?void 0:i.type)===n.PrimitiveEntity)switch(r.dataType.entity.name){case L.String:t=Do();break;case L.KeyValue:t=IE(Oo());break;case L.Number:t=lu();break;case L.Boolean:t=du();break;case L.Date:t=mE();break;case L.Enum:{const o=r.dataType.options||[];if(o.length===0)throw new Error(`Enum property ${r.name} has no options`);t=EE(o);break}case L.Null:t=vE();break;case L.UUID:t=Do().uuid();break}else if(((s=r.dataType.entity)==null?void 0:s.type)===n.DefinitionEntity)t=RE(r.dataType.entity);else throw new Error(`Unsupported data type validation: ${(l=r.dataType.entity)==null?void 0:l.type}`);return a&&(t=t.nullable()),e&&(t=t.array()),t}function RE(r){const a=TE({});for(const e of r.properties){const t=bE(e);a.shape[e.name]=t}return a}function DE(r){const a=r.rangeStart;return new Date(a.getTime()+Math.random()*(Date.now()-a.getTime()))}function OE(r){const a=r.rangeEnd;return new Date(Math.random()*a.getTime())}function PE(r){const a=r.rangeStart,e=r.rangeEnd;return new Date(a.getTime()+Math.random()*(e.getTime()-a.getTime()))}function wE(r){return r.rangeStart&&r.rangeEnd?PE(r):r.rangeStart?DE(r):r.rangeEnd?OE(r):new Date}var OC=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function CE(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var VE={},Po={},wo={};Object.defineProperty(wo,"__esModule",{value:!0}),wo.default=wC;let Co;const PC=new Uint8Array(16);function wC(){if(!Co&&(Co=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Co))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Co(PC)}var Pr={},fn={},Vo={};Object.defineProperty(Vo,"__esModule",{value:!0}),Vo.default=void 0;var CC=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;Vo.default=CC,Object.defineProperty(fn,"__esModule",{value:!0}),fn.default=void 0;var VC=BC(Vo);function BC(r){return r&&r.__esModule?r:{default:r}}function _C(r){return typeof r=="string"&&VC.default.test(r)}var MC=_C;fn.default=MC,Object.defineProperty(Pr,"__esModule",{value:!0}),Pr.default=void 0,Pr.unsafeStringify=BE;var NC=LC(fn);function LC(r){return r&&r.__esModule?r:{default:r}}const Nt=[];for(let r=0;r<256;++r)Nt.push((r+256).toString(16).slice(1));function BE(r,a=0){return Nt[r[a+0]]+Nt[r[a+1]]+Nt[r[a+2]]+Nt[r[a+3]]+"-"+Nt[r[a+4]]+Nt[r[a+5]]+"-"+Nt[r[a+6]]+Nt[r[a+7]]+"-"+Nt[r[a+8]]+Nt[r[a+9]]+"-"+Nt[r[a+10]]+Nt[r[a+11]]+Nt[r[a+12]]+Nt[r[a+13]]+Nt[r[a+14]]+Nt[r[a+15]]}function UC(r,a=0){const e=BE(r,a);if(!(0,NC.default)(e))throw TypeError("Stringified UUID is invalid");return e}var gC=UC;Pr.default=gC,Object.defineProperty(Po,"__esModule",{value:!0}),Po.default=void 0;var jC=GC(wo),$C=Pr;function GC(r){return r&&r.__esModule?r:{default:r}}let _E,uu,pu=0,cu=0;function FC(r,a,e){let t=a&&e||0;const i=a||new Array(16);r=r||{};let s=r.node||_E,l=r.clockseq!==void 0?r.clockseq:uu;if(s==null||l==null){const I=r.random||(r.rng||jC.default)();s==null&&(s=_E=[I[0]|1,I[1],I[2],I[3],I[4],I[5]]),l==null&&(l=uu=(I[6]<<8|I[7])&16383)}let o=r.msecs!==void 0?r.msecs:Date.now(),d=r.nsecs!==void 0?r.nsecs:cu+1;const u=o-pu+(d-cu)/1e4;if(u<0&&r.clockseq===void 0&&(l=l+1&16383),(u<0||o>pu)&&r.nsecs===void 0&&(d=0),d>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");pu=o,cu=d,uu=l,o+=122192928e5;const y=((o&268435455)*1e4+d)%4294967296;i[t++]=y>>>24&255,i[t++]=y>>>16&255,i[t++]=y>>>8&255,i[t++]=y&255;const c=o/4294967296*1e4&268435455;i[t++]=c>>>8&255,i[t++]=c&255,i[t++]=c>>>24&15|16,i[t++]=c>>>16&255,i[t++]=l>>>8|128,i[t++]=l&255;for(let I=0;I<6;++I)i[t+I]=s[I];return a||(0,$C.unsafeStringify)(i)}var xC=FC;Po.default=xC;var Bo={},wr={},ea={};Object.defineProperty(ea,"__esModule",{value:!0}),ea.default=void 0;var kC=SC(fn);function SC(r){return r&&r.__esModule?r:{default:r}}function ZC(r){if(!(0,kC.default)(r))throw TypeError("Invalid UUID");let a;const e=new Uint8Array(16);return e[0]=(a=parseInt(r.slice(0,8),16))>>>24,e[1]=a>>>16&255,e[2]=a>>>8&255,e[3]=a&255,e[4]=(a=parseInt(r.slice(9,13),16))>>>8,e[5]=a&255,e[6]=(a=parseInt(r.slice(14,18),16))>>>8,e[7]=a&255,e[8]=(a=parseInt(r.slice(19,23),16))>>>8,e[9]=a&255,e[10]=(a=parseInt(r.slice(24,36),16))/1099511627776&255,e[11]=a/4294967296&255,e[12]=a>>>24&255,e[13]=a>>>16&255,e[14]=a>>>8&255,e[15]=a&255,e}var qC=ZC;ea.default=qC,Object.defineProperty(wr,"__esModule",{value:!0}),wr.URL=wr.DNS=void 0,wr.default=HC;var JC=Pr,WC=zC(ea);function zC(r){return r&&r.__esModule?r:{default:r}}function YC(r){r=unescape(encodeURIComponent(r));const a=[];for(let e=0;e<r.length;++e)a.push(r.charCodeAt(e));return a}const ME="6ba7b810-9dad-11d1-80b4-00c04fd430c8";wr.DNS=ME;const NE="6ba7b811-9dad-11d1-80b4-00c04fd430c8";wr.URL=NE;function HC(r,a,e){function t(i,s,l,o){var d;if(typeof i=="string"&&(i=YC(i)),typeof s=="string"&&(s=(0,WC.default)(s)),((d=s)===null||d===void 0?void 0:d.length)!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let u=new Uint8Array(16+i.length);if(u.set(s),u.set(i,s.length),u=e(u),u[6]=u[6]&15|a,u[8]=u[8]&63|128,l){o=o||0;for(let y=0;y<16;++y)l[o+y]=u[y];return l}return(0,JC.unsafeStringify)(u)}try{t.name=r}catch{}return t.DNS=ME,t.URL=NE,t}var _o={};Object.defineProperty(_o,"__esModule",{value:!0}),_o.default=void 0;function KC(r){if(typeof r=="string"){const a=unescape(encodeURIComponent(r));r=new Uint8Array(a.length);for(let e=0;e<a.length;++e)r[e]=a.charCodeAt(e)}return XC(QC(eV(r),r.length*8))}function XC(r){const a=[],e=r.length*32,t="0123456789abcdef";for(let i=0;i<e;i+=8){const s=r[i>>5]>>>i%32&255,l=parseInt(t.charAt(s>>>4&15)+t.charAt(s&15),16);a.push(l)}return a}function LE(r){return(r+64>>>9<<4)+14+1}function QC(r,a){r[a>>5]|=128<<a%32,r[LE(a)-1]=a;let e=1732584193,t=-271733879,i=-1732584194,s=271733878;for(let l=0;l<r.length;l+=16){const o=e,d=t,u=i,y=s;e=Ut(e,t,i,s,r[l],7,-680876936),s=Ut(s,e,t,i,r[l+1],12,-389564586),i=Ut(i,s,e,t,r[l+2],17,606105819),t=Ut(t,i,s,e,r[l+3],22,-1044525330),e=Ut(e,t,i,s,r[l+4],7,-176418897),s=Ut(s,e,t,i,r[l+5],12,1200080426),i=Ut(i,s,e,t,r[l+6],17,-1473231341),t=Ut(t,i,s,e,r[l+7],22,-45705983),e=Ut(e,t,i,s,r[l+8],7,1770035416),s=Ut(s,e,t,i,r[l+9],12,-1958414417),i=Ut(i,s,e,t,r[l+10],17,-42063),t=Ut(t,i,s,e,r[l+11],22,-1990404162),e=Ut(e,t,i,s,r[l+12],7,1804603682),s=Ut(s,e,t,i,r[l+13],12,-40341101),i=Ut(i,s,e,t,r[l+14],17,-1502002290),t=Ut(t,i,s,e,r[l+15],22,1236535329),e=gt(e,t,i,s,r[l+1],5,-165796510),s=gt(s,e,t,i,r[l+6],9,-1069501632),i=gt(i,s,e,t,r[l+11],14,643717713),t=gt(t,i,s,e,r[l],20,-373897302),e=gt(e,t,i,s,r[l+5],5,-701558691),s=gt(s,e,t,i,r[l+10],9,38016083),i=gt(i,s,e,t,r[l+15],14,-660478335),t=gt(t,i,s,e,r[l+4],20,-405537848),e=gt(e,t,i,s,r[l+9],5,568446438),s=gt(s,e,t,i,r[l+14],9,-1019803690),i=gt(i,s,e,t,r[l+3],14,-187363961),t=gt(t,i,s,e,r[l+8],20,1163531501),e=gt(e,t,i,s,r[l+13],5,-1444681467),s=gt(s,e,t,i,r[l+2],9,-51403784),i=gt(i,s,e,t,r[l+7],14,1735328473),t=gt(t,i,s,e,r[l+12],20,-1926607734),e=jt(e,t,i,s,r[l+5],4,-378558),s=jt(s,e,t,i,r[l+8],11,-2022574463),i=jt(i,s,e,t,r[l+11],16,1839030562),t=jt(t,i,s,e,r[l+14],23,-35309556),e=jt(e,t,i,s,r[l+1],4,-1530992060),s=jt(s,e,t,i,r[l+4],11,1272893353),i=jt(i,s,e,t,r[l+7],16,-155497632),t=jt(t,i,s,e,r[l+10],23,-1094730640),e=jt(e,t,i,s,r[l+13],4,681279174),s=jt(s,e,t,i,r[l],11,-358537222),i=jt(i,s,e,t,r[l+3],16,-722521979),t=jt(t,i,s,e,r[l+6],23,76029189),e=jt(e,t,i,s,r[l+9],4,-640364487),s=jt(s,e,t,i,r[l+12],11,-421815835),i=jt(i,s,e,t,r[l+15],16,530742520),t=jt(t,i,s,e,r[l+2],23,-995338651),e=$t(e,t,i,s,r[l],6,-198630844),s=$t(s,e,t,i,r[l+7],10,1126891415),i=$t(i,s,e,t,r[l+14],15,-1416354905),t=$t(t,i,s,e,r[l+5],21,-57434055),e=$t(e,t,i,s,r[l+12],6,1700485571),s=$t(s,e,t,i,r[l+3],10,-1894986606),i=$t(i,s,e,t,r[l+10],15,-1051523),t=$t(t,i,s,e,r[l+1],21,-2054922799),e=$t(e,t,i,s,r[l+8],6,1873313359),s=$t(s,e,t,i,r[l+15],10,-30611744),i=$t(i,s,e,t,r[l+6],15,-1560198380),t=$t(t,i,s,e,r[l+13],21,1309151649),e=$t(e,t,i,s,r[l+4],6,-145523070),s=$t(s,e,t,i,r[l+11],10,-1120210379),i=$t(i,s,e,t,r[l+2],15,718787259),t=$t(t,i,s,e,r[l+9],21,-343485551),e=Cr(e,o),t=Cr(t,d),i=Cr(i,u),s=Cr(s,y)}return[e,t,i,s]}function eV(r){if(r.length===0)return[];const a=r.length*8,e=new Uint32Array(LE(a));for(let t=0;t<a;t+=8)e[t>>5]|=(r[t/8]&255)<<t%32;return e}function Cr(r,a){const e=(r&65535)+(a&65535);return(r>>16)+(a>>16)+(e>>16)<<16|e&65535}function tV(r,a){return r<<a|r>>>32-a}function Mo(r,a,e,t,i,s){return Cr(tV(Cr(Cr(a,r),Cr(t,s)),i),e)}function Ut(r,a,e,t,i,s,l){return Mo(a&e|~a&t,r,a,i,s,l)}function gt(r,a,e,t,i,s,l){return Mo(a&t|e&~t,r,a,i,s,l)}function jt(r,a,e,t,i,s,l){return Mo(a^e^t,r,a,i,s,l)}function $t(r,a,e,t,i,s,l){return Mo(e^(a|~t),r,a,i,s,l)}var iV=KC;_o.default=iV,Object.defineProperty(Bo,"__esModule",{value:!0}),Bo.default=void 0;var rV=UE(wr),nV=UE(_o);function UE(r){return r&&r.__esModule?r:{default:r}}var sV=(0,rV.default)("v3",48,nV.default);Bo.default=sV;var No={},Lo={};Object.defineProperty(Lo,"__esModule",{value:!0}),Lo.default=void 0;var aV={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};Lo.default=aV,Object.defineProperty(No,"__esModule",{value:!0}),No.default=void 0;var gE=jE(Lo),oV=jE(wo),lV=Pr;function jE(r){return r&&r.__esModule?r:{default:r}}function dV(r,a,e){if(gE.default.randomUUID&&!a&&!r)return gE.default.randomUUID();r=r||{};const t=r.random||(r.rng||oV.default)();if(t[6]=t[6]&15|64,t[8]=t[8]&63|128,a){e=e||0;for(let i=0;i<16;++i)a[e+i]=t[i];return a}return(0,lV.unsafeStringify)(t)}var uV=dV;No.default=uV;var Uo={},go={};Object.defineProperty(go,"__esModule",{value:!0}),go.default=void 0;function pV(r,a,e,t){switch(r){case 0:return a&e^~a&t;case 1:return a^e^t;case 2:return a&e^a&t^e&t;case 3:return a^e^t}}function fu(r,a){return r<<a|r>>>32-a}function cV(r){const a=[1518500249,1859775393,2400959708,3395469782],e=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof r=="string"){const l=unescape(encodeURIComponent(r));r=[];for(let o=0;o<l.length;++o)r.push(l.charCodeAt(o))}else Array.isArray(r)||(r=Array.prototype.slice.call(r));r.push(128);const t=r.length/4+2,i=Math.ceil(t/16),s=new Array(i);for(let l=0;l<i;++l){const o=new Uint32Array(16);for(let d=0;d<16;++d)o[d]=r[l*64+d*4]<<24|r[l*64+d*4+1]<<16|r[l*64+d*4+2]<<8|r[l*64+d*4+3];s[l]=o}s[i-1][14]=(r.length-1)*8/Math.pow(2,32),s[i-1][14]=Math.floor(s[i-1][14]),s[i-1][15]=(r.length-1)*8&4294967295;for(let l=0;l<i;++l){const o=new Uint32Array(80);for(let E=0;E<16;++E)o[E]=s[l][E];for(let E=16;E<80;++E)o[E]=fu(o[E-3]^o[E-8]^o[E-14]^o[E-16],1);let d=e[0],u=e[1],y=e[2],c=e[3],I=e[4];for(let E=0;E<80;++E){const O=Math.floor(E/20),P=fu(d,5)+pV(O,u,y,c)+I+a[O]+o[E]>>>0;I=c,c=y,y=fu(u,30)>>>0,u=d,d=P}e[0]=e[0]+d>>>0,e[1]=e[1]+u>>>0,e[2]=e[2]+y>>>0,e[3]=e[3]+c>>>0,e[4]=e[4]+I>>>0}return[e[0]>>24&255,e[0]>>16&255,e[0]>>8&255,e[0]&255,e[1]>>24&255,e[1]>>16&255,e[1]>>8&255,e[1]&255,e[2]>>24&255,e[2]>>16&255,e[2]>>8&255,e[2]&255,e[3]>>24&255,e[3]>>16&255,e[3]>>8&255,e[3]&255,e[4]>>24&255,e[4]>>16&255,e[4]>>8&255,e[4]&255]}var fV=cV;go.default=fV,Object.defineProperty(Uo,"__esModule",{value:!0}),Uo.default=void 0;var yV=$E(wr),hV=$E(go);function $E(r){return r&&r.__esModule?r:{default:r}}var mV=(0,yV.default)("v5",80,hV.default);Uo.default=mV;var jo={};Object.defineProperty(jo,"__esModule",{value:!0}),jo.default=void 0;var vV="00000000-0000-0000-0000-000000000000";jo.default=vV;var $o={};Object.defineProperty($o,"__esModule",{value:!0}),$o.default=void 0;var TV=IV(fn);function IV(r){return r&&r.__esModule?r:{default:r}}function EV(r){if(!(0,TV.default)(r))throw TypeError("Invalid UUID");return parseInt(r.slice(14,15),16)}var AV=EV;$o.default=AV,function(r){Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"NIL",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(r,"parse",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(r,"stringify",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(r,"v1",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(r,"v3",{enumerable:!0,get:function(){return e.default}}),Object.defineProperty(r,"v4",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(r,"v5",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(r,"validate",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(r,"version",{enumerable:!0,get:function(){return l.default}});var a=y(Po),e=y(Bo),t=y(No),i=y(Uo),s=y(jo),l=y($o),o=y(fn),d=y(Pr),u=y(ea);function y(c){return c&&c.__esModule?c:{default:c}}}(VE);function yu(r,a){if(!r||!a||!r.length||!a.length)throw new Error("Bad alphabet");this.srcAlphabet=r,this.dstAlphabet=a}yu.prototype.convert=function(r){var a,e,t,i={},s=this.srcAlphabet.length,l=this.dstAlphabet.length,o=r.length,d=typeof r=="string"?"":[];if(!this.isValid(r))throw new Error('Number "'+r+'" contains of non-alphabetic digits ('+this.srcAlphabet+")");if(this.srcAlphabet===this.dstAlphabet)return r;for(a=0;a<o;a++)i[a]=this.srcAlphabet.indexOf(r[a]);do{for(e=0,t=0,a=0;a<o;a++)e=e*s+i[a],e>=l?(i[t++]=parseInt(e/l,10),e=e%l):t>0&&(i[t++]=0);o=t,d=this.dstAlphabet.slice(e,e+1).concat(d)}while(t!==0);return d},yu.prototype.isValid=function(r){for(var a=0;a<r.length;++a)if(this.srcAlphabet.indexOf(r[a])===-1)return!1;return!0};var bV=yu,RV=bV;function ta(r,a){var e=new RV(r,a);return function(t){return e.convert(t)}}ta.BIN="01",ta.OCT="01234567",ta.DEC="0123456789",ta.HEX="0123456789abcdef";var DV=ta;const{v4:hu,validate:OV}=VE,Go=DV,mu={cookieBase90:"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!#$%&'()*+-./:<=>?@[]^_`{|}~",flickrBase58:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ",uuid25Base36:"0123456789abcdefghijklmnopqrstuvwxyz"},PV={consistentLength:!0};let vu;const GE=(r,a,e)=>{const t=a(r.toLowerCase().replace(/-/g,""));return!e||!e.consistentLength?t:t.padStart(e.shortIdLength,e.paddingChar)},FE=(r,a)=>{const t=a(r).padStart(32,"0").match(/(\w{8})(\w{4})(\w{4})(\w{4})(\w{12})/);return[t[1],t[2],t[3],t[4],t[5]].join("-")},wV=r=>Math.ceil(Math.log(2**128)/Math.log(r));var CV=(()=>{const r=(a,e)=>{const t=a||mu.flickrBase58,i={...PV,...e};if([...new Set(Array.from(t))].length!==t.length)throw new Error("The provided Alphabet has duplicate characters resulting in unreliable results");const s=wV(t.length),l={shortIdLength:s,consistentLength:i.consistentLength,paddingChar:t[0]},o=Go(Go.HEX,t),d=Go(t,Go.HEX),u=()=>GE(hu(),o,l),c={alphabet:t,fromUUID:I=>GE(I,o,l),maxLength:s,generate:u,new:u,toUUID:I=>FE(I,d),uuid:hu,validate:(I,E=!1)=>{if(!I||typeof I!="string")return!1;const O=i.consistentLength?I.length===s:I.length<=s,P=I.split("").every(V=>t.includes(V));return E===!1?O&&P:O&&P&&OV(FE(I,d))}};return Object.freeze(c),c};return r.constants=mu,r.uuid=hu,r.generate=()=>(vu||(vu=r(mu.flickrBase58).generate),vu()),r})();const Fo=CE(CV);function xE(){return Fo().uuid()}function kE(r){return r.rangeStart+Math.random()}function SE(r){const a=r.rangeEnd;return Math.random()*a}function ZE(r){const a=r.rangeStart,e=r.rangeEnd;return Math.random()*(e-a)+a}function qE(r){return r.rangeStart&&r.rangeEnd?ZE(r):r.rangeStart?kE(r):r.rangeEnd?SE(r):Math.random()}function JE(r){const a=r.rangeStart;return Math.random().toString(36).substring(a)}function WE(r){const a=r.rangeEnd;return Math.random().toString(36).substring(0,a)}function zE(r){const a=r.rangeStart,e=r.rangeEnd;return Math.random().toString(36).substring(a,e)}function YE(r){return r.rangeStart&&r.rangeEnd?zE(r):r.rangeStart?JE(r):r.rangeEnd?WE(r):Math.random().toString(36)}function HE(r){return Math.random()>=.5}function VV(r){if(!r||!r.autogeneration)return null;switch(r.autogeneration.type){case vt.CurrentDateAndTime:if(r.name===L.Date)return new Date;case vt.Random:{if(r.name===L.Date)return wE(r.autogeneration);if(r.name===L.Number)return qE(r.autogeneration);if(r.name===L.String)return YE(r.autogeneration);if(r.name===L.Boolean)return HE(r.autogeneration)}case vt.Unique:if(r.name===L.UUID)return xE();default:throw new Error(`Generating a ${r.autogeneration.type} value for a ${r.name} is not supported`)}}const ce="e7eb5382-3d99-44fd-972a-b8b1e819f6be",KE="global-user-variable-id",Tu="last-executed-timestamp-variable-id",BV={id:"alternative-relational-database-entity-identifier-property-data-type-ref-id",type:n.GenericReference,entityId:"alternative-relational-database-entity-identifier-property-id",version:"1",entityType:n.ValueDescriptor},_V={id:"alternative-relational-database-entity-identifier-property-ref-id",type:n.GenericReference,entityId:"alternative-relational-database-entity-identifier-property-id",version:"1",entityType:n.Property},MV={like:!1,inferred:!1,id:"alternative-relational-database-entity-identifier-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:se,asType:!1,parent:_V},xo={id:"alternative-relational-database-entity-ref-id",type:n.GenericReference,entityId:"alternative-relational-database-entity-id",version:"1",entityType:n.DefinitionEntity},NV={constant:!1,hidden:!1,required:!0,id:"alternative-relational-database-entity-identifier-property-id",name:"Identifier name",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,implements:oo,static:!0,index:0,defaultValue:{id:"alternative-relational-database-entity-identifier-property-data-type-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.String,value:null,parent:BV,autogeneration:{type:vt.Unique,rangeStart:null,rangeEnd:null},valueAsTypeList:null,valueAsTypeSingle:null},dataType:MV,description:"The name of the main database inside of the server instance where the data will be stored.",parent:xo};n.GenericReference,n.ValueDescriptor;const LV={id:"alternative-relational-database-entity-username-property-ref-id",type:n.GenericReference,entityId:"alternative-relational-database-entity-username-property-id",version:"1",entityType:n.Property},UV={like:!1,inferred:!1,id:"alternative-relational-database-entity-username-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:se,asType:!1,parent:LV},gV={constant:!1,hidden:!1,required:!0,id:"alternative-relational-database-entity-username-property-id",name:"Username",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,implements:lo,static:!0,index:1,defaultValue:null,dataType:UV,description:"The username that will be used to connect to the database.",parent:xo};n.GenericReference,n.ValueDescriptor;const jV={id:"alternative-relational-database-entity-password-property-ref-id",type:n.GenericReference,entityId:"alternative-relational-database-entity-password-property-id",version:"1",entityType:n.Property},$V={like:!1,inferred:!1,id:"alternative-relational-database-entity-password-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:se,asType:!1,parent:jV},GV={constant:!1,hidden:!1,required:!0,id:"alternative-relational-database-entity-password-property-id",name:"Password",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,implements:uo,static:!0,index:2,defaultValue:null,dataType:$V,description:"The password that will be used to connect to the database.",parent:xo},FV={id:"alternative-relational-database-entity-min-size-property-data-type-ref-id",type:n.GenericReference,entityId:"alternative-relational-database-entity-min-size-property-id",version:"1",entityType:n.ValueDescriptor},xV={id:"alternative-relational-database-entity-min-size-property-ref-id",type:n.GenericReference,entityId:"alternative-relational-database-entity-min-size-property-id",version:"1",entityType:n.Property},kV={like:!1,inferred:!1,id:"alternative-relational-database-entity-min-size-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ve,asType:!1,parent:xV},SV={constant:!1,hidden:!1,required:!0,id:"alternative-relational-database-entity-min-size-property-id",name:"Minimum GB size",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,implements:po,static:!0,index:3,defaultValue:{id:"alternative-relational-database-entity-min-size-property-data-type-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.Number,value:6,parent:FV,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},dataType:kV,description:"The minimum size of the database in GB.",parent:xo},ZV={id:"alternative-relational-database-entity-parent-ref-id",type:n.GenericReference,entityId:ce,version:"1",entityType:n.Project},Iu={id:"alternative-relational-database-entity-id",type:n.DefinitionEntity,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Alternative relational Database",description:"A database that permanently stores the persisted entities attached to it.",abstract:!1,static:!0,properties:[NV,gV,GV,SV],methods:[],abstractMethods:[],extends:[],implements:[ji],x:0,y:0,parent:ZV},qV={id:"animal-prototype-database-property-ref-id",type:n.GenericReference,entityId:"animal-prototype-database-property-id",version:"1",entityType:n.Property},JV={id:"animal-prototype-database-property-data-type-default-value-parent-ref-id",type:n.GenericReference,entityId:"animal-prototype-database-property-id",version:"1",entityType:n.Property},WV={like:!1,inferred:!1,id:"animal-prototype-database-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ji,asType:!1,parent:qV},zV={id:"animal-prototype-database-property-parent-ref-id",type:n.GenericReference,entityId:"83eaa847-e62b-4192-84fb-3d8d6f5ea970",version:"1",entityType:n.DefinitionEntity},YV={constant:!1,hidden:!1,required:!0,id:"animal-prototype-database-property-id",name:"Database",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,implements:Jn,static:!0,index:0,defaultValue:{id:"animal-prototype-database-property-data-type-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:null,name:L.EntityTemplate,valueAsTypeList:null,valueAsTypeSingle:Iu,autogeneration:null,parent:JV},dataType:WV,description:"The database that the entity belongs to.",parent:zV},HV={type:n.GenericReference,id:"291e4d4f-01d8-40a0-90dc-5f1ac6636e9b",version:"1",entityType:n.Property,entityId:"5cb617b0-92be-4dbe-a007-49093368d94f"},KV={like:!1,inferred:!1,id:"c1930577-9e79-48a6-8905-be24611015c1",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:se,asType:!1,isList:!1,parent:HV},XV={type:n.GenericReference,id:"animal-name-property-parent-ref-id",version:"1",entityType:n.DefinitionEntity,entityId:"83eaa847-e62b-4192-84fb-3d8d6f5ea970"},QV={constant:!1,hidden:!1,required:!0,type:n.Property,id:"5cb617b0-92be-4dbe-a007-49093368d94f",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Name",description:"The name of the animal",defaultValue:null,implements:Wn,static:!1,private:!1,index:0,dataType:KV,abstract:!1,parent:XV},eB={type:n.GenericReference,id:"abc565de-4c83-4936-bc48-4013bef213b8",version:"1",entityType:n.Project,entityId:ce},tB={type:n.DefinitionEntity,id:"83eaa847-e62b-4192-84fb-3d8d6f5ea970",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Animal",description:"A living creature that is not human",abstract:!1,static:!1,abstractMethods:[],properties:[YV,QV],methods:[],extends:[],implements:[Ct],x:0,y:0,parent:eB},ia="base-table-entity",XE="base-table-entity-identifier-property-id";n.GenericReference,n.Property,n.GenericReference,n.Property;const iB={id:"base-table-entity-identifier-property-data-type-ref-id",type:n.GenericReference,entityId:XE,version:"1",entityType:n.Property},rB={id:"base-table-entity-identifier-property-ref-id",type:n.GenericReference,entityId:"base-table-entity-identifier-property-id",version:"1",entityType:n.Property},nB={like:!1,inferred:!1,id:"base-table-entity-identifier-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ir,asType:!1,parent:rB},sB={id:"base-table-entity-identifier-property-parent-ref-id",type:n.GenericReference,entityId:ia,version:"1",entityType:n.DefinitionEntity};n.Property,n.LiteralValue,L.UUID,vt.Unique,n.GenericReference,n.Property;const aB={id:"base-table-entity-deleted-at-property-ref-id",type:n.GenericReference,entityId:"base-table-entity-deleted-at-property-id",version:"1",entityType:n.Property},oB={like:!1,inferred:!1,id:"base-table-entity-deleted-at-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:Li,asType:!1,parent:aB},lB={id:"base-table-entity-deleted-at-property-parent-ref-id",type:n.GenericReference,entityId:ia,version:"1",entityType:n.DefinitionEntity},dB={constant:!1,hidden:!0,required:!0,id:"base-table-entity-deleted-at-property-id",name:"Deleted at",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!0,implements:null,static:!1,index:0,defaultValue:null,dataType:oB,description:"The date and time when the entity was deleted.",parent:lB};n.GenericReference,n.Property;const uB={id:"base-table-entity-created-at-property-ref-id",type:n.GenericReference,entityId:"base-table-entity-created-at-property-id",version:"1",entityType:n.Property},pB={like:!1,inferred:!1,id:"base-table-entity-created-at-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:Li,asType:!1,parent:uB},cB={id:"base-table-entity-created-at-property-parent-ref-id",type:n.GenericReference,entityId:ia,version:"1",entityType:n.DefinitionEntity},fB={constant:!1,hidden:!0,required:!0,id:"base-table-entity-created-at-property-id",name:"Created at",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!0,implements:null,static:!1,index:0,defaultValue:null,dataType:pB,description:"The date and time when the entity was created.",parent:cB};n.GenericReference,n.Property;const yB={id:"base-table-entity-updated-at-property-ref-id",type:n.GenericReference,entityId:"base-table-entity-updated-at-property-id",version:"1",entityType:n.Property},hB={like:!1,inferred:!1,id:"base-table-entity-updated-at-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:Li,asType:!1,parent:yB},mB={id:"base-table-entity-updated-at-property-parent-ref-id",type:n.GenericReference,entityId:ia,version:"1",entityType:n.DefinitionEntity},vB={constant:!1,hidden:!0,required:!0,id:"base-table-entity-updated-at-property-id",name:"Updated at",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,implements:null,abstract:!0,static:!1,index:0,defaultValue:null,dataType:hB,description:"The date and time when the entity was last updated.",parent:mB},TB={id:"base-table-entity-parent-ref-id",type:n.GenericReference,entityId:ce,version:"1",entityType:n.Project},pi={id:ia,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:"An entity that is permanently stored in the database and can be accessed at any point.",name:"Base database table format",type:n.DefinitionEntity,abstract:!0,static:!1,abstractMethods:[],implements:[],properties:[dB,fB,vB],methods:[],extends:[],x:0,y:0,parent:TB},IB={id:"default-relational-database-entity-identifier-property-data-type-ref-id",type:n.GenericReference,entityId:"default-relational-database-entity-identifier-property-id",version:"1",entityType:n.Property},EB={id:"default-relational-database-entity-identifier-property-ref-id",type:n.GenericReference,entityId:"default-relational-database-entity-identifier-property-id",version:"1",entityType:n.Property},AB={like:!1,inferred:!1,id:"default-relational-database-entity-identifier-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:se,asType:!1,parent:EB},is={id:"default-relational-database-entity-ref-id",type:n.GenericReference,entityId:"default-relational-database-entity-id",version:"1",entityType:n.DefinitionEntity},bB={constant:!1,id:"default-relational-database-entity-identifier-property-id",hidden:!1,required:!0,name:"Identifier name",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,implements:oo,static:!0,index:0,defaultValue:{id:"default-relational-database-entity-identifier-property-data-type-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.String,value:"main",parent:IB,autogeneration:{type:vt.Unique,rangeStart:null,rangeEnd:null},valueAsTypeList:null,valueAsTypeSingle:null},dataType:AB,description:"The name of the main database inside of the server instance where the data will be stored.",parent:is};n.GenericReference,n.Property;const RB={id:"default-relational-database-entity-username-property-ref-id",type:n.GenericReference,entityId:"default-relational-database-entity-username-property-id",version:"1",entityType:n.Property},DB={id:"default-relational-database-entity-username-property-default-value-parent-ref-id",type:n.GenericReference,entityId:"default-relational-database-entity-username-property-id",version:"1",entityType:n.Property},OB={like:!1,inferred:!1,id:"default-relational-database-entity-username-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:se,asType:!1,parent:RB},PB={constant:!1,hidden:!1,required:!0,id:"default-relational-database-entity-username-property-id",name:"Username",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,implements:lo,defaultValue:{id:"default-relational-database-entity-username-property-data-type-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.String,value:"root",parent:DB,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},static:!0,index:1,dataType:OB,description:"The username that will be used to connect to the database.",parent:is};n.GenericReference,n.Property;const wB={id:"default-relational-database-entity-password-property-ref-id",type:n.GenericReference,entityId:"default-relational-database-entity-password-property-id",version:"1",entityType:n.Property},CB={id:"default-relational-database-entity-password-property-default-value-parent-ref-id",type:n.GenericReference,entityId:"default-relational-database-entity-password-property-id",version:"1",entityType:n.Property},VB={like:!1,inferred:!1,id:"default-relational-database-entity-password-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:se,asType:!1,parent:wB},BB={constant:!1,hidden:!1,required:!0,id:"default-relational-database-entity-password-property-id",name:"Password",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,implements:uo,static:!0,index:2,defaultValue:{id:"default-relational-database-entity-password-property-data-type-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.String,value:"password",parent:CB,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},dataType:VB,description:"The password that will be used to connect to the database.",parent:is},_B={id:"default-relational-database-entity-min-size-property-data-type-ref-id",type:n.GenericReference,entityId:"default-relational-database-entity-min-size-property-id",version:"1",entityType:n.Property},MB={id:"default-relational-database-entity-min-size-property-ref-id",type:n.GenericReference,entityId:"default-relational-database-entity-min-size-property-id",version:"1",entityType:n.Property},NB={like:!1,inferred:!1,id:"default-relational-database-entity-min-size-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ve,asType:!1,parent:MB},LB={constant:!1,hidden:!1,required:!0,id:"default-relational-database-entity-min-size-property-id",name:"Minimum GB size",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,implements:po,static:!0,index:3,defaultValue:{id:"default-relational-database-entity-min-size-property-data-type-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.Number,value:6,parent:_B,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},dataType:NB,description:"The minimum size of the database in GB.",parent:is},UB={id:"default-relational-database-entity-default-property-data-type-ref-id",type:n.GenericReference,entityId:"default-relational-database-entity-default-property-id",version:"1",entityType:n.Property},gB={id:"default-relational-database-entity-default-property-ref-id",type:n.GenericReference,entityId:"default-relational-database-entity-default-property-id",version:"1",entityType:n.Property},jB={like:!1,inferred:!1,id:"default-relational-database-entity-default-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ve,asType:!1,parent:gB},$B={constant:!1,id:"default-relational-database-entity-default-property-id",hidden:!0,required:!0,name:"Default",description:"Whether this database is automatically picked by other entities as the default database.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,implements:Hd,static:!0,index:4,dataType:jB,defaultValue:{id:"default-relational-database-entity-default-property-data-type-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.Boolean,value:!0,parent:UB,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},parent:is},GB={id:"default-relational-database-entity-autoscaling-property-data-type-ref-id",type:n.GenericReference,entityId:"default-relational-database-entity-autoscaling-property-id",version:"1",entityType:n.Property},FB={id:"default-relational-database-entity-autoscaling-property-ref-id",type:n.GenericReference,entityId:"default-relational-database-entity-autoscaling-property-id",version:"1",entityType:n.Property},xB={like:!1,inferred:!1,id:"default-relational-database-entity-autoscaling-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ve,asType:!1,parent:FB},kB={constant:!1,id:"default-relational-database-entity-autoscaling-property-id",hidden:!1,required:!0,name:"Auto-scaling",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,implements:Kd,static:!0,index:5,defaultValue:{id:"default-relational-database-entity-autoscaling-property-data-type-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.Boolean,value:!0,parent:GB,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},dataType:xB,description:"If true, this database will automatically scale up or down in memory size, based on the usage.s",parent:is},SB={id:"default-relational-database-entity-parent-ref-id",type:n.GenericReference,entityId:ce,version:"1",entityType:n.Project},Eu={id:"default-relational-database-entity-id",type:n.DefinitionEntity,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Relational Database",description:"A database that permanently stores the persisted entities attached to it.",abstract:!1,static:!0,properties:[$B,kB,bB,PB,BB,LB],methods:[],abstractMethods:[],extends:[],implements:[ji],x:0,y:0,parent:SB},ZB={id:"user-prototype-database-property-data-type-ref-id",type:n.GenericReference,entityId:"user-prototype-database-property-id",version:"1",entityType:n.Property},qB={id:"user-prototype-database-property-ref-id",type:n.GenericReference,entityId:"user-prototype-database-property-id",version:"1",entityType:n.Property},JB={like:!1,inferred:!1,id:"user-prototype-database-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ji,asType:!1,parent:qB},WB={id:"user-prototype-database-property-parent-ref-id",type:n.GenericReference,entityId:"de67fc84-3719-46fd-9ab4-3fca3a3cc50d",version:"1",entityType:n.DefinitionEntity},zB={constant:!1,hidden:!1,required:!0,id:"user-prototype-database-property-id",name:"Database",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,implements:Jn,static:!0,index:0,defaultValue:{id:"user-prototype-database-property-data-type-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:null,name:L.EntityTemplate,valueAsTypeList:null,valueAsTypeSingle:Eu,autogeneration:null,parent:ZB},dataType:JB,description:"The database that the entity belongs to.",parent:WB},YB={type:n.GenericReference,id:"user-prototype-parent-ref-id",version:"1",entityType:n.Project,entityId:ce},HB={id:"user-prototype-primary-key-property-data-type-ref-id",type:n.GenericReference,entityId:"user-prototype-primary-key-property-id",version:"1",entityType:n.Property},KB={id:"user-prototype-primary-key-property-ref-id",type:n.GenericReference,entityId:"user-prototype-primary-key-property-id",version:"1",entityType:n.Property},XB={like:!1,inferred:!1,id:"user-prototype-primary-key-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ir,asType:!1,parent:KB},QB={id:"user-prototype-primary-key-property-parent-ref-id",type:n.GenericReference,entityId:"de67fc84-3719-46fd-9ab4-3fca3a3cc50d",version:"1",entityType:n.DefinitionEntity},e_={constant:!1,hidden:!1,required:!0,id:"user-prototype-primary-key-property-id",name:"Identifier",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,implements:Wn,static:!1,index:1,defaultValue:{id:"user-prototype-primary-key-property-data-type-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.UUID,value:null,parent:HB,autogeneration:{type:vt.Unique,rangeStart:null,rangeEnd:null},valueAsTypeList:null,valueAsTypeSingle:null},dataType:XB,description:"A property with a unique value for the entity, that can be used to identify the entity among other entities of the same type.",parent:QB},Au={type:n.DefinitionEntity,id:"de67fc84-3719-46fd-9ab4-3fca3a3cc50d",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"User",description:"A user of the application",implements:[Ct,pi],abstract:!1,static:!1,abstractMethods:[],extends:[],properties:[zB,e_],methods:[],x:0,y:0,parent:YB},t_={type:n.GenericReference,id:"person-date-of-birth-property-data-type-parent-ref-id",version:"1",entityType:n.Property,entityId:"person-date-of-birth-property-id"},i_={like:!1,inferred:!1,id:"person-date-of-birth-property-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Li,isList:!1,asType:!1,parent:t_},r_={type:n.GenericReference,id:"person-date-of-birth-property-parent-ref-id",version:"1",entityType:n.DefinitionEntity,entityId:"c9bc312a-10d3-48a7-9ab4-ea483a9e2416"},n_={constant:!1,hidden:!1,required:!0,type:n.Property,id:"person-date-of-birth-property-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Date of birth",description:"The date of birth of the person",implements:null,private:!1,static:!1,index:0,defaultValue:null,dataType:i_,abstract:!1,parent:r_},s_={type:n.GenericReference,id:"a2867827-2f8e-4c25-b18b-d91857d7f24e",version:"1",entityType:n.Property,entityId:"cacfec92-46c3-4fca-a1d9-fd1ba94d78c7"},a_={like:!1,inferred:!1,id:"1d49f41b-17b9-4f48-87aa-3ce43498e5a9",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:se,isList:!1,asType:!1,parent:s_},o_={type:n.GenericReference,id:"01cbe760-40a9-4f49-8e3d-194d2f57cb1e",version:"1",entityType:n.DefinitionEntity,entityId:"c9bc312a-10d3-48a7-9ab4-ea483a9e2416"},l_={constant:!1,hidden:!1,required:!0,type:n.Property,id:"cacfec92-46c3-4fca-a1d9-fd1ba94d78c7",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Name",description:"The name of the person",implements:null,private:!1,static:!1,index:0,defaultValue:null,dataType:a_,abstract:!1,parent:o_},d_={type:n.GenericReference,id:"3542b22a-3a2f-41c6-876e-24c885572498",version:"1",entityType:n.Project,entityId:ce},Jt={type:n.DefinitionEntity,id:"c9bc312a-10d3-48a7-9ab4-ea483a9e2416",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Person",description:"A entity to store more information about a person than the user entity does, to split the responsibilities and keep it the logic clean.",properties:[l_,n_],abstract:!1,static:!1,abstractMethods:[],methods:[],implements:[],extends:[Au],x:0,y:0,parent:d_},u_={type:n.GenericReference,id:"b59c80b7-b2e9-41e9-abcd-7c5652835efc",version:"1",entityType:n.FunctionDeclaration,entityId:"36f29f96-c001-4b9a-b49c-83eff406a060"},p_={type:n.GenericReference,id:"1190b5a2-f25e-46db-884d-8a3dd1a44d94",version:"1",entityType:n.ReturnStatement,entityId:"3ebc4342-c9e8-42e7-a61c-7937081e1d2e"},c_={type:n.GenericReference,id:"36c63126-7814-496f-a6cc-48662c2aabae",version:"1",entityType:n.ArgumentDeclaration,entityId:"500dee3a-3435-4453-9699-0d053f646523"},f_={type:n.GenericReference,id:"c567e55d-ec12-4e4e-958e-f07522892b4b",version:"1",entityType:n.ReturnDeclaration,entityId:"9e070523-7e07-4100-8637-960a187f5f14"},y_={like:!1,inferred:!1,id:"3973c5a1-f0d8-49a0-a9a9-a0009bf3f0d8",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Jt,isList:!1,asType:!1,parent:f_},bu={constant:!0,isError:!1,id:"9e070523-7e07-4100-8637-960a187f5f14",type:n.ReturnDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Output Account Owner",description:null,defaultValue:null,dataType:y_,implements:null,readsValue:c_,required:!0,index:0,parent:p_},h_={type:n.GenericReference,id:"567d923c-20da-4c1e-956d-962ea30c6d0b",version:"1",entityType:n.FunctionDeclaration,entityId:"36f29f96-c001-4b9a-b49c-83eff406a060"},m_={type:n.GenericReference,id:"da85e620-59f3-42ab-88c8-b38d33c2c833",version:"1",entityType:n.FunctionDeclaration,entityId:"36f29f96-c001-4b9a-b49c-83eff406a060"},v_={type:n.ReturnStatement,id:"3ebc4342-c9e8-42e7-a61c-7937081e1d2e",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[bu],calledByError:[],calledByEntry:[h_],calledBySuccess:[],throws:null,x:0,y:0,parent:m_},T_={type:n.GenericReference,id:"1c806bb7-4c25-4bad-963b-93dfbb7c8304",version:"1",entityType:n.ArgumentDeclaration,entityId:"500dee3a-3435-4453-9699-0d053f646523"},I_={like:!1,inferred:!1,id:"d90fcc18-642b-433c-8fcb-4094b9031cd5",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Jt,isList:!1,asType:!1,parent:T_},QE={constant:!0,id:"500dee3a-3435-4453-9699-0d053f646523",type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"New Account Owner",description:null,defaultValue:null,dataType:I_,implements:null,required:!0,writesValues:[bu],index:0,parent:u_},E_={type:n.GenericReference,id:"83dceb60-f3c4-4085-824c-85f2003bfd27",version:"1",entityType:n.DefinitionEntity,entityId:"506946aa-30da-48e6-918f-ffd9eac58813"},eA={type:n.FunctionDeclaration,id:"36f29f96-c001-4b9a-b49c-83eff406a060",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Change owner of bank account",description:null,implements:null,inputs:[QE],calls:[v_],index:0,collapsed:!1,private:!1,x:0,y:0,parent:E_},A_={type:n.GenericReference,id:"adbaf302-ffa9-49b6-a3c6-83f9a75068e3",version:"1",entityType:n.VariableDeclaration,entityId:"8e36a476-766e-4cc2-a8a7-27a07dfb5a4b"},b_={like:!1,inferred:!1,id:"79ee04aa-1ba4-4ae9-a406-ed45e5b03f7f",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Jt,asType:!1,isList:!1,parent:A_},R_={type:n.GenericReference,id:"55e212d1-f0ec-4bb6-acbe-60f741367daf",version:"1",entityType:n.OutputMap,entityId:"dc9ddb8f-02a0-4a43-aea6-270ec7b7f8a4"},D_={type:n.GenericReference,id:"944e1171-3d9b-4559-9386-1d4974b15962",version:"1",entityType:n.FunctionDeclaration,entityId:"15ee556d-681f-47de-a31f-16d4ba73cc4e"},O_={constant:!0,required:!0,id:"8e36a476-766e-4cc2-a8a7-27a07dfb5a4b",type:n.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Output Account Owner",description:null,defaultValue:null,dataType:b_,readsValue:R_,writesValues:[],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:D_},P_={type:n.GenericReference,id:"b89ebc83-52cf-4447-a5ae-62241f713079",version:"1",entityType:n.FunctionCall,entityId:"78f6dba8-bed8-44cd-8b0f-6dcc787d1e1e"},w_={id:"dc9ddb8f-02a0-4a43-aea6-270ec7b7f8a4",type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:bu,defaultValue:null,writesValues:[O_],index:0,parent:P_},C_={type:n.GenericReference,id:"c1b9e125-1aad-48b7-9687-95c57a6bc10d",version:"1",entityType:n.FunctionDeclaration,entityId:"15ee556d-681f-47de-a31f-16d4ba73cc4e"},V_={type:n.GenericReference,id:"d2deaa02-e164-4425-905c-6dee47eb4eac",version:"1",entityType:n.FunctionDeclaration,entityId:"15ee556d-681f-47de-a31f-16d4ba73cc4e"},B_={type:n.GenericReference,id:"1109a655-ac62-4110-a933-42a72106f4f0",version:"1",entityType:n.VariableDeclaration,entityId:"8bea6986-8da2-487b-905d-2fb962db6728"},__={like:!1,inferred:!1,id:"7d9a1307-512e-42ec-9797-2f7229796b97",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Jt,asType:!1,isList:!1,parent:B_},M_={type:n.GenericReference,id:"bb61ebf7-57b3-4d14-905d-82ec907205b5",version:"1",entityType:n.ArgumentDeclaration,entityId:"38f6b236-98ac-47b0-ab9c-d2f9610137b9"},N_={type:n.GenericReference,id:"6b8c7bf2-9fc8-4ea4-9ec0-f41679d513b1",version:"1",entityType:n.FunctionDeclaration,entityId:"15ee556d-681f-47de-a31f-16d4ba73cc4e"},L_={type:n.GenericReference,id:"6163d1a1-7a94-49b1-95bb-aecd8d6d335c",version:"1",entityType:n.FunctionCall,entityId:"78f6dba8-bed8-44cd-8b0f-6dcc787d1e1e"},U_={type:n.GenericReference,id:"1f900f62-4bd2-4246-94aa-b8f5aad384fd",version:"1",entityType:n.VariableDeclaration,entityId:"8bea6986-8da2-487b-905d-2fb962db6728"},tA={id:"be8538be-e6f9-4b94-9314-a546003ebaa0",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:QE,name:null,description:null,readsValue:U_,defaultValue:null,index:0,parent:L_},g_={constant:!0,required:!0,type:n.VariableDeclaration,id:"8bea6986-8da2-487b-905d-2fb962db6728",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Changed Account Owner",description:null,defaultValue:null,dataType:__,readsValue:M_,writesValues:[tA],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:N_},j_={type:n.FunctionCall,id:"78f6dba8-bed8-44cd-8b0f-6dcc787d1e1e",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:eA,inputs:[tA],outputs:[w_],process:null,successCalls:[],errorCalls:[],calledByError:[],calledByEntry:[C_],calledBySuccess:[],parent:V_,error:null,x:0,y:0},$_={type:n.GenericReference,id:"2d47aba1-a918-46a7-8db7-78809928654a",version:"1",entityType:n.ArgumentDeclaration,entityId:"38f6b236-98ac-47b0-ab9c-d2f9610137b9"},G_={like:!1,inferred:!1,id:"5583766c-e9a5-484c-8f43-f4b0a6a1876c",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Jt,asType:!1,isList:!1,parent:$_},F_={type:n.GenericReference,id:"3e2a81e4-55b2-49f5-94eb-39135e95c3d7",version:"1",entityType:n.FunctionDeclaration,entityId:"15ee556d-681f-47de-a31f-16d4ba73cc4e"},x_={constant:!0,id:"38f6b236-98ac-47b0-ab9c-d2f9610137b9",type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:null,name:"New Company Owner",defaultValue:null,dataType:G_,implements:null,required:!0,index:0,writesValues:[g_],parent:F_},k_={type:n.GenericReference,id:"30291b01-1b94-4d03-b434-dec122c2bc7d",version:"1",entityType:n.DefinitionEntity,entityId:"506946aa-30da-48e6-918f-ffd9eac58813"},S_={type:n.FunctionDeclaration,id:"15ee556d-681f-47de-a31f-16d4ba73cc4e",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:null,name:"Change Account Owner",inputs:[x_],collapsed:!0,calls:[j_],private:!1,index:0,implements:null,x:0,y:0,parent:k_},Z_={type:n.GenericReference,id:"72c7ac0a-886e-4e10-b7ed-2f5a819a0233",version:"1",entityType:n.Property,entityId:"b8f4656a-2b77-43ab-af51-7c32ddede044"},q_={like:!1,inferred:!1,id:"c09dd282-73f6-4077-a467-b66db20b9fc6",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:se,isList:!1,asType:!1,parent:Z_},J_={type:n.GenericReference,id:"8a950024-512c-4580-81db-a705410aeb99",version:"1",entityType:n.DefinitionEntity,entityId:"506946aa-30da-48e6-918f-ffd9eac58813"},W_={constant:!1,hidden:!1,required:!0,type:n.Property,id:"b8f4656a-2b77-43ab-af51-7c32ddede044",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Account number",description:null,private:!0,defaultValue:null,implements:Wn,static:!1,index:0,dataType:q_,abstract:!1,parent:J_},z_={type:n.GenericReference,id:"b6704b6c-c3bd-49d0-8ebc-82d03e726cbb",version:"1",entityType:n.Property,entityId:"733d06a6-b8c5-44f3-a1f7-a8c9bd9e44ea"},Y_={like:!1,inferred:!1,id:"c03e0b0a-88ab-401a-8833-4806738bdc37",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Jt,isList:!1,asType:!1,parent:z_},H_={type:n.GenericReference,id:"1ef999a7-e9ed-406a-866e-e58277fc985b",version:"1",entityType:n.DefinitionEntity,entityId:"506946aa-30da-48e6-918f-ffd9eac58813"},K_={constant:!1,hidden:!1,required:!0,type:n.Property,id:"733d06a6-b8c5-44f3-a1f7-a8c9bd9e44ea",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:null,name:"Account Owner",index:1,defaultValue:null,dataType:Y_,implements:null,static:!1,private:!0,abstract:!1,parent:H_},X_={type:n.GenericReference,id:"d41d7f41-98b8-4f67-be92-c349fdda5156",version:"1",entityType:n.Project,entityId:ce},rs={type:n.DefinitionEntity,id:"506946aa-30da-48e6-918f-ffd9eac58813",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Bank Account",description:null,abstract:!1,static:!1,abstractMethods:[],properties:[W_,K_],methods:[eA,S_],extends:[],implements:[Ct,pi],x:0,y:0,parent:X_},ra="bitcoin-api-response-id",iA="time-property-id",rA="disclaimer-property-id",nA="chart-name-property-id",sA="bpi-property-id",ko="bpi-entity-id",aA="usd-property-id",oA="gbp-property-id",lA="eur-property-id",ns="currency-entity-id",dA="currency-code-property-id",uA="currency-symbol-property-id",pA="currency-rate-property-id",cA="currency-description-property-id",fA="currency-rate-number-property-id",Q_={type:n.GenericReference,id:"code-property-data-type-parent-ref-id",version:"1",entityType:n.Property,entityId:dA},eM={like:!1,inferred:!1,id:"code-property-data-type-id",type:n.DataType,parentRelationType:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:tr,isList:!1,asType:!1,options:["USD","GBP","EUR"],parent:Q_},tM={type:n.GenericReference,id:"code-property-parent-ref-id",version:"1",entityType:n.DefinitionEntity,entityId:ns},iM={constant:!1,hidden:!1,required:!0,type:n.Property,id:dA,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"code",description:null,defaultValue:null,dataType:eM,index:0,implements:null,static:!1,private:!1,abstract:!1,parent:tM},rM={type:n.GenericReference,id:"symbol-property-data-type-parent-ref-id",version:"1",entityType:n.Property,entityId:uA},nM={like:!1,inferred:!1,id:"symbol-property-data-type-id",type:n.DataType,parentRelationType:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:tr,isList:!1,asType:!1,options:["&#36;","&pound;","&euro;"],parent:rM},sM={type:n.GenericReference,id:"symbol-property-parent-ref-id",version:"1",entityType:n.DefinitionEntity,entityId:ns},aM={constant:!1,hidden:!1,required:!0,type:n.Property,id:uA,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"symbol",description:null,index:0,defaultValue:null,dataType:nM,implements:null,static:!1,private:!1,abstract:!1,parent:sM},oM={type:n.GenericReference,id:"rate-property-data-type-parent-ref-id",version:"1",entityType:n.Property,entityId:pA},lM={like:!1,inferred:!1,id:"rate-property-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:se,isList:!1,asType:!1,parent:oM},dM={type:n.GenericReference,id:"rate-property-parent-ref-id",version:"1",entityType:n.DefinitionEntity,entityId:ns},uM={constant:!1,hidden:!1,required:!0,type:n.Property,id:pA,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"rate",description:null,index:0,defaultValue:null,dataType:lM,implements:null,static:!1,private:!1,abstract:!1,parent:dM},pM={type:n.GenericReference,id:"description-property-data-type-parent-ref-id",version:"1",entityType:n.Property,entityId:cA},cM={like:!1,inferred:!1,id:"description-property-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:se,isList:!1,asType:!1,parent:pM},fM={type:n.GenericReference,id:"description-property-parent-ref-id",version:"1",entityType:n.DefinitionEntity,entityId:ns},yM={constant:!1,hidden:!1,required:!0,type:n.Property,id:cA,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"description",description:null,defaultValue:null,dataType:cM,implements:null,static:!1,index:0,private:!1,abstract:!1,parent:fM},hM={type:n.GenericReference,id:"rate-number-property-data-type-parent-ref-id",version:"1",entityType:n.Property,entityId:fA},mM={like:!1,inferred:!1,id:"rate-number-property-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,isList:!1,asType:!1,parent:hM},vM={type:n.GenericReference,id:"rate-number-property-parent-ref-id",version:"1",entityType:n.DefinitionEntity,entityId:ns},TM={constant:!1,hidden:!1,required:!0,type:n.Property,id:fA,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"rate_float",description:null,defaultValue:null,dataType:mM,implements:null,static:!1,index:0,private:!1,abstract:!1,parent:vM},IM={type:n.GenericReference,id:"currency-prototype-parent-ref-id",version:"1",entityType:n.Project,entityId:ce},So={type:n.DefinitionEntity,id:ns,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Currency",description:"This entity describes a currency in the Bitcoin Price Index.",properties:[iM,aM,uM,yM,TM],static:!1,abstract:!1,abstractMethods:[],methods:[],extends:[],implements:[],x:0,y:0,parent:IM},EM={type:n.GenericReference,id:"usd-property-data-type-parent-ref-id",version:"1",entityType:n.Property,entityId:aA},AM={like:!1,inferred:!1,id:"usd-property-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:So,isList:!1,asType:!1,parent:EM},bM={type:n.GenericReference,id:"usd-property-parent-ref-id",version:"1",entityType:n.DefinitionEntity,entityId:ko},RM={constant:!1,hidden:!1,required:!0,id:aA,type:n.Property,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"USD",description:null,index:0,dataType:AM,defaultValue:null,implements:null,static:!1,private:!1,abstract:!1,parent:bM},DM={type:n.GenericReference,id:"gbp-property-data-type-parent-ref-id",version:"1",entityType:n.Property,entityId:oA},OM={like:!1,inferred:!1,id:"gbp-property-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:So,isList:!1,asType:!1,parent:DM},PM={type:n.GenericReference,id:"gbp-property-parent-ref-id",version:"1",entityType:n.DefinitionEntity,entityId:ko},wM={constant:!1,hidden:!1,required:!0,id:oA,type:n.Property,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"GBP",description:null,index:0,dataType:OM,defaultValue:null,implements:null,static:!1,private:!1,abstract:!1,parent:PM},CM={type:n.GenericReference,id:"eur-property-data-type-parent-ref-id",version:"1",entityType:n.Property,entityId:lA},VM={like:!1,inferred:!1,id:"eur-property-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:So,isList:!1,asType:!1,parent:CM},BM={type:n.GenericReference,id:"eur-property-parent-ref-id",version:"1",entityType:n.DefinitionEntity,entityId:ko},_M={constant:!1,hidden:!1,required:!0,id:lA,type:n.Property,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"EUR",description:null,implements:null,static:!1,index:0,defaultValue:null,dataType:VM,private:!1,abstract:!1,parent:BM},MM={type:n.GenericReference,id:"bpi-prototype-parent-ref-id",version:"1",entityType:n.Project,entityId:ce},yA={type:n.DefinitionEntity,id:ko,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"BPI",description:"The Bitcoin Price Index",properties:[RM,wM,_M],abstract:!1,static:!1,abstractMethods:[],methods:[],extends:[],implements:[],x:0,y:0,parent:MM},NM={type:n.GenericReference,id:"time-property-data-type-parent-ref-id",version:"1",entityType:n.Property,entityId:iA},LM={like:!1,inferred:!1,id:"time-property-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Fn,isList:!1,asType:!1,parent:NM},UM={type:n.GenericReference,id:"time-property-parent-ref-id",version:"1",entityType:n.DefinitionEntity,entityId:ra},gM={constant:!1,hidden:!1,required:!0,type:n.Property,id:iA,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"time",description:null,index:0,defaultValue:null,dataType:LM,implements:null,static:!1,private:!1,abstract:!1,parent:UM},jM={type:n.GenericReference,id:"disclaimer-property-data-type-parent-ref-id",version:"1",entityType:n.Property,entityId:rA},$M={like:!1,inferred:!1,id:"disclaimer-property-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:se,isList:!1,asType:!1,parent:jM},GM={type:n.GenericReference,id:"disclaimer-property-parent-ref-id",version:"1",entityType:n.DefinitionEntity,entityId:ra},FM={constant:!1,hidden:!1,required:!0,type:n.Property,id:rA,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"disclaimer",description:null,index:0,defaultValue:null,dataType:$M,implements:null,static:!1,private:!1,abstract:!1,parent:GM},xM={type:n.GenericReference,id:"chart-name-property-data-type-parent-ref-id",version:"1",entityType:n.Property,entityId:nA},kM={like:!1,inferred:!1,id:"chart-name-property-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:se,isList:!1,asType:!1,parent:xM},SM={type:n.GenericReference,id:"chart-name-property-parent-ref-id",version:"1",entityType:n.DefinitionEntity,entityId:ra},ZM={constant:!1,hidden:!1,required:!0,type:n.Property,id:nA,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"chartName",description:null,index:0,defaultValue:null,dataType:kM,implements:null,static:!1,private:!1,abstract:!1,parent:SM},qM={type:n.GenericReference,id:"bpi-property-data-type-parent-ref-id",version:"1",entityType:n.Property,entityId:sA},JM={like:!1,inferred:!1,id:"bpi-property-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:yA,isList:!1,asType:!1,parent:qM},WM={type:n.GenericReference,id:"bpi-property-parent-ref-id",version:"1",entityType:n.DefinitionEntity,entityId:ra},zM={constant:!1,hidden:!1,required:!0,type:n.Property,id:sA,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"bpi",description:null,implements:null,index:0,defaultValue:null,dataType:JM,static:!1,private:!1,abstract:!1,parent:WM},YM={type:n.GenericReference,id:"bitcoin-api-response-parent-ref-id",version:"1",entityType:n.Project,entityId:ce},hA={type:n.DefinitionEntity,id:ra,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Bitcoin API Response type",description:"The type of the data structure response from the Bitcoin API call",properties:[gM,FM,ZM,zM],abstract:!1,static:!1,abstractMethods:[],methods:[],extends:[],implements:[],x:0,y:0,parent:YM},HM={type:n.GenericReference,id:"eefa0147-f873-484b-b4f3-9e6493aab183",version:"1",entityType:n.ArgumentDeclaration,entityId:"f2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a"},KM={like:!1,inferred:!1,id:"b9f35112-dcb2-4b7c-8fb9-f196b3fa37f9",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Jt,isList:!1,asType:!1,parent:HM},XM={type:n.GenericReference,id:"128770d6-5e3a-4aff-bca0-ad1f32ebefa8",version:"1",entityType:n.ReturnStatement,entityId:"e4e05975-c277-471a-b869-f0aed316045c"},QM={type:n.GenericReference,id:"0be84bf9-6421-42b9-980f-6a03f30cb809",version:"1",entityType:n.ReturnDeclaration,entityId:"a1ec31f0-25ca-42ac-a4c4-c9ec2255f55b"},eN={like:!1,inferred:!1,id:"43daa02a-237b-4b7c-a6e9-2b8c167f6e22",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Jt,isList:!1,asType:!1,parent:QM},tN={type:n.GenericReference,id:"ad380383-4a47-43da-968e-75a2d603b230",version:"1",entityType:n.ArgumentDeclaration,entityId:"f2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a"},mA={constant:!0,isError:!1,id:"a1ec31f0-25ca-42ac-a4c4-c9ec2255f55b",type:n.ReturnDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"New Company Owner",description:"The new owner of the company",implements:null,defaultValue:null,dataType:eN,readsValue:tN,required:!0,index:0,parent:XM},iN={type:n.GenericReference,id:"4f24dc27-59a1-49bf-abcc-7d72b00926e4",version:"1",entityType:n.FunctionDeclaration,entityId:"d683bfc1-a464-4810-8ec0-1dd8eaa0c3c4"},rN={constant:!0,id:"f2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a",type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"New Company Owner",description:null,implements:null,defaultValue:null,dataType:KM,writesValues:[mA],required:!0,index:0,parent:iN},nN={type:n.GenericReference,id:"5c9a02f0-d2cf-4efc-828e-467f33a74dd3",version:"1",entityType:n.DefinitionEntity,entityId:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d"},sN={type:n.GenericReference,id:"2ff8f3da-e0c5-4f0f-b688-2c051c588786",version:"1",entityType:n.FunctionDeclaration,entityId:"d683bfc1-a464-4810-8ec0-1dd8eaa0c3c4"},aN={type:n.GenericReference,id:"195ae28c-159b-42de-80b1-2ebb8be3619f",version:"1",entityType:n.FunctionDeclaration,entityId:"d683bfc1-a464-4810-8ec0-1dd8eaa0c3c4"},oN={type:n.ReturnStatement,id:"e4e05975-c277-471a-b869-f0aed316045c",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[mA],calledByError:[],calledByEntry:[sN],calledBySuccess:[],throws:null,x:0,y:0,parent:aN},lN={type:n.FunctionDeclaration,id:"d683bfc1-a464-4810-8ec0-1dd8eaa0c3c4",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Change owner of company",description:"Change the owner of the company to a new person",inputs:[rN],calls:[oN],index:0,collapsed:!1,implements:null,private:!1,x:0,y:0,parent:nN},dN={type:n.GenericReference,id:"e691026f-6db0-43ec-93cd-805ae7d713e3",version:"1",entityType:n.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},uN={type:n.GenericReference,id:"29c4e3e0-1b66-4075-b559-45b27c5cf356",version:"1",entityType:n.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},pN={type:n.GenericReference,id:"b1289358-b185-455d-8f58-7791b15cd52a",version:"1",entityType:n.ReturnStatement,entityId:"9690cd1d-ea35-4e83-823d-0c7310265fee"},cN={type:n.GenericReference,id:"d847bb49-8789-4550-bb2d-e2d551993b28",version:"1",entityType:n.VariableDeclaration,entityId:"e5a8b6d0-0e6f-4e9a-9b1e-8a2b5c7f0d5a"},fN={type:n.GenericReference,id:"06535500-c37c-4915-8398-1d4e184fa5e7",version:"1",entityType:n.ReturnDeclaration,entityId:"e7a35277-a0c4-46d5-aca2-bddd0c26e931"},yN={like:!1,inferred:!1,id:"d358dd91-35f7-4095-b728-3fb3c71dbc05",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:er,asType:!1,isList:!1,parent:fN},Ru={constant:!0,isError:!1,id:"e7a35277-a0c4-46d5-aca2-bddd0c26e931",type:n.ReturnDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Is name registered",description:"Whether the company name is already registered",defaultValue:null,dataType:yN,implements:null,readsValue:cN,required:!0,index:0,parent:pN},hN={type:n.GenericReference,id:"gov-company-registry-return-statement-called-by-success-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:"e5a8b6d0-0e6f-4e9a-9b1e-8a2b5c7f0d5a"},vA={type:n.ReturnStatement,id:"9690cd1d-ea35-4e83-823d-0c7310265fee",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[Ru],calledByError:[],calledByEntry:[],calledBySuccess:[dN,hN],throws:null,x:0,y:0,parent:uN},mN={type:n.GenericReference,id:"b3126414-4c9b-495f-901e-59f5073c8d67",version:"1",entityType:n.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},vN={type:n.GenericReference,id:"35115c48-618b-411b-a290-d746d22fdd10",version:"1",entityType:n.VariableDeclaration,entityId:"83e12ebb-c958-4dee-b750-8ab9930f0f4e"},TA={id:"a0e7b4e5-2f5f-4d4c-8f5c-1e1f1e1a1b1a",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Vd,name:null,description:null,readsValue:vN,defaultValue:null,parent:mN,index:2},TN={type:n.GenericReference,id:"14f46eae-04a5-47d1-9c7f-28fb09b84d1d",version:"1",entityType:n.VariableDeclaration,entityId:"e5a8b6d0-0e6f-4e9a-9b1e-8a2b5c7f0d5a"},IN={like:!1,inferred:!1,id:"990bd5d1-07ea-4253-acc1-d03bedd22a38",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:er,isList:!1,asType:!1,parent:TN},EN={type:n.GenericReference,id:"e4c3542a-8fb0-4b72-8d6e-3fdff812dd67",version:"1",entityType:n.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},AN={type:n.GenericReference,id:"825f9f60-22a8-4cc6-9055-d7333f8e92f4",version:"1",entityType:n.OutputMap,entityId:"8f30d787-9459-4d8d-98a2-b46fbc2006d5"},bN={type:n.GenericReference,id:"is-company-name-registered-var-called-by-ref",version:"1",entityType:n.Operation,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},IA={constant:!0,required:!0,type:n.VariableDeclaration,id:"e5a8b6d0-0e6f-4e9a-9b1e-8a2b5c7f0d5a",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Is name registered",description:"Whether the company name is registered with the government company registry",defaultValue:null,dataType:IN,readsValue:AN,writesValues:[Ru],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[bN],successCalls:[vA],errorCalls:[],internalCalls:[],x:0,y:0,parent:EN},RN={type:n.GenericReference,id:"1aba021e-48ef-44ac-93d0-eaecac5895da",version:"1",entityType:n.InputMap,entityId:"c3c8d6c1-3e0d-4e6c-9f9c-6b8c7d7f8e9a"},DN={type:n.GenericReference,id:"dffae7e0-0a5c-4c14-8ed2-8d680b4c4c86",version:"1",entityType:n.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},ON={type:n.InputMap,id:"c3c8d6c1-3e0d-4e6c-9f9c-6b8c7d7f8e9a",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Ha,name:null,description:null,readsValue:null,defaultValue:{id:"gov-http-request-url-argument-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:"https://api.publicapis.org/entries",name:L.String,valueAsTypeList:null,valueAsTypeSingle:null,parent:RN,autogeneration:null},index:1,parent:DN},PN={type:n.GenericReference,id:"64ae61f5-ace7-401b-926d-25f852daa60e",version:"1",entityType:n.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},wN={id:"8f30d787-9459-4d8d-98a2-b46fbc2006d5",type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:to,index:2,writesValues:[IA],parent:PN},CN={type:n.GenericReference,id:"62a1a086-caea-4270-9c9f-a1695503e745",version:"1",entityType:n.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},VN={id:"48cf7654-8f3e-4fcd-abc6-740876c310a0",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Ya,name:null,description:null,readsValue:null,index:0,defaultValue:null,parent:CN},BN={type:n.GenericReference,id:"b0c9c79f-f525-428d-99e7-087d3237ad62",version:"1",entityType:n.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},_N={id:"2c1dc406-4b71-4023-87b2-abede3a111d2",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:null,description:null,declaration:Ka,index:3,readsValue:null,defaultValue:null,parent:BN},MN={type:n.GenericReference,id:"9887d6c9-d75b-4c97-b722-e2e60945ea20",version:"1",entityType:n.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},NN={id:"3fef94b2-0278-43ae-b0c5-bc7083f0a111",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Xa,name:null,description:null,readsValue:null,index:4,defaultValue:null,parent:MN},LN={type:n.GenericReference,id:"561275b6-5056-45d8-bf7d-8abaa4645593",version:"1",entityType:n.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},UN={id:"3efe20a7-4d63-411e-89ef-63e277f48d66",type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:eo,index:1,writesValues:[],parent:LN},gN={type:n.GenericReference,id:"3170ccc2-13de-4bfc-802a-a643be41cd42",version:"1",entityType:n.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},jN={id:"40d34323-d7e6-440a-8016-67c05a3b66dd",type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:Qa,index:0,writesValues:[],parent:gN},$N={type:n.GenericReference,id:"7432fa82-f574-4c54-a8fa-4cc4376da3d5",version:"1",entityType:n.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},GN={type:n.GenericReference,id:"8f518502-9eea-462c-8753-8bc3bf3e29a9",version:"1",entityType:n.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},FN={type:n.GenericReference,id:"123b8f18-79d9-4166-a5f6-78ec4b461680",version:"1",entityType:n.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},xN={type:n.GenericReference,id:"e691026f-6db0-43ec-93cd-805ae7d713e3",version:"1",entityType:n.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},kN={type:n.GenericReference,id:"a375eedf-4811-41aa-a998-4897c69c46b9",version:"1",entityType:n.ReturnDeclaration,entityId:"024a9b77-c1cd-4b67-b3ba-1935046b590d"},SN={like:!1,inferred:!1,id:"767cc5ed-20ec-4fd1-89b1-c8d19daa87d1",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Ot,asType:!1,isList:!1,parent:kN},ZN={type:n.GenericReference,id:"e64b0c23-129d-4d74-8ab4-eec60e1e5b9b",version:"1",entityType:n.ReturnStatement,entityId:"ea444a9e-6a5b-4138-b81f-0d5618c3c6f3"},EA={constant:!0,isError:!0,id:"024a9b77-c1cd-4b67-b3ba-1935046b590d",type:n.ReturnDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Error",description:"The error that occurred during the HTTP request to the government company registry",dataType:SN,defaultValue:null,implements:null,required:!0,readsValue:null,index:0,parent:ZN},qN={type:n.ReturnStatement,id:"ea444a9e-6a5b-4138-b81f-0d5618c3c6f3",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[],calledByError:[xN],calledByEntry:[],calledBySuccess:[],throws:EA,x:0,y:0,parent:FN},JN={type:n.GenericReference,id:"323814fb-9723-49ef-bbba-f882384f18e4",version:"1",entityType:n.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},WN={id:"2f63f7ba-0ff0-458a-92bc-65d1dd4df8c3",type:n.OutputMap,declaration:Bd,defaultValue:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,writesValues:[EA],index:0,parentRelationType:$n.Error,parent:JN},zN={type:n.Operation,id:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Bs,inputs:[VN,ON,TA,_N,NN],outputs:[jN,UN,wN],process:null,calledByError:[],calledByEntry:[$N],calledBySuccess:[],successCalls:[vA,IA],errorCalls:[qN],error:WN,x:0,y:0,parent:GN},YN={type:n.GenericReference,id:"597b8aa2-f6f2-4f7d-bbb9-b703d02de96a",version:"1",entityType:n.InputMap,entityId:"b0e7b4e5-2f5f-4d4c-8f5c-1e1f1e1a1b1a"},HN={type:n.GenericReference,id:"546d99b3-28c4-4186-93a0-ac53c1565e07",version:"1",entityType:n.Operation,entityId:"8f2094c0-e27e-465e-9280-112da0de9019"},KN={id:"b0e7b4e5-2f5f-4d4c-8f5c-1e1f1e1a1b1a",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Ja,name:null,description:null,readsValue:null,defaultValue:{id:"base-query-string-map-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:"?name=",name:L.String,parent:YN,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null},index:0,parent:HN},XN={type:n.GenericReference,id:"6a56fb22-82e1-47c9-bf85-41c4e5986c74",version:"1",entityType:n.Operation,entityId:"8f2094c0-e27e-465e-9280-112da0de9019"},QN={type:n.GenericReference,id:"191c6a6d-9bcb-441e-bf98-de0da96f5f3a",version:"1",entityType:n.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},eL={type:n.GenericReference,id:"d8fcbb76-dae2-40cf-847a-02364721b387",version:"1",entityType:n.VariableDeclaration,entityId:"83e12ebb-c958-4dee-b750-8ab9930f0f4e"},tL={like:!1,inferred:!1,id:"6a70c42b-024a-47c6-8a9d-af52be9c9b9a",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:se,isList:!1,asType:!1,parent:eL},iL={type:n.GenericReference,id:"2282e2c0-ed9e-4c7b-86fc-1a364fa0fdb8",version:"1",entityType:n.OutputMap,entityId:"f6c22cf8-63e4-4b2d-b649-b5ab884cf9a5"},rL={type:n.GenericReference,id:"assembled-query-string-called-by-ref",version:"1",entityType:n.Operation,entityId:"8f2094c0-e27e-465e-9280-112da0de9019"},AA={constant:!0,required:!0,type:n.VariableDeclaration,id:"83e12ebb-c958-4dee-b750-8ab9930f0f4e",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Query string",description:"The final, assembled query string that will be used in the HTTP request to the government company registry",defaultValue:null,dataType:tL,readsValue:iL,writesValues:[TA],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[rL],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:QN},nL={id:"f6c22cf8-63e4-4b2d-b649-b5ab884cf9a5",type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,writesValues:[AA],declaration:Cs,index:0,parent:XN},sL={type:n.GenericReference,id:"a1b48e7c-0301-4747-b4dd-b5af79956f7f",version:"1",entityType:n.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},aL={type:n.GenericReference,id:"487c9235-be95-4c96-b9b5-2714b374a277",version:"1",entityType:n.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},oL={type:n.GenericReference,id:"f6471f4f-b269-46fa-80ec-885e87a449c2",entityId:"a4106e8e-ec4f-4633-a636-09ae73135f69",version:"1",entityType:n.ArgumentDeclaration},lL={type:n.GenericReference,id:"62b4afb0-6c21-4b0f-abd3-cebef7b17c28",version:"1",entityType:n.Operation,entityId:"8f2094c0-e27e-465e-9280-112da0de9019"},bA={id:"08f36e2b-bad2-425c-8129-93560bec8488",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.InputMap,declaration:Wa,name:null,description:null,readsValue:oL,defaultValue:null,index:1,parent:lL},dL={type:n.Operation,id:"8f2094c0-e27e-465e-9280-112da0de9019",declaration:Vs,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,inputs:[bA,KN],outputs:[nL],process:null,calledByError:[],calledByEntry:[sL],calledBySuccess:[],successCalls:[AA],errorCalls:[],error:null,x:0,y:0,parent:aL},uL={type:n.GenericReference,id:"c2e0e9b4-aa46-4974-bf8a-886b737b12fb",version:"1",entityType:n.ArgumentDeclaration,entityId:"a4106e8e-ec4f-4633-a636-09ae73135f69"},pL={like:!1,inferred:!1,id:"a4279518-3bf3-44b7-a2ac-65142ca37f1c",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:se,asType:!1,isList:!1,parent:uL},cL={type:n.GenericReference,id:"dc273f24-164b-4943-82f9-589b237141e2",version:"1",entityType:n.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},RA={constant:!0,id:"a4106e8e-ec4f-4633-a636-09ae73135f69",type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Company Name to check",description:"The name of the company to check in the government registry",dataType:pL,defaultValue:null,implements:null,required:!1,writesValues:[bA],index:0,parent:cL},fL={type:n.GenericReference,id:"2178a10c-1cc0-4dad-97c3-0941be6c9738",version:"1",entityType:n.Project,entityId:ce},DA={type:n.FunctionDeclaration,id:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Check Gov Company Registry availability",description:"Check whether the company name is already registered in the government company registry, or it is available for a new company to use.",inputs:[RA],calls:[dL,zN],implements:null,index:null,collapsed:!1,private:!1,x:0,y:0,parent:fL},yL={type:n.GenericReference,id:"4d66c53c-f0f7-496a-9955-1e6c8533c5e0",version:"1",entityType:n.Condition,entityId:"a8f4b0f2-5e5e-4e8f-9d7b-1b5b9b6e9a4b"},hL={type:n.GenericReference,id:"6fa0c8e0-d104-4b4d-a035-d4f6e0c49f09",version:"1",entityType:n.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},mL={type:n.GenericReference,id:"146408d5-5336-4877-941a-777dd5871926",version:"1",entityType:n.ArgumentDeclaration,entityId:"c6cf620c-1eee-4919-8578-1a0b6c088551"},vL={type:n.GenericReference,id:"34ae8f8c-548d-4654-984a-6f36affdaf49",version:"1",entityType:n.FunctionCall,entityId:"d2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a"},OA={id:"69b1215d-9ebf-4274-b9cb-d4a5888f5122",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.InputMap,declaration:RA,name:null,description:null,readsValue:mL,defaultValue:null,index:0,parent:vL},TL={type:n.GenericReference,id:"07540a94-dda1-40b3-8452-f209bdc87b88",version:"1",entityType:n.FunctionCall,entityId:"d2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a"},IL={type:n.GenericReference,id:"eaddf12a-a995-429e-90a0-13bf06efeb28",version:"1",entityType:n.VariableDeclaration,entityId:"faaf3bf6-917d-40d7-aee6-5164f6646c4b"},EL={like:!1,inferred:!1,id:"7fdaf943-3ffb-48e0-b766-b86cc24090cf",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:er,asType:!1,isList:!1,parent:IL},AL={type:n.GenericReference,id:"030fb5c5-af4d-4c85-8cf0-e99edd50d2bd",version:"1",entityType:n.OutputMap,entityId:"c1ec31f0-25ca-42ac-a4c4-c9ec2255f55b"},bL={type:n.GenericReference,id:"a8b618e9-c68c-48c1-8bd6-ef47c87d699e",version:"1",entityType:n.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},RL={type:n.GenericReference,id:"is-company-name-valid-var-called-by-ref",version:"1",entityType:n.FunctionCall,entityId:"d2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a"},PA={constant:!0,required:!0,type:n.VariableDeclaration,id:"faaf3bf6-917d-40d7-aee6-5164f6646c4b",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Is name valid",description:"Whether the company name is valid",defaultValue:null,dataType:EL,readsValue:AL,writesValues:[],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[RL],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:bL},DL={id:"c1ec31f0-25ca-42ac-a4c4-c9ec2255f55b",type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Ru,defaultValue:null,writesValues:[PA],index:0,parent:TL},OL={type:n.FunctionCall,id:"d2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:DA,inputs:[OA],outputs:[DL],calledByError:[],calledByEntry:[],process:null,calledBySuccess:[yL],successCalls:[PA],errorCalls:[],error:null,x:0,y:0,parent:hL},PL={type:n.GenericReference,id:"9d0b87b4-bfed-4e02-9e84-6831c21feae2",version:"1",entityType:n.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},wL={type:n.GenericReference,id:"74345f4f-e80d-48be-adff-d12fcea25bec",version:"1",entityType:n.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},CL={type:n.GenericReference,id:"b39279ea-969a-4efb-a9ec-353bfd13db65",version:"1",entityType:n.ArgumentDeclaration,entityId:"c6cf620c-1eee-4919-8578-1a0b6c088551"},VL={type:n.GenericReference,id:"549db613-f225-4c5b-9634-7d096717f0ff",version:"1",entityType:n.Condition,entityId:"a8f4b0f2-5e5e-4e8f-9d7b-1b5b9b6e9a4b"},wA={id:"358e242c-7448-442e-ab8b-fd7fa119ea71",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.InputMap,declaration:ln.inputs[0],name:null,description:null,readsValue:CL,defaultValue:null,index:0,parent:VL},BL={type:n.Condition,id:"a8f4b0f2-5e5e-4e8f-9d7b-1b5b9b6e9a4b",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:ln,inputs:[wA],calledByError:[],calledByEntry:[PL],calledBySuccess:[],successCalls:[OL],errorCalls:[],x:0,y:0,parent:wL},_L={type:n.GenericReference,id:"43ba1e25-f805-488f-8ae8-c58bb6215b2f",version:"1",entityType:n.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},ML={type:n.GenericReference,id:"eb091bed-507f-4a1e-93b5-7cd2fccfe002",version:"1",entityType:n.VariableDeclaration,entityId:"9c928995-0dd5-4f97-9962-56b343bc8a45"},NL={like:!1,inferred:!1,id:"d64152ea-831f-4426-9506-a39bfa170513",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:rs,asType:!1,isList:!1,parent:ML},LL={type:n.GenericReference,id:"7e79c29f-f7bd-441a-a77e-c627604dae94",version:"1",entityType:n.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},UL={type:n.GenericReference,id:"8995ce5f-d5cf-4341-a8b1-5c046cc78b89",version:"1",entityType:n.ArgumentDeclaration,entityId:"7ed0f7bb-2df0-44e2-b0b3-0709dcca8071"},gL={type:n.GenericReference,id:"new-company-bank-account-var-decl-1-called-by-ref",version:"1",entityType:n.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},CA={constant:!0,required:!0,type:n.VariableDeclaration,id:"9c928995-0dd5-4f97-9962-56b343bc8a45",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"New bank account",description:"The new entity value representing the new bank account of the company",defaultValue:null,dataType:NL,readsValue:UL,writesValues:[],inputs:[],outputs:[],calledByError:[],calledByEntry:[gL],calledBySuccess:[],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:LL},jL={type:n.GenericReference,id:"9a4887bf-d50d-43e4-bdd5-a5262f65f04b",version:"1",entityType:n.ArgumentDeclaration,entityId:"7ed0f7bb-2df0-44e2-b0b3-0709dcca8071"},$L={like:!1,inferred:!1,id:"ae148c06-3143-49e9-9614-c3aca3f6fa7b",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:rs,asType:!1,isList:!1,parent:jL},GL={constant:!0,id:"7ed0f7bb-2df0-44e2-b0b3-0709dcca8071",type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"New bank account",description:"The new bank account of the company",dataType:$L,implements:null,defaultValue:null,required:!0,index:1,writesValues:[CA],parent:_L},FL={type:n.GenericReference,id:"caec9cf8-3133-48d4-a390-114fa71b2933",version:"1",entityType:n.DefinitionEntity,entityId:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d"},xL={type:n.GenericReference,id:"cebcbad8-ca87-4c4b-be8a-312293d49892",version:"1",entityType:n.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},kL={type:n.GenericReference,id:"7b8ccfe5-f9cd-4776-a19b-80c689bbe3df",version:"1",entityType:n.ArgumentDeclaration,entityId:"c6cf620c-1eee-4919-8578-1a0b6c088551"},SL={like:!1,inferred:!1,id:"2a6b4703-ac8d-4d25-8abd-48a115577fec",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:se,asType:!1,isList:!1,parent:kL},ZL={constant:!0,id:"c6cf620c-1eee-4919-8578-1a0b6c088551",type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"New company name",description:null,dataType:SL,implements:null,defaultValue:null,required:!0,index:0,writesValues:[wA,OA],parent:xL},qL={type:n.FunctionDeclaration,id:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Company changed event",description:"The event that is triggered when a company is changed",collapsed:!1,inputs:[ZL,GL],calls:[BL,CA],index:1,private:!1,implements:null,x:0,y:0,parent:FL},JL={type:n.GenericReference,id:"employee-manager-property-data-type-entity-ref-id",version:"1",entityType:n.DefinitionEntity,entityId:"employee-entity-id"},WL={type:n.GenericReference,id:"employee-manager-property-data-type-parent-ref-id",version:"1",entityType:n.Property,entityId:"employee-manager-property-id"},zL={like:!1,inferred:!1,id:"employee-manager-property-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:JL,isList:!1,asType:!1,parent:WL},YL={type:n.GenericReference,id:"employee-manager-property-parent-ref-id",version:"1",entityType:n.DefinitionEntity,entityId:"employee-entity-id"},HL={constant:!1,required:!0,hidden:!1,type:n.Property,id:"employee-manager-property-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Manager",description:"The manager of the employee",index:0,implements:null,private:!1,static:!1,defaultValue:null,dataType:zL,abstract:!1,parent:YL},KL={type:n.GenericReference,id:"employee-start-date-property-data-type-parent-ref-id",version:"1",entityType:n.Property,entityId:"employee-start-date-property-id"},XL={like:!1,inferred:!1,id:"employee-start-date-property-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Li,isList:!1,asType:!1,parent:KL},QL={type:n.GenericReference,id:"employee-start-date-property-parent-ref-id",version:"1",entityType:n.DefinitionEntity,entityId:"employee-entity-id"},eU={constant:!1,hidden:!1,required:!0,type:n.Property,id:"employee-start-date-property-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Start date",description:"The date the employee started working in the company",index:0,private:!1,static:!1,defaultValue:null,implements:null,dataType:XL,abstract:!1,parent:QL},tU={type:n.GenericReference,id:"employee-department-property-ref-id",version:"1",entityType:n.Property,entityId:"employee-department-property-id"},iU={like:!1,inferred:!1,id:"employee-department-property-data-type-id",type:n.DataType,parentRelationType:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:tr,isList:!1,asType:!1,options:["Human Resources","Finance","IT","Sales","Marketing","Customer Service","Logistics","Product"],parent:tU},rU={type:n.GenericReference,id:"employee-department-property-parent-ref-id",version:"1",entityType:n.DefinitionEntity,entityId:"employee-entity-id"},nU={constant:!1,hidden:!1,required:!0,type:n.Property,id:"employee-department-property-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Department",description:"The department the employee works in, from a list of departments in the company",index:0,defaultValue:null,implements:null,static:!1,private:!1,dataType:iU,abstract:!1,parent:rU},sU={type:n.GenericReference,id:"employee-prototype-parent-ref-id",version:"1",entityType:n.Project,entityId:ce},Ei={type:n.DefinitionEntity,id:"employee-entity-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Employee",description:"A entity that represents an employee in the company",properties:[nU,eU,HL],abstract:!1,static:!1,abstractMethods:[],methods:[],implements:[],extends:[Jt],x:0,y:0,parent:sU},aU={type:n.GenericReference,id:"dec8fbfe-9124-41fd-9f1c-5b2f07cfd6ba",version:"1",entityType:n.Property,entityId:"4f52d044-f3dd-4bdf-927e-637c3b92e8bd"},oU={like:!1,inferred:!1,id:"bc0b8979-6c43-4d47-a712-6742b89e3c00",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:se,isList:!1,asType:!1,parent:aU},lU={type:n.GenericReference,id:"4f8c0a05-466e-4672-b4c4-6bd408c0be9a",version:"1",entityType:n.DefinitionEntity,entityId:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d"},dU={constant:!1,hidden:!1,required:!0,type:n.Property,id:"4f52d044-f3dd-4bdf-927e-637c3b92e8bd",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Company Name",private:!1,static:!1,description:"The name of the company",index:0,defaultValue:null,implements:null,dataType:oU,abstract:!1,parent:lU},uU={type:n.GenericReference,id:"95173fe0-a6e6-443c-94f3-f7c5cf171fcf",version:"1",entityType:n.Property,entityId:"80c86e1b-caca-4ba5-9b1f-38f72d10e4a3"},pU={like:!1,inferred:!1,id:"ddbb6f5c-0cf4-41fb-83b3-b6c47c0e338d",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:rs,isList:!1,asType:!1,parent:uU},cU={type:n.GenericReference,id:"6a9a0b72-a05d-4169-b3f3-5afb01e8d0df",version:"1",entityType:n.DefinitionEntity,entityId:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d"},Du={constant:!1,hidden:!1,required:!0,type:n.Property,id:"80c86e1b-caca-4ba5-9b1f-38f72d10e4a3",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Bank account",description:"The bank account of the company",index:1,implements:null,static:!1,private:!1,defaultValue:null,dataType:pU,abstract:!1,parent:cU},fU={type:n.GenericReference,id:"62892cc6-d227-4088-90d3-ae7c15ed4af4",version:"1",entityType:n.Property,entityId:"19a31727-1fba-40a5-be25-18e0f149d5cb"},yU={like:!1,inferred:!1,id:"1f7629df-dc29-4c89-8369-c6d043e97a9e",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Jt,isList:!1,asType:!1,parent:fU},hU={type:n.GenericReference,id:"89384206-fd5a-4f0a-849c-f777473e5773",version:"1",entityType:n.DefinitionEntity,entityId:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d"},mU={constant:!1,hidden:!1,required:!0,type:n.Property,id:"19a31727-1fba-40a5-be25-18e0f149d5cb",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Company Owner",description:"The person that owns the company",index:2,static:!1,implements:null,defaultValue:null,dataType:yU,private:!0,abstract:!1,parent:hU},vU={type:n.GenericReference,id:"4d2ffb6c-5f38-436e-8339-fb9878ac2b5e",version:"1",entityType:n.Property,entityId:"f8310850-a87e-405c-b182-4f1d5fa49240"},TU={like:!1,inferred:!1,id:"ad44250b-40c2-48f7-a480-381fa938f562",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Ei,isList:!0,asType:!1,parent:vU},IU={type:n.GenericReference,id:"aa5d4eee-6fac-4e72-bf21-9c8750024541",version:"1",entityType:n.DefinitionEntity,entityId:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d"},EU={constant:!1,hidden:!1,required:!0,type:n.Property,id:"f8310850-a87e-405c-b182-4f1d5fa49240",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Employees",description:null,index:3,defaultValue:null,dataType:TU,implements:null,private:!0,static:!1,abstract:!1,parent:IU},AU={id:"company-prototype-primary-key-property-data-type-ref-id",type:n.GenericReference,entityId:"company-prototype-primary-key-property-id",version:"1",entityType:n.Property},bU={id:"company-prototype-primary-key-property-ref-id",type:n.GenericReference,entityId:"company-prototype-primary-key-property-id",version:"1",entityType:n.Property},RU={like:!1,inferred:!1,id:"company-prototype-primary-key-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ir,asType:!1,parent:bU},DU={id:"company-prototype-primary-key-property-parent-ref-id",type:n.GenericReference,entityId:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d",version:"1",entityType:n.DefinitionEntity},OU={constant:!1,hidden:!1,required:!0,id:"company-prototype-primary-key-property-id",name:"Identifier",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,implements:Wn,static:!1,index:4,defaultValue:{id:"company-prototype-primary-key-property-data-type-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.UUID,value:null,parent:AU,autogeneration:{type:vt.Unique,rangeStart:null,rangeEnd:null},valueAsTypeList:null,valueAsTypeSingle:null},dataType:RU,description:"A property with a unique value for the entity, that can be used to identify the entity among other entities of the same type.",parent:DU},PU={type:n.GenericReference,id:"e3c03b6b-2ea0-4d99-865d-5e6a348672d0",version:"1",entityType:n.Project,entityId:ce},Ai={type:n.DefinitionEntity,id:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Company",description:null,properties:[dU,Du,mU,EU,OU],static:!1,abstract:!1,abstractMethods:[],methods:[lN,qL],extends:[],implements:[Ct,pi],x:0,y:0,parent:PU},wU={type:n.GenericReference,id:"ffcad334-138d-4b67-8fb3-5f0e6f5fefbd",version:"1",entityType:n.Project,entityId:ce},Ou={type:n.FunctionDeclaration,id:"0f89260c-8c58-4639-8629-d9ea5ab40ba7",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Show popup",description:null,inputs:[],calls:[],implements:null,collapsed:!1,private:!1,index:null,x:0,y:0,parent:wU};n.GenericReference,n.DataType;const CU={id:"cron-job-entity-expression-property-ref-id",type:n.GenericReference,entityId:"cron-job-entity-expression-property-id",version:"1",entityType:n.Property},VU={like:!1,inferred:!1,id:"cron-job-entity-expression-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:se,asType:!1,parent:CU},BU={id:"cron-job-entity-ref-id",type:n.GenericReference,entityId:"cron-job-entity-id",version:"1",entityType:n.DefinitionEntity},_U={constant:!1,hidden:!1,required:!0,id:"cron-job-entity-expression-property-id",type:n.Property,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Cron expression",description:"The cron expression that defines when the cron job should be triggered",defaultValue:null,dataType:VU,implements:null,static:!0,private:!1,abstract:!1,index:0,parent:BU},MU={id:"cron-job-entity-trigger-show-popup-func-call-called-by-ref-one-id",type:n.GenericReference,entityId:"cron-job-entity-trigger-func-decl-id",version:"1",entityType:n.FunctionDeclaration},NU={id:"cron-job-entity-trigger-show-popup-func-call-parent-ref-id",type:n.GenericReference,entityId:"cron-job-entity-trigger-func-decl-id",version:"1",entityType:n.FunctionDeclaration},LU={id:"cron-job-entity-trigger-show-popup-func-call-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.FunctionCall,declaration:Ou,inputs:[],outputs:[],process:null,successCalls:[],calledByError:[],calledByEntry:[MU],calledBySuccess:[],errorCalls:[],error:null,x:0,y:0,parent:NU},UU={id:"cron-job-entity-trigger-func-decl-parent-ref-id",type:n.GenericReference,entityId:"cron-job-entity-id",version:"1",entityType:n.DefinitionEntity},gU={id:"cron-job-entity-trigger-func-decl-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.FunctionDeclaration,name:"Scheduled trigger",description:"The function that is called when the cron job is triggered",inputs:[],private:!1,implements:Qd,calls:[LU],collapsed:!1,index:0,x:0,y:0,parent:UU},jU={id:"cron-job-entity-parent-ref-id",type:n.GenericReference,entityId:ce,version:"1",entityType:n.Project},$U={id:"cron-job-entity-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DefinitionEntity,name:"Run at 12pm on Christmas day",description:"A cron job that runs at 12pm on Christmas day",properties:[_U],static:!0,abstract:!1,abstractMethods:[],extends:[co],implements:[],methods:[gU],x:0,y:0,parent:jU},GU={type:n.GenericReference,id:"52dbd85c-48b1-462a-8205-2437d6fb1cb4",version:"1",entityType:n.Project,entityId:ce},FU={type:n.DefinitionEntity,id:"6f0908c2-09c6-4a8b-8f43-d2467fe6fb39",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Get bank all bank accounts",description:null,properties:[],static:!0,abstract:!1,abstractMethods:[],methods:[],extends:[],implements:[js],x:0,y:0,parent:GU},Zo="f558fbf8-67de-4545-9804-6ae621e0b2d4",xU={id:"getCompanyByIdEndpointPathParamsVariableDataTypeRef",type:n.GenericReference,version:"1",entityType:n.ArgumentDeclaration,entityId:"getCompanyByIdEndpointPathParamsArgumentDeclaration"},kU={id:"getCompanyByIdEndpointPathParamsArgumentDeclarationRef",type:n.GenericReference,version:"1",entityType:n.ArgumentDeclaration,entityId:"getCompanyByIdEndpointPathParamsArgumentDeclaration"},SU={like:!1,inferred:!1,id:"getCompanyByIdEndpointPathParamsVariableDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!0,entity:se,asType:!1,parent:kU},ZU={id:"getCompanyByIdEndpointReachedEntityEventRef",type:n.GenericReference,version:"1",entityType:n.FunctionDeclaration,entityId:"getCompanyByIdEndpointReachedEntityEvent"},qU={id:"getCompanyByIdEndpointRequestHeadersVariableDataTypeRef",type:n.GenericReference,version:"1",entityType:n.ArgumentDeclaration,entityId:"getCompanyByIdEndpointRequestHeadersArgumentDeclaration"},JU={id:"getCompanyByIdEndpointRequestHeadersArgumentDeclarationRef",type:n.GenericReference,version:"1",entityType:n.ArgumentDeclaration,entityId:"getCompanyByIdEndpointRequestHeadersArgumentDeclaration"},WU={like:!1,inferred:!1,id:"getCompanyByIdEndpointRequestHeadersVariableDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!0,entity:Ot,asType:!1,parent:JU},zU={constant:!0,id:"getCompanyByIdEndpointRequestHeadersArgumentDeclaration",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:"A set of any properties, with names and value that transmit metadata about the request.",type:n.ArgumentDeclaration,writesValues:[],name:"Request headers",defaultValue:{id:"getCompanyByIdEndpointRequestHeadersVariableDataTypeDefaultValueId",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.KeyValue,value:{},parent:qU,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},dataType:WU,implements:kd,required:!0,index:0,parent:ZU},YU={id:"getCompanyByIdEndpointReachedEntityEventRefTwo",type:n.GenericReference,version:"1",entityType:n.FunctionDeclaration,entityId:"getCompanyByIdEndpointReachedEntityEvent"},HU={constant:!0,id:"getCompanyByIdEndpointPathParamsArgumentDeclaration",type:n.ArgumentDeclaration,description:"A standarized text, without spaces that is added at the end of the domain and routes the request to a specific resource within the target server. For example: /api/users/123, /api/users/123/:name, /api/users/123/:name/:age.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Path parameters",writesValues:[],defaultValue:{id:"getCompanyByIdEndpointPathParamsVariableDataTypeDefaultValueId",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.KeyValue,value:{},parent:xU,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},dataType:SU,implements:Sd,required:!0,index:1,parent:YU},KU={id:"getCompanyByIdEndpointReachedEntityEventRefThree",type:n.GenericReference,version:"1",entityType:n.FunctionDeclaration,entityId:"getCompanyByIdEndpointReachedEntityEvent"},XU={id:"getCompanyByIdEndpointRequestQueryParamsVariableDataTypeRef",type:n.GenericReference,version:"1",entityType:n.ArgumentDeclaration,entityId:"getCompanyByIdEndpointRequestQueryParamsArgumentDeclaration"},QU={id:"getCompanyByIdEndpointRequestQueryParamsArgumentDeclarationRef",type:n.GenericReference,version:"1",entityType:n.ArgumentDeclaration,entityId:"getCompanyByIdEndpointRequestQueryParamsArgumentDeclaration"},eg={like:!1,inferred:!1,id:"getCompanyByIdEndpointRequestQueryParamsVariableDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!0,asType:!1,entity:se,parent:QU},tg={constant:!0,id:"getCompanyByIdEndpointRequestQueryParamsArgumentDeclaration",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:"A text with standarized format, without spaces that is added at the end of the URL path, after the ? character. It contains data that might be used to process the request. For example: /api/users?name=John&age=30",type:n.ArgumentDeclaration,writesValues:[],name:"Request query params",defaultValue:{id:"getCompanyByIdEndpointRequestQueryParamsVariableDataTypeDefaultValueId",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.KeyValue,value:{},parent:XU,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},dataType:eg,implements:Zd,required:!0,index:2,parent:KU},ig={id:"getCompanyByIdEndpointReachedEntityEventRefFour",type:n.GenericReference,version:"1",entityType:n.FunctionDeclaration,entityId:"getCompanyByIdEndpointReachedEntityEvent"},rg={id:"getCompanyByIdEndpointRequestBodyArgumentDeclarationRef",type:n.GenericReference,version:"1",entityType:n.ArgumentDeclaration,entityId:"getCompanyByIdEndpointRequestBodyArgumentDeclaration"},ng={like:!1,inferred:!1,id:"getCompanyByIdEndpointRequestBodyVariableDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,asType:!1,entity:Ot,parent:rg},sg={constant:!0,id:"getCompanyByIdEndpointRequestBodyArgumentDeclaration",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:"The main data payload of the request.",type:n.ArgumentDeclaration,writesValues:[],name:"Request body",defaultValue:null,dataType:ng,implements:qd,index:3,required:!0,parent:ig},ag={id:"getCompanyByIdEndpointResponseCodeReturnDeclarationRef",type:n.GenericReference,version:"1",entityType:n.ReturnDeclaration,entityId:"getCompanyByIdEndpointResponseCodeReturnDeclaration"},og={like:!1,inferred:!1,id:"9ba575b0-6f8e-436d-a3de-3b843622aa17",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,asType:!1,isList:!1,parent:ag},lg={id:"getCompanyByIdEndpointReturnStatementRef",type:n.GenericReference,version:"1",entityType:n.ReturnStatement,entityId:"getCompanyByIdEndpointReturnStatement"},dg={constant:!0,isError:!1,id:"getCompanyByIdEndpointResponseCodeReturnDeclaration",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:"A standarized number that represents the status of the response. 200 for OK, 404 for not found, 500 for server error, etc.",type:n.ReturnDeclaration,name:"Response code",defaultValue:null,dataType:og,implements:Jd,readsValue:null,required:!0,index:0,parent:lg},ug={id:"getCompanyByIdEndpointResponseHeadersDataTypeRef",type:n.GenericReference,version:"1",entityType:n.ReturnDeclaration,entityId:"getCompanyByIdEndpointResponseHeadersReturnDeclaration"},pg={id:"getCompanyByIdEndpointResponseHeadersReturnDeclarationRef",type:n.GenericReference,version:"1",entityType:n.ReturnDeclaration,entityId:"getCompanyByIdEndpointResponseHeadersReturnDeclaration"},cg={like:!1,inferred:!1,id:"getCompanyByIdEndpointResponseHeadersDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!0,entity:Ot,asType:!1,parent:pg},fg={id:"getCompanyByIdEndpointReturnStatementRefTwo",type:n.GenericReference,version:"1",entityType:n.ReturnStatement,entityId:"getCompanyByIdEndpointReturnStatement"},yg={constant:!0,isError:!1,id:"getCompanyByIdEndpointResponseHeadersReturnDeclaration",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:"A set of any properties, with names and value that transmit metadata about the response.",type:n.ReturnDeclaration,name:"Response headers",defaultValue:{id:"getCompanyByIdEndpointResponseHeadersDataTypeDefaultValueId",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.KeyValue,value:{},parent:ug,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},dataType:cg,implements:Wd,readsValue:null,required:!0,index:1,parent:fg},hg={id:"getCompanyByIdEndpointResponseBodyReturnDeclarationRef",type:n.GenericReference,version:"1",entityType:n.ReturnDeclaration,entityId:"getCompanyByIdEndpointResponseBodyReturnDeclaration"},mg={like:!1,inferred:!1,id:"getCompanyByIdEndpointResponseBodyDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,asType:!1,entity:Ot,parent:hg},vg={id:"getCompanyByIdEndpointReturnStatementRefThree",type:n.GenericReference,version:"1",entityType:n.ReturnStatement,entityId:"getCompanyByIdEndpointReturnStatement"},Tg={constant:!0,isError:!1,id:"getCompanyByIdEndpointResponseBodyReturnDeclaration",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:"The main data payload of the response.",type:n.ReturnDeclaration,name:"Response body",implements:zd,defaultValue:null,dataType:mg,readsValue:null,required:!0,index:2,parent:vg},Ig={id:"getCompanyByIdEndpointReturnStatementCallerRef",type:n.GenericReference,entityId:"getCompanyByIdEndpointReachedEntityEvent",version:"1",entityType:n.FunctionDeclaration},Eg={id:"getCompanyByIdEndpointReachedEntityEventRefFive",type:n.GenericReference,version:"1",entityType:n.FunctionDeclaration,entityId:"getCompanyByIdEndpointReachedEntityEvent"};n.ReturnStatement;const Ag={id:"endpointBuiltInBaseEntityRefFour",type:n.GenericReference,version:"1",entityType:n.BuiltInBaseEntity,entityId:Zo},bg={id:"getCompanyByIdEndpointReachedEntityEvent",name:"Endpoint reached",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.FunctionDeclaration,inputs:[zU,HU,tg,sg],description:"Fired when the endpoint is reached.",calls:[],collapsed:!1,implements:Yd,index:0,private:!1,x:0,y:0,parent:Ag},Rg={id:"getCompanyByIdEndpointPathPropertyDataTypeRef",type:n.GenericReference,version:"1",entityType:n.Property,entityId:"getCompanyByIdEndpointPathProperty"},Dg={id:"getCompanyByIdEndpointPathPropertyRef",type:n.GenericReference,version:"1",entityType:n.Property,entityId:"getCompanyByIdEndpointPathProperty"},Og={like:!1,inferred:!1,id:"getCompanyByIdEndpointPathPropertyDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:se,asType:!1,parent:Dg},Pg={id:"getCompanyByIdEndpointBaseEntityRefTwo",type:n.GenericReference,version:"1",entityType:n.DefinitionEntity,entityId:Zo},wg={constant:!1,id:"getCompanyByIdEndpointPathProperty",hidden:!1,required:!0,name:"Path",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,static:!0,implements:Fd,defaultValue:{id:"getCompanyByIdEndpointPathPropertyDataTypeDefaultValueId",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.String,value:"/company/{id}",parent:Rg,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null},dataType:Og,index:1,description:"Path to the endpoint, for example /api/users, or /api/users/{id}, or /api/users/{id}/:name. The path can contain parameters, which are defined by curly braces, and will be passed to the endpoint event as variables with the same name.",parent:Pg},Cg={id:"getCompanyByIdEndpointMethodPropertyDataTypeRef",type:n.GenericReference,version:"1",entityType:n.Property,entityId:"getCompanyByIdEndpointMethodProperty"},Vg={id:"getCompanyByIdEndpointMethodPropertyRef",type:n.GenericReference,version:"1",entityType:n.Property,entityId:"getCompanyByIdEndpointMethodProperty"},Bg={like:!1,inferred:!1,id:"getCompanyByIdEndpointMethodPropertyDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,entity:tr,isList:!0,asType:!1,options:["GET","POST","PUT","DELETE","PATCH","OPTIONS","HEAD","TRACE","CONNECT","CUSTOM"],parent:Vg},_g={id:"getCompanyByIdEndpointBaseEntityRefThree",type:n.GenericReference,version:"1",entityType:n.DefinitionEntity,entityId:Zo},Mg={constant:!1,hidden:!1,required:!0,id:"getCompanyByIdEndpointMethodProperty",name:"Method",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,static:!0,implements:xd,index:0,defaultValue:{id:"getCompanyByIdEndpointMethodPropertyDataTypeDefaultValueId",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:"GET",name:L.Enum,parent:Cg,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null},dataType:Bg,description:null,parent:_g},Ng={type:n.GenericReference,id:"6a905153-8aa8-4424-bd7b-6415731a2725",version:"1",entityType:n.Project,entityId:ce},Lg={type:n.DefinitionEntity,id:Zo,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Get given company data by id",description:null,properties:[wg,Mg],methods:[bg],static:!0,abstract:!1,abstractMethods:[],extends:[],implements:[js],x:0,y:0,parent:Ng},Ug={id:"plant-prototype-database-property-ref-id",type:n.GenericReference,entityId:"plant-prototype-database-property-id",version:"1",entityType:n.Property},gg={id:"plant-prototype-database-property-data-type-default-value-parent-ref-id",type:n.GenericReference,entityId:"plant-prototype-database-property-id",version:"1",entityType:n.Property},jg={like:!1,inferred:!1,id:"plant-prototype-database-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ji,asType:!1,parent:Ug},$g={id:"plant-prototype-database-property-parent-ref-id",type:n.GenericReference,entityId:"plant-entity-id",version:"1",entityType:n.DefinitionEntity},Gg={constant:!1,hidden:!1,required:!0,id:"plant-prototype-database-property-id",name:"Database",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,implements:Jn,static:!0,index:0,defaultValue:{id:"plant-prototype-database-property-data-type-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:null,name:L.EntityTemplate,valueAsTypeList:null,valueAsTypeSingle:Iu,autogeneration:null,parent:gg},dataType:jg,description:"The database that the entity belongs to.",parent:$g},Fg={type:n.GenericReference,id:"plant-name-property-ref-id",version:"1",entityType:n.Property,entityId:"plant-name-property-id"},xg={like:!1,inferred:!1,id:"plant-name-property-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:se,asType:!1,isList:!1,parent:Fg},kg={type:n.GenericReference,id:"animal-name-property-parent-ref-id",version:"1",entityType:n.DefinitionEntity,entityId:"plant-entity-id"},Sg={constant:!1,hidden:!1,required:!0,type:n.Property,id:"plant-name-property-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Name",description:"The name of the plant",defaultValue:null,implements:null,static:!1,private:!1,index:0,dataType:xg,abstract:!1,parent:kg},Zg={type:n.GenericReference,id:"plant-prototype-parent-ref-id",version:"1",entityType:n.Project,entityId:ce},qg={type:n.DefinitionEntity,id:"plant-entity-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Plant",description:"A living creature that is not an animal",abstract:!1,static:!1,abstractMethods:[],properties:[Gg,Sg],methods:[],extends:[],implements:[Ct],x:0,y:0,parent:Zg},Jg={id:"product-prototype-database-property-ref-id",type:n.GenericReference,entityId:"product-prototype-database-property-id",version:"1",entityType:n.Property},Wg={id:"product-prototype-database-property-data-type-default-value-parent-ref-id",type:n.GenericReference,entityId:"product-prototype-database-property-id",version:"1",entityType:n.Property},zg={like:!1,inferred:!1,id:"product-prototype-database-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ji,asType:!1,parent:Jg},Yg={id:"product-prototype-database-property-parent-ref-id",type:n.GenericReference,entityId:"a2d0ec83-72ce-4f54-b059-a39e018fa86c",version:"1",entityType:n.DefinitionEntity},Hg={constant:!1,hidden:!1,required:!0,id:"product-prototype-database-property-id",name:"Database",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,implements:Jn,static:!0,index:0,defaultValue:{id:"product-prototype-database-property-data-type-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:null,name:L.EntityTemplate,valueAsTypeList:null,valueAsTypeSingle:Eu,autogeneration:null,parent:Wg},dataType:zg,description:"The database that the entity belongs to.",parent:Yg},Kg={type:n.GenericReference,id:"13a4045e-dcb0-4159-8d33-10a646078b5a",version:"1",entityType:n.Property,entityId:"d519c26a-15b8-40d8-ad09-13fa9342e9ba"},Xg={like:!1,inferred:!1,id:"7449779e-1d4e-409c-81c6-4b611336ed18",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:se,isList:!1,asType:!1,parent:Kg},Qg={type:n.GenericReference,id:"0969562f-d836-406f-8b48-dd9d417fbe72",version:"1",entityType:n.DefinitionEntity,entityId:"a2d0ec83-72ce-4f54-b059-a39e018fa86c"},ej={constant:!1,hidden:!1,required:!0,type:n.Property,id:"d519c26a-15b8-40d8-ad09-13fa9342e9ba",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Name",description:"The name of the product",index:0,implements:null,static:!1,private:!1,defaultValue:null,dataType:Xg,abstract:!1,parent:Qg},tj={type:n.GenericReference,id:"833a5425-7bd0-41dd-9e97-e018acce9592",version:"1",entityType:n.Project,entityId:ce},ij={id:"product-prototype-primary-key-property-data-type-ref-id",type:n.GenericReference,entityId:"product-prototype-primary-key-property-id",version:"1",entityType:n.Property},rj={id:"product-prototype-primary-key-property-ref-id",type:n.GenericReference,entityId:"product-prototype-primary-key-property-id",version:"1",entityType:n.Property},nj={like:!1,inferred:!1,id:"product-prototype-primary-key-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ir,asType:!1,parent:rj},sj={id:"product-prototype-primary-key-property-parent-ref-id",type:n.GenericReference,entityId:"a2d0ec83-72ce-4f54-b059-a39e018fa86c",version:"1",entityType:n.DefinitionEntity},aj={constant:!1,hidden:!1,required:!0,id:"product-prototype-primary-key-property-id",name:"Identifier",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,implements:null,static:!1,index:0,defaultValue:{id:"product-prototype-primary-key-property-data-type-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.UUID,value:null,parent:ij,autogeneration:{type:vt.Unique,rangeStart:null,rangeEnd:null},valueAsTypeList:null,valueAsTypeSingle:null},dataType:nj,description:"A property with a unique value for the entity, that can be used to identify the entity among other entities of the same type.",parent:sj},oj={type:n.DefinitionEntity,id:"a2d0ec83-72ce-4f54-b059-a39e018fa86c",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Product",description:"A product that can be sold",implements:[Ct,pi],extends:[],abstract:!1,static:!1,abstractMethods:[],properties:[aj,Hg,ej],methods:[],x:0,y:0,parent:tj},ss="project-loaded-event-id",lr="get-bitcoin-price-http-call-operation-id",VA="get-bitcoin-price-http-call-response-body-id",qo="validate-bitcoin-price-response-operation-ids",lj={type:n.GenericReference,id:"validate-bitcoin-data-to-validate-input-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:VA},dj={type:n.GenericReference,id:"validate-bitcoin-data-to-validate-input-map-parent-ref-id",version:"1",entityType:n.Operation,entityId:qo},BA={id:"validate-bitcoin-data-to-validate-input-map-id",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:rn.inputs[1],name:null,description:null,readsValue:lj,defaultValue:null,index:0,parent:dj},uj={type:n.GenericReference,id:"validate-bitcoin-type-to-match-input-map-default-value-parent-ref-id",version:"1",entityType:n.InputMap,entityId:"validate-bitcoin-type-to-match-input-map-id"},pj={type:n.GenericReference,id:"validate-bitcoin-type-to-match-input-map-parent-ref-id",version:"1",entityType:n.Operation,entityId:qo},cj={id:"validate-bitcoin-type-to-match-input-map-id",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:rn.inputs[0],name:null,description:null,readsValue:null,defaultValue:{id:"validate-bitcoin-type-to-match-input-map-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.EntityTemplate,valueAsTypeList:null,valueAsTypeSingle:hA,value:null,parent:uj,autogeneration:null},index:0,parent:pj},fj={type:n.GenericReference,id:"validate-bitcoin-validated-entity-output-map-parent-ref-id",version:"1",entityType:n.Operation,entityId:qo},yj={id:"validate-bitcoin-validated-entity-output-map-id",type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:rn.outputs[0],writesValues:[],index:0,parent:fj},hj={type:n.GenericReference,id:"validate-bitcoin-price-response-operation-parent-ref-id",version:"1",entityType:n.GlobalEvent,entityId:ss},mj={type:n.GenericReference,id:"validate-bitcoin-price-response-operation-called-by-ref-id",version:"1",entityType:n.Operation,entityId:lr},vj={type:n.Operation,id:qo,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:rn,inputs:[cj,BA],outputs:[yj],process:null,successCalls:[],errorCalls:[],error:null,x:0,y:0,calledByError:[],calledByEntry:[],calledBySuccess:[mj],parent:hj},Tj={type:n.GenericReference,id:"96edb661-3f36-406c-8921-f1679dd796a3",version:"1",entityType:n.FunctionCall,entityId:lr},Ij={id:"c93e1393-9b5e-4de2-b8da-7eae647d715a",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.InputMap,declaration:Ya,name:null,description:null,readsValue:null,defaultValue:null,index:0,parent:Tj},Ej={type:n.GenericReference,id:"40312b28-71b8-4b01-a654-58b87191939d",version:"1",entityType:n.FunctionCall,entityId:lr},Aj={type:n.GenericReference,id:"6ea96c7d-02a7-4971-82ad-2f32a0fec8b4",version:"1",entityType:n.InputMap,entityId:"9f21cbac-5a83-4983-8923-9224ffd3ba9f"},bj={id:"9f21cbac-5a83-4983-8923-9224ffd3ba9f",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.InputMap,declaration:Ha,name:null,description:null,readsValue:null,defaultValue:{id:"get-bitcoin-price-http-request-url-argument-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:"https://api.coindesk.com/v1/bpi/currentprice.json",name:L.String,parent:Aj,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null},index:1,parent:Ej},Rj={type:n.GenericReference,id:"2610bf4a-c8a2-4746-b6cc-eb15f7fa8e9c",version:"1",entityType:n.FunctionCall,entityId:lr},Dj={id:"ffb3cd9d-c955-4104-bc7b-299120fe4ede",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.InputMap,declaration:Ka,name:null,description:null,readsValue:null,defaultValue:null,index:2,parent:Rj},Oj={type:n.GenericReference,id:"bfd29a6a-671a-448c-9f2f-f8c7e4ad8349",version:"1",entityType:n.FunctionCall,entityId:lr},Pj={id:"412bf1f3-1a8e-4665-a95f-82117540e34e",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.InputMap,declaration:Xa,name:null,description:null,readsValue:null,defaultValue:null,index:3,parent:Oj},wj={type:n.GenericReference,id:"616a15f3-c224-4b11-b95c-63314edef409",version:"1",entityType:n.FunctionCall,entityId:lr},Cj={id:"4dd4651c-02e4-45f1-b50f-824f3bcb1648",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.OutputMap,defaultValue:null,declaration:eo,writesValues:[],index:1,parent:wj},Vj={type:n.GenericReference,id:"28793b68-4d7e-4826-aee1-f201a3499faf",version:"1",entityType:n.FunctionCall,entityId:lr},Bj={id:"94fe9d35-4dd4-4729-a50c-5283ccd7e661",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.OutputMap,defaultValue:null,declaration:Qa,writesValues:[],index:0,parent:Vj},_j={type:n.GenericReference,id:"f13e04b2-49b4-4c69-85b8-cbbafafa3524",version:"1",entityType:n.FunctionCall,entityId:lr},Mj={id:VA,type:n.OutputMap,defaultValue:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:to,writesValues:[BA],index:2,parent:_j},Nj={type:n.GenericReference,id:"6148d6d0-caaa-45fc-b601-ff2493dfc60f",version:"1",entityType:n.GlobalEvent,entityId:ss},Lj={type:n.GenericReference,id:"b115f084-807b-44b3-ae01-b69cc342f761",version:"1",entityType:n.GlobalEvent,entityId:ss},Uj={type:n.Operation,id:lr,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Bs,inputs:[Ij,bj,Dj,Pj],outputs:[Bj,Cj,Mj],process:null,parent:Lj,calledByError:[],calledByEntry:[Nj],calledBySuccess:[],successCalls:[vj],errorCalls:[],error:null,x:0,y:0},gj={type:n.GenericReference,id:"24e76019-3f94-475b-91ce-297f76bbc224",version:"1",entityType:n.GlobalEvent,entityId:ss},jj={type:n.GenericReference,id:"0eac8e29-cdf2-42f8-8ea7-ad76d4d79abe",version:"1",entityType:n.GlobalEvent,entityId:ss},$j={process:null,type:n.FunctionCall,id:"2d2e7593-bfbf-457c-a607-5fce18eef457",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Ou,inputs:[],outputs:[],calledByError:[],calledByEntry:[gj],calledBySuccess:[],parent:jj,successCalls:[],errorCalls:[],error:null,x:0,y:0},Gj={id:"793b5999-a9da-47fb-9665-0c17ebc6d5c9",type:n.GenericReference,version:"1",entityType:n.Project,entityId:ce},Fj={type:n.GlobalEvent,id:ss,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:Qi.PROJECT_PUBLICATION_COMPLETED,description:null,collapsed:!1,implements:yo,parent:Gj,inputs:[],calls:[$j,Uj],x:0,y:0},ci="abort-execution-func-declaration-id",na="abort-execution-func-exec-var-declaration-id",Pu="abort-execution-func-small-wait-op-id",wu="abort-execution-func-long-wait-op-id",_A="abort-execution-func-long-wait-process-output-id",MA="abort-execution-func-exec-var-instance-write-id",NA="abort-execution-func-long-wait-return-stmt-id",LA="abort-execution-func-small-wait-return-stmt-id",xj="abort-execution-func-exec-var-instance-abort-call-id",Cu="abort-execution-func-exec-var-instance-abort-internal-call-id",Vu="abort-execution-func-exec-second-wait-op-id",kj={type:n.GenericReference,id:"short-wait-return-statement-returned-hello-string-data-type-parent-ref-id",version:"1",entityType:n.ReturnDeclaration,entityId:"short-wait-return-statement-returned-hello-string-id"},Sj={type:n.GenericReference,id:"short-wait-return-statement-returned-hello-string-data-type-default-value-parent-ref-id",version:"1",entityType:n.ReturnDeclaration,entityId:"short-wait-return-statement-returned-hello-string-id"},Zj={like:!1,inferred:!1,id:"short-wait-return-statement-returned-hello-string-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:se,asType:!1,isList:!1,parent:kj},qj={type:n.GenericReference,id:"short-wait-return-statement-returned-hello-string-parent-ref-id",version:"1",entityType:n.ReturnStatement,entityId:LA},Jj={constant:!0,isError:!1,id:"short-wait-return-statement-returned-hello-string-id",type:n.ReturnDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Return 1",description:"A random string that is returned by the function",defaultValue:{id:"short-wait-return-statement-returned-hello-string-data-type-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.String,value:"Hello 2",autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null,parent:Sj},dataType:Zj,implements:null,readsValue:null,required:!0,index:0,parent:qj},Wj={type:n.GenericReference,id:"short-wait-return-statement-called-by-ref-id",version:"1",entityType:n.Operation,entityId:Vu},zj={type:n.GenericReference,id:"short-wait-return-statement-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:ci},Yj={type:n.ReturnStatement,id:LA,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[Jj],calledByError:[],calledByEntry:[],calledBySuccess:[Wj],throws:null,x:0,y:0,parent:zj},Hj={type:n.GenericReference,id:"second-wait-argument-default-value-parent-ref-id",version:"1",entityType:n.InputMap,entityId:"second-wait-argument-map-id"},Kj={type:n.GenericReference,id:"second-wait-argument-map-parent-ref-id",version:"1",entityType:n.Operation,entityId:Vu},Xj={id:"second-wait-argument-map-id",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:en,name:null,description:null,readsValue:null,defaultValue:{id:"second-wait-argument-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:2e3,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null,name:L.Number,parent:Hj},index:0,parent:Kj},Qj={type:n.GenericReference,id:"small-wait-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:ci},e2={type:n.GenericReference,id:"small-wait-called-by-ref-one-id",version:"1",entityType:n.InternalCall,entityId:Cu},t2={id:Vu,type:n.Operation,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Zt,inputs:[Xj],outputs:[],process:null,successCalls:[Yj],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[],calledBySuccess:[e2],error:null,parent:Qj},i2={type:n.GenericReference,id:"abort-exec-func-abort-call-var-instance-abort-internal-call-called-by-ref-one-id",version:"1",entityType:n.VariableInstance,entityId:MA},r2={type:n.GenericReference,id:"abort-exec-func-abort-call-var-instance-abort-internal-call-called-by-ref-two-id",version:"1",entityType:n.Operation,entityId:Pu},n2={type:n.GenericReference,id:"abort-exec-func-abort-call-var-instance-main-project-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:ci},s2={type:n.GenericReference,id:"abort-exec-func-abort-call-var-instance-declaration-ref-id-2",version:"1",entityType:n.VariableDeclaration,entityId:na},a2={type:n.GenericReference,id:"abort-exec-func-abort-call-var-instance-internal-call-ref-one-id",version:"1",entityType:n.InternalCall,entityId:Cu},o2={id:xj,type:n.VariableInstance,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:s2,defaultValue:null,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],x:0,y:0,readsValue:null,writesValues:[],internalCalls:[a2],parent:n2},UA={id:Cu,type:n.InternalCall,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,inputs:[],outputs:[],declaration:eu,process:null,calledByError:[],calledByEntry:[],calledBySuccess:[i2,r2],successCalls:[t2],errorCalls:[],error:null,index:0,parent:o2},l2={type:n.GenericReference,id:"abort-exec-func-var-write-instance-main-project-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:ci},d2={type:n.GenericReference,id:"abort-exec-func-var-write-instance-called-by-ref-one-id",version:"1",entityType:n.VariableDeclaration,entityId:na},u2={type:n.GenericReference,id:"abort-exec-func-var-write-instance-called-by-ref-two-id",version:"1",entityType:n.FunctionDeclaration,entityId:ci},p2={type:n.GenericReference,id:"abort-exec-func-abort-call-var-instance-declaration-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:na},c2={type:n.GenericReference,id:"abort-exec-func-var-write-instance-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:_A},Bu={id:MA,type:n.VariableInstance,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:p2,inputs:[],outputs:[],defaultValue:null,calledByError:[],calledByEntry:[u2],calledBySuccess:[d2],successCalls:[UA],errorCalls:[],x:0,y:0,readsValue:c2,writesValues:[],internalCalls:[],parent:l2},f2={type:n.GenericReference,id:"abort-exec-func-var-decl-datatype-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:na};n.GenericReference,n.DataType;const y2={like:!1,inferred:!1,id:"abort-exec-func-var-decl-datatype-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,entity:fo,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,asType:!1,isList:!1,parent:f2},h2={type:n.GenericReference,id:"abort-exec-func-var-decl-main-project-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:ci},m2={type:n.GenericReference,id:"abort-exec-func-var-decl-called-by-ref-one-id",version:"1",entityType:n.FunctionDeclaration,entityId:ci},v2={constant:!0,required:!0,id:na,type:n.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Execution in progress",description:"A variable that holds an ongoing execution to abort it if needed",defaultValue:null,dataType:y2,inputs:[],outputs:[],calledByError:[],calledByEntry:[m2],calledBySuccess:[],successCalls:[Bu],errorCalls:[],x:0,y:0,readsValue:null,writesValues:[],internalCalls:[],parent:h2},T2={type:n.GenericReference,id:"long-wait-return-statement-returned-hello-string-data-type-parent-ref-id",version:"1",entityType:n.ReturnDeclaration,entityId:"long-wait-return-statement-returned-hello-string-id"},I2={type:n.GenericReference,id:"long-wait-return-statement-returned-hello-string-data-type-default-value-parent-ref-id",version:"1",entityType:n.ReturnDeclaration,entityId:"long-wait-return-statement-returned-hello-string-id"},E2={like:!1,inferred:!1,id:"long-wait-return-statement-returned-hello-string-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:se,asType:!1,isList:!1,parent:T2},A2={type:n.GenericReference,id:"long-wait-return-statement-returned-hello-string-parent-ref-id",version:"1",entityType:n.ReturnStatement,entityId:NA},b2={constant:!0,isError:!1,id:"long-wait-return-statement-returned-hello-string-id",type:n.ReturnDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Return 2",description:"A random string that is returned by the function",implements:null,defaultValue:{id:"long-wait-return-statement-returned-hello-string-data-type-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.String,value:"Hello 1",autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null,parent:I2},dataType:E2,readsValue:null,required:!0,index:0,parent:A2},R2={type:n.GenericReference,id:"long-wait-return-statement-called-by-ref-id",version:"1",entityType:n.Operation,entityId:wu},D2={type:n.GenericReference,id:"long-wait-return-statement-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:ci},O2={type:n.ReturnStatement,id:NA,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[b2],calledByError:[],calledByEntry:[],calledBySuccess:[R2],throws:null,x:0,y:0,parent:D2},P2={type:n.GenericReference,id:"long-argument-default-value-parent-ref-id",version:"1",entityType:n.InputMap,entityId:"long-argument-map-id"},gA={type:n.GenericReference,id:"long-argument-map-parent-ref-id",version:"1",entityType:n.Operation,entityId:wu},w2={id:"long-argument-map-id",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:en,name:null,description:null,readsValue:null,defaultValue:{id:"long-argument-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:1500,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null,name:L.Number,parent:P2},index:0,parent:gA},C2={type:n.GenericReference,id:"long-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:ci},V2={type:n.GenericReference,id:"long-called-by-ref-one-id",version:"1",entityType:n.FunctionDeclaration,entityId:ci},B2={id:_A,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:ho,writesValues:[Bu],index:0,parent:gA},_2={id:wu,type:n.Operation,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Zt,inputs:[w2],outputs:[],process:B2,successCalls:[O2],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[V2],calledBySuccess:[],error:null,parent:C2},M2={type:n.GenericReference,id:"small-wait-argument-default-value-parent-ref-id",version:"1",entityType:n.InputMap,entityId:"small-wait-argument-map-id"},N2={type:n.GenericReference,id:"small-wait-argument-map-parent-ref-id",version:"1",entityType:n.Operation,entityId:Pu},L2={id:"small-wait-argument-map-id",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:en,name:null,description:null,readsValue:null,defaultValue:{id:"small-wait-argument-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:500,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null,name:L.Number,parent:M2},index:0,parent:N2},U2={type:n.GenericReference,id:"small-wait-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:ci},g2={type:n.GenericReference,id:"small-wait-called-by-ref-one-id",version:"1",entityType:n.FunctionDeclaration,entityId:ci},j2={id:Pu,type:n.Operation,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Zt,inputs:[L2],outputs:[],process:null,successCalls:[UA],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[g2],calledBySuccess:[],error:null,parent:U2},$2={type:n.GenericReference,id:"abort-execution-func-decl-parent-ref-id",version:"1",entityType:n.Project,entityId:ce},jA={id:ci,type:n.FunctionDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Test aborting execution",description:"Executes a wait and then aborts the execution of that wait",inputs:[],calls:[j2,v2,Bu,_2],implements:null,private:!1,collapsed:!1,index:null,x:0,y:0,parent:$2},G2={type:n.GenericReference,id:"call-execution-abort-func-parent-ref-id",version:"1",entityType:n.Project,entityId:ce},F2={id:"call-execution-abort-func-id",type:n.FunctionCall,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:jA,inputs:[],process:null,outputs:[],successCalls:[],errorCalls:[],error:null,calledByError:[],calledByEntry:[],calledBySuccess:[],x:0,y:0,parent:G2},Jo="manual-hello-world-loop-func-decl-id",$A="manual-hello-world-loop-func-return-statement-id",xi="manual-hello-world-loop-id",sa="manual-hello-world-loop-body-id",_u="manual-hello-world-loop-break-statement-id",aa="manual-hello-world-loop-current-iteration-number-output-map-id",Mu="manual-hello-world-loop-previous-iterations-results-output-map-id",Nu="assembled-hello-world-text-output-id",x2="assembled-hello-world-list-output-id",oa="iteration-number-is-equal-or-greater-than-10-condition-id",Wo="join-hello-world-and-number-operation-id",zo="append-string-to-list-operation-id",GA="hello-world-loop-output-map-id",k2={type:n.GenericReference,id:"manual-hello-world-loop-function-declaration-output-declaration-parent-ref",version:"1",entityType:n.ReturnStatement,entityId:$A},S2={type:n.GenericReference,id:"manual-hello-world-loop-function-declaration-output-declaration-data-type-parent-ref",version:"1",entityType:n.ReturnDeclaration,entityId:"manual-hello-world-loop-function-declaration-output-declaration"},Z2={like:!1,inferred:!1,id:"manual-hello-world-loop-function-declaration-output-declaration-data-type",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:se,isList:!0,asType:!1,parent:S2},q2={type:n.GenericReference,id:"manual-hello-world-loop-function-declaration-output-declaration-reads-value-ref",version:"1",entityType:n.OutputMap,entityId:GA},FA={constant:!0,isError:!1,id:"manual-hello-world-loop-function-declaration-output-declaration",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.ReturnDeclaration,name:"Results",description:null,defaultValue:null,dataType:Z2,implements:null,readsValue:q2,required:!0,index:0,parent:k2},J2={type:n.GenericReference,id:"manual-hello-world-loop-function-declaration-return-statement-called-by-ref",version:"1",entityType:n.Loop,entityId:xi},W2={type:n.GenericReference,id:"manual-hello-world-loop-function-declaration-parent-ref",version:"1",entityType:n.FunctionDeclaration,entityId:Jo},z2={type:n.ReturnStatement,id:$A,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[FA],calledByError:[],calledByEntry:[],calledBySuccess:[J2],parent:W2,throws:null,x:0,y:0},Y2={type:n.GenericReference,id:"hello-world-loop-break-statement-ref-id",version:"1",entityType:n.BreakStatement,entityId:_u},xA={constant:!0,isError:!1,id:"hello-world-loop-break-statement-output-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.ReturnDeclaration,name:"Iteration result",description:null,defaultValue:null,dataType:null,readsValue:null,implements:null,required:!0,index:0,parent:Y2},H2={type:n.GenericReference,id:"hello-world-loop-break-statement-counter-reads-value-ref-id",version:"1",entityType:n.ArgumentDeclaration,entityId:aa},K2={type:n.GenericReference,id:"hello-world-loop-break-statement-counter-ref-id",version:"1",entityType:n.BreakStatement,entityId:_u},kA={constant:!0,isError:!1,id:"hello-world-loop-break-statement-counter-output-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.ReturnDeclaration,name:"Iteration counter",description:null,implements:null,defaultValue:null,dataType:null,readsValue:H2,required:!0,index:1,parent:K2},X2={type:n.GenericReference,id:"hello-world-loop-break-statement-called-by-ref-id",version:"1",entityType:n.Condition,entityId:oa},Q2={type:n.GenericReference,id:"hello-world-loop-break-statement-parent-ref-id",version:"1",entityType:n.Loop,entityId:xi},e$={type:n.BreakStatement,id:_u,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[xA,kA],calledByError:[],calledByEntry:[],calledBySuccess:[X2],parent:Q2,throws:null,x:0,y:0};n.GenericReference,n.InputMap;const t$={type:n.GenericReference,id:"append-string-to-list-base-string-map-parent-ref-id",version:"1",entityType:n.Operation,entityId:zo},i$={type:n.GenericReference,id:"base-string-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:Mu},SA={id:"append-string-to-list-base-string-map-id",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Rd,name:null,description:null,readsValue:i$,defaultValue:null,index:0,parent:t$},r$={type:n.GenericReference,id:"assembly-string-map-parent-ref-id",version:"1",entityType:n.Operation,entityId:zo},n$={id:x2,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,writesValues:[xA],declaration:Cs,index:0,parent:r$},s$={type:n.GenericReference,id:"append-string-to-list-called-by-ref-id",version:"1",entityType:n.Condition,entityId:oa},a$={type:n.GenericReference,id:"latest-string-to-add-input-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:Nu},o$={type:n.GenericReference,id:"62b4afb0-6c21-4b0f-abd3-cebef7b17c28",version:"1",entityType:n.Operation,entityId:zo},ZA={id:"latest-string-to-add-input-map-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.InputMap,declaration:Dd,name:null,description:null,readsValue:a$,defaultValue:null,index:1,parent:o$},l$={type:n.GenericReference,id:"append-string-to-list-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:xi},d$={type:n.Operation,id:zo,declaration:za,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,inputs:[SA,ZA],outputs:[n$],calledByError:[],process:null,calledByEntry:[],calledBySuccess:[s$],successCalls:[],errorCalls:[],error:null,x:0,y:0,parent:l$},u$={type:n.GenericReference,id:"hello-world-loop-continue-statement-ref-id",version:"1",entityType:n.ContinueStatement,entityId:"hello-world-loop-continue-statement"},p$={type:n.GenericReference,id:"hello-world-loop-continue-statement-output-data-type-ref-id",version:"1",entityType:n.ReturnDeclaration,entityId:"hello-world-loop-continue-statement-output-id"},c$={like:!1,inferred:!1,id:"hello-world-loop-continue-statement-output-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,isList:!1,asType:!1,parent:p$},f$={type:n.GenericReference,id:"hello-world-loop-continue-statement-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:Nu},qA={constant:!0,isError:!1,id:"hello-world-loop-continue-statement-output-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.ReturnDeclaration,name:"Iteration result",description:null,defaultValue:null,implements:null,dataType:c$,readsValue:f$,required:!0,index:0,parent:u$},y$={type:n.GenericReference,id:"hello-world-loop-continue-statement-called-by-ref-id",version:"1",entityType:n.Condition,entityId:oa},h$={type:n.GenericReference,id:"hello-world-loop-continue-statement-parent-ref-id",version:"1",entityType:n.Loop,entityId:xi},m$={type:n.ContinueStatement,id:"hello-world-loop-continue-statement",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[qA],calledBySuccess:[],calledByError:[y$],calledByEntry:[],parent:h$,throws:null,x:0,y:0},v$={type:n.GenericReference,id:"iteration-number-is-equal-or-greater-than-10-condition-called-by-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:sa},T$={type:n.GenericReference,id:"iteration-number-is-equal-or-greater-than-10-condition-parent-ref-id",version:"1",entityType:n.Loop,entityId:xi},I$={type:n.GenericReference,id:"current-iteration-number-to-check-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:aa},JA={type:n.GenericReference,id:"iteration-number-is-equal-or-greater-than-10-condition-ref-two-id",version:"1",entityType:n.Condition,entityId:oa},E$={id:"current-iteration-number-to-check-map-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.InputMap,declaration:Yn.inputs[0],name:null,description:null,readsValue:I$,index:0,defaultValue:null,parent:JA},A$={type:n.GenericReference,id:"max-num-iterations-value-map-default-value-parent-ref-id",version:"1",entityType:n.InputMap,entityId:"max-num-iterations-value-map-id"},b$={id:"max-num-iterations-value-map-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.InputMap,declaration:Yn.inputs[1],name:null,description:null,readsValue:null,index:1,defaultValue:{id:"max-num-iterations-value-map-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.Number,value:10,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null,parent:A$},parent:JA},R$={type:n.Condition,id:oa,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Yn,inputs:[E$,b$],calledByError:[],calledByEntry:[v$],calledBySuccess:[],successCalls:[e$,d$],errorCalls:[m$],x:0,y:0,parent:T$},D$={type:n.GenericReference,id:"base-string-map-ref-id",version:"1",entityType:n.InputMap,entityId:"join-hello-world-and-number-base-string-map-id"},O$={type:n.GenericReference,id:"join-hello-world-and-number-base-string-map-parent-ref-id",version:"1",entityType:n.Operation,entityId:Wo},P$={id:"join-hello-world-and-number-base-string-map-id",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Ja,name:null,description:null,readsValue:null,defaultValue:{id:"join-hello-world-and-number-base-string-map-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:"Hello world ",name:L.String,parent:D$,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null},index:0,parent:O$},w$={type:n.GenericReference,id:"assembly-string-map-parent-ref-id",version:"1",entityType:n.Operation,entityId:Wo},C$={id:Nu,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,writesValues:[ZA,qA],declaration:Cs,index:0,parent:w$},V$={type:n.GenericReference,id:"join-hello-world-and-number-called-by-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:sa},B$={type:n.GenericReference,id:"current-iteration-number-input-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:aa},_$={type:n.GenericReference,id:"62b4afb0-6c21-4b0f-abd3-cebef7b17c28",version:"1",entityType:n.Operation,entityId:Wo},WA={id:"current-iteration-number-input-map-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.InputMap,declaration:Wa,name:null,description:null,readsValue:B$,defaultValue:null,index:1,parent:_$},M$={type:n.GenericReference,id:"join-hello-world-and-number-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:xi},N$={type:n.Operation,id:Wo,declaration:Vs,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,inputs:[P$,WA],outputs:[C$],process:null,calledByError:[],calledByEntry:[V$],calledBySuccess:[],successCalls:[],errorCalls:[],error:null,x:0,y:0,parent:M$},L$={id:"manual-hello-world-loop-iterations-results-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:Mu,version:"1",entityType:n.ArgumentDeclaration},U$={like:!1,inferred:!1,id:"manual-hello-world-loop-iterations-results-declaration-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!0,entity:null,asType:!1,parent:L$},g$={id:"manual-hello-world-loop-previous-iterations-results-output-map-parent-ref-id",type:n.GenericReference,entityId:sa,version:"1",entityType:n.FunctionDeclaration},j$={constant:!0,id:Mu,type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Previous iterations results",description:"The results of the previous iterations of the loop.",required:!0,defaultValue:null,dataType:U$,implements:null,writesValues:[SA],index:1,parent:g$},$$={id:"manual-hello-world-loop-current-iteration-number-output-map-parent-ref-id",type:n.GenericReference,entityId:sa,version:"1",entityType:n.FunctionDeclaration},G$={id:"manual-flow-loop-current-iteration-number-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:aa,version:"1",entityType:n.ArgumentDeclaration};n.DataType;const F$={constant:!0,id:aa,type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Current iteration number",description:"The number of the current iteration of the loop. Starts at 1.",required:!0,implements:_d,defaultValue:null,dataType:null,writesValues:[WA,kA],index:0,parent:$$},x$={id:"manual-flow-loop-body-parent-ref-id",type:n.GenericReference,entityId:xi,version:"1",entityType:n.Loop},k$={id:sa,type:n.FunctionDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Iteration logic trigger",description:"This function is called multiple times, once for each iteration of the loop.",inputs:[F$,j$],calls:[R$,N$],implements:ro,collapsed:!1,private:!1,index:0,x:0,y:0,parent:x$},S$={type:n.GenericReference,id:"hello-world-loop-iteration-result-inline-output-declaration-parent-ref-id",version:"1",entityType:n.Loop,entityId:xi},zA={id:"hello-world-loop-iteration-result-inline-output-declaration-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.ValueDescriptor,name:"Iteration result",defaultValue:null,description:null,dataType:null,required:!0,parentRelationType:N.FixedReturns,index:0,parent:S$},Z$={type:n.GenericReference,id:"hello-world-loop-break-statement-output-map-parent-ref-id",version:"1",entityType:n.Loop,entityId:xi},q$={type:n.OutputMap,id:GA,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:zA,writesValues:[FA],index:0,parent:Z$},J$={id:"manual-hello-world-loop-parent-ref-id",type:n.GenericReference,entityId:Jo,version:"1",entityType:n.FunctionDeclaration},W$={id:"manual-hello-world-loop-called-by-ref-id",type:n.GenericReference,entityId:Jo,version:"1",entityType:n.FunctionDeclaration},z$={id:xi,type:n.Loop,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:io,inputs:[],outputsDeclarations:[zA],outputs:[q$],body:k$,successCalls:[z2],errorCalls:[],process:null,error:null,calledByError:[],calledByEntry:[W$],calledBySuccess:[],x:0,y:0,parent:J$},Y$={type:n.GenericReference,id:"manual-hello-world-loop-function-declaration-parent-ref-id",version:"1",entityType:n.Project,entityId:ce},YA={type:n.FunctionDeclaration,id:Jo,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Manual hello world loop",description:null,inputs:[],calls:[z$],implements:null,collapsed:!1,private:!1,index:null,x:0,y:0,parent:Y$},H$={type:n.GenericReference,id:"call-hello-world-loop-parent-ref-id",version:"1",entityType:n.Project,entityId:ce},K$={id:"call-hello-world-loop-id",type:n.FunctionCall,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:YA,inputs:[],outputs:[],process:null,successCalls:[],errorCalls:[],error:null,calledByError:[],calledByEntry:[],calledBySuccess:[],x:0,y:0,parent:H$},dr="company-dto-function-declaration-id",Lu="company-dto-func-declaration-argument-dcl-id",ki="company-dto-function-company-variable-id",Vr="company-dto-function-company-dto-variable-id",as="iterate-over-employee-list-loop-id",HA="iterate-over-employee-list-loop-employee-dto-output-map-id",Uu="iterate-over-employee-list-loop-body-current-employee-argument-declaration-id",Yo="iterate-over-employee-list-loop-body-map-employee-dto-function-call-id",KA="iterate-over-employee-list-continue-statement-employee-dto-output-decl-id",XA="iterate-over-employee-list-loop-body-map-employee-dto-function-call-employee-dto-output-map-id",QA="iterate-over-employee-list-continue-statement-id",Ho="iterate-over-employee-list-loop-body-id",eb="company-dto-func-declaration-return-statement-id",tb="company-dto-func-declaration-return-decl-id",ib="company-dto-func-declaration-company-variable-id-output-map-id",rb="company-dto-func-declaration-company-variable-employess-output-map-id",nb="company-dto-func-declaration-company-variable-name-output-map-id",X$="company-dto-func-declaration-company-dto-variable-input-map-id",Q$="company-dto-func-declaration-company-dto-variable-employess-input-map-id",e4="company-dto-func-declaration-company-dto-variable-name-input-map-id",Ko="company-dto-func-declaration-owner-variable-id",t4="company-dto-func-declaration-company-dto-variable-owner-input-map-id",sb="company-dto-func-declaration-company-variable-owner-output-map-id",ab="company-dto-func-declaration-owner-variable-id-output-map-id",Xo="company-dto-func-declaration-bank-account-variable-id",i4="company-dto-func-declaration-company-dto-variable-bank-account-input-map-id",ob="company-dto-func-declaration-company-variable-bank-account-output-map-id",lb="company-dto-func-declaration-bank-account-variable-id-output-map-id",r4={type:n.GenericReference,id:"company-dto-func-company-dto-variable-owner-input-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:ab},n4={type:n.GenericReference,id:"company-dto-func-company-dto-variable-owner-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Vr},db={id:t4,type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:null,name:"owner_id",description:null,defaultValue:null,index:5,readsValue:r4,parent:n4},s4={type:n.GenericReference,id:"company-dto-func-company-dto-variable-bank-account-input-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:lb},a4={type:n.GenericReference,id:"company-dto-func-company-dto-variable-bank-account-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Vr},ub={id:i4,type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:null,name:"bank_account_id",description:null,defaultValue:null,index:4,readsValue:s4,parent:a4},o4={type:n.GenericReference,id:"company-dto-func-company-dto-variable-name-input-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:nb},l4={type:n.GenericReference,id:"company-dto-func-company-dto-variable-name-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Vr},pb={id:e4,type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:null,name:"name",description:null,defaultValue:null,index:3,readsValue:o4,parent:l4},d4={type:n.GenericReference,id:"company-dto-func-company-dto-variable-employess-input-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:HA},u4={type:n.GenericReference,id:"company-dto-func-company-dto-variable-employess-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Vr},cb={id:Q$,type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:null,name:"employees",description:null,defaultValue:null,index:2,readsValue:d4,parent:u4},p4={type:n.GenericReference,id:"company-dto-func-company-dto-variable-id-output-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:ib},c4={type:n.GenericReference,id:"company-dto-func-company-dto-variable-id-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Vr},fb={id:X$,type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:null,name:"id",description:"The ID of the company",defaultValue:null,index:1,readsValue:p4,parent:c4},f4={type:n.GenericReference,id:"company-dto-func-returned-company-dto-data-type-parent-ref-id",version:"1",entityType:n.ReturnDeclaration,entityId:tb},y4={like:!1,inferred:!1,id:"company-dto-func-returned-company-dto-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,asType:!1,isList:!1,parent:f4},h4={type:n.GenericReference,id:"company-dto-func-returned-company-dto-parent-ref-id",version:"1",entityType:n.ReturnStatement,entityId:eb},m4={type:n.GenericReference,id:"company-dto-func-returned-company-dto-reads-value-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Vr},yb={constant:!0,isError:!1,id:tb,type:n.ReturnDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Company DTO",description:"Output the company data in the format that it will be sent through an HTTP request.",defaultValue:null,implements:null,dataType:y4,readsValue:m4,required:!0,index:0,parent:h4},v4={type:n.GenericReference,id:"company-dto-func-return-statement-called-by-ref-id",version:"1",entityType:n.Operation,entityId:Vr},T4={type:n.GenericReference,id:"company-dto-func-return-statement-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:dr},hb={type:n.ReturnStatement,id:eb,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[yb],calledByError:[],calledByEntry:[],calledBySuccess:[v4],throws:null,x:0,y:0,parent:T4},I4={type:n.GenericReference,id:"company-dto-func-company-dto-variable-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:dr},E4={type:n.GenericReference,id:"company-dto-func-company-dto-variable-called-by-ref-one-id",version:"1",entityType:n.VariableDeclaration,entityId:Xo},A4={type:n.GenericReference,id:"company-dto-func-company-dto-variable-called-by-ref-two-id",version:"1",entityType:n.VariableDeclaration,entityId:Ko},b4={type:n.GenericReference,id:"company-dto-func-company-dto-variable-called-by-ref-three-id",version:"1",entityType:n.VariableDeclaration,entityId:as},gu={constant:!0,required:!0,id:Vr,type:n.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Company DTO",dataType:null,description:"A variable holding the data of a mapped company DTO",defaultValue:null,calledByError:[],calledByEntry:[],calledBySuccess:[E4,A4,b4],successCalls:[hb],errorCalls:[],readsValue:null,writesValues:[yb],inputs:[fb,pb,ub,db,cb],outputs:[],internalCalls:[],parent:I4,x:0,y:0},yn="employee-dto-func-declaration-id",ju="employee-dto-func-declaration-argument-dcl-id",mb="employee-dto-func-declaration-return-statement-id",vb="employee-dto-func-declaration-return-decl-id",hn="employee-dto-func-declaration-employee-variable-id",mn="employee-dto-func-declaration-employee-dto-variable-id",Qo="employee-dto-func-declaration-manager-variable-id",Tb="employee-dto-func-declaration-employee-variable-id-output-map-id",Ib="employee-dto-func-declaration-employee-variable-birth-date-output-map-id",Eb="employee-dto-func-declaration-employee-variable-department-output-map-id",Ab="employee-dto-func-declaration-employee-variable-manager-output-map-id",bb="employee-dto-func-declaration-manager-variable-id-output-map-id",R4="employee-dto-func-declaration-employee-dto-variable-input-map-id",D4="employee-dto-func-declaration-employee-dto-variable-birth-date-input-map-id",O4="employee-dto-func-declaration-employee-dto-variable-department-input-map-id",P4="employee-dto-func-declaration-employee-dto-variable-manager-input-map-id",w4={type:n.GenericReference,id:"employee-dto-func-employee-dto-variable-manager-input-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:bb},C4={type:n.GenericReference,id:"employee-dto-func-employee-dto-variable-manager-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:mn},Rb={id:P4,type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:null,name:"manager_id",description:null,defaultValue:null,index:4,readsValue:w4,parent:C4},V4={type:n.GenericReference,id:"employee-dto-func-employee-dto-variable-department-input-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:Eb},B4={type:n.GenericReference,id:"employee-dto-func-employee-dto-variable-department-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:mn},Db={id:O4,type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:null,name:"department_name",description:null,defaultValue:null,index:3,readsValue:V4,parent:B4},_4={type:n.GenericReference,id:"employee-dto-func-employee-dto-variable-birth-date-input-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:Ib},M4={type:n.GenericReference,id:"employee-dto-func-employee-dto-variable-birth-date-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:mn},Ob={id:D4,type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:null,name:"birth_date",description:null,defaultValue:null,index:2,readsValue:_4,parent:M4},N4={type:n.GenericReference,id:"employee-dto-func-employee-dto-variable-id-output-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:Tb},L4={type:n.GenericReference,id:"employee-dto-func-employee-dto-variable-id-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:mn},Pb={id:R4,type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:null,name:"id",description:"The ID of the employee",defaultValue:null,index:1,readsValue:N4,parent:L4},U4={type:n.GenericReference,id:"employee-dto-func-returned-employee-dto-data-type-parent-ref-id",version:"1",entityType:n.ReturnDeclaration,entityId:vb},g4={like:!1,inferred:!1,id:"employee-dto-func-returned-employee-dto-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,asType:!1,isList:!1,parent:U4},j4={type:n.GenericReference,id:"employee-dto-func-returned-employee-dto-parent-ref-id",version:"1",entityType:n.ReturnStatement,entityId:mb},$4={type:n.GenericReference,id:"employee-dto-func-returned-employee-dto-reads-value-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:mn},wb={constant:!0,isError:!1,id:vb,type:n.ReturnDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Employee DTO",description:"Output the employee data in the format that it will be sent through an HTTP request.",defaultValue:null,dataType:g4,implements:null,readsValue:$4,required:!0,index:0,parent:j4},G4={type:n.GenericReference,id:"employee-dto-func-return-statement-called-by-ref-id",version:"1",entityType:n.Operation,entityId:mn},F4={type:n.GenericReference,id:"employee-dto-func-return-statement-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:yn},Cb={type:n.ReturnStatement,id:mb,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[wb],calledByError:[],calledByEntry:[],calledBySuccess:[G4],throws:null,x:0,y:0,parent:F4},x4={type:n.GenericReference,id:"employee-dto-func-employee-dto-variable-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:yn},k4={type:n.GenericReference,id:"employee-dto-func-employee-dto-variable-called-by-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Qo},S4={constant:!0,required:!0,id:mn,type:n.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Employee DTO",dataType:null,description:"A variable holding the data of a mapped employee DTO",defaultValue:null,calledByError:[],calledByEntry:[],calledBySuccess:[k4],successCalls:[Cb],errorCalls:[],readsValue:null,writesValues:[wb],inputs:[Pb,Ob,Db,Rb],outputs:[],internalCalls:[],parent:x4,x:0,y:0},Z4={type:n.GenericReference,id:"employee-dto-func-manager-variable-id-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Qo},q4={id:bb,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:pi.properties[0],index:0,writesValues:[Rb],parent:Z4},J4={type:n.GenericReference,id:"employee-dto-func-manager-variable-data-type-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Qo},W4={like:!1,inferred:!1,id:"employee-dto-func-manager-variable-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Ei,asType:!1,isList:!1,parent:J4},z4={type:n.GenericReference,id:"employee-dto-func-manager-variable-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:Ab},Y4={type:n.GenericReference,id:"employee-dto-func-manager-variable-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:yn};n.GenericReference,n.VariableDeclaration;const Vb={constant:!0,required:!0,id:Qo,type:n.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Manager",description:"A variable holding an inherited manager",defaultValue:null,dataType:W4,calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[S4],errorCalls:[],readsValue:z4,writesValues:[],inputs:[],outputs:[q4],internalCalls:[],parent:Y4,x:0,y:0},H4={type:n.GenericReference,id:"employee-dto-func-employee-variable-manager-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:hn},K4={id:Ab,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:Ei.properties[2],index:3,writesValues:[Vb],parent:H4},X4={type:n.GenericReference,id:"employee-dto-func-employee-variable-department-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:hn},Q4={id:Eb,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:Ei.properties[0],index:2,writesValues:[Db],parent:X4},eG={type:n.GenericReference,id:"employee-dto-func-employee-variable-birth-date-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:hn},tG={id:Ib,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:Jt.properties[1],index:1,writesValues:[Ob],parent:eG},iG={type:n.GenericReference,id:"employee-dto-func-employee-variable-id-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:hn},rG={id:Tb,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:pi.properties[0],index:0,writesValues:[Pb],parent:iG},nG={type:n.GenericReference,id:"employee-dto-func-employee-variable-data-type-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:hn},sG={like:!1,inferred:!1,id:"employee-dto-func-employee-variable-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Ei,asType:!1,isList:!1,parent:nG},aG={type:n.GenericReference,id:"employee-dto-func-employee-variable-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:yn},oG={type:n.GenericReference,id:"employee-dto-func-employee-variable-reads-value-ref-id",version:"1",entityType:n.ArgumentDeclaration,entityId:ju},lG={type:n.GenericReference,id:"employee-dto-func-employee-variable-called-by-id",version:"1",entityType:n.FunctionDeclaration,entityId:yn},Bb={constant:!0,required:!0,id:hn,type:n.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Company employee",dataType:sG,description:"A variable holding a company employee",calledByError:[],defaultValue:null,calledByEntry:[lG],calledBySuccess:[],successCalls:[Vb],errorCalls:[],readsValue:oG,writesValues:[],inputs:[],outputs:[rG,tG,Q4,K4],internalCalls:[],parent:aG,x:0,y:0},dG={type:n.GenericReference,id:"employee-dto-func-declaration-employee-input-declaration-data-type-parent-ref-id",entityId:ju,version:"1",entityType:n.ArgumentDeclaration},uG={type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,id:"employee-dto-func-declaration-employee-input-declaration-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Ei,asType:!1,isList:!1,like:!1,inferred:!1,parent:dG},pG={type:n.GenericReference,id:"employee-dto-func-declaration-employee-input-declaration-parent-ref-id",entityId:yn,version:"1",entityType:n.FunctionDeclaration},cG={constant:!0,type:n.ArgumentDeclaration,id:ju,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Employee",description:"The employee to create a DTO for",required:!0,implements:null,defaultValue:null,dataType:uG,index:0,writesValues:[Bb],parent:pG},fG={type:n.GenericReference,id:"employee-dto-function-declaration-parent-ref-id",version:"1",entityType:n.Project,entityId:ce},$u={type:n.FunctionDeclaration,id:yn,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Employee DTO",description:"Takes a employee and returns a DTO of that employee",index:null,inputs:[cG],calls:[Bb],implements:null,collapsed:!1,private:!1,x:0,y:0,parent:fG},yG={id:"iterate-over-employee-list-continue-statement-employee-dto-output-decl-data-type-parent-ref-id",type:n.GenericReference,entityId:KA,version:"1",entityType:n.ReturnDeclaration},hG={like:!1,inferred:!1,id:"iterate-over-employee-list-continue-statement-employee-dto-output-decl-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,isList:!1,asType:!1,parent:yG},mG={id:"iterate-over-employee-list-continue-statement-employee-dto-output-decl-reads-value-ref-id",type:n.GenericReference,entityId:XA,version:"1",entityType:n.OutputMap},vG={id:"iterate-over-employee-list-continue-statement-employee-dto-output-decl-parent-ref-id",type:n.GenericReference,entityId:QA,version:"1",entityType:n.ContinueStatement},_b={constant:!0,isError:!1,id:KA,type:n.ReturnDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Employee DTO",description:"The DTO of the employee entity.",defaultValue:null,readsValue:mG,dataType:hG,implements:null,required:!0,index:0,parent:vG},TG={id:"iterate-over-employee-list-continue-statement-called-by-ref-id",type:n.GenericReference,entityId:Yo,version:"1",entityType:n.FunctionCall},IG={id:"iterate-over-employee-list-continue-statement-parent-ref-id",type:n.GenericReference,entityId:as,version:"1",entityType:n.Loop},EG={id:QA,type:n.ContinueStatement,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,calledByError:[],calledByEntry:[],calledBySuccess:[TG],outputs:[_b],throws:null,x:0,y:0,parent:IG},AG={id:"iterate-over-employee-list-loop-body-map-employee-dto-function-call-employee-dto-output-map-parent-ref-id",type:n.GenericReference,entityId:Yo,version:"1",entityType:n.FunctionCall},bG={id:XA,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:Cb.outputs[0],writesValues:[_b],index:0,parent:AG},RG={id:"iterate-over-employee-list-loop-body-map-employee-dto-function-call-employee-input-map-reads-value-ref-id",type:n.GenericReference,entityId:Uu,version:"1",entityType:n.ArgumentDeclaration},DG={id:"iterate-over-employee-list-loop-body-map-employee-dto-function-call-employee-input-map-parent-ref-id",type:n.GenericReference,entityId:Yo,version:"1",entityType:n.FunctionCall},Mb={id:"iterate-over-employee-list-loop-body-map-employee-dto-function-call-employee-input-map-id",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:null,description:null,declaration:$u.inputs[0],readsValue:RG,index:0,defaultValue:null,parent:DG},OG={id:"iterate-over-employee-list-loop-body-map-employee-dto-function-call-called-by-ref-id",type:n.GenericReference,entityId:Ho,version:"1",entityType:n.FunctionDeclaration},PG={id:"iterate-over-employee-list-loop-body-map-employee-dto-function-call-parent-ref-id",type:n.GenericReference,entityId:Ho,version:"1",entityType:n.FunctionDeclaration},wG={id:Yo,type:n.FunctionCall,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:$u,inputs:[Mb],process:null,outputs:[bG],calledByError:[],calledByEntry:[OG],calledBySuccess:[],successCalls:[EG],errorCalls:[],error:null,x:0,y:0,parent:PG},CG={type:n.GenericReference,id:"iterate-over-employee-list-loop-body-current-employee-argument-declaration-data-type-parent-ref-id",entityId:Uu,version:"1",entityType:n.ArgumentDeclaration},VG={like:!1,inferred:!1,id:"iterate-over-employee-list-loop-body-current-employee-argument-declaration-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Ei,isList:!1,asType:!1,parent:CG},BG={id:"iterate-over-employee-list-loop-body-current-employee-argument-declaration-parent-ref-id",type:n.GenericReference,entityId:Ho,version:"1",entityType:n.FunctionDeclaration},_G={constant:!0,id:Uu,type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Current employee",description:"The current employee entity being processed.",defaultValue:null,dataType:VG,required:!0,implements:so,index:0,writesValues:[Mb],parent:BG},MG={id:"iterate-over-employee-list-loop-body-parent-ref-id",type:n.GenericReference,entityId:as,version:"1",entityType:n.Loop},NG={id:Ho,type:n.FunctionDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Iteration logic trigger",description:"This function is called once for each iteration of the loop.",inputs:[_G],calls:[wG],implements:Ns,collapsed:!1,private:!1,index:0,x:0,y:0,parent:MG},LG={id:"iterate-over-employee-list-loop-iteration-list-input-map-parent-ref-id",type:n.GenericReference,entityId:as,version:"1",entityType:n.Loop},UG={id:"iterate-over-employee-list-loop-iteration-list-input-map-reads-value-ref-id",type:n.GenericReference,entityId:rb,version:"1",entityType:n.OutputMap},Nb={id:"iterate-over-employee-list-loop-iteration-list-input-map-id",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:null,description:null,declaration:Er.inputs[0],defaultValue:null,readsValue:UG,index:0,parent:LG},gG={id:"iterate-over-employee-list-loop-parent-ref-id",type:n.GenericReference,entityId:dr,version:"1",entityType:n.FunctionDeclaration},jG={id:"iterate-over-employee-list-loop-employee-dto-output-map-parent-ref-id",type:n.GenericReference,entityId:as,version:"1",entityType:n.Loop},$G={id:HA,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:Er.outputs[0],writesValues:[cb],index:0,parent:jG},GG={type:n.GenericReference,id:"iterate-over-employee-list-loop-called-by-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:ki},FG={id:as,type:n.Loop,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Er,inputs:[Nb],successCalls:[gu],errorCalls:[],outputsDeclarations:[],outputs:[$G],body:NG,process:null,calledByError:[],calledByEntry:[],calledBySuccess:[GG],error:null,x:0,y:0,parent:gG},xG={type:n.GenericReference,id:"company-dto-func-bank-account-variable-id-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Xo},kG={id:lb,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:pi.properties[0],index:0,writesValues:[ub],parent:xG},SG={type:n.GenericReference,id:"company-dto-func-bank-account-variable-data-type-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Xo},ZG={like:!1,inferred:!1,id:"company-dto-func-bank-account-variable-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Ai,asType:!1,isList:!1,parent:SG},qG={type:n.GenericReference,id:"company-dto-func-bank-account-variable-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:ob},JG={type:n.GenericReference,id:"company-dto-func-bank-account-variable-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:dr};n.GenericReference,n.VariableDeclaration;const Lb={constant:!0,required:!0,id:Xo,type:n.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Bank account",description:"A variable holding an inherited bank account",defaultValue:null,dataType:ZG,calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[gu],errorCalls:[],readsValue:qG,writesValues:[],inputs:[],outputs:[kG],internalCalls:[],parent:JG,x:0,y:0},WG={type:n.GenericReference,id:"company-dto-func-owner-variable-id-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Ko},zG={id:ab,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:pi.properties[0],index:0,defaultValue:null,writesValues:[db],parent:WG},YG={type:n.GenericReference,id:"company-dto-func-owner-variable-data-type-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Ko},HG={like:!1,inferred:!1,id:"company-dto-func-owner-variable-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Ai,asType:!1,isList:!1,parent:YG},KG={type:n.GenericReference,id:"company-dto-func-owner-variable-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:sb},XG={type:n.GenericReference,id:"company-dto-func-owner-variable-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:dr};n.GenericReference,n.VariableDeclaration;const Ub={constant:!0,required:!0,id:Ko,type:n.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Owner",dataType:HG,description:"A variable holding an inherited owner",defaultValue:null,calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[gu],errorCalls:[],readsValue:KG,writesValues:[],inputs:[],outputs:[zG],internalCalls:[],parent:XG,x:0,y:0},QG={type:n.GenericReference,id:"company-dto-func-company-variable-owner-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:ki},eF={id:sb,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:Ai.properties[2],index:4,writesValues:[Ub],parent:QG},tF={type:n.GenericReference,id:"company-dto-func-company-variable-bank-account-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:ki},iF={id:ob,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:Ai.properties[2],index:3,writesValues:[Lb],parent:tF},rF={type:n.GenericReference,id:"company-dto-func-company-variable-name-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:ki},nF={id:nb,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:Ai.properties[0],index:2,writesValues:[pb],parent:rF},sF={type:n.GenericReference,id:"company-dto-func-company-variable-employess-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:ki},aF={id:rb,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:Ai.properties[3],index:1,writesValues:[Nb],parent:sF},oF={type:n.GenericReference,id:"company-dto-func-company-variable-id-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:ki},lF={id:ib,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:pi.properties[0],index:0,writesValues:[fb],parent:oF},dF={type:n.GenericReference,id:"company-dto-func-company-variable-data-type-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:ki},uF={like:!1,inferred:!1,id:"company-dto-func-company-variable-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Ai,asType:!1,isList:!1,parent:dF},pF={type:n.GenericReference,id:"company-dto-func-company-variable-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:dr},cF={type:n.GenericReference,id:"company-dto-func-company-variable-reads-value-ref-id",version:"1",entityType:n.ArgumentDeclaration,entityId:Lu},fF={type:n.GenericReference,id:"company-dto-func-company-variable-called-by-id",version:"1",entityType:n.FunctionDeclaration,entityId:dr},gb={constant:!0,required:!0,id:ki,type:n.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Company",dataType:uF,description:"A variable holding a company",defaultValue:null,calledByError:[],calledByEntry:[fF],calledBySuccess:[],successCalls:[Lb,Ub,FG],errorCalls:[],readsValue:cF,writesValues:[],inputs:[],outputs:[lF,aF,nF,iF,eF],internalCalls:[],parent:pF,x:0,y:0},yF={type:n.GenericReference,id:"company-dto-func-declaration-company-input-declaration-data-type-parent-ref-id",entityId:Lu,version:"1",entityType:n.ArgumentDeclaration},hF={type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,id:"company-dto-func-declaration-company-input-declaration-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Ai,asType:!1,isList:!1,like:!1,inferred:!1,parent:yF},mF={type:n.GenericReference,id:"company-dto-func-declaration-company-input-declaration-parent-ref-id",entityId:dr,version:"1",entityType:n.FunctionDeclaration},vF={constant:!0,type:n.ArgumentDeclaration,id:Lu,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Company",description:"The company to create a DTO for",defaultValue:null,required:!0,implements:null,dataType:hF,index:0,writesValues:[gb],parent:mF},TF={type:n.GenericReference,id:"company-dto-function-declaration-parent-ref-id",version:"1",entityType:n.Project,entityId:ce},Gu={type:n.FunctionDeclaration,id:dr,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Company DTO",description:"Takes a company and returns a DTO of that company",inputs:[vF],calls:[gb],implements:null,index:null,collapsed:!1,private:!1,x:0,y:0,parent:TF},la="exec-in-parallel-operation-call-id",da="exec-sequentially-operation-call-id",Wt="concurrency-and-wait-function-declaration-id",jb="concurrency-and-wait-return-statement-id",$b="concurrency-and-wait-return-declaration-id",Fu="exec-in-parallel-argument-map-id",Gb="exec-sequentially-argument-map-id",xu="wait-for-2-seconds-operation-id",Fb="wait-for-2-seconds-argument-map-id",ku="map-company-dto-function-call-id",xb="map-company-dto-function-call-company-dto-output-map-id",el="company-dto-variable-one-id",Su="company-dto-variable-one-instance-id",kb="company-dto-variable-two-id",IF={type:n.GenericReference,id:"returned-company-dto-data-type-parent-ref-id",version:"1",entityType:n.ReturnDeclaration,entityId:$b},EF={like:!1,inferred:!1,id:"returned-company-dto-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Ai,asType:!1,isList:!1,parent:IF},AF={type:n.GenericReference,id:"returned-company-dto-parent-ref-id",version:"1",entityType:n.ReturnStatement,entityId:jb},bF={type:n.GenericReference,id:"returned-company-dto-reads-value-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:kb},Sb={constant:!0,isError:!1,id:$b,type:n.ReturnDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Company DTO",description:"Output the company data in the format that it will be sent through an HTTP request.",defaultValue:null,dataType:EF,implements:null,readsValue:bF,required:!0,index:0,parent:AF},RF={type:n.GenericReference,id:"concurrency-and-wait-return-statement-called-by-ref-id",version:"1",entityType:n.Operation,entityId:xu},DF={type:n.GenericReference,id:"concurrency-and-wait-return-statement-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:Wt},OF={type:n.ReturnStatement,id:jb,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[Sb],calledByError:[],calledByEntry:[],calledBySuccess:[RF],throws:null,x:0,y:0,parent:DF},PF={type:n.GenericReference,id:"company-dto-variable-two-called-by-ref-id",version:"1",entityType:n.VariableInstance,entityId:Su},wF={type:n.GenericReference,id:"company-dto-variable-two-reads-value-ref-id",version:"1",entityType:n.VariableInstance,entityId:Su},CF={type:n.GenericReference,id:"company-dto-variable-two-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:Wt},Zb={constant:!0,required:!0,id:kb,type:n.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Company DTO",description:null,defaultValue:null,dataType:null,inputs:[],outputs:[],successCalls:[],errorCalls:[],calledByError:[],calledByEntry:[],calledBySuccess:[PF],internalCalls:[],writesValues:[Sb],readsValue:wF,x:0,y:0,parent:CF},VF={type:n.GenericReference,id:"company-dto-variable-one-instance-called-by-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:el},BF={type:n.GenericReference,id:"company-dto-variable-one-instance-reads-value-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:el},_F={type:n.GenericReference,id:"company-dto-variable-one-instance-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:Wt},MF={type:n.GenericReference,id:"company-dto-variable-one-instance-declaration-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:el},qb={id:Su,type:n.VariableInstance,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:MF,inputs:[],outputs:[],successCalls:[Zb],errorCalls:[],defaultValue:null,calledByError:[],calledByEntry:[],calledBySuccess:[VF],internalCalls:[],writesValues:[Zb],readsValue:BF,x:0,y:0,parent:_F},NF={type:n.GenericReference,id:"company-dto-variable-one-called-by-ref-id",version:"1",entityType:n.FunctionCall,entityId:ku},LF={type:n.GenericReference,id:"company-dto-variable-one-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:xb},UF={type:n.GenericReference,id:"company-dto-variable-one-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:Wt},Jb={constant:!0,required:!0,id:el,type:n.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Company DTO",description:null,defaultValue:null,dataType:null,inputs:[],outputs:[],successCalls:[qb],errorCalls:[],calledByError:[],calledByEntry:[],calledBySuccess:[NF],internalCalls:[],writesValues:[qb],readsValue:LF,x:0,y:0,parent:UF},Wb={type:n.GenericReference,id:"map-company-dto-function-call-company-input-map-parent-ref-id",version:"1",entityType:n.FunctionCall,entityId:ku},gF={id:"map-company-dto-function-call-company-input-map-id",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Gu.inputs[0],name:null,description:null,defaultValue:null,index:0,readsValue:null,parent:Wb},jF={id:xb,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:hb.outputs[0],writesValues:[Jb],index:0,parent:Wb},$F={id:"map-company-dto-function-call-called-by-ref-id",type:n.GenericReference,version:"1",entityType:n.FunctionDeclaration,entityId:Wt},GF={id:"map-company-dto-function-call-parent-ref-id",type:n.GenericReference,version:"1",entityType:n.FunctionDeclaration,entityId:Wt},FF={id:ku,type:n.FunctionCall,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Gu,successCalls:[Jb],process:null,errorCalls:[],inputs:[gF],outputs:[jF],calledByError:[],calledByEntry:[$F],calledBySuccess:[],parent:GF,x:0,y:0,error:null},xF={type:n.GenericReference,id:"last-timestamp-variable-datatype-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Tu},kF={type:n.GenericReference,id:"last-timestamp-variable-default-value-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Tu},SF={like:!1,inferred:!1,id:"last-timestamp-variable-datatype-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,entity:Li,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,asType:!1,isList:!1,parent:xF},ZF={type:n.GenericReference,id:"last-timestamp-variable-main-project-ref-id",version:"1",entityType:n.Project,entityId:ce},Zu={constant:!0,required:!0,id:Tu,type:n.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Last registered current time",description:"A test variable that holds the last current date and time that was registered.",defaultValue:{id:"last-timestamp-variable-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.Date,value:null,autogeneration:{type:vt.CurrentDateAndTime,rangeStart:null,rangeEnd:null},valueAsTypeList:null,valueAsTypeSingle:null,parent:kF},dataType:SF,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],x:0,y:0,readsValue:null,writesValues:[],internalCalls:[],parent:ZF},qF={type:n.GenericReference,id:"wait-for-2-seconds-argument-default-value-parent-ref-id",version:"1",entityType:n.InputMap,entityId:Fb},JF={type:n.GenericReference,id:"wait-for-2-seconds-argument-map-parent-ref-id",version:"1",entityType:n.Operation,entityId:xu},WF={id:Fb,type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:en,name:null,description:null,readsValue:null,defaultValue:{id:"wait-for-2-seconds-argument-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:2e3,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null,name:L.Number,parent:qF},index:0,parent:JF},zF={type:n.GenericReference,id:"wait-for-2-seconds-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:Wt},YF={type:n.GenericReference,id:"wait-for-2-seconds-called-by-ref-one-id",version:"1",entityType:n.Operation,entityId:da},HF={type:n.GenericReference,id:"wait-for-2-seconds-called-by-ref-two-id",version:"1",entityType:n.Operation,entityId:la},zb={id:xu,type:n.Operation,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Oi,inputs:[WF],outputs:[],process:null,successCalls:[OF],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[],calledBySuccess:[YF,HF],error:null,parent:zF},KF={type:n.GenericReference,id:"wait-for-random-amount-argument-default-value-parent-ref-id",version:"1",entityType:n.InputMap,entityId:"wait-for-random-amount-input-map-id"},XF={type:n.GenericReference,id:"wait-for-random-amount-argument-map-parent-ref-id",version:"1",entityType:n.Operation,entityId:"wait-for-random-amount-id"},QF={id:"wait-for-random-amount-input-map-id",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:en,name:null,description:null,readsValue:null,defaultValue:{id:"wait-for-random-amount-argument-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:null,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:{type:vt.Random,rangeStart:1e3,rangeEnd:4e3},name:L.Number,parent:KF},index:0,parent:XF},ex={type:n.GenericReference,id:"wait-for-random-amount-parent-ref-id",version:"1",entityType:n.Project,entityId:ce},os={id:"wait-for-random-amount-id",type:n.Operation,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Oi,inputs:[QF],process:null,outputs:[],successCalls:[],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[],calledBySuccess:[],error:null,parent:ex},qu="list-of-functions-variable-id",tx={type:n.GenericReference,id:"list-of-functions-variable-action-descriptor-dynamic-argument-parent-ref-id",version:"1",entityType:n.ActionDescriptor,entityId:"list-of-functions-variable-action-descriptor-id"},ix={id:"list-of-functions-variable-action-descriptor-dynamic-argument-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Any input value",description:"Any input value that can be passed to the action",defaultValue:null,index:0,required:!1,dataType:null,parent:tx},rx={type:n.GenericReference,id:"list-of-functions-variable-action-descriptor-dynamic-return-parent-ref-id",version:"1",entityType:n.ActionDescriptor,entityId:"list-of-functions-variable-action-descriptor-id"},nx={id:"list-of-functions-variable-action-descriptor-dynamic-return-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Any output value",description:"Any output value that can be returned to the action",defaultValue:null,index:0,required:!1,dataType:null,parent:rx},sx={type:n.GenericReference,id:"list-of-functions-variable-data-type-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:qu},ax={type:n.GenericReference,id:"list-of-functions-variable-action-descriptor-parent-ref-id",version:"1",entityType:n.DataType,entityId:"list-of-functions-variable-data-type-id"},ox={id:"list-of-functions-variable-action-descriptor-id",type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Action to execute",description:"An action of any type, to be executed. It can contain any number of inputs and outputs.",inputs:[ix],error:null,outputs:[nx],parent:ax},lx={type:n.GenericReference,id:"list-of-functions-variable-data-type-default-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:qu},dx={like:!1,inferred:!1,id:"list-of-functions-variable-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ox,asType:!1,isList:!0,parent:sx},ux={type:n.GenericReference,id:"list-of-functions-variable-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:Wt};n.GenericReference,n.InputMap;const px={type:n.GenericReference,id:"list-of-functions-variable-writes-value-one-ref-id",version:"1",entityType:n.InputMap,entityId:Gb},cx={type:n.GenericReference,id:"list-of-functions-variable-writes-value-two-ref-id",version:"1",entityType:n.InputMap,entityId:Fu},Yb={constant:!0,required:!0,id:qu,type:n.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"List of functions to execute",description:"A list of functions to be executed in parallel",defaultValue:{id:"list-of-functions-variable-data-type-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.ActionDescriptor,value:null,valueAsTypeSingle:null,valueAsTypeList:[os,os,os,os,os],autogeneration:null,parent:lx},dataType:dx,parent:ux,readsValue:null,writesValues:[px,cx],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],inputs:[],outputs:[],internalCalls:[],x:0,y:0},fx={type:n.GenericReference,id:"exec-in-parallel-return-map-parent-ref-id",version:"1",entityType:n.Operation,entityId:la},yx={type:n.GenericReference,id:"exec-in-parallel-result-variable-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:Wt},hx={type:n.GenericReference,id:"exec-in-parallel-result-variable-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:"exec-in-parallel-return-map-id"},mx={type:n.GenericReference,id:"exec-in-parallel-result-variable-called-by-ref-id",version:"1",entityType:n.Operation,entityId:la},Hb={id:"exec-in-parallel-result-variable-id",type:n.VariableInstance,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Zu,readsValue:hx,writesValues:[],defaultValue:null,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[mx],successCalls:[],errorCalls:[],internalCalls:[],parent:yx,x:0,y:0},vx={id:"exec-in-parallel-return-map-id",type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:Pd,writesValues:[Hb],index:0,parent:fx},Tx={type:n.GenericReference,id:"exec-in-parallel-argument-map-parent-ref-id",version:"1",entityType:n.Operation,entityId:la},Ix={id:Fu,type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Od,name:null,description:null,readsValue:Yb,defaultValue:null,index:0,parent:Tx},Ex={type:n.GenericReference,id:"exec-in-parallel-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:Wt},Ax={type:n.GenericReference,id:"exec-in-parallel-called-by-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:Wt},bx={process:null,id:la,type:n.Operation,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Oi,inputs:[Ix],outputs:[vx],successCalls:[zb,Hb],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[Ax],calledBySuccess:[],error:null,parent:Ex},Rx={type:n.GenericReference,id:"exec-sequentially-return-map-parent-ref-id",version:"1",entityType:n.Operation,entityId:da},Dx={type:n.GenericReference,id:"exec-sequentially-result-variable-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:Wt},Ox={type:n.GenericReference,id:"exec-sequentially-result-variable-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:"exec-sequentially-return-map-id"},Px={type:n.GenericReference,id:"exec-sequentially-result-variable-called-by-ref-id",version:"1",entityType:n.Operation,entityId:da},Kb={id:"exec-sequentially-result-variable-id",type:n.VariableInstance,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Zu,readsValue:Ox,defaultValue:null,writesValues:[],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[Px],successCalls:[],errorCalls:[],internalCalls:[],parent:Dx,x:0,y:0},wx={id:"exec-sequentially-return-map-id",type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:Cd,writesValues:[Kb],index:0,parent:Rx},Cx={type:n.GenericReference,id:"exec-sequentially-argument-map-parent-ref-id",version:"1",entityType:n.Operation,entityId:da},Vx={id:Gb,type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:wd,name:null,description:null,readsValue:Yb,defaultValue:null,index:0,parent:Cx},Bx={type:n.GenericReference,id:"exec-sequentially-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:Wt},_x={type:n.GenericReference,id:"exec-sequentially-called-by-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:Wt},Mx={id:da,type:n.Operation,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:nr,inputs:[Vx],process:null,outputs:[wx],successCalls:[zb,Kb],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[_x],calledBySuccess:[],error:null,parent:Bx},Nx={type:n.GenericReference,id:"concurrency-and-wait-parent-ref-id",version:"1",entityType:n.Project,entityId:ce},Lx={type:n.FunctionDeclaration,id:Wt,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Execute with concurrency and wait",description:"Executes a hardcoded list of actions in parallel and waits for some time before ending the logic with some unrelated data payload as the result.",inputs:[],calls:[Mx,bx,FF],implements:null,index:null,collapsed:!1,private:!1,x:0,y:0,parent:Nx},Ux={type:n.GenericReference,id:"3521f2c8-a5c0-419c-8808-4fc6a73d0b78",version:"1",entityType:n.ReturnDeclaration,entityId:"e1ec31f0-25ca-42ac-a4c4-c9ec2255f55b"},gx={like:!1,inferred:!1,id:"ce8b9a30-afe9-4d4f-879f-1677efca2c47",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Ai,isList:!1,asType:!1,parent:Ux},jx={type:n.GenericReference,id:"8ee66e38-b060-474e-a503-594063a8ec24",version:"1",entityType:n.ReturnStatement,entityId:"40a23a98-d3b2-42b1-9652-b33779ad15aa"},$x={constant:!0,isError:!1,id:"e1ec31f0-25ca-42ac-a4c4-c9ec2255f55b",type:n.ReturnDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Created company",description:"The new company that was created",defaultValue:null,implements:null,dataType:gx,readsValue:null,required:!0,index:0,parent:jx},Gx={type:n.GenericReference,id:"9cb3c1e4-7250-4be6-be2a-69c2dd366d6f",version:"1",entityType:n.FunctionDeclaration,entityId:"5059c093-eda2-4efc-b7b4-aaaadd4d44de"},Fx={type:n.GenericReference,id:"c065fcdd-e054-4f95-941c-7eaa65c35d04",version:"1",entityType:n.FunctionDeclaration,entityId:"5059c093-eda2-4efc-b7b4-aaaadd4d44de"},xx={type:n.ReturnStatement,id:"40a23a98-d3b2-42b1-9652-b33779ad15aa",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[$x],calledByError:[],calledByEntry:[Fx],calledBySuccess:[],throws:null,x:0,y:0,parent:Gx},kx={type:n.GenericReference,id:"312ef836-9e40-4d57-b177-03b7145ed074",version:"1",entityType:n.Project,entityId:ce},Sx={type:n.FunctionDeclaration,id:"5059c093-eda2-4efc-b7b4-aaaadd4d44de",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Create new company",description:null,inputs:[],calls:[xx],index:null,implements:null,collapsed:!1,private:!1,x:0,y:0,parent:kx},Ju="get-current-date-and-time-func-decl-id",Xb="get-current-date-and-time-return-statement-id",Wu="get-current-date-and-time-return-declaration-id",Zx="get-current-date-and-time-return-declaration-data-type-id",qx={type:n.GenericReference,id:"get-current-date-and-time-return-declaration-data-type-value-parent-ref-id",version:"1",entityType:n.ReturnDeclaration,entityId:Wu},Jx={type:n.GenericReference,id:"get-current-date-and-time-return-declaration-data-type-parent-ref-id",version:"1",entityType:n.ReturnDeclaration,entityId:Wu},Wx={type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,id:Zx,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Li,asType:!1,isList:!1,like:!1,inferred:!1,parent:Jx},zx={type:n.GenericReference,id:"get-current-date-and-time-return-declaration-parent-ref-id",version:"1",entityType:n.ReturnStatement,entityId:Xb};n.ReturnDeclaration,n.LiteralValue,L.Date,vt.CurrentDateAndTime;const Yx={type:n.GenericReference,id:"get-current-date-and-time-return-statement-called-by-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:Ju},Hx={type:n.GenericReference,id:"get-current-date-and-time-return-statement-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:Ju};n.ReturnStatement;const Kx={type:n.GenericReference,id:"concurrency-and-wait-parent-ref-id",version:"1",entityType:n.Project,entityId:ce},Xx={type:n.FunctionDeclaration,id:Ju,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Get current date and time",description:"Generates and returns the current date and time at the time of the execution",inputs:[],calls:[],implements:null,index:null,collapsed:!1,private:!1,x:0,y:0,parent:Kx},Qx={type:n.GenericReference,id:"a2db26be-57f2-48e5-9769-cdbf0d95dc7c",version:"1",entityType:n.VariableDeclaration,entityId:"d0e9f1f3-7e9f-4e1f-8d8e-7b4b3e6c6a6a"},ek={like:!1,inferred:!1,id:"c3e9d5f0-204f-45f9-85f7-e1b56b468388",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,asType:!1,isList:!1,parent:Qx},tk={type:n.GenericReference,id:"692122c5-610a-4504-90dd-f5a5202d116c",version:"1",entityType:n.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},ik={type:n.GenericReference,id:"do-math-func-return-one-called-by",version:"1",entityType:n.Operation,entityId:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e"},rk={type:n.GenericReference,id:"6dceb501-be5b-4252-afb4-3c0d08abba33",version:"1",entityType:n.OutputMap,entityId:"64752080-ee0f-4cfe-9897-a0668f2b2aca"},Qb={constant:!0,required:!0,type:n.VariableDeclaration,id:"d0e9f1f3-7e9f-4e1f-8d8e-7b4b3e6c6a6a",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Result",dataType:ek,description:null,defaultValue:null,readsValue:rk,writesValues:[],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[ik],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:tk},nk={type:n.GenericReference,id:"5440f523-af38-4981-8035-89d162fe8041",version:"1",entityType:n.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},sk={type:n.GenericReference,id:"8c482c35-e674-4713-a1dd-63c3d13b611c",version:"1",entityType:n.OutputMap,entityId:"64752080-ee0f-4cfe-9897-a0668f2b2aca"},ak={type:n.GenericReference,id:"c0a299cd-5869-4930-8cf0-90e3ceb8a903",version:"1",entityType:n.VariableDeclaration,entityId:"46b2fe23-b417-4887-a35d-09b186679172"},ok={like:!1,inferred:!1,id:"51c0c1df-2ee3-41df-ae52-ac512d8cf795",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,isList:!1,asType:!1,parent:ak},lk={type:n.GenericReference,id:"do-math-func-return-two-called-by",version:"1",entityType:n.Operation,entityId:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e"},eR={constant:!0,required:!0,type:n.VariableDeclaration,id:"46b2fe23-b417-4887-a35d-09b186679172",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Total",description:null,defaultValue:null,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[lk],successCalls:[],errorCalls:[],dataType:ok,readsValue:sk,writesValues:[],internalCalls:[],parent:nk,x:0,y:0},tR="do-math-return-statement-id",zu="do-math-return-declaration-id",dk={type:n.GenericReference,id:"do-math-func-var-to-return-one-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:"do-math-func-var-to-return-one-id"},uk={like:!1,inferred:!1,id:"do-math-func-var-to-return-one-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,asType:!1,isList:!1,parent:dk},pk={type:n.GenericReference,id:"do-math-func-decl-ref-two-id",version:"1",entityType:n.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},ck={type:n.GenericReference,id:"do-math-func-var-to-return-one-map-ref-id",version:"1",entityType:n.ReturnDeclaration,entityId:zu},fk={constant:!0,required:!0,type:n.VariableDeclaration,id:"do-math-func-var-to-return-one-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:null,name:"Fixed result",defaultValue:null,dataType:uk,readsValue:null,writesValues:[ck],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:pk},yk={type:n.GenericReference,id:"96ec244e-594b-45f7-802b-6dc3056920f6",version:"1",entityType:n.ReturnStatement,entityId:tR},hk={type:n.GenericReference,id:"d120c0cc-9d13-4e45-90e2-4e1ee825ca46",version:"1",entityType:n.ReturnDeclaration,entityId:zu},mk={like:!1,inferred:!1,id:"da91aa23-9985-49ac-a8bf-9d623ba1ba8f",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,isList:!1,asType:!1,parent:hk},vk={constant:!0,isError:!1,id:zu,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.ReturnDeclaration,name:"Result",description:null,implements:null,defaultValue:null,dataType:mk,readsValue:fk,required:!0,index:0,parent:yk},Tk={type:n.GenericReference,id:"57fd93e4-93a1-484e-82eb-4dd15d2d0e24",version:"1",entityType:n.Operation,entityId:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e"},Ik={type:n.GenericReference,id:"0a86e8d5-ab21-476e-a482-b928cbf351e3",version:"1",entityType:n.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},Ek={type:n.ReturnStatement,id:tR,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[vk],calledByError:[],calledByEntry:[],calledBySuccess:[Tk],parent:Ik,throws:null,x:0,y:0},iR={type:n.GenericReference,id:"6e4d776e-6af2-4321-b630-c78110fd677c",version:"1",entityType:n.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},Ak={type:n.GenericReference,id:"5b60955b-2486-40b6-bb24-ffd97ccd8902",version:"1",entityType:n.Operation,entityId:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e"},bk={type:n.GenericReference,id:"1a49923f-bc6f-453f-a438-e74e5475c2a9",version:"1",entityType:n.Operation,entityId:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e"},Rk={type:n.GenericReference,id:"02bfde0a-b757-4072-9613-6e9c7c9a424a",version:"1",entityType:n.ArgumentDeclaration,entityId:"d8895765-f705-457e-85fa-25d130926769"},rR={id:"928953b0-0e3f-4d8c-ae5a-84620b4b8c68",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.InputMap,declaration:cd,name:null,description:null,readsValue:Rk,defaultValue:null,index:0,parent:bk},Dk={id:"64752080-ee0f-4cfe-9897-a0668f2b2aca",type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:hd,writesValues:[Qb,eR],index:0,parent:Ak},Ok={type:n.GenericReference,id:"d235a7f6-07ff-4f35-98d2-8f42dd59cf9f",version:"1",entityType:n.Operation,entityId:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e"},Pk={id:"8827e8e9-9381-4ad7-8f61-5419c23c9136",type:n.GenericReference,version:"1",entityType:n.VariableDeclaration,entityId:"72a338d8-0183-4ca2-8760-227517854595"},nR={id:"a5525249-0eb5-472b-97bc-5e4cc0d75aee",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.InputMap,declaration:fd,name:null,description:null,readsValue:Pk,defaultValue:null,index:1,parent:Ok},wk={type:n.Operation,id:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e",declaration:qa,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,inputs:[rR,nR],outputs:[Dk],calledByError:[],calledByEntry:[iR],calledBySuccess:[],process:null,successCalls:[Ek,Qb,eR],errorCalls:[],parent:iR,error:null,x:0,y:0},Ck={type:n.GenericReference,id:"a2c40226-2270-4963-a865-c777ba79c551",version:"1",entityType:n.VariableDeclaration,entityId:"72a338d8-0183-4ca2-8760-227517854595"},Vk={id:"f47731b3-f278-4ab5-aeb2-24519c1119fb",type:n.GenericReference,entityId:"72a338d8-0183-4ca2-8760-227517854595",version:"1",entityType:n.ArgumentDeclaration},sR={like:!1,inferred:!1,id:"a350a9e9-25ee-477f-a83d-9e98ed2451662",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,isList:!1,asType:!1,parent:Vk},Bk={type:n.GenericReference,id:"5f5d8dd0-7f3b-40cd-9f84-83d976887eaf",version:"1",entityType:n.ArgumentDeclaration,entityId:"649bf0a4-6532-44aa-9818-a03d1c6564e9"},_k={type:n.GenericReference,id:"ca018d0f-a8b3-4c7e-a408-c8b372d04aff",version:"1",entityType:n.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},Mk={type:n.GenericReference,id:"do-math-func-var-called-by-ref",version:"1",entityType:n.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},aR={constant:!0,required:!0,id:"72a338d8-0183-4ca2-8760-227517854595",type:n.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Z",description:null,defaultValue:{id:"do-math-func-argument-two-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:1,name:L.Number,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null,parent:Ck},dataType:sR,inputs:[],outputs:[],calledByError:[],calledByEntry:[Mk],calledBySuccess:[],successCalls:[],errorCalls:[],readsValue:Bk,writesValues:[nR],internalCalls:[],x:0,y:0,parent:_k},Nk={version:"1",entityType:n.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b",type:n.GenericReference,id:"af0cf105-4075-425f-aecc-b25d3600fcc4"},Lk={constant:!0,id:"649bf0a4-6532-44aa-9818-a03d1c6564e9",type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Z",description:"The number to add",defaultValue:null,dataType:sR,implements:null,writesValues:[aR],required:!0,index:1,parent:Nk},Uk={type:n.GenericReference,id:"56953b5d-3e43-4dea-a62c-f3e868ba81bb",version:"1",entityType:n.Project,entityId:ce},gk={id:"868defc8-5c95-48ed-942d-257e8b9b9b00",type:n.GenericReference,version:"1",entityType:n.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},jk={type:n.GenericReference,id:"35167664-a793-49f1-9eaf-fb57eac30897",version:"1",entityType:n.VariableDeclaration,entityId:"d8895765-f705-457e-85fa-25d130926769"},$k={id:"d47ceef6-be6f-40f1-a7b3-c73c8d8a6c6a",type:n.GenericReference,entityId:"d8895765-f705-457e-85fa-25d130926769",version:"1",entityType:n.ArgumentDeclaration},Gk={like:!1,inferred:!1,id:"55b12914-91b1-48b7-9a3e-9c5d0d2a2ec2",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,isList:!1,asType:!1,parent:$k},Fk={constant:!0,id:"d8895765-f705-457e-85fa-25d130926769",type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"N",dataType:Gk,description:"The number to add",implements:null,defaultValue:{id:"do-math-func-argument-one-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:5,name:L.Number,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null,parent:jk},writesValues:[rR],required:!0,index:0,parent:gk},xk={type:n.FunctionDeclaration,id:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Do math",description:"This function does math",inputs:[Fk,Lk],calls:[wk,aR],implements:null,index:null,collapsed:!1,private:!1,x:0,y:0,parent:Uk},zt="replace-bank-account-in-company-func-declaration-id",Yu="company-entity-to-modify-arg-declaration-id",Hu="account-number-to-create-arg-decl-id",ls="company-main-variable-id",ds="search-person-by-id-id",oR="new-bank-account-owner-arg-decl-id",lR="search-person-by-id-output-declaration-id",Ku="search-person-by-id-output-entity-map-id",ua="person-not-empty-condition-id",tl="create-new-bank-account-instance-operation-id",dR="create-new-bank-account-instance-operation-output-entity-map-id",uR="company-bank-account-output-map-id",Xu="old-bank-account-var-declaration-id",pR="old-bank-account-var-instance-id",cR="company-variable-instance-id",Qu="delete-bank-account-internal-call-id",pa="new-bank-account-data-variable-declaration-id",kk={type:n.GenericReference,id:"company-variable-instance-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:zt},Sk={type:n.GenericReference,id:"company-variable-instance-called-by-ref-id",version:"1",entityType:n.InternalCall,entityId:Qu},Zk={type:n.GenericReference,id:"company-variable-instance-declaration-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:ls},qk={type:n.GenericReference,id:"bank-account-input-map-parent-ref-id",version:"1",entityType:n.VariableInstance,entityId:cR},Jk={type:n.GenericReference,id:"bank-account-input-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:dR},fR={type:n.InputMap,id:"bank-account-input-map-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,readsValue:Jk,declaration:Du,name:null,description:null,index:0,defaultValue:null,parent:qk},Wk={type:n.VariableInstance,id:cR,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:Zk,inputs:[fR],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[Sk],successCalls:[],errorCalls:[],internalCalls:[],parent:kk,readsValue:null,writesValues:[],x:0,y:0},zk={type:n.GenericReference,id:"bank-account-variable-data-type-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:ls},Yk={type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,id:"bank-account-variable-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:rs,asType:!1,isList:!1,like:!1,inferred:!1,parent:zk},Hk={type:n.GenericReference,id:"bank-account-variable-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:uR},Kk={type:n.GenericReference,id:"bank-account-variable-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:zt},Xk={type:n.GenericReference,id:"bank-account-variable-called-by-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:ls},Qk={type:n.GenericReference,id:"delete-bank-account-internal-call-called-by-ref-id",version:"1",entityType:n.Operation,entityId:tl};n.GenericReference,n.VariableInstance;const e8={type:n.GenericReference,id:"delete-bank-account-internal-call-called-by-ref-two-id",version:"1",entityType:n.VariableDeclaration,entityId:Xu},t8={type:n.GenericReference,id:"old-bank-account-variable-trigger-delete-decl-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Xu},i8={type:n.GenericReference,id:"bank-account-variable-parent-ref-two-id",version:"1",entityType:n.FunctionDeclaration,entityId:zt},r8={type:n.GenericReference,id:"old-bank-account-variable-trigger-delete-internal-call-ref-id",version:"1",entityType:n.InternalCall,entityId:Qu},n8={type:n.VariableInstance,id:pR,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:t8,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],internalCalls:[r8],errorCalls:[],parent:i8,readsValue:null,writesValues:[],x:0,y:0},yR={process:null,type:n.InternalCall,id:Qu,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Xd,index:0,successCalls:[Wk],errorCalls:[],inputs:[],outputs:[],error:null,calledByError:[],calledByEntry:[],calledBySuccess:[Qk,e8],parent:n8},hR={constant:!0,required:!0,type:n.VariableDeclaration,id:Xu,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Old bank account",description:"The existing bank account that needs to be replaced in the company entity",dataType:Yk,defaultValue:null,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[Xk],successCalls:[yR],internalCalls:[],errorCalls:[],parent:Kk,readsValue:Hk,writesValues:[],x:0,y:0},s8={type:n.GenericReference,id:"company-variable-declaration-data-type-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:ls},a8={type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,id:"company-variable-declaration-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Ai,asType:!1,isList:!1,like:!1,inferred:!1,parent:s8},o8={type:n.GenericReference,id:"company-variable-declaration-reads-value-ref-id",version:"1",entityType:n.ArgumentDeclaration,entityId:Yu},l8={type:n.GenericReference,id:"company-variable-declaration-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:zt},d8={type:n.GenericReference,id:"company-variable-declaration-called-by-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:zt},u8={type:n.GenericReference,id:"company-bank-account-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:ls},p8={id:uR,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.OutputMap,defaultValue:null,declaration:Du,index:0,parent:u8,writesValues:[hR]},mR={constant:!0,required:!0,type:n.VariableDeclaration,id:ls,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Company",description:"The company entity that was passed as an argument to the parent function",defaultValue:null,dataType:a8,inputs:[],outputs:[p8],calledByError:[],calledByEntry:[d8],calledBySuccess:[],successCalls:[hR],errorCalls:[],parent:l8,internalCalls:[],readsValue:o8,writesValues:[],x:0,y:0},c8={type:n.GenericReference,id:"create-new-bank-account-account-owner-dynamic-input-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:pa},f8={id:"create-new-bank-account-account-owner-dynamic-input-map-reads-value-ref-id",type:n.GenericReference,version:"1",entityType:n.OutputMap,entityId:Ku},vR={id:"create-new-bank-account-account-owner-dynamic-input-map-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.InputMap,declaration:null,name:"Account owner",description:null,readsValue:f8,index:1,defaultValue:null,parent:c8},y8={id:"create-new-bank-account-account-number-dynamic-input-map-reads-value-ref-id",type:n.GenericReference,version:"1",entityType:n.ArgumentDeclaration,entityId:Hu},h8={type:n.GenericReference,id:"create-new-bank-account-account-number-dynamic-input-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:pa},TR={id:"create-new-bank-account-account-number-dynamic-input-map-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.InputMap,declaration:null,name:"Account number",description:null,readsValue:y8,defaultValue:null,index:0,parent:h8},IR={type:n.GenericReference,id:"create-new-bank-account-instance-operation-entity-to-create-input-map-parent-ref-id",version:"1",entityType:n.Operation,entityId:tl},m8={id:"create-new-bank-account-instance-operation-entity-to-create-input-map-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.InputMap,declaration:tn.inputs[0],name:null,description:null,index:0,readsValue:null,defaultValue:{id:"create-new-bank-account-instance-operation-entity-to-create-input-map-default-value-id",type:n.LiteralValue,name:L.EntityTemplate,value:null,valueAsTypeSingle:rs,valueAsTypeList:null,autogeneration:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,parent:{entityId:"create-new-bank-account-instance-operation-entity-to-create-input-map-id",entityType:n.InputMap,version:"1",id:"create-new-bank-account-instance-operation-entity-to-create-input-map-parent-ref-id",type:n.GenericReference}},parent:IR},v8={type:n.GenericReference,id:"create-new-bank-account-instance-operation-entity-data-input-map-reads-value-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:pa},ER={id:"create-new-bank-account-instance-operation-entity-data-input-map-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.InputMap,declaration:tn.inputs[1],name:null,description:null,index:1,readsValue:v8,defaultValue:null,parent:IR},T8={type:n.GenericReference,id:"create-new-bank-account-instance-operation-output-entity-map-parent-ref-id",version:"1",entityType:n.Operation,entityId:tl},I8={id:dR,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.OutputMap,defaultValue:null,declaration:tn.outputs[0],index:0,writesValues:[fR],parent:T8},E8={type:n.GenericReference,id:"create-new-bank-account-instance-operation-called-by-ref-id",version:"1",entityType:n.Condition,entityId:ua},A8={type:n.GenericReference,id:"create-new-bank-account-instance-operation-called-by-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:pa},b8={type:n.GenericReference,id:"create-new-bank-account-instance-operation-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:zt},AR={process:null,id:tl,type:n.Operation,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:tn,inputs:[m8,ER],error:null,outputs:[I8],successCalls:[yR],errorCalls:[],calledByError:[],calledByEntry:[],calledBySuccess:[A8,E8],parent:b8,x:0,y:0},R8={type:n.GenericReference,id:"new-bank-account-data-variable-declaration-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:zt},D8={type:n.GenericReference,id:"create-new-bank-account-instance-operation-called-by-ref-id",version:"1",entityType:n.Condition,entityId:ua},O8={constant:!0,required:!0,id:pa,type:n.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,inputs:[TR,vR],dataType:null,name:"New bank Account's data",description:null,readsValue:null,outputs:[],writesValues:[ER],successCalls:[AR],errorCalls:[],internalCalls:[],calledByError:[],calledBySuccess:[D8],calledByEntry:[],x:0,y:0,parent:R8},P8={id:"person-not-found-thrown-error-datatype-default-value-parent-ref-id",type:n.GenericReference,entityId:"person-not-found-thrown-error-id",version:"1",entityType:n.ReturnDeclaration},w8={id:"person-not-found-thrown-error-datatype-parent-ref-id",type:n.GenericReference,entityId:"person-not-found-thrown-error-id",version:"1",entityType:n.ReturnDeclaration},C8={like:!1,inferred:!1,id:"person-not-found-thrown-error-datatype-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:se,isList:!1,asType:!1,parent:w8},V8={id:"person-not-found-thrown-error-parent-ref-id",type:n.GenericReference,entityId:"person-not-found-error-return-statement-id",version:"1",entityType:n.ReturnStatement},B8={constant:!0,isError:!0,id:"person-not-found-thrown-error-id",type:n.ReturnDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,dataType:C8,name:"Person not found error",description:"If the person entity was not found this error is outputted",defaultValue:{id:"person-not-found-thrown-error-datatype-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:"Person not found",name:L.String,parent:P8,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null},parent:V8,implements:null,required:!0,index:0,readsValue:null},_8={id:"person-not-found-error-return-statement-called-by-ref-id",type:n.GenericReference,entityId:ua,version:"1",entityType:n.Condition},M8={id:"person-not-found-error-return-statement-parent-ref-id",type:n.GenericReference,entityId:zt,version:"1",entityType:n.FunctionDeclaration},N8={id:"person-not-found-error-return-statement-id",type:n.ReturnStatement,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,throws:B8,outputs:[],calledBySuccess:[],calledByError:[_8],calledByEntry:[],x:0,y:0,parent:M8},L8={type:n.GenericReference,id:"person-not-empty-condition-called-by-ref-id",version:"1",entityType:n.Search,entityId:ds},U8={type:n.GenericReference,id:"person-not-empty-condition-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:zt},g8={type:n.GenericReference,id:"person-entity-to-check-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:Ku},j8={type:n.GenericReference,id:"person-not-empty-condition-ref-two-id",version:"1",entityType:n.Condition,entityId:ua},bR={id:"person-entity-to-check-map-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.InputMap,declaration:ln.inputs[0],name:null,description:null,readsValue:g8,index:0,defaultValue:null,parent:j8},$8={type:n.Condition,id:ua,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:ln,inputs:[bR],calledByError:[],calledByEntry:[],calledBySuccess:[L8],successCalls:[O8,AR],errorCalls:[N8],x:0,y:0,parent:U8},G8={type:n.GenericReference,id:"search-person-by-id-output-entity-declaration-datatype-parent-ref-id",version:"1",entityType:n.ValueDescriptor,entityId:lR},F8={like:!1,inferred:!1,id:"search-person-by-id-output-entity-declaration-datatype-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,asType:!1,entity:Jt,parent:G8},x8={type:n.GenericReference,id:"search-person-by-id-output-entity-declaration-parent-ref-id",version:"1",entityType:n.Search,entityId:ds},RR={id:lR,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,dataType:F8,name:"Found person",description:"The person entity that was found",parent:x8,required:!0,index:0},k8={type:n.GenericReference,id:"search-person-by-id-output-entity-map-parent-ref-id",version:"1",entityType:n.Search,entityId:ds},S8={type:n.OutputMap,id:Ku,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:RR,parent:k8,writesValues:[bR,vR],index:0},Z8={id:"search-person-by-id-input-declaration-datatype-parent-ref-id",type:n.GenericReference,entityId:"search-person-by-id-input-declaration-id",version:"1",entityType:n.ArgumentDeclaration};n.DataType;const q8={type:n.GenericReference,id:"search-person-by-id-input-declaration-parent-ref-id",version:"1",entityType:n.Search,entityId:ds},DR={id:"search-person-by-id-input-declaration-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,dataType:null,defaultValue:null,name:"Person ID",description:"The unique identifier (ID) property of the person entity",parentRelationType:N.FixedArguments,index:0,required:!0,parent:q8},J8={type:n.GenericReference,id:"search-person-by-id-input-map-parent-ref-id",version:"1",entityType:n.Search,entityId:ds},W8={id:"search-person-by-id-input-map-reads-value-ref-id",type:n.GenericReference,entityId:oR,version:"1",entityType:n.ArgumentDeclaration},OR={type:n.InputMap,id:"search-person-by-id-input-map",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:DR,name:null,description:null,readsValue:W8,defaultValue:null,parent:J8,index:0},z8="SELECT * FROM Person WHERE id = your_id;",Y8={type:n.GenericReference,id:"search-person-by-id-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:zt},H8={type:n.GenericReference,id:"search-person-by-id-called-by-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:zt},K8={type:n.Search,id:ds,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Search person by ID",description:"Searches for a person entity given the UUID",query:z8,inputsDeclarations:[DR],inputs:[OR],outputsDeclarations:[RR],outputs:[S8],calledByError:[],calledByEntry:[H8],calledBySuccess:[],error:null,successCalls:[$8],errorCalls:[],parent:Y8,x:0,y:0};n.GenericReference,n.DataType;const X8={id:"account-number-to-create-arg-decl-data-type-parent-ref-id",type:n.GenericReference,entityId:Hu,version:"1",entityType:n.ArgumentDeclaration},Q8={like:!1,inferred:!1,id:"account-number-to-create-arg-decl-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:se,isList:!1,asType:!1,parent:X8},e9={version:"1",entityType:n.FunctionDeclaration,entityId:zt,type:n.GenericReference,id:"account-number-to-create-arg-decl-parent-ref-id"},t9={constant:!0,id:Hu,type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Account number",description:"The account number of the new bank account entity",defaultValue:null,dataType:Q8,implements:null,writesValues:[TR],required:!0,index:1,parent:e9};n.GenericReference,n.DataType;const i9={id:"new-bank-account-owner-arg-decl-data-type-parent-ref-id",type:n.GenericReference,entityId:"new-bank-account-owner-arg-decl-id",version:"1",entityType:n.ArgumentDeclaration},r9={like:!1,inferred:!1,id:"new-bank-account-owner-arg-decl-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ir,isList:!1,asType:!1,parent:i9},n9={version:"1",entityType:n.FunctionDeclaration,entityId:zt,type:n.GenericReference,id:"new-bank-account-owner-arg-decl-parent-ref-id"},s9={constant:!0,id:oR,type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"New account owner ID",description:"If it has changed, this is the new person entity, that owns of the bank account",defaultValue:null,dataType:r9,implements:null,writesValues:[OR],required:!1,index:1,parent:n9},a9={type:n.GenericReference,id:"replace-bank-account-in-company-parent-ref",version:"1",entityType:n.Project,entityId:ce},o9={type:n.GenericReference,id:"company-entity-to-modify-parent-ref",version:"1",entityType:n.FunctionDeclaration,entityId:zt};n.GenericReference,n.DataType;const l9={id:"d47ceef6-be6f-40f1-a7b3-c73c8d8a6c6a",type:n.GenericReference,entityId:Yu,version:"1",entityType:n.ArgumentDeclaration},d9={like:!1,inferred:!1,id:"company-entity-to-modify-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,isList:!1,asType:!1,parent:l9},u9={constant:!0,id:Yu,type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Company",defaultValue:null,dataType:d9,implements:null,description:"The company to replace the bank account for",writesValues:[mR],required:!0,index:0,parent:o9},p9={type:n.FunctionDeclaration,id:zt,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Replace bank account",description:"This action takes an existing company and data to create a new bank account entity. It then creates a bank account, deletes the old one, and updates the company with the new bank account",inputs:[u9,t9,s9],index:null,implements:null,calls:[K8,mR],collapsed:!1,private:!1,x:0,y:0,parent:a9},c9={type:n.GenericReference,id:"e0a937bd-3a85-4037-a973-916985b9f94b",version:"1",entityType:n.Project,entityId:"7268bc97-c0e6-4d88-b37e-d3241b5f77a6"},f9={type:n.FunctionDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,id:"6bedb217-f844-4332-af72-9626b2a32511",name:"Some library main function",description:null,inputs:[],calls:[],implements:null,collapsed:!0,index:null,private:!1,parent:c9,x:0,y:0},y9={type:n.GenericReference,id:"948e6869-ae5b-4914-bea0-b9f02ad6a014",version:"1",entityType:n.Project,entityId:ce},h9={type:n.InstalledProject,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,id:"7268bc97-c0e6-4d88-b37e-d3241b5f77a6",name:"Third Party Installed Project",description:null,functions:[f9],events:[],implements:null,parent:y9,x:0,y:0},ep="global-counted-test-loop-id",PR="global-counted-test-loop-body-id",wR="global-counted-test-loop-body-current-iteration-value-argument-declaration-id",m9={type:n.GenericReference,id:"global-counted-test-loop-body-current-iteration-value-argument-declaration-data-type-parent-ref-id",entityId:wR,version:"1",entityType:n.ArgumentDeclaration},v9={like:!1,inferred:!1,id:"global-counted-test-loop-body-current-iteration-value-argument-declaration-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,isList:!1,asType:!1,parent:m9},T9={id:"global-counted-test-loop-body-current-iteration-value-argument-declaration-parent-ref-id",type:n.GenericReference,entityId:PR,version:"1",entityType:n.FunctionDeclaration},I9={constant:!0,id:wR,type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Current value",description:"The current value being processed.",defaultValue:null,dataType:v9,implements:Gd,required:!0,index:0,writesValues:[],parent:T9},E9={id:"global-counted-test-loop-body-parent-ref-id",type:n.GenericReference,entityId:ep,version:"1",entityType:n.Loop},A9={id:PR,type:n.FunctionDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Iteration logic trigger",description:"This function is called once for each iteration of the loop.",inputs:[I9],calls:[],implements:ao,collapsed:!1,private:!1,index:0,x:0,y:0,parent:E9},us="random-company-employee-test-variable-id",tp="manager-global-variable-id",CR="global-user-instance-id",Si="employee-mapped-dto-variable-id",vn="employee-mapped-dto-variable-instance-id",VR="random-employee-id-output-map-id",BR="random-employee-birth-date-output-map-id",_R="random-employee-department-output-map-id",MR="random-employee-manager-output-map-id",NR="manager-global-id-output-map-id",LR="global-user-instance-id-output-map-id",b9="employee-mapped-dto-requester-id-input-map-id",UR="employee-mapped-dto-now-timestamp-input-map-id",R9="employee-mapped-dto-id-input-map-id",D9="employee-mapped-dto-birth-date-input-map-id",O9="employee-mapped-dto-department-input-map-id",P9="employee-mapped-dto-manager-input-map-id",w9={id:"global-counted-test-loop-iteration-number-input-map-parent-ref-id",type:n.GenericReference,entityId:ep,version:"1",entityType:n.Loop};n.GenericReference,n.VariableDeclaration;const C9={id:"global-counted-test-loop-iteration-number-input-map-id",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:null,description:null,declaration:Ls.inputs[0],defaultValue:null,readsValue:null,index:0,parent:w9},V9={id:"global-counted-test-loop-parent-ref-id",type:n.GenericReference,entityId:ce,version:"1",entityType:n.Project},B9={id:"global-counted-test-loop-called-by-success-ref-id",type:n.GenericReference,entityId:vn,version:"1",entityType:n.VariableDeclaration},gR={id:ep,type:n.Loop,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Ls,inputs:[C9],successCalls:[],errorCalls:[],outputsDeclarations:[],outputs:[],process:null,body:A9,calledByError:[],calledByEntry:[],calledBySuccess:[B9],error:null,x:0,y:0,parent:V9},ip="global-object-keys-test-loop-id",jR="global-object-keys-test-loop-body-id",$R="global-object-keys-test-loop-body-current-iteration-value-argument-declaration-id",_9={type:n.GenericReference,id:"global-object-keys-test-loop-body-current-iteration-value-argument-declaration-data-type-parent-ref-id",entityId:$R,version:"1",entityType:n.ArgumentDeclaration},M9={like:!1,inferred:!1,id:"global-object-keys-test-loop-body-current-iteration-value-argument-declaration-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,isList:!1,asType:!1,parent:_9},N9={id:"global-object-keys-test-loop-body-current-iteration-value-argument-declaration-parent-ref-id",type:n.GenericReference,entityId:jR,version:"1",entityType:n.FunctionDeclaration},L9={constant:!0,id:$R,type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Current value",description:"The current value being processed.",defaultValue:null,dataType:M9,implements:Ld,required:!0,index:0,writesValues:[],parent:N9},U9={id:"global-object-keys-test-loop-body-parent-ref-id",type:n.GenericReference,entityId:ip,version:"1",entityType:n.Loop},g9={id:jR,type:n.FunctionDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Iteration logic trigger",description:"This function is called once for each iteration of the loop.",inputs:[L9],calls:[],implements:Sn,collapsed:!1,private:!1,index:0,x:0,y:0,parent:U9},j9={id:"global-object-keys-test-loop-iteration-object-input-map-parent-ref-id",type:n.GenericReference,entityId:ip,version:"1",entityType:n.Loop},$9={id:"global-object-keys-test-loop-iteration-object-input-map-reads-value-ref-id",type:n.GenericReference,entityId:Si,version:"1",entityType:n.VariableDeclaration},GR={id:"global-object-keys-test-loop-iteration-object-input-map-id",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:null,description:null,declaration:Sn.inputs[0],defaultValue:null,readsValue:$9,index:0,parent:j9},G9={id:"global-object-keys-test-loop-parent-ref-id",type:n.GenericReference,entityId:ce,version:"1",entityType:n.Project},F9={id:"global-object-keys-test-loop-called-by-success-ref-two-id",type:n.GenericReference,entityId:vn,version:"1",entityType:n.VariableDeclaration},x9={id:"global-object-keys-test-loop-called-by-success-ref-one-id",type:n.GenericReference,entityId:Si,version:"1",entityType:n.VariableDeclaration},rp={id:ip,type:n.Loop,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Sn,inputs:[GR],successCalls:[],errorCalls:[],outputsDeclarations:[],outputs:[],process:null,body:g9,calledByError:[],calledByEntry:[],calledBySuccess:[x9,F9],error:null,x:0,y:0,parent:G9},np="global-object-values-test-loop-id",FR="global-object-values-test-loop-body-id",xR="global-object-values-test-loop-body-current-iteration-value-argument-declaration-id",k9={type:n.GenericReference,id:"global-object-values-test-loop-body-current-iteration-value-argument-declaration-data-type-parent-ref-id",entityId:xR,version:"1",entityType:n.ArgumentDeclaration},S9={like:!1,inferred:!1,id:"global-object-values-test-loop-body-current-iteration-value-argument-declaration-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,isList:!1,asType:!1,parent:k9},Z9={id:"global-object-values-test-loop-body-current-iteration-value-argument-declaration-parent-ref-id",type:n.GenericReference,entityId:FR,version:"1",entityType:n.FunctionDeclaration},q9={constant:!0,id:xR,type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Current value",description:"The current value being processed.",defaultValue:null,dataType:S9,implements:gd,required:!0,index:0,writesValues:[],parent:Z9},J9={id:"global-object-values-test-loop-body-parent-ref-id",type:n.GenericReference,entityId:np,version:"1",entityType:n.Loop},W9={id:FR,type:n.FunctionDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Iteration logic trigger",description:"This function is called once for each iteration of the loop.",inputs:[q9],calls:[],implements:Zn,collapsed:!1,private:!1,index:0,x:0,y:0,parent:J9},z9={id:"global-object-values-test-loop-iteration-object-input-map-parent-ref-id",type:n.GenericReference,entityId:np,version:"1",entityType:n.Loop},Y9={id:"global-object-values-test-loop-iteration-object-input-map-reads-value-ref-id",type:n.GenericReference,entityId:vn,version:"1",entityType:n.VariableDeclaration},kR={id:"global-object-values-test-loop-iteration-object-input-map-id",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:null,description:null,declaration:Zn.inputs[0],defaultValue:null,readsValue:Y9,index:0,parent:z9},H9={id:"global-object-values-test-loop-parent-ref-id",type:n.GenericReference,entityId:ce,version:"1",entityType:n.Project},K9={id:"global-object-values-test-loop-called-by-success-ref-id",type:n.GenericReference,entityId:vn,version:"1",entityType:n.VariableInstance},SR={id:np,type:n.Loop,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Zn,inputs:[kR],successCalls:[],errorCalls:[],outputsDeclarations:[],outputs:[],process:null,body:W9,calledByError:[],calledByEntry:[],calledBySuccess:[K9],error:null,x:0,y:0,parent:H9},sp="global-test-iterate-over-string-loop-id",ap="global-test-iterate-over-string-loop-body-id",il="global-test-iterate-over-string-loop-body-current-iteration-value-argument-declaration-id",ZR="global-test-iterate-over-string-loop-iteration-list-input-map-id",X9={type:n.GenericReference,id:"global-test-iterate-over-string-loop-body-current-iteration-value-argument-declaration-data-type-parent-ref-id",entityId:il,version:"1",entityType:n.ArgumentDeclaration},Q9={like:!1,inferred:!1,id:"global-test-iterate-over-string-loop-body-current-iteration-value-argument-declaration-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,isList:!1,asType:!1,parent:X9},e6={id:"global-test-iterate-over-string-loop-body-current-iteration-value-argument-declaration-parent-ref-id",type:n.GenericReference,entityId:ap,version:"1",entityType:n.FunctionDeclaration},t6={constant:!0,id:il,type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Current character",description:"The current character value being processed.",defaultValue:null,dataType:Q9,implements:Md,required:!0,index:1,writesValues:[],parent:e6},i6={type:n.GenericReference,id:"global-test-iterate-over-string-loop-body-current-iteration-value-argument-declaration-data-type-parent-ref-id",entityId:il,version:"1",entityType:n.ArgumentDeclaration},r6={like:!1,inferred:!1,id:"global-test-iterate-over-string-loop-body-current-iteration-value-argument-declaration-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,isList:!1,asType:!1,parent:i6},n6={id:"global-test-iterate-over-string-loop-body-current-iteration-value-argument-declaration-parent-ref-id",type:n.GenericReference,entityId:ap,version:"1",entityType:n.FunctionDeclaration},s6={constant:!0,id:il,type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Current character",description:"The current character value being processed.",defaultValue:null,dataType:r6,implements:Nd,required:!0,index:0,writesValues:[],parent:n6},a6={id:"global-test-iterate-over-string-loop-body-parent-ref-id",type:n.GenericReference,entityId:sp,version:"1",entityType:n.Loop},o6={id:ap,type:n.FunctionDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Iteration logic trigger",description:"This function is called once for each iteration of the loop.",inputs:[s6,t6],calls:[],implements:no,collapsed:!1,private:!1,index:0,x:0,y:0,parent:a6},l6={id:"global-test-iterate-over-string-loop-iteration-list-input-map-parent-ref-id",type:n.GenericReference,entityId:sp,version:"1",entityType:n.Loop},d6={id:"global-test-iterate-over-string-loop-iteration-list-input-map-default-value-parent-ref-id",type:n.GenericReference,entityId:ZR,version:"1",entityType:n.InputMap},u6={id:"global-test-iterate-over-string-loop-iteration-list-input-map-default-value-id",type:n.LiteralValue,name:L.String,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:"Hello",valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:{type:vt.Random,rangeStart:4,rangeEnd:5},parent:d6},p6={id:ZR,type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:null,description:null,declaration:Ms.inputs[0],defaultValue:u6,readsValue:null,index:0,parent:l6},c6={id:"global-test-iterate-over-string-loop-parent-ref-id",type:n.GenericReference,entityId:ce,version:"1",entityType:n.Project},f6={id:sp,type:n.Loop,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Ms,inputs:[p6],successCalls:[],errorCalls:[],outputsDeclarations:[],outputs:[],process:null,body:o6,calledByError:[],calledByEntry:[],calledBySuccess:[],error:null,x:0,y:0,parent:c6},op="iterate-over-list-loop-id",qR="iterate-over-list-loop-body-id",JR="iterate-over-list-loop-body-current-iteration-value-argument-declaration-id",y6={type:n.GenericReference,id:"iterate-over-list-loop-body-current-iteration-value-argument-declaration-data-type-parent-ref-id",entityId:JR,version:"1",entityType:n.ArgumentDeclaration},h6={like:!1,inferred:!1,id:"iterate-over-list-loop-body-current-iteration-value-argument-declaration-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,isList:!1,asType:!1,parent:y6},m6={id:"iterate-over-list-loop-body-current-iteration-value-argument-declaration-parent-ref-id",type:n.GenericReference,entityId:qR,version:"1",entityType:n.FunctionDeclaration},v6={constant:!0,id:JR,type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Current value",description:"The current value being processed.",defaultValue:null,dataType:h6,implements:so,required:!0,index:0,writesValues:[],parent:m6},T6={id:"iterate-over-list-loop-body-parent-ref-id",type:n.GenericReference,entityId:op,version:"1",entityType:n.Loop},I6={id:qR,type:n.FunctionDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Iteration logic trigger",description:"This function is called once for each iteration of the loop.",inputs:[v6],calls:[],implements:Ns,collapsed:!1,private:!1,index:0,x:0,y:0,parent:T6},E6={id:"iterate-over-list-loop-iteration-list-input-map-parent-ref-id",type:n.GenericReference,entityId:op,version:"1",entityType:n.Loop},A6={id:"iterate-over-list-loop-iteration-list-input-map-id",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:null,description:null,declaration:Er.inputs[0],defaultValue:null,readsValue:null,index:0,parent:E6},b6={id:"iterate-over-list-loop-parent-ref-id",type:n.GenericReference,entityId:ce,version:"1",entityType:n.Project},R6={id:op,type:n.Loop,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Er,inputs:[A6],successCalls:[],errorCalls:[],outputsDeclarations:[],outputs:[],process:null,body:I6,calledByError:[],calledByEntry:[],calledBySuccess:[],error:null,x:0,y:0,parent:b6},D6=`SELECT
1
+ (function(h,n){typeof exports=="object"&&typeof module<"u"?n(exports):typeof define=="function"&&define.amd?define(["exports"],n):(h=typeof globalThis<"u"?globalThis:h||self,n(h["@elyx-code/project-logic-tree"]={}))})(this,function(h){"use strict";var VW=Object.defineProperty;var BW=(h,n,z)=>n in h?VW(h,n,{enumerable:!0,configurable:!0,writable:!0,value:z}):h[n]=z;var f=(h,n,z)=>(BW(h,typeof n!="symbol"?n+"":n,z),z);var n=(r=>(r.DefinitionEntity="definition-entity",r.BuiltInBaseEntity="built-in-base-entity",r.Project="project",r.InstalledProject="installed-project",r.GlobalEvent="global-event",r.DataType="data-type",r.FunctionCall="function-call",r.FunctionDeclaration="function-declaration",r.ActionDescriptor="action-descriptor",r.ValueDescriptor="value-descriptor",r.ArgumentDeclaration="argument-declaration",r.InputMap="input-map",r.ReturnStatement="return-statement",r.BreakStatement="break-statement",r.ContinueStatement="continue-statement",r.ReturnDeclaration="return-declaration",r.OutputMap="output-map",r.PrimitiveEntity="primitive-entity",r.LiteralValue="literal-value",r.Property="property",r.Operation="operation",r.Condition="condition",r.VariableDeclaration="variable-declaration",r.VariableInstance="variable-instance",r.Search="search",r.Loop="loop",r.InternalCall="internal-call",r.GenericReference="generic-reference",r))(n||{}),z=(r=>(r.HTTP_ENDPOINT="BUILT_IN_HTTP_ENDPOINT_ENTITY",r.RELATIONAL_DATABASE="BUILT_IN_RELATIONAL_DATABASE_ENTITY",r.PERSISTED_ENTITY="BUILT_IN_PERSISTED_ENTITY_ENTITY",r.CRON_JOB="BUILT_IN_CRON_JOB_ENTITY",r.EXECUTION="BUILT_IN_EXECUTION_ENTITY",r.KEY_VALUE_PARAM="BUILT_IN_KEY_VALUE_PARAM_ENTITY",r))(z||{}),vt=(r=>(r.CurrentDateAndTime="current-date-and-time",r.Unique="unique",r.Random="random",r))(vt||{}),L=(r=>(r.EntityTemplate="entity-template",r.ActionDescriptor="action-descriptor",r.String="string",r.Number="number",r.Boolean="boolean",r.Null="null",r.Enum="enum",r.KeyValue="key-value",r.Date="date",r.UUID="uuid",r.File="file",r.Untyped="untyped",r))(L||{}),Qe=(r=>(r.Addition="addition",r.Subtraction="subtraction",r.Multiplication="multiplication",r.Division="division",r.Remainder="remainder",r.Exponentiation="exponentiation",r))(Qe||{}),Ee=(r=>(r.Join="string-join",r.Split="string-split",r.DeleteLast="string-delete-last",r.DeleteFirst="string-delete-first",r.DeleteIndex="string-delete-index",r.AddIndex="string-add-index",r.ReplaceFirst="string-replace-first",r.ReplaceLast="string-replace-last",r.ReplaceIndex="string-replace-index",r.ReplaceSingleMatch="string-replace-single-match",r.ReplaceAllMatches="string-replace-all-matches",r.GetIndex="string-get-index",r.GetFirst="string-get-first",r.GetLast="string-get-last",r.Append="string-append",r.Prepend="string-prepend",r))(Ee||{}),he=(r=>(r.Join="list-join",r.Split="list-split",r.DeleteLast="list-delete-last",r.DeleteFirst="list-delete-first",r.DeleteIndex="list-delete-index",r.AddIndex="list-add-index",r.ReplaceFirst="list-replace-first",r.ReplaceLast="list-replace-last",r.ReplaceIndex="list-replace-index",r.ReplaceSingleMatch="list-replace-single-match",r.ReplaceAllMatches="list-replace-all-matches",r.GetIndex="list-get-index",r.GetFirst="list-get-first",r.GetLast="list-get-last",r.Append="list-append",r.Prepend="list-prepend",r))(he||{}),Ke=(r=>(r.Parallel="parallel",r.Sequential="sequential",r.Wait="wait",r))(Ke||{}),Xe=(r=>(r.CreateNewInstance="create-new-instance",r.Validate="validate",r))(Xe||{}),_t=(r=>(r.HttpRequest="base-http-request",r))(_t||{}),yt=(r=>(r.Equal="equal",r.NotEqual="not-equal",r.And="and",r.Or="or",r.LessThan="less-than",r.MoreThan="more-than",r.LessThanOrEqual="less-than-or-equal",r.MoreThanOrEqual="more-than-or-equal",r))(yt||{}),vi=(r=>(r.Empty="empty",r.NotEmpty="not-empty",r))(vi||{}),Q=(r=>(r.ManualFlow="manual-flow-loop",r.Counted="counted-loop",r.List="list-loop",r.ObjectKeys="object-keys-loop",r.ObjectValues="object-values-loop",r.String="string-loop",r))(Q||{}),N=(r=>(r.FixedArguments="fixed-arguments",r.FixedReturns="fixed-returns",r.ReturnedError="returned-error",r.OngoingProcessExecution="ongoing-process-execution",r.DynamicArgument="dynamic-argument-types",r.DynamicReturn="dynamic-return-types",r))(N||{}),Dt=(r=>(r.OrDataTypeGroup="or-data-type-group",r.AndDataTypeGroup="and-data-type-group",r))(Dt||{}),Qi=(r=>(r.PROJECT_PUBLICATION_COMPLETED="GLOBAL_EVENT_PROJECT_PUBLICATION_COMPLETED",r))(Qi||{}),di=(r=>(r.DeletePersistedEntity="base-delete-persisted-entity",r.SoftDeletePersistedEntity="base-soft-delete-persisted-entity",r.AbortExecution="base-abort-execution",r))(di||{}),$n=(r=>(r.Error="error",r.Task="task",r.Return="return",r))($n||{});const Ir=[n.VariableDeclaration,n.VariableInstance,n.InputMap,n.ReturnDeclaration],Tt=[n.VariableDeclaration,n.VariableInstance,n.ArgumentDeclaration,n.OutputMap],sf=[...Ir,...Tt],et=[n.VariableDeclaration,n.VariableInstance],fw=[n.FunctionDeclaration,n.Condition,n.Loop,n.Operation,n.FunctionCall,n.Search,n.InternalCall,n.GlobalEvent,n.DefinitionEntity,n.ReturnStatement,n.BreakStatement,n.ContinueStatement,n.VariableDeclaration,n.VariableInstance,n.LiteralValue,n.ActionDescriptor,n.ValueDescriptor,n.Property,n.DataType,n.InstalledProject,n.ArgumentDeclaration,n.InputMap,n.OutputMap,n.ReturnDeclaration],yw=[n.FunctionDeclaration,n.Property,n.ArgumentDeclaration,n.ReturnDeclaration],af=[n.FunctionCall,n.VariableInstance,n.InputMap,n.OutputMap,n.InternalCall],hw=[...af,n.Condition,n.Loop,n.Operation,n.Condition],Gn=[n.GlobalEvent],dd=[n.Operation,n.FunctionCall,n.Search,n.VariableDeclaration,n.VariableInstance,n.Loop],of=[...dd,n.InternalCall],ka=[...dd,n.Condition],ot=[...ka,n.InternalCall],lt=[n.FunctionDeclaration,...Gn],Mi=[...ot,n.ReturnStatement,n.BreakStatement,n.ContinueStatement],ud=[...ka,n.ReturnStatement,n.BreakStatement,n.ContinueStatement],Ni=[...ot,...lt],lf=[...ka,...lt],mw=[...Mi,...lt],vw=[...ud,...lt],dt=[...lt,n.Loop],st=[n.ReturnStatement,n.BreakStatement,n.ContinueStatement],Tw=[n.DefinitionEntity,n.BuiltInBaseEntity,n.Project,n.InstalledProject,n.GlobalEvent,n.DataType,n.FunctionCall,n.FunctionDeclaration,n.ActionDescriptor,n.ValueDescriptor,n.ArgumentDeclaration,n.InputMap,n.ReturnStatement,n.BreakStatement,n.ContinueStatement,n.ReturnDeclaration,n.OutputMap,n.PrimitiveEntity,n.LiteralValue,n.Property,n.Operation,n.Condition,n.VariableDeclaration,n.VariableInstance,n.Search,n.Loop,n.InternalCall],Sa=[n.DefinitionEntity,n.GlobalEvent,n.FunctionDeclaration,n.FunctionCall,n.VariableDeclaration,n.VariableInstance,n.Operation,n.Condition,n.ReturnStatement,n.BreakStatement,n.ContinueStatement,n.InstalledProject,n.Loop,n.Search],df=[n.DefinitionEntity,n.FunctionDeclaration,n.ArgumentDeclaration,n.ReturnDeclaration,n.Property,n.VariableDeclaration,n.Search,n.Project,n.InstalledProject,n.ActionDescriptor,n.ValueDescriptor],Ti=[n.BuiltInBaseEntity,n.PrimitiveEntity],uf=[n.DefinitionEntity,n.FunctionDeclaration,n.ArgumentDeclaration,n.ReturnDeclaration,n.Property,n.VariableDeclaration,n.GlobalEvent,n.Search,n.Project,n.InstalledProject,n.ActionDescriptor,n.ValueDescriptor,n.InputMap,n.OutputMap,n.FunctionCall,n.Operation,n.Condition,n.ReturnStatement,n.BreakStatement,n.ContinueStatement,n.VariableInstance,n.LiteralValue,n.InternalCall];var Za=(r=>(r.ActionOngoingProcessOutputValue="action-ongoing-process-output-value-descriptor-id",r))(Za||{});const k={[n.PrimitiveEntity]:{[L.String]:{id:"8b5fbe15-4c2b-48c0-9fd8-e5efbe3978dc",properties:{}},[L.Boolean]:{id:"f596545d-1565-4faa-9969-d95fa5edfea4",properties:{}},[L.Number]:{id:"ecb84c29-6153-4b82-86a5-fce2b5f92002",properties:{}},[L.KeyValue]:{id:"b6f3c3c4-9c3d-4f9d-9e9e-1c0f6a3c8c6b",properties:{}},[L.Enum]:{id:"9542b8b4-2642-4eee-9db9-def7963a17a0",properties:{options:{id:"00ccfcae-2104-45ef-bf6c-50ddccd74286",dataType:{id:"7dd59b70-f97b-43a7-a051-fde1842ce5d6",defaultValue:{id:"enum-options-property-data-type-default-value-id"}}}}},[L.UUID]:{id:"4a6234aa-c0f6-4731-b4dd-750388029226",properties:{}},[L.Date]:{id:"dc58f38b-d574-4956-aac6-32ce9529b937",properties:{}},[L.Null]:{id:"7d698f34-5a89-4aab-846b-07ef3843b8c4",properties:{}},[L.Untyped]:{id:"4044a018-818e-49d7-bf9a-c3dd1fff2102",properties:{}}},[n.ValueDescriptor]:{"action-ongoing-process-output-value-descriptor-id":{id:"action-ongoing-process-output-value-descriptor-id",dataType:{id:"process-output-value-data-type-id"}}},[n.BuiltInBaseEntity]:{[z.KEY_VALUE_PARAM]:{id:z.KEY_VALUE_PARAM},[z.HTTP_ENDPOINT]:{id:z.HTTP_ENDPOINT,properties:{method:{id:"http-endpoint-built-in-method-property-id"},path:{id:"http-endpoint-built-in-path-property-id"},cors:{id:"http-endpoint-built-in-cors-property-id"}},methods:{handler:{id:"http-endpoint-built-in-handler-method-id"}}},[z.PERSISTED_ENTITY]:{id:z.PERSISTED_ENTITY,properties:{database:{id:"persisted-built-in-base-entity-database-property-id"},primaryKey:{id:"persisted-built-in-base-entity-primary-key-property-id"}}},[z.RELATIONAL_DATABASE]:{id:z.RELATIONAL_DATABASE,properties:{identifier:{id:"relational-database-built-in-base-entity-identifier-property-id"},username:{id:"relational-database-built-in-base-entity-username-property-id"},password:{id:"relational-database-built-in-base-entity-password-property-id"},minSize:{id:"relational-database-built-in-base-entity-min-size-property-id"},default:{id:"relational-database-built-in-base-entity-default-property-id"},autoscaling:{id:"relational-database-built-in-base-entity-autoscaling-property-id"}}},[z.CRON_JOB]:{id:z.CRON_JOB,properties:{expression:{id:"cron-job-built-in-base-entity-expression-property-id"}}}},[n.Operation]:{[Ee.Join]:{id:Ee.Join,inputs:{separator:{id:"join-strings-separator-input-id"},first:{id:"join-strings-first-string-input-id"},second:{id:"join-strings-second-string-input-id"},dynamicString:{id:"join-strings-dynamic-string-input-id"}},outputs:{result:{id:"join-strings-result-string-return-delaration-id"},error:{id:"join-strings-error-return-delaration-id"}}},[Ee.Split]:{id:Ee.Split,inputs:{stringValue:{id:"split-string-string-input-id"},indexLocation:{id:"split-string-index-input-id"}},outputs:{firstPartResult:{id:"split-string-first-part-result-string-return-delaration-id"},secondPartResult:{id:"split-string-second-part-result-string-return-delaration-id"},error:{id:"split-string-error-return-delaration-id"}}},[Qe.Addition]:{id:Qe.Addition,inputs:{firstSummand:{id:"number-addition-first-summand-number-input-id"},secondSummand:{id:"number-addition-second-summand-number-input-id"},dynamicSummand:{id:"number-addition-dynamic-summand-number-input-id"}},outputs:{result:{id:"number-addition-result-number-return-delaration-id",dataType:{id:"number-addition-result-number-data-type-id"}},error:{id:"number-addition-error-return-delaration-id"}}},[Qe.Subtraction]:{id:Qe.Subtraction,inputs:{minuend:{id:"number-subtraction-minuend-number-input-id"},subtrahend:{id:"number-subtraction-subtrahend-number-input-id"},dynamicSubtrahend:{id:"number-subtraction-dynamic-subtrahend-number-input-id"}},outputs:{result:{id:"number-subtraction-result-number-return-delaration-id",dataType:{id:"number-subtraction-result-number-data-type-id"}},error:{id:"number-subtraction-error-return-delaration-id"}}},[_t.HttpRequest]:{id:_t.HttpRequest,inputs:{url:{id:"http-request-url-input-id"},query:{id:"http-request-query-input-id"},method:{id:"http-request-method-input-id"},headers:{id:"http-request-headers-input-id"},body:{id:"http-request-body-string-input-id"}},outputs:{code:{id:"http-response-code-return-delaration-id"},body:{id:"http-response-body-return-delaration-id"},headers:{id:"http-response-headers-return-delaration-id"},error:{id:"http-request-error-return-delaration-id"}}},[Xe.Validate]:{id:Xe.Validate,inputs:{entityToMatch:{id:"validate-data-entity-to-match-input-id"},dataToValidate:{id:"validate-data-data-to-validate-input-id"}},outputs:{outputEntity:{id:"validate-data-output-entity-return-delaration-id"},error:{id:"validate-data-error-return-delaration-id"}}},[Ke.Parallel]:{id:Ke.Parallel,inputs:{listOfActions:{id:"parallel-execution-list-of-actions-input-id"}},outputs:{results:{id:"parallel-execution-results-output-id",dataType:{id:"parallel-execution-results-data-type-id"}},error:{id:"parallel-execution-error-output-id"}}}},[n.Loop]:{[Q.List]:{id:Q.List,inputs:{list:{id:"iterate-over-list-loop-list-input-id"}},outputs:{results:{id:"iterate-over-list-loop-output-id"}},body:{id:"iterate-over-list-loop-body-descriptor-id",inputs:{iterationNumber:{id:"iterate-over-list-loop-iteration-number-input-id"},currentValue:{id:"iterate-over-list-loop-current-value-input-id"}}}},[Q.String]:{id:Q.String,inputs:{string:{id:"iterate-over-string-loop-string-input-id"}},outputs:{results:{id:"iterate-over-string-loop-output-id"}},body:{id:"iterate-over-string-loop-body-descriptor-id",inputs:{iterationNumber:{id:"iterate-over-string-loop-iteration-number-input-id"},currentValue:{id:"iterate-over-string-loop-current-value-input-id"}}}},[Q.ObjectKeys]:{id:Q.ObjectKeys,inputs:{object:{id:"iterate-over-object-keys-loop-object-input-id"}},outputs:{results:{id:"iterate-over-object-keys-loop-output-id"}},body:{id:"iterate-over-object-keys-loop-body-descriptor-id",inputs:{iterationNumber:{id:"iterate-over-object-keys-loop-iteration-number-input-id"},currentValue:{id:"iterate-over-object-keys-loop-current-value-input-id"}}}},[Q.ObjectValues]:{id:Q.ObjectValues,inputs:{object:{id:"iterate-over-object-values-loop-object-input-id"}},outputs:{results:{id:"iterate-over-object-values-loop-output-id"}},body:{id:"iterate-over-object-values-loop-body-descriptor-id",inputs:{iterationNumber:{id:"iterate-over-object-values-loop-iteration-number-input-id"},currentValue:{id:"iterate-over-object-values-loop-current-value-input-id"}}}},[Q.ManualFlow]:{id:Q.ManualFlow,inputs:{},outputs:{results:{id:"manual-flow-loop-output-id"}},body:{id:"manual-flow-loop-body-descriptor-id",inputs:{iterationNumber:{id:"iterate-over-manual-flow-loop-iteration-number-input-id"}}}},[Q.Counted]:{id:Q.Counted,inputs:{number:{id:"counted-loop-number-input-id"}},outputs:{results:{id:"counted-loop-output-id"}},body:{id:"counted-loop-body-descriptor-id",inputs:{iterationNumber:{id:"counted-loop-iteration-number-input-id"}}}}},[n.Condition]:{[yt.MoreThanOrEqual]:{id:yt.MoreThanOrEqual,inputs:{leftHand:{id:"condition-more-than-or-equal-left-hand-input-id",dataType:{id:"condition-more-than-or-equal-left-hand-data-type-id"}},rightHand:{id:"condition-more-than-or-equal-right-hand-input-id",dataType:{id:"condition-more-than-or-equal-right-hand-data-type-id"}}}},[vi.NotEmpty]:{id:vi.NotEmpty,inputs:{leftHand:{id:"condition-not-empty-input-id"}}}},[n.GlobalEvent]:{[Qi.PROJECT_PUBLICATION_COMPLETED]:{id:Qi.PROJECT_PUBLICATION_COMPLETED}}},ui=k[n.PrimitiveEntity],se={type:n.PrimitiveEntity,id:ui.string.id,description:"A string of characters.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.String,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[],methods:[]},er={type:n.PrimitiveEntity,id:ui.boolean.id,description:"A 'true' or 'false' value.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.Boolean,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[],methods:[]},ve={type:n.PrimitiveEntity,id:ui.number.id,description:"A number value.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.Number,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[],methods:[]},pd={type:n.PrimitiveEntity,id:ui.null.id,description:"An explicitly empty value.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.Null,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[],methods:[]},Ot={type:n.PrimitiveEntity,id:ui.untyped.id,description:"Data of any type that isn't known in advance.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.Untyped,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[],methods:[]},pf={id:"c2f52f01-8f2e-490e-8083-72289c8189c1",type:n.GenericReference,entityId:ui.enum.properties.options.id,version:"1",entityType:n.Property},cf={id:"4e803941-2e6a-4227-b803-b8877c0d7fee",type:n.GenericReference,entityId:"00ccfcae-2104-45ef-bf6c-50ddccd74286",version:"1",entityType:n.Property},ff={like:!1,inferred:!1,id:ui.enum.properties.options.dataType.id,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!0,entity:se,asType:!1,parent:cf},yf={id:"a2983c4c-0286-4ef1-8b5c-5a52904d3200",type:n.GenericReference,entityId:"9542b8b4-2642-4eee-9db9-def7963a17a0",version:"1",entityType:n.PrimitiveEntity},hf={constant:!1,hidden:!1,required:!0,id:ui.enum.properties.options.id,name:"Options",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,implements:null,static:!1,index:0,defaultValue:{id:ui.enum.properties.options.dataType.defaultValue.id,type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.KeyValue,autogeneration:null,value:[],valueAsTypeList:null,valueAsTypeSingle:null,parent:pf},dataType:ff,description:"Options for the enum. Each option is a text value.",parent:yf},tr={type:n.PrimitiveEntity,id:ui.enum.id,description:"A set of text options to choose from.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.Enum,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[hf],methods:[]},Li={type:n.PrimitiveEntity,id:ui.date.id,description:"A date and time value.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.Date,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[],methods:[]},ir={type:n.PrimitiveEntity,id:ui.uuid.id,description:"A unique identifier in the form of a 36-character string.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.UUID,static:!1,abstract:!1,abstractMethods:[],extends:[se],properties:[],methods:[]},Fn={type:n.PrimitiveEntity,id:ui[L.KeyValue].id,description:"A complex data structure with any combination of properties with names and values.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.KeyValue,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[],methods:[]},mf=[se,er,ve,pd,Ot,tr,Li,ir,Fn],Ui=k[n.Operation][Qe.Addition],vf={type:n.GenericReference,id:"3bd4aeb2-e3b7-4120-b289-011ebb03dba5",entityId:Ui.inputs.firstSummand.id,version:"1",entityType:n.ValueDescriptor},Tf={like:!1,inferred:!1,id:"number-addition-first-number-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,isList:!1,asType:!1,parent:vf},If={type:n.GenericReference,id:"9f486db2-a983-4293-9eef-81d4fc8d2d3e",entityId:Ui.inputs.secondSummand.id,version:"1",entityType:n.ValueDescriptor},Ef={like:!1,inferred:!1,id:"1d4abe83-3e87-4f74-99be-c1fd8c2f8d2d",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,asType:!1,isList:!1,parent:If},Af={type:n.GenericReference,id:"da5e9fe9-f18a-49e3-98e5-c1bf7b9b3153",entityId:Ui.outputs.result.id,version:"1",entityType:n.ValueDescriptor},bf={like:!1,inferred:!1,id:Ui.outputs.result.dataType.id,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,asType:!1,isList:!1,parent:Af},Rf={type:n.GenericReference,id:"a6c14305-d4f7-43ae-9d5e-b7dbacdc830a",entityId:Qe.Addition,version:"1",entityType:n.ActionDescriptor},cd={id:Ui.inputs.firstSummand.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Summand",description:"The first number to add",defaultValue:null,dataType:Tf,required:!0,parentRelationType:N.FixedArguments,index:0,parent:Rf},Df={type:n.GenericReference,id:"c5015128-4a65-462c-9da0-1c86e83ef897",entityId:Qe.Addition,version:"1",entityType:n.ActionDescriptor},fd={id:Ui.inputs.secondSummand.id,type:n.ValueDescriptor,description:"The second number to add",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Summand",defaultValue:null,dataType:Ef,required:!0,parentRelationType:N.FixedArguments,index:1,parent:Df},yd={type:n.GenericReference,id:"caac2bc7-c23c-4f01-9581-a515c2e4637f",entityId:Qe.Addition,version:"1",entityType:n.ActionDescriptor},hd={parentRelationType:N.FixedReturns,id:Ui.outputs.result.id,type:n.ValueDescriptor,description:"The result number of the addition",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Result",defaultValue:null,dataType:bf,required:!0,index:0,parent:yd},Of={type:n.GenericReference,id:"number-addition-operation-error-parent-ref",entityId:Qe.Addition,version:"1",entityType:n.ActionDescriptor},Pf={parentRelationType:N.FixedReturns,id:Ui.outputs.error.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Error",description:"An error that occurred during the operation.",defaultValue:null,dataType:null,required:!0,index:1,parent:Of},wf={type:n.GenericReference,id:"number-addition-operation-dynamic-summand-argument-type-parent-ref",entityId:Ui.inputs.dynamicSummand.id,version:"1",entityType:n.ValueDescriptor},Cf={like:!1,inferred:!1,id:"number-addition-operation-dynamic-summand-argument-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,asType:!1,isList:!1,parent:wf},Vf={parentRelationType:N.DynamicArgument,id:Ui.inputs.dynamicSummand.id,type:n.ValueDescriptor,description:"A number to add",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Summand",defaultValue:null,dataType:Cf,required:!0,index:2,parent:yd},qa={id:Qe.Addition,type:n.ActionDescriptor,description:"Sum numbers",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:Qe.Addition,inputs:[cd,fd,Vf],error:Pf,outputs:[hd],parent:null},gi=k[n.Operation][Qe.Subtraction],Bf={type:n.GenericReference,id:"3bd4aeb2-e3b7-4120-b289-011ebb03dba5",entityId:gi.inputs.minuend.id,version:"1",entityType:n.ValueDescriptor},_f={like:!1,inferred:!1,id:"number-subtraction-first-number-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,isList:!1,asType:!1,parent:Bf},Mf={type:n.GenericReference,id:"9f486db2-a983-4293-9eef-81d4fc8d2d3e",entityId:gi.inputs.subtrahend.id,version:"1",entityType:n.ValueDescriptor},Nf={like:!1,inferred:!1,id:"1d4abe83-3e87-4f74-99be-c1fd8c2f8d2d",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,asType:!1,isList:!1,parent:Mf},Lf={type:n.GenericReference,id:"da5e9fe9-f18a-49e3-98e5-c1bf7b9b3153",entityId:gi.outputs.result.id,version:"1",entityType:n.ValueDescriptor},Uf={like:!1,inferred:!1,id:gi.outputs.result.dataType.id,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,asType:!1,isList:!1,parent:Lf},md={type:n.GenericReference,id:"a6c14305-d4f7-43ae-9d5e-b7dbacdc830a",entityId:Qe.Subtraction,version:"1",entityType:n.ActionDescriptor},gf={id:gi.inputs.minuend.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Minuend",description:"Base number to substract from",defaultValue:null,dataType:_f,required:!0,parentRelationType:N.FixedArguments,index:0,parent:md},jf={type:n.GenericReference,id:"c5015128-4a65-462c-9da0-1c86e83ef897",entityId:Qe.Subtraction,version:"1",entityType:n.ActionDescriptor},$f={id:gi.inputs.subtrahend.id,type:n.ValueDescriptor,description:"The second number to substract",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Subtrahend",defaultValue:null,dataType:Nf,required:!0,parentRelationType:N.FixedArguments,index:1,parent:jf},Gf={type:n.GenericReference,id:"caac2bc7-c23c-4f01-9581-a515c2e4637f",entityId:Qe.Subtraction,version:"1",entityType:n.ActionDescriptor},Ff={parentRelationType:N.FixedReturns,id:gi.outputs.result.id,type:n.ValueDescriptor,description:"The result number of the subtraction",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Result",defaultValue:null,dataType:Uf,required:!0,index:0,parent:Gf},xf={type:n.GenericReference,id:"number-subtraction-operation-error-parent-ref",entityId:Qe.Subtraction,version:"1",entityType:n.ActionDescriptor},kf={parentRelationType:N.FixedReturns,id:gi.outputs.error.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Error",description:"An error that occurred during the operation.",defaultValue:null,dataType:null,required:!0,index:1,parent:xf},Sf={type:n.GenericReference,id:"number-subtraction-operation-dynamic-subtrahend-argument-type-parent-ref",entityId:gi.inputs.dynamicSubtrahend.id,version:"1",entityType:n.ValueDescriptor},Zf={like:!1,inferred:!1,id:"number-subtraction-operation-dynamic-subtrahend-argument-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,asType:!1,isList:!1,parent:Sf},qf={id:gi.inputs.dynamicSubtrahend.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Subtrahend",description:"A number to substract",defaultValue:null,dataType:Zf,required:!0,parentRelationType:N.DynamicArgument,index:2,parent:md},vd={id:Qe.Subtraction,type:n.ActionDescriptor,description:"Substract numbers",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:Qe.Subtraction,inputs:[gf,$f,qf],error:kf,outputs:[Ff],parent:null},Jf={[Qe.Addition]:qa,[Qe.Subtraction]:vd},Ii=k[n.Operation][Ee.Join],Wf={type:n.GenericReference,id:"join-strings-first-string-argument-declaration",entityId:Ii.inputs.first.id,version:"1",entityType:n.ValueDescriptor},zf={like:!1,inferred:!1,id:"join-strings-first-string-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:se,asType:!1,isList:!1,parent:Wf},Yf={type:n.GenericReference,id:"join-strings-second-string-argument-declaration",entityId:Ii.inputs.second.id,version:"1",entityType:n.ValueDescriptor},Hf={like:!1,inferred:!1,id:"join-strings-second-string-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:se,asType:!1,isList:!1,parent:Yf},Kf={type:n.GenericReference,id:"join-strings-result-string-return-delaration",entityId:Ii.outputs.result.id,version:"1",entityType:n.ValueDescriptor},Xf={like:!1,inferred:!1,id:"join-strings-result-string-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:se,asType:!1,isList:!1,parent:Kf},Qf={type:n.GenericReference,id:"join-strings-operation-first-string-argument-parent-ref",entityId:Ee.Join,version:"1",entityType:n.ActionDescriptor},Ja={id:Ii.inputs.first.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Text",description:"The first text to join to the second one. Its value will be at the beginning of the resulting text.",defaultValue:null,dataType:zf,parentRelationType:N.FixedArguments,required:!0,index:1,parent:Qf},ey={type:n.GenericReference,id:"join-strings-first-string-argument-declaration",entityId:Ii.inputs.first.id,version:"1",entityType:n.ValueDescriptor},ty={type:n.GenericReference,id:"join-strings-separator-string-data-type-default-value-parent-ref",entityId:Ii.inputs.separator.id,version:"1",entityType:n.ValueDescriptor},iy={type:n.LiteralValue,id:"join-strings-separator-string-data-type-default-value-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.String,value:"",valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null,parent:ty},ry={like:!1,inferred:!1,id:"join-strings-separator-string-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:se,asType:!1,isList:!1,parent:ey},ny={type:n.GenericReference,id:"join-strings-operation-separator-string-argument-parent-ref",entityId:Ee.Join,version:"1",entityType:n.ActionDescriptor},sy={id:Ii.inputs.separator.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Separator",description:"The text value that will be inserted between each of the values that are joined.",defaultValue:iy,dataType:ry,parentRelationType:N.FixedArguments,required:!1,index:0,parent:ny},ay={type:n.GenericReference,id:"join-strings-operation-second-string-argument-parent-ref",entityId:Ee.Join,version:"1",entityType:n.ActionDescriptor},Wa={id:Ii.inputs.second.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Text",description:"The second text to join to the first one. Its value will be at the end of the resulting text.",defaultValue:null,dataType:Hf,parentRelationType:N.FixedArguments,required:!0,index:2,parent:ay},oy={type:n.GenericReference,id:"join-strings-operation-result-string-return-parent-ref",entityId:Ee.Join,version:"1",entityType:n.ActionDescriptor},Cs={parentRelationType:N.FixedReturns,id:Ii.outputs.result.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Result",description:"The resulting text value.",defaultValue:null,dataType:Xf,required:!0,index:0,parent:oy},ly={type:n.GenericReference,id:"join-strings-operation-error-parent-ref",entityId:Ee.Join,version:"1",entityType:n.ActionDescriptor},dy={parentRelationType:N.FixedReturns,id:Ii.outputs.error.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Error",description:"An error that occurred during the operation.",defaultValue:null,dataType:null,required:!0,index:1,parent:ly},uy={type:n.GenericReference,id:"join-strings-dynamic-string-argument-declaration",entityId:Ii.inputs.dynamicString.id,version:"1",entityType:n.ValueDescriptor},py={like:!1,inferred:!1,id:"join-strings-dynamic-string-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:se,asType:!1,isList:!1,parent:uy},cy={type:n.GenericReference,id:"join-strings-operation-dynamic-string-argument-parent-ref",entityId:Ee.Join,version:"1",entityType:n.ActionDescriptor},fy={id:Ii.inputs.dynamicString.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Text",description:"Text to join to the previous ones. Its value will be at the end of the resulting text.",defaultValue:null,dataType:py,parentRelationType:N.DynamicArgument,required:!0,index:3,parent:cy},Vs={id:Ee.Join,type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:Ee.Join,description:"Join text values together, to form a single resulting text value.",inputs:[sy,Ja,Wa,fy],outputs:[Cs],error:dy,parent:null},rr=k[n.Operation][Ee.Split],yy={type:n.GenericReference,id:"split-string-string-argument-declaration",entityId:rr.inputs.stringValue.id,version:"1",entityType:n.ValueDescriptor},hy={like:!1,inferred:!1,id:"split-string-string-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:se,asType:!1,isList:!1,parent:yy},my={type:n.GenericReference,id:"split-string-index-argument-declaration",entityId:rr.inputs.indexLocation.id,version:"1",entityType:n.ValueDescriptor},vy={like:!1,inferred:!1,id:"split-string-index-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,asType:!1,isList:!1,parent:my},Ty={type:n.GenericReference,id:"split-string-first-part-result-string-return-delaration",entityId:rr.outputs.firstPartResult.id,version:"1",entityType:n.ValueDescriptor},Iy={like:!1,inferred:!1,id:"split-string-first-part-result-string-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:se,asType:!1,isList:!1,parent:Ty},Ey={type:n.GenericReference,id:"split-string-second-part-result-string-return-delaration",entityId:rr.outputs.secondPartResult.id,version:"1",entityType:n.ValueDescriptor},Ay={like:!1,inferred:!1,id:"split-string-second-part-result-string-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:se,asType:!1,isList:!1,parent:Ey},by={type:n.GenericReference,id:"split-string-operation-string-argument-parent-ref",entityId:Ee.Join,version:"1",entityType:n.ActionDescriptor},Ry={id:rr.inputs.stringValue.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Text value",description:"The text value that will be split into two at the given index location.",defaultValue:null,dataType:hy,parentRelationType:N.FixedArguments,required:!0,index:0,parent:by},Dy={type:n.GenericReference,id:"split-string-operation-index-argument-parent-ref",entityId:Ee.Join,version:"1",entityType:n.ActionDescriptor},Oy={id:rr.inputs.indexLocation.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Index location",description:"The index location where the text will be split into two. The text at this index will be the beginning of the second text.",defaultValue:null,dataType:vy,parentRelationType:N.FixedArguments,required:!0,index:1,parent:Dy},Py={type:n.GenericReference,id:"split-string-operation-second-part-result-string-return-parent-ref",entityId:Ee.Join,version:"1",entityType:n.ActionDescriptor},Iw={parentRelationType:N.FixedReturns,id:rr.outputs.secondPartResult.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Second part",description:"The secont part of the resulting text value.",defaultValue:null,dataType:Ay,required:!0,index:1,parent:Py},wy={type:n.GenericReference,id:"split-string-operation-first-part-result-string-return-parent-ref",entityId:Ee.Join,version:"1",entityType:n.ActionDescriptor},Cy={parentRelationType:N.FixedReturns,id:rr.outputs.firstPartResult.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"First part",description:"The first part of the resulting text value.",defaultValue:null,dataType:Iy,required:!0,index:0,parent:wy},Vy={type:n.GenericReference,id:"split-string-operation-error-parent-ref",entityId:Ee.Join,version:"1",entityType:n.ActionDescriptor},By={parentRelationType:N.FixedReturns,id:rr.outputs.error.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Error",description:"An error that occurred during the operation.",defaultValue:null,dataType:null,required:!0,index:1,parent:Vy},Td={id:Ee.Split,type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:Ee.Split,description:"Split a text into two, at the given index location.",inputs:[Ry,Oy],outputs:[Cy],error:By,parent:null},_y={[Ee.Join]:Vs,[Ee.Split]:Td};var My=(r=>(r.FirstInputList="join-list-first-list-argument-declaration",r.SecondInputList="join-list-second-list-argument-declaration",r))(My||{}),Ny=(r=>(r.ResultList="join-list-result-list-return-delaration",r.Error="join-list-error-return-delaration",r))(Ny||{});const Ly={type:n.GenericReference,id:"join-list-operation-first-list-argument-ref",entityId:"join-list-first-list-argument-declaration",version:"1",entityType:n.ValueDescriptor},Uy={like:!1,inferred:!1,id:"join-list-first-list-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,asType:!1,isList:!0,parent:Ly},gy={type:n.GenericReference,id:"join-list-operation-second-list-argument-ref",entityId:"join-list-second-list-argument-declaration",version:"1",entityType:n.ValueDescriptor},jy={like:!1,inferred:!1,id:"join-list-second-list-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,asType:!1,isList:!0,parent:gy},$y={type:n.GenericReference,id:"join-list-operation-result-list-return-ref",entityId:"join-list-result-list-return-delaration",version:"1",entityType:n.ValueDescriptor},Gy={like:!1,inferred:!1,id:"join-list-result-list-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:se,asType:!1,isList:!0,parent:$y},Fy={type:n.GenericReference,id:"join-list-operation-first-list-argument-parent-ref",entityId:he.Join,version:"1",entityType:n.ActionDescriptor},xy={id:"join-list-first-list-argument-declaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"First value",description:"The first list to join to the second one. Its values will be at the beginning of the resulting list.",defaultValue:null,dataType:Uy,parentRelationType:N.FixedArguments,required:!0,index:0,parent:Fy},ky={type:n.GenericReference,id:"join-list-operation-second-list-argument-parent-ref",entityId:he.Join,version:"1",entityType:n.ActionDescriptor},Sy={id:"join-list-second-list-argument-declaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Second value",description:"The second list to join to the first one. Its values will be at the end of the resulting list.",defaultValue:null,dataType:jy,parentRelationType:N.FixedArguments,required:!0,index:1,parent:ky},Zy={type:n.GenericReference,id:"join-list-operation-result-list-return-parent-ref",entityId:he.Join,version:"1",entityType:n.ActionDescriptor},qy={parentRelationType:N.FixedReturns,id:"join-list-result-list-return-delaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Result",description:"The resulting list value.",defaultValue:null,dataType:Gy,required:!0,index:0,parent:Zy},Jy={type:n.GenericReference,id:"join-list-operation-error-parent-ref",entityId:he.Join,version:"1",entityType:n.ActionDescriptor},Wy={parentRelationType:N.FixedReturns,id:"join-list-error-return-delaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Error",description:"An error that occurred during the operation.",defaultValue:null,dataType:null,required:!0,index:1,parent:Jy},Id={id:he.Join,type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:he.Join,description:"Join two lists together, to form a single resulting list value.",inputs:[xy,Sy],error:Wy,outputs:[qy],parent:null};var zy=(r=>(r.InputList="list-to-split-argument-declaration",r.SplitIndex="split-list-index-argument-declaration",r))(zy||{}),Yy=(r=>(r.FirstOutputList="split-list-first-output-list-return-delaration",r.SecondOutputList="split-list-second-output-list-return-delaration",r.Error="split-list-error-return-delaration",r))(Yy||{});const Hy={type:n.GenericReference,id:"split-list-operation-input-list-argument-ref",entityId:"list-to-split-argument-declaration",version:"1",entityType:n.ValueDescriptor},Ky={like:!1,inferred:!1,id:"split-list-operation-input-list-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:se,asType:!1,isList:!0,parent:Hy},Xy={type:n.GenericReference,id:"split-list-operation-split-index-argument-ref",entityId:"split-list-index-argument-declaration",version:"1",entityType:n.ValueDescriptor},Qy={like:!1,inferred:!1,id:"split-list-operation-split-index-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,asType:!1,isList:!1,parent:Xy},Ed={type:n.GenericReference,id:"split-list-operation-first-output-list-return-ref",entityId:"split-list-first-output-list-return-delaration",version:"1",entityType:n.ValueDescriptor},eh={like:!1,inferred:!1,id:"split-list-operation-first-output-list-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:se,asType:!1,isList:!0,parent:Ed},th={type:n.GenericReference,id:"split-list-operation-input-list-argument-parent-ref",entityId:he.Split,version:"1",entityType:n.ActionDescriptor},ih={id:"list-to-split-argument-declaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"List to split",description:"The list to split at the given index",defaultValue:null,dataType:Ky,parentRelationType:N.FixedArguments,required:!0,index:0,parent:th},rh={type:n.GenericReference,id:"split-list-operation-split-index-argument-parent-ref",entityId:he.Split,version:"1",entityType:n.ActionDescriptor},nh={id:"split-list-index-argument-declaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Split location",description:"The index at which to split the list. The value at this index will be the first value of the second list.",defaultValue:null,dataType:Qy,parentRelationType:N.FixedArguments,required:!0,index:1,parent:rh},sh={type:n.GenericReference,id:"split-list-operation-first-output-list-return-parent-ref",entityId:he.Split,version:"1",entityType:n.ActionDescriptor},ah={parentRelationType:N.FixedReturns,id:"split-list-first-output-list-return-delaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"First list",description:"The list of values up to the split index",defaultValue:null,dataType:eh,required:!0,index:0,parent:sh},oh={like:!1,inferred:!1,id:"split-list-operation-second-output-list-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:se,asType:!1,isList:!0,parent:Ed},lh={type:n.GenericReference,id:"split-list-operation-second-output-list-return-parent-ref",entityId:he.Split,version:"1",entityType:n.ActionDescriptor},dh={parentRelationType:N.FixedReturns,id:"split-list-second-output-list-return-delaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Second list",description:"The list of values up to the split index",defaultValue:null,dataType:oh,required:!0,index:0,parent:lh},uh={type:n.GenericReference,id:"split-list-operation-error-parent-ref",entityId:he.Split,version:"1",entityType:n.ActionDescriptor},ph={parentRelationType:N.FixedReturns,id:"split-list-error-return-delaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Error",description:"An error that occurred during the operation.",defaultValue:null,dataType:null,required:!0,index:1,parent:uh},Ad={id:he.Split,type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:he.Split,description:"Splits a given list at the given index, and returns two lists, one with the values up to the index, and the other with the values after the index",inputs:[ih,nh],outputs:[ah,dh],error:ph,parent:null};var ch=(r=>(r.InputList="get-last-in-list-input-list-argument-declaration",r))(ch||{}),fh=(r=>(r.OutputElement="get-last-in-list-output-element-return-delaration",r.Error="get-last-in-list-error-return-delaration",r))(fh||{});const yh={type:n.GenericReference,id:"get-last-in-list-operation-input-list-argument-ref",entityId:"get-last-in-list-input-list-argument-declaration",version:"1",entityType:n.ValueDescriptor},hh={like:!1,inferred:!1,id:"get-last-in-list-input-list-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,asType:!1,isList:!0,parent:yh},mh={type:n.GenericReference,id:"get-last-in-list-operation-output-element-return-ref",entityId:"get-last-in-list-output-element-return-delaration",version:"1",entityType:n.ValueDescriptor},vh={like:!1,inferred:!1,id:"get-last-in-list-output-element-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:se,asType:!1,isList:!0,parent:mh},Th={type:n.GenericReference,id:"get-last-in-list-operation-input-list-argument-parent-ref",entityId:he.GetLast,version:"1",entityType:n.ActionDescriptor},Ih={id:"get-last-in-list-input-list-argument-declaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"List",description:"The list to get the last element from.",defaultValue:null,dataType:hh,parentRelationType:N.FixedArguments,required:!0,index:0,parent:Th},Eh={type:n.GenericReference,id:"get-last-in-list-operation-output-element-return-parent-ref",entityId:he.GetLast,version:"1",entityType:n.ActionDescriptor},Ah={parentRelationType:N.FixedReturns,id:"get-last-in-list-output-element-return-delaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Last element",description:"The last element of the given list.",defaultValue:null,dataType:vh,required:!0,index:0,parent:Eh},bh={type:n.GenericReference,id:"get-last-in-list-operation-error-parent-ref",entityId:he.GetLast,version:"1",entityType:n.ActionDescriptor},Rh={parentRelationType:N.FixedReturns,id:"get-last-in-list-error-return-delaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Error",description:"An error that occurred during the operation.",defaultValue:null,dataType:null,required:!0,index:1,parent:bh},bd={id:he.GetLast,type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:he.GetLast,description:"Outputs the last element of a given list.",inputs:[Ih],outputs:[Ah],error:Rh,parent:null};var Dh=(r=>(r.List="append-to-list-lsit-argument-declaration",r.ElementToAppend="append-to-list-element-to-append-argument-declaration",r))(Dh||{}),Oh=(r=>(r.ResultList="append-to-list-result-list-return-delaration",r.Error="append-to-list-error-return-delaration",r))(Oh||{});const Ph={type:n.GenericReference,id:"append-to-list-operation-lsit-argument-ref",entityId:"append-to-list-lsit-argument-declaration",version:"1",entityType:n.ValueDescriptor},wh={like:!1,inferred:!1,id:"append-to-list-lsit-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,asType:!1,isList:!0,parent:Ph},Ch={type:n.GenericReference,id:"append-to-list-operation-second-list-argument-ref",entityId:"append-to-list-element-to-append-argument-declaration",version:"1",entityType:n.ValueDescriptor},Vh={like:!1,inferred:!1,id:"append-to-list-second-list-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,asType:!1,isList:!0,parent:Ch},Bh={type:n.GenericReference,id:"append-to-list-operation-result-list-return-ref",entityId:"append-to-list-result-list-return-delaration",version:"1",entityType:n.ValueDescriptor},_h={like:!1,inferred:!1,id:"append-to-list-result-list-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:se,asType:!1,isList:!0,parent:Bh},Mh={type:n.GenericReference,id:"append-to-list-operation-lsit-argument-parent-ref",entityId:he.Append,version:"1",entityType:n.ActionDescriptor},Rd={id:"append-to-list-lsit-argument-declaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"List value",description:"The list to which the element will be appended",defaultValue:null,dataType:wh,parentRelationType:N.FixedArguments,required:!0,index:0,parent:Mh},Nh={type:n.GenericReference,id:"append-to-list-operation-second-list-argument-parent-ref",entityId:he.Append,version:"1",entityType:n.ActionDescriptor},Dd={id:"append-to-list-element-to-append-argument-declaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Element",description:"The element that will be added at the end of the list",defaultValue:null,dataType:Vh,parentRelationType:N.FixedArguments,required:!0,index:1,parent:Nh},Lh={type:n.GenericReference,id:"append-to-list-operation-result-list-return-parent-ref",entityId:he.Append,version:"1",entityType:n.ActionDescriptor},Uh={parentRelationType:N.FixedReturns,id:"append-to-list-result-list-return-delaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Result",description:"The resulting list value.",defaultValue:null,dataType:_h,required:!0,index:0,parent:Lh},gh={type:n.GenericReference,id:"append-to-list-operation-error-parent-ref",entityId:he.Append,version:"1",entityType:n.ActionDescriptor},jh={parentRelationType:N.FixedReturns,id:"append-to-list-error-return-delaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Error",description:"An error that occurred during the operation.",defaultValue:null,dataType:null,required:!0,index:1,parent:gh},za={id:he.Append,type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:he.Append,description:"Adds a given element to the end of a list value.",inputs:[Rd,Dd],error:jh,outputs:[Uh],parent:null},$h={[he.Join]:Id,[he.Split]:Ad,[he.GetLast]:bd,[he.Append]:za},xn=k[n.Operation][Ke.Parallel],Gh={id:"parallel-execution-list-of-functions-blueprint-dynamic-output-parent-ref",type:n.GenericReference,entityId:"parallel-execution-list-of-functions-blueprint-id",version:"1",entityType:n.ActionDescriptor},Fh={id:"parallel-execution-list-of-functions-blueprint-dynamic-output-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Any output value",description:"An output value of any type, to be used in the action to be executed.",defaultValue:null,dataType:null,required:!1,index:0,parent:Gh,parentRelationType:N.DynamicArgument},xh={id:"parallel-execution-list-of-functions-blueprint-dynamic-input-parent-ref",type:n.GenericReference,entityId:"parallel-execution-list-of-functions-blueprint-id",version:"1",entityType:n.ActionDescriptor},kh={id:"parallel-execution-list-of-functions-blueprint-dynamic-input-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Any input value",description:"An input value of any type, to be used in the action to be executed.",defaultValue:null,dataType:null,required:!1,index:0,parent:xh,parentRelationType:N.DynamicArgument},Sh={id:"parallel-execution-list-of-functions-blueprint-parent-ref",type:n.GenericReference,entityId:"parallel-execution-list-of-functions-argument-data-type-id",version:"1",entityType:n.DataType},Zh={id:"parallel-execution-list-of-functions-blueprint-id",type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Action to execute",description:"An action of any type, to be executed. It can contain any number of inputs and outputs.",inputs:[kh],outputs:[Fh],error:null,parent:Sh},qh={type:n.GenericReference,id:"3bd4aeb2-e3b7-4120-b289-011ebb03dba5",entityId:xn.inputs.listOfActions.id,version:"1",entityType:n.ValueDescriptor},Jh={like:!1,inferred:!1,id:"parallel-execution-list-of-functions-argument-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Zh,asType:!1,isList:!0,parent:qh},Wh={type:n.GenericReference,id:"da5e9fe9-f18a-49e3-98e5-c1bf7b9b3153",entityId:xn.outputs.results.id,version:"1",entityType:n.ValueDescriptor},zh={like:!1,inferred:!1,id:xn.outputs.results.dataType.id,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,asType:!1,isList:!0,parent:Wh},Yh={type:n.GenericReference,id:"a6c14305-d4f7-43ae-9d5e-b7dbacdc830a",entityId:Ke.Parallel,version:"1",entityType:n.ActionDescriptor},Od={id:xn.inputs.listOfActions.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Actions to execute",description:"A value, of a list of actions to be executed in parallel",dataType:Jh,defaultValue:null,required:!0,index:0,parent:Yh,parentRelationType:N.FixedArguments},Hh={type:n.GenericReference,id:"caac2bc7-c23c-4f01-9581-a515c2e4637f",entityId:Ke.Parallel,version:"1",entityType:n.ActionDescriptor},Pd={id:xn.outputs.results.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"List of execution results",description:"Each execution result, in the same order as the input list of actions. One item on this list for each executed action.",dataType:zh,defaultValue:null,required:!0,index:0,parent:Hh,parentRelationType:N.FixedReturns},Kh={type:n.GenericReference,id:"parallel-execution-operation-error-parent-ref",entityId:Ke.Parallel,version:"1",entityType:n.ActionDescriptor},Xh={id:xn.outputs.error.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Error",description:"An error that occurred during the operation.",defaultValue:null,dataType:null,required:!0,index:1,parent:Kh,parentRelationType:N.ReturnedError},Oi={id:Ke.Parallel,type:n.ActionDescriptor,description:"Execute a list of actions in parallel",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:Ke.Parallel,inputs:[Od],outputs:[Pd],error:Xh,parent:null};var Qh=(r=>(r.MillisecondsNumber="wait-milliseconds-number-argument-declaration",r))(Qh||{}),em=(r=>(r.Error="wait-operation-error-return-delaration",r))(em||{});const tm={type:n.GenericReference,id:"3bd4aeb2-e3b7-4120-b289-011ebb03dba5",version:"1",entityType:n.ValueDescriptor,entityId:"wait-milliseconds-number-argument-declaration"},im={like:!1,inferred:!1,id:"wait-milliseconds-number-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,isList:!1,asType:!1,parent:tm},rm={type:n.GenericReference,id:"a6c14305-d4f7-43ae-9d5e-b7dbacdc830a",version:"1",entityType:n.ActionDescriptor,entityId:Ke.Wait},en={id:"wait-milliseconds-number-argument-declaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Milliseconds to wait",description:"The amount of milliseconds to wait before calling the next entity",defaultValue:null,dataType:im,required:!0,index:0,parent:rm,parentRelationType:N.FixedArguments},nm={type:n.GenericReference,id:"wait-operation-error-parent-ref",entityId:Ke.Wait,version:"1",entityType:n.ActionDescriptor},sm={id:"wait-operation-error-return-delaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Error",description:"An error that occurred during the operation.",defaultValue:null,dataType:null,required:!0,index:1,parent:nm,parentRelationType:N.ReturnedError},Zt={id:Ke.Wait,type:n.ActionDescriptor,description:"Wait for the given amount of milliseconds before calling the next entity",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:Ke.Wait,inputs:[en],outputs:[],error:sm,parent:null};var am=(r=>(r.ListOfFunctions="sequential-execution-list-of-functions-argument-declaration",r))(am||{}),om=(r=>(r.ListOfExecutionResults="sequential-execution-result-return-delaration",r.Error="sequential-execution-error-return-delaration",r))(om||{});const lm={id:"sequential-execution-list-of-functions-blueprint-dynamic-output-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Any output value",description:"An output value of any type, to be used in the action to be executed.",defaultValue:null,dataType:null,required:!1,index:0,parent:null,parentRelationType:N.DynamicArgument},dm={id:"sequential-execution-list-of-functions-blueprint-dynamic-input-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Any input value",description:"An input value of any type, to be used in the action to be executed.",defaultValue:null,dataType:null,required:!1,index:0,parent:null,parentRelationType:N.DynamicArgument},um={id:"sequential-execution-list-of-functions-blueprint-id",type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Action to execute",description:"An action of any type, to be executed. It can contain any number of inputs and outputs.",inputs:[dm],outputs:[lm],error:null,parent:null},pm={type:n.GenericReference,id:"parallel-execution-list-of-functions-argument-declaration-id",entityId:"sequential-execution-list-of-functions-argument-declaration",version:"1",entityType:n.ValueDescriptor},cm={like:!1,inferred:!1,id:"sequential-execution-list-of-functions-argument-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:um,asType:!1,isList:!0,parent:pm},fm={type:n.GenericReference,id:"sequential-execution-list-of-execution-results-return-declaration-id",entityId:"sequential-execution-result-return-delaration",version:"1",entityType:n.ValueDescriptor},ym={like:!1,inferred:!1,id:"sequential-execution-list-of-execution-results-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,asType:!1,isList:!0,parent:fm},hm={type:n.GenericReference,id:"parallel-execution-operation-list-of-functions-argument-parent-ref",entityId:Ke.Sequential,version:"1",entityType:n.ActionDescriptor},wd={id:"sequential-execution-list-of-functions-argument-declaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Actions to execute",description:"A value, of a list of actions to be executed in parallel",defaultValue:null,dataType:cm,required:!0,index:0,parent:hm,parentRelationType:N.FixedArguments},mm={type:n.GenericReference,id:"parallel-execution-operation-list-of-execution-results-return-parent-ref",entityId:Ke.Sequential,version:"1",entityType:n.ActionDescriptor},Cd={id:"sequential-execution-result-return-delaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"List of execution results",description:"Each execution result, in the same order as the input list of actions. One item on this list for each executed action.",defaultValue:null,dataType:ym,required:!0,index:0,parent:mm,parentRelationType:N.FixedReturns},vm={type:n.GenericReference,id:"sequential-execution-operation-error-parent-ref",entityId:Ke.Sequential,version:"1",entityType:n.ActionDescriptor},Tm={id:"sequential-execution-error-return-delaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Error",description:"An error that occurred during the operation.",defaultValue:null,dataType:null,required:!0,index:1,parent:vm,parentRelationType:N.ReturnedError},nr={id:Ke.Sequential,type:n.ActionDescriptor,description:"Execute a list of actions one after the other",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:Ke.Sequential,inputs:[wd],outputs:[Cd],error:Tm,parent:null},Im={[Ke.Parallel]:Oi,[Ke.Wait]:Zt,[Ke.Sequential]:nr};var Em=(r=>(r.EntityToInstanciate="entity-to-instanciate-argument-declaration",r.NewEntityData="new-entity-data-argument-declaration",r))(Em||{}),Am=(r=>(r.Error="create-new-instance-error-return-delaration",r))(Am||{});const bm={type:n.GenericReference,id:"new-entity-data-argument-declaration-parent-ref",entityId:Xe.CreateNewInstance,version:"1",entityType:n.ActionDescriptor},Rm={type:n.GenericReference,id:"new-entity-data-argument-data-type-parent-ref",entityId:"new-entity-data-argument-declaration",version:"1",entityType:n.ValueDescriptor},Dm={like:!1,inferred:!1,id:"new-entity-data-argument-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,isList:!1,asType:!1,parent:Rm},Om={id:"new-entity-data-argument-declaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Data for new entity",description:"The data to be used to create the new entity, with all the required properties",dataType:Dm,required:!0,defaultValue:null,parentRelationType:N.FixedArguments,index:1,parent:bm},Pm={type:n.GenericReference,id:"entity-to-instanciate-argument-declaration-ref",version:"1",entityType:n.ValueDescriptor,entityId:"entity-to-instanciate-argument-declaration"},wm={like:!1,inferred:!1,id:"entity-to-instanciate-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,isList:!1,asType:!0,parent:Pm},Cm={type:n.GenericReference,id:"create-new-instance-operation-ref",version:"1",entityType:n.ActionDescriptor,entityId:Xe.CreateNewInstance},Vm={id:"entity-to-instanciate-argument-declaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Entity to create a new copy of",description:"The entity of which a new copy will to be created",defaultValue:null,dataType:wm,required:!0,parentRelationType:N.FixedArguments,index:0,parent:Cm},Bm={type:n.GenericReference,id:"create-new-instance-output-entity-declaration-parent-ref",entityId:Xe.CreateNewInstance,version:"1",entityType:n.ActionDescriptor},_m={parentRelationType:N.FixedReturns,id:"create-new-instance-output-entity-declaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Created entity",description:"The entity that was created",defaultValue:null,dataType:null,parent:Bm,required:!0,index:0},Mm={type:n.GenericReference,id:"create-new-instance-error-parent-ref",entityId:Xe.CreateNewInstance,version:"1",entityType:n.ActionDescriptor},Nm={parentRelationType:N.FixedReturns,id:"create-new-instance-error-return-delaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Error",description:"An error that occurred during the operation.",defaultValue:null,dataType:null,required:!0,index:1,parent:Mm},tn={id:Xe.CreateNewInstance,type:n.ActionDescriptor,description:"Creates a new copy of a given entity, with the given values for each property, or default values if a value is not provided",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:Xe.CreateNewInstance,inputs:[Vm,Om],outputs:[_m],error:Nm,parent:null},kn=k[n.Operation][Xe.Validate],Lm={type:n.GenericReference,id:"validate-data-operation-data-to-validate-argument-declaration-ref",version:"1",entityType:n.ValueDescriptor,entityId:kn.inputs.dataToValidate.id},Um={like:!1,inferred:!1,id:"validate-data-operation-data-to-validate-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,isList:!1,asType:!1,parent:Lm},gm={type:n.GenericReference,id:"validate-data-operation-data-to-validate-argument-parent-ref",version:"1",entityType:n.ActionDescriptor,entityId:Xe.Validate},jm={id:kn.inputs.dataToValidate.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Data to validate",description:"The value to validate against the given entity type",defaultValue:null,dataType:Um,required:!0,parentRelationType:N.FixedArguments,index:0,parent:gm},$m={type:n.GenericReference,id:"validate-data-operation-entity-to-match-type-argument-declaration-ref",version:"1",entityType:n.ValueDescriptor,entityId:kn.inputs.entityToMatch.id},Gm={like:!1,inferred:!1,id:"validate-data-operation-entity-to-match-type-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,isList:!1,asType:!0,parent:$m},Fm={type:n.GenericReference,id:"validate-data-operation-entity-to-match-type-argument-parent-ref",version:"1",entityType:n.ActionDescriptor,entityId:Xe.Validate},xm={id:kn.inputs.entityToMatch.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Entity to match",description:"The entity to match the data against",dataType:Gm,defaultValue:null,required:!0,index:0,parentRelationType:N.FixedArguments,parent:Fm},km={type:n.GenericReference,id:"validate-data-operation-output-entity-declaration-parent-ref",entityId:Xe.Validate,version:"1",entityType:n.ActionDescriptor},Sm={id:kn.outputs.outputEntity.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,dataType:null,name:"Output value",description:"A value with the type of the entity that was validated",defaultValue:null,parent:km,required:!0,index:0,parentRelationType:N.FixedReturns},Zm={type:n.GenericReference,id:"wait-operation-error-parent-ref",entityId:Xe.Validate,version:"1",entityType:n.ActionDescriptor},qm={id:kn.outputs.error.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Error",description:"An error that occurred during the operation.",dataType:null,defaultValue:null,required:!0,index:1,parent:Zm,parentRelationType:N.ReturnedError},rn={id:Xe.Validate,type:n.ActionDescriptor,description:"Validates the given data to see if it matches the structure of a given type/entity",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:Xe.Validate,inputs:[xm,jm],outputs:[Sm],error:qm,parent:null},Jm={[Xe.CreateNewInstance]:tn,[Xe.Validate]:rn},Et=k[n.Operation]["base-http-request"],Wm={type:n.GenericReference,id:"d87cf943-57e1-4d19-9f05-190fa8c8ebc4",version:"1",entityType:n.ValueDescriptor,entityId:Et.inputs.url.id},zm={id:"http-request-url-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:"https://some-url.com",name:L.String,valueAsTypeSingle:null,valueAsTypeList:null,parent:Wm,autogeneration:null},Ym={type:n.GenericReference,id:"aed50d73-eab5-42ce-b00e-7f5c45a9026f",entityId:Et.inputs.url.id,version:"1",entityType:n.ValueDescriptor},Hm={like:!1,inferred:!1,id:"0deb4ef7-d739-4ddc-a4d6-50bd6fababe3",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:se,asType:!1,isList:!1,parent:Ym},Km={type:n.GenericReference,id:"c3145af6-3387-464a-8887-272e483c856d",entityId:Et.inputs.query.id,version:"1",entityType:n.ValueDescriptor},Xm={like:!1,inferred:!1,id:"2a5ba737-6335-4cc4-a2c0-16dca4052fac",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:se,asType:!1,isList:!1,parent:Km},Qm={type:n.GenericReference,id:"075556b7-e468-48f7-8485-7159eaf389b2",version:"1",entityType:n.ValueDescriptor,entityId:Et.inputs.method.id},e0={id:"http-request-method-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:"GET",name:L.Enum,valueAsTypeSingle:null,valueAsTypeList:null,parent:Qm,autogeneration:null},t0={type:n.GenericReference,id:"aed647c8-a1b5-4cfc-9a3d-97887a567a80",entityId:Et.inputs.method.id,version:"1",entityType:n.ValueDescriptor},i0={like:!1,inferred:!1,id:"6df7ec2b-5dbd-44af-896b-17b314e88560",type:n.DataType,parentRelationType:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:tr,isList:!1,asType:!1,options:["GET","POST","PUT","DELETE","PATCH","OPTIONS","HEAD","TRACE","CONNECT","CUSTOM"],parent:t0},r0={type:n.GenericReference,id:"77203dfa-d2f6-4804-9556-e1cce46228f3",entityId:Et.inputs.headers.id,version:"1",entityType:n.ValueDescriptor},n0={like:!1,inferred:!1,id:"2c8a2a07-69c6-40ad-b5c9-f0dc4d5955ce",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Ot,asType:!1,isList:!1,parent:r0},s0={type:n.GenericReference,id:"03db68a0-7ab6-4c6a-85b6-f4b95ebb53ff",entityId:Et.inputs.body.id,version:"1",entityType:n.ValueDescriptor},a0={like:!1,inferred:!1,id:"0397876c-ed54-4ee9-85a4-04fd16dad973",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Ot,asType:!1,isList:!1,parent:s0},o0={type:n.GenericReference,id:"182f767f-50e8-4394-ba5f-43e78c232733",version:"1",entityType:n.ValueDescriptor,entityId:Et.outputs.code.id},l0={like:!1,inferred:!1,id:"45e6d0bc-0c0e-4059-a7a1-6bee925d73d0",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,asType:!1,isList:!1,parent:o0},d0={type:n.GenericReference,id:"2baaa53a-9aef-4bd1-b06d-967c17b7b627",version:"1",entityType:n.ValueDescriptor,entityId:Et.outputs.headers.id},u0={type:n.GenericReference,id:"69f34d6c-c686-4165-b6ff-70dae8e1778b",version:"1",entityType:n.ValueDescriptor,entityId:Et.outputs.headers.id},p0={like:!1,inferred:!1,id:"dac63bfa-640d-4f4e-ba0f-86c2401bcfbe",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Ot,isList:!1,asType:!1,parent:u0},c0={type:n.GenericReference,id:"744334e0-5135-4214-85d0-809437cb620b",version:"1",entityType:n.ValueDescriptor,entityId:Et.outputs.body.id},f0={type:n.GenericReference,id:"0e0e20df-1a46-432c-ba01-fd96508a6a61",version:"1",entityType:n.ValueDescriptor,entityId:Et.outputs.body.id},y0={like:!1,inferred:!1,id:"05fc1a5d-151a-479a-9c4e-4063f3456177",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Ot,isList:!1,asType:!1,parent:f0},h0={type:n.GenericReference,id:"26911792-f707-4bf1-b6f7-03d04a84232c",version:"1",entityType:n.ActionDescriptor,entityId:_t.HttpRequest},Ya={id:Et.inputs.method.id,type:n.ValueDescriptor,description:"A single word that represents the type of request you want to make. For example: GET, POST, PUT, DELETE, PATCH, OPTIONS, HEAD, TRACE, CONNECT, CUSTOM",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Method",defaultValue:e0,dataType:i0,required:!1,index:0,parentRelationType:N.FixedArguments,parent:h0},m0={type:n.GenericReference,id:"eee0c501-0ae6-4448-b914-aada76d63163",version:"1",entityType:n.ActionDescriptor,entityId:_t.HttpRequest},Ha={id:Et.inputs.url.id,type:n.ValueDescriptor,description:"The base domain, or address where the request is being sent to. For example: https://some-url.com",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"URL",dataType:Hm,defaultValue:zm,required:!1,index:1,parentRelationType:N.FixedArguments,parent:m0},v0={type:n.GenericReference,id:"670091a4-21b1-4223-ad4c-b6dada0aec49",version:"1",entityType:n.ActionDescriptor,entityId:_t.HttpRequest},Vd={id:Et.inputs.query.id,type:n.ValueDescriptor,description:"A text with standarized format, without spaces that is added at the end of the URL path, after the ? character. It contains data that might be used to process the request. For example: /api/users?name=John&age=30",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Query Params",defaultValue:null,dataType:Xm,required:!1,index:2,parentRelationType:N.FixedArguments,parent:v0},T0={type:n.GenericReference,id:"85aad3eb-22fe-45f9-b68c-1dc7061f41e0",version:"1",entityType:n.ActionDescriptor,entityId:_t.HttpRequest},Ka={id:Et.inputs.headers.id,type:n.ValueDescriptor,description:"A set of any properties, with names and values that represent metadata about the request, such as the server, date, content type, and more, that you want to send alongside your request data.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Headers",defaultValue:null,dataType:n0,required:!1,index:3,parent:T0,parentRelationType:N.FixedArguments},I0={type:n.GenericReference,id:"c3e2a4af-9b84-4574-8b30-5044ffc51776",version:"1",entityType:n.ActionDescriptor,entityId:_t.HttpRequest},Xa={id:Et.inputs.body.id,type:n.ValueDescriptor,description:"The main data payload of the request. This is the data that you want to send to the server. It could be anything, but it is usually a KeyValue data structure or a text value.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Body",dataType:a0,defaultValue:null,required:!1,index:4,parentRelationType:N.FixedArguments,parent:I0},E0={type:n.GenericReference,id:"92e04dc7-2145-4a31-908e-03810f7235e8",version:"1",entityType:n.ActionDescriptor,entityId:_t.HttpRequest},Qa={id:Et.outputs.code.id,type:n.ValueDescriptor,description:'A standardized status code of the response. It is a 3-digit number that represents the response status. For example, 200 means "OK", 404 means "Not Found", and 500 means "Internal Server Error".',version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Code",defaultValue:null,dataType:l0,required:!0,index:0,parentRelationType:N.FixedReturns,parent:E0},A0={type:n.GenericReference,id:"86aca556-bbf1-4679-9909-31db61b288e2",version:"1",entityType:n.ActionDescriptor,entityId:_t.HttpRequest},eo={parentRelationType:N.FixedReturns,id:Et.outputs.headers.id,type:n.ValueDescriptor,description:"A set of any properties, with names and value that the server sent back to you. It represents metadata about the response, such as the server, date, content type, and more.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Headers",defaultValue:{id:"http-response-headers-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:{},name:L.KeyValue,parent:d0,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null},dataType:p0,required:!0,index:1,parent:A0},b0={type:n.GenericReference,id:"ccf3d1be-04e4-4d03-99fd-5bc1e1919f90",version:"1",entityType:n.ActionDescriptor,entityId:_t.HttpRequest},to={id:Et.outputs.body.id,type:n.ValueDescriptor,description:"The main data payload of the response. This is the data that the server sent back to you. It could be anything, but it is usually a KeyValue data structure or a text value.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Body",parentRelationType:N.FixedReturns,dataType:y0,defaultValue:{id:"http-response-body-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:{},name:L.KeyValue,parent:c0,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null},required:!0,index:2,parent:b0},R0={type:n.GenericReference,id:"21487ffc-82b9-473d-bc19-6e7d7c480ed7",version:"1",entityType:n.ActionDescriptor,entityId:_t.HttpRequest},D0={type:n.GenericReference,id:"ad69861b-32f7-4461-b7f7-aa84a82578d9",version:"1",entityType:n.ValueDescriptor,entityId:Et.outputs.error.id},O0={like:!1,inferred:!1,id:"5da68b15-57bc-40c1-b79f-a9075e0f22c1",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Ot,isList:!1,asType:!1,parent:D0},Bd={parentRelationType:N.ReturnedError,id:Et.outputs.error.id,type:n.ValueDescriptor,description:"Http request error, if any. Contains a payload describing what went wrong.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Error",defaultValue:null,dataType:O0,required:!0,index:0,parent:R0},Bs={type:n.ActionDescriptor,id:_t.HttpRequest,name:_t.HttpRequest,description:"Make an HTTP request, out to the internet, to a given URL with the specified method, query parameters, headers, and body.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,inputs:[Ya,Ha,Vd,Ka,Xa],outputs:[Qa,eo,to],error:Bd,parent:null},P0={[_t.HttpRequest]:Bs},w0={..._y,...Jf,...$h,...Im,...Jm,...P0},C0=Object.values(w0),Ew=k[n.Loop]["manual-flow-loop"],V0={id:"manual-flow-loop-dynamic-return-declaration-parent-ref-id",type:n.GenericReference,entityId:Q.ManualFlow,version:"1",entityType:n.ActionDescriptor},B0={id:Ew.outputs.results.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Ouput value",description:"An output value of the loop",defaultValue:null,required:!1,dataType:null,index:0,parent:V0,parentRelationType:N.DynamicReturn},io={id:Q.ManualFlow,type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:Q.ManualFlow,description:"A loop that is manually controlled by the continue and break statements. It runs until the break statement is called, and it can skip to the next iteration with the continue statement.",inputs:[],outputs:[B0],error:null,parent:null},_s=k[n.Loop]["manual-flow-loop"],_0={id:"manual-flow-loop-current-iteration-number-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"manual-flow-loop-current-iteration-number-declaration-id",version:"1",entityType:n.ValueDescriptor},M0={like:!1,inferred:!1,id:"manual-flow-loop-current-iteration-number-declaration-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,entity:ve,asType:!1,parent:_0},N0={id:"manual-flow-loop-current-iteration-number-declaration-parent-ref-id",type:n.GenericReference,entityId:_s.body.id,version:"1",entityType:n.ActionDescriptor},_d={id:_s.body.inputs.iterationNumber.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Current iteration number",description:"The number of the current iteration of the manual flow loop. Keeps track of the number of iterations that have been executed.",defaultValue:null,dataType:M0,required:!0,index:0,parentRelationType:N.FixedArguments,parent:N0},L0={id:"manual-flow-loop-body-any-dynamic-argument-parent-ref-id",type:n.GenericReference,entityId:_s.body.id,version:"1",entityType:n.ActionDescriptor},U0={id:"manual-flow-loop-body-any-dynamic-argument-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Any value",description:"Values inputed to the loop's body as an aggregation of the respective values outputed.",defaultValue:null,dataType:null,required:!1,index:1,parentRelationType:N.DynamicArgument,parent:L0},g0={id:"manual-flow-loop-body-any-dynamic-return-parent-ref-id",type:n.GenericReference,entityId:_s.body.id,version:"1",entityType:n.ActionDescriptor},j0={id:"manual-flow-loop-body-any-dynamic-return-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Any value",description:"Values outputed by the loop's body.",defaultValue:null,dataType:null,required:!1,index:0,parentRelationType:N.DynamicReturn,parent:g0},ro={id:_s.body.id,type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Iteration logic trigger",description:"Describes the body of the manual flow loop.",inputs:[_d,U0],outputs:[j0],error:null,parent:null},$0=k[n.Loop]["string-loop"],G0={id:"iterate-over-string-loop-string-argument-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"iterate-over-string-loop-string-argument-declaration-id",version:"1",entityType:n.ValueDescriptor},F0={like:!1,inferred:!1,id:"iterate-over-string-loop-string-argument-declaration-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,entity:se,asType:!1,parent:G0},x0={id:"iterate-over-string-loop-string-argument-declaration-parent-ref-id",type:n.GenericReference,entityId:Q.String,version:"1",entityType:n.ActionDescriptor},k0={id:$0.inputs.string.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Texts",description:"The text to iterate over the characters of",defaultValue:null,required:!0,dataType:F0,index:0,parent:x0,parentRelationType:N.FixedArguments},S0={id:"iterate-over-string-loop-dynamic-return-declaration-parent-ref-id",type:n.GenericReference,entityId:Q.String,version:"1",entityType:n.ActionDescriptor},Z0={id:$0.outputs.results.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Ouput value",description:"An output value of the loop",defaultValue:null,required:!1,dataType:null,index:0,parent:S0,parentRelationType:N.DynamicReturn},Ms={id:Q.String,type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:Q.String,description:"Iterates over a string of entities",inputs:[k0],outputs:[Z0],error:null,parent:null},nn=k[n.Loop]["string-loop"],q0={id:"iterate-over-string-loop-body-current-value-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"iterate-over-string-loop-body-current-value-declaration-id",version:"1",entityType:n.ValueDescriptor},J0={like:!1,inferred:!1,id:"iterate-over-string-loop-body-current-value-declaration-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,entity:se,asType:!1,parent:q0},W0={id:"iterate-over-string-loop-body-current-value-declaration-parent-ref-id",type:n.GenericReference,entityId:nn.body.id,version:"1",entityType:n.ActionDescriptor},Md={id:nn.body.inputs.currentValue.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Current value",description:"The current value in the string that is being iterated over. This value is passed to the child actions.",defaultValue:null,dataType:J0,required:!0,index:1,parentRelationType:N.FixedArguments,parent:W0},z0={id:"iterate-over-string-loop-body-current-iteration-number-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"iterate-over-string-loop-body-current-iteration-number-declaration-id",version:"1",entityType:n.ValueDescriptor},Y0={like:!1,inferred:!1,id:"iterate-over-string-loop-body-current-iteration-number-declaration-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,entity:ve,asType:!1,parent:z0},H0={id:"iterate-over-string-loop-body-current-iteration-number-declaration-parent-ref-id",type:n.GenericReference,entityId:nn.body.id,version:"1",entityType:n.ActionDescriptor},Nd={id:nn.body.inputs.iterationNumber.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Current iteration number",description:"The number of the current iteration of the string loop. Keeps track of the number of iterations that have been executed.",defaultValue:null,dataType:Y0,required:!0,index:0,parentRelationType:N.FixedArguments,parent:H0},K0={id:"iterate-over-string-loop-body-any-dynamic-argument-parent-ref-id",type:n.GenericReference,entityId:nn.body.id,version:"1",entityType:n.ActionDescriptor},X0={id:"iterate-over-string-loop-body-any-dynamic-argument-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Any value",description:"Values inputed to the loop's body as an aggregation of the respective values outputed.",defaultValue:null,dataType:null,required:!1,index:2,parentRelationType:N.DynamicArgument,parent:K0},Q0={id:"iterate-over-string-loop-body-any-dynamic-return-parent-ref-id",type:n.GenericReference,entityId:nn.body.id,version:"1",entityType:n.ActionDescriptor},ev={id:"iterate-over-string-loop-body-any-dynamic-return-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Any value",description:"Values outputed by the loop's body.",defaultValue:null,dataType:null,required:!1,index:0,parentRelationType:N.DynamicReturn,parent:Q0},no={id:nn.body.id,type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Iteration logic trigger",description:"Describes the body of the string loop.",inputs:[Nd,Md,X0],outputs:[ev],error:null,parent:null},tv=k[n.Loop]["list-loop"],iv={id:"iterate-over-list-loop-list-argument-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"iterate-over-list-loop-list-argument-declaration-id",version:"1",entityType:n.ValueDescriptor},rv={like:!1,inferred:!1,id:"iterate-over-list-loop-list-argument-declaration-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!0,entity:null,asType:!1,parent:iv},nv={id:"iterate-over-list-loop-list-argument-declaration-parent-ref-id",type:n.GenericReference,entityId:Q.List,version:"1",entityType:n.ActionDescriptor},sv={id:tv.inputs.list.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"List",description:"The list to iterate over",required:!0,defaultValue:null,dataType:rv,index:0,parent:nv,parentRelationType:N.FixedArguments},av={id:"iterate-over-list-loop-dynamic-return-declaration-parent-ref-id",type:n.GenericReference,entityId:Q.List,version:"1",entityType:n.ActionDescriptor},ov={id:tv.outputs.results.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Ouput value",description:"An output value of the loop",required:!1,defaultValue:null,dataType:null,index:0,parent:av,parentRelationType:N.DynamicReturn},Er={id:Q.List,type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:Q.List,description:"Iterates over a list of entities",inputs:[sv],outputs:[ov],error:null,parent:null},sn=k[n.Loop]["list-loop"],lv={id:"iterate-over-list-loop-body-current-value-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"iterate-over-list-loop-body-current-value-declaration-id",version:"1",entityType:n.ValueDescriptor},dv={like:!1,inferred:!1,id:"iterate-over-list-loop-body-current-value-declaration-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,entity:null,asType:!1,parent:lv},uv={id:"iterate-over-list-loop-body-current-value-declaration-parent-ref-id",type:n.GenericReference,entityId:sn.body.id,version:"1",entityType:n.ActionDescriptor},so={id:sn.body.inputs.currentValue.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Current value",description:"The current value in the list that is being iterated over. This value is passed to the child actions.",defaultValue:null,dataType:dv,required:!0,index:1,parentRelationType:N.FixedArguments,parent:uv},pv={id:"iterate-over-list-loop-body-current-iteration-number-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"iterate-over-list-loop-body-current-iteration-number-declaration-id",version:"1",entityType:n.ValueDescriptor},cv={like:!1,inferred:!1,id:"iterate-over-list-loop-body-current-iteration-number-declaration-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,entity:ve,asType:!1,parent:pv},fv={id:"iterate-over-list-loop-body-current-iteration-number-declaration-parent-ref-id",type:n.GenericReference,entityId:sn.body.id,version:"1",entityType:n.ActionDescriptor},yv={id:sn.body.inputs.iterationNumber.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Current iteration number",description:"The number of the current iteration of the list loop. Keeps track of the number of iterations that have been executed.",defaultValue:null,dataType:cv,required:!0,index:0,parentRelationType:N.FixedArguments,parent:fv},hv={id:"iterate-over-list-loop-body-any-dynamic-argument-parent-ref-id",type:n.GenericReference,entityId:sn.body.id,version:"1",entityType:n.ActionDescriptor},mv={id:"iterate-over-list-loop-body-any-dynamic-argument-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Any value",description:"Values inputed to the loop's body as an aggregation of the respective values outputed.",defaultValue:null,dataType:null,required:!1,index:2,parentRelationType:N.DynamicArgument,parent:hv},vv={id:"iterate-over-list-loop-body-any-dynamic-return-parent-ref-id",type:n.GenericReference,entityId:sn.body.id,version:"1",entityType:n.ActionDescriptor},Tv={id:"iterate-over-list-loop-body-any-dynamic-return-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Any value",description:"Values outputed by the loop's body.",defaultValue:null,dataType:null,required:!1,index:0,parentRelationType:N.DynamicReturn,parent:vv},Ns={id:sn.body.id,type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Iteration logic trigger",description:"Describes the body of the list loop.",inputs:[yv,so,mv],outputs:[Tv],error:null,parent:null},Iv=k[n.Loop]["object-keys-loop"],Ev={id:"iterate-over-object-keys-loop-object-argument-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"iterate-over-object-keys-loop-object-argument-declaration-id",version:"1",entityType:n.ValueDescriptor},Av={like:!1,inferred:!1,id:"iterate-over-object-keys-loop-object-argument-declaration-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,entity:Ot,asType:!1,parent:Ev},bv={id:"iterate-over-object-keys-loop-object-argument-declaration-parent-ref-id",type:n.GenericReference,entityId:Q.ObjectKeys,version:"1",entityType:n.ActionDescriptor},Rv={id:Iv.inputs.object.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Object",description:"The object to iterate over",required:!0,defaultValue:null,dataType:Av,index:0,parent:bv,parentRelationType:N.FixedArguments},Dv={id:"iterate-over-object-keys-loop-dynamic-return-declaration-parent-ref-id",type:n.GenericReference,entityId:Q.ObjectKeys,version:"1",entityType:n.ActionDescriptor},Ov={id:Iv.outputs.results.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Ouput value",description:"An output value of the loop",defaultValue:null,required:!1,dataType:null,index:0,parent:Dv,parentRelationType:N.DynamicReturn},Sn={id:Q.ObjectKeys,type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:Q.ObjectKeys,description:"Iterates over a object of entities",inputs:[Rv],outputs:[Ov],error:null,parent:null},an=k[n.Loop]["object-keys-loop"],Pv={id:"iterate-over-object-keys-loop-body-current-value-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"iterate-over-object-keys-loop-body-current-value-declaration-id",version:"1",entityType:n.ValueDescriptor},wv={like:!1,inferred:!1,id:"iterate-over-object-keys-loop-body-current-value-declaration-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,entity:se,asType:!1,parent:Pv},Cv={id:"iterate-over-object-keys-loop-body-current-value-declaration-parent-ref-id",type:n.GenericReference,entityId:an.body.id,version:"1",entityType:n.ActionDescriptor},Ld={id:an.body.inputs.currentValue.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Current value",description:"The current value in the object-keys that is being iterated over. This value is passed to the child actions.",defaultValue:null,dataType:wv,required:!0,index:1,parentRelationType:N.FixedArguments,parent:Cv},Vv={id:"iterate-over-object-keys-loop-body-current-iteration-number-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"iterate-over-object-keys-loop-body-current-iteration-number-declaration-id",version:"1",entityType:n.ValueDescriptor},Bv={like:!1,inferred:!1,id:"iterate-over-object-keys-loop-body-current-iteration-number-declaration-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,entity:ve,asType:!1,parent:Vv},_v={id:"iterate-over-object-keys-loop-body-current-iteration-number-declaration-parent-ref-id",type:n.GenericReference,entityId:an.body.id,version:"1",entityType:n.ActionDescriptor},Mv={id:an.body.inputs.iterationNumber.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Current iteration number",description:"The number of the current iteration of the object-keys loop. Keeps track of the number of iterations that have been executed.",defaultValue:null,dataType:Bv,required:!0,index:0,parentRelationType:N.FixedArguments,parent:_v},Nv={id:"iterate-over-object-keys-loop-body-any-dynamic-argument-parent-ref-id",type:n.GenericReference,entityId:an.body.id,version:"1",entityType:n.ActionDescriptor},Lv={id:"iterate-over-object-keys-loop-body-any-dynamic-argument-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Any value",description:"Values inputed to the loop's body as an aggregation of the respective values outputed.",defaultValue:null,dataType:null,required:!1,index:2,parentRelationType:N.DynamicArgument,parent:Nv},Uv={id:"iterate-over-object-keys-loop-body-any-dynamic-return-parent-ref-id",type:n.GenericReference,entityId:an.body.id,version:"1",entityType:n.ActionDescriptor},gv={id:"iterate-over-object-keys-loop-body-any-dynamic-return-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Any value",description:"Values outputed by the loop's body.",defaultValue:null,dataType:null,required:!1,index:0,parentRelationType:N.DynamicReturn,parent:Uv},Ud={id:an.body.id,type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Iteration logic trigger",description:"Describes the body of the object-keys loop.",inputs:[Mv,Ld,Lv],outputs:[gv],error:null,parent:null},jv=k[n.Loop]["object-values-loop"],$v={id:"iterate-over-object-values-loop-object-argument-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"iterate-over-object-values-loop-object-argument-declaration-id",version:"1",entityType:n.ValueDescriptor},Gv={like:!1,inferred:!1,id:"iterate-over-object-values-loop-object-argument-declaration-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,entity:Ot,asType:!1,parent:$v},Fv={id:"iterate-over-object-values-loop-object-argument-declaration-parent-ref-id",type:n.GenericReference,entityId:Q.ObjectValues,version:"1",entityType:n.ActionDescriptor},xv={id:jv.inputs.object.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Object",description:"The object to iterate over",required:!0,defaultValue:null,dataType:Gv,index:0,parent:Fv,parentRelationType:N.FixedArguments},kv={id:"iterate-over-object-values-loop-dynamic-return-declaration-parent-ref-id",type:n.GenericReference,entityId:Q.ObjectValues,version:"1",entityType:n.ActionDescriptor},Sv={id:jv.outputs.results.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Ouput value",description:"An output value of the loop",defaultValue:null,required:!1,dataType:null,index:0,parent:kv,parentRelationType:N.DynamicReturn},Zn={id:Q.ObjectValues,type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:Q.ObjectValues,description:"Iterates over a object of entities",inputs:[xv],outputs:[Sv],error:null,parent:null},on=k[n.Loop]["object-values-loop"],Zv={id:"iterate-over-object-values-loop-body-current-value-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"iterate-over-object-values-loop-body-current-value-declaration-id",version:"1",entityType:n.ValueDescriptor},qv={id:"iterate-over-object-values-loop-body-current-value-declaration-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:null,entity:null,asType:null,like:!1,inferred:!1,parent:Zv},Jv={id:"iterate-over-object-values-loop-body-current-value-declaration-parent-ref-id",type:n.GenericReference,entityId:on.body.id,version:"1",entityType:n.ActionDescriptor},gd={id:on.body.inputs.currentValue.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Current value",description:"The current value in the object-values that is being iterated over. This value is passed to the child actions.",defaultValue:null,dataType:qv,required:!0,index:1,parentRelationType:N.FixedArguments,parent:Jv},Wv={id:"iterate-over-object-values-loop-body-current-iteration-number-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"iterate-over-object-values-loop-body-current-iteration-number-declaration-id",version:"1",entityType:n.ValueDescriptor},zv={like:!1,inferred:!1,id:"iterate-over-object-values-loop-body-current-iteration-number-declaration-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,entity:ve,asType:!1,parent:Wv},Yv={id:"iterate-over-object-values-loop-body-current-iteration-number-declaration-parent-ref-id",type:n.GenericReference,entityId:on.body.id,version:"1",entityType:n.ActionDescriptor},Hv={id:on.body.inputs.iterationNumber.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Current iteration number",description:"The number of the current iteration of the object-values loop. Keeps track of the number of iterations that have been executed.",defaultValue:null,dataType:zv,required:!0,index:0,parentRelationType:N.FixedArguments,parent:Yv},Kv={id:"iterate-over-object-values-loop-body-any-dynamic-argument-parent-ref-id",type:n.GenericReference,entityId:on.body.id,version:"1",entityType:n.ActionDescriptor},Xv={id:"iterate-over-object-values-loop-body-any-dynamic-argument-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Any value",description:"Values inputed to the loop's body as an aggregation of the respective values outputed.",defaultValue:null,dataType:null,required:!1,index:2,parentRelationType:N.DynamicArgument,parent:Kv},Qv={id:"iterate-over-object-values-loop-body-any-dynamic-return-parent-ref-id",type:n.GenericReference,entityId:on.body.id,version:"1",entityType:n.ActionDescriptor},eT={id:"iterate-over-object-values-loop-body-any-dynamic-return-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Any value",description:"Values outputed by the loop's body.",defaultValue:null,dataType:null,required:!1,index:0,parentRelationType:N.DynamicReturn,parent:Qv},jd={id:on.body.id,type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Iteration logic trigger",description:"Describes the body of the object-values loop.",inputs:[Hv,gd,Xv],outputs:[eT],error:null,parent:null},$d=k[n.Loop]["counted-loop"],tT={id:"counted-loop-string-argument-declaration-data-type-default-value-parent-ref-id",type:n.GenericReference,entityId:$d.inputs.number.id,version:"1",entityType:n.ValueDescriptor},iT={id:"counted-loop-string-argument-declaration-data-type-default-value-id",type:n.LiteralValue,name:L.Number,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:5,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null,parent:tT},rT={id:"counted-loop-string-argument-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"counted-loop-string-argument-declaration-id",version:"1",entityType:n.ValueDescriptor},nT={like:!1,inferred:!1,id:"counted-loop-string-argument-declaration-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,entity:ve,asType:!1,parent:rT},sT={id:"counted-loop-string-argument-declaration-parent-ref-id",type:n.GenericReference,entityId:Q.Counted,version:"1",entityType:n.ActionDescriptor},aT={id:$d.inputs.number.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Number of iterations",description:"The number of iterations to perform",required:!0,dataType:nT,defaultValue:iT,index:0,parent:sT,parentRelationType:N.FixedArguments},oT={id:"counted-loop-dynamic-return-declaration-parent-ref-id",type:n.GenericReference,entityId:Q.Counted,version:"1",entityType:n.ActionDescriptor},lT={id:$d.outputs.results.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Ouput value",description:"An output value of the loop",defaultValue:null,required:!1,dataType:null,index:0,parent:oT,parentRelationType:N.DynamicReturn},Ls={id:Q.Counted,type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:Q.Counted,description:"Iterates a given number of times",inputs:[aT],outputs:[lT],error:null,parent:null},Us=k[n.Loop]["counted-loop"],dT={id:"counted-loop-body-current-iteration-number-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"counted-loop-body-current-iteration-number-declaration-id",version:"1",entityType:n.ValueDescriptor},uT={like:!1,inferred:!1,id:"counted-loop-body-current-iteration-number-declaration-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,entity:ve,asType:!1,parent:dT},pT={id:"counted-loop-body-current-iteration-number-declaration-parent-ref-id",type:n.GenericReference,entityId:Us.body.id,version:"1",entityType:n.ActionDescriptor},Gd={id:Us.body.inputs.iterationNumber.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Current iteration number",description:"The number of the current iteration of the string loop. Keeps track of the number of iterations that have been executed.",defaultValue:null,dataType:uT,required:!0,index:0,parentRelationType:N.FixedArguments,parent:pT},cT={id:"counted-loop-body-any-dynamic-argument-parent-ref-id",type:n.GenericReference,entityId:Us.body.id,version:"1",entityType:n.ActionDescriptor},fT={id:"counted-loop-body-any-dynamic-argument-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Any value",description:"Values inputed to the loop's body as an aggregation of the respective values outputed.",defaultValue:null,dataType:null,required:!1,index:1,parentRelationType:N.DynamicArgument,parent:cT},yT={id:"counted-loop-body-any-dynamic-return-parent-ref-id",type:n.GenericReference,entityId:Us.body.id,version:"1",entityType:n.ActionDescriptor},hT={id:"counted-loop-body-any-dynamic-return-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Any value",description:"Values outputed by the loop's body.",defaultValue:null,dataType:null,required:!1,index:0,parentRelationType:N.DynamicReturn,parent:yT},ao={id:Us.body.id,type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Iteration logic trigger",description:"Describes the body of the string loop.",inputs:[Gd,fT],outputs:[hT],error:null,parent:null},mT=[io,Er,Ms,Sn,Zn,Ls],vT=[ro,Ns,no,Ud,jd,ao],Ar=k[n.BuiltInBaseEntity][z.HTTP_ENDPOINT].properties,gs=k[n.BuiltInBaseEntity][z.HTTP_ENDPOINT].methods,TT={id:"endpointBuiltInCorsPropertyDataTypeRef",type:n.GenericReference,version:"1",entityType:n.ValueDescriptor,entityId:Ar.cors.id},IT={id:"endpointBuiltInCorsPropertyRef",type:n.GenericReference,version:"1",entityType:n.Property,entityId:Ar.cors.id},ET={like:!1,inferred:!1,id:"endpointBuiltInCorsPropertyDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!0,entity:se,asType:!1,parent:IT},AT={id:"endpointBuiltInBaseEntityRef",type:n.GenericReference,version:"1",entityType:n.BuiltInBaseEntity,entityId:z.HTTP_ENDPOINT},bT={constant:!1,hidden:!0,required:!0,id:Ar.cors.id,name:"Allowed origins",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!0,implements:null,static:!0,index:0,dataType:ET,defaultValue:{id:"endpointBuiltInCorsPropertyDataTypeDefaultValueId",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.KeyValue,value:["*"],parent:TT,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},description:"The origins that are allowed to access this endpoint, use * for all origins, or http://example.com/* to be as specific as you need.",parent:AT},RT={id:"endpointBuiltInPathPropertyDataTypeRef",type:n.GenericReference,version:"1",entityType:n.ValueDescriptor,entityId:Ar.path.id},DT={id:"endpointBuiltInPathPropertyRef",type:n.GenericReference,version:"1",entityType:n.Property,entityId:Ar.path.id},OT={like:!1,inferred:!1,id:"endpointBuiltInPathPropertyDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:se,asType:!1,parent:DT},PT={id:"endpointBuiltInBaseEntityRefTwo",type:n.GenericReference,version:"1",entityType:n.BuiltInBaseEntity,entityId:z.HTTP_ENDPOINT},Fd={constant:!1,id:Ar.path.id,hidden:!1,required:!0,name:"Path",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!0,implements:null,static:!0,index:1,dataType:OT,defaultValue:{id:"endpointBuiltInPathPropertyDataTypeDefaultValueId",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.String,value:"/",parent:RT,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},description:"Path to the endpoint, for example /api/users, or /api/users/{id}, or /api/users/{id}/:name. The path can contain parameters, which are defined by curly braces, and will be passed to the endpoint event as variables with the same name.",parent:PT},wT={id:"endpointBuiltInMethodPropertyDataTypeRef",type:n.GenericReference,version:"1",entityType:n.ValueDescriptor,entityId:Ar.method.id},CT={id:"endpointBuiltInMethodPropertyRef",type:n.GenericReference,version:"1",entityType:n.Property,entityId:"endpointBuiltInMethodProperty"},VT={like:!1,inferred:!1,id:"endpointBuiltInMethodPropertyDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,entity:tr,isList:!0,asType:!1,options:["GET","POST","PUT","DELETE","PATCH","OPTIONS","HEAD","TRACE","CONNECT","CUSTOM"],parent:CT},BT={id:"endpointBuiltInBaseEntityRefThree",type:n.GenericReference,version:"1",entityType:n.BuiltInBaseEntity,entityId:z.HTTP_ENDPOINT},xd={constant:!1,hidden:!1,required:!0,id:Ar.method.id,name:"Method",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,index:2,implements:null,defaultValue:{id:"endpointBuiltInMethodPropertyDataTypeDefaultValueId",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:"GET",name:L.Enum,parent:wT,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},abstract:!0,static:!0,dataType:VT,description:"The HTTP method that this endpoint will respond to, for example GET, POST, PUT, DELETE, etc.",parent:BT},_T={id:"endpointRequestHeadersVariableDataTypeRef",type:n.GenericReference,version:"1",entityType:n.ValueDescriptor,entityId:"endpointRequestHeadersArgumentDeclaration"},MT={id:"endpointRequestHeadersArgumentDeclarationRef",type:n.GenericReference,version:"1",entityType:n.ArgumentDeclaration,entityId:"endpointRequestHeadersArgumentDeclaration"},NT={like:!1,inferred:!1,id:"endpointRequestHeadersVariableDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!0,entity:Ot,asType:!1,parent:MT},LT={id:"endpointRequestBodyArgumentDeclarationRef",type:n.GenericReference,version:"1",entityType:n.ArgumentDeclaration,entityId:"endpointRequestBodyArgumentDeclaration"},UT={like:!1,inferred:!1,id:"endpointRequestBodyVariableDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,asType:!1,entity:Ot,parent:LT},gT={id:"endpointRequestQueryParamsVariableDataTypeRef",type:n.GenericReference,version:"1",entityType:n.ValueDescriptor,entityId:"endpointRequestQueryParamsArgumentDeclaration"},jT={id:"endpointRequestQueryParamsArgumentDeclarationRef",type:n.GenericReference,version:"1",entityType:n.ArgumentDeclaration,entityId:"endpointRequestQueryParamsArgumentDeclaration"},$T={like:!1,inferred:!1,id:"endpointRequestQueryParamsVariableDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!0,asType:!1,entity:Fn,parent:jT},GT={id:"endpointPathParamsVariableDataTypeRef",type:n.GenericReference,version:"1",entityType:n.ValueDescriptor,entityId:"endpointPathParamsArgumentDeclaration"},FT={id:"endpointPathParamsArgumentDeclarationRef",type:n.GenericReference,version:"1",entityType:n.ArgumentDeclaration,entityId:"endpointPathParamsArgumentDeclaration"},xT={like:!1,inferred:!1,id:"endpointPathParamsVariableDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!0,entity:Fn,asType:!1,parent:FT},kT={id:"endpointReachedTriggerActionDescriptorRef",type:n.GenericReference,version:"1",entityType:n.ActionDescriptor,entityId:gs.handler.id},kd={id:"endpointRequestHeadersArgumentDeclaration",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:"A set of any properties, with names and value that transmit metadata about the request.",type:n.ValueDescriptor,name:"Request headers",dataType:NT,defaultValue:{id:"endpointRequestHeadersVariableDataTypeDefaultValueId",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.KeyValue,value:{},parent:_T,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},required:!0,index:0,parentRelationType:N.FixedArguments,parent:kT},ST={id:"endpointReachedTriggerActionDescriptorRefTwo",type:n.GenericReference,version:"1",entityType:n.ActionDescriptor,entityId:gs.handler.id},Sd={id:"endpointPathParamsArgumentDeclaration",type:n.ValueDescriptor,description:"A standarized text, without spaces that is added at the end of the domain and routes the request to a specific resource within the target server. For example: /api/users/123, /api/users/123/:name, /api/users/123/:name/:age.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Path parameters",dataType:xT,defaultValue:{id:"endpointPathParamsVariableDataTypeDefaultValueId",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.KeyValue,value:[],parent:GT,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},required:!0,index:1,parentRelationType:N.FixedArguments,parent:ST},ZT={id:"endpointReachedTriggerActionDescriptorRefThree",type:n.GenericReference,version:"1",entityType:n.ActionDescriptor,entityId:gs.handler.id},Zd={id:"endpointRequestQueryParamsArgumentDeclaration",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:"A text with standarized format, without spaces that is added at the end of the URL path, after the ? character. It contains data that might be used to process the request. For example: /api/users?name=John&age=30",type:n.ValueDescriptor,name:"Request query params",dataType:$T,defaultValue:{id:"endpointRequestQueryParamsVariableDataTypeDefaultValueId",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.KeyValue,value:[],parent:gT,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},required:!0,index:2,parentRelationType:N.FixedArguments,parent:ZT},qT={id:"endpointReachedTriggerActionDescriptorRefFour",type:n.GenericReference,version:"1",entityType:n.ActionDescriptor,entityId:gs.handler.id},qd={id:"endpointRequestBodyArgumentDeclaration",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:"The main data payload of the request.",type:n.ValueDescriptor,name:"Request body",dataType:UT,defaultValue:null,index:3,required:!0,parentRelationType:N.FixedArguments,parent:qT},JT={id:"endpointResponseCodeReturnDeclarationRef",type:n.GenericReference,version:"1",entityType:n.ReturnDeclaration,entityId:"endpointResponseCodeReturnDeclaration"},WT={like:!1,inferred:!1,id:"9ba575b0-6f8e-436d-a3de-3b843622aa17",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,asType:!1,isList:!1,parent:JT},zT={id:"endpointReturnStatementRef",type:n.GenericReference,version:"1",entityType:n.ActionDescriptor,entityId:"endpointReturnStatement"},Jd={id:"endpointResponseCodeReturnDeclaration",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:"A standarized number that represents the status of the response. 200 for OK, 404 for not found, 500 for server error, etc.",type:n.ValueDescriptor,name:"Response code",dataType:WT,defaultValue:null,required:!0,index:0,parentRelationType:N.FixedReturns,parent:zT},YT={id:"endpointResponseHeadersDataTypeRef",type:n.GenericReference,version:"1",entityType:n.ValueDescriptor,entityId:"endpointResponseHeadersReturnDeclaration"},HT={id:"endpointResponseHeadersReturnDeclarationRef",type:n.GenericReference,version:"1",entityType:n.ReturnDeclaration,entityId:"endpointResponseHeadersReturnDeclaration"},KT={like:!1,inferred:!1,id:"endpointResponseHeadersDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!0,entity:Ot,asType:!1,parent:HT},XT={id:"endpointReturnStatementRefTwo",type:n.GenericReference,version:"1",entityType:n.ActionDescriptor,entityId:"endpointReturnStatement"},Wd={id:"endpointResponseHeadersReturnDeclaration",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:"A set of any properties, with names and value that transmit metadata about the response.",type:n.ValueDescriptor,name:"Response headers",dataType:KT,defaultValue:{id:"endpointResponseHeadersDataTypeDefaultValueId",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.KeyValue,value:{},parent:YT,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},required:!1,index:1,parentRelationType:N.FixedReturns,parent:XT},QT={id:"endpointResponseBodyReturnDeclarationRef",type:n.GenericReference,version:"1",entityType:n.ReturnDeclaration,entityId:"endpointResponseBodyReturnDeclaration"},eI={like:!1,inferred:!1,id:"endpointResponseBodyDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,asType:!1,entity:Ot,parent:QT},tI={id:"endpointReturnStatementRefThree",type:n.GenericReference,version:"1",entityType:n.ActionDescriptor,entityId:"endpointReturnStatement"},zd={id:"endpointResponseBodyReturnDeclaration",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:"The main data payload of the response.",type:n.ValueDescriptor,name:"Response body",dataType:eI,defaultValue:null,required:!1,index:2,parentRelationType:N.FixedReturns,parent:tI},iI={id:"endpointBuiltInBaseEntityRefFour",type:n.GenericReference,version:"1",entityType:n.BuiltInBaseEntity,entityId:z.HTTP_ENDPOINT},Yd={id:gs.handler.id,type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Endpoint reached",description:"Fired when the endpoint is reached.",inputs:[kd,Sd,Zd,qd],outputs:[Jd,Wd,zd],error:null,parent:iI},js={id:z.HTTP_ENDPOINT,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:"An HTTP endpoint that can be reached by a client from the internet.",name:z.HTTP_ENDPOINT,type:n.BuiltInBaseEntity,interactive:!1,abstract:!0,static:!0,properties:[bT,Fd,xd],abstractMethods:[Yd],extends:[],methods:[]},Mt=k[n.BuiltInBaseEntity].BUILT_IN_RELATIONAL_DATABASE_ENTITY,rI={id:"relational-database-built-in-base-entity-identifier-property-data-type-ref-id",type:n.GenericReference,entityId:Mt.properties.identifier.id,version:"1",entityType:n.Property},nI={id:"relational-database-built-in-base-entity-identifier-property-ref-id",type:n.GenericReference,entityId:Mt.properties.identifier.id,version:"1",entityType:n.Property},sI={like:!1,inferred:!1,id:"relational-database-built-in-base-entity-identifier-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:se,asType:!1,parent:nI},qn={id:"relational-database-built-in-base-entity-ref-id",type:n.GenericReference,entityId:z.PERSISTED_ENTITY,version:"1",entityType:n.BuiltInBaseEntity},oo={constant:!1,id:Mt.properties.identifier.id,hidden:!1,required:!0,name:"Identifier name",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!0,static:!0,implements:null,index:0,defaultValue:{id:"relational-database-built-in-base-entity-identifier-property-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.String,value:null,parent:rI,autogeneration:{type:vt.Unique,rangeStart:null,rangeEnd:null},valueAsTypeList:null,valueAsTypeSingle:null},dataType:sI,description:"The name of the main database inside of the server instance where the data will be stored.",parent:qn},Aw={id:"relational-database-built-in-base-entity-username-property-data-type-ref-id",type:n.GenericReference,entityId:"relational-database-built-in-base-entity-username-property-data-type-idd",version:"1",entityType:n.Property},aI={id:"relational-database-built-in-base-entity-username-property-ref-id",type:n.GenericReference,entityId:Mt.properties.username.id,version:"1",entityType:n.Property},oI={like:!1,inferred:!1,id:"relational-database-built-in-base-entity-username-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:se,asType:!1,parent:aI},lo={constant:!1,hidden:!1,required:!0,id:Mt.properties.username.id,name:"Username",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!0,static:!0,implements:null,index:1,defaultValue:{id:"relational-database-built-in-base-entity-username-property-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.String,value:"postgres",parent:{id:"relational-database-built-in-base-entity-username-property-data-type-default-value-parent-ref-id",type:n.GenericReference,entityId:Mt.properties.username.id,version:"1",entityType:n.Property},autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},dataType:oI,description:"The username that will be used to connect to the database.",parent:qn},bw={id:"relational-database-built-in-base-entity-password-property-data-type-ref-id",type:n.GenericReference,entityId:"relational-database-built-in-base-entity-password-property-data-type-id",version:"1",entityType:n.Property},lI={id:"relational-database-built-in-base-entity-password-property-ref-id",type:n.GenericReference,entityId:Mt.properties.password.id,version:"1",entityType:n.Property},dI={like:!1,inferred:!1,id:"relational-database-built-in-base-entity-password-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:se,asType:!1,parent:lI},uo={constant:!1,hidden:!1,required:!0,id:Mt.properties.password.id,name:"Password",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!0,static:!0,implements:null,index:2,defaultValue:null,dataType:dI,description:"The password that will be used to connect to the database.",parent:qn},uI={id:"relational-database-built-in-base-entity-min-size-property-data-type-ref-id",type:n.GenericReference,entityId:Mt.properties.minSize.id,version:"1",entityType:n.Property},pI={id:"relational-database-built-in-base-entity-min-size-property-ref-id",type:n.GenericReference,entityId:Mt.properties.minSize.id,version:"1",entityType:n.Property},cI={like:!1,inferred:!1,id:"relational-database-built-in-base-entity-min-size-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ve,asType:!1,parent:pI},po={constant:!1,hidden:!0,required:!0,id:Mt.properties.minSize.id,name:"Minimum GB size",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!0,static:!0,implements:null,index:3,defaultValue:{id:"relational-database-built-in-base-entity-min-size-property-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.Number,value:6,parent:uI,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},dataType:cI,description:"The minimum size of the database in GB.",parent:qn},fI={id:"relational-database-built-in-base-entity-default-property-data-type-ref-id",type:n.GenericReference,entityId:Mt.properties.default.id,version:"1",entityType:n.Property},yI={id:"relational-database-built-in-base-entity-default-property-ref-id",type:n.GenericReference,entityId:Mt.properties.default.id,version:"1",entityType:n.Property},hI={like:!1,inferred:!1,id:"relational-database-built-in-base-entity-default-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:er,asType:!1,parent:yI},Hd={constant:!1,hidden:!0,required:!0,id:Mt.properties.default.id,name:"Default",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!0,static:!0,implements:null,index:4,defaultValue:{id:"relational-database-built-in-base-entity-default-property-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.Boolean,value:!1,parent:fI,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},dataType:hI,description:"If true, this database will be the default database for the server instance and all the new entities.",parent:qn},mI={id:"relational-database-built-in-base-entity-autoscaling-property-ref-id",type:n.GenericReference,entityId:Mt.properties.autoscaling.id,version:"1",entityType:n.Property},vI={id:"relational-database-built-in-base-entity-autoscaling-property-data-type-ref-id",type:n.GenericReference,entityId:Mt.properties.autoscaling.id,version:"1",entityType:n.Property},TI={like:!1,inferred:!1,id:"relational-database-built-in-base-entity-autoscaling-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:er,asType:!1,parent:mI},II={id:"relational-database-built-in-base-entity-autoscaling-property-parent-ref-id",type:n.GenericReference,entityId:z.PERSISTED_ENTITY,version:"1",entityType:n.BuiltInBaseEntity},Kd={constant:!1,hidden:!0,required:!0,id:Mt.properties.autoscaling.id,name:"Auto-scaling",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!0,static:!0,implements:null,index:4,defaultValue:{id:"relational-database-built-in-base-entity-autoscaling-property-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.Boolean,value:!1,parent:vI,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},dataType:TI,description:"If true, this database will automatically scale up or down in memory size, based on the usage.",parent:II},ji={id:z.RELATIONAL_DATABASE,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:"This entity provisions a relational database in the cloud.",name:z.RELATIONAL_DATABASE,type:n.BuiltInBaseEntity,abstract:!0,static:!0,interactive:!1,properties:[oo,lo,uo,po,Hd,Kd],abstractMethods:[],methods:[],extends:[]},EI={type:n.GenericReference,entityId:"persisted-built-in-base-entity-ref-id",version:"1",entityType:n.BuiltInBaseEntity,id:di.DeletePersistedEntity},Xd={type:n.FunctionDeclaration,id:di.DeletePersistedEntity,name:di.DeletePersistedEntity,description:"Permanently deletes the current copy of an entity from the database",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,parent:EI,inputs:[],calls:[],implements:null,collapsed:!1,index:0,private:!1,x:0,y:0},AI=k[n.BuiltInBaseEntity][z.PERSISTED_ENTITY].properties,Rw={id:"persisted-built-in-base-entity-database-property-data-type-ref-id",type:n.GenericReference,entityId:"persisted-built-in-base-entity-database-property-data-type-id",version:"1",entityType:n.DataType},bI={id:"persisted-built-in-base-entity-database-property-ref-id",type:n.GenericReference,entityId:"persisted-built-in-base-entity-database-property-id",version:"1",entityType:n.Property},RI={like:!1,inferred:!1,id:"persisted-built-in-base-entity-database-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ji,asType:!1,parent:bI},DI={id:"persisted-built-in-base-entity-database-property-parent-ref-id",type:n.GenericReference,entityId:z.PERSISTED_ENTITY,version:"1",entityType:n.BuiltInBaseEntity},Jn={constant:!1,hidden:!0,required:!0,id:AI.database.id,name:"Database",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,defaultValue:null,private:!1,abstract:!0,implements:null,static:!0,index:0,dataType:RI,description:"The database that the entity belongs to.",parent:DI},OI={id:"persisted-built-in-base-entity-primary-key-property-number-data-type-option-parent-ref-id",type:n.GenericReference,entityId:"persisted-built-in-base-entity-primary-key-property-data-type-id",version:"1",entityType:n.DataType},PI={like:!1,inferred:!1,id:"persisted-built-in-base-entity-primary-key-property-number-data-type-option-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ve,asType:!1,parentRelationType:Dt.OrDataTypeGroup,parent:OI},wI={id:"persisted-built-in-base-entity-primary-key-property-string-data-type-option-parent-ref-id",type:n.GenericReference,entityId:"persisted-built-in-base-entity-primary-key-property-data-type-id",version:"1",entityType:n.DataType},CI={like:!1,inferred:!1,id:"persisted-built-in-base-entity-primary-key-property-string-data-type-option-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:se,asType:!1,parentRelationType:Dt.OrDataTypeGroup,parent:wI},VI={id:"persisted-built-in-base-entity-primary-key-property-uuid-data-type-option-parent-ref-id",type:n.GenericReference,entityId:"persisted-built-in-base-entity-primary-key-property-data-type-id",version:"1",entityType:n.DataType},BI={like:!1,inferred:!1,id:"persisted-built-in-base-entity-primary-key-property-uuid-data-type-option-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ir,asType:!1,parentRelationType:Dt.OrDataTypeGroup,parent:VI},_I={id:"persisted-built-in-base-entity-primary-key-property-ref-id",type:n.GenericReference,entityId:"persisted-built-in-base-entity-primary-key-property-id",version:"1",entityType:n.Property},MI={like:!1,inferred:!1,id:"persisted-built-in-base-entity-primary-key-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,andChildrenGroup:null,orChildrenGroup:[BI,CI,PI],isList:!1,entity:null,asType:null,implementationChooseOne:!0,parent:_I},NI={id:"persisted-built-in-base-entity-primary-key-property-parent-ref-id",type:n.GenericReference,entityId:z.PERSISTED_ENTITY,version:"1",entityType:n.BuiltInBaseEntity},Wn={constant:!1,hidden:!1,required:!0,id:AI.primaryKey.id,name:"Primary key",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,defaultValue:null,private:!1,abstract:!0,implements:null,static:!1,index:0,dataType:MI,description:"A property with a unique value for the entity, that can be used to identify the entity among other entities of the same type.",parent:NI},Ct={id:z.PERSISTED_ENTITY,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:"An entity that is permanently stored in the database and can be accessed at any point.",name:z.PERSISTED_ENTITY,type:n.BuiltInBaseEntity,abstract:!0,static:!1,interactive:!0,abstractMethods:[],properties:[Jn,Wn],methods:[Xd],extends:[]},LI={type:n.GenericReference,entityId:"persisted-built-in-base-entity-ref-id",version:"1",entityType:n.BuiltInBaseEntity,id:di.SoftDeletePersistedEntity},Dw={type:n.FunctionDeclaration,id:di.SoftDeletePersistedEntity,name:di.SoftDeletePersistedEntity,description:"Designates the entity as deleted, but does not remove it from the database.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,parent:LI,inputs:[],calls:[],implements:null,collapsed:!1,index:0,private:!1,x:0,y:0},UI={id:"cron-job-triggered-function-declaration-blueprint-parent-ref-id",type:n.GenericReference,version:"1",entityType:n.BuiltInBaseEntity,entityId:z.HTTP_ENDPOINT},Qd={id:"cron-job-triggered-function-declaration-blueprint-id",name:"Cron job triggered",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.ActionDescriptor,description:"Executed when the cron job is triggered",inputs:[],error:null,outputs:[],parent:UI},gI=k[n.BuiltInBaseEntity].BUILT_IN_CRON_JOB_ENTITY,Ow={id:"cron-job-built-in-base-entity-expression-property-data-type-ref",type:n.GenericReference,entityId:"cron-job-built-in-base-entity-expression-property-data-type",version:"1",entityType:n.DataType},jI={id:"cron-job-built-in-base-entity-expression-property-ref",type:n.GenericReference,entityId:gI.properties.expression.id,version:"1",entityType:n.Property},Pw={like:!1,inferred:!1,id:"cron-job-built-in-base-entity-expression-property-data-type",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:se,asType:!1,parent:jI},$I={id:"cron-job-built-in-base-entity-ref",type:n.GenericReference,entityId:z.CRON_JOB,version:"1",entityType:n.BuiltInBaseEntity},GI={constant:!1,hidden:!1,required:!0,id:gI.properties.expression.id,name:"Cron expression",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,defaultValue:null,private:!1,abstract:!0,implements:null,static:!0,index:0,dataType:Pw,description:"The cron-job expression that defines when the cron-job job should be triggered. The expression should be in the format of a cron-job expression.",parent:$I},co={id:z.CRON_JOB,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:"This entity represents a scheduled trigger. The action on this entity will be executed one the time set by the cron-job expression is reached.",name:z.CRON_JOB,type:n.BuiltInBaseEntity,abstract:!0,static:!0,interactive:!1,properties:[GI],methods:[],abstractMethods:[Qd],extends:[]},FI={type:n.GenericReference,id:"execution-built-in-entity-abort-method-parent-ref-id",version:"1",entityType:n.BuiltInBaseEntity,entityId:"execution-built-in-entity-id"},eu={id:"execution-built-in-entity-abort-method-id",type:n.FunctionDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:di.AbortExecution,description:"Aborts the execution of the entity",inputs:[],calls:[],implements:null,private:!1,collapsed:!1,index:null,x:0,y:0,parent:FI},fo={id:z.EXECUTION,type:n.BuiltInBaseEntity,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:z.EXECUTION,description:"A reference to an ongoing execution of any entity that can be called. Eg: Operations, custom trigger calls, etc.",static:!1,abstract:!1,interactive:!0,extends:[],properties:[],methods:[eu],abstractMethods:[]},xI=[js,ji,Ct,co,fo],ww=k[n.Condition]["not-empty"],kI={type:n.GenericReference,id:"not-empty-condition-ref",version:"1",entityType:n.ActionDescriptor,entityId:vi.NotEmpty},SI={id:ww.inputs.leftHand.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Value",description:"The value to check if it is not empty",defaultValue:null,dataType:null,required:!0,parentRelationType:N.FixedArguments,index:0,parent:kI},ln={type:n.ActionDescriptor,id:vi.NotEmpty,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:vi.NotEmpty,description:"Checks if the value is not empty",parent:null,inputs:[SI],outputs:[],error:null},ZI={[vi.NotEmpty]:ln},zn=k[n.Condition]["more-than-or-equal"],qI={type:n.GenericReference,id:"more-than-or-equal-condition-left-hand-argument-data-type-parent-ref",version:"1",entityType:n.ValueDescriptor,entityId:zn.inputs.leftHand.id},JI={type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,id:zn.inputs.leftHand.dataType.id,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,like:!1,isList:!1,inferred:!1,andChildrenGroup:null,orChildrenGroup:null,asType:!1,parent:qI},WI={type:n.GenericReference,id:"more-than-or-equal-condition-left-hand-argument-parent-ref",version:"1",entityType:n.ActionDescriptor,entityId:yt.MoreThanOrEqual},zI={id:zn.inputs.leftHand.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"First value",description:"The first value to compare",defaultValue:null,dataType:JI,required:!0,parentRelationType:N.FixedArguments,index:0,parent:WI},YI={type:n.GenericReference,id:"more-than-or-equal-condition-right-hand-argument-data-type-parent-ref",version:"1",entityType:n.ValueDescriptor,entityId:zn.inputs.rightHand.id},HI={type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,id:zn.inputs.rightHand.dataType.id,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,like:!1,isList:!1,inferred:!1,andChildrenGroup:null,orChildrenGroup:null,asType:!1,parent:YI},KI={type:n.GenericReference,id:"more-than-or-equal-condition-right-hand-argument-parent-ref",version:"1",entityType:n.ActionDescriptor,entityId:yt.MoreThanOrEqual},XI={id:zn.inputs.rightHand.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Second value",description:"The second value to compare",defaultValue:null,dataType:HI,required:!0,parentRelationType:N.FixedArguments,index:1,parent:KI},Yn={type:n.ActionDescriptor,id:yt.MoreThanOrEqual,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:yt.MoreThanOrEqual,description:"Checks if the value is not empty",parent:null,inputs:[zI,XI],outputs:[],error:null},QI={[yt.MoreThanOrEqual]:Yn},eE={...ZI,...QI},tE=Object.values(eE),yo={type:n.ActionDescriptor,id:Qi.PROJECT_PUBLICATION_COMPLETED,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:Qi.PROJECT_PUBLICATION_COMPLETED,description:"The event that is triggered when the project has completed its publication and all its code and resurces are now deployed and ready to be used by the users",parent:null,inputs:[],outputs:[],error:null},iE={[Qi.PROJECT_PUBLICATION_COMPLETED]:yo},rE=Object.values(iE),tu=k[n.ValueDescriptor][Za.ActionOngoingProcessOutputValue],nE={type:n.GenericReference,id:"182f767f-50e8-4394-ba5f-43e78c232733",version:"1",entityType:n.ValueDescriptor,entityId:tu.id},sE={like:!1,inferred:!1,id:tu.dataType.id,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:fo,asType:!1,isList:!1,parent:nE},ho={id:tu.id,type:n.ValueDescriptor,description:"A value that represents the ongoing process of the parent action",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Process",defaultValue:null,dataType:sE,required:!0,index:0,parent:null,parentRelationType:N.OngoingProcessExecution},aE=[ho],oE=[...mf,...C0,...mT,...vT,...xI,...tE,...rE,...aE];var We;(function(r){r.assertEqual=i=>i;function a(i){}r.assertIs=a;function e(i){throw new Error}r.assertNever=e,r.arrayToEnum=i=>{const s={};for(const l of i)s[l]=l;return s},r.getValidEnumValues=i=>{const s=r.objectKeys(i).filter(o=>typeof i[i[o]]!="number"),l={};for(const o of s)l[o]=i[o];return r.objectValues(l)},r.objectValues=i=>r.objectKeys(i).map(function(s){return i[s]}),r.objectKeys=typeof Object.keys=="function"?i=>Object.keys(i):i=>{const s=[];for(const l in i)Object.prototype.hasOwnProperty.call(i,l)&&s.push(l);return s},r.find=(i,s)=>{for(const l of i)if(s(l))return l},r.isInteger=typeof Number.isInteger=="function"?i=>Number.isInteger(i):i=>typeof i=="number"&&isFinite(i)&&Math.floor(i)===i;function t(i,s=" | "){return i.map(l=>typeof l=="string"?`'${l}'`:l).join(s)}r.joinValues=t,r.jsonStringifyReplacer=(i,s)=>typeof s=="bigint"?s.toString():s})(We||(We={}));var iu;(function(r){r.mergeShapes=(a,e)=>({...a,...e})})(iu||(iu={}));const H=We.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),sr=r=>{switch(typeof r){case"undefined":return H.undefined;case"string":return H.string;case"number":return isNaN(r)?H.nan:H.number;case"boolean":return H.boolean;case"function":return H.function;case"bigint":return H.bigint;case"symbol":return H.symbol;case"object":return Array.isArray(r)?H.array:r===null?H.null:r.then&&typeof r.then=="function"&&r.catch&&typeof r.catch=="function"?H.promise:typeof Map<"u"&&r instanceof Map?H.map:typeof Set<"u"&&r instanceof Set?H.set:typeof Date<"u"&&r instanceof Date?H.date:H.object;default:return H.unknown}},S=We.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),Cw=r=>JSON.stringify(r,null,2).replace(/"([^"]+)":/g,"$1:");class ei extends Error{get errors(){return this.issues}constructor(a){super(),this.issues=[],this.addIssue=t=>{this.issues=[...this.issues,t]},this.addIssues=(t=[])=>{this.issues=[...this.issues,...t]};const e=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,e):this.__proto__=e,this.name="ZodError",this.issues=a}format(a){const e=a||function(s){return s.message},t={_errors:[]},i=s=>{for(const l of s.issues)if(l.code==="invalid_union")l.unionErrors.map(i);else if(l.code==="invalid_return_type")i(l.returnTypeError);else if(l.code==="invalid_arguments")i(l.argumentsError);else if(l.path.length===0)t._errors.push(e(l));else{let o=t,d=0;for(;d<l.path.length;){const u=l.path[d];d===l.path.length-1?(o[u]=o[u]||{_errors:[]},o[u]._errors.push(e(l))):o[u]=o[u]||{_errors:[]},o=o[u],d++}}};return i(this),t}static assert(a){if(!(a instanceof ei))throw new Error(`Not a ZodError: ${a}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,We.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(a=e=>e.message){const e={},t=[];for(const i of this.issues)i.path.length>0?(e[i.path[0]]=e[i.path[0]]||[],e[i.path[0]].push(a(i))):t.push(a(i));return{formErrors:t,fieldErrors:e}}get formErrors(){return this.flatten()}}ei.create=r=>new ei(r);const Hn=(r,a)=>{let e;switch(r.code){case S.invalid_type:r.received===H.undefined?e="Required":e=`Expected ${r.expected}, received ${r.received}`;break;case S.invalid_literal:e=`Invalid literal value, expected ${JSON.stringify(r.expected,We.jsonStringifyReplacer)}`;break;case S.unrecognized_keys:e=`Unrecognized key(s) in object: ${We.joinValues(r.keys,", ")}`;break;case S.invalid_union:e="Invalid input";break;case S.invalid_union_discriminator:e=`Invalid discriminator value. Expected ${We.joinValues(r.options)}`;break;case S.invalid_enum_value:e=`Invalid enum value. Expected ${We.joinValues(r.options)}, received '${r.received}'`;break;case S.invalid_arguments:e="Invalid function arguments";break;case S.invalid_return_type:e="Invalid function return type";break;case S.invalid_date:e="Invalid date";break;case S.invalid_string:typeof r.validation=="object"?"includes"in r.validation?(e=`Invalid input: must include "${r.validation.includes}"`,typeof r.validation.position=="number"&&(e=`${e} at one or more positions greater than or equal to ${r.validation.position}`)):"startsWith"in r.validation?e=`Invalid input: must start with "${r.validation.startsWith}"`:"endsWith"in r.validation?e=`Invalid input: must end with "${r.validation.endsWith}"`:We.assertNever(r.validation):r.validation!=="regex"?e=`Invalid ${r.validation}`:e="Invalid";break;case S.too_small:r.type==="array"?e=`Array must contain ${r.exact?"exactly":r.inclusive?"at least":"more than"} ${r.minimum} element(s)`:r.type==="string"?e=`String must contain ${r.exact?"exactly":r.inclusive?"at least":"over"} ${r.minimum} character(s)`:r.type==="number"?e=`Number must be ${r.exact?"exactly equal to ":r.inclusive?"greater than or equal to ":"greater than "}${r.minimum}`:r.type==="date"?e=`Date must be ${r.exact?"exactly equal to ":r.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(r.minimum))}`:e="Invalid input";break;case S.too_big:r.type==="array"?e=`Array must contain ${r.exact?"exactly":r.inclusive?"at most":"less than"} ${r.maximum} element(s)`:r.type==="string"?e=`String must contain ${r.exact?"exactly":r.inclusive?"at most":"under"} ${r.maximum} character(s)`:r.type==="number"?e=`Number must be ${r.exact?"exactly":r.inclusive?"less than or equal to":"less than"} ${r.maximum}`:r.type==="bigint"?e=`BigInt must be ${r.exact?"exactly":r.inclusive?"less than or equal to":"less than"} ${r.maximum}`:r.type==="date"?e=`Date must be ${r.exact?"exactly":r.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(r.maximum))}`:e="Invalid input";break;case S.custom:e="Invalid input";break;case S.invalid_intersection_types:e="Intersection results could not be merged";break;case S.not_multiple_of:e=`Number must be a multiple of ${r.multipleOf}`;break;case S.not_finite:e="Number must be finite";break;default:e=a.defaultError,We.assertNever(r)}return{message:e}};let lE=Hn;function Vw(r){lE=r}function mo(){return lE}const vo=r=>{const{data:a,path:e,errorMaps:t,issueData:i}=r,s=[...e,...i.path||[]],l={...i,path:s};if(i.message!==void 0)return{...i,path:s,message:i.message};let o="";const d=t.filter(u=>!!u).slice().reverse();for(const u of d)o=u(l,{data:a,defaultError:o}).message;return{...i,path:s,message:o}},Bw=[];function W(r,a){const e=mo(),t=vo({issueData:a,data:r.data,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,e,e===Hn?void 0:Hn].filter(i=>!!i)});r.common.issues.push(t)}class Lt{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(a,e){const t=[];for(const i of e){if(i.status==="aborted")return ye;i.status==="dirty"&&a.dirty(),t.push(i.value)}return{status:a.value,value:t}}static async mergeObjectAsync(a,e){const t=[];for(const i of e){const s=await i.key,l=await i.value;t.push({key:s,value:l})}return Lt.mergeObjectSync(a,t)}static mergeObjectSync(a,e){const t={};for(const i of e){const{key:s,value:l}=i;if(s.status==="aborted"||l.status==="aborted")return ye;s.status==="dirty"&&a.dirty(),l.status==="dirty"&&a.dirty(),s.value!=="__proto__"&&(typeof l.value<"u"||i.alwaysSet)&&(t[s.value]=l.value)}return{status:a.value,value:t}}}const ye=Object.freeze({status:"aborted"}),Kn=r=>({status:"dirty",value:r}),qt=r=>({status:"valid",value:r}),ru=r=>r.status==="aborted",nu=r=>r.status==="dirty",dn=r=>r.status==="valid",$s=r=>typeof Promise<"u"&&r instanceof Promise;function To(r,a,e,t){if(e==="a"&&!t)throw new TypeError("Private accessor was defined without a getter");if(typeof a=="function"?r!==a||!t:!a.has(r))throw new TypeError("Cannot read private member from an object whose class did not declare it");return e==="m"?t:e==="a"?t.call(r):t?t.value:a.get(r)}function dE(r,a,e,t,i){if(t==="m")throw new TypeError("Private method is not writable");if(t==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof a=="function"?r!==a||!i:!a.has(r))throw new TypeError("Cannot write private member to an object whose class did not declare it");return t==="a"?i.call(r,e):i?i.value=e:a.set(r,e),e}typeof SuppressedError=="function"&&SuppressedError;var re;(function(r){r.errToObj=a=>typeof a=="string"?{message:a}:a||{},r.toString=a=>typeof a=="string"?a:a==null?void 0:a.message})(re||(re={}));var Gs,Fs;class $i{constructor(a,e,t,i){this._cachedPath=[],this.parent=a,this.data=e,this._path=t,this._key=i}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const uE=(r,a)=>{if(dn(a))return{success:!0,data:a.value};if(!r.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const e=new ei(r.common.issues);return this._error=e,this._error}}};function Te(r){if(!r)return{};const{errorMap:a,invalid_type_error:e,required_error:t,description:i}=r;if(a&&(e||t))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return a?{errorMap:a,description:i}:{errorMap:(l,o)=>{var d,u;const{message:y}=r;return l.code==="invalid_enum_value"?{message:y??o.defaultError}:typeof o.data>"u"?{message:(d=y??t)!==null&&d!==void 0?d:o.defaultError}:l.code!=="invalid_type"?{message:o.defaultError}:{message:(u=y??e)!==null&&u!==void 0?u:o.defaultError}},description:i}}class Ge{get description(){return this._def.description}_getType(a){return sr(a.data)}_getOrReturnCtx(a,e){return e||{common:a.parent.common,data:a.data,parsedType:sr(a.data),schemaErrorMap:this._def.errorMap,path:a.path,parent:a.parent}}_processInputParams(a){return{status:new Lt,ctx:{common:a.parent.common,data:a.data,parsedType:sr(a.data),schemaErrorMap:this._def.errorMap,path:a.path,parent:a.parent}}}_parseSync(a){const e=this._parse(a);if($s(e))throw new Error("Synchronous parse encountered promise.");return e}_parseAsync(a){const e=this._parse(a);return Promise.resolve(e)}parse(a,e){const t=this.safeParse(a,e);if(t.success)return t.data;throw t.error}safeParse(a,e){var t;const i={common:{issues:[],async:(t=e==null?void 0:e.async)!==null&&t!==void 0?t:!1,contextualErrorMap:e==null?void 0:e.errorMap},path:(e==null?void 0:e.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:a,parsedType:sr(a)},s=this._parseSync({data:a,path:i.path,parent:i});return uE(i,s)}"~validate"(a){var e,t;const i={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:a,parsedType:sr(a)};if(!this["~standard"].async)try{const s=this._parseSync({data:a,path:[],parent:i});return dn(s)?{value:s.value}:{issues:i.common.issues}}catch(s){!((t=(e=s==null?void 0:s.message)===null||e===void 0?void 0:e.toLowerCase())===null||t===void 0)&&t.includes("encountered")&&(this["~standard"].async=!0),i.common={issues:[],async:!0}}return this._parseAsync({data:a,path:[],parent:i}).then(s=>dn(s)?{value:s.value}:{issues:i.common.issues})}async parseAsync(a,e){const t=await this.safeParseAsync(a,e);if(t.success)return t.data;throw t.error}async safeParseAsync(a,e){const t={common:{issues:[],contextualErrorMap:e==null?void 0:e.errorMap,async:!0},path:(e==null?void 0:e.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:a,parsedType:sr(a)},i=this._parse({data:a,path:t.path,parent:t}),s=await($s(i)?i:Promise.resolve(i));return uE(t,s)}refine(a,e){const t=i=>typeof e=="string"||typeof e>"u"?{message:e}:typeof e=="function"?e(i):e;return this._refinement((i,s)=>{const l=a(i),o=()=>s.addIssue({code:S.custom,...t(i)});return typeof Promise<"u"&&l instanceof Promise?l.then(d=>d?!0:(o(),!1)):l?!0:(o(),!1)})}refinement(a,e){return this._refinement((t,i)=>a(t)?!0:(i.addIssue(typeof e=="function"?e(t,i):e),!1))}_refinement(a){return new Ci({schema:this,typeName:pe.ZodEffects,effect:{type:"refinement",refinement:a}})}superRefine(a){return this._refinement(a)}constructor(a){this.spa=this.safeParseAsync,this._def=a,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:e=>this["~validate"](e)}}optional(){return Fi.create(this,this._def)}nullable(){return Or.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return wi.create(this)}promise(){return ts.create(this,this._def)}or(a){return Zs.create([this,a],this._def)}and(a){return qs.create(this,a,this._def)}transform(a){return new Ci({...Te(this._def),schema:this,typeName:pe.ZodEffects,effect:{type:"transform",transform:a}})}default(a){const e=typeof a=="function"?a:()=>a;return new Hs({...Te(this._def),innerType:this,defaultValue:e,typeName:pe.ZodDefault})}brand(){return new ou({typeName:pe.ZodBranded,type:this,...Te(this._def)})}catch(a){const e=typeof a=="function"?a:()=>a;return new Ks({...Te(this._def),innerType:this,catchValue:e,typeName:pe.ZodCatch})}describe(a){const e=this.constructor;return new e({...this._def,description:a})}pipe(a){return Xs.create(this,a)}readonly(){return Qs.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const _w=/^c[^\s-]{8,}$/i,Mw=/^[0-9a-z]+$/,Nw=/^[0-9A-HJKMNP-TV-Z]{26}$/i,Lw=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,Uw=/^[a-z0-9_-]{21}$/i,gw=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,jw=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,$w=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,Gw="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let su;const Fw=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,xw=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,kw=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,Sw=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Zw=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,qw=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,pE="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",Jw=new RegExp(`^${pE}$`);function cE(r){let a="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return r.precision?a=`${a}\\.\\d{${r.precision}}`:r.precision==null&&(a=`${a}(\\.\\d+)?`),a}function Ww(r){return new RegExp(`^${cE(r)}$`)}function fE(r){let a=`${pE}T${cE(r)}`;const e=[];return e.push(r.local?"Z?":"Z"),r.offset&&e.push("([+-]\\d{2}:?\\d{2})"),a=`${a}(${e.join("|")})`,new RegExp(`^${a}$`)}function zw(r,a){return!!((a==="v4"||!a)&&Fw.test(r)||(a==="v6"||!a)&&kw.test(r))}function Yw(r,a){if(!gw.test(r))return!1;try{const[e]=r.split("."),t=e.replace(/-/g,"+").replace(/_/g,"/").padEnd(e.length+(4-e.length%4)%4,"="),i=JSON.parse(atob(t));return!(typeof i!="object"||i===null||!i.typ||!i.alg||a&&i.alg!==a)}catch{return!1}}function Hw(r,a){return!!((a==="v4"||!a)&&xw.test(r)||(a==="v6"||!a)&&Sw.test(r))}class Pi extends Ge{_parse(a){if(this._def.coerce&&(a.data=String(a.data)),this._getType(a)!==H.string){const s=this._getOrReturnCtx(a);return W(s,{code:S.invalid_type,expected:H.string,received:s.parsedType}),ye}const t=new Lt;let i;for(const s of this._def.checks)if(s.kind==="min")a.data.length<s.value&&(i=this._getOrReturnCtx(a,i),W(i,{code:S.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),t.dirty());else if(s.kind==="max")a.data.length>s.value&&(i=this._getOrReturnCtx(a,i),W(i,{code:S.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),t.dirty());else if(s.kind==="length"){const l=a.data.length>s.value,o=a.data.length<s.value;(l||o)&&(i=this._getOrReturnCtx(a,i),l?W(i,{code:S.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}):o&&W(i,{code:S.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}),t.dirty())}else if(s.kind==="email")$w.test(a.data)||(i=this._getOrReturnCtx(a,i),W(i,{validation:"email",code:S.invalid_string,message:s.message}),t.dirty());else if(s.kind==="emoji")su||(su=new RegExp(Gw,"u")),su.test(a.data)||(i=this._getOrReturnCtx(a,i),W(i,{validation:"emoji",code:S.invalid_string,message:s.message}),t.dirty());else if(s.kind==="uuid")Lw.test(a.data)||(i=this._getOrReturnCtx(a,i),W(i,{validation:"uuid",code:S.invalid_string,message:s.message}),t.dirty());else if(s.kind==="nanoid")Uw.test(a.data)||(i=this._getOrReturnCtx(a,i),W(i,{validation:"nanoid",code:S.invalid_string,message:s.message}),t.dirty());else if(s.kind==="cuid")_w.test(a.data)||(i=this._getOrReturnCtx(a,i),W(i,{validation:"cuid",code:S.invalid_string,message:s.message}),t.dirty());else if(s.kind==="cuid2")Mw.test(a.data)||(i=this._getOrReturnCtx(a,i),W(i,{validation:"cuid2",code:S.invalid_string,message:s.message}),t.dirty());else if(s.kind==="ulid")Nw.test(a.data)||(i=this._getOrReturnCtx(a,i),W(i,{validation:"ulid",code:S.invalid_string,message:s.message}),t.dirty());else if(s.kind==="url")try{new URL(a.data)}catch{i=this._getOrReturnCtx(a,i),W(i,{validation:"url",code:S.invalid_string,message:s.message}),t.dirty()}else s.kind==="regex"?(s.regex.lastIndex=0,s.regex.test(a.data)||(i=this._getOrReturnCtx(a,i),W(i,{validation:"regex",code:S.invalid_string,message:s.message}),t.dirty())):s.kind==="trim"?a.data=a.data.trim():s.kind==="includes"?a.data.includes(s.value,s.position)||(i=this._getOrReturnCtx(a,i),W(i,{code:S.invalid_string,validation:{includes:s.value,position:s.position},message:s.message}),t.dirty()):s.kind==="toLowerCase"?a.data=a.data.toLowerCase():s.kind==="toUpperCase"?a.data=a.data.toUpperCase():s.kind==="startsWith"?a.data.startsWith(s.value)||(i=this._getOrReturnCtx(a,i),W(i,{code:S.invalid_string,validation:{startsWith:s.value},message:s.message}),t.dirty()):s.kind==="endsWith"?a.data.endsWith(s.value)||(i=this._getOrReturnCtx(a,i),W(i,{code:S.invalid_string,validation:{endsWith:s.value},message:s.message}),t.dirty()):s.kind==="datetime"?fE(s).test(a.data)||(i=this._getOrReturnCtx(a,i),W(i,{code:S.invalid_string,validation:"datetime",message:s.message}),t.dirty()):s.kind==="date"?Jw.test(a.data)||(i=this._getOrReturnCtx(a,i),W(i,{code:S.invalid_string,validation:"date",message:s.message}),t.dirty()):s.kind==="time"?Ww(s).test(a.data)||(i=this._getOrReturnCtx(a,i),W(i,{code:S.invalid_string,validation:"time",message:s.message}),t.dirty()):s.kind==="duration"?jw.test(a.data)||(i=this._getOrReturnCtx(a,i),W(i,{validation:"duration",code:S.invalid_string,message:s.message}),t.dirty()):s.kind==="ip"?zw(a.data,s.version)||(i=this._getOrReturnCtx(a,i),W(i,{validation:"ip",code:S.invalid_string,message:s.message}),t.dirty()):s.kind==="jwt"?Yw(a.data,s.alg)||(i=this._getOrReturnCtx(a,i),W(i,{validation:"jwt",code:S.invalid_string,message:s.message}),t.dirty()):s.kind==="cidr"?Hw(a.data,s.version)||(i=this._getOrReturnCtx(a,i),W(i,{validation:"cidr",code:S.invalid_string,message:s.message}),t.dirty()):s.kind==="base64"?Zw.test(a.data)||(i=this._getOrReturnCtx(a,i),W(i,{validation:"base64",code:S.invalid_string,message:s.message}),t.dirty()):s.kind==="base64url"?qw.test(a.data)||(i=this._getOrReturnCtx(a,i),W(i,{validation:"base64url",code:S.invalid_string,message:s.message}),t.dirty()):We.assertNever(s);return{status:t.value,value:a.data}}_regex(a,e,t){return this.refinement(i=>a.test(i),{validation:e,code:S.invalid_string,...re.errToObj(t)})}_addCheck(a){return new Pi({...this._def,checks:[...this._def.checks,a]})}email(a){return this._addCheck({kind:"email",...re.errToObj(a)})}url(a){return this._addCheck({kind:"url",...re.errToObj(a)})}emoji(a){return this._addCheck({kind:"emoji",...re.errToObj(a)})}uuid(a){return this._addCheck({kind:"uuid",...re.errToObj(a)})}nanoid(a){return this._addCheck({kind:"nanoid",...re.errToObj(a)})}cuid(a){return this._addCheck({kind:"cuid",...re.errToObj(a)})}cuid2(a){return this._addCheck({kind:"cuid2",...re.errToObj(a)})}ulid(a){return this._addCheck({kind:"ulid",...re.errToObj(a)})}base64(a){return this._addCheck({kind:"base64",...re.errToObj(a)})}base64url(a){return this._addCheck({kind:"base64url",...re.errToObj(a)})}jwt(a){return this._addCheck({kind:"jwt",...re.errToObj(a)})}ip(a){return this._addCheck({kind:"ip",...re.errToObj(a)})}cidr(a){return this._addCheck({kind:"cidr",...re.errToObj(a)})}datetime(a){var e,t;return typeof a=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:a}):this._addCheck({kind:"datetime",precision:typeof(a==null?void 0:a.precision)>"u"?null:a==null?void 0:a.precision,offset:(e=a==null?void 0:a.offset)!==null&&e!==void 0?e:!1,local:(t=a==null?void 0:a.local)!==null&&t!==void 0?t:!1,...re.errToObj(a==null?void 0:a.message)})}date(a){return this._addCheck({kind:"date",message:a})}time(a){return typeof a=="string"?this._addCheck({kind:"time",precision:null,message:a}):this._addCheck({kind:"time",precision:typeof(a==null?void 0:a.precision)>"u"?null:a==null?void 0:a.precision,...re.errToObj(a==null?void 0:a.message)})}duration(a){return this._addCheck({kind:"duration",...re.errToObj(a)})}regex(a,e){return this._addCheck({kind:"regex",regex:a,...re.errToObj(e)})}includes(a,e){return this._addCheck({kind:"includes",value:a,position:e==null?void 0:e.position,...re.errToObj(e==null?void 0:e.message)})}startsWith(a,e){return this._addCheck({kind:"startsWith",value:a,...re.errToObj(e)})}endsWith(a,e){return this._addCheck({kind:"endsWith",value:a,...re.errToObj(e)})}min(a,e){return this._addCheck({kind:"min",value:a,...re.errToObj(e)})}max(a,e){return this._addCheck({kind:"max",value:a,...re.errToObj(e)})}length(a,e){return this._addCheck({kind:"length",value:a,...re.errToObj(e)})}nonempty(a){return this.min(1,re.errToObj(a))}trim(){return new Pi({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Pi({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Pi({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(a=>a.kind==="datetime")}get isDate(){return!!this._def.checks.find(a=>a.kind==="date")}get isTime(){return!!this._def.checks.find(a=>a.kind==="time")}get isDuration(){return!!this._def.checks.find(a=>a.kind==="duration")}get isEmail(){return!!this._def.checks.find(a=>a.kind==="email")}get isURL(){return!!this._def.checks.find(a=>a.kind==="url")}get isEmoji(){return!!this._def.checks.find(a=>a.kind==="emoji")}get isUUID(){return!!this._def.checks.find(a=>a.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(a=>a.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(a=>a.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(a=>a.kind==="cuid2")}get isULID(){return!!this._def.checks.find(a=>a.kind==="ulid")}get isIP(){return!!this._def.checks.find(a=>a.kind==="ip")}get isCIDR(){return!!this._def.checks.find(a=>a.kind==="cidr")}get isBase64(){return!!this._def.checks.find(a=>a.kind==="base64")}get isBase64url(){return!!this._def.checks.find(a=>a.kind==="base64url")}get minLength(){let a=null;for(const e of this._def.checks)e.kind==="min"&&(a===null||e.value>a)&&(a=e.value);return a}get maxLength(){let a=null;for(const e of this._def.checks)e.kind==="max"&&(a===null||e.value<a)&&(a=e.value);return a}}Pi.create=r=>{var a;return new Pi({checks:[],typeName:pe.ZodString,coerce:(a=r==null?void 0:r.coerce)!==null&&a!==void 0?a:!1,...Te(r)})};function Kw(r,a){const e=(r.toString().split(".")[1]||"").length,t=(a.toString().split(".")[1]||"").length,i=e>t?e:t,s=parseInt(r.toFixed(i).replace(".","")),l=parseInt(a.toFixed(i).replace(".",""));return s%l/Math.pow(10,i)}class br extends Ge{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(a){if(this._def.coerce&&(a.data=Number(a.data)),this._getType(a)!==H.number){const s=this._getOrReturnCtx(a);return W(s,{code:S.invalid_type,expected:H.number,received:s.parsedType}),ye}let t;const i=new Lt;for(const s of this._def.checks)s.kind==="int"?We.isInteger(a.data)||(t=this._getOrReturnCtx(a,t),W(t,{code:S.invalid_type,expected:"integer",received:"float",message:s.message}),i.dirty()):s.kind==="min"?(s.inclusive?a.data<s.value:a.data<=s.value)&&(t=this._getOrReturnCtx(a,t),W(t,{code:S.too_small,minimum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),i.dirty()):s.kind==="max"?(s.inclusive?a.data>s.value:a.data>=s.value)&&(t=this._getOrReturnCtx(a,t),W(t,{code:S.too_big,maximum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),i.dirty()):s.kind==="multipleOf"?Kw(a.data,s.value)!==0&&(t=this._getOrReturnCtx(a,t),W(t,{code:S.not_multiple_of,multipleOf:s.value,message:s.message}),i.dirty()):s.kind==="finite"?Number.isFinite(a.data)||(t=this._getOrReturnCtx(a,t),W(t,{code:S.not_finite,message:s.message}),i.dirty()):We.assertNever(s);return{status:i.value,value:a.data}}gte(a,e){return this.setLimit("min",a,!0,re.toString(e))}gt(a,e){return this.setLimit("min",a,!1,re.toString(e))}lte(a,e){return this.setLimit("max",a,!0,re.toString(e))}lt(a,e){return this.setLimit("max",a,!1,re.toString(e))}setLimit(a,e,t,i){return new br({...this._def,checks:[...this._def.checks,{kind:a,value:e,inclusive:t,message:re.toString(i)}]})}_addCheck(a){return new br({...this._def,checks:[...this._def.checks,a]})}int(a){return this._addCheck({kind:"int",message:re.toString(a)})}positive(a){return this._addCheck({kind:"min",value:0,inclusive:!1,message:re.toString(a)})}negative(a){return this._addCheck({kind:"max",value:0,inclusive:!1,message:re.toString(a)})}nonpositive(a){return this._addCheck({kind:"max",value:0,inclusive:!0,message:re.toString(a)})}nonnegative(a){return this._addCheck({kind:"min",value:0,inclusive:!0,message:re.toString(a)})}multipleOf(a,e){return this._addCheck({kind:"multipleOf",value:a,message:re.toString(e)})}finite(a){return this._addCheck({kind:"finite",message:re.toString(a)})}safe(a){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:re.toString(a)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:re.toString(a)})}get minValue(){let a=null;for(const e of this._def.checks)e.kind==="min"&&(a===null||e.value>a)&&(a=e.value);return a}get maxValue(){let a=null;for(const e of this._def.checks)e.kind==="max"&&(a===null||e.value<a)&&(a=e.value);return a}get isInt(){return!!this._def.checks.find(a=>a.kind==="int"||a.kind==="multipleOf"&&We.isInteger(a.value))}get isFinite(){let a=null,e=null;for(const t of this._def.checks){if(t.kind==="finite"||t.kind==="int"||t.kind==="multipleOf")return!0;t.kind==="min"?(e===null||t.value>e)&&(e=t.value):t.kind==="max"&&(a===null||t.value<a)&&(a=t.value)}return Number.isFinite(e)&&Number.isFinite(a)}}br.create=r=>new br({checks:[],typeName:pe.ZodNumber,coerce:(r==null?void 0:r.coerce)||!1,...Te(r)});class Rr extends Ge{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(a){if(this._def.coerce)try{a.data=BigInt(a.data)}catch{return this._getInvalidInput(a)}if(this._getType(a)!==H.bigint)return this._getInvalidInput(a);let t;const i=new Lt;for(const s of this._def.checks)s.kind==="min"?(s.inclusive?a.data<s.value:a.data<=s.value)&&(t=this._getOrReturnCtx(a,t),W(t,{code:S.too_small,type:"bigint",minimum:s.value,inclusive:s.inclusive,message:s.message}),i.dirty()):s.kind==="max"?(s.inclusive?a.data>s.value:a.data>=s.value)&&(t=this._getOrReturnCtx(a,t),W(t,{code:S.too_big,type:"bigint",maximum:s.value,inclusive:s.inclusive,message:s.message}),i.dirty()):s.kind==="multipleOf"?a.data%s.value!==BigInt(0)&&(t=this._getOrReturnCtx(a,t),W(t,{code:S.not_multiple_of,multipleOf:s.value,message:s.message}),i.dirty()):We.assertNever(s);return{status:i.value,value:a.data}}_getInvalidInput(a){const e=this._getOrReturnCtx(a);return W(e,{code:S.invalid_type,expected:H.bigint,received:e.parsedType}),ye}gte(a,e){return this.setLimit("min",a,!0,re.toString(e))}gt(a,e){return this.setLimit("min",a,!1,re.toString(e))}lte(a,e){return this.setLimit("max",a,!0,re.toString(e))}lt(a,e){return this.setLimit("max",a,!1,re.toString(e))}setLimit(a,e,t,i){return new Rr({...this._def,checks:[...this._def.checks,{kind:a,value:e,inclusive:t,message:re.toString(i)}]})}_addCheck(a){return new Rr({...this._def,checks:[...this._def.checks,a]})}positive(a){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:re.toString(a)})}negative(a){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:re.toString(a)})}nonpositive(a){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:re.toString(a)})}nonnegative(a){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:re.toString(a)})}multipleOf(a,e){return this._addCheck({kind:"multipleOf",value:a,message:re.toString(e)})}get minValue(){let a=null;for(const e of this._def.checks)e.kind==="min"&&(a===null||e.value>a)&&(a=e.value);return a}get maxValue(){let a=null;for(const e of this._def.checks)e.kind==="max"&&(a===null||e.value<a)&&(a=e.value);return a}}Rr.create=r=>{var a;return new Rr({checks:[],typeName:pe.ZodBigInt,coerce:(a=r==null?void 0:r.coerce)!==null&&a!==void 0?a:!1,...Te(r)})};class xs extends Ge{_parse(a){if(this._def.coerce&&(a.data=!!a.data),this._getType(a)!==H.boolean){const t=this._getOrReturnCtx(a);return W(t,{code:S.invalid_type,expected:H.boolean,received:t.parsedType}),ye}return qt(a.data)}}xs.create=r=>new xs({typeName:pe.ZodBoolean,coerce:(r==null?void 0:r.coerce)||!1,...Te(r)});class un extends Ge{_parse(a){if(this._def.coerce&&(a.data=new Date(a.data)),this._getType(a)!==H.date){const s=this._getOrReturnCtx(a);return W(s,{code:S.invalid_type,expected:H.date,received:s.parsedType}),ye}if(isNaN(a.data.getTime())){const s=this._getOrReturnCtx(a);return W(s,{code:S.invalid_date}),ye}const t=new Lt;let i;for(const s of this._def.checks)s.kind==="min"?a.data.getTime()<s.value&&(i=this._getOrReturnCtx(a,i),W(i,{code:S.too_small,message:s.message,inclusive:!0,exact:!1,minimum:s.value,type:"date"}),t.dirty()):s.kind==="max"?a.data.getTime()>s.value&&(i=this._getOrReturnCtx(a,i),W(i,{code:S.too_big,message:s.message,inclusive:!0,exact:!1,maximum:s.value,type:"date"}),t.dirty()):We.assertNever(s);return{status:t.value,value:new Date(a.data.getTime())}}_addCheck(a){return new un({...this._def,checks:[...this._def.checks,a]})}min(a,e){return this._addCheck({kind:"min",value:a.getTime(),message:re.toString(e)})}max(a,e){return this._addCheck({kind:"max",value:a.getTime(),message:re.toString(e)})}get minDate(){let a=null;for(const e of this._def.checks)e.kind==="min"&&(a===null||e.value>a)&&(a=e.value);return a!=null?new Date(a):null}get maxDate(){let a=null;for(const e of this._def.checks)e.kind==="max"&&(a===null||e.value<a)&&(a=e.value);return a!=null?new Date(a):null}}un.create=r=>new un({checks:[],coerce:(r==null?void 0:r.coerce)||!1,typeName:pe.ZodDate,...Te(r)});class Io extends Ge{_parse(a){if(this._getType(a)!==H.symbol){const t=this._getOrReturnCtx(a);return W(t,{code:S.invalid_type,expected:H.symbol,received:t.parsedType}),ye}return qt(a.data)}}Io.create=r=>new Io({typeName:pe.ZodSymbol,...Te(r)});class ks extends Ge{_parse(a){if(this._getType(a)!==H.undefined){const t=this._getOrReturnCtx(a);return W(t,{code:S.invalid_type,expected:H.undefined,received:t.parsedType}),ye}return qt(a.data)}}ks.create=r=>new ks({typeName:pe.ZodUndefined,...Te(r)});class Ss extends Ge{_parse(a){if(this._getType(a)!==H.null){const t=this._getOrReturnCtx(a);return W(t,{code:S.invalid_type,expected:H.null,received:t.parsedType}),ye}return qt(a.data)}}Ss.create=r=>new Ss({typeName:pe.ZodNull,...Te(r)});class Xn extends Ge{constructor(){super(...arguments),this._any=!0}_parse(a){return qt(a.data)}}Xn.create=r=>new Xn({typeName:pe.ZodAny,...Te(r)});class pn extends Ge{constructor(){super(...arguments),this._unknown=!0}_parse(a){return qt(a.data)}}pn.create=r=>new pn({typeName:pe.ZodUnknown,...Te(r)});class ar extends Ge{_parse(a){const e=this._getOrReturnCtx(a);return W(e,{code:S.invalid_type,expected:H.never,received:e.parsedType}),ye}}ar.create=r=>new ar({typeName:pe.ZodNever,...Te(r)});class Eo extends Ge{_parse(a){if(this._getType(a)!==H.undefined){const t=this._getOrReturnCtx(a);return W(t,{code:S.invalid_type,expected:H.void,received:t.parsedType}),ye}return qt(a.data)}}Eo.create=r=>new Eo({typeName:pe.ZodVoid,...Te(r)});class wi extends Ge{_parse(a){const{ctx:e,status:t}=this._processInputParams(a),i=this._def;if(e.parsedType!==H.array)return W(e,{code:S.invalid_type,expected:H.array,received:e.parsedType}),ye;if(i.exactLength!==null){const l=e.data.length>i.exactLength.value,o=e.data.length<i.exactLength.value;(l||o)&&(W(e,{code:l?S.too_big:S.too_small,minimum:o?i.exactLength.value:void 0,maximum:l?i.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:i.exactLength.message}),t.dirty())}if(i.minLength!==null&&e.data.length<i.minLength.value&&(W(e,{code:S.too_small,minimum:i.minLength.value,type:"array",inclusive:!0,exact:!1,message:i.minLength.message}),t.dirty()),i.maxLength!==null&&e.data.length>i.maxLength.value&&(W(e,{code:S.too_big,maximum:i.maxLength.value,type:"array",inclusive:!0,exact:!1,message:i.maxLength.message}),t.dirty()),e.common.async)return Promise.all([...e.data].map((l,o)=>i.type._parseAsync(new $i(e,l,e.path,o)))).then(l=>Lt.mergeArray(t,l));const s=[...e.data].map((l,o)=>i.type._parseSync(new $i(e,l,e.path,o)));return Lt.mergeArray(t,s)}get element(){return this._def.type}min(a,e){return new wi({...this._def,minLength:{value:a,message:re.toString(e)}})}max(a,e){return new wi({...this._def,maxLength:{value:a,message:re.toString(e)}})}length(a,e){return new wi({...this._def,exactLength:{value:a,message:re.toString(e)}})}nonempty(a){return this.min(1,a)}}wi.create=(r,a)=>new wi({type:r,minLength:null,maxLength:null,exactLength:null,typeName:pe.ZodArray,...Te(a)});function Qn(r){if(r instanceof It){const a={};for(const e in r.shape){const t=r.shape[e];a[e]=Fi.create(Qn(t))}return new It({...r._def,shape:()=>a})}else return r instanceof wi?new wi({...r._def,type:Qn(r.element)}):r instanceof Fi?Fi.create(Qn(r.unwrap())):r instanceof Or?Or.create(Qn(r.unwrap())):r instanceof Gi?Gi.create(r.items.map(a=>Qn(a))):r}class It extends Ge{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const a=this._def.shape(),e=We.objectKeys(a);return this._cached={shape:a,keys:e}}_parse(a){if(this._getType(a)!==H.object){const u=this._getOrReturnCtx(a);return W(u,{code:S.invalid_type,expected:H.object,received:u.parsedType}),ye}const{status:t,ctx:i}=this._processInputParams(a),{shape:s,keys:l}=this._getCached(),o=[];if(!(this._def.catchall instanceof ar&&this._def.unknownKeys==="strip"))for(const u in i.data)l.includes(u)||o.push(u);const d=[];for(const u of l){const y=s[u],c=i.data[u];d.push({key:{status:"valid",value:u},value:y._parse(new $i(i,c,i.path,u)),alwaysSet:u in i.data})}if(this._def.catchall instanceof ar){const u=this._def.unknownKeys;if(u==="passthrough")for(const y of o)d.push({key:{status:"valid",value:y},value:{status:"valid",value:i.data[y]}});else if(u==="strict")o.length>0&&(W(i,{code:S.unrecognized_keys,keys:o}),t.dirty());else if(u!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const u=this._def.catchall;for(const y of o){const c=i.data[y];d.push({key:{status:"valid",value:y},value:u._parse(new $i(i,c,i.path,y)),alwaysSet:y in i.data})}}return i.common.async?Promise.resolve().then(async()=>{const u=[];for(const y of d){const c=await y.key,I=await y.value;u.push({key:c,value:I,alwaysSet:y.alwaysSet})}return u}).then(u=>Lt.mergeObjectSync(t,u)):Lt.mergeObjectSync(t,d)}get shape(){return this._def.shape()}strict(a){return re.errToObj,new It({...this._def,unknownKeys:"strict",...a!==void 0?{errorMap:(e,t)=>{var i,s,l,o;const d=(l=(s=(i=this._def).errorMap)===null||s===void 0?void 0:s.call(i,e,t).message)!==null&&l!==void 0?l:t.defaultError;return e.code==="unrecognized_keys"?{message:(o=re.errToObj(a).message)!==null&&o!==void 0?o:d}:{message:d}}}:{}})}strip(){return new It({...this._def,unknownKeys:"strip"})}passthrough(){return new It({...this._def,unknownKeys:"passthrough"})}extend(a){return new It({...this._def,shape:()=>({...this._def.shape(),...a})})}merge(a){return new It({unknownKeys:a._def.unknownKeys,catchall:a._def.catchall,shape:()=>({...this._def.shape(),...a._def.shape()}),typeName:pe.ZodObject})}setKey(a,e){return this.augment({[a]:e})}catchall(a){return new It({...this._def,catchall:a})}pick(a){const e={};return We.objectKeys(a).forEach(t=>{a[t]&&this.shape[t]&&(e[t]=this.shape[t])}),new It({...this._def,shape:()=>e})}omit(a){const e={};return We.objectKeys(this.shape).forEach(t=>{a[t]||(e[t]=this.shape[t])}),new It({...this._def,shape:()=>e})}deepPartial(){return Qn(this)}partial(a){const e={};return We.objectKeys(this.shape).forEach(t=>{const i=this.shape[t];a&&!a[t]?e[t]=i:e[t]=i.optional()}),new It({...this._def,shape:()=>e})}required(a){const e={};return We.objectKeys(this.shape).forEach(t=>{if(a&&!a[t])e[t]=this.shape[t];else{let s=this.shape[t];for(;s instanceof Fi;)s=s._def.innerType;e[t]=s}}),new It({...this._def,shape:()=>e})}keyof(){return yE(We.objectKeys(this.shape))}}It.create=(r,a)=>new It({shape:()=>r,unknownKeys:"strip",catchall:ar.create(),typeName:pe.ZodObject,...Te(a)}),It.strictCreate=(r,a)=>new It({shape:()=>r,unknownKeys:"strict",catchall:ar.create(),typeName:pe.ZodObject,...Te(a)}),It.lazycreate=(r,a)=>new It({shape:r,unknownKeys:"strip",catchall:ar.create(),typeName:pe.ZodObject,...Te(a)});class Zs extends Ge{_parse(a){const{ctx:e}=this._processInputParams(a),t=this._def.options;function i(s){for(const o of s)if(o.result.status==="valid")return o.result;for(const o of s)if(o.result.status==="dirty")return e.common.issues.push(...o.ctx.common.issues),o.result;const l=s.map(o=>new ei(o.ctx.common.issues));return W(e,{code:S.invalid_union,unionErrors:l}),ye}if(e.common.async)return Promise.all(t.map(async s=>{const l={...e,common:{...e.common,issues:[]},parent:null};return{result:await s._parseAsync({data:e.data,path:e.path,parent:l}),ctx:l}})).then(i);{let s;const l=[];for(const d of t){const u={...e,common:{...e.common,issues:[]},parent:null},y=d._parseSync({data:e.data,path:e.path,parent:u});if(y.status==="valid")return y;y.status==="dirty"&&!s&&(s={result:y,ctx:u}),u.common.issues.length&&l.push(u.common.issues)}if(s)return e.common.issues.push(...s.ctx.common.issues),s.result;const o=l.map(d=>new ei(d));return W(e,{code:S.invalid_union,unionErrors:o}),ye}}get options(){return this._def.options}}Zs.create=(r,a)=>new Zs({options:r,typeName:pe.ZodUnion,...Te(a)});const or=r=>r instanceof Ws?or(r.schema):r instanceof Ci?or(r.innerType()):r instanceof zs?[r.value]:r instanceof Dr?r.options:r instanceof Ys?We.objectValues(r.enum):r instanceof Hs?or(r._def.innerType):r instanceof ks?[void 0]:r instanceof Ss?[null]:r instanceof Fi?[void 0,...or(r.unwrap())]:r instanceof Or?[null,...or(r.unwrap())]:r instanceof ou||r instanceof Qs?or(r.unwrap()):r instanceof Ks?or(r._def.innerType):[];class Ao extends Ge{_parse(a){const{ctx:e}=this._processInputParams(a);if(e.parsedType!==H.object)return W(e,{code:S.invalid_type,expected:H.object,received:e.parsedType}),ye;const t=this.discriminator,i=e.data[t],s=this.optionsMap.get(i);return s?e.common.async?s._parseAsync({data:e.data,path:e.path,parent:e}):s._parseSync({data:e.data,path:e.path,parent:e}):(W(e,{code:S.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[t]}),ye)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(a,e,t){const i=new Map;for(const s of e){const l=or(s.shape[a]);if(!l.length)throw new Error(`A discriminator value for key \`${a}\` could not be extracted from all schema options`);for(const o of l){if(i.has(o))throw new Error(`Discriminator property ${String(a)} has duplicate value ${String(o)}`);i.set(o,s)}}return new Ao({typeName:pe.ZodDiscriminatedUnion,discriminator:a,options:e,optionsMap:i,...Te(t)})}}function au(r,a){const e=sr(r),t=sr(a);if(r===a)return{valid:!0,data:r};if(e===H.object&&t===H.object){const i=We.objectKeys(a),s=We.objectKeys(r).filter(o=>i.indexOf(o)!==-1),l={...r,...a};for(const o of s){const d=au(r[o],a[o]);if(!d.valid)return{valid:!1};l[o]=d.data}return{valid:!0,data:l}}else if(e===H.array&&t===H.array){if(r.length!==a.length)return{valid:!1};const i=[];for(let s=0;s<r.length;s++){const l=r[s],o=a[s],d=au(l,o);if(!d.valid)return{valid:!1};i.push(d.data)}return{valid:!0,data:i}}else return e===H.date&&t===H.date&&+r==+a?{valid:!0,data:r}:{valid:!1}}class qs extends Ge{_parse(a){const{status:e,ctx:t}=this._processInputParams(a),i=(s,l)=>{if(ru(s)||ru(l))return ye;const o=au(s.value,l.value);return o.valid?((nu(s)||nu(l))&&e.dirty(),{status:e.value,value:o.data}):(W(t,{code:S.invalid_intersection_types}),ye)};return t.common.async?Promise.all([this._def.left._parseAsync({data:t.data,path:t.path,parent:t}),this._def.right._parseAsync({data:t.data,path:t.path,parent:t})]).then(([s,l])=>i(s,l)):i(this._def.left._parseSync({data:t.data,path:t.path,parent:t}),this._def.right._parseSync({data:t.data,path:t.path,parent:t}))}}qs.create=(r,a,e)=>new qs({left:r,right:a,typeName:pe.ZodIntersection,...Te(e)});class Gi extends Ge{_parse(a){const{status:e,ctx:t}=this._processInputParams(a);if(t.parsedType!==H.array)return W(t,{code:S.invalid_type,expected:H.array,received:t.parsedType}),ye;if(t.data.length<this._def.items.length)return W(t,{code:S.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),ye;!this._def.rest&&t.data.length>this._def.items.length&&(W(t,{code:S.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),e.dirty());const s=[...t.data].map((l,o)=>{const d=this._def.items[o]||this._def.rest;return d?d._parse(new $i(t,l,t.path,o)):null}).filter(l=>!!l);return t.common.async?Promise.all(s).then(l=>Lt.mergeArray(e,l)):Lt.mergeArray(e,s)}get items(){return this._def.items}rest(a){return new Gi({...this._def,rest:a})}}Gi.create=(r,a)=>{if(!Array.isArray(r))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Gi({items:r,typeName:pe.ZodTuple,rest:null,...Te(a)})};class Js extends Ge{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(a){const{status:e,ctx:t}=this._processInputParams(a);if(t.parsedType!==H.object)return W(t,{code:S.invalid_type,expected:H.object,received:t.parsedType}),ye;const i=[],s=this._def.keyType,l=this._def.valueType;for(const o in t.data)i.push({key:s._parse(new $i(t,o,t.path,o)),value:l._parse(new $i(t,t.data[o],t.path,o)),alwaysSet:o in t.data});return t.common.async?Lt.mergeObjectAsync(e,i):Lt.mergeObjectSync(e,i)}get element(){return this._def.valueType}static create(a,e,t){return e instanceof Ge?new Js({keyType:a,valueType:e,typeName:pe.ZodRecord,...Te(t)}):new Js({keyType:Pi.create(),valueType:a,typeName:pe.ZodRecord,...Te(e)})}}class bo extends Ge{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(a){const{status:e,ctx:t}=this._processInputParams(a);if(t.parsedType!==H.map)return W(t,{code:S.invalid_type,expected:H.map,received:t.parsedType}),ye;const i=this._def.keyType,s=this._def.valueType,l=[...t.data.entries()].map(([o,d],u)=>({key:i._parse(new $i(t,o,t.path,[u,"key"])),value:s._parse(new $i(t,d,t.path,[u,"value"]))}));if(t.common.async){const o=new Map;return Promise.resolve().then(async()=>{for(const d of l){const u=await d.key,y=await d.value;if(u.status==="aborted"||y.status==="aborted")return ye;(u.status==="dirty"||y.status==="dirty")&&e.dirty(),o.set(u.value,y.value)}return{status:e.value,value:o}})}else{const o=new Map;for(const d of l){const u=d.key,y=d.value;if(u.status==="aborted"||y.status==="aborted")return ye;(u.status==="dirty"||y.status==="dirty")&&e.dirty(),o.set(u.value,y.value)}return{status:e.value,value:o}}}}bo.create=(r,a,e)=>new bo({valueType:a,keyType:r,typeName:pe.ZodMap,...Te(e)});class cn extends Ge{_parse(a){const{status:e,ctx:t}=this._processInputParams(a);if(t.parsedType!==H.set)return W(t,{code:S.invalid_type,expected:H.set,received:t.parsedType}),ye;const i=this._def;i.minSize!==null&&t.data.size<i.minSize.value&&(W(t,{code:S.too_small,minimum:i.minSize.value,type:"set",inclusive:!0,exact:!1,message:i.minSize.message}),e.dirty()),i.maxSize!==null&&t.data.size>i.maxSize.value&&(W(t,{code:S.too_big,maximum:i.maxSize.value,type:"set",inclusive:!0,exact:!1,message:i.maxSize.message}),e.dirty());const s=this._def.valueType;function l(d){const u=new Set;for(const y of d){if(y.status==="aborted")return ye;y.status==="dirty"&&e.dirty(),u.add(y.value)}return{status:e.value,value:u}}const o=[...t.data.values()].map((d,u)=>s._parse(new $i(t,d,t.path,u)));return t.common.async?Promise.all(o).then(d=>l(d)):l(o)}min(a,e){return new cn({...this._def,minSize:{value:a,message:re.toString(e)}})}max(a,e){return new cn({...this._def,maxSize:{value:a,message:re.toString(e)}})}size(a,e){return this.min(a,e).max(a,e)}nonempty(a){return this.min(1,a)}}cn.create=(r,a)=>new cn({valueType:r,minSize:null,maxSize:null,typeName:pe.ZodSet,...Te(a)});class es extends Ge{constructor(){super(...arguments),this.validate=this.implement}_parse(a){const{ctx:e}=this._processInputParams(a);if(e.parsedType!==H.function)return W(e,{code:S.invalid_type,expected:H.function,received:e.parsedType}),ye;function t(o,d){return vo({data:o,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,mo(),Hn].filter(u=>!!u),issueData:{code:S.invalid_arguments,argumentsError:d}})}function i(o,d){return vo({data:o,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,mo(),Hn].filter(u=>!!u),issueData:{code:S.invalid_return_type,returnTypeError:d}})}const s={errorMap:e.common.contextualErrorMap},l=e.data;if(this._def.returns instanceof ts){const o=this;return qt(async function(...d){const u=new ei([]),y=await o._def.args.parseAsync(d,s).catch(E=>{throw u.addIssue(t(d,E)),u}),c=await Reflect.apply(l,this,y);return await o._def.returns._def.type.parseAsync(c,s).catch(E=>{throw u.addIssue(i(c,E)),u})})}else{const o=this;return qt(function(...d){const u=o._def.args.safeParse(d,s);if(!u.success)throw new ei([t(d,u.error)]);const y=Reflect.apply(l,this,u.data),c=o._def.returns.safeParse(y,s);if(!c.success)throw new ei([i(y,c.error)]);return c.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...a){return new es({...this._def,args:Gi.create(a).rest(pn.create())})}returns(a){return new es({...this._def,returns:a})}implement(a){return this.parse(a)}strictImplement(a){return this.parse(a)}static create(a,e,t){return new es({args:a||Gi.create([]).rest(pn.create()),returns:e||pn.create(),typeName:pe.ZodFunction,...Te(t)})}}class Ws extends Ge{get schema(){return this._def.getter()}_parse(a){const{ctx:e}=this._processInputParams(a);return this._def.getter()._parse({data:e.data,path:e.path,parent:e})}}Ws.create=(r,a)=>new Ws({getter:r,typeName:pe.ZodLazy,...Te(a)});class zs extends Ge{_parse(a){if(a.data!==this._def.value){const e=this._getOrReturnCtx(a);return W(e,{received:e.data,code:S.invalid_literal,expected:this._def.value}),ye}return{status:"valid",value:a.data}}get value(){return this._def.value}}zs.create=(r,a)=>new zs({value:r,typeName:pe.ZodLiteral,...Te(a)});function yE(r,a){return new Dr({values:r,typeName:pe.ZodEnum,...Te(a)})}class Dr extends Ge{constructor(){super(...arguments),Gs.set(this,void 0)}_parse(a){if(typeof a.data!="string"){const e=this._getOrReturnCtx(a),t=this._def.values;return W(e,{expected:We.joinValues(t),received:e.parsedType,code:S.invalid_type}),ye}if(To(this,Gs,"f")||dE(this,Gs,new Set(this._def.values),"f"),!To(this,Gs,"f").has(a.data)){const e=this._getOrReturnCtx(a),t=this._def.values;return W(e,{received:e.data,code:S.invalid_enum_value,options:t}),ye}return qt(a.data)}get options(){return this._def.values}get enum(){const a={};for(const e of this._def.values)a[e]=e;return a}get Values(){const a={};for(const e of this._def.values)a[e]=e;return a}get Enum(){const a={};for(const e of this._def.values)a[e]=e;return a}extract(a,e=this._def){return Dr.create(a,{...this._def,...e})}exclude(a,e=this._def){return Dr.create(this.options.filter(t=>!a.includes(t)),{...this._def,...e})}}Gs=new WeakMap,Dr.create=yE;class Ys extends Ge{constructor(){super(...arguments),Fs.set(this,void 0)}_parse(a){const e=We.getValidEnumValues(this._def.values),t=this._getOrReturnCtx(a);if(t.parsedType!==H.string&&t.parsedType!==H.number){const i=We.objectValues(e);return W(t,{expected:We.joinValues(i),received:t.parsedType,code:S.invalid_type}),ye}if(To(this,Fs,"f")||dE(this,Fs,new Set(We.getValidEnumValues(this._def.values)),"f"),!To(this,Fs,"f").has(a.data)){const i=We.objectValues(e);return W(t,{received:t.data,code:S.invalid_enum_value,options:i}),ye}return qt(a.data)}get enum(){return this._def.values}}Fs=new WeakMap,Ys.create=(r,a)=>new Ys({values:r,typeName:pe.ZodNativeEnum,...Te(a)});class ts extends Ge{unwrap(){return this._def.type}_parse(a){const{ctx:e}=this._processInputParams(a);if(e.parsedType!==H.promise&&e.common.async===!1)return W(e,{code:S.invalid_type,expected:H.promise,received:e.parsedType}),ye;const t=e.parsedType===H.promise?e.data:Promise.resolve(e.data);return qt(t.then(i=>this._def.type.parseAsync(i,{path:e.path,errorMap:e.common.contextualErrorMap})))}}ts.create=(r,a)=>new ts({type:r,typeName:pe.ZodPromise,...Te(a)});class Ci extends Ge{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===pe.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(a){const{status:e,ctx:t}=this._processInputParams(a),i=this._def.effect||null,s={addIssue:l=>{W(t,l),l.fatal?e.abort():e.dirty()},get path(){return t.path}};if(s.addIssue=s.addIssue.bind(s),i.type==="preprocess"){const l=i.transform(t.data,s);if(t.common.async)return Promise.resolve(l).then(async o=>{if(e.value==="aborted")return ye;const d=await this._def.schema._parseAsync({data:o,path:t.path,parent:t});return d.status==="aborted"?ye:d.status==="dirty"||e.value==="dirty"?Kn(d.value):d});{if(e.value==="aborted")return ye;const o=this._def.schema._parseSync({data:l,path:t.path,parent:t});return o.status==="aborted"?ye:o.status==="dirty"||e.value==="dirty"?Kn(o.value):o}}if(i.type==="refinement"){const l=o=>{const d=i.refinement(o,s);if(t.common.async)return Promise.resolve(d);if(d instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return o};if(t.common.async===!1){const o=this._def.schema._parseSync({data:t.data,path:t.path,parent:t});return o.status==="aborted"?ye:(o.status==="dirty"&&e.dirty(),l(o.value),{status:e.value,value:o.value})}else return this._def.schema._parseAsync({data:t.data,path:t.path,parent:t}).then(o=>o.status==="aborted"?ye:(o.status==="dirty"&&e.dirty(),l(o.value).then(()=>({status:e.value,value:o.value}))))}if(i.type==="transform")if(t.common.async===!1){const l=this._def.schema._parseSync({data:t.data,path:t.path,parent:t});if(!dn(l))return l;const o=i.transform(l.value,s);if(o instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:e.value,value:o}}else return this._def.schema._parseAsync({data:t.data,path:t.path,parent:t}).then(l=>dn(l)?Promise.resolve(i.transform(l.value,s)).then(o=>({status:e.value,value:o})):l);We.assertNever(i)}}Ci.create=(r,a,e)=>new Ci({schema:r,typeName:pe.ZodEffects,effect:a,...Te(e)}),Ci.createWithPreprocess=(r,a,e)=>new Ci({schema:a,effect:{type:"preprocess",transform:r},typeName:pe.ZodEffects,...Te(e)});class Fi extends Ge{_parse(a){return this._getType(a)===H.undefined?qt(void 0):this._def.innerType._parse(a)}unwrap(){return this._def.innerType}}Fi.create=(r,a)=>new Fi({innerType:r,typeName:pe.ZodOptional,...Te(a)});class Or extends Ge{_parse(a){return this._getType(a)===H.null?qt(null):this._def.innerType._parse(a)}unwrap(){return this._def.innerType}}Or.create=(r,a)=>new Or({innerType:r,typeName:pe.ZodNullable,...Te(a)});class Hs extends Ge{_parse(a){const{ctx:e}=this._processInputParams(a);let t=e.data;return e.parsedType===H.undefined&&(t=this._def.defaultValue()),this._def.innerType._parse({data:t,path:e.path,parent:e})}removeDefault(){return this._def.innerType}}Hs.create=(r,a)=>new Hs({innerType:r,typeName:pe.ZodDefault,defaultValue:typeof a.default=="function"?a.default:()=>a.default,...Te(a)});class Ks extends Ge{_parse(a){const{ctx:e}=this._processInputParams(a),t={...e,common:{...e.common,issues:[]}},i=this._def.innerType._parse({data:t.data,path:t.path,parent:{...t}});return $s(i)?i.then(s=>({status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new ei(t.common.issues)},input:t.data})})):{status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new ei(t.common.issues)},input:t.data})}}removeCatch(){return this._def.innerType}}Ks.create=(r,a)=>new Ks({innerType:r,typeName:pe.ZodCatch,catchValue:typeof a.catch=="function"?a.catch:()=>a.catch,...Te(a)});class Ro extends Ge{_parse(a){if(this._getType(a)!==H.nan){const t=this._getOrReturnCtx(a);return W(t,{code:S.invalid_type,expected:H.nan,received:t.parsedType}),ye}return{status:"valid",value:a.data}}}Ro.create=r=>new Ro({typeName:pe.ZodNaN,...Te(r)});const Xw=Symbol("zod_brand");class ou extends Ge{_parse(a){const{ctx:e}=this._processInputParams(a),t=e.data;return this._def.type._parse({data:t,path:e.path,parent:e})}unwrap(){return this._def.type}}class Xs extends Ge{_parse(a){const{status:e,ctx:t}=this._processInputParams(a);if(t.common.async)return(async()=>{const s=await this._def.in._parseAsync({data:t.data,path:t.path,parent:t});return s.status==="aborted"?ye:s.status==="dirty"?(e.dirty(),Kn(s.value)):this._def.out._parseAsync({data:s.value,path:t.path,parent:t})})();{const i=this._def.in._parseSync({data:t.data,path:t.path,parent:t});return i.status==="aborted"?ye:i.status==="dirty"?(e.dirty(),{status:"dirty",value:i.value}):this._def.out._parseSync({data:i.value,path:t.path,parent:t})}}static create(a,e){return new Xs({in:a,out:e,typeName:pe.ZodPipeline})}}class Qs extends Ge{_parse(a){const e=this._def.innerType._parse(a),t=i=>(dn(i)&&(i.value=Object.freeze(i.value)),i);return $s(e)?e.then(i=>t(i)):t(e)}unwrap(){return this._def.innerType}}Qs.create=(r,a)=>new Qs({innerType:r,typeName:pe.ZodReadonly,...Te(a)});function hE(r,a={},e){return r?Xn.create().superRefine((t,i)=>{var s,l;if(!r(t)){const o=typeof a=="function"?a(t):typeof a=="string"?{message:a}:a,d=(l=(s=o.fatal)!==null&&s!==void 0?s:e)!==null&&l!==void 0?l:!0,u=typeof o=="string"?{message:o}:o;i.addIssue({code:"custom",...u,fatal:d})}}):Xn.create()}const Qw={object:It.lazycreate};var pe;(function(r){r.ZodString="ZodString",r.ZodNumber="ZodNumber",r.ZodNaN="ZodNaN",r.ZodBigInt="ZodBigInt",r.ZodBoolean="ZodBoolean",r.ZodDate="ZodDate",r.ZodSymbol="ZodSymbol",r.ZodUndefined="ZodUndefined",r.ZodNull="ZodNull",r.ZodAny="ZodAny",r.ZodUnknown="ZodUnknown",r.ZodNever="ZodNever",r.ZodVoid="ZodVoid",r.ZodArray="ZodArray",r.ZodObject="ZodObject",r.ZodUnion="ZodUnion",r.ZodDiscriminatedUnion="ZodDiscriminatedUnion",r.ZodIntersection="ZodIntersection",r.ZodTuple="ZodTuple",r.ZodRecord="ZodRecord",r.ZodMap="ZodMap",r.ZodSet="ZodSet",r.ZodFunction="ZodFunction",r.ZodLazy="ZodLazy",r.ZodLiteral="ZodLiteral",r.ZodEnum="ZodEnum",r.ZodEffects="ZodEffects",r.ZodNativeEnum="ZodNativeEnum",r.ZodOptional="ZodOptional",r.ZodNullable="ZodNullable",r.ZodDefault="ZodDefault",r.ZodCatch="ZodCatch",r.ZodPromise="ZodPromise",r.ZodBranded="ZodBranded",r.ZodPipeline="ZodPipeline",r.ZodReadonly="ZodReadonly"})(pe||(pe={}));const eC=(r,a={message:`Input not instance of ${r.name}`})=>hE(e=>e instanceof r,a),Do=Pi.create,lu=br.create,tC=Ro.create,iC=Rr.create,du=xs.create,mE=un.create,rC=Io.create,nC=ks.create,vE=Ss.create,sC=Xn.create,Oo=pn.create,aC=ar.create,oC=Eo.create,lC=wi.create,TE=It.create,dC=It.strictCreate,uC=Zs.create,pC=Ao.create,cC=qs.create,fC=Gi.create,IE=Js.create,yC=bo.create,hC=cn.create,mC=es.create,vC=Ws.create,TC=zs.create,EE=Dr.create,IC=Ys.create,EC=ts.create,AE=Ci.create,AC=Fi.create,bC=Or.create,RC=Ci.createWithPreprocess,DC=Xs.create;var v=Object.freeze({__proto__:null,defaultErrorMap:Hn,setErrorMap:Vw,getErrorMap:mo,makeIssue:vo,EMPTY_PATH:Bw,addIssueToContext:W,ParseStatus:Lt,INVALID:ye,DIRTY:Kn,OK:qt,isAborted:ru,isDirty:nu,isValid:dn,isAsync:$s,get util(){return We},get objectUtil(){return iu},ZodParsedType:H,getParsedType:sr,ZodType:Ge,datetimeRegex:fE,ZodString:Pi,ZodNumber:br,ZodBigInt:Rr,ZodBoolean:xs,ZodDate:un,ZodSymbol:Io,ZodUndefined:ks,ZodNull:Ss,ZodAny:Xn,ZodUnknown:pn,ZodNever:ar,ZodVoid:Eo,ZodArray:wi,ZodObject:It,ZodUnion:Zs,ZodDiscriminatedUnion:Ao,ZodIntersection:qs,ZodTuple:Gi,ZodRecord:Js,ZodMap:bo,ZodSet:cn,ZodFunction:es,ZodLazy:Ws,ZodLiteral:zs,ZodEnum:Dr,ZodNativeEnum:Ys,ZodPromise:ts,ZodEffects:Ci,ZodTransformer:Ci,ZodOptional:Fi,ZodNullable:Or,ZodDefault:Hs,ZodCatch:Ks,ZodNaN:Ro,BRAND:Xw,ZodBranded:ou,ZodPipeline:Xs,ZodReadonly:Qs,custom:hE,Schema:Ge,ZodSchema:Ge,late:Qw,get ZodFirstPartyTypeKind(){return pe},coerce:{string:r=>Pi.create({...r,coerce:!0}),number:r=>br.create({...r,coerce:!0}),boolean:r=>xs.create({...r,coerce:!0}),bigint:r=>Rr.create({...r,coerce:!0}),date:r=>un.create({...r,coerce:!0})},any:sC,array:lC,bigint:iC,boolean:du,date:mE,discriminatedUnion:pC,effect:AE,enum:EE,function:mC,instanceof:eC,intersection:cC,lazy:vC,literal:TC,map:yC,nan:tC,nativeEnum:IC,never:aC,null:vE,nullable:bC,number:lu,object:TE,oboolean:()=>du().optional(),onumber:()=>lu().optional(),optional:AC,ostring:()=>Do().optional(),pipeline:DC,preprocess:RC,promise:EC,record:IE,set:hC,strictObject:dC,string:Do,symbol:rC,transformer:AE,tuple:fC,undefined:nC,union:uC,unknown:Oo,void:oC,NEVER:ye,ZodIssueCode:S,quotelessJson:Cw,ZodError:ei});function bE(r){var i,s,l;if(!(r!=null&&r.dataType))return Oo();const a=!r.required,e=r.dataType.isList||!1;let t=Oo();if(((i=r.dataType.entity)==null?void 0:i.type)===n.PrimitiveEntity)switch(r.dataType.entity.name){case L.String:t=Do();break;case L.KeyValue:t=IE(Oo());break;case L.Number:t=lu();break;case L.Boolean:t=du();break;case L.Date:t=mE();break;case L.Enum:{const o=r.dataType.options||[];if(o.length===0)throw new Error(`Enum property ${r.name} has no options`);t=EE(o);break}case L.Null:t=vE();break;case L.UUID:t=Do().uuid();break}else if(((s=r.dataType.entity)==null?void 0:s.type)===n.DefinitionEntity)t=RE(r.dataType.entity);else throw new Error(`Unsupported data type validation: ${(l=r.dataType.entity)==null?void 0:l.type}`);return a&&(t=t.nullable()),e&&(t=t.array()),t}function RE(r){const a=TE({});for(const e of r.properties){const t=bE(e);a.shape[e.name]=t}return a}function DE(r){const a=r.rangeStart;return new Date(a.getTime()+Math.random()*(Date.now()-a.getTime()))}function OE(r){const a=r.rangeEnd;return new Date(Math.random()*a.getTime())}function PE(r){const a=r.rangeStart,e=r.rangeEnd;return new Date(a.getTime()+Math.random()*(e.getTime()-a.getTime()))}function wE(r){return r.rangeStart&&r.rangeEnd?PE(r):r.rangeStart?DE(r):r.rangeEnd?OE(r):new Date}var OC=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function CE(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var VE={},Po={},wo={};Object.defineProperty(wo,"__esModule",{value:!0}),wo.default=wC;let Co;const PC=new Uint8Array(16);function wC(){if(!Co&&(Co=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Co))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Co(PC)}var Pr={},fn={},Vo={};Object.defineProperty(Vo,"__esModule",{value:!0}),Vo.default=void 0;var CC=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;Vo.default=CC,Object.defineProperty(fn,"__esModule",{value:!0}),fn.default=void 0;var VC=BC(Vo);function BC(r){return r&&r.__esModule?r:{default:r}}function _C(r){return typeof r=="string"&&VC.default.test(r)}var MC=_C;fn.default=MC,Object.defineProperty(Pr,"__esModule",{value:!0}),Pr.default=void 0,Pr.unsafeStringify=BE;var NC=LC(fn);function LC(r){return r&&r.__esModule?r:{default:r}}const Nt=[];for(let r=0;r<256;++r)Nt.push((r+256).toString(16).slice(1));function BE(r,a=0){return Nt[r[a+0]]+Nt[r[a+1]]+Nt[r[a+2]]+Nt[r[a+3]]+"-"+Nt[r[a+4]]+Nt[r[a+5]]+"-"+Nt[r[a+6]]+Nt[r[a+7]]+"-"+Nt[r[a+8]]+Nt[r[a+9]]+"-"+Nt[r[a+10]]+Nt[r[a+11]]+Nt[r[a+12]]+Nt[r[a+13]]+Nt[r[a+14]]+Nt[r[a+15]]}function UC(r,a=0){const e=BE(r,a);if(!(0,NC.default)(e))throw TypeError("Stringified UUID is invalid");return e}var gC=UC;Pr.default=gC,Object.defineProperty(Po,"__esModule",{value:!0}),Po.default=void 0;var jC=GC(wo),$C=Pr;function GC(r){return r&&r.__esModule?r:{default:r}}let _E,uu,pu=0,cu=0;function FC(r,a,e){let t=a&&e||0;const i=a||new Array(16);r=r||{};let s=r.node||_E,l=r.clockseq!==void 0?r.clockseq:uu;if(s==null||l==null){const I=r.random||(r.rng||jC.default)();s==null&&(s=_E=[I[0]|1,I[1],I[2],I[3],I[4],I[5]]),l==null&&(l=uu=(I[6]<<8|I[7])&16383)}let o=r.msecs!==void 0?r.msecs:Date.now(),d=r.nsecs!==void 0?r.nsecs:cu+1;const u=o-pu+(d-cu)/1e4;if(u<0&&r.clockseq===void 0&&(l=l+1&16383),(u<0||o>pu)&&r.nsecs===void 0&&(d=0),d>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");pu=o,cu=d,uu=l,o+=122192928e5;const y=((o&268435455)*1e4+d)%4294967296;i[t++]=y>>>24&255,i[t++]=y>>>16&255,i[t++]=y>>>8&255,i[t++]=y&255;const c=o/4294967296*1e4&268435455;i[t++]=c>>>8&255,i[t++]=c&255,i[t++]=c>>>24&15|16,i[t++]=c>>>16&255,i[t++]=l>>>8|128,i[t++]=l&255;for(let I=0;I<6;++I)i[t+I]=s[I];return a||(0,$C.unsafeStringify)(i)}var xC=FC;Po.default=xC;var Bo={},wr={},ea={};Object.defineProperty(ea,"__esModule",{value:!0}),ea.default=void 0;var kC=SC(fn);function SC(r){return r&&r.__esModule?r:{default:r}}function ZC(r){if(!(0,kC.default)(r))throw TypeError("Invalid UUID");let a;const e=new Uint8Array(16);return e[0]=(a=parseInt(r.slice(0,8),16))>>>24,e[1]=a>>>16&255,e[2]=a>>>8&255,e[3]=a&255,e[4]=(a=parseInt(r.slice(9,13),16))>>>8,e[5]=a&255,e[6]=(a=parseInt(r.slice(14,18),16))>>>8,e[7]=a&255,e[8]=(a=parseInt(r.slice(19,23),16))>>>8,e[9]=a&255,e[10]=(a=parseInt(r.slice(24,36),16))/1099511627776&255,e[11]=a/4294967296&255,e[12]=a>>>24&255,e[13]=a>>>16&255,e[14]=a>>>8&255,e[15]=a&255,e}var qC=ZC;ea.default=qC,Object.defineProperty(wr,"__esModule",{value:!0}),wr.URL=wr.DNS=void 0,wr.default=HC;var JC=Pr,WC=zC(ea);function zC(r){return r&&r.__esModule?r:{default:r}}function YC(r){r=unescape(encodeURIComponent(r));const a=[];for(let e=0;e<r.length;++e)a.push(r.charCodeAt(e));return a}const ME="6ba7b810-9dad-11d1-80b4-00c04fd430c8";wr.DNS=ME;const NE="6ba7b811-9dad-11d1-80b4-00c04fd430c8";wr.URL=NE;function HC(r,a,e){function t(i,s,l,o){var d;if(typeof i=="string"&&(i=YC(i)),typeof s=="string"&&(s=(0,WC.default)(s)),((d=s)===null||d===void 0?void 0:d.length)!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let u=new Uint8Array(16+i.length);if(u.set(s),u.set(i,s.length),u=e(u),u[6]=u[6]&15|a,u[8]=u[8]&63|128,l){o=o||0;for(let y=0;y<16;++y)l[o+y]=u[y];return l}return(0,JC.unsafeStringify)(u)}try{t.name=r}catch{}return t.DNS=ME,t.URL=NE,t}var _o={};Object.defineProperty(_o,"__esModule",{value:!0}),_o.default=void 0;function KC(r){if(typeof r=="string"){const a=unescape(encodeURIComponent(r));r=new Uint8Array(a.length);for(let e=0;e<a.length;++e)r[e]=a.charCodeAt(e)}return XC(QC(eV(r),r.length*8))}function XC(r){const a=[],e=r.length*32,t="0123456789abcdef";for(let i=0;i<e;i+=8){const s=r[i>>5]>>>i%32&255,l=parseInt(t.charAt(s>>>4&15)+t.charAt(s&15),16);a.push(l)}return a}function LE(r){return(r+64>>>9<<4)+14+1}function QC(r,a){r[a>>5]|=128<<a%32,r[LE(a)-1]=a;let e=1732584193,t=-271733879,i=-1732584194,s=271733878;for(let l=0;l<r.length;l+=16){const o=e,d=t,u=i,y=s;e=Ut(e,t,i,s,r[l],7,-680876936),s=Ut(s,e,t,i,r[l+1],12,-389564586),i=Ut(i,s,e,t,r[l+2],17,606105819),t=Ut(t,i,s,e,r[l+3],22,-1044525330),e=Ut(e,t,i,s,r[l+4],7,-176418897),s=Ut(s,e,t,i,r[l+5],12,1200080426),i=Ut(i,s,e,t,r[l+6],17,-1473231341),t=Ut(t,i,s,e,r[l+7],22,-45705983),e=Ut(e,t,i,s,r[l+8],7,1770035416),s=Ut(s,e,t,i,r[l+9],12,-1958414417),i=Ut(i,s,e,t,r[l+10],17,-42063),t=Ut(t,i,s,e,r[l+11],22,-1990404162),e=Ut(e,t,i,s,r[l+12],7,1804603682),s=Ut(s,e,t,i,r[l+13],12,-40341101),i=Ut(i,s,e,t,r[l+14],17,-1502002290),t=Ut(t,i,s,e,r[l+15],22,1236535329),e=gt(e,t,i,s,r[l+1],5,-165796510),s=gt(s,e,t,i,r[l+6],9,-1069501632),i=gt(i,s,e,t,r[l+11],14,643717713),t=gt(t,i,s,e,r[l],20,-373897302),e=gt(e,t,i,s,r[l+5],5,-701558691),s=gt(s,e,t,i,r[l+10],9,38016083),i=gt(i,s,e,t,r[l+15],14,-660478335),t=gt(t,i,s,e,r[l+4],20,-405537848),e=gt(e,t,i,s,r[l+9],5,568446438),s=gt(s,e,t,i,r[l+14],9,-1019803690),i=gt(i,s,e,t,r[l+3],14,-187363961),t=gt(t,i,s,e,r[l+8],20,1163531501),e=gt(e,t,i,s,r[l+13],5,-1444681467),s=gt(s,e,t,i,r[l+2],9,-51403784),i=gt(i,s,e,t,r[l+7],14,1735328473),t=gt(t,i,s,e,r[l+12],20,-1926607734),e=jt(e,t,i,s,r[l+5],4,-378558),s=jt(s,e,t,i,r[l+8],11,-2022574463),i=jt(i,s,e,t,r[l+11],16,1839030562),t=jt(t,i,s,e,r[l+14],23,-35309556),e=jt(e,t,i,s,r[l+1],4,-1530992060),s=jt(s,e,t,i,r[l+4],11,1272893353),i=jt(i,s,e,t,r[l+7],16,-155497632),t=jt(t,i,s,e,r[l+10],23,-1094730640),e=jt(e,t,i,s,r[l+13],4,681279174),s=jt(s,e,t,i,r[l],11,-358537222),i=jt(i,s,e,t,r[l+3],16,-722521979),t=jt(t,i,s,e,r[l+6],23,76029189),e=jt(e,t,i,s,r[l+9],4,-640364487),s=jt(s,e,t,i,r[l+12],11,-421815835),i=jt(i,s,e,t,r[l+15],16,530742520),t=jt(t,i,s,e,r[l+2],23,-995338651),e=$t(e,t,i,s,r[l],6,-198630844),s=$t(s,e,t,i,r[l+7],10,1126891415),i=$t(i,s,e,t,r[l+14],15,-1416354905),t=$t(t,i,s,e,r[l+5],21,-57434055),e=$t(e,t,i,s,r[l+12],6,1700485571),s=$t(s,e,t,i,r[l+3],10,-1894986606),i=$t(i,s,e,t,r[l+10],15,-1051523),t=$t(t,i,s,e,r[l+1],21,-2054922799),e=$t(e,t,i,s,r[l+8],6,1873313359),s=$t(s,e,t,i,r[l+15],10,-30611744),i=$t(i,s,e,t,r[l+6],15,-1560198380),t=$t(t,i,s,e,r[l+13],21,1309151649),e=$t(e,t,i,s,r[l+4],6,-145523070),s=$t(s,e,t,i,r[l+11],10,-1120210379),i=$t(i,s,e,t,r[l+2],15,718787259),t=$t(t,i,s,e,r[l+9],21,-343485551),e=Cr(e,o),t=Cr(t,d),i=Cr(i,u),s=Cr(s,y)}return[e,t,i,s]}function eV(r){if(r.length===0)return[];const a=r.length*8,e=new Uint32Array(LE(a));for(let t=0;t<a;t+=8)e[t>>5]|=(r[t/8]&255)<<t%32;return e}function Cr(r,a){const e=(r&65535)+(a&65535);return(r>>16)+(a>>16)+(e>>16)<<16|e&65535}function tV(r,a){return r<<a|r>>>32-a}function Mo(r,a,e,t,i,s){return Cr(tV(Cr(Cr(a,r),Cr(t,s)),i),e)}function Ut(r,a,e,t,i,s,l){return Mo(a&e|~a&t,r,a,i,s,l)}function gt(r,a,e,t,i,s,l){return Mo(a&t|e&~t,r,a,i,s,l)}function jt(r,a,e,t,i,s,l){return Mo(a^e^t,r,a,i,s,l)}function $t(r,a,e,t,i,s,l){return Mo(e^(a|~t),r,a,i,s,l)}var iV=KC;_o.default=iV,Object.defineProperty(Bo,"__esModule",{value:!0}),Bo.default=void 0;var rV=UE(wr),nV=UE(_o);function UE(r){return r&&r.__esModule?r:{default:r}}var sV=(0,rV.default)("v3",48,nV.default);Bo.default=sV;var No={},Lo={};Object.defineProperty(Lo,"__esModule",{value:!0}),Lo.default=void 0;var aV={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};Lo.default=aV,Object.defineProperty(No,"__esModule",{value:!0}),No.default=void 0;var gE=jE(Lo),oV=jE(wo),lV=Pr;function jE(r){return r&&r.__esModule?r:{default:r}}function dV(r,a,e){if(gE.default.randomUUID&&!a&&!r)return gE.default.randomUUID();r=r||{};const t=r.random||(r.rng||oV.default)();if(t[6]=t[6]&15|64,t[8]=t[8]&63|128,a){e=e||0;for(let i=0;i<16;++i)a[e+i]=t[i];return a}return(0,lV.unsafeStringify)(t)}var uV=dV;No.default=uV;var Uo={},go={};Object.defineProperty(go,"__esModule",{value:!0}),go.default=void 0;function pV(r,a,e,t){switch(r){case 0:return a&e^~a&t;case 1:return a^e^t;case 2:return a&e^a&t^e&t;case 3:return a^e^t}}function fu(r,a){return r<<a|r>>>32-a}function cV(r){const a=[1518500249,1859775393,2400959708,3395469782],e=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof r=="string"){const l=unescape(encodeURIComponent(r));r=[];for(let o=0;o<l.length;++o)r.push(l.charCodeAt(o))}else Array.isArray(r)||(r=Array.prototype.slice.call(r));r.push(128);const t=r.length/4+2,i=Math.ceil(t/16),s=new Array(i);for(let l=0;l<i;++l){const o=new Uint32Array(16);for(let d=0;d<16;++d)o[d]=r[l*64+d*4]<<24|r[l*64+d*4+1]<<16|r[l*64+d*4+2]<<8|r[l*64+d*4+3];s[l]=o}s[i-1][14]=(r.length-1)*8/Math.pow(2,32),s[i-1][14]=Math.floor(s[i-1][14]),s[i-1][15]=(r.length-1)*8&4294967295;for(let l=0;l<i;++l){const o=new Uint32Array(80);for(let E=0;E<16;++E)o[E]=s[l][E];for(let E=16;E<80;++E)o[E]=fu(o[E-3]^o[E-8]^o[E-14]^o[E-16],1);let d=e[0],u=e[1],y=e[2],c=e[3],I=e[4];for(let E=0;E<80;++E){const O=Math.floor(E/20),P=fu(d,5)+pV(O,u,y,c)+I+a[O]+o[E]>>>0;I=c,c=y,y=fu(u,30)>>>0,u=d,d=P}e[0]=e[0]+d>>>0,e[1]=e[1]+u>>>0,e[2]=e[2]+y>>>0,e[3]=e[3]+c>>>0,e[4]=e[4]+I>>>0}return[e[0]>>24&255,e[0]>>16&255,e[0]>>8&255,e[0]&255,e[1]>>24&255,e[1]>>16&255,e[1]>>8&255,e[1]&255,e[2]>>24&255,e[2]>>16&255,e[2]>>8&255,e[2]&255,e[3]>>24&255,e[3]>>16&255,e[3]>>8&255,e[3]&255,e[4]>>24&255,e[4]>>16&255,e[4]>>8&255,e[4]&255]}var fV=cV;go.default=fV,Object.defineProperty(Uo,"__esModule",{value:!0}),Uo.default=void 0;var yV=$E(wr),hV=$E(go);function $E(r){return r&&r.__esModule?r:{default:r}}var mV=(0,yV.default)("v5",80,hV.default);Uo.default=mV;var jo={};Object.defineProperty(jo,"__esModule",{value:!0}),jo.default=void 0;var vV="00000000-0000-0000-0000-000000000000";jo.default=vV;var $o={};Object.defineProperty($o,"__esModule",{value:!0}),$o.default=void 0;var TV=IV(fn);function IV(r){return r&&r.__esModule?r:{default:r}}function EV(r){if(!(0,TV.default)(r))throw TypeError("Invalid UUID");return parseInt(r.slice(14,15),16)}var AV=EV;$o.default=AV,function(r){Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"NIL",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(r,"parse",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(r,"stringify",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(r,"v1",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(r,"v3",{enumerable:!0,get:function(){return e.default}}),Object.defineProperty(r,"v4",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(r,"v5",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(r,"validate",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(r,"version",{enumerable:!0,get:function(){return l.default}});var a=y(Po),e=y(Bo),t=y(No),i=y(Uo),s=y(jo),l=y($o),o=y(fn),d=y(Pr),u=y(ea);function y(c){return c&&c.__esModule?c:{default:c}}}(VE);function yu(r,a){if(!r||!a||!r.length||!a.length)throw new Error("Bad alphabet");this.srcAlphabet=r,this.dstAlphabet=a}yu.prototype.convert=function(r){var a,e,t,i={},s=this.srcAlphabet.length,l=this.dstAlphabet.length,o=r.length,d=typeof r=="string"?"":[];if(!this.isValid(r))throw new Error('Number "'+r+'" contains of non-alphabetic digits ('+this.srcAlphabet+")");if(this.srcAlphabet===this.dstAlphabet)return r;for(a=0;a<o;a++)i[a]=this.srcAlphabet.indexOf(r[a]);do{for(e=0,t=0,a=0;a<o;a++)e=e*s+i[a],e>=l?(i[t++]=parseInt(e/l,10),e=e%l):t>0&&(i[t++]=0);o=t,d=this.dstAlphabet.slice(e,e+1).concat(d)}while(t!==0);return d},yu.prototype.isValid=function(r){for(var a=0;a<r.length;++a)if(this.srcAlphabet.indexOf(r[a])===-1)return!1;return!0};var bV=yu,RV=bV;function ta(r,a){var e=new RV(r,a);return function(t){return e.convert(t)}}ta.BIN="01",ta.OCT="01234567",ta.DEC="0123456789",ta.HEX="0123456789abcdef";var DV=ta;const{v4:hu,validate:OV}=VE,Go=DV,mu={cookieBase90:"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!#$%&'()*+-./:<=>?@[]^_`{|}~",flickrBase58:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ",uuid25Base36:"0123456789abcdefghijklmnopqrstuvwxyz"},PV={consistentLength:!0};let vu;const GE=(r,a,e)=>{const t=a(r.toLowerCase().replace(/-/g,""));return!e||!e.consistentLength?t:t.padStart(e.shortIdLength,e.paddingChar)},FE=(r,a)=>{const t=a(r).padStart(32,"0").match(/(\w{8})(\w{4})(\w{4})(\w{4})(\w{12})/);return[t[1],t[2],t[3],t[4],t[5]].join("-")},wV=r=>Math.ceil(Math.log(2**128)/Math.log(r));var CV=(()=>{const r=(a,e)=>{const t=a||mu.flickrBase58,i={...PV,...e};if([...new Set(Array.from(t))].length!==t.length)throw new Error("The provided Alphabet has duplicate characters resulting in unreliable results");const s=wV(t.length),l={shortIdLength:s,consistentLength:i.consistentLength,paddingChar:t[0]},o=Go(Go.HEX,t),d=Go(t,Go.HEX),u=()=>GE(hu(),o,l),c={alphabet:t,fromUUID:I=>GE(I,o,l),maxLength:s,generate:u,new:u,toUUID:I=>FE(I,d),uuid:hu,validate:(I,E=!1)=>{if(!I||typeof I!="string")return!1;const O=i.consistentLength?I.length===s:I.length<=s,P=I.split("").every(V=>t.includes(V));return E===!1?O&&P:O&&P&&OV(FE(I,d))}};return Object.freeze(c),c};return r.constants=mu,r.uuid=hu,r.generate=()=>(vu||(vu=r(mu.flickrBase58).generate),vu()),r})();const Fo=CE(CV);function xE(){return Fo().uuid()}function kE(r){return r.rangeStart+Math.random()}function SE(r){const a=r.rangeEnd;return Math.random()*a}function ZE(r){const a=r.rangeStart,e=r.rangeEnd;return Math.random()*(e-a)+a}function qE(r){return r.rangeStart&&r.rangeEnd?ZE(r):r.rangeStart?kE(r):r.rangeEnd?SE(r):Math.random()}function JE(r){const a=r.rangeStart;return Math.random().toString(36).substring(a)}function WE(r){const a=r.rangeEnd;return Math.random().toString(36).substring(0,a)}function zE(r){const a=r.rangeStart,e=r.rangeEnd;return Math.random().toString(36).substring(a,e)}function YE(r){return r.rangeStart&&r.rangeEnd?zE(r):r.rangeStart?JE(r):r.rangeEnd?WE(r):Math.random().toString(36)}function HE(r){return Math.random()>=.5}function VV(r){if(!r||!r.autogeneration)return null;switch(r.autogeneration.type){case vt.CurrentDateAndTime:if(r.name===L.Date)return new Date;case vt.Random:{if(r.name===L.Date)return wE(r.autogeneration);if(r.name===L.Number)return qE(r.autogeneration);if(r.name===L.String)return YE(r.autogeneration);if(r.name===L.Boolean)return HE(r.autogeneration)}case vt.Unique:if(r.name===L.UUID)return xE();default:throw new Error(`Generating a ${r.autogeneration.type} value for a ${r.name} is not supported`)}}const ce="e7eb5382-3d99-44fd-972a-b8b1e819f6be",KE="global-user-variable-id",Tu="last-executed-timestamp-variable-id",BV={id:"alternative-relational-database-entity-identifier-property-data-type-ref-id",type:n.GenericReference,entityId:"alternative-relational-database-entity-identifier-property-id",version:"1",entityType:n.ValueDescriptor},_V={id:"alternative-relational-database-entity-identifier-property-ref-id",type:n.GenericReference,entityId:"alternative-relational-database-entity-identifier-property-id",version:"1",entityType:n.Property},MV={like:!1,inferred:!1,id:"alternative-relational-database-entity-identifier-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:se,asType:!1,parent:_V},xo={id:"alternative-relational-database-entity-ref-id",type:n.GenericReference,entityId:"alternative-relational-database-entity-id",version:"1",entityType:n.DefinitionEntity},NV={constant:!1,hidden:!1,required:!0,id:"alternative-relational-database-entity-identifier-property-id",name:"Identifier name",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,implements:oo,static:!0,index:0,defaultValue:{id:"alternative-relational-database-entity-identifier-property-data-type-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.String,value:null,parent:BV,autogeneration:{type:vt.Unique,rangeStart:null,rangeEnd:null},valueAsTypeList:null,valueAsTypeSingle:null},dataType:MV,description:"The name of the main database inside of the server instance where the data will be stored.",parent:xo};n.GenericReference,n.ValueDescriptor;const LV={id:"alternative-relational-database-entity-username-property-ref-id",type:n.GenericReference,entityId:"alternative-relational-database-entity-username-property-id",version:"1",entityType:n.Property},UV={like:!1,inferred:!1,id:"alternative-relational-database-entity-username-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:se,asType:!1,parent:LV},gV={constant:!1,hidden:!1,required:!0,id:"alternative-relational-database-entity-username-property-id",name:"Username",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,implements:lo,static:!0,index:1,defaultValue:null,dataType:UV,description:"The username that will be used to connect to the database.",parent:xo};n.GenericReference,n.ValueDescriptor;const jV={id:"alternative-relational-database-entity-password-property-ref-id",type:n.GenericReference,entityId:"alternative-relational-database-entity-password-property-id",version:"1",entityType:n.Property},$V={like:!1,inferred:!1,id:"alternative-relational-database-entity-password-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:se,asType:!1,parent:jV},GV={constant:!1,hidden:!1,required:!0,id:"alternative-relational-database-entity-password-property-id",name:"Password",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,implements:uo,static:!0,index:2,defaultValue:null,dataType:$V,description:"The password that will be used to connect to the database.",parent:xo},FV={id:"alternative-relational-database-entity-min-size-property-data-type-ref-id",type:n.GenericReference,entityId:"alternative-relational-database-entity-min-size-property-id",version:"1",entityType:n.ValueDescriptor},xV={id:"alternative-relational-database-entity-min-size-property-ref-id",type:n.GenericReference,entityId:"alternative-relational-database-entity-min-size-property-id",version:"1",entityType:n.Property},kV={like:!1,inferred:!1,id:"alternative-relational-database-entity-min-size-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ve,asType:!1,parent:xV},SV={constant:!1,hidden:!1,required:!0,id:"alternative-relational-database-entity-min-size-property-id",name:"Minimum GB size",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,implements:po,static:!0,index:3,defaultValue:{id:"alternative-relational-database-entity-min-size-property-data-type-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.Number,value:6,parent:FV,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},dataType:kV,description:"The minimum size of the database in GB.",parent:xo},ZV={id:"alternative-relational-database-entity-parent-ref-id",type:n.GenericReference,entityId:ce,version:"1",entityType:n.Project},Iu={id:"alternative-relational-database-entity-id",type:n.DefinitionEntity,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Alternative relational Database",description:"A database that permanently stores the persisted entities attached to it.",abstract:!1,static:!0,properties:[NV,gV,GV,SV],methods:[],abstractMethods:[],extends:[],implements:[ji],x:0,y:0,parent:ZV},qV={id:"animal-prototype-database-property-ref-id",type:n.GenericReference,entityId:"animal-prototype-database-property-id",version:"1",entityType:n.Property},JV={id:"animal-prototype-database-property-data-type-default-value-parent-ref-id",type:n.GenericReference,entityId:"animal-prototype-database-property-id",version:"1",entityType:n.Property},WV={like:!1,inferred:!1,id:"animal-prototype-database-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ji,asType:!1,parent:qV},zV={id:"animal-prototype-database-property-parent-ref-id",type:n.GenericReference,entityId:"83eaa847-e62b-4192-84fb-3d8d6f5ea970",version:"1",entityType:n.DefinitionEntity},YV={constant:!1,hidden:!1,required:!0,id:"animal-prototype-database-property-id",name:"Database",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,implements:Jn,static:!0,index:0,defaultValue:{id:"animal-prototype-database-property-data-type-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:null,name:L.EntityTemplate,valueAsTypeList:null,valueAsTypeSingle:Iu,autogeneration:null,parent:JV},dataType:WV,description:"The database that the entity belongs to.",parent:zV},HV={type:n.GenericReference,id:"291e4d4f-01d8-40a0-90dc-5f1ac6636e9b",version:"1",entityType:n.Property,entityId:"5cb617b0-92be-4dbe-a007-49093368d94f"},KV={like:!1,inferred:!1,id:"c1930577-9e79-48a6-8905-be24611015c1",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:se,asType:!1,isList:!1,parent:HV},XV={type:n.GenericReference,id:"animal-name-property-parent-ref-id",version:"1",entityType:n.DefinitionEntity,entityId:"83eaa847-e62b-4192-84fb-3d8d6f5ea970"},QV={constant:!1,hidden:!1,required:!0,type:n.Property,id:"5cb617b0-92be-4dbe-a007-49093368d94f",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Name",description:"The name of the animal",defaultValue:null,implements:Wn,static:!1,private:!1,index:0,dataType:KV,abstract:!1,parent:XV},eB={type:n.GenericReference,id:"abc565de-4c83-4936-bc48-4013bef213b8",version:"1",entityType:n.Project,entityId:ce},tB={type:n.DefinitionEntity,id:"83eaa847-e62b-4192-84fb-3d8d6f5ea970",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Animal",description:"A living creature that is not human",abstract:!1,static:!1,abstractMethods:[],properties:[YV,QV],methods:[],extends:[],implements:[Ct],x:0,y:0,parent:eB},ia="base-table-entity",XE="base-table-entity-identifier-property-id";n.GenericReference,n.Property,n.GenericReference,n.Property;const iB={id:"base-table-entity-identifier-property-data-type-ref-id",type:n.GenericReference,entityId:XE,version:"1",entityType:n.Property},rB={id:"base-table-entity-identifier-property-ref-id",type:n.GenericReference,entityId:"base-table-entity-identifier-property-id",version:"1",entityType:n.Property},nB={like:!1,inferred:!1,id:"base-table-entity-identifier-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ir,asType:!1,parent:rB},sB={id:"base-table-entity-identifier-property-parent-ref-id",type:n.GenericReference,entityId:ia,version:"1",entityType:n.DefinitionEntity};n.Property,n.LiteralValue,L.UUID,vt.Unique,n.GenericReference,n.Property;const aB={id:"base-table-entity-deleted-at-property-ref-id",type:n.GenericReference,entityId:"base-table-entity-deleted-at-property-id",version:"1",entityType:n.Property},oB={like:!1,inferred:!1,id:"base-table-entity-deleted-at-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:Li,asType:!1,parent:aB},lB={id:"base-table-entity-deleted-at-property-parent-ref-id",type:n.GenericReference,entityId:ia,version:"1",entityType:n.DefinitionEntity},dB={constant:!1,hidden:!0,required:!0,id:"base-table-entity-deleted-at-property-id",name:"Deleted at",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!0,implements:null,static:!1,index:0,defaultValue:null,dataType:oB,description:"The date and time when the entity was deleted.",parent:lB};n.GenericReference,n.Property;const uB={id:"base-table-entity-created-at-property-ref-id",type:n.GenericReference,entityId:"base-table-entity-created-at-property-id",version:"1",entityType:n.Property},pB={like:!1,inferred:!1,id:"base-table-entity-created-at-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:Li,asType:!1,parent:uB},cB={id:"base-table-entity-created-at-property-parent-ref-id",type:n.GenericReference,entityId:ia,version:"1",entityType:n.DefinitionEntity},fB={constant:!1,hidden:!0,required:!0,id:"base-table-entity-created-at-property-id",name:"Created at",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!0,implements:null,static:!1,index:0,defaultValue:null,dataType:pB,description:"The date and time when the entity was created.",parent:cB};n.GenericReference,n.Property;const yB={id:"base-table-entity-updated-at-property-ref-id",type:n.GenericReference,entityId:"base-table-entity-updated-at-property-id",version:"1",entityType:n.Property},hB={like:!1,inferred:!1,id:"base-table-entity-updated-at-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:Li,asType:!1,parent:yB},mB={id:"base-table-entity-updated-at-property-parent-ref-id",type:n.GenericReference,entityId:ia,version:"1",entityType:n.DefinitionEntity},vB={constant:!1,hidden:!0,required:!0,id:"base-table-entity-updated-at-property-id",name:"Updated at",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,implements:null,abstract:!0,static:!1,index:0,defaultValue:null,dataType:hB,description:"The date and time when the entity was last updated.",parent:mB},TB={id:"base-table-entity-parent-ref-id",type:n.GenericReference,entityId:ce,version:"1",entityType:n.Project},pi={id:ia,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:"An entity that is permanently stored in the database and can be accessed at any point.",name:"Base database table format",type:n.DefinitionEntity,abstract:!0,static:!1,abstractMethods:[],implements:[],properties:[dB,fB,vB],methods:[],extends:[],x:0,y:0,parent:TB},IB={id:"default-relational-database-entity-identifier-property-data-type-ref-id",type:n.GenericReference,entityId:"default-relational-database-entity-identifier-property-id",version:"1",entityType:n.Property},EB={id:"default-relational-database-entity-identifier-property-ref-id",type:n.GenericReference,entityId:"default-relational-database-entity-identifier-property-id",version:"1",entityType:n.Property},AB={like:!1,inferred:!1,id:"default-relational-database-entity-identifier-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:se,asType:!1,parent:EB},is={id:"default-relational-database-entity-ref-id",type:n.GenericReference,entityId:"default-relational-database-entity-id",version:"1",entityType:n.DefinitionEntity},bB={constant:!1,id:"default-relational-database-entity-identifier-property-id",hidden:!1,required:!0,name:"Identifier name",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,implements:oo,static:!0,index:0,defaultValue:{id:"default-relational-database-entity-identifier-property-data-type-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.String,value:"main",parent:IB,autogeneration:{type:vt.Unique,rangeStart:null,rangeEnd:null},valueAsTypeList:null,valueAsTypeSingle:null},dataType:AB,description:"The name of the main database inside of the server instance where the data will be stored.",parent:is};n.GenericReference,n.Property;const RB={id:"default-relational-database-entity-username-property-ref-id",type:n.GenericReference,entityId:"default-relational-database-entity-username-property-id",version:"1",entityType:n.Property},DB={id:"default-relational-database-entity-username-property-default-value-parent-ref-id",type:n.GenericReference,entityId:"default-relational-database-entity-username-property-id",version:"1",entityType:n.Property},OB={like:!1,inferred:!1,id:"default-relational-database-entity-username-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:se,asType:!1,parent:RB},PB={constant:!1,hidden:!1,required:!0,id:"default-relational-database-entity-username-property-id",name:"Username",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,implements:lo,defaultValue:{id:"default-relational-database-entity-username-property-data-type-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.String,value:"root",parent:DB,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},static:!0,index:1,dataType:OB,description:"The username that will be used to connect to the database.",parent:is};n.GenericReference,n.Property;const wB={id:"default-relational-database-entity-password-property-ref-id",type:n.GenericReference,entityId:"default-relational-database-entity-password-property-id",version:"1",entityType:n.Property},CB={id:"default-relational-database-entity-password-property-default-value-parent-ref-id",type:n.GenericReference,entityId:"default-relational-database-entity-password-property-id",version:"1",entityType:n.Property},VB={like:!1,inferred:!1,id:"default-relational-database-entity-password-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:se,asType:!1,parent:wB},BB={constant:!1,hidden:!1,required:!0,id:"default-relational-database-entity-password-property-id",name:"Password",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,implements:uo,static:!0,index:2,defaultValue:{id:"default-relational-database-entity-password-property-data-type-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.String,value:"password",parent:CB,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},dataType:VB,description:"The password that will be used to connect to the database.",parent:is},_B={id:"default-relational-database-entity-min-size-property-data-type-ref-id",type:n.GenericReference,entityId:"default-relational-database-entity-min-size-property-id",version:"1",entityType:n.Property},MB={id:"default-relational-database-entity-min-size-property-ref-id",type:n.GenericReference,entityId:"default-relational-database-entity-min-size-property-id",version:"1",entityType:n.Property},NB={like:!1,inferred:!1,id:"default-relational-database-entity-min-size-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ve,asType:!1,parent:MB},LB={constant:!1,hidden:!1,required:!0,id:"default-relational-database-entity-min-size-property-id",name:"Minimum GB size",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,implements:po,static:!0,index:3,defaultValue:{id:"default-relational-database-entity-min-size-property-data-type-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.Number,value:6,parent:_B,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},dataType:NB,description:"The minimum size of the database in GB.",parent:is},UB={id:"default-relational-database-entity-default-property-data-type-ref-id",type:n.GenericReference,entityId:"default-relational-database-entity-default-property-id",version:"1",entityType:n.Property},gB={id:"default-relational-database-entity-default-property-ref-id",type:n.GenericReference,entityId:"default-relational-database-entity-default-property-id",version:"1",entityType:n.Property},jB={like:!1,inferred:!1,id:"default-relational-database-entity-default-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ve,asType:!1,parent:gB},$B={constant:!1,id:"default-relational-database-entity-default-property-id",hidden:!0,required:!0,name:"Default",description:"Whether this database is automatically picked by other entities as the default database.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,implements:Hd,static:!0,index:4,dataType:jB,defaultValue:{id:"default-relational-database-entity-default-property-data-type-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.Boolean,value:!0,parent:UB,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},parent:is},GB={id:"default-relational-database-entity-autoscaling-property-data-type-ref-id",type:n.GenericReference,entityId:"default-relational-database-entity-autoscaling-property-id",version:"1",entityType:n.Property},FB={id:"default-relational-database-entity-autoscaling-property-ref-id",type:n.GenericReference,entityId:"default-relational-database-entity-autoscaling-property-id",version:"1",entityType:n.Property},xB={like:!1,inferred:!1,id:"default-relational-database-entity-autoscaling-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ve,asType:!1,parent:FB},kB={constant:!1,id:"default-relational-database-entity-autoscaling-property-id",hidden:!1,required:!0,name:"Auto-scaling",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,implements:Kd,static:!0,index:5,defaultValue:{id:"default-relational-database-entity-autoscaling-property-data-type-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.Boolean,value:!0,parent:GB,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},dataType:xB,description:"If true, this database will automatically scale up or down in memory size, based on the usage.s",parent:is},SB={id:"default-relational-database-entity-parent-ref-id",type:n.GenericReference,entityId:ce,version:"1",entityType:n.Project},Eu={id:"default-relational-database-entity-id",type:n.DefinitionEntity,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Relational Database",description:"A database that permanently stores the persisted entities attached to it.",abstract:!1,static:!0,properties:[$B,kB,bB,PB,BB,LB],methods:[],abstractMethods:[],extends:[],implements:[ji],x:0,y:0,parent:SB},ZB={id:"user-prototype-database-property-data-type-ref-id",type:n.GenericReference,entityId:"user-prototype-database-property-id",version:"1",entityType:n.Property},qB={id:"user-prototype-database-property-ref-id",type:n.GenericReference,entityId:"user-prototype-database-property-id",version:"1",entityType:n.Property},JB={like:!1,inferred:!1,id:"user-prototype-database-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ji,asType:!1,parent:qB},WB={id:"user-prototype-database-property-parent-ref-id",type:n.GenericReference,entityId:"de67fc84-3719-46fd-9ab4-3fca3a3cc50d",version:"1",entityType:n.DefinitionEntity},zB={constant:!1,hidden:!1,required:!0,id:"user-prototype-database-property-id",name:"Database",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,implements:Jn,static:!0,index:0,defaultValue:{id:"user-prototype-database-property-data-type-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:null,name:L.EntityTemplate,valueAsTypeList:null,valueAsTypeSingle:Eu,autogeneration:null,parent:ZB},dataType:JB,description:"The database that the entity belongs to.",parent:WB},YB={type:n.GenericReference,id:"user-prototype-parent-ref-id",version:"1",entityType:n.Project,entityId:ce},HB={id:"user-prototype-primary-key-property-data-type-ref-id",type:n.GenericReference,entityId:"user-prototype-primary-key-property-id",version:"1",entityType:n.Property},KB={id:"user-prototype-primary-key-property-ref-id",type:n.GenericReference,entityId:"user-prototype-primary-key-property-id",version:"1",entityType:n.Property},XB={like:!1,inferred:!1,id:"user-prototype-primary-key-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ir,asType:!1,parent:KB},QB={id:"user-prototype-primary-key-property-parent-ref-id",type:n.GenericReference,entityId:"de67fc84-3719-46fd-9ab4-3fca3a3cc50d",version:"1",entityType:n.DefinitionEntity},e_={constant:!1,hidden:!1,required:!0,id:"user-prototype-primary-key-property-id",name:"Identifier",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,implements:Wn,static:!1,index:1,defaultValue:{id:"user-prototype-primary-key-property-data-type-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.UUID,value:null,parent:HB,autogeneration:{type:vt.Unique,rangeStart:null,rangeEnd:null},valueAsTypeList:null,valueAsTypeSingle:null},dataType:XB,description:"A property with a unique value for the entity, that can be used to identify the entity among other entities of the same type.",parent:QB},Au={type:n.DefinitionEntity,id:"de67fc84-3719-46fd-9ab4-3fca3a3cc50d",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"User",description:"A user of the application",implements:[Ct,pi],abstract:!1,static:!1,abstractMethods:[],extends:[],properties:[zB,e_],methods:[],x:0,y:0,parent:YB},t_={type:n.GenericReference,id:"person-date-of-birth-property-data-type-parent-ref-id",version:"1",entityType:n.Property,entityId:"person-date-of-birth-property-id"},i_={like:!1,inferred:!1,id:"person-date-of-birth-property-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Li,isList:!1,asType:!1,parent:t_},r_={type:n.GenericReference,id:"person-date-of-birth-property-parent-ref-id",version:"1",entityType:n.DefinitionEntity,entityId:"c9bc312a-10d3-48a7-9ab4-ea483a9e2416"},n_={constant:!1,hidden:!1,required:!0,type:n.Property,id:"person-date-of-birth-property-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Date of birth",description:"The date of birth of the person",implements:null,private:!1,static:!1,index:0,defaultValue:null,dataType:i_,abstract:!1,parent:r_},s_={type:n.GenericReference,id:"a2867827-2f8e-4c25-b18b-d91857d7f24e",version:"1",entityType:n.Property,entityId:"cacfec92-46c3-4fca-a1d9-fd1ba94d78c7"},a_={like:!1,inferred:!1,id:"1d49f41b-17b9-4f48-87aa-3ce43498e5a9",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:se,isList:!1,asType:!1,parent:s_},o_={type:n.GenericReference,id:"01cbe760-40a9-4f49-8e3d-194d2f57cb1e",version:"1",entityType:n.DefinitionEntity,entityId:"c9bc312a-10d3-48a7-9ab4-ea483a9e2416"},l_={constant:!1,hidden:!1,required:!0,type:n.Property,id:"cacfec92-46c3-4fca-a1d9-fd1ba94d78c7",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Name",description:"The name of the person",implements:null,private:!1,static:!1,index:0,defaultValue:null,dataType:a_,abstract:!1,parent:o_},d_={type:n.GenericReference,id:"3542b22a-3a2f-41c6-876e-24c885572498",version:"1",entityType:n.Project,entityId:ce},Jt={type:n.DefinitionEntity,id:"c9bc312a-10d3-48a7-9ab4-ea483a9e2416",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Person",description:"A entity to store more information about a person than the user entity does, to split the responsibilities and keep it the logic clean.",properties:[l_,n_],abstract:!1,static:!1,abstractMethods:[],methods:[],implements:[],extends:[Au],x:0,y:0,parent:d_},u_={type:n.GenericReference,id:"b59c80b7-b2e9-41e9-abcd-7c5652835efc",version:"1",entityType:n.FunctionDeclaration,entityId:"36f29f96-c001-4b9a-b49c-83eff406a060"},p_={type:n.GenericReference,id:"1190b5a2-f25e-46db-884d-8a3dd1a44d94",version:"1",entityType:n.ReturnStatement,entityId:"3ebc4342-c9e8-42e7-a61c-7937081e1d2e"},c_={type:n.GenericReference,id:"36c63126-7814-496f-a6cc-48662c2aabae",version:"1",entityType:n.ArgumentDeclaration,entityId:"500dee3a-3435-4453-9699-0d053f646523"},f_={type:n.GenericReference,id:"c567e55d-ec12-4e4e-958e-f07522892b4b",version:"1",entityType:n.ReturnDeclaration,entityId:"9e070523-7e07-4100-8637-960a187f5f14"},y_={like:!1,inferred:!1,id:"3973c5a1-f0d8-49a0-a9a9-a0009bf3f0d8",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Jt,isList:!1,asType:!1,parent:f_},bu={constant:!0,isError:!1,id:"9e070523-7e07-4100-8637-960a187f5f14",type:n.ReturnDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Output Account Owner",description:null,defaultValue:null,dataType:y_,implements:null,readsValue:c_,required:!0,index:0,parent:p_},h_={type:n.GenericReference,id:"567d923c-20da-4c1e-956d-962ea30c6d0b",version:"1",entityType:n.FunctionDeclaration,entityId:"36f29f96-c001-4b9a-b49c-83eff406a060"},m_={type:n.GenericReference,id:"da85e620-59f3-42ab-88c8-b38d33c2c833",version:"1",entityType:n.FunctionDeclaration,entityId:"36f29f96-c001-4b9a-b49c-83eff406a060"},v_={type:n.ReturnStatement,id:"3ebc4342-c9e8-42e7-a61c-7937081e1d2e",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[bu],calledByError:[],calledByEntry:[h_],calledBySuccess:[],throws:null,x:0,y:0,parent:m_},T_={type:n.GenericReference,id:"1c806bb7-4c25-4bad-963b-93dfbb7c8304",version:"1",entityType:n.ArgumentDeclaration,entityId:"500dee3a-3435-4453-9699-0d053f646523"},I_={like:!1,inferred:!1,id:"d90fcc18-642b-433c-8fcb-4094b9031cd5",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Jt,isList:!1,asType:!1,parent:T_},QE={constant:!0,id:"500dee3a-3435-4453-9699-0d053f646523",type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"New Account Owner",description:null,defaultValue:null,dataType:I_,implements:null,required:!0,writesValues:[bu],index:0,parent:u_},E_={type:n.GenericReference,id:"83dceb60-f3c4-4085-824c-85f2003bfd27",version:"1",entityType:n.DefinitionEntity,entityId:"506946aa-30da-48e6-918f-ffd9eac58813"},eA={type:n.FunctionDeclaration,id:"36f29f96-c001-4b9a-b49c-83eff406a060",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Change owner of bank account",description:null,implements:null,inputs:[QE],calls:[v_],index:0,collapsed:!1,private:!1,x:0,y:0,parent:E_},A_={type:n.GenericReference,id:"adbaf302-ffa9-49b6-a3c6-83f9a75068e3",version:"1",entityType:n.VariableDeclaration,entityId:"8e36a476-766e-4cc2-a8a7-27a07dfb5a4b"},b_={like:!1,inferred:!1,id:"79ee04aa-1ba4-4ae9-a406-ed45e5b03f7f",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Jt,asType:!1,isList:!1,parent:A_},R_={type:n.GenericReference,id:"55e212d1-f0ec-4bb6-acbe-60f741367daf",version:"1",entityType:n.OutputMap,entityId:"dc9ddb8f-02a0-4a43-aea6-270ec7b7f8a4"},D_={type:n.GenericReference,id:"944e1171-3d9b-4559-9386-1d4974b15962",version:"1",entityType:n.FunctionDeclaration,entityId:"15ee556d-681f-47de-a31f-16d4ba73cc4e"},O_={constant:!0,required:!0,id:"8e36a476-766e-4cc2-a8a7-27a07dfb5a4b",type:n.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Output Account Owner",description:null,defaultValue:null,dataType:b_,readsValue:R_,writesValues:[],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:D_},P_={type:n.GenericReference,id:"b89ebc83-52cf-4447-a5ae-62241f713079",version:"1",entityType:n.FunctionCall,entityId:"78f6dba8-bed8-44cd-8b0f-6dcc787d1e1e"},w_={id:"dc9ddb8f-02a0-4a43-aea6-270ec7b7f8a4",type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:bu,defaultValue:null,writesValues:[O_],index:0,parent:P_},C_={type:n.GenericReference,id:"c1b9e125-1aad-48b7-9687-95c57a6bc10d",version:"1",entityType:n.FunctionDeclaration,entityId:"15ee556d-681f-47de-a31f-16d4ba73cc4e"},V_={type:n.GenericReference,id:"d2deaa02-e164-4425-905c-6dee47eb4eac",version:"1",entityType:n.FunctionDeclaration,entityId:"15ee556d-681f-47de-a31f-16d4ba73cc4e"},B_={type:n.GenericReference,id:"1109a655-ac62-4110-a933-42a72106f4f0",version:"1",entityType:n.VariableDeclaration,entityId:"8bea6986-8da2-487b-905d-2fb962db6728"},__={like:!1,inferred:!1,id:"7d9a1307-512e-42ec-9797-2f7229796b97",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Jt,asType:!1,isList:!1,parent:B_},M_={type:n.GenericReference,id:"bb61ebf7-57b3-4d14-905d-82ec907205b5",version:"1",entityType:n.ArgumentDeclaration,entityId:"38f6b236-98ac-47b0-ab9c-d2f9610137b9"},N_={type:n.GenericReference,id:"6b8c7bf2-9fc8-4ea4-9ec0-f41679d513b1",version:"1",entityType:n.FunctionDeclaration,entityId:"15ee556d-681f-47de-a31f-16d4ba73cc4e"},L_={type:n.GenericReference,id:"6163d1a1-7a94-49b1-95bb-aecd8d6d335c",version:"1",entityType:n.FunctionCall,entityId:"78f6dba8-bed8-44cd-8b0f-6dcc787d1e1e"},U_={type:n.GenericReference,id:"1f900f62-4bd2-4246-94aa-b8f5aad384fd",version:"1",entityType:n.VariableDeclaration,entityId:"8bea6986-8da2-487b-905d-2fb962db6728"},tA={id:"be8538be-e6f9-4b94-9314-a546003ebaa0",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:QE,name:null,description:null,readsValue:U_,defaultValue:null,index:0,parent:L_},g_={constant:!0,required:!0,type:n.VariableDeclaration,id:"8bea6986-8da2-487b-905d-2fb962db6728",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Changed Account Owner",description:null,defaultValue:null,dataType:__,readsValue:M_,writesValues:[tA],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:N_},j_={type:n.FunctionCall,id:"78f6dba8-bed8-44cd-8b0f-6dcc787d1e1e",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:eA,inputs:[tA],outputs:[w_],process:null,successCalls:[],errorCalls:[],calledByError:[],calledByEntry:[C_],calledBySuccess:[],parent:V_,error:null,x:0,y:0},$_={type:n.GenericReference,id:"2d47aba1-a918-46a7-8db7-78809928654a",version:"1",entityType:n.ArgumentDeclaration,entityId:"38f6b236-98ac-47b0-ab9c-d2f9610137b9"},G_={like:!1,inferred:!1,id:"5583766c-e9a5-484c-8f43-f4b0a6a1876c",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Jt,asType:!1,isList:!1,parent:$_},F_={type:n.GenericReference,id:"3e2a81e4-55b2-49f5-94eb-39135e95c3d7",version:"1",entityType:n.FunctionDeclaration,entityId:"15ee556d-681f-47de-a31f-16d4ba73cc4e"},x_={constant:!0,id:"38f6b236-98ac-47b0-ab9c-d2f9610137b9",type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:null,name:"New Company Owner",defaultValue:null,dataType:G_,implements:null,required:!0,index:0,writesValues:[g_],parent:F_},k_={type:n.GenericReference,id:"30291b01-1b94-4d03-b434-dec122c2bc7d",version:"1",entityType:n.DefinitionEntity,entityId:"506946aa-30da-48e6-918f-ffd9eac58813"},S_={type:n.FunctionDeclaration,id:"15ee556d-681f-47de-a31f-16d4ba73cc4e",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:null,name:"Change Account Owner",inputs:[x_],collapsed:!0,calls:[j_],private:!1,index:0,implements:null,x:0,y:0,parent:k_},Z_={type:n.GenericReference,id:"72c7ac0a-886e-4e10-b7ed-2f5a819a0233",version:"1",entityType:n.Property,entityId:"b8f4656a-2b77-43ab-af51-7c32ddede044"},q_={like:!1,inferred:!1,id:"c09dd282-73f6-4077-a467-b66db20b9fc6",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:se,isList:!1,asType:!1,parent:Z_},J_={type:n.GenericReference,id:"8a950024-512c-4580-81db-a705410aeb99",version:"1",entityType:n.DefinitionEntity,entityId:"506946aa-30da-48e6-918f-ffd9eac58813"},W_={constant:!1,hidden:!1,required:!0,type:n.Property,id:"b8f4656a-2b77-43ab-af51-7c32ddede044",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Account number",description:null,private:!0,defaultValue:null,implements:Wn,static:!1,index:0,dataType:q_,abstract:!1,parent:J_},z_={type:n.GenericReference,id:"b6704b6c-c3bd-49d0-8ebc-82d03e726cbb",version:"1",entityType:n.Property,entityId:"733d06a6-b8c5-44f3-a1f7-a8c9bd9e44ea"},Y_={like:!1,inferred:!1,id:"c03e0b0a-88ab-401a-8833-4806738bdc37",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Jt,isList:!1,asType:!1,parent:z_},H_={type:n.GenericReference,id:"1ef999a7-e9ed-406a-866e-e58277fc985b",version:"1",entityType:n.DefinitionEntity,entityId:"506946aa-30da-48e6-918f-ffd9eac58813"},K_={constant:!1,hidden:!1,required:!0,type:n.Property,id:"733d06a6-b8c5-44f3-a1f7-a8c9bd9e44ea",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:null,name:"Account Owner",index:1,defaultValue:null,dataType:Y_,implements:null,static:!1,private:!0,abstract:!1,parent:H_},X_={type:n.GenericReference,id:"d41d7f41-98b8-4f67-be92-c349fdda5156",version:"1",entityType:n.Project,entityId:ce},rs={type:n.DefinitionEntity,id:"506946aa-30da-48e6-918f-ffd9eac58813",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Bank Account",description:null,abstract:!1,static:!1,abstractMethods:[],properties:[W_,K_],methods:[eA,S_],extends:[],implements:[Ct,pi],x:0,y:0,parent:X_},ra="bitcoin-api-response-id",iA="time-property-id",rA="disclaimer-property-id",nA="chart-name-property-id",sA="bpi-property-id",ko="bpi-entity-id",aA="usd-property-id",oA="gbp-property-id",lA="eur-property-id",ns="currency-entity-id",dA="currency-code-property-id",uA="currency-symbol-property-id",pA="currency-rate-property-id",cA="currency-description-property-id",fA="currency-rate-number-property-id",Q_={type:n.GenericReference,id:"code-property-data-type-parent-ref-id",version:"1",entityType:n.Property,entityId:dA},eM={like:!1,inferred:!1,id:"code-property-data-type-id",type:n.DataType,parentRelationType:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:tr,isList:!1,asType:!1,options:["USD","GBP","EUR"],parent:Q_},tM={type:n.GenericReference,id:"code-property-parent-ref-id",version:"1",entityType:n.DefinitionEntity,entityId:ns},iM={constant:!1,hidden:!1,required:!0,type:n.Property,id:dA,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"code",description:null,defaultValue:null,dataType:eM,index:0,implements:null,static:!1,private:!1,abstract:!1,parent:tM},rM={type:n.GenericReference,id:"symbol-property-data-type-parent-ref-id",version:"1",entityType:n.Property,entityId:uA},nM={like:!1,inferred:!1,id:"symbol-property-data-type-id",type:n.DataType,parentRelationType:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:tr,isList:!1,asType:!1,options:["&#36;","&pound;","&euro;"],parent:rM},sM={type:n.GenericReference,id:"symbol-property-parent-ref-id",version:"1",entityType:n.DefinitionEntity,entityId:ns},aM={constant:!1,hidden:!1,required:!0,type:n.Property,id:uA,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"symbol",description:null,index:0,defaultValue:null,dataType:nM,implements:null,static:!1,private:!1,abstract:!1,parent:sM},oM={type:n.GenericReference,id:"rate-property-data-type-parent-ref-id",version:"1",entityType:n.Property,entityId:pA},lM={like:!1,inferred:!1,id:"rate-property-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:se,isList:!1,asType:!1,parent:oM},dM={type:n.GenericReference,id:"rate-property-parent-ref-id",version:"1",entityType:n.DefinitionEntity,entityId:ns},uM={constant:!1,hidden:!1,required:!0,type:n.Property,id:pA,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"rate",description:null,index:0,defaultValue:null,dataType:lM,implements:null,static:!1,private:!1,abstract:!1,parent:dM},pM={type:n.GenericReference,id:"description-property-data-type-parent-ref-id",version:"1",entityType:n.Property,entityId:cA},cM={like:!1,inferred:!1,id:"description-property-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:se,isList:!1,asType:!1,parent:pM},fM={type:n.GenericReference,id:"description-property-parent-ref-id",version:"1",entityType:n.DefinitionEntity,entityId:ns},yM={constant:!1,hidden:!1,required:!0,type:n.Property,id:cA,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"description",description:null,defaultValue:null,dataType:cM,implements:null,static:!1,index:0,private:!1,abstract:!1,parent:fM},hM={type:n.GenericReference,id:"rate-number-property-data-type-parent-ref-id",version:"1",entityType:n.Property,entityId:fA},mM={like:!1,inferred:!1,id:"rate-number-property-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,isList:!1,asType:!1,parent:hM},vM={type:n.GenericReference,id:"rate-number-property-parent-ref-id",version:"1",entityType:n.DefinitionEntity,entityId:ns},TM={constant:!1,hidden:!1,required:!0,type:n.Property,id:fA,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"rate_float",description:null,defaultValue:null,dataType:mM,implements:null,static:!1,index:0,private:!1,abstract:!1,parent:vM},IM={type:n.GenericReference,id:"currency-prototype-parent-ref-id",version:"1",entityType:n.Project,entityId:ce},So={type:n.DefinitionEntity,id:ns,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Currency",description:"This entity describes a currency in the Bitcoin Price Index.",properties:[iM,aM,uM,yM,TM],static:!1,abstract:!1,abstractMethods:[],methods:[],extends:[],implements:[],x:0,y:0,parent:IM},EM={type:n.GenericReference,id:"usd-property-data-type-parent-ref-id",version:"1",entityType:n.Property,entityId:aA},AM={like:!1,inferred:!1,id:"usd-property-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:So,isList:!1,asType:!1,parent:EM},bM={type:n.GenericReference,id:"usd-property-parent-ref-id",version:"1",entityType:n.DefinitionEntity,entityId:ko},RM={constant:!1,hidden:!1,required:!0,id:aA,type:n.Property,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"USD",description:null,index:0,dataType:AM,defaultValue:null,implements:null,static:!1,private:!1,abstract:!1,parent:bM},DM={type:n.GenericReference,id:"gbp-property-data-type-parent-ref-id",version:"1",entityType:n.Property,entityId:oA},OM={like:!1,inferred:!1,id:"gbp-property-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:So,isList:!1,asType:!1,parent:DM},PM={type:n.GenericReference,id:"gbp-property-parent-ref-id",version:"1",entityType:n.DefinitionEntity,entityId:ko},wM={constant:!1,hidden:!1,required:!0,id:oA,type:n.Property,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"GBP",description:null,index:0,dataType:OM,defaultValue:null,implements:null,static:!1,private:!1,abstract:!1,parent:PM},CM={type:n.GenericReference,id:"eur-property-data-type-parent-ref-id",version:"1",entityType:n.Property,entityId:lA},VM={like:!1,inferred:!1,id:"eur-property-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:So,isList:!1,asType:!1,parent:CM},BM={type:n.GenericReference,id:"eur-property-parent-ref-id",version:"1",entityType:n.DefinitionEntity,entityId:ko},_M={constant:!1,hidden:!1,required:!0,id:lA,type:n.Property,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"EUR",description:null,implements:null,static:!1,index:0,defaultValue:null,dataType:VM,private:!1,abstract:!1,parent:BM},MM={type:n.GenericReference,id:"bpi-prototype-parent-ref-id",version:"1",entityType:n.Project,entityId:ce},yA={type:n.DefinitionEntity,id:ko,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"BPI",description:"The Bitcoin Price Index",properties:[RM,wM,_M],abstract:!1,static:!1,abstractMethods:[],methods:[],extends:[],implements:[],x:0,y:0,parent:MM},NM={type:n.GenericReference,id:"time-property-data-type-parent-ref-id",version:"1",entityType:n.Property,entityId:iA},LM={like:!1,inferred:!1,id:"time-property-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Fn,isList:!1,asType:!1,parent:NM},UM={type:n.GenericReference,id:"time-property-parent-ref-id",version:"1",entityType:n.DefinitionEntity,entityId:ra},gM={constant:!1,hidden:!1,required:!0,type:n.Property,id:iA,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"time",description:null,index:0,defaultValue:null,dataType:LM,implements:null,static:!1,private:!1,abstract:!1,parent:UM},jM={type:n.GenericReference,id:"disclaimer-property-data-type-parent-ref-id",version:"1",entityType:n.Property,entityId:rA},$M={like:!1,inferred:!1,id:"disclaimer-property-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:se,isList:!1,asType:!1,parent:jM},GM={type:n.GenericReference,id:"disclaimer-property-parent-ref-id",version:"1",entityType:n.DefinitionEntity,entityId:ra},FM={constant:!1,hidden:!1,required:!0,type:n.Property,id:rA,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"disclaimer",description:null,index:0,defaultValue:null,dataType:$M,implements:null,static:!1,private:!1,abstract:!1,parent:GM},xM={type:n.GenericReference,id:"chart-name-property-data-type-parent-ref-id",version:"1",entityType:n.Property,entityId:nA},kM={like:!1,inferred:!1,id:"chart-name-property-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:se,isList:!1,asType:!1,parent:xM},SM={type:n.GenericReference,id:"chart-name-property-parent-ref-id",version:"1",entityType:n.DefinitionEntity,entityId:ra},ZM={constant:!1,hidden:!1,required:!0,type:n.Property,id:nA,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"chartName",description:null,index:0,defaultValue:null,dataType:kM,implements:null,static:!1,private:!1,abstract:!1,parent:SM},qM={type:n.GenericReference,id:"bpi-property-data-type-parent-ref-id",version:"1",entityType:n.Property,entityId:sA},JM={like:!1,inferred:!1,id:"bpi-property-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:yA,isList:!1,asType:!1,parent:qM},WM={type:n.GenericReference,id:"bpi-property-parent-ref-id",version:"1",entityType:n.DefinitionEntity,entityId:ra},zM={constant:!1,hidden:!1,required:!0,type:n.Property,id:sA,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"bpi",description:null,implements:null,index:0,defaultValue:null,dataType:JM,static:!1,private:!1,abstract:!1,parent:WM},YM={type:n.GenericReference,id:"bitcoin-api-response-parent-ref-id",version:"1",entityType:n.Project,entityId:ce},hA={type:n.DefinitionEntity,id:ra,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Bitcoin API Response type",description:"The type of the data structure response from the Bitcoin API call",properties:[gM,FM,ZM,zM],abstract:!1,static:!1,abstractMethods:[],methods:[],extends:[],implements:[],x:0,y:0,parent:YM},HM={type:n.GenericReference,id:"eefa0147-f873-484b-b4f3-9e6493aab183",version:"1",entityType:n.ArgumentDeclaration,entityId:"f2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a"},KM={like:!1,inferred:!1,id:"b9f35112-dcb2-4b7c-8fb9-f196b3fa37f9",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Jt,isList:!1,asType:!1,parent:HM},XM={type:n.GenericReference,id:"128770d6-5e3a-4aff-bca0-ad1f32ebefa8",version:"1",entityType:n.ReturnStatement,entityId:"e4e05975-c277-471a-b869-f0aed316045c"},QM={type:n.GenericReference,id:"0be84bf9-6421-42b9-980f-6a03f30cb809",version:"1",entityType:n.ReturnDeclaration,entityId:"a1ec31f0-25ca-42ac-a4c4-c9ec2255f55b"},eN={like:!1,inferred:!1,id:"43daa02a-237b-4b7c-a6e9-2b8c167f6e22",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Jt,isList:!1,asType:!1,parent:QM},tN={type:n.GenericReference,id:"ad380383-4a47-43da-968e-75a2d603b230",version:"1",entityType:n.ArgumentDeclaration,entityId:"f2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a"},mA={constant:!0,isError:!1,id:"a1ec31f0-25ca-42ac-a4c4-c9ec2255f55b",type:n.ReturnDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"New Company Owner",description:"The new owner of the company",implements:null,defaultValue:null,dataType:eN,readsValue:tN,required:!0,index:0,parent:XM},iN={type:n.GenericReference,id:"4f24dc27-59a1-49bf-abcc-7d72b00926e4",version:"1",entityType:n.FunctionDeclaration,entityId:"d683bfc1-a464-4810-8ec0-1dd8eaa0c3c4"},rN={constant:!0,id:"f2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a",type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"New Company Owner",description:null,implements:null,defaultValue:null,dataType:KM,writesValues:[mA],required:!0,index:0,parent:iN},nN={type:n.GenericReference,id:"5c9a02f0-d2cf-4efc-828e-467f33a74dd3",version:"1",entityType:n.DefinitionEntity,entityId:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d"},sN={type:n.GenericReference,id:"2ff8f3da-e0c5-4f0f-b688-2c051c588786",version:"1",entityType:n.FunctionDeclaration,entityId:"d683bfc1-a464-4810-8ec0-1dd8eaa0c3c4"},aN={type:n.GenericReference,id:"195ae28c-159b-42de-80b1-2ebb8be3619f",version:"1",entityType:n.FunctionDeclaration,entityId:"d683bfc1-a464-4810-8ec0-1dd8eaa0c3c4"},oN={type:n.ReturnStatement,id:"e4e05975-c277-471a-b869-f0aed316045c",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[mA],calledByError:[],calledByEntry:[sN],calledBySuccess:[],throws:null,x:0,y:0,parent:aN},lN={type:n.FunctionDeclaration,id:"d683bfc1-a464-4810-8ec0-1dd8eaa0c3c4",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Change owner of company",description:"Change the owner of the company to a new person",inputs:[rN],calls:[oN],index:0,collapsed:!1,implements:null,private:!1,x:0,y:0,parent:nN},dN={type:n.GenericReference,id:"e691026f-6db0-43ec-93cd-805ae7d713e3",version:"1",entityType:n.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},uN={type:n.GenericReference,id:"29c4e3e0-1b66-4075-b559-45b27c5cf356",version:"1",entityType:n.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},pN={type:n.GenericReference,id:"b1289358-b185-455d-8f58-7791b15cd52a",version:"1",entityType:n.ReturnStatement,entityId:"9690cd1d-ea35-4e83-823d-0c7310265fee"},cN={type:n.GenericReference,id:"d847bb49-8789-4550-bb2d-e2d551993b28",version:"1",entityType:n.VariableDeclaration,entityId:"e5a8b6d0-0e6f-4e9a-9b1e-8a2b5c7f0d5a"},fN={type:n.GenericReference,id:"06535500-c37c-4915-8398-1d4e184fa5e7",version:"1",entityType:n.ReturnDeclaration,entityId:"e7a35277-a0c4-46d5-aca2-bddd0c26e931"},yN={like:!1,inferred:!1,id:"d358dd91-35f7-4095-b728-3fb3c71dbc05",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:er,asType:!1,isList:!1,parent:fN},Ru={constant:!0,isError:!1,id:"e7a35277-a0c4-46d5-aca2-bddd0c26e931",type:n.ReturnDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Is name registered",description:"Whether the company name is already registered",defaultValue:null,dataType:yN,implements:null,readsValue:cN,required:!0,index:0,parent:pN},hN={type:n.GenericReference,id:"gov-company-registry-return-statement-called-by-success-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:"e5a8b6d0-0e6f-4e9a-9b1e-8a2b5c7f0d5a"},vA={type:n.ReturnStatement,id:"9690cd1d-ea35-4e83-823d-0c7310265fee",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[Ru],calledByError:[],calledByEntry:[],calledBySuccess:[dN,hN],throws:null,x:0,y:0,parent:uN},mN={type:n.GenericReference,id:"b3126414-4c9b-495f-901e-59f5073c8d67",version:"1",entityType:n.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},vN={type:n.GenericReference,id:"35115c48-618b-411b-a290-d746d22fdd10",version:"1",entityType:n.VariableDeclaration,entityId:"83e12ebb-c958-4dee-b750-8ab9930f0f4e"},TA={id:"a0e7b4e5-2f5f-4d4c-8f5c-1e1f1e1a1b1a",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Vd,name:null,description:null,readsValue:vN,defaultValue:null,parent:mN,index:2},TN={type:n.GenericReference,id:"14f46eae-04a5-47d1-9c7f-28fb09b84d1d",version:"1",entityType:n.VariableDeclaration,entityId:"e5a8b6d0-0e6f-4e9a-9b1e-8a2b5c7f0d5a"},IN={like:!1,inferred:!1,id:"990bd5d1-07ea-4253-acc1-d03bedd22a38",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:er,isList:!1,asType:!1,parent:TN},EN={type:n.GenericReference,id:"e4c3542a-8fb0-4b72-8d6e-3fdff812dd67",version:"1",entityType:n.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},AN={type:n.GenericReference,id:"825f9f60-22a8-4cc6-9055-d7333f8e92f4",version:"1",entityType:n.OutputMap,entityId:"8f30d787-9459-4d8d-98a2-b46fbc2006d5"},bN={type:n.GenericReference,id:"is-company-name-registered-var-called-by-ref",version:"1",entityType:n.Operation,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},IA={constant:!0,required:!0,type:n.VariableDeclaration,id:"e5a8b6d0-0e6f-4e9a-9b1e-8a2b5c7f0d5a",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Is name registered",description:"Whether the company name is registered with the government company registry",defaultValue:null,dataType:IN,readsValue:AN,writesValues:[Ru],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[bN],successCalls:[vA],errorCalls:[],internalCalls:[],x:0,y:0,parent:EN},RN={type:n.GenericReference,id:"1aba021e-48ef-44ac-93d0-eaecac5895da",version:"1",entityType:n.InputMap,entityId:"c3c8d6c1-3e0d-4e6c-9f9c-6b8c7d7f8e9a"},DN={type:n.GenericReference,id:"dffae7e0-0a5c-4c14-8ed2-8d680b4c4c86",version:"1",entityType:n.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},ON={type:n.InputMap,id:"c3c8d6c1-3e0d-4e6c-9f9c-6b8c7d7f8e9a",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Ha,name:null,description:null,readsValue:null,defaultValue:{id:"gov-http-request-url-argument-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:"https://api.publicapis.org/entries",name:L.String,valueAsTypeList:null,valueAsTypeSingle:null,parent:RN,autogeneration:null},index:1,parent:DN},PN={type:n.GenericReference,id:"64ae61f5-ace7-401b-926d-25f852daa60e",version:"1",entityType:n.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},wN={id:"8f30d787-9459-4d8d-98a2-b46fbc2006d5",type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:to,index:2,writesValues:[IA],parent:PN},CN={type:n.GenericReference,id:"62a1a086-caea-4270-9c9f-a1695503e745",version:"1",entityType:n.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},VN={id:"48cf7654-8f3e-4fcd-abc6-740876c310a0",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Ya,name:null,description:null,readsValue:null,index:0,defaultValue:null,parent:CN},BN={type:n.GenericReference,id:"b0c9c79f-f525-428d-99e7-087d3237ad62",version:"1",entityType:n.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},_N={id:"2c1dc406-4b71-4023-87b2-abede3a111d2",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:null,description:null,declaration:Ka,index:3,readsValue:null,defaultValue:null,parent:BN},MN={type:n.GenericReference,id:"9887d6c9-d75b-4c97-b722-e2e60945ea20",version:"1",entityType:n.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},NN={id:"3fef94b2-0278-43ae-b0c5-bc7083f0a111",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Xa,name:null,description:null,readsValue:null,index:4,defaultValue:null,parent:MN},LN={type:n.GenericReference,id:"561275b6-5056-45d8-bf7d-8abaa4645593",version:"1",entityType:n.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},UN={id:"3efe20a7-4d63-411e-89ef-63e277f48d66",type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:eo,index:1,writesValues:[],parent:LN},gN={type:n.GenericReference,id:"3170ccc2-13de-4bfc-802a-a643be41cd42",version:"1",entityType:n.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},jN={id:"40d34323-d7e6-440a-8016-67c05a3b66dd",type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:Qa,index:0,writesValues:[],parent:gN},$N={type:n.GenericReference,id:"7432fa82-f574-4c54-a8fa-4cc4376da3d5",version:"1",entityType:n.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},GN={type:n.GenericReference,id:"8f518502-9eea-462c-8753-8bc3bf3e29a9",version:"1",entityType:n.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},FN={type:n.GenericReference,id:"123b8f18-79d9-4166-a5f6-78ec4b461680",version:"1",entityType:n.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},xN={type:n.GenericReference,id:"e691026f-6db0-43ec-93cd-805ae7d713e3",version:"1",entityType:n.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},kN={type:n.GenericReference,id:"a375eedf-4811-41aa-a998-4897c69c46b9",version:"1",entityType:n.ReturnDeclaration,entityId:"024a9b77-c1cd-4b67-b3ba-1935046b590d"},SN={like:!1,inferred:!1,id:"767cc5ed-20ec-4fd1-89b1-c8d19daa87d1",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Ot,asType:!1,isList:!1,parent:kN},ZN={type:n.GenericReference,id:"e64b0c23-129d-4d74-8ab4-eec60e1e5b9b",version:"1",entityType:n.ReturnStatement,entityId:"ea444a9e-6a5b-4138-b81f-0d5618c3c6f3"},EA={constant:!0,isError:!0,id:"024a9b77-c1cd-4b67-b3ba-1935046b590d",type:n.ReturnDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Error",description:"The error that occurred during the HTTP request to the government company registry",dataType:SN,defaultValue:null,implements:null,required:!0,readsValue:null,index:0,parent:ZN},qN={type:n.ReturnStatement,id:"ea444a9e-6a5b-4138-b81f-0d5618c3c6f3",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[],calledByError:[xN],calledByEntry:[],calledBySuccess:[],throws:EA,x:0,y:0,parent:FN},JN={type:n.GenericReference,id:"323814fb-9723-49ef-bbba-f882384f18e4",version:"1",entityType:n.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},WN={id:"2f63f7ba-0ff0-458a-92bc-65d1dd4df8c3",type:n.OutputMap,declaration:Bd,defaultValue:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,writesValues:[EA],index:0,parentRelationType:$n.Error,parent:JN},zN={type:n.Operation,id:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Bs,inputs:[VN,ON,TA,_N,NN],outputs:[jN,UN,wN],process:null,calledByError:[],calledByEntry:[$N],calledBySuccess:[],successCalls:[vA,IA],errorCalls:[qN],error:WN,x:0,y:0,parent:GN},YN={type:n.GenericReference,id:"597b8aa2-f6f2-4f7d-bbb9-b703d02de96a",version:"1",entityType:n.InputMap,entityId:"b0e7b4e5-2f5f-4d4c-8f5c-1e1f1e1a1b1a"},HN={type:n.GenericReference,id:"546d99b3-28c4-4186-93a0-ac53c1565e07",version:"1",entityType:n.Operation,entityId:"8f2094c0-e27e-465e-9280-112da0de9019"},KN={id:"b0e7b4e5-2f5f-4d4c-8f5c-1e1f1e1a1b1a",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Ja,name:null,description:null,readsValue:null,defaultValue:{id:"base-query-string-map-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:"?name=",name:L.String,parent:YN,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null},index:0,parent:HN},XN={type:n.GenericReference,id:"6a56fb22-82e1-47c9-bf85-41c4e5986c74",version:"1",entityType:n.Operation,entityId:"8f2094c0-e27e-465e-9280-112da0de9019"},QN={type:n.GenericReference,id:"191c6a6d-9bcb-441e-bf98-de0da96f5f3a",version:"1",entityType:n.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},eL={type:n.GenericReference,id:"d8fcbb76-dae2-40cf-847a-02364721b387",version:"1",entityType:n.VariableDeclaration,entityId:"83e12ebb-c958-4dee-b750-8ab9930f0f4e"},tL={like:!1,inferred:!1,id:"6a70c42b-024a-47c6-8a9d-af52be9c9b9a",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:se,isList:!1,asType:!1,parent:eL},iL={type:n.GenericReference,id:"2282e2c0-ed9e-4c7b-86fc-1a364fa0fdb8",version:"1",entityType:n.OutputMap,entityId:"f6c22cf8-63e4-4b2d-b649-b5ab884cf9a5"},rL={type:n.GenericReference,id:"assembled-query-string-called-by-ref",version:"1",entityType:n.Operation,entityId:"8f2094c0-e27e-465e-9280-112da0de9019"},AA={constant:!0,required:!0,type:n.VariableDeclaration,id:"83e12ebb-c958-4dee-b750-8ab9930f0f4e",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Query string",description:"The final, assembled query string that will be used in the HTTP request to the government company registry",defaultValue:null,dataType:tL,readsValue:iL,writesValues:[TA],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[rL],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:QN},nL={id:"f6c22cf8-63e4-4b2d-b649-b5ab884cf9a5",type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,writesValues:[AA],declaration:Cs,index:0,parent:XN},sL={type:n.GenericReference,id:"a1b48e7c-0301-4747-b4dd-b5af79956f7f",version:"1",entityType:n.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},aL={type:n.GenericReference,id:"487c9235-be95-4c96-b9b5-2714b374a277",version:"1",entityType:n.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},oL={type:n.GenericReference,id:"f6471f4f-b269-46fa-80ec-885e87a449c2",entityId:"a4106e8e-ec4f-4633-a636-09ae73135f69",version:"1",entityType:n.ArgumentDeclaration},lL={type:n.GenericReference,id:"62b4afb0-6c21-4b0f-abd3-cebef7b17c28",version:"1",entityType:n.Operation,entityId:"8f2094c0-e27e-465e-9280-112da0de9019"},bA={id:"08f36e2b-bad2-425c-8129-93560bec8488",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.InputMap,declaration:Wa,name:null,description:null,readsValue:oL,defaultValue:null,index:1,parent:lL},dL={type:n.Operation,id:"8f2094c0-e27e-465e-9280-112da0de9019",declaration:Vs,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,inputs:[bA,KN],outputs:[nL],process:null,calledByError:[],calledByEntry:[sL],calledBySuccess:[],successCalls:[AA],errorCalls:[],error:null,x:0,y:0,parent:aL},uL={type:n.GenericReference,id:"c2e0e9b4-aa46-4974-bf8a-886b737b12fb",version:"1",entityType:n.ArgumentDeclaration,entityId:"a4106e8e-ec4f-4633-a636-09ae73135f69"},pL={like:!1,inferred:!1,id:"a4279518-3bf3-44b7-a2ac-65142ca37f1c",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:se,asType:!1,isList:!1,parent:uL},cL={type:n.GenericReference,id:"dc273f24-164b-4943-82f9-589b237141e2",version:"1",entityType:n.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},RA={constant:!0,id:"a4106e8e-ec4f-4633-a636-09ae73135f69",type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Company Name to check",description:"The name of the company to check in the government registry",dataType:pL,defaultValue:null,implements:null,required:!1,writesValues:[bA],index:0,parent:cL},fL={type:n.GenericReference,id:"2178a10c-1cc0-4dad-97c3-0941be6c9738",version:"1",entityType:n.Project,entityId:ce},DA={type:n.FunctionDeclaration,id:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Check Gov Company Registry availability",description:"Check whether the company name is already registered in the government company registry, or it is available for a new company to use.",inputs:[RA],calls:[dL,zN],implements:null,index:null,collapsed:!1,private:!1,x:0,y:0,parent:fL},yL={type:n.GenericReference,id:"4d66c53c-f0f7-496a-9955-1e6c8533c5e0",version:"1",entityType:n.Condition,entityId:"a8f4b0f2-5e5e-4e8f-9d7b-1b5b9b6e9a4b"},hL={type:n.GenericReference,id:"6fa0c8e0-d104-4b4d-a035-d4f6e0c49f09",version:"1",entityType:n.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},mL={type:n.GenericReference,id:"146408d5-5336-4877-941a-777dd5871926",version:"1",entityType:n.ArgumentDeclaration,entityId:"c6cf620c-1eee-4919-8578-1a0b6c088551"},vL={type:n.GenericReference,id:"34ae8f8c-548d-4654-984a-6f36affdaf49",version:"1",entityType:n.FunctionCall,entityId:"d2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a"},OA={id:"69b1215d-9ebf-4274-b9cb-d4a5888f5122",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.InputMap,declaration:RA,name:null,description:null,readsValue:mL,defaultValue:null,index:0,parent:vL},TL={type:n.GenericReference,id:"07540a94-dda1-40b3-8452-f209bdc87b88",version:"1",entityType:n.FunctionCall,entityId:"d2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a"},IL={type:n.GenericReference,id:"eaddf12a-a995-429e-90a0-13bf06efeb28",version:"1",entityType:n.VariableDeclaration,entityId:"faaf3bf6-917d-40d7-aee6-5164f6646c4b"},EL={like:!1,inferred:!1,id:"7fdaf943-3ffb-48e0-b766-b86cc24090cf",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:er,asType:!1,isList:!1,parent:IL},AL={type:n.GenericReference,id:"030fb5c5-af4d-4c85-8cf0-e99edd50d2bd",version:"1",entityType:n.OutputMap,entityId:"c1ec31f0-25ca-42ac-a4c4-c9ec2255f55b"},bL={type:n.GenericReference,id:"a8b618e9-c68c-48c1-8bd6-ef47c87d699e",version:"1",entityType:n.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},RL={type:n.GenericReference,id:"is-company-name-valid-var-called-by-ref",version:"1",entityType:n.FunctionCall,entityId:"d2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a"},PA={constant:!0,required:!0,type:n.VariableDeclaration,id:"faaf3bf6-917d-40d7-aee6-5164f6646c4b",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Is name valid",description:"Whether the company name is valid",defaultValue:null,dataType:EL,readsValue:AL,writesValues:[],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[RL],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:bL},DL={id:"c1ec31f0-25ca-42ac-a4c4-c9ec2255f55b",type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Ru,defaultValue:null,writesValues:[PA],index:0,parent:TL},OL={type:n.FunctionCall,id:"d2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:DA,inputs:[OA],outputs:[DL],calledByError:[],calledByEntry:[],process:null,calledBySuccess:[yL],successCalls:[PA],errorCalls:[],error:null,x:0,y:0,parent:hL},PL={type:n.GenericReference,id:"9d0b87b4-bfed-4e02-9e84-6831c21feae2",version:"1",entityType:n.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},wL={type:n.GenericReference,id:"74345f4f-e80d-48be-adff-d12fcea25bec",version:"1",entityType:n.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},CL={type:n.GenericReference,id:"b39279ea-969a-4efb-a9ec-353bfd13db65",version:"1",entityType:n.ArgumentDeclaration,entityId:"c6cf620c-1eee-4919-8578-1a0b6c088551"},VL={type:n.GenericReference,id:"549db613-f225-4c5b-9634-7d096717f0ff",version:"1",entityType:n.Condition,entityId:"a8f4b0f2-5e5e-4e8f-9d7b-1b5b9b6e9a4b"},wA={id:"358e242c-7448-442e-ab8b-fd7fa119ea71",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.InputMap,declaration:ln.inputs[0],name:null,description:null,readsValue:CL,defaultValue:null,index:0,parent:VL},BL={type:n.Condition,id:"a8f4b0f2-5e5e-4e8f-9d7b-1b5b9b6e9a4b",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:ln,inputs:[wA],calledByError:[],calledByEntry:[PL],calledBySuccess:[],successCalls:[OL],errorCalls:[],x:0,y:0,parent:wL},_L={type:n.GenericReference,id:"43ba1e25-f805-488f-8ae8-c58bb6215b2f",version:"1",entityType:n.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},ML={type:n.GenericReference,id:"eb091bed-507f-4a1e-93b5-7cd2fccfe002",version:"1",entityType:n.VariableDeclaration,entityId:"9c928995-0dd5-4f97-9962-56b343bc8a45"},NL={like:!1,inferred:!1,id:"d64152ea-831f-4426-9506-a39bfa170513",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:rs,asType:!1,isList:!1,parent:ML},LL={type:n.GenericReference,id:"7e79c29f-f7bd-441a-a77e-c627604dae94",version:"1",entityType:n.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},UL={type:n.GenericReference,id:"8995ce5f-d5cf-4341-a8b1-5c046cc78b89",version:"1",entityType:n.ArgumentDeclaration,entityId:"7ed0f7bb-2df0-44e2-b0b3-0709dcca8071"},gL={type:n.GenericReference,id:"new-company-bank-account-var-decl-1-called-by-ref",version:"1",entityType:n.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},CA={constant:!0,required:!0,type:n.VariableDeclaration,id:"9c928995-0dd5-4f97-9962-56b343bc8a45",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"New bank account",description:"The new entity value representing the new bank account of the company",defaultValue:null,dataType:NL,readsValue:UL,writesValues:[],inputs:[],outputs:[],calledByError:[],calledByEntry:[gL],calledBySuccess:[],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:LL},jL={type:n.GenericReference,id:"9a4887bf-d50d-43e4-bdd5-a5262f65f04b",version:"1",entityType:n.ArgumentDeclaration,entityId:"7ed0f7bb-2df0-44e2-b0b3-0709dcca8071"},$L={like:!1,inferred:!1,id:"ae148c06-3143-49e9-9614-c3aca3f6fa7b",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:rs,asType:!1,isList:!1,parent:jL},GL={constant:!0,id:"7ed0f7bb-2df0-44e2-b0b3-0709dcca8071",type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"New bank account",description:"The new bank account of the company",dataType:$L,implements:null,defaultValue:null,required:!0,index:1,writesValues:[CA],parent:_L},FL={type:n.GenericReference,id:"caec9cf8-3133-48d4-a390-114fa71b2933",version:"1",entityType:n.DefinitionEntity,entityId:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d"},xL={type:n.GenericReference,id:"cebcbad8-ca87-4c4b-be8a-312293d49892",version:"1",entityType:n.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},kL={type:n.GenericReference,id:"7b8ccfe5-f9cd-4776-a19b-80c689bbe3df",version:"1",entityType:n.ArgumentDeclaration,entityId:"c6cf620c-1eee-4919-8578-1a0b6c088551"},SL={like:!1,inferred:!1,id:"2a6b4703-ac8d-4d25-8abd-48a115577fec",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:se,asType:!1,isList:!1,parent:kL},ZL={constant:!0,id:"c6cf620c-1eee-4919-8578-1a0b6c088551",type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"New company name",description:null,dataType:SL,implements:null,defaultValue:null,required:!0,index:0,writesValues:[wA,OA],parent:xL},qL={type:n.FunctionDeclaration,id:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Company changed event",description:"The event that is triggered when a company is changed",collapsed:!1,inputs:[ZL,GL],calls:[BL,CA],index:1,private:!1,implements:null,x:0,y:0,parent:FL},JL={type:n.GenericReference,id:"employee-manager-property-data-type-entity-ref-id",version:"1",entityType:n.DefinitionEntity,entityId:"employee-entity-id"},WL={type:n.GenericReference,id:"employee-manager-property-data-type-parent-ref-id",version:"1",entityType:n.Property,entityId:"employee-manager-property-id"},zL={like:!1,inferred:!1,id:"employee-manager-property-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:JL,isList:!1,asType:!1,parent:WL},YL={type:n.GenericReference,id:"employee-manager-property-parent-ref-id",version:"1",entityType:n.DefinitionEntity,entityId:"employee-entity-id"},HL={constant:!1,required:!0,hidden:!1,type:n.Property,id:"employee-manager-property-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Manager",description:"The manager of the employee",index:0,implements:null,private:!1,static:!1,defaultValue:null,dataType:zL,abstract:!1,parent:YL},KL={type:n.GenericReference,id:"employee-start-date-property-data-type-parent-ref-id",version:"1",entityType:n.Property,entityId:"employee-start-date-property-id"},XL={like:!1,inferred:!1,id:"employee-start-date-property-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Li,isList:!1,asType:!1,parent:KL},QL={type:n.GenericReference,id:"employee-start-date-property-parent-ref-id",version:"1",entityType:n.DefinitionEntity,entityId:"employee-entity-id"},eU={constant:!1,hidden:!1,required:!0,type:n.Property,id:"employee-start-date-property-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Start date",description:"The date the employee started working in the company",index:0,private:!1,static:!1,defaultValue:null,implements:null,dataType:XL,abstract:!1,parent:QL},tU={type:n.GenericReference,id:"employee-department-property-ref-id",version:"1",entityType:n.Property,entityId:"employee-department-property-id"},iU={like:!1,inferred:!1,id:"employee-department-property-data-type-id",type:n.DataType,parentRelationType:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:tr,isList:!1,asType:!1,options:["Human Resources","Finance","IT","Sales","Marketing","Customer Service","Logistics","Product"],parent:tU},rU={type:n.GenericReference,id:"employee-department-property-parent-ref-id",version:"1",entityType:n.DefinitionEntity,entityId:"employee-entity-id"},nU={constant:!1,hidden:!1,required:!0,type:n.Property,id:"employee-department-property-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Department",description:"The department the employee works in, from a list of departments in the company",index:0,defaultValue:null,implements:null,static:!1,private:!1,dataType:iU,abstract:!1,parent:rU},sU={type:n.GenericReference,id:"employee-prototype-parent-ref-id",version:"1",entityType:n.Project,entityId:ce},Ei={type:n.DefinitionEntity,id:"employee-entity-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Employee",description:"A entity that represents an employee in the company",properties:[nU,eU,HL],abstract:!1,static:!1,abstractMethods:[],methods:[],implements:[],extends:[Jt],x:0,y:0,parent:sU},aU={type:n.GenericReference,id:"dec8fbfe-9124-41fd-9f1c-5b2f07cfd6ba",version:"1",entityType:n.Property,entityId:"4f52d044-f3dd-4bdf-927e-637c3b92e8bd"},oU={like:!1,inferred:!1,id:"bc0b8979-6c43-4d47-a712-6742b89e3c00",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:se,isList:!1,asType:!1,parent:aU},lU={type:n.GenericReference,id:"4f8c0a05-466e-4672-b4c4-6bd408c0be9a",version:"1",entityType:n.DefinitionEntity,entityId:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d"},dU={constant:!1,hidden:!1,required:!0,type:n.Property,id:"4f52d044-f3dd-4bdf-927e-637c3b92e8bd",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Company Name",private:!1,static:!1,description:"The name of the company",index:0,defaultValue:null,implements:null,dataType:oU,abstract:!1,parent:lU},uU={type:n.GenericReference,id:"95173fe0-a6e6-443c-94f3-f7c5cf171fcf",version:"1",entityType:n.Property,entityId:"80c86e1b-caca-4ba5-9b1f-38f72d10e4a3"},pU={like:!1,inferred:!1,id:"ddbb6f5c-0cf4-41fb-83b3-b6c47c0e338d",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:rs,isList:!1,asType:!1,parent:uU},cU={type:n.GenericReference,id:"6a9a0b72-a05d-4169-b3f3-5afb01e8d0df",version:"1",entityType:n.DefinitionEntity,entityId:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d"},Du={constant:!1,hidden:!1,required:!0,type:n.Property,id:"80c86e1b-caca-4ba5-9b1f-38f72d10e4a3",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Bank account",description:"The bank account of the company",index:1,implements:null,static:!1,private:!1,defaultValue:null,dataType:pU,abstract:!1,parent:cU},fU={type:n.GenericReference,id:"62892cc6-d227-4088-90d3-ae7c15ed4af4",version:"1",entityType:n.Property,entityId:"19a31727-1fba-40a5-be25-18e0f149d5cb"},yU={like:!1,inferred:!1,id:"1f7629df-dc29-4c89-8369-c6d043e97a9e",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Jt,isList:!1,asType:!1,parent:fU},hU={type:n.GenericReference,id:"89384206-fd5a-4f0a-849c-f777473e5773",version:"1",entityType:n.DefinitionEntity,entityId:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d"},mU={constant:!1,hidden:!1,required:!0,type:n.Property,id:"19a31727-1fba-40a5-be25-18e0f149d5cb",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Company Owner",description:"The person that owns the company",index:2,static:!1,implements:null,defaultValue:null,dataType:yU,private:!0,abstract:!1,parent:hU},vU={type:n.GenericReference,id:"4d2ffb6c-5f38-436e-8339-fb9878ac2b5e",version:"1",entityType:n.Property,entityId:"f8310850-a87e-405c-b182-4f1d5fa49240"},TU={like:!1,inferred:!1,id:"ad44250b-40c2-48f7-a480-381fa938f562",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Ei,isList:!0,asType:!1,parent:vU},IU={type:n.GenericReference,id:"aa5d4eee-6fac-4e72-bf21-9c8750024541",version:"1",entityType:n.DefinitionEntity,entityId:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d"},EU={constant:!1,hidden:!1,required:!0,type:n.Property,id:"f8310850-a87e-405c-b182-4f1d5fa49240",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Employees",description:null,index:3,defaultValue:null,dataType:TU,implements:null,private:!0,static:!1,abstract:!1,parent:IU},AU={id:"company-prototype-primary-key-property-data-type-ref-id",type:n.GenericReference,entityId:"company-prototype-primary-key-property-id",version:"1",entityType:n.Property},bU={id:"company-prototype-primary-key-property-ref-id",type:n.GenericReference,entityId:"company-prototype-primary-key-property-id",version:"1",entityType:n.Property},RU={like:!1,inferred:!1,id:"company-prototype-primary-key-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ir,asType:!1,parent:bU},DU={id:"company-prototype-primary-key-property-parent-ref-id",type:n.GenericReference,entityId:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d",version:"1",entityType:n.DefinitionEntity},OU={constant:!1,hidden:!1,required:!0,id:"company-prototype-primary-key-property-id",name:"Identifier",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,implements:Wn,static:!1,index:4,defaultValue:{id:"company-prototype-primary-key-property-data-type-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.UUID,value:null,parent:AU,autogeneration:{type:vt.Unique,rangeStart:null,rangeEnd:null},valueAsTypeList:null,valueAsTypeSingle:null},dataType:RU,description:"A property with a unique value for the entity, that can be used to identify the entity among other entities of the same type.",parent:DU},PU={type:n.GenericReference,id:"e3c03b6b-2ea0-4d99-865d-5e6a348672d0",version:"1",entityType:n.Project,entityId:ce},Ai={type:n.DefinitionEntity,id:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Company",description:null,properties:[dU,Du,mU,EU,OU],static:!1,abstract:!1,abstractMethods:[],methods:[lN,qL],extends:[],implements:[Ct,pi],x:0,y:0,parent:PU},wU={type:n.GenericReference,id:"ffcad334-138d-4b67-8fb3-5f0e6f5fefbd",version:"1",entityType:n.Project,entityId:ce},Ou={type:n.FunctionDeclaration,id:"0f89260c-8c58-4639-8629-d9ea5ab40ba7",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Show popup",description:null,inputs:[],calls:[],implements:null,collapsed:!1,private:!1,index:null,x:0,y:0,parent:wU};n.GenericReference,n.DataType;const CU={id:"cron-job-entity-expression-property-ref-id",type:n.GenericReference,entityId:"cron-job-entity-expression-property-id",version:"1",entityType:n.Property},VU={like:!1,inferred:!1,id:"cron-job-entity-expression-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:se,asType:!1,parent:CU},BU={id:"cron-job-entity-ref-id",type:n.GenericReference,entityId:"cron-job-entity-id",version:"1",entityType:n.DefinitionEntity},_U={constant:!1,hidden:!1,required:!0,id:"cron-job-entity-expression-property-id",type:n.Property,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Cron expression",description:"The cron expression that defines when the cron job should be triggered",defaultValue:null,dataType:VU,implements:null,static:!0,private:!1,abstract:!1,index:0,parent:BU},MU={id:"cron-job-entity-trigger-show-popup-func-call-called-by-ref-one-id",type:n.GenericReference,entityId:"cron-job-entity-trigger-func-decl-id",version:"1",entityType:n.FunctionDeclaration},NU={id:"cron-job-entity-trigger-show-popup-func-call-parent-ref-id",type:n.GenericReference,entityId:"cron-job-entity-trigger-func-decl-id",version:"1",entityType:n.FunctionDeclaration},LU={id:"cron-job-entity-trigger-show-popup-func-call-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.FunctionCall,declaration:Ou,inputs:[],outputs:[],process:null,successCalls:[],calledByError:[],calledByEntry:[MU],calledBySuccess:[],errorCalls:[],error:null,x:0,y:0,parent:NU},UU={id:"cron-job-entity-trigger-func-decl-parent-ref-id",type:n.GenericReference,entityId:"cron-job-entity-id",version:"1",entityType:n.DefinitionEntity},gU={id:"cron-job-entity-trigger-func-decl-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.FunctionDeclaration,name:"Scheduled trigger",description:"The function that is called when the cron job is triggered",inputs:[],private:!1,implements:Qd,calls:[LU],collapsed:!1,index:0,x:0,y:0,parent:UU},jU={id:"cron-job-entity-parent-ref-id",type:n.GenericReference,entityId:ce,version:"1",entityType:n.Project},$U={id:"cron-job-entity-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DefinitionEntity,name:"Run at 12pm on Christmas day",description:"A cron job that runs at 12pm on Christmas day",properties:[_U],static:!0,abstract:!1,abstractMethods:[],extends:[co],implements:[],methods:[gU],x:0,y:0,parent:jU},GU={type:n.GenericReference,id:"52dbd85c-48b1-462a-8205-2437d6fb1cb4",version:"1",entityType:n.Project,entityId:ce},FU={type:n.DefinitionEntity,id:"6f0908c2-09c6-4a8b-8f43-d2467fe6fb39",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Get bank all bank accounts",description:null,properties:[],static:!0,abstract:!1,abstractMethods:[],methods:[],extends:[],implements:[js],x:0,y:0,parent:GU},Zo="f558fbf8-67de-4545-9804-6ae621e0b2d4",xU={id:"getCompanyByIdEndpointPathParamsVariableDataTypeRef",type:n.GenericReference,version:"1",entityType:n.ArgumentDeclaration,entityId:"getCompanyByIdEndpointPathParamsArgumentDeclaration"},kU={id:"getCompanyByIdEndpointPathParamsArgumentDeclarationRef",type:n.GenericReference,version:"1",entityType:n.ArgumentDeclaration,entityId:"getCompanyByIdEndpointPathParamsArgumentDeclaration"},SU={like:!1,inferred:!1,id:"getCompanyByIdEndpointPathParamsVariableDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!0,entity:se,asType:!1,parent:kU},ZU={id:"getCompanyByIdEndpointReachedEntityEventRef",type:n.GenericReference,version:"1",entityType:n.FunctionDeclaration,entityId:"getCompanyByIdEndpointReachedEntityEvent"},qU={id:"getCompanyByIdEndpointRequestHeadersVariableDataTypeRef",type:n.GenericReference,version:"1",entityType:n.ArgumentDeclaration,entityId:"getCompanyByIdEndpointRequestHeadersArgumentDeclaration"},JU={id:"getCompanyByIdEndpointRequestHeadersArgumentDeclarationRef",type:n.GenericReference,version:"1",entityType:n.ArgumentDeclaration,entityId:"getCompanyByIdEndpointRequestHeadersArgumentDeclaration"},WU={like:!1,inferred:!1,id:"getCompanyByIdEndpointRequestHeadersVariableDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!0,entity:Ot,asType:!1,parent:JU},zU={constant:!0,id:"getCompanyByIdEndpointRequestHeadersArgumentDeclaration",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:"A set of any properties, with names and value that transmit metadata about the request.",type:n.ArgumentDeclaration,writesValues:[],name:"Request headers",defaultValue:{id:"getCompanyByIdEndpointRequestHeadersVariableDataTypeDefaultValueId",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.KeyValue,value:{},parent:qU,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},dataType:WU,implements:kd,required:!0,index:0,parent:ZU},YU={id:"getCompanyByIdEndpointReachedEntityEventRefTwo",type:n.GenericReference,version:"1",entityType:n.FunctionDeclaration,entityId:"getCompanyByIdEndpointReachedEntityEvent"},HU={constant:!0,id:"getCompanyByIdEndpointPathParamsArgumentDeclaration",type:n.ArgumentDeclaration,description:"A standarized text, without spaces that is added at the end of the domain and routes the request to a specific resource within the target server. For example: /api/users/123, /api/users/123/:name, /api/users/123/:name/:age.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Path parameters",writesValues:[],defaultValue:{id:"getCompanyByIdEndpointPathParamsVariableDataTypeDefaultValueId",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.KeyValue,value:{},parent:xU,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},dataType:SU,implements:Sd,required:!0,index:1,parent:YU},KU={id:"getCompanyByIdEndpointReachedEntityEventRefThree",type:n.GenericReference,version:"1",entityType:n.FunctionDeclaration,entityId:"getCompanyByIdEndpointReachedEntityEvent"},XU={id:"getCompanyByIdEndpointRequestQueryParamsVariableDataTypeRef",type:n.GenericReference,version:"1",entityType:n.ArgumentDeclaration,entityId:"getCompanyByIdEndpointRequestQueryParamsArgumentDeclaration"},QU={id:"getCompanyByIdEndpointRequestQueryParamsArgumentDeclarationRef",type:n.GenericReference,version:"1",entityType:n.ArgumentDeclaration,entityId:"getCompanyByIdEndpointRequestQueryParamsArgumentDeclaration"},eg={like:!1,inferred:!1,id:"getCompanyByIdEndpointRequestQueryParamsVariableDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!0,asType:!1,entity:se,parent:QU},tg={constant:!0,id:"getCompanyByIdEndpointRequestQueryParamsArgumentDeclaration",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:"A text with standarized format, without spaces that is added at the end of the URL path, after the ? character. It contains data that might be used to process the request. For example: /api/users?name=John&age=30",type:n.ArgumentDeclaration,writesValues:[],name:"Request query params",defaultValue:{id:"getCompanyByIdEndpointRequestQueryParamsVariableDataTypeDefaultValueId",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.KeyValue,value:{},parent:XU,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},dataType:eg,implements:Zd,required:!0,index:2,parent:KU},ig={id:"getCompanyByIdEndpointReachedEntityEventRefFour",type:n.GenericReference,version:"1",entityType:n.FunctionDeclaration,entityId:"getCompanyByIdEndpointReachedEntityEvent"},rg={id:"getCompanyByIdEndpointRequestBodyArgumentDeclarationRef",type:n.GenericReference,version:"1",entityType:n.ArgumentDeclaration,entityId:"getCompanyByIdEndpointRequestBodyArgumentDeclaration"},ng={like:!1,inferred:!1,id:"getCompanyByIdEndpointRequestBodyVariableDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,asType:!1,entity:Ot,parent:rg},sg={constant:!0,id:"getCompanyByIdEndpointRequestBodyArgumentDeclaration",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:"The main data payload of the request.",type:n.ArgumentDeclaration,writesValues:[],name:"Request body",defaultValue:null,dataType:ng,implements:qd,index:3,required:!0,parent:ig},ag={id:"getCompanyByIdEndpointResponseCodeReturnDeclarationRef",type:n.GenericReference,version:"1",entityType:n.ReturnDeclaration,entityId:"getCompanyByIdEndpointResponseCodeReturnDeclaration"},og={like:!1,inferred:!1,id:"9ba575b0-6f8e-436d-a3de-3b843622aa17",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,asType:!1,isList:!1,parent:ag},lg={id:"getCompanyByIdEndpointReturnStatementRef",type:n.GenericReference,version:"1",entityType:n.ReturnStatement,entityId:"getCompanyByIdEndpointReturnStatement"},dg={constant:!0,isError:!1,id:"getCompanyByIdEndpointResponseCodeReturnDeclaration",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:"A standarized number that represents the status of the response. 200 for OK, 404 for not found, 500 for server error, etc.",type:n.ReturnDeclaration,name:"Response code",defaultValue:null,dataType:og,implements:Jd,readsValue:null,required:!0,index:0,parent:lg},ug={id:"getCompanyByIdEndpointResponseHeadersDataTypeRef",type:n.GenericReference,version:"1",entityType:n.ReturnDeclaration,entityId:"getCompanyByIdEndpointResponseHeadersReturnDeclaration"},pg={id:"getCompanyByIdEndpointResponseHeadersReturnDeclarationRef",type:n.GenericReference,version:"1",entityType:n.ReturnDeclaration,entityId:"getCompanyByIdEndpointResponseHeadersReturnDeclaration"},cg={like:!1,inferred:!1,id:"getCompanyByIdEndpointResponseHeadersDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!0,entity:Ot,asType:!1,parent:pg},fg={id:"getCompanyByIdEndpointReturnStatementRefTwo",type:n.GenericReference,version:"1",entityType:n.ReturnStatement,entityId:"getCompanyByIdEndpointReturnStatement"},yg={constant:!0,isError:!1,id:"getCompanyByIdEndpointResponseHeadersReturnDeclaration",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:"A set of any properties, with names and value that transmit metadata about the response.",type:n.ReturnDeclaration,name:"Response headers",defaultValue:{id:"getCompanyByIdEndpointResponseHeadersDataTypeDefaultValueId",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.KeyValue,value:{},parent:ug,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},dataType:cg,implements:Wd,readsValue:null,required:!0,index:1,parent:fg},hg={id:"getCompanyByIdEndpointResponseBodyReturnDeclarationRef",type:n.GenericReference,version:"1",entityType:n.ReturnDeclaration,entityId:"getCompanyByIdEndpointResponseBodyReturnDeclaration"},mg={like:!1,inferred:!1,id:"getCompanyByIdEndpointResponseBodyDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,asType:!1,entity:Ot,parent:hg},vg={id:"getCompanyByIdEndpointReturnStatementRefThree",type:n.GenericReference,version:"1",entityType:n.ReturnStatement,entityId:"getCompanyByIdEndpointReturnStatement"},Tg={constant:!0,isError:!1,id:"getCompanyByIdEndpointResponseBodyReturnDeclaration",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:"The main data payload of the response.",type:n.ReturnDeclaration,name:"Response body",implements:zd,defaultValue:null,dataType:mg,readsValue:null,required:!0,index:2,parent:vg},Ig={id:"getCompanyByIdEndpointReturnStatementCallerRef",type:n.GenericReference,entityId:"getCompanyByIdEndpointReachedEntityEvent",version:"1",entityType:n.FunctionDeclaration},Eg={id:"getCompanyByIdEndpointReachedEntityEventRefFive",type:n.GenericReference,version:"1",entityType:n.FunctionDeclaration,entityId:"getCompanyByIdEndpointReachedEntityEvent"};n.ReturnStatement;const Ag={id:"endpointBuiltInBaseEntityRefFour",type:n.GenericReference,version:"1",entityType:n.BuiltInBaseEntity,entityId:Zo},bg={id:"getCompanyByIdEndpointReachedEntityEvent",name:"Endpoint reached",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.FunctionDeclaration,inputs:[zU,HU,tg,sg],description:"Fired when the endpoint is reached.",calls:[],collapsed:!1,implements:Yd,index:0,private:!1,x:0,y:0,parent:Ag},Rg={id:"getCompanyByIdEndpointPathPropertyDataTypeRef",type:n.GenericReference,version:"1",entityType:n.Property,entityId:"getCompanyByIdEndpointPathProperty"},Dg={id:"getCompanyByIdEndpointPathPropertyRef",type:n.GenericReference,version:"1",entityType:n.Property,entityId:"getCompanyByIdEndpointPathProperty"},Og={like:!1,inferred:!1,id:"getCompanyByIdEndpointPathPropertyDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:se,asType:!1,parent:Dg},Pg={id:"getCompanyByIdEndpointBaseEntityRefTwo",type:n.GenericReference,version:"1",entityType:n.DefinitionEntity,entityId:Zo},wg={constant:!1,id:"getCompanyByIdEndpointPathProperty",hidden:!1,required:!0,name:"Path",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,static:!0,implements:Fd,defaultValue:{id:"getCompanyByIdEndpointPathPropertyDataTypeDefaultValueId",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.String,value:"/company/{id}",parent:Rg,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null},dataType:Og,index:1,description:"Path to the endpoint, for example /api/users, or /api/users/{id}, or /api/users/{id}/:name. The path can contain parameters, which are defined by curly braces, and will be passed to the endpoint event as variables with the same name.",parent:Pg},Cg={id:"getCompanyByIdEndpointMethodPropertyDataTypeRef",type:n.GenericReference,version:"1",entityType:n.Property,entityId:"getCompanyByIdEndpointMethodProperty"},Vg={id:"getCompanyByIdEndpointMethodPropertyRef",type:n.GenericReference,version:"1",entityType:n.Property,entityId:"getCompanyByIdEndpointMethodProperty"},Bg={like:!1,inferred:!1,id:"getCompanyByIdEndpointMethodPropertyDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,entity:tr,isList:!0,asType:!1,options:["GET","POST","PUT","DELETE","PATCH","OPTIONS","HEAD","TRACE","CONNECT","CUSTOM"],parent:Vg},_g={id:"getCompanyByIdEndpointBaseEntityRefThree",type:n.GenericReference,version:"1",entityType:n.DefinitionEntity,entityId:Zo},Mg={constant:!1,hidden:!1,required:!0,id:"getCompanyByIdEndpointMethodProperty",name:"Method",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,static:!0,implements:xd,index:0,defaultValue:{id:"getCompanyByIdEndpointMethodPropertyDataTypeDefaultValueId",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:"GET",name:L.Enum,parent:Cg,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null},dataType:Bg,description:null,parent:_g},Ng={type:n.GenericReference,id:"6a905153-8aa8-4424-bd7b-6415731a2725",version:"1",entityType:n.Project,entityId:ce},Lg={type:n.DefinitionEntity,id:Zo,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Get given company data by id",description:null,properties:[wg,Mg],methods:[bg],static:!0,abstract:!1,abstractMethods:[],extends:[],implements:[js],x:0,y:0,parent:Ng},Ug={id:"plant-prototype-database-property-ref-id",type:n.GenericReference,entityId:"plant-prototype-database-property-id",version:"1",entityType:n.Property},gg={id:"plant-prototype-database-property-data-type-default-value-parent-ref-id",type:n.GenericReference,entityId:"plant-prototype-database-property-id",version:"1",entityType:n.Property},jg={like:!1,inferred:!1,id:"plant-prototype-database-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ji,asType:!1,parent:Ug},$g={id:"plant-prototype-database-property-parent-ref-id",type:n.GenericReference,entityId:"plant-entity-id",version:"1",entityType:n.DefinitionEntity},Gg={constant:!1,hidden:!1,required:!0,id:"plant-prototype-database-property-id",name:"Database",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,implements:Jn,static:!0,index:0,defaultValue:{id:"plant-prototype-database-property-data-type-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:null,name:L.EntityTemplate,valueAsTypeList:null,valueAsTypeSingle:Iu,autogeneration:null,parent:gg},dataType:jg,description:"The database that the entity belongs to.",parent:$g},Fg={type:n.GenericReference,id:"plant-name-property-ref-id",version:"1",entityType:n.Property,entityId:"plant-name-property-id"},xg={like:!1,inferred:!1,id:"plant-name-property-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:se,asType:!1,isList:!1,parent:Fg},kg={type:n.GenericReference,id:"animal-name-property-parent-ref-id",version:"1",entityType:n.DefinitionEntity,entityId:"plant-entity-id"},Sg={constant:!1,hidden:!1,required:!0,type:n.Property,id:"plant-name-property-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Name",description:"The name of the plant",defaultValue:null,implements:null,static:!1,private:!1,index:0,dataType:xg,abstract:!1,parent:kg},Zg={type:n.GenericReference,id:"plant-prototype-parent-ref-id",version:"1",entityType:n.Project,entityId:ce},qg={type:n.DefinitionEntity,id:"plant-entity-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Plant",description:"A living creature that is not an animal",abstract:!1,static:!1,abstractMethods:[],properties:[Gg,Sg],methods:[],extends:[],implements:[Ct],x:0,y:0,parent:Zg},Jg={id:"product-prototype-database-property-ref-id",type:n.GenericReference,entityId:"product-prototype-database-property-id",version:"1",entityType:n.Property},Wg={id:"product-prototype-database-property-data-type-default-value-parent-ref-id",type:n.GenericReference,entityId:"product-prototype-database-property-id",version:"1",entityType:n.Property},zg={like:!1,inferred:!1,id:"product-prototype-database-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ji,asType:!1,parent:Jg},Yg={id:"product-prototype-database-property-parent-ref-id",type:n.GenericReference,entityId:"a2d0ec83-72ce-4f54-b059-a39e018fa86c",version:"1",entityType:n.DefinitionEntity},Hg={constant:!1,hidden:!1,required:!0,id:"product-prototype-database-property-id",name:"Database",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,implements:Jn,static:!0,index:0,defaultValue:{id:"product-prototype-database-property-data-type-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:null,name:L.EntityTemplate,valueAsTypeList:null,valueAsTypeSingle:Eu,autogeneration:null,parent:Wg},dataType:zg,description:"The database that the entity belongs to.",parent:Yg},Kg={type:n.GenericReference,id:"13a4045e-dcb0-4159-8d33-10a646078b5a",version:"1",entityType:n.Property,entityId:"d519c26a-15b8-40d8-ad09-13fa9342e9ba"},Xg={like:!1,inferred:!1,id:"7449779e-1d4e-409c-81c6-4b611336ed18",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:se,isList:!1,asType:!1,parent:Kg},Qg={type:n.GenericReference,id:"0969562f-d836-406f-8b48-dd9d417fbe72",version:"1",entityType:n.DefinitionEntity,entityId:"a2d0ec83-72ce-4f54-b059-a39e018fa86c"},ej={constant:!1,hidden:!1,required:!0,type:n.Property,id:"d519c26a-15b8-40d8-ad09-13fa9342e9ba",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Name",description:"The name of the product",index:0,implements:null,static:!1,private:!1,defaultValue:null,dataType:Xg,abstract:!1,parent:Qg},tj={type:n.GenericReference,id:"833a5425-7bd0-41dd-9e97-e018acce9592",version:"1",entityType:n.Project,entityId:ce},ij={id:"product-prototype-primary-key-property-data-type-ref-id",type:n.GenericReference,entityId:"product-prototype-primary-key-property-id",version:"1",entityType:n.Property},rj={id:"product-prototype-primary-key-property-ref-id",type:n.GenericReference,entityId:"product-prototype-primary-key-property-id",version:"1",entityType:n.Property},nj={like:!1,inferred:!1,id:"product-prototype-primary-key-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ir,asType:!1,parent:rj},sj={id:"product-prototype-primary-key-property-parent-ref-id",type:n.GenericReference,entityId:"a2d0ec83-72ce-4f54-b059-a39e018fa86c",version:"1",entityType:n.DefinitionEntity},aj={constant:!1,hidden:!1,required:!0,id:"product-prototype-primary-key-property-id",name:"Identifier",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,implements:null,static:!1,index:0,defaultValue:{id:"product-prototype-primary-key-property-data-type-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.UUID,value:null,parent:ij,autogeneration:{type:vt.Unique,rangeStart:null,rangeEnd:null},valueAsTypeList:null,valueAsTypeSingle:null},dataType:nj,description:"A property with a unique value for the entity, that can be used to identify the entity among other entities of the same type.",parent:sj},oj={type:n.DefinitionEntity,id:"a2d0ec83-72ce-4f54-b059-a39e018fa86c",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Product",description:"A product that can be sold",implements:[Ct,pi],extends:[],abstract:!1,static:!1,abstractMethods:[],properties:[aj,Hg,ej],methods:[],x:0,y:0,parent:tj},ss="project-loaded-event-id",lr="get-bitcoin-price-http-call-operation-id",VA="get-bitcoin-price-http-call-response-body-id",qo="validate-bitcoin-price-response-operation-ids",lj={type:n.GenericReference,id:"validate-bitcoin-data-to-validate-input-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:VA},dj={type:n.GenericReference,id:"validate-bitcoin-data-to-validate-input-map-parent-ref-id",version:"1",entityType:n.Operation,entityId:qo},BA={id:"validate-bitcoin-data-to-validate-input-map-id",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:rn.inputs[1],name:null,description:null,readsValue:lj,defaultValue:null,index:0,parent:dj},uj={type:n.GenericReference,id:"validate-bitcoin-type-to-match-input-map-default-value-parent-ref-id",version:"1",entityType:n.InputMap,entityId:"validate-bitcoin-type-to-match-input-map-id"},pj={type:n.GenericReference,id:"validate-bitcoin-type-to-match-input-map-parent-ref-id",version:"1",entityType:n.Operation,entityId:qo},cj={id:"validate-bitcoin-type-to-match-input-map-id",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:rn.inputs[0],name:null,description:null,readsValue:null,defaultValue:{id:"validate-bitcoin-type-to-match-input-map-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.EntityTemplate,valueAsTypeList:null,valueAsTypeSingle:hA,value:null,parent:uj,autogeneration:null},index:0,parent:pj},fj={type:n.GenericReference,id:"validate-bitcoin-validated-entity-output-map-parent-ref-id",version:"1",entityType:n.Operation,entityId:qo},yj={id:"validate-bitcoin-validated-entity-output-map-id",type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:rn.outputs[0],writesValues:[],index:0,parent:fj},hj={type:n.GenericReference,id:"validate-bitcoin-price-response-operation-parent-ref-id",version:"1",entityType:n.GlobalEvent,entityId:ss},mj={type:n.GenericReference,id:"validate-bitcoin-price-response-operation-called-by-ref-id",version:"1",entityType:n.Operation,entityId:lr},vj={type:n.Operation,id:qo,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:rn,inputs:[cj,BA],outputs:[yj],process:null,successCalls:[],errorCalls:[],error:null,x:0,y:0,calledByError:[],calledByEntry:[],calledBySuccess:[mj],parent:hj},Tj={type:n.GenericReference,id:"96edb661-3f36-406c-8921-f1679dd796a3",version:"1",entityType:n.FunctionCall,entityId:lr},Ij={id:"c93e1393-9b5e-4de2-b8da-7eae647d715a",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.InputMap,declaration:Ya,name:null,description:null,readsValue:null,defaultValue:null,index:0,parent:Tj},Ej={type:n.GenericReference,id:"40312b28-71b8-4b01-a654-58b87191939d",version:"1",entityType:n.FunctionCall,entityId:lr},Aj={type:n.GenericReference,id:"6ea96c7d-02a7-4971-82ad-2f32a0fec8b4",version:"1",entityType:n.InputMap,entityId:"9f21cbac-5a83-4983-8923-9224ffd3ba9f"},bj={id:"9f21cbac-5a83-4983-8923-9224ffd3ba9f",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.InputMap,declaration:Ha,name:null,description:null,readsValue:null,defaultValue:{id:"get-bitcoin-price-http-request-url-argument-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:"https://api.coindesk.com/v1/bpi/currentprice.json",name:L.String,parent:Aj,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null},index:1,parent:Ej},Rj={type:n.GenericReference,id:"2610bf4a-c8a2-4746-b6cc-eb15f7fa8e9c",version:"1",entityType:n.FunctionCall,entityId:lr},Dj={id:"ffb3cd9d-c955-4104-bc7b-299120fe4ede",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.InputMap,declaration:Ka,name:null,description:null,readsValue:null,defaultValue:null,index:2,parent:Rj},Oj={type:n.GenericReference,id:"bfd29a6a-671a-448c-9f2f-f8c7e4ad8349",version:"1",entityType:n.FunctionCall,entityId:lr},Pj={id:"412bf1f3-1a8e-4665-a95f-82117540e34e",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.InputMap,declaration:Xa,name:null,description:null,readsValue:null,defaultValue:null,index:3,parent:Oj},wj={type:n.GenericReference,id:"616a15f3-c224-4b11-b95c-63314edef409",version:"1",entityType:n.FunctionCall,entityId:lr},Cj={id:"4dd4651c-02e4-45f1-b50f-824f3bcb1648",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.OutputMap,defaultValue:null,declaration:eo,writesValues:[],index:1,parent:wj},Vj={type:n.GenericReference,id:"28793b68-4d7e-4826-aee1-f201a3499faf",version:"1",entityType:n.FunctionCall,entityId:lr},Bj={id:"94fe9d35-4dd4-4729-a50c-5283ccd7e661",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.OutputMap,defaultValue:null,declaration:Qa,writesValues:[],index:0,parent:Vj},_j={type:n.GenericReference,id:"f13e04b2-49b4-4c69-85b8-cbbafafa3524",version:"1",entityType:n.FunctionCall,entityId:lr},Mj={id:VA,type:n.OutputMap,defaultValue:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:to,writesValues:[BA],index:2,parent:_j},Nj={type:n.GenericReference,id:"6148d6d0-caaa-45fc-b601-ff2493dfc60f",version:"1",entityType:n.GlobalEvent,entityId:ss},Lj={type:n.GenericReference,id:"b115f084-807b-44b3-ae01-b69cc342f761",version:"1",entityType:n.GlobalEvent,entityId:ss},Uj={type:n.Operation,id:lr,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Bs,inputs:[Ij,bj,Dj,Pj],outputs:[Bj,Cj,Mj],process:null,parent:Lj,calledByError:[],calledByEntry:[Nj],calledBySuccess:[],successCalls:[vj],errorCalls:[],error:null,x:0,y:0},gj={type:n.GenericReference,id:"24e76019-3f94-475b-91ce-297f76bbc224",version:"1",entityType:n.GlobalEvent,entityId:ss},jj={type:n.GenericReference,id:"0eac8e29-cdf2-42f8-8ea7-ad76d4d79abe",version:"1",entityType:n.GlobalEvent,entityId:ss},$j={process:null,type:n.FunctionCall,id:"2d2e7593-bfbf-457c-a607-5fce18eef457",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Ou,inputs:[],outputs:[],calledByError:[],calledByEntry:[gj],calledBySuccess:[],parent:jj,successCalls:[],errorCalls:[],error:null,x:0,y:0},Gj={id:"793b5999-a9da-47fb-9665-0c17ebc6d5c9",type:n.GenericReference,version:"1",entityType:n.Project,entityId:ce},Fj={type:n.GlobalEvent,id:ss,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:Qi.PROJECT_PUBLICATION_COMPLETED,description:null,collapsed:!1,implements:yo,parent:Gj,inputs:[],calls:[$j,Uj],x:0,y:0},ci="abort-execution-func-declaration-id",na="abort-execution-func-exec-var-declaration-id",Pu="abort-execution-func-small-wait-op-id",wu="abort-execution-func-long-wait-op-id",_A="abort-execution-func-long-wait-process-output-id",MA="abort-execution-func-exec-var-instance-write-id",NA="abort-execution-func-long-wait-return-stmt-id",LA="abort-execution-func-small-wait-return-stmt-id",xj="abort-execution-func-exec-var-instance-abort-call-id",Cu="abort-execution-func-exec-var-instance-abort-internal-call-id",Vu="abort-execution-func-exec-second-wait-op-id",kj={type:n.GenericReference,id:"short-wait-return-statement-returned-hello-string-data-type-parent-ref-id",version:"1",entityType:n.ReturnDeclaration,entityId:"short-wait-return-statement-returned-hello-string-id"},Sj={type:n.GenericReference,id:"short-wait-return-statement-returned-hello-string-data-type-default-value-parent-ref-id",version:"1",entityType:n.ReturnDeclaration,entityId:"short-wait-return-statement-returned-hello-string-id"},Zj={like:!1,inferred:!1,id:"short-wait-return-statement-returned-hello-string-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:se,asType:!1,isList:!1,parent:kj},qj={type:n.GenericReference,id:"short-wait-return-statement-returned-hello-string-parent-ref-id",version:"1",entityType:n.ReturnStatement,entityId:LA},Jj={constant:!0,isError:!1,id:"short-wait-return-statement-returned-hello-string-id",type:n.ReturnDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Return 1",description:"A random string that is returned by the function",defaultValue:{id:"short-wait-return-statement-returned-hello-string-data-type-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.String,value:"Hello 2",autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null,parent:Sj},dataType:Zj,implements:null,readsValue:null,required:!0,index:0,parent:qj},Wj={type:n.GenericReference,id:"short-wait-return-statement-called-by-ref-id",version:"1",entityType:n.Operation,entityId:Vu},zj={type:n.GenericReference,id:"short-wait-return-statement-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:ci},Yj={type:n.ReturnStatement,id:LA,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[Jj],calledByError:[],calledByEntry:[],calledBySuccess:[Wj],throws:null,x:0,y:0,parent:zj},Hj={type:n.GenericReference,id:"second-wait-argument-default-value-parent-ref-id",version:"1",entityType:n.InputMap,entityId:"second-wait-argument-map-id"},Kj={type:n.GenericReference,id:"second-wait-argument-map-parent-ref-id",version:"1",entityType:n.Operation,entityId:Vu},Xj={id:"second-wait-argument-map-id",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:en,name:null,description:null,readsValue:null,defaultValue:{id:"second-wait-argument-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:2e3,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null,name:L.Number,parent:Hj},index:0,parent:Kj},Qj={type:n.GenericReference,id:"small-wait-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:ci},e2={type:n.GenericReference,id:"small-wait-called-by-ref-one-id",version:"1",entityType:n.InternalCall,entityId:Cu},t2={id:Vu,type:n.Operation,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Zt,inputs:[Xj],outputs:[],process:null,successCalls:[Yj],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[],calledBySuccess:[e2],error:null,parent:Qj},i2={type:n.GenericReference,id:"abort-exec-func-abort-call-var-instance-abort-internal-call-called-by-ref-one-id",version:"1",entityType:n.VariableInstance,entityId:MA},r2={type:n.GenericReference,id:"abort-exec-func-abort-call-var-instance-abort-internal-call-called-by-ref-two-id",version:"1",entityType:n.Operation,entityId:Pu},n2={type:n.GenericReference,id:"abort-exec-func-abort-call-var-instance-main-project-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:ci},s2={type:n.GenericReference,id:"abort-exec-func-abort-call-var-instance-declaration-ref-id-2",version:"1",entityType:n.VariableDeclaration,entityId:na},a2={type:n.GenericReference,id:"abort-exec-func-abort-call-var-instance-internal-call-ref-one-id",version:"1",entityType:n.InternalCall,entityId:Cu},o2={id:xj,type:n.VariableInstance,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:s2,defaultValue:null,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],x:0,y:0,readsValue:null,writesValues:[],internalCalls:[a2],parent:n2},UA={id:Cu,type:n.InternalCall,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,inputs:[],outputs:[],declaration:eu,process:null,calledByError:[],calledByEntry:[],calledBySuccess:[i2,r2],successCalls:[t2],errorCalls:[],error:null,index:0,parent:o2},l2={type:n.GenericReference,id:"abort-exec-func-var-write-instance-main-project-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:ci},d2={type:n.GenericReference,id:"abort-exec-func-var-write-instance-called-by-ref-one-id",version:"1",entityType:n.VariableDeclaration,entityId:na},u2={type:n.GenericReference,id:"abort-exec-func-var-write-instance-called-by-ref-two-id",version:"1",entityType:n.FunctionDeclaration,entityId:ci},p2={type:n.GenericReference,id:"abort-exec-func-abort-call-var-instance-declaration-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:na},c2={type:n.GenericReference,id:"abort-exec-func-var-write-instance-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:_A},Bu={id:MA,type:n.VariableInstance,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:p2,inputs:[],outputs:[],defaultValue:null,calledByError:[],calledByEntry:[u2],calledBySuccess:[d2],successCalls:[UA],errorCalls:[],x:0,y:0,readsValue:c2,writesValues:[],internalCalls:[],parent:l2},f2={type:n.GenericReference,id:"abort-exec-func-var-decl-datatype-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:na};n.GenericReference,n.DataType;const y2={like:!1,inferred:!1,id:"abort-exec-func-var-decl-datatype-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,entity:fo,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,asType:!1,isList:!1,parent:f2},h2={type:n.GenericReference,id:"abort-exec-func-var-decl-main-project-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:ci},m2={type:n.GenericReference,id:"abort-exec-func-var-decl-called-by-ref-one-id",version:"1",entityType:n.FunctionDeclaration,entityId:ci},v2={constant:!0,required:!0,id:na,type:n.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Execution in progress",description:"A variable that holds an ongoing execution to abort it if needed",defaultValue:null,dataType:y2,inputs:[],outputs:[],calledByError:[],calledByEntry:[m2],calledBySuccess:[],successCalls:[Bu],errorCalls:[],x:0,y:0,readsValue:null,writesValues:[],internalCalls:[],parent:h2},T2={type:n.GenericReference,id:"long-wait-return-statement-returned-hello-string-data-type-parent-ref-id",version:"1",entityType:n.ReturnDeclaration,entityId:"long-wait-return-statement-returned-hello-string-id"},I2={type:n.GenericReference,id:"long-wait-return-statement-returned-hello-string-data-type-default-value-parent-ref-id",version:"1",entityType:n.ReturnDeclaration,entityId:"long-wait-return-statement-returned-hello-string-id"},E2={like:!1,inferred:!1,id:"long-wait-return-statement-returned-hello-string-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:se,asType:!1,isList:!1,parent:T2},A2={type:n.GenericReference,id:"long-wait-return-statement-returned-hello-string-parent-ref-id",version:"1",entityType:n.ReturnStatement,entityId:NA},b2={constant:!0,isError:!1,id:"long-wait-return-statement-returned-hello-string-id",type:n.ReturnDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Return 2",description:"A random string that is returned by the function",implements:null,defaultValue:{id:"long-wait-return-statement-returned-hello-string-data-type-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.String,value:"Hello 1",autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null,parent:I2},dataType:E2,readsValue:null,required:!0,index:0,parent:A2},R2={type:n.GenericReference,id:"long-wait-return-statement-called-by-ref-id",version:"1",entityType:n.Operation,entityId:wu},D2={type:n.GenericReference,id:"long-wait-return-statement-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:ci},O2={type:n.ReturnStatement,id:NA,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[b2],calledByError:[],calledByEntry:[],calledBySuccess:[R2],throws:null,x:0,y:0,parent:D2},P2={type:n.GenericReference,id:"long-argument-default-value-parent-ref-id",version:"1",entityType:n.InputMap,entityId:"long-argument-map-id"},gA={type:n.GenericReference,id:"long-argument-map-parent-ref-id",version:"1",entityType:n.Operation,entityId:wu},w2={id:"long-argument-map-id",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:en,name:null,description:null,readsValue:null,defaultValue:{id:"long-argument-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:1500,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null,name:L.Number,parent:P2},index:0,parent:gA},C2={type:n.GenericReference,id:"long-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:ci},V2={type:n.GenericReference,id:"long-called-by-ref-one-id",version:"1",entityType:n.FunctionDeclaration,entityId:ci},B2={id:_A,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:ho,writesValues:[Bu],index:0,parent:gA},_2={id:wu,type:n.Operation,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Zt,inputs:[w2],outputs:[],process:B2,successCalls:[O2],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[V2],calledBySuccess:[],error:null,parent:C2},M2={type:n.GenericReference,id:"small-wait-argument-default-value-parent-ref-id",version:"1",entityType:n.InputMap,entityId:"small-wait-argument-map-id"},N2={type:n.GenericReference,id:"small-wait-argument-map-parent-ref-id",version:"1",entityType:n.Operation,entityId:Pu},L2={id:"small-wait-argument-map-id",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:en,name:null,description:null,readsValue:null,defaultValue:{id:"small-wait-argument-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:500,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null,name:L.Number,parent:M2},index:0,parent:N2},U2={type:n.GenericReference,id:"small-wait-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:ci},g2={type:n.GenericReference,id:"small-wait-called-by-ref-one-id",version:"1",entityType:n.FunctionDeclaration,entityId:ci},j2={id:Pu,type:n.Operation,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Zt,inputs:[L2],outputs:[],process:null,successCalls:[UA],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[g2],calledBySuccess:[],error:null,parent:U2},$2={type:n.GenericReference,id:"abort-execution-func-decl-parent-ref-id",version:"1",entityType:n.Project,entityId:ce},jA={id:ci,type:n.FunctionDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Test aborting execution",description:"Executes a wait and then aborts the execution of that wait",inputs:[],calls:[j2,v2,Bu,_2],implements:null,private:!1,collapsed:!1,index:null,x:0,y:0,parent:$2},G2={type:n.GenericReference,id:"call-execution-abort-func-parent-ref-id",version:"1",entityType:n.Project,entityId:ce},F2={id:"call-execution-abort-func-id",type:n.FunctionCall,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:jA,inputs:[],process:null,outputs:[],successCalls:[],errorCalls:[],error:null,calledByError:[],calledByEntry:[],calledBySuccess:[],x:0,y:0,parent:G2},Jo="manual-hello-world-loop-func-decl-id",$A="manual-hello-world-loop-func-return-statement-id",xi="manual-hello-world-loop-id",sa="manual-hello-world-loop-body-id",_u="manual-hello-world-loop-break-statement-id",aa="manual-hello-world-loop-current-iteration-number-output-map-id",Mu="manual-hello-world-loop-previous-iterations-results-output-map-id",Nu="assembled-hello-world-text-output-id",x2="assembled-hello-world-list-output-id",oa="iteration-number-is-equal-or-greater-than-10-condition-id",Wo="join-hello-world-and-number-operation-id",zo="append-string-to-list-operation-id",GA="hello-world-loop-output-map-id",k2={type:n.GenericReference,id:"manual-hello-world-loop-function-declaration-output-declaration-parent-ref",version:"1",entityType:n.ReturnStatement,entityId:$A},S2={type:n.GenericReference,id:"manual-hello-world-loop-function-declaration-output-declaration-data-type-parent-ref",version:"1",entityType:n.ReturnDeclaration,entityId:"manual-hello-world-loop-function-declaration-output-declaration"},Z2={like:!1,inferred:!1,id:"manual-hello-world-loop-function-declaration-output-declaration-data-type",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:se,isList:!0,asType:!1,parent:S2},q2={type:n.GenericReference,id:"manual-hello-world-loop-function-declaration-output-declaration-reads-value-ref",version:"1",entityType:n.OutputMap,entityId:GA},FA={constant:!0,isError:!1,id:"manual-hello-world-loop-function-declaration-output-declaration",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.ReturnDeclaration,name:"Results",description:null,defaultValue:null,dataType:Z2,implements:null,readsValue:q2,required:!0,index:0,parent:k2},J2={type:n.GenericReference,id:"manual-hello-world-loop-function-declaration-return-statement-called-by-ref",version:"1",entityType:n.Loop,entityId:xi},W2={type:n.GenericReference,id:"manual-hello-world-loop-function-declaration-parent-ref",version:"1",entityType:n.FunctionDeclaration,entityId:Jo},z2={type:n.ReturnStatement,id:$A,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[FA],calledByError:[],calledByEntry:[],calledBySuccess:[J2],parent:W2,throws:null,x:0,y:0},Y2={type:n.GenericReference,id:"hello-world-loop-break-statement-ref-id",version:"1",entityType:n.BreakStatement,entityId:_u},xA={constant:!0,isError:!1,id:"hello-world-loop-break-statement-output-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.ReturnDeclaration,name:"Iteration result",description:null,defaultValue:null,dataType:null,readsValue:null,implements:null,required:!0,index:0,parent:Y2},H2={type:n.GenericReference,id:"hello-world-loop-break-statement-counter-reads-value-ref-id",version:"1",entityType:n.ArgumentDeclaration,entityId:aa},K2={type:n.GenericReference,id:"hello-world-loop-break-statement-counter-ref-id",version:"1",entityType:n.BreakStatement,entityId:_u},kA={constant:!0,isError:!1,id:"hello-world-loop-break-statement-counter-output-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.ReturnDeclaration,name:"Iteration counter",description:null,implements:null,defaultValue:null,dataType:null,readsValue:H2,required:!0,index:1,parent:K2},X2={type:n.GenericReference,id:"hello-world-loop-break-statement-called-by-ref-id",version:"1",entityType:n.Condition,entityId:oa},Q2={type:n.GenericReference,id:"hello-world-loop-break-statement-parent-ref-id",version:"1",entityType:n.Loop,entityId:xi},e$={type:n.BreakStatement,id:_u,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[xA,kA],calledByError:[],calledByEntry:[],calledBySuccess:[X2],parent:Q2,throws:null,x:0,y:0};n.GenericReference,n.InputMap;const t$={type:n.GenericReference,id:"append-string-to-list-base-string-map-parent-ref-id",version:"1",entityType:n.Operation,entityId:zo},i$={type:n.GenericReference,id:"base-string-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:Mu},SA={id:"append-string-to-list-base-string-map-id",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Rd,name:null,description:null,readsValue:i$,defaultValue:null,index:0,parent:t$},r$={type:n.GenericReference,id:"assembly-string-map-parent-ref-id",version:"1",entityType:n.Operation,entityId:zo},n$={id:x2,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,writesValues:[xA],declaration:Cs,index:0,parent:r$},s$={type:n.GenericReference,id:"append-string-to-list-called-by-ref-id",version:"1",entityType:n.Condition,entityId:oa},a$={type:n.GenericReference,id:"latest-string-to-add-input-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:Nu},o$={type:n.GenericReference,id:"62b4afb0-6c21-4b0f-abd3-cebef7b17c28",version:"1",entityType:n.Operation,entityId:zo},ZA={id:"latest-string-to-add-input-map-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.InputMap,declaration:Dd,name:null,description:null,readsValue:a$,defaultValue:null,index:1,parent:o$},l$={type:n.GenericReference,id:"append-string-to-list-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:xi},d$={type:n.Operation,id:zo,declaration:za,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,inputs:[SA,ZA],outputs:[n$],calledByError:[],process:null,calledByEntry:[],calledBySuccess:[s$],successCalls:[],errorCalls:[],error:null,x:0,y:0,parent:l$},u$={type:n.GenericReference,id:"hello-world-loop-continue-statement-ref-id",version:"1",entityType:n.ContinueStatement,entityId:"hello-world-loop-continue-statement"},p$={type:n.GenericReference,id:"hello-world-loop-continue-statement-output-data-type-ref-id",version:"1",entityType:n.ReturnDeclaration,entityId:"hello-world-loop-continue-statement-output-id"},c$={like:!1,inferred:!1,id:"hello-world-loop-continue-statement-output-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,isList:!1,asType:!1,parent:p$},f$={type:n.GenericReference,id:"hello-world-loop-continue-statement-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:Nu},qA={constant:!0,isError:!1,id:"hello-world-loop-continue-statement-output-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.ReturnDeclaration,name:"Iteration result",description:null,defaultValue:null,implements:null,dataType:c$,readsValue:f$,required:!0,index:0,parent:u$},y$={type:n.GenericReference,id:"hello-world-loop-continue-statement-called-by-ref-id",version:"1",entityType:n.Condition,entityId:oa},h$={type:n.GenericReference,id:"hello-world-loop-continue-statement-parent-ref-id",version:"1",entityType:n.Loop,entityId:xi},m$={type:n.ContinueStatement,id:"hello-world-loop-continue-statement",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[qA],calledBySuccess:[],calledByError:[y$],calledByEntry:[],parent:h$,throws:null,x:0,y:0},v$={type:n.GenericReference,id:"iteration-number-is-equal-or-greater-than-10-condition-called-by-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:sa},T$={type:n.GenericReference,id:"iteration-number-is-equal-or-greater-than-10-condition-parent-ref-id",version:"1",entityType:n.Loop,entityId:xi},I$={type:n.GenericReference,id:"current-iteration-number-to-check-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:aa},JA={type:n.GenericReference,id:"iteration-number-is-equal-or-greater-than-10-condition-ref-two-id",version:"1",entityType:n.Condition,entityId:oa},E$={id:"current-iteration-number-to-check-map-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.InputMap,declaration:Yn.inputs[0],name:null,description:null,readsValue:I$,index:0,defaultValue:null,parent:JA},A$={type:n.GenericReference,id:"max-num-iterations-value-map-default-value-parent-ref-id",version:"1",entityType:n.InputMap,entityId:"max-num-iterations-value-map-id"},b$={id:"max-num-iterations-value-map-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.InputMap,declaration:Yn.inputs[1],name:null,description:null,readsValue:null,index:1,defaultValue:{id:"max-num-iterations-value-map-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.Number,value:10,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null,parent:A$},parent:JA},R$={type:n.Condition,id:oa,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Yn,inputs:[E$,b$],calledByError:[],calledByEntry:[v$],calledBySuccess:[],successCalls:[e$,d$],errorCalls:[m$],x:0,y:0,parent:T$},D$={type:n.GenericReference,id:"base-string-map-ref-id",version:"1",entityType:n.InputMap,entityId:"join-hello-world-and-number-base-string-map-id"},O$={type:n.GenericReference,id:"join-hello-world-and-number-base-string-map-parent-ref-id",version:"1",entityType:n.Operation,entityId:Wo},P$={id:"join-hello-world-and-number-base-string-map-id",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Ja,name:null,description:null,readsValue:null,defaultValue:{id:"join-hello-world-and-number-base-string-map-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:"Hello world ",name:L.String,parent:D$,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null},index:0,parent:O$},w$={type:n.GenericReference,id:"assembly-string-map-parent-ref-id",version:"1",entityType:n.Operation,entityId:Wo},C$={id:Nu,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,writesValues:[ZA,qA],declaration:Cs,index:0,parent:w$},V$={type:n.GenericReference,id:"join-hello-world-and-number-called-by-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:sa},B$={type:n.GenericReference,id:"current-iteration-number-input-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:aa},_$={type:n.GenericReference,id:"62b4afb0-6c21-4b0f-abd3-cebef7b17c28",version:"1",entityType:n.Operation,entityId:Wo},WA={id:"current-iteration-number-input-map-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.InputMap,declaration:Wa,name:null,description:null,readsValue:B$,defaultValue:null,index:1,parent:_$},M$={type:n.GenericReference,id:"join-hello-world-and-number-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:xi},N$={type:n.Operation,id:Wo,declaration:Vs,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,inputs:[P$,WA],outputs:[C$],process:null,calledByError:[],calledByEntry:[V$],calledBySuccess:[],successCalls:[],errorCalls:[],error:null,x:0,y:0,parent:M$},L$={id:"manual-hello-world-loop-iterations-results-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:Mu,version:"1",entityType:n.ArgumentDeclaration},U$={like:!1,inferred:!1,id:"manual-hello-world-loop-iterations-results-declaration-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!0,entity:null,asType:!1,parent:L$},g$={id:"manual-hello-world-loop-previous-iterations-results-output-map-parent-ref-id",type:n.GenericReference,entityId:sa,version:"1",entityType:n.FunctionDeclaration},j$={constant:!0,id:Mu,type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Previous iterations results",description:"The results of the previous iterations of the loop.",required:!0,defaultValue:null,dataType:U$,implements:null,writesValues:[SA],index:1,parent:g$},$$={id:"manual-hello-world-loop-current-iteration-number-output-map-parent-ref-id",type:n.GenericReference,entityId:sa,version:"1",entityType:n.FunctionDeclaration},G$={id:"manual-flow-loop-current-iteration-number-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:aa,version:"1",entityType:n.ArgumentDeclaration};n.DataType;const F$={constant:!0,id:aa,type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Current iteration number",description:"The number of the current iteration of the loop. Starts at 1.",required:!0,implements:_d,defaultValue:null,dataType:null,writesValues:[WA,kA],index:0,parent:$$},x$={id:"manual-flow-loop-body-parent-ref-id",type:n.GenericReference,entityId:xi,version:"1",entityType:n.Loop},k$={id:sa,type:n.FunctionDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Iteration logic trigger",description:"This function is called multiple times, once for each iteration of the loop.",inputs:[F$,j$],calls:[R$,N$],implements:ro,collapsed:!1,private:!1,index:0,x:0,y:0,parent:x$},S$={type:n.GenericReference,id:"hello-world-loop-iteration-result-inline-output-declaration-parent-ref-id",version:"1",entityType:n.Loop,entityId:xi},zA={id:"hello-world-loop-iteration-result-inline-output-declaration-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.ValueDescriptor,name:"Iteration result",defaultValue:null,description:null,dataType:null,required:!0,parentRelationType:N.FixedReturns,index:0,parent:S$},Z$={type:n.GenericReference,id:"hello-world-loop-break-statement-output-map-parent-ref-id",version:"1",entityType:n.Loop,entityId:xi},q$={type:n.OutputMap,id:GA,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:zA,writesValues:[FA],index:0,parent:Z$},J$={id:"manual-hello-world-loop-parent-ref-id",type:n.GenericReference,entityId:Jo,version:"1",entityType:n.FunctionDeclaration},W$={id:"manual-hello-world-loop-called-by-ref-id",type:n.GenericReference,entityId:Jo,version:"1",entityType:n.FunctionDeclaration},z$={id:xi,type:n.Loop,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:io,inputs:[],outputsDeclarations:[zA],outputs:[q$],body:k$,successCalls:[z2],errorCalls:[],process:null,error:null,calledByError:[],calledByEntry:[W$],calledBySuccess:[],x:0,y:0,parent:J$},Y$={type:n.GenericReference,id:"manual-hello-world-loop-function-declaration-parent-ref-id",version:"1",entityType:n.Project,entityId:ce},YA={type:n.FunctionDeclaration,id:Jo,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Manual hello world loop",description:null,inputs:[],calls:[z$],implements:null,collapsed:!1,private:!1,index:null,x:0,y:0,parent:Y$},H$={type:n.GenericReference,id:"call-hello-world-loop-parent-ref-id",version:"1",entityType:n.Project,entityId:ce},K$={id:"call-hello-world-loop-id",type:n.FunctionCall,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:YA,inputs:[],outputs:[],process:null,successCalls:[],errorCalls:[],error:null,calledByError:[],calledByEntry:[],calledBySuccess:[],x:0,y:0,parent:H$},dr="company-dto-function-declaration-id",Lu="company-dto-func-declaration-argument-dcl-id",ki="company-dto-function-company-variable-id",Vr="company-dto-function-company-dto-variable-id",as="iterate-over-employee-list-loop-id",HA="iterate-over-employee-list-loop-employee-dto-output-map-id",Uu="iterate-over-employee-list-loop-body-current-employee-argument-declaration-id",Yo="iterate-over-employee-list-loop-body-map-employee-dto-function-call-id",KA="iterate-over-employee-list-continue-statement-employee-dto-output-decl-id",XA="iterate-over-employee-list-loop-body-map-employee-dto-function-call-employee-dto-output-map-id",QA="iterate-over-employee-list-continue-statement-id",Ho="iterate-over-employee-list-loop-body-id",eb="company-dto-func-declaration-return-statement-id",tb="company-dto-func-declaration-return-decl-id",ib="company-dto-func-declaration-company-variable-id-output-map-id",rb="company-dto-func-declaration-company-variable-employess-output-map-id",nb="company-dto-func-declaration-company-variable-name-output-map-id",X$="company-dto-func-declaration-company-dto-variable-input-map-id",Q$="company-dto-func-declaration-company-dto-variable-employess-input-map-id",e4="company-dto-func-declaration-company-dto-variable-name-input-map-id",Ko="company-dto-func-declaration-owner-variable-id",t4="company-dto-func-declaration-company-dto-variable-owner-input-map-id",sb="company-dto-func-declaration-company-variable-owner-output-map-id",ab="company-dto-func-declaration-owner-variable-id-output-map-id",Xo="company-dto-func-declaration-bank-account-variable-id",i4="company-dto-func-declaration-company-dto-variable-bank-account-input-map-id",ob="company-dto-func-declaration-company-variable-bank-account-output-map-id",lb="company-dto-func-declaration-bank-account-variable-id-output-map-id",r4={type:n.GenericReference,id:"company-dto-func-company-dto-variable-owner-input-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:ab},n4={type:n.GenericReference,id:"company-dto-func-company-dto-variable-owner-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Vr},db={id:t4,type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:null,name:"owner_id",description:null,defaultValue:null,index:5,readsValue:r4,parent:n4},s4={type:n.GenericReference,id:"company-dto-func-company-dto-variable-bank-account-input-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:lb},a4={type:n.GenericReference,id:"company-dto-func-company-dto-variable-bank-account-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Vr},ub={id:i4,type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:null,name:"bank_account_id",description:null,defaultValue:null,index:4,readsValue:s4,parent:a4},o4={type:n.GenericReference,id:"company-dto-func-company-dto-variable-name-input-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:nb},l4={type:n.GenericReference,id:"company-dto-func-company-dto-variable-name-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Vr},pb={id:e4,type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:null,name:"name",description:null,defaultValue:null,index:3,readsValue:o4,parent:l4},d4={type:n.GenericReference,id:"company-dto-func-company-dto-variable-employess-input-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:HA},u4={type:n.GenericReference,id:"company-dto-func-company-dto-variable-employess-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Vr},cb={id:Q$,type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:null,name:"employees",description:null,defaultValue:null,index:2,readsValue:d4,parent:u4},p4={type:n.GenericReference,id:"company-dto-func-company-dto-variable-id-output-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:ib},c4={type:n.GenericReference,id:"company-dto-func-company-dto-variable-id-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Vr},fb={id:X$,type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:null,name:"id",description:"The ID of the company",defaultValue:null,index:1,readsValue:p4,parent:c4},f4={type:n.GenericReference,id:"company-dto-func-returned-company-dto-data-type-parent-ref-id",version:"1",entityType:n.ReturnDeclaration,entityId:tb},y4={like:!1,inferred:!1,id:"company-dto-func-returned-company-dto-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,asType:!1,isList:!1,parent:f4},h4={type:n.GenericReference,id:"company-dto-func-returned-company-dto-parent-ref-id",version:"1",entityType:n.ReturnStatement,entityId:eb},m4={type:n.GenericReference,id:"company-dto-func-returned-company-dto-reads-value-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Vr},yb={constant:!0,isError:!1,id:tb,type:n.ReturnDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Company DTO",description:"Output the company data in the format that it will be sent through an HTTP request.",defaultValue:null,implements:null,dataType:y4,readsValue:m4,required:!0,index:0,parent:h4},v4={type:n.GenericReference,id:"company-dto-func-return-statement-called-by-ref-id",version:"1",entityType:n.Operation,entityId:Vr},T4={type:n.GenericReference,id:"company-dto-func-return-statement-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:dr},hb={type:n.ReturnStatement,id:eb,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[yb],calledByError:[],calledByEntry:[],calledBySuccess:[v4],throws:null,x:0,y:0,parent:T4},I4={type:n.GenericReference,id:"company-dto-func-company-dto-variable-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:dr},E4={type:n.GenericReference,id:"company-dto-func-company-dto-variable-called-by-ref-one-id",version:"1",entityType:n.VariableDeclaration,entityId:Xo},A4={type:n.GenericReference,id:"company-dto-func-company-dto-variable-called-by-ref-two-id",version:"1",entityType:n.VariableDeclaration,entityId:Ko},b4={type:n.GenericReference,id:"company-dto-func-company-dto-variable-called-by-ref-three-id",version:"1",entityType:n.VariableDeclaration,entityId:as},gu={constant:!0,required:!0,id:Vr,type:n.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Company DTO",dataType:null,description:"A variable holding the data of a mapped company DTO",defaultValue:null,calledByError:[],calledByEntry:[],calledBySuccess:[E4,A4,b4],successCalls:[hb],errorCalls:[],readsValue:null,writesValues:[yb],inputs:[fb,pb,ub,db,cb],outputs:[],internalCalls:[],parent:I4,x:0,y:0},yn="employee-dto-func-declaration-id",ju="employee-dto-func-declaration-argument-dcl-id",mb="employee-dto-func-declaration-return-statement-id",vb="employee-dto-func-declaration-return-decl-id",hn="employee-dto-func-declaration-employee-variable-id",mn="employee-dto-func-declaration-employee-dto-variable-id",Qo="employee-dto-func-declaration-manager-variable-id",Tb="employee-dto-func-declaration-employee-variable-id-output-map-id",Ib="employee-dto-func-declaration-employee-variable-birth-date-output-map-id",Eb="employee-dto-func-declaration-employee-variable-department-output-map-id",Ab="employee-dto-func-declaration-employee-variable-manager-output-map-id",bb="employee-dto-func-declaration-manager-variable-id-output-map-id",R4="employee-dto-func-declaration-employee-dto-variable-input-map-id",D4="employee-dto-func-declaration-employee-dto-variable-birth-date-input-map-id",O4="employee-dto-func-declaration-employee-dto-variable-department-input-map-id",P4="employee-dto-func-declaration-employee-dto-variable-manager-input-map-id",w4={type:n.GenericReference,id:"employee-dto-func-employee-dto-variable-manager-input-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:bb},C4={type:n.GenericReference,id:"employee-dto-func-employee-dto-variable-manager-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:mn},Rb={id:P4,type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:null,name:"manager_id",description:null,defaultValue:null,index:4,readsValue:w4,parent:C4},V4={type:n.GenericReference,id:"employee-dto-func-employee-dto-variable-department-input-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:Eb},B4={type:n.GenericReference,id:"employee-dto-func-employee-dto-variable-department-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:mn},Db={id:O4,type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:null,name:"department_name",description:null,defaultValue:null,index:3,readsValue:V4,parent:B4},_4={type:n.GenericReference,id:"employee-dto-func-employee-dto-variable-birth-date-input-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:Ib},M4={type:n.GenericReference,id:"employee-dto-func-employee-dto-variable-birth-date-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:mn},Ob={id:D4,type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:null,name:"birth_date",description:null,defaultValue:null,index:2,readsValue:_4,parent:M4},N4={type:n.GenericReference,id:"employee-dto-func-employee-dto-variable-id-output-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:Tb},L4={type:n.GenericReference,id:"employee-dto-func-employee-dto-variable-id-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:mn},Pb={id:R4,type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:null,name:"id",description:"The ID of the employee",defaultValue:null,index:1,readsValue:N4,parent:L4},U4={type:n.GenericReference,id:"employee-dto-func-returned-employee-dto-data-type-parent-ref-id",version:"1",entityType:n.ReturnDeclaration,entityId:vb},g4={like:!1,inferred:!1,id:"employee-dto-func-returned-employee-dto-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,asType:!1,isList:!1,parent:U4},j4={type:n.GenericReference,id:"employee-dto-func-returned-employee-dto-parent-ref-id",version:"1",entityType:n.ReturnStatement,entityId:mb},$4={type:n.GenericReference,id:"employee-dto-func-returned-employee-dto-reads-value-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:mn},wb={constant:!0,isError:!1,id:vb,type:n.ReturnDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Employee DTO",description:"Output the employee data in the format that it will be sent through an HTTP request.",defaultValue:null,dataType:g4,implements:null,readsValue:$4,required:!0,index:0,parent:j4},G4={type:n.GenericReference,id:"employee-dto-func-return-statement-called-by-ref-id",version:"1",entityType:n.Operation,entityId:mn},F4={type:n.GenericReference,id:"employee-dto-func-return-statement-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:yn},Cb={type:n.ReturnStatement,id:mb,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[wb],calledByError:[],calledByEntry:[],calledBySuccess:[G4],throws:null,x:0,y:0,parent:F4},x4={type:n.GenericReference,id:"employee-dto-func-employee-dto-variable-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:yn},k4={type:n.GenericReference,id:"employee-dto-func-employee-dto-variable-called-by-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Qo},S4={constant:!0,required:!0,id:mn,type:n.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Employee DTO",dataType:null,description:"A variable holding the data of a mapped employee DTO",defaultValue:null,calledByError:[],calledByEntry:[],calledBySuccess:[k4],successCalls:[Cb],errorCalls:[],readsValue:null,writesValues:[wb],inputs:[Pb,Ob,Db,Rb],outputs:[],internalCalls:[],parent:x4,x:0,y:0},Z4={type:n.GenericReference,id:"employee-dto-func-manager-variable-id-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Qo},q4={id:bb,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:pi.properties[0],index:0,writesValues:[Rb],parent:Z4},J4={type:n.GenericReference,id:"employee-dto-func-manager-variable-data-type-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Qo},W4={like:!1,inferred:!1,id:"employee-dto-func-manager-variable-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Ei,asType:!1,isList:!1,parent:J4},z4={type:n.GenericReference,id:"employee-dto-func-manager-variable-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:Ab},Y4={type:n.GenericReference,id:"employee-dto-func-manager-variable-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:yn};n.GenericReference,n.VariableDeclaration;const Vb={constant:!0,required:!0,id:Qo,type:n.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Manager",description:"A variable holding an inherited manager",defaultValue:null,dataType:W4,calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[S4],errorCalls:[],readsValue:z4,writesValues:[],inputs:[],outputs:[q4],internalCalls:[],parent:Y4,x:0,y:0},H4={type:n.GenericReference,id:"employee-dto-func-employee-variable-manager-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:hn},K4={id:Ab,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:Ei.properties[2],index:3,writesValues:[Vb],parent:H4},X4={type:n.GenericReference,id:"employee-dto-func-employee-variable-department-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:hn},Q4={id:Eb,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:Ei.properties[0],index:2,writesValues:[Db],parent:X4},eG={type:n.GenericReference,id:"employee-dto-func-employee-variable-birth-date-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:hn},tG={id:Ib,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:Jt.properties[1],index:1,writesValues:[Ob],parent:eG},iG={type:n.GenericReference,id:"employee-dto-func-employee-variable-id-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:hn},rG={id:Tb,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:pi.properties[0],index:0,writesValues:[Pb],parent:iG},nG={type:n.GenericReference,id:"employee-dto-func-employee-variable-data-type-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:hn},sG={like:!1,inferred:!1,id:"employee-dto-func-employee-variable-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Ei,asType:!1,isList:!1,parent:nG},aG={type:n.GenericReference,id:"employee-dto-func-employee-variable-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:yn},oG={type:n.GenericReference,id:"employee-dto-func-employee-variable-reads-value-ref-id",version:"1",entityType:n.ArgumentDeclaration,entityId:ju},lG={type:n.GenericReference,id:"employee-dto-func-employee-variable-called-by-id",version:"1",entityType:n.FunctionDeclaration,entityId:yn},Bb={constant:!0,required:!0,id:hn,type:n.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Company employee",dataType:sG,description:"A variable holding a company employee",calledByError:[],defaultValue:null,calledByEntry:[lG],calledBySuccess:[],successCalls:[Vb],errorCalls:[],readsValue:oG,writesValues:[],inputs:[],outputs:[rG,tG,Q4,K4],internalCalls:[],parent:aG,x:0,y:0},dG={type:n.GenericReference,id:"employee-dto-func-declaration-employee-input-declaration-data-type-parent-ref-id",entityId:ju,version:"1",entityType:n.ArgumentDeclaration},uG={type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,id:"employee-dto-func-declaration-employee-input-declaration-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Ei,asType:!1,isList:!1,like:!1,inferred:!1,parent:dG},pG={type:n.GenericReference,id:"employee-dto-func-declaration-employee-input-declaration-parent-ref-id",entityId:yn,version:"1",entityType:n.FunctionDeclaration},cG={constant:!0,type:n.ArgumentDeclaration,id:ju,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Employee",description:"The employee to create a DTO for",required:!0,implements:null,defaultValue:null,dataType:uG,index:0,writesValues:[Bb],parent:pG},fG={type:n.GenericReference,id:"employee-dto-function-declaration-parent-ref-id",version:"1",entityType:n.Project,entityId:ce},$u={type:n.FunctionDeclaration,id:yn,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Employee DTO",description:"Takes a employee and returns a DTO of that employee",index:null,inputs:[cG],calls:[Bb],implements:null,collapsed:!1,private:!1,x:0,y:0,parent:fG},yG={id:"iterate-over-employee-list-continue-statement-employee-dto-output-decl-data-type-parent-ref-id",type:n.GenericReference,entityId:KA,version:"1",entityType:n.ReturnDeclaration},hG={like:!1,inferred:!1,id:"iterate-over-employee-list-continue-statement-employee-dto-output-decl-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,isList:!1,asType:!1,parent:yG},mG={id:"iterate-over-employee-list-continue-statement-employee-dto-output-decl-reads-value-ref-id",type:n.GenericReference,entityId:XA,version:"1",entityType:n.OutputMap},vG={id:"iterate-over-employee-list-continue-statement-employee-dto-output-decl-parent-ref-id",type:n.GenericReference,entityId:QA,version:"1",entityType:n.ContinueStatement},_b={constant:!0,isError:!1,id:KA,type:n.ReturnDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Employee DTO",description:"The DTO of the employee entity.",defaultValue:null,readsValue:mG,dataType:hG,implements:null,required:!0,index:0,parent:vG},TG={id:"iterate-over-employee-list-continue-statement-called-by-ref-id",type:n.GenericReference,entityId:Yo,version:"1",entityType:n.FunctionCall},IG={id:"iterate-over-employee-list-continue-statement-parent-ref-id",type:n.GenericReference,entityId:as,version:"1",entityType:n.Loop},EG={id:QA,type:n.ContinueStatement,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,calledByError:[],calledByEntry:[],calledBySuccess:[TG],outputs:[_b],throws:null,x:0,y:0,parent:IG},AG={id:"iterate-over-employee-list-loop-body-map-employee-dto-function-call-employee-dto-output-map-parent-ref-id",type:n.GenericReference,entityId:Yo,version:"1",entityType:n.FunctionCall},bG={id:XA,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:Cb.outputs[0],writesValues:[_b],index:0,parent:AG},RG={id:"iterate-over-employee-list-loop-body-map-employee-dto-function-call-employee-input-map-reads-value-ref-id",type:n.GenericReference,entityId:Uu,version:"1",entityType:n.ArgumentDeclaration},DG={id:"iterate-over-employee-list-loop-body-map-employee-dto-function-call-employee-input-map-parent-ref-id",type:n.GenericReference,entityId:Yo,version:"1",entityType:n.FunctionCall},Mb={id:"iterate-over-employee-list-loop-body-map-employee-dto-function-call-employee-input-map-id",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:null,description:null,declaration:$u.inputs[0],readsValue:RG,index:0,defaultValue:null,parent:DG},OG={id:"iterate-over-employee-list-loop-body-map-employee-dto-function-call-called-by-ref-id",type:n.GenericReference,entityId:Ho,version:"1",entityType:n.FunctionDeclaration},PG={id:"iterate-over-employee-list-loop-body-map-employee-dto-function-call-parent-ref-id",type:n.GenericReference,entityId:Ho,version:"1",entityType:n.FunctionDeclaration},wG={id:Yo,type:n.FunctionCall,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:$u,inputs:[Mb],process:null,outputs:[bG],calledByError:[],calledByEntry:[OG],calledBySuccess:[],successCalls:[EG],errorCalls:[],error:null,x:0,y:0,parent:PG},CG={type:n.GenericReference,id:"iterate-over-employee-list-loop-body-current-employee-argument-declaration-data-type-parent-ref-id",entityId:Uu,version:"1",entityType:n.ArgumentDeclaration},VG={like:!1,inferred:!1,id:"iterate-over-employee-list-loop-body-current-employee-argument-declaration-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Ei,isList:!1,asType:!1,parent:CG},BG={id:"iterate-over-employee-list-loop-body-current-employee-argument-declaration-parent-ref-id",type:n.GenericReference,entityId:Ho,version:"1",entityType:n.FunctionDeclaration},_G={constant:!0,id:Uu,type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Current employee",description:"The current employee entity being processed.",defaultValue:null,dataType:VG,required:!0,implements:so,index:0,writesValues:[Mb],parent:BG},MG={id:"iterate-over-employee-list-loop-body-parent-ref-id",type:n.GenericReference,entityId:as,version:"1",entityType:n.Loop},NG={id:Ho,type:n.FunctionDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Iteration logic trigger",description:"This function is called once for each iteration of the loop.",inputs:[_G],calls:[wG],implements:Ns,collapsed:!1,private:!1,index:0,x:0,y:0,parent:MG},LG={id:"iterate-over-employee-list-loop-iteration-list-input-map-parent-ref-id",type:n.GenericReference,entityId:as,version:"1",entityType:n.Loop},UG={id:"iterate-over-employee-list-loop-iteration-list-input-map-reads-value-ref-id",type:n.GenericReference,entityId:rb,version:"1",entityType:n.OutputMap},Nb={id:"iterate-over-employee-list-loop-iteration-list-input-map-id",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:null,description:null,declaration:Er.inputs[0],defaultValue:null,readsValue:UG,index:0,parent:LG},gG={id:"iterate-over-employee-list-loop-parent-ref-id",type:n.GenericReference,entityId:dr,version:"1",entityType:n.FunctionDeclaration},jG={id:"iterate-over-employee-list-loop-employee-dto-output-map-parent-ref-id",type:n.GenericReference,entityId:as,version:"1",entityType:n.Loop},$G={id:HA,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:Er.outputs[0],writesValues:[cb],index:0,parent:jG},GG={type:n.GenericReference,id:"iterate-over-employee-list-loop-called-by-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:ki},FG={id:as,type:n.Loop,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Er,inputs:[Nb],successCalls:[gu],errorCalls:[],outputsDeclarations:[],outputs:[$G],body:NG,process:null,calledByError:[],calledByEntry:[],calledBySuccess:[GG],error:null,x:0,y:0,parent:gG},xG={type:n.GenericReference,id:"company-dto-func-bank-account-variable-id-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Xo},kG={id:lb,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:pi.properties[0],index:0,writesValues:[ub],parent:xG},SG={type:n.GenericReference,id:"company-dto-func-bank-account-variable-data-type-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Xo},ZG={like:!1,inferred:!1,id:"company-dto-func-bank-account-variable-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Ai,asType:!1,isList:!1,parent:SG},qG={type:n.GenericReference,id:"company-dto-func-bank-account-variable-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:ob},JG={type:n.GenericReference,id:"company-dto-func-bank-account-variable-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:dr};n.GenericReference,n.VariableDeclaration;const Lb={constant:!0,required:!0,id:Xo,type:n.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Bank account",description:"A variable holding an inherited bank account",defaultValue:null,dataType:ZG,calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[gu],errorCalls:[],readsValue:qG,writesValues:[],inputs:[],outputs:[kG],internalCalls:[],parent:JG,x:0,y:0},WG={type:n.GenericReference,id:"company-dto-func-owner-variable-id-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Ko},zG={id:ab,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:pi.properties[0],index:0,defaultValue:null,writesValues:[db],parent:WG},YG={type:n.GenericReference,id:"company-dto-func-owner-variable-data-type-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Ko},HG={like:!1,inferred:!1,id:"company-dto-func-owner-variable-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Ai,asType:!1,isList:!1,parent:YG},KG={type:n.GenericReference,id:"company-dto-func-owner-variable-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:sb},XG={type:n.GenericReference,id:"company-dto-func-owner-variable-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:dr};n.GenericReference,n.VariableDeclaration;const Ub={constant:!0,required:!0,id:Ko,type:n.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Owner",dataType:HG,description:"A variable holding an inherited owner",defaultValue:null,calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[gu],errorCalls:[],readsValue:KG,writesValues:[],inputs:[],outputs:[zG],internalCalls:[],parent:XG,x:0,y:0},QG={type:n.GenericReference,id:"company-dto-func-company-variable-owner-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:ki},eF={id:sb,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:Ai.properties[2],index:4,writesValues:[Ub],parent:QG},tF={type:n.GenericReference,id:"company-dto-func-company-variable-bank-account-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:ki},iF={id:ob,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:Ai.properties[2],index:3,writesValues:[Lb],parent:tF},rF={type:n.GenericReference,id:"company-dto-func-company-variable-name-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:ki},nF={id:nb,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:Ai.properties[0],index:2,writesValues:[pb],parent:rF},sF={type:n.GenericReference,id:"company-dto-func-company-variable-employess-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:ki},aF={id:rb,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:Ai.properties[3],index:1,writesValues:[Nb],parent:sF},oF={type:n.GenericReference,id:"company-dto-func-company-variable-id-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:ki},lF={id:ib,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:pi.properties[0],index:0,writesValues:[fb],parent:oF},dF={type:n.GenericReference,id:"company-dto-func-company-variable-data-type-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:ki},uF={like:!1,inferred:!1,id:"company-dto-func-company-variable-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Ai,asType:!1,isList:!1,parent:dF},pF={type:n.GenericReference,id:"company-dto-func-company-variable-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:dr},cF={type:n.GenericReference,id:"company-dto-func-company-variable-reads-value-ref-id",version:"1",entityType:n.ArgumentDeclaration,entityId:Lu},fF={type:n.GenericReference,id:"company-dto-func-company-variable-called-by-id",version:"1",entityType:n.FunctionDeclaration,entityId:dr},gb={constant:!0,required:!0,id:ki,type:n.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Company",dataType:uF,description:"A variable holding a company",defaultValue:null,calledByError:[],calledByEntry:[fF],calledBySuccess:[],successCalls:[Lb,Ub,FG],errorCalls:[],readsValue:cF,writesValues:[],inputs:[],outputs:[lF,aF,nF,iF,eF],internalCalls:[],parent:pF,x:0,y:0},yF={type:n.GenericReference,id:"company-dto-func-declaration-company-input-declaration-data-type-parent-ref-id",entityId:Lu,version:"1",entityType:n.ArgumentDeclaration},hF={type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,id:"company-dto-func-declaration-company-input-declaration-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Ai,asType:!1,isList:!1,like:!1,inferred:!1,parent:yF},mF={type:n.GenericReference,id:"company-dto-func-declaration-company-input-declaration-parent-ref-id",entityId:dr,version:"1",entityType:n.FunctionDeclaration},vF={constant:!0,type:n.ArgumentDeclaration,id:Lu,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Company",description:"The company to create a DTO for",defaultValue:null,required:!0,implements:null,dataType:hF,index:0,writesValues:[gb],parent:mF},TF={type:n.GenericReference,id:"company-dto-function-declaration-parent-ref-id",version:"1",entityType:n.Project,entityId:ce},Gu={type:n.FunctionDeclaration,id:dr,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Company DTO",description:"Takes a company and returns a DTO of that company",inputs:[vF],calls:[gb],implements:null,index:null,collapsed:!1,private:!1,x:0,y:0,parent:TF},la="exec-in-parallel-operation-call-id",da="exec-sequentially-operation-call-id",Wt="concurrency-and-wait-function-declaration-id",jb="concurrency-and-wait-return-statement-id",$b="concurrency-and-wait-return-declaration-id",Fu="exec-in-parallel-argument-map-id",Gb="exec-sequentially-argument-map-id",xu="wait-for-2-seconds-operation-id",Fb="wait-for-2-seconds-argument-map-id",ku="map-company-dto-function-call-id",xb="map-company-dto-function-call-company-dto-output-map-id",el="company-dto-variable-one-id",Su="company-dto-variable-one-instance-id",kb="company-dto-variable-two-id",IF={type:n.GenericReference,id:"returned-company-dto-data-type-parent-ref-id",version:"1",entityType:n.ReturnDeclaration,entityId:$b},EF={like:!1,inferred:!1,id:"returned-company-dto-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Ai,asType:!1,isList:!1,parent:IF},AF={type:n.GenericReference,id:"returned-company-dto-parent-ref-id",version:"1",entityType:n.ReturnStatement,entityId:jb},bF={type:n.GenericReference,id:"returned-company-dto-reads-value-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:kb},Sb={constant:!0,isError:!1,id:$b,type:n.ReturnDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Company DTO",description:"Output the company data in the format that it will be sent through an HTTP request.",defaultValue:null,dataType:EF,implements:null,readsValue:bF,required:!0,index:0,parent:AF},RF={type:n.GenericReference,id:"concurrency-and-wait-return-statement-called-by-ref-id",version:"1",entityType:n.Operation,entityId:xu},DF={type:n.GenericReference,id:"concurrency-and-wait-return-statement-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:Wt},OF={type:n.ReturnStatement,id:jb,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[Sb],calledByError:[],calledByEntry:[],calledBySuccess:[RF],throws:null,x:0,y:0,parent:DF},PF={type:n.GenericReference,id:"company-dto-variable-two-called-by-ref-id",version:"1",entityType:n.VariableInstance,entityId:Su},wF={type:n.GenericReference,id:"company-dto-variable-two-reads-value-ref-id",version:"1",entityType:n.VariableInstance,entityId:Su},CF={type:n.GenericReference,id:"company-dto-variable-two-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:Wt},Zb={constant:!0,required:!0,id:kb,type:n.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Company DTO",description:null,defaultValue:null,dataType:null,inputs:[],outputs:[],successCalls:[],errorCalls:[],calledByError:[],calledByEntry:[],calledBySuccess:[PF],internalCalls:[],writesValues:[Sb],readsValue:wF,x:0,y:0,parent:CF},VF={type:n.GenericReference,id:"company-dto-variable-one-instance-called-by-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:el},BF={type:n.GenericReference,id:"company-dto-variable-one-instance-reads-value-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:el},_F={type:n.GenericReference,id:"company-dto-variable-one-instance-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:Wt},MF={type:n.GenericReference,id:"company-dto-variable-one-instance-declaration-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:el},qb={id:Su,type:n.VariableInstance,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:MF,inputs:[],outputs:[],successCalls:[Zb],errorCalls:[],defaultValue:null,calledByError:[],calledByEntry:[],calledBySuccess:[VF],internalCalls:[],writesValues:[Zb],readsValue:BF,x:0,y:0,parent:_F},NF={type:n.GenericReference,id:"company-dto-variable-one-called-by-ref-id",version:"1",entityType:n.FunctionCall,entityId:ku},LF={type:n.GenericReference,id:"company-dto-variable-one-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:xb},UF={type:n.GenericReference,id:"company-dto-variable-one-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:Wt},Jb={constant:!0,required:!0,id:el,type:n.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Company DTO",description:null,defaultValue:null,dataType:null,inputs:[],outputs:[],successCalls:[qb],errorCalls:[],calledByError:[],calledByEntry:[],calledBySuccess:[NF],internalCalls:[],writesValues:[qb],readsValue:LF,x:0,y:0,parent:UF},Wb={type:n.GenericReference,id:"map-company-dto-function-call-company-input-map-parent-ref-id",version:"1",entityType:n.FunctionCall,entityId:ku},gF={id:"map-company-dto-function-call-company-input-map-id",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Gu.inputs[0],name:null,description:null,defaultValue:null,index:0,readsValue:null,parent:Wb},jF={id:xb,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:hb.outputs[0],writesValues:[Jb],index:0,parent:Wb},$F={id:"map-company-dto-function-call-called-by-ref-id",type:n.GenericReference,version:"1",entityType:n.FunctionDeclaration,entityId:Wt},GF={id:"map-company-dto-function-call-parent-ref-id",type:n.GenericReference,version:"1",entityType:n.FunctionDeclaration,entityId:Wt},FF={id:ku,type:n.FunctionCall,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Gu,successCalls:[Jb],process:null,errorCalls:[],inputs:[gF],outputs:[jF],calledByError:[],calledByEntry:[$F],calledBySuccess:[],parent:GF,x:0,y:0,error:null},xF={type:n.GenericReference,id:"last-timestamp-variable-datatype-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Tu},kF={type:n.GenericReference,id:"last-timestamp-variable-default-value-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Tu},SF={like:!1,inferred:!1,id:"last-timestamp-variable-datatype-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,entity:Li,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,asType:!1,isList:!1,parent:xF},ZF={type:n.GenericReference,id:"last-timestamp-variable-main-project-ref-id",version:"1",entityType:n.Project,entityId:ce},Zu={constant:!0,required:!0,id:Tu,type:n.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Last registered current time",description:"A test variable that holds the last current date and time that was registered.",defaultValue:{id:"last-timestamp-variable-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.Date,value:null,autogeneration:{type:vt.CurrentDateAndTime,rangeStart:null,rangeEnd:null},valueAsTypeList:null,valueAsTypeSingle:null,parent:kF},dataType:SF,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],x:0,y:0,readsValue:null,writesValues:[],internalCalls:[],parent:ZF},qF={type:n.GenericReference,id:"wait-for-2-seconds-argument-default-value-parent-ref-id",version:"1",entityType:n.InputMap,entityId:Fb},JF={type:n.GenericReference,id:"wait-for-2-seconds-argument-map-parent-ref-id",version:"1",entityType:n.Operation,entityId:xu},WF={id:Fb,type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:en,name:null,description:null,readsValue:null,defaultValue:{id:"wait-for-2-seconds-argument-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:2e3,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null,name:L.Number,parent:qF},index:0,parent:JF},zF={type:n.GenericReference,id:"wait-for-2-seconds-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:Wt},YF={type:n.GenericReference,id:"wait-for-2-seconds-called-by-ref-one-id",version:"1",entityType:n.Operation,entityId:da},HF={type:n.GenericReference,id:"wait-for-2-seconds-called-by-ref-two-id",version:"1",entityType:n.Operation,entityId:la},zb={id:xu,type:n.Operation,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Oi,inputs:[WF],outputs:[],process:null,successCalls:[OF],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[],calledBySuccess:[YF,HF],error:null,parent:zF},KF={type:n.GenericReference,id:"wait-for-random-amount-argument-default-value-parent-ref-id",version:"1",entityType:n.InputMap,entityId:"wait-for-random-amount-input-map-id"},XF={type:n.GenericReference,id:"wait-for-random-amount-argument-map-parent-ref-id",version:"1",entityType:n.Operation,entityId:"wait-for-random-amount-id"},QF={id:"wait-for-random-amount-input-map-id",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:en,name:null,description:null,readsValue:null,defaultValue:{id:"wait-for-random-amount-argument-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:null,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:{type:vt.Random,rangeStart:1e3,rangeEnd:4e3},name:L.Number,parent:KF},index:0,parent:XF},ex={type:n.GenericReference,id:"wait-for-random-amount-parent-ref-id",version:"1",entityType:n.Project,entityId:ce},os={id:"wait-for-random-amount-id",type:n.Operation,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Oi,inputs:[QF],process:null,outputs:[],successCalls:[],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[],calledBySuccess:[],error:null,parent:ex},qu="list-of-functions-variable-id",tx={type:n.GenericReference,id:"list-of-functions-variable-action-descriptor-dynamic-argument-parent-ref-id",version:"1",entityType:n.ActionDescriptor,entityId:"list-of-functions-variable-action-descriptor-id"},ix={id:"list-of-functions-variable-action-descriptor-dynamic-argument-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Any input value",description:"Any input value that can be passed to the action",defaultValue:null,index:0,required:!1,dataType:null,parent:tx},rx={type:n.GenericReference,id:"list-of-functions-variable-action-descriptor-dynamic-return-parent-ref-id",version:"1",entityType:n.ActionDescriptor,entityId:"list-of-functions-variable-action-descriptor-id"},nx={id:"list-of-functions-variable-action-descriptor-dynamic-return-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Any output value",description:"Any output value that can be returned to the action",defaultValue:null,index:0,required:!1,dataType:null,parent:rx},sx={type:n.GenericReference,id:"list-of-functions-variable-data-type-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:qu},ax={type:n.GenericReference,id:"list-of-functions-variable-action-descriptor-parent-ref-id",version:"1",entityType:n.DataType,entityId:"list-of-functions-variable-data-type-id"},ox={id:"list-of-functions-variable-action-descriptor-id",type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Action to execute",description:"An action of any type, to be executed. It can contain any number of inputs and outputs.",inputs:[ix],error:null,outputs:[nx],parent:ax},lx={type:n.GenericReference,id:"list-of-functions-variable-data-type-default-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:qu},dx={like:!1,inferred:!1,id:"list-of-functions-variable-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ox,asType:!1,isList:!0,parent:sx},ux={type:n.GenericReference,id:"list-of-functions-variable-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:Wt};n.GenericReference,n.InputMap;const px={type:n.GenericReference,id:"list-of-functions-variable-writes-value-one-ref-id",version:"1",entityType:n.InputMap,entityId:Gb},cx={type:n.GenericReference,id:"list-of-functions-variable-writes-value-two-ref-id",version:"1",entityType:n.InputMap,entityId:Fu},Yb={constant:!0,required:!0,id:qu,type:n.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"List of functions to execute",description:"A list of functions to be executed in parallel",defaultValue:{id:"list-of-functions-variable-data-type-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.ActionDescriptor,value:null,valueAsTypeSingle:null,valueAsTypeList:[os,os,os,os,os],autogeneration:null,parent:lx},dataType:dx,parent:ux,readsValue:null,writesValues:[px,cx],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],inputs:[],outputs:[],internalCalls:[],x:0,y:0},fx={type:n.GenericReference,id:"exec-in-parallel-return-map-parent-ref-id",version:"1",entityType:n.Operation,entityId:la},yx={type:n.GenericReference,id:"exec-in-parallel-result-variable-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:Wt},hx={type:n.GenericReference,id:"exec-in-parallel-result-variable-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:"exec-in-parallel-return-map-id"},mx={type:n.GenericReference,id:"exec-in-parallel-result-variable-called-by-ref-id",version:"1",entityType:n.Operation,entityId:la},Hb={id:"exec-in-parallel-result-variable-id",type:n.VariableInstance,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Zu,readsValue:hx,writesValues:[],defaultValue:null,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[mx],successCalls:[],errorCalls:[],internalCalls:[],parent:yx,x:0,y:0},vx={id:"exec-in-parallel-return-map-id",type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:Pd,writesValues:[Hb],index:0,parent:fx},Tx={type:n.GenericReference,id:"exec-in-parallel-argument-map-parent-ref-id",version:"1",entityType:n.Operation,entityId:la},Ix={id:Fu,type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Od,name:null,description:null,readsValue:Yb,defaultValue:null,index:0,parent:Tx},Ex={type:n.GenericReference,id:"exec-in-parallel-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:Wt},Ax={type:n.GenericReference,id:"exec-in-parallel-called-by-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:Wt},bx={process:null,id:la,type:n.Operation,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Oi,inputs:[Ix],outputs:[vx],successCalls:[zb,Hb],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[Ax],calledBySuccess:[],error:null,parent:Ex},Rx={type:n.GenericReference,id:"exec-sequentially-return-map-parent-ref-id",version:"1",entityType:n.Operation,entityId:da},Dx={type:n.GenericReference,id:"exec-sequentially-result-variable-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:Wt},Ox={type:n.GenericReference,id:"exec-sequentially-result-variable-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:"exec-sequentially-return-map-id"},Px={type:n.GenericReference,id:"exec-sequentially-result-variable-called-by-ref-id",version:"1",entityType:n.Operation,entityId:da},Kb={id:"exec-sequentially-result-variable-id",type:n.VariableInstance,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Zu,readsValue:Ox,defaultValue:null,writesValues:[],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[Px],successCalls:[],errorCalls:[],internalCalls:[],parent:Dx,x:0,y:0},wx={id:"exec-sequentially-return-map-id",type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:Cd,writesValues:[Kb],index:0,parent:Rx},Cx={type:n.GenericReference,id:"exec-sequentially-argument-map-parent-ref-id",version:"1",entityType:n.Operation,entityId:da},Vx={id:Gb,type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:wd,name:null,description:null,readsValue:Yb,defaultValue:null,index:0,parent:Cx},Bx={type:n.GenericReference,id:"exec-sequentially-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:Wt},_x={type:n.GenericReference,id:"exec-sequentially-called-by-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:Wt},Mx={id:da,type:n.Operation,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:nr,inputs:[Vx],process:null,outputs:[wx],successCalls:[zb,Kb],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[_x],calledBySuccess:[],error:null,parent:Bx},Nx={type:n.GenericReference,id:"concurrency-and-wait-parent-ref-id",version:"1",entityType:n.Project,entityId:ce},Lx={type:n.FunctionDeclaration,id:Wt,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Execute with concurrency and wait",description:"Executes a hardcoded list of actions in parallel and waits for some time before ending the logic with some unrelated data payload as the result.",inputs:[],calls:[Mx,bx,FF],implements:null,index:null,collapsed:!1,private:!1,x:0,y:0,parent:Nx},Ux={type:n.GenericReference,id:"3521f2c8-a5c0-419c-8808-4fc6a73d0b78",version:"1",entityType:n.ReturnDeclaration,entityId:"e1ec31f0-25ca-42ac-a4c4-c9ec2255f55b"},gx={like:!1,inferred:!1,id:"ce8b9a30-afe9-4d4f-879f-1677efca2c47",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Ai,isList:!1,asType:!1,parent:Ux},jx={type:n.GenericReference,id:"8ee66e38-b060-474e-a503-594063a8ec24",version:"1",entityType:n.ReturnStatement,entityId:"40a23a98-d3b2-42b1-9652-b33779ad15aa"},$x={constant:!0,isError:!1,id:"e1ec31f0-25ca-42ac-a4c4-c9ec2255f55b",type:n.ReturnDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Created company",description:"The new company that was created",defaultValue:null,implements:null,dataType:gx,readsValue:null,required:!0,index:0,parent:jx},Gx={type:n.GenericReference,id:"9cb3c1e4-7250-4be6-be2a-69c2dd366d6f",version:"1",entityType:n.FunctionDeclaration,entityId:"5059c093-eda2-4efc-b7b4-aaaadd4d44de"},Fx={type:n.GenericReference,id:"c065fcdd-e054-4f95-941c-7eaa65c35d04",version:"1",entityType:n.FunctionDeclaration,entityId:"5059c093-eda2-4efc-b7b4-aaaadd4d44de"},xx={type:n.ReturnStatement,id:"40a23a98-d3b2-42b1-9652-b33779ad15aa",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[$x],calledByError:[],calledByEntry:[Fx],calledBySuccess:[],throws:null,x:0,y:0,parent:Gx},kx={type:n.GenericReference,id:"312ef836-9e40-4d57-b177-03b7145ed074",version:"1",entityType:n.Project,entityId:ce},Sx={type:n.FunctionDeclaration,id:"5059c093-eda2-4efc-b7b4-aaaadd4d44de",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Create new company",description:null,inputs:[],calls:[xx],index:null,implements:null,collapsed:!1,private:!1,x:0,y:0,parent:kx},Ju="get-current-date-and-time-func-decl-id",Xb="get-current-date-and-time-return-statement-id",Wu="get-current-date-and-time-return-declaration-id",Zx="get-current-date-and-time-return-declaration-data-type-id",qx={type:n.GenericReference,id:"get-current-date-and-time-return-declaration-data-type-value-parent-ref-id",version:"1",entityType:n.ReturnDeclaration,entityId:Wu},Jx={type:n.GenericReference,id:"get-current-date-and-time-return-declaration-data-type-parent-ref-id",version:"1",entityType:n.ReturnDeclaration,entityId:Wu},Wx={type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,id:Zx,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Li,asType:!1,isList:!1,like:!1,inferred:!1,parent:Jx},zx={type:n.GenericReference,id:"get-current-date-and-time-return-declaration-parent-ref-id",version:"1",entityType:n.ReturnStatement,entityId:Xb};n.ReturnDeclaration,n.LiteralValue,L.Date,vt.CurrentDateAndTime;const Yx={type:n.GenericReference,id:"get-current-date-and-time-return-statement-called-by-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:Ju},Hx={type:n.GenericReference,id:"get-current-date-and-time-return-statement-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:Ju};n.ReturnStatement;const Kx={type:n.GenericReference,id:"concurrency-and-wait-parent-ref-id",version:"1",entityType:n.Project,entityId:ce},Xx={type:n.FunctionDeclaration,id:Ju,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Get current date and time",description:"Generates and returns the current date and time at the time of the execution",inputs:[],calls:[],implements:null,index:null,collapsed:!1,private:!1,x:0,y:0,parent:Kx},Qx={type:n.GenericReference,id:"a2db26be-57f2-48e5-9769-cdbf0d95dc7c",version:"1",entityType:n.VariableDeclaration,entityId:"d0e9f1f3-7e9f-4e1f-8d8e-7b4b3e6c6a6a"},ek={like:!1,inferred:!1,id:"c3e9d5f0-204f-45f9-85f7-e1b56b468388",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,asType:!1,isList:!1,parent:Qx},tk={type:n.GenericReference,id:"692122c5-610a-4504-90dd-f5a5202d116c",version:"1",entityType:n.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},ik={type:n.GenericReference,id:"do-math-func-return-one-called-by",version:"1",entityType:n.Operation,entityId:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e"},rk={type:n.GenericReference,id:"6dceb501-be5b-4252-afb4-3c0d08abba33",version:"1",entityType:n.OutputMap,entityId:"64752080-ee0f-4cfe-9897-a0668f2b2aca"},Qb={constant:!0,required:!0,type:n.VariableDeclaration,id:"d0e9f1f3-7e9f-4e1f-8d8e-7b4b3e6c6a6a",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Result",dataType:ek,description:null,defaultValue:null,readsValue:rk,writesValues:[],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[ik],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:tk},nk={type:n.GenericReference,id:"5440f523-af38-4981-8035-89d162fe8041",version:"1",entityType:n.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},sk={type:n.GenericReference,id:"8c482c35-e674-4713-a1dd-63c3d13b611c",version:"1",entityType:n.OutputMap,entityId:"64752080-ee0f-4cfe-9897-a0668f2b2aca"},ak={type:n.GenericReference,id:"c0a299cd-5869-4930-8cf0-90e3ceb8a903",version:"1",entityType:n.VariableDeclaration,entityId:"46b2fe23-b417-4887-a35d-09b186679172"},ok={like:!1,inferred:!1,id:"51c0c1df-2ee3-41df-ae52-ac512d8cf795",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,isList:!1,asType:!1,parent:ak},lk={type:n.GenericReference,id:"do-math-func-return-two-called-by",version:"1",entityType:n.Operation,entityId:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e"},eR={constant:!0,required:!0,type:n.VariableDeclaration,id:"46b2fe23-b417-4887-a35d-09b186679172",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Total",description:null,defaultValue:null,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[lk],successCalls:[],errorCalls:[],dataType:ok,readsValue:sk,writesValues:[],internalCalls:[],parent:nk,x:0,y:0},tR="do-math-return-statement-id",zu="do-math-return-declaration-id",dk={type:n.GenericReference,id:"do-math-func-var-to-return-one-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:"do-math-func-var-to-return-one-id"},uk={like:!1,inferred:!1,id:"do-math-func-var-to-return-one-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,asType:!1,isList:!1,parent:dk},pk={type:n.GenericReference,id:"do-math-func-decl-ref-two-id",version:"1",entityType:n.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},ck={type:n.GenericReference,id:"do-math-func-var-to-return-one-map-ref-id",version:"1",entityType:n.ReturnDeclaration,entityId:zu},fk={constant:!0,required:!0,type:n.VariableDeclaration,id:"do-math-func-var-to-return-one-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:null,name:"Fixed result",defaultValue:null,dataType:uk,readsValue:null,writesValues:[ck],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:pk},yk={type:n.GenericReference,id:"96ec244e-594b-45f7-802b-6dc3056920f6",version:"1",entityType:n.ReturnStatement,entityId:tR},hk={type:n.GenericReference,id:"d120c0cc-9d13-4e45-90e2-4e1ee825ca46",version:"1",entityType:n.ReturnDeclaration,entityId:zu},mk={like:!1,inferred:!1,id:"da91aa23-9985-49ac-a8bf-9d623ba1ba8f",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,isList:!1,asType:!1,parent:hk},vk={constant:!0,isError:!1,id:zu,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.ReturnDeclaration,name:"Result",description:null,implements:null,defaultValue:null,dataType:mk,readsValue:fk,required:!0,index:0,parent:yk},Tk={type:n.GenericReference,id:"57fd93e4-93a1-484e-82eb-4dd15d2d0e24",version:"1",entityType:n.Operation,entityId:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e"},Ik={type:n.GenericReference,id:"0a86e8d5-ab21-476e-a482-b928cbf351e3",version:"1",entityType:n.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},Ek={type:n.ReturnStatement,id:tR,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[vk],calledByError:[],calledByEntry:[],calledBySuccess:[Tk],parent:Ik,throws:null,x:0,y:0},iR={type:n.GenericReference,id:"6e4d776e-6af2-4321-b630-c78110fd677c",version:"1",entityType:n.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},Ak={type:n.GenericReference,id:"5b60955b-2486-40b6-bb24-ffd97ccd8902",version:"1",entityType:n.Operation,entityId:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e"},bk={type:n.GenericReference,id:"1a49923f-bc6f-453f-a438-e74e5475c2a9",version:"1",entityType:n.Operation,entityId:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e"},Rk={type:n.GenericReference,id:"02bfde0a-b757-4072-9613-6e9c7c9a424a",version:"1",entityType:n.ArgumentDeclaration,entityId:"d8895765-f705-457e-85fa-25d130926769"},rR={id:"928953b0-0e3f-4d8c-ae5a-84620b4b8c68",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.InputMap,declaration:cd,name:null,description:null,readsValue:Rk,defaultValue:null,index:0,parent:bk},Dk={id:"64752080-ee0f-4cfe-9897-a0668f2b2aca",type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:hd,writesValues:[Qb,eR],index:0,parent:Ak},Ok={type:n.GenericReference,id:"d235a7f6-07ff-4f35-98d2-8f42dd59cf9f",version:"1",entityType:n.Operation,entityId:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e"},Pk={id:"8827e8e9-9381-4ad7-8f61-5419c23c9136",type:n.GenericReference,version:"1",entityType:n.VariableDeclaration,entityId:"72a338d8-0183-4ca2-8760-227517854595"},nR={id:"a5525249-0eb5-472b-97bc-5e4cc0d75aee",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.InputMap,declaration:fd,name:null,description:null,readsValue:Pk,defaultValue:null,index:1,parent:Ok},wk={type:n.Operation,id:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e",declaration:qa,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,inputs:[rR,nR],outputs:[Dk],calledByError:[],calledByEntry:[iR],calledBySuccess:[],process:null,successCalls:[Ek,Qb,eR],errorCalls:[],parent:iR,error:null,x:0,y:0},Ck={type:n.GenericReference,id:"a2c40226-2270-4963-a865-c777ba79c551",version:"1",entityType:n.VariableDeclaration,entityId:"72a338d8-0183-4ca2-8760-227517854595"},Vk={id:"f47731b3-f278-4ab5-aeb2-24519c1119fb",type:n.GenericReference,entityId:"72a338d8-0183-4ca2-8760-227517854595",version:"1",entityType:n.ArgumentDeclaration},sR={like:!1,inferred:!1,id:"a350a9e9-25ee-477f-a83d-9e98ed2451662",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,isList:!1,asType:!1,parent:Vk},Bk={type:n.GenericReference,id:"5f5d8dd0-7f3b-40cd-9f84-83d976887eaf",version:"1",entityType:n.ArgumentDeclaration,entityId:"649bf0a4-6532-44aa-9818-a03d1c6564e9"},_k={type:n.GenericReference,id:"ca018d0f-a8b3-4c7e-a408-c8b372d04aff",version:"1",entityType:n.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},Mk={type:n.GenericReference,id:"do-math-func-var-called-by-ref",version:"1",entityType:n.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},aR={constant:!0,required:!0,id:"72a338d8-0183-4ca2-8760-227517854595",type:n.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Z",description:null,defaultValue:{id:"do-math-func-argument-two-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:1,name:L.Number,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null,parent:Ck},dataType:sR,inputs:[],outputs:[],calledByError:[],calledByEntry:[Mk],calledBySuccess:[],successCalls:[],errorCalls:[],readsValue:Bk,writesValues:[nR],internalCalls:[],x:0,y:0,parent:_k},Nk={version:"1",entityType:n.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b",type:n.GenericReference,id:"af0cf105-4075-425f-aecc-b25d3600fcc4"},Lk={constant:!0,id:"649bf0a4-6532-44aa-9818-a03d1c6564e9",type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Z",description:"The number to add",defaultValue:null,dataType:sR,implements:null,writesValues:[aR],required:!0,index:1,parent:Nk},Uk={type:n.GenericReference,id:"56953b5d-3e43-4dea-a62c-f3e868ba81bb",version:"1",entityType:n.Project,entityId:ce},gk={id:"868defc8-5c95-48ed-942d-257e8b9b9b00",type:n.GenericReference,version:"1",entityType:n.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},jk={type:n.GenericReference,id:"35167664-a793-49f1-9eaf-fb57eac30897",version:"1",entityType:n.VariableDeclaration,entityId:"d8895765-f705-457e-85fa-25d130926769"},$k={id:"d47ceef6-be6f-40f1-a7b3-c73c8d8a6c6a",type:n.GenericReference,entityId:"d8895765-f705-457e-85fa-25d130926769",version:"1",entityType:n.ArgumentDeclaration},Gk={like:!1,inferred:!1,id:"55b12914-91b1-48b7-9a3e-9c5d0d2a2ec2",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,isList:!1,asType:!1,parent:$k},Fk={constant:!0,id:"d8895765-f705-457e-85fa-25d130926769",type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"N",dataType:Gk,description:"The number to add",implements:null,defaultValue:{id:"do-math-func-argument-one-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:5,name:L.Number,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null,parent:jk},writesValues:[rR],required:!0,index:0,parent:gk},xk={type:n.FunctionDeclaration,id:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Do math",description:"This function does math",inputs:[Fk,Lk],calls:[wk,aR],implements:null,index:null,collapsed:!1,private:!1,x:0,y:0,parent:Uk},zt="replace-bank-account-in-company-func-declaration-id",Yu="company-entity-to-modify-arg-declaration-id",Hu="account-number-to-create-arg-decl-id",ls="company-main-variable-id",ds="search-person-by-id-id",oR="new-bank-account-owner-arg-decl-id",lR="search-person-by-id-output-declaration-id",Ku="search-person-by-id-output-entity-map-id",ua="person-not-empty-condition-id",tl="create-new-bank-account-instance-operation-id",dR="create-new-bank-account-instance-operation-output-entity-map-id",uR="company-bank-account-output-map-id",Xu="old-bank-account-var-declaration-id",pR="old-bank-account-var-instance-id",cR="company-variable-instance-id",Qu="delete-bank-account-internal-call-id",pa="new-bank-account-data-variable-declaration-id",kk={type:n.GenericReference,id:"company-variable-instance-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:zt},Sk={type:n.GenericReference,id:"company-variable-instance-called-by-ref-id",version:"1",entityType:n.InternalCall,entityId:Qu},Zk={type:n.GenericReference,id:"company-variable-instance-declaration-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:ls},qk={type:n.GenericReference,id:"bank-account-input-map-parent-ref-id",version:"1",entityType:n.VariableInstance,entityId:cR},Jk={type:n.GenericReference,id:"bank-account-input-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:dR},fR={type:n.InputMap,id:"bank-account-input-map-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,readsValue:Jk,declaration:Du,name:null,description:null,index:0,defaultValue:null,parent:qk},Wk={type:n.VariableInstance,id:cR,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:Zk,inputs:[fR],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[Sk],successCalls:[],errorCalls:[],internalCalls:[],parent:kk,readsValue:null,writesValues:[],x:0,y:0},zk={type:n.GenericReference,id:"bank-account-variable-data-type-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:ls},Yk={type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,id:"bank-account-variable-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:rs,asType:!1,isList:!1,like:!1,inferred:!1,parent:zk},Hk={type:n.GenericReference,id:"bank-account-variable-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:uR},Kk={type:n.GenericReference,id:"bank-account-variable-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:zt},Xk={type:n.GenericReference,id:"bank-account-variable-called-by-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:ls},Qk={type:n.GenericReference,id:"delete-bank-account-internal-call-called-by-ref-id",version:"1",entityType:n.Operation,entityId:tl};n.GenericReference,n.VariableInstance;const e8={type:n.GenericReference,id:"delete-bank-account-internal-call-called-by-ref-two-id",version:"1",entityType:n.VariableDeclaration,entityId:Xu},t8={type:n.GenericReference,id:"old-bank-account-variable-trigger-delete-decl-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Xu},i8={type:n.GenericReference,id:"bank-account-variable-parent-ref-two-id",version:"1",entityType:n.FunctionDeclaration,entityId:zt},r8={type:n.GenericReference,id:"old-bank-account-variable-trigger-delete-internal-call-ref-id",version:"1",entityType:n.InternalCall,entityId:Qu},n8={type:n.VariableInstance,id:pR,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:t8,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],internalCalls:[r8],errorCalls:[],parent:i8,readsValue:null,writesValues:[],x:0,y:0},yR={process:null,type:n.InternalCall,id:Qu,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Xd,index:0,successCalls:[Wk],errorCalls:[],inputs:[],outputs:[],error:null,calledByError:[],calledByEntry:[],calledBySuccess:[Qk,e8],parent:n8},hR={constant:!0,required:!0,type:n.VariableDeclaration,id:Xu,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Old bank account",description:"The existing bank account that needs to be replaced in the company entity",dataType:Yk,defaultValue:null,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[Xk],successCalls:[yR],internalCalls:[],errorCalls:[],parent:Kk,readsValue:Hk,writesValues:[],x:0,y:0},s8={type:n.GenericReference,id:"company-variable-declaration-data-type-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:ls},a8={type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,id:"company-variable-declaration-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Ai,asType:!1,isList:!1,like:!1,inferred:!1,parent:s8},o8={type:n.GenericReference,id:"company-variable-declaration-reads-value-ref-id",version:"1",entityType:n.ArgumentDeclaration,entityId:Yu},l8={type:n.GenericReference,id:"company-variable-declaration-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:zt},d8={type:n.GenericReference,id:"company-variable-declaration-called-by-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:zt},u8={type:n.GenericReference,id:"company-bank-account-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:ls},p8={id:uR,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.OutputMap,defaultValue:null,declaration:Du,index:0,parent:u8,writesValues:[hR]},mR={constant:!0,required:!0,type:n.VariableDeclaration,id:ls,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Company",description:"The company entity that was passed as an argument to the parent function",defaultValue:null,dataType:a8,inputs:[],outputs:[p8],calledByError:[],calledByEntry:[d8],calledBySuccess:[],successCalls:[hR],errorCalls:[],parent:l8,internalCalls:[],readsValue:o8,writesValues:[],x:0,y:0},c8={type:n.GenericReference,id:"create-new-bank-account-account-owner-dynamic-input-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:pa},f8={id:"create-new-bank-account-account-owner-dynamic-input-map-reads-value-ref-id",type:n.GenericReference,version:"1",entityType:n.OutputMap,entityId:Ku},vR={id:"create-new-bank-account-account-owner-dynamic-input-map-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.InputMap,declaration:null,name:"Account owner",description:null,readsValue:f8,index:1,defaultValue:null,parent:c8},y8={id:"create-new-bank-account-account-number-dynamic-input-map-reads-value-ref-id",type:n.GenericReference,version:"1",entityType:n.ArgumentDeclaration,entityId:Hu},h8={type:n.GenericReference,id:"create-new-bank-account-account-number-dynamic-input-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:pa},TR={id:"create-new-bank-account-account-number-dynamic-input-map-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.InputMap,declaration:null,name:"Account number",description:null,readsValue:y8,defaultValue:null,index:0,parent:h8},IR={type:n.GenericReference,id:"create-new-bank-account-instance-operation-entity-to-create-input-map-parent-ref-id",version:"1",entityType:n.Operation,entityId:tl},m8={id:"create-new-bank-account-instance-operation-entity-to-create-input-map-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.InputMap,declaration:tn.inputs[0],name:null,description:null,index:0,readsValue:null,defaultValue:{id:"create-new-bank-account-instance-operation-entity-to-create-input-map-default-value-id",type:n.LiteralValue,name:L.EntityTemplate,value:null,valueAsTypeSingle:rs,valueAsTypeList:null,autogeneration:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,parent:{entityId:"create-new-bank-account-instance-operation-entity-to-create-input-map-id",entityType:n.InputMap,version:"1",id:"create-new-bank-account-instance-operation-entity-to-create-input-map-parent-ref-id",type:n.GenericReference}},parent:IR},v8={type:n.GenericReference,id:"create-new-bank-account-instance-operation-entity-data-input-map-reads-value-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:pa},ER={id:"create-new-bank-account-instance-operation-entity-data-input-map-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.InputMap,declaration:tn.inputs[1],name:null,description:null,index:1,readsValue:v8,defaultValue:null,parent:IR},T8={type:n.GenericReference,id:"create-new-bank-account-instance-operation-output-entity-map-parent-ref-id",version:"1",entityType:n.Operation,entityId:tl},I8={id:dR,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.OutputMap,defaultValue:null,declaration:tn.outputs[0],index:0,writesValues:[fR],parent:T8},E8={type:n.GenericReference,id:"create-new-bank-account-instance-operation-called-by-ref-id",version:"1",entityType:n.Condition,entityId:ua},A8={type:n.GenericReference,id:"create-new-bank-account-instance-operation-called-by-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:pa},b8={type:n.GenericReference,id:"create-new-bank-account-instance-operation-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:zt},AR={process:null,id:tl,type:n.Operation,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:tn,inputs:[m8,ER],error:null,outputs:[I8],successCalls:[yR],errorCalls:[],calledByError:[],calledByEntry:[],calledBySuccess:[A8,E8],parent:b8,x:0,y:0},R8={type:n.GenericReference,id:"new-bank-account-data-variable-declaration-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:zt},D8={type:n.GenericReference,id:"create-new-bank-account-instance-operation-called-by-ref-id",version:"1",entityType:n.Condition,entityId:ua},O8={constant:!0,required:!0,id:pa,type:n.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,inputs:[TR,vR],dataType:null,name:"New bank Account's data",description:null,readsValue:null,outputs:[],writesValues:[ER],successCalls:[AR],errorCalls:[],internalCalls:[],calledByError:[],calledBySuccess:[D8],calledByEntry:[],x:0,y:0,parent:R8},P8={id:"person-not-found-thrown-error-datatype-default-value-parent-ref-id",type:n.GenericReference,entityId:"person-not-found-thrown-error-id",version:"1",entityType:n.ReturnDeclaration},w8={id:"person-not-found-thrown-error-datatype-parent-ref-id",type:n.GenericReference,entityId:"person-not-found-thrown-error-id",version:"1",entityType:n.ReturnDeclaration},C8={like:!1,inferred:!1,id:"person-not-found-thrown-error-datatype-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:se,isList:!1,asType:!1,parent:w8},V8={id:"person-not-found-thrown-error-parent-ref-id",type:n.GenericReference,entityId:"person-not-found-error-return-statement-id",version:"1",entityType:n.ReturnStatement},B8={constant:!0,isError:!0,id:"person-not-found-thrown-error-id",type:n.ReturnDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,dataType:C8,name:"Person not found error",description:"If the person entity was not found this error is outputted",defaultValue:{id:"person-not-found-thrown-error-datatype-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:"Person not found",name:L.String,parent:P8,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null},parent:V8,implements:null,required:!0,index:0,readsValue:null},_8={id:"person-not-found-error-return-statement-called-by-ref-id",type:n.GenericReference,entityId:ua,version:"1",entityType:n.Condition},M8={id:"person-not-found-error-return-statement-parent-ref-id",type:n.GenericReference,entityId:zt,version:"1",entityType:n.FunctionDeclaration},N8={id:"person-not-found-error-return-statement-id",type:n.ReturnStatement,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,throws:B8,outputs:[],calledBySuccess:[],calledByError:[_8],calledByEntry:[],x:0,y:0,parent:M8},L8={type:n.GenericReference,id:"person-not-empty-condition-called-by-ref-id",version:"1",entityType:n.Search,entityId:ds},U8={type:n.GenericReference,id:"person-not-empty-condition-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:zt},g8={type:n.GenericReference,id:"person-entity-to-check-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:Ku},j8={type:n.GenericReference,id:"person-not-empty-condition-ref-two-id",version:"1",entityType:n.Condition,entityId:ua},bR={id:"person-entity-to-check-map-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.InputMap,declaration:ln.inputs[0],name:null,description:null,readsValue:g8,index:0,defaultValue:null,parent:j8},$8={type:n.Condition,id:ua,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:ln,inputs:[bR],calledByError:[],calledByEntry:[],calledBySuccess:[L8],successCalls:[O8,AR],errorCalls:[N8],x:0,y:0,parent:U8},G8={type:n.GenericReference,id:"search-person-by-id-output-entity-declaration-datatype-parent-ref-id",version:"1",entityType:n.ValueDescriptor,entityId:lR},F8={like:!1,inferred:!1,id:"search-person-by-id-output-entity-declaration-datatype-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,asType:!1,entity:Jt,parent:G8},x8={type:n.GenericReference,id:"search-person-by-id-output-entity-declaration-parent-ref-id",version:"1",entityType:n.Search,entityId:ds},RR={id:lR,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,dataType:F8,name:"Found person",description:"The person entity that was found",parent:x8,required:!0,index:0},k8={type:n.GenericReference,id:"search-person-by-id-output-entity-map-parent-ref-id",version:"1",entityType:n.Search,entityId:ds},S8={type:n.OutputMap,id:Ku,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:RR,parent:k8,writesValues:[bR,vR],index:0},Z8={id:"search-person-by-id-input-declaration-datatype-parent-ref-id",type:n.GenericReference,entityId:"search-person-by-id-input-declaration-id",version:"1",entityType:n.ArgumentDeclaration};n.DataType;const q8={type:n.GenericReference,id:"search-person-by-id-input-declaration-parent-ref-id",version:"1",entityType:n.Search,entityId:ds},DR={id:"search-person-by-id-input-declaration-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,dataType:null,defaultValue:null,name:"Person ID",description:"The unique identifier (ID) property of the person entity",parentRelationType:N.FixedArguments,index:0,required:!0,parent:q8},J8={type:n.GenericReference,id:"search-person-by-id-input-map-parent-ref-id",version:"1",entityType:n.Search,entityId:ds},W8={id:"search-person-by-id-input-map-reads-value-ref-id",type:n.GenericReference,entityId:oR,version:"1",entityType:n.ArgumentDeclaration},OR={type:n.InputMap,id:"search-person-by-id-input-map",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:DR,name:null,description:null,readsValue:W8,defaultValue:null,parent:J8,index:0},z8="SELECT * FROM Person WHERE id = your_id;",Y8={type:n.GenericReference,id:"search-person-by-id-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:zt},H8={type:n.GenericReference,id:"search-person-by-id-called-by-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:zt},K8={type:n.Search,id:ds,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Search person by ID",description:"Searches for a person entity given the UUID",query:z8,inputsDeclarations:[DR],inputs:[OR],outputsDeclarations:[RR],outputs:[S8],calledByError:[],calledByEntry:[H8],calledBySuccess:[],error:null,successCalls:[$8],errorCalls:[],parent:Y8,x:0,y:0};n.GenericReference,n.DataType;const X8={id:"account-number-to-create-arg-decl-data-type-parent-ref-id",type:n.GenericReference,entityId:Hu,version:"1",entityType:n.ArgumentDeclaration},Q8={like:!1,inferred:!1,id:"account-number-to-create-arg-decl-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:se,isList:!1,asType:!1,parent:X8},e9={version:"1",entityType:n.FunctionDeclaration,entityId:zt,type:n.GenericReference,id:"account-number-to-create-arg-decl-parent-ref-id"},t9={constant:!0,id:Hu,type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Account number",description:"The account number of the new bank account entity",defaultValue:null,dataType:Q8,implements:null,writesValues:[TR],required:!0,index:1,parent:e9};n.GenericReference,n.DataType;const i9={id:"new-bank-account-owner-arg-decl-data-type-parent-ref-id",type:n.GenericReference,entityId:"new-bank-account-owner-arg-decl-id",version:"1",entityType:n.ArgumentDeclaration},r9={like:!1,inferred:!1,id:"new-bank-account-owner-arg-decl-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ir,isList:!1,asType:!1,parent:i9},n9={version:"1",entityType:n.FunctionDeclaration,entityId:zt,type:n.GenericReference,id:"new-bank-account-owner-arg-decl-parent-ref-id"},s9={constant:!0,id:oR,type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"New account owner ID",description:"If it has changed, this is the new person entity, that owns of the bank account",defaultValue:null,dataType:r9,implements:null,writesValues:[OR],required:!1,index:1,parent:n9},a9={type:n.GenericReference,id:"replace-bank-account-in-company-parent-ref",version:"1",entityType:n.Project,entityId:ce},o9={type:n.GenericReference,id:"company-entity-to-modify-parent-ref",version:"1",entityType:n.FunctionDeclaration,entityId:zt};n.GenericReference,n.DataType;const l9={id:"d47ceef6-be6f-40f1-a7b3-c73c8d8a6c6a",type:n.GenericReference,entityId:Yu,version:"1",entityType:n.ArgumentDeclaration},d9={like:!1,inferred:!1,id:"company-entity-to-modify-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,isList:!1,asType:!1,parent:l9},u9={constant:!0,id:Yu,type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Company",defaultValue:null,dataType:d9,implements:null,description:"The company to replace the bank account for",writesValues:[mR],required:!0,index:0,parent:o9},p9={type:n.FunctionDeclaration,id:zt,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Replace bank account",description:"This action takes an existing company and data to create a new bank account entity. It then creates a bank account, deletes the old one, and updates the company with the new bank account",inputs:[u9,t9,s9],index:null,implements:null,calls:[K8,mR],collapsed:!1,private:!1,x:0,y:0,parent:a9},c9={type:n.GenericReference,id:"e0a937bd-3a85-4037-a973-916985b9f94b",version:"1",entityType:n.Project,entityId:"7268bc97-c0e6-4d88-b37e-d3241b5f77a6"},f9={type:n.FunctionDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,id:"6bedb217-f844-4332-af72-9626b2a32511",name:"Some library main function",description:null,inputs:[],calls:[],implements:null,collapsed:!0,index:null,private:!1,parent:c9,x:0,y:0},y9={type:n.GenericReference,id:"948e6869-ae5b-4914-bea0-b9f02ad6a014",version:"1",entityType:n.Project,entityId:ce},h9={type:n.InstalledProject,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,id:"7268bc97-c0e6-4d88-b37e-d3241b5f77a6",name:"Third Party Installed Project",description:null,functions:[f9],events:[],implements:null,parent:y9,x:0,y:0},ep="global-counted-test-loop-id",PR="global-counted-test-loop-body-id",wR="global-counted-test-loop-body-current-iteration-value-argument-declaration-id",m9={type:n.GenericReference,id:"global-counted-test-loop-body-current-iteration-value-argument-declaration-data-type-parent-ref-id",entityId:wR,version:"1",entityType:n.ArgumentDeclaration},v9={like:!1,inferred:!1,id:"global-counted-test-loop-body-current-iteration-value-argument-declaration-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,isList:!1,asType:!1,parent:m9},T9={id:"global-counted-test-loop-body-current-iteration-value-argument-declaration-parent-ref-id",type:n.GenericReference,entityId:PR,version:"1",entityType:n.FunctionDeclaration},I9={constant:!0,id:wR,type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Current value",description:"The current value being processed.",defaultValue:null,dataType:v9,implements:Gd,required:!0,index:0,writesValues:[],parent:T9},E9={id:"global-counted-test-loop-body-parent-ref-id",type:n.GenericReference,entityId:ep,version:"1",entityType:n.Loop},A9={id:PR,type:n.FunctionDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Iteration logic trigger",description:"This function is called once for each iteration of the loop.",inputs:[I9],calls:[],implements:ao,collapsed:!1,private:!1,index:0,x:0,y:0,parent:E9},us="random-company-employee-test-variable-id",tp="manager-global-variable-id",CR="global-user-instance-id",Si="employee-mapped-dto-variable-id",vn="employee-mapped-dto-variable-instance-id",VR="random-employee-id-output-map-id",BR="random-employee-birth-date-output-map-id",_R="random-employee-department-output-map-id",MR="random-employee-manager-output-map-id",NR="manager-global-id-output-map-id",LR="global-user-instance-id-output-map-id",b9="employee-mapped-dto-requester-id-input-map-id",UR="employee-mapped-dto-now-timestamp-input-map-id",R9="employee-mapped-dto-id-input-map-id",D9="employee-mapped-dto-birth-date-input-map-id",O9="employee-mapped-dto-department-input-map-id",P9="employee-mapped-dto-manager-input-map-id",w9={id:"global-counted-test-loop-iteration-number-input-map-parent-ref-id",type:n.GenericReference,entityId:ep,version:"1",entityType:n.Loop};n.GenericReference,n.VariableDeclaration;const C9={id:"global-counted-test-loop-iteration-number-input-map-id",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:null,description:null,declaration:Ls.inputs[0],defaultValue:null,readsValue:null,index:0,parent:w9},V9={id:"global-counted-test-loop-parent-ref-id",type:n.GenericReference,entityId:ce,version:"1",entityType:n.Project},B9={id:"global-counted-test-loop-called-by-success-ref-id",type:n.GenericReference,entityId:vn,version:"1",entityType:n.VariableDeclaration},gR={id:ep,type:n.Loop,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Ls,inputs:[C9],successCalls:[],errorCalls:[],outputsDeclarations:[],outputs:[],process:null,body:A9,calledByError:[],calledByEntry:[],calledBySuccess:[B9],error:null,x:0,y:0,parent:V9},ip="global-object-keys-test-loop-id",jR="global-object-keys-test-loop-body-id",$R="global-object-keys-test-loop-body-current-iteration-value-argument-declaration-id",_9={type:n.GenericReference,id:"global-object-keys-test-loop-body-current-iteration-value-argument-declaration-data-type-parent-ref-id",entityId:$R,version:"1",entityType:n.ArgumentDeclaration},M9={like:!1,inferred:!1,id:"global-object-keys-test-loop-body-current-iteration-value-argument-declaration-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,isList:!1,asType:!1,parent:_9},N9={id:"global-object-keys-test-loop-body-current-iteration-value-argument-declaration-parent-ref-id",type:n.GenericReference,entityId:jR,version:"1",entityType:n.FunctionDeclaration},L9={constant:!0,id:$R,type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Current value",description:"The current value being processed.",defaultValue:null,dataType:M9,implements:Ld,required:!0,index:0,writesValues:[],parent:N9},U9={id:"global-object-keys-test-loop-body-parent-ref-id",type:n.GenericReference,entityId:ip,version:"1",entityType:n.Loop},g9={id:jR,type:n.FunctionDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Iteration logic trigger",description:"This function is called once for each iteration of the loop.",inputs:[L9],calls:[],implements:Sn,collapsed:!1,private:!1,index:0,x:0,y:0,parent:U9},j9={id:"global-object-keys-test-loop-iteration-object-input-map-parent-ref-id",type:n.GenericReference,entityId:ip,version:"1",entityType:n.Loop},$9={id:"global-object-keys-test-loop-iteration-object-input-map-reads-value-ref-id",type:n.GenericReference,entityId:Si,version:"1",entityType:n.VariableDeclaration},GR={id:"global-object-keys-test-loop-iteration-object-input-map-id",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:null,description:null,declaration:Sn.inputs[0],defaultValue:null,readsValue:$9,index:0,parent:j9},G9={id:"global-object-keys-test-loop-parent-ref-id",type:n.GenericReference,entityId:ce,version:"1",entityType:n.Project},F9={id:"global-object-keys-test-loop-called-by-success-ref-two-id",type:n.GenericReference,entityId:vn,version:"1",entityType:n.VariableDeclaration},x9={id:"global-object-keys-test-loop-called-by-success-ref-one-id",type:n.GenericReference,entityId:Si,version:"1",entityType:n.VariableDeclaration},rp={id:ip,type:n.Loop,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Sn,inputs:[GR],successCalls:[],errorCalls:[],outputsDeclarations:[],outputs:[],process:null,body:g9,calledByError:[],calledByEntry:[],calledBySuccess:[x9,F9],error:null,x:0,y:0,parent:G9},np="global-object-values-test-loop-id",FR="global-object-values-test-loop-body-id",xR="global-object-values-test-loop-body-current-iteration-value-argument-declaration-id",k9={type:n.GenericReference,id:"global-object-values-test-loop-body-current-iteration-value-argument-declaration-data-type-parent-ref-id",entityId:xR,version:"1",entityType:n.ArgumentDeclaration},S9={like:!1,inferred:!1,id:"global-object-values-test-loop-body-current-iteration-value-argument-declaration-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,isList:!1,asType:!1,parent:k9},Z9={id:"global-object-values-test-loop-body-current-iteration-value-argument-declaration-parent-ref-id",type:n.GenericReference,entityId:FR,version:"1",entityType:n.FunctionDeclaration},q9={constant:!0,id:xR,type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Current value",description:"The current value being processed.",defaultValue:null,dataType:S9,implements:gd,required:!0,index:0,writesValues:[],parent:Z9},J9={id:"global-object-values-test-loop-body-parent-ref-id",type:n.GenericReference,entityId:np,version:"1",entityType:n.Loop},W9={id:FR,type:n.FunctionDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Iteration logic trigger",description:"This function is called once for each iteration of the loop.",inputs:[q9],calls:[],implements:Zn,collapsed:!1,private:!1,index:0,x:0,y:0,parent:J9},z9={id:"global-object-values-test-loop-iteration-object-input-map-parent-ref-id",type:n.GenericReference,entityId:np,version:"1",entityType:n.Loop},Y9={id:"global-object-values-test-loop-iteration-object-input-map-reads-value-ref-id",type:n.GenericReference,entityId:vn,version:"1",entityType:n.VariableDeclaration},kR={id:"global-object-values-test-loop-iteration-object-input-map-id",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:null,description:null,declaration:Zn.inputs[0],defaultValue:null,readsValue:Y9,index:0,parent:z9},H9={id:"global-object-values-test-loop-parent-ref-id",type:n.GenericReference,entityId:ce,version:"1",entityType:n.Project},K9={id:"global-object-values-test-loop-called-by-success-ref-id",type:n.GenericReference,entityId:vn,version:"1",entityType:n.VariableInstance},SR={id:np,type:n.Loop,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Zn,inputs:[kR],successCalls:[],errorCalls:[],outputsDeclarations:[],outputs:[],process:null,body:W9,calledByError:[],calledByEntry:[],calledBySuccess:[K9],error:null,x:0,y:0,parent:H9},sp="global-test-iterate-over-string-loop-id",ap="global-test-iterate-over-string-loop-body-id",il="global-test-iterate-over-string-loop-body-current-iteration-value-argument-declaration-id",ZR="global-test-iterate-over-string-loop-iteration-list-input-map-id",X9={type:n.GenericReference,id:"global-test-iterate-over-string-loop-body-current-iteration-value-argument-declaration-data-type-parent-ref-id",entityId:il,version:"1",entityType:n.ArgumentDeclaration},Q9={like:!1,inferred:!1,id:"global-test-iterate-over-string-loop-body-current-iteration-value-argument-declaration-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,isList:!1,asType:!1,parent:X9},e6={id:"global-test-iterate-over-string-loop-body-current-iteration-value-argument-declaration-parent-ref-id",type:n.GenericReference,entityId:ap,version:"1",entityType:n.FunctionDeclaration},t6={constant:!0,id:il,type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Current character",description:"The current character value being processed.",defaultValue:null,dataType:Q9,implements:Md,required:!0,index:1,writesValues:[],parent:e6},i6={type:n.GenericReference,id:"global-test-iterate-over-string-loop-body-current-iteration-value-argument-declaration-data-type-parent-ref-id",entityId:il,version:"1",entityType:n.ArgumentDeclaration},r6={like:!1,inferred:!1,id:"global-test-iterate-over-string-loop-body-current-iteration-value-argument-declaration-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,isList:!1,asType:!1,parent:i6},n6={id:"global-test-iterate-over-string-loop-body-current-iteration-value-argument-declaration-parent-ref-id",type:n.GenericReference,entityId:ap,version:"1",entityType:n.FunctionDeclaration},s6={constant:!0,id:il,type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Current character",description:"The current character value being processed.",defaultValue:null,dataType:r6,implements:Nd,required:!0,index:0,writesValues:[],parent:n6},a6={id:"global-test-iterate-over-string-loop-body-parent-ref-id",type:n.GenericReference,entityId:sp,version:"1",entityType:n.Loop},o6={id:ap,type:n.FunctionDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Iteration logic trigger",description:"This function is called once for each iteration of the loop.",inputs:[s6,t6],calls:[],implements:no,collapsed:!1,private:!1,index:0,x:0,y:0,parent:a6},l6={id:"global-test-iterate-over-string-loop-iteration-list-input-map-parent-ref-id",type:n.GenericReference,entityId:sp,version:"1",entityType:n.Loop},d6={id:"global-test-iterate-over-string-loop-iteration-list-input-map-default-value-parent-ref-id",type:n.GenericReference,entityId:ZR,version:"1",entityType:n.InputMap},u6={id:"global-test-iterate-over-string-loop-iteration-list-input-map-default-value-id",type:n.LiteralValue,name:L.String,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:"Hello",valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:{type:vt.Random,rangeStart:4,rangeEnd:5},parent:d6},p6={id:ZR,type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:null,description:null,declaration:Ms.inputs[0],defaultValue:u6,readsValue:null,index:0,parent:l6},c6={id:"global-test-iterate-over-string-loop-parent-ref-id",type:n.GenericReference,entityId:ce,version:"1",entityType:n.Project},f6={id:sp,type:n.Loop,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Ms,inputs:[p6],successCalls:[],errorCalls:[],outputsDeclarations:[],outputs:[],process:null,body:o6,calledByError:[],calledByEntry:[],calledBySuccess:[],error:null,x:0,y:0,parent:c6},op="iterate-over-list-loop-id",qR="iterate-over-list-loop-body-id",JR="iterate-over-list-loop-body-current-iteration-value-argument-declaration-id",y6={type:n.GenericReference,id:"iterate-over-list-loop-body-current-iteration-value-argument-declaration-data-type-parent-ref-id",entityId:JR,version:"1",entityType:n.ArgumentDeclaration},h6={like:!1,inferred:!1,id:"iterate-over-list-loop-body-current-iteration-value-argument-declaration-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,isList:!1,asType:!1,parent:y6},m6={id:"iterate-over-list-loop-body-current-iteration-value-argument-declaration-parent-ref-id",type:n.GenericReference,entityId:qR,version:"1",entityType:n.FunctionDeclaration},v6={constant:!0,id:JR,type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Current value",description:"The current value being processed.",defaultValue:null,dataType:h6,implements:so,required:!0,index:0,writesValues:[],parent:m6},T6={id:"iterate-over-list-loop-body-parent-ref-id",type:n.GenericReference,entityId:op,version:"1",entityType:n.Loop},I6={id:qR,type:n.FunctionDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Iteration logic trigger",description:"This function is called once for each iteration of the loop.",inputs:[v6],calls:[],implements:Ns,collapsed:!1,private:!1,index:0,x:0,y:0,parent:T6},E6={id:"iterate-over-list-loop-iteration-list-input-map-parent-ref-id",type:n.GenericReference,entityId:op,version:"1",entityType:n.Loop},A6={id:"iterate-over-list-loop-iteration-list-input-map-id",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:null,description:null,declaration:Er.inputs[0],defaultValue:null,readsValue:null,index:0,parent:E6},b6={id:"iterate-over-list-loop-parent-ref-id",type:n.GenericReference,entityId:ce,version:"1",entityType:n.Project},R6={id:op,type:n.Loop,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Er,inputs:[A6],successCalls:[],errorCalls:[],outputsDeclarations:[],outputs:[],process:null,body:I6,calledByError:[],calledByEntry:[],calledBySuccess:[],error:null,x:0,y:0,parent:b6},D6=`SELECT
2
2
  Employee.identifier AS EmployeeID,
3
3
  Employee.startDate AS startDate,
4
4
  User.identifier AS userID,
@@ -21,7 +21,7 @@ WHERE
21
21
  AND Employee.manager IS NOT NULL
22
22
  OR (Employee.manager = User.identifier AND User.identifier IS NOT NULL)
23
23
  ORDER BY Employee.startDate DESC, Employee.department ASC
24
- LIMIT 10 OFFSET 0;`,O6={id:"find-companies-with-multiple-employees-and-bank-account-search-parent-ref-id",type:n.GenericReference,entityId:ce,version:"1",entityType:n.Project},P6={id:"find-companies-with-multiple-employees-and-bank-account-search-companies-list-output-declaration-parent-ref-id",type:n.GenericReference,entityId:"find-companies-with-multiple-employees-and-bank-account",version:"1",entityType:n.Search},WR={id:"find-companies-with-multiple-employees-and-bank-account-search-companies-list-output-declaration-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"companies",description:"List of companies with multiple employees and an existing bank account",defaultValue:null,dataType:null,required:!0,parentRelationType:N.FixedReturns,index:0,parent:P6},w6={id:"find-companies-with-multiple-employees-and-bank-account-search-companies-list-output-parent-ref-id",type:n.GenericReference,entityId:"find-companies-with-multiple-employees-and-bank-account",version:"1",entityType:n.Search},C6={id:"find-companies-with-multiple-employees-and-bank-account-search-companies-list-output-id",type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:WR,writesValues:[],index:0,parent:w6},V6={id:"find-companies-with-multiple-employees-and-bank-account",type:n.Search,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Find companies with multiple employees and a bank account",description:"This search statement finds companies with multiple employees and an existing bank account",inputsDeclarations:[],outputsDeclarations:[WR],inputs:[],outputs:[C6],query:D6,successCalls:[],errorCalls:[],error:null,calledByError:[],calledByEntry:[],calledBySuccess:[],x:0,y:0,parent:O6},B6={type:n.GenericReference,id:"employee-mapped-dto-manager-input-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:NR},_6={type:n.GenericReference,id:"employee-mapped-dto-manager-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Si},zR={id:P9,type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:null,name:"manager_id",description:null,defaultValue:null,index:4,readsValue:B6,parent:_6},M6={type:n.GenericReference,id:"employee-mapped-dto-department-input-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:_R},N6={type:n.GenericReference,id:"employee-mapped-dto-department-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Si},YR={id:O9,type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:null,name:"department_name",description:null,defaultValue:null,index:3,readsValue:M6,parent:N6},L6={type:n.GenericReference,id:"employee-mapped-dto-birth-date-input-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:BR},U6={type:n.GenericReference,id:"employee-mapped-dto-birth-date-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Si},HR={id:D9,type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:null,name:"birth_date",description:null,defaultValue:null,index:2,readsValue:L6,parent:U6},g6={type:n.GenericReference,id:"employee-mapped-dto-id-output-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:VR},j6={type:n.GenericReference,id:"employee-mapped-dto-id-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Si},KR={id:R9,type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:null,name:"id",description:"The ID of the employee",defaultValue:null,index:1,readsValue:g6,parent:j6},$6={type:n.GenericReference,id:"employee-mapped-dto-requester-id-output-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:LR},G6={type:n.GenericReference,id:"employee-mapped-dto-requester-id-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Si},XR={id:b9,type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:null,name:"requester_id",description:"The ID of the current user making the request",defaultValue:null,index:0,readsValue:$6,parent:G6},F6={type:n.GenericReference,id:"manager-variable-id-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:tp},x6={id:NR,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:pi.properties[0],defaultValue:null,index:0,writesValues:[zR],parent:F6},k6={type:n.GenericReference,id:"manager-variable-data-type-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:tp},S6={like:!1,inferred:!1,id:"manager-variable-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Ei,asType:!1,isList:!1,parent:k6},Z6={type:n.GenericReference,id:"manager-variable-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:MR},q6={type:n.GenericReference,id:"manager-variable-parent-ref-id",version:"1",entityType:n.Project,entityId:ce},QR={constant:!0,required:!0,id:tp,type:n.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Manager",dataType:S6,description:"A variable holding an inherited manager for testing purposes",defaultValue:null,calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],readsValue:Z6,writesValues:[],inputs:[],outputs:[x6],internalCalls:[],parent:q6,x:0,y:0},J6={type:n.GenericReference,id:"random-company-employee-manager-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:us},W6={id:MR,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:Ei.properties[2],index:3,writesValues:[QR],parent:J6},z6={type:n.GenericReference,id:"random-company-employee-department-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:us},Y6={id:_R,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:Ei.properties[0],index:2,writesValues:[YR],parent:z6},H6={type:n.GenericReference,id:"random-company-employee-birth-date-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:us},K6={id:BR,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:Jt.properties[1],index:1,writesValues:[HR],parent:H6},X6={type:n.GenericReference,id:"random-company-employee-id-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:us},Q6={id:VR,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:pi.properties[0],index:0,writesValues:[KR],parent:X6},e3={type:n.GenericReference,id:"random-company-employee-test-variable-data-type-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:us},t3={like:!1,inferred:!1,id:"random-company-employee-test-variable-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Ei,asType:!1,isList:!1,parent:e3},i3={type:n.GenericReference,id:"random-company-employee-test-variable-parent-ref-id",version:"1",entityType:n.Project,entityId:ce},r3={constant:!0,required:!0,id:us,type:n.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Company employee",dataType:t3,description:"A variable holding a random company employee for testing purposes",defaultValue:null,calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],readsValue:null,writesValues:[],inputs:[],outputs:[Q6,K6,Y6,W6],internalCalls:[],parent:i3,x:0,y:0},n3={type:n.GenericReference,id:"employee-mapped-dto-variable-instance-now-timestamp-input-map-default-value-parent-ref-id",version:"1",entityType:n.InputMap,entityId:UR},s3={type:n.LiteralValue,id:"employee-mapped-dto-variable-instance-now-timestamp-input-map-default-value-id",name:L.Date,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,valueAsTypeList:null,valueAsTypeSingle:null,value:null,autogeneration:{type:vt.CurrentDateAndTime,rangeStart:null,rangeEnd:null},parent:n3},a3={type:n.GenericReference,id:"employee-mapped-dto-variable-instance-now-timestamp-input-map-parent-ref-id",version:"1",entityType:n.VariableInstance,entityId:vn},o3={id:UR,type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:null,name:"now",description:"The current timestamp when the operation is executed",defaultValue:s3,index:5,readsValue:null,parent:a3},l3={type:n.GenericReference,id:"employee-mapped-dto-variable-instance-decl-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Si},d3={type:n.GenericReference,id:"employee-mapped-dto-variable-instance-called-by-success-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Si},u3={type:n.GenericReference,id:"employee-mapped-dto-variable-instance-parent-ref-id",version:"1",entityType:n.Project,entityId:ce},p3={id:vn,type:n.VariableInstance,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:l3,calledByError:[],calledByEntry:[],calledBySuccess:[d3],successCalls:[rp,SR,gR],errorCalls:[],readsValue:null,writesValues:[kR],inputs:[o3],outputs:[],internalCalls:[],parent:u3,x:0,y:0},c3={type:n.GenericReference,id:"employee-mapped-dto-variable-parent-ref-id",version:"1",entityType:n.Project,entityId:ce},f3={constant:!0,required:!0,id:Si,type:n.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Employee DTO",dataType:null,description:"A variable holding the data of a mapped employee DTO",defaultValue:null,calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[rp,p3],errorCalls:[],readsValue:null,writesValues:[GR],inputs:[XR,KR,HR,YR,zR],outputs:[],internalCalls:[],parent:c3,x:0,y:0},y3={type:n.GenericReference,id:"0e63e617-f9d3-42e8-bde0-1bb0b1df7034",version:"1",entityType:n.VariableDeclaration,entityId:KE},h3={like:!1,inferred:!1,id:"e75645ce-d3df-4f07-a897-ae9ef4d917fd",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,entity:Au,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,asType:!1,isList:!1,parent:y3},m3={type:n.GenericReference,id:"e92a8ff5-3fef-4e0c-8d8f-92c930b2890b",version:"1",entityType:n.Project,entityId:ce},eD={constant:!0,required:!0,id:KE,type:n.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Current user",description:"The user that is currently logged in",defaultValue:null,dataType:h3,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],x:0,y:0,readsValue:null,writesValues:[],internalCalls:[],parent:m3},v3={type:n.GenericReference,id:"manager-variable-id-output-map-parent-ref-id",version:"1",entityType:n.VariableInstance,entityId:CR},T3={id:LR,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:pi.properties[0],index:0,writesValues:[XR],parent:v3},I3={type:n.GenericReference,id:"global-user-instance-parent-ref-id",version:"1",entityType:n.Project,entityId:ce},E3={id:CR,type:n.VariableInstance,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:eD,calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],readsValue:null,writesValues:[],inputs:[],outputs:[T3],internalCalls:[],parent:I3,x:0,y:0},A3={type:n.GenericReference,id:"is-test-environment-variable-dcl-datatype-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:"is-test-environment-variable-dcl-id"},b3={type:n.GenericReference,id:"is-test-environment-variable-dcl-datatype-default-value-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:"is-test-environment-variable-dcl-id"},R3={like:!1,inferred:!1,id:"is-test-environment-variable-dcl-datatype-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,entity:er,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,asType:!1,isList:!1,parent:A3},D3={type:n.GenericReference,id:"is-test-environment-variable-dcl-main-project-ref-id",version:"1",entityType:n.Project,entityId:ce},tD={constant:!0,required:!0,id:"is-test-environment-variable-dcl-id",type:n.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Is test envrioment",description:"Indicates whether the current environment is a test environment or not.",defaultValue:{id:"is-test-environment-variable-dcl-datatype-default-value-id",name:L.Boolean,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:null,type:n.LiteralValue,autogeneration:{type:vt.Random,rangeStart:null,rangeEnd:null},valueAsTypeList:null,valueAsTypeSingle:null,parent:b3},dataType:R3,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],x:0,y:0,readsValue:null,writesValues:[],internalCalls:[],parent:D3},O3={type:n.GenericReference,id:"is-test-environment-variable-instance-parent-ref-id",version:"1",entityType:n.Project,entityId:ce},P3={id:"is-test-environment-variable-instance-id",type:n.VariableInstance,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:tD,calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],readsValue:null,writesValues:[],inputs:[],outputs:[],internalCalls:[],parent:O3,x:0,y:0},lp={type:n.Project,id:ce,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Mocked project to compile",description:"This project is used to test all sorts of features and edge cases. It is not meant to be used in production. Or to have any functionality that makes sense",projects:[h9],entities:[Eu,pi,Au,Jt,oj,Ei,So,yA,hA,rs,FU,Ai,Lg,Iu,tB,qg,$U],functions:[Lx,jA,$u,Sx,Xx,YA,Gu,Ou,p9,DA,xk],events:[Fj],variableDeclarations:[tD,eD,Zu,r3,QR,f3],variableInstances:[P3,E3],conditions:[],operations:[os],functionCalls:[F2,K$],loops:[R6,rp,SR,f6,gR],searches:[V6]};var iD={exports:{}};(function(r,a){(function(e,t){r.exports=t()})(OC,function(){var e=1e3,t=6e4,i=36e5,s="millisecond",l="second",o="minute",d="hour",u="day",y="week",c="month",I="quarter",E="year",O="date",P="Invalid Date",V=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,M=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,G={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(me){var ie=["th","st","nd","rd"],Y=me%100;return"["+me+(ie[(Y-20)%10]||ie[Y]||ie[0])+"]"}},B=function(me,ie,Y){var ue=String(me);return!ue||ue.length>=ie?me:""+Array(ie+1-ue.length).join(Y)+me},$={s:B,z:function(me){var ie=-me.utcOffset(),Y=Math.abs(ie),ue=Math.floor(Y/60),ee=Y%60;return(ie<=0?"+":"-")+B(ue,2,"0")+":"+B(ee,2,"0")},m:function me(ie,Y){if(ie.date()<Y.date())return-me(Y,ie);var ue=12*(Y.year()-ie.year())+(Y.month()-ie.month()),ee=ie.clone().add(ue,c),je=Y-ee<0,$e=ie.clone().add(ue+(je?-1:1),c);return+(-(ue+(Y-ee)/(je?ee-$e:$e-ee))||0)},a:function(me){return me<0?Math.ceil(me)||0:Math.floor(me)},p:function(me){return{M:c,y:E,w:y,d:u,D:O,h:d,m:o,s:l,ms:s,Q:I}[me]||String(me||"").toLowerCase().replace(/s$/,"")},u:function(me){return me===void 0}},Z="en",J={};J[Z]=G;var te="$isDayjsObject",fe=function(me){return me instanceof Qt||!(!me||!me[te])},Ie=function me(ie,Y,ue){var ee;if(!ie)return Z;if(typeof ie=="string"){var je=ie.toLowerCase();J[je]&&(ee=je),Y&&(J[je]=Y,ee=je);var $e=ie.split("-");if(!ee&&$e.length>1)return me($e[0])}else{var ft=ie.name;J[ft]=ie,ee=ft}return!ue&&ee&&(Z=ee),ee||!ue&&Z},X=function(me,ie){if(fe(me))return me.clone();var Y=typeof ie=="object"?ie:{};return Y.date=me,Y.args=arguments,new Qt(Y)},le=$;le.l=Ie,le.i=fe,le.w=function(me,ie){return X(me,{locale:ie.$L,utc:ie.$u,x:ie.$x,$offset:ie.$offset})};var Qt=function(){function me(Y){this.$L=Ie(Y.locale,null,!0),this.parse(Y),this.$x=this.$x||Y.x||{},this[te]=!0}var ie=me.prototype;return ie.parse=function(Y){this.$d=function(ue){var ee=ue.date,je=ue.utc;if(ee===null)return new Date(NaN);if(le.u(ee))return new Date;if(ee instanceof Date)return new Date(ee);if(typeof ee=="string"&&!/Z$/i.test(ee)){var $e=ee.match(V);if($e){var ft=$e[2]-1||0,bt=($e[7]||"0").substring(0,3);return je?new Date(Date.UTC($e[1],ft,$e[3]||1,$e[4]||0,$e[5]||0,$e[6]||0,bt)):new Date($e[1],ft,$e[3]||1,$e[4]||0,$e[5]||0,$e[6]||0,bt)}}return new Date(ee)}(Y),this.init()},ie.init=function(){var Y=this.$d;this.$y=Y.getFullYear(),this.$M=Y.getMonth(),this.$D=Y.getDate(),this.$W=Y.getDay(),this.$H=Y.getHours(),this.$m=Y.getMinutes(),this.$s=Y.getSeconds(),this.$ms=Y.getMilliseconds()},ie.$utils=function(){return le},ie.isValid=function(){return this.$d.toString()!==P},ie.isSame=function(Y,ue){var ee=X(Y);return this.startOf(ue)<=ee&&ee<=this.endOf(ue)},ie.isAfter=function(Y,ue){return X(Y)<this.startOf(ue)},ie.isBefore=function(Y,ue){return this.endOf(ue)<X(Y)},ie.$g=function(Y,ue,ee){return le.u(Y)?this[ue]:this.set(ee,Y)},ie.unix=function(){return Math.floor(this.valueOf()/1e3)},ie.valueOf=function(){return this.$d.getTime()},ie.startOf=function(Y,ue){var ee=this,je=!!le.u(ue)||ue,$e=le.p(Y),ft=function(jn,li){var Qr=le.w(ee.$u?Date.UTC(ee.$y,li,jn):new Date(ee.$y,li,jn),ee);return je?Qr:Qr.endOf(u)},bt=function(jn,li){return le.w(ee.toDate()[jn].apply(ee.toDate("s"),(je?[0,0,0,0]:[23,59,59,999]).slice(li)),ee)},Bt=this.$W,St=this.$M,Di=this.$D,ws="set"+(this.$u?"UTC":"");switch($e){case E:return je?ft(1,0):ft(31,11);case c:return je?ft(1,St):ft(0,St+1);case y:var gn=this.$locale().weekStart||0,Fa=(Bt<gn?Bt+7:Bt)-gn;return ft(je?Di-Fa:Di+(6-Fa),St);case u:case O:return bt(ws+"Hours",0);case d:return bt(ws+"Minutes",1);case o:return bt(ws+"Seconds",2);case l:return bt(ws+"Milliseconds",3);default:return this.clone()}},ie.endOf=function(Y){return this.startOf(Y,!1)},ie.$set=function(Y,ue){var ee,je=le.p(Y),$e="set"+(this.$u?"UTC":""),ft=(ee={},ee[u]=$e+"Date",ee[O]=$e+"Date",ee[c]=$e+"Month",ee[E]=$e+"FullYear",ee[d]=$e+"Hours",ee[o]=$e+"Minutes",ee[l]=$e+"Seconds",ee[s]=$e+"Milliseconds",ee)[je],bt=je===u?this.$D+(ue-this.$W):ue;if(je===c||je===E){var Bt=this.clone().set(O,1);Bt.$d[ft](bt),Bt.init(),this.$d=Bt.set(O,Math.min(this.$D,Bt.daysInMonth())).$d}else ft&&this.$d[ft](bt);return this.init(),this},ie.set=function(Y,ue){return this.clone().$set(Y,ue)},ie.get=function(Y){return this[le.p(Y)]()},ie.add=function(Y,ue){var ee,je=this;Y=Number(Y);var $e=le.p(ue),ft=function(St){var Di=X(je);return le.w(Di.date(Di.date()+Math.round(St*Y)),je)};if($e===c)return this.set(c,this.$M+Y);if($e===E)return this.set(E,this.$y+Y);if($e===u)return ft(1);if($e===y)return ft(7);var bt=(ee={},ee[o]=t,ee[d]=i,ee[l]=e,ee)[$e]||1,Bt=this.$d.getTime()+Y*bt;return le.w(Bt,this)},ie.subtract=function(Y,ue){return this.add(-1*Y,ue)},ie.format=function(Y){var ue=this,ee=this.$locale();if(!this.isValid())return ee.invalidDate||P;var je=Y||"YYYY-MM-DDTHH:mm:ssZ",$e=le.z(this),ft=this.$H,bt=this.$m,Bt=this.$M,St=ee.weekdays,Di=ee.months,ws=ee.meridiem,gn=function(li,Qr,xa,ld){return li&&(li[Qr]||li(ue,je))||xa[Qr].slice(0,ld)},Fa=function(li){return le.s(ft%12||12,li,"0")},jn=ws||function(li,Qr,xa){var ld=li<12?"AM":"PM";return xa?ld.toLowerCase():ld};return je.replace(M,function(li,Qr){return Qr||function(xa){switch(xa){case"YY":return String(ue.$y).slice(-2);case"YYYY":return le.s(ue.$y,4,"0");case"M":return Bt+1;case"MM":return le.s(Bt+1,2,"0");case"MMM":return gn(ee.monthsShort,Bt,Di,3);case"MMMM":return gn(Di,Bt);case"D":return ue.$D;case"DD":return le.s(ue.$D,2,"0");case"d":return String(ue.$W);case"dd":return gn(ee.weekdaysMin,ue.$W,St,2);case"ddd":return gn(ee.weekdaysShort,ue.$W,St,3);case"dddd":return St[ue.$W];case"H":return String(ft);case"HH":return le.s(ft,2,"0");case"h":return Fa(1);case"hh":return Fa(2);case"a":return jn(ft,bt,!0);case"A":return jn(ft,bt,!1);case"m":return String(bt);case"mm":return le.s(bt,2,"0");case"s":return String(ue.$s);case"ss":return le.s(ue.$s,2,"0");case"SSS":return le.s(ue.$ms,3,"0");case"Z":return $e}return null}(li)||$e.replace(":","")})},ie.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},ie.diff=function(Y,ue,ee){var je,$e=this,ft=le.p(ue),bt=X(Y),Bt=(bt.utcOffset()-this.utcOffset())*t,St=this-bt,Di=function(){return le.m($e,bt)};switch(ft){case E:je=Di()/12;break;case c:je=Di();break;case I:je=Di()/3;break;case y:je=(St-Bt)/6048e5;break;case u:je=(St-Bt)/864e5;break;case d:je=St/i;break;case o:je=St/t;break;case l:je=St/e;break;default:je=St}return ee?je:le.a(je)},ie.daysInMonth=function(){return this.endOf(c).$D},ie.$locale=function(){return J[this.$L]},ie.locale=function(Y,ue){if(!Y)return this.$L;var ee=this.clone(),je=Ie(Y,ue,!0);return je&&(ee.$L=je),ee},ie.clone=function(){return le.w(this.$d,this)},ie.toDate=function(){return new Date(this.valueOf())},ie.toJSON=function(){return this.isValid()?this.toISOString():null},ie.toISOString=function(){return this.$d.toISOString()},ie.toString=function(){return this.$d.toUTCString()},me}(),Xi=Qt.prototype;return X.prototype=Xi,[["$ms",s],["$s",l],["$m",o],["$H",d],["$W",u],["$M",c],["$y",E],["$D",O]].forEach(function(me){Xi[me[1]]=function(ie){return this.$g(ie,me[0],me[1])}}),X.extend=function(me,ie){return me.$i||(me(ie,Qt,X),me.$i=!0),X},X.locale=Ie,X.isDayjs=fe,X.unix=function(me){return X(1e3*me)},X.en=J[Z],X.Ls=J,X.p={},X})})(iD);var w3=iD.exports;const T=CE(w3);var D=(r=>(r.Error="error",r.Warning="warning",r))(D||{}),j=(r=>(r.InvalidObjectStructure="invalid-object-structure",r.NameNotUniqueInScope="name-not-unique-in-scope",r.EmptyName="empty-name",r.MissingCaller="missing-caller",r.PropertyOverwritesOtherSiblingWithSameName="property-overwrites-other-sibling-with-same-name",r.PropertyOverwritesOtherSiblingWithSameImplementation="property-overwrites-other-sibling-with-same-name",r.PropertyOverwritesOtherImplementedEntitysPropertyWithSameName="property-overwrites-other-implemented-entitys-property-with-same-name",r.PropertyOverwritesOtherImplementedEntitysPropertyWithSameImplementation="property-overwrites-other-implemented-entitys-property-with-same-name",r.PropertyOverwritesOtherExtendedEntitysPropertyWithSameImplementation="property-overwrites-other-extended-entitys-property-with-same-name",r.PropertyOverwritesOtherExtendedEntitysPropertyWithSameName="property-overwrites-other-extended-entitys-property-with-same-name",r.PropertyOverwritesBasePropertyWithSameName="property-overwrites-base-property-with-same-name",r.PropertyOverwritesBasePropertyWithSameImplementation="property-overwrites-base-property-with-same-name",r.MethodOverwritesOtherSiblingWithSameName="method-overwrites-other-sibling-with-same-name",r.MethodOverwritesOtherSiblingWithSameImplementation="method-overwrites-other-sibling-with-same-name",r.MethodOverwritesOtherImplementedEntitysMethodWithSameName="method-overwrites-other-implemented-entitys-method-with-same-name",r.MethodOverwritesOtherImplementedEntitysMethodWithSameImplementation="method-overwrites-other-implemented-entitys-method-with-same-name",r.MethodOverwritesOtherExtendedEntitysMethodWithSameImplementation="method-overwrites-other-extended-entitys-method-with-same-name",r.MethodOverwritesOtherExtendedEntitysMethodWithSameName="method-overwrites-other-extended-entitys-method-with-same-name",r.MethodOverwritesBaseMethodWithSameName="method-overwrites-base-method-with-same-name",r.MethodOverwritesBaseMethodWithSameImplementation="method-overwrites-base-method-with-same-name",r.LoopBodyFunctionOverwrite="loop-body-function-overwrite",r.NoOverlapWithImplementedSignature="no-overlap-with-implemented-signature",r.ReaderWriterIncompatibleDataType="reader-writer-incompatible-data-type",r.UnreachableEntity="unreachable-entity",r.InternalCallParentMissingDataType="internal-call-parent-missing-data-type",r.InternalCallParentDeclarationEntityInvalidType="internal-call-parent-declaration-entity-invalid-type",r.InternalCallDeclarationNotFoundInParentDatatypeEntity="internal-call-declaration-not-found-in-parent-datatype-entity",r.InternalCallDeclarationIsNotFunctionDeclaration="internal-call-declaration-is-not-function-declaration",r.InternalCallDeclarationNotInParentDatatypeEntity="internal-call-declaration-not-in-parent-datatype-entity",r))(j||{}),R=(r=>(r.RootReference="root-reference",r.ReferencedEntityNotFound="referenced-entity-not-found",r.EntityIdNotUnique="entity-id-not-unique",r.BuiltInEntityGenerated="built-in-entity-generated",r.BuiltInEntityUpdated="built-in-entity-updated",r.BuiltInEntityDeleted="built-in-entity-deleted",r.UnknownEntityType="unknown-entity-type",r.MissingTypeProperty="missing-type-property",r.MissingIdProperty="missing-id-property",r.BuiltInEntityParent="built-in-entity-parent",r.InvalidBuiltInEntityReference="invalid-built-in-entity-reference",r.RecommendedImplementAbstractEntityAction="recommended-implement-abstract-entity-action",r.RecommendedImplementOperationAction="recommended-implement-operation-action",r.RecommendedImplementFunctionCallAction="recommended-implement-function-call-action",r.RecommendedImplementVariableDeclarationAction="recommended-implement-variable-declaration-action",r.RecommendedImplementVariableInstanceAction="recommended-implement-variable-instance-action",r.RecommendedImplementConditionAction="recommended-implement-condition-action",r.InvalidReferenceObjectStructure="invalid-reference-object-structure",r.ContainsSingleButShouldBeReferenceList="contains-single-but-should-be-reference-list",r.ContainsListButShouldReferenceSingle="contains-list-but-should-reference-single",r.InvalidParentReference="invalid-parent-reference",r.InvalidImplementsReference="invalid-implements-reference",r.InvalidExtendsReference="invalid-extends-reference",r.InvalidGenerationActionPayload="invalid-generation-action-payload",r.InvalidReference="invalid-reference",r.InvalidInternalCallParentRelation="invalid-internal-call-parent-relation",r.InvalidUpdateEntityOperation="invalid-update-entity-operation",r.NewEntityWouldOverriteExisting="new-entity-would-overrite-existing",r.InvalidDownstreamPropertyOverride="invalid-downstream-property-override",r.UnrecognizedProperty="unrecognized-property",r.SelfReference="self-reference",r.DuplicateReference="duplicate-reference",r.CallerWithIncompatibleScope="caller-with-incompatible-scope",r.InvalidFunctionDeclarationForFunctionCall="invalid-function-declaration-for-function-call",r.InvalidInputMapDeclaration="invalid-input-map-declaration",r.InvalidActionDescriptorForOperation="invalid-action-descriptor-for-operation",r.InvalidActionDescriptorForCondition="invalid-action-descriptor-for-condition",r.InvalidActionDescriptorForLoop="invalid-action-descriptor-for-loop",r.InvalidInmutablePropertyOverride="invalid-inmutable-property-override",r.OutputOverwrite="output-overwrite",r.InputOverwrite="input-overwrite",r.IncompatibleScope="incompatible-scope",r.InvalidParentUpdate="invalid-parent-update",r.NonInteractiveEntityReferenced="non-interactive-entity-referenced",r.InvalidParentRelationType="invalid-parent-relation-type",r))(R||{}),F=(r=>(r.NoPrimaryKeyProperty="no-primary-key-property",r.ScopeWithoutLogic="scope-without-logic",r.AbstractEntityImplements="abstract-entity-implements",r.ImplementsIncompatibleEntities="implements-incompatible-entities",r.ExtendsIncompatibleEntities="extends-incompatible-entities",r.NonAbstractExtendingAbstractEntity="non-abstract-extending-abstract-entity",r.AbstractExtendingNonAbstractEntity="abstract-extending-non-abstract-entity",r.NonStaticExtendingStaticEntity="non-static-extending-static-entity",r.StaticExtendingNonStaticEntity="static-extending-non-static-entity",r.StaticImplementingNonStaticEntity="static-implementing-non-static-entity",r.NonStaticImplementingStaticEntity="non-static-implementing-static-entity",r.ImplementingNonAbstractEntity="implementing-non-abstract-entity",r.ExtendingNonInteractiveEntity="extending-non-interactive-entity",r.AbstractEntityWithNonAbstractMethods="abstract-entity-with-non-abstract-methods",r.AbstractEntityWithNonAbstractProperties="abstract-entity-with-non-abstract-properties",r.StaticEntityWithNonStaticProperties="static-entity-with-non-static-properties",r.NonStaticPropertyInStaticEntity="non-static-property-in-static-entity",r.AbstractPropertyInNonAbstractEntity="abstract-property-in-non-abstract-entity",r.AbstractMethodInNonAbstractEntity="abstract-method-in-non-abstract-entity",r.IncorrectEntityImplementation="incorrect-entity-implementation",r.IncorrectMethodImplementation="incorrect-method-implementation",r.IncorrectPropertyImplementation="incorrect-property-implementation",r.PropertyImplementsNonAbstact="property-implements-non-abstract",r.NonStaticPropertyImplementsStatic="non-static-property-implements-static",r.StaticPropertyImplementsNonStatic="static-property-implements-non-static",r.PropertyImplementsIncompatibleType="property-implements-incompatible-type",r.MissingPropertyImplementation="missing-property-implementation",r.MissingMethodImplementation="missing-method-implementation",r.NoProperties="no-properties",r.ReadingFromIncompatibleType="reading-from-incompatible-type",r.WritingToIncompatibleType="writing-to-incompatible-type",r.InvalidPropertiesCombination="invalid-properties-combination",r.DisconnectedCallableEntity="disconnected-callable-entity",r.VariableReadsValueAndInternalCall="variable-reads-value-and-internal-call",r.VariableWritesValuesAndInternalCall="variable-writes-values-and-internal-call",r.VariableHasInputsAndInternalCall="variable-has-inputs-and-internal-calls",r.VariableHasOutputsAndInternalCall="variable-has-outputs-and-internal-call",r.VariableIsCalledAndHasInternalCall="variable-is-called-and-has-internal-call",r.VariableCallsOthersAndHasInternalCall="variable-calls-others-and-has-internal-call",r))(F||{});class w{constructor(a){f(this,"id");f(this,"message");f(this,"issue");f(this,"severity");f(this,"code");this.id=a.id,this.message=a.message,this.issue=a.issue,this.severity=a.severity,this.code=a.code}toEntityError(a){return this.code in j?new st({id:this.id,message:this.message,issue:this.issue,severity:this.severity,code:this.code,entity:a}):null}}class st{constructor(a){f(this,"id");f(this,"message");f(this,"issue");f(this,"severity");f(this,"code");f(this,"entity");f(this,"firstRelationship");f(this,"secondRelationship");this.id=a.id,this.message=a.message,this.issue=a.issue,this.severity=a.severity,this.code=a.code,this.entity=a.entity,this.firstRelationship=a.firstRelationship,this.secondRelationship=a.secondRelationship}clone(){return new st({id:this.id,message:this.message,issue:this.issue,severity:this.severity,code:this.code,entity:this.entity,firstRelationship:this.firstRelationship,secondRelationship:this.secondRelationship})}}function C3(r){const a=new Set;return r.filter(e=>a.has(e.id)?!1:(a.add(e.id),!0))}function de(r){const a=r.entity.errors.find(t=>t.id===r.id);return a?{new:!1,error:a}:{new:!0,error:new st(r)}}function V3(r,a){const e=new Map;return r.forEach(t=>{e.set(t.id,t)}),a.forEach(t=>{e.set(t.id,t)}),Array.from(e.values())}function Ye(r,a){const e=[];return a.forEach(t=>{const i=r.find(s=>s.id===t.id);i?e.push(i):e.push(t)}),e}const ca=v.union([v.string(),v.number(),v.boolean(),v.date()]),rD=v.enum([vt.CurrentDateAndTime,vt.Random,vt.Unique]),rl=v.object({type:rD,rangeStart:ca.nullable(),rangeEnd:ca.nullable()}),fa=rl.extend({type:v.literal(vt.Random),rangeStart:ca,rangeEnd:ca}),dp=rl.extend({type:v.literal(vt.Unique),rangeStart:v.null(),rangeEnd:v.null()}),nD=rl.extend({type:v.literal(vt.CurrentDateAndTime),rangeStart:v.null(),rangeEnd:v.null()}),nl=fa.extend({rangeStart:v.number().nullable(),rangeEnd:v.number().nullable()}),sD=nl.extend({rangeStart:v.number(),rangeEnd:v.null()}),aD=nl.extend({rangeStart:v.null(),rangeEnd:v.number()}),oD=nl.extend({rangeStart:v.number(),rangeEnd:v.number()}),sl=fa.extend({rangeStart:v.number().nullable(),rangeEnd:v.number().nullable()}),lD=sl.extend({rangeStart:v.number(),rangeEnd:v.null()}),dD=sl.extend({rangeStart:v.null(),rangeEnd:v.number()}),uD=sl.extend({rangeStart:v.number(),rangeEnd:v.number()}),al=fa.extend({rangeStart:v.date().nullable(),rangeEnd:v.date().nullable()}),pD=al.extend({rangeStart:v.date(),rangeEnd:v.null()}),cD=al.extend({rangeStart:v.null(),rangeEnd:v.date()}),fD=al.extend({rangeStart:v.date(),rangeEnd:v.date()}),up=fa.extend({rangeStart:v.null(),rangeEnd:v.null()}),pp=v.union([lD,dD,uD]),cp=v.union([sD,aD,oD]),fp=v.union([pD,cD,fD,nD]),yp=v.union([pp,cp,fp,dp,up]);function ya(){return v.union([v.object({type:v.literal(n.ValueDescriptor)}),v.record(v.string(),v.any())])}function yD(){return v.object({id:v.string(),type:v.literal(n.GenericReference),entityId:v.string(),entityType:v.literal(n.ValueDescriptor)})}function hp(){return v.object({id:v.string(),type:v.literal(n.ValueDescriptor),name:v.string(),required:v.boolean()})}function B3(){return hp().merge(v.object({version:v.number(),index:v.number()}))}function _3(){return hp().merge(v.object({}))}function M3(){return v.object({dataType:An(),parent:In()})}function N3(){return B3().merge(M3())}function ol(){return v.union([v.object({type:v.literal(n.PrimitiveEntity)}),v.record(v.string(),v.any())])}function ll(){return v.object({id:v.string(),type:v.literal(n.GenericReference),entityId:v.string(),entityType:v.literal(n.PrimitiveEntity)})}function dl(){return v.object({id:v.string(),type:v.literal(n.PrimitiveEntity),name:v.string(),description:v.string().nullable(),static:v.boolean(),abstract:v.boolean()})}function L3(){return dl().merge(v.object({version:v.number()}))}function U3(){return dl().merge(v.object({}))}function g3(){return v.object({properties:v.array(Tn()),methods:v.array(fi()),abstractMethods:v.array(Zi()),extends:v.array(v.union([ol(),ps()]))})}function j3(){return L3().merge(g3())}function Tn(){return v.union([v.object({type:v.literal(n.Property)}),v.record(v.string(),v.any())])}function hD(){return v.object({id:v.string(),type:v.literal(n.GenericReference),entityId:v.string(),entityType:v.literal(n.Property)})}function mp(){return v.object({id:v.string(),type:v.literal(n.Property),name:v.string(),description:v.string().nullable(),private:v.boolean(),static:v.boolean(),required:v.boolean(),abstract:v.boolean()})}function $3(){return mp().merge(v.object({version:v.number(),index:v.number()}))}function G3(){return mp().merge(v.object({}))}function F3(){return v.object({dataType:An(),implements:Tn().nullable(),parent:v.union([Dn(),ll(),ul()])})}function x3(){return $3().merge(F3())}function k3(){return v.enum([z.CRON_JOB,z.EXECUTION,z.HTTP_ENDPOINT,z.PERSISTED_ENTITY,z.RELATIONAL_DATABASE])}function ps(){return v.union([v.object({type:v.literal(n.BuiltInBaseEntity)}),v.record(v.string(),v.any())])}function ul(){return v.object({id:v.string(),type:v.literal(n.GenericReference),entityId:v.string(),entityType:v.literal(n.BuiltInBaseEntity)})}function vp(){return v.object({id:v.string(),version:v.number(),type:v.literal(n.BuiltInBaseEntity),name:k3(),description:v.string().nullable(),abstract:v.boolean(),static:v.boolean()})}function S3(){return vp()}function Z3(){return vp().merge(v.object({}))}function q3(){return v.object({properties:v.array(Tn()),methods:v.array(fi()),abstractMethods:v.array(Zi()),extends:v.array(v.union([ps(),ol()]))})}function J3(){return S3().merge(q3())}function Zi(){return v.union([v.object({type:v.literal(n.ActionDescriptor)}),v.record(v.string(),v.any())])}function In(){return v.object({id:v.string(),type:v.literal(n.GenericReference),entityId:v.string(),entityType:v.literal(n.ActionDescriptor)})}function pl(){return v.object({id:v.string(),type:v.literal(n.ActionDescriptor),name:v.string(),description:v.string().nullable()})}function W3(){return pl().merge(v.object({version:v.number()}))}function z3(){return pl().merge(v.object({}))}function Y3(){return v.object({inputs:v.array(ya()),outputs:v.array(ya()),parent:v.union([ti(),Dn(),ul(),ll()]).nullable()})}function mD(){return W3().merge(Y3())}function cs(){return v.union([v.object({type:v.literal(n.Loop)}),v.record(v.string(),v.any())])}function qi(){return v.object({id:v.string(),type:v.literal(n.GenericReference),entityId:v.string(),entityType:v.literal(n.Loop)})}function vD(){return v.object({id:v.string(),type:v.literal(n.Loop)})}function H3(){return vD().merge(v.object({version:v.number(),x:v.number(),y:v.number()}))}function K3(){return vD().merge(v.object({declaration:v.union([v.string(),fi()])}))}function X3(){return v.object({calledBySuccess:v.array(tt()),calledByError:v.array(tt()),calledByEntry:v.array(Rt()),declaration:Zi(),inputs:v.array(Vi()),outputs:v.array(Yt()),outputsDeclarations:v.array(ya()),successCalls:v.array(Pt()),errorCalls:v.array(Pt()),error:Yt(),body:fi(),parent:v.union([fr(),ti()]),breakStatements:v.array(ms()),continueStatements:v.array(fs())})}function Q3(){return H3().merge(X3())}function fs(){return v.union([v.object({type:v.literal(n.ContinueStatement)}),v.record(v.string(),v.any())])}function ys(){return v.object({id:v.string(),type:v.literal(n.GenericReference),entityId:v.string(),entityType:v.literal(n.ContinueStatement)})}function Tp(){return v.object({id:v.string(),type:v.literal(n.ContinueStatement)})}function e5(){return Tp().merge(v.object({version:v.number(),x:v.number(),y:v.number()}))}function t5(){return Tp().merge(v.object({}))}function i5(){return v.object({calledBySuccess:v.array(tt()),calledByError:v.array(tt()),calledByEntry:v.array(Rt()),outputs:v.array(ur()),throws:v.optional(ur()),parent:qi()})}function r5(){return e5().merge(i5())}function En(){return v.union([v.object({type:v.literal(n.ReturnStatement)}),v.record(v.string(),v.any())])}function hs(){return v.object({id:v.string(),type:v.literal(n.GenericReference),entityId:v.string(),entityType:v.literal(n.ReturnStatement)})}function Ip(){return v.object({id:v.string(),type:v.literal(n.ReturnStatement)})}function n5(){return Ip().merge(v.object({version:v.number(),x:v.number(),y:v.number()}))}function s5(){return Ip().merge(v.object({}))}function a5(){return v.object({calledBySuccess:v.array(tt()),calledByError:v.array(tt()),calledByEntry:v.array(Rt()),outputs:v.array(ur()),throws:v.optional(ur()),parent:fr()})}function o5(){return n5().merge(a5())}function ur(){return v.union([v.object({type:v.literal(n.ReturnDeclaration)}),v.record(v.string(),v.any())])}function TD(){return v.object({id:v.string(),type:v.literal(n.GenericReference),entityId:v.string(),entityType:v.literal(n.ReturnDeclaration)})}function Ep(){return v.object({id:v.string(),type:v.literal(n.ReturnDeclaration),name:v.string(),description:v.string().nullable(),isError:v.boolean()})}function l5(){return Ep().merge(v.object({version:v.number(),index:v.number()}))}function d5(){return Ep().merge(v.object({}))}function u5(){return v.object({dataType:An().nullable(),readsValue:Ea().nullable(),parent:v.union([hs(),In(),pr(),ys()])})}function p5(){return l5().merge(u5())}function ms(){return v.union([v.object({type:v.literal(n.BreakStatement)}),v.record(v.string(),v.any())])}function pr(){return v.object({id:v.string(),type:v.literal(n.GenericReference),entityId:v.string(),entityType:v.literal(n.BreakStatement)})}function Ap(){return v.object({id:v.string(),type:v.literal(n.BreakStatement)})}function c5(){return Ap().merge(v.object({version:v.number(),x:v.number(),y:v.number()}))}function f5(){return Ap().merge(v.object({}))}function y5(){return v.object({calledBySuccess:v.array(tt()),calledByError:v.array(tt()),calledByEntry:v.array(Rt()),outputs:v.array(ur()),throws:v.optional(ur()),parent:qi()})}function h5(){return c5().merge(y5())}function Yt(){return v.union([v.object({type:v.literal(n.OutputMap)}),v.record(v.string(),v.any())])}function bp(){return v.object({id:v.string(),type:v.literal(n.GenericReference),entityId:v.string(),entityType:v.literal(n.OutputMap)})}function Rp(){return v.object({id:v.string(),type:v.literal(n.OutputMap)})}function m5(){return Rp().merge(v.object({version:v.number(),index:v.number()}))}function v5(){return Rp().merge(v.object({}))}function T5(){return v.object({writesValues:v.array(cr()),declaration:v.union([ur(),Tn()]),parent:v.union([tt(),qi(),pr()])})}function I5(){return m5().merge(T5())}function vs(){return v.union([v.object({type:v.literal(n.FunctionCall)}),v.record(v.string(),v.any())])}function ha(){return v.object({id:v.string(),type:v.literal(n.GenericReference),entityId:v.string(),entityType:v.literal(n.FunctionCall)})}function Dp(){return v.object({id:v.string(),type:v.literal(n.FunctionCall)})}function E5(){return Dp().merge(v.object({version:v.number(),x:v.number(),y:v.number()}))}function A5(){return Dp().merge(v.object({}))}function b5(){return v.object({successCalls:v.array(Pt()),errorCalls:v.array(Pt()),calledBySuccess:v.array(tt()),calledByError:v.array(tt()),calledByEntry:v.array(Rt()),writesValues:v.array(cr()),declaration:fi(),inputs:v.array(Vi()),outputs:v.array(Yt()),error:v.optional(Yt()),parent:v.union([fr(),ti()])})}function R5(){return E5().merge(b5())}function D5(){return v.enum([yt.Equal,yt.NotEqual,yt.MoreThan,yt.MoreThanOrEqual,yt.LessThan,yt.LessThanOrEqual,yt.And,yt.Or,vi.Empty,vi.NotEmpty])}function ma(){return v.union([v.object({type:v.literal(n.Condition)}),v.record(v.string(),v.any())])}function cl(){return v.object({id:v.string(),type:v.literal(n.GenericReference),entityId:v.string(),entityType:v.literal(n.Condition)})}function Op(){return v.object({id:v.string(),type:v.literal(n.Condition)})}function O5(){return Op().merge(v.object({version:v.number(),x:v.number(),y:v.number()}))}function P5(){return Op().merge(v.object({}))}function w5(){return v.object({successCalls:v.array(Pt()),errorCalls:v.array(Pt()),calledBySuccess:v.array(tt()),calledByError:v.array(tt()),calledByEntry:v.array(Rt()),leftValue:Vi(),rightValue:Vi().nullable(),operator:D5(),parent:v.union([fr(),ti()])})}function C5(){return O5().merge(w5())}function va(){return v.union([v.object({type:v.literal(n.Search)}),v.record(v.string(),v.any())])}function Ta(){return v.object({id:v.string(),type:v.literal(n.GenericReference),entityId:v.string(),entityType:v.literal(n.Search)})}function Pp(){return v.object({id:v.string(),type:v.literal(n.Search),name:v.string(),query:v.any(),description:v.string().nullable()})}function V5(){return Pp().merge(v.object({version:v.number(),x:v.number(),y:v.number()}))}function B5(){return Pp().merge(v.object({}))}function _5(){return v.object({successCalls:v.array(Pt()),errorCalls:v.array(Pt()),calledBySuccess:v.array(tt()),calledByError:v.array(tt()),calledByEntry:v.array(Rt()),inputsDeclarations:v.array(Rn()),inputs:v.array(Vi()),outputsDeclarations:v.array(ya()),outputs:v.array(Yt()),parent:v.union([fr(),ti()]),error:Yt().nullable()})}function M5(){return V5().merge(_5())}function Ia(){return v.union([v.object({type:v.literal(n.InternalCall)}),v.record(v.string(),v.any())])}function wp(){return v.object({id:v.string(),type:v.literal(n.GenericReference),entityId:v.string(),entityType:v.literal(n.InternalCall)})}function Cp(){return v.object({id:v.string(),type:v.literal(n.InternalCall),index:v.number()})}function N5(){return Cp().merge(v.object({version:v.number(),index:v.number()}))}function L5(){return Cp().merge(v.object({declaration:v.union([v.string(),fi()])}))}function U5(){return v.object({successCalls:v.array(Pt()),errorCalls:v.array(Pt()),calledBySuccess:v.array(tt()),calledByError:v.array(tt()),calledByEntry:v.array(Rt()),writesValues:v.array(cr()),declaration:fi(),inputs:v.array(Vi()),outputs:v.array(Yt()),parent:Br(),error:v.optional(Yt())})}function g5(){return N5().merge(U5())}function Vi(){return v.union([v.object({type:v.literal(n.InputMap)}),v.record(v.string(),v.any())])}function fl(){return v.object({id:v.string(),type:v.literal(n.GenericReference),entityId:v.string(),entityType:v.literal(n.InputMap)})}function Vp(){return v.object({id:v.string(),type:v.literal(n.InputMap),name:v.string().nullable().optional(),description:v.string().nullable().optional()})}function j5(){return Vp().merge(v.object({version:v.number(),index:v.number()}))}function $5(){return Vp().merge(v.object({}))}function G5(){return v.object({defaultValue:Bp().nullable(),declaration:v.union([Rn(),Tn()]).nullable(),readsValue:Ea().nullable(),parent:v.union([tt(),fl(),qi(),pr()])})}function F5(){return j5().merge(G5())}function Ts(){return v.union([v.object({type:v.literal(n.Operation)}),v.record(v.string(),v.any())])}function Is(){return v.object({id:v.string(),type:v.literal(n.GenericReference),entityId:v.string(),entityType:v.literal(n.Operation)})}function yl(){return v.object({id:v.string(),type:v.literal(n.Operation)})}function x5(){return yl().merge(v.object({version:v.number(),x:v.number(),y:v.number()}))}function k5(){return yl().merge(v.object({}))}function S5(){return yl().merge(v.object({successCalls:v.array(Pt()),errorCalls:v.array(Pt()),calledBySuccess:v.array(tt()),calledByError:v.array(tt()),calledByEntry:v.array(Rt()),writesValues:v.array(cr()),declaration:Zi(),inputs:v.array(Vi()),outputs:v.array(Yt()),error:v.array(Yt()),parent:v.union([fr(),ti()])}))}function Z5(){return x5().merge(S5())}function hl(){return v.union([v.string(),v.number(),v.boolean(),v.null(),v.date()])}function ID(){return v.record(v.string(),hl())}function q5(){return v.array(v.union([hl(),ID()]))}function ED(){return v.union([hl(),ID(),q5()])}function AD(){return v.union([hl(),ED()])}function bD(){return v.enum([L.String,L.Number,L.Boolean,L.Null,L.Date,L.KeyValue,L.Enum,L.File,L.UUID,L.EntityTemplate,L.ActionDescriptor])}function RD(){return v.union([Dn(),Is(),Aa()])}function J5(){return v.object({id:v.string(),name:bD(),type:v.literal(n.LiteralValue),value:AD(),autogeneration:yp.nullable()})}function W5(){return J5().merge(v.object({}))}function Bi(){return v.object({id:v.string(),version:v.number(),name:bD(),type:v.literal(n.LiteralValue),value:AD(),valueAsTypeList:v.array(RD()).nullable(),valueAsTypeSingle:RD().nullable(),autogeneration:yp.nullable(),parent:v.union([_p(),fl()])})}function z5(){return Bi().extend({name:v.literal(L.String),value:v.string(),autogeneration:pp.nullable()})}function Y5(){return Bi().extend({name:v.literal(L.Number),value:v.number(),autogeneration:cp.nullable()})}function H5(){return Bi().extend({name:v.literal(L.Boolean),value:v.boolean(),autogeneration:up.nullable()})}function K5(){return Bi().extend({name:v.literal(L.Null),value:v.null(),autogeneration:v.null()})}function X5(){return Bi().extend({name:v.literal(L.Date),value:v.date(),autogeneration:fp.nullable()})}function Q5(){return Bi().extend({name:v.literal(L.KeyValue),value:ED(),autogeneration:v.null()})}function eS(){return Bi().extend({name:v.literal(L.Enum),value:v.string(),autogeneration:v.null()})}function tS(){return Bi().extend({name:v.literal(L.File),value:v.string(),autogeneration:v.null()})}function iS(){return Bi().extend({name:v.literal(L.UUID),value:v.string(),autogeneration:dp.nullable()})}function rS(){return Bi().extend({name:v.literal(L.EntityTemplate),value:Dn(),autogeneration:v.null()})}function nS(){return Bi().extend({name:v.literal(L.ActionDescriptor),value:Aa(),autogeneration:v.null()})}function Bp(){return v.union([z5(),Y5(),H5(),K5(),X5(),Q5(),eS(),tS(),iS(),rS(),nS()])}function An(){return v.union([v.object({type:v.literal(n.DataType)}),v.record(v.string(),v.any())])}function _p(){return v.object({id:v.string(),type:v.literal(n.GenericReference),entityId:v.string(),entityType:v.literal(n.DataType)})}function Mp(){return v.object({id:v.string(),type:v.literal(n.DataType),isNullable:v.boolean(),isList:v.boolean(),constant:v.boolean(),asType:v.boolean(),options:v.array(v.string()).optional()})}function sS(){return Mp().merge(v.object({version:v.number()}))}function aS(){return Mp().merge(v.object({}))}function oS(){return v.object({defaultValue:Bp().nullable(),entity:v.union([Es(),ps(),ol(),Zi()]).nullable(),parent:v.union([hD(),PD(),yD()])})}function lS(){return sS().merge(oS())}function Np(){return v.union([v.object({type:v.literal(n.VariableDeclaration)}),v.record(v.string(),v.any())])}function dS(){return v.object({id:v.string(),type:v.literal(n.GenericReference),entityId:v.string(),entityType:v.literal(n.VariableDeclaration)})}function Lp(){return v.object({id:v.string(),type:v.literal(n.VariableDeclaration),name:v.string(),description:v.string().nullable()})}function uS(){return Lp().merge(v.object({version:v.number(),x:v.number(),y:v.number()}))}function pS(){return Lp().merge(v.object({}))}function cS(){return v.object({dataType:An().nullable(),readsValue:Ea().nullable(),writesValues:v.array(cr()),inputs:v.array(Vi()),outputs:v.array(Yt()),successCalls:v.array(Pt()),errorCalls:v.array(Pt()),internalCalls:v.array(Ia()),calledBySuccess:v.array(tt()),calledByError:v.array(tt()),calledByEntry:v.array(Rt()),parent:v.union([fr(),ti()])})}function fS(){return uS().merge(cS())}function DD(){return v.union([v.object({type:v.literal(n.VariableInstance)}),v.record(v.string(),v.any())])}function yS(){return v.object({id:v.string(),type:v.literal(n.GenericReference),entityId:v.string(),entityType:v.literal(n.VariableInstance)})}function Up(){return v.object({id:v.string(),type:v.literal(n.VariableInstance)})}function hS(){return Up().merge(v.object({version:v.number(),x:v.number(),y:v.number()}))}function mS(){return Up().merge(v.object({}))}function vS(){return v.object({declaration:Np(),dataType:An().nullable(),readsValue:Ea().nullable(),writesValues:v.array(cr()),inputs:v.array(Vi()),outputs:v.array(Yt()),successCalls:v.array(Pt()),errorCalls:v.array(Pt()),internalCalls:v.array(Ia()),calledBySuccess:v.array(tt()),calledByError:v.array(tt()),calledByEntry:v.array(Rt()),parent:v.union([fr(),ti()])})}function TS(){return hS().merge(vS())}function gp(){return v.union([v.object({type:v.literal(n.InstalledProject)}),v.record(v.string(),v.any())])}function ml(){return v.object({id:v.string(),type:v.literal(n.GenericReference),entityId:v.string(),entityType:v.literal(n.InstalledProject)})}function IS(){return v.object({id:v.string(),type:v.literal(n.InstalledProject)})}function ES(){return v.object({version:v.number(),x:v.number(),y:v.number()})}function AS(){return v.object({})}function bS(){return v.object({implements:ti(),description:v.string().nullable(),functions:v.array(fi()),events:v.array(jp()),parent:ti()})}function RS(){return ES().merge(bS())}function jp(){return v.union([v.object({type:v.literal(n.GlobalEvent)}),v.record(v.string(),v.any())])}function DS(){return v.object({id:v.string(),type:v.literal(n.GenericReference),entityId:v.string(),entityType:v.literal(n.GlobalEvent)})}function vl(){return v.object({id:v.string(),type:v.literal(n.GlobalEvent),name:v.string(),collapsed:v.boolean()})}function OS(){return vl().merge(v.object({version:v.number(),x:v.number(),y:v.number()}))}function PS(){return vl().merge(v.object({}))}function wS(){return vl().merge(v.object({returnStatements:v.array(En()),implements:v.array(mD()),inputs:v.array(Rn()),calls:v.array(Pt()),parent:v.union([ti(),ml()])}))}function CS(){return OS().merge(wS())}function bn(){return v.union([Np(),DD()])}function Br(){return v.union([dS(),yS()])}function cr(){return v.union([bn(),Vi(),ur()])}function OD(){return v.union([Br(),fl(),TD()])}function Ea(){return v.union([bn(),Rn(),Yt(),Ts(),Ia(),vs()])}function VS(){return v.union([Br(),$p(),bp(),Is(),wp(),ha()])}function BS(){return v.union([Rn(),Yt(),cr()])}function PD(){return v.union([$p(),bp(),OD()])}function Tl(){return jp()}function Il(){return DS()}function El(){return v.union([Ts(),vs(),ma(),va(),bn(),Ia(),cs()])}function tt(){return v.union([Is(),ha(),cl(),Ta(),Br(),wp(),qi()])}function Al(){return v.union([Ts(),vs(),ma(),va(),bn(),cs()])}function bl(){return v.union([Is(),ha(),cl(),Ta(),Br(),qi()])}function wD(){return v.union([El(),En(),ms(),fs()])}function Pt(){return v.union([tt(),hs(),pr(),ys()])}function CD(){return v.union([Al(),En(),ms(),fs()])}function VD(){return v.union([bl(),hs(),pr(),ys()])}function _r(){return v.union([fi(),Tl()])}function Rt(){return v.union([Aa(),Il()])}function _S(){return v.union([El(),_r()])}function MS(){return v.union([tt(),Rt()])}function NS(){return v.union([Al(),_r()])}function LS(){return v.union([bl(),Rt()])}function US(){return v.union([wD(),_r()])}function gS(){return v.union([Pt(),Rt()])}function jS(){return v.union([CD(),_r()])}function $S(){return v.union([VD(),Rt()])}function GS(){return v.union([_r(),cs()])}function fr(){return v.union([Rt(),qi()])}function FS(){return v.union([El(),_r()])}function xS(){return v.union([tt(),Rt()])}function kS(){return v.union([Al(),_r()])}function SS(){return v.union([bl(),Rt()])}function ZS(){return v.union([En(),ms(),fs()])}function qS(){return v.union([hs(),pr(),ys()])}function JS(){return v.union([ps(),nZ(),gp(),Es(),fi(),Tl(),bn(),Vi(),Yt(),ma(),Ts(),vs(),ur(),Rn(),ol(),An(),Tn(),Zi(),En(),fs(),ms(),cs(),va(),Zi(),Zi(),ya(),Ia()])}function WS(){return v.union([ul(),ti(),ml(),Dn(),Aa(),Il(),Br(),fl(),bp(),cl(),Is(),ha(),TD(),$p(),ll(),_p(),hD(),In(),hs(),ys(),pr(),qi(),Ta(),In(),In(),yD(),wp()])}function zS(){return v.union([gp(),Es(),fi(),Tl(),bn(),ma(),Ts(),vs(),En(),fs(),ms(),cs(),va()])}function YS(){return v.union([ml(),Dn(),Aa(),Il(),Br(),cl(),Is(),ha(),hs(),ys(),pr(),qi(),Ta()])}function Rn(){return v.union([v.object({type:v.literal(n.ArgumentDeclaration)}),v.record(v.string(),v.any())])}function $p(){return v.object({id:v.string(),type:v.literal(n.GenericReference),entityId:v.string(),entityType:v.literal(n.ArgumentDeclaration)})}function Gp(){return v.object({id:v.string(),type:v.literal(n.ArgumentDeclaration)})}function HS(){return Gp().merge(v.object({version:v.number(),x:v.number(),y:v.number()}))}function KS(){return Gp().merge(v.object({}))}function XS(){return v.object({dataType:An().nullable(),writesValues:v.array(cr()),parent:v.union([Rt(),In(),In(),Ta(),pr()])})}function QS(){return HS().merge(XS())}function fi(){return v.union([v.object({type:v.literal(n.FunctionDeclaration)}),v.record(v.string(),v.any())])}function Aa(){return v.object({id:v.string(),type:v.literal(n.GenericReference),entityId:v.string(),entityType:v.literal(n.FunctionDeclaration)})}function Fp(){return v.object({id:v.string(),type:v.literal(n.FunctionDeclaration),name:v.string(),description:v.string().nullable()})}function eZ(){return Fp().merge(v.object({version:v.number(),x:v.number(),y:v.number(),index:v.number().nullable()}))}function tZ(){return Fp()}function iZ(){return v.object({inputs:v.array(Rn()),implements:Zi().nullable(),returnStatements:v.array(En()),parent:v.union([ti(),ml(),Dn(),qi(),ul(),ll()])})}function rZ(){return eZ().merge(iZ())}function nZ(){return v.union([v.object({type:v.literal(n.Project)}),v.record(v.string(),v.any())])}function ti(){return v.object({entityType:v.literal(n.Project),entityId:v.string(),id:v.string(),type:v.literal(n.GenericReference)})}function xp(){return v.object({id:v.string(),type:v.literal(n.Project),name:v.string(),description:v.string().nullable()})}function sZ(){return xp().merge(v.object({version:v.number()}))}function aZ(){return xp()}function oZ(){return v.object({entities:v.array(Es()),functions:v.array(fi()),events:v.array(jp()),projects:v.array(gp()),variableDeclarations:v.array(Np()),variableInstances:v.array(DD()),conditions:v.array(ma()),operations:v.array(Ts()),functionCalls:v.array(vs()),loops:v.array(cs()),searches:v.array(va())})}function lZ(){return sZ().merge(oZ())}function Es(){return v.union([v.object({type:v.literal(n.DefinitionEntity)}),v.record(v.string(),v.any())])}function Dn(){return v.object({id:v.string(),type:v.literal(n.GenericReference),entityId:v.string(),entityType:v.literal(n.DefinitionEntity)})}function kp(){return v.object({id:v.string(),type:v.literal(n.DefinitionEntity),name:v.string(),description:v.string().nullable(),static:v.boolean(),abstract:v.boolean()})}function dZ(){return kp().merge(v.object({version:v.number(),x:v.number(),y:v.number()}))}function uZ(){return kp().merge(v.object({}))}function pZ(){return v.union([ti(),_p()])}function cZ(){return v.object({properties:v.array(Tn()),methods:v.array(fi()),abstractMethods:v.array(Zi()),extends:v.array(v.union([Es(),ps()])),implements:v.array(v.union([Es(),ps()])),parent:pZ()})}function fZ(){return dZ().merge(cZ())}function yZ(r){return r instanceof Error&&r.name==="ZodError"&&"issues"in r&&Array.isArray(r.issues)}var hZ=class extends Error{constructor(a,e){super(a,e);f(this,"name");f(this,"details");this.name="ZodValidationError",this.details=mZ(e)}toString(){return this.message}};function mZ(r){if(r){const a=r.cause;if(yZ(a))return a.issues}return[]}function vZ(r){return r.length!==0}var TZ=/[$_\p{ID_Start}][$\u200c\u200d\p{ID_Continue}]*/u;function IZ(r){return r.length===1?r[0].toString():r.reduce((a,e)=>{if(typeof e=="number")return a+"["+e.toString()+"]";if(e.includes('"'))return a+'["'+EZ(e)+'"]';if(!TZ.test(e))return a+'["'+e+'"]';const t=a.length===0?"":".";return a+t+e},"")}function EZ(r){return r.replace(/"/g,'\\"')}var AZ="; ",bZ=99,BD="Validation error",RZ=": ",DZ=", or ";function OZ(r={}){const{issueSeparator:a=AZ,unionSeparator:e=DZ,prefixSeparator:t=RZ,prefix:i=BD,includePath:s=!0,maxIssuesInMessage:l=bZ}=r;return o=>{const d=o.slice(0,l).map(u=>Rl({issue:u,issueSeparator:a,unionSeparator:e,includePath:s})).join(a);return PZ(d,i,t)}}function Rl(r){const{issue:a,issueSeparator:e,unionSeparator:t,includePath:i}=r;if(a.code===S.invalid_union)return a.unionErrors.reduce((s,l)=>{const o=l.issues.map(d=>Rl({issue:d,issueSeparator:e,unionSeparator:t,includePath:i})).join(e);return s.includes(o)||s.push(o),s},[]).join(t);if(a.code===S.invalid_arguments)return[a.message,...a.argumentsError.issues.map(s=>Rl({issue:s,issueSeparator:e,unionSeparator:t,includePath:i}))].join(e);if(a.code===S.invalid_return_type)return[a.message,...a.returnTypeError.issues.map(s=>Rl({issue:s,issueSeparator:e,unionSeparator:t,includePath:i}))].join(e);if(i&&vZ(a.path)){if(a.path.length===1){const s=a.path[0];if(typeof s=="number")return`${a.message} at index ${s}`}return`${a.message} at "${IZ(a.path)}"`}return a.message}function PZ(r,a,e){return a!==null?r.length>0?[a,r].join(e):a:r.length>0?r:BD}function wZ(r,a={}){const t=CZ(a)([r]);return new hZ(t,{cause:new ei([r])})}function CZ(r){return"messageBuilder"in r?r.messageBuilder:OZ(r)}var _D="1.13.7",MD=typeof self=="object"&&self.self===self&&self||typeof global=="object"&&global.global===global&&global||Function("return this")()||{},Dl=Array.prototype,Sp=Object.prototype,ND=typeof Symbol<"u"?Symbol.prototype:null,VZ=Dl.push,ba=Dl.slice,Ra=Sp.toString,BZ=Sp.hasOwnProperty,LD=typeof ArrayBuffer<"u",_Z=typeof DataView<"u",MZ=Array.isArray,UD=Object.keys,gD=Object.create,jD=LD&&ArrayBuffer.isView,NZ=isNaN,LZ=isFinite,$D=!{toString:null}.propertyIsEnumerable("toString"),GD=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],UZ=Math.pow(2,53)-1;function ii(r,a){return a=a==null?r.length-1:+a,function(){for(var e=Math.max(arguments.length-a,0),t=Array(e),i=0;i<e;i++)t[i]=arguments[i+a];switch(a){case 0:return r.call(this,t);case 1:return r.call(this,arguments[0],t);case 2:return r.call(this,arguments[0],arguments[1],t)}var s=Array(a+1);for(i=0;i<a;i++)s[i]=arguments[i];return s[a]=t,r.apply(this,s)}}function Mr(r){var a=typeof r;return a==="function"||a==="object"&&!!r}function gZ(r){return r===null}function FD(r){return r===void 0}function xD(r){return r===!0||r===!1||Ra.call(r)==="[object Boolean]"}function jZ(r){return!!(r&&r.nodeType===1)}function Gt(r){var a="[object "+r+"]";return function(e){return Ra.call(e)===a}}const Zp=Gt("String"),kD=Gt("Number"),$Z=Gt("Date"),GZ=Gt("RegExp"),FZ=Gt("Error"),SD=Gt("Symbol"),ZD=Gt("ArrayBuffer");var qD=Gt("Function"),xZ=MD.document&&MD.document.childNodes;typeof/./!="function"&&typeof Int8Array!="object"&&typeof xZ!="function"&&(qD=function(r){return typeof r=="function"||!1});const Ht=qD,JD=Gt("Object");var WD=_Z&&(!/\[native code\]/.test(String(DataView))||JD(new DataView(new ArrayBuffer(8)))),qp=typeof Map<"u"&&JD(new Map),kZ=Gt("DataView");function SZ(r){return r!=null&&Ht(r.getInt8)&&ZD(r.buffer)}const Ol=WD?SZ:kZ,On=MZ||Gt("Array");function Nr(r,a){return r!=null&&BZ.call(r,a)}var Jp=Gt("Arguments");(function(){Jp(arguments)||(Jp=function(r){return Nr(r,"callee")})})();const Wp=Jp;function ZZ(r){return!SD(r)&&LZ(r)&&!isNaN(parseFloat(r))}function zD(r){return kD(r)&&NZ(r)}function YD(r){return function(){return r}}function HD(r){return function(a){var e=r(a);return typeof e=="number"&&e>=0&&e<=UZ}}function KD(r){return function(a){return a==null?void 0:a[r]}}const Pl=KD("byteLength"),qZ=HD(Pl);var JZ=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;function WZ(r){return jD?jD(r)&&!Ol(r):qZ(r)&&JZ.test(Ra.call(r))}const XD=LD?WZ:YD(!1),ri=KD("length");function zZ(r){for(var a={},e=r.length,t=0;t<e;++t)a[r[t]]=!0;return{contains:function(i){return a[i]===!0},push:function(i){return a[i]=!0,r.push(i)}}}function QD(r,a){a=zZ(a);var e=GD.length,t=r.constructor,i=Ht(t)&&t.prototype||Sp,s="constructor";for(Nr(r,s)&&!a.contains(s)&&a.push(s);e--;)s=GD[e],s in r&&r[s]!==i[s]&&!a.contains(s)&&a.push(s)}function Vt(r){if(!Mr(r))return[];if(UD)return UD(r);var a=[];for(var e in r)Nr(r,e)&&a.push(e);return $D&&QD(r,a),a}function Da(r){if(r==null)return!0;var a=ri(r);return typeof a=="number"&&(On(r)||Zp(r)||Wp(r))?a===0:ri(Vt(r))===0}function eO(r,a){var e=Vt(a),t=e.length;if(r==null)return!t;for(var i=Object(r),s=0;s<t;s++){var l=e[s];if(a[l]!==i[l]||!(l in i))return!1}return!0}function He(r){if(r instanceof He)return r;if(!(this instanceof He))return new He(r);this._wrapped=r}He.VERSION=_D,He.prototype.value=function(){return this._wrapped},He.prototype.valueOf=He.prototype.toJSON=He.prototype.value,He.prototype.toString=function(){return String(this._wrapped)};function tO(r){return new Uint8Array(r.buffer||r,r.byteOffset||0,Pl(r))}var iO="[object DataView]";function zp(r,a,e,t){if(r===a)return r!==0||1/r===1/a;if(r==null||a==null)return!1;if(r!==r)return a!==a;var i=typeof r;return i!=="function"&&i!=="object"&&typeof a!="object"?!1:rO(r,a,e,t)}function rO(r,a,e,t){r instanceof He&&(r=r._wrapped),a instanceof He&&(a=a._wrapped);var i=Ra.call(r);if(i!==Ra.call(a))return!1;if(WD&&i=="[object Object]"&&Ol(r)){if(!Ol(a))return!1;i=iO}switch(i){case"[object RegExp]":case"[object String]":return""+r==""+a;case"[object Number]":return+r!=+r?+a!=+a:+r==0?1/+r===1/a:+r==+a;case"[object Date]":case"[object Boolean]":return+r==+a;case"[object Symbol]":return ND.valueOf.call(r)===ND.valueOf.call(a);case"[object ArrayBuffer]":case iO:return rO(tO(r),tO(a),e,t)}var s=i==="[object Array]";if(!s&&XD(r)){var l=Pl(r);if(l!==Pl(a))return!1;if(r.buffer===a.buffer&&r.byteOffset===a.byteOffset)return!0;s=!0}if(!s){if(typeof r!="object"||typeof a!="object")return!1;var o=r.constructor,d=a.constructor;if(o!==d&&!(Ht(o)&&o instanceof o&&Ht(d)&&d instanceof d)&&"constructor"in r&&"constructor"in a)return!1}e=e||[],t=t||[];for(var u=e.length;u--;)if(e[u]===r)return t[u]===a;if(e.push(r),t.push(a),s){if(u=r.length,u!==a.length)return!1;for(;u--;)if(!zp(r[u],a[u],e,t))return!1}else{var y=Vt(r),c;if(u=y.length,Vt(a).length!==u)return!1;for(;u--;)if(c=y[u],!(Nr(a,c)&&zp(r[c],a[c],e,t)))return!1}return e.pop(),t.pop(),!0}function YZ(r,a){return zp(r,a)}function Oa(r){if(!Mr(r))return[];var a=[];for(var e in r)a.push(e);return $D&&QD(r,a),a}function Yp(r){var a=ri(r);return function(e){if(e==null)return!1;var t=Oa(e);if(ri(t))return!1;for(var i=0;i<a;i++)if(!Ht(e[r[i]]))return!1;return r!==aO||!Ht(e[Hp])}}var Hp="forEach",nO="has",Kp=["clear","delete"],sO=["get",nO,"set"],HZ=Kp.concat(Hp,sO),aO=Kp.concat(sO),KZ=["add"].concat(Kp,Hp,nO);const XZ=qp?Yp(HZ):Gt("Map"),QZ=qp?Yp(aO):Gt("WeakMap"),eq=qp?Yp(KZ):Gt("Set"),tq=Gt("WeakSet");function As(r){for(var a=Vt(r),e=a.length,t=Array(e),i=0;i<e;i++)t[i]=r[a[i]];return t}function iq(r){for(var a=Vt(r),e=a.length,t=Array(e),i=0;i<e;i++)t[i]=[a[i],r[a[i]]];return t}function oO(r){for(var a={},e=Vt(r),t=0,i=e.length;t<i;t++)a[r[e[t]]]=e[t];return a}function Xp(r){var a=[];for(var e in r)Ht(r[e])&&a.push(e);return a.sort()}function Qp(r,a){return function(e){var t=arguments.length;if(a&&(e=Object(e)),t<2||e==null)return e;for(var i=1;i<t;i++)for(var s=arguments[i],l=r(s),o=l.length,d=0;d<o;d++){var u=l[d];(!a||e[u]===void 0)&&(e[u]=s[u])}return e}}const lO=Qp(Oa),wl=Qp(Vt),dO=Qp(Oa,!0);function rq(){return function(){}}function uO(r){if(!Mr(r))return{};if(gD)return gD(r);var a=rq();a.prototype=r;var e=new a;return a.prototype=null,e}function nq(r,a){var e=uO(r);return a&&wl(e,a),e}function sq(r){return Mr(r)?On(r)?r.slice():lO({},r):r}function aq(r,a){return a(r),r}function pO(r){return On(r)?r:[r]}He.toPath=pO;function Pa(r){return He.toPath(r)}function ec(r,a){for(var e=a.length,t=0;t<e;t++){if(r==null)return;r=r[a[t]]}return e?r:void 0}function cO(r,a,e){var t=ec(r,Pa(a));return FD(t)?e:t}function oq(r,a){a=Pa(a);for(var e=a.length,t=0;t<e;t++){var i=a[t];if(!Nr(r,i))return!1;r=r[i]}return!!e}function tc(r){return r}function wa(r){return r=wl({},r),function(a){return eO(a,r)}}function ic(r){return r=Pa(r),function(a){return ec(a,r)}}function Ca(r,a,e){if(a===void 0)return r;switch(e??3){case 1:return function(t){return r.call(a,t)};case 3:return function(t,i,s){return r.call(a,t,i,s)};case 4:return function(t,i,s,l){return r.call(a,t,i,s,l)}}return function(){return r.apply(a,arguments)}}function fO(r,a,e){return r==null?tc:Ht(r)?Ca(r,a,e):Mr(r)&&!On(r)?wa(r):ic(r)}function rc(r,a){return fO(r,a,1/0)}He.iteratee=rc;function ni(r,a,e){return He.iteratee!==rc?He.iteratee(r,a):fO(r,a,e)}function lq(r,a,e){a=ni(a,e);for(var t=Vt(r),i=t.length,s={},l=0;l<i;l++){var o=t[l];s[o]=a(r[o],o,r)}return s}function yO(){}function dq(r){return r==null?yO:function(a){return cO(r,a)}}function uq(r,a,e){var t=Array(Math.max(0,r));a=Ca(a,e,1);for(var i=0;i<r;i++)t[i]=a(i);return t}function nc(r,a){return a==null&&(a=r,r=0),r+Math.floor(Math.random()*(a-r+1))}const Va=Date.now||function(){return new Date().getTime()};function hO(r){var a=function(s){return r[s]},e="(?:"+Vt(r).join("|")+")",t=RegExp(e),i=RegExp(e,"g");return function(s){return s=s==null?"":""+s,t.test(s)?s.replace(i,a):s}}const mO={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},pq=hO(mO),cq=oO(mO),fq=hO(cq),yq=He.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var sc=/(.)^/,hq={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},mq=/\\|'|\r|\n|\u2028|\u2029/g;function vq(r){return"\\"+hq[r]}var Tq=/^\s*(\w|\$)+\s*$/;function Iq(r,a,e){!a&&e&&(a=e),a=dO({},a,He.templateSettings);var t=RegExp([(a.escape||sc).source,(a.interpolate||sc).source,(a.evaluate||sc).source].join("|")+"|$","g"),i=0,s="__p+='";r.replace(t,function(u,y,c,I,E){return s+=r.slice(i,E).replace(mq,vq),i=E+u.length,y?s+=`'+
24
+ LIMIT 10 OFFSET 0;`,O6={id:"find-companies-with-multiple-employees-and-bank-account-search-parent-ref-id",type:n.GenericReference,entityId:ce,version:"1",entityType:n.Project},P6={id:"find-companies-with-multiple-employees-and-bank-account-search-companies-list-output-declaration-parent-ref-id",type:n.GenericReference,entityId:"find-companies-with-multiple-employees-and-bank-account",version:"1",entityType:n.Search},WR={id:"find-companies-with-multiple-employees-and-bank-account-search-companies-list-output-declaration-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"companies",description:"List of companies with multiple employees and an existing bank account",defaultValue:null,dataType:null,required:!0,parentRelationType:N.FixedReturns,index:0,parent:P6},w6={id:"find-companies-with-multiple-employees-and-bank-account-search-companies-list-output-parent-ref-id",type:n.GenericReference,entityId:"find-companies-with-multiple-employees-and-bank-account",version:"1",entityType:n.Search},C6={id:"find-companies-with-multiple-employees-and-bank-account-search-companies-list-output-id",type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:WR,writesValues:[],index:0,parent:w6},V6={id:"find-companies-with-multiple-employees-and-bank-account",type:n.Search,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Find companies with multiple employees and a bank account",description:"This search statement finds companies with multiple employees and an existing bank account",inputsDeclarations:[],outputsDeclarations:[WR],inputs:[],outputs:[C6],query:D6,successCalls:[],errorCalls:[],error:null,calledByError:[],calledByEntry:[],calledBySuccess:[],x:0,y:0,parent:O6},B6={type:n.GenericReference,id:"employee-mapped-dto-manager-input-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:NR},_6={type:n.GenericReference,id:"employee-mapped-dto-manager-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Si},zR={id:P9,type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:null,name:"manager_id",description:null,defaultValue:null,index:4,readsValue:B6,parent:_6},M6={type:n.GenericReference,id:"employee-mapped-dto-department-input-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:_R},N6={type:n.GenericReference,id:"employee-mapped-dto-department-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Si},YR={id:O9,type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:null,name:"department_name",description:null,defaultValue:null,index:3,readsValue:M6,parent:N6},L6={type:n.GenericReference,id:"employee-mapped-dto-birth-date-input-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:BR},U6={type:n.GenericReference,id:"employee-mapped-dto-birth-date-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Si},HR={id:D9,type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:null,name:"birth_date",description:null,defaultValue:null,index:2,readsValue:L6,parent:U6},g6={type:n.GenericReference,id:"employee-mapped-dto-id-output-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:VR},j6={type:n.GenericReference,id:"employee-mapped-dto-id-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Si},KR={id:R9,type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:null,name:"id",description:"The ID of the employee",defaultValue:null,index:1,readsValue:g6,parent:j6},$6={type:n.GenericReference,id:"employee-mapped-dto-requester-id-output-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:LR},G6={type:n.GenericReference,id:"employee-mapped-dto-requester-id-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Si},XR={id:b9,type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:null,name:"requester_id",description:"The ID of the current user making the request",defaultValue:null,index:0,readsValue:$6,parent:G6},F6={type:n.GenericReference,id:"manager-variable-id-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:tp},x6={id:NR,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:pi.properties[0],defaultValue:null,index:0,writesValues:[zR],parent:F6},k6={type:n.GenericReference,id:"manager-variable-data-type-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:tp},S6={like:!1,inferred:!1,id:"manager-variable-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Ei,asType:!1,isList:!1,parent:k6},Z6={type:n.GenericReference,id:"manager-variable-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:MR},q6={type:n.GenericReference,id:"manager-variable-parent-ref-id",version:"1",entityType:n.Project,entityId:ce},QR={constant:!0,required:!0,id:tp,type:n.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Manager",dataType:S6,description:"A variable holding an inherited manager for testing purposes",defaultValue:null,calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],readsValue:Z6,writesValues:[],inputs:[],outputs:[x6],internalCalls:[],parent:q6,x:0,y:0},J6={type:n.GenericReference,id:"random-company-employee-manager-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:us},W6={id:MR,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:Ei.properties[2],index:3,writesValues:[QR],parent:J6},z6={type:n.GenericReference,id:"random-company-employee-department-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:us},Y6={id:_R,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:Ei.properties[0],index:2,writesValues:[YR],parent:z6},H6={type:n.GenericReference,id:"random-company-employee-birth-date-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:us},K6={id:BR,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:Jt.properties[1],index:1,writesValues:[HR],parent:H6},X6={type:n.GenericReference,id:"random-company-employee-id-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:us},Q6={id:VR,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:pi.properties[0],index:0,writesValues:[KR],parent:X6},e3={type:n.GenericReference,id:"random-company-employee-test-variable-data-type-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:us},t3={like:!1,inferred:!1,id:"random-company-employee-test-variable-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Ei,asType:!1,isList:!1,parent:e3},i3={type:n.GenericReference,id:"random-company-employee-test-variable-parent-ref-id",version:"1",entityType:n.Project,entityId:ce},r3={constant:!0,required:!0,id:us,type:n.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Company employee",dataType:t3,description:"A variable holding a random company employee for testing purposes",defaultValue:null,calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],readsValue:null,writesValues:[],inputs:[],outputs:[Q6,K6,Y6,W6],internalCalls:[],parent:i3,x:0,y:0},n3={type:n.GenericReference,id:"employee-mapped-dto-variable-instance-now-timestamp-input-map-default-value-parent-ref-id",version:"1",entityType:n.InputMap,entityId:UR},s3={type:n.LiteralValue,id:"employee-mapped-dto-variable-instance-now-timestamp-input-map-default-value-id",name:L.Date,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,valueAsTypeList:null,valueAsTypeSingle:null,value:null,autogeneration:{type:vt.CurrentDateAndTime,rangeStart:null,rangeEnd:null},parent:n3},a3={type:n.GenericReference,id:"employee-mapped-dto-variable-instance-now-timestamp-input-map-parent-ref-id",version:"1",entityType:n.VariableInstance,entityId:vn},o3={id:UR,type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:null,name:"now",description:"The current timestamp when the operation is executed",defaultValue:s3,index:5,readsValue:null,parent:a3},l3={type:n.GenericReference,id:"employee-mapped-dto-variable-instance-decl-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Si},d3={type:n.GenericReference,id:"employee-mapped-dto-variable-instance-called-by-success-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Si},u3={type:n.GenericReference,id:"employee-mapped-dto-variable-instance-parent-ref-id",version:"1",entityType:n.Project,entityId:ce},p3={id:vn,type:n.VariableInstance,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:l3,calledByError:[],calledByEntry:[],calledBySuccess:[d3],successCalls:[rp,SR,gR],errorCalls:[],readsValue:null,writesValues:[kR],inputs:[o3],outputs:[],internalCalls:[],parent:u3,x:0,y:0},c3={type:n.GenericReference,id:"employee-mapped-dto-variable-parent-ref-id",version:"1",entityType:n.Project,entityId:ce},f3={constant:!0,required:!0,id:Si,type:n.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Employee DTO",dataType:null,description:"A variable holding the data of a mapped employee DTO",defaultValue:null,calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[rp,p3],errorCalls:[],readsValue:null,writesValues:[GR],inputs:[XR,KR,HR,YR,zR],outputs:[],internalCalls:[],parent:c3,x:0,y:0},y3={type:n.GenericReference,id:"0e63e617-f9d3-42e8-bde0-1bb0b1df7034",version:"1",entityType:n.VariableDeclaration,entityId:KE},h3={like:!1,inferred:!1,id:"e75645ce-d3df-4f07-a897-ae9ef4d917fd",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,entity:Au,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,asType:!1,isList:!1,parent:y3},m3={type:n.GenericReference,id:"e92a8ff5-3fef-4e0c-8d8f-92c930b2890b",version:"1",entityType:n.Project,entityId:ce},eD={constant:!0,required:!0,id:KE,type:n.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Current user",description:"The user that is currently logged in",defaultValue:null,dataType:h3,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],x:0,y:0,readsValue:null,writesValues:[],internalCalls:[],parent:m3},v3={type:n.GenericReference,id:"manager-variable-id-output-map-parent-ref-id",version:"1",entityType:n.VariableInstance,entityId:CR},T3={id:LR,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:pi.properties[0],index:0,writesValues:[XR],parent:v3},I3={type:n.GenericReference,id:"global-user-instance-parent-ref-id",version:"1",entityType:n.Project,entityId:ce},E3={id:CR,type:n.VariableInstance,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:eD,calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],readsValue:null,writesValues:[],inputs:[],outputs:[T3],internalCalls:[],parent:I3,x:0,y:0},A3={type:n.GenericReference,id:"is-test-environment-variable-dcl-datatype-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:"is-test-environment-variable-dcl-id"},b3={type:n.GenericReference,id:"is-test-environment-variable-dcl-datatype-default-value-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:"is-test-environment-variable-dcl-id"},R3={like:!1,inferred:!1,id:"is-test-environment-variable-dcl-datatype-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,entity:er,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,asType:!1,isList:!1,parent:A3},D3={type:n.GenericReference,id:"is-test-environment-variable-dcl-main-project-ref-id",version:"1",entityType:n.Project,entityId:ce},tD={constant:!0,required:!0,id:"is-test-environment-variable-dcl-id",type:n.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Is test envrioment",description:"Indicates whether the current environment is a test environment or not.",defaultValue:{id:"is-test-environment-variable-dcl-datatype-default-value-id",name:L.Boolean,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:null,type:n.LiteralValue,autogeneration:{type:vt.Random,rangeStart:null,rangeEnd:null},valueAsTypeList:null,valueAsTypeSingle:null,parent:b3},dataType:R3,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],x:0,y:0,readsValue:null,writesValues:[],internalCalls:[],parent:D3},O3={type:n.GenericReference,id:"is-test-environment-variable-instance-parent-ref-id",version:"1",entityType:n.Project,entityId:ce},P3={id:"is-test-environment-variable-instance-id",type:n.VariableInstance,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:tD,calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],readsValue:null,writesValues:[],inputs:[],outputs:[],internalCalls:[],parent:O3,x:0,y:0},lp={type:n.Project,id:ce,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Mocked project to compile",description:"This project is used to test all sorts of features and edge cases. It is not meant to be used in production. Or to have any functionality that makes sense",projects:[h9],entities:[Eu,pi,Au,Jt,oj,Ei,So,yA,hA,rs,FU,Ai,Lg,Iu,tB,qg,$U],functions:[Lx,jA,$u,Sx,Xx,YA,Gu,Ou,p9,DA,xk],events:[Fj],variableDeclarations:[tD,eD,Zu,r3,QR,f3],variableInstances:[P3,E3],conditions:[],operations:[os],functionCalls:[F2,K$],loops:[R6,rp,SR,f6,gR],searches:[V6]};var iD={exports:{}};(function(r,a){(function(e,t){r.exports=t()})(OC,function(){var e=1e3,t=6e4,i=36e5,s="millisecond",l="second",o="minute",d="hour",u="day",y="week",c="month",I="quarter",E="year",O="date",P="Invalid Date",V=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,M=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,G={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(me){var ie=["th","st","nd","rd"],Y=me%100;return"["+me+(ie[(Y-20)%10]||ie[Y]||ie[0])+"]"}},B=function(me,ie,Y){var ue=String(me);return!ue||ue.length>=ie?me:""+Array(ie+1-ue.length).join(Y)+me},$={s:B,z:function(me){var ie=-me.utcOffset(),Y=Math.abs(ie),ue=Math.floor(Y/60),ee=Y%60;return(ie<=0?"+":"-")+B(ue,2,"0")+":"+B(ee,2,"0")},m:function me(ie,Y){if(ie.date()<Y.date())return-me(Y,ie);var ue=12*(Y.year()-ie.year())+(Y.month()-ie.month()),ee=ie.clone().add(ue,c),je=Y-ee<0,$e=ie.clone().add(ue+(je?-1:1),c);return+(-(ue+(Y-ee)/(je?ee-$e:$e-ee))||0)},a:function(me){return me<0?Math.ceil(me)||0:Math.floor(me)},p:function(me){return{M:c,y:E,w:y,d:u,D:O,h:d,m:o,s:l,ms:s,Q:I}[me]||String(me||"").toLowerCase().replace(/s$/,"")},u:function(me){return me===void 0}},Z="en",J={};J[Z]=G;var te="$isDayjsObject",fe=function(me){return me instanceof Qt||!(!me||!me[te])},Ie=function me(ie,Y,ue){var ee;if(!ie)return Z;if(typeof ie=="string"){var je=ie.toLowerCase();J[je]&&(ee=je),Y&&(J[je]=Y,ee=je);var $e=ie.split("-");if(!ee&&$e.length>1)return me($e[0])}else{var ft=ie.name;J[ft]=ie,ee=ft}return!ue&&ee&&(Z=ee),ee||!ue&&Z},X=function(me,ie){if(fe(me))return me.clone();var Y=typeof ie=="object"?ie:{};return Y.date=me,Y.args=arguments,new Qt(Y)},le=$;le.l=Ie,le.i=fe,le.w=function(me,ie){return X(me,{locale:ie.$L,utc:ie.$u,x:ie.$x,$offset:ie.$offset})};var Qt=function(){function me(Y){this.$L=Ie(Y.locale,null,!0),this.parse(Y),this.$x=this.$x||Y.x||{},this[te]=!0}var ie=me.prototype;return ie.parse=function(Y){this.$d=function(ue){var ee=ue.date,je=ue.utc;if(ee===null)return new Date(NaN);if(le.u(ee))return new Date;if(ee instanceof Date)return new Date(ee);if(typeof ee=="string"&&!/Z$/i.test(ee)){var $e=ee.match(V);if($e){var ft=$e[2]-1||0,bt=($e[7]||"0").substring(0,3);return je?new Date(Date.UTC($e[1],ft,$e[3]||1,$e[4]||0,$e[5]||0,$e[6]||0,bt)):new Date($e[1],ft,$e[3]||1,$e[4]||0,$e[5]||0,$e[6]||0,bt)}}return new Date(ee)}(Y),this.init()},ie.init=function(){var Y=this.$d;this.$y=Y.getFullYear(),this.$M=Y.getMonth(),this.$D=Y.getDate(),this.$W=Y.getDay(),this.$H=Y.getHours(),this.$m=Y.getMinutes(),this.$s=Y.getSeconds(),this.$ms=Y.getMilliseconds()},ie.$utils=function(){return le},ie.isValid=function(){return this.$d.toString()!==P},ie.isSame=function(Y,ue){var ee=X(Y);return this.startOf(ue)<=ee&&ee<=this.endOf(ue)},ie.isAfter=function(Y,ue){return X(Y)<this.startOf(ue)},ie.isBefore=function(Y,ue){return this.endOf(ue)<X(Y)},ie.$g=function(Y,ue,ee){return le.u(Y)?this[ue]:this.set(ee,Y)},ie.unix=function(){return Math.floor(this.valueOf()/1e3)},ie.valueOf=function(){return this.$d.getTime()},ie.startOf=function(Y,ue){var ee=this,je=!!le.u(ue)||ue,$e=le.p(Y),ft=function(jn,li){var Qr=le.w(ee.$u?Date.UTC(ee.$y,li,jn):new Date(ee.$y,li,jn),ee);return je?Qr:Qr.endOf(u)},bt=function(jn,li){return le.w(ee.toDate()[jn].apply(ee.toDate("s"),(je?[0,0,0,0]:[23,59,59,999]).slice(li)),ee)},Bt=this.$W,St=this.$M,Di=this.$D,ws="set"+(this.$u?"UTC":"");switch($e){case E:return je?ft(1,0):ft(31,11);case c:return je?ft(1,St):ft(0,St+1);case y:var gn=this.$locale().weekStart||0,Fa=(Bt<gn?Bt+7:Bt)-gn;return ft(je?Di-Fa:Di+(6-Fa),St);case u:case O:return bt(ws+"Hours",0);case d:return bt(ws+"Minutes",1);case o:return bt(ws+"Seconds",2);case l:return bt(ws+"Milliseconds",3);default:return this.clone()}},ie.endOf=function(Y){return this.startOf(Y,!1)},ie.$set=function(Y,ue){var ee,je=le.p(Y),$e="set"+(this.$u?"UTC":""),ft=(ee={},ee[u]=$e+"Date",ee[O]=$e+"Date",ee[c]=$e+"Month",ee[E]=$e+"FullYear",ee[d]=$e+"Hours",ee[o]=$e+"Minutes",ee[l]=$e+"Seconds",ee[s]=$e+"Milliseconds",ee)[je],bt=je===u?this.$D+(ue-this.$W):ue;if(je===c||je===E){var Bt=this.clone().set(O,1);Bt.$d[ft](bt),Bt.init(),this.$d=Bt.set(O,Math.min(this.$D,Bt.daysInMonth())).$d}else ft&&this.$d[ft](bt);return this.init(),this},ie.set=function(Y,ue){return this.clone().$set(Y,ue)},ie.get=function(Y){return this[le.p(Y)]()},ie.add=function(Y,ue){var ee,je=this;Y=Number(Y);var $e=le.p(ue),ft=function(St){var Di=X(je);return le.w(Di.date(Di.date()+Math.round(St*Y)),je)};if($e===c)return this.set(c,this.$M+Y);if($e===E)return this.set(E,this.$y+Y);if($e===u)return ft(1);if($e===y)return ft(7);var bt=(ee={},ee[o]=t,ee[d]=i,ee[l]=e,ee)[$e]||1,Bt=this.$d.getTime()+Y*bt;return le.w(Bt,this)},ie.subtract=function(Y,ue){return this.add(-1*Y,ue)},ie.format=function(Y){var ue=this,ee=this.$locale();if(!this.isValid())return ee.invalidDate||P;var je=Y||"YYYY-MM-DDTHH:mm:ssZ",$e=le.z(this),ft=this.$H,bt=this.$m,Bt=this.$M,St=ee.weekdays,Di=ee.months,ws=ee.meridiem,gn=function(li,Qr,xa,ld){return li&&(li[Qr]||li(ue,je))||xa[Qr].slice(0,ld)},Fa=function(li){return le.s(ft%12||12,li,"0")},jn=ws||function(li,Qr,xa){var ld=li<12?"AM":"PM";return xa?ld.toLowerCase():ld};return je.replace(M,function(li,Qr){return Qr||function(xa){switch(xa){case"YY":return String(ue.$y).slice(-2);case"YYYY":return le.s(ue.$y,4,"0");case"M":return Bt+1;case"MM":return le.s(Bt+1,2,"0");case"MMM":return gn(ee.monthsShort,Bt,Di,3);case"MMMM":return gn(Di,Bt);case"D":return ue.$D;case"DD":return le.s(ue.$D,2,"0");case"d":return String(ue.$W);case"dd":return gn(ee.weekdaysMin,ue.$W,St,2);case"ddd":return gn(ee.weekdaysShort,ue.$W,St,3);case"dddd":return St[ue.$W];case"H":return String(ft);case"HH":return le.s(ft,2,"0");case"h":return Fa(1);case"hh":return Fa(2);case"a":return jn(ft,bt,!0);case"A":return jn(ft,bt,!1);case"m":return String(bt);case"mm":return le.s(bt,2,"0");case"s":return String(ue.$s);case"ss":return le.s(ue.$s,2,"0");case"SSS":return le.s(ue.$ms,3,"0");case"Z":return $e}return null}(li)||$e.replace(":","")})},ie.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},ie.diff=function(Y,ue,ee){var je,$e=this,ft=le.p(ue),bt=X(Y),Bt=(bt.utcOffset()-this.utcOffset())*t,St=this-bt,Di=function(){return le.m($e,bt)};switch(ft){case E:je=Di()/12;break;case c:je=Di();break;case I:je=Di()/3;break;case y:je=(St-Bt)/6048e5;break;case u:je=(St-Bt)/864e5;break;case d:je=St/i;break;case o:je=St/t;break;case l:je=St/e;break;default:je=St}return ee?je:le.a(je)},ie.daysInMonth=function(){return this.endOf(c).$D},ie.$locale=function(){return J[this.$L]},ie.locale=function(Y,ue){if(!Y)return this.$L;var ee=this.clone(),je=Ie(Y,ue,!0);return je&&(ee.$L=je),ee},ie.clone=function(){return le.w(this.$d,this)},ie.toDate=function(){return new Date(this.valueOf())},ie.toJSON=function(){return this.isValid()?this.toISOString():null},ie.toISOString=function(){return this.$d.toISOString()},ie.toString=function(){return this.$d.toUTCString()},me}(),Xi=Qt.prototype;return X.prototype=Xi,[["$ms",s],["$s",l],["$m",o],["$H",d],["$W",u],["$M",c],["$y",E],["$D",O]].forEach(function(me){Xi[me[1]]=function(ie){return this.$g(ie,me[0],me[1])}}),X.extend=function(me,ie){return me.$i||(me(ie,Qt,X),me.$i=!0),X},X.locale=Ie,X.isDayjs=fe,X.unix=function(me){return X(1e3*me)},X.en=J[Z],X.Ls=J,X.p={},X})})(iD);var w3=iD.exports;const T=CE(w3);var D=(r=>(r.Error="error",r.Warning="warning",r))(D||{}),j=(r=>(r.InvalidObjectStructure="invalid-object-structure",r.NameNotUniqueInScope="name-not-unique-in-scope",r.EmptyName="empty-name",r.MissingCaller="missing-caller",r.PropertyOverwritesOtherSiblingWithSameName="property-overwrites-other-sibling-with-same-name",r.PropertyOverwritesOtherSiblingWithSameImplementation="property-overwrites-other-sibling-with-same-name",r.PropertyOverwritesOtherImplementedEntitysPropertyWithSameName="property-overwrites-other-implemented-entitys-property-with-same-name",r.PropertyOverwritesOtherImplementedEntitysPropertyWithSameImplementation="property-overwrites-other-implemented-entitys-property-with-same-name",r.PropertyOverwritesOtherExtendedEntitysPropertyWithSameImplementation="property-overwrites-other-extended-entitys-property-with-same-name",r.PropertyOverwritesOtherExtendedEntitysPropertyWithSameName="property-overwrites-other-extended-entitys-property-with-same-name",r.PropertyOverwritesBasePropertyWithSameName="property-overwrites-base-property-with-same-name",r.PropertyOverwritesBasePropertyWithSameImplementation="property-overwrites-base-property-with-same-name",r.MethodOverwritesOtherSiblingWithSameName="method-overwrites-other-sibling-with-same-name",r.MethodOverwritesOtherSiblingWithSameImplementation="method-overwrites-other-sibling-with-same-name",r.MethodOverwritesOtherImplementedEntitysMethodWithSameName="method-overwrites-other-implemented-entitys-method-with-same-name",r.MethodOverwritesOtherImplementedEntitysMethodWithSameImplementation="method-overwrites-other-implemented-entitys-method-with-same-name",r.MethodOverwritesOtherExtendedEntitysMethodWithSameImplementation="method-overwrites-other-extended-entitys-method-with-same-name",r.MethodOverwritesOtherExtendedEntitysMethodWithSameName="method-overwrites-other-extended-entitys-method-with-same-name",r.MethodOverwritesBaseMethodWithSameName="method-overwrites-base-method-with-same-name",r.MethodOverwritesBaseMethodWithSameImplementation="method-overwrites-base-method-with-same-name",r.LoopBodyFunctionOverwrite="loop-body-function-overwrite",r.NoOverlapWithImplementedSignature="no-overlap-with-implemented-signature",r.ReaderWriterIncompatibleDataType="reader-writer-incompatible-data-type",r.UnreachableEntity="unreachable-entity",r.InternalCallParentMissingDataType="internal-call-parent-missing-data-type",r.InternalCallParentDeclarationEntityInvalidType="internal-call-parent-declaration-entity-invalid-type",r.InternalCallDeclarationNotFoundInParentDatatypeEntity="internal-call-declaration-not-found-in-parent-datatype-entity",r.InternalCallDeclarationIsNotFunctionDeclaration="internal-call-declaration-is-not-function-declaration",r.InternalCallDeclarationNotInParentDatatypeEntity="internal-call-declaration-not-in-parent-datatype-entity",r))(j||{}),R=(r=>(r.RootReference="root-reference",r.ReferencedEntityNotFound="referenced-entity-not-found",r.EntityIdNotUnique="entity-id-not-unique",r.BuiltInEntityGenerated="built-in-entity-generated",r.BuiltInEntityUpdated="built-in-entity-updated",r.BuiltInEntityDeleted="built-in-entity-deleted",r.UnknownEntityType="unknown-entity-type",r.MissingTypeProperty="missing-type-property",r.MissingIdProperty="missing-id-property",r.BuiltInEntityParent="built-in-entity-parent",r.InvalidBuiltInEntityReference="invalid-built-in-entity-reference",r.RecommendedImplementAbstractEntityAction="recommended-implement-abstract-entity-action",r.RecommendedImplementOperationAction="recommended-implement-operation-action",r.RecommendedImplementFunctionCallAction="recommended-implement-function-call-action",r.RecommendedImplementVariableDeclarationAction="recommended-implement-variable-declaration-action",r.RecommendedImplementVariableInstanceAction="recommended-implement-variable-instance-action",r.RecommendedImplementConditionAction="recommended-implement-condition-action",r.InvalidReferenceObjectStructure="invalid-reference-object-structure",r.ContainsSingleButShouldBeReferenceList="contains-single-but-should-be-reference-list",r.ContainsListButShouldReferenceSingle="contains-list-but-should-reference-single",r.InvalidParentReference="invalid-parent-reference",r.InvalidImplementsReference="invalid-implements-reference",r.InvalidExtendsReference="invalid-extends-reference",r.InvalidGenerationActionPayload="invalid-generation-action-payload",r.InvalidReference="invalid-reference",r.InvalidInternalCallParentRelation="invalid-internal-call-parent-relation",r.InvalidUpdateEntityOperation="invalid-update-entity-operation",r.NewEntityWouldOverriteExisting="new-entity-would-overrite-existing",r.InvalidDownstreamPropertyOverride="invalid-downstream-property-override",r.UnrecognizedProperty="unrecognized-property",r.SelfReference="self-reference",r.DuplicateReference="duplicate-reference",r.CallerWithIncompatibleScope="caller-with-incompatible-scope",r.InvalidFunctionDeclarationForFunctionCall="invalid-function-declaration-for-function-call",r.InvalidInputMapDeclaration="invalid-input-map-declaration",r.InvalidActionDescriptorForOperation="invalid-action-descriptor-for-operation",r.InvalidActionDescriptorForCondition="invalid-action-descriptor-for-condition",r.InvalidActionDescriptorForLoop="invalid-action-descriptor-for-loop",r.InvalidInmutablePropertyOverride="invalid-inmutable-property-override",r.OutputOverwrite="output-overwrite",r.InputOverwrite="input-overwrite",r.IncompatibleScope="incompatible-scope",r.InvalidParentUpdate="invalid-parent-update",r.NonInteractiveEntityReferenced="non-interactive-entity-referenced",r.InvalidParentRelationType="invalid-parent-relation-type",r))(R||{}),F=(r=>(r.NoPrimaryKeyProperty="no-primary-key-property",r.ScopeWithoutLogic="scope-without-logic",r.AbstractEntityImplements="abstract-entity-implements",r.ImplementsIncompatibleEntities="implements-incompatible-entities",r.ExtendsIncompatibleEntities="extends-incompatible-entities",r.NonAbstractExtendingAbstractEntity="non-abstract-extending-abstract-entity",r.AbstractExtendingNonAbstractEntity="abstract-extending-non-abstract-entity",r.NonStaticExtendingStaticEntity="non-static-extending-static-entity",r.StaticExtendingNonStaticEntity="static-extending-non-static-entity",r.StaticImplementingNonStaticEntity="static-implementing-non-static-entity",r.NonStaticImplementingStaticEntity="non-static-implementing-static-entity",r.ImplementingNonAbstractEntity="implementing-non-abstract-entity",r.ExtendingNonInteractiveEntity="extending-non-interactive-entity",r.AbstractEntityWithNonAbstractMethods="abstract-entity-with-non-abstract-methods",r.AbstractEntityWithNonAbstractProperties="abstract-entity-with-non-abstract-properties",r.StaticEntityWithNonStaticProperties="static-entity-with-non-static-properties",r.NonStaticPropertyInStaticEntity="non-static-property-in-static-entity",r.AbstractPropertyInNonAbstractEntity="abstract-property-in-non-abstract-entity",r.AbstractMethodInNonAbstractEntity="abstract-method-in-non-abstract-entity",r.IncorrectEntityImplementation="incorrect-entity-implementation",r.IncorrectMethodImplementation="incorrect-method-implementation",r.IncorrectPropertyImplementation="incorrect-property-implementation",r.PropertyImplementsNonAbstact="property-implements-non-abstract",r.NonStaticPropertyImplementsStatic="non-static-property-implements-static",r.StaticPropertyImplementsNonStatic="static-property-implements-non-static",r.PropertyImplementsIncompatibleType="property-implements-incompatible-type",r.MissingPropertyImplementation="missing-property-implementation",r.MissingMethodImplementation="missing-method-implementation",r.NoProperties="no-properties",r.ReadingFromIncompatibleType="reading-from-incompatible-type",r.WritingToIncompatibleType="writing-to-incompatible-type",r.InvalidPropertiesCombination="invalid-properties-combination",r.DisconnectedCallableEntity="disconnected-callable-entity",r.VariableReadsValueAndInternalCall="variable-reads-value-and-internal-call",r.VariableWritesValuesAndInternalCall="variable-writes-values-and-internal-call",r.VariableHasInputsAndInternalCall="variable-has-inputs-and-internal-calls",r.VariableHasOutputsAndInternalCall="variable-has-outputs-and-internal-call",r.VariableIsCalledAndHasInternalCall="variable-is-called-and-has-internal-call",r.VariableCallsOthersAndHasInternalCall="variable-calls-others-and-has-internal-call",r))(F||{});class w{constructor(a){f(this,"id");f(this,"message");f(this,"issue");f(this,"severity");f(this,"code");this.id=a.id,this.message=a.message,this.issue=a.issue,this.severity=a.severity,this.code=a.code}toEntityError(a){return this.code in j?new tt({id:this.id,message:this.message,issue:this.issue,severity:this.severity,code:this.code,entity:a}):null}}class tt{constructor(a){f(this,"id");f(this,"message");f(this,"issue");f(this,"severity");f(this,"code");f(this,"entity");f(this,"firstRelationship");f(this,"secondRelationship");this.id=a.id,this.message=a.message,this.issue=a.issue,this.severity=a.severity,this.code=a.code,this.entity=a.entity,this.firstRelationship=a.firstRelationship,this.secondRelationship=a.secondRelationship}clone(){return new tt({id:this.id,message:this.message,issue:this.issue,severity:this.severity,code:this.code,entity:this.entity,firstRelationship:this.firstRelationship,secondRelationship:this.secondRelationship})}}function C3(r){const a=new Set;return r.filter(e=>a.has(e.id)?!1:(a.add(e.id),!0))}function de(r){const a=r.entity.errors.find(t=>t.id===r.id);return a?{new:!1,error:a}:{new:!0,error:new tt(r)}}function V3(r,a){const e=new Map;return r.forEach(t=>{e.set(t.id,t)}),a.forEach(t=>{e.set(t.id,t)}),Array.from(e.values())}function Ye(r,a){const e=[];return a.forEach(t=>{const i=r.find(s=>s.id===t.id);i?e.push(i):e.push(t)}),e}const ca=v.union([v.string(),v.number(),v.boolean(),v.date()]),rD=v.enum([vt.CurrentDateAndTime,vt.Random,vt.Unique]),rl=v.object({type:rD,rangeStart:ca.nullable(),rangeEnd:ca.nullable()}),fa=rl.extend({type:v.literal(vt.Random),rangeStart:ca,rangeEnd:ca}),dp=rl.extend({type:v.literal(vt.Unique),rangeStart:v.null(),rangeEnd:v.null()}),nD=rl.extend({type:v.literal(vt.CurrentDateAndTime),rangeStart:v.null(),rangeEnd:v.null()}),nl=fa.extend({rangeStart:v.number().nullable(),rangeEnd:v.number().nullable()}),sD=nl.extend({rangeStart:v.number(),rangeEnd:v.null()}),aD=nl.extend({rangeStart:v.null(),rangeEnd:v.number()}),oD=nl.extend({rangeStart:v.number(),rangeEnd:v.number()}),sl=fa.extend({rangeStart:v.number().nullable(),rangeEnd:v.number().nullable()}),lD=sl.extend({rangeStart:v.number(),rangeEnd:v.null()}),dD=sl.extend({rangeStart:v.null(),rangeEnd:v.number()}),uD=sl.extend({rangeStart:v.number(),rangeEnd:v.number()}),al=fa.extend({rangeStart:v.date().nullable(),rangeEnd:v.date().nullable()}),pD=al.extend({rangeStart:v.date(),rangeEnd:v.null()}),cD=al.extend({rangeStart:v.null(),rangeEnd:v.date()}),fD=al.extend({rangeStart:v.date(),rangeEnd:v.date()}),up=fa.extend({rangeStart:v.null(),rangeEnd:v.null()}),pp=v.union([lD,dD,uD]),cp=v.union([sD,aD,oD]),fp=v.union([pD,cD,fD,nD]),yp=v.union([pp,cp,fp,dp,up]);function ya(){return v.union([v.object({type:v.literal(n.ValueDescriptor)}),v.record(v.string(),v.any())])}function yD(){return v.object({id:v.string(),type:v.literal(n.GenericReference),entityId:v.string(),entityType:v.literal(n.ValueDescriptor)})}function hp(){return v.object({id:v.string(),type:v.literal(n.ValueDescriptor),name:v.string(),required:v.boolean()})}function B3(){return hp().merge(v.object({version:v.number(),index:v.number()}))}function _3(){return hp().merge(v.object({}))}function M3(){return v.object({dataType:An(),parent:In()})}function N3(){return B3().merge(M3())}function ol(){return v.union([v.object({type:v.literal(n.PrimitiveEntity)}),v.record(v.string(),v.any())])}function ll(){return v.object({id:v.string(),type:v.literal(n.GenericReference),entityId:v.string(),entityType:v.literal(n.PrimitiveEntity)})}function dl(){return v.object({id:v.string(),type:v.literal(n.PrimitiveEntity),name:v.string(),description:v.string().nullable(),static:v.boolean(),abstract:v.boolean()})}function L3(){return dl().merge(v.object({version:v.number()}))}function U3(){return dl().merge(v.object({}))}function g3(){return v.object({properties:v.array(Tn()),methods:v.array(fi()),abstractMethods:v.array(Zi()),extends:v.array(v.union([ol(),ps()]))})}function j3(){return L3().merge(g3())}function Tn(){return v.union([v.object({type:v.literal(n.Property)}),v.record(v.string(),v.any())])}function hD(){return v.object({id:v.string(),type:v.literal(n.GenericReference),entityId:v.string(),entityType:v.literal(n.Property)})}function mp(){return v.object({id:v.string(),type:v.literal(n.Property),name:v.string(),description:v.string().nullable(),private:v.boolean(),static:v.boolean(),required:v.boolean(),abstract:v.boolean()})}function $3(){return mp().merge(v.object({version:v.number(),index:v.number()}))}function G3(){return mp().merge(v.object({}))}function F3(){return v.object({dataType:An(),implements:Tn().nullable(),parent:v.union([Dn(),ll(),ul()])})}function x3(){return $3().merge(F3())}function k3(){return v.enum([z.CRON_JOB,z.EXECUTION,z.HTTP_ENDPOINT,z.PERSISTED_ENTITY,z.RELATIONAL_DATABASE])}function ps(){return v.union([v.object({type:v.literal(n.BuiltInBaseEntity)}),v.record(v.string(),v.any())])}function ul(){return v.object({id:v.string(),type:v.literal(n.GenericReference),entityId:v.string(),entityType:v.literal(n.BuiltInBaseEntity)})}function vp(){return v.object({id:v.string(),version:v.number(),type:v.literal(n.BuiltInBaseEntity),name:k3(),description:v.string().nullable(),abstract:v.boolean(),static:v.boolean()})}function S3(){return vp()}function Z3(){return vp().merge(v.object({}))}function q3(){return v.object({properties:v.array(Tn()),methods:v.array(fi()),abstractMethods:v.array(Zi()),extends:v.array(v.union([ps(),ol()]))})}function J3(){return S3().merge(q3())}function Zi(){return v.union([v.object({type:v.literal(n.ActionDescriptor)}),v.record(v.string(),v.any())])}function In(){return v.object({id:v.string(),type:v.literal(n.GenericReference),entityId:v.string(),entityType:v.literal(n.ActionDescriptor)})}function pl(){return v.object({id:v.string(),type:v.literal(n.ActionDescriptor),name:v.string(),description:v.string().nullable()})}function W3(){return pl().merge(v.object({version:v.number()}))}function z3(){return pl().merge(v.object({}))}function Y3(){return v.object({inputs:v.array(ya()),outputs:v.array(ya()),parent:v.union([ti(),Dn(),ul(),ll()]).nullable()})}function mD(){return W3().merge(Y3())}function cs(){return v.union([v.object({type:v.literal(n.Loop)}),v.record(v.string(),v.any())])}function qi(){return v.object({id:v.string(),type:v.literal(n.GenericReference),entityId:v.string(),entityType:v.literal(n.Loop)})}function vD(){return v.object({id:v.string(),type:v.literal(n.Loop)})}function H3(){return vD().merge(v.object({version:v.number(),x:v.number(),y:v.number()}))}function K3(){return vD().merge(v.object({declaration:v.union([v.string(),fi()])}))}function X3(){return v.object({calledBySuccess:v.array(it()),calledByError:v.array(it()),calledByEntry:v.array(Rt()),declaration:Zi(),inputs:v.array(Vi()),outputs:v.array(Yt()),outputsDeclarations:v.array(ya()),successCalls:v.array(Pt()),errorCalls:v.array(Pt()),error:Yt(),body:fi(),parent:v.union([fr(),ti()]),breakStatements:v.array(ms()),continueStatements:v.array(fs())})}function Q3(){return H3().merge(X3())}function fs(){return v.union([v.object({type:v.literal(n.ContinueStatement)}),v.record(v.string(),v.any())])}function ys(){return v.object({id:v.string(),type:v.literal(n.GenericReference),entityId:v.string(),entityType:v.literal(n.ContinueStatement)})}function Tp(){return v.object({id:v.string(),type:v.literal(n.ContinueStatement)})}function e5(){return Tp().merge(v.object({version:v.number(),x:v.number(),y:v.number()}))}function t5(){return Tp().merge(v.object({}))}function i5(){return v.object({calledBySuccess:v.array(it()),calledByError:v.array(it()),calledByEntry:v.array(Rt()),outputs:v.array(ur()),throws:v.optional(ur()),parent:qi()})}function r5(){return e5().merge(i5())}function En(){return v.union([v.object({type:v.literal(n.ReturnStatement)}),v.record(v.string(),v.any())])}function hs(){return v.object({id:v.string(),type:v.literal(n.GenericReference),entityId:v.string(),entityType:v.literal(n.ReturnStatement)})}function Ip(){return v.object({id:v.string(),type:v.literal(n.ReturnStatement)})}function n5(){return Ip().merge(v.object({version:v.number(),x:v.number(),y:v.number()}))}function s5(){return Ip().merge(v.object({}))}function a5(){return v.object({calledBySuccess:v.array(it()),calledByError:v.array(it()),calledByEntry:v.array(Rt()),outputs:v.array(ur()),throws:v.optional(ur()),parent:fr()})}function o5(){return n5().merge(a5())}function ur(){return v.union([v.object({type:v.literal(n.ReturnDeclaration)}),v.record(v.string(),v.any())])}function TD(){return v.object({id:v.string(),type:v.literal(n.GenericReference),entityId:v.string(),entityType:v.literal(n.ReturnDeclaration)})}function Ep(){return v.object({id:v.string(),type:v.literal(n.ReturnDeclaration),name:v.string(),description:v.string().nullable(),isError:v.boolean()})}function l5(){return Ep().merge(v.object({version:v.number(),index:v.number()}))}function d5(){return Ep().merge(v.object({}))}function u5(){return v.object({dataType:An().nullable(),readsValue:Ea().nullable(),parent:v.union([hs(),In(),pr(),ys()])})}function p5(){return l5().merge(u5())}function ms(){return v.union([v.object({type:v.literal(n.BreakStatement)}),v.record(v.string(),v.any())])}function pr(){return v.object({id:v.string(),type:v.literal(n.GenericReference),entityId:v.string(),entityType:v.literal(n.BreakStatement)})}function Ap(){return v.object({id:v.string(),type:v.literal(n.BreakStatement)})}function c5(){return Ap().merge(v.object({version:v.number(),x:v.number(),y:v.number()}))}function f5(){return Ap().merge(v.object({}))}function y5(){return v.object({calledBySuccess:v.array(it()),calledByError:v.array(it()),calledByEntry:v.array(Rt()),outputs:v.array(ur()),throws:v.optional(ur()),parent:qi()})}function h5(){return c5().merge(y5())}function Yt(){return v.union([v.object({type:v.literal(n.OutputMap)}),v.record(v.string(),v.any())])}function bp(){return v.object({id:v.string(),type:v.literal(n.GenericReference),entityId:v.string(),entityType:v.literal(n.OutputMap)})}function Rp(){return v.object({id:v.string(),type:v.literal(n.OutputMap)})}function m5(){return Rp().merge(v.object({version:v.number(),index:v.number()}))}function v5(){return Rp().merge(v.object({}))}function T5(){return v.object({writesValues:v.array(cr()),declaration:v.union([ur(),Tn()]),parent:v.union([it(),qi(),pr()])})}function I5(){return m5().merge(T5())}function vs(){return v.union([v.object({type:v.literal(n.FunctionCall)}),v.record(v.string(),v.any())])}function ha(){return v.object({id:v.string(),type:v.literal(n.GenericReference),entityId:v.string(),entityType:v.literal(n.FunctionCall)})}function Dp(){return v.object({id:v.string(),type:v.literal(n.FunctionCall)})}function E5(){return Dp().merge(v.object({version:v.number(),x:v.number(),y:v.number()}))}function A5(){return Dp().merge(v.object({}))}function b5(){return v.object({successCalls:v.array(Pt()),errorCalls:v.array(Pt()),calledBySuccess:v.array(it()),calledByError:v.array(it()),calledByEntry:v.array(Rt()),writesValues:v.array(cr()),declaration:fi(),inputs:v.array(Vi()),outputs:v.array(Yt()),error:v.optional(Yt()),parent:v.union([fr(),ti()])})}function R5(){return E5().merge(b5())}function D5(){return v.enum([yt.Equal,yt.NotEqual,yt.MoreThan,yt.MoreThanOrEqual,yt.LessThan,yt.LessThanOrEqual,yt.And,yt.Or,vi.Empty,vi.NotEmpty])}function ma(){return v.union([v.object({type:v.literal(n.Condition)}),v.record(v.string(),v.any())])}function cl(){return v.object({id:v.string(),type:v.literal(n.GenericReference),entityId:v.string(),entityType:v.literal(n.Condition)})}function Op(){return v.object({id:v.string(),type:v.literal(n.Condition)})}function O5(){return Op().merge(v.object({version:v.number(),x:v.number(),y:v.number()}))}function P5(){return Op().merge(v.object({}))}function w5(){return v.object({successCalls:v.array(Pt()),errorCalls:v.array(Pt()),calledBySuccess:v.array(it()),calledByError:v.array(it()),calledByEntry:v.array(Rt()),leftValue:Vi(),rightValue:Vi().nullable(),operator:D5(),parent:v.union([fr(),ti()])})}function C5(){return O5().merge(w5())}function va(){return v.union([v.object({type:v.literal(n.Search)}),v.record(v.string(),v.any())])}function Ta(){return v.object({id:v.string(),type:v.literal(n.GenericReference),entityId:v.string(),entityType:v.literal(n.Search)})}function Pp(){return v.object({id:v.string(),type:v.literal(n.Search),name:v.string(),query:v.any(),description:v.string().nullable()})}function V5(){return Pp().merge(v.object({version:v.number(),x:v.number(),y:v.number()}))}function B5(){return Pp().merge(v.object({}))}function _5(){return v.object({successCalls:v.array(Pt()),errorCalls:v.array(Pt()),calledBySuccess:v.array(it()),calledByError:v.array(it()),calledByEntry:v.array(Rt()),inputsDeclarations:v.array(Rn()),inputs:v.array(Vi()),outputsDeclarations:v.array(ya()),outputs:v.array(Yt()),parent:v.union([fr(),ti()]),error:Yt().nullable()})}function M5(){return V5().merge(_5())}function Ia(){return v.union([v.object({type:v.literal(n.InternalCall)}),v.record(v.string(),v.any())])}function wp(){return v.object({id:v.string(),type:v.literal(n.GenericReference),entityId:v.string(),entityType:v.literal(n.InternalCall)})}function Cp(){return v.object({id:v.string(),type:v.literal(n.InternalCall),index:v.number()})}function N5(){return Cp().merge(v.object({version:v.number(),index:v.number()}))}function L5(){return Cp().merge(v.object({declaration:v.union([v.string(),fi()])}))}function U5(){return v.object({successCalls:v.array(Pt()),errorCalls:v.array(Pt()),calledBySuccess:v.array(it()),calledByError:v.array(it()),calledByEntry:v.array(Rt()),writesValues:v.array(cr()),declaration:fi(),inputs:v.array(Vi()),outputs:v.array(Yt()),parent:Br(),error:v.optional(Yt())})}function g5(){return N5().merge(U5())}function Vi(){return v.union([v.object({type:v.literal(n.InputMap)}),v.record(v.string(),v.any())])}function fl(){return v.object({id:v.string(),type:v.literal(n.GenericReference),entityId:v.string(),entityType:v.literal(n.InputMap)})}function Vp(){return v.object({id:v.string(),type:v.literal(n.InputMap),name:v.string().nullable().optional(),description:v.string().nullable().optional()})}function j5(){return Vp().merge(v.object({version:v.number(),index:v.number()}))}function $5(){return Vp().merge(v.object({}))}function G5(){return v.object({defaultValue:Bp().nullable(),declaration:v.union([Rn(),Tn()]).nullable(),readsValue:Ea().nullable(),parent:v.union([it(),fl(),qi(),pr()])})}function F5(){return j5().merge(G5())}function Ts(){return v.union([v.object({type:v.literal(n.Operation)}),v.record(v.string(),v.any())])}function Is(){return v.object({id:v.string(),type:v.literal(n.GenericReference),entityId:v.string(),entityType:v.literal(n.Operation)})}function yl(){return v.object({id:v.string(),type:v.literal(n.Operation)})}function x5(){return yl().merge(v.object({version:v.number(),x:v.number(),y:v.number()}))}function k5(){return yl().merge(v.object({}))}function S5(){return yl().merge(v.object({successCalls:v.array(Pt()),errorCalls:v.array(Pt()),calledBySuccess:v.array(it()),calledByError:v.array(it()),calledByEntry:v.array(Rt()),writesValues:v.array(cr()),declaration:Zi(),inputs:v.array(Vi()),outputs:v.array(Yt()),error:v.array(Yt()),parent:v.union([fr(),ti()])}))}function Z5(){return x5().merge(S5())}function hl(){return v.union([v.string(),v.number(),v.boolean(),v.null(),v.date()])}function ID(){return v.record(v.string(),hl())}function q5(){return v.array(v.union([hl(),ID()]))}function ED(){return v.union([hl(),ID(),q5()])}function AD(){return v.union([hl(),ED()])}function bD(){return v.enum([L.String,L.Number,L.Boolean,L.Null,L.Date,L.KeyValue,L.Enum,L.File,L.UUID,L.EntityTemplate,L.ActionDescriptor])}function RD(){return v.union([Dn(),Is(),Aa()])}function J5(){return v.object({id:v.string(),name:bD(),type:v.literal(n.LiteralValue),value:AD(),autogeneration:yp.nullable()})}function W5(){return J5().merge(v.object({}))}function Bi(){return v.object({id:v.string(),version:v.number(),name:bD(),type:v.literal(n.LiteralValue),value:AD(),valueAsTypeList:v.array(RD()).nullable(),valueAsTypeSingle:RD().nullable(),autogeneration:yp.nullable(),parent:v.union([_p(),fl()])})}function z5(){return Bi().extend({name:v.literal(L.String),value:v.string(),autogeneration:pp.nullable()})}function Y5(){return Bi().extend({name:v.literal(L.Number),value:v.number(),autogeneration:cp.nullable()})}function H5(){return Bi().extend({name:v.literal(L.Boolean),value:v.boolean(),autogeneration:up.nullable()})}function K5(){return Bi().extend({name:v.literal(L.Null),value:v.null(),autogeneration:v.null()})}function X5(){return Bi().extend({name:v.literal(L.Date),value:v.date(),autogeneration:fp.nullable()})}function Q5(){return Bi().extend({name:v.literal(L.KeyValue),value:ED(),autogeneration:v.null()})}function eS(){return Bi().extend({name:v.literal(L.Enum),value:v.string(),autogeneration:v.null()})}function tS(){return Bi().extend({name:v.literal(L.File),value:v.string(),autogeneration:v.null()})}function iS(){return Bi().extend({name:v.literal(L.UUID),value:v.string(),autogeneration:dp.nullable()})}function rS(){return Bi().extend({name:v.literal(L.EntityTemplate),value:Dn(),autogeneration:v.null()})}function nS(){return Bi().extend({name:v.literal(L.ActionDescriptor),value:Aa(),autogeneration:v.null()})}function Bp(){return v.union([z5(),Y5(),H5(),K5(),X5(),Q5(),eS(),tS(),iS(),rS(),nS()])}function An(){return v.union([v.object({type:v.literal(n.DataType)}),v.record(v.string(),v.any())])}function _p(){return v.object({id:v.string(),type:v.literal(n.GenericReference),entityId:v.string(),entityType:v.literal(n.DataType)})}function Mp(){return v.object({id:v.string(),type:v.literal(n.DataType),isNullable:v.boolean(),isList:v.boolean(),constant:v.boolean(),asType:v.boolean(),options:v.array(v.string()).optional()})}function sS(){return Mp().merge(v.object({version:v.number()}))}function aS(){return Mp().merge(v.object({}))}function oS(){return v.object({defaultValue:Bp().nullable(),entity:v.union([Es(),ps(),ol(),Zi()]).nullable(),parent:v.union([hD(),PD(),yD()])})}function lS(){return sS().merge(oS())}function Np(){return v.union([v.object({type:v.literal(n.VariableDeclaration)}),v.record(v.string(),v.any())])}function dS(){return v.object({id:v.string(),type:v.literal(n.GenericReference),entityId:v.string(),entityType:v.literal(n.VariableDeclaration)})}function Lp(){return v.object({id:v.string(),type:v.literal(n.VariableDeclaration),name:v.string(),description:v.string().nullable()})}function uS(){return Lp().merge(v.object({version:v.number(),x:v.number(),y:v.number()}))}function pS(){return Lp().merge(v.object({}))}function cS(){return v.object({dataType:An().nullable(),readsValue:Ea().nullable(),writesValues:v.array(cr()),inputs:v.array(Vi()),outputs:v.array(Yt()),successCalls:v.array(Pt()),errorCalls:v.array(Pt()),internalCalls:v.array(Ia()),calledBySuccess:v.array(it()),calledByError:v.array(it()),calledByEntry:v.array(Rt()),parent:v.union([fr(),ti()])})}function fS(){return uS().merge(cS())}function DD(){return v.union([v.object({type:v.literal(n.VariableInstance)}),v.record(v.string(),v.any())])}function yS(){return v.object({id:v.string(),type:v.literal(n.GenericReference),entityId:v.string(),entityType:v.literal(n.VariableInstance)})}function Up(){return v.object({id:v.string(),type:v.literal(n.VariableInstance)})}function hS(){return Up().merge(v.object({version:v.number(),x:v.number(),y:v.number()}))}function mS(){return Up().merge(v.object({}))}function vS(){return v.object({declaration:Np(),dataType:An().nullable(),readsValue:Ea().nullable(),writesValues:v.array(cr()),inputs:v.array(Vi()),outputs:v.array(Yt()),successCalls:v.array(Pt()),errorCalls:v.array(Pt()),internalCalls:v.array(Ia()),calledBySuccess:v.array(it()),calledByError:v.array(it()),calledByEntry:v.array(Rt()),parent:v.union([fr(),ti()])})}function TS(){return hS().merge(vS())}function gp(){return v.union([v.object({type:v.literal(n.InstalledProject)}),v.record(v.string(),v.any())])}function ml(){return v.object({id:v.string(),type:v.literal(n.GenericReference),entityId:v.string(),entityType:v.literal(n.InstalledProject)})}function IS(){return v.object({id:v.string(),type:v.literal(n.InstalledProject)})}function ES(){return v.object({version:v.number(),x:v.number(),y:v.number()})}function AS(){return v.object({})}function bS(){return v.object({implements:ti(),description:v.string().nullable(),functions:v.array(fi()),events:v.array(jp()),parent:ti()})}function RS(){return ES().merge(bS())}function jp(){return v.union([v.object({type:v.literal(n.GlobalEvent)}),v.record(v.string(),v.any())])}function DS(){return v.object({id:v.string(),type:v.literal(n.GenericReference),entityId:v.string(),entityType:v.literal(n.GlobalEvent)})}function vl(){return v.object({id:v.string(),type:v.literal(n.GlobalEvent),name:v.string(),collapsed:v.boolean()})}function OS(){return vl().merge(v.object({version:v.number(),x:v.number(),y:v.number()}))}function PS(){return vl().merge(v.object({}))}function wS(){return vl().merge(v.object({returnStatements:v.array(En()),implements:v.array(mD()),inputs:v.array(Rn()),calls:v.array(Pt()),parent:v.union([ti(),ml()])}))}function CS(){return OS().merge(wS())}function bn(){return v.union([Np(),DD()])}function Br(){return v.union([dS(),yS()])}function cr(){return v.union([bn(),Vi(),ur()])}function OD(){return v.union([Br(),fl(),TD()])}function Ea(){return v.union([bn(),Rn(),Yt(),Ts(),Ia(),vs()])}function VS(){return v.union([Br(),$p(),bp(),Is(),wp(),ha()])}function BS(){return v.union([Rn(),Yt(),cr()])}function PD(){return v.union([$p(),bp(),OD()])}function Tl(){return jp()}function Il(){return DS()}function El(){return v.union([Ts(),vs(),ma(),va(),bn(),Ia(),cs()])}function it(){return v.union([Is(),ha(),cl(),Ta(),Br(),wp(),qi()])}function Al(){return v.union([Ts(),vs(),ma(),va(),bn(),cs()])}function bl(){return v.union([Is(),ha(),cl(),Ta(),Br(),qi()])}function wD(){return v.union([El(),En(),ms(),fs()])}function Pt(){return v.union([it(),hs(),pr(),ys()])}function CD(){return v.union([Al(),En(),ms(),fs()])}function VD(){return v.union([bl(),hs(),pr(),ys()])}function _r(){return v.union([fi(),Tl()])}function Rt(){return v.union([Aa(),Il()])}function _S(){return v.union([El(),_r()])}function MS(){return v.union([it(),Rt()])}function NS(){return v.union([Al(),_r()])}function LS(){return v.union([bl(),Rt()])}function US(){return v.union([wD(),_r()])}function gS(){return v.union([Pt(),Rt()])}function jS(){return v.union([CD(),_r()])}function $S(){return v.union([VD(),Rt()])}function GS(){return v.union([_r(),cs()])}function fr(){return v.union([Rt(),qi()])}function FS(){return v.union([El(),_r()])}function xS(){return v.union([it(),Rt()])}function kS(){return v.union([Al(),_r()])}function SS(){return v.union([bl(),Rt()])}function ZS(){return v.union([En(),ms(),fs()])}function qS(){return v.union([hs(),pr(),ys()])}function JS(){return v.union([ps(),nZ(),gp(),Es(),fi(),Tl(),bn(),Vi(),Yt(),ma(),Ts(),vs(),ur(),Rn(),ol(),An(),Tn(),Zi(),En(),fs(),ms(),cs(),va(),Zi(),Zi(),ya(),Ia()])}function WS(){return v.union([ul(),ti(),ml(),Dn(),Aa(),Il(),Br(),fl(),bp(),cl(),Is(),ha(),TD(),$p(),ll(),_p(),hD(),In(),hs(),ys(),pr(),qi(),Ta(),In(),In(),yD(),wp()])}function zS(){return v.union([gp(),Es(),fi(),Tl(),bn(),ma(),Ts(),vs(),En(),fs(),ms(),cs(),va()])}function YS(){return v.union([ml(),Dn(),Aa(),Il(),Br(),cl(),Is(),ha(),hs(),ys(),pr(),qi(),Ta()])}function Rn(){return v.union([v.object({type:v.literal(n.ArgumentDeclaration)}),v.record(v.string(),v.any())])}function $p(){return v.object({id:v.string(),type:v.literal(n.GenericReference),entityId:v.string(),entityType:v.literal(n.ArgumentDeclaration)})}function Gp(){return v.object({id:v.string(),type:v.literal(n.ArgumentDeclaration)})}function HS(){return Gp().merge(v.object({version:v.number(),x:v.number(),y:v.number()}))}function KS(){return Gp().merge(v.object({}))}function XS(){return v.object({dataType:An().nullable(),writesValues:v.array(cr()),parent:v.union([Rt(),In(),In(),Ta(),pr()])})}function QS(){return HS().merge(XS())}function fi(){return v.union([v.object({type:v.literal(n.FunctionDeclaration)}),v.record(v.string(),v.any())])}function Aa(){return v.object({id:v.string(),type:v.literal(n.GenericReference),entityId:v.string(),entityType:v.literal(n.FunctionDeclaration)})}function Fp(){return v.object({id:v.string(),type:v.literal(n.FunctionDeclaration),name:v.string(),description:v.string().nullable()})}function eZ(){return Fp().merge(v.object({version:v.number(),x:v.number(),y:v.number(),index:v.number().nullable()}))}function tZ(){return Fp()}function iZ(){return v.object({inputs:v.array(Rn()),implements:Zi().nullable(),returnStatements:v.array(En()),parent:v.union([ti(),ml(),Dn(),qi(),ul(),ll()])})}function rZ(){return eZ().merge(iZ())}function nZ(){return v.union([v.object({type:v.literal(n.Project)}),v.record(v.string(),v.any())])}function ti(){return v.object({entityType:v.literal(n.Project),entityId:v.string(),id:v.string(),type:v.literal(n.GenericReference)})}function xp(){return v.object({id:v.string(),type:v.literal(n.Project),name:v.string(),description:v.string().nullable()})}function sZ(){return xp().merge(v.object({version:v.number()}))}function aZ(){return xp()}function oZ(){return v.object({entities:v.array(Es()),functions:v.array(fi()),events:v.array(jp()),projects:v.array(gp()),variableDeclarations:v.array(Np()),variableInstances:v.array(DD()),conditions:v.array(ma()),operations:v.array(Ts()),functionCalls:v.array(vs()),loops:v.array(cs()),searches:v.array(va())})}function lZ(){return sZ().merge(oZ())}function Es(){return v.union([v.object({type:v.literal(n.DefinitionEntity)}),v.record(v.string(),v.any())])}function Dn(){return v.object({id:v.string(),type:v.literal(n.GenericReference),entityId:v.string(),entityType:v.literal(n.DefinitionEntity)})}function kp(){return v.object({id:v.string(),type:v.literal(n.DefinitionEntity),name:v.string(),description:v.string().nullable(),static:v.boolean(),abstract:v.boolean()})}function dZ(){return kp().merge(v.object({version:v.number(),x:v.number(),y:v.number()}))}function uZ(){return kp().merge(v.object({}))}function pZ(){return v.union([ti(),_p()])}function cZ(){return v.object({properties:v.array(Tn()),methods:v.array(fi()),abstractMethods:v.array(Zi()),extends:v.array(v.union([Es(),ps()])),implements:v.array(v.union([Es(),ps()])),parent:pZ()})}function fZ(){return dZ().merge(cZ())}function yZ(r){return r instanceof Error&&r.name==="ZodError"&&"issues"in r&&Array.isArray(r.issues)}var hZ=class extends Error{constructor(a,e){super(a,e);f(this,"name");f(this,"details");this.name="ZodValidationError",this.details=mZ(e)}toString(){return this.message}};function mZ(r){if(r){const a=r.cause;if(yZ(a))return a.issues}return[]}function vZ(r){return r.length!==0}var TZ=/[$_\p{ID_Start}][$\u200c\u200d\p{ID_Continue}]*/u;function IZ(r){return r.length===1?r[0].toString():r.reduce((a,e)=>{if(typeof e=="number")return a+"["+e.toString()+"]";if(e.includes('"'))return a+'["'+EZ(e)+'"]';if(!TZ.test(e))return a+'["'+e+'"]';const t=a.length===0?"":".";return a+t+e},"")}function EZ(r){return r.replace(/"/g,'\\"')}var AZ="; ",bZ=99,BD="Validation error",RZ=": ",DZ=", or ";function OZ(r={}){const{issueSeparator:a=AZ,unionSeparator:e=DZ,prefixSeparator:t=RZ,prefix:i=BD,includePath:s=!0,maxIssuesInMessage:l=bZ}=r;return o=>{const d=o.slice(0,l).map(u=>Rl({issue:u,issueSeparator:a,unionSeparator:e,includePath:s})).join(a);return PZ(d,i,t)}}function Rl(r){const{issue:a,issueSeparator:e,unionSeparator:t,includePath:i}=r;if(a.code===S.invalid_union)return a.unionErrors.reduce((s,l)=>{const o=l.issues.map(d=>Rl({issue:d,issueSeparator:e,unionSeparator:t,includePath:i})).join(e);return s.includes(o)||s.push(o),s},[]).join(t);if(a.code===S.invalid_arguments)return[a.message,...a.argumentsError.issues.map(s=>Rl({issue:s,issueSeparator:e,unionSeparator:t,includePath:i}))].join(e);if(a.code===S.invalid_return_type)return[a.message,...a.returnTypeError.issues.map(s=>Rl({issue:s,issueSeparator:e,unionSeparator:t,includePath:i}))].join(e);if(i&&vZ(a.path)){if(a.path.length===1){const s=a.path[0];if(typeof s=="number")return`${a.message} at index ${s}`}return`${a.message} at "${IZ(a.path)}"`}return a.message}function PZ(r,a,e){return a!==null?r.length>0?[a,r].join(e):a:r.length>0?r:BD}function wZ(r,a={}){const t=CZ(a)([r]);return new hZ(t,{cause:new ei([r])})}function CZ(r){return"messageBuilder"in r?r.messageBuilder:OZ(r)}var _D="1.13.7",MD=typeof self=="object"&&self.self===self&&self||typeof global=="object"&&global.global===global&&global||Function("return this")()||{},Dl=Array.prototype,Sp=Object.prototype,ND=typeof Symbol<"u"?Symbol.prototype:null,VZ=Dl.push,ba=Dl.slice,Ra=Sp.toString,BZ=Sp.hasOwnProperty,LD=typeof ArrayBuffer<"u",_Z=typeof DataView<"u",MZ=Array.isArray,UD=Object.keys,gD=Object.create,jD=LD&&ArrayBuffer.isView,NZ=isNaN,LZ=isFinite,$D=!{toString:null}.propertyIsEnumerable("toString"),GD=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],UZ=Math.pow(2,53)-1;function ii(r,a){return a=a==null?r.length-1:+a,function(){for(var e=Math.max(arguments.length-a,0),t=Array(e),i=0;i<e;i++)t[i]=arguments[i+a];switch(a){case 0:return r.call(this,t);case 1:return r.call(this,arguments[0],t);case 2:return r.call(this,arguments[0],arguments[1],t)}var s=Array(a+1);for(i=0;i<a;i++)s[i]=arguments[i];return s[a]=t,r.apply(this,s)}}function Mr(r){var a=typeof r;return a==="function"||a==="object"&&!!r}function gZ(r){return r===null}function FD(r){return r===void 0}function xD(r){return r===!0||r===!1||Ra.call(r)==="[object Boolean]"}function jZ(r){return!!(r&&r.nodeType===1)}function Gt(r){var a="[object "+r+"]";return function(e){return Ra.call(e)===a}}const Zp=Gt("String"),kD=Gt("Number"),$Z=Gt("Date"),GZ=Gt("RegExp"),FZ=Gt("Error"),SD=Gt("Symbol"),ZD=Gt("ArrayBuffer");var qD=Gt("Function"),xZ=MD.document&&MD.document.childNodes;typeof/./!="function"&&typeof Int8Array!="object"&&typeof xZ!="function"&&(qD=function(r){return typeof r=="function"||!1});const Ht=qD,JD=Gt("Object");var WD=_Z&&(!/\[native code\]/.test(String(DataView))||JD(new DataView(new ArrayBuffer(8)))),qp=typeof Map<"u"&&JD(new Map),kZ=Gt("DataView");function SZ(r){return r!=null&&Ht(r.getInt8)&&ZD(r.buffer)}const Ol=WD?SZ:kZ,On=MZ||Gt("Array");function Nr(r,a){return r!=null&&BZ.call(r,a)}var Jp=Gt("Arguments");(function(){Jp(arguments)||(Jp=function(r){return Nr(r,"callee")})})();const Wp=Jp;function ZZ(r){return!SD(r)&&LZ(r)&&!isNaN(parseFloat(r))}function zD(r){return kD(r)&&NZ(r)}function YD(r){return function(){return r}}function HD(r){return function(a){var e=r(a);return typeof e=="number"&&e>=0&&e<=UZ}}function KD(r){return function(a){return a==null?void 0:a[r]}}const Pl=KD("byteLength"),qZ=HD(Pl);var JZ=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;function WZ(r){return jD?jD(r)&&!Ol(r):qZ(r)&&JZ.test(Ra.call(r))}const XD=LD?WZ:YD(!1),ri=KD("length");function zZ(r){for(var a={},e=r.length,t=0;t<e;++t)a[r[t]]=!0;return{contains:function(i){return a[i]===!0},push:function(i){return a[i]=!0,r.push(i)}}}function QD(r,a){a=zZ(a);var e=GD.length,t=r.constructor,i=Ht(t)&&t.prototype||Sp,s="constructor";for(Nr(r,s)&&!a.contains(s)&&a.push(s);e--;)s=GD[e],s in r&&r[s]!==i[s]&&!a.contains(s)&&a.push(s)}function Vt(r){if(!Mr(r))return[];if(UD)return UD(r);var a=[];for(var e in r)Nr(r,e)&&a.push(e);return $D&&QD(r,a),a}function Da(r){if(r==null)return!0;var a=ri(r);return typeof a=="number"&&(On(r)||Zp(r)||Wp(r))?a===0:ri(Vt(r))===0}function eO(r,a){var e=Vt(a),t=e.length;if(r==null)return!t;for(var i=Object(r),s=0;s<t;s++){var l=e[s];if(a[l]!==i[l]||!(l in i))return!1}return!0}function He(r){if(r instanceof He)return r;if(!(this instanceof He))return new He(r);this._wrapped=r}He.VERSION=_D,He.prototype.value=function(){return this._wrapped},He.prototype.valueOf=He.prototype.toJSON=He.prototype.value,He.prototype.toString=function(){return String(this._wrapped)};function tO(r){return new Uint8Array(r.buffer||r,r.byteOffset||0,Pl(r))}var iO="[object DataView]";function zp(r,a,e,t){if(r===a)return r!==0||1/r===1/a;if(r==null||a==null)return!1;if(r!==r)return a!==a;var i=typeof r;return i!=="function"&&i!=="object"&&typeof a!="object"?!1:rO(r,a,e,t)}function rO(r,a,e,t){r instanceof He&&(r=r._wrapped),a instanceof He&&(a=a._wrapped);var i=Ra.call(r);if(i!==Ra.call(a))return!1;if(WD&&i=="[object Object]"&&Ol(r)){if(!Ol(a))return!1;i=iO}switch(i){case"[object RegExp]":case"[object String]":return""+r==""+a;case"[object Number]":return+r!=+r?+a!=+a:+r==0?1/+r===1/a:+r==+a;case"[object Date]":case"[object Boolean]":return+r==+a;case"[object Symbol]":return ND.valueOf.call(r)===ND.valueOf.call(a);case"[object ArrayBuffer]":case iO:return rO(tO(r),tO(a),e,t)}var s=i==="[object Array]";if(!s&&XD(r)){var l=Pl(r);if(l!==Pl(a))return!1;if(r.buffer===a.buffer&&r.byteOffset===a.byteOffset)return!0;s=!0}if(!s){if(typeof r!="object"||typeof a!="object")return!1;var o=r.constructor,d=a.constructor;if(o!==d&&!(Ht(o)&&o instanceof o&&Ht(d)&&d instanceof d)&&"constructor"in r&&"constructor"in a)return!1}e=e||[],t=t||[];for(var u=e.length;u--;)if(e[u]===r)return t[u]===a;if(e.push(r),t.push(a),s){if(u=r.length,u!==a.length)return!1;for(;u--;)if(!zp(r[u],a[u],e,t))return!1}else{var y=Vt(r),c;if(u=y.length,Vt(a).length!==u)return!1;for(;u--;)if(c=y[u],!(Nr(a,c)&&zp(r[c],a[c],e,t)))return!1}return e.pop(),t.pop(),!0}function YZ(r,a){return zp(r,a)}function Oa(r){if(!Mr(r))return[];var a=[];for(var e in r)a.push(e);return $D&&QD(r,a),a}function Yp(r){var a=ri(r);return function(e){if(e==null)return!1;var t=Oa(e);if(ri(t))return!1;for(var i=0;i<a;i++)if(!Ht(e[r[i]]))return!1;return r!==aO||!Ht(e[Hp])}}var Hp="forEach",nO="has",Kp=["clear","delete"],sO=["get",nO,"set"],HZ=Kp.concat(Hp,sO),aO=Kp.concat(sO),KZ=["add"].concat(Kp,Hp,nO);const XZ=qp?Yp(HZ):Gt("Map"),QZ=qp?Yp(aO):Gt("WeakMap"),eq=qp?Yp(KZ):Gt("Set"),tq=Gt("WeakSet");function As(r){for(var a=Vt(r),e=a.length,t=Array(e),i=0;i<e;i++)t[i]=r[a[i]];return t}function iq(r){for(var a=Vt(r),e=a.length,t=Array(e),i=0;i<e;i++)t[i]=[a[i],r[a[i]]];return t}function oO(r){for(var a={},e=Vt(r),t=0,i=e.length;t<i;t++)a[r[e[t]]]=e[t];return a}function Xp(r){var a=[];for(var e in r)Ht(r[e])&&a.push(e);return a.sort()}function Qp(r,a){return function(e){var t=arguments.length;if(a&&(e=Object(e)),t<2||e==null)return e;for(var i=1;i<t;i++)for(var s=arguments[i],l=r(s),o=l.length,d=0;d<o;d++){var u=l[d];(!a||e[u]===void 0)&&(e[u]=s[u])}return e}}const lO=Qp(Oa),wl=Qp(Vt),dO=Qp(Oa,!0);function rq(){return function(){}}function uO(r){if(!Mr(r))return{};if(gD)return gD(r);var a=rq();a.prototype=r;var e=new a;return a.prototype=null,e}function nq(r,a){var e=uO(r);return a&&wl(e,a),e}function sq(r){return Mr(r)?On(r)?r.slice():lO({},r):r}function aq(r,a){return a(r),r}function pO(r){return On(r)?r:[r]}He.toPath=pO;function Pa(r){return He.toPath(r)}function ec(r,a){for(var e=a.length,t=0;t<e;t++){if(r==null)return;r=r[a[t]]}return e?r:void 0}function cO(r,a,e){var t=ec(r,Pa(a));return FD(t)?e:t}function oq(r,a){a=Pa(a);for(var e=a.length,t=0;t<e;t++){var i=a[t];if(!Nr(r,i))return!1;r=r[i]}return!!e}function tc(r){return r}function wa(r){return r=wl({},r),function(a){return eO(a,r)}}function ic(r){return r=Pa(r),function(a){return ec(a,r)}}function Ca(r,a,e){if(a===void 0)return r;switch(e??3){case 1:return function(t){return r.call(a,t)};case 3:return function(t,i,s){return r.call(a,t,i,s)};case 4:return function(t,i,s,l){return r.call(a,t,i,s,l)}}return function(){return r.apply(a,arguments)}}function fO(r,a,e){return r==null?tc:Ht(r)?Ca(r,a,e):Mr(r)&&!On(r)?wa(r):ic(r)}function rc(r,a){return fO(r,a,1/0)}He.iteratee=rc;function ni(r,a,e){return He.iteratee!==rc?He.iteratee(r,a):fO(r,a,e)}function lq(r,a,e){a=ni(a,e);for(var t=Vt(r),i=t.length,s={},l=0;l<i;l++){var o=t[l];s[o]=a(r[o],o,r)}return s}function yO(){}function dq(r){return r==null?yO:function(a){return cO(r,a)}}function uq(r,a,e){var t=Array(Math.max(0,r));a=Ca(a,e,1);for(var i=0;i<r;i++)t[i]=a(i);return t}function nc(r,a){return a==null&&(a=r,r=0),r+Math.floor(Math.random()*(a-r+1))}const Va=Date.now||function(){return new Date().getTime()};function hO(r){var a=function(s){return r[s]},e="(?:"+Vt(r).join("|")+")",t=RegExp(e),i=RegExp(e,"g");return function(s){return s=s==null?"":""+s,t.test(s)?s.replace(i,a):s}}const mO={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},pq=hO(mO),cq=oO(mO),fq=hO(cq),yq=He.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var sc=/(.)^/,hq={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},mq=/\\|'|\r|\n|\u2028|\u2029/g;function vq(r){return"\\"+hq[r]}var Tq=/^\s*(\w|\$)+\s*$/;function Iq(r,a,e){!a&&e&&(a=e),a=dO({},a,He.templateSettings);var t=RegExp([(a.escape||sc).source,(a.interpolate||sc).source,(a.evaluate||sc).source].join("|")+"|$","g"),i=0,s="__p+='";r.replace(t,function(u,y,c,I,E){return s+=r.slice(i,E).replace(mq,vq),i=E+u.length,y?s+=`'+
25
25
  ((__t=(`+y+`))==null?'':_.escape(__t))+
26
26
  '`:c?s+=`'+
27
27
  ((__t=(`+c+`))==null?'':__t)+
@@ -33,7 +33,7 @@ __p+='`),u}),s+=`';
33
33
  `,l="obj";s=`var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};
34
34
  `+s+`return __p;
35
35
  `;var o;try{o=new Function(l,"_",s)}catch(u){throw u.source=s,u}var d=function(u){return o.call(this,u,He)};return d.source="function("+l+`){
36
- `+s+"}",d}function Eq(r,a,e){a=Pa(a);var t=a.length;if(!t)return Ht(e)?e.call(r):e;for(var i=0;i<t;i++){var s=r==null?void 0:r[a[i]];s===void 0&&(s=e,i=t),r=Ht(s)?s.call(r):s}return r}var Aq=0;function bq(r){var a=++Aq+"";return r?r+a:a}function Rq(r){var a=He(r);return a._chain=!0,a}function vO(r,a,e,t,i){if(!(t instanceof a))return r.apply(e,i);var s=uO(r.prototype),l=r.apply(s,i);return Mr(l)?l:s}var bs=ii(function(r,a){var e=bs.placeholder,t=function(){for(var i=0,s=a.length,l=Array(s),o=0;o<s;o++)l[o]=a[o]===e?arguments[i++]:a[o];for(;i<arguments.length;)l.push(arguments[i++]);return vO(r,t,this,this,l)};return t});bs.placeholder=He;const TO=ii(function(r,a,e){if(!Ht(r))throw new TypeError("Bind must be called on a function");var t=ii(function(i){return vO(r,t,a,this,e.concat(i))});return t}),yi=HD(ri);function Pn(r,a,e,t){if(t=t||[],!a&&a!==0)a=1/0;else if(a<=0)return t.concat(r);for(var i=t.length,s=0,l=ri(r);s<l;s++){var o=r[s];if(yi(o)&&(On(o)||Wp(o)))if(a>1)Pn(o,a-1,e,t),i=t.length;else for(var d=0,u=o.length;d<u;)t[i++]=o[d++];else e||(t[i++]=o)}return t}const Dq=ii(function(r,a){a=Pn(a,!1,!1);var e=a.length;if(e<1)throw new Error("bindAll must be passed function names");for(;e--;){var t=a[e];r[t]=TO(r[t],r)}return r});function Oq(r,a){var e=function(t){var i=e.cache,s=""+(a?a.apply(this,arguments):t);return Nr(i,s)||(i[s]=r.apply(this,arguments)),i[s]};return e.cache={},e}const IO=ii(function(r,a,e){return setTimeout(function(){return r.apply(null,e)},a)}),Pq=bs(IO,He,1);function wq(r,a,e){var t,i,s,l,o=0;e||(e={});var d=function(){o=e.leading===!1?0:Va(),t=null,l=r.apply(i,s),t||(i=s=null)},u=function(){var y=Va();!o&&e.leading===!1&&(o=y);var c=a-(y-o);return i=this,s=arguments,c<=0||c>a?(t&&(clearTimeout(t),t=null),o=y,l=r.apply(i,s),t||(i=s=null)):!t&&e.trailing!==!1&&(t=setTimeout(d,c)),l};return u.cancel=function(){clearTimeout(t),o=0,t=i=s=null},u}function Cq(r,a,e){var t,i,s,l,o,d=function(){var y=Va()-i;a>y?t=setTimeout(d,a-y):(t=null,e||(l=r.apply(o,s)),t||(s=o=null))},u=ii(function(y){return o=this,s=y,i=Va(),t||(t=setTimeout(d,a),e&&(l=r.apply(o,s))),l});return u.cancel=function(){clearTimeout(t),t=s=o=null},u}function Vq(r,a){return bs(a,r)}function ac(r){return function(){return!r.apply(this,arguments)}}function Bq(){var r=arguments,a=r.length-1;return function(){for(var e=a,t=r[a].apply(this,arguments);e--;)t=r[e].call(this,t);return t}}function _q(r,a){return function(){if(--r<1)return a.apply(this,arguments)}}function EO(r,a){var e;return function(){return--r>0&&(e=a.apply(this,arguments)),r<=1&&(a=null),e}}const Mq=bs(EO,2);function AO(r,a,e){a=ni(a,e);for(var t=Vt(r),i,s=0,l=t.length;s<l;s++)if(i=t[s],a(r[i],i,r))return i}function bO(r){return function(a,e,t){e=ni(e,t);for(var i=ri(a),s=r>0?0:i-1;s>=0&&s<i;s+=r)if(e(a[s],s,a))return s;return-1}}const oc=bO(1),RO=bO(-1);function DO(r,a,e,t){e=ni(e,t,1);for(var i=e(a),s=0,l=ri(r);s<l;){var o=Math.floor((s+l)/2);e(r[o])<i?s=o+1:l=o}return s}function OO(r,a,e){return function(t,i,s){var l=0,o=ri(t);if(typeof s=="number")r>0?l=s>=0?s:Math.max(s+o,l):o=s>=0?Math.min(s+1,o):s+o+1;else if(e&&s&&o)return s=e(t,i),t[s]===i?s:-1;if(i!==i)return s=a(ba.call(t,l,o),zD),s>=0?s+l:-1;for(s=r>0?l:o-1;s>=0&&s<o;s+=r)if(t[s]===i)return s;return-1}}const PO=OO(1,oc,DO),Nq=OO(-1,RO);function lc(r,a,e){var t=yi(r)?oc:AO,i=t(r,a,e);if(i!==void 0&&i!==-1)return r[i]}function Lq(r,a){return lc(r,wa(a))}function yr(r,a,e){a=Ca(a,e);var t,i;if(yi(r))for(t=0,i=r.length;t<i;t++)a(r[t],t,r);else{var s=Vt(r);for(t=0,i=s.length;t<i;t++)a(r[s[t]],s[t],r)}return r}function wn(r,a,e){a=ni(a,e);for(var t=!yi(r)&&Vt(r),i=(t||r).length,s=Array(i),l=0;l<i;l++){var o=t?t[l]:l;s[l]=a(r[o],o,r)}return s}function wO(r){var a=function(e,t,i,s){var l=!yi(e)&&Vt(e),o=(l||e).length,d=r>0?0:o-1;for(s||(i=e[l?l[d]:d],d+=r);d>=0&&d<o;d+=r){var u=l?l[d]:d;i=t(i,e[u],u,e)}return i};return function(e,t,i,s){var l=arguments.length>=3;return a(e,Ca(t,s,4),i,l)}}const dc=wO(1),CO=wO(-1);function Rs(r,a,e){var t=[];return a=ni(a,e),yr(r,function(i,s,l){a(i,s,l)&&t.push(i)}),t}function Uq(r,a,e){return Rs(r,ac(ni(a)),e)}function VO(r,a,e){a=ni(a,e);for(var t=!yi(r)&&Vt(r),i=(t||r).length,s=0;s<i;s++){var l=t?t[s]:s;if(!a(r[l],l,r))return!1}return!0}function BO(r,a,e){a=ni(a,e);for(var t=!yi(r)&&Vt(r),i=(t||r).length,s=0;s<i;s++){var l=t?t[s]:s;if(a(r[l],l,r))return!0}return!1}function hr(r,a,e,t){return yi(r)||(r=As(r)),(typeof e!="number"||t)&&(e=0),PO(r,a,e)>=0}const gq=ii(function(r,a,e){var t,i;return Ht(a)?i=a:(a=Pa(a),t=a.slice(0,-1),a=a[a.length-1]),wn(r,function(s){var l=i;if(!l){if(t&&t.length&&(s=ec(s,t)),s==null)return;l=s[a]}return l==null?l:l.apply(s,e)})});function uc(r,a){return wn(r,ic(a))}function jq(r,a){return Rs(r,wa(a))}function _O(r,a,e){var t=-1/0,i=-1/0,s,l;if(a==null||typeof a=="number"&&typeof r[0]!="object"&&r!=null){r=yi(r)?r:As(r);for(var o=0,d=r.length;o<d;o++)s=r[o],s!=null&&s>t&&(t=s)}else a=ni(a,e),yr(r,function(u,y,c){l=a(u,y,c),(l>i||l===-1/0&&t===-1/0)&&(t=u,i=l)});return t}function $q(r,a,e){var t=1/0,i=1/0,s,l;if(a==null||typeof a=="number"&&typeof r[0]!="object"&&r!=null){r=yi(r)?r:As(r);for(var o=0,d=r.length;o<d;o++)s=r[o],s!=null&&s<t&&(t=s)}else a=ni(a,e),yr(r,function(u,y,c){l=a(u,y,c),(l<i||l===1/0&&t===1/0)&&(t=u,i=l)});return t}var Gq=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function MO(r){return r?On(r)?ba.call(r):Zp(r)?r.match(Gq):yi(r)?wn(r,tc):As(r):[]}function NO(r,a,e){if(a==null||e)return yi(r)||(r=As(r)),r[nc(r.length-1)];var t=MO(r),i=ri(t);a=Math.max(Math.min(a,i),0);for(var s=i-1,l=0;l<a;l++){var o=nc(l,s),d=t[l];t[l]=t[o],t[o]=d}return t.slice(0,a)}function Fq(r){return NO(r,1/0)}function xq(r,a,e){var t=0;return a=ni(a,e),uc(wn(r,function(i,s,l){return{value:i,index:t++,criteria:a(i,s,l)}}).sort(function(i,s){var l=i.criteria,o=s.criteria;if(l!==o){if(l>o||l===void 0)return 1;if(l<o||o===void 0)return-1}return i.index-s.index}),"value")}function Cl(r,a){return function(e,t,i){var s=a?[[],[]]:{};return t=ni(t,i),yr(e,function(l,o){var d=t(l,o,e);r(s,l,d)}),s}}const kq=Cl(function(r,a,e){Nr(r,e)?r[e].push(a):r[e]=[a]}),Sq=Cl(function(r,a,e){r[e]=a}),Zq=Cl(function(r,a,e){Nr(r,e)?r[e]++:r[e]=1}),qq=Cl(function(r,a,e){r[e?0:1].push(a)},!0);function Jq(r){return r==null?0:yi(r)?r.length:Vt(r).length}function Wq(r,a,e){return a in e}const LO=ii(function(r,a){var e={},t=a[0];if(r==null)return e;Ht(t)?(a.length>1&&(t=Ca(t,a[1])),a=Oa(r)):(t=Wq,a=Pn(a,!1,!1),r=Object(r));for(var i=0,s=a.length;i<s;i++){var l=a[i],o=r[l];t(o,l,r)&&(e[l]=o)}return e}),zq=ii(function(r,a){var e=a[0],t;return Ht(e)?(e=ac(e),a.length>1&&(t=a[1])):(a=wn(Pn(a,!1,!1),String),e=function(i,s){return!hr(a,s)}),LO(r,e,t)});function UO(r,a,e){return ba.call(r,0,Math.max(0,r.length-(a==null||e?1:a)))}function pc(r,a,e){return r==null||r.length<1?a==null||e?void 0:[]:a==null||e?r[0]:UO(r,r.length-a)}function Vl(r,a,e){return ba.call(r,a==null||e?1:a)}function Yq(r,a,e){return r==null||r.length<1?a==null||e?void 0:[]:a==null||e?r[r.length-1]:Vl(r,Math.max(0,r.length-a))}function Hq(r){return Rs(r,Boolean)}function Kq(r,a){return Pn(r,a,!1)}const gO=ii(function(r,a){return a=Pn(a,!0,!0),Rs(r,function(e){return!hr(a,e)})}),Xq=ii(function(r,a){return gO(r,a)});function cc(r,a,e,t){xD(a)||(t=e,e=a,a=!1),e!=null&&(e=ni(e,t));for(var i=[],s=[],l=0,o=ri(r);l<o;l++){var d=r[l],u=e?e(d,l,r):d;a&&!e?((!l||s!==u)&&i.push(d),s=u):e?hr(s,u)||(s.push(u),i.push(d)):hr(i,d)||i.push(d)}return i}const Qq=ii(function(r){return cc(Pn(r,!0,!0))});function e7(r){for(var a=[],e=arguments.length,t=0,i=ri(r);t<i;t++){var s=r[t];if(!hr(a,s)){var l;for(l=1;l<e&&hr(arguments[l],s);l++);l===e&&a.push(s)}}return a}function fc(r){for(var a=r&&_O(r,ri).length||0,e=Array(a),t=0;t<a;t++)e[t]=uc(r,t);return e}const t7=ii(fc);function i7(r,a){for(var e={},t=0,i=ri(r);t<i;t++)a?e[r[t]]=a[t]:e[r[t][0]]=r[t][1];return e}function r7(r,a,e){a==null&&(a=r||0,r=0),e||(e=a<r?-1:1);for(var t=Math.max(Math.ceil((a-r)/e),0),i=Array(t),s=0;s<t;s++,r+=e)i[s]=r;return i}function n7(r,a){if(a==null||a<1)return[];for(var e=[],t=0,i=r.length;t<i;)e.push(ba.call(r,t,t+=a));return e}function yc(r,a){return r._chain?He(a).chain():a}function jO(r){return yr(Xp(r),function(a){var e=He[a]=r[a];He.prototype[a]=function(){var t=[this._wrapped];return VZ.apply(t,arguments),yc(this,e.apply(He,t))}}),He}yr(["pop","push","reverse","shift","sort","splice","unshift"],function(r){var a=Dl[r];He.prototype[r]=function(){var e=this._wrapped;return e!=null&&(a.apply(e,arguments),(r==="shift"||r==="splice")&&e.length===0&&delete e[0]),yc(this,e)}}),yr(["concat","join","slice"],function(r){var a=Dl[r];He.prototype[r]=function(){var e=this._wrapped;return e!=null&&(e=a.apply(e,arguments)),yc(this,e)}});var $O=jO(Object.freeze(Object.defineProperty({__proto__:null,VERSION:_D,after:_q,all:VO,allKeys:Oa,any:BO,assign:wl,before:EO,bind:TO,bindAll:Dq,chain:Rq,chunk:n7,clone:sq,collect:wn,compact:Hq,compose:Bq,constant:YD,contains:hr,countBy:Zq,create:nq,debounce:Cq,default:He,defaults:dO,defer:Pq,delay:IO,detect:lc,difference:gO,drop:Vl,each:yr,escape:pq,every:VO,extend:lO,extendOwn:wl,filter:Rs,find:lc,findIndex:oc,findKey:AO,findLastIndex:RO,findWhere:Lq,first:pc,flatten:Kq,foldl:dc,foldr:CO,forEach:yr,functions:Xp,get:cO,groupBy:kq,has:oq,head:pc,identity:tc,include:hr,includes:hr,indexBy:Sq,indexOf:PO,initial:UO,inject:dc,intersection:e7,invert:oO,invoke:gq,isArguments:Wp,isArray:On,isArrayBuffer:ZD,isBoolean:xD,isDataView:Ol,isDate:$Z,isElement:jZ,isEmpty:Da,isEqual:YZ,isError:FZ,isFinite:ZZ,isFunction:Ht,isMap:XZ,isMatch:eO,isNaN:zD,isNull:gZ,isNumber:kD,isObject:Mr,isRegExp:GZ,isSet:eq,isString:Zp,isSymbol:SD,isTypedArray:XD,isUndefined:FD,isWeakMap:QZ,isWeakSet:tq,iteratee:rc,keys:Vt,last:Yq,lastIndexOf:Nq,map:wn,mapObject:lq,matcher:wa,matches:wa,max:_O,memoize:Oq,methods:Xp,min:$q,mixin:jO,negate:ac,noop:yO,now:Va,object:i7,omit:zq,once:Mq,pairs:iq,partial:bs,partition:qq,pick:LO,pluck:uc,property:ic,propertyOf:dq,random:nc,range:r7,reduce:dc,reduceRight:CO,reject:Uq,rest:Vl,restArguments:ii,result:Eq,sample:NO,select:Rs,shuffle:Fq,size:Jq,some:BO,sortBy:xq,sortedIndex:DO,tail:Vl,take:pc,tap:aq,template:Iq,templateSettings:yq,throttle:wq,times:uq,toArray:MO,toPath:pO,transpose:fc,unescape:fq,union:Qq,uniq:cc,unique:cc,uniqueId:bq,unzip:fc,values:As,where:jq,without:Xq,wrap:Vq,zip:t7},Symbol.toStringTag,{value:"Module"})));$O._=$O;function Kt(r){return r.charAt(0).toUpperCase()+r.slice(1)}function Bl(r){return r.charAt(0).toLowerCase()+r.slice(1)}function GO(r,a){if(r.type!==n.Property||a.type!==n.Property)throw new Error(`Expected property entities for comparison. But got ${r.type} and ${a.type}.`);return r===a||r.id===a.id?!0:r.name!==a.name||r.static!==a.static||r.abstract!==a.abstract?!1:Ri(r.dataType,a.dataType).compatible}function FO(r,a){if(r.type!==n.DefinitionEntity||a.type!==n.DefinitionEntity)throw new Error(`Expected definition entities for comparison. But got ${r.type} and ${a.type}.`);if(r===a||r.id===a.id)return!0;if(r.properties.length!==a.properties.length)return!1;let e=[...a.properties];const t=[];for(let i=0;i<r.properties.length;i++){const s=r.properties[i];e.find(o=>{const d=GO(s,o);return d&&(e=e.filter(u=>u.id!==o.id)),d})||t.push(s)}return!(t.length>0)}var bi=(r=>(r.BothUnconstrained="both-unconstrained",r.AConstraintBUnconstrained="a-constraint-b-unconstrained",r.BConstraintAUnconstrained="b-constraint-a-unconstrained",r.Same="same",r.AIsListBIsNot="a-is-list-b-is-not",r.BIsListAIsNot="b-is-list-a-is-not",r.AIsNullableBIsNot="a-is-nullable-b-is-not",r.BIsNullableAIsNot="b-is-nullable-a-is-not",r.AIsTemplateBIsNot="a-is-template-b-is-not",r.BIsTemplateAIsNot="b-is-template-a-is-not",r.BothUntyped="both-untyped",r.AIsUntypedBIsNot="a-is-untyped-b-is-not",r.BIsUntypedAIsNot="b-is-untyped-a-is-not",r.TypeEntityMismatch="type-entity-mismatch",r.SameDefinitionEntities="same-definition-entities",r.CompatibleDefinitionEntities="compatible-definition-entities",r.IncompatibleDefinitionEntities="incompatible-definition-entities",r.SamePrimitiveEntities="same-primitive-entities",r.IncompatiblePrimitiveEntities="incompatible-primitive-entities",r.SameBuiltInBaseEntities="same-built-in-base-entities",r.IncompatibleBuiltInBaseEntities="incompatible-built-in-base-entities",r.CheckUnknown="check-unknown",r))(bi||{});function Ri(r,a){var e,t,i,s,l,o,d,u,y,c,I;if(r&&r.type!==n.DataType||a&&a.type!==n.DataType)throw new Error(`Expected data-type entities for comparison. But got ${r==null?void 0:r.type} and ${a==null?void 0:a.type}.`);if(r===null&&a===null)return{compatible:!0,type:"both-unconstrained"};if(r===null)return{compatible:!0,type:"a-constraint-b-unconstrained"};if(a===null)return{compatible:!0,type:"b-constraint-a-unconstrained"};if(r===a)return{compatible:!0,type:"same"};if(r.id===a.id)return{compatible:!0,type:"same"};if(r.isList!==a.isList)return{compatible:!1,type:r.isList?"a-is-list-b-is-not":"b-is-list-a-is-not"};if(r.asType!==a.asType)return{compatible:!1,type:r.asType?"a-is-template-b-is-not":"b-is-template-a-is-not"};if(!r.entity&&a.entity)return{compatible:!0,type:"a-is-untyped-b-is-not"};if(r.entity&&!a.entity)return{compatible:!0,type:"b-is-untyped-a-is-not"};if(!r.entity&&!a.entity)return{compatible:!0,type:"both-untyped"};if(((e=r.entity)==null?void 0:e.type)!==((t=a.entity)==null?void 0:t.type))return{compatible:!1,type:"type-entity-mismatch"};if(((i=r.entity)==null?void 0:i.type)===n.DefinitionEntity){if(((s=r.entity)==null?void 0:s.id)===((l=a.entity)==null?void 0:l.id))return{compatible:!0,type:"same-definition-entities"};const E=FO(r.entity,a.entity);return{compatible:E,type:E?"compatible-definition-entities":"incompatible-definition-entities"}}return((o=r.entity)==null?void 0:o.type)===n.PrimitiveEntity?((d=r.entity)==null?void 0:d.id)===((u=a.entity)==null?void 0:u.id)?{compatible:!0,type:"same-primitive-entities"}:{compatible:!1,type:"incompatible-primitive-entities"}:((y=r.entity)==null?void 0:y.type)===n.BuiltInBaseEntity?((c=r.entity)==null?void 0:c.id)===((I=a.entity)==null?void 0:I.id)?{compatible:!0,type:"same-built-in-base-entities"}:{compatible:!1,type:"incompatible-built-in-base-entities"}:{compatible:!1,type:"check-unknown"}}function s7(r,a){const e=r.project.builtInBaseEntities.find(s=>s.id===z.EXECUTION),t={id:m.UUID.uuid(),version:m.UUID.uuid(),createdAt:(a==null?void 0:a.timestamp)||new Date().toISOString(),author:m.sessionAuthor,previousVersion:null,deleted:!1,type:n.DataType,isList:!1,isNullable:!1,andChildrenGroup:null,orChildrenGroup:null,asType:!1,entity:null,constant:!1,defaultValue:null,parent:null},i=C(t,r.project);return i.inferred=!0,a==null||a.add(i,A.Added),i.metaSync(t,a),i.setParent(r,a),i.entity=e,i}function xO(r,a=null){return r.dataType?r.dataType:null}function hc(r,a=null){var t;const e=(t=r.declaration)==null?void 0:t.getDataType(a);return e&&e.isResolved?e:r.readsValue?Ji(r.readsValue,a):null}function mc(r,a=null){return r.dataType&&!r.dataType.inferred&&r.dataType.isResolved?r.dataType:r.readsValue?Ji(r.readsValue,a):null}function kO(r,a=null){return Ji(r.declaration,a)}function SO(r,a=null){return r.dataType&&!r.dataType.inferred?r.dataType:r.dataType&&r.dataType.inferred||!r.dataType?(r.inferDataTypeAndSyncInstancesInputsAndOutputs(a),r.dataType):null}function vc(r,a=null){var e;return((e=r.declaration)==null?void 0:e.dataType)||null}function ZO(r,a=null){return(r==null?void 0:r.dataType)||null}function qO(r,a=null){return(r==null?void 0:r.dataType)||null}function Ji(r,a=null){switch(r.type){case n.VariableDeclaration:return SO(r,a);case n.ArgumentDeclaration:return xO(r,a);case n.ReturnDeclaration:return mc(r,a);case n.VariableInstance:return kO(r,a);case n.InputMap:return hc(r,a);case n.OutputMap:return vc(r,a);case n.Property:return ZO(r,a);case n.ValueDescriptor:return qO(r,a);default:throw new Error(`Cannot infer data type from entity of type ${r.type}.`)}}function _l(r,a=null){switch(r.type){case n.ArgumentDeclaration:return r.getDataType(a);case n.InputMap:return r.getDataType(a);case n.VariableDeclaration:return r.getDataType(a);case n.VariableInstance:return r.getDataType(a);case n.OutputMap:return r.getDataType(a);case n.ReturnDeclaration:return r.getDataType(a);case n.Property:return r.getDataType(a);case n.ValueDescriptor:return r.getDataType(a);default:return null}}function _(r){if(r){let a=null;return typeof r=="string"?a=r:r.entityId?a=r.entityId:r.type!==n.GenericReference&&(a=r.id),a}return null}function Cn(r){return r.declaration||r}function a7(r){return r.type===n.VariableDeclaration?r.parent===r.project?"global-declaration":"local-declaration":r.declaration.parent===r.project?"global-instance":"local-instance"}function Tc(r,a){const e=[];if(r.type===n.Project)e.push(...r.variableDeclarations);else{const i=Xt(it(r)).filter(s=>s.type===n.VariableDeclaration);e.push(...i),r.parent&&(dt.includes(r.parent.type)||r.parent.type===n.Project)&&e.push(...Tc(r.parent))}return e}function o7(r){return r.split(/[\s-]+/).filter(t=>t.length>0).map((t,i)=>i===0?t.toLowerCase():t[0].toUpperCase()+t.slice(1).toLowerCase()).join("")}function l7(r){return r.split(/[\s-]+/).filter(t=>t.length>0).map(t=>t[0].toUpperCase()+t.slice(1).toLowerCase()).join("")}function JO(r){var a;return(a=r.match(/[A-Z]{2,}(?=[A-Z][a-z]+[0-9]*|\b)|[A-Z]?[a-z]+[0-9]*|[A-Z]|[0-9]+/g))==null?void 0:a.map(e=>e.toLowerCase()).join("-")}function Ml(r){return JO(r).toLowerCase()}function Nl(r){var a,e;if(!r)return"Any data type";if(!r.entity){const t=r.isList;if(!((a=r.andChildrenGroup)!=null&&a.length)&&!((e=r.orChildrenGroup)!=null&&e.length))return t?"List of an any data type":"Any data type";let i="",s=!1,l=!1;return(r.andChildrenGroup||[]).forEach(o=>{const d=Nl(o),u=Bl(d);s&&(i+=" and "),o.isGroup?i+="("+u+")":s?i+=u:i+=d,s=!0,l=!0}),(r.orChildrenGroup||[]).forEach(o=>{const d=Nl(o),u=Bl(d);s&&(l&&(i+=","),i+=" or "),o.isGroup?i+="("+u+")":s?i+=u:i+=d,s=!0}),i}if(r.entity.type===n.PrimitiveEntity){let t=r.entity.name;switch(r.entity.name){case L.String:t="Text";break;case L.KeyValue:t="Data structure";break}return r.isList?`List of ${t}s`:`${t.slice(0,1).toUpperCase()}${t.slice(1)}`}else if(r.entity.type===n.DefinitionEntity){const t=x(r.entity,r.project);return r.isList?`List of ${t} entities`:t.slice(0,1).toUpperCase()+t.slice(1)}else if(r.entity.type===n.BuiltInBaseEntity){const t=zO(r.entity);return r.isList?`List of ${t} entities`:t.slice(0,1).toUpperCase()+t.slice(1)}else return r.isList?`List of ${r.entity.name} entities`:`${r.entity.name.slice(0,1).toUpperCase()+r.entity.name.slice(1)} entity`}function d7(r){if(!r)return"Any data type";const a=r.getDataType(null);return Nl(a)}function Ll(r){switch(r.declaration.id){case yt.Equal:return"is equal to";case yt.NotEqual:return"is not equal to";case yt.MoreThan:return"is greater than";case yt.MoreThanOrEqual:return"is greater than or equal to";case yt.LessThan:return"is less than";case yt.LessThanOrEqual:return"is less than or equal to";case yt.And:return"and";case yt.Or:return"or";case vi.Empty:return"is empty";case vi.NotEmpty:return"is not empty"}}function WO(r){return r.includes(z.HTTP_ENDPOINT)?"HTTP endpoint":r.includes(z.PERSISTED_ENTITY)?"Persisted entity":r.includes(z.CRON_JOB)?"Scheduled execution":r.includes(z.RELATIONAL_DATABASE)?"Relational database":"Entity"}function zO(r){switch(r.name){case z.HTTP_ENDPOINT:return"HTTP endpoint";case z.PERSISTED_ENTITY:return"Persisted entity";case z.CRON_JOB:return"Scheduled execution";case z.RELATIONAL_DATABASE:return"Relational database"}return"Entity"}function u7(r){const a=Qc(r);if(!a){const e=Xc(r);return e.includes(z.HTTP_ENDPOINT)?"HTTP endpoint":e.includes(z.PERSISTED_ENTITY)?"Persisted entity":e.includes(z.CRON_JOB)?"Scheduled execution":e.includes(z.RELATIONAL_DATABASE)?"Relational database":x(r,r.project)+" entity"}return x(a,r.project)+" entity"}function YO(r){let a="Find ";return r.outputsDeclarations.forEach((e,t)=>{const i=_l(e,null),s=Bl(i&&i.entity?x(i.entity,r.project):"unstructured data");t===0?a+=`${s} `:t===r.outputsDeclarations.length-1?a+=`and ${s} `:a+=`, ${s} `}),a}function HO(r){switch(r.name){case L.String:return"Text";case L.Number:return"Number";case L.Boolean:return"Boolean";case L.KeyValue:return"Data structure";case L.UUID:return"Unique identifier";case L.Date:return"Date";case L.EntityTemplate:return"Entity as template";case L.Enum:return"Enumeration";case L.File:return"File";case L.Null:return"Empty";case L.ActionDescriptor:return"Action descriptor";case L.Untyped:return"Untyped";default:return r.name}}function KO(r){switch(r.id){case Q.List:return"Loop over list items";case Q.ManualFlow:return"Manual flow control loop";case Q.ObjectKeys:return"Loop over object keys";case Q.ObjectValues:return"Loop over object values";case Q.Counted:return"Loop given number of times";case Q.String:return"Loop over text characters";case Qe.Addition:return"Sum numbers";case Qe.Subtraction:return"Subtract numbers";case Qe.Multiplication:return"Multiply numbers";case Qe.Division:return"Divide numbers";case Qe.Remainder:return"Get remainder of numbers";case Qe.Exponentiation:return"Get exponent of numbers";case Ee.AddIndex:return"Add at index position";case Ee.DeleteFirst:return"Delete first character";case Ee.DeleteLast:return"Delete last character";case Ee.DeleteIndex:return"Delete at index position";case Ee.Join:return"Join texts";case Ee.ReplaceAllMatches:return"Replace all matches";case Ee.ReplaceFirst:return"Replace first match";case Ee.ReplaceLast:return"Replace last match";case Ee.Split:return"Split text";case Ee.ReplaceIndex:return"Replace at index position";case Ee.ReplaceSingleMatch:return"Replace single match";case Ee.GetFirst:return"Get first character";case Ee.GetLast:return"Get last character";case Ee.GetIndex:return"Get at index position";case Ee.Append:return"Add at the end";case Ee.Prepend:return"Add at the start";case Ke.Wait:return"Wait";case Ke.Parallel:return"Run in parallel";case Ke.Sequential:return"Run in sequence";case _t.HttpRequest:return"HTTP request";case Xe.CreateNewInstance:return"Create new copy of entity";case he.AddIndex:return"Add item at index position";case he.DeleteFirst:return"Delete first item";case he.DeleteLast:return"Delete last item";case he.DeleteIndex:return"Delete item at index position";case he.Join:return"Join lists";case he.ReplaceAllMatches:return"Replace all matches";case he.ReplaceFirst:return"Replace first match";case he.ReplaceLast:return"Replace last match";case he.Split:return"Split list";case he.ReplaceIndex:return"Replace at index position";case he.ReplaceSingleMatch:return"Replace single match";case he.GetFirst:return"Get first item";case he.GetLast:return"Get last item";case he.GetIndex:return"Get item at index position";case he.Append:return"Add item at the end";case he.Prepend:return"Add item at the start";case Qi.PROJECT_PUBLICATION_COMPLETED:return"Project publication completed";default:return(r.name.slice(0,1).toUpperCase()+r.name.slice(1)).replaceAll("-"," ")}}function x(r,a){var e;if(n.FunctionDeclaration===r.type){const t=r.name;if(Object.values(di).includes(t))switch(t){case di.AbortExecution:return"Abort execution";case di.DeletePersistedEntity:return"Delete persisted entity";case di.SoftDeletePersistedEntity:return"Soft delete persisted entity";default:return Kt(r.type).replaceAll("-"," ")}return t}if(n.BuiltInBaseEntity===r.type)return WO([r.name]);if(df.includes(r.type)&&r.type!==n.ActionDescriptor)return r.name;switch(r.type){case n.Search:return YO(r);case n.Operation:case n.InternalCall:case n.Loop:const t=mi(r.declaration,a);return x(t,a);case n.ActionDescriptor:return KO(r);case n.BreakStatement:const i=mi(r.parent,a);return`Stop loop ${x(i,a)}`;case n.ContinueStatement:const s=mi(r.parent,a);return`Execute next iteration of ${x(s,a)}`;case n.FunctionCall:return mi(r.declaration,a).name;case n.Condition:{const o=r;if((e=r.inputs)!=null&&e.length){const d=x(o.inputs[0],o.project);if(o.inputs[1]){const u=o.inputs[1].declaration.name;return`If ${d} ${Ll(o)} ${u}`}return`If ${d} ${Ll(o)}`}else return`If ${Ll(o)}`}case n.ReturnStatement:{const o=mi(r.parent,a);return`Output of ${x(o,a)}`}case n.InputMap:if(r.declaration){const o=mi(r.declaration,a);return x(o,a)||""}else return r.name||"";case n.VariableInstance:{const o=mi(r.declaration,a);return x(o,a)||""}case n.OutputMap:if(r.declaration){const o=mi(r.declaration,a);return(o==null?void 0:o.name)||""}else return"";case n.PrimitiveEntity:case n.LiteralValue:return HO(r);default:return Kt(r.type).replaceAll("-"," ")}}function Ic(r,a){const e=[];r.name||e.push(new w({id:`${r.id}--${j.EmptyName}`,message:`Entity with id "${r.id}" and type "${r.type}" has an empty name. Please provide a 'name' string.`,severity:D.Error,code:j.EmptyName,issue:null}));const t=a.entities.filter(i=>i.name===r.name);return t.length&&e.push(new w({id:`${r.id}--${j.NameNotUniqueInScope}`,message:`Entity with id "${r.id}" and type "${r.type}" has a name "${r.name}" that is not unique in the project. Entity with id "${t[0].id}" has the same name.
36
+ `+s+"}",d}function Eq(r,a,e){a=Pa(a);var t=a.length;if(!t)return Ht(e)?e.call(r):e;for(var i=0;i<t;i++){var s=r==null?void 0:r[a[i]];s===void 0&&(s=e,i=t),r=Ht(s)?s.call(r):s}return r}var Aq=0;function bq(r){var a=++Aq+"";return r?r+a:a}function Rq(r){var a=He(r);return a._chain=!0,a}function vO(r,a,e,t,i){if(!(t instanceof a))return r.apply(e,i);var s=uO(r.prototype),l=r.apply(s,i);return Mr(l)?l:s}var bs=ii(function(r,a){var e=bs.placeholder,t=function(){for(var i=0,s=a.length,l=Array(s),o=0;o<s;o++)l[o]=a[o]===e?arguments[i++]:a[o];for(;i<arguments.length;)l.push(arguments[i++]);return vO(r,t,this,this,l)};return t});bs.placeholder=He;const TO=ii(function(r,a,e){if(!Ht(r))throw new TypeError("Bind must be called on a function");var t=ii(function(i){return vO(r,t,a,this,e.concat(i))});return t}),yi=HD(ri);function Pn(r,a,e,t){if(t=t||[],!a&&a!==0)a=1/0;else if(a<=0)return t.concat(r);for(var i=t.length,s=0,l=ri(r);s<l;s++){var o=r[s];if(yi(o)&&(On(o)||Wp(o)))if(a>1)Pn(o,a-1,e,t),i=t.length;else for(var d=0,u=o.length;d<u;)t[i++]=o[d++];else e||(t[i++]=o)}return t}const Dq=ii(function(r,a){a=Pn(a,!1,!1);var e=a.length;if(e<1)throw new Error("bindAll must be passed function names");for(;e--;){var t=a[e];r[t]=TO(r[t],r)}return r});function Oq(r,a){var e=function(t){var i=e.cache,s=""+(a?a.apply(this,arguments):t);return Nr(i,s)||(i[s]=r.apply(this,arguments)),i[s]};return e.cache={},e}const IO=ii(function(r,a,e){return setTimeout(function(){return r.apply(null,e)},a)}),Pq=bs(IO,He,1);function wq(r,a,e){var t,i,s,l,o=0;e||(e={});var d=function(){o=e.leading===!1?0:Va(),t=null,l=r.apply(i,s),t||(i=s=null)},u=function(){var y=Va();!o&&e.leading===!1&&(o=y);var c=a-(y-o);return i=this,s=arguments,c<=0||c>a?(t&&(clearTimeout(t),t=null),o=y,l=r.apply(i,s),t||(i=s=null)):!t&&e.trailing!==!1&&(t=setTimeout(d,c)),l};return u.cancel=function(){clearTimeout(t),o=0,t=i=s=null},u}function Cq(r,a,e){var t,i,s,l,o,d=function(){var y=Va()-i;a>y?t=setTimeout(d,a-y):(t=null,e||(l=r.apply(o,s)),t||(s=o=null))},u=ii(function(y){return o=this,s=y,i=Va(),t||(t=setTimeout(d,a),e&&(l=r.apply(o,s))),l});return u.cancel=function(){clearTimeout(t),t=s=o=null},u}function Vq(r,a){return bs(a,r)}function ac(r){return function(){return!r.apply(this,arguments)}}function Bq(){var r=arguments,a=r.length-1;return function(){for(var e=a,t=r[a].apply(this,arguments);e--;)t=r[e].call(this,t);return t}}function _q(r,a){return function(){if(--r<1)return a.apply(this,arguments)}}function EO(r,a){var e;return function(){return--r>0&&(e=a.apply(this,arguments)),r<=1&&(a=null),e}}const Mq=bs(EO,2);function AO(r,a,e){a=ni(a,e);for(var t=Vt(r),i,s=0,l=t.length;s<l;s++)if(i=t[s],a(r[i],i,r))return i}function bO(r){return function(a,e,t){e=ni(e,t);for(var i=ri(a),s=r>0?0:i-1;s>=0&&s<i;s+=r)if(e(a[s],s,a))return s;return-1}}const oc=bO(1),RO=bO(-1);function DO(r,a,e,t){e=ni(e,t,1);for(var i=e(a),s=0,l=ri(r);s<l;){var o=Math.floor((s+l)/2);e(r[o])<i?s=o+1:l=o}return s}function OO(r,a,e){return function(t,i,s){var l=0,o=ri(t);if(typeof s=="number")r>0?l=s>=0?s:Math.max(s+o,l):o=s>=0?Math.min(s+1,o):s+o+1;else if(e&&s&&o)return s=e(t,i),t[s]===i?s:-1;if(i!==i)return s=a(ba.call(t,l,o),zD),s>=0?s+l:-1;for(s=r>0?l:o-1;s>=0&&s<o;s+=r)if(t[s]===i)return s;return-1}}const PO=OO(1,oc,DO),Nq=OO(-1,RO);function lc(r,a,e){var t=yi(r)?oc:AO,i=t(r,a,e);if(i!==void 0&&i!==-1)return r[i]}function Lq(r,a){return lc(r,wa(a))}function yr(r,a,e){a=Ca(a,e);var t,i;if(yi(r))for(t=0,i=r.length;t<i;t++)a(r[t],t,r);else{var s=Vt(r);for(t=0,i=s.length;t<i;t++)a(r[s[t]],s[t],r)}return r}function wn(r,a,e){a=ni(a,e);for(var t=!yi(r)&&Vt(r),i=(t||r).length,s=Array(i),l=0;l<i;l++){var o=t?t[l]:l;s[l]=a(r[o],o,r)}return s}function wO(r){var a=function(e,t,i,s){var l=!yi(e)&&Vt(e),o=(l||e).length,d=r>0?0:o-1;for(s||(i=e[l?l[d]:d],d+=r);d>=0&&d<o;d+=r){var u=l?l[d]:d;i=t(i,e[u],u,e)}return i};return function(e,t,i,s){var l=arguments.length>=3;return a(e,Ca(t,s,4),i,l)}}const dc=wO(1),CO=wO(-1);function Rs(r,a,e){var t=[];return a=ni(a,e),yr(r,function(i,s,l){a(i,s,l)&&t.push(i)}),t}function Uq(r,a,e){return Rs(r,ac(ni(a)),e)}function VO(r,a,e){a=ni(a,e);for(var t=!yi(r)&&Vt(r),i=(t||r).length,s=0;s<i;s++){var l=t?t[s]:s;if(!a(r[l],l,r))return!1}return!0}function BO(r,a,e){a=ni(a,e);for(var t=!yi(r)&&Vt(r),i=(t||r).length,s=0;s<i;s++){var l=t?t[s]:s;if(a(r[l],l,r))return!0}return!1}function hr(r,a,e,t){return yi(r)||(r=As(r)),(typeof e!="number"||t)&&(e=0),PO(r,a,e)>=0}const gq=ii(function(r,a,e){var t,i;return Ht(a)?i=a:(a=Pa(a),t=a.slice(0,-1),a=a[a.length-1]),wn(r,function(s){var l=i;if(!l){if(t&&t.length&&(s=ec(s,t)),s==null)return;l=s[a]}return l==null?l:l.apply(s,e)})});function uc(r,a){return wn(r,ic(a))}function jq(r,a){return Rs(r,wa(a))}function _O(r,a,e){var t=-1/0,i=-1/0,s,l;if(a==null||typeof a=="number"&&typeof r[0]!="object"&&r!=null){r=yi(r)?r:As(r);for(var o=0,d=r.length;o<d;o++)s=r[o],s!=null&&s>t&&(t=s)}else a=ni(a,e),yr(r,function(u,y,c){l=a(u,y,c),(l>i||l===-1/0&&t===-1/0)&&(t=u,i=l)});return t}function $q(r,a,e){var t=1/0,i=1/0,s,l;if(a==null||typeof a=="number"&&typeof r[0]!="object"&&r!=null){r=yi(r)?r:As(r);for(var o=0,d=r.length;o<d;o++)s=r[o],s!=null&&s<t&&(t=s)}else a=ni(a,e),yr(r,function(u,y,c){l=a(u,y,c),(l<i||l===1/0&&t===1/0)&&(t=u,i=l)});return t}var Gq=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function MO(r){return r?On(r)?ba.call(r):Zp(r)?r.match(Gq):yi(r)?wn(r,tc):As(r):[]}function NO(r,a,e){if(a==null||e)return yi(r)||(r=As(r)),r[nc(r.length-1)];var t=MO(r),i=ri(t);a=Math.max(Math.min(a,i),0);for(var s=i-1,l=0;l<a;l++){var o=nc(l,s),d=t[l];t[l]=t[o],t[o]=d}return t.slice(0,a)}function Fq(r){return NO(r,1/0)}function xq(r,a,e){var t=0;return a=ni(a,e),uc(wn(r,function(i,s,l){return{value:i,index:t++,criteria:a(i,s,l)}}).sort(function(i,s){var l=i.criteria,o=s.criteria;if(l!==o){if(l>o||l===void 0)return 1;if(l<o||o===void 0)return-1}return i.index-s.index}),"value")}function Cl(r,a){return function(e,t,i){var s=a?[[],[]]:{};return t=ni(t,i),yr(e,function(l,o){var d=t(l,o,e);r(s,l,d)}),s}}const kq=Cl(function(r,a,e){Nr(r,e)?r[e].push(a):r[e]=[a]}),Sq=Cl(function(r,a,e){r[e]=a}),Zq=Cl(function(r,a,e){Nr(r,e)?r[e]++:r[e]=1}),qq=Cl(function(r,a,e){r[e?0:1].push(a)},!0);function Jq(r){return r==null?0:yi(r)?r.length:Vt(r).length}function Wq(r,a,e){return a in e}const LO=ii(function(r,a){var e={},t=a[0];if(r==null)return e;Ht(t)?(a.length>1&&(t=Ca(t,a[1])),a=Oa(r)):(t=Wq,a=Pn(a,!1,!1),r=Object(r));for(var i=0,s=a.length;i<s;i++){var l=a[i],o=r[l];t(o,l,r)&&(e[l]=o)}return e}),zq=ii(function(r,a){var e=a[0],t;return Ht(e)?(e=ac(e),a.length>1&&(t=a[1])):(a=wn(Pn(a,!1,!1),String),e=function(i,s){return!hr(a,s)}),LO(r,e,t)});function UO(r,a,e){return ba.call(r,0,Math.max(0,r.length-(a==null||e?1:a)))}function pc(r,a,e){return r==null||r.length<1?a==null||e?void 0:[]:a==null||e?r[0]:UO(r,r.length-a)}function Vl(r,a,e){return ba.call(r,a==null||e?1:a)}function Yq(r,a,e){return r==null||r.length<1?a==null||e?void 0:[]:a==null||e?r[r.length-1]:Vl(r,Math.max(0,r.length-a))}function Hq(r){return Rs(r,Boolean)}function Kq(r,a){return Pn(r,a,!1)}const gO=ii(function(r,a){return a=Pn(a,!0,!0),Rs(r,function(e){return!hr(a,e)})}),Xq=ii(function(r,a){return gO(r,a)});function cc(r,a,e,t){xD(a)||(t=e,e=a,a=!1),e!=null&&(e=ni(e,t));for(var i=[],s=[],l=0,o=ri(r);l<o;l++){var d=r[l],u=e?e(d,l,r):d;a&&!e?((!l||s!==u)&&i.push(d),s=u):e?hr(s,u)||(s.push(u),i.push(d)):hr(i,d)||i.push(d)}return i}const Qq=ii(function(r){return cc(Pn(r,!0,!0))});function e7(r){for(var a=[],e=arguments.length,t=0,i=ri(r);t<i;t++){var s=r[t];if(!hr(a,s)){var l;for(l=1;l<e&&hr(arguments[l],s);l++);l===e&&a.push(s)}}return a}function fc(r){for(var a=r&&_O(r,ri).length||0,e=Array(a),t=0;t<a;t++)e[t]=uc(r,t);return e}const t7=ii(fc);function i7(r,a){for(var e={},t=0,i=ri(r);t<i;t++)a?e[r[t]]=a[t]:e[r[t][0]]=r[t][1];return e}function r7(r,a,e){a==null&&(a=r||0,r=0),e||(e=a<r?-1:1);for(var t=Math.max(Math.ceil((a-r)/e),0),i=Array(t),s=0;s<t;s++,r+=e)i[s]=r;return i}function n7(r,a){if(a==null||a<1)return[];for(var e=[],t=0,i=r.length;t<i;)e.push(ba.call(r,t,t+=a));return e}function yc(r,a){return r._chain?He(a).chain():a}function jO(r){return yr(Xp(r),function(a){var e=He[a]=r[a];He.prototype[a]=function(){var t=[this._wrapped];return VZ.apply(t,arguments),yc(this,e.apply(He,t))}}),He}yr(["pop","push","reverse","shift","sort","splice","unshift"],function(r){var a=Dl[r];He.prototype[r]=function(){var e=this._wrapped;return e!=null&&(a.apply(e,arguments),(r==="shift"||r==="splice")&&e.length===0&&delete e[0]),yc(this,e)}}),yr(["concat","join","slice"],function(r){var a=Dl[r];He.prototype[r]=function(){var e=this._wrapped;return e!=null&&(e=a.apply(e,arguments)),yc(this,e)}});var $O=jO(Object.freeze(Object.defineProperty({__proto__:null,VERSION:_D,after:_q,all:VO,allKeys:Oa,any:BO,assign:wl,before:EO,bind:TO,bindAll:Dq,chain:Rq,chunk:n7,clone:sq,collect:wn,compact:Hq,compose:Bq,constant:YD,contains:hr,countBy:Zq,create:nq,debounce:Cq,default:He,defaults:dO,defer:Pq,delay:IO,detect:lc,difference:gO,drop:Vl,each:yr,escape:pq,every:VO,extend:lO,extendOwn:wl,filter:Rs,find:lc,findIndex:oc,findKey:AO,findLastIndex:RO,findWhere:Lq,first:pc,flatten:Kq,foldl:dc,foldr:CO,forEach:yr,functions:Xp,get:cO,groupBy:kq,has:oq,head:pc,identity:tc,include:hr,includes:hr,indexBy:Sq,indexOf:PO,initial:UO,inject:dc,intersection:e7,invert:oO,invoke:gq,isArguments:Wp,isArray:On,isArrayBuffer:ZD,isBoolean:xD,isDataView:Ol,isDate:$Z,isElement:jZ,isEmpty:Da,isEqual:YZ,isError:FZ,isFinite:ZZ,isFunction:Ht,isMap:XZ,isMatch:eO,isNaN:zD,isNull:gZ,isNumber:kD,isObject:Mr,isRegExp:GZ,isSet:eq,isString:Zp,isSymbol:SD,isTypedArray:XD,isUndefined:FD,isWeakMap:QZ,isWeakSet:tq,iteratee:rc,keys:Vt,last:Yq,lastIndexOf:Nq,map:wn,mapObject:lq,matcher:wa,matches:wa,max:_O,memoize:Oq,methods:Xp,min:$q,mixin:jO,negate:ac,noop:yO,now:Va,object:i7,omit:zq,once:Mq,pairs:iq,partial:bs,partition:qq,pick:LO,pluck:uc,property:ic,propertyOf:dq,random:nc,range:r7,reduce:dc,reduceRight:CO,reject:Uq,rest:Vl,restArguments:ii,result:Eq,sample:NO,select:Rs,shuffle:Fq,size:Jq,some:BO,sortBy:xq,sortedIndex:DO,tail:Vl,take:pc,tap:aq,template:Iq,templateSettings:yq,throttle:wq,times:uq,toArray:MO,toPath:pO,transpose:fc,unescape:fq,union:Qq,uniq:cc,unique:cc,uniqueId:bq,unzip:fc,values:As,where:jq,without:Xq,wrap:Vq,zip:t7},Symbol.toStringTag,{value:"Module"})));$O._=$O;function Kt(r){return r.charAt(0).toUpperCase()+r.slice(1)}function Bl(r){return r.charAt(0).toLowerCase()+r.slice(1)}function GO(r,a){if(r.type!==n.Property||a.type!==n.Property)throw new Error(`Expected property entities for comparison. But got ${r.type} and ${a.type}.`);return r===a||r.id===a.id?!0:r.name!==a.name||r.static!==a.static||r.abstract!==a.abstract?!1:Ri(r.dataType,a.dataType).compatible}function FO(r,a){if(r.type!==n.DefinitionEntity||a.type!==n.DefinitionEntity)throw new Error(`Expected definition entities for comparison. But got ${r.type} and ${a.type}.`);if(r===a||r.id===a.id)return!0;if(r.properties.length!==a.properties.length)return!1;let e=[...a.properties];const t=[];for(let i=0;i<r.properties.length;i++){const s=r.properties[i];e.find(o=>{const d=GO(s,o);return d&&(e=e.filter(u=>u.id!==o.id)),d})||t.push(s)}return!(t.length>0)}var bi=(r=>(r.BothUnconstrained="both-unconstrained",r.AConstraintBUnconstrained="a-constraint-b-unconstrained",r.BConstraintAUnconstrained="b-constraint-a-unconstrained",r.Same="same",r.AIsListBIsNot="a-is-list-b-is-not",r.BIsListAIsNot="b-is-list-a-is-not",r.AIsNullableBIsNot="a-is-nullable-b-is-not",r.BIsNullableAIsNot="b-is-nullable-a-is-not",r.AIsTemplateBIsNot="a-is-template-b-is-not",r.BIsTemplateAIsNot="b-is-template-a-is-not",r.BothUntyped="both-untyped",r.AIsUntypedBIsNot="a-is-untyped-b-is-not",r.BIsUntypedAIsNot="b-is-untyped-a-is-not",r.TypeEntityMismatch="type-entity-mismatch",r.SameDefinitionEntities="same-definition-entities",r.CompatibleDefinitionEntities="compatible-definition-entities",r.IncompatibleDefinitionEntities="incompatible-definition-entities",r.SamePrimitiveEntities="same-primitive-entities",r.IncompatiblePrimitiveEntities="incompatible-primitive-entities",r.SameBuiltInBaseEntities="same-built-in-base-entities",r.IncompatibleBuiltInBaseEntities="incompatible-built-in-base-entities",r.CheckUnknown="check-unknown",r))(bi||{});function Ri(r,a){var e,t,i,s,l,o,d,u,y,c,I;if(r&&r.type!==n.DataType||a&&a.type!==n.DataType)throw new Error(`Expected data-type entities for comparison. But got ${r==null?void 0:r.type} and ${a==null?void 0:a.type}.`);if(r===null&&a===null)return{compatible:!0,type:"both-unconstrained"};if(r===null)return{compatible:!0,type:"a-constraint-b-unconstrained"};if(a===null)return{compatible:!0,type:"b-constraint-a-unconstrained"};if(r===a)return{compatible:!0,type:"same"};if(r.id===a.id)return{compatible:!0,type:"same"};if(r.isList!==a.isList)return{compatible:!1,type:r.isList?"a-is-list-b-is-not":"b-is-list-a-is-not"};if(r.asType!==a.asType)return{compatible:!1,type:r.asType?"a-is-template-b-is-not":"b-is-template-a-is-not"};if(!r.entity&&a.entity)return{compatible:!0,type:"a-is-untyped-b-is-not"};if(r.entity&&!a.entity)return{compatible:!0,type:"b-is-untyped-a-is-not"};if(!r.entity&&!a.entity)return{compatible:!0,type:"both-untyped"};if(((e=r.entity)==null?void 0:e.type)!==((t=a.entity)==null?void 0:t.type))return{compatible:!1,type:"type-entity-mismatch"};if(((i=r.entity)==null?void 0:i.type)===n.DefinitionEntity){if(((s=r.entity)==null?void 0:s.id)===((l=a.entity)==null?void 0:l.id))return{compatible:!0,type:"same-definition-entities"};const E=FO(r.entity,a.entity);return{compatible:E,type:E?"compatible-definition-entities":"incompatible-definition-entities"}}return((o=r.entity)==null?void 0:o.type)===n.PrimitiveEntity?((d=r.entity)==null?void 0:d.id)===((u=a.entity)==null?void 0:u.id)?{compatible:!0,type:"same-primitive-entities"}:{compatible:!1,type:"incompatible-primitive-entities"}:((y=r.entity)==null?void 0:y.type)===n.BuiltInBaseEntity?((c=r.entity)==null?void 0:c.id)===((I=a.entity)==null?void 0:I.id)?{compatible:!0,type:"same-built-in-base-entities"}:{compatible:!1,type:"incompatible-built-in-base-entities"}:{compatible:!1,type:"check-unknown"}}function s7(r,a){const e=r.project.builtInBaseEntities.find(s=>s.id===z.EXECUTION),t={id:m.UUID.uuid(),version:m.UUID.uuid(),createdAt:(a==null?void 0:a.timestamp)||new Date().toISOString(),author:m.sessionAuthor,previousVersion:null,deleted:!1,type:n.DataType,isList:!1,isNullable:!1,andChildrenGroup:null,orChildrenGroup:null,asType:!1,entity:null,constant:!1,defaultValue:null,parent:null},i=C(t,r.project);return i.inferred=!0,a==null||a.add(i,A.Added),i.metaSync(t,a),i.setParent(r,a),i.entity=e,i}function xO(r,a=null){return r.dataType?r.dataType:null}function hc(r,a=null){var t;const e=(t=r.declaration)==null?void 0:t.getDataType(a);return e&&e.isResolved?e:r.readsValue?Ji(r.readsValue,a):null}function mc(r,a=null){return r.dataType&&!r.dataType.inferred&&r.dataType.isResolved?r.dataType:r.readsValue?Ji(r.readsValue,a):null}function kO(r,a=null){return Ji(r.declaration,a)}function SO(r,a=null){return r.dataType&&!r.dataType.inferred?r.dataType:r.dataType&&r.dataType.inferred||!r.dataType?(r.inferDataTypeAndSyncInstancesInputsAndOutputs(a),r.dataType):null}function vc(r,a=null){var e;return((e=r.declaration)==null?void 0:e.dataType)||null}function ZO(r,a=null){return(r==null?void 0:r.dataType)||null}function qO(r,a=null){return(r==null?void 0:r.dataType)||null}function Ji(r,a=null){switch(r.type){case n.VariableDeclaration:return SO(r,a);case n.ArgumentDeclaration:return xO(r,a);case n.ReturnDeclaration:return mc(r,a);case n.VariableInstance:return kO(r,a);case n.InputMap:return hc(r,a);case n.OutputMap:return vc(r,a);case n.Property:return ZO(r,a);case n.ValueDescriptor:return qO(r,a);default:throw new Error(`Cannot infer data type from entity of type ${r.type}.`)}}function _l(r,a=null){switch(r.type){case n.ArgumentDeclaration:return r.getDataType(a);case n.InputMap:return r.getDataType(a);case n.VariableDeclaration:return r.getDataType(a);case n.VariableInstance:return r.getDataType(a);case n.OutputMap:return r.getDataType(a);case n.ReturnDeclaration:return r.getDataType(a);case n.Property:return r.getDataType(a);case n.ValueDescriptor:return r.getDataType(a);default:return null}}function _(r){if(r){let a=null;return typeof r=="string"?a=r:r.entityId?a=r.entityId:r.type!==n.GenericReference&&(a=r.id),a}return null}function Cn(r){return r.declaration||r}function a7(r){return r.type===n.VariableDeclaration?r.parent===r.project?"global-declaration":"local-declaration":r.declaration.parent===r.project?"global-instance":"local-instance"}function Tc(r,a){const e=[];if(r.type===n.Project)e.push(...r.variableDeclarations);else{const i=Xt(rt(r)).filter(s=>s.type===n.VariableDeclaration);e.push(...i),r.parent&&(dt.includes(r.parent.type)||r.parent.type===n.Project)&&e.push(...Tc(r.parent))}return e}function o7(r){return r.split(/[\s-]+/).filter(t=>t.length>0).map((t,i)=>i===0?t.toLowerCase():t[0].toUpperCase()+t.slice(1).toLowerCase()).join("")}function l7(r){return r.split(/[\s-]+/).filter(t=>t.length>0).map(t=>t[0].toUpperCase()+t.slice(1).toLowerCase()).join("")}function JO(r){var a;return(a=r.match(/[A-Z]{2,}(?=[A-Z][a-z]+[0-9]*|\b)|[A-Z]?[a-z]+[0-9]*|[A-Z]|[0-9]+/g))==null?void 0:a.map(e=>e.toLowerCase()).join("-")}function Ml(r){return JO(r).toLowerCase()}function Nl(r){var a,e;if(!r)return"Any data type";if(!r.entity){const t=r.isList;if(!((a=r.andChildrenGroup)!=null&&a.length)&&!((e=r.orChildrenGroup)!=null&&e.length))return t?"List of an any data type":"Any data type";let i="",s=!1,l=!1;return(r.andChildrenGroup||[]).forEach(o=>{const d=Nl(o),u=Bl(d);s&&(i+=" and "),o.isGroup?i+="("+u+")":s?i+=u:i+=d,s=!0,l=!0}),(r.orChildrenGroup||[]).forEach(o=>{const d=Nl(o),u=Bl(d);s&&(l&&(i+=","),i+=" or "),o.isGroup?i+="("+u+")":s?i+=u:i+=d,s=!0}),i}if(r.entity.type===n.PrimitiveEntity){let t=r.entity.name;switch(r.entity.name){case L.String:t="Text";break;case L.KeyValue:t="Data structure";break}return r.isList?`List of ${t}s`:`${t.slice(0,1).toUpperCase()}${t.slice(1)}`}else if(r.entity.type===n.DefinitionEntity){const t=x(r.entity,r.project);return r.isList?`List of ${t} entities`:t.slice(0,1).toUpperCase()+t.slice(1)}else if(r.entity.type===n.BuiltInBaseEntity){const t=zO(r.entity);return r.isList?`List of ${t} entities`:t.slice(0,1).toUpperCase()+t.slice(1)}else return r.isList?`List of ${r.entity.name} entities`:`${r.entity.name.slice(0,1).toUpperCase()+r.entity.name.slice(1)} entity`}function d7(r){if(!r)return"Any data type";const a=r.getDataType(null);return Nl(a)}function Ll(r){switch(r.declaration.id){case yt.Equal:return"is equal to";case yt.NotEqual:return"is not equal to";case yt.MoreThan:return"is greater than";case yt.MoreThanOrEqual:return"is greater than or equal to";case yt.LessThan:return"is less than";case yt.LessThanOrEqual:return"is less than or equal to";case yt.And:return"and";case yt.Or:return"or";case vi.Empty:return"is empty";case vi.NotEmpty:return"is not empty"}}function WO(r){return r.includes(z.HTTP_ENDPOINT)?"HTTP endpoint":r.includes(z.PERSISTED_ENTITY)?"Persisted entity":r.includes(z.CRON_JOB)?"Scheduled execution":r.includes(z.RELATIONAL_DATABASE)?"Relational database":"Entity"}function zO(r){switch(r.name){case z.HTTP_ENDPOINT:return"HTTP endpoint";case z.PERSISTED_ENTITY:return"Persisted entity";case z.CRON_JOB:return"Scheduled execution";case z.RELATIONAL_DATABASE:return"Relational database"}return"Entity"}function u7(r){const a=Qc(r);if(!a){const e=Xc(r);return e.includes(z.HTTP_ENDPOINT)?"HTTP endpoint":e.includes(z.PERSISTED_ENTITY)?"Persisted entity":e.includes(z.CRON_JOB)?"Scheduled execution":e.includes(z.RELATIONAL_DATABASE)?"Relational database":x(r,r.project)+" entity"}return x(a,r.project)+" entity"}function YO(r){let a="Find ";return r.outputsDeclarations.forEach((e,t)=>{const i=_l(e,null),s=Bl(i&&i.entity?x(i.entity,r.project):"unstructured data");t===0?a+=`${s} `:t===r.outputsDeclarations.length-1?a+=`and ${s} `:a+=`, ${s} `}),a}function HO(r){switch(r.name){case L.String:return"Text";case L.Number:return"Number";case L.Boolean:return"Boolean";case L.KeyValue:return"Data structure";case L.UUID:return"Unique identifier";case L.Date:return"Date";case L.EntityTemplate:return"Entity as template";case L.Enum:return"Enumeration";case L.File:return"File";case L.Null:return"Empty";case L.ActionDescriptor:return"Action descriptor";case L.Untyped:return"Untyped";default:return r.name}}function KO(r){switch(r.id){case Q.List:return"Loop over list items";case Q.ManualFlow:return"Manual flow control loop";case Q.ObjectKeys:return"Loop over object keys";case Q.ObjectValues:return"Loop over object values";case Q.Counted:return"Loop given number of times";case Q.String:return"Loop over text characters";case Qe.Addition:return"Sum numbers";case Qe.Subtraction:return"Subtract numbers";case Qe.Multiplication:return"Multiply numbers";case Qe.Division:return"Divide numbers";case Qe.Remainder:return"Get remainder of numbers";case Qe.Exponentiation:return"Get exponent of numbers";case Ee.AddIndex:return"Add at index position";case Ee.DeleteFirst:return"Delete first character";case Ee.DeleteLast:return"Delete last character";case Ee.DeleteIndex:return"Delete at index position";case Ee.Join:return"Join texts";case Ee.ReplaceAllMatches:return"Replace all matches";case Ee.ReplaceFirst:return"Replace first match";case Ee.ReplaceLast:return"Replace last match";case Ee.Split:return"Split text";case Ee.ReplaceIndex:return"Replace at index position";case Ee.ReplaceSingleMatch:return"Replace single match";case Ee.GetFirst:return"Get first character";case Ee.GetLast:return"Get last character";case Ee.GetIndex:return"Get at index position";case Ee.Append:return"Add at the end";case Ee.Prepend:return"Add at the start";case Ke.Wait:return"Wait";case Ke.Parallel:return"Run in parallel";case Ke.Sequential:return"Run in sequence";case _t.HttpRequest:return"HTTP request";case Xe.CreateNewInstance:return"Create new copy of entity";case he.AddIndex:return"Add item at index position";case he.DeleteFirst:return"Delete first item";case he.DeleteLast:return"Delete last item";case he.DeleteIndex:return"Delete item at index position";case he.Join:return"Join lists";case he.ReplaceAllMatches:return"Replace all matches";case he.ReplaceFirst:return"Replace first match";case he.ReplaceLast:return"Replace last match";case he.Split:return"Split list";case he.ReplaceIndex:return"Replace at index position";case he.ReplaceSingleMatch:return"Replace single match";case he.GetFirst:return"Get first item";case he.GetLast:return"Get last item";case he.GetIndex:return"Get item at index position";case he.Append:return"Add item at the end";case he.Prepend:return"Add item at the start";case Qi.PROJECT_PUBLICATION_COMPLETED:return"Project publication completed";default:return(r.name.slice(0,1).toUpperCase()+r.name.slice(1)).replaceAll("-"," ")}}function x(r,a){var e;if(n.FunctionDeclaration===r.type){const t=r.name;if(Object.values(di).includes(t))switch(t){case di.AbortExecution:return"Abort execution";case di.DeletePersistedEntity:return"Delete persisted entity";case di.SoftDeletePersistedEntity:return"Soft delete persisted entity";default:return Kt(r.type).replaceAll("-"," ")}return t}if(n.BuiltInBaseEntity===r.type)return WO([r.name]);if(df.includes(r.type)&&r.type!==n.ActionDescriptor)return r.name;switch(r.type){case n.Search:return YO(r);case n.Operation:case n.InternalCall:case n.Loop:const t=mi(r.declaration,a);return x(t,a);case n.ActionDescriptor:return KO(r);case n.BreakStatement:const i=mi(r.parent,a);return`Stop loop ${x(i,a)}`;case n.ContinueStatement:const s=mi(r.parent,a);return`Execute next iteration of ${x(s,a)}`;case n.FunctionCall:return mi(r.declaration,a).name;case n.Condition:{const o=r;if((e=r.inputs)!=null&&e.length){const d=x(o.inputs[0],o.project);if(o.inputs[1]){const u=o.inputs[1].declaration.name;return`If ${d} ${Ll(o)} ${u}`}return`If ${d} ${Ll(o)}`}else return`If ${Ll(o)}`}case n.ReturnStatement:{const o=mi(r.parent,a);return`Output of ${x(o,a)}`}case n.InputMap:if(r.declaration){const o=mi(r.declaration,a);return x(o,a)||""}else return r.name||"";case n.VariableInstance:{const o=mi(r.declaration,a);return x(o,a)||""}case n.OutputMap:if(r.declaration){const o=mi(r.declaration,a);return(o==null?void 0:o.name)||""}else return"";case n.PrimitiveEntity:case n.LiteralValue:return HO(r);default:return Kt(r.type).replaceAll("-"," ")}}function Ic(r,a){const e=[];r.name||e.push(new w({id:`${r.id}--${j.EmptyName}`,message:`Entity with id "${r.id}" and type "${r.type}" has an empty name. Please provide a 'name' string.`,severity:D.Error,code:j.EmptyName,issue:null}));const t=a.entities.filter(i=>i.name===r.name);return t.length&&e.push(new w({id:`${r.id}--${j.NameNotUniqueInScope}`,message:`Entity with id "${r.id}" and type "${r.type}" has a name "${r.name}" that is not unique in the project. Entity with id "${t[0].id}" has the same name.
37
37
  Please provide a unique 'name' string.`,severity:D.Error,code:j.NameNotUniqueInScope,issue:null})),e}function Ec(r,a){const e=[];r.name||e.push(new w({id:`${r.id}--${j.EmptyName}`,message:`Entity with id "${r.id}" and type "${r.type}" has an empty name. Please provide a 'name' string.`,severity:D.Error,code:j.EmptyName,issue:null}));const t=r.parent?_(r.parent):null;let i=a;t&&(i=a.get(t));const s=[];i.type===n.DefinitionEntity?s.push(...i.methods.map(o=>o)):i.type===n.Project?s.push(...i.functions.map(o=>o)):i.type===n.Loop?i.body&&s.push(i.body):i.type===n.InstalledProject&&s.push(...i.functions.map(o=>o));const l=s.filter(o=>o.name===r.name);return l.length&&e.push(new w({id:`${r.id}--${j.NameNotUniqueInScope}`,message:`Entity with id "${r.id}" and type "${r.type}" has a name "${r.name}" that is not unique in ${i.type===n.Project?"the globally declared project scope":"its parent entity"}. Entity with id "${l[0].id}" has the same name.
38
38
  Please provide a unique 'name' string.`,severity:D.Error,code:j.NameNotUniqueInScope,issue:null})),e}function Ac(r,a){const e=[];r.name||e.push(new w({id:`${r.id}--${j.EmptyName}`,message:`Entity with id "${r.id}" and type "${r.type}" has an empty name. Please provide a 'name' string.`,severity:D.Error,code:j.EmptyName,issue:null}));const t=r.parent&&mi(r.parent,a)||a;if(!t)e.push(new w({id:`${r.id}--parent-reference--${R.ReferencedEntityNotFound}`,message:`The entity with id '${r.parent}' that isn't yet found in the project. Perhaps it should be created first. Or perhaps the ID is incorrect.`,severity:D.Error,code:R.ReferencedEntityNotFound,issue:null}));else{const s=Tc(t).filter(l=>l.name===r.name);s.length&&e.push(new w({id:`${r.id}--${j.NameNotUniqueInScope}`,message:`Entity with id "${r.id}" and type "${r.type}" has a name "${r.name}" that is not unique in its scope or higher scopes. Entity with id "${s[0].id}" has the same name.
39
39
  Please provide a unique 'name' string.`,severity:D.Error,code:j.NameNotUniqueInScope,issue:null}))}return e}function bc(r,a){const e=[];r.name||e.push(new w({id:`${r.id}--${j.EmptyName}`,message:`Entity with id "${r.id}" and type "${r.type}" has an empty name. Please provide a 'name' string.`,severity:D.Error,code:j.EmptyName,issue:null}));const t=_(r.parent);if(!t)e.push(new w({id:`${r.id}--parent-reference--${R.InvalidReferenceObjectStructure}`,message:`Reference object at 'parent' property for entity with id "${r.id}" and type "${r.type}" is not a valid reference. A reference needs to be a 'id' string of an existing entity in the project.`,severity:D.Error,code:R.InvalidReferenceObjectStructure,issue:null}));else{const i=a.get(t);if(!i)e.push(new w({id:`${r.id}--parent-reference--${R.ReferencedEntityNotFound}`,message:`The entity with id '${t}' that isn't yet found in the project. Perhaps it should be created first. Or perhaps the ID is incorrect.`,severity:D.Error,code:R.ReferencedEntityNotFound,issue:null}));else{const l=i.properties.filter(o=>o.name===r.name);l.length&&e.push(new w({id:`${r.id}--${j.NameNotUniqueInScope}`,message:`Entity with id "${r.id}" and type "${r.type}" has a name "${r.name}" that is not unique among all properties in the parent entity. Entity with id "${l[0].id}" has the same name.
@@ -54,10 +54,10 @@ ${G}`,issue:null}))}}}}return s.push(...l.errors,...o,...ut(i)),{errors:s,modifi
54
54
  This is likely an incorrect strategy, either the '${this.type}' entity doesn't need to be updated or it should be deleted and a new one created in the desired parent.`,issue:null})),{errors:t,modifiedData:i}}subscribeDependents(e){return e.forEach(t=>{this.detachedDependents[t.entity.id]||(this.detachedDependents[t.entity.id]=t)}),this}syncDependents(){const e=[],t=[],i=[],s=[];return Object.values(this.detachedDependents).forEach(l=>{const o=l.entity.afterAllChildrenInitialized();e.push(...o.updated),t.push(...o.added),i.push(...o.removed),s.push(...o.affected)}),{updated:p(e),added:p(t),removed:p(i),affected:p(s),self:this}}onDetachedDependencyRemoved(e,t,i){const s=[],l=[],o=[],d=[];return t==="implements"&&(this.setImplements(null,i),s.push(this)),{updated:p(s),added:p(l),removed:p(o),affected:p(d),self:this}}onDetachedDependencyRestored(e,t,i){const s=[],l=[],o=[],d=[];return t==="implements"&&(this.setImplements(e,i),s.push(this)),{updated:p(s),added:p(l),removed:p(o),affected:p(d),self:this}}subscribeToDependencies(){var e,t,i,s,l;return(t=(e=this.implements)==null?void 0:e.subscribeDependents)==null||t.call(e,[{entity:this,field:"implements"}]),(l=(s=(i=this.dataType)==null?void 0:i.entity)==null?void 0:s.subscribeDependents)==null||l.call(s,[{entity:this,field:"data-type-entity"}]),this}increaseVersion(e){if(e&&!T(e).isValid())throw new Error(`The shared timestamp '${e}' is not a valid ISO 8601 date string.`);return e&&T(e).isSame(T(this.createdAt))?this:(this.previousVersion=this.version,this.version=m.UUID.uuid(),this.createdAt=T(e).toISOString()||T().toISOString(),this)}captureVersion(){var t;const e=((t=this.knownVersions)==null?void 0:t.get(this.version))||new be(this,this.project);return e.metaSync(this.toMeta(),null),this.knownVersions=this.knownVersions?this.knownVersions.set(this.version,e):new Map([[this.version,e]]),e.defaultValue=this.defaultValue,e.dataType=this.dataType,e.readsValue=this.readsValue,e.implements=this.implements,e.parent=this.parent,this}recursiveCaptureUpstreamVersions(e){const t=[],i=[],s=[],l=[];if(this.parent){this.parent.increaseVersion(e);const o=this.parent.recursiveCaptureUpstreamVersions(e);t.push(this.parent,...o.updated),i.push(...o.added),s.push(...o.removed)}return{updated:p(t),added:p(i),removed:p(s),affected:p(l),self:this}}async restoreVersion(e){var d;const t=[],i=[],s=[],l=[];if(this.version===e)return{updated:p(t),added:p(i),removed:p(s),affected:p(l),self:this};if(!this.knownVersions){const u=new Map;for(const[y,c]of this.knownVersions||new Map){if(u.set(y,c),c.activeVersion=!1,c.knownVersions)for(const[I,E]of c.knownVersions)u.set(I,E);c.knownVersions=null}}let o=(d=this.knownVersions)==null?void 0:d.get(e);if(!o){const u=await this.APILoadVersion({},e);if(!u)throw new Error(`Version with id '${e}' for entity with id '${this.id}' not found.`);o=new be(u,this.project)}return this.metaSync(o.toShallowJSON(),null),this.defaultValue=o.defaultValue,this.dataType=o.dataType,this.readsValue=o.readsValue,this.implements=o.implements,this.parent=o.parent,{updated:p(t),added:p(i),removed:p(s),affected:p(l),self:this}}hydrateAncestors(){const e=[],t=[],i=[],s=[];if(this.initialData.parent){const l=_(this.initialData.parent),o=this.project.get(l);if(o)this.setParent(o,null),e.push(o);else throw new Error(`${this.type} with id '${this.id}' has a 'parent' reference '${l}' that isn't found in the project`)}else throw new Error(`${this.type} with id '${this.id}' must have a 'parent'`);if(this.initialData.readsValue){const l=_(this.initialData.readsValue),o=this.project.get(l);o&&(this.setValueWriter(o,null),e.push(o))}if(this.initialData.implements){const l=_(this.initialData.implements),o=this.project.get(l);o&&(this.setImplements(o,null),e.push(o))}return Tr.hydrateReadsValue(this),{updated:p(e),added:p(t),removed:p(i),affected:p(s),self:this}}afterAllChildrenInitialized(e=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"after-all-children-initialized"))){const t=[],i=[],s=[],l=[];return this.initialized=!0,this.captureVersion(),e==null||e.attemptAutoclose("after-all-children-initialized",this.id),{updated:p(t),added:p(i),removed:p(s),affected:p(l),self:this}}addSelfToProject(e=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"add-self-to-project"))){var o;const t=[this],i=[],s=[],l=[];return this.isError?this.parent.throws=this:this.parent.addOutputDeclaration(this,e),t.push(this.parent),(o=this.readsValue)==null||o.addValueReader(this,e),this.readsValue&&t.push(this.readsValue),this.subscribe(),this.subscribeToDependencies(),e==null||e.attemptAutoclose("add-self-to-project",this.id),{updated:p(t),added:p(i),removed:p(s),affected:p(l),self:this}}propagateChanges(){const e=[this],t=[],i=[],s=[];if(this.parent&&[n.BreakStatement,n.ContinueStatement].includes(this.parent.type)){const l=this.parent.parent,{updated:o,added:d,removed:u}=l.syncChildren();e.push(...o),t.push(...d),i.push(...u)}return{updated:p(e),added:p(t),removed:p(i),affected:p(s),self:this}}setParent(e,t=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"set-parent"))){var i;return((i=this.parent)==null?void 0:i.id)!==(e==null?void 0:e.id)&&(this.parent=e,t&&(t==null||t.add(this,A.Updated),t==null||t.attemptAutoclose("set-parent",this.id))),this}setImplements(e,t=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"set-implements"))){var i;return((i=this.implements)==null?void 0:i.id)!==(e==null?void 0:e.id)&&(this.implements=e,t&&(t==null||t.add(this,A.Updated),t==null||t.attemptAutoclose("set-implements",this.id))),this}initChildren(e=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"init-children"))){if(this.initialized||this.startedInitialization)return this;if(this.startedInitialization=!0,this.initialData.defaultValue&&(this.defaultValue=C(this.initialData.defaultValue,this.project),this.defaultValue.setParent(this,null),this.defaultValue.initChildren(e)),this.initialData.dataType&&(this.dataType=C(this.initialData.dataType,this.project),this.dataType.setParent(this,null),this.dataType.initChildren(e)),this.initialData.implements){const t=C(this.initialData.implements,this.project);this.setImplements(t,null)}return Tr.initReadsValue(this),this.subscribeToDependencies(),this.afterAllChildrenInitialized(e),e==null||e.attemptAutoclose("init-children",this.id),this}setValueWriter(e,t=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"set-value-writer"))){return this.readsValue!==e&&(this.readsValue=e,t==null||t.add(this,A.Updated)),t==null||t.attemptAutoclose("set-value-writer",this.id),this}removeValueWriter(e=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"remove-value-writer"))){return this.readsValue&&(this.readsValue=null,e==null||e.add(this,A.Updated)),e==null||e.attemptAutoclose("remove-value-writer",this.id),this}subscribe(){return this.activeVersion=!0,this.project.subscribeInstance(this),this}unsubscribe(){return this.project.unsubscribeInstance(this),this}metaSync(e,t=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"meta-sync"))){const i=pt(this,e),s=this.toMeta();return this.index=e.index||(e.index!==0?s.index:0),this.name=e.name||s.name,this.description=e.description||s.description,this.required=e.required!==void 0?e.required:this.required,this.isError=e.isError!==void 0?e.isError:this.isError,this.constant=e.constant!==void 0?e.constant:s.constant,this.required=e.required!==void 0?e.required:s.required,super.metaSync(e),e.deleted===!0&&!s.deleted?t==null||t.add(this,A.Removed):e.deleted===!1&&s.deleted?t==null||t.add(this,A.Added):i&&(t==null||t.add(this,A.Updated)),t==null||t.attemptAutoclose("meta-sync",this.id),this}async APILoad(e=g,...t){return await be.repository.APILoad(this.id,...t),this}async APICreate(e=g,...t){return await be.repository.APICreate(this.toShallowJSON(),...t),this}async APIUpdate(e=g,...t){return await be.repository.APIUpdate(this.toShallowJSON(),...t),this}async APIDelete(e=g,...t){return await be.repository.APIDelete(this.toShallowJSON(),...t),this}async APIClone(e=g,...t){return await be.repository.APIClone(this.id,...t),this}async APILoadVersion(e=g,t,...i){return await be.repository.APILoadVersion(this.id,t,...i)}remove({ignoreUpstream:e}={ignoreUpstream:!1},t=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"remove-entity"))){const i=[],s=[],l=[],o=[];if(t!=null&&t.hasRemoved(this.id))return t==null||t.attemptAutoclose("remove-entity",this.id),{added:[],updated:[],removed:[],affected:[],self:this};if(s.push(this),this.unsubscribe(),this.project.subscribeDeletedInstance(this),this.metaSync({deleted:!0},t),Object.values(this.detachedDependents).forEach(d=>{const{updated:u,removed:y,added:c}=d.entity.onDetachedDependencyRemoved(this,d.field,t);i.push(...u),s.push(...y),l.push(...c)}),this.defaultValue){const{updated:d,removed:u}=this.defaultValue.remove({ignoreUpstream:!0},t);i.push(...d),s.push(...u)}if(this.dataType){const d=this.dataType.remove({ignoreUpstream:!0},t);i.push(...d.updated),s.push(...d.removed)}return t==null||t.attemptAutoclose("remove-entity",this.id),{added:p(l),updated:p(i),removed:p(s),affected:p(o),self:this}}restore({}={},e=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"restore-entity"))){const t=[],i=[],s=[],l=[];if(e!=null&&e.hasAdded(this.id))return e==null||e.attemptAutoclose("restore-entity",this.id),{added:[],updated:[],removed:[],affected:[],self:this};if(this.subscribe(),this.project.unsubscribeDeletedInstance(this),this.metaSync({deleted:!1},e),this.defaultValue){const{updated:o}=this.defaultValue.restore({},e);i.push(...o)}if(this.dataType){const o=this.dataType.restore({},e);i.push(...o.updated)}return e==null||e.attemptAutoclose("restore-entity",this.id),{added:p(t),updated:p(i),removed:p(s),affected:p(l),self:this}}toFlat(e=new Set){var i,s,l;return e.has(this.id)?[]:(e.add(this.id),[this,...((i=this.defaultValue)==null?void 0:i.toFlat(e))||[],...((s=this.readsValue)==null?void 0:s.toFlat(e))||[],...((l=this.dataType)==null?void 0:l.toFlat(e))||[]])}toFlatIds(e=new Set){var i,s,l;return e.has(this.id)?[]:(e.add(this.id),[this.id,...((i=this.defaultValue)==null?void 0:i.toFlatIds(e))||[],...((s=this.readsValue)==null?void 0:s.toFlatIds(e))||[],...((l=this.dataType)==null?void 0:l.toFlatIds(e))||[]])}toMeta(){return{id:this.id,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,description:this.description,index:this.index,required:this.required,constant:this.constant,isError:this.isError,type:this.type,name:this.name}}toJSON(e=new Set){var t,i,s,l;return e.has(this.id)?this.toReference():(e.add(this.id),{id:this.id,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,name:this.name,description:this.description,type:this.type,index:this.index,required:this.required,constant:!0,isError:this.isError,defaultValue:((t=this.defaultValue)==null?void 0:t.toJSON(e))||null,dataType:((i=this.dataType)==null?void 0:i.toJSON(e))||null,implements:((s=this.implements)==null?void 0:s.toJSON(e))||null,readsValue:((l=this.readsValue)==null?void 0:l.toJSON(e))||null,parent:this.parent.toReference()})}toJSONClone(e=q){var i,s,l,o,d,u,y,c,I;let t;return(i=e.seenEntityMaps)!=null&&i.has(this.id)?t=e.seenEntityMaps.get(this.id):(t=e.newId||ht(this,this.project,e.uuidStrategy),e.seenEntityMaps&&e.seenEntityMaps.set(this.id,t)),(s=e.seenEntities)!=null&&s.has(t)||(l=e.seenEntities)!=null&&l.has(this.id)?this.toReference({seenEntityMaps:e.seenEntityMaps}):((o=e.seenEntities)==null||o.add(t),(d=e.seenEntities)==null||d.add(this.id),{id:t,version:m.UUID.uuid(),createdAt:e.timestamp||T().toISOString(),previousVersion:null,author:this.author,deleted:this.deleted,name:this.name,description:this.description,type:this.type,index:this.index,required:this.required,constant:!0,isError:this.isError,defaultValue:((u=this.defaultValue)==null?void 0:u.toJSONClone({...e,newId:null}))||null,dataType:((y=this.dataType)==null?void 0:y.toJSONClone({...e,newId:null}))||null,implements:((c=this.implements)==null?void 0:c.toJSONClone({...e,newId:null}))||null,readsValue:((I=this.readsValue)==null?void 0:I.toReference({seenEntityMaps:e.seenEntityMaps}))||null,parent:this.parent.toReference({seenEntityMaps:e.seenEntityMaps})})}toReference(e=q){var i;let t=this.id;return(i=e.seenEntityMaps)!=null&&i.has(this.id)&&(t=e.seenEntityMaps.get(this.id)),{id:t+"--"+m.UUID.uuid()+"--ref",type:n.GenericReference,entityId:t,version:this.version,entityType:this.type}}toShallowJSON(e=q){var i,s,l,o,d;let t=this.id;return(i=e.seenEntityMaps)!=null&&i.has(this.id)&&(t=e.seenEntityMaps.get(this.id)),{id:t,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,name:this.name,description:this.description,type:this.type,index:this.index,required:this.required,constant:!0,isError:this.isError,defaultValue:((s=this.defaultValue)==null?void 0:s.toReference(e))||null,readsValue:((l=this.readsValue)==null?void 0:l.toReference(e))||null,implements:((o=this.implements)==null?void 0:o.toReference(e))||null,dataType:((d=this.dataType)==null?void 0:d.toReference(e))||null,parent:this.parent.toReference(e)}}toFlatJSON(e=new Set){var i,s,l;return e.has(this.id)?[]:(e.add(this.id),[this.toShallowJSON(),...((i=this.defaultValue)==null?void 0:i.toFlatJSON(e))||[],...((s=this.readsValue)==null?void 0:s.toFlatJSON(e))||[],...((l=this.dataType)==null?void 0:l.toFlatJSON(e))||[]])}toGenerationTarget(){var e;return{id:this.id,name:this.name,description:this.description,type:this.type,isError:this.isError,readsValue:(e=this.readsValue)==null?void 0:e.id,required:this.required,parent:this.parent.id}}toFlatGenerationTarget(e=new Set){var i,s,l;return e.has(this.id)?[]:(e.add(this.id),[this.toGenerationTarget(),...((i=this.defaultValue)==null?void 0:i.toFlatGenerationTarget(e))||[],...((s=this.readsValue)==null?void 0:s.toFlatGenerationTarget(e))||[],...((l=this.dataType)==null?void 0:l.toFlatGenerationTarget(e))||[]])}clearErrors(){var e,t;return this.errors=[],(e=this.defaultValue)==null||e.clearErrors(),(t=this.dataType)==null||t.clearErrors(),this}validate(){const e=i1(this);return this.errors=e,{success:!0,error:null,data:this.toJSON()}}getErrors(){var t,i;return[...this.errors,...((t=this.defaultValue)==null?void 0:t.getErrors())||[],...((i=this.dataType)==null?void 0:i.getErrors())||[]]}getShallowErrors(){return this.errors}getDefaultValue(){return this.defaultValue||null}setDefaultValue(e){return this.defaultValue=e,this}clone(e=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"clone-entity")),t=null,i=null,s=!0){var I,E;let l=mt(t,this);const o=this.toJSON(),d=i||m.UUID.uuid();o.dataType=null,o.id=d,o.version=m.UUID.uuid(),o.createdAt=(e==null?void 0:e.timestamp)||T().toISOString(),o.author=(e==null?void 0:e.author)||"1",o.previousVersion=null,o.deleted=!1;const u=ct(o,l);t?u.setParent(t,null):u.setParent(this.parent,null),s&&u.subscribe(),u.initChildren(e),e==null||e.add(u,A.Added);const y=(I=this.dataType)==null?void 0:I.clone(e,u,m.UUID.uuid(),s);u.dataType=y||null;const c=(E=this.defaultValue)==null?void 0:E.clone(e,u,m.UUID.uuid(),s);return u.defaultValue=c||null,e==null||e.attemptAutoclose("clone-entity",this.id),u}setDataType(e){return this.dataType=e,this}removeDataType(){return this.dataType=null,this}inferDataType(e=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"infer-data-type"))){var i;const t=mc(this,e);if(t&&t.parent===this)this.dataType&&this.dataType.merge(t,e);else if(t&&t.parent!==this)if(this.dataType)this.dataType.merge(t,e);else{const s=t.clone(e,this);e==null||e.add(s,A.Added),this.setDataType(s)}return(i=this.dataType)==null||i.metaSync({inferred:!0},e),e==null||e.attemptAutoclose("infer-data-type",this.id),this}getCounterparts(){let e=[];if([n.BreakStatement,n.ContinueStatement].includes(this.parent.type)){const t=this.parent.parent;(!t||t.type!==n.Loop)&&console.error("Parent not loop for return declaration in continue or break statement: ",this.id,"parent:",this.parent.id,"loop:",t==null?void 0:t.id),e=[...t.breakStatements,...t.continueStatements].flatMap(l=>l.outputs).filter(l=>x(l,this.project)===x(this,this.project)&&l.id!==this.id)}else if(this.parent.type===n.ReturnStatement&&[n.FunctionDeclaration,n.GlobalEvent].includes(this.parent.parent.type)&&this.parent.parent.implements){const i=this.parent.parent.returnStatements.flatMap(s=>s.outputs);this.implements?e=i.filter(l=>{var o;return this.implements.id===((o=l.implements)==null?void 0:o.id)}):e=i.filter(l=>x(l,this.project)===x(this,this.project)&&l.id!==this.id)}return e}inferDataTypeFromCounterparts(e=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"infer-data-type-from-counterparts"))){var s,l,o;const t=this.getCounterparts(),i=t.find(d=>{var u;return(u=d.dataType)==null?void 0:u.isResolved});if(i)this.setDataType(i.dataType),e==null||e.add(this,A.Updated);else for(let d=0;d<t.length;d++){const u=t[d];if((!u.dataType||!u.dataType.isResolved||(s=u.dataType)!=null&&s.inferred)&&u.readsValue&&u.inferDataType(e),(l=u.dataType)!=null&&l.isResolved){this.setDataType(u.dataType),e==null||e.add(this,A.Updated);break}}return(o=this.dataType)==null||o.metaSync({inferred:!0},e),e==null||e.attemptAutoclose("infer-data-type-from-counterparts",this.id),this}getDataType(e=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"get-data-type"))){var t;return(!this.dataType||!this.dataType.isResolved||(t=this.dataType)!=null&&t.inferred)&&this.readsValue?this.inferDataType(e):this.inferDataTypeFromCounterparts(e),this.dataType}};f(be,"repository",{APICreate:async(e,...t)=>e,APIUpdate:async(e,...t)=>e,APIDelete:async(e,...t)=>e,APIClone:async(e,...t)=>{},APILoad:async(e,...t)=>null,APILoadVersion:async(e,t,...i)=>null}),f(be,"type",n.ReturnDeclaration),f(be,"USER_MANAGED_PARENT_TYPES",[n.ReturnStatement,n.BreakStatement,n.ContinueStatement]),f(be,"PARENT_TYPES",[...be.USER_MANAGED_PARENT_TYPES]),f(be,"MUTABLE_BASE_PROPERTIES",["name","description","required","isError"]),f(be,"INMUTABLE_BASE_PROPERTIES",["id","type","version","createdAt","author","previousVersion"]),f(be,"BASE_PROPERTIES",[...be.MUTABLE_BASE_PROPERTIES,...be.INMUTABLE_BASE_PROPERTIES]),f(be,"MUTABLE_META_PROPERTIES",[...be.MUTABLE_BASE_PROPERTIES,"index"]),f(be,"INMUTABLE_META_PROPERTIES",[...be.INMUTABLE_BASE_PROPERTIES]),f(be,"META_PROPERTIES",[...be.MUTABLE_META_PROPERTIES,...be.INMUTABLE_META_PROPERTIES]),f(be,"MUTABLE_UPSTREAM_PROPERTIES",["readsValue"]),f(be,"INMUTABLE_UPSTREAM_PROPERTIES",["parent"]),f(be,"UPSTREAM_PROPERTIES",[...be.MUTABLE_UPSTREAM_PROPERTIES,...be.INMUTABLE_UPSTREAM_PROPERTIES]),f(be,"MUTABLE_DOWNSTREAM_PROPERTIES",["dataType","defaultValue"]),f(be,"INMUTABLE_DOWNSTREAM_PROPERTIES",[]),f(be,"DOWNSTREAM_PROPERTIES",[...be.MUTABLE_DOWNSTREAM_PROPERTIES,...be.INMUTABLE_DOWNSTREAM_PROPERTIES]),f(be,"PROPERTIES",[...be.META_PROPERTIES,...be.UPSTREAM_PROPERTIES,...be.DOWNSTREAM_PROPERTIES]);let si=be;function n1(r){var s;const a=o5(),e=r.toJSON();a.safeParse(e).success,r.outputs.forEach(l=>l.validate()),(s=r.throws)==null||s.validate();const i=[];return Ye(r.errors,i)}const m7=Object.freeze(Object.defineProperty({__proto__:null,validate:n1},Symbol.toStringTag,{value:"Module"}));function s1(r){var s;const a=r5(),e=r.toJSON();a.safeParse(e).success,r.outputs.forEach(l=>l.validate()),(s=r.throws)==null||s.validate();const i=[];return Ye(r.errors,i)}const v7=Object.freeze(Object.defineProperty({__proto__:null,validate:s1},Symbol.toStringTag,{value:"Module"}));var wc=(r=>(r.Parent="parent",r))(wc||{});const Fe=class Fe extends at{constructor(e,t){super(e);f(this,"initialData");f(this,"id");f(this,"x");f(this,"y");f(this,"type",n.ContinueStatement);f(this,"outputs",[]);f(this,"calledBySuccess",[]);f(this,"calledByError",[]);f(this,"calledByEntry",[]);f(this,"throws",null);f(this,"project");f(this,"errors",[]);f(this,"parent");f(this,"detachedDependents",{});f(this,"knownVersions",null);f(this,"activeVersion",!1);f(this,"initialized",!1);f(this,"startedInitialization",!1);f(this,"suggestion",!1);this.initialData=e,this.project=t,this.id=e.id,this.x=e.x,this.y=e.y}static new(){return{id:m.UUID.uuid(),version:m.UUID.uuid(),createdAt:T().toISOString(),author:m.sessionAuthor,previousVersion:null,deleted:!1,type:n.ContinueStatement,outputs:[],throws:null,parent:null,calledByEntry:[],calledBySuccess:[],calledByError:[],x:0,y:0}}static fromGenerationTarget(e,t){const i=_(e.parent),s=t.get(i),l=e.calledByEntry.map(c=>{const I=_(c);return t.get(I)}),o=e.calledBySuccess.map(c=>{const I=_(c);return t.get(I)}),d=e.calledByError.map(c=>{const I=_(c);return t.get(I)}),u={id:e.id,version:m.UUID.uuid(),createdAt:T().toISOString(),author:m.sessionAuthor,previousVersion:null,deleted:!1,type:n.ContinueStatement,x:0,y:0,outputs:[],calledBySuccess:o,calledByError:d,calledByEntry:l,throws:null,parent:s},y=C(u,t);return y.setParent(s,null),y.initChildren(null),y}static validateGenerationTarget(e,t){let i=JSON.parse(JSON.stringify(e));const s=[],l=At(i,{parent:{list:!1,types:[n.Loop]}},t);return i=l.modifiedData,s.push(...l.errors,...ut(i)),{errors:s,modifiedData:i}}validateGeneratedUpdate(e){const t=[];return e.parent&&t.push(new w({id:`${this.id}--${R.InvalidParentUpdate}`,code:R.InvalidParentUpdate,severity:D.Error,message:`Entity of type '${this.type}' with id '${this.id}' cannot have the 'parent' property updated. The 'parent' on a callable entity, is its scope. It scope is auto-calculated implicitly by the its caller.
55
55
  If an entity is called by another, they must be in the same scope, which means they have the same parent.
56
56
  You shouldn't have to manually update a 'parent' property.
57
- Specifically for continue statements the parent needs to always be the 'loop' entity that contains it.`,issue:null})),{errors:t,modifiedData:e}}subscribeDependents(e){return e.forEach(t=>{this.detachedDependents[t.entity.id]||(this.detachedDependents[t.entity.id]=t)}),this}syncDependents(){const e=[],t=[],i=[],s=[];return Object.values(this.detachedDependents).forEach(l=>{const o=l.entity.afterAllChildrenInitialized();e.push(...o.updated),t.push(...o.added),i.push(...o.removed),s.push(...o.affected)}),{updated:p(e),added:p(t),removed:p(i),affected:p(s),self:this}}onDetachedDependencyRemoved(e,t,i){const s=[],l=[],o=[],d=[];if(t==="parent"){const{updated:u,added:y,removed:c}=this.remove({ignoreUpstream:!1},i);s.push(...u),l.push(...y),o.push(...c)}return{updated:p(s),added:p(l),removed:p(o),affected:p(d),self:this}}onDetachedDependencyRestored(e,t,i){const s=[],l=[],o=[],d=[];if(t==="parent"){const{updated:u,added:y,removed:c}=this.restore({},i);s.push(...u),l.push(...y),o.push(...c)}return{updated:p(s),added:p(l),removed:p(o),affected:p(d),self:this}}subscribeToDependencies(){var e;return(e=this.parent)==null||e.subscribeDependents([{entity:this,field:"parent"}]),this}increaseVersion(e){if(e&&!T(e).isValid())throw new Error(`The shared timestamp '${e}' is not a valid ISO 8601 date string.`);return e&&T(e).isSame(T(this.createdAt))?this:(this.previousVersion=this.version,this.version=m.UUID.uuid(),this.createdAt=T(e).toISOString()||T().toISOString(),this)}captureVersion(){var t;const e=((t=this.knownVersions)==null?void 0:t.get(this.version))||new Fe(this,this.project);return e.metaSync(this.toMeta(),null),this.knownVersions=this.knownVersions?this.knownVersions.set(this.version,e):new Map([[this.version,e]]),e.outputs=this.outputs,e.throws=this.throws,e.calledBySuccess=this.calledBySuccess,e.calledByError=this.calledByError,e.calledByEntry=this.calledByEntry,e.parent=this.parent,this}recursiveCaptureUpstreamVersions(e){const t=[],i=[],s=[],l=[];if(this.parent){this.parent.increaseVersion(e);const o=this.parent.recursiveCaptureUpstreamVersions(e);t.push(this.parent,...o.updated),i.push(...o.added),s.push(...o.removed)}return{updated:p(t),added:p(i),removed:p(s),affected:p(l),self:this}}async restoreVersion(e){var d;const t=[],i=[],s=[],l=[];if(this.version===e)return{updated:p(t),added:p(i),removed:p(s),affected:p(l),self:this};if(!this.knownVersions){const u=new Map;for(const[y,c]of this.knownVersions||new Map){if(u.set(y,c),c.activeVersion=!1,c.knownVersions)for(const[I,E]of c.knownVersions)u.set(I,E);c.knownVersions=null}}let o=(d=this.knownVersions)==null?void 0:d.get(e);if(!o){const u=await this.APILoadVersion({},e);if(!u)throw new Error(`Version with id '${e}' for entity with id '${this.id}' not found.`);o=new Fe(u,this.project)}return this.metaSync(o.toShallowJSON(),null),this.outputs=o.outputs,this.throws=o.throws,this.calledBySuccess=o.calledBySuccess,this.calledByError=o.calledByError,this.calledByEntry=o.calledByEntry,this.parent=o.parent,{updated:p(t),added:p(i),removed:p(s),affected:p(l),self:this}}hydrateAncestors(){const e=[],t=[],i=[],s=[];if(this.initialData.parent){const l=_(this.initialData.parent),o=this.project.get(l);if(o)this.setParent(o,null),e.push(o);else throw new Error(`${this.type} with id '${this.id}' has a 'parent' reference '${l}' that isn't found in the project`)}else throw new Error(`${this.type} with id '${this.id}' must have a 'parent'`);return this.initialData.calledByEntry.forEach(l=>{const o=_(l),d=this.project.get(o);d&&(this.addEntryCaller(d,null),e.push(d))}),this.initialData.calledBySuccess.forEach(l=>{const o=_(l),d=this.project.get(o);d&&(this.addSuccessCaller(d,null),e.push(d))}),this.initialData.calledByError.forEach(l=>{const o=_(l),d=this.project.get(o);d&&(this.addErrorCaller(d,null),e.push(d))}),{updated:p(e),added:p(t),removed:p(i),affected:p(s),self:this}}afterAllChildrenInitialized(e=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"after-all-children-initialized"))){const t=[],i=[],s=[],l=[];return this.initialized=!0,this.captureVersion(),e==null||e.attemptAutoclose("after-all-children-initialized",this.id),{updated:p(t),added:p(i),removed:p(s),affected:p(l),self:this}}addSelfToProject(e=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"add-self-to-project"))){const t=[this],i=[],s=[],l=[];return this.calledByEntry.forEach(o=>{o.addCall(this,e),t.push(o)}),this.calledBySuccess.forEach(o=>{o.addSuccessCall(this,e),t.push(o)}),this.calledByError.forEach(o=>{o.addErrorCall(this,e),t.push(o)}),this.parent.addContinueStatement(this),t.push(this),this.subscribe(),this.subscribeToDependencies(),e==null||e.attemptAutoclose("add-self-to-project",this.id),{updated:p(t),added:p(i),removed:p(s),affected:p(l),self:this}}get calledBy(){return[...this.calledByEntry,...this.calledBySuccess,...this.calledByError]}addSuccessCaller(e,t=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"add-success-caller")),i=!1){return this.calledBySuccess.find(s=>s.id===e.id)||(this.calledBySuccess.push(e),t==null||t.add(this,A.Updated),i&&K(this,t)),t==null||t.attemptAutoclose("add-success-caller",this.id),this}addErrorCaller(e,t=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"add-error-caller")),i=!1){return this.calledByError.find(s=>s.id===e.id)||(this.calledByError.push(e),t==null||t.add(this,A.Updated),i&&K(this,t),t==null||t.attemptAutoclose("add-error-caller",this.id)),this}addEntryCaller(e,t=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"add-entry-caller")),i=!1){return this.calledByEntry.find(s=>s.id===e.id)||(this.calledByEntry.push(e),t==null||t.add(this,A.Updated),i&&K(this,t),t==null||t.attemptAutoclose("add-entry-caller",this.id)),this}removeCaller(e,t=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"remove-caller")),i=!1){return this.calledBySuccess=this.calledBySuccess.filter(s=>s.id!==e.id?(t&&(t==null||t.add(this,A.Updated),t==null||t.add(s,A.Affected)),!0):!1),this.calledByError=this.calledByError.filter(s=>s.id!==e.id?(t&&(t==null||t.add(this,A.Updated),t==null||t.add(s,A.Affected)),!0):!1),this.calledByEntry=this.calledByEntry.filter(s=>s.id!==e.id?(t&&(t==null||t.add(this,A.Updated),t==null||t.add(s,A.Affected)),!0):!1),i&&K(this,t),t==null||t.attemptAutoclose("remove-caller",this.id),this}addOutputDeclaration(e,t=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"add-output-declaration"))){return this.outputs.find(i=>i.id===e.id)||(this.outputs.push(e),t==null||t.add(this,A.Affected)),t==null||t.attemptAutoclose("add-output-declaration",this.id),this}removeOutputDeclaration(e,t=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"remove-output-declaration"))){return this.outputs.find(i=>i.id===e.id)&&(this.outputs=this.outputs.filter(i=>i.id!==e.id),t==null||t.add(this,A.Affected)),t==null||t.attemptAutoclose("remove-output-declaration",this.id),this}setParent(e,t=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"set-parent"))){var i;return((i=this.parent)==null?void 0:i.id)!==(e==null?void 0:e.id)&&(this.parent=e,t&&(t==null||t.add(this,A.Updated),t==null||t.attemptAutoclose("set-parent",this.id))),this}initChildren(e=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"init-children"))){return this.initialized||this.startedInitialization?this:(this.startedInitialization=!0,this.outputs=this.initialData.outputs.map(t=>{const i=C(t,this.project);return i.setParent(this,null),i.initChildren(e),i}),this.initialData.throws&&(this.throws=C(this.initialData.throws,this.project),this.throws.setParent(this,null),this.throws.initChildren(e)),this.subscribeToDependencies(),this.afterAllChildrenInitialized(e),e==null||e.attemptAutoclose("init-children",this.id),this)}subscribe(){return this.activeVersion=!0,this.project.subscribeInstance(this),this}unsubscribe(){return this.project.unsubscribeInstance(this),this}metaSync(e,t=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"meta-sync"))){const i=pt(this,e),s=this.toMeta();return this.x=e.x||s.x,this.y=e.y||s.y,super.metaSync(e),e.deleted===!0&&!s.deleted?t==null||t.add(this,A.Removed):e.deleted===!1&&s.deleted?t==null||t.add(this,A.Added):i&&(t==null||t.add(this,A.Updated)),t==null||t.attemptAutoclose("meta-sync",this.id),this}async APILoad(e=g,...t){return await Fe.repository.APILoad(this.id,...t),this}async APICreate(e=g,...t){return await Fe.repository.APICreate(this.toShallowJSON(),...t),this}async APIUpdate(e=g,...t){return await Fe.repository.APIUpdate(this.toShallowJSON(),...t),this}async APIDelete(e=g,...t){return await Fe.repository.APIDelete(this.toShallowJSON(),...t),this}async APIClone(e=g,...t){return await Fe.repository.APIClone(this.id,...t),this}async APILoadVersion(e=g,t,...i){return await Fe.repository.APILoadVersion(this.id,t,...i)}remove({ignoreUpstream:e}={ignoreUpstream:!1},t=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"remove-entity"))){const i=[],s=[],l=[],o=[];if(t!=null&&t.hasRemoved(this.id))return t==null||t.attemptAutoclose("remove-entity",this.id),{added:[],updated:[],removed:[],affected:[],self:this};if(s.push(this),this.unsubscribe(),this.project.subscribeDeletedInstance(this),this.metaSync({deleted:!0},t),Object.values(this.detachedDependents).forEach(d=>{const{updated:u,removed:y,added:c}=d.entity.onDetachedDependencyRemoved(this,d.field,t);i.push(...u),s.push(...y),l.push(...c)}),this.outputs.forEach(d=>{const{updated:u,removed:y}=d.remove({ignoreUpstream:!0},t);i.push(...u),s.push(...y)}),this.throws){const{updated:d,removed:u}=this.throws.remove({ignoreUpstream:!0},t);i.push(...d),s.push(...u)}return this.parent.removeContinueStatement(this),e||this.calledBy.forEach(d=>{i.push(d),d.removeCall(this,t)}),t==null||t.attemptAutoclose("remove-entity",this.id),{added:p(l),updated:p(i),removed:p(s),affected:p(o),self:this}}restore({}={},e=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"restore-entity"))){const t=[],i=[],s=[],l=[];if(e!=null&&e.hasAdded(this.id))return e==null||e.attemptAutoclose("restore-entity",this.id),{added:[],updated:[],removed:[],affected:[],self:this};if(this.subscribe(),this.project.unsubscribeDeletedInstance(this),this.metaSync({deleted:!1},e),this.outputs.forEach(o=>{const{updated:d}=o.restore({},e);i.push(...d)}),this.throws){const{updated:o}=this.throws.restore({},e);i.push(...o)}return this.parent.addContinueStatement(this),this.calledBySuccess.forEach(o=>{i.push(o),o.addSuccessCall(this,e)}),this.calledByError.forEach(o=>{i.push(o),o.addErrorCall(this,e)}),this.calledByEntry.forEach(o=>{i.push(o),o.addCall(this,e)}),e==null||e.attemptAutoclose("restore-entity",this.id),{added:p(t),updated:p(i),removed:p(s),affected:p(l),self:this}}toFlat(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this,...this.outputs.flatMap(i=>i.toFlat(e)),...this.calledBy.flatMap(i=>i.toFlat(e)),...this.throws?this.throws.toFlat(e):[]])}toFlatIds(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.id,...this.outputs.flatMap(i=>i.toFlatIds(e)),...this.calledBy.flatMap(i=>i.toFlatIds(e)),...this.throws?this.throws.toFlatIds(e):[]])}toMeta(){return{id:this.id,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,x:this.x,y:this.y,type:this.type}}toJSON(e=new Set){var t,i;return e.has(this.id)?this.toReference():(e.add(this.id),{id:this.id,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,type:this.type,x:this.x,y:this.y,calledBySuccess:this.calledBySuccess.map(s=>s.toReference()),calledByError:this.calledByError.map(s=>s.toReference()),calledByEntry:this.calledByEntry.map(s=>s.toReference()),outputs:this.outputs.map(s=>s.toJSON(e)),throws:((t=this.throws)==null?void 0:t.toJSON(e))||null,parent:((i=this.parent)==null?void 0:i.toReference())||null})}toJSONClone(e=q){var i,s,l,o,d,u,y;let t;return(i=e.seenEntityMaps)!=null&&i.has(this.id)?t=e.seenEntityMaps.get(this.id):(t=e.newId||ht(this,this.project,e.uuidStrategy),e.seenEntityMaps&&e.seenEntityMaps.set(this.id,t)),(s=e.seenEntities)!=null&&s.has(t)||(l=e.seenEntities)!=null&&l.has(this.id)?this.toReference({seenEntityMaps:e.seenEntityMaps}):((o=e.seenEntities)==null||o.add(t),(d=e.seenEntities)==null||d.add(this.id),{id:t,version:m.UUID.uuid(),createdAt:e.timestamp||T().toISOString(),previousVersion:null,author:this.author,deleted:this.deleted,type:this.type,x:this.x,y:this.y,calledBySuccess:this.calledBySuccess.map(c=>c.toReference({seenEntityMaps:e.seenEntityMaps})),calledByError:this.calledByError.map(c=>c.toReference({seenEntityMaps:e.seenEntityMaps})),calledByEntry:this.calledByEntry.map(c=>c.toReference({seenEntityMaps:e.seenEntityMaps})),outputs:this.outputs.map(c=>c.toJSONClone({...e,newId:null})),throws:((u=this.throws)==null?void 0:u.toJSONClone({...e,newId:null}))||null,parent:((y=this.parent)==null?void 0:y.toReference({seenEntityMaps:e.seenEntityMaps}))||null})}toReference(e=q){var i;let t=this.id;return(i=e.seenEntityMaps)!=null&&i.has(this.id)&&(t=e.seenEntityMaps.get(this.id)),{id:t+"--"+m.UUID.uuid()+"--ref",type:n.GenericReference,entityId:t,version:this.version,entityType:this.type}}toShallowJSON(e=q){var i,s;let t=this.id;return(i=e.seenEntityMaps)!=null&&i.has(this.id)&&(t=e.seenEntityMaps.get(this.id)),{id:t,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,type:this.type,x:this.x,y:this.y,outputs:this.outputs.map(l=>l.toReference(e)),calledBySuccess:this.calledBySuccess.map(l=>l.toReference(e)),calledByError:this.calledByError.map(l=>l.toReference(e)),calledByEntry:this.calledByEntry.map(l=>l.toReference(e)),throws:((s=this.throws)==null?void 0:s.toReference(e))||null,parent:this.parent.toReference(e)}}toFlatJSON(e=new Set){var i;return e.has(this.id)?[]:(e.add(this.id),[this.toShallowJSON(),...this.outputs.flatMap(s=>s.toFlatJSON(e)),...this.calledBy.flatMap(s=>s.toFlatJSON(e)),...((i=this.throws)==null?void 0:i.toFlatJSON(e))||[]])}toGenerationTarget(){return{id:this.id,type:this.type,calledByEntry:this.calledByEntry.map(e=>e.id),calledByError:this.calledByError.map(e=>e.id),calledBySuccess:this.calledBySuccess.map(e=>e.id),parent:this.parent.id}}toFlatGenerationTarget(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.toGenerationTarget(),...this.outputs.flatMap(i=>i.toFlatGenerationTarget(e)),...this.throws?this.throws.toFlatGenerationTarget(e):[]])}clearErrors(){var e;return this.errors=[],this.outputs.forEach(t=>t.clearErrors()),(e=this.throws)==null||e.clearErrors(),this}validate(){const e=s1(this);return this.errors=e,{success:!0,error:null,data:this.toJSON()}}getErrors(){return[...this.errors,...this.outputs.flatMap(t=>t.getErrors())]}getShallowErrors(){return this.errors}clone(e=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"clone-entity")),t=null,i=null,s=!0){var E;let l=mt(t,this);const o=this.toJSON(),d=i||m.UUID.uuid();o.outputs=[];const u=d.split("-id"),y=u[u.length-1||0]||d;o.id=d,o.version=m.UUID.uuid(),o.createdAt=(e==null?void 0:e.timestamp)||T().toISOString(),o.author=(e==null?void 0:e.author)||"1",o.previousVersion=null,o.deleted=!1;const c=ct(o,l);t?c.setParent(t,null):c.setParent(this.parent,null),s&&c.subscribe(),c.initChildren(e),e==null||e.add(c,A.Added);const I=(E=this.outputs)==null?void 0:E.map((O,P)=>O.clone(e,c,y+"-return-declaration-"+P+"-id",s));return c.outputs=I,this.throws&&(c.throws=this.throws.clone(e,c,y+"-throws-id",s)),e==null||e.attemptAutoclose("clone-entity",this.id),c}};f(Fe,"repository",{APICreate:async(e,...t)=>e,APIUpdate:async(e,...t)=>e,APIDelete:async(e,...t)=>e,APIClone:async(e,...t)=>{},APILoad:async(e,...t)=>null,APILoadVersion:async(e,t,...i)=>null}),f(Fe,"type",n.ContinueStatement),f(Fe,"USER_MANAGED_PARENT_TYPES",[n.Loop]),f(Fe,"PARENT_TYPES",[...Fe.USER_MANAGED_PARENT_TYPES]),f(Fe,"MUTABLE_BASE_PROPERTIES",[]),f(Fe,"INMUTABLE_BASE_PROPERTIES",["id","type","version","createdAt","author","previousVersion"]),f(Fe,"BASE_PROPERTIES",[...Fe.MUTABLE_BASE_PROPERTIES,...Fe.INMUTABLE_BASE_PROPERTIES]),f(Fe,"MUTABLE_META_PROPERTIES",["x","y"]),f(Fe,"INMUTABLE_META_PROPERTIES",[...Fe.INMUTABLE_BASE_PROPERTIES]),f(Fe,"META_PROPERTIES",[...Fe.MUTABLE_META_PROPERTIES,...Fe.INMUTABLE_META_PROPERTIES]),f(Fe,"MUTABLE_UPSTREAM_PROPERTIES",["calledBySuccess","calledByError","calledByEntry","parent"]),f(Fe,"INMUTABLE_UPSTREAM_PROPERTIES",[]),f(Fe,"UPSTREAM_PROPERTIES",[...Fe.MUTABLE_UPSTREAM_PROPERTIES,...Fe.INMUTABLE_UPSTREAM_PROPERTIES]),f(Fe,"MUTABLE_DOWNSTREAM_PROPERTIES",["outputs","throws"]),f(Fe,"INMUTABLE_DOWNSTREAM_PROPERTIES",[]),f(Fe,"DOWNSTREAM_PROPERTIES",[...Fe.MUTABLE_DOWNSTREAM_PROPERTIES,...Fe.INMUTABLE_DOWNSTREAM_PROPERTIES]),f(Fe,"PROPERTIES",[...Fe.META_PROPERTIES,...Fe.UPSTREAM_PROPERTIES,...Fe.DOWNSTREAM_PROPERTIES]);let Ft=Fe;var Ul=(r=>(r.Parent="parent",r))(Ul||{});const rt=class rt extends at{constructor(e,t){super(e);f(this,"initialData");f(this,"id");f(this,"x");f(this,"y");f(this,"type",n.ReturnStatement);f(this,"outputs",[]);f(this,"calledBySuccess",[]);f(this,"calledByError",[]);f(this,"calledByEntry",[]);f(this,"throws",null);f(this,"project");f(this,"errors",[]);f(this,"parent");f(this,"detachedDependents",{});f(this,"knownVersions",null);f(this,"activeVersion",!1);f(this,"initialized",!1);f(this,"startedInitialization",!1);f(this,"suggestion",!1);this.initialData=e,this.project=t,this.id=e.id,this.x=e.x,this.y=e.y}static new(){return{id:m.UUID.uuid(),version:m.UUID.uuid(),createdAt:T().toISOString(),author:m.sessionAuthor,previousVersion:null,deleted:!1,type:n.ReturnStatement,outputs:[],throws:null,parent:null,calledByEntry:[],calledBySuccess:[],calledByError:[],x:0,y:0}}static fromGenerationTarget(e,t){const i=_(e.parent),s=t.get(i),l=e.calledByEntry.map(c=>{const I=_(c);return t.get(I)}),o=e.calledBySuccess.map(c=>{const I=_(c);return t.get(I)}),d=e.calledByError.map(c=>{const I=_(c);return t.get(I)}),u={id:e.id,version:m.UUID.uuid(),createdAt:T().toISOString(),author:m.sessionAuthor,previousVersion:null,deleted:!1,type:n.ReturnStatement,x:0,y:0,outputs:[],calledBySuccess:o,calledByError:d,calledByEntry:l,throws:null,parent:s},y=C(u,t);return y.setParent(s,null),y.initChildren(null),y}static validateGenerationTarget(e,t){let i=JSON.parse(JSON.stringify(e));const s=[],l=At(i,{parent:{list:!1,types:dt}},t);return i=l.modifiedData,s.push(...l.errors,...ut(i)),{errors:s,modifiedData:i}}validateGeneratedUpdate(e){const t=[];return e.parent&&t.push(new w({id:`${this.id}--${R.InvalidParentUpdate}`,code:R.InvalidParentUpdate,severity:D.Error,message:`Entity of type '${this.type}' with id '${this.id}' cannot have the 'parent' property updated. The 'parent' on a callable entity, is its scope. It scope is auto-calculated implicitly by the its caller.
57
+ Specifically for continue statements the parent needs to always be the 'loop' entity that contains it.`,issue:null})),{errors:t,modifiedData:e}}subscribeDependents(e){return e.forEach(t=>{this.detachedDependents[t.entity.id]||(this.detachedDependents[t.entity.id]=t)}),this}syncDependents(){const e=[],t=[],i=[],s=[];return Object.values(this.detachedDependents).forEach(l=>{const o=l.entity.afterAllChildrenInitialized();e.push(...o.updated),t.push(...o.added),i.push(...o.removed),s.push(...o.affected)}),{updated:p(e),added:p(t),removed:p(i),affected:p(s),self:this}}onDetachedDependencyRemoved(e,t,i){const s=[],l=[],o=[],d=[];if(t==="parent"){const{updated:u,added:y,removed:c}=this.remove({ignoreUpstream:!1},i);s.push(...u),l.push(...y),o.push(...c)}return{updated:p(s),added:p(l),removed:p(o),affected:p(d),self:this}}onDetachedDependencyRestored(e,t,i){const s=[],l=[],o=[],d=[];if(t==="parent"){const{updated:u,added:y,removed:c}=this.restore({},i);s.push(...u),l.push(...y),o.push(...c)}return{updated:p(s),added:p(l),removed:p(o),affected:p(d),self:this}}subscribeToDependencies(){var e;return(e=this.parent)==null||e.subscribeDependents([{entity:this,field:"parent"}]),this}increaseVersion(e){if(e&&!T(e).isValid())throw new Error(`The shared timestamp '${e}' is not a valid ISO 8601 date string.`);return e&&T(e).isSame(T(this.createdAt))?this:(this.previousVersion=this.version,this.version=m.UUID.uuid(),this.createdAt=T(e).toISOString()||T().toISOString(),this)}captureVersion(){var t;const e=((t=this.knownVersions)==null?void 0:t.get(this.version))||new Fe(this,this.project);return e.metaSync(this.toMeta(),null),this.knownVersions=this.knownVersions?this.knownVersions.set(this.version,e):new Map([[this.version,e]]),e.outputs=this.outputs,e.throws=this.throws,e.calledBySuccess=this.calledBySuccess,e.calledByError=this.calledByError,e.calledByEntry=this.calledByEntry,e.parent=this.parent,this}recursiveCaptureUpstreamVersions(e){const t=[],i=[],s=[],l=[];if(this.parent){this.parent.increaseVersion(e);const o=this.parent.recursiveCaptureUpstreamVersions(e);t.push(this.parent,...o.updated),i.push(...o.added),s.push(...o.removed)}return{updated:p(t),added:p(i),removed:p(s),affected:p(l),self:this}}async restoreVersion(e){var d;const t=[],i=[],s=[],l=[];if(this.version===e)return{updated:p(t),added:p(i),removed:p(s),affected:p(l),self:this};if(!this.knownVersions){const u=new Map;for(const[y,c]of this.knownVersions||new Map){if(u.set(y,c),c.activeVersion=!1,c.knownVersions)for(const[I,E]of c.knownVersions)u.set(I,E);c.knownVersions=null}}let o=(d=this.knownVersions)==null?void 0:d.get(e);if(!o){const u=await this.APILoadVersion({},e);if(!u)throw new Error(`Version with id '${e}' for entity with id '${this.id}' not found.`);o=new Fe(u,this.project)}return this.metaSync(o.toShallowJSON(),null),this.outputs=o.outputs,this.throws=o.throws,this.calledBySuccess=o.calledBySuccess,this.calledByError=o.calledByError,this.calledByEntry=o.calledByEntry,this.parent=o.parent,{updated:p(t),added:p(i),removed:p(s),affected:p(l),self:this}}hydrateAncestors(){const e=[],t=[],i=[],s=[];if(this.initialData.parent){const l=_(this.initialData.parent),o=this.project.get(l);if(o)this.setParent(o,null),e.push(o);else throw new Error(`${this.type} with id '${this.id}' has a 'parent' reference '${l}' that isn't found in the project`)}else throw new Error(`${this.type} with id '${this.id}' must have a 'parent'`);return this.initialData.calledByEntry.forEach(l=>{const o=_(l),d=this.project.get(o);d&&(this.addEntryCaller(d,null),e.push(d))}),this.initialData.calledBySuccess.forEach(l=>{const o=_(l),d=this.project.get(o);d&&(this.addSuccessCaller(d,null),e.push(d))}),this.initialData.calledByError.forEach(l=>{const o=_(l),d=this.project.get(o);d&&(this.addErrorCaller(d,null),e.push(d))}),{updated:p(e),added:p(t),removed:p(i),affected:p(s),self:this}}afterAllChildrenInitialized(e=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"after-all-children-initialized"))){const t=[],i=[],s=[],l=[];return this.initialized=!0,this.captureVersion(),e==null||e.attemptAutoclose("after-all-children-initialized",this.id),{updated:p(t),added:p(i),removed:p(s),affected:p(l),self:this}}addSelfToProject(e=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"add-self-to-project"))){const t=[this],i=[],s=[],l=[];return this.calledByEntry.forEach(o=>{o.addCall(this,e),t.push(o)}),this.calledBySuccess.forEach(o=>{o.addSuccessCall(this,e),t.push(o)}),this.calledByError.forEach(o=>{o.addErrorCall(this,e),t.push(o)}),this.parent.addContinueStatement(this),t.push(this),this.subscribe(),this.subscribeToDependencies(),e==null||e.attemptAutoclose("add-self-to-project",this.id),{updated:p(t),added:p(i),removed:p(s),affected:p(l),self:this}}get calledBy(){return[...this.calledByEntry,...this.calledBySuccess,...this.calledByError]}addSuccessCaller(e,t=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"add-success-caller")),i=!1){return this.calledBySuccess.find(s=>s.id===e.id)||(this.calledBySuccess.push(e),t==null||t.add(this,A.Updated),i&&K(this,t)),t==null||t.attemptAutoclose("add-success-caller",this.id),this}addErrorCaller(e,t=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"add-error-caller")),i=!1){return this.calledByError.find(s=>s.id===e.id)||(this.calledByError.push(e),t==null||t.add(this,A.Updated),i&&K(this,t),t==null||t.attemptAutoclose("add-error-caller",this.id)),this}addEntryCaller(e,t=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"add-entry-caller")),i=!1){return this.calledByEntry.find(s=>s.id===e.id)||(this.calledByEntry.push(e),t==null||t.add(this,A.Updated),i&&K(this,t),t==null||t.attemptAutoclose("add-entry-caller",this.id)),this}removeCaller(e,t=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"remove-caller")),i=!1){return this.calledBySuccess=this.calledBySuccess.filter(s=>s.id!==e.id?(t&&(t==null||t.add(this,A.Updated),t==null||t.add(s,A.Affected)),!0):!1),this.calledByError=this.calledByError.filter(s=>s.id!==e.id?(t&&(t==null||t.add(this,A.Updated),t==null||t.add(s,A.Affected)),!0):!1),this.calledByEntry=this.calledByEntry.filter(s=>s.id!==e.id?(t&&(t==null||t.add(this,A.Updated),t==null||t.add(s,A.Affected)),!0):!1),i&&K(this,t),t==null||t.attemptAutoclose("remove-caller",this.id),this}addOutputDeclaration(e,t=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"add-output-declaration"))){return this.outputs.find(i=>i.id===e.id)||(this.outputs.push(e),t==null||t.add(this,A.Affected)),t==null||t.attemptAutoclose("add-output-declaration",this.id),this}removeOutputDeclaration(e,t=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"remove-output-declaration"))){return this.outputs.find(i=>i.id===e.id)&&(this.outputs=this.outputs.filter(i=>i.id!==e.id),t==null||t.add(this,A.Affected)),t==null||t.attemptAutoclose("remove-output-declaration",this.id),this}setParent(e,t=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"set-parent"))){var i;return((i=this.parent)==null?void 0:i.id)!==(e==null?void 0:e.id)&&(this.parent=e,t&&(t==null||t.add(this,A.Updated),t==null||t.attemptAutoclose("set-parent",this.id))),this}initChildren(e=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"init-children"))){return this.initialized||this.startedInitialization?this:(this.startedInitialization=!0,this.outputs=this.initialData.outputs.map(t=>{const i=C(t,this.project);return i.setParent(this,null),i.initChildren(e),i}),this.initialData.throws&&(this.throws=C(this.initialData.throws,this.project),this.throws.setParent(this,null),this.throws.initChildren(e)),this.subscribeToDependencies(),this.afterAllChildrenInitialized(e),e==null||e.attemptAutoclose("init-children",this.id),this)}subscribe(){return this.activeVersion=!0,this.project.subscribeInstance(this),this}unsubscribe(){return this.project.unsubscribeInstance(this),this}metaSync(e,t=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"meta-sync"))){const i=pt(this,e),s=this.toMeta();return this.x=e.x||s.x,this.y=e.y||s.y,super.metaSync(e),e.deleted===!0&&!s.deleted?t==null||t.add(this,A.Removed):e.deleted===!1&&s.deleted?t==null||t.add(this,A.Added):i&&(t==null||t.add(this,A.Updated)),t==null||t.attemptAutoclose("meta-sync",this.id),this}async APILoad(e=g,...t){return await Fe.repository.APILoad(this.id,...t),this}async APICreate(e=g,...t){return await Fe.repository.APICreate(this.toShallowJSON(),...t),this}async APIUpdate(e=g,...t){return await Fe.repository.APIUpdate(this.toShallowJSON(),...t),this}async APIDelete(e=g,...t){return await Fe.repository.APIDelete(this.toShallowJSON(),...t),this}async APIClone(e=g,...t){return await Fe.repository.APIClone(this.id,...t),this}async APILoadVersion(e=g,t,...i){return await Fe.repository.APILoadVersion(this.id,t,...i)}remove({ignoreUpstream:e}={ignoreUpstream:!1},t=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"remove-entity"))){const i=[],s=[],l=[],o=[];if(t!=null&&t.hasRemoved(this.id))return t==null||t.attemptAutoclose("remove-entity",this.id),{added:[],updated:[],removed:[],affected:[],self:this};if(s.push(this),this.unsubscribe(),this.project.subscribeDeletedInstance(this),this.metaSync({deleted:!0},t),Object.values(this.detachedDependents).forEach(d=>{const{updated:u,removed:y,added:c}=d.entity.onDetachedDependencyRemoved(this,d.field,t);i.push(...u),s.push(...y),l.push(...c)}),this.outputs.forEach(d=>{const{updated:u,removed:y}=d.remove({ignoreUpstream:!0},t);i.push(...u),s.push(...y)}),this.throws){const{updated:d,removed:u}=this.throws.remove({ignoreUpstream:!0},t);i.push(...d),s.push(...u)}return this.parent.removeContinueStatement(this),e||this.calledBy.forEach(d=>{i.push(d),d.removeCall(this,t)}),t==null||t.attemptAutoclose("remove-entity",this.id),{added:p(l),updated:p(i),removed:p(s),affected:p(o),self:this}}restore({}={},e=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"restore-entity"))){const t=[],i=[],s=[],l=[];if(e!=null&&e.hasAdded(this.id))return e==null||e.attemptAutoclose("restore-entity",this.id),{added:[],updated:[],removed:[],affected:[],self:this};if(this.subscribe(),this.project.unsubscribeDeletedInstance(this),this.metaSync({deleted:!1},e),this.outputs.forEach(o=>{const{updated:d}=o.restore({},e);i.push(...d)}),this.throws){const{updated:o}=this.throws.restore({},e);i.push(...o)}return this.parent.addContinueStatement(this),this.calledBySuccess.forEach(o=>{i.push(o),o.addSuccessCall(this,e)}),this.calledByError.forEach(o=>{i.push(o),o.addErrorCall(this,e)}),this.calledByEntry.forEach(o=>{i.push(o),o.addCall(this,e)}),e==null||e.attemptAutoclose("restore-entity",this.id),{added:p(t),updated:p(i),removed:p(s),affected:p(l),self:this}}toFlat(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this,...this.outputs.flatMap(i=>i.toFlat(e)),...this.calledBy.flatMap(i=>i.toFlat(e)),...this.throws?this.throws.toFlat(e):[]])}toFlatIds(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.id,...this.outputs.flatMap(i=>i.toFlatIds(e)),...this.calledBy.flatMap(i=>i.toFlatIds(e)),...this.throws?this.throws.toFlatIds(e):[]])}toMeta(){return{id:this.id,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,x:this.x,y:this.y,type:this.type}}toJSON(e=new Set){var t,i;return e.has(this.id)?this.toReference():(e.add(this.id),{id:this.id,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,type:this.type,x:this.x,y:this.y,calledBySuccess:this.calledBySuccess.map(s=>s.toReference()),calledByError:this.calledByError.map(s=>s.toReference()),calledByEntry:this.calledByEntry.map(s=>s.toReference()),outputs:this.outputs.map(s=>s.toJSON(e)),throws:((t=this.throws)==null?void 0:t.toJSON(e))||null,parent:((i=this.parent)==null?void 0:i.toReference())||null})}toJSONClone(e=q){var i,s,l,o,d,u,y;let t;return(i=e.seenEntityMaps)!=null&&i.has(this.id)?t=e.seenEntityMaps.get(this.id):(t=e.newId||ht(this,this.project,e.uuidStrategy),e.seenEntityMaps&&e.seenEntityMaps.set(this.id,t)),(s=e.seenEntities)!=null&&s.has(t)||(l=e.seenEntities)!=null&&l.has(this.id)?this.toReference({seenEntityMaps:e.seenEntityMaps}):((o=e.seenEntities)==null||o.add(t),(d=e.seenEntities)==null||d.add(this.id),{id:t,version:m.UUID.uuid(),createdAt:e.timestamp||T().toISOString(),previousVersion:null,author:this.author,deleted:this.deleted,type:this.type,x:this.x,y:this.y,calledBySuccess:this.calledBySuccess.map(c=>c.toReference({seenEntityMaps:e.seenEntityMaps})),calledByError:this.calledByError.map(c=>c.toReference({seenEntityMaps:e.seenEntityMaps})),calledByEntry:this.calledByEntry.map(c=>c.toReference({seenEntityMaps:e.seenEntityMaps})),outputs:this.outputs.map(c=>c.toJSONClone({...e,newId:null})),throws:((u=this.throws)==null?void 0:u.toJSONClone({...e,newId:null}))||null,parent:((y=this.parent)==null?void 0:y.toReference({seenEntityMaps:e.seenEntityMaps}))||null})}toReference(e=q){var i;let t=this.id;return(i=e.seenEntityMaps)!=null&&i.has(this.id)&&(t=e.seenEntityMaps.get(this.id)),{id:t+"--"+m.UUID.uuid()+"--ref",type:n.GenericReference,entityId:t,version:this.version,entityType:this.type}}toShallowJSON(e=q){var i,s;let t=this.id;return(i=e.seenEntityMaps)!=null&&i.has(this.id)&&(t=e.seenEntityMaps.get(this.id)),{id:t,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,type:this.type,x:this.x,y:this.y,outputs:this.outputs.map(l=>l.toReference(e)),calledBySuccess:this.calledBySuccess.map(l=>l.toReference(e)),calledByError:this.calledByError.map(l=>l.toReference(e)),calledByEntry:this.calledByEntry.map(l=>l.toReference(e)),throws:((s=this.throws)==null?void 0:s.toReference(e))||null,parent:this.parent.toReference(e)}}toFlatJSON(e=new Set){var i;return e.has(this.id)?[]:(e.add(this.id),[this.toShallowJSON(),...this.outputs.flatMap(s=>s.toFlatJSON(e)),...this.calledBy.flatMap(s=>s.toFlatJSON(e)),...((i=this.throws)==null?void 0:i.toFlatJSON(e))||[]])}toGenerationTarget(){return{id:this.id,type:this.type,calledByEntry:this.calledByEntry.map(e=>e.id),calledByError:this.calledByError.map(e=>e.id),calledBySuccess:this.calledBySuccess.map(e=>e.id),parent:this.parent.id}}toFlatGenerationTarget(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.toGenerationTarget(),...this.outputs.flatMap(i=>i.toFlatGenerationTarget(e)),...this.throws?this.throws.toFlatGenerationTarget(e):[]])}clearErrors(){var e;return this.errors=[],this.outputs.forEach(t=>t.clearErrors()),(e=this.throws)==null||e.clearErrors(),this}validate(){const e=s1(this);return this.errors=e,{success:!0,error:null,data:this.toJSON()}}getErrors(){return[...this.errors,...this.outputs.flatMap(t=>t.getErrors())]}getShallowErrors(){return this.errors}clone(e=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"clone-entity")),t=null,i=null,s=!0){var E;let l=mt(t,this);const o=this.toJSON(),d=i||m.UUID.uuid();o.outputs=[];const u=d.split("-id"),y=u[u.length-1||0]||d;o.id=d,o.version=m.UUID.uuid(),o.createdAt=(e==null?void 0:e.timestamp)||T().toISOString(),o.author=(e==null?void 0:e.author)||"1",o.previousVersion=null,o.deleted=!1;const c=ct(o,l);t?c.setParent(t,null):c.setParent(this.parent,null),s&&c.subscribe(),c.initChildren(e),e==null||e.add(c,A.Added);const I=(E=this.outputs)==null?void 0:E.map((O,P)=>O.clone(e,c,y+"-return-declaration-"+P+"-id",s));return c.outputs=I,this.throws&&(c.throws=this.throws.clone(e,c,y+"-throws-id",s)),e==null||e.attemptAutoclose("clone-entity",this.id),c}};f(Fe,"repository",{APICreate:async(e,...t)=>e,APIUpdate:async(e,...t)=>e,APIDelete:async(e,...t)=>e,APIClone:async(e,...t)=>{},APILoad:async(e,...t)=>null,APILoadVersion:async(e,t,...i)=>null}),f(Fe,"type",n.ContinueStatement),f(Fe,"USER_MANAGED_PARENT_TYPES",[n.Loop]),f(Fe,"PARENT_TYPES",[...Fe.USER_MANAGED_PARENT_TYPES]),f(Fe,"MUTABLE_BASE_PROPERTIES",[]),f(Fe,"INMUTABLE_BASE_PROPERTIES",["id","type","version","createdAt","author","previousVersion"]),f(Fe,"BASE_PROPERTIES",[...Fe.MUTABLE_BASE_PROPERTIES,...Fe.INMUTABLE_BASE_PROPERTIES]),f(Fe,"MUTABLE_META_PROPERTIES",["x","y"]),f(Fe,"INMUTABLE_META_PROPERTIES",[...Fe.INMUTABLE_BASE_PROPERTIES]),f(Fe,"META_PROPERTIES",[...Fe.MUTABLE_META_PROPERTIES,...Fe.INMUTABLE_META_PROPERTIES]),f(Fe,"MUTABLE_UPSTREAM_PROPERTIES",["calledBySuccess","calledByError","calledByEntry","parent"]),f(Fe,"INMUTABLE_UPSTREAM_PROPERTIES",[]),f(Fe,"UPSTREAM_PROPERTIES",[...Fe.MUTABLE_UPSTREAM_PROPERTIES,...Fe.INMUTABLE_UPSTREAM_PROPERTIES]),f(Fe,"MUTABLE_DOWNSTREAM_PROPERTIES",["outputs","throws"]),f(Fe,"INMUTABLE_DOWNSTREAM_PROPERTIES",[]),f(Fe,"DOWNSTREAM_PROPERTIES",[...Fe.MUTABLE_DOWNSTREAM_PROPERTIES,...Fe.INMUTABLE_DOWNSTREAM_PROPERTIES]),f(Fe,"PROPERTIES",[...Fe.META_PROPERTIES,...Fe.UPSTREAM_PROPERTIES,...Fe.DOWNSTREAM_PROPERTIES]);let Ft=Fe;var Ul=(r=>(r.Parent="parent",r))(Ul||{});const nt=class nt extends at{constructor(e,t){super(e);f(this,"initialData");f(this,"id");f(this,"x");f(this,"y");f(this,"type",n.ReturnStatement);f(this,"outputs",[]);f(this,"calledBySuccess",[]);f(this,"calledByError",[]);f(this,"calledByEntry",[]);f(this,"throws",null);f(this,"project");f(this,"errors",[]);f(this,"parent");f(this,"detachedDependents",{});f(this,"knownVersions",null);f(this,"activeVersion",!1);f(this,"initialized",!1);f(this,"startedInitialization",!1);f(this,"suggestion",!1);this.initialData=e,this.project=t,this.id=e.id,this.x=e.x,this.y=e.y}static new(){return{id:m.UUID.uuid(),version:m.UUID.uuid(),createdAt:T().toISOString(),author:m.sessionAuthor,previousVersion:null,deleted:!1,type:n.ReturnStatement,outputs:[],throws:null,parent:null,calledByEntry:[],calledBySuccess:[],calledByError:[],x:0,y:0}}static fromGenerationTarget(e,t){const i=_(e.parent),s=t.get(i),l=e.calledByEntry.map(c=>{const I=_(c);return t.get(I)}),o=e.calledBySuccess.map(c=>{const I=_(c);return t.get(I)}),d=e.calledByError.map(c=>{const I=_(c);return t.get(I)}),u={id:e.id,version:m.UUID.uuid(),createdAt:T().toISOString(),author:m.sessionAuthor,previousVersion:null,deleted:!1,type:n.ReturnStatement,x:0,y:0,outputs:[],calledBySuccess:o,calledByError:d,calledByEntry:l,throws:null,parent:s},y=C(u,t);return y.setParent(s,null),y.initChildren(null),y}static validateGenerationTarget(e,t){let i=JSON.parse(JSON.stringify(e));const s=[],l=At(i,{parent:{list:!1,types:dt}},t);return i=l.modifiedData,s.push(...l.errors,...ut(i)),{errors:s,modifiedData:i}}validateGeneratedUpdate(e){const t=[];return e.parent&&t.push(new w({id:`${this.id}--${R.InvalidParentUpdate}`,code:R.InvalidParentUpdate,severity:D.Error,message:`Entity of type '${this.type}' with id '${this.id}' cannot have the 'parent' property updated. The 'parent' on a callable entity, is its scope. It scope is auto-calculated implicitly by the its caller.
58
58
  If an entity is called by another, they must be in the same scope, which means they have the same parent.
59
59
  You shouldn't have to manually update a 'parent' property.
60
- Specifically for return statements the parent needs to always be the 'function-declaration' or 'global-event' that contains it.`,issue:null})),{errors:t,modifiedData:e}}subscribeDependents(e){return e.forEach(t=>{this.detachedDependents[t.entity.id]||(this.detachedDependents[t.entity.id]=t)}),this}syncDependents(){const e=[],t=[],i=[],s=[];return Object.values(this.detachedDependents).forEach(l=>{const o=l.entity.afterAllChildrenInitialized();e.push(...o.updated),t.push(...o.added),i.push(...o.removed),s.push(...o.affected)}),{updated:p(e),added:p(t),removed:p(i),affected:p(s),self:this}}onDetachedDependencyRemoved(e,t,i){const s=[],l=[],o=[],d=[];if(t==="parent"){const{updated:u,added:y,removed:c}=this.remove({ignoreUpstream:!1},i);s.push(...u),l.push(...y),o.push(...c)}return{updated:p(s),added:p(l),removed:p(o),affected:p(d),self:this}}onDetachedDependencyRestored(e,t,i){const s=[],l=[],o=[],d=[];if(t==="parent"){const{updated:u,added:y,removed:c}=this.restore({},i);s.push(...u),l.push(...y),o.push(...c)}return{updated:p(s),added:p(l),removed:p(o),affected:p(d),self:this}}subscribeToDependencies(){var e;return(e=this.parent)==null||e.subscribeDependents([{entity:this,field:"parent"}]),this}increaseVersion(e){if(e&&!T(e).isValid())throw new Error(`The shared timestamp '${e}' is not a valid ISO 8601 date string.`);return e&&T(e).isSame(T(this.createdAt))?this:(this.previousVersion=this.version,this.version=m.UUID.uuid(),this.createdAt=T(e).toISOString()||T().toISOString(),this)}captureVersion(){var t;const e=((t=this.knownVersions)==null?void 0:t.get(this.version))||new rt(this,this.project);return e.metaSync(this.toMeta(),null),this.knownVersions=this.knownVersions?this.knownVersions.set(this.version,e):new Map([[this.version,e]]),e.outputs=this.outputs,e.throws=this.throws,e.calledBySuccess=this.calledBySuccess,e.calledByError=this.calledByError,e.calledByEntry=this.calledByEntry,e.parent=this.parent,this}recursiveCaptureUpstreamVersions(e){const t=[],i=[],s=[],l=[];if(this.parent){this.parent.increaseVersion(e);const o=this.parent.recursiveCaptureUpstreamVersions(e);t.push(this.parent,...o.updated),i.push(...o.added),s.push(...o.removed)}return{updated:p(t),added:p(i),removed:p(s),affected:p(l),self:this}}async restoreVersion(e){var d;const t=[],i=[],s=[],l=[];if(this.version===e)return{updated:p(t),added:p(i),removed:p(s),affected:p(l),self:this};if(!this.knownVersions){const u=new Map;for(const[y,c]of this.knownVersions||new Map){if(u.set(y,c),c.activeVersion=!1,c.knownVersions)for(const[I,E]of c.knownVersions)u.set(I,E);c.knownVersions=null}}let o=(d=this.knownVersions)==null?void 0:d.get(e);if(!o){const u=await this.APILoadVersion({},e);if(!u)throw new Error(`Version with id '${e}' for entity with id '${this.id}' not found.`);o=new rt(u,this.project)}return this.metaSync(o.toShallowJSON(),null),this.outputs=o.outputs,this.throws=o.throws,this.calledBySuccess=o.calledBySuccess,this.calledByError=o.calledByError,this.calledByEntry=o.calledByEntry,this.parent=o.parent,{updated:p(t),added:p(i),removed:p(s),affected:p(l),self:this}}hydrateAncestors(){const e=[],t=[],i=[],s=[];if(this.initialData.parent){const l=_(this.initialData.parent),o=this.project.get(l);if(o)this.setParent(o,null),e.push(o);else throw new Error(`${this.type} with id '${this.id}' has a 'parent' reference '${l}' that isn't found in the project`)}else throw new Error(`${this.type} with id '${this.id}' must have a 'parent'`);return this.initialData.calledByEntry.forEach(l=>{const o=_(l),d=this.project.get(o);d&&(this.addEntryCaller(d,null),e.push(d))}),this.initialData.calledBySuccess.forEach(l=>{const o=_(l),d=this.project.get(o);d&&(this.addSuccessCaller(d,null),e.push(d))}),this.initialData.calledByError.forEach(l=>{const o=_(l),d=this.project.get(o);d&&(this.addErrorCaller(d,null),e.push(d))}),{updated:p(e),added:p(t),removed:p(i),affected:p(s),self:this}}afterAllChildrenInitialized(e=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"after-all-children-initialized"))){const t=[],i=[],s=[],l=[];return this.initialized=!0,this.captureVersion(),e==null||e.attemptAutoclose("after-all-children-initialized",this.id),{updated:p(t),added:p(i),removed:p(s),affected:p(l),self:this}}addSelfToProject(e=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"add-self-to-project"))){const t=[this],i=[],s=[],l=[];return this.calledByEntry.forEach(o=>{o.addCall(this,e),t.push(o)}),this.calledBySuccess.forEach(o=>{o.addSuccessCall(this,e),t.push(o)}),this.calledByError.forEach(o=>{o.addErrorCall(this,e),t.push(o)}),this.parent.addReturnStatement(this),t.push(this.parent),this.subscribe(),this.subscribeToDependencies(),e==null||e.attemptAutoclose("add-self-to-project",this.id),{updated:p(t),added:p(i),removed:p(s),affected:p(l),self:this}}get calledBy(){return[...this.calledByEntry,...this.calledBySuccess,...this.calledByError]}addSuccessCaller(e,t=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"add-success-caller")),i=!1){return this.calledBySuccess.find(s=>s.id===e.id)||(this.calledBySuccess.push(e),t==null||t.add(this,A.Updated),i&&K(this,t)),t==null||t.attemptAutoclose("add-success-caller",this.id),this}addErrorCaller(e,t=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"add-error-caller")),i=!1){return this.calledByError.find(s=>s.id===e.id)||(this.calledByError.push(e),t==null||t.add(this,A.Updated),i&&K(this,t),t==null||t.attemptAutoclose("add-error-caller",this.id)),this}addEntryCaller(e,t=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"add-entry-caller")),i=!1){return this.calledByEntry.find(s=>s.id===e.id)||(this.calledByEntry.push(e),t==null||t.add(this,A.Updated),i&&K(this,t),t==null||t.attemptAutoclose("add-entry-caller",this.id)),this}removeCaller(e,t=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"remove-caller")),i=!1){return this.calledBySuccess=this.calledBySuccess.filter(s=>s.id!==e.id?(t&&(t==null||t.add(this,A.Updated),t==null||t.add(s,A.Affected)),!0):!1),this.calledByError=this.calledByError.filter(s=>s.id!==e.id?(t&&(t==null||t.add(this,A.Updated),t==null||t.add(s,A.Affected)),!0):!1),this.calledByEntry=this.calledByEntry.filter(s=>s.id!==e.id?(t&&(t==null||t.add(this,A.Updated),t==null||t.add(s,A.Affected)),!0):!1),i&&K(this,t),t==null||t.attemptAutoclose("remove-caller",this.id),this}addOutputDeclaration(e,t=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"add-output-declaration"))){return this.outputs.find(i=>i.id===e.id)||(this.outputs.push(e),t==null||t.add(this,A.Affected)),t==null||t.attemptAutoclose("add-output-declaration",this.id),this}removeOutputDeclaration(e,t=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"remove-output-declaration"))){return this.outputs.find(i=>i.id===e.id)&&(this.outputs=this.outputs.filter(i=>i.id!==e.id),t==null||t.add(this,A.Affected)),t==null||t.attemptAutoclose("remove-output-declaration",this.id),this}setParent(e,t=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"set-parent"))){var i;return((i=this.parent)==null?void 0:i.id)!==(e==null?void 0:e.id)&&(this.parent=e,t&&(t==null||t.add(this,A.Updated),t==null||t.attemptAutoclose("set-parent",this.id))),this}initChildren(e=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"init-children"))){return this.initialized||this.startedInitialization?this:(this.startedInitialization=!0,this.outputs=this.initialData.outputs.map(t=>{const i=C(t,this.project);return i.setParent(this,null),i.initChildren(e),i}),this.initialData.throws&&(this.throws=C(this.initialData.throws,this.project),this.throws.setParent(this,null),this.throws.initChildren(e)),this.subscribeToDependencies(),this.afterAllChildrenInitialized(e),e==null||e.attemptAutoclose("init-children",this.id),this)}subscribe(){return this.activeVersion=!0,this.project.subscribeInstance(this),this}unsubscribe(){return this.project.unsubscribeInstance(this),this}metaSync(e,t=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"meta-sync"))){const i=pt(this,e),s=this.toMeta();return this.x=e.x||s.x,this.y=e.y||s.y,super.metaSync(e),e.deleted===!0&&!s.deleted?t==null||t.add(this,A.Removed):e.deleted===!1&&s.deleted?t==null||t.add(this,A.Added):i&&(t==null||t.add(this,A.Updated)),t==null||t.attemptAutoclose("meta-sync",this.id),this}async APILoad(e=g,...t){return await rt.repository.APILoad(this.id,...t),this}async APICreate(e=g,...t){return await rt.repository.APICreate(this.toShallowJSON(),...t),this}async APIUpdate(e=g,...t){return await rt.repository.APIUpdate(this.toShallowJSON(),...t),this}async APIDelete(e=g,...t){return await rt.repository.APIDelete(this.toShallowJSON(),...t),this}async APIClone(e=g,...t){return await rt.repository.APIClone(this.id,...t),this}async APILoadVersion(e=g,t,...i){return await rt.repository.APILoadVersion(this.id,t,...i)}remove({ignoreUpstream:e}={ignoreUpstream:!1},t=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"remove-entity"))){const i=[],s=[],l=[],o=[];if(t!=null&&t.hasRemoved(this.id))return t==null||t.attemptAutoclose("remove-entity",this.id),{added:[],updated:[],removed:[],affected:[],self:this};if(s.push(this),this.unsubscribe(),this.project.subscribeDeletedInstance(this),this.metaSync({deleted:!0},t),Object.values(this.detachedDependents).forEach(d=>{const{updated:u,removed:y,added:c}=d.entity.onDetachedDependencyRemoved(this,d.field,t);i.push(...u),s.push(...y),l.push(...c)}),this.outputs.forEach(d=>{const{updated:u,removed:y}=d.remove({ignoreUpstream:!0},t);i.push(...u),s.push(...y)}),this.throws){const{updated:d,removed:u}=this.throws.remove({ignoreUpstream:!0},t);i.push(...d),s.push(...u)}return this.parent.removeReturnStatement(this),e||this.calledBy.forEach(d=>{i.push(d),d.removeCall(this,t)}),t==null||t.attemptAutoclose("remove-entity",this.id),{added:p(l),updated:p(i),removed:p(s),affected:p(o),self:this}}restore({}={},e=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"restore-entity"))){const t=[],i=[],s=[],l=[];if(e!=null&&e.hasAdded(this.id))return e==null||e.attemptAutoclose("restore-entity",this.id),{added:[],updated:[],removed:[],affected:[],self:this};if(this.subscribe(),this.project.unsubscribeDeletedInstance(this),this.metaSync({deleted:!1},e),this.outputs.forEach(o=>{const{updated:d}=o.restore({},e);i.push(...d)}),this.throws){const{updated:o}=this.throws.restore({},e);i.push(...o)}return this.parent.addReturnStatement(this),this.calledBySuccess.forEach(o=>{i.push(o),o.addSuccessCall(this,e)}),this.calledByError.forEach(o=>{i.push(o),o.addErrorCall(this,e)}),this.calledByEntry.forEach(o=>{i.push(o),o.addCall(this,e)}),e==null||e.attemptAutoclose("restore-entity",this.id),{added:p(t),updated:p(i),removed:p(s),affected:p(l),self:this}}toFlat(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this,...this.outputs.flatMap(i=>i.toFlat(e)),...this.throws?this.throws.toFlat(e):[]])}toFlatIds(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.id,...this.outputs.flatMap(i=>i.toFlatIds(e)),...this.throws?this.throws.toFlatIds(e):[]])}toMeta(){return{id:this.id,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,x:this.x,y:this.y,type:this.type}}toJSON(e=new Set){var t,i;return e.has(this.id)?this.toReference():(e.add(this.id),{id:this.id,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,type:this.type,x:this.x,y:this.y,calledBySuccess:this.calledBySuccess.map(s=>s.toReference()),calledByError:this.calledByError.map(s=>s.toReference()),calledByEntry:this.calledByEntry.map(s=>s.toReference()),outputs:this.outputs.map(s=>s.toJSON(e)),parent:((t=this.parent)==null?void 0:t.toReference())||null,throws:((i=this.throws)==null?void 0:i.toJSON(e))||null})}toJSONClone(e=q){var i,s,l,o,d,u,y;let t;return(i=e.seenEntityMaps)!=null&&i.has(this.id)?t=e.seenEntityMaps.get(this.id):(t=e.newId||ht(this,this.project,e.uuidStrategy),e.seenEntityMaps&&e.seenEntityMaps.set(this.id,t)),(s=e.seenEntities)!=null&&s.has(t)||(l=e.seenEntities)!=null&&l.has(this.id)?this.toReference({seenEntityMaps:e.seenEntityMaps}):((o=e.seenEntities)==null||o.add(t),(d=e.seenEntities)==null||d.add(this.id),{id:t,version:m.UUID.uuid(),createdAt:e.timestamp||T().toISOString(),previousVersion:null,author:this.author,deleted:this.deleted,type:this.type,x:this.x,y:this.y,calledBySuccess:this.calledBySuccess.map(c=>c.toReference({seenEntityMaps:e.seenEntityMaps})),calledByError:this.calledByError.map(c=>c.toReference({seenEntityMaps:e.seenEntityMaps})),calledByEntry:this.calledByEntry.map(c=>c.toReference({seenEntityMaps:e.seenEntityMaps})),outputs:this.outputs.map(c=>c.toJSONClone({...e,newId:null})),parent:((u=this.parent)==null?void 0:u.toReference({seenEntityMaps:e.seenEntityMaps}))||null,throws:((y=this.throws)==null?void 0:y.toJSONClone({...e,newId:null}))||null})}toReference(e=q){var i;let t=this.id;return(i=e.seenEntityMaps)!=null&&i.has(this.id)&&(t=e.seenEntityMaps.get(this.id)),{id:t+"--"+m.UUID.uuid()+"--ref",type:n.GenericReference,entityId:t,version:this.version,entityType:this.type}}toShallowJSON(e=q){var i,s,l;let t=this.id;return(i=e.seenEntityMaps)!=null&&i.has(this.id)&&(t=e.seenEntityMaps.get(this.id)),{id:t,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,type:this.type,x:this.x,y:this.y,outputs:this.outputs.map(o=>o.toReference(e)),calledBySuccess:this.calledBySuccess.map(o=>o.toReference(e)),calledByError:this.calledByError.map(o=>o.toReference(e)),calledByEntry:this.calledByEntry.map(o=>o.toReference(e)),throws:((s=this.throws)==null?void 0:s.toReference(e))||null,parent:((l=this.parent)==null?void 0:l.toReference(e))||null}}toFlatJSON(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.toShallowJSON(),...this.outputs.flatMap(i=>i.toFlatJSON(e)),...this.throws?this.throws.toFlatJSON(e):[]])}toGenerationTarget(){return{id:this.id,type:this.type,calledByEntry:this.calledByEntry.map(e=>e.id),calledByError:this.calledByError.map(e=>e.id),calledBySuccess:this.calledBySuccess.map(e=>e.id),parent:this.parent.id}}toFlatGenerationTarget(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.toGenerationTarget(),...this.outputs.flatMap(i=>i.toFlatGenerationTarget(e)),...this.throws?this.throws.toFlatGenerationTarget(e):[]])}clearErrors(){var e;return this.errors=[],this.outputs.forEach(t=>t.clearErrors()),(e=this.throws)==null||e.clearErrors(),this}validate(){const e=n1(this);return this.errors=e,{success:!0,error:null,data:this.toJSON()}}getErrors(){return[...this.errors,...this.outputs.flatMap(t=>t.getErrors())]}getShallowErrors(){return this.errors}clone(e=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"clone-entity")),t=null,i=null,s=!0){var E;let l=mt(t,this);const o=this.toJSON(),d=i||m.UUID.uuid();o.outputs=[];const u=d.split("-id"),y=u[u.length-1||0]||d;o.id=d,o.version=m.UUID.uuid(),o.createdAt=(e==null?void 0:e.timestamp)||T().toISOString(),o.author=(e==null?void 0:e.author)||"1",o.previousVersion=null,o.deleted=!1;const c=ct(o,l);t?c.setParent(t,null):c.setParent(this.parent,null),s&&c.subscribe(),c.initChildren(e),e==null||e.add(c,A.Added);const I=(E=this.outputs)==null?void 0:E.map((O,P)=>O.clone(e,c,y+"-return-declaration-"+P+"-id",s));return c.outputs=I,this.throws&&(c.throws=this.throws.clone(e,c,y+"-throws-id",s)),e==null||e.attemptAutoclose("clone-entity",this.id),c}};f(rt,"repository",{APICreate:async(e,...t)=>e,APIUpdate:async(e,...t)=>e,APIDelete:async(e,...t)=>e,APIClone:async(e,...t)=>{},APILoad:async(e,...t)=>null,APILoadVersion:async(e,t,...i)=>null}),f(rt,"type",n.ReturnStatement),f(rt,"USER_MANAGED_PARENT_TYPES",[...dt]),f(rt,"PARENT_TYPES",[...rt.USER_MANAGED_PARENT_TYPES]),f(rt,"MUTABLE_BASE_PROPERTIES",[]),f(rt,"INMUTABLE_BASE_PROPERTIES",["id","type","version","createdAt","author","previousVersion"]),f(rt,"BASE_PROPERTIES",[...Ft.MUTABLE_BASE_PROPERTIES,...Ft.INMUTABLE_BASE_PROPERTIES]),f(rt,"MUTABLE_META_PROPERTIES",["x","y"]),f(rt,"INMUTABLE_META_PROPERTIES",[...Ft.INMUTABLE_BASE_PROPERTIES]),f(rt,"META_PROPERTIES",[...Ft.MUTABLE_META_PROPERTIES,...Ft.INMUTABLE_META_PROPERTIES]),f(rt,"MUTABLE_UPSTREAM_PROPERTIES",["calledBySuccess","calledByError","calledByEntry","parent"]),f(rt,"INMUTABLE_UPSTREAM_PROPERTIES",[]),f(rt,"UPSTREAM_PROPERTIES",[...Ft.MUTABLE_UPSTREAM_PROPERTIES,...Ft.INMUTABLE_UPSTREAM_PROPERTIES]),f(rt,"MUTABLE_DOWNSTREAM_PROPERTIES",["outputs","throws"]),f(rt,"INMUTABLE_DOWNSTREAM_PROPERTIES",[]),f(rt,"DOWNSTREAM_PROPERTIES",[...Ft.MUTABLE_DOWNSTREAM_PROPERTIES,...Ft.INMUTABLE_DOWNSTREAM_PROPERTIES]),f(rt,"PROPERTIES",[...si.META_PROPERTIES,...si.UPSTREAM_PROPERTIES,...si.DOWNSTREAM_PROPERTIES]);let Ur=rt;function a1(r){const a=rZ(),e=r.toJSON();a.safeParse(e).success;const i=T7(r),s=I7(r),l=ai(r);r.inputs.forEach(d=>d.validate()),l.forEach(d=>d.validate());const o=[...i,...s];if(r.id==="getCompanyByIdEndpointReachedEntityEvent"){const d=de({id:`${r.id}--${F.PropertyImplementsNonAbstact}`,message:`Property "${x(r,r.project)}" with id "${r.id}" implements a non-abstract property "${x(r,r.project)}" with id "${r.id}".`,issue:null,severity:D.Error,code:F.PropertyImplementsNonAbstact,entity:r});o.push(d.error)}return Ye(r.errors,o)}function T7(r){const a=[];if(!r.calls.length){const e=de({id:`${r.id}--${F.ScopeWithoutLogic}`,message:`Action "${x(r,r.project)}" with id "${r.id}" does not have any logic defined. So it doesn't do anything.`,issue:null,severity:D.Warning,code:F.ScopeWithoutLogic,entity:r});a.push(e.error)}return Ye(r.errors,a)}function I7(r){const a=[];return r.implements,Ye(r.errors,a)}const E7=Object.freeze(Object.defineProperty({__proto__:null,validate:a1},Symbol.toStringTag,{value:"Module"}));var o1=(r=>(r.Implements="implements",r))(o1||{});const Re=class Re extends at{constructor(e,t){super(e);f(this,"initialData");f(this,"id");f(this,"name");f(this,"description",null);f(this,"x");f(this,"y");f(this,"collapsed");f(this,"private");f(this,"index",null);f(this,"type",n.FunctionDeclaration);f(this,"implements",null);f(this,"inputs",[]);f(this,"calls",[]);f(this,"parent");f(this,"detachedChildren",[]);f(this,"errors",[]);f(this,"project");f(this,"detachedDependents",{});f(this,"knownVersions",null);f(this,"activeVersion",!1);f(this,"initialized",!1);f(this,"startedInitialization",!1);f(this,"suggestion",!1);this.initialData=e,this.project=t,this.id=e.id,this.name=e.name,this.description=e.description,this.private=e.private,this.collapsed=e.collapsed,this.x=e.x,this.y=e.y,this.index=e.index}static new(){return{id:m.UUID.uuid(),version:m.UUID.uuid(),createdAt:T().toISOString(),author:m.sessionAuthor,previousVersion:null,deleted:!1,type:n.FunctionDeclaration,name:"",description:"",collapsed:!1,private:!1,index:null,implements:null,inputs:[],parent:null,calls:[],x:0,y:0}}static fromGenerationTarget(e,t){let i=t;if(e.parent){const d=_(e.parent);i=t.get(d)}let s=null;if(e.implements){const d=_(e.implements);s=t.get(d)}const l={id:e.id,version:m.UUID.uuid(),createdAt:T().toISOString(),author:m.sessionAuthor,previousVersion:null,deleted:!1,name:e.name,type:n.FunctionDeclaration,index:i.type===n.DefinitionEntity?i.methods.length:null,description:e.description,collapsed:!1,private:!1,calls:[],inputs:[],implements:s,x:0,y:0,parent:i},o=C(l,t);return o.setParent(i,null),o.initChildren(null),o}static validateGenerationTarget(e,t){var c;let i=JSON.parse(JSON.stringify(e));const s=[],l=At(i,{parent:{list:!1,types:[n.Project,n.InstalledProject,n.DefinitionEntity,n.Loop],optional:!0},implements:{list:!1,types:[n.ActionDescriptor],optional:!0}},t);i=l.modifiedData;const o=Ec(i,t),d=i.parent?t.get(i.parent):null;if(d&&d.type===n.DefinitionEntity){const I=d,O=xt(I).filter(P=>!P.interactive);if(O.length){let P=O.length>1?`The entity of type '${e.type}' with id '${e.id}' can't be added to the 'parent' entity with id '${I.id}' because it extends or implements multiple '${n.BuiltInBaseEntity}' entities that are non-interactive ("${ne(O.map(V=>x(V,V.project)),'", "','" and "')}").`:`The entity of type '${e.type}' with id '${e.id}' can't be added to the 'parent' entity with id '${I.id}' because it extends or implements a '${n.BuiltInBaseEntity}' entity that is non-interactive ("${x(O[0],O[0].project)}").`;P+=`
60
+ Specifically for return statements the parent needs to always be the 'function-declaration' or 'global-event' that contains it.`,issue:null})),{errors:t,modifiedData:e}}subscribeDependents(e){return e.forEach(t=>{this.detachedDependents[t.entity.id]||(this.detachedDependents[t.entity.id]=t)}),this}syncDependents(){const e=[],t=[],i=[],s=[];return Object.values(this.detachedDependents).forEach(l=>{const o=l.entity.afterAllChildrenInitialized();e.push(...o.updated),t.push(...o.added),i.push(...o.removed),s.push(...o.affected)}),{updated:p(e),added:p(t),removed:p(i),affected:p(s),self:this}}onDetachedDependencyRemoved(e,t,i){const s=[],l=[],o=[],d=[];if(t==="parent"){const{updated:u,added:y,removed:c}=this.remove({ignoreUpstream:!1},i);s.push(...u),l.push(...y),o.push(...c)}return{updated:p(s),added:p(l),removed:p(o),affected:p(d),self:this}}onDetachedDependencyRestored(e,t,i){const s=[],l=[],o=[],d=[];if(t==="parent"){const{updated:u,added:y,removed:c}=this.restore({},i);s.push(...u),l.push(...y),o.push(...c)}return{updated:p(s),added:p(l),removed:p(o),affected:p(d),self:this}}subscribeToDependencies(){var e;return(e=this.parent)==null||e.subscribeDependents([{entity:this,field:"parent"}]),this}increaseVersion(e){if(e&&!T(e).isValid())throw new Error(`The shared timestamp '${e}' is not a valid ISO 8601 date string.`);return e&&T(e).isSame(T(this.createdAt))?this:(this.previousVersion=this.version,this.version=m.UUID.uuid(),this.createdAt=T(e).toISOString()||T().toISOString(),this)}captureVersion(){var t;const e=((t=this.knownVersions)==null?void 0:t.get(this.version))||new nt(this,this.project);return e.metaSync(this.toMeta(),null),this.knownVersions=this.knownVersions?this.knownVersions.set(this.version,e):new Map([[this.version,e]]),e.outputs=this.outputs,e.throws=this.throws,e.calledBySuccess=this.calledBySuccess,e.calledByError=this.calledByError,e.calledByEntry=this.calledByEntry,e.parent=this.parent,this}recursiveCaptureUpstreamVersions(e){const t=[],i=[],s=[],l=[];if(this.parent){this.parent.increaseVersion(e);const o=this.parent.recursiveCaptureUpstreamVersions(e);t.push(this.parent,...o.updated),i.push(...o.added),s.push(...o.removed)}return{updated:p(t),added:p(i),removed:p(s),affected:p(l),self:this}}async restoreVersion(e){var d;const t=[],i=[],s=[],l=[];if(this.version===e)return{updated:p(t),added:p(i),removed:p(s),affected:p(l),self:this};if(!this.knownVersions){const u=new Map;for(const[y,c]of this.knownVersions||new Map){if(u.set(y,c),c.activeVersion=!1,c.knownVersions)for(const[I,E]of c.knownVersions)u.set(I,E);c.knownVersions=null}}let o=(d=this.knownVersions)==null?void 0:d.get(e);if(!o){const u=await this.APILoadVersion({},e);if(!u)throw new Error(`Version with id '${e}' for entity with id '${this.id}' not found.`);o=new nt(u,this.project)}return this.metaSync(o.toShallowJSON(),null),this.outputs=o.outputs,this.throws=o.throws,this.calledBySuccess=o.calledBySuccess,this.calledByError=o.calledByError,this.calledByEntry=o.calledByEntry,this.parent=o.parent,{updated:p(t),added:p(i),removed:p(s),affected:p(l),self:this}}hydrateAncestors(){const e=[],t=[],i=[],s=[];if(this.initialData.parent){const l=_(this.initialData.parent),o=this.project.get(l);if(o)this.setParent(o,null),e.push(o);else throw new Error(`${this.type} with id '${this.id}' has a 'parent' reference '${l}' that isn't found in the project`)}else throw new Error(`${this.type} with id '${this.id}' must have a 'parent'`);return this.initialData.calledByEntry.forEach(l=>{const o=_(l),d=this.project.get(o);d&&(this.addEntryCaller(d,null),e.push(d))}),this.initialData.calledBySuccess.forEach(l=>{const o=_(l),d=this.project.get(o);d&&(this.addSuccessCaller(d,null),e.push(d))}),this.initialData.calledByError.forEach(l=>{const o=_(l),d=this.project.get(o);d&&(this.addErrorCaller(d,null),e.push(d))}),{updated:p(e),added:p(t),removed:p(i),affected:p(s),self:this}}afterAllChildrenInitialized(e=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"after-all-children-initialized"))){const t=[],i=[],s=[],l=[];return this.initialized=!0,this.captureVersion(),e==null||e.attemptAutoclose("after-all-children-initialized",this.id),{updated:p(t),added:p(i),removed:p(s),affected:p(l),self:this}}addSelfToProject(e=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"add-self-to-project"))){const t=[this],i=[],s=[],l=[];return this.calledByEntry.forEach(o=>{o.addCall(this,e),t.push(o)}),this.calledBySuccess.forEach(o=>{o.addSuccessCall(this,e),t.push(o)}),this.calledByError.forEach(o=>{o.addErrorCall(this,e),t.push(o)}),this.parent.addReturnStatement(this),t.push(this.parent),this.subscribe(),this.subscribeToDependencies(),e==null||e.attemptAutoclose("add-self-to-project",this.id),{updated:p(t),added:p(i),removed:p(s),affected:p(l),self:this}}get calledBy(){return[...this.calledByEntry,...this.calledBySuccess,...this.calledByError]}addSuccessCaller(e,t=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"add-success-caller")),i=!1){return this.calledBySuccess.find(s=>s.id===e.id)||(this.calledBySuccess.push(e),t==null||t.add(this,A.Updated),i&&K(this,t)),t==null||t.attemptAutoclose("add-success-caller",this.id),this}addErrorCaller(e,t=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"add-error-caller")),i=!1){return this.calledByError.find(s=>s.id===e.id)||(this.calledByError.push(e),t==null||t.add(this,A.Updated),i&&K(this,t),t==null||t.attemptAutoclose("add-error-caller",this.id)),this}addEntryCaller(e,t=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"add-entry-caller")),i=!1){return this.calledByEntry.find(s=>s.id===e.id)||(this.calledByEntry.push(e),t==null||t.add(this,A.Updated),i&&K(this,t),t==null||t.attemptAutoclose("add-entry-caller",this.id)),this}removeCaller(e,t=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"remove-caller")),i=!1){return this.calledBySuccess=this.calledBySuccess.filter(s=>s.id!==e.id?(t&&(t==null||t.add(this,A.Updated),t==null||t.add(s,A.Affected)),!0):!1),this.calledByError=this.calledByError.filter(s=>s.id!==e.id?(t&&(t==null||t.add(this,A.Updated),t==null||t.add(s,A.Affected)),!0):!1),this.calledByEntry=this.calledByEntry.filter(s=>s.id!==e.id?(t&&(t==null||t.add(this,A.Updated),t==null||t.add(s,A.Affected)),!0):!1),i&&K(this,t),t==null||t.attemptAutoclose("remove-caller",this.id),this}addOutputDeclaration(e,t=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"add-output-declaration"))){return this.outputs.find(i=>i.id===e.id)||(this.outputs.push(e),t==null||t.add(this,A.Affected)),t==null||t.attemptAutoclose("add-output-declaration",this.id),this}removeOutputDeclaration(e,t=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"remove-output-declaration"))){return this.outputs.find(i=>i.id===e.id)&&(this.outputs=this.outputs.filter(i=>i.id!==e.id),t==null||t.add(this,A.Affected)),t==null||t.attemptAutoclose("remove-output-declaration",this.id),this}setParent(e,t=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"set-parent"))){var i;return((i=this.parent)==null?void 0:i.id)!==(e==null?void 0:e.id)&&(this.parent=e,t&&(t==null||t.add(this,A.Updated),t==null||t.attemptAutoclose("set-parent",this.id))),this}initChildren(e=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"init-children"))){return this.initialized||this.startedInitialization?this:(this.startedInitialization=!0,this.outputs=this.initialData.outputs.map(t=>{const i=C(t,this.project);return i.setParent(this,null),i.initChildren(e),i}),this.initialData.throws&&(this.throws=C(this.initialData.throws,this.project),this.throws.setParent(this,null),this.throws.initChildren(e)),this.subscribeToDependencies(),this.afterAllChildrenInitialized(e),e==null||e.attemptAutoclose("init-children",this.id),this)}subscribe(){return this.activeVersion=!0,this.project.subscribeInstance(this),this}unsubscribe(){return this.project.unsubscribeInstance(this),this}metaSync(e,t=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"meta-sync"))){const i=pt(this,e),s=this.toMeta();return this.x=e.x||s.x,this.y=e.y||s.y,super.metaSync(e),e.deleted===!0&&!s.deleted?t==null||t.add(this,A.Removed):e.deleted===!1&&s.deleted?t==null||t.add(this,A.Added):i&&(t==null||t.add(this,A.Updated)),t==null||t.attemptAutoclose("meta-sync",this.id),this}async APILoad(e=g,...t){return await nt.repository.APILoad(this.id,...t),this}async APICreate(e=g,...t){return await nt.repository.APICreate(this.toShallowJSON(),...t),this}async APIUpdate(e=g,...t){return await nt.repository.APIUpdate(this.toShallowJSON(),...t),this}async APIDelete(e=g,...t){return await nt.repository.APIDelete(this.toShallowJSON(),...t),this}async APIClone(e=g,...t){return await nt.repository.APIClone(this.id,...t),this}async APILoadVersion(e=g,t,...i){return await nt.repository.APILoadVersion(this.id,t,...i)}remove({ignoreUpstream:e}={ignoreUpstream:!1},t=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"remove-entity"))){const i=[],s=[],l=[],o=[];if(t!=null&&t.hasRemoved(this.id))return t==null||t.attemptAutoclose("remove-entity",this.id),{added:[],updated:[],removed:[],affected:[],self:this};if(s.push(this),this.unsubscribe(),this.project.subscribeDeletedInstance(this),this.metaSync({deleted:!0},t),Object.values(this.detachedDependents).forEach(d=>{const{updated:u,removed:y,added:c}=d.entity.onDetachedDependencyRemoved(this,d.field,t);i.push(...u),s.push(...y),l.push(...c)}),this.outputs.forEach(d=>{const{updated:u,removed:y}=d.remove({ignoreUpstream:!0},t);i.push(...u),s.push(...y)}),this.throws){const{updated:d,removed:u}=this.throws.remove({ignoreUpstream:!0},t);i.push(...d),s.push(...u)}return this.parent.removeReturnStatement(this),e||this.calledBy.forEach(d=>{i.push(d),d.removeCall(this,t)}),t==null||t.attemptAutoclose("remove-entity",this.id),{added:p(l),updated:p(i),removed:p(s),affected:p(o),self:this}}restore({}={},e=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"restore-entity"))){const t=[],i=[],s=[],l=[];if(e!=null&&e.hasAdded(this.id))return e==null||e.attemptAutoclose("restore-entity",this.id),{added:[],updated:[],removed:[],affected:[],self:this};if(this.subscribe(),this.project.unsubscribeDeletedInstance(this),this.metaSync({deleted:!1},e),this.outputs.forEach(o=>{const{updated:d}=o.restore({},e);i.push(...d)}),this.throws){const{updated:o}=this.throws.restore({},e);i.push(...o)}return this.parent.addReturnStatement(this),this.calledBySuccess.forEach(o=>{i.push(o),o.addSuccessCall(this,e)}),this.calledByError.forEach(o=>{i.push(o),o.addErrorCall(this,e)}),this.calledByEntry.forEach(o=>{i.push(o),o.addCall(this,e)}),e==null||e.attemptAutoclose("restore-entity",this.id),{added:p(t),updated:p(i),removed:p(s),affected:p(l),self:this}}toFlat(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this,...this.outputs.flatMap(i=>i.toFlat(e)),...this.throws?this.throws.toFlat(e):[]])}toFlatIds(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.id,...this.outputs.flatMap(i=>i.toFlatIds(e)),...this.throws?this.throws.toFlatIds(e):[]])}toMeta(){return{id:this.id,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,x:this.x,y:this.y,type:this.type}}toJSON(e=new Set){var t,i;return e.has(this.id)?this.toReference():(e.add(this.id),{id:this.id,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,type:this.type,x:this.x,y:this.y,calledBySuccess:this.calledBySuccess.map(s=>s.toReference()),calledByError:this.calledByError.map(s=>s.toReference()),calledByEntry:this.calledByEntry.map(s=>s.toReference()),outputs:this.outputs.map(s=>s.toJSON(e)),parent:((t=this.parent)==null?void 0:t.toReference())||null,throws:((i=this.throws)==null?void 0:i.toJSON(e))||null})}toJSONClone(e=q){var i,s,l,o,d,u,y;let t;return(i=e.seenEntityMaps)!=null&&i.has(this.id)?t=e.seenEntityMaps.get(this.id):(t=e.newId||ht(this,this.project,e.uuidStrategy),e.seenEntityMaps&&e.seenEntityMaps.set(this.id,t)),(s=e.seenEntities)!=null&&s.has(t)||(l=e.seenEntities)!=null&&l.has(this.id)?this.toReference({seenEntityMaps:e.seenEntityMaps}):((o=e.seenEntities)==null||o.add(t),(d=e.seenEntities)==null||d.add(this.id),{id:t,version:m.UUID.uuid(),createdAt:e.timestamp||T().toISOString(),previousVersion:null,author:this.author,deleted:this.deleted,type:this.type,x:this.x,y:this.y,calledBySuccess:this.calledBySuccess.map(c=>c.toReference({seenEntityMaps:e.seenEntityMaps})),calledByError:this.calledByError.map(c=>c.toReference({seenEntityMaps:e.seenEntityMaps})),calledByEntry:this.calledByEntry.map(c=>c.toReference({seenEntityMaps:e.seenEntityMaps})),outputs:this.outputs.map(c=>c.toJSONClone({...e,newId:null})),parent:((u=this.parent)==null?void 0:u.toReference({seenEntityMaps:e.seenEntityMaps}))||null,throws:((y=this.throws)==null?void 0:y.toJSONClone({...e,newId:null}))||null})}toReference(e=q){var i;let t=this.id;return(i=e.seenEntityMaps)!=null&&i.has(this.id)&&(t=e.seenEntityMaps.get(this.id)),{id:t+"--"+m.UUID.uuid()+"--ref",type:n.GenericReference,entityId:t,version:this.version,entityType:this.type}}toShallowJSON(e=q){var i,s,l;let t=this.id;return(i=e.seenEntityMaps)!=null&&i.has(this.id)&&(t=e.seenEntityMaps.get(this.id)),{id:t,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,type:this.type,x:this.x,y:this.y,outputs:this.outputs.map(o=>o.toReference(e)),calledBySuccess:this.calledBySuccess.map(o=>o.toReference(e)),calledByError:this.calledByError.map(o=>o.toReference(e)),calledByEntry:this.calledByEntry.map(o=>o.toReference(e)),throws:((s=this.throws)==null?void 0:s.toReference(e))||null,parent:((l=this.parent)==null?void 0:l.toReference(e))||null}}toFlatJSON(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.toShallowJSON(),...this.outputs.flatMap(i=>i.toFlatJSON(e)),...this.throws?this.throws.toFlatJSON(e):[]])}toGenerationTarget(){return{id:this.id,type:this.type,calledByEntry:this.calledByEntry.map(e=>e.id),calledByError:this.calledByError.map(e=>e.id),calledBySuccess:this.calledBySuccess.map(e=>e.id),parent:this.parent.id}}toFlatGenerationTarget(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.toGenerationTarget(),...this.outputs.flatMap(i=>i.toFlatGenerationTarget(e)),...this.throws?this.throws.toFlatGenerationTarget(e):[]])}clearErrors(){var e;return this.errors=[],this.outputs.forEach(t=>t.clearErrors()),(e=this.throws)==null||e.clearErrors(),this}validate(){const e=n1(this);return this.errors=e,{success:!0,error:null,data:this.toJSON()}}getErrors(){return[...this.errors,...this.outputs.flatMap(t=>t.getErrors())]}getShallowErrors(){return this.errors}clone(e=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"clone-entity")),t=null,i=null,s=!0){var E;let l=mt(t,this);const o=this.toJSON(),d=i||m.UUID.uuid();o.outputs=[];const u=d.split("-id"),y=u[u.length-1||0]||d;o.id=d,o.version=m.UUID.uuid(),o.createdAt=(e==null?void 0:e.timestamp)||T().toISOString(),o.author=(e==null?void 0:e.author)||"1",o.previousVersion=null,o.deleted=!1;const c=ct(o,l);t?c.setParent(t,null):c.setParent(this.parent,null),s&&c.subscribe(),c.initChildren(e),e==null||e.add(c,A.Added);const I=(E=this.outputs)==null?void 0:E.map((O,P)=>O.clone(e,c,y+"-return-declaration-"+P+"-id",s));return c.outputs=I,this.throws&&(c.throws=this.throws.clone(e,c,y+"-throws-id",s)),e==null||e.attemptAutoclose("clone-entity",this.id),c}};f(nt,"repository",{APICreate:async(e,...t)=>e,APIUpdate:async(e,...t)=>e,APIDelete:async(e,...t)=>e,APIClone:async(e,...t)=>{},APILoad:async(e,...t)=>null,APILoadVersion:async(e,t,...i)=>null}),f(nt,"type",n.ReturnStatement),f(nt,"USER_MANAGED_PARENT_TYPES",[...dt]),f(nt,"PARENT_TYPES",[...nt.USER_MANAGED_PARENT_TYPES]),f(nt,"MUTABLE_BASE_PROPERTIES",[]),f(nt,"INMUTABLE_BASE_PROPERTIES",["id","type","version","createdAt","author","previousVersion"]),f(nt,"BASE_PROPERTIES",[...Ft.MUTABLE_BASE_PROPERTIES,...Ft.INMUTABLE_BASE_PROPERTIES]),f(nt,"MUTABLE_META_PROPERTIES",["x","y"]),f(nt,"INMUTABLE_META_PROPERTIES",[...Ft.INMUTABLE_BASE_PROPERTIES]),f(nt,"META_PROPERTIES",[...Ft.MUTABLE_META_PROPERTIES,...Ft.INMUTABLE_META_PROPERTIES]),f(nt,"MUTABLE_UPSTREAM_PROPERTIES",["calledBySuccess","calledByError","calledByEntry","parent"]),f(nt,"INMUTABLE_UPSTREAM_PROPERTIES",[]),f(nt,"UPSTREAM_PROPERTIES",[...Ft.MUTABLE_UPSTREAM_PROPERTIES,...Ft.INMUTABLE_UPSTREAM_PROPERTIES]),f(nt,"MUTABLE_DOWNSTREAM_PROPERTIES",["outputs","throws"]),f(nt,"INMUTABLE_DOWNSTREAM_PROPERTIES",[]),f(nt,"DOWNSTREAM_PROPERTIES",[...Ft.MUTABLE_DOWNSTREAM_PROPERTIES,...Ft.INMUTABLE_DOWNSTREAM_PROPERTIES]),f(nt,"PROPERTIES",[...si.META_PROPERTIES,...si.UPSTREAM_PROPERTIES,...si.DOWNSTREAM_PROPERTIES]);let Ur=nt;function a1(r){const a=rZ(),e=r.toJSON();a.safeParse(e).success;const i=T7(r),s=I7(r),l=ai(r);r.inputs.forEach(d=>d.validate()),l.forEach(d=>d.validate());const o=[...i,...s];if(r.id==="getCompanyByIdEndpointReachedEntityEvent"){const d=de({id:`${r.id}--${F.PropertyImplementsNonAbstact}`,message:`Property "${x(r,r.project)}" with id "${r.id}" implements a non-abstract property "${x(r,r.project)}" with id "${r.id}".`,issue:null,severity:D.Error,code:F.PropertyImplementsNonAbstact,entity:r});o.push(d.error)}return Ye(r.errors,o)}function T7(r){const a=[];if(!r.calls.length){const e=de({id:`${r.id}--${F.ScopeWithoutLogic}`,message:`Action "${x(r,r.project)}" with id "${r.id}" does not have any logic defined. So it doesn't do anything.`,issue:null,severity:D.Warning,code:F.ScopeWithoutLogic,entity:r});a.push(e.error)}return Ye(r.errors,a)}function I7(r){const a=[];return r.implements,Ye(r.errors,a)}const E7=Object.freeze(Object.defineProperty({__proto__:null,validate:a1},Symbol.toStringTag,{value:"Module"}));var o1=(r=>(r.Implements="implements",r))(o1||{});const Re=class Re extends at{constructor(e,t){super(e);f(this,"initialData");f(this,"id");f(this,"name");f(this,"description",null);f(this,"x");f(this,"y");f(this,"collapsed");f(this,"private");f(this,"index",null);f(this,"type",n.FunctionDeclaration);f(this,"implements",null);f(this,"inputs",[]);f(this,"calls",[]);f(this,"parent");f(this,"detachedChildren",[]);f(this,"errors",[]);f(this,"project");f(this,"detachedDependents",{});f(this,"knownVersions",null);f(this,"activeVersion",!1);f(this,"initialized",!1);f(this,"startedInitialization",!1);f(this,"suggestion",!1);this.initialData=e,this.project=t,this.id=e.id,this.name=e.name,this.description=e.description,this.private=e.private,this.collapsed=e.collapsed,this.x=e.x,this.y=e.y,this.index=e.index}static new(){return{id:m.UUID.uuid(),version:m.UUID.uuid(),createdAt:T().toISOString(),author:m.sessionAuthor,previousVersion:null,deleted:!1,type:n.FunctionDeclaration,name:"",description:"",collapsed:!1,private:!1,index:null,implements:null,inputs:[],parent:null,calls:[],x:0,y:0}}static fromGenerationTarget(e,t){let i=t;if(e.parent){const d=_(e.parent);i=t.get(d)}let s=null;if(e.implements){const d=_(e.implements);s=t.get(d)}const l={id:e.id,version:m.UUID.uuid(),createdAt:T().toISOString(),author:m.sessionAuthor,previousVersion:null,deleted:!1,name:e.name,type:n.FunctionDeclaration,index:i.type===n.DefinitionEntity?i.methods.length:null,description:e.description,collapsed:!1,private:!1,calls:[],inputs:[],implements:s,x:0,y:0,parent:i},o=C(l,t);return o.setParent(i,null),o.initChildren(null),o}static validateGenerationTarget(e,t){var c;let i=JSON.parse(JSON.stringify(e));const s=[],l=At(i,{parent:{list:!1,types:[n.Project,n.InstalledProject,n.DefinitionEntity,n.Loop],optional:!0},implements:{list:!1,types:[n.ActionDescriptor],optional:!0}},t);i=l.modifiedData;const o=Ec(i,t),d=i.parent?t.get(i.parent):null;if(d&&d.type===n.DefinitionEntity){const I=d,O=xt(I).filter(P=>!P.interactive);if(O.length){let P=O.length>1?`The entity of type '${e.type}' with id '${e.id}' can't be added to the 'parent' entity with id '${I.id}' because it extends or implements multiple '${n.BuiltInBaseEntity}' entities that are non-interactive ("${ne(O.map(V=>x(V,V.project)),'", "','" and "')}").`:`The entity of type '${e.type}' with id '${e.id}' can't be added to the 'parent' entity with id '${I.id}' because it extends or implements a '${n.BuiltInBaseEntity}' entity that is non-interactive ("${x(O[0],O[0].project)}").`;P+=`
61
61
  ${zr}`,s.push(new w({id:`${e.id}--${R.NonInteractiveEntityReferenced}`,code:R.NonInteractiveEntityReferenced,severity:D.Error,message:P,issue:null}))}else{const P=I.methods.find(G=>{var B;return((B=G.implements)==null?void 0:B.id)===i.implements});P&&s.push(new w({id:`${i.id}--${j.MethodOverwritesOtherSiblingWithSameImplementation}`,code:j.MethodOverwritesOtherSiblingWithSameImplementation,severity:D.Error,message:`The '${n.FunctionDeclaration}' with id "${i.id}" is trying to implement the '${n.ActionDescriptor}' with id "${i.implements}", but the parent definition-entity already has a ${n.FunctionDeclaration} with id '${P.id}' that implements the same base method.
62
62
  A ${n.FunctionDeclaration} that has a parent of type '${n.DefinitionEntity}' is considered a method of that entity, and cannot implement the same '${n.ActionDescriptor}' more than once.
63
63
  ${n.ActionDescriptor} entities inside a ${n.DefinitionEntity} are considered abstract methods that can be implemented by ${n.FunctionDeclaration} entities inside the same parent.
@@ -261,48 +261,48 @@ ${typeof r=="string"?r:JSON.stringify(r,null,2)}
261
261
  }`;return Yi(t)}default:return""}}function x1(r,a){const e=JSON.parse(JSON.stringify(r)),t=[];if(lt.includes(a.type))t.push(new w({id:`${r.id}--${a.id}--${R.InvalidReference}`,code:R.InvalidReference,severity:D.Warning,message:`Entity of type "${r.type}" with id "${r.id}", has a reference to an entry-point entity at 'calledBySuccess' with id "${a.id}".
262
262
  Entry-point entities can only be referenced as 'calledByEntry'.
263
263
  ${Ba}
264
- We have moved the reference to 'calledByEntry' for you.`,issue:null})),e.calledByEntry.push(a.id),e.calledBySuccess=e.calledBySuccess.filter(i=>i!==a.id);else if(nt.includes(a.type)){const i=a.calledBy||[],s=i.length?`
264
+ We have moved the reference to 'calledByEntry' for you.`,issue:null})),e.calledByEntry.push(a.id),e.calledBySuccess=e.calledBySuccess.filter(i=>i!==a.id);else if(st.includes(a.type)){const i=a.calledBy||[],s=i.length?`
265
265
 
266
266
  This ${a.type} is called by ${ne(i.map(l=>`${l.type} with id "${l.id}"`),", "," and ")} entities. You can reference ${i.length>1?"one of them":"it"} instead to execute this entity before the end of the logic.`:"";t.push(new w({id:`${r.id}--${a.id}--${R.InvalidReference}`,code:R.InvalidReference,severity:D.Error,message:`Entity of type "${r.type}" with id "${r.id}", has a reference to a '${a.type}' entity at 'calledBySuccess' with id "${a.id}".
267
267
  ${a.type} entities are the last entity to be executed in a logic chain, and they don't call any other entities.
268
- Termination entities are ${ne(nt,", "," and ")}.${s}`,issue:null}))}else if(!ot.includes(a.type))t.push(new w({id:`${r.id}--${a.id}--${R.InvalidReference}`,code:R.InvalidReference,severity:D.Error,message:`Entity of type "${r.type}" with id "${r.id}", has a reference to a caller entity at 'calledBySuccess' with id "${a.id}" that isn't a pass-through callable entity.
268
+ Termination entities are ${ne(st,", "," and ")}.${s}`,issue:null}))}else if(!ot.includes(a.type))t.push(new w({id:`${r.id}--${a.id}--${R.InvalidReference}`,code:R.InvalidReference,severity:D.Error,message:`Entity of type "${r.type}" with id "${r.id}", has a reference to a caller entity at 'calledBySuccess' with id "${a.id}" that isn't a pass-through callable entity.
269
269
  ${Jr}`,issue:null}));else if(!Ni.includes(a.type))return t.push(new w({id:`${r.id}--${a.id}--${R.InvalidReference}`,code:R.InvalidReference,severity:D.Error,message:`Entity of type "${r.type}" with id "${r.id}", has a reference to a caller entity at 'calledBySuccess' with id "${a.id}" that isn't a caller entity.
270
270
  All caller entity types are: ${ne(Ni,", "," and ")}.
271
271
  For the 'calledBySuccess' property, you specifically need to reference a pass-through callable entity.
272
272
  ${Jr}`,issue:null})),{errors:t,modifiedData:e};return{errors:t,modifiedData:e}}function k1(r,a){const e=[];if(lt.includes(a.type))e.push(new w({id:`${r.id}--${a.id}--${R.InvalidReference}`,code:R.InvalidReference,severity:D.Error,message:`Entity of type "${r.type}" with id "${r.id}", has a reference to an entry-point entity at 'calledByError' with id "${a.id}".
273
273
  Entry-point entities can only be referenced as 'calledByEntry'.
274
- ${Ba}`,issue:null}));else if(nt.includes(a.type)){const t=a.calledBy||[],i=t.length?`
274
+ ${Ba}`,issue:null}));else if(st.includes(a.type)){const t=a.calledBy||[],i=t.length?`
275
275
 
276
276
  This ${a.type} is called by ${ne(t.map(s=>`${s.type} with id "${s.id}"`),", "," and ")} entities. You can reference ${t.length>1?"one of them":"it"} instead to execute this entity before the end of the logic.`:"";e.push(new w({id:`${r.id}--${a.id}--${R.InvalidReference}`,code:R.InvalidReference,severity:D.Error,message:`Entity of type "${r.type}" with id "${r.id}", has a reference to a '${a.type}' entity at 'calledByError' with id "${a.id}".
277
277
  ${a.type} entities are the last entity to be executed in a logic chain, and they don't call any other entities.
278
- Termination entities are ${ne(nt,", "," and ")}.${i}`,issue:null}))}else if(!ot.includes(a.type))e.push(new w({id:`${r.id}--${a.id}--${R.InvalidReference}`,code:R.InvalidReference,severity:D.Error,message:`Entity of type "${r.type}" with id "${r.id}", has a reference to a caller entity at 'calledByError' with id "${a.id}" that isn't a pass-through callable entity.
278
+ Termination entities are ${ne(st,", "," and ")}.${i}`,issue:null}))}else if(!ot.includes(a.type))e.push(new w({id:`${r.id}--${a.id}--${R.InvalidReference}`,code:R.InvalidReference,severity:D.Error,message:`Entity of type "${r.type}" with id "${r.id}", has a reference to a caller entity at 'calledByError' with id "${a.id}" that isn't a pass-through callable entity.
279
279
  ${Jr}`,issue:null}));else if(!Ni.includes(a.type))return e.push(new w({id:`${r.id}--${a.id}--${R.InvalidReference}`,code:R.InvalidReference,severity:D.Error,message:`Entity of type "${r.type}" with id "${r.id}", has a reference to a caller entity at 'calledByError' with id "${a.id}" that isn't a caller entity.
280
280
  All caller entity types are: ${ne(Ni,", "," and ")}.
281
281
  For the 'calledByError' property, you specifically need to reference a pass-through callable entity.
282
- ${Jr}`,issue:null})),e;return e}function S1(r,a){const e=[];if(nt.includes(a.type)){const t=a.calledBy||[],i=t.length?`
282
+ ${Jr}`,issue:null})),e;return e}function S1(r,a){const e=[];if(st.includes(a.type)){const t=a.calledBy||[],i=t.length?`
283
283
 
284
284
  This ${a.type} is called by ${ne(t.map(s=>`${s.type} with id "${s.id}"`),", "," and ")} entities. You can reference ${t.length>1?"one of them":"it"} instead to execute this entity before the end of the logic.`:"";e.push(new w({id:`${r.id}--${a.id}--${R.InvalidReference}`,code:R.InvalidReference,severity:D.Error,message:`Entity of type "${r.type}" with id "${r.id}", has a reference to a '${a.type}' entity at 'calledByEntry' with id "${a.id}".
285
285
  ${a.type} entities are the last entity to be executed in a logic chain, and they don't call any other entities.
286
- Termination entities are ${ne(nt,", "," and ")}.${i}`,issue:null}))}else if(ot.includes(a.type))e.push(new w({id:`${r.id}--${a.id}--${R.InvalidReference}`,code:R.InvalidReference,severity:D.Warning,message:`Entity of type "${r.type}" with id "${r.id}", has a reference to a caller entity at 'calledByEntry' with id "${a.id}" that is a pass-through callable entity, not an entry-point entity.
286
+ Termination entities are ${ne(st,", "," and ")}.${i}`,issue:null}))}else if(ot.includes(a.type))e.push(new w({id:`${r.id}--${a.id}--${R.InvalidReference}`,code:R.InvalidReference,severity:D.Warning,message:`Entity of type "${r.type}" with id "${r.id}", has a reference to a caller entity at 'calledByEntry' with id "${a.id}" that is a pass-through callable entity, not an entry-point entity.
287
287
  ${Jr}.
288
288
  ${Ba}.
289
289
 
290
290
  We have moved the reference to 'calledBySuccess' for you.`,issue:null}));else if(!Ni.includes(a.type))return e.push(new w({id:`${r.id}--${a.id}--${R.InvalidReference}`,code:R.InvalidReference,severity:D.Error,message:`Entity of type "${r.type}" with id "${r.id}", has a reference to a caller entity at 'calledByEntry' with id "${a.id}" that isn't a caller entity.
291
291
  All caller entity types are: ${ne(Ni,", "," and ")}.
292
292
  For the 'calledByEntry' property, you specifically need to reference a pass-through callable entity.
293
- ${Jr}`,issue:null})),e;return e}function Z1(r,a){const e=[];let t=JSON.parse(JSON.stringify(r));if(Mi.includes(t.type)){if(t.calledBySuccess){const s=$l(t,"calledBySuccess",a);s.errors.length===0?s.entities.forEach(l=>{if(l.errors.length){e.push(...l.errors);return}const o=x1(t,l.entityState);t=o.modifiedData,e.push(...o.errors)}):e.push(...s.errors)}if(t.calledByError){const s=$l(t,"calledByError",a);s.errors.length===0?s.entities.forEach(l=>{if(l.errors.length){e.push(...l.errors);return}const o=k1(t,l.entityState);e.push(...o)}):e.push(...s.errors)}if(t.calledByEntry){const s=$l(t,"calledByEntry",a);s.errors.length===0?(s.entities.forEach(l=>{if(l.errors.length){e.push(...l.errors);return}const o=S1(t,l.entityState);e.push(...o)}),e.push(...e)):e.push(...s.errors)}const i=[...t.calledBySuccess||[],...t.calledByError||[],...t.calledByEntry||[]];if(i.length){const s=[...new Set(i)];i.length!==s.length&&e.push(new w({id:`${t.id}--${R.DuplicateReference}`,code:R.DuplicateReference,severity:D.Warning,message:`Entity of type "${t.type}" with id "${t.id}" has duplicate caller references. Each caller reference should be unique. Duplicate caller reference will be ignored.`,issue:null}));const l=kt(t,a);t.type===n.ReturnStatement&&l&&!lt.includes(l.type)?e.push(new w({id:`${t.id}--${R.IncompatibleScope}`,code:R.IncompatibleScope,severity:D.Error,message:`Entity of type "${t.type}" with id "${t.id}" has an explicitly set parent, but it isn't a '${ne(lt,"', '","' or '")}' entity. A return statement's parent should always be resolved to a function declaration or global event.${Fl}`,issue:null})):t.type===n.ContinueStatement&&l&&l.type!==n.Loop?e.push(new w({id:`${t.id}--${R.IncompatibleScope}`,code:R.IncompatibleScope,severity:D.Error,message:`Entity of type "${t.type}" with id "${t.id}" has an explicitly set parent, but it isn't a '${n.Loop}' entity. A continue statement's parent should always be resolved to a loop entity.${Fl}`,issue:null})):t.type===n.BreakStatement&&l&&l.type!==n.Loop&&e.push(new w({id:`${t.id}--${R.IncompatibleScope}`,code:R.IncompatibleScope,severity:D.Error,message:`Entity of type "${t.type}" with id "${t.id}" has an explicitly set parent, but it isn't a '${n.Loop}' entity. A break statement's parent should always be resolved to a loop entity.${Fl}`,issue:null}));const o=[],d=[];let u=null;if(s.forEach(y=>{const c=a.get(y);if(!c){e.push(new w({id:`${t.id}--${y}--${R.ReferencedEntityNotFound}`,code:R.ReferencedEntityNotFound,severity:D.Error,message:`Entity of type "${r.type}" with id "${r.id}", has a reference to a caller entity with id "${y}" that doesn't exist in the project.`,issue:null}));return}const I=kt(c,a);if(l)Ua(l,I,a)?(nt.includes(t.type)&&((t.calledBySuccess||[]).find(O=>O===c.id)?(c.successCalls||[]).find(V=>nt.includes(V.type))&&e.push(new w({id:`${t.id}--${c.id}--${j.UnreachableEntity}`,code:j.UnreachableEntity,severity:D.Error,message:`Entity of type "${t.type}" with id "${t.id}" is being called by an entity of type "${c.type}" with id "${c.id}" that already calls a termination statement.
294
- The new termination statement is redundant because both entities would be called from the same parent caller branch "successCalls", at the same time.`,issue:null})):(t.calledByError||[]).find(O=>O===c.id)?(c.errorCalls||[]).find(V=>nt.includes(V.type))&&e.push(new w({id:`${t.id}--${c.id}--${j.UnreachableEntity}`,code:j.UnreachableEntity,severity:D.Error,message:`Entity of type "${t.type}" with id "${t.id}" is being called by an entity of type "${c.type}" with id "${c.id}" that already calls a termination statement.
295
- The new termination statement is redundant because both entities would be called from the same parent caller branch "errorCalls", at the same time.`,issue:null})):(t.calledByEntry||[]).find(O=>O===c.id)&&(c.calls||[]).find(V=>nt.includes(V.type))&&e.push(new w({id:`${t.id}--${c.id}--${j.UnreachableEntity}`,code:j.UnreachableEntity,severity:D.Error,message:`Entity of type "${t.type}" with id "${t.id}" is being called by an entity of type "${c.type}" with id "${c.id}" that already calls a termination statement.
296
- The new termination statement is redundant because both entities would be called from the same parent caller branch (entry-point), at the same time.`,issue:null}))),o.push({caller:c,scope:I})):d.push({caller:c,scope:I,errors:[new w({id:`${t.id}--${c.id}--${R.CallerWithIncompatibleScope}`,code:R.CallerWithIncompatibleScope,severity:D.Warning,message:`Entity of type "${t.type}" with id "${t.id}" is being called by an entity of type "${c.type}" with id "${c.id}" that is in a different scope. The caller entity should be in the same scope or a higher valid scope. Or all callers should share the global project scope with the entity they call.`,issue:null})]});else if(!u)u=I;else{const{compatible:E}=Ua(u,I,a);E?(nt.includes(t.type)&&((t.calledBySuccess||[]).find(O=>O===c.id)?(c.successCalls||[]).find(V=>nt.includes(V.type))&&e.push(new w({id:`${t.id}--${c.id}--${j.UnreachableEntity}`,code:j.UnreachableEntity,severity:D.Error,message:`Entity of type "${t.type}" with id "${t.id}" is being called by an entity of type "${c.type}" with id "${c.id}" that already calls a termination statement.
297
- The new termination statement is redundant because both entities would be called from the same parent caller branch "successCalls", at the same time.`,issue:null})):(t.calledByError||[]).find(O=>O===c.id)?(c.errorCalls||[]).find(V=>nt.includes(V.type))&&e.push(new w({id:`${t.id}--${c.id}--${j.UnreachableEntity}`,code:j.UnreachableEntity,severity:D.Error,message:`Entity of type "${t.type}" with id "${t.id}" is being called by an entity of type "${c.type}" with id "${c.id}" that already calls a termination statement.
298
- The new termination statement is redundant because both entities would be called from the same parent caller branch "errorCalls", at the same time.`,issue:null})):(t.calledByEntry||[]).find(O=>O===c.id)&&(c.calls||[]).find(V=>nt.includes(V.type))&&e.push(new w({id:`${t.id}--${c.id}--${j.UnreachableEntity}`,code:j.UnreachableEntity,severity:D.Error,message:`Entity of type "${t.type}" with id "${t.id}" is being called by an entity of type "${c.type}" with id "${c.id}" that already calls a termination statement.
293
+ ${Jr}`,issue:null})),e;return e}function Z1(r,a){const e=[];let t=JSON.parse(JSON.stringify(r));if(Mi.includes(t.type)){if(t.calledBySuccess){const s=$l(t,"calledBySuccess",a);s.errors.length===0?s.entities.forEach(l=>{if(l.errors.length){e.push(...l.errors);return}const o=x1(t,l.entityState);t=o.modifiedData,e.push(...o.errors)}):e.push(...s.errors)}if(t.calledByError){const s=$l(t,"calledByError",a);s.errors.length===0?s.entities.forEach(l=>{if(l.errors.length){e.push(...l.errors);return}const o=k1(t,l.entityState);e.push(...o)}):e.push(...s.errors)}if(t.calledByEntry){const s=$l(t,"calledByEntry",a);s.errors.length===0?(s.entities.forEach(l=>{if(l.errors.length){e.push(...l.errors);return}const o=S1(t,l.entityState);e.push(...o)}),e.push(...e)):e.push(...s.errors)}const i=[...t.calledBySuccess||[],...t.calledByError||[],...t.calledByEntry||[]];if(i.length){const s=[...new Set(i)];i.length!==s.length&&e.push(new w({id:`${t.id}--${R.DuplicateReference}`,code:R.DuplicateReference,severity:D.Warning,message:`Entity of type "${t.type}" with id "${t.id}" has duplicate caller references. Each caller reference should be unique. Duplicate caller reference will be ignored.`,issue:null}));const l=kt(t,a);t.type===n.ReturnStatement&&l&&!lt.includes(l.type)?e.push(new w({id:`${t.id}--${R.IncompatibleScope}`,code:R.IncompatibleScope,severity:D.Error,message:`Entity of type "${t.type}" with id "${t.id}" has an explicitly set parent, but it isn't a '${ne(lt,"', '","' or '")}' entity. A return statement's parent should always be resolved to a function declaration or global event.${Fl}`,issue:null})):t.type===n.ContinueStatement&&l&&l.type!==n.Loop?e.push(new w({id:`${t.id}--${R.IncompatibleScope}`,code:R.IncompatibleScope,severity:D.Error,message:`Entity of type "${t.type}" with id "${t.id}" has an explicitly set parent, but it isn't a '${n.Loop}' entity. A continue statement's parent should always be resolved to a loop entity.${Fl}`,issue:null})):t.type===n.BreakStatement&&l&&l.type!==n.Loop&&e.push(new w({id:`${t.id}--${R.IncompatibleScope}`,code:R.IncompatibleScope,severity:D.Error,message:`Entity of type "${t.type}" with id "${t.id}" has an explicitly set parent, but it isn't a '${n.Loop}' entity. A break statement's parent should always be resolved to a loop entity.${Fl}`,issue:null}));const o=[],d=[];let u=null;if(s.forEach(y=>{const c=a.get(y);if(!c){e.push(new w({id:`${t.id}--${y}--${R.ReferencedEntityNotFound}`,code:R.ReferencedEntityNotFound,severity:D.Error,message:`Entity of type "${r.type}" with id "${r.id}", has a reference to a caller entity with id "${y}" that doesn't exist in the project.`,issue:null}));return}const I=kt(c,a);if(l)Ua(l,I,a)?(st.includes(t.type)&&((t.calledBySuccess||[]).find(O=>O===c.id)?(c.successCalls||[]).find(V=>st.includes(V.type))&&e.push(new w({id:`${t.id}--${c.id}--${j.UnreachableEntity}`,code:j.UnreachableEntity,severity:D.Error,message:`Entity of type "${t.type}" with id "${t.id}" is being called by an entity of type "${c.type}" with id "${c.id}" that already calls a termination statement.
294
+ The new termination statement is redundant because both entities would be called from the same parent caller branch "successCalls", at the same time.`,issue:null})):(t.calledByError||[]).find(O=>O===c.id)?(c.errorCalls||[]).find(V=>st.includes(V.type))&&e.push(new w({id:`${t.id}--${c.id}--${j.UnreachableEntity}`,code:j.UnreachableEntity,severity:D.Error,message:`Entity of type "${t.type}" with id "${t.id}" is being called by an entity of type "${c.type}" with id "${c.id}" that already calls a termination statement.
295
+ The new termination statement is redundant because both entities would be called from the same parent caller branch "errorCalls", at the same time.`,issue:null})):(t.calledByEntry||[]).find(O=>O===c.id)&&(c.calls||[]).find(V=>st.includes(V.type))&&e.push(new w({id:`${t.id}--${c.id}--${j.UnreachableEntity}`,code:j.UnreachableEntity,severity:D.Error,message:`Entity of type "${t.type}" with id "${t.id}" is being called by an entity of type "${c.type}" with id "${c.id}" that already calls a termination statement.
296
+ The new termination statement is redundant because both entities would be called from the same parent caller branch (entry-point), at the same time.`,issue:null}))),o.push({caller:c,scope:I})):d.push({caller:c,scope:I,errors:[new w({id:`${t.id}--${c.id}--${R.CallerWithIncompatibleScope}`,code:R.CallerWithIncompatibleScope,severity:D.Warning,message:`Entity of type "${t.type}" with id "${t.id}" is being called by an entity of type "${c.type}" with id "${c.id}" that is in a different scope. The caller entity should be in the same scope or a higher valid scope. Or all callers should share the global project scope with the entity they call.`,issue:null})]});else if(!u)u=I;else{const{compatible:E}=Ua(u,I,a);E?(st.includes(t.type)&&((t.calledBySuccess||[]).find(O=>O===c.id)?(c.successCalls||[]).find(V=>st.includes(V.type))&&e.push(new w({id:`${t.id}--${c.id}--${j.UnreachableEntity}`,code:j.UnreachableEntity,severity:D.Error,message:`Entity of type "${t.type}" with id "${t.id}" is being called by an entity of type "${c.type}" with id "${c.id}" that already calls a termination statement.
297
+ The new termination statement is redundant because both entities would be called from the same parent caller branch "successCalls", at the same time.`,issue:null})):(t.calledByError||[]).find(O=>O===c.id)?(c.errorCalls||[]).find(V=>st.includes(V.type))&&e.push(new w({id:`${t.id}--${c.id}--${j.UnreachableEntity}`,code:j.UnreachableEntity,severity:D.Error,message:`Entity of type "${t.type}" with id "${t.id}" is being called by an entity of type "${c.type}" with id "${c.id}" that already calls a termination statement.
298
+ The new termination statement is redundant because both entities would be called from the same parent caller branch "errorCalls", at the same time.`,issue:null})):(t.calledByEntry||[]).find(O=>O===c.id)&&(c.calls||[]).find(V=>st.includes(V.type))&&e.push(new w({id:`${t.id}--${c.id}--${j.UnreachableEntity}`,code:j.UnreachableEntity,severity:D.Error,message:`Entity of type "${t.type}" with id "${t.id}" is being called by an entity of type "${c.type}" with id "${c.id}" that already calls a termination statement.
299
299
  The new termination statement is redundant because both entities would be called from the same parent caller branch (entry-point), at the same time.`,issue:null}))),o.push({caller:c,scope:I})):d.push({caller:c,scope:I,errors:[new w({id:`${t.id}--${c.id}--${R.CallerWithIncompatibleScope}`,code:R.CallerWithIncompatibleScope,severity:D.Warning,message:`Entity of type "${t.type}" with id "${t.id}" has multiple caller, but not all of them have compatible scopes. Caller of type "${c.type}" with id "${c.id}" is in a different scope than caller of type "${u.type}" with id "${u.id}". All callers should be in the same scope or a higher valid scope. Or all callers should share the global project scope.`,issue:null})]})}}),d.length)d.forEach(y=>{e.push(...y.errors)});else if(o.length&&!l&&ud.includes(t.type)){const y=o.filter(c=>c.scope!==a);if(y.length){const c=ew(y.map(I=>I.scope));t.parent=c.id}else t.parent=a.id}}else{let s=`Entity of type "${t.type}" with id "${t.id}" isn't called by any other entity. Callable entities only get executed if they have a list of references from either 'calledByEntry', 'calledBySuccess' or 'calledByError'.
300
300
  To add a caller, use the 'add_caller' action with the properties: 'callerEntityId', a 'calleeEntityId', and optionally a boolean 'fromError' (if the caller calls when an error occured in its execution).`;t.type===n.ReturnStatement?s+=`
301
301
  Return statements need to have a caller when created, since their purpose is to terminate a call chain.`:t.type===n.ContinueStatement?s+=`
302
302
  Continue statements need to have a caller when created, since they are used to skip the rest of the current iteration of a loop and can't be detached from a call chain.`:t.type===n.BreakStatement&&(s+=`
303
303
  Break statements need to have a caller when created, since they are used to exit a loop and can't be detached from a call chain.`),s+=`
304
- ${G1}`,nt.includes(t.type)||(s+=`
305
- It is recommended to have a caller reference already at the moment of creation in the payload of the generation action.`),e.push(new w({id:`${t.id}--${j.MissingCaller}`,code:j.MissingCaller,severity:nt.includes(t.type)?D.Error:D.Warning,message:s,issue:null}))}}return{errors:e,modifiedData:t}}function Fc(r,a){const e=[];if(a.type===n.LiteralValue){const l=a.parent;let o=!1;if(l.type===n.InputMap)e.push(new w({id:`${r.id}--${a.id}--${R.InvalidReference}`,code:R.InvalidReference,severity:D.Error,message:`Entity of type "${r.type}" with id "${r.id}", has a reference to a value writting entity at 'readsValue' with id "${a.id}" that is a literal value entity. Literal value entities aren't value writting entities.
304
+ ${G1}`,st.includes(t.type)||(s+=`
305
+ It is recommended to have a caller reference already at the moment of creation in the payload of the generation action.`),e.push(new w({id:`${t.id}--${j.MissingCaller}`,code:j.MissingCaller,severity:st.includes(t.type)?D.Error:D.Warning,message:s,issue:null}))}}return{errors:e,modifiedData:t}}function Fc(r,a){const e=[];if(a.type===n.LiteralValue){const l=a.parent;let o=!1;if(l.type===n.InputMap)e.push(new w({id:`${r.id}--${a.id}--${R.InvalidReference}`,code:R.InvalidReference,severity:D.Error,message:`Entity of type "${r.type}" with id "${r.id}", has a reference to a value writting entity at 'readsValue' with id "${a.id}" that is a literal value entity. Literal value entities aren't value writting entities.
306
306
  All value writting entity types are: ${ne(Tt,", "," and ")}.
307
307
 
308
308
  This literal-value entity belongs to an input map entity with id "${l.id}". Input map entities are value writting entities. Is that what you meant to reference?`,issue:null}));else if(l.type===n.DataType){const d=l,u=d.parent;Tt.includes(u.type)?e.push(new w({id:`${r.id}--${a.id}--${R.InvalidReference}`,code:R.InvalidReference,severity:D.Error,message:`Entity of type "${r.type}" with id "${r.id}", has a reference to a value writting entity at 'readsValue' with id "${a.id}" that is a literal value entity. Literal value entities can't be referenced as value writting entities.
@@ -324,16 +324,16 @@ ${$c}`,issue:null})):i.push(new w({id:`${l.id}--${R.InvalidReference}`,code:R.In
324
324
  ${jc}`,issue:null})),delete s.readsValue);l.writesValues&&(Tt.includes(l.type)?i.push(new w({id:`${l.id}--${R.InvalidReference}`,code:R.InvalidReference,severity:D.Warning,message:`Entity of type "${l.type}" with id "${l.id}" has a 'writesValues' property. This property is managed by the downstream entity, the value reader, and should not be present in the payload of the generation action.
325
325
  ${Gc}`,issue:null})):i.push(new w({id:`${l.id}--${R.InvalidReference}`,code:R.InvalidReference,severity:D.Warning,message:`Entity of type "${l.type}" with id "${l.id}" has a 'writesValues' property. This property is managed by the downstream entity, the value reader, and should not be present in the payload of the generation action.
326
326
  ${Gl}
327
- ${Gc}`,issue:null})),delete s.writesValues);const d=Z1(l,e);delete s.calledByError,delete s.calledBySuccess,delete s.calledByEntry,i.push(...d.errors),l=d.modifiedData}const o=Object.entries(s);for(const[d,u]of o){const y=u.types,c=u.optional,I=l[d];if(!I){c||i.push(new w({id:`${l.id}--${d}--${j.InvalidObjectStructure}`,code:j.InvalidObjectStructure,severity:D.Error,message:`Entity of type "${l.type}" with id "${l.id}" is missing a reference to a "${d}" entity. The '${d}' property of a "${l.type}" entity can be ${ne(y,", "," or ")}`,issue:null}));continue}if(u.list)if(Array.isArray(I))for(const E of I){const O=Lc(l,{key:d,types:y,optional:c},e);i.push(...O)}else{i.push(new w({id:`${l.id}--${d}--${R.ContainsSingleButShouldBeReferenceList}`,code:R.ContainsSingleButShouldBeReferenceList,severity:D.Error,message:`Entity of type "${l.type}" with id "${l.id}", should have a property "${d}" which is a list, but it isn't.`,issue:null}));continue}else if(Array.isArray(I)){i.push(new w({id:`${l.id}--${d}--${R.ContainsListButShouldReferenceSingle}`,code:R.ContainsListButShouldReferenceSingle,severity:D.Error,message:`Entity of type "${l.type}" with id "${l.id}", should have a property "${d}" which holds a single reference, but it is a list.`,issue:null}));continue}else{const E=Lc(l,{key:d,types:y,optional:c},e);i.push(...E)}}return{errors:i,modifiedData:l}}function X7(r,a,e="calledBy"){const t=[];if(!r)return[];const i=a.get(r);if(!i)return t.push(new w({id:`${r}--${R.ReferencedEntityNotFound}`,code:R.ReferencedEntityNotFound,severity:D.Error,message:`Entity with id "${r}" referenced in '${e}' property not found in the project. Perhaps it should be created first? Perhaps it is the wrong ID?`,issue:null})),t;if([...ot,...lt].includes(i.type))return[];if(nt.includes(i.type)){const s=i.calledBy||[],l=s.length?`
327
+ ${Gc}`,issue:null})),delete s.writesValues);const d=Z1(l,e);delete s.calledByError,delete s.calledBySuccess,delete s.calledByEntry,i.push(...d.errors),l=d.modifiedData}const o=Object.entries(s);for(const[d,u]of o){const y=u.types,c=u.optional,I=l[d];if(!I){c||i.push(new w({id:`${l.id}--${d}--${j.InvalidObjectStructure}`,code:j.InvalidObjectStructure,severity:D.Error,message:`Entity of type "${l.type}" with id "${l.id}" is missing a reference to a "${d}" entity. The '${d}' property of a "${l.type}" entity can be ${ne(y,", "," or ")}`,issue:null}));continue}if(u.list)if(Array.isArray(I))for(const E of I){const O=Lc(l,{key:d,types:y,optional:c},e);i.push(...O)}else{i.push(new w({id:`${l.id}--${d}--${R.ContainsSingleButShouldBeReferenceList}`,code:R.ContainsSingleButShouldBeReferenceList,severity:D.Error,message:`Entity of type "${l.type}" with id "${l.id}", should have a property "${d}" which is a list, but it isn't.`,issue:null}));continue}else if(Array.isArray(I)){i.push(new w({id:`${l.id}--${d}--${R.ContainsListButShouldReferenceSingle}`,code:R.ContainsListButShouldReferenceSingle,severity:D.Error,message:`Entity of type "${l.type}" with id "${l.id}", should have a property "${d}" which holds a single reference, but it is a list.`,issue:null}));continue}else{const E=Lc(l,{key:d,types:y,optional:c},e);i.push(...E)}}return{errors:i,modifiedData:l}}function X7(r,a,e="calledBy"){const t=[];if(!r)return[];const i=a.get(r);if(!i)return t.push(new w({id:`${r}--${R.ReferencedEntityNotFound}`,code:R.ReferencedEntityNotFound,severity:D.Error,message:`Entity with id "${r}" referenced in '${e}' property not found in the project. Perhaps it should be created first? Perhaps it is the wrong ID?`,issue:null})),t;if([...ot,...lt].includes(i.type))return[];if(st.includes(i.type)){const s=i.calledBy||[],l=s.length?`
328
328
 
329
329
  This ${i.type} is called by ${ne(s.map(o=>`${o.type} with id "${o.id}"`),", "," and ")} entities. You can reference ${s.length>1?"one of them":"it"} instead to execute this entity before the end of the logic.`:"";t.push(new w({id:`last-action--${i.id}--${R.InvalidReference}`,code:R.InvalidReference,severity:D.Error,message:`Entity with id '${i.id}' referenced in '${e}' property is of type '${i.type}'.
330
330
  ${i.type} entities are the last entity to be executed in a logic chain, and they don't call any other entities.
331
- Termination entities are ${ne(nt,", "," and ")}.${l}`,issue:null}))}else t.push(new w({id:`last-action--${i.id}--${R.InvalidReference}`,code:R.InvalidReference,severity:D.Error,message:`Entity with id '${i.id}' referenced in '${e}' property is of type '${i.type}' which is not a valid caller entity type.
332
- All caller entity types are: ${ne(Ni,", "," and ")}.`,issue:null}));return t}function Q7(r,a,e="calledByError"){const t=[];if(!r)return[];const i=a.get(r);if(!i)return t.push(new w({id:`${r}--${R.ReferencedEntityNotFound}`,code:R.ReferencedEntityNotFound,severity:D.Error,message:`Entity with id "${r}" referenced in '${e}' property not found in the project. Perhaps it should be created first? Perhaps it is the wrong ID?`,issue:null})),t;if(ot.includes(i.type))return[];if(nt.includes(i.type)){const s=i.calledBy||[],l=s.length?`
331
+ Termination entities are ${ne(st,", "," and ")}.${l}`,issue:null}))}else t.push(new w({id:`last-action--${i.id}--${R.InvalidReference}`,code:R.InvalidReference,severity:D.Error,message:`Entity with id '${i.id}' referenced in '${e}' property is of type '${i.type}' which is not a valid caller entity type.
332
+ All caller entity types are: ${ne(Ni,", "," and ")}.`,issue:null}));return t}function Q7(r,a,e="calledByError"){const t=[];if(!r)return[];const i=a.get(r);if(!i)return t.push(new w({id:`${r}--${R.ReferencedEntityNotFound}`,code:R.ReferencedEntityNotFound,severity:D.Error,message:`Entity with id "${r}" referenced in '${e}' property not found in the project. Perhaps it should be created first? Perhaps it is the wrong ID?`,issue:null})),t;if(ot.includes(i.type))return[];if(st.includes(i.type)){const s=i.calledBy||[],l=s.length?`
333
333
 
334
334
  This ${i.type} is called by ${ne(s.map(o=>`${o.type} with id "${o.id}"`),", "," and ")} entities. You can reference ${s.length>1?"one of them":"it"} instead to execute this entity before the end of the logic.`:"";t.push(new w({id:`last-action--${i.id}--${R.InvalidReference}`,code:R.InvalidReference,severity:D.Error,message:`Entity with id '${i.id}' referenced in '${e}' property is of type '${i.type}'.
335
335
  ${i.type} entities are the last entity to be executed in a logic chain, and they don't call any other entities.
336
- Termination entities are ${ne(nt,", "," and ")}.${l}`,issue:null}))}else lt.includes(i.type)?t.push(new w({id:`last-action--${i.id}--${R.InvalidReference}`,code:R.InvalidReference,severity:D.Error,message:`Entity with id '${i.id}' referenced in '${e}' property is of type '${i.type}' which is an entry-point entity and doesn't thrown errors.
336
+ Termination entities are ${ne(st,", "," and ")}.${l}`,issue:null}))}else lt.includes(i.type)?t.push(new w({id:`last-action--${i.id}--${R.InvalidReference}`,code:R.InvalidReference,severity:D.Error,message:`Entity with id '${i.id}' referenced in '${e}' property is of type '${i.type}' which is an entry-point entity and doesn't thrown errors.
337
337
  ${Ba}`,issue:null})):t.push(new w({id:`last-action--${i.id}--${R.InvalidReference}`,code:R.InvalidReference,severity:D.Error,message:`Entity with id '${i.id}' referenced in '${e}' property is of type '${i.type}' which is not a valid caller entity type.
338
338
  For any error branch caller, for the 'calledByError' property of an entity, you specifically need to reference a pass-through callable entity.
339
339
  ${Jr}`,issue:null}));return t}function eJ(r,a){const e=[],t=a.get(r);if(!t)e.push(new w({id:`last-action--${R.ReferencedEntityNotFound}`,code:R.ReferencedEntityNotFound,severity:D.Error,message:`The 'readsValue' property references an entity with id '${r}' that was not found in the project. Perhaps it should be created? Perhaps the ID is incorrect?`,issue:null}));else if(t.type===n.LiteralValue){const s=t.parent;let l=!1;if(s.type===n.InputMap)e.push(new w({id:`last-action--${t.id}--${R.InvalidReference}`,code:R.InvalidReference,severity:D.Error,message:`The 'readsValue' property references an entity with id "${t.id}" that is a literal value entity. Literal value entities aren't value writting entities.
@@ -388,21 +388,21 @@ ${i} is not a template, but ${l} is. A data type that provides an entity as a "t
388
388
  Their 'entity' property is of different types. They must be of the same type to be connected. For example, the 'entity' can be a '${n.DefinitionEntity}' or a '${n.PrimitiveEntity}'.`:e.type===bi.IncompatibleDefinitionEntities?`${o}
389
389
  Both point to definition entities, but they are not compatible to be connected. They must be either the same definition entity, or a definition entity that has equivalent shape, which includes the same properties all with compatible data types with the properties in the counterpart entity.`:e.type===bi.IncompatiblePrimitiveEntities?`${o}
390
390
  ${i} is of primitive type '${((d=r.getDataType(null))==null?void 0:d.entity).name}' and ${l} is of primitive type '${((u=a.getDataType(null))==null?void 0:u.entity).name}'. They must be of the same primitive type to be connected.`:e.type===bi.IncompatibleBuiltInBaseEntities?`${o}
391
- Both point to a built-in-base-entity. But${i} is of built-in base type '${((y=r.getDataType(null))==null?void 0:y.entity).name}' and ${l} is of built-in base type '${((c=a.getDataType(null))==null?void 0:c.entity).name}'. They must be of the same built-in base type to be connected.`:o}function _a(r,a){const e=[];if(r.readsValue){const t=a.project.get(_(r.readsValue));if(a.project.getBuiltIn(_(r.readsValue)))e.push(new w({id:`${a.id}--${R.InvalidBuiltInEntityReference}`,code:R.InvalidBuiltInEntityReference,severity:D.Error,message:`The entity of type '${a.type}' with id '${a.id}' cannot update 'readsValue' to a built-in entity with id '${r.readsValue}'. Only user-created entities can be referenced.`,issue:null}));else if(!t)e.push(new w({id:`${a.id}--${R.ReferencedEntityNotFound}`,code:R.ReferencedEntityNotFound,severity:D.Error,message:`The entity of type '${a.type}' with id '${a.id}' cannot update 'readsValue' to entity with id '${r.readsValue}' because the entity was not found in the project state.`,issue:null}));else{const s=Kr(t);if(s)e.push(new w({id:`${a.id}--${R.InvalidBuiltInEntityReference}`,code:R.InvalidBuiltInEntityReference,severity:D.Error,message:`The entity of type '${a.type}' with id '${a.id}' cannot update 'readsValue' to entity with id '${r.readsValue}' because the entity belongs to a built-in '${s.type}' entity with id '${s.id}' (${x(s,a.project)}) higher up in the tree.`,issue:null}));else{const l=Fc({...a.toGenerationTarget(),...r},t);e.push(...l);const o=Ri(a.getDataType(null),t.getDataType(null));o.compatible||e.push(new w({id:`${a.id}--${j.ReaderWriterIncompatibleDataType}`,code:j.ReaderWriterIncompatibleDataType,severity:D.Error,message:z1(a,t,o),issue:null}))}}}return{errors:e,modifiedData:r}}function mr(r){const a=[];if(r.parent===r.project)!r.calledBy.length&&r.type!==n.VariableDeclaration&&a.push(new st({id:`${r.id}--${F.DisconnectedCallableEntity}`,code:F.DisconnectedCallableEntity,severity:D.Warning,message:`This '${r.type}' entity "${x(r,r.project)}" with id "${r.id}" is globally declared and isn't called by any other entity.
391
+ Both point to a built-in-base-entity. But${i} is of built-in base type '${((y=r.getDataType(null))==null?void 0:y.entity).name}' and ${l} is of built-in base type '${((c=a.getDataType(null))==null?void 0:c.entity).name}'. They must be of the same built-in base type to be connected.`:o}function _a(r,a){const e=[];if(r.readsValue){const t=a.project.get(_(r.readsValue));if(a.project.getBuiltIn(_(r.readsValue)))e.push(new w({id:`${a.id}--${R.InvalidBuiltInEntityReference}`,code:R.InvalidBuiltInEntityReference,severity:D.Error,message:`The entity of type '${a.type}' with id '${a.id}' cannot update 'readsValue' to a built-in entity with id '${r.readsValue}'. Only user-created entities can be referenced.`,issue:null}));else if(!t)e.push(new w({id:`${a.id}--${R.ReferencedEntityNotFound}`,code:R.ReferencedEntityNotFound,severity:D.Error,message:`The entity of type '${a.type}' with id '${a.id}' cannot update 'readsValue' to entity with id '${r.readsValue}' because the entity was not found in the project state.`,issue:null}));else{const s=Kr(t);if(s)e.push(new w({id:`${a.id}--${R.InvalidBuiltInEntityReference}`,code:R.InvalidBuiltInEntityReference,severity:D.Error,message:`The entity of type '${a.type}' with id '${a.id}' cannot update 'readsValue' to entity with id '${r.readsValue}' because the entity belongs to a built-in '${s.type}' entity with id '${s.id}' (${x(s,a.project)}) higher up in the tree.`,issue:null}));else{const l=Fc({...a.toGenerationTarget(),...r},t);e.push(...l);const o=Ri(a.getDataType(null),t.getDataType(null));o.compatible||e.push(new w({id:`${a.id}--${j.ReaderWriterIncompatibleDataType}`,code:j.ReaderWriterIncompatibleDataType,severity:D.Error,message:z1(a,t,o),issue:null}))}}}return{errors:e,modifiedData:r}}function mr(r){const a=[];if(r.parent===r.project)!r.calledBy.length&&r.type!==n.VariableDeclaration&&a.push(new tt({id:`${r.id}--${F.DisconnectedCallableEntity}`,code:F.DisconnectedCallableEntity,severity:D.Warning,message:`This '${r.type}' entity "${x(r,r.project)}" with id "${r.id}" is globally declared and isn't called by any other entity.
392
392
  Globally declared callable entities will not be part of any logic execution when the project is published.
393
393
  To useful to the project when it is published, entities need to be called by a chain of logic that traces itself back to an entry point. Entry points can be either '${n.GlobalEvent}' or '${n.FunctionDeclaration}'.
394
394
  The only use for declaring global callable entities is for a 'variable-declaration' entity to be available globally in the project's scope, since its instances can be used inside lower scopes.
395
395
  Or for a logic that the user is going to manually test themselves by clicking on the user-interface.`,issue:null,entity:r}));else{const e=ga(r);if(!e.reachable){let t=`This '${r.type}' entity "${x(r,r.project)}" with id "${r.id}" is not reachable from the project's closest entry point '${e.entryPoint.type}' "${x(e.entryPoint,r.project)}".`;t+=`
396
396
  This is because there are termination statements in the call chain before reaching this '${r.type}'.
397
397
  If a caller entity calls a termination statement, it will always prevent all other calls from executing.`;let i=`
398
- This '${r.type}' is blocked `;e.blocks.forEach((s,l)=>{const o=s.blockedByCaller,d=s.blockedByCalling;l===0?i+="by ":l===e.blocks.length-1&&(i+="and by "),i+=`its ancestor "${x(o,r.project)}" with id "${o.id}" that calls a '${d.type}' entity with id "${d.id}"`,l<e.blocks.length-1?i+=", ":i+="."}),a.push(new st({id:`${r.id}--${j.UnreachableEntity}`,code:j.UnreachableEntity,severity:D.Warning,message:`${t}${i}`,issue:null,entity:r}))}}return Ye(r.errors,a)}function xc(r){const a=[];if(!r.internalCalls.length)return a;if(r.readsValue){const e=de({id:`${r.id}--${F.VariableReadsValueAndInternalCall}`,message:`Variable "${x(r,r.project)}" with id "${r.id}" reads a value. A variable with internal calls can't read a value.`,issue:null,severity:D.Error,code:F.VariableReadsValueAndInternalCall,entity:r});a.push(e.error)}if(r.writesValues.length){const e=de({id:`${r.id}--${F.VariableWritesValuesAndInternalCall}`,message:`Variable "${x(r,r.project)}" with id "${r.id}" writes values. A variable with internal calls can't write a value.`,issue:null,severity:D.Error,code:F.VariableWritesValuesAndInternalCall,entity:r});a.push(e.error)}if(r.getUsedInputs().length){const e=de({id:`${r.id}--${F.VariableHasInputsAndInternalCall}`,message:`Variable "${x(r,r.project)}" with id "${r.id}" has inputs. A variable with internal calls can't have inputs.`,issue:null,severity:D.Error,code:F.VariableHasInputsAndInternalCall,entity:r});a.push(e.error)}if(r.getUsedOutputs().length){const e=de({id:`${r.id}--${F.VariableHasOutputsAndInternalCall}`,message:`Variable "${x(r,r.project)}" with id "${r.id}" has outputs. A variable with internal calls can't have outputs.`,issue:null,severity:D.Error,code:F.VariableHasOutputsAndInternalCall,entity:r});a.push(e.error)}if(r.calledBy.length){const e=de({id:`${r.id}--${F.VariableIsCalledAndHasInternalCall}`,message:`Variable "${x(r,r.project)}" with id "${r.id}" is called by other entities. A variable with internal calls can't be called by other entities.`,issue:null,severity:D.Error,code:F.VariableIsCalledAndHasInternalCall,entity:r});a.push(e.error)}if([...r.successCalls,...r.errorCalls].length){const e=de({id:`${r.id}--${F.VariableCallsOthersAndHasInternalCall}`,message:`Variable "${x(r,r.project)}" with id "${r.id}" calls other entities. A variable with internal calls can't call other entities.`,issue:null,severity:D.Error,code:F.VariableCallsOthersAndHasInternalCall,entity:r});a.push(e.error)}return a}function Y1(r){var l;const a=R5(),e=r.toJSON();a.safeParse(e).success,r.inputs.forEach(o=>o.validate()),r.outputs.forEach(o=>o.validate()),(l=r.error)==null||l.validate();const s=[...mr(r)];return Ye(r.errors,s)}const nJ=Object.freeze(Object.defineProperty({__proto__:null,validate:Y1},Symbol.toStringTag,{value:"Module"}));var H1=(r=>(r.Parent="parent",r.Declaration="declaration",r))(H1||{});const Ze=class Ze extends at{constructor(e,t){super(e);f(this,"initialData");f(this,"id");f(this,"x");f(this,"y");f(this,"type",n.FunctionCall);f(this,"successCalls",[]);f(this,"errorCalls",[]);f(this,"process",null);f(this,"declaration");f(this,"inputs",[]);f(this,"outputs",[]);f(this,"calledBySuccess",[]);f(this,"calledByError",[]);f(this,"calledByEntry",[]);f(this,"error",null);f(this,"parent");f(this,"errors",[]);f(this,"project");f(this,"detachedDependents",{});f(this,"knownVersions",null);f(this,"activeVersion",!1);f(this,"initialized",!1);f(this,"startedInitialization",!1);this.initialData=e,this.project=t,this.id=e.id,this.x=e.x,this.y=e.y}static new(){return{id:m.UUID.uuid(),version:m.UUID.uuid(),createdAt:T().toISOString(),author:m.sessionAuthor,previousVersion:null,deleted:!1,type:n.FunctionCall,declaration:null,inputs:[],outputs:[],process:null,error:null,parent:null,calledByEntry:[],calledBySuccess:[],calledByError:[],errorCalls:[],successCalls:[],x:0,y:0}}static fromGenerationTarget(e,t){let i=t;if(e.parent){const I=_(e.parent);i=t.get(I)}const s=_(e.declaration),l=t.get(s),o=e.calledByEntry.map(I=>{const E=_(I);return t.get(E)}),d=e.calledBySuccess.map(I=>{const E=_(I);return t.get(E)}),u=e.calledByError.map(I=>{const E=_(I);return t.get(E)}),y={id:e.id,version:m.UUID.uuid(),createdAt:T().toISOString(),author:m.sessionAuthor,previousVersion:null,deleted:!1,type:n.FunctionCall,declaration:l.toReference(),calledByEntry:o,calledBySuccess:d,calledByError:u,errorCalls:[],successCalls:[],inputs:[],outputs:[],process:null,error:null,x:0,y:0,parent:i},c=C(y,t);return c.setParent(i,null),c.initChildren(null),c}static validateGenerationTarget(e,t){let i=JSON.parse(JSON.stringify(e));const s=[],l=At(i,{parent:{list:!1,types:[...dt,n.Project],optional:!0}},t);i=l.modifiedData,s.push(...l.errors,...ut(i));const o=_(i.declaration);if(o){const d=J1(o,t);s.push(...d)}else{const d=t.functions.length?`
398
+ This '${r.type}' is blocked `;e.blocks.forEach((s,l)=>{const o=s.blockedByCaller,d=s.blockedByCalling;l===0?i+="by ":l===e.blocks.length-1&&(i+="and by "),i+=`its ancestor "${x(o,r.project)}" with id "${o.id}" that calls a '${d.type}' entity with id "${d.id}"`,l<e.blocks.length-1?i+=", ":i+="."}),a.push(new tt({id:`${r.id}--${j.UnreachableEntity}`,code:j.UnreachableEntity,severity:D.Warning,message:`${t}${i}`,issue:null,entity:r}))}}return Ye(r.errors,a)}function xc(r){const a=[];if(!r.internalCalls.length)return a;if(r.readsValue){const e=de({id:`${r.id}--${F.VariableReadsValueAndInternalCall}`,message:`Variable "${x(r,r.project)}" with id "${r.id}" reads a value. A variable with internal calls can't read a value.`,issue:null,severity:D.Error,code:F.VariableReadsValueAndInternalCall,entity:r});a.push(e.error)}if(r.writesValues.length){const e=de({id:`${r.id}--${F.VariableWritesValuesAndInternalCall}`,message:`Variable "${x(r,r.project)}" with id "${r.id}" writes values. A variable with internal calls can't write a value.`,issue:null,severity:D.Error,code:F.VariableWritesValuesAndInternalCall,entity:r});a.push(e.error)}if(r.getUsedInputs().length){const e=de({id:`${r.id}--${F.VariableHasInputsAndInternalCall}`,message:`Variable "${x(r,r.project)}" with id "${r.id}" has inputs. A variable with internal calls can't have inputs.`,issue:null,severity:D.Error,code:F.VariableHasInputsAndInternalCall,entity:r});a.push(e.error)}if(r.getUsedOutputs().length){const e=de({id:`${r.id}--${F.VariableHasOutputsAndInternalCall}`,message:`Variable "${x(r,r.project)}" with id "${r.id}" has outputs. A variable with internal calls can't have outputs.`,issue:null,severity:D.Error,code:F.VariableHasOutputsAndInternalCall,entity:r});a.push(e.error)}if(r.calledBy.length){const e=de({id:`${r.id}--${F.VariableIsCalledAndHasInternalCall}`,message:`Variable "${x(r,r.project)}" with id "${r.id}" is called by other entities. A variable with internal calls can't be called by other entities.`,issue:null,severity:D.Error,code:F.VariableIsCalledAndHasInternalCall,entity:r});a.push(e.error)}if([...r.successCalls,...r.errorCalls].length){const e=de({id:`${r.id}--${F.VariableCallsOthersAndHasInternalCall}`,message:`Variable "${x(r,r.project)}" with id "${r.id}" calls other entities. A variable with internal calls can't call other entities.`,issue:null,severity:D.Error,code:F.VariableCallsOthersAndHasInternalCall,entity:r});a.push(e.error)}return a}function Y1(r){var l;const a=R5(),e=r.toJSON();a.safeParse(e).success,r.inputs.forEach(o=>o.validate()),r.outputs.forEach(o=>o.validate()),(l=r.error)==null||l.validate();const s=[...mr(r)];return Ye(r.errors,s)}const nJ=Object.freeze(Object.defineProperty({__proto__:null,validate:Y1},Symbol.toStringTag,{value:"Module"}));var H1=(r=>(r.Parent="parent",r.Declaration="declaration",r))(H1||{});const Ze=class Ze extends at{constructor(e,t){super(e);f(this,"initialData");f(this,"id");f(this,"x");f(this,"y");f(this,"type",n.FunctionCall);f(this,"successCalls",[]);f(this,"errorCalls",[]);f(this,"process",null);f(this,"declaration");f(this,"inputs",[]);f(this,"outputs",[]);f(this,"calledBySuccess",[]);f(this,"calledByError",[]);f(this,"calledByEntry",[]);f(this,"error",null);f(this,"parent");f(this,"errors",[]);f(this,"project");f(this,"detachedDependents",{});f(this,"knownVersions",null);f(this,"activeVersion",!1);f(this,"initialized",!1);f(this,"startedInitialization",!1);this.initialData=e,this.project=t,this.id=e.id,this.x=e.x,this.y=e.y}static new(){return{id:m.UUID.uuid(),version:m.UUID.uuid(),createdAt:T().toISOString(),author:m.sessionAuthor,previousVersion:null,deleted:!1,type:n.FunctionCall,declaration:null,inputs:[],outputs:[],process:null,error:null,parent:null,calledByEntry:[],calledBySuccess:[],calledByError:[],errorCalls:[],successCalls:[],x:0,y:0}}static fromGenerationTarget(e,t){let i=t;if(e.parent){const I=_(e.parent);i=t.get(I)}const s=_(e.declaration),l=t.get(s),o=e.calledByEntry.map(I=>{const E=_(I);return t.get(E)}),d=e.calledBySuccess.map(I=>{const E=_(I);return t.get(E)}),u=e.calledByError.map(I=>{const E=_(I);return t.get(E)}),y={id:e.id,version:m.UUID.uuid(),createdAt:T().toISOString(),author:m.sessionAuthor,previousVersion:null,deleted:!1,type:n.FunctionCall,declaration:l.toReference(),calledByEntry:o,calledBySuccess:d,calledByError:u,errorCalls:[],successCalls:[],inputs:[],outputs:[],process:null,error:null,x:0,y:0,parent:i},c=C(y,t);return c.setParent(i,null),c.initChildren(null),c}static validateGenerationTarget(e,t){let i=JSON.parse(JSON.stringify(e));const s=[],l=At(i,{parent:{list:!1,types:[...dt,n.Project],optional:!0}},t);i=l.modifiedData,s.push(...l.errors,...ut(i));const o=_(i.declaration);if(o){const d=J1(o,t);s.push(...d)}else{const d=t.functions.length?`
399
399
  All global 'function-declaration' entity ids are:
400
400
  - ${t.functions.map(u=>`${u.id} (${x(u,t)})`).join(`
401
401
  - `)}.`:`
402
402
  The project currently has no global 'function-declaration' entities that can be called as 'function-call' entities.`;s.push(new w({id:`${i.id}--${R.InvalidReference}`,code:R.InvalidReference,severity:D.Error,message:`Entity of type "${n.FunctionCall}" with id "${i.id}", has an invalid reference at the 'declaration' property. The 'declaration' property must be a valid reference to an 'function-declaration' entity.
403
403
  References can either be an ID string or an object with exacly four properties: 'id', 'entityId', 'entityType', 'type'.${d}`,issue:null}))}return{errors:s,modifiedData:i}}validateGeneratedUpdate(e){const t=[];return e.parent&&t.push(new w({id:`${this.id}--${R.InvalidParentUpdate}`,code:R.InvalidParentUpdate,severity:D.Error,message:`Entity of type '${this.type}' with id '${this.id}' cannot have the 'parent' property updated. The 'parent' on a callable entity, is its scope. It scope is auto-calculated implicitly by the its caller.
404
404
  If an entity is called by another, they must be in the same scope, which means they have the same parent.
405
- You shouldn't have to manually update a 'parent' property. The equivalent result is to change its callers, the value writters of its inputs, or the value readers of its outputs.`,issue:null})),{errors:t,modifiedData:e}}subscribeDependents(e){return e.forEach(t=>{this.detachedDependents[t.entity.id]||(this.detachedDependents[t.entity.id]=t)}),this}syncDependents(){const e=[],t=[],i=[],s=[];return Object.values(this.detachedDependents).forEach(l=>{const o=l.entity.afterAllChildrenInitialized();e.push(...o.updated),t.push(...o.added),i.push(...o.removed),s.push(...o.affected)}),{updated:p(e),added:p(t),removed:p(i),affected:p(s),self:this}}onDetachedDependencyRemoved(e,t,i){const s=[],l=[],o=[],d=[];if(t==="declaration"){const{updated:u,added:y,removed:c}=this.remove({ignoreUpstream:!1},i);s.push(...u),l.push(...y),o.push(...c)}if(t==="parent"){const{updated:u,added:y,removed:c}=this.remove({ignoreUpstream:!1},i);s.push(...u),l.push(...y),o.push(...c)}return{updated:p(s),added:p(l),removed:p(o),affected:p(d),self:this}}onDetachedDependencyRestored(e,t,i){const s=[],l=[],o=[],d=[];if(t==="declaration"){const{updated:u,added:y,removed:c}=this.restore({},i);s.push(...u),l.push(...y),o.push(...c)}if(t==="parent"){const{updated:u,added:y,removed:c}=this.restore({},i);s.push(...u),l.push(...y),o.push(...c)}return{updated:p(s),added:p(l),removed:p(o),affected:p(d),self:this}}subscribeToDependencies(){var e;return(e=this.parent)==null||e.subscribeDependents([{entity:this,field:"parent"}]),this.declaration.subscribeDependents([{entity:this,field:"declaration"}]),this}increaseVersion(e){if(e&&!T(e).isValid())throw new Error(`The shared timestamp '${e}' is not a valid ISO 8601 date string.`);return e&&T(e).isSame(T(this.createdAt))?this:(this.previousVersion=this.version,this.version=m.UUID.uuid(),this.createdAt=T(e).toISOString()||T().toISOString(),this)}captureVersion(){var t;const e=((t=this.knownVersions)==null?void 0:t.get(this.version))||new Ze(this,this.project);return e.metaSync(this.toMeta(),null),this.knownVersions=this.knownVersions?this.knownVersions.set(this.version,e):new Map([[this.version,e]]),e.inputs=this.inputs,e.outputs=this.outputs,e.error=this.error,e.successCalls=this.successCalls,e.errorCalls=this.errorCalls,e.process=this.process,e.declaration=this.declaration,e.calledBySuccess=this.calledBySuccess,e.calledByError=this.calledByError,e.calledByEntry=this.calledByEntry,e.parent=this.parent,this}recursiveCaptureUpstreamVersions(e){const t=[],i=[],s=[],l=[];if(this.parent){this.parent.increaseVersion(e);const o=this.parent.recursiveCaptureUpstreamVersions(e);t.push(this.parent,...o.updated),i.push(...o.added),s.push(...o.removed)}return{updated:p(t),added:p(i),removed:p(s),affected:p(l),self:this}}async restoreVersion(e){var d;const t=[],i=[],s=[],l=[];if(this.version===e)return{updated:p(t),added:p(i),removed:p(s),affected:p(l),self:this};if(!this.knownVersions){const u=new Map;for(const[y,c]of this.knownVersions||new Map){if(u.set(y,c),c.activeVersion=!1,c.knownVersions)for(const[I,E]of c.knownVersions)u.set(I,E);c.knownVersions=null}}let o=(d=this.knownVersions)==null?void 0:d.get(e);if(!o){const u=await this.APILoadVersion({},e);if(!u)throw new Error(`Version with id '${e}' for entity with id '${this.id}' not found.`);o=new Ze(u,this.project)}return this.metaSync(o.toShallowJSON(),null),this.inputs=o.inputs,this.outputs=o.outputs,this.error=o.error,this.successCalls=o.successCalls,this.errorCalls=o.errorCalls,this.process=o.process,this.declaration=o.declaration,this.calledBySuccess=o.calledBySuccess,this.calledByError=o.calledByError,this.calledByEntry=o.calledByEntry,this.parent=o.parent,{updated:p(t),added:p(i),removed:p(s),affected:p(l),self:this}}hydrateAncestors(){const e=[],t=[],i=[],s=[];if(this.initialData.parent){const l=_(this.initialData.parent),o=this.project.get(l);if(o)this.setParent(o,null),e.push(o);else throw new Error(`${this.type} with id '${this.id}' has a 'parent' reference '${l}' that isn't found in the project`)}else throw new Error(`${this.type} with id '${this.id}' must have a 'parent'`);if(this.initialData.declaration){const l=_(this.initialData.declaration),o=this.project.get(l);o&&(this.setDeclaration(o),e.push(o))}return this.initialData.calledByEntry.forEach(l=>{const o=_(l),d=this.project.get(o);d&&(this.addEntryCaller(d,null),e.push(d))}),this.initialData.calledBySuccess.forEach(l=>{const o=_(l),d=this.project.get(o);d&&(this.addSuccessCaller(d,null),e.push(d))}),this.initialData.calledByError.forEach(l=>{const o=_(l),d=this.project.get(o);d&&(this.addErrorCaller(d,null),e.push(d))}),{updated:p(e),added:p(t),removed:p(i),affected:p(s),self:this}}afterAllChildrenInitialized(e=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"after-all-children-initialized"))){const t=[],i=[],s=[],l=[];this.initialized=!0,this.captureVersion();const{updated:o,added:d,removed:u}=this.syncMissingFixedInputs(e),{updated:y,added:c,removed:I}=this.syncMissingFixedOutputs(e);return t.push(...o,...y),i.push(...d,...c),s.push(...u,...I),e==null||e.attemptAutoclose("after-all-children-initialized",this.id),{updated:p(t),added:p(i),removed:p(s),affected:p(l),self:this}}addSelfToProject(e=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"add-self-to-project"))){var o;const t=[this],i=[],s=[],l=[];return this.parent===this.project&&this.project.addFunctionCall(this),(o=this.process)==null||o.writesValues.forEach(d=>{d.setValueWriter(this.process,e),t.push(d)}),this.successCalls.forEach(d=>{d.addSuccessCaller(this,e),t.push(d)}),this.errorCalls.forEach(d=>{d.addErrorCaller(this,e),t.push(d)}),this.calledBySuccess.forEach(d=>{d.addSuccessCall(this,e),t.push(d)}),this.calledByError.forEach(d=>{d.addErrorCall(this,e),t.push(d)}),this.calledByEntry.forEach(d=>{d.addCall(this,e),t.push(d)}),this.subscribe(),this.subscribeToDependencies(),e==null||e.attemptAutoclose("add-self-to-project",this.id),{updated:p(t),added:p(i),removed:p(s),affected:p(l),self:this}}get calledBy(){return[...this.calledByEntry,...this.calledBySuccess,...this.calledByError]}removeInput(e,t=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"remove-input"))){const i=this.inputs.findIndex(s=>s.id===e.id);return i>-1&&(this.inputs.splice(i,1),t&&(t==null||t.add(this,A.Affected))),t==null||t.attemptAutoclose("remove-input",this.id),this}addInput(e,t=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"add-input"))){return this.inputs.includes(e)?(t==null||t.attemptAutoclose("add-input",this.id),this):(this.inputs.push(e),t==null||t.add(this,A.Affected),t==null||t.attemptAutoclose("add-input",this.id),this)}addOutput(e,t=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"add-output"))){return this.outputs.includes(e)?(t==null||t.attemptAutoclose("add-output",this.id),this):(this.outputs.push(e),t==null||t.add(this,A.Affected),t==null||t.attemptAutoclose("add-output",this.id),this)}removeOutput(e,t=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"remove-output"))){const i=this.outputs.findIndex(s=>s.id===e.id);return i>-1&&(this.outputs.splice(i,1),t&&(t==null||t.add(this,A.Affected))),t==null||t.attemptAutoclose("remove-output",this.id),this}addValueReader(e,t=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"add-value-reader"))){var i;return this.process&&!this.process.writesValues.includes(e)&&((i=this.process)==null||i.addValueReader(e,t),t==null||t.add(this,A.Affected)),t==null||t.attemptAutoclose("add-value-reader",this.id),this}removeValueReader(e,t=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"remove-value-reader"))){var i;return this.process&&this.process.writesValues.includes(e)&&((i=this.process)==null||i.removeValueReader(e,t),t==null||t.add(this,A.Affected)),t==null||t.attemptAutoclose("remove-value-reader",this.id),this}addSuccessCaller(e,t=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"add-success-caller")),i=!1){return this.calledBySuccess.find(s=>s.id===e.id)||(this.calledBySuccess.push(e),t==null||t.add(this,A.Updated),i&&K(this,t)),t==null||t.attemptAutoclose("add-success-caller",this.id),this}addErrorCaller(e,t=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"add-error-caller")),i=!1){return this.calledByError.find(s=>s.id===e.id)||(this.calledByError.push(e),t==null||t.add(this,A.Updated),i&&K(this,t),t==null||t.attemptAutoclose("add-error-caller",this.id)),this}addEntryCaller(e,t=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"add-entry-caller")),i=!1){return this.calledByEntry.find(s=>s.id===e.id)||(this.calledByEntry.push(e),t==null||t.add(this,A.Updated),i&&K(this,t),t==null||t.attemptAutoclose("add-entry-caller",this.id)),this}addErrorCall(e,t=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"add-error-call")),i=!1){return this.errorCalls.find(s=>s.id===e.id)||(this.errorCalls.push(e),i&&K(this,t),t==null||t.add(this,A.Affected)),t==null||t.attemptAutoclose("add-error-call",this.id),this}addSuccessCall(e,t=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"add-success-call")),i=!1){return this.successCalls.find(s=>s.id===e.id)||(this.successCalls.push(e),i&&K(this,t),t==null||t.add(this,A.Affected)),t==null||t.attemptAutoclose("add-success-call",this.id),this}removeCall(e,t=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"remove-call")),i=!1){const s=this.successCalls.findIndex(o=>o.id===e.id);s>-1&&(this.successCalls.splice(s,1),t==null||t.add(this,A.Affected));const l=this.errorCalls.findIndex(o=>o.id===e.id);return l>-1&&(this.errorCalls.splice(l,1),t==null||t.add(this,A.Affected)),i&&K(this,t),t==null||t.attemptAutoclose("remove-call",this.id),this}removeCaller(e,t=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"remove-caller")),i=!1){return this.calledBySuccess=this.calledBySuccess.filter(s=>s.id!==e.id?(t&&(t==null||t.add(this,A.Updated),t==null||t.add(s,A.Affected)),!0):!1),this.calledByError=this.calledByError.filter(s=>s.id!==e.id?(t&&(t==null||t.add(this,A.Updated),t==null||t.add(s,A.Affected)),!0):!1),this.calledByEntry=this.calledByEntry.filter(s=>s.id!==e.id?(t&&(t==null||t.add(this,A.Updated),t==null||t.add(s,A.Affected)),!0):!1),i&&K(this,t),t==null||t.attemptAutoclose("remove-caller",this.id),this}setParent(e,t=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"set-parent"))){var i;return((i=this.parent)==null?void 0:i.id)!==(e==null?void 0:e.id)&&(this.parent=e,t&&(t==null||t.add(this,A.Updated),t==null||t.attemptAutoclose("set-parent",this.id))),this}setDeclaration(e){return this.declaration=e,this}initChildren(e=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"init-children"))){if(this.initialized||this.startedInitialization)return this;if(this.startedInitialization=!0,this.initialData.declaration.type===n.FunctionDeclaration){const t=C(this.initialData.declaration,this.project);this.declaration=t}else{const t=_(this.initialData.declaration),i=this.project.get(t);this.declaration=i}return this.successCalls=this.initialData.successCalls.map(t=>{const i=C(t,this.project);return i.addSuccessCaller(this),[n.BreakStatement,n.ContinueStatement].includes(i.type)?(i.setParent(this.parent.parent,null),i.initChildren(e)):i.type!==n.InternalCall&&(i.setParent(this.parent,null),i.initChildren(e)),i}),this.errorCalls=this.initialData.errorCalls.map(t=>{const i=C(t,this.project);return i.addErrorCaller(this),[n.BreakStatement,n.ContinueStatement].includes(i.type)?(i.setParent(this.parent.parent,null),i.initChildren(e)):i.type!==n.InternalCall&&(i.setParent(this.parent,null),i.initChildren(e)),i}),this.inputs=this.initialData.inputs.map(t=>{const i=C(t,this.project);return i.setParent(this,null),i.initChildren(e),i}),this.initialData.process&&(this.process=C(this.initialData.process,this.project),this.process.setParent(this,null),this.process.initChildren(e)),this.initialData.error&&(this.error=C(this.initialData.error,this.project),this.error.setParent(this,null),this.error.initChildren(e)),this.subscribeToDependencies(),this.afterAllChildrenInitialized(e),e==null||e.attemptAutoclose("init-children",this.id),this}subscribe(){return this.activeVersion=!0,this.project.subscribeInstance(this),this}unsubscribe(){return this.project.unsubscribeInstance(this),this}metaSync(e,t=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"meta-sync"))){const i=pt(this,e),s=this.toMeta();return this.x=e.x||s.x,this.y=e.y||s.y,super.metaSync(e),e.deleted===!0&&!s.deleted?t==null||t.add(this,A.Removed):e.deleted===!1&&s.deleted?t==null||t.add(this,A.Added):i&&(t==null||t.add(this,A.Updated)),t==null||t.attemptAutoclose("meta-sync",this.id),this}async APILoad(e=g,...t){return await Ze.repository.APILoad(this.id,...t),this}async APICreate(e=g,...t){return await Ze.repository.APICreate(this.toShallowJSON(),...t),this}async APIUpdate(e=g,...t){return await Ze.repository.APIUpdate(this.toShallowJSON(),...t),this}async APIDelete(e=g,...t){return await Ze.repository.APIDelete(this.toShallowJSON(),...t),this}async APIClone(e=g,...t){return await Ze.repository.APIClone(this.id,...t),this}async APILoadVersion(e=g,t,...i){return await Ze.repository.APILoadVersion(this.id,t,...i)}remove({ignoreUpstream:e}={ignoreUpstream:!1},t=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"remove-entity"))){var d;const i=[],s=[],l=[],o=[];if(t!=null&&t.hasRemoved(this.id))return t==null||t.attemptAutoclose("remove-entity",this.id),{added:[],updated:[],removed:[],affected:[],self:this};if(s.push(this),this.unsubscribe(),this.project.subscribeDeletedInstance(this),this.metaSync({deleted:!0},t),Object.values(this.detachedDependents).forEach(u=>{const{updated:y,removed:c,added:I}=u.entity.onDetachedDependencyRemoved(this,u.field,t);i.push(...y),s.push(...c),l.push(...I)}),this.process){const{updated:u,removed:y}=(d=this.process)==null?void 0:d.remove({ignoreUpstream:!0},t);i.push(...u),s.push(...y)}if(this.inputs.forEach(u=>{const{updated:y,removed:c}=u.remove({ignoreUpstream:!0},t);i.push(...y),s.push(...c)}),this.outputs.forEach(u=>{const{updated:y,removed:c}=u.remove({ignoreUpstream:!0},t);i.push(...y),s.push(...c)}),this.error){const{updated:u,removed:y}=this.error.remove({ignoreUpstream:!0},t);i.push(...u),s.push(...y)}return this.successCalls.forEach(u=>{i.push(u),u.removeCaller(this,t)}),this.errorCalls.forEach(u=>{i.push(u),u.removeCaller(this,t)}),e||this.calledBy.forEach(u=>{i.push(u),u.removeCall(this,t)}),t==null||t.attemptAutoclose("remove-entity",this.id),{added:p(l),updated:p(i),removed:p(s),affected:p(o),self:this}}restore({}={},e=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"restore-entity"))){const t=[],i=[],s=[],l=[];if(e!=null&&e.hasAdded(this.id))return e==null||e.attemptAutoclose("restore-entity",this.id),{added:[],updated:[],removed:[],affected:[],self:this};if(this.subscribe(),this.project.unsubscribeDeletedInstance(this),this.metaSync({deleted:!1},e),this.process){const{updated:o}=this.process.restore({},e);i.push(...o)}return this.inputs.forEach(o=>{const{updated:d}=o.restore({},e);i.push(...d)}),this.outputs.forEach(o=>{const{updated:d}=o.restore({},e);i.push(...d)}),this.successCalls.forEach(o=>{i.push(o),o.addSuccessCaller(this,e)}),this.errorCalls.forEach(o=>{i.push(o),o.addErrorCaller(this,e)}),this.calledBySuccess.forEach(o=>{i.push(o),o.addSuccessCall(this,e)}),this.calledByError.forEach(o=>{i.push(o),o.addErrorCall(this,e)}),this.calledByEntry.forEach(o=>{i.push(o),o.addCall(this,e)}),e==null||e.attemptAutoclose("restore-entity",this.id),{added:p(t),updated:p(i),removed:p(s),affected:p(l),self:this}}toFlat(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this,...this.successCalls.flatMap(i=>i.toFlat(e)),...this.errorCalls.flatMap(i=>i.toFlat(e)),...this.inputs.flatMap(i=>i.toFlat(e)),...this.outputs.flatMap(i=>i.toFlat(e)),...this.process?this.process.toFlat(e):[],...this.error?this.error.toFlat(e):[],...this.calledBy.flatMap(i=>i.toFlat(e))])}toFlatIds(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.id,...this.successCalls.flatMap(i=>i.toFlatIds(e)),...this.errorCalls.flatMap(i=>i.toFlatIds(e)),...this.inputs.flatMap(i=>i.toFlatIds(e)),...this.outputs.flatMap(i=>i.toFlatIds(e))])}toMeta(){return{id:this.id,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,x:this.x,y:this.y,type:this.type}}toJSON(e=new Set){var t,i;return e.has(this.id)?this.toReference():(e.add(this.id),{id:this.id,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,type:this.type,x:this.x,y:this.y,successCalls:this.successCalls.map(s=>s.toJSON(e)),errorCalls:this.errorCalls.map(s=>s.toJSON(e)),calledBySuccess:this.calledBySuccess.map(s=>s.toReference()),calledByError:this.calledByError.map(s=>s.toReference()),calledByEntry:this.calledByEntry.map(s=>s.toReference()),process:(t=this.process)==null?void 0:t.toJSON(e),declaration:this.declaration.toJSON(e),inputs:this.inputs.map(s=>s.toJSON(e)),outputs:this.outputs.map(s=>s.toJSON(e)),parent:this.parent.toReference(),error:(i=this.error)==null?void 0:i.toJSON(e)})}toJSONClone(e=q){var i,s,l,o,d,u,y;let t;return(i=e.seenEntityMaps)!=null&&i.has(this.id)?t=e.seenEntityMaps.get(this.id):(t=e.newId||ht(this,this.project,e.uuidStrategy),e.seenEntityMaps&&e.seenEntityMaps.set(this.id,t)),(s=e.seenEntities)!=null&&s.has(t)||(l=e.seenEntities)!=null&&l.has(this.id)?this.toReference({seenEntityMaps:e.seenEntityMaps}):((o=e.seenEntities)==null||o.add(t),(d=e.seenEntities)==null||d.add(this.id),{id:t,version:m.UUID.uuid(),createdAt:e.timestamp||T().toISOString(),previousVersion:null,author:this.author,deleted:this.deleted,type:this.type,x:this.x,y:this.y,successCalls:this.successCalls.map(c=>c.toJSONClone({...e,newId:null})),errorCalls:this.errorCalls.map(c=>c.toJSONClone({...e,newId:null})),calledBySuccess:this.calledBySuccess.map(c=>c.toReference({seenEntityMaps:e.seenEntityMaps})),calledByError:this.calledByError.map(c=>c.toReference({seenEntityMaps:e.seenEntityMaps})),calledByEntry:this.calledByEntry.map(c=>c.toReference({seenEntityMaps:e.seenEntityMaps})),process:(u=this.process)==null?void 0:u.toJSONClone({...e,newId:null}),declaration:this.declaration.toJSONClone({...e,newId:null}),inputs:this.inputs.map(c=>c.toJSONClone({...e,newId:null})),outputs:this.outputs.map(c=>c.toJSONClone({...e,newId:null})),error:(y=this.error)==null?void 0:y.toJSONClone({...e,newId:null}),parent:this.parent.toReference({seenEntityMaps:e.seenEntityMaps})})}toReference(e=q){var i;let t=this.id;return(i=e.seenEntityMaps)!=null&&i.has(this.id)&&(t=e.seenEntityMaps.get(this.id)),{id:t+"--"+m.UUID.uuid()+"--ref",type:n.GenericReference,entityId:t,version:this.version,entityType:this.type}}toShallowJSON(e=q){var i;let t=this.id;return(i=e.seenEntityMaps)!=null&&i.has(this.id)&&(t=e.seenEntityMaps.get(this.id)),{id:t,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,type:this.type,x:this.x,y:this.y,process:this.process?this.process.toReference(e):null,inputs:this.inputs.map(s=>s.toReference(e)),outputs:this.outputs.map(s=>s.toReference(e)),declaration:this.declaration.toReference(e),successCalls:this.successCalls.map(s=>s.toReference(e)),errorCalls:this.errorCalls.map(s=>s.toReference(e)),calledBySuccess:this.calledBySuccess.map(s=>s.toReference(e)),calledByError:this.calledByError.map(s=>s.toReference(e)),calledByEntry:this.calledByEntry.map(s=>s.toReference(e)),error:this.error?this.error.toReference(e):null,parent:this.parent.toReference(e)}}toFlatJSON(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.toShallowJSON(),...this.successCalls.flatMap(i=>i.toFlatJSON(e)),...this.errorCalls.flatMap(i=>i.toFlatJSON(e)),...this.inputs.flatMap(i=>i.toFlatJSON(e)),...this.outputs.flatMap(i=>i.toFlatJSON(e)),...this.process?this.process.toFlatJSON(e):[],...this.error?this.error.toFlatJSON(e):[]])}toGenerationTarget(){const e=this.parent.type===n.Project?void 0:this.parent.id;return{id:this.id,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,type:this.type,calledByEntry:this.calledByEntry.map(t=>t.id),calledBySuccess:this.calledBySuccess.map(t=>t.id),calledByError:this.calledByError.map(t=>t.id),declaration:this.declaration.id,parent:e}}toFlatGenerationTarget(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.toGenerationTarget(),...this.successCalls.flatMap(i=>i.toFlatGenerationTarget(e)),...this.errorCalls.flatMap(i=>i.toFlatGenerationTarget(e)),...this.inputs.flatMap(i=>i.toFlatGenerationTarget(e)),...this.outputs.flatMap(i=>i.toFlatGenerationTarget(e)),...this.process?this.process.toFlatGenerationTarget(e):[],...this.error?this.error.toFlatGenerationTarget(e):[]])}clearErrors(){var e,t;return this.errors=[],this.inputs.forEach(i=>i.clearErrors()),this.outputs.forEach(i=>i.clearErrors()),this.successCalls.forEach(i=>i.clearErrors()),this.errorCalls.forEach(i=>i.clearErrors()),(e=this.process)==null||e.clearErrors(),(t=this.error)==null||t.clearErrors(),this}validate(){const e=Y1(this);return this.errors=e,{success:!0,error:null,data:this.toJSON()}}getErrors(){return[...this.errors,...this.inputs.flatMap(t=>t.getErrors()),...this.outputs.flatMap(t=>t.getErrors()),...this.error?this.error.getErrors():[],...this.process?this.process.getErrors():[]]}getShallowErrors(){return this.errors}clone(e=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"clone-entity")),t=null,i=null,s=!0){var O,P;let l=mt(t,this);const o=this.toJSON(),d=i||m.UUID.uuid();o.inputs=[];const u=d.split("-id"),y=u[u.length-1||0]||d;o.id=d,o.version=m.UUID.uuid(),o.createdAt=(e==null?void 0:e.timestamp)||T().toISOString(),o.author=(e==null?void 0:e.author)||"1",o.previousVersion=null,o.deleted=!1;const c=ct(o,l);t?c.setParent(t,null):c.setParent(this.parent,null),s&&c.subscribe(),c.initChildren(e),e==null||e.add(c,A.Added);const I=(O=this.inputs)==null?void 0:O.map((V,M)=>V.clone(e,c,y+"-input-map-"+M+"-id",s));c.inputs=I;const E=(P=this.outputs)==null?void 0:P.map((V,M)=>V.clone(e,c,y+"-output-map-"+M+"-id",s));return c.outputs=E,this.error&&(c.error=this.error.clone(e,c,y+"-error-map-id",s)),this.process&&(c.process=this.process.clone(e,c,y+"-process-id",s)),e==null||e.attemptAutoclose("clone-entity",this.id),c}removeUnrecognizedInputs(e=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"remove-unrecognized-inputs"))){const t=[],i=[],s=[],l=[];return this.inputs.forEach(o=>{if(!this.declaration.inputs.find(u=>{var y;return u.id===((y=o.declaration)==null?void 0:y.id)})){const u=o.remove({ignoreUpstream:!1},e);s.push(...u.removed),t.push(...u.updated)}}),e==null||e.attemptAutoclose("remove-unrecognized-inputs",this.id),{updated:p(t),added:p(i),removed:p(s),affected:p(l),self:this}}removeUnrecognizedOutputs(e=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"remove-unrecognized-outputs"))){const t=[],i=[],s=[],l=[];return this.outputs.forEach(o=>{if(!this.declaration.getUniqueReturnDeclarations().find(u=>{var y;return u.id===((y=o.declaration)==null?void 0:y.id)})){const u=o.remove({ignoreUpstream:!1},e);s.push(...u.removed),t.push(...u.updated)}}),e==null||e.attemptAutoclose("remove-unrecognized-outputs",this.id),{updated:p(t),added:p(i),removed:p(s),affected:p(l),self:this}}syncMissingFixedInputs(e=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"sync-missing-fixed-inputs"))){const t=[],i=[],s=[],l=[],o=this.declaration.inputs.filter(c=>!this.inputs.find(I=>I.declaration.id===c.id));this.inputs.sort((c,I)=>c.index-I.index),o.forEach(c=>{this.inputs.forEach(O=>{O.index>=c.index&&O.metaSync({index:O.index+1},e)});const I={id:m.UUID.uuid(),version:m.UUID.uuid(),createdAt:(e==null?void 0:e.timestamp)||T().toISOString(),author:m.sessionAuthor,previousVersion:null,deleted:!1,type:n.InputMap,declaration:c.toJSON(),readsValue:null,defaultValue:null,index:c.index,name:null,description:null,parent:this.toReference()},E=C(I,this.project);E.setParent(this,e),E.initChildren(e),e==null||e.add(E,A.Added),E.addSelfToProject(e),i.push(E)}),this.inputs.sort((c,I)=>c.index-I.index);const{updated:d,added:u,removed:y}=this.removeUnrecognizedInputs(e);return t.push(...d),i.push(...u),s.push(...y),e==null||e.attemptAutoclose("sync-missing-fixed-inputs",this.id),{updated:p(t),added:p(i),removed:p(s),affected:p(l),self:this}}syncMissingFixedOutputs(e=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"sync-missing-fixed-outputs"))){const t=[],i=[],s=[],l=[],o=[];this.outputs=this.initialData.outputs.map(I=>{const E=C(I,this.project);return o.push(E.index),E.setParent(this,null),E.initChildren(e),E});const d=this.declaration.getUniqueReturnDeclarations().filter(I=>!this.outputs.find(E=>E.declaration.id===I.id));this.outputs.sort((I,E)=>I.index-E.index),d.forEach((I,E)=>{this.outputs.forEach(M=>{M.index>=I.index&&M.index++});const O=o.includes(I.index)?this.outputs.length-1+E:I.index,P={id:m.UUID.uuid(),version:m.UUID.uuid(),createdAt:(e==null?void 0:e.timestamp)||T().toISOString(),author:m.sessionAuthor,previousVersion:null,deleted:!1,type:n.OutputMap,declaration:I.toJSON(),defaultValue:null,writesValues:[],index:O,parent:this.toReference()},V=C(P,this.project);V.setParent(this,e),V.initChildren(e),e==null||e.add(V,A.Added),V.addSelfToProject(e)}),this.outputs.sort((I,E)=>I.index-E.index);const{updated:u,added:y,removed:c}=this.removeUnrecognizedOutputs(e);return t.push(...u),i.push(...y),s.push(...c),e==null||e.attemptAutoclose("sync-missing-fixed-outputs",this.id),{updated:p(t),added:p(i),removed:p(s),affected:p(l),self:this}}};f(Ze,"repository",{APICreate:async(e,...t)=>e,APIUpdate:async(e,...t)=>e,APIDelete:async(e,...t)=>e,APIClone:async(e,...t)=>{},APILoad:async(e,...t)=>null,APILoadVersion:async(e,t,...i)=>null}),f(Ze,"type",n.FunctionCall),f(Ze,"USER_MANAGED_PARENT_TYPES",[...dt,n.Project]),f(Ze,"PARENT_TYPES",[...Ze.USER_MANAGED_PARENT_TYPES]),f(Ze,"MUTABLE_BASE_PROPERTIES",[]),f(Ze,"INMUTABLE_BASE_PROPERTIES",["id","type","version","createdAt","author","previousVersion"]),f(Ze,"BASE_PROPERTIES",[...Ze.MUTABLE_BASE_PROPERTIES,...Ze.INMUTABLE_BASE_PROPERTIES]),f(Ze,"MUTABLE_META_PROPERTIES",["x","y"]),f(Ze,"INMUTABLE_META_PROPERTIES",[...Ze.INMUTABLE_BASE_PROPERTIES]),f(Ze,"META_PROPERTIES",[...Ze.MUTABLE_META_PROPERTIES,...Ze.INMUTABLE_META_PROPERTIES]),f(Ze,"MUTABLE_UPSTREAM_PROPERTIES",["calledBySuccess","calledByError","calledByEntry"]),f(Ze,"INMUTABLE_UPSTREAM_PROPERTIES",["declaration","parent"]),f(Ze,"UPSTREAM_PROPERTIES",[...Ze.MUTABLE_UPSTREAM_PROPERTIES,...Ze.INMUTABLE_UPSTREAM_PROPERTIES]),f(Ze,"MUTABLE_DOWNSTREAM_PROPERTIES",["successCalls","errorCalls","writesValues","inputs","outputs","error"]),f(Ze,"INMUTABLE_DOWNSTREAM_PROPERTIES",[]),f(Ze,"DOWNSTREAM_PROPERTIES",[...Ze.MUTABLE_DOWNSTREAM_PROPERTIES,...Ze.INMUTABLE_DOWNSTREAM_PROPERTIES]),f(Ze,"PROPERTIES",[...Ze.META_PROPERTIES,...Ze.UPSTREAM_PROPERTIES,...Ze.DOWNSTREAM_PROPERTIES]);let Yr=Ze;function kc(r){return r&&typeof r.then=="function"}class Zl{constructor(a){f(this,"order",[]);f(this,"flatRecord",{});f(this,"allBuiltInEntityIds",_i());f(this,"onGoingVisits",{});this.flatten(a),this.orderEntities()}flatten(a){const e=new Set(_i()),t=p(U(a,e,{ignoreBuiltInBaseEntities:!0})),i=new Set;for(const s of t)this.flatRecord[s.id]=s,i.add(s.id);this.order=Array.from(i)}moveEntityAfterDependencies(a){const{upstream:e}=Yl(a,this.flatRecord,{ignoreBuiltInBaseEntities:!0,allBuiltInEntityIds:this.allBuiltInEntityIds});for(const t of Object.keys(e)){const i=this.order.indexOf(t),s=this.order.indexOf(a.id);if(i>s)return this.order.splice(s,1),this.order.splice(i,0,a.id),!0}return!1}orderEntities(){let a=!1;for(let e=0;e<this.order.length;e++){const t=this.order[e],i=this.flatRecord[t];if(this.moveEntityAfterDependencies(i)){a=!0;break}}a&&this.orderEntities()}getUpstreamOngoingDependenciesVisits(a,e){const{upstream:t}=Yl(this.flatRecord[a],this.flatRecord,{ignoreBuiltInBaseEntities:!0,allBuiltInEntityIds:this.allBuiltInEntityIds}),i={};return Object.entries(this.onGoingVisits[e]||{}).forEach(([s,l])=>{Object.keys(t).includes(s)&&(i[s]=l)}),i}getDownstreamOngoingDependenciesVisits(a,e){const t=Object.keys(this.onGoingVisits[e]||{}),i=new Set(t.flatMap(l=>Object.keys(Yl(this.flatRecord[l],this.flatRecord,{ignoreBuiltInBaseEntities:!0,allBuiltInEntityIds:this.allBuiltInEntityIds}).downstream))),s={};return Array.from(i).forEach(l=>{l===a&&(s[l]=this.onGoingVisits[e][l])}),s}async settlePromises(a,e){const t=Object.values(a);t.length&&await Promise.all(t),Object.keys(a).forEach(i=>{delete this.onGoingVisits[e][i]})}visit(a){const e=this.order;for(const t of e)a(this.flatRecord[t],this.flatRecord);return this}reverseVisit(a){const e=this.order.slice().reverse();for(const t of e)a(this.flatRecord[t],this.flatRecord);return this}async visitAsync(a){const e=this.order,t=Math.random().toString(36).substring(7);this.onGoingVisits[t]={};for(const i of e){const s=this.getUpstreamOngoingDependenciesVisits(i,t);Object.keys(s).length&&await this.settlePromises(s,t);const l=a(this.flatRecord[i],this.flatRecord);kc(l)&&(this.onGoingVisits[t][i]=l)}return await this.settlePromises(this.onGoingVisits[t],t),this.onGoingVisits[t]={},this}async reverseVisitAsync(a){const e=this.order.slice().reverse(),t=Math.random().toString(36).substring(7);this.onGoingVisits[t]={};for(const i of e){const s=this.getDownstreamOngoingDependenciesVisits(i,t);Object.keys(s).length&&await this.settlePromises(s,t);const l=a(this.flatRecord[i],this.flatRecord);kc(l)&&(this.onGoingVisits[t][i]=l)}return await this.settlePromises(this.onGoingVisits[t],t),this.onGoingVisits[t]={},this}}function K1(r,a){switch(r.id){case k["built-in-base-entity"].BUILT_IN_PERSISTED_ENTITY_ENTITY.id:{const e=r.project.entities.filter(d=>!!d.implements.find(u=>u.id===k["built-in-base-entity"].BUILT_IN_RELATIONAL_DATABASE_ENTITY.id));if(e.find(d=>!!d.properties.find(u=>{var y;return u.implements&&u.implements.id===k["built-in-base-entity"].BUILT_IN_RELATIONAL_DATABASE_ENTITY.properties.default.id&&((y=u.getDefaultValue())==null?void 0:y.value)===!0}))){const u=e[0].properties.find(c=>c.implements&&c.implements.id===k["built-in-base-entity"].BUILT_IN_RELATIONAL_DATABASE_ENTITY.properties.default.id),y=u==null?void 0:u.defaultValue;if(y)y.value=!0;else if(u!=null&&u.dataType){const c={id:m.UUID.uuid(),version:m.UUID.uuid(),createdAt:(a==null?void 0:a.timestamp)||new Date().toISOString(),author:m.sessionAuthor,previousVersion:null,deleted:!1,type:n.LiteralValue,name:L.EntityTemplate,autogeneration:null,value:!0,valueAsTypeSingle:null,valueAsTypeList:null,parent:u==null?void 0:u.dataType.toReference()},I=C(c,r.project);return I.setParent(u==null?void 0:u.dataType,a),I.initChildren(a),a==null||a.add(I,A.Added),I.addSelfToProject(a),{newEntities:[I]}}return{newEntities:[]}}const i=r.project.get(k["built-in-base-entity"].BUILT_IN_RELATIONAL_DATABASE_ENTITY.id),s=ql(i,"Main database",a);if(s.errors.length>0)return{newEntities:[]};const l=s.properties.find(d=>d.implements&&d.implements.id===k["built-in-base-entity"].BUILT_IN_RELATIONAL_DATABASE_ENTITY.properties.default.id),o=l==null?void 0:l.defaultValue;if(o)o.value=!0;else if(l!=null&&l.dataType){const d={id:m.UUID.uuid(),version:m.UUID.uuid(),createdAt:(a==null?void 0:a.timestamp)||new Date().toISOString(),author:m.sessionAuthor,previousVersion:null,deleted:!1,type:n.LiteralValue,name:L.EntityTemplate,autogeneration:null,value:!0,valueAsTypeSingle:null,valueAsTypeList:null,parent:l==null?void 0:l.dataType.toReference()},u=C(d,r.project);u.setParent(l==null?void 0:l.dataType,a),u.initChildren(a),a==null||a.add(u,A.Added),u.addSelfToProject(a)}return{newEntities:[s]}}}return{newEntities:[]}}function X1(r,a){return r.implements.filter(t=>t.type===n.BuiltInBaseEntity).map(t=>{switch(t.id){case k["built-in-base-entity"].BUILT_IN_PERSISTED_ENTITY_ENTITY.id:{const s=r.project.entities.filter(d=>d.implements.find(u=>u.id===k["built-in-base-entity"].BUILT_IN_RELATIONAL_DATABASE_ENTITY.id)).find(d=>!!d.properties.find(u=>{var y;return u.implements&&u.implements.id===k["built-in-base-entity"].BUILT_IN_RELATIONAL_DATABASE_ENTITY.properties.default.id&&((y=u.getDefaultValue())==null?void 0:y.value)===!0}));if(!s)return{newEntities:[]};const l=r.properties.find(d=>d.implements&&d.implements.id===k["built-in-base-entity"].BUILT_IN_PERSISTED_ENTITY_ENTITY.properties.database.id),o=l==null?void 0:l.defaultValue;if(l&&(l!=null&&l.dataType)&&!o){const d={id:m.UUID.uuid(),version:m.UUID.uuid(),createdAt:(a==null?void 0:a.timestamp)||new Date().toISOString(),author:m.sessionAuthor,previousVersion:null,deleted:!1,type:n.LiteralValue,name:L.EntityTemplate,autogeneration:null,value:null,valueAsTypeSingle:s,valueAsTypeList:null,parent:l==null?void 0:l.dataType.toReference()},u=C(d,r.project);return u.setParent(l==null?void 0:l.dataType,a),u.initChildren(a),a==null||a.add(u,A.Added),u.addSelfToProject(a),{newEntities:[u]}}return{newEntities:[]}}}}),{newEntities:[]}}function ql(r,a,e,t){const i=t||m.UUID.uuid(),s=m.UUID.uuid(),l={id:i,version:s,createdAt:(e==null?void 0:e.timestamp)||new Date().toISOString(),author:m.sessionAuthor,previousVersion:null,deleted:!1,name:a,type:n.DefinitionEntity,description:null,static:r.static,abstract:!1,properties:[],methods:[],abstractMethods:[],extends:[],implements:[r],x:0,y:0,parent:r.project};K1(r,e);const o=C(l,r.project);return o.hydrateAncestors(),o.addImplementation(r),o.setParent(r.project,e),o.initChildren(e),e==null||e.add(o,A.Added),r.abstractMethods.map(d=>{const u=m.UUID.uuid(),y=d.implementAsFunctionDeclaration(e,o,u);return o.addMethod(y),e==null||e.add(y,A.Added),y}),o.afterAllChildrenInitialized(e),X1(o,e),o}function Sc(r,a){return a.entities.find(i=>{const s=i.properties,l=s.map(c=>c.name),o=r.every(c=>l.includes(c)),d=l.filter(c=>!r.includes(c)),u=s.every(c=>!d.includes(c.name)||!c.required);return o&&u})||null}function Q1(r,a,e,t=Dt.OrDataTypeGroup){const i=[],s=[],l=[],o=[],u={id:m.UUID.uuid(),version:m.UUID.uuid(),createdAt:(e==null?void 0:e.timestamp)||new Date().toISOString(),author:m.sessionAuthor,previousVersion:null,deleted:!1,type:n.DataType,options:null,implementationChooseOne:!1,entity:r.toJSON(),isList:!1,asType:null,andChildrenGroup:null,orChildrenGroup:null,like:!0,inferred:!1,parentRelationType:t,parent:a.toReference()},y=C(u,r.project);return s.push(y),y.setParent(a,e),y.initChildren(e),e==null||e.add(y,A.Added),y.setEntity(r),y.addSelfToProject(e),{updated:p(i),added:p(s),removed:p(l),affected:p(o),self:y}}function Zc(r,a,e,t,i){var u,y,c,I,E,O,P,V;const s=[],l=[],o=[],d=[];switch(typeof r){case"string":let M=!1;const G=new Date(r);if(G instanceof Date&&!isNaN(G.valueOf())&&(M=!0),M){const B=a.project.getBuiltIn(k[n.PrimitiveEntity][L.Date].id);a.setEntity(B);break}else{const B=a.project.getBuiltIn(k[n.PrimitiveEntity][L.String].id);a.setEntity(B);break}case"number":a.setEntity(a.project.getBuiltIn(k[n.PrimitiveEntity][L.Number].id));break;case"boolean":a.setEntity(a.project.getBuiltIn(k[n.PrimitiveEntity][L.Boolean].id));break;case"object":if(r===null){a.setEntity(a.project.getBuiltIn(k[n.PrimitiveEntity][L.Null].id));break}else if(Array.isArray(r))if(a.metaSync({isList:!0},t),r.length>0){const B=r.slice(0,5).filter(Z=>Z!==void 0);if(B.every(Z=>typeof Z==typeof B[0])&&(typeof B[0]!="object"||B[0]===null))switch(typeof B[0]){case"string":a.setEntity(a.project.getBuiltIn(k[n.PrimitiveEntity][L.String].id));break;case"number":a.setEntity(a.project.getBuiltIn(k[n.PrimitiveEntity][L.Number].id));break;case"boolean":a.setEntity(a.project.getBuiltIn(k[n.PrimitiveEntity][L.Boolean].id));break;case"object":a.setEntity(a.project.getBuiltIn(k[n.PrimitiveEntity][L.Null].id));break}else{const Z=[];let J=!1;B.forEach(fe=>{var Ie,X,le,Qt;if(Array.isArray(fe)&&(J=!0),typeof fe=="object"&&!Array.isArray(fe)&&fe!==null){const Xi=Jl(fe,a.project,{...e,id:m.UUID.uuid()},t,i);Xi.hasCreated&&Z.push((Ie=Xi.changeSet)==null?void 0:Ie.self),s.push(...(X=Xi.changeSet)==null?void 0:X.updated),l.push(...(le=Xi.changeSet)==null?void 0:le.added),o.push(...(Qt=Xi.changeSet)==null?void 0:Qt.removed)}});const te=p(Z);if(!te.length&&!J){B.forEach(fe=>{const Ie={id:m.UUID.uuid(),version:m.UUID.uuid(),createdAt:(t==null?void 0:t.timestamp)||new Date().toISOString(),author:m.sessionAuthor,previousVersion:null,deleted:!1,type:n.DataType,options:null,implementationChooseOne:!1,entity:null,isList:!1,asType:null,andChildrenGroup:null,orChildrenGroup:null,like:!0,inferred:!1,parentRelationType:Dt.OrDataTypeGroup,parent:a.toReference()},X=C(Ie,a.project);switch(X.setParent(a,t),X.initChildren(t),t==null||t.add(X,A.Added),X.addSelfToProject(t),typeof fe){case"string":X.setEntity(X.project.getBuiltIn(k[n.PrimitiveEntity][L.String].id));break;case"number":X.setEntity(X.project.getBuiltIn(k[n.PrimitiveEntity][L.Number].id));break;case"boolean":X.setEntity(X.project.getBuiltIn(k[n.PrimitiveEntity][L.Boolean].id));break;case"object":X.setEntity(X.project.getBuiltIn(k[n.PrimitiveEntity][L.Null].id));break}});break}else te.length===1&&!J?a.setEntity(te[0]):B.forEach(fe=>{if(typeof fe=="object"&&!Array.isArray(fe)&&fe!==null){const Ie=Sc(Object.keys(fe),a.project);if(Ie){const X=Q1(Ie||te[0],a,t,Dt.OrDataTypeGroup);s.push(...X.updated),l.push(...X.added),o.push(...X.removed)}}else{const Ie={id:m.UUID.uuid(),version:m.UUID.uuid(),createdAt:(t==null?void 0:t.timestamp)||new Date().toISOString(),author:m.sessionAuthor,previousVersion:null,deleted:!1,type:n.DataType,options:null,implementationChooseOne:!1,entity:null,isList:Array.isArray(fe),asType:null,andChildrenGroup:null,orChildrenGroup:null,like:!0,inferred:!1,parentRelationType:Dt.OrDataTypeGroup,parent:a.toReference()},X=C(Ie,a.project);X.setParent(a,t),X.initChildren(t),t==null||t.add(X,A.Added),X.addSelfToProject(t);const le=Zc(fe,X,{...e,id:m.UUID.uuid()},t,i);s.push(...le.updated),l.push(...le.added),o.push(...le.removed)}})}}else{const B=Jl(r[0],a.project,{...e},t,i);a.setEntity((u=B.changeSet)==null?void 0:u.self),s.push(...(y=B.changeSet)==null?void 0:y.updated),l.push(...(c=B.changeSet)==null?void 0:c.added),o.push(...(I=B.changeSet)==null?void 0:I.removed);break}else{const B=Jl(r,a.project,{...e},t,i);a.setEntity((E=B.changeSet)==null?void 0:E.self),s.push(...(O=B.changeSet)==null?void 0:O.updated),l.push(...(P=B.changeSet)==null?void 0:P.added),o.push(...(V=B.changeSet)==null?void 0:V.removed);break}}return{updated:p(s),added:p(l),removed:p(o),affected:p(d),self:a}}function Jl(r,a,e,t,i){const s=[],l=[],o=[],d=[],u=Object.keys(r),y=Sc(u,a);if(y)return{hasCreated:!1,changeSet:{updated:[],added:[],removed:[],affected:[],self:y}};const c=i?e.name+" of "+i.name:e.name,E={id:e.id||m.UUID.uuid(),version:m.UUID.uuid(),createdAt:(t==null?void 0:t.timestamp)||new Date().toISOString(),author:m.sessionAuthor,previousVersion:null,deleted:!1,name:c,type:n.DefinitionEntity,description:e.description||null,static:e.static||!1,abstract:e.abstract||!1,properties:[],methods:[],abstractMethods:[],extends:[],implements:[],x:0,y:0,parent:a.toReference()},O=C(E,a);return O.setParent(a,t),O.initChildren(t),t==null||t.add(O,A.Added),O.addSelfToProject(t),l.push(O),u.forEach((P,V)=>{const G={id:m.UUID.uuid(),version:m.UUID.uuid(),createdAt:(t==null?void 0:t.timestamp)||new Date().toISOString(),author:m.sessionAuthor,previousVersion:null,deleted:!1,name:P,type:n.Property,description:null,static:!1,abstract:!1,defaultValue:null,constant:!1,dataType:null,implements:null,index:V,hidden:!1,private:!1,required:!0,parent:O.toReference()},B=C(G,a);B.setParent(O,t),B.initChildren(t),t==null||t.add(B,A.Added),B.addSelfToProject(t),l.push(B);const $=r[P],J={id:m.UUID.uuid(),version:m.UUID.uuid(),createdAt:(t==null?void 0:t.timestamp)||new Date().toISOString(),author:m.sessionAuthor,previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,entity:null,isList:!1,asType:null,andChildrenGroup:null,orChildrenGroup:null,like:!0,inferred:!1,parent:B.toReference()},te=C(J,a);te.setParent(B,t),te.initChildren(t),t==null||t.add(te,A.Added),te.addSelfToProject(t),l.push(te);const fe=Zc($,te,{...e,name:P,id:m.UUID.uuid()},t,i||O);s.push(...fe.updated),l.push(...fe.added),o.push(...fe.removed)}),{hasCreated:!0,changeSet:{updated:p(s),added:p(l),removed:p(o),affected:p(d),self:O}}}function vr(r,a,e,t){const i=[];return!r.length||!a.length?{errors:i,overlap:!1}:(r.length>a.length?r.forEach(s=>{const l=a.find(d=>d.name===s.name),o=a.find(d=>{var u,y;return!!s.implements&&((u=d.implements)==null?void 0:u.id)===((y=s.implements)==null?void 0:y.id)});if(l){const d=new st({id:s.id+"--"+l.id+"--"+t,message:`Entity of type ${s.type} named "${s.name}" with id "${s.id}" overrides a base ${l.type} ${l.name} with id "${l.id}" that has the same name`,issue:null,severity:D.Error,code:t,entity:s,firstRelationship:l});i.push(d)}if(o){const d=new st({id:s.id+"--"+o.id+"--"+e,message:`Entity of type ${s.type} named "${s.name}" with id "${s.id}" overrides a base ${o.type} ${o.name} with id "${o.id}" that implements the same base descriptor`,issue:null,severity:D.Error,code:e,entity:s,firstRelationship:o});i.push(d)}}):a.forEach(s=>{var d;const l=r.find(u=>u.name===s.name),o=r.find(u=>{var y,c;return!!u.implements&&((y=u.implements)==null?void 0:y.id)===((c=s.implements)==null?void 0:c.id)});if(l){const u=new st({id:l.id+"--"+s.id+"--"+t,message:`Entity of type ${l.type} named "${l.name}" with id "${l.id}" overrides a base entity ${s.name} with id "${s.id}" that has the same name`,issue:null,severity:D.Error,code:t,entity:l,firstRelationship:s});i.push(u)}if(o){const u=new st({id:o.id+"--"+s.id+"--"+e,message:`Entity of type ${o.type} named "${o.name}" with id "${o.id}" overrides a base entity ${s.name} with id "${s.id}" that implements the same base ${(d=o==null?void 0:o.implements)==null?void 0:d.type}`,issue:null,severity:D.Error,code:e,entity:o,firstRelationship:s});i.push(u)}}),{errors:i,overlap:!!i.length})}function sJ(r,a){return r.abstract||(r.properties.forEach(t=>{t.abstract||t.metaSync({abstract:!0},a)}),Object.values(r.detachedDependents).forEach(t=>{t.field===Cc.Entity&&t.entity.remove({ignoreUpstream:!1},a)}),r.metaSync({abstract:!0},a)),r}function aJ(r,a){return r.abstract&&(r.properties.forEach(t=>{t.abstract&&t.metaSync({abstract:!1},a)}),Object.values(r.detachedDependents).forEach(t=>{(t.field===rd.Implements||t.field===rd.Extends)&&t.entity.onDetachedDependencyRemoved(r,t.field,a)}),r.metaSync({abstract:!1},a)),r}function oJ(r,a){return r.static||(r.properties.forEach(t=>{t.static||t.metaSync({static:!0},a)}),r.metaSync({static:!0},a)),r}function lJ(r,a){return r.static&&(r.properties.forEach(t=>{t.static&&t.metaSync({static:!1},a)}),r.metaSync({static:!1},a)),r}function Ds(r,a){const e=Ln(r);if(e.length===0)return{list:[],last:null};let t=null;return{list:e.flatMap(s=>{if(s===a)return t=s,[s];const l=Ds(s,a);return l.last&&(t=l.last),[s,...l.list]}),last:t}}function qc(r){const a=r.calledBy;if(a.length===0)return r.project;const e=a.reduce((t,i)=>{const s=kt(i,r.project);return!s||s.type===n.Project?t:t.type===n.Project||Ds(s,t).last?s:(Ds(t,s).last,t)},r.project);return e.type===n.FunctionDeclaration&&e.parent.type===n.Loop?e.parent:e}function K(r,a){var i,s;let e=qc(r);if(r.type===n.InternalCall)(i=r.parent)==null||i.setParent(e,a),(s=r.parent)==null||s.addSelfToProject(a);else if((r.type===n.ContinueStatement||r.type===n.BreakStatement)&&e.type!==n.Loop){r.remove({ignoreUpstream:!1},a);return}else if(r.type===n.ReturnStatement&&!dt.includes(e.type)){r.remove({ignoreUpstream:!1},a);return}else r.setParent(e,a),r.addSelfToProject(a);if(nt.includes(r.type))return;it(r).forEach(l=>{var d,u;const o=qc(l);if(l.type===n.InternalCall)(d=l.parent)==null||d.setParent(o,a),(u=l.parent)==null||u.addSelfToProject(a);else if((l.type===n.ContinueStatement||l.type===n.BreakStatement)&&o.type!==n.Loop){l.remove({ignoreUpstream:!1},a);return}else if(l.type===n.ReturnStatement&&!dt.includes(o.type)){l.remove({ignoreUpstream:!1},a);return}else l.setParent(o,a),l.addSelfToProject(a)})}function eP(r,a,e=new Set){const t=Hr(r),i=Hr(a),s=t.filter(d=>!i.includes(d)),l=t.filter(d=>i.includes(d)),o=s.reduce((d,u)=>e.has(u.id)?d:(e.add(u.id),p([...d,...eP(u,a,e)])),[]);return p([...l,...o])}function Ma(r,a){const e=Ds(r,a);return e.last===a&&e.list.length>0&&e.list[0]!==a}function dJ(r,a){return!!Ds(r,a).last}function uJ(r){if(lt.includes(r.type))return r;if([...Mi,n.VariableDeclaration].includes(r.type)){const a=r.parent;return lt.includes(a.type)?a:null}return null}function Jc(r,a){if(!r||!a)throw new Error("Both entities must be defined to find a common ancestor");if(r===a)return r;const e=r.parent;if(e){if(e===a)return a;if(e.type===n.Project)return null}else return null;const t=a.parent;if(t){if(t===r)return r;if(t.type===n.Project)return null}else return null;return Jc(e,t)}function wt(r){if(Sa.includes(r.type)){if(r.type===n.FunctionDeclaration){const a=r.parent;if(a.type===n.DefinitionEntity)return a;if(a.type===n.Loop)return a}return r}else{const a=r.parent;return a?wt(a):null}}function Wl(r,a){const e=Na(r,a);if(!e)return null;if(Sa.includes(e.type)){if(e.type===n.FunctionDeclaration){const t=Na(e.parent,a);if(t){if(t.type===n.DefinitionEntity)return t;if(t.type===n.Loop)return t}}return e}else{const t=e.parent?Na(e.parent,a):null;return t?Wl(t,a):null}}function tP(r){if(!r)return null;if(Mi.includes(r.type))return r;const a=r.parent;return a?tP(a):null}function iP(r){if(!r)return null;if(ot.includes(r.type))return r;const a=r.parent;return a?iP(a):null}function rP(r){if(!r)return null;if(Ni.includes(r.type))return r;const a=r.parent;return a?rP(a):null}function pJ(r){return r.type===n.VariableDeclaration?[r]:ot.includes(r.type)?[...r.inputs,...r.outputs||[]]:nt.includes(r.type)?r.outputs:Gn.includes(r.type)||r.type===n.FunctionDeclaration?r.inputs:[]}function cJ(r){const a=Hr(r),e=[],t=[];lf.includes(r.type)&&e.push(...Wc(r));const i=a.filter(s=>{const l=e.includes(s);return l?!1:Mi.includes(s.type)&&!l?(t.push(s),!1):!0});return e.sort((s,l)=>Ma(l,s)?-1:0),t.sort((s,l)=>Ma(l,s)?-1:0),[...e,...t,...i]}function nP(r){return[...r].sort((a,e)=>Ma(e,a)?-1:0)}function fJ(r){const a=nP(r),e=[];return a.forEach(t=>{const i=e[e.length-1];if(i){const s=i[i.length-1];Ma(t,s)?e.push([t]):i.push(t)}else e.push([t])}),e}function Xt(r){const a=r.map(e=>wt(e));return p(a)}function Wc(r){return ot.includes(r.type)?[...Xt(r.successCalls),...Xt(r.errorCalls)]:lt.includes(r.type)?Xt(r.calls):[]}function yJ(r,a){return Wc(r).includes(a)}function zc(r){return r.writesValues||[]}function hJ(r,a){return zc(r).includes(a)}function sP(r){var a;return et.includes((a=r==null?void 0:r.readsValue)==null?void 0:a.type)?r.readsValue:null}function mJ(r){return r.writesValues}function aP(r=[]){return r.map(sP).filter(a=>!!a)}function zl(r=[]){return r.map(a=>a.writesValues).flat().filter(a=>et.includes(a.type))}function oP(r=[]){return r.map(a=>a.readsValue).filter(a=>!!a&&et.includes(a.type))}function lP(r){return et.includes(r.type)?r:null}function dP(r){return r.writesValues.map(lP).filter(a=>!!a)}function uP(r=[]){return r.reduce((a,e)=>e.type===n.OutputMap?[...a,...dP(e)]:a,[])}function it(r){return ot.includes(r.type)?[...Hi(Xt(r.successCalls)),...Hi(Xt(r.errorCalls))]:lt.includes(r.type)?Hi(Xt(r.calls)):[]}function vJ(r){return ot.includes(r.type)?[...Hi(Xt(r.successCalls)),...Hi(Xt(r.errorCalls))]:lt.includes(r.type)?Hi(Xt(r.calls)):[]}function pP(r,a=new Set){return r.writesValues.filter(t=>et.includes(t.type)&&!a.has(t.id)).reduce((t,i)=>a.has(i.id)?t:[...t,...ze(i,a)],[])}function cP(r,a=new Set){var t;return(((t=r.readsValue)==null?void 0:t.writesValues)||[]).filter(i=>et.includes(i.type)&&!a.has(i.id)).reduce((i,s)=>a.has(s.id)?i:[...i,...ze(s,a)],[])}function ze(r,a=new Set){if(a.has(r.id))return[];if(r.type===n.ReturnStatement)return oP(r.outputs).reduce((t,i)=>[...t,...ze(i,a)],[]);if(r.type===n.FunctionCall||r.type===n.Operation||r.type===n.Condition)return[...it(r).reduce((s,l)=>{const o=wt(l);return[...s,...ze(o||l,a)]},[]),...aP(r.inputs),...uP(r.outputs)].reduce((s,l)=>[...s,...ze(l,a)],[]);if(Gn.includes(r.type)){const e=zl(r.inputs),i=it(r).reduce((s,l)=>{const o=wt(l);return[...s,...ze(o||l,a)]},[]);return e.push(...i),e.reduce((s,l)=>[...s,...ze(l,a)],[])}if(r.type===n.FunctionDeclaration){const e=[...zl(r.inputs)],i=it(r).reduce((s,l)=>{const o=wt(l);return[...s,...ze(o||l,a)]},[]);return e.push(...i),e.reduce((s,l)=>[...s,...ze(l)],[])}if(et.includes(r.type)){a.add(r.id);const t=it(r).reduce((i,s)=>{const l=wt(s);return[...i,...ze(l||s,a)]},[]);return[r,...t,...cP(r,a),...pP(r,a)]}return[]}function ai(r,a=new Set){return a.has(r.id)?[]:(a.add(r.id),[...Hr(r).reduce((i,s)=>[...i,s,...ai(s,a)],[])])}function Hi(r){return r.reduce((a,e)=>e.type===n.ReturnStatement||e.type===n.ContinueStatement||e.type===n.BreakStatement?[...a,e]:[...a,e,...it(e)],[])}function fP(r){const a=r.entities||[],e=[...a,...r.functions||[],...r.events||[],...r.projects||[]],t=a.reduce((d,u)=>[...d,...u.properties],[]),i=a.reduce((d,u)=>[...d,...u.methods],[]),s=i.reduce((d,u)=>[...d,...zl(u.inputs),...Hi(Xt(u.calls)),...u.returnStatements],[]),l=r.functions.reduce((d,u)=>[...d,...Hi(Xt(u.calls)),...u.returnStatements],[]),o=r.events.reduce((d,u)=>[...d,...Hi(Xt(u.calls)),...u.returnStatements],[]);return[...e,...t,...i,...s,...l,...o]}function yP(r,a){return a.filter(t=>{if(!t)return!1;switch(t.type){case n.FunctionCall:return t.inputs.find(i=>i.id===r.id)!==void 0||t.outputs.find(i=>i.id===r.id)!==void 0;case n.Condition:return t.successCalls.find(i=>i.id===r.id)!==void 0||t.errorCalls.find(i=>i.id===r.id)!==void 0||t.inputs.find(i=>i.id===r.id)!==void 0;case n.Operation:return t.outputs.find(i=>i.id===r.id)!==void 0;case n.VariableDeclaration:return ot.includes(r.type)?kP(r).find(s=>{var l;return((l=s.readsValue)==null?void 0:l.id)===t.id})!==void 0:!1;case n.DefinitionEntity:return t.properties.find(i=>i.id===r.id)!==void 0||t.methods.find(i=>i.id===r.id)!==void 0;case n.FunctionDeclaration:return t.inputs.find(i=>i.id===r.id)!==void 0||(t.returnStatements.map(i=>i.outputs).flat()||[]).find(i=>i.id===r.id)!==void 0;default:return!1}})}function TJ(r){const a=fP(r.project);return yP(r,a)}function Na(r,a){return r?typeof r=="string"?a[r]:r.type===n.GenericReference?a[r.entityId]:a[r.id]?a[r.id]:null:null}function Yl(r,a={},e={ignoreBuiltInBaseEntities:!1,allBuiltInEntityIds:[]}){if(e.ignoreBuiltInBaseEntities&&(Ti.includes(r.type)||(e.allBuiltInEntityIds||[]).includes(r.id)))return{upstream:{},downstream:{}};const t=r,i=r,s=r,l=r,o=r,d=r,u=r,y=r,c=r,I=r,E=r,O=r,P=r,V=[...P.readsValue?[P.readsValue]:[],...P.declaration?[P.declaration]:[],...(O.calledByEntry||[]).flatMap($=>$),...(O.calledBySuccess||[]).flatMap($=>$),...(O.calledByError||[]).flatMap($=>$),...(s.extends||[]).flatMap($=>$),...I.parent?[I.parent]:[]];Array.isArray(s.implements)?V.push(...s.implements.flatMap($=>$)):c.implements&&V.push(c.implements),o.valueAsTypeList&&Array.isArray(o.valueAsTypeList)&&V.push(...o.valueAsTypeList.flatMap($=>$)),o.valueAsTypeSingle&&V.push(o.valueAsTypeSingle);const M=[...(t.inputs||[]).flatMap($=>$),...(E.inputsDeclarations||[]).flatMap($=>$),...(t.outputs||[]).flatMap($=>$),...(E.outputsDeclarations||[]).flatMap($=>$),...(P.internalCalls||[]).flatMap($=>$),...P.writesValues||[],...O.dataType?[O.dataType]:[],...d.body?[d.body]:[],...O.defaultValue?[O.defaultValue]:[],...(O.successCalls||[]).flatMap($=>$),...(O.errorCalls||[]).flatMap($=>$),...(s.properties||[]).flatMap($=>$),...(s.methods||[]).flatMap($=>$),...(s.abstractMethods||[]).flatMap($=>$),...u.error?[u.error]:[],...u.process?[u.process]:[],...I.throws?[I.throws]:[],...(i.andChildrenGroup||[]).flatMap($=>$),...(i.orChildrenGroup||[]).flatMap($=>$),...(y.entities||[]).flatMap($=>$),...(y.functions||[]).flatMap($=>$),...(y.functionCalls||[]).flatMap($=>$),...(y.events||[]).flatMap($=>$),...(y.conditions||[]).flatMap($=>$),...(y.operations||[]).flatMap($=>$),...(y.loops||[]).flatMap($=>$),...(y.variableDeclarations||[]).flatMap($=>$),...(y.variableInstances||[]).flatMap($=>$),...(y.searches||[]).flatMap($=>$),...(y.projects||[]).flatMap($=>$),...(l.calls||[]).flatMap($=>$)];r.type===n.DataType&&(i.entity&&a[_(i.entity)]&&a[_(i.entity)].parent&&_(a[_(i.entity)].parent)===r.id?M.push(i.entity):i.entity&&V.push(i.entity));const G={},B={};return V.forEach($=>{const Z=_($);if(Z&&e.ignoreBuiltInBaseEntities&&(Ti.includes($.type)||(e.allBuiltInEntityIds||[]).includes(Z)))return;const J=$.version;Z&&(G[Z]=J)}),M.forEach($=>{const Z=_($);if(Z&&e.ignoreBuiltInBaseEntities&&(Ti.includes($.type)||(e.allBuiltInEntityIds||[]).includes(Z)))return;const J=$.version;Z&&(B[Z]=J)}),{upstream:G,downstream:B}}function IJ(r,a){const e=[];if(Mi.includes(r.type)){hi(r).forEach(s=>{const l=Wl(s,a);l&&e.push(l)});const i=[...r.inputs||[],...r.outputs||[]].map(s=>{const l=Na(s,a);return l?ZP(l,a):null}).filter(s=>s!==null);e.push(...p(i))}if(et.includes(r.type)){const t=Hl(r);t&&e.push(t)}return p(e)}function Ln(r){const a=[];if(Mi.includes(r.type)){r.calledBy.forEach(i=>{const s=wt(i);s&&a.push(s)});const t=[...r.inputs||[],...r.outputs||[]].map(i=>Hl(i)).filter(i=>i!==null);a.push(...p(t))}if(et.includes(r.type)){const e=Hl(r);e&&a.push(e)}return p(a)}function hi(r){return[...r.calledByEntry||[],...r.calledByError||[],...r.calledBySuccess||[]].filter(a=>a.type!==n.GenericReference)}function hP(r,a=new Set,e={ignoreBuiltInBaseEntities:!1}){if(a.has(r.id))return[];if(a.add(r.id),r.type!==n.ActionDescriptor)throw new Error("Entity must be an action descriptor to be flattened");return[r,...r.inputs.flatMap(t=>U(t,a,e)),...r.outputs.flatMap(t=>U(t,a,e)),...r.error?U(r.error,a,e):[],...r.parent?U(r.parent,a,e):[]]}function mP(r,a=new Set,e={ignoreBuiltInBaseEntities:!1}){if(a.has(r.id))return[];if(a.add(r.id),r.type!==n.ArgumentDeclaration)throw new Error("Entity must be an argument declaration to be flattened");return[r,...r.defaultValue?U(r.defaultValue,a):[],...r.writesValues.flatMap(t=>U(t,a,e)),...r.dataType?U(r.dataType,a,e):[],...r.parent?U(r.parent,a,e):[]]}function vP(r,a=new Set,e={ignoreBuiltInBaseEntities:!1}){if(a.has(r.id))return[];if(a.add(r.id),r.type!==n.BreakStatement)throw new Error("Entity must be a break statement to be flattened");return[r,...r.outputs.flatMap(t=>U(t,a,e)),...r.throws?U(r.throws,a,e):[],...(hi(r)||[]).flatMap(t=>U(t,a,e)),...r.parent?U(r.parent,a,e):[]]}function TP(r,a=new Set,e={ignoreBuiltInBaseEntities:!1}){if(a.has(r.id))return[];if(a.add(r.id),r.type!==n.BuiltInBaseEntity)throw new Error("Entity must be a built-in base entity to be flattened");return[r,...(r.properties||[]).flatMap(t=>U(t,a,e)),...(r.methods||[]).flatMap(t=>U(t,a,e)),...(r.abstractMethods||[]).flatMap(t=>U(t,a,e)),...(r.extends||[]).flatMap(t=>U(t,a,e))]}function IP(r,a=new Set,e={ignoreBuiltInBaseEntities:!1}){if(a.has(r.id))return[];if(a.add(r.id),r.type!==n.Condition)throw new Error("Entity must be a condition to be flattened");return[r,...(r.inputs||[]).flatMap(t=>U(t,a,e)),...(r.successCalls||[]).flatMap(t=>U(t,a,e)),...(r.errorCalls||[]).flatMap(t=>U(t,a,e)),...(hi(r)||[]).flatMap(t=>U(t,a,e)),...r.parent?U(r.parent,a,e):[]]}function EP(r,a=new Set,e={ignoreBuiltInBaseEntities:!1}){if(a.has(r.id))return[];if(a.add(r.id),r.type!==n.ContinueStatement)throw new Error("Entity must be a continue statement to be flattened");return[r,...r.outputs.flatMap(t=>U(t,a,e)),...r.throws?U(r.throws,a,e):[],...(hi(r)||[]).flatMap(t=>U(t,a,e)),...r.parent?U(r.parent,a,e):[]]}function AP(r,a=new Set,e={ignoreBuiltInBaseEntities:!1}){if(a.has(r.id))return[];if(a.add(r.id),r.type!==n.DefinitionEntity)throw new Error("Entity must be a definition entity to be flattened");return[r,...(r.extends||[]).flatMap(t=>U(t,a,e)),...(r.implements||[]).flatMap(t=>U(t,a,e)),...(r.properties||[]).flatMap(t=>U(t,a,e)),...(r.methods||[]).flatMap(t=>U(t,a,e)),...(r.abstractMethods||[]).flatMap(t=>U(t,a,e)),...r.parent?U(r.parent,a,e):[]]}function bP(r,a=new Set,e={ignoreBuiltInBaseEntities:!1}){if(a.has(r.id))return[];if(a.add(r.id),r.type!==n.DataType)throw new Error("Entity must be a data type to be flattened");return[r,...(r.andChildrenGroup||[]).flatMap(t=>U(t,a,e)),...(r.orChildrenGroup||[]).flatMap(t=>U(t,a,e)),...r.entity?U(r.entity,a,e):[],...r.parent?U(r.parent,a,e):[]]}function RP(r,a=new Set,e={ignoreBuiltInBaseEntities:!1}){if(a.has(r.id))return[];if(a.add(r.id),r.type!==n.FunctionCall)throw new Error("Entity must be a function call to be flattened");return[r,...(r.inputs||[]).flatMap(t=>U(t,a,e)),...(r.outputs||[]).flatMap(t=>U(t,a,e)),...r.error?U(r.error,a,e):[],...r.process?U(r.process,a,e):[],...(hi(r)||[]).flatMap(t=>U(t,a,e)),...(r.successCalls||[]).flatMap(t=>U(t,a,e)),...(r.errorCalls||[]).flatMap(t=>U(t,a,e)),...r.parent?U(r.parent,a,e):[]]}function DP(r,a=new Set,e={ignoreBuiltInBaseEntities:!1}){if(a.has(r.id))return[];if(a.add(r.id),r.type!==n.FunctionDeclaration)throw new Error("Entity must be a function declaration to be flattened");return[r,...(r.inputs||[]).flatMap(t=>U(t,a,e)),...(r.calls||[]).flatMap(t=>U(t,a,e)),...r.implements?U(r.implements,a,e):[],...r.parent?U(r.parent,a,e):[]]}function OP(r,a=new Set,e={ignoreBuiltInBaseEntities:!1}){if(a.has(r.id))return[];if(a.add(r.id),r.type!==n.GlobalEvent)throw new Error("Entity must be a global event to be flattened");return[r,...(r.inputs||[]).flatMap(t=>U(t,a,e)),...(r.calls||[]).flatMap(t=>U(t,a,e)),...r.implements?U(r.implements,a,e):[],...r.parent?U(r.parent,a,e):[]]}function PP(r,a=new Set,e={ignoreBuiltInBaseEntities:!1}){if(a.has(r.id))return[];if(a.add(r.id),r.type!==n.InputMap)throw new Error("Entity must be an input map to be flattened");return[r,...r.readsValue?U(r.readsValue,a,e):[],...r.declaration?U(r.declaration,a,e):[],...r.defaultValue?U(r.defaultValue,a,e):[],...r.parent?U(r.parent,a,e):[]]}function wP(r,a=new Set,e={ignoreBuiltInBaseEntities:!1}){if(a.has(r.id))return[];if(a.add(r.id),r.type!==n.InstalledProject)throw new Error("Entity must be an installed project to be flattened");return[r,...(r.functions||[]).flatMap(t=>U(t,a,e)),...(r.events||[]).flatMap(t=>U(t,a,e)),...r.parent?U(r.parent,a,e):[]]}function CP(r,a=new Set,e={ignoreBuiltInBaseEntities:!1}){if(a.has(r.id))return[];if(a.add(r.id),r.type!==n.InternalCall)throw new Error("Entity must be an internal call to be flattened");return[r,...(r.successCalls||[]).flatMap(t=>U(t,a,e)),...(r.errorCalls||[]).flatMap(t=>U(t,a,e)),...(r.inputs||[]).flatMap(t=>U(t,a,e)),...(r.outputs||[]).flatMap(t=>U(t,a,e)),...(hi(r)||[]).flatMap(t=>U(t,a,e)),...r.error?U(r.error,a,e):[],...r.process?U(r.process,a,e):[],...r.parent?U(r.parent,a,e):[]]}function VP(r,a=new Set,e={ignoreBuiltInBaseEntities:!1}){if(a.has(r.id))return[];if(a.add(r.id),r.type!==n.LiteralValue)throw new Error("Entity must be a literal value to be flattened");return[r,...r.valueAsTypeSingle?U(r.valueAsTypeSingle,a,e):[],...r.valueAsTypeList&&Array.isArray(r.valueAsTypeList)?r.valueAsTypeList.flatMap(t=>U(t,a,e)):[],...r.parent?U(r.parent,a,e):[]]}function BP(r,a=new Set,e={ignoreBuiltInBaseEntities:!1}){if(a.has(r.id))return[];if(a.add(r.id),r.type!==n.Loop)throw new Error("Entity must be a loop to be flattened");return[r,...(r.inputs||[]).flatMap(t=>U(t,a,e)),...(r.outputs||[]).flatMap(t=>U(t,a,e)),...(r.successCalls||[]).flatMap(t=>U(t,a,e)),...(r.errorCalls||[]).flatMap(t=>U(t,a,e)),...r.error?U(r.error,a,e):[],...r.process?U(r.process,a,e):[],...r.body?U(r.body,a,e):[],...(hi(r)||[]).flatMap(t=>U(t,a,e)),...r.parent?U(r.parent,a,e):[]]}function _P(r,a=new Set,e={ignoreBuiltInBaseEntities:!1}){if(a.has(r.id))return[];if(a.add(r.id),r.type!==n.Operation)throw new Error("Entity must be an operation to be flattened");return[r,...(r.successCalls||[]).flatMap(t=>U(t,a,e)),...(r.errorCalls||[]).flatMap(t=>U(t,a,e)),...(r.inputs||[]).flatMap(t=>U(t,a,e)),...(r.outputs||[]).flatMap(t=>U(t,a,e)),...r.error?U(r.error,a,e):[],...r.process?U(r.process,a,e):[],...(hi(r)||[]).flatMap(t=>U(t,a,e)),...r.parent?U(r.parent,a,e):[]]}function MP(r,a=new Set,e={ignoreBuiltInBaseEntities:!1}){if(a.has(r.id))return[];if(a.add(r.id),r.type!==n.OutputMap)throw new Error("Entity must be an output map to be flattened");return[r,...(r.writesValues||[]).flatMap(t=>U(t,a,e)),...r.declaration?U(r.declaration,a,e):[],...r.defaultValue?U(r.defaultValue,a,e):[],...r.parent?U(r.parent,a,e):[]]}function NP(r,a=new Set,e={ignoreBuiltInBaseEntities:!1}){if(a.has(r.id))return[];if(a.add(r.id),r.type!==n.PrimitiveEntity)throw new Error("Entity must be a primitive entity to be flattened");return[r,...(r.properties||[]).flatMap(t=>U(t,a,e)),...(r.methods||[]).flatMap(t=>U(t,a,e)),...(r.abstractMethods||[]).flatMap(t=>U(t,a,e))]}function LP(r,a=new Set,e={ignoreBuiltInBaseEntities:!1}){if(a.has(r.id))return[];if(a.add(r.id),r.type!==n.Project)throw new Error("Entity must be a project to be flattened");return[r,...(r.entities||[]).flatMap(t=>U(t,a,e)),...(r.functions||[]).flatMap(t=>U(t,a,e)),...(r.events||[]).flatMap(t=>U(t,a,e)),...(r.projects||[]).flatMap(t=>U(t,a,e)),...(r.variableDeclarations||[]).flatMap(t=>U(t,a,e)),...(r.variableInstances||[]).flatMap(t=>U(t,a,e)),...(r.operations||[]).flatMap(t=>U(t,a,e)),...(r.conditions||[]).flatMap(t=>U(t,a,e)),...(r.functionCalls||[]).flatMap(t=>U(t,a,e)),...(r.projects||[]).flatMap(t=>U(t,a,e)),...(r.loops||[]).flatMap(t=>U(t,a,e)),...(r.searches||[]).flatMap(t=>U(t,a,e))]}function UP(r,a=new Set,e={ignoreBuiltInBaseEntities:!1}){if(a.has(r.id))return[];if(a.add(r.id),r.type!==n.Property)throw new Error("Entity must be a property to be flattened");return[r,...r.defaultValue?U(r.defaultValue,a,e):[],...r.dataType?U(r.dataType,a,e):[],...r.parent?U(r.parent,a,e):[]]}function gP(r,a=new Set,e={ignoreBuiltInBaseEntities:!1}){if(a.has(r.id))return[];if(a.add(r.id),r.type!==n.ReturnDeclaration)throw new Error("Entity must be a return declaration to be flattened");return[r,...r.readsValue?U(r.readsValue,a,e):[],...r.defaultValue?U(r.defaultValue,a,e):[],...r.dataType?U(r.dataType,a,e):[],...r.parent?U(r.parent,a,e):[]]}function jP(r,a=new Set,e={ignoreBuiltInBaseEntities:!1}){if(a.has(r.id))return[];if(a.add(r.id),r.type!==n.ReturnStatement)throw new Error("Entity must be a return statement to be flattened");return[r,...(r.outputs||[]).flatMap(t=>U(t,a,e)),...r.throws?U(r.throws,a,e):[],...(hi(r)||[]).flatMap(t=>U(t,a,e)),...r.parent?U(r.parent,a,e):[]]}function $P(r,a=new Set,e={ignoreBuiltInBaseEntities:!1}){if(a.has(r.id))return[];if(a.add(r.id),r.type!==n.Search)throw new Error("Entity must be a search to be flattened");return[r,...(r.successCalls||[]).flatMap(t=>U(t,a,e)),...(r.errorCalls||[]).flatMap(t=>U(t,a,e)),...(r.inputsDeclarations||[]).flatMap(t=>U(t,a,e)),...(r.inputs||[]).flatMap(t=>U(t,a,e)),...(r.outputsDeclarations||[]).flatMap(t=>U(t,a,e)),...(r.outputs||[]).flatMap(t=>U(t,a,e)),...r.error?U(r.error,a,e):[],...(hi(r)||[]).flatMap(t=>U(t,a,e)),...r.parent?U(r.parent,a,e):[]]}function GP(r,a=new Set,e={ignoreBuiltInBaseEntities:!1}){if(a.has(r.id))return[];if(a.add(r.id),r.type!==n.ValueDescriptor)throw new Error("Entity must be a value descriptor to be flattened");return[r,...r.defaultValue?U(r.defaultValue,a,e):[],...r.dataType?U(r.dataType,a,e):[],...r.parent?U(r.parent,a,e):[]]}function FP(r,a=new Set,e={ignoreBuiltInBaseEntities:!1}){if(a.has(r.id))return[];if(a.add(r.id),r.type!==n.VariableDeclaration)throw new Error("Entity must be a variable declaration to be flattened");return[r,...(r.successCalls||[]).flatMap(t=>U(t,a,e)),...(r.errorCalls||[]).flatMap(t=>U(t,a,e)),...(r.inputs||[]).flatMap(t=>U(t,a,e)),...(r.outputs||[]).flatMap(t=>U(t,a,e)),...(r.internalCalls||[]).flatMap(t=>U(t,a,e)),...(r.writesValues||[]).flatMap(t=>U(t,a,e)),...r.readsValue?U(r.readsValue,a,e):[],...r.defaultValue?U(r.defaultValue,a,e):[],...(hi(r)||[]).flatMap(t=>U(t,a,e)),...r.dataType?U(r.dataType,a,e):[],...r.parent?U(r.parent,a,e):[]]}function xP(r,a=new Set,e={ignoreBuiltInBaseEntities:!1}){if(a.has(r.id))return[];if(a.add(r.id),r.type!==n.VariableInstance)throw new Error("Entity must be a variable instance to be flattened");return[r,...(r.successCalls||[]).flatMap(t=>U(t,a,e)),...(r.errorCalls||[]).flatMap(t=>U(t,a,e)),...(r.inputs||[]).flatMap(t=>U(t,a,e)),...(r.outputs||[]).flatMap(t=>U(t,a,e)),...(r.internalCalls||[]).flatMap(t=>U(t,a,e)),...(r.writesValues||[]).flatMap(t=>U(t,a,e)),...r.readsValue?U(r.readsValue,a,e):[],...r.defaultValue?U(r.defaultValue,a,e):[],...(hi(r)||[]).flatMap(t=>U(t,a,e)),...r.declaration?U(r.declaration,a,e):[],...r.parent?U(r.parent,a,e):[]]}function _i(){const r=new Set,a=oE.flatMap(e=>U(e,r)).map(e=>e.id);if(!a.includes("http-request-error-return-delaration-id"))throw new Error("Built-in base entities must be included in the list");return a}function U(r,a=new Set,e={ignoreBuiltInBaseEntities:!1}){if(!r)throw new Error("Entity must be defined to be flattened");if(r.type===n.GenericReference)return[];if(e.ignoreBuiltInBaseEntities&&(Ti.includes(r.type)||_i().includes(r.id)))return[];if(a.has(r.id))return[];switch(r.type){case n.FunctionCall:return RP(r,a,e);case n.Operation:return _P(r,a,e);case n.Condition:return IP(r,a,e);case n.Loop:return BP(r,a,e);case n.Search:return $P(r,a,e);case n.GlobalEvent:return OP(r,a,e);case n.ReturnStatement:return jP(r,a,e);case n.ContinueStatement:return EP(r,a,e);case n.BreakStatement:return vP(r,a,e);case n.VariableDeclaration:return FP(r,a,e);case n.DefinitionEntity:return AP(r,a,e);case n.FunctionDeclaration:return DP(r,a,e);case n.Project:return LP(r,a,e);case n.ActionDescriptor:return hP(r,a,e);case n.ArgumentDeclaration:return mP(r,a,e);case n.ReturnDeclaration:return gP(r,a,e);case n.ValueDescriptor:return GP(r,a,e);case n.InputMap:return PP(r,a,e);case n.OutputMap:return MP(r,a,e);case n.DataType:return bP(r,a,e);case n.InstalledProject:return wP(r,a,e);case n.InternalCall:return CP(r,a,e);case n.LiteralValue:return VP(r,a,e);case n.Property:return UP(r,a,e);case n.VariableInstance:return xP(r,a,e);case n.BuiltInBaseEntity:return e.ignoreBuiltInBaseEntities?[]:TP(r,a,e);case n.PrimitiveEntity:return e.ignoreBuiltInBaseEntities?[]:NP(r,a,e)}return[]}function Yc(r){return r.type===n.FunctionCall||r.type===n.InternalCall||[n.Operation,n.Condition,n.Loop].includes(r.type)?r.declaration.inputs:r.type===n.FunctionDeclaration||Gn.includes(r.type)?r.inputs:r.type===n.Search?r.inputsDeclarations:[]}function EJ(r,a){return a.type===n.Condition?a.inputs.find(e=>e.declaration.id===r.id):a.type===n.FunctionCall||a.type===n.Operation?a.inputs.find(e=>e.declaration.id===r.id):null}function kP(r){return ot.includes(r.type)?r.inputs:[]}function SP(r){var a;return r.type===n.FunctionCall?((a=r.declaration.returnStatements[0])==null?void 0:a.outputs)||[]:[n.Operation,n.Condition,n.Loop].includes(r.type)?r.declaration.outputs:r.type===n.Search?r.outputsDeclarations:nt.includes(r.type)?r.outputs:[]}function AJ(r,a){return a.type===n.Condition?null:a.type===n.FunctionCall||a.type===n.Operation?a.outputs.find(e=>e.declaration.id===r.id):null}function bJ(r){return r.type===n.Condition?[]:ot.includes(r.type)?r.outputs:[]}function Hl(r){const a=r.readsValue;return a?wt(a):null}function ZP(r,a){const e=r.readsValue;return e?Wl(e,a):null}function qP(r){const a=r.internalCalls||[];return p(Xt(p(a.flatMap(e=>[...e.successCalls,...e.errorCalls]))))}function Os(r){const a=zc(r),e=[];return a.forEach(t=>{if(et.includes(t.type))e.push(t);else if(Ir.includes(t.type)){const i=t.parent;e.push(i)}}),e}function p(r){const a=new Set;return r.filter(e=>!e||a.has(e.id)?!1:(a.add(e.id),!0))}function Hr(r,a=!1){const e=[];if(r.type===n.Project&&e.push(...(r==null?void 0:r.entities)||[],...(r==null?void 0:r.functions)||[],...(r==null?void 0:r.variableDeclarations)||[],...(r==null?void 0:r.variableInstances)||[],...(r==null?void 0:r.searches)||[],...(r==null?void 0:r.loops)||[],...(r==null?void 0:r.operations)||[],...(r==null?void 0:r.conditions)||[],...(r==null?void 0:r.functionCalls)||[],...(r==null?void 0:r.events)||[],...(r==null?void 0:r.projects)||[]),dt.includes(r.type)&&e.push(...(r==null?void 0:r.detachedChildren)||[]),r.type===n.DefinitionEntity){const t=[...r.suggestedMethods,...r.methods].flatMap(i=>i.collapsed&&a?[]:Hr(i));e.push(...t)}if(r.type===n.Condition){const t=r.successCalls.map(s=>wt(s)),i=r.errorCalls.map(s=>wt(s));e.push(...t,...i)}if(Gn.includes(r.type)){if(r.collapsed&&a)return[];const t=r.inputs.map(s=>Os(s)).flat(),i=r.calls.map(s=>wt(s));e.push(...p(t),...i)}if(ot.includes(r.type)&&r.type!==n.Condition&&r.type!==n.Loop){const t=r==null?void 0:r.outputs.map(l=>Os(l)).flat(),i=r.successCalls.map(l=>wt(l)),s=r.errorCalls.map(l=>wt(l));e.push(...p(t),...i,...s)}if(et.includes(r.type)){const t=Os(r),i=qP(r);e.push(...t,...i)}if(r.type===n.Loop){const t=r.outputs.map(l=>Os(l)).flat();if(r.body){const l=Hr(r.body,a);e.push(...l)}const i=r.errorCalls.map(l=>wt(l)),s=r.successCalls.map(l=>wt(l));e.push(...p(t),...s,...i)}if(r.type===n.FunctionDeclaration){if(r.collapsed&&a)return[];const t=r.inputs.map(s=>Os(s)).flat(),i=r.calls.map(s=>wt(s));e.push(...p(t),...i)}return p(e)}function JP(r,a=!1){const e=Hr(r,a),t=[...e,...e.reduce((i,s)=>[...i,...JP(s,a)],[])];return p(t)}function WP(r){const a=Ln(r),e=[...a,...a.reduce((t,i)=>[...t,...WP(i)],[])];return p(e)}function Kl(r){return r.implements.reduce((a,e)=>e.type===n.DefinitionEntity?[...a,n.DefinitionEntity,...Kl(e),...Xl(e)]:[...a,e.name],[])}function Xl(r){return r.extends.reduce((a,e)=>e.type===n.DefinitionEntity?[...a,n.DefinitionEntity,...Xl(e),...Kl(e)]:[...a,e.name],[])}function Hc(r){return r.extends.reduce((a,e)=>e.type===n.DefinitionEntity?[...a,e,...Hc(e),...Kc(e)]:[...a,e],[])}function Kc(r){return r.implements.reduce((a,e)=>e.type===n.DefinitionEntity?[...a,e,...Kc(e),...Hc(e)]:[...a,e],[])}function Xc(r){return[...Xl(r),...Kl(r)].filter((e,t,i)=>i.indexOf(e)===t)}function zP(r){return r.implements.length===0&&r.extends.length===0?null:r.implements.find(t=>t.type===n.BuiltInBaseEntity&&t.name===z.PERSISTED_ENTITY)?r:[...r.implements,...r.extends].reduce((t,i)=>{if(i.type===n.DefinitionEntity){const s=zP(i);if(s)return s}return t},null)}function RJ(r){const a=r.extends.find(e=>e.type===n.BuiltInBaseEntity);return a&&a.type===n.BuiltInBaseEntity?a:null}function DJ(r){const a=r.implements.find(e=>e.type===n.BuiltInBaseEntity);return a&&a.type===n.BuiltInBaseEntity?a:null}function Qc(r){const a=r.extends.find(e=>e.type===n.DefinitionEntity);return a&&a.type===n.DefinitionEntity?a:null}function xt(r){if(r.type===n.BuiltInBaseEntity)return[r];const a=[...r.implements,...r.extends].reduce((e,t)=>t.type===n.BuiltInBaseEntity?[...e,t]:t.type===n.DefinitionEntity?[...e,...xt(t)]:e,[]);return p(a)}function Ql(r){return r.type===n.PrimitiveEntity?!0:r.type===n.BuiltInBaseEntity?r.interactive:!xt(r).find(t=>!t.interactive)}function OJ(r){return r.parent===r.project&&r.project.variableDeclarations.includes(r)}function ef(r){return r.parent!==r.project?!1:n.VariableDeclaration===r.type?r.project.variableDeclarations.includes(r):n.VariableInstance===r.type?r.project.variableInstances.includes(r):n.FunctionCall===r.type?r.project.functionCalls.includes(r):n.Condition===r.type?r.project.conditions.includes(r):n.Operation===r.type?r.project.operations.includes(r):n.Loop===r.type?r.project.loops.includes(r):n.Search===r.type?r.project.searches.includes(r):!1}function YP(r){if([...lt,n.DefinitionEntity,n.InstalledProject,n.Project].includes(r.type)||ef(r))return!1;const a=Ln(r);return a.length===0?!0:a.some(e=>YP(e))}function tf(r){return[...lt,n.DefinitionEntity,n.InstalledProject,n.Project].includes(r.type)||ef(r)?!1:Ln(r).length===0}function HP(r,a=0){if(tf(r)){const e=Ln(r);return e.length===0?r:e.map(i=>HP(i,a+1)).reduce((i,s)=>i?s&&s.x<i.x?s:i:s,null)}return null}function KP(r){const a=[];if(tf(r))a.push(r);else return[];return Ln(r).forEach(t=>{a.push(...KP(t))}),a}function XP(r){return r.type===n.FunctionDeclaration&&r.parent!==r.project&&!![n.DefinitionEntity,n.Loop,n.InstalledProject].includes(r.parent.type)}function PJ(r,a){const e=new Map;return r.forEach(t=>{e.set(t.id,t)}),a.forEach(t=>{e.set(t.id,t)}),Array.from(e.values())}function La(r){switch(r){case n.DefinitionEntity:return Xr;case n.FunctionDeclaration:return gr;case n.VariableDeclaration:return xr;case n.VariableInstance:return Fr;case n.FunctionCall:return Yr;case n.Operation:return jr;case n.Condition:return Gr;case n.ReturnStatement:return Ur;case n.Loop:return $r;case n.Search:return kr;case n.InputMap:return Wi;case n.OutputMap:return zi;case n.ArgumentDeclaration:return Zr;case n.ReturnDeclaration:return si;case n.Property:return Lr;case n.InstalledProject:return Sr;case n.Project:return m;case n.BuiltInBaseEntity:return Ki;default:return null}}function kt(r,a){if(dt.includes(r.type))return r;if(Ti.includes(r.type))return null;const e=r.parent;if(!e)return null;if(e.type===n.GenericReference){const t=_(e);if(!t)return null;const i=a.get(t);return i?kt(i,a):null}else return e===a?a:kt(e,a)}function rf(r,a){if(Ti.includes(r.type)||a.getBuiltIn(r.id))return null;const e=mi(r.parent,a);return e?e===a?dt.includes(r.type)?r:null:e.type===n.DefinitionEntity?r:rf(e,a):null}function ed(r,a,e){if(r===a||a===e||r===e)return!1;const t=kt(a.parent,e);return t===r?!0:ed(t,a,e)}var td=(r=>(r.SameBothLocal="same-both-local",r.AInB="a-in-b",r.BInA="b-in-a",r.ParallelInCommonParent="parallel-in-common-parent",r.ParallelInProject="parallel-in-project",r.AIsGlobalBIsNot="a-is-global-b-is-not",r.BIsGlobalAIsNot="b-is-global-a-is-not",r.SameBothGlobal="same-both-global",r))(td||{});function Ua(r,a,e){const t=kt(r,e),i=kt(a,e);if(!t)throw new Error("Could not find scope owner for the entity: "+r.id);if(!i)throw new Error("Could not find scope owner for the entity: "+a.id);if(t===i&&t.type!==n.Project)return{compatible:!0,type:"same-both-local",commonAncestorScope:t};if(t===i&&t.type===n.Project)return{compatible:!0,type:"same-both-global",commonAncestorScope:t};if(t.type===n.Project&&i.type!==n.Project)return{compatible:!1,type:"a-is-global-b-is-not",commonAncestorScope:t};if(t.type!==n.Project&&i.type===n.Project)return{compatible:!1,type:"b-is-global-a-is-not",commonAncestorScope:i};if(ed(t,i,e))return{compatible:!0,type:"b-in-a",commonAncestorScope:t};if(ed(i,t,e))return{compatible:!0,type:"a-in-b",commonAncestorScope:i};const o=Jc(t,i);return o===e?{compatible:!1,type:"parallel-in-project",commonAncestorScope:o}:o?{compatible:!1,type:"parallel-in-common-parent",commonAncestorScope:kt(o,e)}:{compatible:!1,type:"parallel-in-project",commonAncestorScope:e}}function QP(r,a,e){const t=Ua(r,a,e);if(!t.compatible||t.type!=="same-both-local")return null;if(r===a)return r;let i=kt(r.parent,e);if(i){if(i===a)return a;if(i.type===n.Project)return r}else return r;for(;i;){if(i){if(i===a)return a;if(i.type===n.Project)return r}else return r;i=kt(i.parent,e)}let s=kt(a.parent,e);if(s){if(s===r)return r;if(s.type===n.Project)return a}else return a;for(;s;){if(s){if(s===r)return r;if(s.type===n.Project)return a}else return a;s=kt(s.parent,e)}return null}function ew(r){return r.length===0?null:r.length===1?r[0]:r.reduce((e,t)=>{const i=QP(e,t,t.project);return!i||i===t?e:t},r[0])}function mi(r,a){if(!r)return null;let e;return typeof r=="string"?e=r:r.type===n.GenericReference?e=_(r):e=r.id,e===a.id?a:a.get(e)}function Kr(r){if(!r)return null;if(Ti.includes(r.type))return r;if(r.type===n.Project)return null;if(r.project.getBuiltIn(r.id))return r;const a=r.parent;return!a||a.type===n.Project?null:Kr(a)}function ga(r){const a=[];function e(s,l){return a.some(o=>o.blockedByCaller===s&&o.blockedByCalling===l)}function t(s,l){e(s,l)||a.push({blockedByCaller:s,blockedByCalling:l})}const i=rf(r,r.project);return r.calledBySuccess.forEach(s=>{[...s.successCalls||[]].forEach(d=>{nt.includes(d.type)&&d!==r&&(it(r).find(c=>c===d)||t(s,d))});let o;if(ot.includes(s.type)&&(o=s),o){const d=ga(o);d.reachable||it(r).find(c=>c===s)||d.blocks.forEach(c=>{t(s,c.blockedByCalling)})}}),r.calledByError.forEach(s=>{[...s.errorCalls||[]].forEach(d=>{nt.includes(d.type)&&d!==r&&(it(r).find(c=>c===d)||t(s,d))});let o;if(ot.includes(s.type)&&(o=s),o){const d=ga(o);d.reachable||it(r).find(c=>c===s)||d.blocks.forEach(c=>{t(s,c.blockedByCalling)})}}),r.calledByEntry.forEach(s=>{if([...s.calls||[]].forEach(d=>{nt.includes(d.type)&&d!==r&&(it(r).find(c=>c===d)||t(s,d))}),s===i)return;let o;if(s.type===n.FunctionDeclaration){const d=wt(s);if(d.type===n.DefinitionEntity)return;d.type===n.Loop&&(o=d)}if(o){const d=ga(o);d.reachable||d.blocks.forEach(u=>{t(s,u.blockedByCalling)})}}),{reachable:a.length===0,entryPoint:i,blocks:a}}function wJ(r){return Sa.includes(r.type)?r.type===n.FunctionDeclaration?!XP(r):!0:!1}function CJ(r){if(n.ActionDescriptor===r.type){if(r.project.operationDeclarations.find(s=>s.id===r.id))return n.Operation;if(r.project.globalEventActionDescriptors.find(s=>s.id===r.id))return n.GlobalEvent;if(r.project.loopDeclarations.find(s=>s.id===r.id))return n.Loop;if(r.project.conditionDeclarations.find(s=>s.id===r.id))return n.Condition}return r.type}function Ps(r,a){if(r.type!==n.DefinitionEntity||r.abstract)return!1;const e=Qc(r)||r;return!!Xc(e).includes(a)}function VJ(r){const a=[];return r.entities.forEach(e=>{if(Ps(e,z.PERSISTED_ENTITY)){a.push(e);return}}),p(a)}function BJ(r){const a=[];return r.entities.forEach(e=>{if(Ps(e,z.RELATIONAL_DATABASE)){a.push(e);return}}),p(a)}function _J(r){return r.type!==n.DefinitionEntity||r.abstract||!Ps(r,z.PERSISTED_ENTITY)?null:(r==null?void 0:r.properties.find(e=>{var t;return((t=e.implements)==null?void 0:t.id)===k[n.BuiltInBaseEntity][z.PERSISTED_ENTITY].properties.primaryKey.id&&!e.abstract}))||null}function MJ(r){if(r.type!==n.DefinitionEntity)return[];if(r.abstract)return[];if(!Ps(r,z.PERSISTED_ENTITY))return[];const a=[],e=r.properties.filter(t=>{var i;return((i=t.implements)==null?void 0:i.id)!==k[n.BuiltInBaseEntity][z.PERSISTED_ENTITY].properties.database.id&&!t.abstract});return a.push(...e),a}function NJ(r){var e;if(!r||r.type!==n.DefinitionEntity||!Ps(r,z.PERSISTED_ENTITY))return null;const a=r.properties.find(t=>{var i;return((i=t.implements)==null?void 0:i.id)===k[n.BuiltInBaseEntity][z.PERSISTED_ENTITY].properties.database.id});return(e=a==null?void 0:a.getDefaultValue())==null?void 0:e.valueAsTypeSingle}function mt(r,a){var t;if(!uf.includes(a.type)||!r)return a.project||null;let e=a.project;return r.type===n.Project?e=r:((t=a.project)==null?void 0:t.id)!==r.project.id&&(e=r.project),e}function LJ(r){switch(r){case n.Project:return m;case n.InstalledProject:return Sr;case n.DefinitionEntity:return Xr;case n.FunctionDeclaration:return gr;case n.GlobalEvent:return Bn;case n.VariableInstance:return Fr;case n.VariableDeclaration:return xr;case n.InputMap:return Wi;case n.OutputMap:return zi;case n.Condition:return Gr;case n.Operation:return jr;case n.FunctionCall:return Yr;case n.ReturnDeclaration:return si;case n.ArgumentDeclaration:return Zr;case n.PrimitiveEntity:return oi;case n.DataType:return Vn;case n.Property:return Lr;case n.ActionDescriptor:return Je;case n.ReturnStatement:return Ur;case n.ContinueStatement:return Ft;case n.BreakStatement:return _n;case n.Loop:return $r;case n.Search:return kr;case n.ValueDescriptor:return qr;case n.InternalCall:return Mn;case n.LiteralValue:return Nn}return null}function UJ(r){const a={added:{},updated:{},removed:{},affected:[],seenEntities:[],self:r==null?void 0:r.self};return r==null||r.added.forEach(e=>{a.added[e.id]=e}),r==null||r.updated.forEach(e=>{a.updated[e.id]=e}),r==null||r.removed.forEach(e=>{a.removed[e.id]=e}),a.affected=Array.from(new Set(r==null?void 0:r.affected.map(e=>e.id))),a}function pt(r,a){const e=La(r.type);return e?!e.MUTABLE_META_PROPERTIES.every(i=>{const s=r[i],l=a[i];return l===void 0||s===l?!0:Array.isArray(s)&&Array.isArray(l)?s.length!==l.length?!1:s.every((o,d)=>o===l[d]):!1}):!1}function id(r,a={}){if(r.type===n.Project)return[];if(!r.parent)return[];const e=_(r.parent);if(!e)return[];const t=a[e];return t?[t.id,...id(t,a)]:[]}function gJ(r){const a=[],e=new Set;return[...r.listAdded,...r.listUpdated,...r.listAffected].forEach(t=>{const i=wt(t);!i||e.has(i.id)||(e.add(i.id),a.push(i))}),p(a)}function tw(r){const a=fZ(),e=r.toJSON();a.safeParse(e).success;const i=r.implements.flatMap(y=>jJ(r,y)),s=r.extends.flatMap(y=>$J(r,y)),l=FJ(r),o=GJ(r);r.methods.flatMap(y=>y.validate());const d=[...i,...s,...l,...o];return Ye(r.errors,d)}function iw(r,a){const e=a.properties.filter(s=>s.abstract),t=[];let i=[...r.properties];return e.forEach(s=>{const l=i.find(o=>{var d;return((d=o.implements)==null?void 0:d.id)===s.id});l?i=i.filter(o=>o.id!==l.id):t.push(s)}),t}function rw(r,a){const e=a.abstractMethods,t=[];let i=[...r.methods];return e.forEach(s=>{const l=i.find(o=>{var d;return((d=o.implements)==null?void 0:d.id)===s.id});l?i=i.filter(o=>o.id!==l.id):t.push(s)}),t}function jJ(r,a){const e=[];if(!a.abstract){const y=de({id:r.id+"--"+F.ImplementingNonAbstractEntity,message:`Entity "${r.name}" with id "${r.id}" is implementing a non-abstract entity "${a.name}" with id "${a.id}"`,issue:null,severity:D.Error,code:F.ImplementingNonAbstractEntity,entity:r});return e.push(y.error),e}const t=a.properties.filter(y=>y.abstract),i=[];let s=[...r.properties];t.forEach(y=>{const c=s.find(I=>{var E;return((E=I.implements)==null?void 0:E.id)===y.id});c?s=s.filter(I=>I.id!==c.id):i.push(y)}),i.length&&i.forEach(y=>{const c=de({id:r.id+"--"+F.MissingPropertyImplementation+"--"+y.id,message:`Property "${y.name}" with id "${y.id}" of entity "${a.name}" with id "${a.id}" is not implemented when entity "${r.name}" with id "${r.id}" implements it`,issue:null,severity:D.Error,code:F.MissingPropertyImplementation,entity:r});e.push(c.error)});const l=[];let o=[...r.methods];a.abstractMethods.forEach(y=>{const c=o.find(I=>{var E;return((E=I.implements)==null?void 0:E.id)===y.id});c?o=o.filter(I=>I.id!==c.id):l.push(y)}),l.length&&l.forEach(y=>{const c=de({id:r.id+"--"+F.MissingMethodImplementation+"--"+y.id,message:`Method "${y.name}" with id "${y.id}" of entity "${a.name}" with id "${a.id}" is not implemented when entity "${r.name}" with id "${r.id}" implements it`,issue:null,severity:D.Error,code:F.MissingMethodImplementation,entity:r});e.push(c.error)});const d=[];a.properties.forEach(y=>{const c=s.find(I=>I.name===y.name);c&&d.push([c,y])}),d.length&&d.forEach(([y])=>{const c=de({id:r.id+"--"+j.PropertyOverwritesOtherSiblingWithSameName+"--"+y.id,message:`Property "${y.name}" with id "${y.id}" of entity "${r.name}" with id "${r.id}" overwrites the property with the same name from the base entity "${a.name}" with id "${a.id}"`,issue:null,severity:D.Error,code:j.PropertyOverwritesOtherSiblingWithSameName,entity:r});e.push(c.error)});const u=[];return a.methods.forEach(y=>{const c=o.find(I=>I.name===y.name);c&&u.push([c,y])}),u.length&&u.forEach(([y])=>{const c=de({id:r.id+"--"+j.MethodOverwritesOtherSiblingWithSameName+"--"+y.id,message:`Method "${y.name}" with id "${y.id}" of entity "${r.name}" with id "${r.id}" overwrites the method with the same name from the base entity "${a.name}" with id "${a.id}"`,issue:null,severity:D.Error,code:j.MethodOverwritesOtherSiblingWithSameName,entity:r});e.push(c.error)}),e}function $J(r,a){const e=[],t=[];if(!r.abstract&&a.abstract){const s=de({id:r.id+"--"+a.id+"--"+F.NonAbstractExtendingAbstractEntity,message:`Entity "${r.name}" with id "${r.id}" is not-abstract but is extending an abstract entity "${a.name}" with id "${a.id}"`,issue:null,severity:D.Error,code:F.NonAbstractExtendingAbstractEntity,entity:r,firstRelationship:a});return e.push(s.error),e}if(r.abstract&&!a.abstract){const s=de({id:r.id+"--"+a.id+"--"+F.AbstractExtendingNonAbstractEntity,message:`Entity "${r.name}" with id "${r.id}" is abstract but is extending an non-abstract entity "${a.name}" with id "${a.id}"`,issue:null,severity:D.Error,code:F.AbstractExtendingNonAbstractEntity,entity:r,firstRelationship:a});return e.push(s.error),e}r.properties.forEach(s=>{var o;const l=a.properties.find(d=>d.name===s.name);((o=s.implements)==null?void 0:o.id)!==(l==null?void 0:l.id)&&l&&t.push(s)}),t.length&&t.forEach(s=>{const l=de({id:r.id+"--"+j.PropertyOverwritesOtherSiblingWithSameName,message:`Property "${s.name}" with id "${s.id}" of entity "${r.name}" with id "${r.id}" overwrites the property with the same name from the extended entity "${a.name}" with id "${a.id}"`,issue:null,severity:D.Error,code:j.PropertyOverwritesOtherSiblingWithSameName,entity:r});e.push(l.error)});const i=[];return r.methods.forEach(s=>{var o;const l=a.methods.find(d=>d.name===s.name);((o=s.implements)==null?void 0:o.id)!==(l==null?void 0:l.id)&&l&&i.push(s)}),i.length&&i.forEach(s=>{const l=de({id:r.id+"--"+j.MethodOverwritesOtherSiblingWithSameName,message:`Method "${s.name}" with id "${s.id}" of entity "${r.name}" with id "${r.id}" overwrites the method with the same name from the extended entity "${a.name}" with id "${a.id}"`,issue:null,severity:D.Error,code:j.MethodOverwritesOtherSiblingWithSameName,entity:r});e.push(l.error)}),e}function GJ(r){const a=[];if(!r.properties.length){const e=de({id:r.id+"--"+F.NoProperties,message:"No properties implemented",issue:null,severity:D.Warning,code:F.NoProperties,entity:r});a.push(e.error)}return r.properties.forEach(e=>{e.validate()}),a}function FJ(r){const a=[];if(r.abstract){if(r.methods.length){const e=de({id:r.id+"--"+F.AbstractEntityWithNonAbstractMethods,message:`Entity "${r.name}" with id "${r.id}" is marked as abstract but has non-abstract methods`,issue:null,severity:D.Error,code:F.AbstractEntityWithNonAbstractMethods,entity:r});a.push(e.error)}if(r.properties.some(e=>!e.abstract)){const e=de({id:r.id+"--"+F.AbstractEntityWithNonAbstractProperties,message:`Entity "${r.name}" with id "${r.id}" is marked as abstract but has non-abstract properties`,issue:null,severity:D.Error,code:F.AbstractEntityWithNonAbstractProperties,entity:r});a.push(e.error),r.properties.forEach(t=>{if(!t.abstract){const i=de({id:r.id+"--"+F.StaticEntityWithNonStaticProperties+"--"+t.id,message:`Property "${t.name}" with id "${t.id}" of entity "${r.name}" with id "${r.id}" is not marked as abstract but the entity is marked as abstract`,issue:null,severity:D.Error,code:F.StaticEntityWithNonStaticProperties,entity:r});a.push(i.error)}})}}else{if(r.abstractMethods.length){const e=de({id:r.id+"--"+F.AbstractPropertyInNonAbstractEntity,message:`Entity "${r.name}" with id "${r.id}" is not marked as abstract but has abstract methods`,issue:null,severity:D.Error,code:F.AbstractPropertyInNonAbstractEntity,entity:r});a.push(e.error)}if(r.properties.some(e=>e.abstract)){const e=de({id:r.id+"--"+F.AbstractMethodInNonAbstractEntity,message:`Entity "${r.name}" with id "${r.id}" is not marked as abstract but has abstract properties`,issue:null,severity:D.Error,code:F.AbstractMethodInNonAbstractEntity,entity:r});a.push(e.error),r.properties.forEach(t=>{if(t.abstract){const i=de({id:r.id+"--"+F.AbstractMethodInNonAbstractEntity+"--"+t.id,message:`Property "${t.name}" with id "${t.id}" of entity "${r.name}" with id "${r.id}" is marked as abstract but the entity is not marked as abstract`,issue:null,severity:D.Error,code:F.AbstractMethodInNonAbstractEntity,entity:r});a.push(i.error)}})}}if(r.static&&r.properties.some(e=>!e.static)){const e=de({id:r.id+"--"+F.StaticEntityWithNonStaticProperties,message:`Entity "${r.name}" with id "${r.id}" is marked as static but has non-static properties`,issue:null,severity:D.Error,code:F.StaticEntityWithNonStaticProperties,entity:r});a.push(e.error),r.properties.forEach(t=>{if(!t.static){const i=de({id:r.id+"--"+F.NonStaticPropertyInStaticEntity+"--"+t.id,message:`Property "${t.name}" with id "${t.id}" of entity "${r.name}" with id "${r.id}" is not marked as static but the entity is marked as static`,issue:null,severity:D.Error,code:F.NonStaticPropertyInStaticEntity,entity:r});a.push(i.error)}})}return a}function xJ(r,a){const e=[],t=xt(a);if(!a.abstract){const l=new st({id:r.id+"--"+a.id+"--"+F.ImplementingNonAbstractEntity,message:`Entity "${r.name}" with id "${r.id}" is implementing a non-abstract built-in entity "${a.name}" with id "${a.id}"`,issue:null,severity:D.Error,code:F.ImplementingNonAbstractEntity,entity:r,firstRelationship:a});e.push(l)}const i=r.implements.filter(l=>l.id!==a.id);if(r.abstract){const l=new st({id:r.id+"--"+a.id+"--"+F.AbstractEntityImplements,message:`Entity "${r.name}" with id "${r.id}" is marked as abstract and cannot implement built-in entity "${a.name}" with id "${a.id}"`,issue:null,severity:D.Error,code:F.AbstractEntityImplements,entity:r,firstRelationship:a});e.push(l)}if(r.static&&!a.static){const l=new st({id:r.id+"--"+a.id+"--"+F.StaticImplementingNonStaticEntity,message:`Entity "${r.name}" with id "${r.id}" is marked as static and cannot implement non-static built-in entity "${a.name}" with id "${a.id}"`,issue:null,severity:D.Error,code:F.StaticImplementingNonStaticEntity,entity:r,firstRelationship:a});e.push(l)}if(!r.static&&a.static){const l=new st({id:r.id+"--"+a.id+"--"+F.NonStaticImplementingStaticEntity,message:`Entity "${r.name}" with id "${r.id}" is not marked as static and cannot implement static built-in entity "${a.name}" with id "${a.id}"`,issue:null,severity:D.Error,code:F.NonStaticImplementingStaticEntity,entity:r,firstRelationship:a});e.push(l)}return i.length&&i.forEach(l=>{if(l.type===n.BuiltInBaseEntity){const o=t.filter(d=>d.id!==l.id);o.length&&o.forEach(d=>{if(d.id!==l.id){const u=new st({id:r.id+"--"+d.id+"--"+l.id+"--"+F.ImplementsIncompatibleEntities,message:`Entity "${r.name}" with id "${r.id}" is implementing built-in entity "${d.name}" with id "${d.id}" but also implements entity "${l.name}" with id "${l.id}" which is incompatible`,issue:null,severity:D.Error,code:F.ImplementsIncompatibleEntities,entity:r,firstRelationship:d,secondRelationship:l});e.push(u)}})}else{xt(l).forEach(y=>{const c=t.filter(I=>I.id!==y.id);c.length&&c.forEach(I=>{if(I.id!==y.id){const E=new st({id:r.id+"--"+I.id+"--"+y.id+"--"+F.ImplementsIncompatibleEntities,message:`Entity "${r.name}" with id "${r.id}" is implementing built-in entity "${I.name}" with id "${I.id}" but also implements entity "${y.name}" with id "${y.id}" which is incompatible`,issue:null,severity:D.Error,code:F.ImplementsIncompatibleEntities,entity:r,firstRelationship:I,secondRelationship:y});e.push(E)}})});const d=vr(a.ownDeclaredProperties,l.ownDeclaredProperties,j.PropertyOverwritesOtherImplementedEntitysPropertyWithSameImplementation,j.PropertyOverwritesOtherImplementedEntitysPropertyWithSameName);e.push(...d.errors);const u=vr(a.abstractMethods,[...l.abstractMethods,...l.methods],j.MethodOverwritesOtherImplementedEntitysMethodWithSameImplementation,j.MethodOverwritesOtherImplementedEntitysMethodWithSameName);e.push(...u.errors)}}),p(r.extends.flatMap(l=>xt(l))).forEach(l=>{if(!t.find(o=>o.id===l.id)){const o=new st({id:r.id+"--"+a.id+"--"+l.id+"--"+F.ExtendsIncompatibleEntities,message:`Entity "${r.name}" with id "${r.id}" is implementing built-in entity "${a.name}" with id "${a.id}" but also extends entity "${l.name}" with id "${l.id}" which is incompatible`,issue:null,severity:D.Error,code:F.ExtendsIncompatibleEntities,entity:r,firstRelationship:a,secondRelationship:l});e.push(o)}}),e}function kJ(r,a,e=!1){const t=[],i=xt(a);if(!r.abstract&&a.abstract){const y=de({id:r.id+"--"+a.id+"--"+F.NonAbstractExtendingAbstractEntity,message:`Entity "${r.name}" with id "${r.id}" is not-abstract but is extending an abstract entity "${a.name}" with id "${a.id}"`,issue:null,severity:D.Error,code:F.NonAbstractExtendingAbstractEntity,entity:r,firstRelationship:a});t.push(y.error)}if(r.abstract&&!a.abstract){const y=de({id:r.id+"--"+a.id+"--"+F.AbstractExtendingNonAbstractEntity,message:`Entity "${r.name}" with id "${r.id}" is abstract but is extending an non-abstract entity "${a.name}" with id "${a.id}"`,issue:null,severity:D.Error,code:F.AbstractExtendingNonAbstractEntity,entity:r,firstRelationship:a});t.push(y.error)}if(!r.static&&a.static){const y=de({id:r.id+"--"+a.id+"--"+F.NonStaticExtendingStaticEntity,message:`Entity "${r.name}" with id "${r.id}" is not static but is extending a static entity "${a.name}" with id "${a.id}"`,issue:null,severity:D.Error,code:F.NonStaticExtendingStaticEntity,entity:r,firstRelationship:a});t.push(y.error)}if(r.static&&!a.static){const y=de({id:r.id+"--"+a.id+"--"+F.StaticExtendingNonStaticEntity,message:`Entity "${r.name}" with id "${r.id}" is static but is extending an non-static entity "${a.name}" with id "${a.id}"`,issue:null,severity:D.Error,code:F.StaticExtendingNonStaticEntity,entity:r,firstRelationship:a});t.push(y.error)}if(!Ql(a)){const y=de({id:r.id+"--"+a.id+"--"+F.ExtendingNonInteractiveEntity,message:`Entity "${r.name}" with id "${r.id}" is extending an non-interactive entity "${a.name}" with id "${a.id}"`,issue:null,severity:D.Error,code:F.ExtendingNonInteractiveEntity,entity:r,firstRelationship:a});t.push(y.error)}const l=r.extends.filter(y=>y.id!==a.id);l.length&&l.forEach(y=>{if(y.type===n.BuiltInBaseEntity){const c=i.filter(I=>I.id!==y.id);c.length&&c.forEach(I=>{if(I.id!==y.id){const E=de({id:r.id+"--"+I.id+"--"+y.id+"--"+F.ExtendsIncompatibleEntities,message:`Entity "${r.name}" with id "${r.id}" is extending built-in entity "${I.name}" with id "${I.id}" but also extends entity "${y.name}" with id "${y.id}" which is incompatible`,issue:null,severity:D.Error,code:F.ExtendsIncompatibleEntities,entity:r,firstRelationship:I,secondRelationship:y});t.push(E.error)}})}else{xt(y).forEach(M=>{const G=i.filter(B=>B.id!==M.id);G.length&&G.forEach(B=>{if(B.id!==M.id){const $=new st({id:r.id+"--"+B.id+"--"+M.id+"--"+F.ImplementsIncompatibleEntities,message:`Entity "${r.name}" with id "${r.id}" is extending built-in entity "${B.name}" with id "${B.id}" but also extends or implements entity "${M.name}" with id "${M.id}" which is incompatible`,issue:null,severity:D.Error,code:F.ImplementsIncompatibleEntities,entity:r,firstRelationship:B,secondRelationship:M});t.push($)}})});const I=!!xt(y).find(M=>M.id===a.id);let E=[...y.properties];I&&(E=E.filter(M=>!a.properties.find(G=>{var B;return G.id===M.id||G.name===M.name||G.id===((B=M.implements)==null?void 0:B.id)})));let O=[...y.methods];I&&(O=O.filter(M=>!a.methods.find(G=>{var B;return G.id===M.id||G.name===M.name||G.id===((B=M.implements)==null?void 0:B.id)})));const P=vr(a.ownDeclaredProperties,E,j.PropertyOverwritesOtherExtendedEntitysPropertyWithSameImplementation,j.PropertyOverwritesOtherExtendedEntitysPropertyWithSameName);t.push(...P.errors);const V=vr(a.abstractMethods,O,j.MethodOverwritesOtherExtendedEntitysMethodWithSameImplementation,j.MethodOverwritesOtherExtendedEntitysMethodWithSameName);t.push(...V.errors)}}),e&&console.log("self.implements.length",r.implements.length),r.implements.length&&r.implements.forEach(y=>{if(y.type===n.BuiltInBaseEntity){const c=i.filter(I=>I.id!==y.id);c.length&&c.forEach(I=>{if(I.id!==y.id){const E=new st({id:r.id+"--"+I.id+"--"+y.id+"--"+F.ImplementsIncompatibleEntities,message:`Entity "${r.name}" with id "${r.id}" is implementing built-in entity "${I.name}" with id "${I.id}" but also implements entity "${y.name}" with id "${y.id}" which is incompatible`,issue:null,severity:D.Error,code:F.ImplementsIncompatibleEntities,entity:r,firstRelationship:I,secondRelationship:y});t.push(E)}})}else{xt(y).forEach(O=>{const P=i.filter(V=>V.id!==O.id);P.length&&P.forEach(V=>{if(V.id!==O.id){const M=new st({id:r.id+"--"+V.id+"--"+O.id+"--"+F.ImplementsIncompatibleEntities,message:`Entity "${r.name}" with id "${r.id}" is implementing built-in entity "${V.name}" with id "${V.id}" but also implements entity "${O.name}" with id "${O.id}" which is incompatible`,issue:null,severity:D.Error,code:F.ImplementsIncompatibleEntities,entity:r,firstRelationship:V,secondRelationship:O});t.push(M)}})});const I=vr(a.ownDeclaredProperties,y.ownDeclaredProperties,j.PropertyOverwritesOtherImplementedEntitysPropertyWithSameImplementation,j.PropertyOverwritesOtherImplementedEntitysPropertyWithSameName);t.push(...I.errors);const E=vr(a.abstractMethods,[...y.abstractMethods,...y.methods],j.MethodOverwritesOtherImplementedEntitysMethodWithSameImplementation,j.MethodOverwritesOtherImplementedEntitysMethodWithSameName);t.push(...E.errors)}});const o=vr(r.ownDeclaredProperties,a.ownDeclaredProperties,j.PropertyOverwritesOtherSiblingWithSameImplementation,j.PropertyOverwritesOtherSiblingWithSameName);t.push(...o.errors);const d=vr(a.methods,a.abstractMethods,j.MethodOverwritesOtherSiblingWithSameImplementation,j.MethodOverwritesOtherSiblingWithSameName);return t.push(...d.errors),p(r.extends.flatMap(y=>xt(y))).forEach(y=>{if(!i.find(c=>c.id===y.id)){const c=new st({id:r.id+"--"+a.id+"--"+y.id+"--"+F.ImplementsIncompatibleEntities,message:`Entity "${r.name}" with id "${r.id}" is extending built-in entity "${a.name}" with id "${a.id}" but also extends entity "${y.name}" with id "${y.id}" which is incompatible`,issue:null,severity:D.Error,code:F.ImplementsIncompatibleEntities,entity:r,firstRelationship:a,secondRelationship:y});t.push(c)}}),t}function SJ(r){const a=[];return r.implements.forEach(e=>{if(!e.static){const t=new st({id:r.id+"--"+e.id+"--"+F.StaticImplementingNonStaticEntity,message:`Entity "${r.name}" with id "${r.id}" is static but implements entity "${e.name}" with id "${e.id}" which is non-static`,issue:null,severity:D.Error,code:F.StaticImplementingNonStaticEntity,entity:r,firstRelationship:e});a.push(t)}}),r.extends.forEach(e=>{if(!e.static){const t=new st({id:r.id+"--"+e.id+"--"+F.StaticExtendingNonStaticEntity,message:`Entity "${r.name}" with id "${r.id}" is static but extends entity "${e.name}" with id "${e.id}" which is non-static`,issue:null,severity:D.Error,code:F.StaticExtendingNonStaticEntity,entity:r,firstRelationship:e});a.push(t)}}),a}function ZJ(r){const a=[];if(r.implements.length){const e=new st({id:r.id+"--"+F.AbstractEntityImplements,message:`Entity "${r.name}" with id "${r.id}" cannot be marked as abstract because it implements other entities`,issue:null,severity:D.Error,code:F.AbstractEntityImplements,entity:r});a.push(e)}return a}function qJ(r){const a=[];return r.extends.forEach(e=>{if(e.static){const t=new st({id:r.id+"--"+e.id+"--"+F.NonStaticExtendingStaticEntity,message:`Entity "${r.name}" with id "${r.id}" is non-static but extends entity "${e.name}" with id "${e.id}" which is static`,issue:null,severity:D.Error,code:F.NonStaticExtendingStaticEntity,entity:r,firstRelationship:e});a.push(t)}}),a}function JJ(r){const a=[];return r.extends.forEach(e=>{if(e.abstract){const t=new st({id:r.id+"--"+e.id+"--"+F.NonAbstractExtendingAbstractEntity,message:`Entity "${r.name}" with id "${r.id}" is non-abstract but extends entity "${e.name}" with id "${e.id}" which is abstract`,issue:null,severity:D.Error,code:F.NonAbstractExtendingAbstractEntity,entity:r,firstRelationship:e});a.push(t)}}),a}const WJ=Object.freeze(Object.defineProperty({__proto__:null,getBaseMethodsNotImplemented:rw,getBasePropertiesNotImplemented:iw,validate:tw,validateCanBecomeAbstract:ZJ,validateCanBecomeNonAbstract:JJ,validateCanBecomeNonStatic:qJ,validateCanBecomeStatic:SJ,validateCanExtendEntity:kJ,validateCanImplementEntity:xJ},Symbol.toStringTag,{value:"Module"}));function zJ(r,a){const e=[];if(r.parent)if(r.id===r.parent)e.push(new w({id:`${r.id}--${r.parent}--${R.SelfReference}`,code:R.SelfReference,severity:D.Error,message:`Entity of type "${r.type}" with id "${r.id}", has a reference to itself at 'parent'. This is not allowed. Change the reference string or the 'entityId' property of the reference object.`,issue:null}));else{const t=a.get(r.parent);t?[n.Project,n.DataType].includes(t.type)||e.push(new w({id:`${r.id}--${r.parent}--${R.InvalidParentReference}`,code:R.InvalidParentReference,severity:D.Error,message:`Entity of type "${r.type}" with id "${r.id}", has a parent reference that isn't pointing to an entity of type 'project' or 'data-type'.`,issue:null})):e.push(new w({id:`${r.id}--${r.parent}--${R.ReferencedEntityNotFound}`,code:R.ReferencedEntityNotFound,severity:D.Error,message:`Entity of type "${r.type}" with id "${r.id}", is referencing an entity with id "${r.parent}" that isn't yet found in the project. Perhaps it should be created first. Or perhaps the ID is incorrect.`,issue:null}))}return r.implements&&Array.isArray(r.implements)?r.implements.forEach(t=>{if(r.id===t){e.push(new w({id:`${r.id}--${t}--${R.SelfReference}`,code:R.SelfReference,severity:D.Error,message:`Entity of type "${r.type}" with id "${r.id}", has a reference to itself at one of the 'implements' references. This is not allowed. Change the reference string or the 'entityId' property of the reference object.`,issue:null}));return}const i=a.get(t);i?[n.DefinitionEntity,n.BuiltInBaseEntity].includes(i.type)?i.abstract||e.push(new w({id:`${r.id}--${t}--${R.InvalidImplementsReference}`,code:R.InvalidImplementsReference,severity:D.Error,message:`Entity of type "${r.type}" with id "${r.id}", has an 'implements' reference that isn't pointing to an abstract entity.`,issue:null})):e.push(new w({id:`${r.id}--${t}--${R.InvalidImplementsReference}`,code:R.InvalidImplementsReference,severity:D.Error,message:`Entity of type "${r.type}" with id "${r.id}", has an 'implements' reference that isn't pointing to an entity of type 'definition-entity' or 'built-in-base-entity'.`,issue:null})):e.push(new w({id:`${r.id}--${t}--${R.ReferencedEntityNotFound}`,code:R.ReferencedEntityNotFound,severity:D.Error,message:`Entity of type "${r.type}" with id "${r.id}", is referencing an entity with id "${t}" that isn't yet found in the project. Perhaps it should be created first. Or perhaps the ID is incorrect.`,issue:null}))}):e.push(new w({id:`${r.id}--${j.InvalidObjectStructure}`,code:j.InvalidObjectStructure,severity:D.Error,message:`Entity of type "${r.type}" with id "${r.id}", has an 'implements' property that isn't an array.`,issue:null})),r.extends&&Array.isArray(r.extends)&&r.extends.forEach(t=>{const i=a.get(t);i?[n.DefinitionEntity,n.BuiltInBaseEntity].includes(i.type)?i.abstract&&e.push(new w({id:`${r.id}--${t}--${R.InvalidExtendsReference}`,code:R.InvalidExtendsReference,severity:D.Error,message:`Entity of type "${r.type}" with id "${r.id}", has an 'extends' reference that isn't pointing to a non-abstract entity. Did you want to use the property 'implements', which holds a list of references to absract entities, instead?`,issue:null})):e.push(new w({id:`${r.id}--${t}--${R.InvalidExtendsReference}`,code:R.InvalidExtendsReference,severity:D.Error,message:`Entity of type "${r.type}" with id "${r.id}", has an 'extends' reference that isn't pointing to an entity of type 'definition-entity' or 'built-in-base-entity'.`,issue:null})):e.push(new w({id:`${r.id}--${t}--${R.ReferencedEntityNotFound}`,code:R.ReferencedEntityNotFound,severity:D.Error,message:`Entity of type "${r.type}" with id "${r.id}", is referencing an entity with id "${t}" that isn't yet found in the project. Perhaps it should be created first. Or perhaps the ID is incorrect.`,issue:null}))}),e}var rd=(r=>(r.Extends="extends",r.Implements="implements",r))(rd||{});const ge=class ge extends at{constructor(e,t){super(e);f(this,"initialData");f(this,"id");f(this,"name");f(this,"description",null);f(this,"x");f(this,"y");f(this,"static");f(this,"abstract");f(this,"type",n.DefinitionEntity);f(this,"properties",[]);f(this,"methods",[]);f(this,"abstractMethods",[]);f(this,"extends",[]);f(this,"implements",[]);f(this,"project");f(this,"errors",[]);f(this,"parent");f(this,"detachedDependents",{});f(this,"knownVersions",null);f(this,"activeVersion",!1);f(this,"initialized",!1);f(this,"startedInitialization",!1);f(this,"suggestedProperties",[]);f(this,"suggestedMethods",[]);this.initialData=e,this.project=t,this.id=e.id,this.name=e.name,this.description=e.description,this.x=e.x,this.y=e.y,this.static=e.static,this.abstract=e.abstract}static new(){return{id:m.UUID.uuid(),version:m.UUID.uuid(),createdAt:T().toISOString(),author:m.sessionAuthor,previousVersion:null,deleted:!1,type:n.DefinitionEntity,name:"",description:"",static:!1,abstract:!1,properties:[],methods:[],abstractMethods:[],extends:[],implements:[],x:0,y:0,parent:null}}static fromGenerationTarget(e,t){let i=t;if(e.parent){const u=_(e.parent);i=t.get(u)}const s=[];e.implements&&e.implements.forEach(u=>{s.push(t.get(u)||t.getBuiltIn(u))});const l=[];e.extends&&e.extends.forEach(u=>{l.push(t.get(u)||t.getBuiltIn(u))});const o={id:e.id,version:m.UUID.uuid(),createdAt:T().toISOString(),author:m.sessionAuthor,previousVersion:null,deleted:!1,name:e.name,type:n.DefinitionEntity,description:e.description,static:e.static,abstract:e.abstract,properties:[],methods:[],abstractMethods:[],extends:l,implements:s,x:0,y:0,parent:i},d=C(o,t);return d.setParent(i,null),d.initChildren(null),d}static validateGenerationTarget(e,t){let i=JSON.parse(JSON.stringify(e));const s=[],l=zJ(i,t),o=Ic(i,t);s.push(...l,...o,...ut(i));const d=i.parent?t.get(i.parent):null;if(d&&d.type===n.DataType){const u=d;u.entity&&s.push(new w({id:`${e.id}--${R.NewEntityWouldOverriteExisting}`,code:R.NewEntityWouldOverriteExisting,severity:D.Error,message:`The entity of type '${e.type}' with id '${e.id}' can't be added to the 'parent' entity with id '${u.id}' because it already has an 'entity' child. Data type entities can only have one 'entity' as children.
405
+ You shouldn't have to manually update a 'parent' property. The equivalent result is to change its callers, the value writters of its inputs, or the value readers of its outputs.`,issue:null})),{errors:t,modifiedData:e}}subscribeDependents(e){return e.forEach(t=>{this.detachedDependents[t.entity.id]||(this.detachedDependents[t.entity.id]=t)}),this}syncDependents(){const e=[],t=[],i=[],s=[];return Object.values(this.detachedDependents).forEach(l=>{const o=l.entity.afterAllChildrenInitialized();e.push(...o.updated),t.push(...o.added),i.push(...o.removed),s.push(...o.affected)}),{updated:p(e),added:p(t),removed:p(i),affected:p(s),self:this}}onDetachedDependencyRemoved(e,t,i){const s=[],l=[],o=[],d=[];if(t==="declaration"){const{updated:u,added:y,removed:c}=this.remove({ignoreUpstream:!1},i);s.push(...u),l.push(...y),o.push(...c)}if(t==="parent"){const{updated:u,added:y,removed:c}=this.remove({ignoreUpstream:!1},i);s.push(...u),l.push(...y),o.push(...c)}return{updated:p(s),added:p(l),removed:p(o),affected:p(d),self:this}}onDetachedDependencyRestored(e,t,i){const s=[],l=[],o=[],d=[];if(t==="declaration"){const{updated:u,added:y,removed:c}=this.restore({},i);s.push(...u),l.push(...y),o.push(...c)}if(t==="parent"){const{updated:u,added:y,removed:c}=this.restore({},i);s.push(...u),l.push(...y),o.push(...c)}return{updated:p(s),added:p(l),removed:p(o),affected:p(d),self:this}}subscribeToDependencies(){var e;return(e=this.parent)==null||e.subscribeDependents([{entity:this,field:"parent"}]),this.declaration.subscribeDependents([{entity:this,field:"declaration"}]),this}increaseVersion(e){if(e&&!T(e).isValid())throw new Error(`The shared timestamp '${e}' is not a valid ISO 8601 date string.`);return e&&T(e).isSame(T(this.createdAt))?this:(this.previousVersion=this.version,this.version=m.UUID.uuid(),this.createdAt=T(e).toISOString()||T().toISOString(),this)}captureVersion(){var t;const e=((t=this.knownVersions)==null?void 0:t.get(this.version))||new Ze(this,this.project);return e.metaSync(this.toMeta(),null),this.knownVersions=this.knownVersions?this.knownVersions.set(this.version,e):new Map([[this.version,e]]),e.inputs=this.inputs,e.outputs=this.outputs,e.error=this.error,e.successCalls=this.successCalls,e.errorCalls=this.errorCalls,e.process=this.process,e.declaration=this.declaration,e.calledBySuccess=this.calledBySuccess,e.calledByError=this.calledByError,e.calledByEntry=this.calledByEntry,e.parent=this.parent,this}recursiveCaptureUpstreamVersions(e){const t=[],i=[],s=[],l=[];if(this.parent){this.parent.increaseVersion(e);const o=this.parent.recursiveCaptureUpstreamVersions(e);t.push(this.parent,...o.updated),i.push(...o.added),s.push(...o.removed)}return{updated:p(t),added:p(i),removed:p(s),affected:p(l),self:this}}async restoreVersion(e){var d;const t=[],i=[],s=[],l=[];if(this.version===e)return{updated:p(t),added:p(i),removed:p(s),affected:p(l),self:this};if(!this.knownVersions){const u=new Map;for(const[y,c]of this.knownVersions||new Map){if(u.set(y,c),c.activeVersion=!1,c.knownVersions)for(const[I,E]of c.knownVersions)u.set(I,E);c.knownVersions=null}}let o=(d=this.knownVersions)==null?void 0:d.get(e);if(!o){const u=await this.APILoadVersion({},e);if(!u)throw new Error(`Version with id '${e}' for entity with id '${this.id}' not found.`);o=new Ze(u,this.project)}return this.metaSync(o.toShallowJSON(),null),this.inputs=o.inputs,this.outputs=o.outputs,this.error=o.error,this.successCalls=o.successCalls,this.errorCalls=o.errorCalls,this.process=o.process,this.declaration=o.declaration,this.calledBySuccess=o.calledBySuccess,this.calledByError=o.calledByError,this.calledByEntry=o.calledByEntry,this.parent=o.parent,{updated:p(t),added:p(i),removed:p(s),affected:p(l),self:this}}hydrateAncestors(){const e=[],t=[],i=[],s=[];if(this.initialData.parent){const l=_(this.initialData.parent),o=this.project.get(l);if(o)this.setParent(o,null),e.push(o);else throw new Error(`${this.type} with id '${this.id}' has a 'parent' reference '${l}' that isn't found in the project`)}else throw new Error(`${this.type} with id '${this.id}' must have a 'parent'`);if(this.initialData.declaration){const l=_(this.initialData.declaration),o=this.project.get(l);o&&(this.setDeclaration(o),e.push(o))}return this.initialData.calledByEntry.forEach(l=>{const o=_(l),d=this.project.get(o);d&&(this.addEntryCaller(d,null),e.push(d))}),this.initialData.calledBySuccess.forEach(l=>{const o=_(l),d=this.project.get(o);d&&(this.addSuccessCaller(d,null),e.push(d))}),this.initialData.calledByError.forEach(l=>{const o=_(l),d=this.project.get(o);d&&(this.addErrorCaller(d,null),e.push(d))}),{updated:p(e),added:p(t),removed:p(i),affected:p(s),self:this}}afterAllChildrenInitialized(e=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"after-all-children-initialized"))){const t=[],i=[],s=[],l=[];this.initialized=!0,this.captureVersion();const{updated:o,added:d,removed:u}=this.syncMissingFixedInputs(e),{updated:y,added:c,removed:I}=this.syncMissingFixedOutputs(e);return t.push(...o,...y),i.push(...d,...c),s.push(...u,...I),e==null||e.attemptAutoclose("after-all-children-initialized",this.id),{updated:p(t),added:p(i),removed:p(s),affected:p(l),self:this}}addSelfToProject(e=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"add-self-to-project"))){var o;const t=[this],i=[],s=[],l=[];return this.parent===this.project&&this.project.addFunctionCall(this),(o=this.process)==null||o.writesValues.forEach(d=>{d.setValueWriter(this.process,e),t.push(d)}),this.successCalls.forEach(d=>{d.addSuccessCaller(this,e),t.push(d)}),this.errorCalls.forEach(d=>{d.addErrorCaller(this,e),t.push(d)}),this.calledBySuccess.forEach(d=>{d.addSuccessCall(this,e),t.push(d)}),this.calledByError.forEach(d=>{d.addErrorCall(this,e),t.push(d)}),this.calledByEntry.forEach(d=>{d.addCall(this,e),t.push(d)}),this.subscribe(),this.subscribeToDependencies(),e==null||e.attemptAutoclose("add-self-to-project",this.id),{updated:p(t),added:p(i),removed:p(s),affected:p(l),self:this}}get calledBy(){return[...this.calledByEntry,...this.calledBySuccess,...this.calledByError]}removeInput(e,t=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"remove-input"))){const i=this.inputs.findIndex(s=>s.id===e.id);return i>-1&&(this.inputs.splice(i,1),t&&(t==null||t.add(this,A.Affected))),t==null||t.attemptAutoclose("remove-input",this.id),this}addInput(e,t=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"add-input"))){return this.inputs.includes(e)?(t==null||t.attemptAutoclose("add-input",this.id),this):(this.inputs.push(e),t==null||t.add(this,A.Affected),t==null||t.attemptAutoclose("add-input",this.id),this)}addOutput(e,t=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"add-output"))){return this.outputs.includes(e)?(t==null||t.attemptAutoclose("add-output",this.id),this):(this.outputs.push(e),t==null||t.add(this,A.Affected),t==null||t.attemptAutoclose("add-output",this.id),this)}removeOutput(e,t=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"remove-output"))){const i=this.outputs.findIndex(s=>s.id===e.id);return i>-1&&(this.outputs.splice(i,1),t&&(t==null||t.add(this,A.Affected))),t==null||t.attemptAutoclose("remove-output",this.id),this}addValueReader(e,t=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"add-value-reader"))){var i;return this.process&&!this.process.writesValues.includes(e)&&((i=this.process)==null||i.addValueReader(e,t),t==null||t.add(this,A.Affected)),t==null||t.attemptAutoclose("add-value-reader",this.id),this}removeValueReader(e,t=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"remove-value-reader"))){var i;return this.process&&this.process.writesValues.includes(e)&&((i=this.process)==null||i.removeValueReader(e,t),t==null||t.add(this,A.Affected)),t==null||t.attemptAutoclose("remove-value-reader",this.id),this}addSuccessCaller(e,t=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"add-success-caller")),i=!1){return this.calledBySuccess.find(s=>s.id===e.id)||(this.calledBySuccess.push(e),t==null||t.add(this,A.Updated),i&&K(this,t)),t==null||t.attemptAutoclose("add-success-caller",this.id),this}addErrorCaller(e,t=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"add-error-caller")),i=!1){return this.calledByError.find(s=>s.id===e.id)||(this.calledByError.push(e),t==null||t.add(this,A.Updated),i&&K(this,t),t==null||t.attemptAutoclose("add-error-caller",this.id)),this}addEntryCaller(e,t=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"add-entry-caller")),i=!1){return this.calledByEntry.find(s=>s.id===e.id)||(this.calledByEntry.push(e),t==null||t.add(this,A.Updated),i&&K(this,t),t==null||t.attemptAutoclose("add-entry-caller",this.id)),this}addErrorCall(e,t=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"add-error-call")),i=!1){return this.errorCalls.find(s=>s.id===e.id)||(this.errorCalls.push(e),i&&K(this,t),t==null||t.add(this,A.Affected)),t==null||t.attemptAutoclose("add-error-call",this.id),this}addSuccessCall(e,t=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"add-success-call")),i=!1){return this.successCalls.find(s=>s.id===e.id)||(this.successCalls.push(e),i&&K(this,t),t==null||t.add(this,A.Affected)),t==null||t.attemptAutoclose("add-success-call",this.id),this}removeCall(e,t=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"remove-call")),i=!1){const s=this.successCalls.findIndex(o=>o.id===e.id);s>-1&&(this.successCalls.splice(s,1),t==null||t.add(this,A.Affected));const l=this.errorCalls.findIndex(o=>o.id===e.id);return l>-1&&(this.errorCalls.splice(l,1),t==null||t.add(this,A.Affected)),i&&K(this,t),t==null||t.attemptAutoclose("remove-call",this.id),this}removeCaller(e,t=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"remove-caller")),i=!1){return this.calledBySuccess=this.calledBySuccess.filter(s=>s.id!==e.id?(t&&(t==null||t.add(this,A.Updated),t==null||t.add(s,A.Affected)),!0):!1),this.calledByError=this.calledByError.filter(s=>s.id!==e.id?(t&&(t==null||t.add(this,A.Updated),t==null||t.add(s,A.Affected)),!0):!1),this.calledByEntry=this.calledByEntry.filter(s=>s.id!==e.id?(t&&(t==null||t.add(this,A.Updated),t==null||t.add(s,A.Affected)),!0):!1),i&&K(this,t),t==null||t.attemptAutoclose("remove-caller",this.id),this}setParent(e,t=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"set-parent"))){var i;return((i=this.parent)==null?void 0:i.id)!==(e==null?void 0:e.id)&&(this.parent=e,t&&(t==null||t.add(this,A.Updated),t==null||t.attemptAutoclose("set-parent",this.id))),this}setDeclaration(e){return this.declaration=e,this}initChildren(e=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"init-children"))){if(this.initialized||this.startedInitialization)return this;if(this.startedInitialization=!0,this.initialData.declaration.type===n.FunctionDeclaration){const t=C(this.initialData.declaration,this.project);this.declaration=t}else{const t=_(this.initialData.declaration),i=this.project.get(t);this.declaration=i}return this.successCalls=this.initialData.successCalls.map(t=>{const i=C(t,this.project);return i.addSuccessCaller(this),[n.BreakStatement,n.ContinueStatement].includes(i.type)?(i.setParent(this.parent.parent,null),i.initChildren(e)):i.type!==n.InternalCall&&(i.setParent(this.parent,null),i.initChildren(e)),i}),this.errorCalls=this.initialData.errorCalls.map(t=>{const i=C(t,this.project);return i.addErrorCaller(this),[n.BreakStatement,n.ContinueStatement].includes(i.type)?(i.setParent(this.parent.parent,null),i.initChildren(e)):i.type!==n.InternalCall&&(i.setParent(this.parent,null),i.initChildren(e)),i}),this.inputs=this.initialData.inputs.map(t=>{const i=C(t,this.project);return i.setParent(this,null),i.initChildren(e),i}),this.initialData.process&&(this.process=C(this.initialData.process,this.project),this.process.setParent(this,null),this.process.initChildren(e)),this.initialData.error&&(this.error=C(this.initialData.error,this.project),this.error.setParent(this,null),this.error.initChildren(e)),this.subscribeToDependencies(),this.afterAllChildrenInitialized(e),e==null||e.attemptAutoclose("init-children",this.id),this}subscribe(){return this.activeVersion=!0,this.project.subscribeInstance(this),this}unsubscribe(){return this.project.unsubscribeInstance(this),this}metaSync(e,t=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"meta-sync"))){const i=pt(this,e),s=this.toMeta();return this.x=e.x||s.x,this.y=e.y||s.y,super.metaSync(e),e.deleted===!0&&!s.deleted?t==null||t.add(this,A.Removed):e.deleted===!1&&s.deleted?t==null||t.add(this,A.Added):i&&(t==null||t.add(this,A.Updated)),t==null||t.attemptAutoclose("meta-sync",this.id),this}async APILoad(e=g,...t){return await Ze.repository.APILoad(this.id,...t),this}async APICreate(e=g,...t){return await Ze.repository.APICreate(this.toShallowJSON(),...t),this}async APIUpdate(e=g,...t){return await Ze.repository.APIUpdate(this.toShallowJSON(),...t),this}async APIDelete(e=g,...t){return await Ze.repository.APIDelete(this.toShallowJSON(),...t),this}async APIClone(e=g,...t){return await Ze.repository.APIClone(this.id,...t),this}async APILoadVersion(e=g,t,...i){return await Ze.repository.APILoadVersion(this.id,t,...i)}remove({ignoreUpstream:e}={ignoreUpstream:!1},t=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"remove-entity"))){var d;const i=[],s=[],l=[],o=[];if(t!=null&&t.hasRemoved(this.id))return t==null||t.attemptAutoclose("remove-entity",this.id),{added:[],updated:[],removed:[],affected:[],self:this};if(s.push(this),this.unsubscribe(),this.project.subscribeDeletedInstance(this),this.metaSync({deleted:!0},t),Object.values(this.detachedDependents).forEach(u=>{const{updated:y,removed:c,added:I}=u.entity.onDetachedDependencyRemoved(this,u.field,t);i.push(...y),s.push(...c),l.push(...I)}),this.process){const{updated:u,removed:y}=(d=this.process)==null?void 0:d.remove({ignoreUpstream:!0},t);i.push(...u),s.push(...y)}if(this.inputs.forEach(u=>{const{updated:y,removed:c}=u.remove({ignoreUpstream:!0},t);i.push(...y),s.push(...c)}),this.outputs.forEach(u=>{const{updated:y,removed:c}=u.remove({ignoreUpstream:!0},t);i.push(...y),s.push(...c)}),this.error){const{updated:u,removed:y}=this.error.remove({ignoreUpstream:!0},t);i.push(...u),s.push(...y)}return this.successCalls.forEach(u=>{i.push(u),u.removeCaller(this,t)}),this.errorCalls.forEach(u=>{i.push(u),u.removeCaller(this,t)}),e||this.calledBy.forEach(u=>{i.push(u),u.removeCall(this,t)}),t==null||t.attemptAutoclose("remove-entity",this.id),{added:p(l),updated:p(i),removed:p(s),affected:p(o),self:this}}restore({}={},e=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"restore-entity"))){const t=[],i=[],s=[],l=[];if(e!=null&&e.hasAdded(this.id))return e==null||e.attemptAutoclose("restore-entity",this.id),{added:[],updated:[],removed:[],affected:[],self:this};if(this.subscribe(),this.project.unsubscribeDeletedInstance(this),this.metaSync({deleted:!1},e),this.process){const{updated:o}=this.process.restore({},e);i.push(...o)}return this.inputs.forEach(o=>{const{updated:d}=o.restore({},e);i.push(...d)}),this.outputs.forEach(o=>{const{updated:d}=o.restore({},e);i.push(...d)}),this.successCalls.forEach(o=>{i.push(o),o.addSuccessCaller(this,e)}),this.errorCalls.forEach(o=>{i.push(o),o.addErrorCaller(this,e)}),this.calledBySuccess.forEach(o=>{i.push(o),o.addSuccessCall(this,e)}),this.calledByError.forEach(o=>{i.push(o),o.addErrorCall(this,e)}),this.calledByEntry.forEach(o=>{i.push(o),o.addCall(this,e)}),e==null||e.attemptAutoclose("restore-entity",this.id),{added:p(t),updated:p(i),removed:p(s),affected:p(l),self:this}}toFlat(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this,...this.successCalls.flatMap(i=>i.toFlat(e)),...this.errorCalls.flatMap(i=>i.toFlat(e)),...this.inputs.flatMap(i=>i.toFlat(e)),...this.outputs.flatMap(i=>i.toFlat(e)),...this.process?this.process.toFlat(e):[],...this.error?this.error.toFlat(e):[],...this.calledBy.flatMap(i=>i.toFlat(e))])}toFlatIds(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.id,...this.successCalls.flatMap(i=>i.toFlatIds(e)),...this.errorCalls.flatMap(i=>i.toFlatIds(e)),...this.inputs.flatMap(i=>i.toFlatIds(e)),...this.outputs.flatMap(i=>i.toFlatIds(e))])}toMeta(){return{id:this.id,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,x:this.x,y:this.y,type:this.type}}toJSON(e=new Set){var t,i;return e.has(this.id)?this.toReference():(e.add(this.id),{id:this.id,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,type:this.type,x:this.x,y:this.y,successCalls:this.successCalls.map(s=>s.toJSON(e)),errorCalls:this.errorCalls.map(s=>s.toJSON(e)),calledBySuccess:this.calledBySuccess.map(s=>s.toReference()),calledByError:this.calledByError.map(s=>s.toReference()),calledByEntry:this.calledByEntry.map(s=>s.toReference()),process:(t=this.process)==null?void 0:t.toJSON(e),declaration:this.declaration.toJSON(e),inputs:this.inputs.map(s=>s.toJSON(e)),outputs:this.outputs.map(s=>s.toJSON(e)),parent:this.parent.toReference(),error:(i=this.error)==null?void 0:i.toJSON(e)})}toJSONClone(e=q){var i,s,l,o,d,u,y;let t;return(i=e.seenEntityMaps)!=null&&i.has(this.id)?t=e.seenEntityMaps.get(this.id):(t=e.newId||ht(this,this.project,e.uuidStrategy),e.seenEntityMaps&&e.seenEntityMaps.set(this.id,t)),(s=e.seenEntities)!=null&&s.has(t)||(l=e.seenEntities)!=null&&l.has(this.id)?this.toReference({seenEntityMaps:e.seenEntityMaps}):((o=e.seenEntities)==null||o.add(t),(d=e.seenEntities)==null||d.add(this.id),{id:t,version:m.UUID.uuid(),createdAt:e.timestamp||T().toISOString(),previousVersion:null,author:this.author,deleted:this.deleted,type:this.type,x:this.x,y:this.y,successCalls:this.successCalls.map(c=>c.toJSONClone({...e,newId:null})),errorCalls:this.errorCalls.map(c=>c.toJSONClone({...e,newId:null})),calledBySuccess:this.calledBySuccess.map(c=>c.toReference({seenEntityMaps:e.seenEntityMaps})),calledByError:this.calledByError.map(c=>c.toReference({seenEntityMaps:e.seenEntityMaps})),calledByEntry:this.calledByEntry.map(c=>c.toReference({seenEntityMaps:e.seenEntityMaps})),process:(u=this.process)==null?void 0:u.toJSONClone({...e,newId:null}),declaration:this.declaration.toJSONClone({...e,newId:null}),inputs:this.inputs.map(c=>c.toJSONClone({...e,newId:null})),outputs:this.outputs.map(c=>c.toJSONClone({...e,newId:null})),error:(y=this.error)==null?void 0:y.toJSONClone({...e,newId:null}),parent:this.parent.toReference({seenEntityMaps:e.seenEntityMaps})})}toReference(e=q){var i;let t=this.id;return(i=e.seenEntityMaps)!=null&&i.has(this.id)&&(t=e.seenEntityMaps.get(this.id)),{id:t+"--"+m.UUID.uuid()+"--ref",type:n.GenericReference,entityId:t,version:this.version,entityType:this.type}}toShallowJSON(e=q){var i;let t=this.id;return(i=e.seenEntityMaps)!=null&&i.has(this.id)&&(t=e.seenEntityMaps.get(this.id)),{id:t,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,type:this.type,x:this.x,y:this.y,process:this.process?this.process.toReference(e):null,inputs:this.inputs.map(s=>s.toReference(e)),outputs:this.outputs.map(s=>s.toReference(e)),declaration:this.declaration.toReference(e),successCalls:this.successCalls.map(s=>s.toReference(e)),errorCalls:this.errorCalls.map(s=>s.toReference(e)),calledBySuccess:this.calledBySuccess.map(s=>s.toReference(e)),calledByError:this.calledByError.map(s=>s.toReference(e)),calledByEntry:this.calledByEntry.map(s=>s.toReference(e)),error:this.error?this.error.toReference(e):null,parent:this.parent.toReference(e)}}toFlatJSON(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.toShallowJSON(),...this.successCalls.flatMap(i=>i.toFlatJSON(e)),...this.errorCalls.flatMap(i=>i.toFlatJSON(e)),...this.inputs.flatMap(i=>i.toFlatJSON(e)),...this.outputs.flatMap(i=>i.toFlatJSON(e)),...this.process?this.process.toFlatJSON(e):[],...this.error?this.error.toFlatJSON(e):[]])}toGenerationTarget(){const e=this.parent.type===n.Project?void 0:this.parent.id;return{id:this.id,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,type:this.type,calledByEntry:this.calledByEntry.map(t=>t.id),calledBySuccess:this.calledBySuccess.map(t=>t.id),calledByError:this.calledByError.map(t=>t.id),declaration:this.declaration.id,parent:e}}toFlatGenerationTarget(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.toGenerationTarget(),...this.successCalls.flatMap(i=>i.toFlatGenerationTarget(e)),...this.errorCalls.flatMap(i=>i.toFlatGenerationTarget(e)),...this.inputs.flatMap(i=>i.toFlatGenerationTarget(e)),...this.outputs.flatMap(i=>i.toFlatGenerationTarget(e)),...this.process?this.process.toFlatGenerationTarget(e):[],...this.error?this.error.toFlatGenerationTarget(e):[]])}clearErrors(){var e,t;return this.errors=[],this.inputs.forEach(i=>i.clearErrors()),this.outputs.forEach(i=>i.clearErrors()),this.successCalls.forEach(i=>i.clearErrors()),this.errorCalls.forEach(i=>i.clearErrors()),(e=this.process)==null||e.clearErrors(),(t=this.error)==null||t.clearErrors(),this}validate(){const e=Y1(this);return this.errors=e,{success:!0,error:null,data:this.toJSON()}}getErrors(){return[...this.errors,...this.inputs.flatMap(t=>t.getErrors()),...this.outputs.flatMap(t=>t.getErrors()),...this.error?this.error.getErrors():[],...this.process?this.process.getErrors():[]]}getShallowErrors(){return this.errors}clone(e=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"clone-entity")),t=null,i=null,s=!0){var O,P;let l=mt(t,this);const o=this.toJSON(),d=i||m.UUID.uuid();o.inputs=[];const u=d.split("-id"),y=u[u.length-1||0]||d;o.id=d,o.version=m.UUID.uuid(),o.createdAt=(e==null?void 0:e.timestamp)||T().toISOString(),o.author=(e==null?void 0:e.author)||"1",o.previousVersion=null,o.deleted=!1;const c=ct(o,l);t?c.setParent(t,null):c.setParent(this.parent,null),s&&c.subscribe(),c.initChildren(e),e==null||e.add(c,A.Added);const I=(O=this.inputs)==null?void 0:O.map((V,M)=>V.clone(e,c,y+"-input-map-"+M+"-id",s));c.inputs=I;const E=(P=this.outputs)==null?void 0:P.map((V,M)=>V.clone(e,c,y+"-output-map-"+M+"-id",s));return c.outputs=E,this.error&&(c.error=this.error.clone(e,c,y+"-error-map-id",s)),this.process&&(c.process=this.process.clone(e,c,y+"-process-id",s)),e==null||e.attemptAutoclose("clone-entity",this.id),c}removeUnrecognizedInputs(e=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"remove-unrecognized-inputs"))){const t=[],i=[],s=[],l=[];return this.inputs.forEach(o=>{if(!this.declaration.inputs.find(u=>{var y;return u.id===((y=o.declaration)==null?void 0:y.id)})){const u=o.remove({ignoreUpstream:!1},e);s.push(...u.removed),t.push(...u.updated)}}),e==null||e.attemptAutoclose("remove-unrecognized-inputs",this.id),{updated:p(t),added:p(i),removed:p(s),affected:p(l),self:this}}removeUnrecognizedOutputs(e=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"remove-unrecognized-outputs"))){const t=[],i=[],s=[],l=[];return this.outputs.forEach(o=>{if(!this.declaration.getUniqueReturnDeclarations().find(u=>{var y;return u.id===((y=o.declaration)==null?void 0:y.id)})){const u=o.remove({ignoreUpstream:!1},e);s.push(...u.removed),t.push(...u.updated)}}),e==null||e.attemptAutoclose("remove-unrecognized-outputs",this.id),{updated:p(t),added:p(i),removed:p(s),affected:p(l),self:this}}syncMissingFixedInputs(e=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"sync-missing-fixed-inputs"))){const t=[],i=[],s=[],l=[],o=this.declaration.inputs.filter(c=>!this.inputs.find(I=>I.declaration.id===c.id));this.inputs.sort((c,I)=>c.index-I.index),o.forEach(c=>{this.inputs.forEach(O=>{O.index>=c.index&&O.metaSync({index:O.index+1},e)});const I={id:m.UUID.uuid(),version:m.UUID.uuid(),createdAt:(e==null?void 0:e.timestamp)||T().toISOString(),author:m.sessionAuthor,previousVersion:null,deleted:!1,type:n.InputMap,declaration:c.toJSON(),readsValue:null,defaultValue:null,index:c.index,name:null,description:null,parent:this.toReference()},E=C(I,this.project);E.setParent(this,e),E.initChildren(e),e==null||e.add(E,A.Added),E.addSelfToProject(e),i.push(E)}),this.inputs.sort((c,I)=>c.index-I.index);const{updated:d,added:u,removed:y}=this.removeUnrecognizedInputs(e);return t.push(...d),i.push(...u),s.push(...y),e==null||e.attemptAutoclose("sync-missing-fixed-inputs",this.id),{updated:p(t),added:p(i),removed:p(s),affected:p(l),self:this}}syncMissingFixedOutputs(e=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"sync-missing-fixed-outputs"))){const t=[],i=[],s=[],l=[],o=[];this.outputs=this.initialData.outputs.map(I=>{const E=C(I,this.project);return o.push(E.index),E.setParent(this,null),E.initChildren(e),E});const d=this.declaration.getUniqueReturnDeclarations().filter(I=>!this.outputs.find(E=>E.declaration.id===I.id));this.outputs.sort((I,E)=>I.index-E.index),d.forEach((I,E)=>{this.outputs.forEach(M=>{M.index>=I.index&&M.index++});const O=o.includes(I.index)?this.outputs.length-1+E:I.index,P={id:m.UUID.uuid(),version:m.UUID.uuid(),createdAt:(e==null?void 0:e.timestamp)||T().toISOString(),author:m.sessionAuthor,previousVersion:null,deleted:!1,type:n.OutputMap,declaration:I.toJSON(),defaultValue:null,writesValues:[],index:O,parent:this.toReference()},V=C(P,this.project);V.setParent(this,e),V.initChildren(e),e==null||e.add(V,A.Added),V.addSelfToProject(e)}),this.outputs.sort((I,E)=>I.index-E.index);const{updated:u,added:y,removed:c}=this.removeUnrecognizedOutputs(e);return t.push(...u),i.push(...y),s.push(...c),e==null||e.attemptAutoclose("sync-missing-fixed-outputs",this.id),{updated:p(t),added:p(i),removed:p(s),affected:p(l),self:this}}};f(Ze,"repository",{APICreate:async(e,...t)=>e,APIUpdate:async(e,...t)=>e,APIDelete:async(e,...t)=>e,APIClone:async(e,...t)=>{},APILoad:async(e,...t)=>null,APILoadVersion:async(e,t,...i)=>null}),f(Ze,"type",n.FunctionCall),f(Ze,"USER_MANAGED_PARENT_TYPES",[...dt,n.Project]),f(Ze,"PARENT_TYPES",[...Ze.USER_MANAGED_PARENT_TYPES]),f(Ze,"MUTABLE_BASE_PROPERTIES",[]),f(Ze,"INMUTABLE_BASE_PROPERTIES",["id","type","version","createdAt","author","previousVersion"]),f(Ze,"BASE_PROPERTIES",[...Ze.MUTABLE_BASE_PROPERTIES,...Ze.INMUTABLE_BASE_PROPERTIES]),f(Ze,"MUTABLE_META_PROPERTIES",["x","y"]),f(Ze,"INMUTABLE_META_PROPERTIES",[...Ze.INMUTABLE_BASE_PROPERTIES]),f(Ze,"META_PROPERTIES",[...Ze.MUTABLE_META_PROPERTIES,...Ze.INMUTABLE_META_PROPERTIES]),f(Ze,"MUTABLE_UPSTREAM_PROPERTIES",["calledBySuccess","calledByError","calledByEntry"]),f(Ze,"INMUTABLE_UPSTREAM_PROPERTIES",["declaration","parent"]),f(Ze,"UPSTREAM_PROPERTIES",[...Ze.MUTABLE_UPSTREAM_PROPERTIES,...Ze.INMUTABLE_UPSTREAM_PROPERTIES]),f(Ze,"MUTABLE_DOWNSTREAM_PROPERTIES",["successCalls","errorCalls","writesValues","inputs","outputs","error"]),f(Ze,"INMUTABLE_DOWNSTREAM_PROPERTIES",[]),f(Ze,"DOWNSTREAM_PROPERTIES",[...Ze.MUTABLE_DOWNSTREAM_PROPERTIES,...Ze.INMUTABLE_DOWNSTREAM_PROPERTIES]),f(Ze,"PROPERTIES",[...Ze.META_PROPERTIES,...Ze.UPSTREAM_PROPERTIES,...Ze.DOWNSTREAM_PROPERTIES]);let Yr=Ze;function kc(r){return r&&typeof r.then=="function"}class Zl{constructor(a){f(this,"order",[]);f(this,"flatRecord",{});f(this,"allBuiltInEntityIds",_i());f(this,"onGoingVisits",{});this.flatten(a),this.orderEntities()}flatten(a){const e=new Set(_i()),t=p(U(a,e,{ignoreBuiltInBaseEntities:!0})),i=new Set;for(const s of t)this.flatRecord[s.id]=s,i.add(s.id);this.order=Array.from(i)}moveEntityAfterDependencies(a){const{upstream:e}=Yl(a,this.flatRecord,{ignoreBuiltInBaseEntities:!0,allBuiltInEntityIds:this.allBuiltInEntityIds});for(const t of Object.keys(e)){const i=this.order.indexOf(t),s=this.order.indexOf(a.id);if(i>s)return this.order.splice(s,1),this.order.splice(i,0,a.id),!0}return!1}orderEntities(){let a=!1;for(let e=0;e<this.order.length;e++){const t=this.order[e],i=this.flatRecord[t];if(this.moveEntityAfterDependencies(i)){a=!0;break}}a&&this.orderEntities()}getUpstreamOngoingDependenciesVisits(a,e){const{upstream:t}=Yl(this.flatRecord[a],this.flatRecord,{ignoreBuiltInBaseEntities:!0,allBuiltInEntityIds:this.allBuiltInEntityIds}),i={};return Object.entries(this.onGoingVisits[e]||{}).forEach(([s,l])=>{Object.keys(t).includes(s)&&(i[s]=l)}),i}getDownstreamOngoingDependenciesVisits(a,e){const t=Object.keys(this.onGoingVisits[e]||{}),i=new Set(t.flatMap(l=>Object.keys(Yl(this.flatRecord[l],this.flatRecord,{ignoreBuiltInBaseEntities:!0,allBuiltInEntityIds:this.allBuiltInEntityIds}).downstream))),s={};return Array.from(i).forEach(l=>{l===a&&(s[l]=this.onGoingVisits[e][l])}),s}async settlePromises(a,e){const t=Object.values(a);t.length&&await Promise.all(t),Object.keys(a).forEach(i=>{delete this.onGoingVisits[e][i]})}visit(a){const e=this.order;for(const t of e)a(this.flatRecord[t],this.flatRecord);return this}reverseVisit(a){const e=this.order.slice().reverse();for(const t of e)a(this.flatRecord[t],this.flatRecord);return this}async visitAsync(a){const e=this.order,t=Math.random().toString(36).substring(7);this.onGoingVisits[t]={};for(const i of e){const s=this.getUpstreamOngoingDependenciesVisits(i,t);Object.keys(s).length&&await this.settlePromises(s,t);const l=a(this.flatRecord[i],this.flatRecord);kc(l)&&(this.onGoingVisits[t][i]=l)}return await this.settlePromises(this.onGoingVisits[t],t),this.onGoingVisits[t]={},this}async reverseVisitAsync(a){const e=this.order.slice().reverse(),t=Math.random().toString(36).substring(7);this.onGoingVisits[t]={};for(const i of e){const s=this.getDownstreamOngoingDependenciesVisits(i,t);Object.keys(s).length&&await this.settlePromises(s,t);const l=a(this.flatRecord[i],this.flatRecord);kc(l)&&(this.onGoingVisits[t][i]=l)}return await this.settlePromises(this.onGoingVisits[t],t),this.onGoingVisits[t]={},this}}function K1(r,a){switch(r.id){case k["built-in-base-entity"].BUILT_IN_PERSISTED_ENTITY_ENTITY.id:{const e=r.project.entities.filter(d=>!!d.implements.find(u=>u.id===k["built-in-base-entity"].BUILT_IN_RELATIONAL_DATABASE_ENTITY.id));if(e.find(d=>!!d.properties.find(u=>{var y;return u.implements&&u.implements.id===k["built-in-base-entity"].BUILT_IN_RELATIONAL_DATABASE_ENTITY.properties.default.id&&((y=u.getDefaultValue())==null?void 0:y.value)===!0}))){const u=e[0].properties.find(c=>c.implements&&c.implements.id===k["built-in-base-entity"].BUILT_IN_RELATIONAL_DATABASE_ENTITY.properties.default.id),y=u==null?void 0:u.defaultValue;if(y)y.value=!0;else if(u!=null&&u.dataType){const c={id:m.UUID.uuid(),version:m.UUID.uuid(),createdAt:(a==null?void 0:a.timestamp)||new Date().toISOString(),author:m.sessionAuthor,previousVersion:null,deleted:!1,type:n.LiteralValue,name:L.EntityTemplate,autogeneration:null,value:!0,valueAsTypeSingle:null,valueAsTypeList:null,parent:u==null?void 0:u.dataType.toReference()},I=C(c,r.project);return I.setParent(u==null?void 0:u.dataType,a),I.initChildren(a),a==null||a.add(I,A.Added),I.addSelfToProject(a),{newEntities:[I]}}return{newEntities:[]}}const i=r.project.get(k["built-in-base-entity"].BUILT_IN_RELATIONAL_DATABASE_ENTITY.id),s=ql(i,"Main database",a);if(s.errors.length>0)return{newEntities:[]};const l=s.properties.find(d=>d.implements&&d.implements.id===k["built-in-base-entity"].BUILT_IN_RELATIONAL_DATABASE_ENTITY.properties.default.id),o=l==null?void 0:l.defaultValue;if(o)o.value=!0;else if(l!=null&&l.dataType){const d={id:m.UUID.uuid(),version:m.UUID.uuid(),createdAt:(a==null?void 0:a.timestamp)||new Date().toISOString(),author:m.sessionAuthor,previousVersion:null,deleted:!1,type:n.LiteralValue,name:L.EntityTemplate,autogeneration:null,value:!0,valueAsTypeSingle:null,valueAsTypeList:null,parent:l==null?void 0:l.dataType.toReference()},u=C(d,r.project);u.setParent(l==null?void 0:l.dataType,a),u.initChildren(a),a==null||a.add(u,A.Added),u.addSelfToProject(a)}return{newEntities:[s]}}}return{newEntities:[]}}function X1(r,a){return r.implements.filter(t=>t.type===n.BuiltInBaseEntity).map(t=>{switch(t.id){case k["built-in-base-entity"].BUILT_IN_PERSISTED_ENTITY_ENTITY.id:{const s=r.project.entities.filter(d=>d.implements.find(u=>u.id===k["built-in-base-entity"].BUILT_IN_RELATIONAL_DATABASE_ENTITY.id)).find(d=>!!d.properties.find(u=>{var y;return u.implements&&u.implements.id===k["built-in-base-entity"].BUILT_IN_RELATIONAL_DATABASE_ENTITY.properties.default.id&&((y=u.getDefaultValue())==null?void 0:y.value)===!0}));if(!s)return{newEntities:[]};const l=r.properties.find(d=>d.implements&&d.implements.id===k["built-in-base-entity"].BUILT_IN_PERSISTED_ENTITY_ENTITY.properties.database.id),o=l==null?void 0:l.defaultValue;if(l&&(l!=null&&l.dataType)&&!o){const d={id:m.UUID.uuid(),version:m.UUID.uuid(),createdAt:(a==null?void 0:a.timestamp)||new Date().toISOString(),author:m.sessionAuthor,previousVersion:null,deleted:!1,type:n.LiteralValue,name:L.EntityTemplate,autogeneration:null,value:null,valueAsTypeSingle:s,valueAsTypeList:null,parent:l==null?void 0:l.dataType.toReference()},u=C(d,r.project);return u.setParent(l==null?void 0:l.dataType,a),u.initChildren(a),a==null||a.add(u,A.Added),u.addSelfToProject(a),{newEntities:[u]}}return{newEntities:[]}}}}),{newEntities:[]}}function ql(r,a,e,t){const i=t||m.UUID.uuid(),s=m.UUID.uuid(),l={id:i,version:s,createdAt:(e==null?void 0:e.timestamp)||new Date().toISOString(),author:m.sessionAuthor,previousVersion:null,deleted:!1,name:a,type:n.DefinitionEntity,description:null,static:r.static,abstract:!1,properties:[],methods:[],abstractMethods:[],extends:[],implements:[r],x:0,y:0,parent:r.project};K1(r,e);const o=C(l,r.project);return o.hydrateAncestors(),o.addImplementation(r),o.setParent(r.project,e),o.initChildren(e),e==null||e.add(o,A.Added),r.abstractMethods.map(d=>{const u=m.UUID.uuid(),y=d.implementAsFunctionDeclaration(e,o,u);return o.addMethod(y),e==null||e.add(y,A.Added),y}),o.afterAllChildrenInitialized(e),X1(o,e),o}function Sc(r,a){return a.entities.find(i=>{const s=i.properties,l=s.map(c=>c.name),o=r.every(c=>l.includes(c)),d=l.filter(c=>!r.includes(c)),u=s.every(c=>!d.includes(c.name)||!c.required);return o&&u})||null}function Q1(r,a,e,t=Dt.OrDataTypeGroup){const i=[],s=[],l=[],o=[],u={id:m.UUID.uuid(),version:m.UUID.uuid(),createdAt:(e==null?void 0:e.timestamp)||new Date().toISOString(),author:m.sessionAuthor,previousVersion:null,deleted:!1,type:n.DataType,options:null,implementationChooseOne:!1,entity:r.toJSON(),isList:!1,asType:null,andChildrenGroup:null,orChildrenGroup:null,like:!0,inferred:!1,parentRelationType:t,parent:a.toReference()},y=C(u,r.project);return s.push(y),y.setParent(a,e),y.initChildren(e),e==null||e.add(y,A.Added),y.setEntity(r),y.addSelfToProject(e),{updated:p(i),added:p(s),removed:p(l),affected:p(o),self:y}}function Zc(r,a,e,t,i){var u,y,c,I,E,O,P,V;const s=[],l=[],o=[],d=[];switch(typeof r){case"string":let M=!1;const G=new Date(r);if(G instanceof Date&&!isNaN(G.valueOf())&&(M=!0),M){const B=a.project.getBuiltIn(k[n.PrimitiveEntity][L.Date].id);a.setEntity(B);break}else{const B=a.project.getBuiltIn(k[n.PrimitiveEntity][L.String].id);a.setEntity(B);break}case"number":a.setEntity(a.project.getBuiltIn(k[n.PrimitiveEntity][L.Number].id));break;case"boolean":a.setEntity(a.project.getBuiltIn(k[n.PrimitiveEntity][L.Boolean].id));break;case"object":if(r===null){a.setEntity(a.project.getBuiltIn(k[n.PrimitiveEntity][L.Null].id));break}else if(Array.isArray(r))if(a.metaSync({isList:!0},t),r.length>0){const B=r.slice(0,5).filter(Z=>Z!==void 0);if(B.every(Z=>typeof Z==typeof B[0])&&(typeof B[0]!="object"||B[0]===null))switch(typeof B[0]){case"string":a.setEntity(a.project.getBuiltIn(k[n.PrimitiveEntity][L.String].id));break;case"number":a.setEntity(a.project.getBuiltIn(k[n.PrimitiveEntity][L.Number].id));break;case"boolean":a.setEntity(a.project.getBuiltIn(k[n.PrimitiveEntity][L.Boolean].id));break;case"object":a.setEntity(a.project.getBuiltIn(k[n.PrimitiveEntity][L.Null].id));break}else{const Z=[];let J=!1;B.forEach(fe=>{var Ie,X,le,Qt;if(Array.isArray(fe)&&(J=!0),typeof fe=="object"&&!Array.isArray(fe)&&fe!==null){const Xi=Jl(fe,a.project,{...e,id:m.UUID.uuid()},t,i);Xi.hasCreated&&Z.push((Ie=Xi.changeSet)==null?void 0:Ie.self),s.push(...(X=Xi.changeSet)==null?void 0:X.updated),l.push(...(le=Xi.changeSet)==null?void 0:le.added),o.push(...(Qt=Xi.changeSet)==null?void 0:Qt.removed)}});const te=p(Z);if(!te.length&&!J){B.forEach(fe=>{const Ie={id:m.UUID.uuid(),version:m.UUID.uuid(),createdAt:(t==null?void 0:t.timestamp)||new Date().toISOString(),author:m.sessionAuthor,previousVersion:null,deleted:!1,type:n.DataType,options:null,implementationChooseOne:!1,entity:null,isList:!1,asType:null,andChildrenGroup:null,orChildrenGroup:null,like:!0,inferred:!1,parentRelationType:Dt.OrDataTypeGroup,parent:a.toReference()},X=C(Ie,a.project);switch(X.setParent(a,t),X.initChildren(t),t==null||t.add(X,A.Added),X.addSelfToProject(t),typeof fe){case"string":X.setEntity(X.project.getBuiltIn(k[n.PrimitiveEntity][L.String].id));break;case"number":X.setEntity(X.project.getBuiltIn(k[n.PrimitiveEntity][L.Number].id));break;case"boolean":X.setEntity(X.project.getBuiltIn(k[n.PrimitiveEntity][L.Boolean].id));break;case"object":X.setEntity(X.project.getBuiltIn(k[n.PrimitiveEntity][L.Null].id));break}});break}else te.length===1&&!J?a.setEntity(te[0]):B.forEach(fe=>{if(typeof fe=="object"&&!Array.isArray(fe)&&fe!==null){const Ie=Sc(Object.keys(fe),a.project);if(Ie){const X=Q1(Ie||te[0],a,t,Dt.OrDataTypeGroup);s.push(...X.updated),l.push(...X.added),o.push(...X.removed)}}else{const Ie={id:m.UUID.uuid(),version:m.UUID.uuid(),createdAt:(t==null?void 0:t.timestamp)||new Date().toISOString(),author:m.sessionAuthor,previousVersion:null,deleted:!1,type:n.DataType,options:null,implementationChooseOne:!1,entity:null,isList:Array.isArray(fe),asType:null,andChildrenGroup:null,orChildrenGroup:null,like:!0,inferred:!1,parentRelationType:Dt.OrDataTypeGroup,parent:a.toReference()},X=C(Ie,a.project);X.setParent(a,t),X.initChildren(t),t==null||t.add(X,A.Added),X.addSelfToProject(t);const le=Zc(fe,X,{...e,id:m.UUID.uuid()},t,i);s.push(...le.updated),l.push(...le.added),o.push(...le.removed)}})}}else{const B=Jl(r[0],a.project,{...e},t,i);a.setEntity((u=B.changeSet)==null?void 0:u.self),s.push(...(y=B.changeSet)==null?void 0:y.updated),l.push(...(c=B.changeSet)==null?void 0:c.added),o.push(...(I=B.changeSet)==null?void 0:I.removed);break}else{const B=Jl(r,a.project,{...e},t,i);a.setEntity((E=B.changeSet)==null?void 0:E.self),s.push(...(O=B.changeSet)==null?void 0:O.updated),l.push(...(P=B.changeSet)==null?void 0:P.added),o.push(...(V=B.changeSet)==null?void 0:V.removed);break}}return{updated:p(s),added:p(l),removed:p(o),affected:p(d),self:a}}function Jl(r,a,e,t,i){const s=[],l=[],o=[],d=[],u=Object.keys(r),y=Sc(u,a);if(y)return{hasCreated:!1,changeSet:{updated:[],added:[],removed:[],affected:[],self:y}};const c=i?e.name+" of "+i.name:e.name,E={id:e.id||m.UUID.uuid(),version:m.UUID.uuid(),createdAt:(t==null?void 0:t.timestamp)||new Date().toISOString(),author:m.sessionAuthor,previousVersion:null,deleted:!1,name:c,type:n.DefinitionEntity,description:e.description||null,static:e.static||!1,abstract:e.abstract||!1,properties:[],methods:[],abstractMethods:[],extends:[],implements:[],x:0,y:0,parent:a.toReference()},O=C(E,a);return O.setParent(a,t),O.initChildren(t),t==null||t.add(O,A.Added),O.addSelfToProject(t),l.push(O),u.forEach((P,V)=>{const G={id:m.UUID.uuid(),version:m.UUID.uuid(),createdAt:(t==null?void 0:t.timestamp)||new Date().toISOString(),author:m.sessionAuthor,previousVersion:null,deleted:!1,name:P,type:n.Property,description:null,static:!1,abstract:!1,defaultValue:null,constant:!1,dataType:null,implements:null,index:V,hidden:!1,private:!1,required:!0,parent:O.toReference()},B=C(G,a);B.setParent(O,t),B.initChildren(t),t==null||t.add(B,A.Added),B.addSelfToProject(t),l.push(B);const $=r[P],J={id:m.UUID.uuid(),version:m.UUID.uuid(),createdAt:(t==null?void 0:t.timestamp)||new Date().toISOString(),author:m.sessionAuthor,previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,entity:null,isList:!1,asType:null,andChildrenGroup:null,orChildrenGroup:null,like:!0,inferred:!1,parent:B.toReference()},te=C(J,a);te.setParent(B,t),te.initChildren(t),t==null||t.add(te,A.Added),te.addSelfToProject(t),l.push(te);const fe=Zc($,te,{...e,name:P,id:m.UUID.uuid()},t,i||O);s.push(...fe.updated),l.push(...fe.added),o.push(...fe.removed)}),{hasCreated:!0,changeSet:{updated:p(s),added:p(l),removed:p(o),affected:p(d),self:O}}}function vr(r,a,e,t){const i=[];return!r.length||!a.length?{errors:i,overlap:!1}:(r.length>a.length?r.forEach(s=>{const l=a.find(d=>d.name===s.name),o=a.find(d=>{var u,y;return!!s.implements&&((u=d.implements)==null?void 0:u.id)===((y=s.implements)==null?void 0:y.id)});if(l){const d=new tt({id:s.id+"--"+l.id+"--"+t,message:`Entity of type ${s.type} named "${s.name}" with id "${s.id}" overrides a base ${l.type} ${l.name} with id "${l.id}" that has the same name`,issue:null,severity:D.Error,code:t,entity:s,firstRelationship:l});i.push(d)}if(o){const d=new tt({id:s.id+"--"+o.id+"--"+e,message:`Entity of type ${s.type} named "${s.name}" with id "${s.id}" overrides a base ${o.type} ${o.name} with id "${o.id}" that implements the same base descriptor`,issue:null,severity:D.Error,code:e,entity:s,firstRelationship:o});i.push(d)}}):a.forEach(s=>{var d;const l=r.find(u=>u.name===s.name),o=r.find(u=>{var y,c;return!!u.implements&&((y=u.implements)==null?void 0:y.id)===((c=s.implements)==null?void 0:c.id)});if(l){const u=new tt({id:l.id+"--"+s.id+"--"+t,message:`Entity of type ${l.type} named "${l.name}" with id "${l.id}" overrides a base entity ${s.name} with id "${s.id}" that has the same name`,issue:null,severity:D.Error,code:t,entity:l,firstRelationship:s});i.push(u)}if(o){const u=new tt({id:o.id+"--"+s.id+"--"+e,message:`Entity of type ${o.type} named "${o.name}" with id "${o.id}" overrides a base entity ${s.name} with id "${s.id}" that implements the same base ${(d=o==null?void 0:o.implements)==null?void 0:d.type}`,issue:null,severity:D.Error,code:e,entity:o,firstRelationship:s});i.push(u)}}),{errors:i,overlap:!!i.length})}function sJ(r,a){return r.abstract||(r.properties.forEach(t=>{t.abstract||t.metaSync({abstract:!0},a)}),Object.values(r.detachedDependents).forEach(t=>{t.field===Cc.Entity&&t.entity.remove({ignoreUpstream:!1},a)}),r.metaSync({abstract:!0},a)),r}function aJ(r,a){return r.abstract&&(r.properties.forEach(t=>{t.abstract&&t.metaSync({abstract:!1},a)}),Object.values(r.detachedDependents).forEach(t=>{(t.field===rd.Implements||t.field===rd.Extends)&&t.entity.onDetachedDependencyRemoved(r,t.field,a)}),r.metaSync({abstract:!1},a)),r}function oJ(r,a){return r.static||(r.properties.forEach(t=>{t.static||t.metaSync({static:!0},a)}),r.metaSync({static:!0},a)),r}function lJ(r,a){return r.static&&(r.properties.forEach(t=>{t.static&&t.metaSync({static:!1},a)}),r.metaSync({static:!1},a)),r}function Ds(r,a){const e=Ln(r);if(e.length===0)return{list:[],last:null};let t=null;return{list:e.flatMap(s=>{if(s===a)return t=s,[s];const l=Ds(s,a);return l.last&&(t=l.last),[s,...l.list]}),last:t}}function qc(r){const a=r.calledBy;if(a.length===0)return r.project;const e=a.reduce((t,i)=>{const s=kt(i,r.project);return!s||s.type===n.Project?t:t.type===n.Project||Ds(s,t).last?s:(Ds(t,s).last,t)},r.project);return e.type===n.FunctionDeclaration&&e.parent.type===n.Loop?e.parent:e}function K(r,a){var i,s;let e=qc(r);if(r.type===n.InternalCall)(i=r.parent)==null||i.setParent(e,a),(s=r.parent)==null||s.addSelfToProject(a);else if((r.type===n.ContinueStatement||r.type===n.BreakStatement)&&e.type!==n.Loop){r.remove({ignoreUpstream:!1},a);return}else if(r.type===n.ReturnStatement&&!dt.includes(e.type)){r.remove({ignoreUpstream:!1},a);return}else r.setParent(e,a),r.addSelfToProject(a);if(st.includes(r.type))return;rt(r).forEach(l=>{var d,u;const o=qc(l);if(l.type===n.InternalCall)(d=l.parent)==null||d.setParent(o,a),(u=l.parent)==null||u.addSelfToProject(a);else if((l.type===n.ContinueStatement||l.type===n.BreakStatement)&&o.type!==n.Loop){l.remove({ignoreUpstream:!1},a);return}else if(l.type===n.ReturnStatement&&!dt.includes(o.type)){l.remove({ignoreUpstream:!1},a);return}else l.setParent(o,a),l.addSelfToProject(a)})}function eP(r,a,e=new Set){const t=Hr(r),i=Hr(a),s=t.filter(d=>!i.includes(d)),l=t.filter(d=>i.includes(d)),o=s.reduce((d,u)=>e.has(u.id)?d:(e.add(u.id),p([...d,...eP(u,a,e)])),[]);return p([...l,...o])}function Ma(r,a){const e=Ds(r,a);return e.last===a&&e.list.length>0&&e.list[0]!==a}function dJ(r,a){return!!Ds(r,a).last}function uJ(r){if(lt.includes(r.type))return r;if([...Mi,n.VariableDeclaration].includes(r.type)){const a=r.parent;return lt.includes(a.type)?a:null}return null}function Jc(r,a){if(!r||!a)throw new Error("Both entities must be defined to find a common ancestor");if(r===a)return r;const e=r.parent;if(e){if(e===a)return a;if(e.type===n.Project)return null}else return null;const t=a.parent;if(t){if(t===r)return r;if(t.type===n.Project)return null}else return null;return Jc(e,t)}function wt(r){if(Sa.includes(r.type)){if(r.type===n.FunctionDeclaration){const a=r.parent;if(a.type===n.DefinitionEntity)return a;if(a.type===n.Loop)return a}return r}else{const a=r.parent;return a?wt(a):null}}function Wl(r,a){const e=Na(r,a);if(!e)return null;if(Sa.includes(e.type)){if(e.type===n.FunctionDeclaration){const t=Na(e.parent,a);if(t){if(t.type===n.DefinitionEntity)return t;if(t.type===n.Loop)return t}}return e}else{const t=e.parent?Na(e.parent,a):null;return t?Wl(t,a):null}}function tP(r){if(!r)return null;if(Mi.includes(r.type))return r;const a=r.parent;return a?tP(a):null}function iP(r){if(!r)return null;if(ot.includes(r.type))return r;const a=r.parent;return a?iP(a):null}function rP(r){if(!r)return null;if(Ni.includes(r.type))return r;const a=r.parent;return a?rP(a):null}function pJ(r){return r.type===n.VariableDeclaration?[r]:ot.includes(r.type)?[...r.inputs,...r.outputs||[]]:st.includes(r.type)?r.outputs:Gn.includes(r.type)||r.type===n.FunctionDeclaration?r.inputs:[]}function cJ(r){const a=Hr(r),e=[],t=[];lf.includes(r.type)&&e.push(...Wc(r));const i=a.filter(s=>{const l=e.includes(s);return l?!1:Mi.includes(s.type)&&!l?(t.push(s),!1):!0});return e.sort((s,l)=>Ma(l,s)?-1:0),t.sort((s,l)=>Ma(l,s)?-1:0),[...e,...t,...i]}function nP(r){return[...r].sort((a,e)=>Ma(e,a)?-1:0)}function fJ(r){const a=nP(r),e=[];return a.forEach(t=>{const i=e[e.length-1];if(i){const s=i[i.length-1];Ma(t,s)?e.push([t]):i.push(t)}else e.push([t])}),e}function Xt(r){const a=r.map(e=>wt(e));return p(a)}function Wc(r){return ot.includes(r.type)?[...Xt(r.successCalls),...Xt(r.errorCalls)]:lt.includes(r.type)?Xt(r.calls):[]}function yJ(r,a){return Wc(r).includes(a)}function zc(r){return r.writesValues||[]}function hJ(r,a){return zc(r).includes(a)}function sP(r){var a;return et.includes((a=r==null?void 0:r.readsValue)==null?void 0:a.type)?r.readsValue:null}function mJ(r){return r.writesValues}function aP(r=[]){return r.map(sP).filter(a=>!!a)}function zl(r=[]){return r.map(a=>a.writesValues).flat().filter(a=>et.includes(a.type))}function oP(r=[]){return r.map(a=>a.readsValue).filter(a=>!!a&&et.includes(a.type))}function lP(r){return et.includes(r.type)?r:null}function dP(r){return r.writesValues.map(lP).filter(a=>!!a)}function uP(r=[]){return r.reduce((a,e)=>e.type===n.OutputMap?[...a,...dP(e)]:a,[])}function rt(r){return ot.includes(r.type)?[...Hi(Xt(r.successCalls)),...Hi(Xt(r.errorCalls))]:lt.includes(r.type)?Hi(Xt(r.calls)):[]}function vJ(r){return ot.includes(r.type)?[...Hi(Xt(r.successCalls)),...Hi(Xt(r.errorCalls))]:lt.includes(r.type)?Hi(Xt(r.calls)):[]}function pP(r,a=new Set){return r.writesValues.filter(t=>et.includes(t.type)&&!a.has(t.id)).reduce((t,i)=>a.has(i.id)?t:[...t,...ze(i,a)],[])}function cP(r,a=new Set){var t;return(((t=r.readsValue)==null?void 0:t.writesValues)||[]).filter(i=>et.includes(i.type)&&!a.has(i.id)).reduce((i,s)=>a.has(s.id)?i:[...i,...ze(s,a)],[])}function ze(r,a=new Set){if(a.has(r.id))return[];if(r.type===n.ReturnStatement)return oP(r.outputs).reduce((t,i)=>[...t,...ze(i,a)],[]);if(r.type===n.FunctionCall||r.type===n.Operation||r.type===n.Condition)return[...rt(r).reduce((s,l)=>{const o=wt(l);return[...s,...ze(o||l,a)]},[]),...aP(r.inputs),...uP(r.outputs)].reduce((s,l)=>[...s,...ze(l,a)],[]);if(Gn.includes(r.type)){const e=zl(r.inputs),i=rt(r).reduce((s,l)=>{const o=wt(l);return[...s,...ze(o||l,a)]},[]);return e.push(...i),e.reduce((s,l)=>[...s,...ze(l,a)],[])}if(r.type===n.FunctionDeclaration){const e=[...zl(r.inputs)],i=rt(r).reduce((s,l)=>{const o=wt(l);return[...s,...ze(o||l,a)]},[]);return e.push(...i),e.reduce((s,l)=>[...s,...ze(l)],[])}if(et.includes(r.type)){a.add(r.id);const t=rt(r).reduce((i,s)=>{const l=wt(s);return[...i,...ze(l||s,a)]},[]);return[r,...t,...cP(r,a),...pP(r,a)]}return[]}function ai(r,a=new Set){return a.has(r.id)?[]:(a.add(r.id),[...Hr(r).reduce((i,s)=>[...i,s,...ai(s,a)],[])])}function Hi(r){return r.reduce((a,e)=>e.type===n.ReturnStatement||e.type===n.ContinueStatement||e.type===n.BreakStatement?[...a,e]:[...a,e,...rt(e)],[])}function fP(r){const a=r.entities||[],e=[...a,...r.functions||[],...r.events||[],...r.projects||[]],t=a.reduce((d,u)=>[...d,...u.properties],[]),i=a.reduce((d,u)=>[...d,...u.methods],[]),s=i.reduce((d,u)=>[...d,...zl(u.inputs),...Hi(Xt(u.calls)),...u.returnStatements],[]),l=r.functions.reduce((d,u)=>[...d,...Hi(Xt(u.calls)),...u.returnStatements],[]),o=r.events.reduce((d,u)=>[...d,...Hi(Xt(u.calls)),...u.returnStatements],[]);return[...e,...t,...i,...s,...l,...o]}function yP(r,a){return a.filter(t=>{if(!t)return!1;switch(t.type){case n.FunctionCall:return t.inputs.find(i=>i.id===r.id)!==void 0||t.outputs.find(i=>i.id===r.id)!==void 0;case n.Condition:return t.successCalls.find(i=>i.id===r.id)!==void 0||t.errorCalls.find(i=>i.id===r.id)!==void 0||t.inputs.find(i=>i.id===r.id)!==void 0;case n.Operation:return t.outputs.find(i=>i.id===r.id)!==void 0;case n.VariableDeclaration:return ot.includes(r.type)?kP(r).find(s=>{var l;return((l=s.readsValue)==null?void 0:l.id)===t.id})!==void 0:!1;case n.DefinitionEntity:return t.properties.find(i=>i.id===r.id)!==void 0||t.methods.find(i=>i.id===r.id)!==void 0;case n.FunctionDeclaration:return t.inputs.find(i=>i.id===r.id)!==void 0||(t.returnStatements.map(i=>i.outputs).flat()||[]).find(i=>i.id===r.id)!==void 0;default:return!1}})}function TJ(r){const a=fP(r.project);return yP(r,a)}function Na(r,a){return r?typeof r=="string"?a[r]:r.type===n.GenericReference?a[r.entityId]:a[r.id]?a[r.id]:null:null}function Yl(r,a={},e={ignoreBuiltInBaseEntities:!1,allBuiltInEntityIds:[]}){if(e.ignoreBuiltInBaseEntities&&(Ti.includes(r.type)||(e.allBuiltInEntityIds||[]).includes(r.id)))return{upstream:{},downstream:{}};const t=r,i=r,s=r,l=r,o=r,d=r,u=r,y=r,c=r,I=r,E=r,O=r,P=r,V=[...P.readsValue?[P.readsValue]:[],...P.declaration?[P.declaration]:[],...(O.calledByEntry||[]).flatMap($=>$),...(O.calledBySuccess||[]).flatMap($=>$),...(O.calledByError||[]).flatMap($=>$),...(s.extends||[]).flatMap($=>$),...I.parent?[I.parent]:[]];Array.isArray(s.implements)?V.push(...s.implements.flatMap($=>$)):c.implements&&V.push(c.implements),o.valueAsTypeList&&Array.isArray(o.valueAsTypeList)&&V.push(...o.valueAsTypeList.flatMap($=>$)),o.valueAsTypeSingle&&V.push(o.valueAsTypeSingle);const M=[...(t.inputs||[]).flatMap($=>$),...(E.inputsDeclarations||[]).flatMap($=>$),...(t.outputs||[]).flatMap($=>$),...(E.outputsDeclarations||[]).flatMap($=>$),...(P.internalCalls||[]).flatMap($=>$),...P.writesValues||[],...O.dataType?[O.dataType]:[],...d.body?[d.body]:[],...O.defaultValue?[O.defaultValue]:[],...(O.successCalls||[]).flatMap($=>$),...(O.errorCalls||[]).flatMap($=>$),...(s.properties||[]).flatMap($=>$),...(s.methods||[]).flatMap($=>$),...(s.abstractMethods||[]).flatMap($=>$),...u.error?[u.error]:[],...u.process?[u.process]:[],...I.throws?[I.throws]:[],...(i.andChildrenGroup||[]).flatMap($=>$),...(i.orChildrenGroup||[]).flatMap($=>$),...(y.entities||[]).flatMap($=>$),...(y.functions||[]).flatMap($=>$),...(y.functionCalls||[]).flatMap($=>$),...(y.events||[]).flatMap($=>$),...(y.conditions||[]).flatMap($=>$),...(y.operations||[]).flatMap($=>$),...(y.loops||[]).flatMap($=>$),...(y.variableDeclarations||[]).flatMap($=>$),...(y.variableInstances||[]).flatMap($=>$),...(y.searches||[]).flatMap($=>$),...(y.projects||[]).flatMap($=>$),...(l.calls||[]).flatMap($=>$)];r.type===n.DataType&&(i.entity&&a[_(i.entity)]&&a[_(i.entity)].parent&&_(a[_(i.entity)].parent)===r.id?M.push(i.entity):i.entity&&V.push(i.entity));const G={},B={};return V.forEach($=>{const Z=_($);if(Z&&e.ignoreBuiltInBaseEntities&&(Ti.includes($.type)||(e.allBuiltInEntityIds||[]).includes(Z)))return;const J=$.version;Z&&(G[Z]=J)}),M.forEach($=>{const Z=_($);if(Z&&e.ignoreBuiltInBaseEntities&&(Ti.includes($.type)||(e.allBuiltInEntityIds||[]).includes(Z)))return;const J=$.version;Z&&(B[Z]=J)}),{upstream:G,downstream:B}}function IJ(r,a){const e=[];if(Mi.includes(r.type)){hi(r).forEach(s=>{const l=Wl(s,a);l&&e.push(l)});const i=[...r.inputs||[],...r.outputs||[]].map(s=>{const l=Na(s,a);return l?ZP(l,a):null}).filter(s=>s!==null);e.push(...p(i))}if(et.includes(r.type)){const t=Hl(r);t&&e.push(t)}return p(e)}function Ln(r){const a=[];if(Mi.includes(r.type)){r.calledBy.forEach(i=>{const s=wt(i);s&&a.push(s)});const t=[...r.inputs||[],...r.outputs||[]].map(i=>Hl(i)).filter(i=>i!==null);a.push(...p(t))}if(et.includes(r.type)){const e=Hl(r);e&&a.push(e)}return p(a)}function hi(r){return[...r.calledByEntry||[],...r.calledByError||[],...r.calledBySuccess||[]].filter(a=>a.type!==n.GenericReference)}function hP(r,a=new Set,e={ignoreBuiltInBaseEntities:!1}){if(a.has(r.id))return[];if(a.add(r.id),r.type!==n.ActionDescriptor)throw new Error("Entity must be an action descriptor to be flattened");return[r,...r.inputs.flatMap(t=>U(t,a,e)),...r.outputs.flatMap(t=>U(t,a,e)),...r.error?U(r.error,a,e):[],...r.parent?U(r.parent,a,e):[]]}function mP(r,a=new Set,e={ignoreBuiltInBaseEntities:!1}){if(a.has(r.id))return[];if(a.add(r.id),r.type!==n.ArgumentDeclaration)throw new Error("Entity must be an argument declaration to be flattened");return[r,...r.defaultValue?U(r.defaultValue,a):[],...r.writesValues.flatMap(t=>U(t,a,e)),...r.dataType?U(r.dataType,a,e):[],...r.parent?U(r.parent,a,e):[]]}function vP(r,a=new Set,e={ignoreBuiltInBaseEntities:!1}){if(a.has(r.id))return[];if(a.add(r.id),r.type!==n.BreakStatement)throw new Error("Entity must be a break statement to be flattened");return[r,...r.outputs.flatMap(t=>U(t,a,e)),...r.throws?U(r.throws,a,e):[],...(hi(r)||[]).flatMap(t=>U(t,a,e)),...r.parent?U(r.parent,a,e):[]]}function TP(r,a=new Set,e={ignoreBuiltInBaseEntities:!1}){if(a.has(r.id))return[];if(a.add(r.id),r.type!==n.BuiltInBaseEntity)throw new Error("Entity must be a built-in base entity to be flattened");return[r,...(r.properties||[]).flatMap(t=>U(t,a,e)),...(r.methods||[]).flatMap(t=>U(t,a,e)),...(r.abstractMethods||[]).flatMap(t=>U(t,a,e)),...(r.extends||[]).flatMap(t=>U(t,a,e))]}function IP(r,a=new Set,e={ignoreBuiltInBaseEntities:!1}){if(a.has(r.id))return[];if(a.add(r.id),r.type!==n.Condition)throw new Error("Entity must be a condition to be flattened");return[r,...(r.inputs||[]).flatMap(t=>U(t,a,e)),...(r.successCalls||[]).flatMap(t=>U(t,a,e)),...(r.errorCalls||[]).flatMap(t=>U(t,a,e)),...(hi(r)||[]).flatMap(t=>U(t,a,e)),...r.parent?U(r.parent,a,e):[]]}function EP(r,a=new Set,e={ignoreBuiltInBaseEntities:!1}){if(a.has(r.id))return[];if(a.add(r.id),r.type!==n.ContinueStatement)throw new Error("Entity must be a continue statement to be flattened");return[r,...r.outputs.flatMap(t=>U(t,a,e)),...r.throws?U(r.throws,a,e):[],...(hi(r)||[]).flatMap(t=>U(t,a,e)),...r.parent?U(r.parent,a,e):[]]}function AP(r,a=new Set,e={ignoreBuiltInBaseEntities:!1}){if(a.has(r.id))return[];if(a.add(r.id),r.type!==n.DefinitionEntity)throw new Error("Entity must be a definition entity to be flattened");return[r,...(r.extends||[]).flatMap(t=>U(t,a,e)),...(r.implements||[]).flatMap(t=>U(t,a,e)),...(r.properties||[]).flatMap(t=>U(t,a,e)),...(r.methods||[]).flatMap(t=>U(t,a,e)),...(r.abstractMethods||[]).flatMap(t=>U(t,a,e)),...r.parent?U(r.parent,a,e):[]]}function bP(r,a=new Set,e={ignoreBuiltInBaseEntities:!1}){if(a.has(r.id))return[];if(a.add(r.id),r.type!==n.DataType)throw new Error("Entity must be a data type to be flattened");return[r,...(r.andChildrenGroup||[]).flatMap(t=>U(t,a,e)),...(r.orChildrenGroup||[]).flatMap(t=>U(t,a,e)),...r.entity?U(r.entity,a,e):[],...r.parent?U(r.parent,a,e):[]]}function RP(r,a=new Set,e={ignoreBuiltInBaseEntities:!1}){if(a.has(r.id))return[];if(a.add(r.id),r.type!==n.FunctionCall)throw new Error("Entity must be a function call to be flattened");return[r,...(r.inputs||[]).flatMap(t=>U(t,a,e)),...(r.outputs||[]).flatMap(t=>U(t,a,e)),...r.error?U(r.error,a,e):[],...r.process?U(r.process,a,e):[],...(hi(r)||[]).flatMap(t=>U(t,a,e)),...(r.successCalls||[]).flatMap(t=>U(t,a,e)),...(r.errorCalls||[]).flatMap(t=>U(t,a,e)),...r.parent?U(r.parent,a,e):[]]}function DP(r,a=new Set,e={ignoreBuiltInBaseEntities:!1}){if(a.has(r.id))return[];if(a.add(r.id),r.type!==n.FunctionDeclaration)throw new Error("Entity must be a function declaration to be flattened");return[r,...(r.inputs||[]).flatMap(t=>U(t,a,e)),...(r.calls||[]).flatMap(t=>U(t,a,e)),...r.implements?U(r.implements,a,e):[],...r.parent?U(r.parent,a,e):[]]}function OP(r,a=new Set,e={ignoreBuiltInBaseEntities:!1}){if(a.has(r.id))return[];if(a.add(r.id),r.type!==n.GlobalEvent)throw new Error("Entity must be a global event to be flattened");return[r,...(r.inputs||[]).flatMap(t=>U(t,a,e)),...(r.calls||[]).flatMap(t=>U(t,a,e)),...r.implements?U(r.implements,a,e):[],...r.parent?U(r.parent,a,e):[]]}function PP(r,a=new Set,e={ignoreBuiltInBaseEntities:!1}){if(a.has(r.id))return[];if(a.add(r.id),r.type!==n.InputMap)throw new Error("Entity must be an input map to be flattened");return[r,...r.readsValue?U(r.readsValue,a,e):[],...r.declaration?U(r.declaration,a,e):[],...r.defaultValue?U(r.defaultValue,a,e):[],...r.parent?U(r.parent,a,e):[]]}function wP(r,a=new Set,e={ignoreBuiltInBaseEntities:!1}){if(a.has(r.id))return[];if(a.add(r.id),r.type!==n.InstalledProject)throw new Error("Entity must be an installed project to be flattened");return[r,...(r.functions||[]).flatMap(t=>U(t,a,e)),...(r.events||[]).flatMap(t=>U(t,a,e)),...r.parent?U(r.parent,a,e):[]]}function CP(r,a=new Set,e={ignoreBuiltInBaseEntities:!1}){if(a.has(r.id))return[];if(a.add(r.id),r.type!==n.InternalCall)throw new Error("Entity must be an internal call to be flattened");return[r,...(r.successCalls||[]).flatMap(t=>U(t,a,e)),...(r.errorCalls||[]).flatMap(t=>U(t,a,e)),...(r.inputs||[]).flatMap(t=>U(t,a,e)),...(r.outputs||[]).flatMap(t=>U(t,a,e)),...(hi(r)||[]).flatMap(t=>U(t,a,e)),...r.error?U(r.error,a,e):[],...r.process?U(r.process,a,e):[],...r.parent?U(r.parent,a,e):[]]}function VP(r,a=new Set,e={ignoreBuiltInBaseEntities:!1}){if(a.has(r.id))return[];if(a.add(r.id),r.type!==n.LiteralValue)throw new Error("Entity must be a literal value to be flattened");return[r,...r.valueAsTypeSingle?U(r.valueAsTypeSingle,a,e):[],...r.valueAsTypeList&&Array.isArray(r.valueAsTypeList)?r.valueAsTypeList.flatMap(t=>U(t,a,e)):[],...r.parent?U(r.parent,a,e):[]]}function BP(r,a=new Set,e={ignoreBuiltInBaseEntities:!1}){if(a.has(r.id))return[];if(a.add(r.id),r.type!==n.Loop)throw new Error("Entity must be a loop to be flattened");return[r,...(r.inputs||[]).flatMap(t=>U(t,a,e)),...(r.outputs||[]).flatMap(t=>U(t,a,e)),...(r.successCalls||[]).flatMap(t=>U(t,a,e)),...(r.errorCalls||[]).flatMap(t=>U(t,a,e)),...r.error?U(r.error,a,e):[],...r.process?U(r.process,a,e):[],...r.body?U(r.body,a,e):[],...(hi(r)||[]).flatMap(t=>U(t,a,e)),...r.parent?U(r.parent,a,e):[]]}function _P(r,a=new Set,e={ignoreBuiltInBaseEntities:!1}){if(a.has(r.id))return[];if(a.add(r.id),r.type!==n.Operation)throw new Error("Entity must be an operation to be flattened");return[r,...(r.successCalls||[]).flatMap(t=>U(t,a,e)),...(r.errorCalls||[]).flatMap(t=>U(t,a,e)),...(r.inputs||[]).flatMap(t=>U(t,a,e)),...(r.outputs||[]).flatMap(t=>U(t,a,e)),...r.error?U(r.error,a,e):[],...r.process?U(r.process,a,e):[],...(hi(r)||[]).flatMap(t=>U(t,a,e)),...r.parent?U(r.parent,a,e):[]]}function MP(r,a=new Set,e={ignoreBuiltInBaseEntities:!1}){if(a.has(r.id))return[];if(a.add(r.id),r.type!==n.OutputMap)throw new Error("Entity must be an output map to be flattened");return[r,...(r.writesValues||[]).flatMap(t=>U(t,a,e)),...r.declaration?U(r.declaration,a,e):[],...r.defaultValue?U(r.defaultValue,a,e):[],...r.parent?U(r.parent,a,e):[]]}function NP(r,a=new Set,e={ignoreBuiltInBaseEntities:!1}){if(a.has(r.id))return[];if(a.add(r.id),r.type!==n.PrimitiveEntity)throw new Error("Entity must be a primitive entity to be flattened");return[r,...(r.properties||[]).flatMap(t=>U(t,a,e)),...(r.methods||[]).flatMap(t=>U(t,a,e)),...(r.abstractMethods||[]).flatMap(t=>U(t,a,e))]}function LP(r,a=new Set,e={ignoreBuiltInBaseEntities:!1}){if(a.has(r.id))return[];if(a.add(r.id),r.type!==n.Project)throw new Error("Entity must be a project to be flattened");return[r,...(r.entities||[]).flatMap(t=>U(t,a,e)),...(r.functions||[]).flatMap(t=>U(t,a,e)),...(r.events||[]).flatMap(t=>U(t,a,e)),...(r.projects||[]).flatMap(t=>U(t,a,e)),...(r.variableDeclarations||[]).flatMap(t=>U(t,a,e)),...(r.variableInstances||[]).flatMap(t=>U(t,a,e)),...(r.operations||[]).flatMap(t=>U(t,a,e)),...(r.conditions||[]).flatMap(t=>U(t,a,e)),...(r.functionCalls||[]).flatMap(t=>U(t,a,e)),...(r.projects||[]).flatMap(t=>U(t,a,e)),...(r.loops||[]).flatMap(t=>U(t,a,e)),...(r.searches||[]).flatMap(t=>U(t,a,e))]}function UP(r,a=new Set,e={ignoreBuiltInBaseEntities:!1}){if(a.has(r.id))return[];if(a.add(r.id),r.type!==n.Property)throw new Error("Entity must be a property to be flattened");return[r,...r.defaultValue?U(r.defaultValue,a,e):[],...r.dataType?U(r.dataType,a,e):[],...r.parent?U(r.parent,a,e):[]]}function gP(r,a=new Set,e={ignoreBuiltInBaseEntities:!1}){if(a.has(r.id))return[];if(a.add(r.id),r.type!==n.ReturnDeclaration)throw new Error("Entity must be a return declaration to be flattened");return[r,...r.readsValue?U(r.readsValue,a,e):[],...r.defaultValue?U(r.defaultValue,a,e):[],...r.dataType?U(r.dataType,a,e):[],...r.parent?U(r.parent,a,e):[]]}function jP(r,a=new Set,e={ignoreBuiltInBaseEntities:!1}){if(a.has(r.id))return[];if(a.add(r.id),r.type!==n.ReturnStatement)throw new Error("Entity must be a return statement to be flattened");return[r,...(r.outputs||[]).flatMap(t=>U(t,a,e)),...r.throws?U(r.throws,a,e):[],...(hi(r)||[]).flatMap(t=>U(t,a,e)),...r.parent?U(r.parent,a,e):[]]}function $P(r,a=new Set,e={ignoreBuiltInBaseEntities:!1}){if(a.has(r.id))return[];if(a.add(r.id),r.type!==n.Search)throw new Error("Entity must be a search to be flattened");return[r,...(r.successCalls||[]).flatMap(t=>U(t,a,e)),...(r.errorCalls||[]).flatMap(t=>U(t,a,e)),...(r.inputsDeclarations||[]).flatMap(t=>U(t,a,e)),...(r.inputs||[]).flatMap(t=>U(t,a,e)),...(r.outputsDeclarations||[]).flatMap(t=>U(t,a,e)),...(r.outputs||[]).flatMap(t=>U(t,a,e)),...r.error?U(r.error,a,e):[],...(hi(r)||[]).flatMap(t=>U(t,a,e)),...r.parent?U(r.parent,a,e):[]]}function GP(r,a=new Set,e={ignoreBuiltInBaseEntities:!1}){if(a.has(r.id))return[];if(a.add(r.id),r.type!==n.ValueDescriptor)throw new Error("Entity must be a value descriptor to be flattened");return[r,...r.defaultValue?U(r.defaultValue,a,e):[],...r.dataType?U(r.dataType,a,e):[],...r.parent?U(r.parent,a,e):[]]}function FP(r,a=new Set,e={ignoreBuiltInBaseEntities:!1}){if(a.has(r.id))return[];if(a.add(r.id),r.type!==n.VariableDeclaration)throw new Error("Entity must be a variable declaration to be flattened");return[r,...(r.successCalls||[]).flatMap(t=>U(t,a,e)),...(r.errorCalls||[]).flatMap(t=>U(t,a,e)),...(r.inputs||[]).flatMap(t=>U(t,a,e)),...(r.outputs||[]).flatMap(t=>U(t,a,e)),...(r.internalCalls||[]).flatMap(t=>U(t,a,e)),...(r.writesValues||[]).flatMap(t=>U(t,a,e)),...r.readsValue?U(r.readsValue,a,e):[],...r.defaultValue?U(r.defaultValue,a,e):[],...(hi(r)||[]).flatMap(t=>U(t,a,e)),...r.dataType?U(r.dataType,a,e):[],...r.parent?U(r.parent,a,e):[]]}function xP(r,a=new Set,e={ignoreBuiltInBaseEntities:!1}){if(a.has(r.id))return[];if(a.add(r.id),r.type!==n.VariableInstance)throw new Error("Entity must be a variable instance to be flattened");return[r,...(r.successCalls||[]).flatMap(t=>U(t,a,e)),...(r.errorCalls||[]).flatMap(t=>U(t,a,e)),...(r.inputs||[]).flatMap(t=>U(t,a,e)),...(r.outputs||[]).flatMap(t=>U(t,a,e)),...(r.internalCalls||[]).flatMap(t=>U(t,a,e)),...(r.writesValues||[]).flatMap(t=>U(t,a,e)),...r.readsValue?U(r.readsValue,a,e):[],...r.defaultValue?U(r.defaultValue,a,e):[],...(hi(r)||[]).flatMap(t=>U(t,a,e)),...r.declaration?U(r.declaration,a,e):[],...r.parent?U(r.parent,a,e):[]]}function _i(){const r=new Set,a=oE.flatMap(e=>U(e,r)).map(e=>e.id);if(!a.includes("http-request-error-return-delaration-id"))throw new Error("Built-in base entities must be included in the list");return a}function U(r,a=new Set,e={ignoreBuiltInBaseEntities:!1}){if(!r)throw new Error("Entity must be defined to be flattened");if(r.type===n.GenericReference)return[];if(e.ignoreBuiltInBaseEntities&&(Ti.includes(r.type)||_i().includes(r.id)))return[];if(a.has(r.id))return[];switch(r.type){case n.FunctionCall:return RP(r,a,e);case n.Operation:return _P(r,a,e);case n.Condition:return IP(r,a,e);case n.Loop:return BP(r,a,e);case n.Search:return $P(r,a,e);case n.GlobalEvent:return OP(r,a,e);case n.ReturnStatement:return jP(r,a,e);case n.ContinueStatement:return EP(r,a,e);case n.BreakStatement:return vP(r,a,e);case n.VariableDeclaration:return FP(r,a,e);case n.DefinitionEntity:return AP(r,a,e);case n.FunctionDeclaration:return DP(r,a,e);case n.Project:return LP(r,a,e);case n.ActionDescriptor:return hP(r,a,e);case n.ArgumentDeclaration:return mP(r,a,e);case n.ReturnDeclaration:return gP(r,a,e);case n.ValueDescriptor:return GP(r,a,e);case n.InputMap:return PP(r,a,e);case n.OutputMap:return MP(r,a,e);case n.DataType:return bP(r,a,e);case n.InstalledProject:return wP(r,a,e);case n.InternalCall:return CP(r,a,e);case n.LiteralValue:return VP(r,a,e);case n.Property:return UP(r,a,e);case n.VariableInstance:return xP(r,a,e);case n.BuiltInBaseEntity:return e.ignoreBuiltInBaseEntities?[]:TP(r,a,e);case n.PrimitiveEntity:return e.ignoreBuiltInBaseEntities?[]:NP(r,a,e)}return[]}function Yc(r){return r.type===n.FunctionCall||r.type===n.InternalCall||[n.Operation,n.Condition,n.Loop].includes(r.type)?r.declaration.inputs:r.type===n.FunctionDeclaration||Gn.includes(r.type)?r.inputs:r.type===n.Search?r.inputsDeclarations:[]}function EJ(r,a){return a.type===n.Condition?a.inputs.find(e=>e.declaration.id===r.id):a.type===n.FunctionCall||a.type===n.Operation?a.inputs.find(e=>e.declaration.id===r.id):null}function kP(r){return ot.includes(r.type)?r.inputs:[]}function SP(r){var a;return r.type===n.FunctionCall?((a=r.declaration.returnStatements[0])==null?void 0:a.outputs)||[]:[n.Operation,n.Condition,n.Loop].includes(r.type)?r.declaration.outputs:r.type===n.Search?r.outputsDeclarations:st.includes(r.type)?r.outputs:[]}function AJ(r,a){return a.type===n.Condition?null:a.type===n.FunctionCall||a.type===n.Operation?a.outputs.find(e=>e.declaration.id===r.id):null}function bJ(r){return r.type===n.Condition?[]:ot.includes(r.type)?r.outputs:[]}function Hl(r){const a=r.readsValue;return a?wt(a):null}function ZP(r,a){const e=r.readsValue;return e?Wl(e,a):null}function qP(r){const a=r.internalCalls||[];return p(Xt(p(a.flatMap(e=>[...e.successCalls,...e.errorCalls]))))}function Os(r){const a=zc(r),e=[];return a.forEach(t=>{if(et.includes(t.type))e.push(t);else if(Ir.includes(t.type)){const i=t.parent;e.push(i)}}),e}function p(r){const a=new Set;return r.filter(e=>!e||a.has(e.id)?!1:(a.add(e.id),!0))}function Hr(r,a=!1){const e=[];if(r.type===n.Project&&e.push(...(r==null?void 0:r.entities)||[],...(r==null?void 0:r.functions)||[],...(r==null?void 0:r.variableDeclarations)||[],...(r==null?void 0:r.variableInstances)||[],...(r==null?void 0:r.searches)||[],...(r==null?void 0:r.loops)||[],...(r==null?void 0:r.operations)||[],...(r==null?void 0:r.conditions)||[],...(r==null?void 0:r.functionCalls)||[],...(r==null?void 0:r.events)||[],...(r==null?void 0:r.projects)||[]),dt.includes(r.type)&&e.push(...(r==null?void 0:r.detachedChildren)||[]),r.type===n.DefinitionEntity){const t=[...r.suggestedMethods,...r.methods].flatMap(i=>i.collapsed&&a?[]:Hr(i));e.push(...t)}if(r.type===n.Condition){const t=r.successCalls.map(s=>wt(s)),i=r.errorCalls.map(s=>wt(s));e.push(...t,...i)}if(Gn.includes(r.type)){if(r.collapsed&&a)return[];const t=r.inputs.map(s=>Os(s)).flat(),i=r.calls.map(s=>wt(s));e.push(...p(t),...i)}if(ot.includes(r.type)&&r.type!==n.Condition&&r.type!==n.Loop){const t=r==null?void 0:r.outputs.map(l=>Os(l)).flat(),i=r.successCalls.map(l=>wt(l)),s=r.errorCalls.map(l=>wt(l));e.push(...p(t),...i,...s)}if(et.includes(r.type)){const t=Os(r),i=qP(r);e.push(...t,...i)}if(r.type===n.Loop){const t=r.outputs.map(l=>Os(l)).flat();if(r.body){const l=Hr(r.body,a);e.push(...l)}const i=r.errorCalls.map(l=>wt(l)),s=r.successCalls.map(l=>wt(l));e.push(...p(t),...s,...i)}if(r.type===n.FunctionDeclaration){if(r.collapsed&&a)return[];const t=r.inputs.map(s=>Os(s)).flat(),i=r.calls.map(s=>wt(s));e.push(...p(t),...i)}return p(e)}function JP(r,a=!1){const e=Hr(r,a),t=[...e,...e.reduce((i,s)=>[...i,...JP(s,a)],[])];return p(t)}function WP(r){const a=Ln(r),e=[...a,...a.reduce((t,i)=>[...t,...WP(i)],[])];return p(e)}function Kl(r){return r.implements.reduce((a,e)=>e.type===n.DefinitionEntity?[...a,n.DefinitionEntity,...Kl(e),...Xl(e)]:[...a,e.name],[])}function Xl(r){return r.extends.reduce((a,e)=>e.type===n.DefinitionEntity?[...a,n.DefinitionEntity,...Xl(e),...Kl(e)]:[...a,e.name],[])}function Hc(r){return r.extends.reduce((a,e)=>e.type===n.DefinitionEntity?[...a,e,...Hc(e),...Kc(e)]:[...a,e],[])}function Kc(r){return r.implements.reduce((a,e)=>e.type===n.DefinitionEntity?[...a,e,...Kc(e),...Hc(e)]:[...a,e],[])}function Xc(r){return[...Xl(r),...Kl(r)].filter((e,t,i)=>i.indexOf(e)===t)}function zP(r){return r.implements.length===0&&r.extends.length===0?null:r.implements.find(t=>t.type===n.BuiltInBaseEntity&&t.name===z.PERSISTED_ENTITY)?r:[...r.implements,...r.extends].reduce((t,i)=>{if(i.type===n.DefinitionEntity){const s=zP(i);if(s)return s}return t},null)}function RJ(r){const a=r.extends.find(e=>e.type===n.BuiltInBaseEntity);return a&&a.type===n.BuiltInBaseEntity?a:null}function DJ(r){const a=r.implements.find(e=>e.type===n.BuiltInBaseEntity);return a&&a.type===n.BuiltInBaseEntity?a:null}function Qc(r){const a=r.extends.find(e=>e.type===n.DefinitionEntity);return a&&a.type===n.DefinitionEntity?a:null}function xt(r){if(r.type===n.BuiltInBaseEntity)return[r];const a=[...r.implements,...r.extends].reduce((e,t)=>t.type===n.BuiltInBaseEntity?[...e,t]:t.type===n.DefinitionEntity?[...e,...xt(t)]:e,[]);return p(a)}function Ql(r){return r.type===n.PrimitiveEntity?!0:r.type===n.BuiltInBaseEntity?r.interactive:!xt(r).find(t=>!t.interactive)}function OJ(r){return r.parent===r.project&&r.project.variableDeclarations.includes(r)}function ef(r){return r.parent!==r.project?!1:n.VariableDeclaration===r.type?r.project.variableDeclarations.includes(r):n.VariableInstance===r.type?r.project.variableInstances.includes(r):n.FunctionCall===r.type?r.project.functionCalls.includes(r):n.Condition===r.type?r.project.conditions.includes(r):n.Operation===r.type?r.project.operations.includes(r):n.Loop===r.type?r.project.loops.includes(r):n.Search===r.type?r.project.searches.includes(r):!1}function YP(r){if([...lt,n.DefinitionEntity,n.InstalledProject,n.Project].includes(r.type)||ef(r))return!1;const a=Ln(r);return a.length===0?!0:a.some(e=>YP(e))}function tf(r){return[...lt,n.DefinitionEntity,n.InstalledProject,n.Project].includes(r.type)||ef(r)?!1:Ln(r).length===0}function HP(r,a=0){if(tf(r)){const e=Ln(r);return e.length===0?r:e.map(i=>HP(i,a+1)).reduce((i,s)=>i?s&&s.x<i.x?s:i:s,null)}return null}function KP(r){const a=[];if(tf(r))a.push(r);else return[];return Ln(r).forEach(t=>{a.push(...KP(t))}),a}function XP(r){return r.type===n.FunctionDeclaration&&r.parent!==r.project&&!![n.DefinitionEntity,n.Loop,n.InstalledProject].includes(r.parent.type)}function PJ(r,a){const e=new Map;return r.forEach(t=>{e.set(t.id,t)}),a.forEach(t=>{e.set(t.id,t)}),Array.from(e.values())}function La(r){switch(r){case n.DefinitionEntity:return Xr;case n.FunctionDeclaration:return gr;case n.VariableDeclaration:return xr;case n.VariableInstance:return Fr;case n.FunctionCall:return Yr;case n.Operation:return jr;case n.Condition:return Gr;case n.ReturnStatement:return Ur;case n.Loop:return $r;case n.Search:return kr;case n.InputMap:return Wi;case n.OutputMap:return zi;case n.ArgumentDeclaration:return Zr;case n.ReturnDeclaration:return si;case n.Property:return Lr;case n.InstalledProject:return Sr;case n.Project:return m;case n.BuiltInBaseEntity:return Ki;default:return null}}function kt(r,a){if(dt.includes(r.type))return r;if(Ti.includes(r.type))return null;const e=r.parent;if(!e)return null;if(e.type===n.GenericReference){const t=_(e);if(!t)return null;const i=a.get(t);return i?kt(i,a):null}else return e===a?a:kt(e,a)}function rf(r,a){if(Ti.includes(r.type)||a.getBuiltIn(r.id))return null;const e=mi(r.parent,a);return e?e===a?dt.includes(r.type)?r:null:e.type===n.DefinitionEntity?r:rf(e,a):null}function ed(r,a,e){if(r===a||a===e||r===e)return!1;const t=kt(a.parent,e);return t===r?!0:ed(t,a,e)}var td=(r=>(r.SameBothLocal="same-both-local",r.AInB="a-in-b",r.BInA="b-in-a",r.ParallelInCommonParent="parallel-in-common-parent",r.ParallelInProject="parallel-in-project",r.AIsGlobalBIsNot="a-is-global-b-is-not",r.BIsGlobalAIsNot="b-is-global-a-is-not",r.SameBothGlobal="same-both-global",r))(td||{});function Ua(r,a,e){const t=kt(r,e),i=kt(a,e);if(!t)throw new Error("Could not find scope owner for the entity: "+r.id);if(!i)throw new Error("Could not find scope owner for the entity: "+a.id);if(t===i&&t.type!==n.Project)return{compatible:!0,type:"same-both-local",commonAncestorScope:t};if(t===i&&t.type===n.Project)return{compatible:!0,type:"same-both-global",commonAncestorScope:t};if(t.type===n.Project&&i.type!==n.Project)return{compatible:!1,type:"a-is-global-b-is-not",commonAncestorScope:t};if(t.type!==n.Project&&i.type===n.Project)return{compatible:!1,type:"b-is-global-a-is-not",commonAncestorScope:i};if(ed(t,i,e))return{compatible:!0,type:"b-in-a",commonAncestorScope:t};if(ed(i,t,e))return{compatible:!0,type:"a-in-b",commonAncestorScope:i};const o=Jc(t,i);return o===e?{compatible:!1,type:"parallel-in-project",commonAncestorScope:o}:o?{compatible:!1,type:"parallel-in-common-parent",commonAncestorScope:kt(o,e)}:{compatible:!1,type:"parallel-in-project",commonAncestorScope:e}}function QP(r,a,e){const t=Ua(r,a,e);if(!t.compatible||t.type!=="same-both-local")return null;if(r===a)return r;let i=kt(r.parent,e);if(i){if(i===a)return a;if(i.type===n.Project)return r}else return r;for(;i;){if(i){if(i===a)return a;if(i.type===n.Project)return r}else return r;i=kt(i.parent,e)}let s=kt(a.parent,e);if(s){if(s===r)return r;if(s.type===n.Project)return a}else return a;for(;s;){if(s){if(s===r)return r;if(s.type===n.Project)return a}else return a;s=kt(s.parent,e)}return null}function ew(r){return r.length===0?null:r.length===1?r[0]:r.reduce((e,t)=>{const i=QP(e,t,t.project);return!i||i===t?e:t},r[0])}function mi(r,a){if(!r)return null;let e;return typeof r=="string"?e=r:r.type===n.GenericReference?e=_(r):e=r.id,e===a.id?a:a.get(e)}function Kr(r){if(!r)return null;if(Ti.includes(r.type))return r;if(r.type===n.Project)return null;if(r.project.getBuiltIn(r.id))return r;const a=r.parent;return!a||a.type===n.Project?null:Kr(a)}function ga(r){const a=[];function e(s,l){return a.some(o=>o.blockedByCaller===s&&o.blockedByCalling===l)}function t(s,l){e(s,l)||a.push({blockedByCaller:s,blockedByCalling:l})}const i=rf(r,r.project);return r.calledBySuccess.forEach(s=>{[...s.successCalls||[]].forEach(d=>{st.includes(d.type)&&d!==r&&(rt(r).find(c=>c===d)||t(s,d))});let o;if(ot.includes(s.type)&&(o=s),o){const d=ga(o);d.reachable||rt(r).find(c=>c===s)||d.blocks.forEach(c=>{t(s,c.blockedByCalling)})}}),r.calledByError.forEach(s=>{[...s.errorCalls||[]].forEach(d=>{st.includes(d.type)&&d!==r&&(rt(r).find(c=>c===d)||t(s,d))});let o;if(ot.includes(s.type)&&(o=s),o){const d=ga(o);d.reachable||rt(r).find(c=>c===s)||d.blocks.forEach(c=>{t(s,c.blockedByCalling)})}}),r.calledByEntry.forEach(s=>{if([...s.calls||[]].forEach(d=>{st.includes(d.type)&&d!==r&&(rt(r).find(c=>c===d)||t(s,d))}),s===i)return;let o;if(s.type===n.FunctionDeclaration){const d=wt(s);if(d.type===n.DefinitionEntity)return;d.type===n.Loop&&(o=d)}if(o){const d=ga(o);d.reachable||d.blocks.forEach(u=>{t(s,u.blockedByCalling)})}}),{reachable:a.length===0,entryPoint:i,blocks:a}}function wJ(r){return Sa.includes(r.type)?r.type===n.FunctionDeclaration?!XP(r):!0:!1}function CJ(r){if(n.ActionDescriptor===r.type){if(r.project.operationDeclarations.find(s=>s.id===r.id))return n.Operation;if(r.project.globalEventActionDescriptors.find(s=>s.id===r.id))return n.GlobalEvent;if(r.project.loopDeclarations.find(s=>s.id===r.id))return n.Loop;if(r.project.conditionDeclarations.find(s=>s.id===r.id))return n.Condition}return r.type}function Ps(r,a){if(r.type!==n.DefinitionEntity||r.abstract)return!1;const e=Qc(r)||r;return!!Xc(e).includes(a)}function VJ(r){const a=[];return r.entities.forEach(e=>{if(Ps(e,z.PERSISTED_ENTITY)){a.push(e);return}}),p(a)}function BJ(r){const a=[];return r.entities.forEach(e=>{if(Ps(e,z.RELATIONAL_DATABASE)){a.push(e);return}}),p(a)}function _J(r){return r.type!==n.DefinitionEntity||r.abstract||!Ps(r,z.PERSISTED_ENTITY)?null:(r==null?void 0:r.properties.find(e=>{var t;return((t=e.implements)==null?void 0:t.id)===k[n.BuiltInBaseEntity][z.PERSISTED_ENTITY].properties.primaryKey.id&&!e.abstract}))||null}function MJ(r){if(r.type!==n.DefinitionEntity)return[];if(r.abstract)return[];if(!Ps(r,z.PERSISTED_ENTITY))return[];const a=[],e=r.properties.filter(t=>{var i;return((i=t.implements)==null?void 0:i.id)!==k[n.BuiltInBaseEntity][z.PERSISTED_ENTITY].properties.database.id&&!t.abstract});return a.push(...e),a}function NJ(r){var e;if(!r||r.type!==n.DefinitionEntity||!Ps(r,z.PERSISTED_ENTITY))return null;const a=r.properties.find(t=>{var i;return((i=t.implements)==null?void 0:i.id)===k[n.BuiltInBaseEntity][z.PERSISTED_ENTITY].properties.database.id});return(e=a==null?void 0:a.getDefaultValue())==null?void 0:e.valueAsTypeSingle}function mt(r,a){var t;if(!uf.includes(a.type)||!r)return a.project||null;let e=a.project;return r.type===n.Project?e=r:((t=a.project)==null?void 0:t.id)!==r.project.id&&(e=r.project),e}function LJ(r){switch(r){case n.Project:return m;case n.InstalledProject:return Sr;case n.DefinitionEntity:return Xr;case n.FunctionDeclaration:return gr;case n.GlobalEvent:return Bn;case n.VariableInstance:return Fr;case n.VariableDeclaration:return xr;case n.InputMap:return Wi;case n.OutputMap:return zi;case n.Condition:return Gr;case n.Operation:return jr;case n.FunctionCall:return Yr;case n.ReturnDeclaration:return si;case n.ArgumentDeclaration:return Zr;case n.PrimitiveEntity:return oi;case n.DataType:return Vn;case n.Property:return Lr;case n.ActionDescriptor:return Je;case n.ReturnStatement:return Ur;case n.ContinueStatement:return Ft;case n.BreakStatement:return _n;case n.Loop:return $r;case n.Search:return kr;case n.ValueDescriptor:return qr;case n.InternalCall:return Mn;case n.LiteralValue:return Nn}return null}function UJ(r){const a={added:{},updated:{},removed:{},affected:[],seenEntities:[],self:r==null?void 0:r.self};return r==null||r.added.forEach(e=>{a.added[e.id]=e}),r==null||r.updated.forEach(e=>{a.updated[e.id]=e}),r==null||r.removed.forEach(e=>{a.removed[e.id]=e}),a.affected=Array.from(new Set(r==null?void 0:r.affected.map(e=>e.id))),a}function pt(r,a){const e=La(r.type);return e?!e.MUTABLE_META_PROPERTIES.every(i=>{const s=r[i],l=a[i];return l===void 0||s===l?!0:Array.isArray(s)&&Array.isArray(l)?s.length!==l.length?!1:s.every((o,d)=>o===l[d]):!1}):!1}function id(r,a={}){if(r.type===n.Project)return[];if(!r.parent)return[];const e=_(r.parent);if(!e)return[];const t=a[e];return t?[t.id,...id(t,a)]:[]}function gJ(r){const a=[],e=new Set;return[...r.listAdded,...r.listUpdated,...r.listAffected].forEach(t=>{const i=wt(t);!i||e.has(i.id)||(e.add(i.id),a.push(i))}),p(a)}function tw(r){const a=fZ(),e=r.toJSON();a.safeParse(e).success;const i=r.implements.flatMap(y=>jJ(r,y)),s=r.extends.flatMap(y=>$J(r,y)),l=FJ(r),o=GJ(r);r.methods.flatMap(y=>y.validate());const d=[...i,...s,...l,...o];return Ye(r.errors,d)}function iw(r,a){const e=a.properties.filter(s=>s.abstract),t=[];let i=[...r.properties];return e.forEach(s=>{const l=i.find(o=>{var d;return((d=o.implements)==null?void 0:d.id)===s.id});l?i=i.filter(o=>o.id!==l.id):t.push(s)}),t}function rw(r,a){const e=a.abstractMethods,t=[];let i=[...r.methods];return e.forEach(s=>{const l=i.find(o=>{var d;return((d=o.implements)==null?void 0:d.id)===s.id});l?i=i.filter(o=>o.id!==l.id):t.push(s)}),t}function jJ(r,a){const e=[];if(!a.abstract){const y=de({id:r.id+"--"+F.ImplementingNonAbstractEntity,message:`Entity "${r.name}" with id "${r.id}" is implementing a non-abstract entity "${a.name}" with id "${a.id}"`,issue:null,severity:D.Error,code:F.ImplementingNonAbstractEntity,entity:r});return e.push(y.error),e}const t=a.properties.filter(y=>y.abstract),i=[];let s=[...r.properties];t.forEach(y=>{const c=s.find(I=>{var E;return((E=I.implements)==null?void 0:E.id)===y.id});c?s=s.filter(I=>I.id!==c.id):i.push(y)}),i.length&&i.forEach(y=>{const c=de({id:r.id+"--"+F.MissingPropertyImplementation+"--"+y.id,message:`Property "${y.name}" with id "${y.id}" of entity "${a.name}" with id "${a.id}" is not implemented when entity "${r.name}" with id "${r.id}" implements it`,issue:null,severity:D.Error,code:F.MissingPropertyImplementation,entity:r});e.push(c.error)});const l=[];let o=[...r.methods];a.abstractMethods.forEach(y=>{const c=o.find(I=>{var E;return((E=I.implements)==null?void 0:E.id)===y.id});c?o=o.filter(I=>I.id!==c.id):l.push(y)}),l.length&&l.forEach(y=>{const c=de({id:r.id+"--"+F.MissingMethodImplementation+"--"+y.id,message:`Method "${y.name}" with id "${y.id}" of entity "${a.name}" with id "${a.id}" is not implemented when entity "${r.name}" with id "${r.id}" implements it`,issue:null,severity:D.Error,code:F.MissingMethodImplementation,entity:r});e.push(c.error)});const d=[];a.properties.forEach(y=>{const c=s.find(I=>I.name===y.name);c&&d.push([c,y])}),d.length&&d.forEach(([y])=>{const c=de({id:r.id+"--"+j.PropertyOverwritesOtherSiblingWithSameName+"--"+y.id,message:`Property "${y.name}" with id "${y.id}" of entity "${r.name}" with id "${r.id}" overwrites the property with the same name from the base entity "${a.name}" with id "${a.id}"`,issue:null,severity:D.Error,code:j.PropertyOverwritesOtherSiblingWithSameName,entity:r});e.push(c.error)});const u=[];return a.methods.forEach(y=>{const c=o.find(I=>I.name===y.name);c&&u.push([c,y])}),u.length&&u.forEach(([y])=>{const c=de({id:r.id+"--"+j.MethodOverwritesOtherSiblingWithSameName+"--"+y.id,message:`Method "${y.name}" with id "${y.id}" of entity "${r.name}" with id "${r.id}" overwrites the method with the same name from the base entity "${a.name}" with id "${a.id}"`,issue:null,severity:D.Error,code:j.MethodOverwritesOtherSiblingWithSameName,entity:r});e.push(c.error)}),e}function $J(r,a){const e=[],t=[];if(!r.abstract&&a.abstract){const s=de({id:r.id+"--"+a.id+"--"+F.NonAbstractExtendingAbstractEntity,message:`Entity "${r.name}" with id "${r.id}" is not-abstract but is extending an abstract entity "${a.name}" with id "${a.id}"`,issue:null,severity:D.Error,code:F.NonAbstractExtendingAbstractEntity,entity:r,firstRelationship:a});return e.push(s.error),e}if(r.abstract&&!a.abstract){const s=de({id:r.id+"--"+a.id+"--"+F.AbstractExtendingNonAbstractEntity,message:`Entity "${r.name}" with id "${r.id}" is abstract but is extending an non-abstract entity "${a.name}" with id "${a.id}"`,issue:null,severity:D.Error,code:F.AbstractExtendingNonAbstractEntity,entity:r,firstRelationship:a});return e.push(s.error),e}r.properties.forEach(s=>{var o;const l=a.properties.find(d=>d.name===s.name);((o=s.implements)==null?void 0:o.id)!==(l==null?void 0:l.id)&&l&&t.push(s)}),t.length&&t.forEach(s=>{const l=de({id:r.id+"--"+j.PropertyOverwritesOtherSiblingWithSameName,message:`Property "${s.name}" with id "${s.id}" of entity "${r.name}" with id "${r.id}" overwrites the property with the same name from the extended entity "${a.name}" with id "${a.id}"`,issue:null,severity:D.Error,code:j.PropertyOverwritesOtherSiblingWithSameName,entity:r});e.push(l.error)});const i=[];return r.methods.forEach(s=>{var o;const l=a.methods.find(d=>d.name===s.name);((o=s.implements)==null?void 0:o.id)!==(l==null?void 0:l.id)&&l&&i.push(s)}),i.length&&i.forEach(s=>{const l=de({id:r.id+"--"+j.MethodOverwritesOtherSiblingWithSameName,message:`Method "${s.name}" with id "${s.id}" of entity "${r.name}" with id "${r.id}" overwrites the method with the same name from the extended entity "${a.name}" with id "${a.id}"`,issue:null,severity:D.Error,code:j.MethodOverwritesOtherSiblingWithSameName,entity:r});e.push(l.error)}),e}function GJ(r){const a=[];if(!r.properties.length){const e=de({id:r.id+"--"+F.NoProperties,message:"No properties implemented",issue:null,severity:D.Warning,code:F.NoProperties,entity:r});a.push(e.error)}return r.properties.forEach(e=>{e.validate()}),a}function FJ(r){const a=[];if(r.abstract){if(r.methods.length){const e=de({id:r.id+"--"+F.AbstractEntityWithNonAbstractMethods,message:`Entity "${r.name}" with id "${r.id}" is marked as abstract but has non-abstract methods`,issue:null,severity:D.Error,code:F.AbstractEntityWithNonAbstractMethods,entity:r});a.push(e.error)}if(r.properties.some(e=>!e.abstract)){const e=de({id:r.id+"--"+F.AbstractEntityWithNonAbstractProperties,message:`Entity "${r.name}" with id "${r.id}" is marked as abstract but has non-abstract properties`,issue:null,severity:D.Error,code:F.AbstractEntityWithNonAbstractProperties,entity:r});a.push(e.error),r.properties.forEach(t=>{if(!t.abstract){const i=de({id:r.id+"--"+F.StaticEntityWithNonStaticProperties+"--"+t.id,message:`Property "${t.name}" with id "${t.id}" of entity "${r.name}" with id "${r.id}" is not marked as abstract but the entity is marked as abstract`,issue:null,severity:D.Error,code:F.StaticEntityWithNonStaticProperties,entity:r});a.push(i.error)}})}}else{if(r.abstractMethods.length){const e=de({id:r.id+"--"+F.AbstractPropertyInNonAbstractEntity,message:`Entity "${r.name}" with id "${r.id}" is not marked as abstract but has abstract methods`,issue:null,severity:D.Error,code:F.AbstractPropertyInNonAbstractEntity,entity:r});a.push(e.error)}if(r.properties.some(e=>e.abstract)){const e=de({id:r.id+"--"+F.AbstractMethodInNonAbstractEntity,message:`Entity "${r.name}" with id "${r.id}" is not marked as abstract but has abstract properties`,issue:null,severity:D.Error,code:F.AbstractMethodInNonAbstractEntity,entity:r});a.push(e.error),r.properties.forEach(t=>{if(t.abstract){const i=de({id:r.id+"--"+F.AbstractMethodInNonAbstractEntity+"--"+t.id,message:`Property "${t.name}" with id "${t.id}" of entity "${r.name}" with id "${r.id}" is marked as abstract but the entity is not marked as abstract`,issue:null,severity:D.Error,code:F.AbstractMethodInNonAbstractEntity,entity:r});a.push(i.error)}})}}if(r.static&&r.properties.some(e=>!e.static)){const e=de({id:r.id+"--"+F.StaticEntityWithNonStaticProperties,message:`Entity "${r.name}" with id "${r.id}" is marked as static but has non-static properties`,issue:null,severity:D.Error,code:F.StaticEntityWithNonStaticProperties,entity:r});a.push(e.error),r.properties.forEach(t=>{if(!t.static){const i=de({id:r.id+"--"+F.NonStaticPropertyInStaticEntity+"--"+t.id,message:`Property "${t.name}" with id "${t.id}" of entity "${r.name}" with id "${r.id}" is not marked as static but the entity is marked as static`,issue:null,severity:D.Error,code:F.NonStaticPropertyInStaticEntity,entity:r});a.push(i.error)}})}return a}function xJ(r,a){const e=[],t=xt(a);if(!a.abstract){const l=new tt({id:r.id+"--"+a.id+"--"+F.ImplementingNonAbstractEntity,message:`Entity "${r.name}" with id "${r.id}" is implementing a non-abstract built-in entity "${a.name}" with id "${a.id}"`,issue:null,severity:D.Error,code:F.ImplementingNonAbstractEntity,entity:r,firstRelationship:a});e.push(l)}const i=r.implements.filter(l=>l.id!==a.id);if(r.abstract){const l=new tt({id:r.id+"--"+a.id+"--"+F.AbstractEntityImplements,message:`Entity "${r.name}" with id "${r.id}" is marked as abstract and cannot implement built-in entity "${a.name}" with id "${a.id}"`,issue:null,severity:D.Error,code:F.AbstractEntityImplements,entity:r,firstRelationship:a});e.push(l)}if(r.static&&!a.static){const l=new tt({id:r.id+"--"+a.id+"--"+F.StaticImplementingNonStaticEntity,message:`Entity "${r.name}" with id "${r.id}" is marked as static and cannot implement non-static built-in entity "${a.name}" with id "${a.id}"`,issue:null,severity:D.Error,code:F.StaticImplementingNonStaticEntity,entity:r,firstRelationship:a});e.push(l)}if(!r.static&&a.static){const l=new tt({id:r.id+"--"+a.id+"--"+F.NonStaticImplementingStaticEntity,message:`Entity "${r.name}" with id "${r.id}" is not marked as static and cannot implement static built-in entity "${a.name}" with id "${a.id}"`,issue:null,severity:D.Error,code:F.NonStaticImplementingStaticEntity,entity:r,firstRelationship:a});e.push(l)}return i.length&&i.forEach(l=>{if(l.type===n.BuiltInBaseEntity){const o=t.filter(d=>d.id!==l.id);o.length&&o.forEach(d=>{if(d.id!==l.id){const u=new tt({id:r.id+"--"+d.id+"--"+l.id+"--"+F.ImplementsIncompatibleEntities,message:`Entity "${r.name}" with id "${r.id}" is implementing built-in entity "${d.name}" with id "${d.id}" but also implements entity "${l.name}" with id "${l.id}" which is incompatible`,issue:null,severity:D.Error,code:F.ImplementsIncompatibleEntities,entity:r,firstRelationship:d,secondRelationship:l});e.push(u)}})}else{xt(l).forEach(y=>{const c=t.filter(I=>I.id!==y.id);c.length&&c.forEach(I=>{if(I.id!==y.id){const E=new tt({id:r.id+"--"+I.id+"--"+y.id+"--"+F.ImplementsIncompatibleEntities,message:`Entity "${r.name}" with id "${r.id}" is implementing built-in entity "${I.name}" with id "${I.id}" but also implements entity "${y.name}" with id "${y.id}" which is incompatible`,issue:null,severity:D.Error,code:F.ImplementsIncompatibleEntities,entity:r,firstRelationship:I,secondRelationship:y});e.push(E)}})});const d=vr(a.ownDeclaredProperties,l.ownDeclaredProperties,j.PropertyOverwritesOtherImplementedEntitysPropertyWithSameImplementation,j.PropertyOverwritesOtherImplementedEntitysPropertyWithSameName);e.push(...d.errors);const u=vr(a.abstractMethods,[...l.abstractMethods,...l.methods],j.MethodOverwritesOtherImplementedEntitysMethodWithSameImplementation,j.MethodOverwritesOtherImplementedEntitysMethodWithSameName);e.push(...u.errors)}}),p(r.extends.flatMap(l=>xt(l))).forEach(l=>{if(!t.find(o=>o.id===l.id)){const o=new tt({id:r.id+"--"+a.id+"--"+l.id+"--"+F.ExtendsIncompatibleEntities,message:`Entity "${r.name}" with id "${r.id}" is implementing built-in entity "${a.name}" with id "${a.id}" but also extends entity "${l.name}" with id "${l.id}" which is incompatible`,issue:null,severity:D.Error,code:F.ExtendsIncompatibleEntities,entity:r,firstRelationship:a,secondRelationship:l});e.push(o)}}),e}function kJ(r,a,e=!1){const t=[],i=xt(a);if(!r.abstract&&a.abstract){const y=de({id:r.id+"--"+a.id+"--"+F.NonAbstractExtendingAbstractEntity,message:`Entity "${r.name}" with id "${r.id}" is not-abstract but is extending an abstract entity "${a.name}" with id "${a.id}"`,issue:null,severity:D.Error,code:F.NonAbstractExtendingAbstractEntity,entity:r,firstRelationship:a});t.push(y.error)}if(r.abstract&&!a.abstract){const y=de({id:r.id+"--"+a.id+"--"+F.AbstractExtendingNonAbstractEntity,message:`Entity "${r.name}" with id "${r.id}" is abstract but is extending an non-abstract entity "${a.name}" with id "${a.id}"`,issue:null,severity:D.Error,code:F.AbstractExtendingNonAbstractEntity,entity:r,firstRelationship:a});t.push(y.error)}if(!r.static&&a.static){const y=de({id:r.id+"--"+a.id+"--"+F.NonStaticExtendingStaticEntity,message:`Entity "${r.name}" with id "${r.id}" is not static but is extending a static entity "${a.name}" with id "${a.id}"`,issue:null,severity:D.Error,code:F.NonStaticExtendingStaticEntity,entity:r,firstRelationship:a});t.push(y.error)}if(r.static&&!a.static){const y=de({id:r.id+"--"+a.id+"--"+F.StaticExtendingNonStaticEntity,message:`Entity "${r.name}" with id "${r.id}" is static but is extending an non-static entity "${a.name}" with id "${a.id}"`,issue:null,severity:D.Error,code:F.StaticExtendingNonStaticEntity,entity:r,firstRelationship:a});t.push(y.error)}if(!Ql(a)){const y=de({id:r.id+"--"+a.id+"--"+F.ExtendingNonInteractiveEntity,message:`Entity "${r.name}" with id "${r.id}" is extending an non-interactive entity "${a.name}" with id "${a.id}"`,issue:null,severity:D.Error,code:F.ExtendingNonInteractiveEntity,entity:r,firstRelationship:a});t.push(y.error)}const l=r.extends.filter(y=>y.id!==a.id);l.length&&l.forEach(y=>{if(y.type===n.BuiltInBaseEntity){const c=i.filter(I=>I.id!==y.id);c.length&&c.forEach(I=>{if(I.id!==y.id){const E=de({id:r.id+"--"+I.id+"--"+y.id+"--"+F.ExtendsIncompatibleEntities,message:`Entity "${r.name}" with id "${r.id}" is extending built-in entity "${I.name}" with id "${I.id}" but also extends entity "${y.name}" with id "${y.id}" which is incompatible`,issue:null,severity:D.Error,code:F.ExtendsIncompatibleEntities,entity:r,firstRelationship:I,secondRelationship:y});t.push(E.error)}})}else{xt(y).forEach(M=>{const G=i.filter(B=>B.id!==M.id);G.length&&G.forEach(B=>{if(B.id!==M.id){const $=new tt({id:r.id+"--"+B.id+"--"+M.id+"--"+F.ImplementsIncompatibleEntities,message:`Entity "${r.name}" with id "${r.id}" is extending built-in entity "${B.name}" with id "${B.id}" but also extends or implements entity "${M.name}" with id "${M.id}" which is incompatible`,issue:null,severity:D.Error,code:F.ImplementsIncompatibleEntities,entity:r,firstRelationship:B,secondRelationship:M});t.push($)}})});const I=!!xt(y).find(M=>M.id===a.id);let E=[...y.properties];I&&(E=E.filter(M=>!a.properties.find(G=>{var B;return G.id===M.id||G.name===M.name||G.id===((B=M.implements)==null?void 0:B.id)})));let O=[...y.methods];I&&(O=O.filter(M=>!a.methods.find(G=>{var B;return G.id===M.id||G.name===M.name||G.id===((B=M.implements)==null?void 0:B.id)})));const P=vr(a.ownDeclaredProperties,E,j.PropertyOverwritesOtherExtendedEntitysPropertyWithSameImplementation,j.PropertyOverwritesOtherExtendedEntitysPropertyWithSameName);t.push(...P.errors);const V=vr(a.abstractMethods,O,j.MethodOverwritesOtherExtendedEntitysMethodWithSameImplementation,j.MethodOverwritesOtherExtendedEntitysMethodWithSameName);t.push(...V.errors)}}),e&&console.log("self.implements.length",r.implements.length),r.implements.length&&r.implements.forEach(y=>{if(y.type===n.BuiltInBaseEntity){const c=i.filter(I=>I.id!==y.id);c.length&&c.forEach(I=>{if(I.id!==y.id){const E=new tt({id:r.id+"--"+I.id+"--"+y.id+"--"+F.ImplementsIncompatibleEntities,message:`Entity "${r.name}" with id "${r.id}" is implementing built-in entity "${I.name}" with id "${I.id}" but also implements entity "${y.name}" with id "${y.id}" which is incompatible`,issue:null,severity:D.Error,code:F.ImplementsIncompatibleEntities,entity:r,firstRelationship:I,secondRelationship:y});t.push(E)}})}else{xt(y).forEach(O=>{const P=i.filter(V=>V.id!==O.id);P.length&&P.forEach(V=>{if(V.id!==O.id){const M=new tt({id:r.id+"--"+V.id+"--"+O.id+"--"+F.ImplementsIncompatibleEntities,message:`Entity "${r.name}" with id "${r.id}" is implementing built-in entity "${V.name}" with id "${V.id}" but also implements entity "${O.name}" with id "${O.id}" which is incompatible`,issue:null,severity:D.Error,code:F.ImplementsIncompatibleEntities,entity:r,firstRelationship:V,secondRelationship:O});t.push(M)}})});const I=vr(a.ownDeclaredProperties,y.ownDeclaredProperties,j.PropertyOverwritesOtherImplementedEntitysPropertyWithSameImplementation,j.PropertyOverwritesOtherImplementedEntitysPropertyWithSameName);t.push(...I.errors);const E=vr(a.abstractMethods,[...y.abstractMethods,...y.methods],j.MethodOverwritesOtherImplementedEntitysMethodWithSameImplementation,j.MethodOverwritesOtherImplementedEntitysMethodWithSameName);t.push(...E.errors)}});const o=vr(r.ownDeclaredProperties,a.ownDeclaredProperties,j.PropertyOverwritesOtherSiblingWithSameImplementation,j.PropertyOverwritesOtherSiblingWithSameName);t.push(...o.errors);const d=vr(a.methods,a.abstractMethods,j.MethodOverwritesOtherSiblingWithSameImplementation,j.MethodOverwritesOtherSiblingWithSameName);return t.push(...d.errors),p(r.extends.flatMap(y=>xt(y))).forEach(y=>{if(!i.find(c=>c.id===y.id)){const c=new tt({id:r.id+"--"+a.id+"--"+y.id+"--"+F.ImplementsIncompatibleEntities,message:`Entity "${r.name}" with id "${r.id}" is extending built-in entity "${a.name}" with id "${a.id}" but also extends entity "${y.name}" with id "${y.id}" which is incompatible`,issue:null,severity:D.Error,code:F.ImplementsIncompatibleEntities,entity:r,firstRelationship:a,secondRelationship:y});t.push(c)}}),t}function SJ(r){const a=[];return r.implements.forEach(e=>{if(!e.static){const t=new tt({id:r.id+"--"+e.id+"--"+F.StaticImplementingNonStaticEntity,message:`Entity "${r.name}" with id "${r.id}" is static but implements entity "${e.name}" with id "${e.id}" which is non-static`,issue:null,severity:D.Error,code:F.StaticImplementingNonStaticEntity,entity:r,firstRelationship:e});a.push(t)}}),r.extends.forEach(e=>{if(!e.static){const t=new tt({id:r.id+"--"+e.id+"--"+F.StaticExtendingNonStaticEntity,message:`Entity "${r.name}" with id "${r.id}" is static but extends entity "${e.name}" with id "${e.id}" which is non-static`,issue:null,severity:D.Error,code:F.StaticExtendingNonStaticEntity,entity:r,firstRelationship:e});a.push(t)}}),a}function ZJ(r){const a=[];if(r.implements.length){const e=new tt({id:r.id+"--"+F.AbstractEntityImplements,message:`Entity "${r.name}" with id "${r.id}" cannot be marked as abstract because it implements other entities`,issue:null,severity:D.Error,code:F.AbstractEntityImplements,entity:r});a.push(e)}return r.extends.forEach(e=>{if(!e.abstract){const t=new tt({id:r.id+"--"+e.id+"--"+F.AbstractExtendingNonAbstractEntity,message:`Entity "${r.name}" with id "${r.id}" is abstract but extends entity "${e.name}" with id "${e.id}" which is non-abstract`,issue:null,severity:D.Error,code:F.AbstractExtendingNonAbstractEntity,entity:r,firstRelationship:e});a.push(t)}}),a}function qJ(r){const a=[];return r.extends.forEach(e=>{if(e.static){const t=new tt({id:r.id+"--"+e.id+"--"+F.NonStaticExtendingStaticEntity,message:`Entity "${r.name}" with id "${r.id}" is non-static but extends entity "${e.name}" with id "${e.id}" which is static`,issue:null,severity:D.Error,code:F.NonStaticExtendingStaticEntity,entity:r,firstRelationship:e});a.push(t)}}),a}function JJ(r){const a=[];return r.extends.forEach(e=>{if(e.abstract){const t=new tt({id:r.id+"--"+e.id+"--"+F.NonAbstractExtendingAbstractEntity,message:`Entity "${r.name}" with id "${r.id}" is non-abstract but extends entity "${e.name}" with id "${e.id}" which is abstract`,issue:null,severity:D.Error,code:F.NonAbstractExtendingAbstractEntity,entity:r,firstRelationship:e});a.push(t)}}),a}const WJ=Object.freeze(Object.defineProperty({__proto__:null,getBaseMethodsNotImplemented:rw,getBasePropertiesNotImplemented:iw,validate:tw,validateCanBecomeAbstract:ZJ,validateCanBecomeNonAbstract:JJ,validateCanBecomeNonStatic:qJ,validateCanBecomeStatic:SJ,validateCanExtendEntity:kJ,validateCanImplementEntity:xJ},Symbol.toStringTag,{value:"Module"}));function zJ(r,a){const e=[];if(r.parent)if(r.id===r.parent)e.push(new w({id:`${r.id}--${r.parent}--${R.SelfReference}`,code:R.SelfReference,severity:D.Error,message:`Entity of type "${r.type}" with id "${r.id}", has a reference to itself at 'parent'. This is not allowed. Change the reference string or the 'entityId' property of the reference object.`,issue:null}));else{const t=a.get(r.parent);t?[n.Project,n.DataType].includes(t.type)||e.push(new w({id:`${r.id}--${r.parent}--${R.InvalidParentReference}`,code:R.InvalidParentReference,severity:D.Error,message:`Entity of type "${r.type}" with id "${r.id}", has a parent reference that isn't pointing to an entity of type 'project' or 'data-type'.`,issue:null})):e.push(new w({id:`${r.id}--${r.parent}--${R.ReferencedEntityNotFound}`,code:R.ReferencedEntityNotFound,severity:D.Error,message:`Entity of type "${r.type}" with id "${r.id}", is referencing an entity with id "${r.parent}" that isn't yet found in the project. Perhaps it should be created first. Or perhaps the ID is incorrect.`,issue:null}))}return r.implements&&Array.isArray(r.implements)?r.implements.forEach(t=>{if(r.id===t){e.push(new w({id:`${r.id}--${t}--${R.SelfReference}`,code:R.SelfReference,severity:D.Error,message:`Entity of type "${r.type}" with id "${r.id}", has a reference to itself at one of the 'implements' references. This is not allowed. Change the reference string or the 'entityId' property of the reference object.`,issue:null}));return}const i=a.get(t);i?[n.DefinitionEntity,n.BuiltInBaseEntity].includes(i.type)?i.abstract||e.push(new w({id:`${r.id}--${t}--${R.InvalidImplementsReference}`,code:R.InvalidImplementsReference,severity:D.Error,message:`Entity of type "${r.type}" with id "${r.id}", has an 'implements' reference that isn't pointing to an abstract entity.`,issue:null})):e.push(new w({id:`${r.id}--${t}--${R.InvalidImplementsReference}`,code:R.InvalidImplementsReference,severity:D.Error,message:`Entity of type "${r.type}" with id "${r.id}", has an 'implements' reference that isn't pointing to an entity of type 'definition-entity' or 'built-in-base-entity'.`,issue:null})):e.push(new w({id:`${r.id}--${t}--${R.ReferencedEntityNotFound}`,code:R.ReferencedEntityNotFound,severity:D.Error,message:`Entity of type "${r.type}" with id "${r.id}", is referencing an entity with id "${t}" that isn't yet found in the project. Perhaps it should be created first. Or perhaps the ID is incorrect.`,issue:null}))}):e.push(new w({id:`${r.id}--${j.InvalidObjectStructure}`,code:j.InvalidObjectStructure,severity:D.Error,message:`Entity of type "${r.type}" with id "${r.id}", has an 'implements' property that isn't an array.`,issue:null})),r.extends&&Array.isArray(r.extends)&&r.extends.forEach(t=>{const i=a.get(t);i?[n.DefinitionEntity,n.BuiltInBaseEntity].includes(i.type)?i.abstract&&e.push(new w({id:`${r.id}--${t}--${R.InvalidExtendsReference}`,code:R.InvalidExtendsReference,severity:D.Error,message:`Entity of type "${r.type}" with id "${r.id}", has an 'extends' reference that isn't pointing to a non-abstract entity. Did you want to use the property 'implements', which holds a list of references to absract entities, instead?`,issue:null})):e.push(new w({id:`${r.id}--${t}--${R.InvalidExtendsReference}`,code:R.InvalidExtendsReference,severity:D.Error,message:`Entity of type "${r.type}" with id "${r.id}", has an 'extends' reference that isn't pointing to an entity of type 'definition-entity' or 'built-in-base-entity'.`,issue:null})):e.push(new w({id:`${r.id}--${t}--${R.ReferencedEntityNotFound}`,code:R.ReferencedEntityNotFound,severity:D.Error,message:`Entity of type "${r.type}" with id "${r.id}", is referencing an entity with id "${t}" that isn't yet found in the project. Perhaps it should be created first. Or perhaps the ID is incorrect.`,issue:null}))}),e}var rd=(r=>(r.Extends="extends",r.Implements="implements",r))(rd||{});const ge=class ge extends at{constructor(e,t){super(e);f(this,"initialData");f(this,"id");f(this,"name");f(this,"description",null);f(this,"x");f(this,"y");f(this,"static");f(this,"abstract");f(this,"type",n.DefinitionEntity);f(this,"properties",[]);f(this,"methods",[]);f(this,"abstractMethods",[]);f(this,"extends",[]);f(this,"implements",[]);f(this,"project");f(this,"errors",[]);f(this,"parent");f(this,"detachedDependents",{});f(this,"knownVersions",null);f(this,"activeVersion",!1);f(this,"initialized",!1);f(this,"startedInitialization",!1);f(this,"suggestedProperties",[]);f(this,"suggestedMethods",[]);this.initialData=e,this.project=t,this.id=e.id,this.name=e.name,this.description=e.description,this.x=e.x,this.y=e.y,this.static=e.static,this.abstract=e.abstract}static new(){return{id:m.UUID.uuid(),version:m.UUID.uuid(),createdAt:T().toISOString(),author:m.sessionAuthor,previousVersion:null,deleted:!1,type:n.DefinitionEntity,name:"",description:"",static:!1,abstract:!1,properties:[],methods:[],abstractMethods:[],extends:[],implements:[],x:0,y:0,parent:null}}static fromGenerationTarget(e,t){let i=t;if(e.parent){const u=_(e.parent);i=t.get(u)}const s=[];e.implements&&e.implements.forEach(u=>{s.push(t.get(u)||t.getBuiltIn(u))});const l=[];e.extends&&e.extends.forEach(u=>{l.push(t.get(u)||t.getBuiltIn(u))});const o={id:e.id,version:m.UUID.uuid(),createdAt:T().toISOString(),author:m.sessionAuthor,previousVersion:null,deleted:!1,name:e.name,type:n.DefinitionEntity,description:e.description,static:e.static,abstract:e.abstract,properties:[],methods:[],abstractMethods:[],extends:l,implements:s,x:0,y:0,parent:i},d=C(o,t);return d.setParent(i,null),d.initChildren(null),d}static validateGenerationTarget(e,t){let i=JSON.parse(JSON.stringify(e));const s=[],l=zJ(i,t),o=Ic(i,t);s.push(...l,...o,...ut(i));const d=i.parent?t.get(i.parent):null;if(d&&d.type===n.DataType){const u=d;u.entity&&s.push(new w({id:`${e.id}--${R.NewEntityWouldOverriteExisting}`,code:R.NewEntityWouldOverriteExisting,severity:D.Error,message:`The entity of type '${e.type}' with id '${e.id}' can't be added to the 'parent' entity with id '${u.id}' because it already has an 'entity' child. Data type entities can only have one 'entity' as children.
406
406
  You can inspect the existing 'entity' field with the 'describe_entity' action. Like so:
407
407
  ${Yi({describe_entity:u.entity.id})}
408
- Alternatively you can update the parent data-type entity with 'update' action to remove the existing value of the field.`,issue:null}))}return{errors:s,modifiedData:i}}get interactive(){return this.implements.length?this.implements.every(e=>e.interactive):!0}get allBasePropertiesFromExtendedAndImplementedEntities(){return p([...this.extends.reduce((e,t)=>[...[...t.ownDeclaredProperties,...t.allBasePropertiesFromExtendedAndImplementedEntities].filter(s=>!s.abstract),...e],[]),...this.implements.reduce((e,t)=>[...[...t.ownDeclaredProperties,...t.allBasePropertiesFromExtendedAndImplementedEntities].filter(s=>!s.abstract),...e],[])])}get extendedPropertiesFromOriginalParents(){return p(this.extends.reduce((e,t)=>{const i=[...t.ownDeclaredProperties,...t.extendedPropertiesFromOriginalParents].filter(s=>!s.abstract);return[...e,...i]},[]))}get implementedPropertiesFromOriginalParents(){return p([...this.extends.reduce((e,t)=>{const i=t.implementedPropertiesFromOriginalParents,s=[...t.ownDeclaredProperties].filter(l=>!!l.abstract&&!i.find(o=>o.name===l.name));return[...i,...s,...e]},[]),...this.implements.reduce((e,t)=>{const i=t.implementedPropertiesFromOriginalParents,s=[...t.ownDeclaredProperties].filter(l=>!!l.abstract&&!i.find(o=>o.name===l.name));return[...i,...s,...e]},[])].filter(e=>!!e.abstract))}get extendedProperties(){return this.properties.filter(e=>e.isExtendedProperty)}get ownDeclaredProperties(){return this.properties.filter(e=>!e.isExtendedProperty)}validateGeneratedUpdate(e){const t=[];return e.parent&&t.push(new w({id:`${this.id}--${R.InvalidParentUpdate}`,code:R.InvalidParentUpdate,severity:D.Error,message:`Entity of type '${this.type}' with id '${this.id}' cannot have the 'parent' property updated. The 'parent' on an '${this.type}', must be the root project as it is a globally declared entity.`,issue:null})),{errors:t,modifiedData:e}}subscribeDependents(e){return e.forEach(t=>{this.detachedDependents[t.entity.id]||(this.detachedDependents[t.entity.id]=t)}),this}syncDependents(){const e=[],t=[],i=[],s=[];return Object.values(this.detachedDependents).forEach(l=>{const o=l.entity.afterAllChildrenInitialized();e.push(...o.updated),t.push(...o.added),i.push(...o.removed),s.push(...o.affected)}),{updated:p(e),added:p(t),removed:p(i),affected:p(s),self:this}}onDetachedDependencyRemoved(e,t,i){const s=[],l=[],o=[],d=[];return t==="implements"&&this.removeImplementation(e),t==="extends"&&this.removeExtension(e),{updated:p(s),added:p(l),removed:p(o),affected:p(d),self:this}}onDetachedDependencyRestored(e,t,i){const s=[],l=[],o=[],d=[];return t==="implements"&&this.addImplementation(e),t==="extends"&&this.addExtension(e),{updated:p(s),added:p(l),removed:p(o),affected:p(d),self:this}}subscribeToDependencies(){return this.implements.forEach(e=>{Ti.includes(e.type)||e.subscribeDependents([{entity:this,field:"implements"}])}),this.extends.forEach(e=>{Ti.includes(e.type)||e.subscribeDependents([{entity:this,field:"extends"}])}),this}increaseVersion(e){if(e&&!T(e).isValid())throw new Error(`The shared timestamp '${e}' is not a valid ISO 8601 date string.`);return e&&T(e).isSame(T(this.createdAt))?this:(this.previousVersion=this.version,this.version=m.UUID.uuid(),this.createdAt=T(e).toISOString()||T().toISOString(),this)}captureVersion(){var t;const e=((t=this.knownVersions)==null?void 0:t.get(this.version))||new ge(this,this.project);return e.metaSync(this.toMeta(),null),this.knownVersions=this.knownVersions?this.knownVersions.set(this.version,e):new Map([[this.version,e]]),e.properties=this.properties,e.methods=this.methods,e.abstractMethods=this.abstractMethods,e.extends=this.extends,e.implements=this.implements,e.parent=this.parent,this}recursiveCaptureUpstreamVersions(e){const t=[],i=[],s=[],l=[];if(this.parent){this.parent.increaseVersion(e);const o=this.parent.recursiveCaptureUpstreamVersions(e);t.push(this.parent,...o.updated),i.push(...o.added),s.push(...o.removed)}return{updated:p(t),added:p(i),removed:p(s),affected:p(l),self:this}}async restoreVersion(e){var d;const t=[],i=[],s=[],l=[];if(this.version===e)return{updated:p(t),added:p(i),removed:p(s),affected:p(l),self:this};if(!this.knownVersions){const u=new Map;for(const[y,c]of this.knownVersions||new Map){if(u.set(y,c),c.activeVersion=!1,c.knownVersions)for(const[I,E]of c.knownVersions)u.set(I,E);c.knownVersions=null}}let o=(d=this.knownVersions)==null?void 0:d.get(e);if(!o){const u=await this.APILoadVersion({},e);if(!u)throw new Error(`Version with id '${e}' for entity with id '${this.id}' not found.`);o=new ge(u,this.project)}return this.metaSync(o.toShallowJSON(),null),this.properties=o.properties,this.methods=o.methods,this.abstractMethods=o.abstractMethods,this.extends=o.extends,this.implements=o.implements,this.parent=o.parent,{updated:p(t),added:p(i),removed:p(s),affected:p(l),self:this}}hydrateAncestors(){const e=[],t=[],i=[],s=[];if(this.initialData.parent){const l=_(this.initialData.parent),o=this.project.get(l);if(o)this.setParent(o,null),e.push(o);else throw new Error(`${this.type} with id '${this.id}' has a 'parent' reference '${l}' that isn't found in the project`)}else throw new Error(`${this.type} with id '${this.id}' must have a 'parent'`);return this.initialData.extends.forEach(l=>{const o=_(l),d=this.project.get(o);d&&(this.addExtension(d),d.type!==n.BuiltInBaseEntity&&e.push(d))}),this.initialData.implements.forEach(l=>{const o=_(l),d=this.project.get(o);d&&(this.addImplementation(d),d.type!==n.BuiltInBaseEntity&&e.push(d))}),{updated:p(e),added:p(t),removed:p(i),affected:p(s),self:this}}afterAllChildrenInitialized(e=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"after-all-children-initialized"))){const t=[],i=[],s=[],l=[];this.initialized=!0,this.captureVersion();const{updated:o,added:d,removed:u,affected:y}=this.syncImplementationProperties(e);t.push(...o),i.push(...d),s.push(...u),l.push(...y);const{updated:c,added:I,removed:E,affected:O}=this.addExtendedProperties(e);return t.push(...c),i.push(...I),s.push(...E),l.push(...O),this.addSuggestions(),e==null||e.attemptAutoclose("after-all-children-initialized",this.id),{updated:p(t),added:p(i),removed:p(s),affected:p(l),self:this}}addSelfToProject(e=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"add-self-to-project"))){const t=[this],i=[],s=[],l=[];if(this.parent.type===n.DataType){const o=this.parent;o.entity=this,t.push(o)}else this.project.addDefinitionEntity(this);return this.subscribe(),this.subscribeToDependencies(),e==null||e.attemptAutoclose("add-self-to-project",this.id),{updated:p(t),added:p(i),removed:p(s),affected:p(l),self:this}}setParent(e,t=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"set-parent"))){var i;return((i=this.parent)==null?void 0:i.id)!==(e==null?void 0:e.id)&&(this.parent=e,t&&(t==null||t.add(this,A.Updated),t==null||t.attemptAutoclose("set-parent",this.id))),this}addExtension(e){return this.extends.includes(e)||this.extends.push(e),this}removeExtension(e){return this.extends=this.extends.filter(t=>t.id!==e.id),this}addImplementation(e){return this.implements.includes(e)||this.implements.push(e),this}removeImplementation(e){return this.implements=this.implements.filter(t=>t.id!==e.id),this}removeProperty(e){return this.properties=this.properties.filter(t=>t.id!==e.id),this}addMethod(e){return this.methods.includes(e)||(this.methods.push(e),this.suggestedMethods=this.suggestedMethods.filter(t=>t.name!==e.name)),this}removeMethod(e){return this.methods=this.methods.filter(t=>t.id!==e.id),this}addProperty(e){return this.properties.includes(e)||(this.properties.push(e),this.suggestedProperties=this.suggestedProperties.filter(t=>t.name!==e.name)),this}addSuggestedProperty(e){return this.suggestedProperties.includes(e)||this.suggestedProperties.push(e),this}addSuggestedMethod(e){return this.suggestedMethods.includes(e)||this.suggestedMethods.push(e),this}removeSuggestedProperty(e){return this.suggestedProperties=this.suggestedProperties.filter(t=>t.id!==e.id),this}removeSuggestedMethod(e){return this.suggestedMethods=this.suggestedMethods.filter(t=>t.id!==e.id),this}addAbstractMethod(e){return this.abstractMethods.includes(e)||this.abstractMethods.push(e),this}removeAbstractMethod(e){return this.abstractMethods=this.abstractMethods.filter(t=>t.id!==e.id),this}initChildren(e=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"init-children"))){return this.initialized||this.startedInitialization?this:(this.startedInitialization=!0,this.properties=this.initialData.properties.map(t=>{const i=C(t,this.project);return i.setParent(this,null),i.initChildren(e),i}),this.methods=this.initialData.methods.map(t=>{const i=C(t,this.project);return i.setParent(this,null),i.initChildren(e),i}),this.abstractMethods=this.initialData.abstractMethods.map(t=>{const i=C(t,this.project);return i.setParent(this,null),i.initChildren(e),i}),this.extends=this.initialData.extends.map(t=>C(t,this.project)),this.implements=this.initialData.implements.map(t=>C(t,this.project)),this.subscribeToDependencies(),this.afterAllChildrenInitialized(e),e==null||e.attemptAutoclose("init-children",this.id),this)}syncImplementationProperties(e=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"sync-implementation-properties"))){const t=[],i=[],s=[],l=[],o=this.properties,d=this.implementedPropertiesFromOriginalParents,u=[...this.allBasePropertiesFromExtendedAndImplementedEntities,...o];return d.filter(c=>!u.find(E=>{var O;return((O=E.implements)==null?void 0:O.id)===c.id})).forEach(c=>{if(this.properties.find(P=>{var V;return((V=P.implements)==null?void 0:V.id)===c.id}))return;const E=this.properties.find(P=>P.name===c.name&&!!P.abstract&&!P.implements);if(E){E.implements=c,E.abstract=!1;return}const O=c.clone(e,this,m.UUID.uuid());O.initChildren(e),i.push(O),e==null||e.add(O,A.Added),O.setImplements(c,e),O.metaSync({abstract:!1},e),this.addProperty(O)}),e==null||e.attemptAutoclose("sync-implementation-properties",this.id),{updated:p(t),added:p(i),removed:p(s),affected:p(l),self:this}}addExtendedProperties(e=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"add-extended-properties"))){const t=[],i=[],s=[],l=[],o=this.properties,d=this.extendedPropertiesFromOriginalParents,u=d.filter(c=>d.find(E=>{var O;return((O=E.implements)==null?void 0:O.id)===c.id})?!1:!c.abstract),y=new Set(o.map(c=>c.name));return u.forEach(c=>{if(y.has(c.name))return;y.add(c.name);const I=c.clone(e,this,m.UUID.uuid());I.initChildren(e),i.push(I),e==null||e.add(I,A.Added),this.addProperty(I)}),{updated:p(t),added:p(i),removed:p(s),affected:p(l),self:this}}addSuggestions(){return this.implements.forEach(e=>{iw(this,e).forEach(s=>{const l=s.toJSON();l.id=`_suggestion--parent--${this.id}--${s.id}`;const o=C(l,this.project);o.suggestion=!0,o.setParent(this,null),o.initChildren(null),this.addSuggestedProperty(o)}),rw(this,e).forEach(s=>{const l=`_suggestion--parent--${this.id}--${s.id}`,o=s.implementAsFunctionDeclaration(null,this,l),d=C(o,this.project);if(d.suggestion=!0,d.setParent(this,null),d.initChildren(null),this.methods=this.methods.filter(u=>u.id!==l),d.inputs.forEach(u=>{u.suggestion=!0}),d.returnStatements.length){const u=d.returnStatements[0];u.suggestion=!0,u.outputs.forEach(y=>{y.suggestion=!0})}this.addSuggestedMethod(d)})}),this}subscribe(){return this.activeVersion=!0,this.project.subscribeInstance(this),this}unsubscribe(){return this.project.unsubscribeInstance(this),this}metaSync(e,t=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"meta-sync"))){const i=pt(this,e),s=this.toMeta();return this.name=e.name||s.name,this.description=e.description||s.description,this.x=e.x||s.x,this.y=e.y||s.y,this.static=e.static!==void 0?e.static:this.static,this.abstract=e.abstract!==void 0?e.abstract:this.abstract,super.metaSync(e),e.deleted===!0&&!s.deleted?t==null||t.add(this,A.Removed):e.deleted===!1&&s.deleted?t==null||t.add(this,A.Added):i&&(t==null||t.add(this,A.Updated)),t==null||t.attemptAutoclose("meta-sync",this.id),this}async APILoad(e=g,...t){return await ge.repository.APILoad(this.id,...t),this}async APICreate(e=g,...t){return await ge.repository.APICreate(this.toShallowJSON(),...t),this}async APIUpdate(e=g,...t){return await ge.repository.APIUpdate(this.toShallowJSON(),...t),this}async APIDelete(e=g,...t){return await ge.repository.APIDelete(this.toShallowJSON(),...t),this}async APIClone(e=g,...t){return await ge.repository.APIClone(this.id,...t),this}async APILoadVersion(e=g,t,...i){return await ge.repository.APILoadVersion(this.id,t,...i)}remove({ignoreUpstream:e}={ignoreUpstream:!1},t=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"remove-entity"))){const i=[],s=[],l=[],o=[];if(t!=null&&t.hasRemoved(this.id))return t==null||t.attemptAutoclose("remove-entity",this.id),{added:[],updated:[],removed:[],affected:[],self:this};if(s.push(this),this.unsubscribe(),this.project.subscribeDeletedInstance(this),this.metaSync({deleted:!0},t),Object.values(this.detachedDependents).forEach(d=>{const{updated:u,removed:y,added:c}=d.entity.onDetachedDependencyRemoved(this,d.field,t);i.push(...u),s.push(...y),l.push(...c)}),this.properties.forEach(d=>{const{updated:u,removed:y}=d.remove({ignoreUpstream:!0},t);i.push(...u),s.push(...y)}),this.methods.forEach(d=>{const{updated:u,removed:y}=d.remove({ignoreUpstream:!0},t);i.push(...u),s.push(...y)}),this.abstractMethods.forEach(d=>{const{updated:u,removed:y}=d.remove({ignoreUpstream:!0},t);i.push(...u),s.push(...y)}),this.suggestedProperties.forEach(d=>{const{updated:u,removed:y}=d.remove({ignoreUpstream:!0},t);i.push(...u),s.push(...y)}),this.suggestedMethods.forEach(d=>{const{updated:u,removed:y}=d.remove({ignoreUpstream:!0},t);i.push(...u),s.push(...y)}),!e){if(this.parent.type===n.Project)this.parent.removeDefinitionEntity(this);else if(this.parent.type===n.DataType){const d=this.parent.setEntity(null);i.push(d)}}return t==null||t.attemptAutoclose("remove-entity",this.id),{added:p(l),updated:p(i),removed:p(s),affected:p(o),self:this}}restore({}={},e=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"restore-entity"))){const t=[],i=[],s=[],l=[];return e!=null&&e.hasAdded(this.id)?(e==null||e.attemptAutoclose("restore-entity",this.id),{added:[],updated:[],removed:[],affected:[],self:this}):(this.subscribe(),this.project.unsubscribeDeletedInstance(this),this.metaSync({deleted:!1},e),this.properties.forEach(o=>{const{updated:d}=o.restore({},e);i.push(...d)}),this.methods.forEach(o=>{const{updated:d}=o.restore({},e);i.push(...d)}),this.abstractMethods.forEach(o=>{const{updated:d}=o.restore({},e);i.push(...d)}),this.suggestedProperties.forEach(o=>{const{updated:d}=o.restore({},e);i.push(...d)}),this.suggestedMethods.forEach(o=>{const{updated:d}=o.restore({},e);i.push(...d)}),e==null||e.attemptAutoclose("restore-entity",this.id),{added:p(t),updated:p(i),removed:p(s),affected:p(l),self:this})}toFlat(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this,...this.extends.flatMap(i=>i.toFlat(e)),...this.implements.flatMap(i=>i.toFlat(e)),...this.properties.flatMap(i=>i.toFlat(e)),...this.methods.flatMap(i=>i.toFlat(e)),...this.abstractMethods.flatMap(i=>i.toFlat(e)),...this.parent.toFlat(e)])}toFlatIds(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.id,...this.extends.flatMap(i=>i.toFlatIds(e)),...this.implements.flatMap(i=>i.toFlatIds(e)),...this.properties.flatMap(i=>i.toFlatIds(e)),...this.methods.flatMap(i=>i.toFlatIds(e)),...this.abstractMethods.flatMap(i=>i.toFlatIds(e)),...this.parent.toFlatIds(e)])}toMeta(){return{id:this.id,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,description:this.description,static:this.static,abstract:this.abstract,x:this.x,y:this.y,type:this.type,name:this.name}}toJSON(e=new Set){return e.has(this.id)?this.toReference():(e.add(this.id),{id:this.id,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,type:this.type,name:this.name,description:this.description,x:this.x,y:this.y,static:this.static,abstract:this.abstract,properties:this.properties.map(t=>t.toJSON(e)),methods:this.methods.map(t=>t.toJSON(e)),abstractMethods:this.abstractMethods.map(t=>t.toJSON(e)),implements:this.implements.map(t=>t.toJSON(e)),extends:this.extends.map(t=>t.toJSON(e)),parent:this.parent.toReference()})}toJSONClone(e=q){var i,s,l,o,d;let t;return(i=e.seenEntityMaps)!=null&&i.has(this.id)?t=e.seenEntityMaps.get(this.id):(t=e.newId||ht(this,this.project,e.uuidStrategy),e.seenEntityMaps&&e.seenEntityMaps.set(this.id,t)),(s=e.seenEntities)!=null&&s.has(t)||(l=e.seenEntities)!=null&&l.has(this.id)?this.toReference({seenEntityMaps:e.seenEntityMaps}):((o=e.seenEntities)==null||o.add(t),(d=e.seenEntities)==null||d.add(this.id),{id:t,version:m.UUID.uuid(),createdAt:e.timestamp||T().toISOString(),author:m.sessionAuthor,previousVersion:null,deleted:!1,type:this.type,name:this.name,description:this.description,x:this.x,y:this.y,static:this.static,abstract:this.abstract,properties:this.properties.map(u=>u.toJSONClone({...e,newId:null})),methods:this.methods.map(u=>u.toJSONClone({...e,newId:null})),abstractMethods:this.abstractMethods.map(u=>u.toJSONClone({...e,newId:null})),implements:this.implements.map(u=>u.type===n.BuiltInBaseEntity?u.toJSON():u.toJSONClone({...e,newId:null})),extends:this.extends.map(u=>u.type===n.BuiltInBaseEntity?u.toJSON():u.toJSONClone({...e,newId:null})),parent:this.parent.toReference({seenEntityMaps:e.seenEntityMaps})})}toReference(e=q){var i;let t=this.id;return(i=e.seenEntityMaps)!=null&&i.has(this.id)&&(t=e.seenEntityMaps.get(this.id)),{id:t+"--"+m.UUID.uuid()+"--ref",type:n.GenericReference,entityId:t,version:this.version,entityType:this.type}}toShallowJSON(e=q){var i;let t=this.id;return(i=e.seenEntityMaps)!=null&&i.has(this.id)&&(t=e.seenEntityMaps.get(this.id)),{id:t,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,name:this.name,description:this.description,type:this.type,x:this.x,y:this.y,static:this.static,abstract:this.abstract,properties:this.properties.map(s=>s.toReference(e)),methods:this.methods.map(s=>s.toReference(e)),abstractMethods:this.abstractMethods.map(s=>s.toReference(e)),implements:this.implements.map(s=>s.toReference(e)),extends:this.extends.map(s=>s.toReference(e)),parent:this.parent.toReference(e)}}toFlatJSON(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.toShallowJSON(),...this.properties.flatMap(i=>i.toFlatJSON(e)),...this.methods.flatMap(i=>i.toFlatJSON(e)),...this.abstractMethods.flatMap(i=>i.toFlatJSON(e)),...this.implements.flatMap(i=>i.toFlatJSON(e)),...this.extends.flatMap(i=>i.toFlatJSON(e)),...this.parent.toFlatJSON(e)])}toGenerationTarget(){const e=this.parent.type===n.Project?void 0:this.parent.id;return{id:this.id,name:this.name,description:this.description,type:this.type,static:this.static,abstract:this.abstract,extends:this.extends.map(t=>t.id),implements:this.implements.map(t=>t.id),parent:e}}toFlatGenerationTarget(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.toGenerationTarget(),...this.properties.flatMap(i=>i.toFlatGenerationTarget(e)),...this.methods.flatMap(i=>i.toFlatGenerationTarget(e)),...this.abstractMethods.flatMap(i=>i.toFlatGenerationTarget(e)),...this.implements.filter(i=>i.type===n.DefinitionEntity).flatMap(i=>i.toFlatGenerationTarget(e)),...this.implements.filter(i=>i.type===n.DefinitionEntity).flatMap(i=>i.toFlatGenerationTarget(e)),...this.parent.toFlatGenerationTarget(e)])}clearErrors(){return this.errors=[],this.properties.forEach(e=>e.clearErrors()),this.methods.forEach(e=>e.clearErrors()),this.abstractMethods.forEach(e=>e.clearErrors()),this}validate(){return this.errors=tw(this),{success:!0,error:null,data:null}}getErrors(){return[...this.errors,...this.properties.flatMap(t=>t.getErrors()),...this.methods.flatMap(t=>t.getErrors()),...this.abstractMethods.flatMap(t=>t.getErrors())]}getShallowErrors(){return this.errors}clone(e=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"clone-entity")),t=null,i=null,s=!0){var P,V,M;let l=mt(t,this);const o=this.toJSON(),d=i||m.UUID.uuid();o.properties=[],o.methods=[],o.abstractMethods=[];const u=d.split("-id"),y=u[u.length-1||0]||d;o.id=d,o.version=m.UUID.uuid(),o.createdAt=(e==null?void 0:e.timestamp)||T().toISOString(),o.author=(e==null?void 0:e.author)||"1",o.previousVersion=null,o.deleted=!1;const c=ct(o,l);t&&c.setParent(t,null),s&&c.subscribe(),c.initChildren(e),e==null||e.add(c,A.Added);const I=(P=this.properties)==null?void 0:P.map(G=>G.clone(e,c,m.UUID.uuid(),s));c.properties=I;const E=(V=this.methods)==null?void 0:V.map((G,B)=>G.clone(e,c,y+"-method-"+B+"-id",s));c.methods=E;const O=(M=this.abstractMethods)==null?void 0:M.map((G,B)=>G.clone(e,c,y+"-abstract-method-"+B+"-id",s));return c.abstractMethods=O,e==null||e.attemptAutoclose("clone-entity",this.id),c}getFunctionDeclaration(e){return this.methods.find(t=>t.id===e)}implement(e,t=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"implement-definition-entity")),i){const s=ql(this,e,t,i);return t==null||t.attemptAutoclose("implement-definition-entity",this.id),s}getAllInteractiveMethods(){const e=this.implements.filter(i=>i.type===n.DefinitionEntity||i.type===n.BuiltInBaseEntity&&i.interactive);return p([...this.methods,...this.extends.flatMap(i=>i.getAllInteractiveMethods()),...e.flatMap(i=>i.getAllInteractiveMethods())])}inferFromInputs(e,t=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"infer-definition-entity-from-inputs"))){const i=[],s=[],l=[],o=[];if(this.parent.type!==n.DataType||!this.parent.inferred)return t==null||t.attemptAutoclose("infer-definition-entity-from-inputs",this.id),{added:[],updated:[],removed:[],affected:[],self:this};const d=[];e.forEach(c=>{d.find(E=>x(E,this.project)===x(c,this.project))||d.push(c)});const u=this.properties.filter(c=>!c.dataType);d.forEach(c=>{var M,G;const I=u.find(B=>x(B,this.project)===x(c,this.project));if(!I)return;const O=Cn(c.parent).getMasterInputWithValueWritterFromAllInstances(c),P=Ji(O,t),V=P==null?void 0:P.clone(t,I,m.UUID.uuid(),!0);if(V){const B=(M=I.dataType)==null?void 0:M.merge(V,t);I.dataType&&(B==null?void 0:B.self.id)!==I.dataType.id&&I.dataType.remove({ignoreUpstream:!1},t),V.id!==((G=B==null?void 0:B.self)==null?void 0:G.id)&&V.remove({ignoreUpstream:!1},t),B!=null&&B.self&&(B.self.metaSync({inferred:!0,like:!0},t),t==null||t.add(B.self,A.Added),I.setDataType(B.self),t==null||t.add(I,A.Updated))}c.setDeclaration(I),t==null||t.add(c,A.Updated)});const y=[];return d.forEach(c=>{if(!c.declaration){y.push(c);return}}),y.length===0?(t==null||t.attemptAutoclose("infer-definition-entity-from-inputs",this.id),{added:[],updated:[],removed:[],affected:[],self:this}):(y.forEach(c=>{var B,$,Z,J;const I=this.properties.find(te=>x(te,this.project)===x(c,this.project));if(I){if(c.setDeclaration(I),!I.getDataType(t)){const fe=Cn(c.parent).getMasterInputWithValueWritterFromAllInstances(c),Ie=Ji(fe),X=Ie==null?void 0:Ie.clone(t,I,m.UUID.uuid(),!0);if(X){const le=(B=I.dataType)==null?void 0:B.merge(X,t);I.dataType&&(le==null?void 0:le.self.id)!==I.dataType.id&&I.dataType.remove({ignoreUpstream:!1},t),X.id!==(($=le==null?void 0:le.self)==null?void 0:$.id)&&X.remove({ignoreUpstream:!1},t),le!=null&&le.self&&(le.self.metaSync({inferred:!0,like:!0},t),t==null||t.add(le.self,A.Added),I.setDataType(le.self),t==null||t.add(I,A.Updated))}}return}const E={id:m.UUID.uuid(),type:n.Property,version:m.UUID.uuid(),createdAt:(t==null?void 0:t.timestamp)||T().toISOString(),author:m.sessionAuthor,previousVersion:null,deleted:!1,name:x(c,this.project),description:c.description,defaultValue:null,static:!0,abstract:!1,private:!1,hidden:!1,required:!1,constant:!0,index:c.index,implements:null,dataType:null,parent:this.toReference()},O=C(E,this.project);O.setParent(this,t),O.initChildren(t),t==null||t.add(O,A.Added);const V=Cn(c.parent).getMasterInputWithValueWritterFromAllInstances(c),M=Ji(V),G=M==null?void 0:M.clone(t,O,m.UUID.uuid(),!0);if(G){const te=(Z=O.dataType)==null?void 0:Z.merge(G,t);O.dataType&&(te==null?void 0:te.self.id)!==O.dataType.id&&O.dataType.remove({ignoreUpstream:!1},t),G.id!==((J=te==null?void 0:te.self)==null?void 0:J.id)&&G.remove({ignoreUpstream:!1},t),te!=null&&te.self&&(te.self.metaSync({inferred:!0,like:!0},t),t==null||t.add(te.self,A.Added),O.setDataType(te.self),t==null||t.add(O,A.Updated))}return this.addProperty(O),c.setDeclaration(O),t==null||t.add(c,A.Updated),O}),t==null||t.attemptAutoclose("infer-definition-entity-from-inputs",this.id),{added:p(i),updated:p(s),removed:p(l),affected:p(o),self:this})}};f(ge,"repository",{APICreate:async(e,...t)=>e,APIUpdate:async(e,...t)=>e,APIDelete:async(e,...t)=>e,APIClone:async(e,...t)=>{},APILoad:async(e,...t)=>null,APILoadVersion:async(e,t,...i)=>null}),f(ge,"type",n.DefinitionEntity),f(ge,"USER_MANAGED_PARENT_TYPES",[n.Project,n.DataType]),f(ge,"PARENT_TYPES",[...ge.USER_MANAGED_PARENT_TYPES]),f(ge,"MUTABLE_BASE_PROPERTIES",["name","description","static","abstract"]),f(ge,"INMUTABLE_BASE_PROPERTIES",["id","type","version","createdAt","author","previousVersion"]),f(ge,"BASE_PROPERTIES",[...ge.MUTABLE_BASE_PROPERTIES,...ge.INMUTABLE_BASE_PROPERTIES]),f(ge,"MUTABLE_META_PROPERTIES",[...ge.MUTABLE_BASE_PROPERTIES,"x","y"]),f(ge,"INMUTABLE_META_PROPERTIES",[...ge.INMUTABLE_BASE_PROPERTIES]),f(ge,"META_PROPERTIES",[...ge.MUTABLE_META_PROPERTIES,...ge.INMUTABLE_META_PROPERTIES]),f(ge,"MUTABLE_UPSTREAM_PROPERTIES",["extends","implements"]),f(ge,"INMUTABLE_UPSTREAM_PROPERTIES",["parent"]),f(ge,"UPSTREAM_PROPERTIES",[...ge.MUTABLE_UPSTREAM_PROPERTIES,...ge.INMUTABLE_UPSTREAM_PROPERTIES]),f(ge,"MUTABLE_DOWNSTREAM_PROPERTIES",["properties","methods","abstractMethods"]),f(ge,"INMUTABLE_DOWNSTREAM_PROPERTIES",[]),f(ge,"DOWNSTREAM_PROPERTIES",[...ge.MUTABLE_DOWNSTREAM_PROPERTIES,...ge.INMUTABLE_DOWNSTREAM_PROPERTIES]),f(ge,"PROPERTIES",[...ge.META_PROPERTIES,...ge.UPSTREAM_PROPERTIES,...ge.DOWNSTREAM_PROPERTIES]);let Xr=ge;function YJ(r){const a=J3(),e=r.toJSON();a.safeParse(e).success;const i=[];return Ye(r.errors,i)}const Ga=class Ga extends at{constructor(e,t){super(e);f(this,"initialData");f(this,"id");f(this,"version");f(this,"name");f(this,"description",null);f(this,"type",n.BuiltInBaseEntity);f(this,"abstract",!1);f(this,"static");f(this,"properties",[]);f(this,"methods",[]);f(this,"abstractMethods",[]);f(this,"extends",[]);f(this,"interactive",!1);f(this,"errors",[]);f(this,"project");this.initialData=this.initialData||e,this.project=this.project||t,this.id=this.id||e.id,this.version=this.version||e.version,this.name=this.name||e.name,this.static=this.static||e.static,this.interactive=this.interactive||e.interactive,this.abstract=e.abstract,this.properties=this.initialData.properties.map(i=>{const s=C(i,this.project);return s.setParent(this,null),s.initChildren(null),s}),this.methods=this.initialData.methods.map(i=>{const s=C(i,this.project);return s.setParent(this,null),s.initChildren(null),s}),this.abstractMethods=this.initialData.abstractMethods.map(i=>{const s=C(i,this.project);return s.setParent(this,null),s.initChildren(null),s}),this.extends=this.initialData.extends.map(i=>C(i,this.project))}get allBasePropertiesFromExtendedAndImplementedEntities(){return p(this.extends.reduce((e,t)=>{const i=[...t.ownDeclaredProperties,...t.allBasePropertiesFromExtendedAndImplementedEntities].filter(s=>!s.abstract);return[...e,...i]},[]))}get extendedPropertiesFromOriginalParents(){return p(this.extends.reduce((e,t)=>{const i=[...t.ownDeclaredProperties,...t.extendedPropertiesFromOriginalParents].filter(s=>!s.abstract);return[...e,...i]},[]))}get implementedPropertiesFromOriginalParents(){return p([...this.extends.reduce((e,t)=>{const i=t.implementedPropertiesFromOriginalParents,s=[...t.ownDeclaredProperties].filter(l=>!!l.abstract&&!i.find(o=>o.name===l.name));return[...i,...s,...e]},[])])}get extendedProperties(){return this.properties.filter(e=>e.isExtendedProperty)}get ownDeclaredProperties(){return this.properties.filter(e=>!e.isExtendedProperty)}subscribe(){return this.project.subscribeInstance(this),this}unsubscribe(){return this.project.unsubscribeInstance(this),this}async APILoad(e=g,...t){return await Ga.repository.APILoad(this.id,...t),this}toFlat(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this,...this.properties.flatMap(i=>i.toFlat(e)),...this.methods.flatMap(i=>i.toFlat(e)),...this.abstractMethods.flatMap(i=>i.toFlat(e)),...this.extends.flatMap(i=>i.toFlat(e))])}toFlatIds(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.id,...this.properties.flatMap(i=>i.toFlatIds(e)),...this.methods.flatMap(i=>i.toFlatIds(e)),...this.abstractMethods.flatMap(i=>i.toFlatIds(e)),...this.extends.flatMap(i=>i.toFlatIds(e))])}toMeta(){return{id:this.id,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,description:this.description,interactive:this.interactive,abstract:this.abstract,static:this.static,type:this.type,name:this.name}}toJSON(e=new Set){return e.has(this.id)?this.toReference():(e.add(this.id),{id:this.id,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,type:this.type,name:this.name,description:this.description,abstract:this.abstract,static:this.static,interactive:this.interactive,properties:this.properties.map(t=>t.toJSON(e)),methods:this.methods.map(t=>t.toJSON(e)),abstractMethods:this.abstractMethods.map(t=>t.toJSON(e)),extends:this.extends.map(t=>t.toJSON(e))})}toReference(e=q){return{id:this.id+"--"+m.UUID.uuid()+"--ref",type:n.GenericReference,entityId:this.id,version:this.version,entityType:this.type}}toShallowJSON(e=q){return{id:this.id,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,type:this.type,name:this.name,description:this.description,abstract:this.abstract,static:this.static,interactive:this.interactive,properties:this.properties.map(t=>t.toReference()),methods:this.methods.map(t=>t.toReference()),abstractMethods:this.abstractMethods.map(t=>t.toReference()),extends:this.extends.map(t=>t.toReference())}}toFlatJSON(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.toShallowJSON(),...this.properties.flatMap(i=>i.toFlatJSON(e)),...this.methods.flatMap(i=>i.toFlatJSON(e)),...this.abstractMethods.flatMap(i=>i.toFlatJSON(e))])}toGenerationTarget(){return{id:this.id,type:this.type,name:this.name,description:this.description,static:this.static,abstract:this.abstract,interactive:this.interactive,extends:this.extends.map(e=>e.id)}}toFlatGenerationTarget(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.toGenerationTarget(),...this.properties.flatMap(i=>i.toFlatGenerationTarget(e)),...this.methods.flatMap(i=>i.toFlatGenerationTarget(e)),...this.abstractMethods.flatMap(i=>i.toFlatGenerationTarget(e))])}clearErrors(){return this.errors=[],this.properties.forEach(e=>e.clearErrors()),this.methods.forEach(e=>e.clearErrors()),this.abstractMethods.forEach(e=>e.clearErrors()),this}validate(){const e=YJ(this);return this.errors=e,{success:!0,error:null,data:this.toJSON()}}getErrors(){return[...this.errors,...this.properties.flatMap(t=>t.getErrors()),...this.methods.flatMap(t=>t.getErrors()),...this.abstractMethods.flatMap(t=>t.getErrors())]}getShallowErrors(){return this.errors}implement(e,t=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),null,!0,"implement-built-in-base-entity")),i){const s=ql(this,e,t,i);return t==null||t.attemptAutoclose("implement-built-in-base-entity",this.id),s}getAllInteractiveMethods(){const e=[];return this.interactive&&(e.push(...this.methods),this.extends.filter(i=>i.type===n.BuiltInBaseEntity&&i.interactive||i.type===n.PrimitiveEntity).forEach(i=>{i instanceof Ga&&e.push(...i.getAllInteractiveMethods())})),p(e)}};f(Ga,"repository",{APILoad:async(e,...t)=>null});let Ki=Ga;function HJ(r){const a=j3(),e=r.toJSON();a.safeParse(e).success;const i=[];return Ye(r.errors,i)}const od=class od extends at{constructor(e,t){super(e);f(this,"initialData");f(this,"id");f(this,"name");f(this,"description",null);f(this,"type",n.PrimitiveEntity);f(this,"static");f(this,"abstract");f(this,"properties",[]);f(this,"methods",[]);f(this,"abstractMethods",[]);f(this,"extends",[]);f(this,"errors",[]);f(this,"project");this.initialData=e,this.project=t,this.id=e.id,this.name=e.name,this.static=e.static,this.abstract=e.abstract,this.properties=this.initialData.properties.map(i=>{const s=C(i,this.project);return s.setParent(this,null),s.initChildren(null),s}),this.methods=this.initialData.methods.map(i=>{const s=C(i,this.project);return s.parent=this,s}),this.abstractMethods=this.initialData.abstractMethods.map(i=>{const s=C(i,this.project);return s.parent=this,s})}get allBasePropertiesFromExtendedAndImplementedEntities(){return p(this.extends.reduce((e,t)=>{const i=[...t.ownDeclaredProperties,...t.allBasePropertiesFromExtendedAndImplementedEntities].filter(s=>!s.abstract);return[...e,...i]},[]))}get extendedPropertiesFromOriginalParents(){return p(this.extends.reduce((e,t)=>{const i=[...t.ownDeclaredProperties,...t.extendedPropertiesFromOriginalParents].filter(s=>!s.abstract);return[...e,...i]},[]))}get implementedPropertiesFromOriginalParents(){return p([...this.extends.reduce((e,t)=>{const i=t.implementedPropertiesFromOriginalParents,s=[...t.ownDeclaredProperties].filter(l=>!!l.abstract&&!i.find(o=>o.name===l.name));return[...i,...s,...e]},[])])}get extendedProperties(){return this.properties.filter(e=>e.isExtendedProperty)}get ownDeclaredProperties(){return this.properties.filter(e=>!e.isExtendedProperty)}subscribe(){return this.project.subscribeInstance(this),this}unsubscribe(){return this.project.unsubscribeInstance(this),this}async APILoad(e=g,...t){return await od.repository.APILoad(this.id,...t),this}toFlat(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this,...this.properties.flatMap(i=>i.toFlat(e)),...this.methods.flatMap(i=>i.toFlat(e)),...this.abstractMethods.flatMap(i=>i.toFlat(e))])}toFlatIds(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.id,...this.properties.flatMap(i=>i.toFlatIds(e)),...this.methods.flatMap(i=>i.toFlatIds(e)),...this.abstractMethods.flatMap(i=>i.toFlatIds(e))])}toMeta(){return{id:this.id,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,description:this.description,static:this.static,abstract:this.abstract,type:this.type,name:this.name}}toJSON(e=new Set){return e.has(this.id)?this.toReference():(e.add(this.id),{id:this.id,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,type:this.type,name:this.name,description:this.description,static:this.static,abstract:this.abstract,properties:this.properties.map(t=>t.toJSON(e)),methods:this.methods.map(t=>t.toJSON(e)),abstractMethods:this.abstractMethods.map(t=>t.toJSON(e)),extends:this.extends.map(t=>t.toJSON(e))})}toReference(e=q){return{id:this.id+"--"+m.UUID.uuid()+"--ref",type:n.GenericReference,entityId:this.id,version:this.version,entityType:this.type}}toShallowJSON(e=q){return{id:this.id,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,type:this.type,name:this.name,description:this.description,abstract:this.abstract,static:this.static,properties:this.properties.map(t=>t.toReference()),methods:this.methods.map(t=>t.toReference()),abstractMethods:this.abstractMethods.map(t=>t.toReference()),extends:this.extends.map(t=>t.toReference())}}toFlatJSON(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.toShallowJSON(),...this.properties.flatMap(i=>i.toFlatJSON(e)),...this.methods.flatMap(i=>i.toFlatJSON(e)),...this.abstractMethods.flatMap(i=>i.toFlatJSON(e))])}toGenerationTarget(){return{id:this.id,type:this.type,name:this.name,description:this.description,static:this.static,abstract:this.abstract,extends:this.extends.map(e=>e.id)}}toFlatGenerationTarget(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.toGenerationTarget(),...this.properties.flatMap(i=>i.toFlatGenerationTarget(e)),...this.methods.flatMap(i=>i.toFlatGenerationTarget(e)),...this.abstractMethods.flatMap(i=>i.toFlatGenerationTarget(e))])}clearErrors(){return this.errors=[],this.properties.forEach(e=>e.clearErrors()),this.methods.forEach(e=>e.clearErrors()),this.abstractMethods.forEach(e=>e.clearErrors()),this}validate(){const e=HJ(this);return this.errors=e,{success:!0,error:null,data:this.toJSON()}}getErrors(){return[...this.errors,...this.properties.flatMap(t=>t.getErrors()),...this.methods.flatMap(t=>t.getErrors()),...this.abstractMethods.flatMap(t=>t.getErrors())]}getShallowErrors(){return this.errors}getAllInteractiveMethods(){const e=[];return e.push(...this.methods),this.extends.filter(i=>i.type===n.BuiltInBaseEntity&&i.interactive||i.type===n.PrimitiveEntity).forEach(i=>{i instanceof Ki&&e.push(...i.getAllInteractiveMethods())}),p(e)}};f(od,"repository",{APILoad:async(e,...t)=>null});let oi=od;function ct(r,a){if(!r)throw new Error("Entity is null");const e=a.get(r.id);switch(r.type){case n.LiteralValue:return e||new Nn(r,a);case n.DefinitionEntity:return e||new Xr(r,a);case n.PrimitiveEntity:return e||new oi(r,a);case n.FunctionDeclaration:return e||new gr(r,a);case n.GlobalEvent:return e||new Bn(r,a);case n.DataType:return e||new Vn(r,a);case n.Property:return e||new Lr(r,a);case n.FunctionCall:return e||new Yr(r,a);case n.Condition:return e||new Gr(r,a);case n.Operation:return e||new jr(r,a);case n.VariableDeclaration:return e||new xr(r,a);case n.VariableInstance:return e||new Fr(r,a);case n.OutputMap:return e||new zi(r,a);case n.ReturnDeclaration:return e||new si(r,a);case n.ArgumentDeclaration:return e||new Zr(r,a);case n.InputMap:return e||new Wi(r,a);case n.Project:return e||new m(r);case n.InstalledProject:return e||new Sr(r,a);case n.ActionDescriptor:return e||new Je(r,a);case n.ReturnStatement:return e||new Ur(r,a);case n.Loop:return e||new $r(r,a);case n.Search:return e||new kr(r,a);case n.ValueDescriptor:return e||new qr(r,a);case n.BuiltInBaseEntity:return e||new Ki(r,a);case n.InternalCall:return e||new Mn(r,a);case n.ContinueStatement:return e||new Ft(r,a);case n.BreakStatement:return e||new _n(r,a);case n.GenericReference:return a.get(r.entityId);default:throw new Error("Invalid entity type: "+r.type)}}function C(r,a){if(!r)throw new Error("Entity is null");const e=ct(r,a);return e.subscribe(),e}function KJ(r,a){if(!r)throw new Error("Entity is null");switch(r.type){case n.LiteralValue:return Nn.fromGenerationTarget(r,a);case n.DefinitionEntity:return Xr.fromGenerationTarget(r,a);case n.FunctionDeclaration:return gr.fromGenerationTarget(r,a);case n.GlobalEvent:return Bn.fromGenerationTarget(r,a);case n.DataType:return Vn.fromGenerationTarget(r,a);case n.Property:return Lr.fromGenerationTarget(r,a);case n.FunctionCall:return Yr.fromGenerationTarget(r,a);case n.Condition:return Gr.fromGenerationTarget(r,a);case n.Operation:return jr.fromGenerationTarget(r,a);case n.VariableDeclaration:return xr.fromGenerationTarget(r,a);case n.VariableInstance:return Fr.fromGenerationTarget(r,a);case n.OutputMap:return zi.fromGenerationTarget(r,a);case n.ReturnDeclaration:return si.fromGenerationTarget(r,a);case n.ArgumentDeclaration:return Zr.fromGenerationTarget(r,a);case n.InputMap:return Wi.fromGenerationTarget(r,a);case n.InstalledProject:return Sr.fromGenerationTarget(r,a);case n.ReturnStatement:return Ur.fromGenerationTarget(r,a);case n.Loop:return $r.fromGenerationTarget(r,a);case n.Search:return kr.fromGenerationTarget(r,a);case n.ActionDescriptor:return Je.fromGenerationTarget(r,a);case n.ValueDescriptor:return qr.fromGenerationTarget(r,a);case n.InternalCall:return Mn.fromGenerationTarget(r,a);case n.ContinueStatement:return Ft.fromGenerationTarget(r,a);case n.BreakStatement:return _n.fromGenerationTarget(r,a);default:throw new Error("Invalid entity type: "+r.type)}}const q={seenEntityMaps:new Map,seenEntities:new Set,timestamp:T().toISOString()};class nw{constructor(){f(this,"initialData")}}const g={cascade:!1},sw={APILoad:async(r,...a)=>null},XJ={APICreate:async(r,...a)=>r,APIUpdate:async(r,...a)=>r,APIDelete:async(r,...a)=>r,APIClone:async(r,...a)=>{},APILoadVersion:async(r,a,...e)=>null,...sw};class QJ{}class eW extends nw{}class tW{}class iW{}class rW{}class nf{}class nW extends nf{}class sW extends nf{}class aW{}class Tr{static initReadsValue(a){if(a.initialData.readsValue&&a.initialData.readsValue.type!==n.GenericReference)a.readsValue=C(a.initialData.readsValue,a.project);else if(a.initialData.readsValue&&a.initialData.readsValue.type===n.GenericReference){const e=mi(a.initialData.readsValue,a.project);e&&(a.readsValue=e)}if(a.readsValue){if(et.includes(a.readsValue.type)){let e=a.parent;dt.includes(e.type)||(e=e.parent);const t=a.type===n.InputMap&&a.parent.type===n.Loop;t&&(e=a.parent.parent),a.readsValue.setParent(e,null),a.readsValue.initChildren(null),!t&&e.detachedChildren.includes(a)?e.replaceDetachedChild(a,a.readsValue):t||e.subscribeDetachedChild(a.readsValue)}a.readsValue.addValueReader(a,null)}return a.readsValue}static hydrateReadsValue(a){if(a.initialData.readsValue&&a.initialData.readsValue.type!==n.GenericReference)a.readsValue=C(a.initialData.readsValue,a.project);else if(a.initialData.readsValue&&a.initialData.readsValue.type===n.GenericReference){const e=mi(a.initialData.readsValue,a.project);e&&(a.readsValue=e)}if(a.readsValue){if(et.includes(a.readsValue.type)){let e=a.parent;dt.includes(e.type)||(e=e.parent);const t=a.type===n.InputMap&&a.parent.type===n.Loop;t&&(e=a.parent.parent),a.readsValue.setParent(e,null),!t&&e.detachedChildren.includes(a)?e.replaceDetachedChild(a,a.readsValue):t||e.subscribeDetachedChild(a.readsValue)}a.readsValue.addValueReader(a,null)}return a.readsValue}}class ja{static initWritesValues(a,e){const t=a.initialData.writesValues.reduce((s,l)=>{if(l.type===n.GenericReference||a.writesValues.some(d=>d.id===l.id))return s;const o=C(l,a.project);return o.setValueWriter(a,null),et.includes(o.type)&&(o.setParent(e,null),o.initChildren(null)),[...s,o]},[]),i=[...a.writesValues];return a.writesValues=p([...i,...t]),a.writesValues}}class oW{}const ae=class ae extends at{constructor(e){super(e);f(this,"initialData");f(this,"id");f(this,"type",n.Project);f(this,"name",null);f(this,"description",null);f(this,"x");f(this,"y");f(this,"entities",[]);f(this,"projects",[]);f(this,"functions",[]);f(this,"events",[]);f(this,"variableDeclarations",[]);f(this,"variableInstances",[]);f(this,"conditions",[]);f(this,"operations",[]);f(this,"functionCalls",[]);f(this,"loops",[]);f(this,"searches",[]);f(this,"primitives",[]);f(this,"builtInBaseEntities",[]);f(this,"operationDeclarations",[]);f(this,"globalEventActionDescriptors",[]);f(this,"loopDeclarations",[]);f(this,"loopDeclarationsBodies",[]);f(this,"conditionDeclarations",[]);f(this,"valueDescriptors",[]);f(this,"dataTypes",[]);f(this,"project");f(this,"instances",{});f(this,"builtInInstances",{});f(this,"deletedInstances",{});f(this,"errors",[]);f(this,"references",[]);f(this,"history",[]);f(this,"detachedDependents",{});f(this,"knownVersions",null);f(this,"activeVersion",!1);f(this,"initialized",!1);f(this,"startedInitialization",!1);f(this,"onCloseChangeSetCallback",null);this.initialData=e,this.id=e.id,this.name=e.name,this.description=e.description,this.x=0,this.y=0,this.instances[this.id]=this;try{(!ae.UUID||ae.UUID.isBackup)&&(ae.UUID=Fo==null?void 0:Fo()),ae.UUID||(ae.UUID={isBackup:!0,uuid:()=>Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15),fromUUID:t=>t})}catch(t){console.error("Error initializing UUID module",t),ae.UUID={isBackup:!0,uuid:()=>Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15),fromUUID:i=>i}}}static injectUUIDModule(e){ae.UUID=e}static validateGenerationTarget(e,t){let i=JSON.parse(JSON.stringify(e));const s=[];return s.push(...ut(i)),{errors:s,modifiedData:i}}async closePendingCallbacks(){for(let e=0;e<this.history.length;e++){const t=this.history[e];t.dirty&&await t.closeAsync()}}async onCloseChangeSet(e){this.onCloseChangeSetCallback=e,await this.closePendingCallbacks()}async closeChangeSet(e){if(this.onCloseChangeSetCallback){const t=await this.onCloseChangeSetCallback(e);return t.success&&(e.dirty=!1),t}return{success:!1}}toLatestChangeSet(e,t,i,s=!1,l="here-this"){if(!this.history.length)return new b(this,e,t,i,s,l);const o=this.history[this.history.length-1];return o.open?o:this.addChangeSet(new b(this,e,t,i,s,l))}addChangeSet(e){if(!this.history.length)return this.history.push(e),e;const t=this.history.find(l=>l.id===(e==null?void 0:e.id));if(t)return t;const i=this.history.find(l=>l.open);if(i)throw console.log("previouslyStillOpen: ",i),console.log("new change set: ",e),new Error(`There is already an open change-set with id '${i.id}'.`);const s=this.history.findIndex(l=>T(l.timestamp).isBefore(T(e==null?void 0:e.timestamp)));return s===-1?this.history.push(e):this.history.splice(s,0,e),e}discardChangeSet(e){const t=this.history.findIndex(i=>i.id===(e==null?void 0:e.id));return t!==-1&&this.history.splice(t,1),this}undo(){const e=[],t=[],i=[],s=[];return{updated:p(e),added:p(t),removed:p(i),affected:p(s),self:this}}redo(){const e=[],t=[],i=[],s=[];return{updated:p(e),added:p(t),removed:p(i),affected:p(s),self:this}}async inject(...e){return await Promise.all(e.map(t=>new Promise(async i=>{await t.init(this),i(null)}))),this}validateGeneratedUpdate(e){return{errors:[],modifiedData:e}}subscribeDependents(e){return e.forEach(t=>{this.detachedDependents[t.entity.id]||(this.detachedDependents[t.entity.id]=t)}),this}syncDependents(){const e=[],t=[],i=[],s=[];return Object.values(this.detachedDependents).forEach(l=>{const o=l.entity.afterAllChildrenInitialized();e.push(...o.updated),t.push(...o.added),i.push(...o.removed),s.push(...o.affected)}),{updated:p(e),added:p(t),removed:p(i),affected:p(s),self:this}}onDetachedDependencyRemoved(e,t,i){const s=[],l=[],o=[],d=[];return{updated:p(s),added:p(l),removed:p(o),affected:p(d),self:this}}onDetachedDependencyRestored(e,t,i){const s=[],l=[],o=[],d=[];return{updated:p(s),added:p(l),removed:p(o),affected:p(d),self:this}}subscribeToDependencies(){return this}increaseVersion(e){if(e&&!T(e).isValid())throw new Error(`The shared timestamp '${e}' is not a valid ISO 8601 date string.`);return e&&T(e).isSame(T(this.createdAt))?this:(this.previousVersion=this.version,this.version=ae.UUID.uuid(),this.createdAt=T(e).toISOString()||T().toISOString(),this)}captureVersion(){var t;const e=((t=this.knownVersions)==null?void 0:t.get(this.version))||new ae(this);return e.metaSync(this.toMeta(),null),this.knownVersions=this.knownVersions?this.knownVersions.set(this.version,e):new Map([[this.version,e]]),e.entities=this.entities,e.projects=this.projects,e.functions=this.functions,e.events=this.events,e.variableDeclarations=this.variableDeclarations,e.variableInstances=this.variableInstances,e.conditions=this.conditions,e.operations=this.operations,e.functionCalls=this.functionCalls,e.loops=this.loops,e.searches=this.searches,this}recursiveCaptureUpstreamVersions(e){const t=[],i=[],s=[],l=[];return{updated:p(t),added:p(i),removed:p(s),affected:p(l),self:this}}async restoreVersion(e){var d;const t=[],i=[],s=[],l=[];if(this.version===e)return{updated:p(t),added:p(i),removed:p(s),affected:p(l),self:this};if(!this.knownVersions){const u=new Map;for(const[y,c]of this.knownVersions||new Map){if(u.set(y,c),c.activeVersion=!1,c.knownVersions)for(const[I,E]of c.knownVersions)u.set(I,E);c.knownVersions=null}}let o=(d=this.knownVersions)==null?void 0:d.get(e);if(!o){const u=await this.APILoadVersion({},e);if(!u)throw new Error(`Version with id '${e}' for entity with id '${this.id}' not found.`);o=new ae(u)}return this.metaSync(o.toShallowJSON(),null),this.entities=o.entities,this.projects=o.projects,this.functions=o.functions,this.events=o.events,this.variableDeclarations=o.variableDeclarations,this.variableInstances=o.variableInstances,this.conditions=o.conditions,this.operations=o.operations,this.functionCalls=o.functionCalls,this.loops=o.loops,this.searches=o.searches,{updated:p(t),added:p(i),removed:p(s),affected:p(l),self:this}}hydrateAncestors(){const e=[],t=[],i=[],s=[];return{updated:p(e),added:p(t),removed:p(i),affected:p(s),self:this}}afterAllChildrenInitialized(e=null){const t=[],i=[],s=[],l=[];return this.initialized=!0,this.captureVersion(),this.validate(),{updated:p(t),added:p(i),removed:p(s),affected:p(l),self:this}}addSelfToProject(e){const t=[],i=[],s=[],l=[];return this.subscribe(),this.subscribeToDependencies(),{updated:p(t),added:p(i),removed:p(s),affected:p(l),self:this}}get instancesList(){return Object.values(this.instances)}isOperationDeclaration(e){return this.operationDeclarations.includes(e)}isGlobalEventActionDescriptor(e){return this.globalEventActionDescriptors.includes(e)}isLoopDeclaration(e){return this.loopDeclarations.includes(e)}isConditionDeclaration(e){return this.conditionDeclarations.includes(e)}initChildren(e=this.project.addChangeSet(new b(this.project,ae.sessionAuthor,T().toISOString(),this,!0,"init-children"))){return this.initialized||this.startedInitialization?this:(this.startedInitialization=!0,this.entities=this.initialData.entities.map(t=>{const i=C(t,this);return i.setParent(this,null),i.initChildren(e),i}),this.projects=this.initialData.projects.map(t=>{const i=C(t,this);return i.setParent(this,null),i.initChildren(e),i}),this.variableDeclarations=this.initialData.variableDeclarations.map(t=>{const i=C(t,this);return i.setParent(this,null),i.initChildren(e),i}),this.variableInstances=this.initialData.variableInstances.map(t=>{const i=C(t,this);return i.setParent(this,null),i.initChildren(e),i}),this.conditions=this.initialData.conditions.map(t=>{const i=C(t,this);return i.setParent(this,null),i.initChildren(e),i}),this.operations=this.initialData.operations.map(t=>{const i=C(t,this);return i.setParent(this,null),i.initChildren(e),i}),this.functions=this.initialData.functions.map(t=>{const i=C(t,this);return i.setParent(this,null),i.initChildren(e),i}),this.events=this.initialData.events.map(t=>{const i=C(t,this);return i.setParent(this,null),i.initChildren(e),i}),this.functionCalls=this.initialData.functionCalls.map(t=>{const i=C(t,this);return i.setParent(this,null),i.initChildren(e),i}),this.loops=this.initialData.loops.map(t=>{const i=C(t,this);return i.setParent(this,null),i.initChildren(e),i}),this.searches=this.initialData.searches.map(t=>{const i=C(t,this);return i.setParent(this,null),i.initChildren(e),i}),this.attachOrphanReferences(),this.subscribeToDependencies(),this.afterAllChildrenInitialized(e),e==null||e.attemptAutoclose("init-children",this.id),this)}subscribeInstance(e){return(!this.instances[e.id]||this.instances[e.id]!==e)&&(this.instances[e.id]=e),this}subscribeDeletedInstance(e){return(!this.deletedInstances[e.id]||this.deletedInstances[e.id]!==e)&&(this.deletedInstances[e.id]=e),this}subscribeBuiltInInstance(e){return(!this.builtInInstances[e.id]||this.builtInInstances[e.id]!==e)&&(this.builtInInstances[e.id]=e),this}subscribe(){return this}unsubscribe(){return this}unsubscribeInstance(e){return delete this.instances[e.id],this}unsubscribeDeletedInstance(e){return delete this.deletedInstances[e.id],this}findSubscribedBuiltInInstance(e){return this.builtInInstances[e.id]||null}get(e){return this.instances[e]||this.builtInInstances[e]||null}getDeleted(e){return this.deletedInstances[e]||null}getManaged(e){return this.getBuiltIn(e)?null:this.instances[e]||null}getBuiltIn(e){return this.builtInInstances[e]||null}findSubscribedInstanceFromReference(e){return this.instances[e.entityId]||null}findSubscribedBuiltInInstanceFromReference(e){return this.builtInInstances[e.entityId]||null}metaSync(e,t=this.project.addChangeSet(new b(this.project,ae.sessionAuthor,T().toISOString(),this,!0,"meta-sync"))){const i=pt(this,e),s=this.toMeta();return this.name=e.name||s.name,this.description=e.description||s.description,this.x=e.x||s.x,this.y=e.y||s.y,super.metaSync(e),e.deleted===!0&&!s.deleted?t==null||t.add(this,A.Removed):e.deleted===!1&&s.deleted?t==null||t.add(this,A.Added):i&&(t==null||t.add(this,A.Updated)),t==null||t.attemptAutoclose("meta-sync",this.id),this}async APILoad(e=g,...t){return await ae.repository.APILoad(this.id,...t),this}async APICreate(e=g,...t){return await ae.repository.APICreate(this.toShallowJSON(),...t),this}async APIUpdate(e=g,...t){return await ae.repository.APIUpdate(this.toShallowJSON(),...t),this}async APIDelete(e=g,...t){return await ae.repository.APIDelete(this.toShallowJSON(),...t),this}async APIClone(e=g,...t){return await ae.repository.APIClone(this.id,...t),this}async APILoadVersion(e=g,t,...i){return await ae.repository.APILoadVersion(this.id,t,...i)}remove({ignoreUpstream:e}={ignoreUpstream:!1},t=this.project.addChangeSet(new b(this.project,ae.sessionAuthor,T().toISOString(),this,!0,"remove-entity"))){return{added:[],updated:[],removed:[],affected:[],self:this}}restore({}={},e=this.project.addChangeSet(new b(this.project,ae.sessionAuthor,T().toISOString(),this,!0,"restore-entity"))){return{added:[],updated:[],removed:[],affected:[],self:this}}getAllBuiltInIds(){const e=new Set;return[...this.primitives.flatMap(t=>t.toFlatIds(e)),...this.builtInBaseEntities.flatMap(t=>t.toFlatIds(e)),...this.operationDeclarations.flatMap(t=>t.toFlatIds(e)),...this.globalEventActionDescriptors.flatMap(t=>t.toFlatIds(e)),...this.loopDeclarations.flatMap(t=>t.toFlatIds(e)),...this.conditionDeclarations.flatMap(t=>t.toFlatIds(e)),...this.valueDescriptors.flatMap(t=>t.toFlatIds(e)),...this.dataTypes.flatMap(t=>t.toFlatIds(e))]}getAllBuiltIn(){const e=new Set;return[...this.primitives.flatMap(t=>t.toFlat(e)),...this.builtInBaseEntities.flatMap(t=>t.toFlat(e)),...this.operationDeclarations.flatMap(t=>t.toFlat(e)),...this.globalEventActionDescriptors.flatMap(t=>t.toFlat(e)),...this.loopDeclarations.flatMap(t=>t.toFlat(e)),...this.conditionDeclarations.flatMap(t=>t.toFlat(e)),...this.valueDescriptors.flatMap(t=>t.toFlat(e)),...this.dataTypes.flatMap(t=>t.toFlat(e))]}toFlat(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this,...this.entities.flatMap(i=>i.toFlat(e)),...this.functions.flatMap(i=>i.toFlat(e)),...this.events.flatMap(i=>i.toFlat(e)),...this.projects.flatMap(i=>i.toFlat(e)),...this.variableDeclarations.flatMap(i=>i.toFlat(e)),...this.variableInstances.flatMap(i=>i.toFlat(e)),...this.conditions.flatMap(i=>i.toFlat(e)),...this.operations.flatMap(i=>i.toFlat(e)),...this.functionCalls.flatMap(i=>i.toFlat(e)),...this.loops.flatMap(i=>i.toFlat(e)),...this.searches.flatMap(i=>i.toFlat(e))])}toFlatIds(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.id,...this.entities.flatMap(i=>i.toFlatIds(e)),...this.functions.flatMap(i=>i.toFlatIds(e)),...this.events.flatMap(i=>i.toFlatIds(e)),...this.projects.flatMap(i=>i.toFlatIds(e)),...this.variableDeclarations.flatMap(i=>i.toFlatIds(e)),...this.variableInstances.flatMap(i=>i.toFlatIds(e)),...this.conditions.flatMap(i=>i.toFlatIds(e)),...this.operations.flatMap(i=>i.toFlatIds(e)),...this.functionCalls.flatMap(i=>i.toFlatIds(e)),...this.loops.flatMap(i=>i.toFlatIds(e)),...this.searches.flatMap(i=>i.toFlatIds(e))])}toMeta(){return{id:this.id,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,description:this.description,type:this.type,name:this.name}}toJSON(e=new Set){return e.has(this.id)?this.toReference():(e.add(this.id),{id:this.id,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,type:this.type,name:this.name,description:this.description,entities:this.entities.map(t=>t.toJSON(e)),variableDeclarations:this.variableDeclarations.map(t=>t.toJSON(e)),variableInstances:this.variableInstances.map(t=>t.toJSON(e)),conditions:this.conditions.map(t=>t.toJSON(e)),operations:this.operations.map(t=>t.toJSON(e)),loops:this.loops.map(t=>t.toJSON(e)),searches:this.searches.map(t=>t.toJSON(e)),functions:this.functions.map(t=>t.toJSON(e)),events:this.events.map(t=>t.toJSON(e)),projects:this.projects.map(t=>t.toJSON(e)),functionCalls:this.functionCalls.map(t=>t.toJSON(e))})}toJSONClone(e={uuidStrategy:"uuid"}){const t=new Map,i=new Set,s=this.getAllBuiltInIds();return Object.keys(this.instances).forEach(l=>{if(s.includes(l)){t.set(l,l);return}t.set(l,ae.UUID.uuid())}),i.add(this.id),{id:t.get(this.id),version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,type:this.type,name:this.name,description:this.description,entities:this.entities.map(l=>l.toJSONClone({...e,seenEntityMaps:t,seenEntities:i,newId:null})),projects:this.projects.map(l=>l.toJSONClone({...e,seenEntityMaps:t,seenEntities:i,newId:null})),variableDeclarations:this.variableDeclarations.map(l=>l.toJSONClone({...e,seenEntityMaps:t,seenEntities:i,newId:null})),variableInstances:this.variableInstances.map(l=>l.toJSONClone({...e,seenEntityMaps:t,seenEntities:i,newId:null})),conditions:this.conditions.map(l=>l.toJSONClone({...e,seenEntityMaps:t,seenEntities:i,newId:null})),operations:this.operations.map(l=>l.toJSONClone({...e,seenEntityMaps:t,seenEntities:i,newId:null})),functions:this.functions.map(l=>l.toJSONClone({...e,seenEntityMaps:t,seenEntities:i,newId:null})),events:this.events.map(l=>l.toJSONClone({...e,seenEntityMaps:t,seenEntities:i,newId:null})),functionCalls:this.functionCalls.map(l=>l.toJSONClone({...e,seenEntityMaps:t,seenEntities:i,newId:null})),loops:this.loops.map(l=>l.toJSONClone({...e,seenEntityMaps:t,seenEntities:i,newId:null})),searches:this.searches.map(l=>l.toJSONClone({...e,seenEntityMaps:t,seenEntities:i,newId:null}))}}toReference(e=q){var i;let t=this.id;return(i=e.seenEntityMaps)!=null&&i.has(this.id)&&(t=e.seenEntityMaps.get(this.id)),{id:t+"--"+ae.UUID.uuid()+"--ref",type:n.GenericReference,entityId:t,version:this.version,entityType:this.type}}toShallowJSON(e=q){var i;let t=this.id;return(i=e.seenEntityMaps)!=null&&i.has(this.id)&&(t=e.seenEntityMaps.get(this.id)),{id:t,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,type:this.type,name:this.name,description:this.description,entities:this.entities.map(s=>s.toReference(e)),functions:this.functions.map(s=>s.toReference(e)),events:this.events.map(s=>s.toReference(e)),projects:this.projects.map(s=>s.toReference(e)),variableDeclarations:this.variableDeclarations.map(s=>s.toReference(e)),variableInstances:this.variableInstances.map(s=>s.toReference(e)),conditions:this.conditions.map(s=>s.toReference(e)),operations:this.operations.map(s=>s.toReference(e)),functionCalls:this.functionCalls.map(s=>s.toReference(e)),loops:this.loops.map(s=>s.toReference(e)),searches:this.searches.map(s=>s.toReference(e))}}toFlatJSON(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.toShallowJSON(),...this.entities.flatMap(i=>i.toFlatJSON(e)),...this.functions.flatMap(i=>i.toFlatJSON(e)),...this.events.flatMap(i=>i.toFlatJSON(e)),...this.projects.flatMap(i=>i.toFlatJSON(e)),...this.variableDeclarations.flatMap(i=>i.toFlatJSON(e)),...this.variableInstances.flatMap(i=>i.toFlatJSON(e)),...this.conditions.flatMap(i=>i.toFlatJSON(e)),...this.operations.flatMap(i=>i.toFlatJSON(e)),...this.functionCalls.flatMap(i=>i.toFlatJSON(e)),...this.loops.flatMap(i=>i.toFlatJSON(e)),...this.searches.flatMap(i=>i.toFlatJSON(e))])}toGenerationTarget(){return{id:this.id,type:this.type,name:this.name,description:this.description}}toFlatGenerationTarget(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[...this.entities.flatMap(i=>i.toFlatGenerationTarget(e)),...this.functions.flatMap(i=>i.toFlatGenerationTarget(e)),...this.events.flatMap(i=>i.toFlatGenerationTarget(e)),...this.projects.flatMap(i=>i.toFlatGenerationTarget(e)),...this.variableDeclarations.flatMap(i=>i.toFlatGenerationTarget(e)),...this.variableInstances.flatMap(i=>i.toFlatGenerationTarget(e)),...this.conditions.flatMap(i=>i.toFlatGenerationTarget(e)),...this.operations.flatMap(i=>i.toFlatGenerationTarget(e)),...this.functionCalls.flatMap(i=>i.toFlatGenerationTarget(e)),...this.loops.flatMap(i=>i.toFlatGenerationTarget(e)),...this.searches.flatMap(i=>i.toFlatGenerationTarget(e))])}clearErrors(){return this.errors=[],this.entities.forEach(e=>e.clearErrors()),this.projects.forEach(e=>e.clearErrors()),this.functions.forEach(e=>e.clearErrors()),this.events.forEach(e=>e.clearErrors()),this.variableDeclarations.forEach(e=>e.clearErrors()),this.variableInstances.forEach(e=>e.clearErrors()),this.conditions.forEach(e=>e.clearErrors()),this.operations.forEach(e=>e.clearErrors()),this.functionCalls.forEach(e=>e.clearErrors()),this.loops.forEach(e=>e.clearErrors()),this.searches.forEach(e=>e.clearErrors()),this}validate(){const e=lZ(),t=this.toJSON();return e.safeParse(t),this.validateChildren(),{success:!0,error:null,data:t}}validateChildren(){this.entities.forEach(e=>e.validate()),this.projects.forEach(e=>e.validate()),this.functions.forEach(e=>e.validate()),this.events.forEach(e=>e.validate()),this.variableDeclarations.forEach(e=>e.validate()),this.variableInstances.forEach(e=>e.validate()),this.conditions.forEach(e=>e.validate()),this.operations.forEach(e=>e.validate()),this.functionCalls.forEach(e=>e.validate()),this.loops.forEach(e=>e.validate()),this.searches.forEach(e=>e.validate())}getErrors(){return[...this.errors,...this.entities.flatMap(t=>t.getErrors()),...this.projects.flatMap(t=>t.getErrors()),...this.functions.flatMap(t=>t.getErrors()),...this.events.flatMap(t=>t.getErrors()),...this.variableDeclarations.flatMap(t=>t.getErrors()),...this.variableInstances.flatMap(t=>t.getErrors()),...this.conditions.flatMap(t=>t.getErrors()),...this.operations.flatMap(t=>t.getErrors()),...this.functionCalls.flatMap(t=>t.getErrors()),...this.loops.flatMap(t=>t.getErrors()),...this.searches.flatMap(t=>t.getErrors())]}getShallowErrors(){return this.errors}clone(){return this}getDefinitionEntity(e){return this.entities.find(t=>t.id===e)||null}addDefinitionEntityFromTransfer(e){const t=C(e,this);return this.addDefinitionEntity(t),t}addDefinitionEntity(e){return this.entities.includes(e)||this.entities.push(e),e}addFunctionDeclarationFromTransfer(e){const t=C(e,this);return this.addFunctionDeclaration(t),t}addFunctionDeclaration(e){return this.functions.includes(e)||this.functions.push(e),e}addFunctionCallFromTransfer(e){const t=C(e,this);return this.addFunctionCall(t),t}addFunctionCall(e){return this.functionCalls.includes(e)||this.functionCalls.push(e),e}addVariableDeclarationFromTransfer(e){const t=C(e,this);return this.addVariableDeclaration(t),t}addVariableDeclaration(e){return this.variableDeclarations.includes(e)||this.variableDeclarations.push(e),e}addVariableInstanceFromTransfer(e){const t=C(e,this);return this.addVariableInstance(t),t}addVariableInstance(e){return this.variableInstances.includes(e)||this.variableInstances.push(e),e}addInstalledProjectFromTransfer(e){const t=C(e,this);return this.addInstalledProject(t),this}addInstalledProject(e){return this.projects.includes(e)||this.projects.push(e),this}addGlobalEventFromTransfer(e){const t=C(e,this);return this.addGlobalEvent(t),this}addGlobalEvent(e){return this.events.includes(e)||this.events.push(e),this}addConditionFromTransfer(e){const t=C(e,this);return this.addCondition(t),this}addCondition(e){return this.conditions.includes(e)||this.conditions.push(e),this}addOperationFromTransfer(e){const t=C(e,this);return this.addOperation(t),this}addOperation(e){return this.operations.includes(e)||this.operations.push(e),this}addLoopFromTransfer(e){const t=C(e,this);return this.addLoop(t),this}addLoop(e){return this.loops.includes(e)||this.loops.push(e),this}addSearchFromTransfer(e){const t=C(e,this);return this.addSearch(t),this}addSearch(e){return this.searches.includes(e)||this.searches.push(e),this}removeDefinitionEntity(e){const t=this.entities.findIndex(i=>i.id===e.id);if(t>-1){const i=this.entities[t];return this.entities.splice(t,1),i}return null}removeFunctionDeclaration(e){const t=this.functions.findIndex(i=>i.id===e.id);if(t>-1){const i=this.functions[t];return this.functions.splice(t,1),i}return null}removeExternalProject(e){const t=this.projects.findIndex(i=>i.id===e.id);if(t>-1){const i=this.projects[t];return this.projects.splice(t,1),i}return null}removeGlobalEvent(e){const t=this.events.findIndex(i=>i.id===e.id);if(t>-1){const i=this.events[t];return this.events.splice(t,1),i}return null}removeTopLevelVariableDeclaration(e){if(e.type!==n.VariableDeclaration)return null;const t=this.variableDeclarations.findIndex(i=>i.id===e.id);if(t>-1){const i=this.variableDeclarations[t];return this.variableDeclarations.splice(t,1),i}return null}getEntryPoints(){return[...this.functions,...this.events,...this.entities.flatMap(t=>t.methods)]}getFunctionDeclaration(e){return this.functions.find(t=>t.id===e)||null}getConditions(){return[...this.conditions,...this.getEntryPoints().reduce((t,i)=>{const s=it(i);return[...t,...s.filter(l=>l.type===n.Condition)]},[]),...this.functionCalls.reduce((t,i)=>{const s=it(i);return[...t,...s.filter(l=>l.type===n.Condition)]},[]),...this.operations.reduce((t,i)=>{const s=it(i);return[...t,...s.filter(l=>l.type===n.Condition)]},[]),...this.loops.reduce((t,i)=>{const s=it(i);return[...t,...s.filter(l=>l.type===n.Condition)]},[]),...this.searches.reduce((t,i)=>{const s=it(i);return[...t,...s.filter(l=>l.type===n.Condition)]},[])]}getOperations(){return[...this.operations,...this.getEntryPoints().reduce((t,i)=>{const s=it(i);return[...t,...s.filter(l=>l.type===n.Operation)]},[]),...this.functionCalls.reduce((t,i)=>{const s=it(i);return[...t,...s.filter(l=>l.type===n.Operation)]},[]),...this.conditions.reduce((t,i)=>{const s=it(i);return[...t,...s.filter(l=>l.type===n.Operation)]},[]),...this.loops.reduce((t,i)=>{const s=it(i);return[...t,...s.filter(l=>l.type===n.Operation)]},[]),...this.searches.reduce((t,i)=>{const s=it(i);return[...t,...s.filter(l=>l.type===n.Operation)]},[])]}getFunctionCalls(){return[...this.functionCalls,...this.getEntryPoints().reduce((t,i)=>{const s=it(i);return[...t,...s.filter(l=>l.type===n.FunctionCall)]},[]),...this.conditions.reduce((t,i)=>{const s=it(i);return[...t,...s.filter(l=>l.type===n.FunctionCall)]},[]),...this.operations.reduce((t,i)=>{const s=it(i);return[...t,...s.filter(l=>l.type===n.FunctionCall)]},[]),...this.loops.reduce((t,i)=>{const s=it(i);return[...t,...s.filter(l=>l.type===n.FunctionCall)]},[]),...this.searches.reduce((t,i)=>{const s=it(i);return[...t,...s.filter(l=>l.type===n.FunctionCall)]},[])]}getVariables(){return[...this.variableDeclarations,...this.getEntryPoints().reduce((t,i)=>{const s=ze(i);return[...t,...s]},[]),...this.functionCalls.reduce((t,i)=>{const s=ze(i);return[...t,...s]},[]),...this.conditions.reduce((t,i)=>{const s=ze(i);return[...t,...s]},[]),...this.operations.reduce((t,i)=>{const s=ze(i);return[...t,...s]},[]),...this.loops.reduce((t,i)=>{const s=ze(i);return[...t,...s]},[]),...this.searches.reduce((t,i)=>{const s=ze(i);return[...t,...s]},[])]}getVariableInstances(){return[...this.variableInstances,...this.getEntryPoints().reduce((t,i)=>{const l=ze(i).filter(o=>o.type===n.VariableInstance);return[...t,...l]},[]),...this.functionCalls.reduce((t,i)=>{const l=ze(i).filter(o=>o.type===n.VariableInstance);return[...t,...l]},[]),...this.conditions.reduce((t,i)=>{const l=ze(i).filter(o=>o.type===n.VariableInstance);return[...t,...l]},[]),...this.operations.reduce((t,i)=>{const l=ze(i).filter(o=>o.type===n.VariableInstance);return[...t,...l]},[]),...this.loops.reduce((t,i)=>{const l=ze(i).filter(o=>o.type===n.VariableInstance);return[...t,...l]},[]),...this.searches.reduce((t,i)=>{const l=ze(i).filter(o=>o.type===n.VariableInstance);return[...t,...l]},[])]}getVariableDeclarations(){return p([...this.variableDeclarations,...this.getEntryPoints().reduce((t,i)=>{const l=ze(i).filter(o=>o.type===n.VariableDeclaration);return[...t,...l]},[]),...this.functionCalls.reduce((t,i)=>{const l=ze(i).filter(o=>o.type===n.VariableDeclaration);return[...t,...l]},[]),...this.conditions.reduce((t,i)=>{const l=ze(i).filter(o=>o.type===n.VariableDeclaration);return[...t,...l]},[]),...this.operations.reduce((t,i)=>{const l=ze(i).filter(o=>o.type===n.VariableDeclaration);return[...t,...l]},[]),...this.loops.reduce((t,i)=>{const l=ze(i).filter(o=>o.type===n.VariableDeclaration);return[...t,...l]},[]),...this.searches.reduce((t,i)=>{const l=ze(i).filter(o=>o.type===n.VariableDeclaration);return[...t,...l]},[])])}attachOrphanReferences(){const e=this.getVariableInstances(),t=this.getVariableDeclarations();return e.forEach(i=>{if(!i.declaration){const s=i.initialData,l=s.declaration.entityId||s.declaration.id,o=t.find(d=>d.id===l);o&&i.setDeclaration(o)}}),this}getBuiltInPersistedEntity(){return this.builtInBaseEntities.find(e=>e.name===z.PERSISTED_ENTITY)||null}};f(ae,"sessionAuthor","1"),f(ae,"UUID",{isBackup:!0,uuid:()=>Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15),fromUUID:e=>e}),f(ae,"repository",{APICreate:async(e,...t)=>e,APIUpdate:async(e,...t)=>e,APIDelete:async(e,...t)=>e,APIClone:async(e,...t)=>{},APILoad:async(e,...t)=>null,APILoadVersion:async(e,t,...i)=>null}),f(ae,"type",n.Project),f(ae,"USER_MANAGED_PARENT_TYPES",[]),f(ae,"PARENT_TYPES",[...ae.USER_MANAGED_PARENT_TYPES]),f(ae,"MUTABLE_BASE_PROPERTIES",["name","description"]),f(ae,"INMUTABLE_BASE_PROPERTIES",["id","type","version","createdAt","author","previousVersion"]),f(ae,"BASE_PROPERTIES",[...ae.MUTABLE_BASE_PROPERTIES,...ae.INMUTABLE_BASE_PROPERTIES]),f(ae,"MUTABLE_META_PROPERTIES",[...ae.MUTABLE_BASE_PROPERTIES,"x","y"]),f(ae,"INMUTABLE_META_PROPERTIES",[...ae.INMUTABLE_BASE_PROPERTIES]),f(ae,"META_PROPERTIES",[...ae.MUTABLE_META_PROPERTIES,...ae.INMUTABLE_META_PROPERTIES]),f(ae,"MUTABLE_UPSTREAM_PROPERTIES",[]),f(ae,"INMUTABLE_UPSTREAM_PROPERTIES",["primitives","builtInBaseEntities","operationDeclarations","globalEventActionDescriptors","loopDeclarations","builtInInstances"]),f(ae,"UPSTREAM_PROPERTIES",[...ae.MUTABLE_UPSTREAM_PROPERTIES,...ae.INMUTABLE_UPSTREAM_PROPERTIES]),f(ae,"MUTABLE_DOWNSTREAM_PROPERTIES",["entities","projects","functions","events","variableDeclarations","variableInstances","conditions","operations","functionCalls","loops","searches"]),f(ae,"INMUTABLE_DOWNSTREAM_PROPERTIES",[]),f(ae,"DOWNSTREAM_PROPERTIES",[...ae.MUTABLE_DOWNSTREAM_PROPERTIES,...ae.INMUTABLE_DOWNSTREAM_PROPERTIES]),f(ae,"PROPERTIES",[...ae.META_PROPERTIES,...ae.UPSTREAM_PROPERTIES,...ae.DOWNSTREAM_PROPERTIES]);let m=ae;var aw=(r=>(r.PersistChangeSet="persist-change-set",r.CreateSingle="create-single",r.CreateBulk="create-bulk",r.CreateSingleNested="create-single-nested",r.CreateBulkNested="create-bulk-nested",r.Update="update",r.Clone="clone",r.Delete="delete",r.Load="load",r.LoadNested="load-nested",r.LoadVersion="load-version",r))(aw||{});class ow extends Je{constructor(e){super(Oi,e);f(this,"id",Ke.Parallel);f(this,"name",Ke.Parallel);f(this,"description","Execute a list of actions one after the other");f(this,"version","1");f(this,"autoexecutable",!0);f(this,"initialData",Oi);f(this,"type",n.ActionDescriptor);f(this,"inputs",[]);f(this,"outputs",[]);f(this,"error",null);f(this,"project");this.project=e,this.inputs=Oi.inputs.map(t=>{const i=C(t,this.project);return i.setParent(this,null),i.initChildren(null),i}),this.outputs=Oi.outputs.map(t=>{const i=C(t,this.project);return i.setParent(this,null),i.initChildren(null),i}),this.error=Oi.error?C(Oi.error,this.project):null}}class lw extends Je{constructor(e){super(Zt,e);f(this,"id",Zt.id);f(this,"name",Zt.name);f(this,"description",Zt.description);f(this,"version",Zt.version);f(this,"autoexecutable",!1);f(this,"initialData",Zt);f(this,"type",n.ActionDescriptor);f(this,"inputs",[]);f(this,"outputs",[]);f(this,"error",null);f(this,"project");this.project=e,this.inputs=Zt.inputs.map(t=>{const i=C(t,this.project);return i.setParent(this,null),i.initChildren(null),i}),this.outputs=Zt.outputs.map(t=>{const i=C(t,this.project);return i.setParent(this,null),i.initChildren(null),i}),this.error=Zt.error?C(Zt.error,this.project):null}}class dw extends Je{constructor(e){super(nr,e);f(this,"id",Ke.Sequential);f(this,"name",Ke.Sequential);f(this,"description","Execute a list of actions one after the other");f(this,"version","1");f(this,"autoexecutable",!0);f(this,"initialData",nr);f(this,"type",n.ActionDescriptor);f(this,"inputs",[]);f(this,"outputs",[]);f(this,"error",null);f(this,"project");this.project=e,this.inputs=nr.inputs.map(t=>{const i=C(t,this.project);return i.setParent(this,null),i.initChildren(null),i}),this.outputs=nr.outputs.map(t=>{const i=C(t,this.project);return i.setParent(this,null),i.initChildren(null),i}),this.error=nr.error?C(nr.error,this.project):null}}class lW extends Je{constructor(a){super(Bs,a)}}class dW extends Je{constructor(a){super(tn,a)}}class uW extends Je{constructor(e){super(rn,e);f(this,"autoexecutable",!0)}getEntityToMatchInputMap(e){return e.inputs.find(t=>{var i;return((i=t.declaration)==null?void 0:i.id)===k.operation[Xe.Validate].inputs.entityToMatch.id})||null}getDataToValidateInputMap(e){return e.inputs.find(t=>{var i;return((i=t.declaration)==null?void 0:i.id)===k.operation[Xe.Validate].inputs.dataToValidate.id})||null}getOutputDataOutputMap(e){return e.outputs.find(t=>{var i;return((i=t.declaration)==null?void 0:i.id)===k.operation[Xe.Validate].outputs.outputEntity.id})||null}getEntityToMatch(e,t=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"get-entity-to-match-validate-data"))){let i=null;if(e.readsValue){const l=e.readsValue.getDataType(t);l&&l.entity&&l.entity.type===n.DefinitionEntity&&(i=l.entity)}const s=e.getDefaultValue();return!i&&s&&s.valueAsTypeSingle&&!Array.isArray(s.valueAsTypeSingle)&&s.valueAsTypeSingle.type===n.DefinitionEntity&&(i=s.valueAsTypeSingle),i}syncOperationInstance(e,t=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"sync-operation-instance-validate-data"))){const i=[],s=[],l=[],o=[],d=this.getEntityToMatchInputMap(e);if(d){const{added:c,updated:I,removed:E,affected:O}=this.syncEntityToMatchInputMapDataType(d,t);i.push(...I),s.push(...c),l.push(...E),o.push(...O)}const u=this.getDataToValidateInputMap(e);if(u){const{added:c,updated:I,removed:E,affected:O}=this.syncDataToValidateInputMapDataType(u,t);i.push(...I),s.push(...c),l.push(...E),o.push(...O)}const y=this.getOutputDataOutputMap(e);if(y){const{added:c,updated:I,removed:E,affected:O}=this.syncOutputDataOutputMapDataType(y,t);i.push(...I),s.push(...c),l.push(...E),o.push(...O)}return t==null||t.attemptAutoclose("sync-operation-instance-validate-data",this.id),{updated:p(i),added:p(s),removed:p(l),affected:p(o),self:e}}syncEntityToMatchInputMapDataType(e,t=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"sync-entity-to-match-input-map-data-type"))){var u,y,c;const i=[],s=[],l=[],o=[];if(((u=e.declaration)==null?void 0:u.id)!==k.operation[Xe.Validate].inputs.entityToMatch.id)return t==null||t.attemptAutoclose("sync-entity-to-match-input-map-data-type",this.id),{updated:[],added:[],removed:[],affected:[],self:null};if(!e.dataType){const I={id:m.UUID.uuid(),version:m.UUID.uuid(),createdAt:(t==null?void 0:t.timestamp)||new Date().toISOString(),author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,isList:!1,andChildrenGroup:null,orChildrenGroup:null,asType:!0,entity:null,like:!0,inferred:!0,parent:e.toReference()},E=C(I,e.project);E.setParent(e,t),E.initChildren(t),t==null||t.add(E,A.Added),i.push(E),e.setDataType(E)}(y=e.dataType)==null||y.metaSync({inferred:!0,like:!1,asType:!0},t);const d=this.getEntityToMatch(e,t);return(c=e.dataType)==null||c.setEntity(d),e.dataType&&s.push(e.dataType),t==null||t.attemptAutoclose("sync-entity-to-match-input-map-data-type",this.id),{updated:p(s),added:p(i),removed:p(l),affected:p(o),self:e.dataType}}syncDataToValidateInputMapDataType(e,t=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"sync-data-to-validate-input-map-data-type"))){var c,I,E;const i=[],s=[],l=[],o=[];if(((c=e.declaration)==null?void 0:c.id)!==k.operation[Xe.Validate].inputs.dataToValidate.id)return t==null||t.attemptAutoclose("sync-data-to-validate-input-map-data-type",this.id),{updated:[],added:[],removed:[],affected:[],self:null};const d=this.getEntityToMatchInputMap(e.parent);if(!d)return t==null||t.attemptAutoclose("sync-data-to-validate-input-map-data-type",this.id),{updated:[],added:[],removed:[],affected:[],self:null};if(!this.getEntityToMatch(d,t))return t==null||t.attemptAutoclose("sync-data-to-validate-input-map-data-type",this.id),{updated:[],added:[],removed:[],affected:[],self:null};if(!e.dataType){const O={id:m.UUID.uuid(),version:m.UUID.uuid(),createdAt:(t==null?void 0:t.timestamp)||new Date().toISOString(),author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,isList:!1,andChildrenGroup:null,orChildrenGroup:null,asType:!1,entity:null,like:!0,inferred:!0,parent:e.toReference()},P=C(O,e.project);P.setParent(e,t),P.initChildren(t),t==null||t.add(P,A.Added),i.push(P),e.setDataType(P)}(I=e.dataType)==null||I.metaSync({inferred:!0,like:!0,asType:!1},t);const y=this.getEntityToMatch(d,t);return(E=e.dataType)==null||E.setEntity(y),e.dataType&&s.push(e.dataType),t==null||t.attemptAutoclose("sync-data-to-validate-input-map-data-type",this.id),{updated:p(s),added:p(i),removed:p(l),affected:p(o),self:e.dataType}}syncOutputDataOutputMapDataType(e,t=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"sync-output-data-output-map-data-type"))){var c,I,E;const i=[],s=[],l=[],o=[];if(((c=e.declaration)==null?void 0:c.id)!==k.operation[Xe.Validate].outputs.outputEntity.id)return t==null||t.attemptAutoclose("sync-output-data-output-map-data-type",this.id),{updated:[],added:[],removed:[],affected:[],self:null};const d=this.getEntityToMatchInputMap(e.parent);if(!d)return t==null||t.attemptAutoclose("sync-output-data-output-map-data-type",this.id),{updated:[],added:[],removed:[],affected:[],self:null};if(!this.getEntityToMatch(d,t))return t==null||t.attemptAutoclose("sync-output-data-output-map-data-type",this.id),{updated:[],added:[],removed:[],affected:[],self:null};if(!e.dataType){const O={id:m.UUID.uuid(),version:m.UUID.uuid(),createdAt:(t==null?void 0:t.timestamp)||new Date().toISOString(),author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,isList:!1,andChildrenGroup:null,orChildrenGroup:null,asType:!1,entity:null,like:!0,inferred:!0,parent:e.toReference()},P=C(O,e.project);P.setParent(e,t),P.initChildren(t),t==null||t.add(P,A.Added),i.push(P),e.setDataType(P)}(I=e.dataType)==null||I.metaSync({inferred:!0,like:!0,asType:!1},t);const y=this.getEntityToMatch(d,t);return(E=e.dataType)==null||E.setEntity(y),e.dataType&&s.push(e.dataType),t==null||t.attemptAutoclose("sync-output-data-output-map-data-type",this.id),{updated:p(s),added:p(i),removed:p(l),affected:p(o),self:e.dataType}}inferInputMapDataType(e,t=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"infer-input-map-data-type-validate-data"))){var i,s;if(((i=e.declaration)==null?void 0:i.id)===k.operation[Xe.Validate].inputs.entityToMatch.id){const{added:l,updated:o,removed:d,affected:u}=this.syncEntityToMatchInputMapDataType(e,t);return t==null||t.attemptAutoclose("infer-input-map-data-type-validate-data",this.id),{updated:p(o),added:p(l),removed:p(d),affected:p(u),self:e.dataType}}else if(((s=e.declaration)==null?void 0:s.id)===k.operation[Xe.Validate].inputs.dataToValidate.id){const{added:l,updated:o,removed:d,affected:u}=this.syncDataToValidateInputMapDataType(e,t);return t==null||t.attemptAutoclose("infer-input-map-data-type",this.id),{updated:p(o),added:p(l),removed:p(d),affected:p(u),self:e.dataType}}return{updated:[],added:[],removed:[],affected:[],self:null}}inferOutputMapDataType(e,t=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"infer-output-map-data-type-validate-data"))){var i;if(((i=e.declaration)==null?void 0:i.id)===k.operation[Xe.Validate].outputs.outputEntity.id){const{added:s,updated:l,removed:o,affected:d}=this.syncOutputDataOutputMapDataType(e,t);return t==null||t.attemptAutoclose("infer-output-map-data-type-validate-data",this.id),{updated:p(l),added:p(s),removed:p(o),affected:p(d),self:e.dataType}}return{updated:[],added:[],removed:[],affected:[],self:null}}}class pW extends Je{constructor(a){super(Id,a)}}class cW extends Je{constructor(a){super(Ad,a)}}class fW extends Je{constructor(a){super(bd,a)}}class yW extends Je{constructor(a){super(za,a)}}class hW extends Je{constructor(a){super(qa,a)}}class mW extends Je{constructor(a){super(Vs,a)}}function vW(r){const a=[new dw(r),new ow(r),new lw(r),new lW(r),new dW(r),new uW(r),new yW(r),new pW(r),new fW(r),new cW(r),new hW(r),new mW(r),new Je(Td,r),new Je(vd,r)];return a.forEach(e=>{e.initChildren(null),r.subscribeBuiltInInstance(e)}),r.operationDeclarations=a,a}class uw extends Ki{constructor(e){super(Ct,e);f(this,"initialData");f(this,"id",z.PERSISTED_ENTITY);f(this,"version","1");f(this,"name",z.PERSISTED_ENTITY);f(this,"description",Ct.description);f(this,"type",n.BuiltInBaseEntity);f(this,"abstract",Ct.abstract);f(this,"static",Ct.static);f(this,"properties",[]);f(this,"methods",[]);f(this,"abstractMethods",[]);f(this,"extends",[]);f(this,"errors",[]);f(this,"project");this.initialData=Ct,this.project=e,this.id=Ct.id,this.version=Ct.version,this.name=Ct.name,this.static=Ct.static,this.abstract=Ct.abstract,this.properties=this.initialData.properties.map(t=>{const i=C(t,this.project);return i.setParent(this,null),i.initChildren(null),i}),this.methods=this.initialData.methods.map(t=>{const i=C(t,this.project);return i.parent=this,i}),this.abstractMethods=this.initialData.abstractMethods.map(t=>{const i=C(t,this.project);return i.parent=this,i}),this.extends=this.initialData.extends.map(t=>C(t,this.project))}}function TW(r){const a=[new uw(r),new Ki(js,r),new Ki(ji,r),new Ki(co,r)];return a.forEach(e=>{r.subscribeBuiltInInstance(e)}),r.builtInBaseEntities=a,a}function IW(r){const a=[new oi(se,r),new oi(er,r),new oi(ve,r),new oi(pd,r),new oi(Ot,r),new oi(tr,r),new oi(Li,r),new oi(ir,r),new oi(Fn,r)];return a.forEach(e=>{r.subscribeBuiltInInstance(e)}),r.primitives=a,a}function EW(r){const a=[new Je(yo,r)];return a.forEach(e=>{e.initChildren(null),r.subscribeBuiltInInstance(e)}),r.globalEventActionDescriptors=a,a}function AW(r){const a=[new Je(Ls,r),new Je(Er,r),new Je(Ms,r),new Je(Sn,r),new Je(Zn,r),new Je(io,r)];a.forEach(t=>{t.initChildren(null),r.subscribeBuiltInInstance(t)}),r.loopDeclarations=a;const e=[new Je(ao,r),new Je(Ns,r),new Je(no,r),new Je(Ud,r),new Je(jd,r),new Je(ro,r)];return e.forEach(t=>{t.initChildren(null),r.subscribeBuiltInInstance(t)}),r.loopDeclarationsBodies=e,a}function bW(r){const a=[new qr(ho,r)];return a.forEach(e=>{e.initChildren(null),r.subscribeBuiltInInstance(e)}),r.valueDescriptors=a,a}function RW(r){const a=[new Je(ln,r),new Je(Yn,r)];return a.forEach(e=>{e.initChildren(null),r.subscribeBuiltInInstance(e)}),r.conditionDeclarations=a,a}const Un={},nd={},$a={empty:!1,enrich:!0,mock:!1,ignoreCache:!1,onFetch:async()=>null,manuallyInit:!1};function pw(r,{enrich:a}={enrich:!0}){const e=r.project,t=r.record,i=new Zl(e),s=new Set;t[e.id]=e,s.add(e.id);const l=T().toISOString();Object.values(t).forEach(u=>{!u||i.allBuiltInEntityIds.includes(u.id)||s.add(u.id)}),i.order=Array.from(s),i.flatRecord=t,i.orderEntities();const o=sd(r.project);o.instances[e.id]=o;const d=a?o.addChangeSet(new b(o,"",l,o)):null;return i.visit(u=>{if(u.id===o.id)return;const y=C(u,o);y.hydrateAncestors(),y.addSelfToProject(null)}),a?(i.visit(u=>{const y=o.get(u.id);y&&y.afterAllChildrenInitialized(d)}),o.afterAllChildrenInitialized(d)):ad(o,l).forEach(y=>{y.remove({ignoreUpstream:!0},null)}),o.instancesList.forEach(u=>{u.previousVersion=null}),d==null||d.close(),o}async function DW(r,a=$a){const e={...$a,...a};if(e.empty)return{data:{project:{id:r.id,type:n.Project,version:m.UUID.uuid(),createdAt:T().toISOString(),author:m.sessionAuthor,previousVersion:null,deleted:!1,name:null,description:null,projects:[],entities:[],operations:[],functions:[],variableDeclarations:[],variableInstances:[],functionCalls:[],conditions:[],loops:[],searches:[],events:[]},record:{}}};if(e.mock){const i={...lp};return i.id=r.id,{data:{project:i,record:{}}}}return console.log("Fetching project from external API"),new Promise(async i=>{if(e.onFetch){const s=await e.onFetch(r.id);if(s){i({data:s});return}}else i({data:null})})}function sd(r){const a=new m(r);return IW(a),TW(a),vW(a),EW(a),AW(a),bW(a),RW(a),Array.from(new Set([...a.getAllBuiltInIds(),..._i()])).forEach(t=>{if(!a.builtInInstances[t]&&a.instances[t])a.builtInInstances[t]=a.instances[t],delete a.instances[t];else if(!a.builtInInstances[t])throw new Error(`Built in entity was not properly initialized: ${t}`)}),a}function ad(r,a){return r.instancesList.filter(t=>T(t.createdAt).isAfter(T(a)||!!t.previousVersion))}function OW(r,{enrich:a}={enrich:!0}){const e=new Map,t=Array.from(new Set([...r.getAllBuiltInIds(),..._i()]));Object.keys(r.instances).forEach(u=>{if(t.includes(u)){e.set(u,u);return}const y=r.get(u);if(!id(y,{...r.instances,...r.builtInInstances}).every(E=>!t.includes(E))){e.set(u,u);return}e.set(u,m.UUID.uuid())});const i=T().toISOString(),s=r.toShallowJSON({seenEntityMaps:e});s.previousVersion=null,s.createdAt=i,s.version=m.UUID.uuid();const l=sd(s),o=a?l.addChangeSet(new b(l,"",i,l)):null,d=new Zl(r);return d.visit(u=>{const y=u.toShallowJSON({seenEntityMaps:e});u.type===n.ValueDescriptor&&u.name==="Iteration result"&&(console.log("Og entity shallow copy: ",y),console.log("Og entity full: ",u)),y.previousVersion=null,y.createdAt=i,y.version=m.UUID.uuid();const c=C(y,l);c.hydrateAncestors(),c.addSelfToProject(o),o==null||o.add(c,A.Added)}),a?(d.visit(u=>{const y=l.get(e.get(u.id));y&&y.afterAllChildrenInitialized(o)}),l.afterAllChildrenInitialized(o)):ad(l,i).forEach(y=>{y.remove({ignoreUpstream:!0},null)}),l.instancesList.forEach(u=>{u.previousVersion=null}),o==null||o.close(),l}function cw(r,{enrich:a}={enrich:!0}){const e=sd(r),t=T().toISOString(),i=a?e.addChangeSet(new b(e,"",t,e)):null;i&&(i.type=Pc.Automatic);const s=new Zl(r);return s.visit(l=>{const o=C(l,e);o.hydrateAncestors(),o.addSelfToProject(i)}),a?(s.visit(l=>{const o=e.get(l.id);o&&o.afterAllChildrenInitialized(i)}),e.afterAllChildrenInitialized(i)):ad(e,t).forEach(o=>{o.remove({ignoreUpstream:!0},null)}),i==null||i.close(),e}async function PW(r,a=$a){const e={...$a,...a};if(r.id&&Un[r.id]&&!e.ignoreCache)return Un[r.id];if(r.id&&nd[r.id]&&!e.ignoreCache)return await nd[r.id],Un[r.id];const t=DW(r,e);r.id&&(nd[r.id]=t);const i=await t;if(i.data){let s;return e.mock?s=cw(lp,{enrich:!!e.enrich}):i.data instanceof m?s=i.data:s=pw(i.data,{enrich:!!e.enrich}),Un[r.id]=s,r.id&&delete nd[r.id],s}return null}function wW(r){return Un[r.id]&&delete Un[r.id],null}const CW="test_primitive_entities_export";h.AI_VALUE_CONNECTION_GENERATION_ACTION_EXPLANATION=Gc,h.ALL_BUILT_IN_BASE_ENTITIES=xI,h.ALL_BUILT_IN_CONDITION_ENTITIES=tE,h.ALL_BUILT_IN_GLOBAL_EVENT_ENTITIES=rE,h.ALL_BUILT_IN_LOOP_BODY_ENTITIES=vT,h.ALL_BUILT_IN_LOOP_ENTITIES=mT,h.ALL_BUILT_IN_OPERATION_ENTITIES=C0,h.ALL_BUILT_IN_PRIMITIVE_ENTITIES=mf,h.ALL_BUILT_IN_TOP_LEVEL_ENTITIES=oE,h.ALL_BUILT_IN_VALUE_DESCRIPTORS=aE,h.ActionDescriptorState=Je,h.ActionInputMapState=$7,h.ActionOutputMapState=x7,h.AppendToListOperationInputIds=Dh,h.AppendToListOperationOutputIds=Oh,h.ArgumentDeclarationDependencyField=M1,h.ArgumentDeclarationState=Zr,h.BREAK_AND_CONTINUE_STATEMENTS_RETURN_DECLARATIONS_EXPLANATION=Uc,h.BUILT_IN_BASE_ENTITY_IDS=k,h.BUILT_IN_ENTITY_TYPES=Ti,h.BaseCanvasDraggableState=tW,h.BaseEntityNames=z,h.BaseState=eW,h.BaseValueDescriptorIds=Za,h.BreakStatementDependencyField=Vc,h.BreakStatementState=_n,h.BuiltInBaseEntityState=Ki,h.CACHED_PROJECTS_BY_ID=Un,h.CALLABLE_ENTITIES_EXPLANATION=Y7,h.CALLABLE_TYPES=Mi,h.CALLER_ENTITIES_EXPLANATION=G1,h.CALLER_TYPES=Ni,h.CALLS_UPDATE_EXPLANATION=Wr,h.COMPARISON_CONDITIONS=QI,h.CONDITIONS=eE,h.CUSTOM_ENTITY_OPERATIONS=Jm,h.CallableEntityClass=rW,h.CallerEntityClass=nf,h.ChangeSet=b,h.ChangeSetChangeCaptureType=Pc,h.ChangeSetEntityChangeType=A,h.ChildEntityState=iW,h.ComparisonOperatorTypes=yt,h.ConditionDependencyField=v1,h.ConditionState=Gr,h.ContinueStatementDependencyField=wc,h.ContinueStatementState=Ft,h.CreateNewInputIds=Em,h.CreateNewOutputIds=Am,h.DRAGGABLE_CALLABLE_TYPES=ud,h.DRAGGABLE_CALLER_TYPES=lf,h.DRAGGABLE_ELEMENT_TYPES=Sa,h.DRAGGABLE_EXECUTABLE_TYPES=vw,h.DRAGGABLE_PASS_THROUGH_CALLABLE_TYPES=ka,h.DRAGGABLE_PASS_THROUGH_CALLABLE_TYPES_WITH_OUTPUTS=dd,h.DataTypeCompatibilityTypes=bi,h.DataTypeDependencyField=Cc,h.DataTypeParentChildRelation=Dt,h.DataTypeState=Vn,h.DefinitionEntityDependencyField=rd,h.DefinitionEntityState=Xr,h.EDITABLE_PERSISTANCE_REPOSITORY_DEFAULTS=XJ,h.ENTITIES_WITH_VALLUES_EXPLANATION=Gl,h.ENTITY_PERSISTANCE_OPTIONS_DEFAULTS=g,h.ENTITY_RECUSION_OPTIONS_DEFAULTS=q,h.ENTITY_TYPES=Tw,h.ENTITY_WITH_DECLARATION_TYPES=hw,h.ENTITY_WITH_LOGIC_SCOPE_TYPES=dt,h.ENTITY_WITH_NAMES_TYPES=df,h.ENTITY_WITH_PARENT_TYPES=fw,h.ENTITY_WITH_USER_MANAGED_DECLARATION_TYPES=af,h.ENTITY_WITH_USER_MANAGED_SINGLE_IMPLEMENTS_TYPES=yw,h.ENTITY_WITH_VALUE_TYPES=sf,h.ENTRY_POINT_ENTITIES_EXPLANATION=Ba,h.ENTRY_POINT_TYPES=lt,h.EVENT_TYPES=Gn,h.EXECUTABLE_TYPES=mw,h.EXECUTION_OPERATIONS=Im,h.EntityAction=aw,h.EntityError=st,h.EntityErrorSeverity=D,h.EntityGenerationError=w,h.EntityGenerationErrorCode=R,h.EntityInstanceErrorCode=F,h.EntityOperations=Xe,h.EntityType=n,h.EntityWithLogicScopeClass=oW,h.EntityWithValueClass=aW,h.EntryPointEntityClass=nW,h.ExecutionOperations=Ke,h.ExecutionTerminationType=y1,h.FunctionCallDependencyField=H1,h.FunctionCallState=Yr,h.FunctionDeclarationDependencyField=o1,h.FunctionDeclarationState=gr,h.GET_PROJECT_OPTIONS_DEFAULTS=$a,h.GLOBAL_EVENT_DECLARATIONS=iE,h.GetLastInListOperationInputIds=ch,h.GetLastInListOperationOutputIds=fh,h.GlobalEventNames=Qi,h.GlobalEventState=Bn,h.HTTPOperations=_t,h.HTTP_OPERATIONS=P0,h.InputMapDependencyField=C1,h.InputMapState=Wi,h.InstalledProjectState=Sr,h.InternalCallDependencyField=P1,h.InternalCallState=Mn,h.JoinListOperationInputIds=My,h.JoinListOperationOutputIds=Ny,h.LIST_OPERATIONS=$h,h.ListOperations=he,h.LiteralValueDependencyField=L1,h.LiteralValueState=Nn,h.LoopDependencyField=h1,h.LoopState=$r,h.LoopTypes=Q,h.NON_INTERACTIVE_BASE_ENTITIES_EXPLANATION=zr,h.NUMBER_OPERATIONS=Jf,h.NumberOperations=Qe,h.OPERATION_DECLARATIONS=w0,h.OperationDependencyField=u1,h.OperationState=jr,h.OutputMapDependencyField=B1,h.OutputMapParentChildRelation=$n,h.OutputMapState=zi,h.PARENT_AUTO_CALCULATION_FROM_CALLER_EXPLANATION=Fl,h.PASS_THROUGH_CALLABLE_ENTITIES_EXPLANATION=Jr,h.PASS_THROUGH_CALLABLE_TYPES=ot,h.PASS_THROUGH_CALLABLE_TYPES_WITH_OUTPUTS=of,h.PROPERTY_NOT_VALUE_READER_WRITTER_EXPLANATION=$c,h.ParallelExecutionOperation=ow,h.PassThroughCallableEntityClass=sW,h.PersistedEntity=uw,h.PersistedEntityMethods=di,h.PrimitiveEntityState=oi,h.PrimitiveTypes=L,h.ProjectState=m,h.PropertyDependencyField=t1,h.PropertyState=Lr,h.READ_ONLY_ENTITY_PERSISTANCE_REPOSITORY=sw,h.RETURN_STATEMENT_RETURN_DECLARATIONS_EXPLANATION=H7,h.ReturnDeclarationDependencyField=r1,h.ReturnDeclarationState=si,h.ReturnStatementDependencyField=Ul,h.ReturnStatementState=Ur,h.STANDALONE_CONDITIONS=ZI,h.STRING_OPERATIONS=_y,h.ScopeCompatibilityType=td,h.SearchDependencyField=b1,h.SearchState=kr,h.SequentialExecutionOperation=dw,h.SequentialExecutionOperationInputIds=am,h.SequentialExecutionOperationOutputIds=om,h.SharedEntityErrorCode=j,h.SharedStateFunctionality=nw,h.SplitListOperationInputIds=zy,h.SplitListOperationOutputIds=Yy,h.StandaloneOperatorTypes=vi,h.StringOperations=Ee,h.TERMINATION_TYPES=nt,h.Traverser=Zl,h.USER_MANAGED_ENTITY_TYPES=uf,h.UserManagedEntityStateTemplate=QJ,h.VALUE_READING_ENTITIES_EXPLANATION=jc,h.VALUE_READING_TYPES=Ir,h.VALUE_WRITING_ENTITIES_EXPLANATION=F1,h.VALUE_WRITING_TYPES=Tt,h.VARIABLE_DATA_TYPE_INFERRANCE_EXPLANATION=gc,h.VARIABLE_TYPES=et,h.ValueAutogenerationType=vt,h.ValueDescriptorDependencyField=g1,h.ValueDescriptorParentChildRelation=N,h.ValueDescriptorState=qr,h.ValueReadingEntityClass=Tr,h.ValueWritingEntityClass=ja,h.VariableDeclarationDependencyField=E1,h.VariableDeclarationState=xr,h.VariableInputMapState=j7,h.VariableInstanceDependencyField=_c,h.VariableInstanceState=Fr,h.VariableOutputMapState=F7,h.WaitOperation=lw,h.WaitOperationInputIds=Qh,h.WaitOperationOutputIds=em,h.actionDescriptorValidation=V7,h.appendToListOperation=za,h.appendToListOperationElementToAppendArgument=Dd,h.appendToListOperationElementToAppendArgumentParentRef=Nh,h.appendToListOperationElementToAppendArgumentRef=Ch,h.appendToListOperationError=jh,h.appendToListOperationErrorParentRef=gh,h.appendToListOperationListArgument=Rd,h.appendToListOperationListArgumentParentRef=Mh,h.appendToListOperationListArgumentRef=Ph,h.appendToListOperationListDataType=wh,h.appendToListOperationResultListDataType=_h,h.appendToListOperationResultListReturn=Uh,h.appendToListOperationResultListReturnParentRef=Lh,h.appendToListOperationResultListReturnRef=Bh,h.appendToListOperationSecondListDataType=Vh,h.applyNewScope=K,h.argumentDeclarationValidation=k7,h.asGenerationActionExample=Yi,h.booleanPrototype=er,h.breakStatementValidation=P7,h.calculateNewParentBasedOnCallers=qc,h.capitalizeFirstLetter=Kt,h.changeSetJSONRecordToUniqueIds=y7,h.checkAreDataTypesCompatible=Ri,h.checkAreDefinitionEntitiesCompatibleAsDataType=FO,h.checkArePropertiesCompatibleAsDataType=GO,h.checkHasMetadataChanged=pt,h.checkImplementationsOverlap=vr,h.checkIsBranchDependentButNotDirectlyOnBranch=Ma,h.checkIsBranchDependentOnBranch=dJ,h.checkIsCallableEntityReachable=ga,h.checkIsCanvasEntity=wJ,h.checkIsDetachedBranch=YP,h.checkIsDetachedBranchShallow=tf,h.checkIsGlobalVariable=OJ,h.checkIsGloballyDeclared=ef,h.checkIsMethod=XP,h.checkIsNestedScope=ed,h.checkScopeCompatibility=Ua,h.cloneProject=OW,h.conditionValidation=B7,h.continueStatementValidation=v7,h.convertToAbstract=sJ,h.convertToNonAbstract=aJ,h.convertToNonStatic=lJ,h.convertToStatic=oJ,h.countedLoopActionDescriptor=Ls,h.countedLoopActionDescriptorDynamicReturnDeclaration=lT,h.countedLoopActionDescriptorDynamicReturnDeclarationParentRef=oT,h.countedLoopActionDescriptorStringArgumentDeclaration=aT,h.countedLoopActionDescriptorStringArgumentDeclarationDataType=nT,h.countedLoopActionDescriptorStringArgumentDeclarationDataTypeDefaultValue=iT,h.countedLoopActionDescriptorStringArgumentDeclarationDataTypeDefaultValueParentRef=tT,h.countedLoopActionDescriptorStringArgumentDeclarationDataTypeParentRef=rT,h.countedLoopActionDescriptorStringArgumentDeclarationParentRef=sT,h.countedLoopBodyActionDescriptor=ao,h.countedLoopBodyActionDescriptorAnyDynamicArgument=fT,h.countedLoopBodyActionDescriptorAnyDynamicArgumentParentRef=cT,h.countedLoopBodyActionDescriptorAnyDynamicReturn=hT,h.countedLoopBodyActionDescriptorAnyDynamicReturnParentRef=yT,h.countedLoopBodyActionDescriptorIterationNumberArgumentDeclaration=Gd,h.countedLoopBodyActionDescriptorIterationNumberArgumentDeclarationDataType=uT,h.countedLoopBodyActionDescriptorIterationNumberArgumentDeclarationDataTypeParentRef=dT,h.countedLoopBodyActionDescriptorIterationNumberArgumentDeclarationParentRef=pT,h.createDefinitionEntityFromJSONObject=Jl,h.createEntityError=de,h.createNestedDataTypeForEntity=Q1,h.createNewInstanceOperation=tn,h.createNewInstanceOperationEntityToInstanciateArgument=Vm,h.createNewInstanceOperationEntityToInstanciateArgumentRef=Pm,h.createNewInstanceOperationEntityToInstanciateDataType=wm,h.createNewInstanceOperationError=Nm,h.createNewInstanceOperationErrorParentRef=Mm,h.createNewInstanceOperationNewEntityDataArgument=Om,h.createNewInstanceOperationNewEntityDataArgumentDataType=Dm,h.createNewInstanceOperationNewEntityDataArgumentDataTypeParentRef=Rm,h.createNewInstanceOperationNewEntityDataArgumentParentRef=bm,h.createNewInstanceOperationOutputEntityDeclaration=_m,h.createNewInstanceOperationOutputEntityDeclarationParentRef=Bm,h.createNewInstanceOperationRef=Cm,h.createSemanticId=XO,h.createStateFromGenerationTargetType=KJ,h.createStateFromType=ct,h.createStateFromTypeAndSubscribe=C,h.cronJobBuiltInBaseEntity=co,h.cronJobBuiltInBaseEntityExpressionProperty=GI,h.cronJobBuiltInBaseEntityExpressionPropertyDataTypeRef=Ow,h.cronJobBuiltInBaseEntityExpressionPropertyRef=jI,h.cronJobBuiltInBaseEntityRef=$I,h.cronJobTriggeredFunctionDeclarationBlueprint=Qd,h.cronJobTriggeredFunctionDeclarationBlueprintParentRef=UI,h.dataTypeCompatibilityToErrorExplanation=z1,h.dataTypeValidation=A7,h.datePrototype=Li,h.dateValueAutogenerationSchema=fp,h.definitionEntityToZodSchema=RE,h.definitionEntityValidation=WJ,h.deletePersistedEntityMethod=Xd,h.deletePersistedEntityMethodParentRef=EI,h.deleteRootProject=wW,h.endpointBuiltInBaseEntity=js,h.endpointBuiltInBaseEntityRef=AT,h.endpointBuiltInBaseEntityRefFour=iI,h.endpointBuiltInBaseEntityRefThree=BT,h.endpointBuiltInBaseEntityRefTwo=PT,h.endpointBuiltInCorsProperty=bT,h.endpointBuiltInCorsPropertyDataType=ET,h.endpointBuiltInCorsPropertyDataTypeRef=TT,h.endpointBuiltInCorsPropertyRef=IT,h.endpointBuiltInMethodProperty=xd,h.endpointBuiltInMethodPropertyDataType=VT,h.endpointBuiltInMethodPropertyDataTypeRef=wT,h.endpointBuiltInMethodPropertyRef=CT,h.endpointBuiltInPathProperty=Fd,h.endpointBuiltInPathPropertyDataType=OT,h.endpointBuiltInPathPropertyDataTypeRef=RT,h.endpointBuiltInPathPropertyRef=DT,h.endpointPathParamsArgumentDeclaration=Sd,h.endpointPathParamsArgumentDeclarationRef=FT,h.endpointPathParamsVariableDataType=xT,h.endpointPathParamsVariableDataTypeRef=GT,h.endpointReachedTriggerActionDescriptor=Yd,h.endpointReachedTriggerActionDescriptorRef=kT,h.endpointReachedTriggerActionDescriptorRefFour=qT,h.endpointReachedTriggerActionDescriptorRefThree=ZT,h.endpointReachedTriggerActionDescriptorRefTwo=ST,h.endpointRequestBodyArgumentDeclaration=qd,h.endpointRequestBodyArgumentDeclarationRef=LT,h.endpointRequestBodyVariableDataType=UT,h.endpointRequestHeadersArgumentDeclaration=kd,h.endpointRequestHeadersArgumentDeclarationRef=MT,h.endpointRequestHeadersVariableDataType=NT,h.endpointRequestHeadersVariableDataTypeRef=_T,h.endpointRequestQueryParamsArgumentDeclaration=Zd,h.endpointRequestQueryParamsArgumentDeclarationRef=jT,h.endpointRequestQueryParamsVariableDataType=$T,h.endpointRequestQueryParamsVariableDataTypeRef=gT,h.endpointResponseBodyDataType=eI,h.endpointResponseBodyReturnDeclaration=zd,h.endpointResponseBodyReturnDeclarationRef=QT,h.endpointResponseCodeDataType=WT,h.endpointResponseCodeReturnDeclaration=Jd,h.endpointResponseCodeReturnDeclarationRef=JT,h.endpointResponseHeadersDataType=KT,h.endpointResponseHeadersDataTypeRef=YT,h.endpointResponseHeadersReturnDeclaration=Wd,h.endpointResponseHeadersReturnDeclarationRef=HT,h.endpointReturnStatementRef=zT,h.endpointReturnStatementRefThree=tI,h.endpointReturnStatementRefTwo=XT,h.enrichFromKnownEntities=Na,h.enumOptionsProperty=hf,h.enumOptionsPropertyDataType=ff,h.enumOptionsPropertyDataTypeRef=pf,h.enumOptionsPropertyRef=cf,h.enumPrototype=tr,h.enumPrototypeRef=yf,h.executionBuiltInBaseEntity=fo,h.executionBuiltInEntityAbortMethod=eu,h.executionBuiltInEntityAbortMethodParentRef=FI,h.filterOutDuplicateEntities=p,h.filterOutDuplicateErrors=C3,h.findEntityFromKeys=Sc,h.findReferenceToSelfInList=yP,h.findReferencesToSelfInProject=TJ,h.flattenActionDescriptor=hP,h.flattenArgumentDeclaration=mP,h.flattenBreakStatement=vP,h.flattenBuiltInBaseEntity=TP,h.flattenCalls=Hi,h.flattenCanvasAncestorsUntil=Ds,h.flattenCondition=IP,h.flattenContinueStatement=EP,h.flattenDataType=bP,h.flattenDefinitionEntity=AP,h.flattenDefinitionEntityExtensionAndImplementationTypes=Xc,h.flattenDefinitionEntityExtensionTypes=Xl,h.flattenDefinitionEntityExtensions=Hc,h.flattenDefinitionEntityImplementations=Kc,h.flattenDefinitionEntityImplementionTypes=Kl,h.flattenDerivedCanvasEntities=ai,h.flattenDetachedBranch=KP,h.flattenElementCalls=it,h.flattenElementCallsOnTheSameScope=vJ,h.flattenEntity=U,h.flattenFunctionCall=RP,h.flattenFunctionDeclaration=DP,h.flattenGlobalEvent=OP,h.flattenInputMap=PP,h.flattenInstalledProject=wP,h.flattenInternalCall=CP,h.flattenLiteralValue=VP,h.flattenLoop=BP,h.flattenOperation=_P,h.flattenOutputMap=MP,h.flattenPrimitiveEntity=NP,h.flattenProject=LP,h.flattenProjectElements=fP,h.flattenProperty=UP,h.flattenRelatedCanvasElementsOnTheLeft=WP,h.flattenRelatedCanvasElementsOnTheRight=JP,h.flattenReturnDeclaration=gP,h.flattenReturnStatement=jP,h.flattenSearch=$P,h.flattenValueDescriptor=GP,h.flattenVariableDeclaration=FP,h.flattenVariableInstance=xP,h.flattenVariableReads=cP,h.flattenVariableWrites=pP,h.flattenVariables=ze,h.fromChangeSetToRecordChangeSet=UJ,h.fromZodParseToEntityGenerationErrors=Mc,h.functionCallValidation=nJ,h.functionDeclarationValidation=E7,h.generate=VV,h.generateActionExample=K7,h.generateExecutionDataType=s7,h.generateIdFromStrategy=ht,h.generateMutablePropertiesExplanation=gl,h.generateRandomBoolean=HE,h.generateRandomDate=wE,h.generateRandomDateAfter=DE,h.generateRandomDateBefore=OE,h.generateRandomDateBetweenRange=PE,h.generateRandomNumber=qE,h.generateRandomNumberAfter=kE,h.generateRandomNumberBefore=SE,h.generateRandomNumberBetweenRange=ZE,h.generateRandomText=YE,h.generateRandomTextAfter=JE,h.generateRandomTextBefore=WE,h.generateRandomTextBetweenRange=zE,h.generateUniqueUUID=xE,h.getAllActionDescriptorsForConditions=Sl,h.getAllActionDescriptorsForGlobalEvents=xl,h.getAllActionDescriptorsForLoops=kl,h.getAllActionDescriptorsForOperations=tJ,h.getAllBuiltInEntityIds=_i,h.getAllGloballyDeclaredFunctionDeclarationsExplanation=q1,h.getBaseBuiltInEntities=xt,h.getBaseSchemaBasedOnType=j1,h.getBuiltInEntityOwner=Kr,h.getCallableEntityReferenceSchema=Pt,h.getCallableEntityTypeSchema=wD,h.getCalledBy=hi,h.getCallerEntityReferenceSchema=MS,h.getCallerEntityTypeSchema=_S,h.getCalls=Wc,h.getCanvasEntitiesDerivedFromInternalCalls=qP,h.getCanvasEntitiesDerivedFromWrites=Os,h.getCanvasEntityDerivedFromValueReadingEntity=Hl,h.getCanvasEntityDerivedFromValueReadingEntityFromTransfer=ZP,h.getCanvasEntityReferenceSchema=YS,h.getCanvasEntityTypeSchema=zS,h.getChildrenEntityWithValues=pJ,h.getColumnProperties=MJ,h.getCommonAncestor=Jc,h.getCommonChildren=eP,h.getDatabaseEntities=BJ,h.getDatabaseEntity=NJ,h.getDeclaration=Cn,h.getDeepestScope=ew,h.getDefinitionEntityExtends=Ps,h.getDraggableCallableEntityReferenceSchema=VD,h.getDraggableCallableEntityTypeSchema=CD,h.getDraggableCallerEntityReferenceSchema=LS,h.getDraggableCallerEntityTypeSchema=NS,h.getDraggableExecutableEntityReferenceSchema=$S,h.getDraggableExecutableEntityTypeSchema=jS,h.getDraggablePassThroughCallableEntityReferenceSchema=bl,h.getDraggablePassThroughCallableEntityTypeSchema=Al,h.getDraggablePlayableEntityReferenceSchema=SS,h.getDraggablePlayableEntityTypeSchema=kS,h.getEntitiesCreatedSinceInitialization=ad,h.getEntityArgumentDeclarations=Yc,h.getEntityInputMaps=kP,h.getEntityOutputMaps=bJ,h.getEntityReferenceSchema=WS,h.getEntityReturnDeclarations=SP,h.getEntityTypeSchema=JS,h.getEntityWithLogicScopeReferenceSchema=fr,h.getEntityWithLogicScopeTypeSchema=GS,h.getEntityWithValueReferenceSchema=PD,h.getEntityWithValueTypeSchema=BS,h.getEntryPointEntityReferenceSchema=Rt,h.getEntryPointEntityTypeSchema=_r,h.getEventEntityReferenceSchema=Il,h.getEventEntityTypeSchema=Tl,h.getExecutableEntityReferenceSchema=gS,h.getExecutableEntityTypeSchema=US,h.getExtendedBuiltInEntity=RJ,h.getExtendedDefinitionEntity=Qc,h.getGenerationTargetSchemaBasedOnType=$1,h.getHeadIfPartOfDetachedBranch=HP,h.getHighestScope=QP,h.getImplementedBuiltInEntity=DJ,h.getIsInteractive=Ql,h.getLastInListOperation=bd,h.getLastInListOperationError=Rh,h.getLastInListOperationErrorParentRef=bh,h.getLastInListOperationInputListArgument=Ih,h.getLastInListOperationInputListArgumentParentRef=Th,h.getLastInListOperationInputListArgumentRef=yh,h.getLastInListOperationInputListDataType=hh,h.getLastInListOperationOutputElementDataType=vh,h.getLastInListOperationOutputElementReturn=Ah,h.getLastInListOperationOutputElementReturnParentRef=Eh,h.getLastInListOperationOutputElementReturnRef=mh,h.getLinkedEntitiesFromArgumentDeclaration=mJ,h.getLowestPersistedEntityImplementation=zP,h.getParentCallableEntity=tP,h.getParentCallerEntity=rP,h.getParentCanvasEntities=Xt,h.getParentCanvasEntity=wt,h.getParentCanvasEntityFromTransfer=Wl,h.getParentEntryPoint=uJ,h.getParentPassthroughCallableEntity=iP,h.getPassThroughCallableEntityReferenceSchema=tt,h.getPassThroughCallableEntityTypeSchema=El,h.getPeristedEntities=VJ,h.getPlayableEntityReferenceSchema=xS,h.getPlayableEntityTypeSchema=FS,h.getProject=PW,h.getPrototypeByType=La,h.getRecusriveParentsIds=id,h.getReferenceEntityId=_,h.getReferencedEntitiesStateOrErrors=$l,h.getReferencedEntityStateOrErrors=Nc,h.getReferencedIds=Yl,h.getRelatedCanvasElementsOnTheLeft=Ln,h.getRelatedCanvasElementsOnTheLeftFromTransfer=IJ,h.getRelatedCanvasElementsOnTheRight=Hr,h.getRootEntryPointScopeOwner=rf,h.getScopeOwner=kt,h.getStateClassFromType=LJ,h.getTerminationReferenceSchema=qS,h.getTerminationTypeSchema=ZS,h.getTouchedCanvasEntitiesFromChangeSet=gJ,h.getUsedArgFromDeclaration=EJ,h.getUsedReturnFromDeclaration=AJ,h.getValueReadingEntityReferenceSchema=OD,h.getValueReadingEntityTypeSchema=cr,h.getValueWritingEntityReferenceSchema=VS,h.getValueWritingEntityTypeSchema=Ea,h.getVariableFromInputMapping=sP,h.getVariableFromReturnVariablePointer=lP,h.getVariableReferenceSchema=Br,h.getVariableTypeSchema=bn,h.getVariablesFromArgumentDeclarations=zl,h.getVariablesFromInputMaps=aP,h.getVariablesFromOutputMapping=dP,h.getVariablesFromOutputMaps=uP,h.getVariablesFromReturnDeclarations=oP,h.getVariablesInSameOrHigherScope=Tc,h.getWrites=zc,h.globalEventValidation=O7,h.groupCallsBasedOnParallelizableExecution=fJ,h.handleAfterEntityImplementationSideEffects=X1,h.handleBeforeEntityImplementationSideEffects=K1,h.httpRequestBodyArgument=Xa,h.httpRequestBodyArgumentRef=s0,h.httpRequestBodyDataType=a0,h.httpRequestHeadersArgument=Ka,h.httpRequestHeadersArgumentRef=r0,h.httpRequestHeadersDataType=n0,h.httpRequestMethodArgument=Ya,h.httpRequestMethodArgumentRef=t0,h.httpRequestMethodDataType=i0,h.httpRequestMethodDataTypeRef=Qm,h.httpRequestOperation=Bs,h.httpRequestOperationErrorValueDescriptor=Bd,h.httpRequestOperationErrorValueDescriptorDatatype=O0,h.httpRequestOperationErrorValueDescriptorRef=D0,h.httpRequestOperationRef=E0,h.httpRequestOperationRefEight=b0,h.httpRequestOperationRefFive=T0,h.httpRequestOperationRefFour=v0,h.httpRequestOperationRefNine=R0,h.httpRequestOperationRefSeven=A0,h.httpRequestOperationRefSix=I0,h.httpRequestOperationRefThree=m0,h.httpRequestOperationRefTwo=h0,h.httpRequestQueryParamsArgument=Vd,h.httpRequestQueryParamsArgumentRef=Km,h.httpRequestQueryParamsDataType=Xm,h.httpRequestVariableURLArgument=Ha,h.httpRequestVariableURLArgumentRef=Ym,h.httpRequestVariableURLDataType=Hm,h.httpRequestVariableURLDataTypeRef=Wm,h.httpResponseBodyReturnDataType=y0,h.httpResponseBodyReturnDataTypeRef=c0,h.httpResponseBodyReturnReturn=to,h.httpResponseBodyReturnReturnRef=f0,h.httpResponseCodeDataType=l0,h.httpResponseCodeReturn=Qa,h.httpResponseCodeReturnRef=o0,h.httpResponseHeadersDataType=p0,h.httpResponseHeadersDataTypeRef=d0,h.httpResponseHeadersReturn=eo,h.httpResponseHeadersReturnRef=u0,h.implement=ql,h.inferArgumentDeclarationDataType=xO,h.inferDataType=Ji,h.inferInputMapDataType=hc,h.inferOutputMapDataType=vc,h.inferPropertyDataType=ZO,h.inferReturnDeclarationDataType=mc,h.inferValueDescriptorDataType=qO,h.inferVariableDeclarationDataType=SO,h.inferVariableInstanceDataType=kO,h.initBaseProjectEntity=sd,h.initProject=cw,h.initProjectFromFetchResult=pw,h.inputMapValidation=g7,h.installedProjectValidation=L7,h.internalCallValidation=U7,h.isPromise=kc,h.iterateOverListActionDescriptorListArgumentDeclaration=sv,h.iterateOverListActionDescriptorListArgumentDeclarationDataType=rv,h.iterateOverListActionDescriptorListArgumentDeclarationDataTypeParentRef=iv,h.iterateOverListActionDescriptorListArgumentDeclarationParentRef=nv,h.iterateOverListLoopActionDescriptor=Er,h.iterateOverListLoopActionDescriptorDynamicReturnDeclaration=ov,h.iterateOverListLoopActionDescriptorDynamicReturnDeclarationParentRef=av,h.iterateOverListLoopBodyActionDescriptor=Ns,h.iterateOverListLoopBodyActionDescriptorAnyDynamicArgument=mv,h.iterateOverListLoopBodyActionDescriptorAnyDynamicArgumentParentRef=hv,h.iterateOverListLoopBodyActionDescriptorAnyDynamicReturn=Tv,h.iterateOverListLoopBodyActionDescriptorAnyDynamicReturnParentRef=vv,h.iterateOverListLoopBodyActionDescriptorCurrentValueArgumentDeclaration=so,h.iterateOverListLoopBodyActionDescriptorCurrentValueArgumentDeclarationDataType=dv,h.iterateOverListLoopBodyActionDescriptorCurrentValueArgumentDeclarationDataTypeParentRef=lv,h.iterateOverListLoopBodyActionDescriptorCurrentValueArgumentDeclarationParentRef=uv,h.iterateOverListLoopBodyActionDescriptorIterationNumberArgumentDeclaration=yv,h.iterateOverListLoopBodyActionDescriptorIterationNumberArgumentDeclarationDataType=cv,h.iterateOverListLoopBodyActionDescriptorIterationNumberArgumentDeclarationDataTypeParentRef=pv,h.iterateOverListLoopBodyActionDescriptorIterationNumberArgumentDeclarationParentRef=fv,h.iterateOverObjectKeysActionDescriptorObjectArgumentDeclaration=Rv,h.iterateOverObjectKeysActionDescriptorObjectArgumentDeclarationDataType=Av,h.iterateOverObjectKeysActionDescriptorObjectArgumentDeclarationDataTypeParentRef=Ev,h.iterateOverObjectKeysActionDescriptorObjectArgumentDeclarationParentRef=bv,h.iterateOverObjectKeysLoopActionDescriptor=Sn,h.iterateOverObjectKeysLoopActionDescriptorDynamicReturnDeclaration=Ov,h.iterateOverObjectKeysLoopActionDescriptorDynamicReturnDeclarationParentRef=Dv,h.iterateOverObjectKeysLoopBodyActionDescriptor=Ud,h.iterateOverObjectKeysLoopBodyActionDescriptorAnyDynamicArgument=Lv,h.iterateOverObjectKeysLoopBodyActionDescriptorAnyDynamicArgumentParentRef=Nv,h.iterateOverObjectKeysLoopBodyActionDescriptorAnyDynamicReturn=gv,h.iterateOverObjectKeysLoopBodyActionDescriptorAnyDynamicReturnParentRef=Uv,h.iterateOverObjectKeysLoopBodyActionDescriptorCurrentValueArgumentDeclaration=Ld,h.iterateOverObjectKeysLoopBodyActionDescriptorCurrentValueArgumentDeclarationDataType=wv,h.iterateOverObjectKeysLoopBodyActionDescriptorCurrentValueArgumentDeclarationDataTypeParentRef=Pv,h.iterateOverObjectKeysLoopBodyActionDescriptorCurrentValueArgumentDeclarationParentRef=Cv,h.iterateOverObjectKeysLoopBodyActionDescriptorIterationNumberArgumentDeclaration=Mv,h.iterateOverObjectKeysLoopBodyActionDescriptorIterationNumberArgumentDeclarationDataType=Bv,h.iterateOverObjectKeysLoopBodyActionDescriptorIterationNumberArgumentDeclarationDataTypeParentRef=Vv,h.iterateOverObjectKeysLoopBodyActionDescriptorIterationNumberArgumentDeclarationParentRef=_v,h.iterateOverObjectValuesActionDescriptorObjectArgumentDeclaration=xv,h.iterateOverObjectValuesActionDescriptorObjectArgumentDeclarationDataType=Gv,h.iterateOverObjectValuesActionDescriptorObjectArgumentDeclarationDataTypeParentRef=$v,h.iterateOverObjectValuesActionDescriptorObjectArgumentDeclarationParentRef=Fv,h.iterateOverObjectValuesLoopActionDescriptor=Zn,h.iterateOverObjectValuesLoopActionDescriptorDynamicReturnDeclaration=Sv,h.iterateOverObjectValuesLoopActionDescriptorDynamicReturnDeclarationParentRef=kv,h.iterateOverObjectValuesLoopBodyActionDescriptor=jd,h.iterateOverObjectValuesLoopBodyActionDescriptorAnyDynamicArgument=Xv,h.iterateOverObjectValuesLoopBodyActionDescriptorAnyDynamicArgumentParentRef=Kv,h.iterateOverObjectValuesLoopBodyActionDescriptorAnyDynamicReturn=eT,h.iterateOverObjectValuesLoopBodyActionDescriptorAnyDynamicReturnParentRef=Qv,h.iterateOverObjectValuesLoopBodyActionDescriptorCurrentValueArgumentDeclaration=gd,h.iterateOverObjectValuesLoopBodyActionDescriptorCurrentValueArgumentDeclarationDataType=qv,h.iterateOverObjectValuesLoopBodyActionDescriptorCurrentValueArgumentDeclarationDataTypeParentRef=Zv,h.iterateOverObjectValuesLoopBodyActionDescriptorCurrentValueArgumentDeclarationParentRef=Jv,h.iterateOverObjectValuesLoopBodyActionDescriptorIterationNumberArgumentDeclaration=Hv,h.iterateOverObjectValuesLoopBodyActionDescriptorIterationNumberArgumentDeclarationDataType=zv,h.iterateOverObjectValuesLoopBodyActionDescriptorIterationNumberArgumentDeclarationDataTypeParentRef=Wv,h.iterateOverObjectValuesLoopBodyActionDescriptorIterationNumberArgumentDeclarationParentRef=Yv,h.iterateOverStringActionDescriptorDynamicReturnDeclaration=Z0,h.iterateOverStringActionDescriptorDynamicReturnDeclarationParentRef=S0,h.iterateOverStringActionDescriptorStringArgumentDeclaration=k0,h.iterateOverStringActionDescriptorStringArgumentDeclarationDataType=F0,h.iterateOverStringActionDescriptorStringArgumentDeclarationDataTypeParentRef=G0,h.iterateOverStringActionDescriptorStringArgumentDeclarationParentRef=x0,h.iterateOverStringLoopActionDescriptor=Ms,h.iterateOverStringLoopBodyActionDescriptor=no,h.iterateOverStringLoopBodyActionDescriptorAnyDynamicArgument=X0,h.iterateOverStringLoopBodyActionDescriptorAnyDynamicArgumentParentRef=K0,h.iterateOverStringLoopBodyActionDescriptorAnyDynamicReturn=ev,h.iterateOverStringLoopBodyActionDescriptorAnyDynamicReturnParentRef=Q0,h.iterateOverStringLoopBodyActionDescriptorCurrentValueArgumentDeclaration=Md,h.iterateOverStringLoopBodyActionDescriptorCurrentValueArgumentDeclarationDataType=J0,h.iterateOverStringLoopBodyActionDescriptorCurrentValueArgumentDeclarationDataTypeParentRef=q0,h.iterateOverStringLoopBodyActionDescriptorCurrentValueArgumentDeclarationParentRef=W0,h.iterateOverStringLoopBodyActionDescriptorIterationNumberArgumentDeclaration=Nd,h.iterateOverStringLoopBodyActionDescriptorIterationNumberArgumentDeclarationDataType=Y0,h.iterateOverStringLoopBodyActionDescriptorIterationNumberArgumentDeclarationDataTypeParentRef=z0,h.iterateOverStringLoopBodyActionDescriptorIterationNumberArgumentDeclarationParentRef=H0,h.joinListOperation=Id,h.joinListOperationError=Wy,h.joinListOperationErrorParentRef=Jy,h.joinListOperationFirstListArgument=xy,h.joinListOperationFirstListArgumentParentRef=Fy,h.joinListOperationFirstListArgumentRef=Ly,h.joinListOperationFirstListDataType=Uy,h.joinListOperationResultListDataType=Gy,h.joinListOperationResultListReturn=qy,h.joinListOperationResultListReturnParentRef=Zy,h.joinListOperationResultListReturnRef=$y,h.joinListOperationSecondListArgument=Sy,h.joinListOperationSecondListArgumentParentRef=ky,h.joinListOperationSecondListArgumentRef=gy,h.joinListOperationSecondListDataType=jy,h.joinListWithLastSeparator=ne,h.joinStringsOperation=Vs,h.joinStringsOperationDynamicStringArgument=fy,h.joinStringsOperationDynamicStringArgumentParentRef=cy,h.joinStringsOperationDynamicStringArgumentRef=uy,h.joinStringsOperationDynamicStringDataType=py,h.joinStringsOperationError=dy,h.joinStringsOperationErrorParentRef=ly,h.joinStringsOperationFirstStringArgument=Ja,h.joinStringsOperationFirstStringArgumentParentRef=Qf,h.joinStringsOperationFirstStringArgumentRef=Wf,h.joinStringsOperationFirstStringDataType=zf,h.joinStringsOperationResultStringDataType=Xf,h.joinStringsOperationResultStringReturn=Cs,h.joinStringsOperationResultStringReturnParentRef=oy,h.joinStringsOperationResultStringReturnRef=Kf,h.joinStringsOperationSecondStringArgument=Wa,h.joinStringsOperationSecondStringArgumentParentRef=ay,h.joinStringsOperationSecondStringArgumentRef=Yf,h.joinStringsOperationSecondStringDataType=Hf,h.joinStringsOperationSeparatorStringArgument=sy,h.joinStringsOperationSeparatorStringArgumentParentRef=ny,h.joinStringsOperationSeparatorStringArgumentRef=ey,h.joinStringsOperationSeparatorStringDataType=ry,h.joinStringsOperationSeparatorStringDataTypeDefaultValue=iy,h.joinStringsOperationSeparatorStringDataTypeDefaultValueParentRef=ty,h.keyValuePrototype=Fn,h.literalValudValidation=S7,h.loopValidation=C7,h.lowercaseFirstLetter=Bl,h.manualFlowActionDescriptorDeclarationArgumentDeclaration=_d,h.manualFlowActionDescriptorDeclarationArgumentDeclarationDataType=M0,h.manualFlowActionDescriptorDeclarationArgumentDeclarationDataTypeParentRef=_0,h.manualFlowActionDescriptorDeclarationArgumentDeclarationParentRef=N0,h.manualFlowLoopActionDescriptor=io,h.manualFlowLoopActionDescriptorDynamicReturnDeclaration=B0,h.manualFlowLoopActionDescriptorDynamicReturnDeclarationParentRef=V0,h.manualFlowLoopBodyActionDescriptor=ro,h.manualFlowLoopBodyActionDescriptorAnyDynamicArgument=U0,h.manualFlowLoopBodyActionDescriptorAnyDynamicArgumentParentRef=L0,h.manualFlowLoopBodyActionDescriptorAnyDynamicReturn=j0,h.manualFlowLoopBodyActionDescriptorAnyDynamicReturnParentRef=g0,h.mapActionDescriptorToTypeItRepresents=CJ,h.mergeEntityErrorsList=V3,h.mergeListOfEntities=PJ,h.methodDefaultValue=e0,h.mockClientProject=lp,h.moreThanOrEqualCondition=Yn,h.moreThanOrEqualConditionLeftHandArgument=zI,h.moreThanOrEqualConditionLeftHandArgumentDataType=JI,h.moreThanOrEqualConditionLeftHandArgumentDataTypeParentRef=qI,h.moreThanOrEqualConditionLeftHandArgumentParentRef=WI,h.moreThanOrEqualConditionRightHandArgument=XI,h.moreThanOrEqualConditionRightHandArgumentDataType=HI,h.moreThanOrEqualConditionRightHandArgumentDataTypeParentRef=YI,h.moreThanOrEqualConditionRightHandArgumentParentRef=KI,h.notEmptyCondition=ln,h.notEmptyConditionArgument=SI,h.notEmptyConditionRef=kI,h.nullPrototype=pd,h.numberAdditionOperation=qa,h.numberAdditionOperationDynamicSummandArgument=Vf,h.numberAdditionOperationDynamicSummandArgumentType=Cf,h.numberAdditionOperationDynamicSummandArgumentTypeParentRef=wf,h.numberAdditionOperationError=Pf,h.numberAdditionOperationErrorParentRef=Of,h.numberAdditionOperationFirstNumberArgument=cd,h.numberAdditionOperationFirstNumberArgumentRef=vf,h.numberAdditionOperationFirstNumberDataType=Tf,h.numberAdditionOperationRef=Rf,h.numberAdditionOperationRefThree=yd,h.numberAdditionOperationRefTwo=Df,h.numberAdditionOperationResultNumberDataType=bf,h.numberAdditionOperationResultNumberReturn=hd,h.numberAdditionOperationResultNumberReturnRef=Af,h.numberAdditionOperationSecondNumberArgument=fd,h.numberAdditionOperationSecondNumberArgumentRef=If,h.numberAdditionOperationSecondNumberDataType=Ef,h.numberPrototype=ve,h.numberSubtractionOperation=vd,h.numberSubtractionOperationDynamicSubtrahendArgument=qf,h.numberSubtractionOperationDynamicSubtrahendArgumentType=Zf,h.numberSubtractionOperationDynamicSubtrahendArgumentTypeParentRef=Sf,h.numberSubtractionOperationError=kf,h.numberSubtractionOperationErrorParentRef=xf,h.numberSubtractionOperationFirstNumberArgument=gf,h.numberSubtractionOperationFirstNumberArgumentRef=Bf,h.numberSubtractionOperationFirstNumberDataType=_f,h.numberSubtractionOperationRef=md,h.numberSubtractionOperationRefThree=Gf,h.numberSubtractionOperationRefTwo=jf,h.numberSubtractionOperationResultNumberDataType=Uf,h.numberSubtractionOperationResultNumberReturn=Ff,h.numberSubtractionOperationResultNumberReturnRef=Lf,h.numberSubtractionOperationSecondNumberArgument=$f,h.numberSubtractionOperationSecondNumberArgumentRef=Mf,h.numberSubtractionOperationSecondNumberDataType=Nf,h.numberValueAutogenerationSchema=cp,h.operationValidation=D7,h.outputMapValidation=G7,h.parallelExecutionOperation=Oi,h.parallelExecutionOperationError=Xh,h.parallelExecutionOperationErrorParentRef=Kh,h.parallelExecutionOperationListOfExecutionResultsDataType=zh,h.parallelExecutionOperationListOfExecutionResultsReturn=Pd,h.parallelExecutionOperationListOfExecutionResultsReturnRef=Wh,h.parallelExecutionOperationListOfFunctionsArgument=Od,h.parallelExecutionOperationListOfFunctionsArgumentDatatype=Jh,h.parallelExecutionOperationListOfFunctionsArgumentRef=qh,h.parallelExecutionOperationListOfFunctionsBlueprint=Zh,h.parallelExecutionOperationListOfFunctionsBlueprintDynamicInput=kh,h.parallelExecutionOperationListOfFunctionsBlueprintDynamicInputParentRef=xh,h.parallelExecutionOperationListOfFunctionsBlueprintDynamicOutput=Fh,h.parallelExecutionOperationListOfFunctionsBlueprintDynamicOutputParentRef=Gh,h.parallelExecutionOperationListOfFunctionsBlueprintParentRef=Sh,h.parallelExecutionOperationRef=Yh,h.parallelExecutionOperationRefThree=Hh,h.persistedBuiltInBaseEntity=Ct,h.persistedBuiltInBaseEntityDatabaseProperty=Jn,h.persistedBuiltInBaseEntityDatabasePropertyDataType=RI,h.persistedBuiltInBaseEntityDatabasePropertyDataTypeRef=Rw,h.persistedBuiltInBaseEntityDatabasePropertyParentRef=DI,h.persistedBuiltInBaseEntityDatabasePropertyRef=bI,h.persistedBuiltInBaseEntityPrimaryKeyProperty=Wn,h.persistedBuiltInBaseEntityPrimaryKeyPropertyDataType=MI,h.persistedBuiltInBaseEntityPrimaryKeyPropertyNumberDataTypeOption=PI,h.persistedBuiltInBaseEntityPrimaryKeyPropertyNumberDataTypeOptionParentRef=OI,h.persistedBuiltInBaseEntityPrimaryKeyPropertyParentRef=NI,h.persistedBuiltInBaseEntityPrimaryKeyPropertyRef=_I,h.persistedBuiltInBaseEntityPrimaryKeyPropertyStringDataTypeOption=CI,h.persistedBuiltInBaseEntityPrimaryKeyPropertyStringDataTypeOptionParentRef=wI,h.persistedBuiltInBaseEntityPrimaryKeyPropertyUUIDDataTypeOption=BI,h.persistedBuiltInBaseEntityPrimaryKeyPropertyUUIDDataTypeOptionParentRef=VI,h.processOutputGlobalValueDescriptorDataType=sE,h.processOutputGlobalValueDescriptorReturn=ho,h.processOutputGlobalValueDescriptorReturnRef=nE,h.projectPublicationCompletedGlobalEvent=yo,h.propertyToZodSchema=bE,h.propertyValidation=c7,h.relationalDatabaseBuiltInBaseEntity=ji,h.relationalDatabaseBuiltInBaseEntityAutoscalingProperty=Kd,h.relationalDatabaseBuiltInBaseEntityAutoscalingPropertyDataType=TI,h.relationalDatabaseBuiltInBaseEntityAutoscalingPropertyDataTypeRef=vI,h.relationalDatabaseBuiltInBaseEntityAutoscalingPropertyParentRef=II,h.relationalDatabaseBuiltInBaseEntityAutoscalingPropertyRef=mI,h.relationalDatabaseBuiltInBaseEntityDefaultProperty=Hd,h.relationalDatabaseBuiltInBaseEntityDefaultPropertyDataType=hI,h.relationalDatabaseBuiltInBaseEntityDefaultPropertyDataTypeRef=fI,h.relationalDatabaseBuiltInBaseEntityDefaultPropertyRef=yI,h.relationalDatabaseBuiltInBaseEntityIdentifierProperty=oo,h.relationalDatabaseBuiltInBaseEntityIdentifierPropertyDataType=sI,h.relationalDatabaseBuiltInBaseEntityIdentifierPropertyDataTypeRef=rI,h.relationalDatabaseBuiltInBaseEntityIdentifierPropertyRef=nI,h.relationalDatabaseBuiltInBaseEntityMinSizeProperty=po,h.relationalDatabaseBuiltInBaseEntityMinSizePropertyDataType=cI,h.relationalDatabaseBuiltInBaseEntityMinSizePropertyDataTypeRef=uI,h.relationalDatabaseBuiltInBaseEntityMinSizePropertyRef=pI,h.relationalDatabaseBuiltInBaseEntityPasswordProperty=uo,h.relationalDatabaseBuiltInBaseEntityPasswordPropertyDataType=dI,h.relationalDatabaseBuiltInBaseEntityPasswordPropertyDataTypeRef=bw,h.relationalDatabaseBuiltInBaseEntityPasswordPropertyRef=lI,h.relationalDatabaseBuiltInBaseEntityRef=qn,h.relationalDatabaseBuiltInBaseEntityUsernameProperty=lo,h.relationalDatabaseBuiltInBaseEntityUsernamePropertyDataType=oI,h.relationalDatabaseBuiltInBaseEntityUsernamePropertyDataTypeRef=Aw,h.relationalDatabaseBuiltInBaseEntityUsernamePropertyRef=aI,h.resolveActionDescriptorName=KO,h.resolveBaseEntityName=WO,h.resolveBuiltInBaseEntityDataTypeLabel=zO,h.resolveClonedEntityProject=mt,h.resolveConditionOperatorLabel=Ll,h.resolveDataType=_l,h.resolveDataTypeEntityOrNestedChildrenFromLiteralValue=Zc,h.resolveDataTypeLabel=Nl,h.resolveDefinitionEntityDataTypeLabel=u7,h.resolveEntityDataTypeLabel=d7,h.resolveEntityName=x,h.resolveFirstCallsSecond=yJ,h.resolveFirstWritesSecond=hJ,h.resolvePrimaryKeyProperty=_J,h.resolvePrimitiveEntityName=HO,h.resolveSearchName=YO,h.resolveVariableScope=a7,h.returnDeclarationValidation=h7,h.returnStatementValidation=m7,h.searchValidation=N7,h.sequentialExecutionOperation=nr,h.sequentialExecutionOperationError=Tm,h.sequentialExecutionOperationErrorParentRef=vm,h.sequentialExecutionOperationListOfExecutionResultsDataType=ym,h.sequentialExecutionOperationListOfExecutionResultsReturn=Cd,h.sequentialExecutionOperationListOfExecutionResultsReturnParentRef=mm,h.sequentialExecutionOperationListOfExecutionResultsReturnRef=fm,h.sequentialExecutionOperationListOfFunctionsArgument=wd,h.sequentialExecutionOperationListOfFunctionsArgumentDatatype=cm,h.sequentialExecutionOperationListOfFunctionsArgumentParentRef=hm,h.sequentialExecutionOperationListOfFunctionsArgumentRef=pm,h.sequentialExecutionOperationListOfFunctionsBlueprint=um,h.sequentialExecutionOperationListOfFunctionsBlueprintDynamicInput=dm,h.sequentialExecutionOperationListOfFunctionsBlueprintDynamicOutput=lm,h.softDeletePersistedEntityMethod=Dw,h.softDeletePersistedEntityMethodParentRef=LI,h.sortCallsBasedOnExecutionDependencies=nP,h.sortChildrenEntitiesBasedOnExecutionDependencies=cJ,h.splitListOperation=Ad,h.splitListOperationError=ph,h.splitListOperationErrorParentRef=uh,h.splitListOperationFirstOutputListDataType=eh,h.splitListOperationFirstOutputListReturn=ah,h.splitListOperationFirstOutputListReturnParentRef=sh,h.splitListOperationFirstOutputListReturnRef=Ed,h.splitListOperationInputListArgument=ih,h.splitListOperationInputListArgumentParentRef=th,h.splitListOperationInputListArgumentRef=Hy,h.splitListOperationInputListDataType=Ky,h.splitListOperationSecondOutputListDataType=oh,h.splitListOperationSecondOutputListReturn=dh,h.splitListOperationSecondOutputListReturnParentRef=lh,h.splitListOperationSplitIndexArgument=nh,h.splitListOperationSplitIndexArgumentParentRef=rh,h.splitListOperationSplitIndexArgumentRef=Xy,h.splitListOperationSplitIndexDataType=Qy,h.splitStringOperation=Td,h.splitStringOperationError=By,h.splitStringOperationErrorParentRef=Vy,h.splitStringOperationFirstPartResultStringDataType=Iy,h.splitStringOperationFirstPartResultStringReturn=Cy,h.splitStringOperationFirstPartResultStringReturnParentRef=wy,h.splitStringOperationFirstPartResultStringReturnRef=Ty,h.splitStringOperationIndexArgument=Oy,h.splitStringOperationIndexArgumentParentRef=Dy,h.splitStringOperationIndexArgumentRef=my,h.splitStringOperationIndexDataType=vy,h.splitStringOperationSecondPartResultStringDataType=Ay,h.splitStringOperationSecondPartResultStringReturn=Iw,h.splitStringOperationSecondPartResultStringReturnParentRef=Py,h.splitStringOperationSecondPartResultStringReturnRef=Ey,h.splitStringOperationStringArgument=Ry,h.splitStringOperationStringArgumentParentRef=by,h.splitStringOperationStringArgumentRef=yy,h.splitStringOperationStringDataType=hy,h.stringPrototype=se,h.stringValueAutogenerationSchema=pp,h.suggestNewIdForEntity=Oc,h.test_primitive_entities_export=CW,h.toCamelCase=o7,h.toEntityState=mi,h.toKebabCase=JO,h.toLowerCaseKebabCase=Ml,h.toPascalCase=l7,h.untypedDataPrototype=Ot,h.updateErrorsList=Ye,h.urlDefaultValue=zm,h.uuidPrototype=ir,h.validateArgumentDeclarationName=Rc,h.validateCalledByErrorIdInAction=Q7,h.validateCalledByIdInAction=X7,h.validateCallers=Z1,h.validateConditionEntityDeclaration=iJ,h.validateDataOperation=rn,h.validateDataOperationDataToValidateArgument=jm,h.validateDataOperationDataToValidateArgumentParentRef=gm,h.validateDataOperationDataToValidateArgumentRef=Lm,h.validateDataOperationDataToValidateDataType=Um,h.validateDataOperationEntityToMatchTypeArgument=xm,h.validateDataOperationEntityToMatchTypeArgumentParentRef=Fm,h.validateDataOperationEntityToMatchTypeArgumentRef=$m,h.validateDataOperationEntityToMatchTypeDataType=Gm,h.validateDataOperationError=qm,h.validateDataOperationErrorParentRef=Zm,h.validateDataOperationOutputEntityDeclaration=Sm,h.validateDataOperationOutputEntityDeclarationParentRef=km,h.validateDefinitionEntityName=Ic,h.validateEntryCaller=S1,h.validateErrorCaller=k1,h.validateFunctionCallDeclaration=J1,h.validateFunctionDeclarationName=Ec,h.validateGeneratedEntityParentIsNotBuiltInEntity=z7,h.validateGeneration=J7,h.validateGenerationTarget=ut,h.validateGenerationUpdate=W7,h.validateLoopEntityDeclaration=rJ,h.validateName=p7,h.validateOperationEntityDeclaration=W1,h.validatePropertyName=bc,h.validateReachability=mr,h.validateReadsValueInActionPayload=eJ,h.validateReferenceObject=jl,h.validateReferenceToOne=Lc,h.validateReferences=At,h.validateReturnDeclarationName=Dc,h.validateSuccessCaller=x1,h.validateValueReaderGenerationUpdate=_a,h.validateValueWritter=Fc,h.validateVariableDeclarationName=Ac,h.validateVariableInternalCallUse=xc,h.valueAutogenerationCurrentDateAndTimeSchema=nD,h.valueAutogenerationGenericSchema=rl,h.valueAutogenerationOptions=yp,h.valueAutogenerationOptionsSchema=rD,h.valueAutogenerationRandomBooleanSchema=up,h.valueAutogenerationRandomDateBetweenSchema=fD,h.valueAutogenerationRandomDateFromSchema=pD,h.valueAutogenerationRandomDateSchema=al,h.valueAutogenerationRandomDateUntilSchema=cD,h.valueAutogenerationRandomNumberBetweenSchema=oD,h.valueAutogenerationRandomNumberFromSchema=sD,h.valueAutogenerationRandomNumberSchema=nl,h.valueAutogenerationRandomNumberUntilSchema=aD,h.valueAutogenerationRandomSchema=fa,h.valueAutogenerationRandomTextBetweenSchema=uD,h.valueAutogenerationRandomTextFromSchema=lD,h.valueAutogenerationRandomTextSchema=sl,h.valueAutogenerationRandomTextUntilSchema=dD,h.valueAutogenerationRangeValueTypesSchema=ca,h.valueAutogenerationUniqueSchema=dp,h.valueDescriptorValidation=q7,h.variableDeclarationValidation=_7,h.variableInstanceValidation=M7,h.waitOperation=Zt,h.waitOperationMillisecondsNumberArgument=en,h.waitOperationMillisecondsNumberArgumentRef=tm,h.waitOperationMillisecondsNumberDataType=im,h.waitOperationOperationError=sm,h.waitOperationOperationErrorParentRef=nm,h.waitOperationRef=rm,Object.defineProperty(h,Symbol.toStringTag,{value:"Module"})});
408
+ Alternatively you can update the parent data-type entity with 'update' action to remove the existing value of the field.`,issue:null}))}return{errors:s,modifiedData:i}}get interactive(){return this.implements.length?this.implements.every(e=>e.interactive):!0}get allBasePropertiesFromExtendedAndImplementedEntities(){return p([...this.extends.reduce((e,t)=>[...[...t.ownDeclaredProperties,...t.allBasePropertiesFromExtendedAndImplementedEntities].filter(s=>!s.abstract),...e],[]),...this.implements.reduce((e,t)=>[...[...t.ownDeclaredProperties,...t.allBasePropertiesFromExtendedAndImplementedEntities].filter(s=>!s.abstract),...e],[])])}get extendedPropertiesFromOriginalParents(){return p(this.extends.reduce((e,t)=>{const i=[...t.ownDeclaredProperties,...t.extendedPropertiesFromOriginalParents].filter(s=>!s.abstract);return[...e,...i]},[]))}get implementedPropertiesFromOriginalParents(){return p([...this.extends.reduce((e,t)=>{const i=t.implementedPropertiesFromOriginalParents,s=[...t.ownDeclaredProperties].filter(l=>!!l.abstract&&!i.find(o=>o.name===l.name));return[...i,...s,...e]},[]),...this.implements.reduce((e,t)=>{const i=t.implementedPropertiesFromOriginalParents,s=[...t.ownDeclaredProperties].filter(l=>!!l.abstract&&!i.find(o=>o.name===l.name));return[...i,...s,...e]},[])].filter(e=>!!e.abstract))}get extendedProperties(){return this.properties.filter(e=>e.isExtendedProperty)}get ownDeclaredProperties(){return this.properties.filter(e=>!e.isExtendedProperty)}validateGeneratedUpdate(e){const t=[];return e.parent&&t.push(new w({id:`${this.id}--${R.InvalidParentUpdate}`,code:R.InvalidParentUpdate,severity:D.Error,message:`Entity of type '${this.type}' with id '${this.id}' cannot have the 'parent' property updated. The 'parent' on an '${this.type}', must be the root project as it is a globally declared entity.`,issue:null})),{errors:t,modifiedData:e}}subscribeDependents(e){return e.forEach(t=>{this.detachedDependents[t.entity.id]||(this.detachedDependents[t.entity.id]=t)}),this}syncDependents(){const e=[],t=[],i=[],s=[];return Object.values(this.detachedDependents).forEach(l=>{const o=l.entity.afterAllChildrenInitialized();e.push(...o.updated),t.push(...o.added),i.push(...o.removed),s.push(...o.affected)}),{updated:p(e),added:p(t),removed:p(i),affected:p(s),self:this}}onDetachedDependencyRemoved(e,t,i){const s=[],l=[],o=[],d=[];return t==="implements"&&this.removeImplementation(e),t==="extends"&&this.removeExtension(e),{updated:p(s),added:p(l),removed:p(o),affected:p(d),self:this}}onDetachedDependencyRestored(e,t,i){const s=[],l=[],o=[],d=[];return t==="implements"&&this.addImplementation(e),t==="extends"&&this.addExtension(e),{updated:p(s),added:p(l),removed:p(o),affected:p(d),self:this}}subscribeToDependencies(){return this.implements.forEach(e=>{Ti.includes(e.type)||e.subscribeDependents([{entity:this,field:"implements"}])}),this.extends.forEach(e=>{Ti.includes(e.type)||e.subscribeDependents([{entity:this,field:"extends"}])}),this}increaseVersion(e){if(e&&!T(e).isValid())throw new Error(`The shared timestamp '${e}' is not a valid ISO 8601 date string.`);return e&&T(e).isSame(T(this.createdAt))?this:(this.previousVersion=this.version,this.version=m.UUID.uuid(),this.createdAt=T(e).toISOString()||T().toISOString(),this)}captureVersion(){var t;const e=((t=this.knownVersions)==null?void 0:t.get(this.version))||new ge(this,this.project);return e.metaSync(this.toMeta(),null),this.knownVersions=this.knownVersions?this.knownVersions.set(this.version,e):new Map([[this.version,e]]),e.properties=this.properties,e.methods=this.methods,e.abstractMethods=this.abstractMethods,e.extends=this.extends,e.implements=this.implements,e.parent=this.parent,this}recursiveCaptureUpstreamVersions(e){const t=[],i=[],s=[],l=[];if(this.parent){this.parent.increaseVersion(e);const o=this.parent.recursiveCaptureUpstreamVersions(e);t.push(this.parent,...o.updated),i.push(...o.added),s.push(...o.removed)}return{updated:p(t),added:p(i),removed:p(s),affected:p(l),self:this}}async restoreVersion(e){var d;const t=[],i=[],s=[],l=[];if(this.version===e)return{updated:p(t),added:p(i),removed:p(s),affected:p(l),self:this};if(!this.knownVersions){const u=new Map;for(const[y,c]of this.knownVersions||new Map){if(u.set(y,c),c.activeVersion=!1,c.knownVersions)for(const[I,E]of c.knownVersions)u.set(I,E);c.knownVersions=null}}let o=(d=this.knownVersions)==null?void 0:d.get(e);if(!o){const u=await this.APILoadVersion({},e);if(!u)throw new Error(`Version with id '${e}' for entity with id '${this.id}' not found.`);o=new ge(u,this.project)}return this.metaSync(o.toShallowJSON(),null),this.properties=o.properties,this.methods=o.methods,this.abstractMethods=o.abstractMethods,this.extends=o.extends,this.implements=o.implements,this.parent=o.parent,{updated:p(t),added:p(i),removed:p(s),affected:p(l),self:this}}hydrateAncestors(){const e=[],t=[],i=[],s=[];if(this.initialData.parent){const l=_(this.initialData.parent),o=this.project.get(l);if(o)this.setParent(o,null),e.push(o);else throw new Error(`${this.type} with id '${this.id}' has a 'parent' reference '${l}' that isn't found in the project`)}else throw new Error(`${this.type} with id '${this.id}' must have a 'parent'`);return this.initialData.extends.forEach(l=>{const o=_(l),d=this.project.get(o);d&&(this.addExtension(d),d.type!==n.BuiltInBaseEntity&&e.push(d))}),this.initialData.implements.forEach(l=>{const o=_(l),d=this.project.get(o);d&&(this.addImplementation(d),d.type!==n.BuiltInBaseEntity&&e.push(d))}),{updated:p(e),added:p(t),removed:p(i),affected:p(s),self:this}}afterAllChildrenInitialized(e=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"after-all-children-initialized"))){const t=[],i=[],s=[],l=[];this.initialized=!0,this.captureVersion();const{updated:o,added:d,removed:u,affected:y}=this.syncImplementationProperties(e);t.push(...o),i.push(...d),s.push(...u),l.push(...y);const{updated:c,added:I,removed:E,affected:O}=this.addExtendedProperties(e);return t.push(...c),i.push(...I),s.push(...E),l.push(...O),this.addSuggestions(),e==null||e.attemptAutoclose("after-all-children-initialized",this.id),{updated:p(t),added:p(i),removed:p(s),affected:p(l),self:this}}addSelfToProject(e=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"add-self-to-project"))){const t=[this],i=[],s=[],l=[];if(this.parent.type===n.DataType){const o=this.parent;o.entity=this,t.push(o)}else this.project.addDefinitionEntity(this);return this.subscribe(),this.subscribeToDependencies(),e==null||e.attemptAutoclose("add-self-to-project",this.id),{updated:p(t),added:p(i),removed:p(s),affected:p(l),self:this}}setParent(e,t=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"set-parent"))){var i;return((i=this.parent)==null?void 0:i.id)!==(e==null?void 0:e.id)&&(this.parent=e,t&&(t==null||t.add(this,A.Updated),t==null||t.attemptAutoclose("set-parent",this.id))),this}addExtension(e){return this.extends.includes(e)||this.extends.push(e),this}removeExtension(e){return this.extends=this.extends.filter(t=>t.id!==e.id),this}addImplementation(e){return this.implements.includes(e)||this.implements.push(e),this}removeImplementation(e){return this.implements=this.implements.filter(t=>t.id!==e.id),this}removeProperty(e){return this.properties=this.properties.filter(t=>t.id!==e.id),this}addMethod(e){return this.methods.includes(e)||(this.methods.push(e),this.suggestedMethods=this.suggestedMethods.filter(t=>t.name!==e.name)),this}removeMethod(e){return this.methods=this.methods.filter(t=>t.id!==e.id),this}addProperty(e){return this.properties.includes(e)||(this.properties.push(e),this.suggestedProperties=this.suggestedProperties.filter(t=>t.name!==e.name)),this}addSuggestedProperty(e){return this.suggestedProperties.includes(e)||this.suggestedProperties.push(e),this}addSuggestedMethod(e){return this.suggestedMethods.includes(e)||this.suggestedMethods.push(e),this}removeSuggestedProperty(e){return this.suggestedProperties=this.suggestedProperties.filter(t=>t.id!==e.id),this}removeSuggestedMethod(e){return this.suggestedMethods=this.suggestedMethods.filter(t=>t.id!==e.id),this}addAbstractMethod(e){return this.abstractMethods.includes(e)||this.abstractMethods.push(e),this}removeAbstractMethod(e){return this.abstractMethods=this.abstractMethods.filter(t=>t.id!==e.id),this}initChildren(e=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"init-children"))){return this.initialized||this.startedInitialization?this:(this.startedInitialization=!0,this.properties=this.initialData.properties.map(t=>{const i=C(t,this.project);return i.setParent(this,null),i.initChildren(e),i}),this.methods=this.initialData.methods.map(t=>{const i=C(t,this.project);return i.setParent(this,null),i.initChildren(e),i}),this.abstractMethods=this.initialData.abstractMethods.map(t=>{const i=C(t,this.project);return i.setParent(this,null),i.initChildren(e),i}),this.extends=this.initialData.extends.map(t=>C(t,this.project)),this.implements=this.initialData.implements.map(t=>C(t,this.project)),this.subscribeToDependencies(),this.afterAllChildrenInitialized(e),e==null||e.attemptAutoclose("init-children",this.id),this)}syncImplementationProperties(e=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"sync-implementation-properties"))){const t=[],i=[],s=[],l=[],o=this.properties,d=this.implementedPropertiesFromOriginalParents,u=[...this.allBasePropertiesFromExtendedAndImplementedEntities,...o];return d.filter(c=>!u.find(E=>{var O;return((O=E.implements)==null?void 0:O.id)===c.id})).forEach(c=>{if(this.properties.find(P=>{var V;return((V=P.implements)==null?void 0:V.id)===c.id}))return;const E=this.properties.find(P=>P.name===c.name&&!!P.abstract&&!P.implements);if(E){E.implements=c,E.abstract=!1;return}const O=c.clone(e,this,m.UUID.uuid());O.initChildren(e),i.push(O),e==null||e.add(O,A.Added),O.setImplements(c,e),O.metaSync({abstract:!1},e),this.addProperty(O)}),e==null||e.attemptAutoclose("sync-implementation-properties",this.id),{updated:p(t),added:p(i),removed:p(s),affected:p(l),self:this}}addExtendedProperties(e=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"add-extended-properties"))){const t=[],i=[],s=[],l=[],o=this.properties,d=this.extendedPropertiesFromOriginalParents,u=d.filter(c=>d.find(E=>{var O;return((O=E.implements)==null?void 0:O.id)===c.id})?!1:!c.abstract),y=new Set(o.map(c=>c.name));return u.forEach(c=>{if(y.has(c.name))return;y.add(c.name);const I=c.clone(e,this,m.UUID.uuid());I.initChildren(e),i.push(I),e==null||e.add(I,A.Added),this.addProperty(I)}),{updated:p(t),added:p(i),removed:p(s),affected:p(l),self:this}}addSuggestions(){return this.implements.forEach(e=>{iw(this,e).forEach(s=>{const l=s.toJSON();l.id=`_suggestion--parent--${this.id}--${s.id}`;const o=C(l,this.project);o.suggestion=!0,o.setParent(this,null),o.initChildren(null),this.addSuggestedProperty(o)}),rw(this,e).forEach(s=>{const l=`_suggestion--parent--${this.id}--${s.id}`,o=s.implementAsFunctionDeclaration(null,this,l),d=C(o,this.project);if(d.suggestion=!0,d.setParent(this,null),d.initChildren(null),this.methods=this.methods.filter(u=>u.id!==l),d.inputs.forEach(u=>{u.suggestion=!0}),d.returnStatements.length){const u=d.returnStatements[0];u.suggestion=!0,u.outputs.forEach(y=>{y.suggestion=!0})}this.addSuggestedMethod(d)})}),this}subscribe(){return this.activeVersion=!0,this.project.subscribeInstance(this),this}unsubscribe(){return this.project.unsubscribeInstance(this),this}metaSync(e,t=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"meta-sync"))){const i=pt(this,e),s=this.toMeta();return this.name=e.name||s.name,this.description=e.description||s.description,this.x=e.x||s.x,this.y=e.y||s.y,this.static=e.static!==void 0?e.static:this.static,this.abstract=e.abstract!==void 0?e.abstract:this.abstract,super.metaSync(e),e.deleted===!0&&!s.deleted?t==null||t.add(this,A.Removed):e.deleted===!1&&s.deleted?t==null||t.add(this,A.Added):i&&(t==null||t.add(this,A.Updated)),t==null||t.attemptAutoclose("meta-sync",this.id),this}async APILoad(e=g,...t){return await ge.repository.APILoad(this.id,...t),this}async APICreate(e=g,...t){return await ge.repository.APICreate(this.toShallowJSON(),...t),this}async APIUpdate(e=g,...t){return await ge.repository.APIUpdate(this.toShallowJSON(),...t),this}async APIDelete(e=g,...t){return await ge.repository.APIDelete(this.toShallowJSON(),...t),this}async APIClone(e=g,...t){return await ge.repository.APIClone(this.id,...t),this}async APILoadVersion(e=g,t,...i){return await ge.repository.APILoadVersion(this.id,t,...i)}remove({ignoreUpstream:e}={ignoreUpstream:!1},t=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"remove-entity"))){const i=[],s=[],l=[],o=[];if(t!=null&&t.hasRemoved(this.id))return t==null||t.attemptAutoclose("remove-entity",this.id),{added:[],updated:[],removed:[],affected:[],self:this};if(s.push(this),this.unsubscribe(),this.project.subscribeDeletedInstance(this),this.metaSync({deleted:!0},t),Object.values(this.detachedDependents).forEach(d=>{const{updated:u,removed:y,added:c}=d.entity.onDetachedDependencyRemoved(this,d.field,t);i.push(...u),s.push(...y),l.push(...c)}),this.properties.forEach(d=>{const{updated:u,removed:y}=d.remove({ignoreUpstream:!0},t);i.push(...u),s.push(...y)}),this.methods.forEach(d=>{const{updated:u,removed:y}=d.remove({ignoreUpstream:!0},t);i.push(...u),s.push(...y)}),this.abstractMethods.forEach(d=>{const{updated:u,removed:y}=d.remove({ignoreUpstream:!0},t);i.push(...u),s.push(...y)}),this.suggestedProperties.forEach(d=>{const{updated:u,removed:y}=d.remove({ignoreUpstream:!0},t);i.push(...u),s.push(...y)}),this.suggestedMethods.forEach(d=>{const{updated:u,removed:y}=d.remove({ignoreUpstream:!0},t);i.push(...u),s.push(...y)}),!e){if(this.parent.type===n.Project)this.parent.removeDefinitionEntity(this);else if(this.parent.type===n.DataType){const d=this.parent.setEntity(null);i.push(d)}}return t==null||t.attemptAutoclose("remove-entity",this.id),{added:p(l),updated:p(i),removed:p(s),affected:p(o),self:this}}restore({}={},e=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"restore-entity"))){const t=[],i=[],s=[],l=[];return e!=null&&e.hasAdded(this.id)?(e==null||e.attemptAutoclose("restore-entity",this.id),{added:[],updated:[],removed:[],affected:[],self:this}):(this.subscribe(),this.project.unsubscribeDeletedInstance(this),this.metaSync({deleted:!1},e),this.properties.forEach(o=>{const{updated:d}=o.restore({},e);i.push(...d)}),this.methods.forEach(o=>{const{updated:d}=o.restore({},e);i.push(...d)}),this.abstractMethods.forEach(o=>{const{updated:d}=o.restore({},e);i.push(...d)}),this.suggestedProperties.forEach(o=>{const{updated:d}=o.restore({},e);i.push(...d)}),this.suggestedMethods.forEach(o=>{const{updated:d}=o.restore({},e);i.push(...d)}),e==null||e.attemptAutoclose("restore-entity",this.id),{added:p(t),updated:p(i),removed:p(s),affected:p(l),self:this})}toFlat(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this,...this.extends.flatMap(i=>i.toFlat(e)),...this.implements.flatMap(i=>i.toFlat(e)),...this.properties.flatMap(i=>i.toFlat(e)),...this.methods.flatMap(i=>i.toFlat(e)),...this.abstractMethods.flatMap(i=>i.toFlat(e)),...this.parent.toFlat(e)])}toFlatIds(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.id,...this.extends.flatMap(i=>i.toFlatIds(e)),...this.implements.flatMap(i=>i.toFlatIds(e)),...this.properties.flatMap(i=>i.toFlatIds(e)),...this.methods.flatMap(i=>i.toFlatIds(e)),...this.abstractMethods.flatMap(i=>i.toFlatIds(e)),...this.parent.toFlatIds(e)])}toMeta(){return{id:this.id,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,description:this.description,static:this.static,abstract:this.abstract,x:this.x,y:this.y,type:this.type,name:this.name}}toJSON(e=new Set){return e.has(this.id)?this.toReference():(e.add(this.id),{id:this.id,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,type:this.type,name:this.name,description:this.description,x:this.x,y:this.y,static:this.static,abstract:this.abstract,properties:this.properties.map(t=>t.toJSON(e)),methods:this.methods.map(t=>t.toJSON(e)),abstractMethods:this.abstractMethods.map(t=>t.toJSON(e)),implements:this.implements.map(t=>t.toJSON(e)),extends:this.extends.map(t=>t.toJSON(e)),parent:this.parent.toReference()})}toJSONClone(e=q){var i,s,l,o,d;let t;return(i=e.seenEntityMaps)!=null&&i.has(this.id)?t=e.seenEntityMaps.get(this.id):(t=e.newId||ht(this,this.project,e.uuidStrategy),e.seenEntityMaps&&e.seenEntityMaps.set(this.id,t)),(s=e.seenEntities)!=null&&s.has(t)||(l=e.seenEntities)!=null&&l.has(this.id)?this.toReference({seenEntityMaps:e.seenEntityMaps}):((o=e.seenEntities)==null||o.add(t),(d=e.seenEntities)==null||d.add(this.id),{id:t,version:m.UUID.uuid(),createdAt:e.timestamp||T().toISOString(),author:m.sessionAuthor,previousVersion:null,deleted:!1,type:this.type,name:this.name,description:this.description,x:this.x,y:this.y,static:this.static,abstract:this.abstract,properties:this.properties.map(u=>u.toJSONClone({...e,newId:null})),methods:this.methods.map(u=>u.toJSONClone({...e,newId:null})),abstractMethods:this.abstractMethods.map(u=>u.toJSONClone({...e,newId:null})),implements:this.implements.map(u=>u.type===n.BuiltInBaseEntity?u.toJSON():u.toJSONClone({...e,newId:null})),extends:this.extends.map(u=>u.type===n.BuiltInBaseEntity?u.toJSON():u.toJSONClone({...e,newId:null})),parent:this.parent.toReference({seenEntityMaps:e.seenEntityMaps})})}toReference(e=q){var i;let t=this.id;return(i=e.seenEntityMaps)!=null&&i.has(this.id)&&(t=e.seenEntityMaps.get(this.id)),{id:t+"--"+m.UUID.uuid()+"--ref",type:n.GenericReference,entityId:t,version:this.version,entityType:this.type}}toShallowJSON(e=q){var i;let t=this.id;return(i=e.seenEntityMaps)!=null&&i.has(this.id)&&(t=e.seenEntityMaps.get(this.id)),{id:t,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,name:this.name,description:this.description,type:this.type,x:this.x,y:this.y,static:this.static,abstract:this.abstract,properties:this.properties.map(s=>s.toReference(e)),methods:this.methods.map(s=>s.toReference(e)),abstractMethods:this.abstractMethods.map(s=>s.toReference(e)),implements:this.implements.map(s=>s.toReference(e)),extends:this.extends.map(s=>s.toReference(e)),parent:this.parent.toReference(e)}}toFlatJSON(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.toShallowJSON(),...this.properties.flatMap(i=>i.toFlatJSON(e)),...this.methods.flatMap(i=>i.toFlatJSON(e)),...this.abstractMethods.flatMap(i=>i.toFlatJSON(e)),...this.implements.flatMap(i=>i.toFlatJSON(e)),...this.extends.flatMap(i=>i.toFlatJSON(e)),...this.parent.toFlatJSON(e)])}toGenerationTarget(){const e=this.parent.type===n.Project?void 0:this.parent.id;return{id:this.id,name:this.name,description:this.description,type:this.type,static:this.static,abstract:this.abstract,extends:this.extends.map(t=>t.id),implements:this.implements.map(t=>t.id),parent:e}}toFlatGenerationTarget(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.toGenerationTarget(),...this.properties.flatMap(i=>i.toFlatGenerationTarget(e)),...this.methods.flatMap(i=>i.toFlatGenerationTarget(e)),...this.abstractMethods.flatMap(i=>i.toFlatGenerationTarget(e)),...this.implements.filter(i=>i.type===n.DefinitionEntity).flatMap(i=>i.toFlatGenerationTarget(e)),...this.implements.filter(i=>i.type===n.DefinitionEntity).flatMap(i=>i.toFlatGenerationTarget(e)),...this.parent.toFlatGenerationTarget(e)])}clearErrors(){return this.errors=[],this.properties.forEach(e=>e.clearErrors()),this.methods.forEach(e=>e.clearErrors()),this.abstractMethods.forEach(e=>e.clearErrors()),this}validate(){return this.errors=tw(this),{success:!0,error:null,data:null}}getErrors(){return[...this.errors,...this.properties.flatMap(t=>t.getErrors()),...this.methods.flatMap(t=>t.getErrors()),...this.abstractMethods.flatMap(t=>t.getErrors())]}getShallowErrors(){return this.errors}clone(e=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"clone-entity")),t=null,i=null,s=!0){var P,V,M;let l=mt(t,this);const o=this.toJSON(),d=i||m.UUID.uuid();o.properties=[],o.methods=[],o.abstractMethods=[];const u=d.split("-id"),y=u[u.length-1||0]||d;o.id=d,o.version=m.UUID.uuid(),o.createdAt=(e==null?void 0:e.timestamp)||T().toISOString(),o.author=(e==null?void 0:e.author)||"1",o.previousVersion=null,o.deleted=!1;const c=ct(o,l);t&&c.setParent(t,null),s&&c.subscribe(),c.initChildren(e),e==null||e.add(c,A.Added);const I=(P=this.properties)==null?void 0:P.map(G=>G.clone(e,c,m.UUID.uuid(),s));c.properties=I;const E=(V=this.methods)==null?void 0:V.map((G,B)=>G.clone(e,c,y+"-method-"+B+"-id",s));c.methods=E;const O=(M=this.abstractMethods)==null?void 0:M.map((G,B)=>G.clone(e,c,y+"-abstract-method-"+B+"-id",s));return c.abstractMethods=O,e==null||e.attemptAutoclose("clone-entity",this.id),c}getFunctionDeclaration(e){return this.methods.find(t=>t.id===e)}implement(e,t=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"implement-definition-entity")),i){const s=ql(this,e,t,i);return t==null||t.attemptAutoclose("implement-definition-entity",this.id),s}getAllInteractiveMethods(){const e=this.implements.filter(i=>i.type===n.DefinitionEntity||i.type===n.BuiltInBaseEntity&&i.interactive);return p([...this.methods,...this.extends.flatMap(i=>i.getAllInteractiveMethods()),...e.flatMap(i=>i.getAllInteractiveMethods())])}inferFromInputs(e,t=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"infer-definition-entity-from-inputs"))){const i=[],s=[],l=[],o=[];if(this.parent.type!==n.DataType||!this.parent.inferred)return t==null||t.attemptAutoclose("infer-definition-entity-from-inputs",this.id),{added:[],updated:[],removed:[],affected:[],self:this};const d=[];e.forEach(c=>{d.find(E=>x(E,this.project)===x(c,this.project))||d.push(c)});const u=this.properties.filter(c=>!c.dataType);d.forEach(c=>{var M,G;const I=u.find(B=>x(B,this.project)===x(c,this.project));if(!I)return;const O=Cn(c.parent).getMasterInputWithValueWritterFromAllInstances(c),P=Ji(O,t),V=P==null?void 0:P.clone(t,I,m.UUID.uuid(),!0);if(V){const B=(M=I.dataType)==null?void 0:M.merge(V,t);I.dataType&&(B==null?void 0:B.self.id)!==I.dataType.id&&I.dataType.remove({ignoreUpstream:!1},t),V.id!==((G=B==null?void 0:B.self)==null?void 0:G.id)&&V.remove({ignoreUpstream:!1},t),B!=null&&B.self&&(B.self.metaSync({inferred:!0,like:!0},t),t==null||t.add(B.self,A.Added),I.setDataType(B.self),t==null||t.add(I,A.Updated))}c.setDeclaration(I),t==null||t.add(c,A.Updated)});const y=[];return d.forEach(c=>{if(!c.declaration){y.push(c);return}}),y.length===0?(t==null||t.attemptAutoclose("infer-definition-entity-from-inputs",this.id),{added:[],updated:[],removed:[],affected:[],self:this}):(y.forEach(c=>{var B,$,Z,J;const I=this.properties.find(te=>x(te,this.project)===x(c,this.project));if(I){if(c.setDeclaration(I),!I.getDataType(t)){const fe=Cn(c.parent).getMasterInputWithValueWritterFromAllInstances(c),Ie=Ji(fe),X=Ie==null?void 0:Ie.clone(t,I,m.UUID.uuid(),!0);if(X){const le=(B=I.dataType)==null?void 0:B.merge(X,t);I.dataType&&(le==null?void 0:le.self.id)!==I.dataType.id&&I.dataType.remove({ignoreUpstream:!1},t),X.id!==(($=le==null?void 0:le.self)==null?void 0:$.id)&&X.remove({ignoreUpstream:!1},t),le!=null&&le.self&&(le.self.metaSync({inferred:!0,like:!0},t),t==null||t.add(le.self,A.Added),I.setDataType(le.self),t==null||t.add(I,A.Updated))}}return}const E={id:m.UUID.uuid(),type:n.Property,version:m.UUID.uuid(),createdAt:(t==null?void 0:t.timestamp)||T().toISOString(),author:m.sessionAuthor,previousVersion:null,deleted:!1,name:x(c,this.project),description:c.description,defaultValue:null,static:!0,abstract:!1,private:!1,hidden:!1,required:!1,constant:!0,index:c.index,implements:null,dataType:null,parent:this.toReference()},O=C(E,this.project);O.setParent(this,t),O.initChildren(t),t==null||t.add(O,A.Added);const V=Cn(c.parent).getMasterInputWithValueWritterFromAllInstances(c),M=Ji(V),G=M==null?void 0:M.clone(t,O,m.UUID.uuid(),!0);if(G){const te=(Z=O.dataType)==null?void 0:Z.merge(G,t);O.dataType&&(te==null?void 0:te.self.id)!==O.dataType.id&&O.dataType.remove({ignoreUpstream:!1},t),G.id!==((J=te==null?void 0:te.self)==null?void 0:J.id)&&G.remove({ignoreUpstream:!1},t),te!=null&&te.self&&(te.self.metaSync({inferred:!0,like:!0},t),t==null||t.add(te.self,A.Added),O.setDataType(te.self),t==null||t.add(O,A.Updated))}return this.addProperty(O),c.setDeclaration(O),t==null||t.add(c,A.Updated),O}),t==null||t.attemptAutoclose("infer-definition-entity-from-inputs",this.id),{added:p(i),updated:p(s),removed:p(l),affected:p(o),self:this})}};f(ge,"repository",{APICreate:async(e,...t)=>e,APIUpdate:async(e,...t)=>e,APIDelete:async(e,...t)=>e,APIClone:async(e,...t)=>{},APILoad:async(e,...t)=>null,APILoadVersion:async(e,t,...i)=>null}),f(ge,"type",n.DefinitionEntity),f(ge,"USER_MANAGED_PARENT_TYPES",[n.Project,n.DataType]),f(ge,"PARENT_TYPES",[...ge.USER_MANAGED_PARENT_TYPES]),f(ge,"MUTABLE_BASE_PROPERTIES",["name","description","static","abstract"]),f(ge,"INMUTABLE_BASE_PROPERTIES",["id","type","version","createdAt","author","previousVersion"]),f(ge,"BASE_PROPERTIES",[...ge.MUTABLE_BASE_PROPERTIES,...ge.INMUTABLE_BASE_PROPERTIES]),f(ge,"MUTABLE_META_PROPERTIES",[...ge.MUTABLE_BASE_PROPERTIES,"x","y"]),f(ge,"INMUTABLE_META_PROPERTIES",[...ge.INMUTABLE_BASE_PROPERTIES]),f(ge,"META_PROPERTIES",[...ge.MUTABLE_META_PROPERTIES,...ge.INMUTABLE_META_PROPERTIES]),f(ge,"MUTABLE_UPSTREAM_PROPERTIES",["extends","implements"]),f(ge,"INMUTABLE_UPSTREAM_PROPERTIES",["parent"]),f(ge,"UPSTREAM_PROPERTIES",[...ge.MUTABLE_UPSTREAM_PROPERTIES,...ge.INMUTABLE_UPSTREAM_PROPERTIES]),f(ge,"MUTABLE_DOWNSTREAM_PROPERTIES",["properties","methods","abstractMethods"]),f(ge,"INMUTABLE_DOWNSTREAM_PROPERTIES",[]),f(ge,"DOWNSTREAM_PROPERTIES",[...ge.MUTABLE_DOWNSTREAM_PROPERTIES,...ge.INMUTABLE_DOWNSTREAM_PROPERTIES]),f(ge,"PROPERTIES",[...ge.META_PROPERTIES,...ge.UPSTREAM_PROPERTIES,...ge.DOWNSTREAM_PROPERTIES]);let Xr=ge;function YJ(r){const a=J3(),e=r.toJSON();a.safeParse(e).success;const i=[];return Ye(r.errors,i)}const Ga=class Ga extends at{constructor(e,t){super(e);f(this,"initialData");f(this,"id");f(this,"version");f(this,"name");f(this,"description",null);f(this,"type",n.BuiltInBaseEntity);f(this,"abstract",!1);f(this,"static");f(this,"properties",[]);f(this,"methods",[]);f(this,"abstractMethods",[]);f(this,"extends",[]);f(this,"interactive",!1);f(this,"errors",[]);f(this,"project");this.initialData=this.initialData||e,this.project=this.project||t,this.id=this.id||e.id,this.version=this.version||e.version,this.name=this.name||e.name,this.static=this.static||e.static,this.interactive=this.interactive||e.interactive,this.abstract=e.abstract,this.properties=this.initialData.properties.map(i=>{const s=C(i,this.project);return s.setParent(this,null),s.initChildren(null),s}),this.methods=this.initialData.methods.map(i=>{const s=C(i,this.project);return s.setParent(this,null),s.initChildren(null),s}),this.abstractMethods=this.initialData.abstractMethods.map(i=>{const s=C(i,this.project);return s.setParent(this,null),s.initChildren(null),s}),this.extends=this.initialData.extends.map(i=>C(i,this.project))}get allBasePropertiesFromExtendedAndImplementedEntities(){return p(this.extends.reduce((e,t)=>{const i=[...t.ownDeclaredProperties,...t.allBasePropertiesFromExtendedAndImplementedEntities].filter(s=>!s.abstract);return[...e,...i]},[]))}get extendedPropertiesFromOriginalParents(){return p(this.extends.reduce((e,t)=>{const i=[...t.ownDeclaredProperties,...t.extendedPropertiesFromOriginalParents].filter(s=>!s.abstract);return[...e,...i]},[]))}get implementedPropertiesFromOriginalParents(){return p([...this.extends.reduce((e,t)=>{const i=t.implementedPropertiesFromOriginalParents,s=[...t.ownDeclaredProperties].filter(l=>!!l.abstract&&!i.find(o=>o.name===l.name));return[...i,...s,...e]},[])])}get extendedProperties(){return this.properties.filter(e=>e.isExtendedProperty)}get ownDeclaredProperties(){return this.properties.filter(e=>!e.isExtendedProperty)}subscribe(){return this.project.subscribeInstance(this),this}unsubscribe(){return this.project.unsubscribeInstance(this),this}async APILoad(e=g,...t){return await Ga.repository.APILoad(this.id,...t),this}toFlat(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this,...this.properties.flatMap(i=>i.toFlat(e)),...this.methods.flatMap(i=>i.toFlat(e)),...this.abstractMethods.flatMap(i=>i.toFlat(e)),...this.extends.flatMap(i=>i.toFlat(e))])}toFlatIds(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.id,...this.properties.flatMap(i=>i.toFlatIds(e)),...this.methods.flatMap(i=>i.toFlatIds(e)),...this.abstractMethods.flatMap(i=>i.toFlatIds(e)),...this.extends.flatMap(i=>i.toFlatIds(e))])}toMeta(){return{id:this.id,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,description:this.description,interactive:this.interactive,abstract:this.abstract,static:this.static,type:this.type,name:this.name}}toJSON(e=new Set){return e.has(this.id)?this.toReference():(e.add(this.id),{id:this.id,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,type:this.type,name:this.name,description:this.description,abstract:this.abstract,static:this.static,interactive:this.interactive,properties:this.properties.map(t=>t.toJSON(e)),methods:this.methods.map(t=>t.toJSON(e)),abstractMethods:this.abstractMethods.map(t=>t.toJSON(e)),extends:this.extends.map(t=>t.toJSON(e))})}toReference(e=q){return{id:this.id+"--"+m.UUID.uuid()+"--ref",type:n.GenericReference,entityId:this.id,version:this.version,entityType:this.type}}toShallowJSON(e=q){return{id:this.id,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,type:this.type,name:this.name,description:this.description,abstract:this.abstract,static:this.static,interactive:this.interactive,properties:this.properties.map(t=>t.toReference()),methods:this.methods.map(t=>t.toReference()),abstractMethods:this.abstractMethods.map(t=>t.toReference()),extends:this.extends.map(t=>t.toReference())}}toFlatJSON(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.toShallowJSON(),...this.properties.flatMap(i=>i.toFlatJSON(e)),...this.methods.flatMap(i=>i.toFlatJSON(e)),...this.abstractMethods.flatMap(i=>i.toFlatJSON(e))])}toGenerationTarget(){return{id:this.id,type:this.type,name:this.name,description:this.description,static:this.static,abstract:this.abstract,interactive:this.interactive,extends:this.extends.map(e=>e.id)}}toFlatGenerationTarget(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.toGenerationTarget(),...this.properties.flatMap(i=>i.toFlatGenerationTarget(e)),...this.methods.flatMap(i=>i.toFlatGenerationTarget(e)),...this.abstractMethods.flatMap(i=>i.toFlatGenerationTarget(e))])}clearErrors(){return this.errors=[],this.properties.forEach(e=>e.clearErrors()),this.methods.forEach(e=>e.clearErrors()),this.abstractMethods.forEach(e=>e.clearErrors()),this}validate(){const e=YJ(this);return this.errors=e,{success:!0,error:null,data:this.toJSON()}}getErrors(){return[...this.errors,...this.properties.flatMap(t=>t.getErrors()),...this.methods.flatMap(t=>t.getErrors()),...this.abstractMethods.flatMap(t=>t.getErrors())]}getShallowErrors(){return this.errors}implement(e,t=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),null,!0,"implement-built-in-base-entity")),i){const s=ql(this,e,t,i);return t==null||t.attemptAutoclose("implement-built-in-base-entity",this.id),s}getAllInteractiveMethods(){const e=[];return this.interactive&&(e.push(...this.methods),this.extends.filter(i=>i.type===n.BuiltInBaseEntity&&i.interactive||i.type===n.PrimitiveEntity).forEach(i=>{i instanceof Ga&&e.push(...i.getAllInteractiveMethods())})),p(e)}};f(Ga,"repository",{APILoad:async(e,...t)=>null});let Ki=Ga;function HJ(r){const a=j3(),e=r.toJSON();a.safeParse(e).success;const i=[];return Ye(r.errors,i)}const od=class od extends at{constructor(e,t){super(e);f(this,"initialData");f(this,"id");f(this,"name");f(this,"description",null);f(this,"type",n.PrimitiveEntity);f(this,"static");f(this,"abstract");f(this,"properties",[]);f(this,"methods",[]);f(this,"abstractMethods",[]);f(this,"extends",[]);f(this,"errors",[]);f(this,"project");this.initialData=e,this.project=t,this.id=e.id,this.name=e.name,this.static=e.static,this.abstract=e.abstract,this.properties=this.initialData.properties.map(i=>{const s=C(i,this.project);return s.setParent(this,null),s.initChildren(null),s}),this.methods=this.initialData.methods.map(i=>{const s=C(i,this.project);return s.parent=this,s}),this.abstractMethods=this.initialData.abstractMethods.map(i=>{const s=C(i,this.project);return s.parent=this,s})}get allBasePropertiesFromExtendedAndImplementedEntities(){return p(this.extends.reduce((e,t)=>{const i=[...t.ownDeclaredProperties,...t.allBasePropertiesFromExtendedAndImplementedEntities].filter(s=>!s.abstract);return[...e,...i]},[]))}get extendedPropertiesFromOriginalParents(){return p(this.extends.reduce((e,t)=>{const i=[...t.ownDeclaredProperties,...t.extendedPropertiesFromOriginalParents].filter(s=>!s.abstract);return[...e,...i]},[]))}get implementedPropertiesFromOriginalParents(){return p([...this.extends.reduce((e,t)=>{const i=t.implementedPropertiesFromOriginalParents,s=[...t.ownDeclaredProperties].filter(l=>!!l.abstract&&!i.find(o=>o.name===l.name));return[...i,...s,...e]},[])])}get extendedProperties(){return this.properties.filter(e=>e.isExtendedProperty)}get ownDeclaredProperties(){return this.properties.filter(e=>!e.isExtendedProperty)}subscribe(){return this.project.subscribeInstance(this),this}unsubscribe(){return this.project.unsubscribeInstance(this),this}async APILoad(e=g,...t){return await od.repository.APILoad(this.id,...t),this}toFlat(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this,...this.properties.flatMap(i=>i.toFlat(e)),...this.methods.flatMap(i=>i.toFlat(e)),...this.abstractMethods.flatMap(i=>i.toFlat(e))])}toFlatIds(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.id,...this.properties.flatMap(i=>i.toFlatIds(e)),...this.methods.flatMap(i=>i.toFlatIds(e)),...this.abstractMethods.flatMap(i=>i.toFlatIds(e))])}toMeta(){return{id:this.id,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,description:this.description,static:this.static,abstract:this.abstract,type:this.type,name:this.name}}toJSON(e=new Set){return e.has(this.id)?this.toReference():(e.add(this.id),{id:this.id,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,type:this.type,name:this.name,description:this.description,static:this.static,abstract:this.abstract,properties:this.properties.map(t=>t.toJSON(e)),methods:this.methods.map(t=>t.toJSON(e)),abstractMethods:this.abstractMethods.map(t=>t.toJSON(e)),extends:this.extends.map(t=>t.toJSON(e))})}toReference(e=q){return{id:this.id+"--"+m.UUID.uuid()+"--ref",type:n.GenericReference,entityId:this.id,version:this.version,entityType:this.type}}toShallowJSON(e=q){return{id:this.id,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,type:this.type,name:this.name,description:this.description,abstract:this.abstract,static:this.static,properties:this.properties.map(t=>t.toReference()),methods:this.methods.map(t=>t.toReference()),abstractMethods:this.abstractMethods.map(t=>t.toReference()),extends:this.extends.map(t=>t.toReference())}}toFlatJSON(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.toShallowJSON(),...this.properties.flatMap(i=>i.toFlatJSON(e)),...this.methods.flatMap(i=>i.toFlatJSON(e)),...this.abstractMethods.flatMap(i=>i.toFlatJSON(e))])}toGenerationTarget(){return{id:this.id,type:this.type,name:this.name,description:this.description,static:this.static,abstract:this.abstract,extends:this.extends.map(e=>e.id)}}toFlatGenerationTarget(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.toGenerationTarget(),...this.properties.flatMap(i=>i.toFlatGenerationTarget(e)),...this.methods.flatMap(i=>i.toFlatGenerationTarget(e)),...this.abstractMethods.flatMap(i=>i.toFlatGenerationTarget(e))])}clearErrors(){return this.errors=[],this.properties.forEach(e=>e.clearErrors()),this.methods.forEach(e=>e.clearErrors()),this.abstractMethods.forEach(e=>e.clearErrors()),this}validate(){const e=HJ(this);return this.errors=e,{success:!0,error:null,data:this.toJSON()}}getErrors(){return[...this.errors,...this.properties.flatMap(t=>t.getErrors()),...this.methods.flatMap(t=>t.getErrors()),...this.abstractMethods.flatMap(t=>t.getErrors())]}getShallowErrors(){return this.errors}getAllInteractiveMethods(){const e=[];return e.push(...this.methods),this.extends.filter(i=>i.type===n.BuiltInBaseEntity&&i.interactive||i.type===n.PrimitiveEntity).forEach(i=>{i instanceof Ki&&e.push(...i.getAllInteractiveMethods())}),p(e)}};f(od,"repository",{APILoad:async(e,...t)=>null});let oi=od;function ct(r,a){if(!r)throw new Error("Entity is null");const e=a.get(r.id);switch(r.type){case n.LiteralValue:return e||new Nn(r,a);case n.DefinitionEntity:return e||new Xr(r,a);case n.PrimitiveEntity:return e||new oi(r,a);case n.FunctionDeclaration:return e||new gr(r,a);case n.GlobalEvent:return e||new Bn(r,a);case n.DataType:return e||new Vn(r,a);case n.Property:return e||new Lr(r,a);case n.FunctionCall:return e||new Yr(r,a);case n.Condition:return e||new Gr(r,a);case n.Operation:return e||new jr(r,a);case n.VariableDeclaration:return e||new xr(r,a);case n.VariableInstance:return e||new Fr(r,a);case n.OutputMap:return e||new zi(r,a);case n.ReturnDeclaration:return e||new si(r,a);case n.ArgumentDeclaration:return e||new Zr(r,a);case n.InputMap:return e||new Wi(r,a);case n.Project:return e||new m(r);case n.InstalledProject:return e||new Sr(r,a);case n.ActionDescriptor:return e||new Je(r,a);case n.ReturnStatement:return e||new Ur(r,a);case n.Loop:return e||new $r(r,a);case n.Search:return e||new kr(r,a);case n.ValueDescriptor:return e||new qr(r,a);case n.BuiltInBaseEntity:return e||new Ki(r,a);case n.InternalCall:return e||new Mn(r,a);case n.ContinueStatement:return e||new Ft(r,a);case n.BreakStatement:return e||new _n(r,a);case n.GenericReference:return a.get(r.entityId);default:throw new Error("Invalid entity type: "+r.type)}}function C(r,a){if(!r)throw new Error("Entity is null");const e=ct(r,a);return e.subscribe(),e}function KJ(r,a){if(!r)throw new Error("Entity is null");switch(r.type){case n.LiteralValue:return Nn.fromGenerationTarget(r,a);case n.DefinitionEntity:return Xr.fromGenerationTarget(r,a);case n.FunctionDeclaration:return gr.fromGenerationTarget(r,a);case n.GlobalEvent:return Bn.fromGenerationTarget(r,a);case n.DataType:return Vn.fromGenerationTarget(r,a);case n.Property:return Lr.fromGenerationTarget(r,a);case n.FunctionCall:return Yr.fromGenerationTarget(r,a);case n.Condition:return Gr.fromGenerationTarget(r,a);case n.Operation:return jr.fromGenerationTarget(r,a);case n.VariableDeclaration:return xr.fromGenerationTarget(r,a);case n.VariableInstance:return Fr.fromGenerationTarget(r,a);case n.OutputMap:return zi.fromGenerationTarget(r,a);case n.ReturnDeclaration:return si.fromGenerationTarget(r,a);case n.ArgumentDeclaration:return Zr.fromGenerationTarget(r,a);case n.InputMap:return Wi.fromGenerationTarget(r,a);case n.InstalledProject:return Sr.fromGenerationTarget(r,a);case n.ReturnStatement:return Ur.fromGenerationTarget(r,a);case n.Loop:return $r.fromGenerationTarget(r,a);case n.Search:return kr.fromGenerationTarget(r,a);case n.ActionDescriptor:return Je.fromGenerationTarget(r,a);case n.ValueDescriptor:return qr.fromGenerationTarget(r,a);case n.InternalCall:return Mn.fromGenerationTarget(r,a);case n.ContinueStatement:return Ft.fromGenerationTarget(r,a);case n.BreakStatement:return _n.fromGenerationTarget(r,a);default:throw new Error("Invalid entity type: "+r.type)}}const q={seenEntityMaps:new Map,seenEntities:new Set,timestamp:T().toISOString()};class nw{constructor(){f(this,"initialData")}}const g={cascade:!1},sw={APILoad:async(r,...a)=>null},XJ={APICreate:async(r,...a)=>r,APIUpdate:async(r,...a)=>r,APIDelete:async(r,...a)=>r,APIClone:async(r,...a)=>{},APILoadVersion:async(r,a,...e)=>null,...sw};class QJ{}class eW extends nw{}class tW{}class iW{}class rW{}class nf{}class nW extends nf{}class sW extends nf{}class aW{}class Tr{static initReadsValue(a){if(a.initialData.readsValue&&a.initialData.readsValue.type!==n.GenericReference)a.readsValue=C(a.initialData.readsValue,a.project);else if(a.initialData.readsValue&&a.initialData.readsValue.type===n.GenericReference){const e=mi(a.initialData.readsValue,a.project);e&&(a.readsValue=e)}if(a.readsValue){if(et.includes(a.readsValue.type)){let e=a.parent;dt.includes(e.type)||(e=e.parent);const t=a.type===n.InputMap&&a.parent.type===n.Loop;t&&(e=a.parent.parent),a.readsValue.setParent(e,null),a.readsValue.initChildren(null),!t&&e.detachedChildren.includes(a)?e.replaceDetachedChild(a,a.readsValue):t||e.subscribeDetachedChild(a.readsValue)}a.readsValue.addValueReader(a,null)}return a.readsValue}static hydrateReadsValue(a){if(a.initialData.readsValue&&a.initialData.readsValue.type!==n.GenericReference)a.readsValue=C(a.initialData.readsValue,a.project);else if(a.initialData.readsValue&&a.initialData.readsValue.type===n.GenericReference){const e=mi(a.initialData.readsValue,a.project);e&&(a.readsValue=e)}if(a.readsValue){if(et.includes(a.readsValue.type)){let e=a.parent;dt.includes(e.type)||(e=e.parent);const t=a.type===n.InputMap&&a.parent.type===n.Loop;t&&(e=a.parent.parent),a.readsValue.setParent(e,null),!t&&e.detachedChildren.includes(a)?e.replaceDetachedChild(a,a.readsValue):t||e.subscribeDetachedChild(a.readsValue)}a.readsValue.addValueReader(a,null)}return a.readsValue}}class ja{static initWritesValues(a,e){const t=a.initialData.writesValues.reduce((s,l)=>{if(l.type===n.GenericReference||a.writesValues.some(d=>d.id===l.id))return s;const o=C(l,a.project);return o.setValueWriter(a,null),et.includes(o.type)&&(o.setParent(e,null),o.initChildren(null)),[...s,o]},[]),i=[...a.writesValues];return a.writesValues=p([...i,...t]),a.writesValues}}class oW{}const ae=class ae extends at{constructor(e){super(e);f(this,"initialData");f(this,"id");f(this,"type",n.Project);f(this,"name",null);f(this,"description",null);f(this,"x");f(this,"y");f(this,"entities",[]);f(this,"projects",[]);f(this,"functions",[]);f(this,"events",[]);f(this,"variableDeclarations",[]);f(this,"variableInstances",[]);f(this,"conditions",[]);f(this,"operations",[]);f(this,"functionCalls",[]);f(this,"loops",[]);f(this,"searches",[]);f(this,"primitives",[]);f(this,"builtInBaseEntities",[]);f(this,"operationDeclarations",[]);f(this,"globalEventActionDescriptors",[]);f(this,"loopDeclarations",[]);f(this,"loopDeclarationsBodies",[]);f(this,"conditionDeclarations",[]);f(this,"valueDescriptors",[]);f(this,"dataTypes",[]);f(this,"project");f(this,"instances",{});f(this,"builtInInstances",{});f(this,"deletedInstances",{});f(this,"errors",[]);f(this,"references",[]);f(this,"history",[]);f(this,"detachedDependents",{});f(this,"knownVersions",null);f(this,"activeVersion",!1);f(this,"initialized",!1);f(this,"startedInitialization",!1);f(this,"onCloseChangeSetCallback",null);this.initialData=e,this.id=e.id,this.name=e.name,this.description=e.description,this.x=0,this.y=0,this.instances[this.id]=this;try{(!ae.UUID||ae.UUID.isBackup)&&(ae.UUID=Fo==null?void 0:Fo()),ae.UUID||(ae.UUID={isBackup:!0,uuid:()=>Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15),fromUUID:t=>t})}catch(t){console.error("Error initializing UUID module",t),ae.UUID={isBackup:!0,uuid:()=>Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15),fromUUID:i=>i}}}static injectUUIDModule(e){ae.UUID=e}static validateGenerationTarget(e,t){let i=JSON.parse(JSON.stringify(e));const s=[];return s.push(...ut(i)),{errors:s,modifiedData:i}}async closePendingCallbacks(){for(let e=0;e<this.history.length;e++){const t=this.history[e];t.dirty&&await t.closeAsync()}}async onCloseChangeSet(e){this.onCloseChangeSetCallback=e,await this.closePendingCallbacks()}async closeChangeSet(e){if(this.onCloseChangeSetCallback){const t=await this.onCloseChangeSetCallback(e);return t.success&&(e.dirty=!1),t}return{success:!1}}toLatestChangeSet(e,t,i,s=!1,l="here-this"){if(!this.history.length)return new b(this,e,t,i,s,l);const o=this.history[this.history.length-1];return o.open?o:this.addChangeSet(new b(this,e,t,i,s,l))}addChangeSet(e){if(!this.history.length)return this.history.push(e),e;const t=this.history.find(l=>l.id===(e==null?void 0:e.id));if(t)return t;const i=this.history.find(l=>l.open);if(i)throw console.log("previouslyStillOpen: ",i),console.log("new change set: ",e),new Error(`There is already an open change-set with id '${i.id}'.`);const s=this.history.findIndex(l=>T(l.timestamp).isBefore(T(e==null?void 0:e.timestamp)));return s===-1?this.history.push(e):this.history.splice(s,0,e),e}discardChangeSet(e){const t=this.history.findIndex(i=>i.id===(e==null?void 0:e.id));return t!==-1&&this.history.splice(t,1),this}undo(){const e=[],t=[],i=[],s=[];return{updated:p(e),added:p(t),removed:p(i),affected:p(s),self:this}}redo(){const e=[],t=[],i=[],s=[];return{updated:p(e),added:p(t),removed:p(i),affected:p(s),self:this}}async inject(...e){return await Promise.all(e.map(t=>new Promise(async i=>{await t.init(this),i(null)}))),this}validateGeneratedUpdate(e){return{errors:[],modifiedData:e}}subscribeDependents(e){return e.forEach(t=>{this.detachedDependents[t.entity.id]||(this.detachedDependents[t.entity.id]=t)}),this}syncDependents(){const e=[],t=[],i=[],s=[];return Object.values(this.detachedDependents).forEach(l=>{const o=l.entity.afterAllChildrenInitialized();e.push(...o.updated),t.push(...o.added),i.push(...o.removed),s.push(...o.affected)}),{updated:p(e),added:p(t),removed:p(i),affected:p(s),self:this}}onDetachedDependencyRemoved(e,t,i){const s=[],l=[],o=[],d=[];return{updated:p(s),added:p(l),removed:p(o),affected:p(d),self:this}}onDetachedDependencyRestored(e,t,i){const s=[],l=[],o=[],d=[];return{updated:p(s),added:p(l),removed:p(o),affected:p(d),self:this}}subscribeToDependencies(){return this}increaseVersion(e){if(e&&!T(e).isValid())throw new Error(`The shared timestamp '${e}' is not a valid ISO 8601 date string.`);return e&&T(e).isSame(T(this.createdAt))?this:(this.previousVersion=this.version,this.version=ae.UUID.uuid(),this.createdAt=T(e).toISOString()||T().toISOString(),this)}captureVersion(){var t;const e=((t=this.knownVersions)==null?void 0:t.get(this.version))||new ae(this);return e.metaSync(this.toMeta(),null),this.knownVersions=this.knownVersions?this.knownVersions.set(this.version,e):new Map([[this.version,e]]),e.entities=this.entities,e.projects=this.projects,e.functions=this.functions,e.events=this.events,e.variableDeclarations=this.variableDeclarations,e.variableInstances=this.variableInstances,e.conditions=this.conditions,e.operations=this.operations,e.functionCalls=this.functionCalls,e.loops=this.loops,e.searches=this.searches,this}recursiveCaptureUpstreamVersions(e){const t=[],i=[],s=[],l=[];return{updated:p(t),added:p(i),removed:p(s),affected:p(l),self:this}}async restoreVersion(e){var d;const t=[],i=[],s=[],l=[];if(this.version===e)return{updated:p(t),added:p(i),removed:p(s),affected:p(l),self:this};if(!this.knownVersions){const u=new Map;for(const[y,c]of this.knownVersions||new Map){if(u.set(y,c),c.activeVersion=!1,c.knownVersions)for(const[I,E]of c.knownVersions)u.set(I,E);c.knownVersions=null}}let o=(d=this.knownVersions)==null?void 0:d.get(e);if(!o){const u=await this.APILoadVersion({},e);if(!u)throw new Error(`Version with id '${e}' for entity with id '${this.id}' not found.`);o=new ae(u)}return this.metaSync(o.toShallowJSON(),null),this.entities=o.entities,this.projects=o.projects,this.functions=o.functions,this.events=o.events,this.variableDeclarations=o.variableDeclarations,this.variableInstances=o.variableInstances,this.conditions=o.conditions,this.operations=o.operations,this.functionCalls=o.functionCalls,this.loops=o.loops,this.searches=o.searches,{updated:p(t),added:p(i),removed:p(s),affected:p(l),self:this}}hydrateAncestors(){const e=[],t=[],i=[],s=[];return{updated:p(e),added:p(t),removed:p(i),affected:p(s),self:this}}afterAllChildrenInitialized(e=null){const t=[],i=[],s=[],l=[];return this.initialized=!0,this.captureVersion(),this.validate(),{updated:p(t),added:p(i),removed:p(s),affected:p(l),self:this}}addSelfToProject(e){const t=[],i=[],s=[],l=[];return this.subscribe(),this.subscribeToDependencies(),{updated:p(t),added:p(i),removed:p(s),affected:p(l),self:this}}get instancesList(){return Object.values(this.instances)}isOperationDeclaration(e){return this.operationDeclarations.includes(e)}isGlobalEventActionDescriptor(e){return this.globalEventActionDescriptors.includes(e)}isLoopDeclaration(e){return this.loopDeclarations.includes(e)}isConditionDeclaration(e){return this.conditionDeclarations.includes(e)}initChildren(e=this.project.addChangeSet(new b(this.project,ae.sessionAuthor,T().toISOString(),this,!0,"init-children"))){return this.initialized||this.startedInitialization?this:(this.startedInitialization=!0,this.entities=this.initialData.entities.map(t=>{const i=C(t,this);return i.setParent(this,null),i.initChildren(e),i}),this.projects=this.initialData.projects.map(t=>{const i=C(t,this);return i.setParent(this,null),i.initChildren(e),i}),this.variableDeclarations=this.initialData.variableDeclarations.map(t=>{const i=C(t,this);return i.setParent(this,null),i.initChildren(e),i}),this.variableInstances=this.initialData.variableInstances.map(t=>{const i=C(t,this);return i.setParent(this,null),i.initChildren(e),i}),this.conditions=this.initialData.conditions.map(t=>{const i=C(t,this);return i.setParent(this,null),i.initChildren(e),i}),this.operations=this.initialData.operations.map(t=>{const i=C(t,this);return i.setParent(this,null),i.initChildren(e),i}),this.functions=this.initialData.functions.map(t=>{const i=C(t,this);return i.setParent(this,null),i.initChildren(e),i}),this.events=this.initialData.events.map(t=>{const i=C(t,this);return i.setParent(this,null),i.initChildren(e),i}),this.functionCalls=this.initialData.functionCalls.map(t=>{const i=C(t,this);return i.setParent(this,null),i.initChildren(e),i}),this.loops=this.initialData.loops.map(t=>{const i=C(t,this);return i.setParent(this,null),i.initChildren(e),i}),this.searches=this.initialData.searches.map(t=>{const i=C(t,this);return i.setParent(this,null),i.initChildren(e),i}),this.attachOrphanReferences(),this.subscribeToDependencies(),this.afterAllChildrenInitialized(e),e==null||e.attemptAutoclose("init-children",this.id),this)}subscribeInstance(e){return(!this.instances[e.id]||this.instances[e.id]!==e)&&(this.instances[e.id]=e),this}subscribeDeletedInstance(e){return(!this.deletedInstances[e.id]||this.deletedInstances[e.id]!==e)&&(this.deletedInstances[e.id]=e),this}subscribeBuiltInInstance(e){return(!this.builtInInstances[e.id]||this.builtInInstances[e.id]!==e)&&(this.builtInInstances[e.id]=e),this}subscribe(){return this}unsubscribe(){return this}unsubscribeInstance(e){return delete this.instances[e.id],this}unsubscribeDeletedInstance(e){return delete this.deletedInstances[e.id],this}findSubscribedBuiltInInstance(e){return this.builtInInstances[e.id]||null}get(e){return this.instances[e]||this.builtInInstances[e]||null}getDeleted(e){return this.deletedInstances[e]||null}getManaged(e){return this.getBuiltIn(e)?null:this.instances[e]||null}getBuiltIn(e){return this.builtInInstances[e]||null}findSubscribedInstanceFromReference(e){return this.instances[e.entityId]||null}findSubscribedBuiltInInstanceFromReference(e){return this.builtInInstances[e.entityId]||null}metaSync(e,t=this.project.addChangeSet(new b(this.project,ae.sessionAuthor,T().toISOString(),this,!0,"meta-sync"))){const i=pt(this,e),s=this.toMeta();return this.name=e.name||s.name,this.description=e.description||s.description,this.x=e.x||s.x,this.y=e.y||s.y,super.metaSync(e),e.deleted===!0&&!s.deleted?t==null||t.add(this,A.Removed):e.deleted===!1&&s.deleted?t==null||t.add(this,A.Added):i&&(t==null||t.add(this,A.Updated)),t==null||t.attemptAutoclose("meta-sync",this.id),this}async APILoad(e=g,...t){return await ae.repository.APILoad(this.id,...t),this}async APICreate(e=g,...t){return await ae.repository.APICreate(this.toShallowJSON(),...t),this}async APIUpdate(e=g,...t){return await ae.repository.APIUpdate(this.toShallowJSON(),...t),this}async APIDelete(e=g,...t){return await ae.repository.APIDelete(this.toShallowJSON(),...t),this}async APIClone(e=g,...t){return await ae.repository.APIClone(this.id,...t),this}async APILoadVersion(e=g,t,...i){return await ae.repository.APILoadVersion(this.id,t,...i)}remove({ignoreUpstream:e}={ignoreUpstream:!1},t=this.project.addChangeSet(new b(this.project,ae.sessionAuthor,T().toISOString(),this,!0,"remove-entity"))){return{added:[],updated:[],removed:[],affected:[],self:this}}restore({}={},e=this.project.addChangeSet(new b(this.project,ae.sessionAuthor,T().toISOString(),this,!0,"restore-entity"))){return{added:[],updated:[],removed:[],affected:[],self:this}}getAllBuiltInIds(){const e=new Set;return[...this.primitives.flatMap(t=>t.toFlatIds(e)),...this.builtInBaseEntities.flatMap(t=>t.toFlatIds(e)),...this.operationDeclarations.flatMap(t=>t.toFlatIds(e)),...this.globalEventActionDescriptors.flatMap(t=>t.toFlatIds(e)),...this.loopDeclarations.flatMap(t=>t.toFlatIds(e)),...this.conditionDeclarations.flatMap(t=>t.toFlatIds(e)),...this.valueDescriptors.flatMap(t=>t.toFlatIds(e)),...this.dataTypes.flatMap(t=>t.toFlatIds(e))]}getAllBuiltIn(){const e=new Set;return[...this.primitives.flatMap(t=>t.toFlat(e)),...this.builtInBaseEntities.flatMap(t=>t.toFlat(e)),...this.operationDeclarations.flatMap(t=>t.toFlat(e)),...this.globalEventActionDescriptors.flatMap(t=>t.toFlat(e)),...this.loopDeclarations.flatMap(t=>t.toFlat(e)),...this.conditionDeclarations.flatMap(t=>t.toFlat(e)),...this.valueDescriptors.flatMap(t=>t.toFlat(e)),...this.dataTypes.flatMap(t=>t.toFlat(e))]}toFlat(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this,...this.entities.flatMap(i=>i.toFlat(e)),...this.functions.flatMap(i=>i.toFlat(e)),...this.events.flatMap(i=>i.toFlat(e)),...this.projects.flatMap(i=>i.toFlat(e)),...this.variableDeclarations.flatMap(i=>i.toFlat(e)),...this.variableInstances.flatMap(i=>i.toFlat(e)),...this.conditions.flatMap(i=>i.toFlat(e)),...this.operations.flatMap(i=>i.toFlat(e)),...this.functionCalls.flatMap(i=>i.toFlat(e)),...this.loops.flatMap(i=>i.toFlat(e)),...this.searches.flatMap(i=>i.toFlat(e))])}toFlatIds(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.id,...this.entities.flatMap(i=>i.toFlatIds(e)),...this.functions.flatMap(i=>i.toFlatIds(e)),...this.events.flatMap(i=>i.toFlatIds(e)),...this.projects.flatMap(i=>i.toFlatIds(e)),...this.variableDeclarations.flatMap(i=>i.toFlatIds(e)),...this.variableInstances.flatMap(i=>i.toFlatIds(e)),...this.conditions.flatMap(i=>i.toFlatIds(e)),...this.operations.flatMap(i=>i.toFlatIds(e)),...this.functionCalls.flatMap(i=>i.toFlatIds(e)),...this.loops.flatMap(i=>i.toFlatIds(e)),...this.searches.flatMap(i=>i.toFlatIds(e))])}toMeta(){return{id:this.id,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,description:this.description,type:this.type,name:this.name}}toJSON(e=new Set){return e.has(this.id)?this.toReference():(e.add(this.id),{id:this.id,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,type:this.type,name:this.name,description:this.description,entities:this.entities.map(t=>t.toJSON(e)),variableDeclarations:this.variableDeclarations.map(t=>t.toJSON(e)),variableInstances:this.variableInstances.map(t=>t.toJSON(e)),conditions:this.conditions.map(t=>t.toJSON(e)),operations:this.operations.map(t=>t.toJSON(e)),loops:this.loops.map(t=>t.toJSON(e)),searches:this.searches.map(t=>t.toJSON(e)),functions:this.functions.map(t=>t.toJSON(e)),events:this.events.map(t=>t.toJSON(e)),projects:this.projects.map(t=>t.toJSON(e)),functionCalls:this.functionCalls.map(t=>t.toJSON(e))})}toJSONClone(e={uuidStrategy:"uuid"}){const t=new Map,i=new Set,s=this.getAllBuiltInIds();return Object.keys(this.instances).forEach(l=>{if(s.includes(l)){t.set(l,l);return}t.set(l,ae.UUID.uuid())}),i.add(this.id),{id:t.get(this.id),version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,type:this.type,name:this.name,description:this.description,entities:this.entities.map(l=>l.toJSONClone({...e,seenEntityMaps:t,seenEntities:i,newId:null})),projects:this.projects.map(l=>l.toJSONClone({...e,seenEntityMaps:t,seenEntities:i,newId:null})),variableDeclarations:this.variableDeclarations.map(l=>l.toJSONClone({...e,seenEntityMaps:t,seenEntities:i,newId:null})),variableInstances:this.variableInstances.map(l=>l.toJSONClone({...e,seenEntityMaps:t,seenEntities:i,newId:null})),conditions:this.conditions.map(l=>l.toJSONClone({...e,seenEntityMaps:t,seenEntities:i,newId:null})),operations:this.operations.map(l=>l.toJSONClone({...e,seenEntityMaps:t,seenEntities:i,newId:null})),functions:this.functions.map(l=>l.toJSONClone({...e,seenEntityMaps:t,seenEntities:i,newId:null})),events:this.events.map(l=>l.toJSONClone({...e,seenEntityMaps:t,seenEntities:i,newId:null})),functionCalls:this.functionCalls.map(l=>l.toJSONClone({...e,seenEntityMaps:t,seenEntities:i,newId:null})),loops:this.loops.map(l=>l.toJSONClone({...e,seenEntityMaps:t,seenEntities:i,newId:null})),searches:this.searches.map(l=>l.toJSONClone({...e,seenEntityMaps:t,seenEntities:i,newId:null}))}}toReference(e=q){var i;let t=this.id;return(i=e.seenEntityMaps)!=null&&i.has(this.id)&&(t=e.seenEntityMaps.get(this.id)),{id:t+"--"+ae.UUID.uuid()+"--ref",type:n.GenericReference,entityId:t,version:this.version,entityType:this.type}}toShallowJSON(e=q){var i;let t=this.id;return(i=e.seenEntityMaps)!=null&&i.has(this.id)&&(t=e.seenEntityMaps.get(this.id)),{id:t,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,type:this.type,name:this.name,description:this.description,entities:this.entities.map(s=>s.toReference(e)),functions:this.functions.map(s=>s.toReference(e)),events:this.events.map(s=>s.toReference(e)),projects:this.projects.map(s=>s.toReference(e)),variableDeclarations:this.variableDeclarations.map(s=>s.toReference(e)),variableInstances:this.variableInstances.map(s=>s.toReference(e)),conditions:this.conditions.map(s=>s.toReference(e)),operations:this.operations.map(s=>s.toReference(e)),functionCalls:this.functionCalls.map(s=>s.toReference(e)),loops:this.loops.map(s=>s.toReference(e)),searches:this.searches.map(s=>s.toReference(e))}}toFlatJSON(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.toShallowJSON(),...this.entities.flatMap(i=>i.toFlatJSON(e)),...this.functions.flatMap(i=>i.toFlatJSON(e)),...this.events.flatMap(i=>i.toFlatJSON(e)),...this.projects.flatMap(i=>i.toFlatJSON(e)),...this.variableDeclarations.flatMap(i=>i.toFlatJSON(e)),...this.variableInstances.flatMap(i=>i.toFlatJSON(e)),...this.conditions.flatMap(i=>i.toFlatJSON(e)),...this.operations.flatMap(i=>i.toFlatJSON(e)),...this.functionCalls.flatMap(i=>i.toFlatJSON(e)),...this.loops.flatMap(i=>i.toFlatJSON(e)),...this.searches.flatMap(i=>i.toFlatJSON(e))])}toGenerationTarget(){return{id:this.id,type:this.type,name:this.name,description:this.description}}toFlatGenerationTarget(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[...this.entities.flatMap(i=>i.toFlatGenerationTarget(e)),...this.functions.flatMap(i=>i.toFlatGenerationTarget(e)),...this.events.flatMap(i=>i.toFlatGenerationTarget(e)),...this.projects.flatMap(i=>i.toFlatGenerationTarget(e)),...this.variableDeclarations.flatMap(i=>i.toFlatGenerationTarget(e)),...this.variableInstances.flatMap(i=>i.toFlatGenerationTarget(e)),...this.conditions.flatMap(i=>i.toFlatGenerationTarget(e)),...this.operations.flatMap(i=>i.toFlatGenerationTarget(e)),...this.functionCalls.flatMap(i=>i.toFlatGenerationTarget(e)),...this.loops.flatMap(i=>i.toFlatGenerationTarget(e)),...this.searches.flatMap(i=>i.toFlatGenerationTarget(e))])}clearErrors(){return this.errors=[],this.entities.forEach(e=>e.clearErrors()),this.projects.forEach(e=>e.clearErrors()),this.functions.forEach(e=>e.clearErrors()),this.events.forEach(e=>e.clearErrors()),this.variableDeclarations.forEach(e=>e.clearErrors()),this.variableInstances.forEach(e=>e.clearErrors()),this.conditions.forEach(e=>e.clearErrors()),this.operations.forEach(e=>e.clearErrors()),this.functionCalls.forEach(e=>e.clearErrors()),this.loops.forEach(e=>e.clearErrors()),this.searches.forEach(e=>e.clearErrors()),this}validate(){const e=lZ(),t=this.toJSON();return e.safeParse(t),this.validateChildren(),{success:!0,error:null,data:t}}validateChildren(){this.entities.forEach(e=>e.validate()),this.projects.forEach(e=>e.validate()),this.functions.forEach(e=>e.validate()),this.events.forEach(e=>e.validate()),this.variableDeclarations.forEach(e=>e.validate()),this.variableInstances.forEach(e=>e.validate()),this.conditions.forEach(e=>e.validate()),this.operations.forEach(e=>e.validate()),this.functionCalls.forEach(e=>e.validate()),this.loops.forEach(e=>e.validate()),this.searches.forEach(e=>e.validate())}getErrors(){return[...this.errors,...this.entities.flatMap(t=>t.getErrors()),...this.projects.flatMap(t=>t.getErrors()),...this.functions.flatMap(t=>t.getErrors()),...this.events.flatMap(t=>t.getErrors()),...this.variableDeclarations.flatMap(t=>t.getErrors()),...this.variableInstances.flatMap(t=>t.getErrors()),...this.conditions.flatMap(t=>t.getErrors()),...this.operations.flatMap(t=>t.getErrors()),...this.functionCalls.flatMap(t=>t.getErrors()),...this.loops.flatMap(t=>t.getErrors()),...this.searches.flatMap(t=>t.getErrors())]}getShallowErrors(){return this.errors}clone(){return this}getDefinitionEntity(e){return this.entities.find(t=>t.id===e)||null}addDefinitionEntityFromTransfer(e){const t=C(e,this);return this.addDefinitionEntity(t),t}addDefinitionEntity(e){return this.entities.includes(e)||this.entities.push(e),e}addFunctionDeclarationFromTransfer(e){const t=C(e,this);return this.addFunctionDeclaration(t),t}addFunctionDeclaration(e){return this.functions.includes(e)||this.functions.push(e),e}addFunctionCallFromTransfer(e){const t=C(e,this);return this.addFunctionCall(t),t}addFunctionCall(e){return this.functionCalls.includes(e)||this.functionCalls.push(e),e}addVariableDeclarationFromTransfer(e){const t=C(e,this);return this.addVariableDeclaration(t),t}addVariableDeclaration(e){return this.variableDeclarations.includes(e)||this.variableDeclarations.push(e),e}addVariableInstanceFromTransfer(e){const t=C(e,this);return this.addVariableInstance(t),t}addVariableInstance(e){return this.variableInstances.includes(e)||this.variableInstances.push(e),e}addInstalledProjectFromTransfer(e){const t=C(e,this);return this.addInstalledProject(t),this}addInstalledProject(e){return this.projects.includes(e)||this.projects.push(e),this}addGlobalEventFromTransfer(e){const t=C(e,this);return this.addGlobalEvent(t),this}addGlobalEvent(e){return this.events.includes(e)||this.events.push(e),this}addConditionFromTransfer(e){const t=C(e,this);return this.addCondition(t),this}addCondition(e){return this.conditions.includes(e)||this.conditions.push(e),this}addOperationFromTransfer(e){const t=C(e,this);return this.addOperation(t),this}addOperation(e){return this.operations.includes(e)||this.operations.push(e),this}addLoopFromTransfer(e){const t=C(e,this);return this.addLoop(t),this}addLoop(e){return this.loops.includes(e)||this.loops.push(e),this}addSearchFromTransfer(e){const t=C(e,this);return this.addSearch(t),this}addSearch(e){return this.searches.includes(e)||this.searches.push(e),this}removeDefinitionEntity(e){const t=this.entities.findIndex(i=>i.id===e.id);if(t>-1){const i=this.entities[t];return this.entities.splice(t,1),i}return null}removeFunctionDeclaration(e){const t=this.functions.findIndex(i=>i.id===e.id);if(t>-1){const i=this.functions[t];return this.functions.splice(t,1),i}return null}removeExternalProject(e){const t=this.projects.findIndex(i=>i.id===e.id);if(t>-1){const i=this.projects[t];return this.projects.splice(t,1),i}return null}removeGlobalEvent(e){const t=this.events.findIndex(i=>i.id===e.id);if(t>-1){const i=this.events[t];return this.events.splice(t,1),i}return null}removeTopLevelVariableDeclaration(e){if(e.type!==n.VariableDeclaration)return null;const t=this.variableDeclarations.findIndex(i=>i.id===e.id);if(t>-1){const i=this.variableDeclarations[t];return this.variableDeclarations.splice(t,1),i}return null}getEntryPoints(){return[...this.functions,...this.events,...this.entities.flatMap(t=>t.methods)]}getFunctionDeclaration(e){return this.functions.find(t=>t.id===e)||null}getConditions(){return[...this.conditions,...this.getEntryPoints().reduce((t,i)=>{const s=rt(i);return[...t,...s.filter(l=>l.type===n.Condition)]},[]),...this.functionCalls.reduce((t,i)=>{const s=rt(i);return[...t,...s.filter(l=>l.type===n.Condition)]},[]),...this.operations.reduce((t,i)=>{const s=rt(i);return[...t,...s.filter(l=>l.type===n.Condition)]},[]),...this.loops.reduce((t,i)=>{const s=rt(i);return[...t,...s.filter(l=>l.type===n.Condition)]},[]),...this.searches.reduce((t,i)=>{const s=rt(i);return[...t,...s.filter(l=>l.type===n.Condition)]},[])]}getOperations(){return[...this.operations,...this.getEntryPoints().reduce((t,i)=>{const s=rt(i);return[...t,...s.filter(l=>l.type===n.Operation)]},[]),...this.functionCalls.reduce((t,i)=>{const s=rt(i);return[...t,...s.filter(l=>l.type===n.Operation)]},[]),...this.conditions.reduce((t,i)=>{const s=rt(i);return[...t,...s.filter(l=>l.type===n.Operation)]},[]),...this.loops.reduce((t,i)=>{const s=rt(i);return[...t,...s.filter(l=>l.type===n.Operation)]},[]),...this.searches.reduce((t,i)=>{const s=rt(i);return[...t,...s.filter(l=>l.type===n.Operation)]},[])]}getFunctionCalls(){return[...this.functionCalls,...this.getEntryPoints().reduce((t,i)=>{const s=rt(i);return[...t,...s.filter(l=>l.type===n.FunctionCall)]},[]),...this.conditions.reduce((t,i)=>{const s=rt(i);return[...t,...s.filter(l=>l.type===n.FunctionCall)]},[]),...this.operations.reduce((t,i)=>{const s=rt(i);return[...t,...s.filter(l=>l.type===n.FunctionCall)]},[]),...this.loops.reduce((t,i)=>{const s=rt(i);return[...t,...s.filter(l=>l.type===n.FunctionCall)]},[]),...this.searches.reduce((t,i)=>{const s=rt(i);return[...t,...s.filter(l=>l.type===n.FunctionCall)]},[])]}getVariables(){return[...this.variableDeclarations,...this.getEntryPoints().reduce((t,i)=>{const s=ze(i);return[...t,...s]},[]),...this.functionCalls.reduce((t,i)=>{const s=ze(i);return[...t,...s]},[]),...this.conditions.reduce((t,i)=>{const s=ze(i);return[...t,...s]},[]),...this.operations.reduce((t,i)=>{const s=ze(i);return[...t,...s]},[]),...this.loops.reduce((t,i)=>{const s=ze(i);return[...t,...s]},[]),...this.searches.reduce((t,i)=>{const s=ze(i);return[...t,...s]},[])]}getVariableInstances(){return[...this.variableInstances,...this.getEntryPoints().reduce((t,i)=>{const l=ze(i).filter(o=>o.type===n.VariableInstance);return[...t,...l]},[]),...this.functionCalls.reduce((t,i)=>{const l=ze(i).filter(o=>o.type===n.VariableInstance);return[...t,...l]},[]),...this.conditions.reduce((t,i)=>{const l=ze(i).filter(o=>o.type===n.VariableInstance);return[...t,...l]},[]),...this.operations.reduce((t,i)=>{const l=ze(i).filter(o=>o.type===n.VariableInstance);return[...t,...l]},[]),...this.loops.reduce((t,i)=>{const l=ze(i).filter(o=>o.type===n.VariableInstance);return[...t,...l]},[]),...this.searches.reduce((t,i)=>{const l=ze(i).filter(o=>o.type===n.VariableInstance);return[...t,...l]},[])]}getVariableDeclarations(){return p([...this.variableDeclarations,...this.getEntryPoints().reduce((t,i)=>{const l=ze(i).filter(o=>o.type===n.VariableDeclaration);return[...t,...l]},[]),...this.functionCalls.reduce((t,i)=>{const l=ze(i).filter(o=>o.type===n.VariableDeclaration);return[...t,...l]},[]),...this.conditions.reduce((t,i)=>{const l=ze(i).filter(o=>o.type===n.VariableDeclaration);return[...t,...l]},[]),...this.operations.reduce((t,i)=>{const l=ze(i).filter(o=>o.type===n.VariableDeclaration);return[...t,...l]},[]),...this.loops.reduce((t,i)=>{const l=ze(i).filter(o=>o.type===n.VariableDeclaration);return[...t,...l]},[]),...this.searches.reduce((t,i)=>{const l=ze(i).filter(o=>o.type===n.VariableDeclaration);return[...t,...l]},[])])}attachOrphanReferences(){const e=this.getVariableInstances(),t=this.getVariableDeclarations();return e.forEach(i=>{if(!i.declaration){const s=i.initialData,l=s.declaration.entityId||s.declaration.id,o=t.find(d=>d.id===l);o&&i.setDeclaration(o)}}),this}getBuiltInPersistedEntity(){return this.builtInBaseEntities.find(e=>e.name===z.PERSISTED_ENTITY)||null}};f(ae,"sessionAuthor","1"),f(ae,"UUID",{isBackup:!0,uuid:()=>Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15),fromUUID:e=>e}),f(ae,"repository",{APICreate:async(e,...t)=>e,APIUpdate:async(e,...t)=>e,APIDelete:async(e,...t)=>e,APIClone:async(e,...t)=>{},APILoad:async(e,...t)=>null,APILoadVersion:async(e,t,...i)=>null}),f(ae,"type",n.Project),f(ae,"USER_MANAGED_PARENT_TYPES",[]),f(ae,"PARENT_TYPES",[...ae.USER_MANAGED_PARENT_TYPES]),f(ae,"MUTABLE_BASE_PROPERTIES",["name","description"]),f(ae,"INMUTABLE_BASE_PROPERTIES",["id","type","version","createdAt","author","previousVersion"]),f(ae,"BASE_PROPERTIES",[...ae.MUTABLE_BASE_PROPERTIES,...ae.INMUTABLE_BASE_PROPERTIES]),f(ae,"MUTABLE_META_PROPERTIES",[...ae.MUTABLE_BASE_PROPERTIES,"x","y"]),f(ae,"INMUTABLE_META_PROPERTIES",[...ae.INMUTABLE_BASE_PROPERTIES]),f(ae,"META_PROPERTIES",[...ae.MUTABLE_META_PROPERTIES,...ae.INMUTABLE_META_PROPERTIES]),f(ae,"MUTABLE_UPSTREAM_PROPERTIES",[]),f(ae,"INMUTABLE_UPSTREAM_PROPERTIES",["primitives","builtInBaseEntities","operationDeclarations","globalEventActionDescriptors","loopDeclarations","builtInInstances"]),f(ae,"UPSTREAM_PROPERTIES",[...ae.MUTABLE_UPSTREAM_PROPERTIES,...ae.INMUTABLE_UPSTREAM_PROPERTIES]),f(ae,"MUTABLE_DOWNSTREAM_PROPERTIES",["entities","projects","functions","events","variableDeclarations","variableInstances","conditions","operations","functionCalls","loops","searches"]),f(ae,"INMUTABLE_DOWNSTREAM_PROPERTIES",[]),f(ae,"DOWNSTREAM_PROPERTIES",[...ae.MUTABLE_DOWNSTREAM_PROPERTIES,...ae.INMUTABLE_DOWNSTREAM_PROPERTIES]),f(ae,"PROPERTIES",[...ae.META_PROPERTIES,...ae.UPSTREAM_PROPERTIES,...ae.DOWNSTREAM_PROPERTIES]);let m=ae;var aw=(r=>(r.PersistChangeSet="persist-change-set",r.CreateSingle="create-single",r.CreateBulk="create-bulk",r.CreateSingleNested="create-single-nested",r.CreateBulkNested="create-bulk-nested",r.Update="update",r.Clone="clone",r.Delete="delete",r.Load="load",r.LoadNested="load-nested",r.LoadVersion="load-version",r))(aw||{});class ow extends Je{constructor(e){super(Oi,e);f(this,"id",Ke.Parallel);f(this,"name",Ke.Parallel);f(this,"description","Execute a list of actions one after the other");f(this,"version","1");f(this,"autoexecutable",!0);f(this,"initialData",Oi);f(this,"type",n.ActionDescriptor);f(this,"inputs",[]);f(this,"outputs",[]);f(this,"error",null);f(this,"project");this.project=e,this.inputs=Oi.inputs.map(t=>{const i=C(t,this.project);return i.setParent(this,null),i.initChildren(null),i}),this.outputs=Oi.outputs.map(t=>{const i=C(t,this.project);return i.setParent(this,null),i.initChildren(null),i}),this.error=Oi.error?C(Oi.error,this.project):null}}class lw extends Je{constructor(e){super(Zt,e);f(this,"id",Zt.id);f(this,"name",Zt.name);f(this,"description",Zt.description);f(this,"version",Zt.version);f(this,"autoexecutable",!1);f(this,"initialData",Zt);f(this,"type",n.ActionDescriptor);f(this,"inputs",[]);f(this,"outputs",[]);f(this,"error",null);f(this,"project");this.project=e,this.inputs=Zt.inputs.map(t=>{const i=C(t,this.project);return i.setParent(this,null),i.initChildren(null),i}),this.outputs=Zt.outputs.map(t=>{const i=C(t,this.project);return i.setParent(this,null),i.initChildren(null),i}),this.error=Zt.error?C(Zt.error,this.project):null}}class dw extends Je{constructor(e){super(nr,e);f(this,"id",Ke.Sequential);f(this,"name",Ke.Sequential);f(this,"description","Execute a list of actions one after the other");f(this,"version","1");f(this,"autoexecutable",!0);f(this,"initialData",nr);f(this,"type",n.ActionDescriptor);f(this,"inputs",[]);f(this,"outputs",[]);f(this,"error",null);f(this,"project");this.project=e,this.inputs=nr.inputs.map(t=>{const i=C(t,this.project);return i.setParent(this,null),i.initChildren(null),i}),this.outputs=nr.outputs.map(t=>{const i=C(t,this.project);return i.setParent(this,null),i.initChildren(null),i}),this.error=nr.error?C(nr.error,this.project):null}}class lW extends Je{constructor(a){super(Bs,a)}}class dW extends Je{constructor(a){super(tn,a)}}class uW extends Je{constructor(e){super(rn,e);f(this,"autoexecutable",!0)}getEntityToMatchInputMap(e){return e.inputs.find(t=>{var i;return((i=t.declaration)==null?void 0:i.id)===k.operation[Xe.Validate].inputs.entityToMatch.id})||null}getDataToValidateInputMap(e){return e.inputs.find(t=>{var i;return((i=t.declaration)==null?void 0:i.id)===k.operation[Xe.Validate].inputs.dataToValidate.id})||null}getOutputDataOutputMap(e){return e.outputs.find(t=>{var i;return((i=t.declaration)==null?void 0:i.id)===k.operation[Xe.Validate].outputs.outputEntity.id})||null}getEntityToMatch(e,t=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"get-entity-to-match-validate-data"))){let i=null;if(e.readsValue){const l=e.readsValue.getDataType(t);l&&l.entity&&l.entity.type===n.DefinitionEntity&&(i=l.entity)}const s=e.getDefaultValue();return!i&&s&&s.valueAsTypeSingle&&!Array.isArray(s.valueAsTypeSingle)&&s.valueAsTypeSingle.type===n.DefinitionEntity&&(i=s.valueAsTypeSingle),i}syncOperationInstance(e,t=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"sync-operation-instance-validate-data"))){const i=[],s=[],l=[],o=[],d=this.getEntityToMatchInputMap(e);if(d){const{added:c,updated:I,removed:E,affected:O}=this.syncEntityToMatchInputMapDataType(d,t);i.push(...I),s.push(...c),l.push(...E),o.push(...O)}const u=this.getDataToValidateInputMap(e);if(u){const{added:c,updated:I,removed:E,affected:O}=this.syncDataToValidateInputMapDataType(u,t);i.push(...I),s.push(...c),l.push(...E),o.push(...O)}const y=this.getOutputDataOutputMap(e);if(y){const{added:c,updated:I,removed:E,affected:O}=this.syncOutputDataOutputMapDataType(y,t);i.push(...I),s.push(...c),l.push(...E),o.push(...O)}return t==null||t.attemptAutoclose("sync-operation-instance-validate-data",this.id),{updated:p(i),added:p(s),removed:p(l),affected:p(o),self:e}}syncEntityToMatchInputMapDataType(e,t=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"sync-entity-to-match-input-map-data-type"))){var u,y,c;const i=[],s=[],l=[],o=[];if(((u=e.declaration)==null?void 0:u.id)!==k.operation[Xe.Validate].inputs.entityToMatch.id)return t==null||t.attemptAutoclose("sync-entity-to-match-input-map-data-type",this.id),{updated:[],added:[],removed:[],affected:[],self:null};if(!e.dataType){const I={id:m.UUID.uuid(),version:m.UUID.uuid(),createdAt:(t==null?void 0:t.timestamp)||new Date().toISOString(),author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,isList:!1,andChildrenGroup:null,orChildrenGroup:null,asType:!0,entity:null,like:!0,inferred:!0,parent:e.toReference()},E=C(I,e.project);E.setParent(e,t),E.initChildren(t),t==null||t.add(E,A.Added),i.push(E),e.setDataType(E)}(y=e.dataType)==null||y.metaSync({inferred:!0,like:!1,asType:!0},t);const d=this.getEntityToMatch(e,t);return(c=e.dataType)==null||c.setEntity(d),e.dataType&&s.push(e.dataType),t==null||t.attemptAutoclose("sync-entity-to-match-input-map-data-type",this.id),{updated:p(s),added:p(i),removed:p(l),affected:p(o),self:e.dataType}}syncDataToValidateInputMapDataType(e,t=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"sync-data-to-validate-input-map-data-type"))){var c,I,E;const i=[],s=[],l=[],o=[];if(((c=e.declaration)==null?void 0:c.id)!==k.operation[Xe.Validate].inputs.dataToValidate.id)return t==null||t.attemptAutoclose("sync-data-to-validate-input-map-data-type",this.id),{updated:[],added:[],removed:[],affected:[],self:null};const d=this.getEntityToMatchInputMap(e.parent);if(!d)return t==null||t.attemptAutoclose("sync-data-to-validate-input-map-data-type",this.id),{updated:[],added:[],removed:[],affected:[],self:null};if(!this.getEntityToMatch(d,t))return t==null||t.attemptAutoclose("sync-data-to-validate-input-map-data-type",this.id),{updated:[],added:[],removed:[],affected:[],self:null};if(!e.dataType){const O={id:m.UUID.uuid(),version:m.UUID.uuid(),createdAt:(t==null?void 0:t.timestamp)||new Date().toISOString(),author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,isList:!1,andChildrenGroup:null,orChildrenGroup:null,asType:!1,entity:null,like:!0,inferred:!0,parent:e.toReference()},P=C(O,e.project);P.setParent(e,t),P.initChildren(t),t==null||t.add(P,A.Added),i.push(P),e.setDataType(P)}(I=e.dataType)==null||I.metaSync({inferred:!0,like:!0,asType:!1},t);const y=this.getEntityToMatch(d,t);return(E=e.dataType)==null||E.setEntity(y),e.dataType&&s.push(e.dataType),t==null||t.attemptAutoclose("sync-data-to-validate-input-map-data-type",this.id),{updated:p(s),added:p(i),removed:p(l),affected:p(o),self:e.dataType}}syncOutputDataOutputMapDataType(e,t=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"sync-output-data-output-map-data-type"))){var c,I,E;const i=[],s=[],l=[],o=[];if(((c=e.declaration)==null?void 0:c.id)!==k.operation[Xe.Validate].outputs.outputEntity.id)return t==null||t.attemptAutoclose("sync-output-data-output-map-data-type",this.id),{updated:[],added:[],removed:[],affected:[],self:null};const d=this.getEntityToMatchInputMap(e.parent);if(!d)return t==null||t.attemptAutoclose("sync-output-data-output-map-data-type",this.id),{updated:[],added:[],removed:[],affected:[],self:null};if(!this.getEntityToMatch(d,t))return t==null||t.attemptAutoclose("sync-output-data-output-map-data-type",this.id),{updated:[],added:[],removed:[],affected:[],self:null};if(!e.dataType){const O={id:m.UUID.uuid(),version:m.UUID.uuid(),createdAt:(t==null?void 0:t.timestamp)||new Date().toISOString(),author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,isList:!1,andChildrenGroup:null,orChildrenGroup:null,asType:!1,entity:null,like:!0,inferred:!0,parent:e.toReference()},P=C(O,e.project);P.setParent(e,t),P.initChildren(t),t==null||t.add(P,A.Added),i.push(P),e.setDataType(P)}(I=e.dataType)==null||I.metaSync({inferred:!0,like:!0,asType:!1},t);const y=this.getEntityToMatch(d,t);return(E=e.dataType)==null||E.setEntity(y),e.dataType&&s.push(e.dataType),t==null||t.attemptAutoclose("sync-output-data-output-map-data-type",this.id),{updated:p(s),added:p(i),removed:p(l),affected:p(o),self:e.dataType}}inferInputMapDataType(e,t=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"infer-input-map-data-type-validate-data"))){var i,s;if(((i=e.declaration)==null?void 0:i.id)===k.operation[Xe.Validate].inputs.entityToMatch.id){const{added:l,updated:o,removed:d,affected:u}=this.syncEntityToMatchInputMapDataType(e,t);return t==null||t.attemptAutoclose("infer-input-map-data-type-validate-data",this.id),{updated:p(o),added:p(l),removed:p(d),affected:p(u),self:e.dataType}}else if(((s=e.declaration)==null?void 0:s.id)===k.operation[Xe.Validate].inputs.dataToValidate.id){const{added:l,updated:o,removed:d,affected:u}=this.syncDataToValidateInputMapDataType(e,t);return t==null||t.attemptAutoclose("infer-input-map-data-type",this.id),{updated:p(o),added:p(l),removed:p(d),affected:p(u),self:e.dataType}}return{updated:[],added:[],removed:[],affected:[],self:null}}inferOutputMapDataType(e,t=this.project.addChangeSet(new b(this.project,m.sessionAuthor,T().toISOString(),this,!0,"infer-output-map-data-type-validate-data"))){var i;if(((i=e.declaration)==null?void 0:i.id)===k.operation[Xe.Validate].outputs.outputEntity.id){const{added:s,updated:l,removed:o,affected:d}=this.syncOutputDataOutputMapDataType(e,t);return t==null||t.attemptAutoclose("infer-output-map-data-type-validate-data",this.id),{updated:p(l),added:p(s),removed:p(o),affected:p(d),self:e.dataType}}return{updated:[],added:[],removed:[],affected:[],self:null}}}class pW extends Je{constructor(a){super(Id,a)}}class cW extends Je{constructor(a){super(Ad,a)}}class fW extends Je{constructor(a){super(bd,a)}}class yW extends Je{constructor(a){super(za,a)}}class hW extends Je{constructor(a){super(qa,a)}}class mW extends Je{constructor(a){super(Vs,a)}}function vW(r){const a=[new dw(r),new ow(r),new lw(r),new lW(r),new dW(r),new uW(r),new yW(r),new pW(r),new fW(r),new cW(r),new hW(r),new mW(r),new Je(Td,r),new Je(vd,r)];return a.forEach(e=>{e.initChildren(null),r.subscribeBuiltInInstance(e)}),r.operationDeclarations=a,a}class uw extends Ki{constructor(e){super(Ct,e);f(this,"initialData");f(this,"id",z.PERSISTED_ENTITY);f(this,"version","1");f(this,"name",z.PERSISTED_ENTITY);f(this,"description",Ct.description);f(this,"type",n.BuiltInBaseEntity);f(this,"abstract",Ct.abstract);f(this,"static",Ct.static);f(this,"properties",[]);f(this,"methods",[]);f(this,"abstractMethods",[]);f(this,"extends",[]);f(this,"errors",[]);f(this,"project");this.initialData=Ct,this.project=e,this.id=Ct.id,this.version=Ct.version,this.name=Ct.name,this.static=Ct.static,this.abstract=Ct.abstract,this.properties=this.initialData.properties.map(t=>{const i=C(t,this.project);return i.setParent(this,null),i.initChildren(null),i}),this.methods=this.initialData.methods.map(t=>{const i=C(t,this.project);return i.parent=this,i}),this.abstractMethods=this.initialData.abstractMethods.map(t=>{const i=C(t,this.project);return i.parent=this,i}),this.extends=this.initialData.extends.map(t=>C(t,this.project))}}function TW(r){const a=[new uw(r),new Ki(js,r),new Ki(ji,r),new Ki(co,r)];return a.forEach(e=>{r.subscribeBuiltInInstance(e)}),r.builtInBaseEntities=a,a}function IW(r){const a=[new oi(se,r),new oi(er,r),new oi(ve,r),new oi(pd,r),new oi(Ot,r),new oi(tr,r),new oi(Li,r),new oi(ir,r),new oi(Fn,r)];return a.forEach(e=>{r.subscribeBuiltInInstance(e)}),r.primitives=a,a}function EW(r){const a=[new Je(yo,r)];return a.forEach(e=>{e.initChildren(null),r.subscribeBuiltInInstance(e)}),r.globalEventActionDescriptors=a,a}function AW(r){const a=[new Je(Ls,r),new Je(Er,r),new Je(Ms,r),new Je(Sn,r),new Je(Zn,r),new Je(io,r)];a.forEach(t=>{t.initChildren(null),r.subscribeBuiltInInstance(t)}),r.loopDeclarations=a;const e=[new Je(ao,r),new Je(Ns,r),new Je(no,r),new Je(Ud,r),new Je(jd,r),new Je(ro,r)];return e.forEach(t=>{t.initChildren(null),r.subscribeBuiltInInstance(t)}),r.loopDeclarationsBodies=e,a}function bW(r){const a=[new qr(ho,r)];return a.forEach(e=>{e.initChildren(null),r.subscribeBuiltInInstance(e)}),r.valueDescriptors=a,a}function RW(r){const a=[new Je(ln,r),new Je(Yn,r)];return a.forEach(e=>{e.initChildren(null),r.subscribeBuiltInInstance(e)}),r.conditionDeclarations=a,a}const Un={},nd={},$a={empty:!1,enrich:!0,mock:!1,ignoreCache:!1,onFetch:async()=>null,manuallyInit:!1};function pw(r,{enrich:a}={enrich:!0}){const e=r.project,t=r.record,i=new Zl(e),s=new Set;t[e.id]=e,s.add(e.id);const l=T().toISOString();Object.values(t).forEach(u=>{!u||i.allBuiltInEntityIds.includes(u.id)||s.add(u.id)}),i.order=Array.from(s),i.flatRecord=t,i.orderEntities();const o=sd(r.project);o.instances[e.id]=o;const d=a?o.addChangeSet(new b(o,"",l,o)):null;return i.visit(u=>{if(u.id===o.id)return;const y=C(u,o);y.hydrateAncestors(),y.addSelfToProject(null)}),a?(i.visit(u=>{const y=o.get(u.id);y&&y.afterAllChildrenInitialized(d)}),o.afterAllChildrenInitialized(d)):ad(o,l).forEach(y=>{y.remove({ignoreUpstream:!0},null)}),o.instancesList.forEach(u=>{u.previousVersion=null}),d==null||d.close(),o}async function DW(r,a=$a){const e={...$a,...a};if(e.empty)return{data:{project:{id:r.id,type:n.Project,version:m.UUID.uuid(),createdAt:T().toISOString(),author:m.sessionAuthor,previousVersion:null,deleted:!1,name:null,description:null,projects:[],entities:[],operations:[],functions:[],variableDeclarations:[],variableInstances:[],functionCalls:[],conditions:[],loops:[],searches:[],events:[]},record:{}}};if(e.mock){const i={...lp};return i.id=r.id,{data:{project:i,record:{}}}}return console.log("Fetching project from external API"),new Promise(async i=>{if(e.onFetch){const s=await e.onFetch(r.id);if(s){i({data:s});return}}else i({data:null})})}function sd(r){const a=new m(r);return IW(a),TW(a),vW(a),EW(a),AW(a),bW(a),RW(a),Array.from(new Set([...a.getAllBuiltInIds(),..._i()])).forEach(t=>{if(!a.builtInInstances[t]&&a.instances[t])a.builtInInstances[t]=a.instances[t],delete a.instances[t];else if(!a.builtInInstances[t])throw new Error(`Built in entity was not properly initialized: ${t}`)}),a}function ad(r,a){return r.instancesList.filter(t=>T(t.createdAt).isAfter(T(a)||!!t.previousVersion))}function OW(r,{enrich:a}={enrich:!0}){const e=new Map,t=Array.from(new Set([...r.getAllBuiltInIds(),..._i()]));Object.keys(r.instances).forEach(u=>{if(t.includes(u)){e.set(u,u);return}const y=r.get(u);if(!id(y,{...r.instances,...r.builtInInstances}).every(E=>!t.includes(E))){e.set(u,u);return}e.set(u,m.UUID.uuid())});const i=T().toISOString(),s=r.toShallowJSON({seenEntityMaps:e});s.previousVersion=null,s.createdAt=i,s.version=m.UUID.uuid();const l=sd(s),o=a?l.addChangeSet(new b(l,"",i,l)):null,d=new Zl(r);return d.visit(u=>{const y=u.toShallowJSON({seenEntityMaps:e});u.type===n.ValueDescriptor&&u.name==="Iteration result"&&(console.log("Og entity shallow copy: ",y),console.log("Og entity full: ",u)),y.previousVersion=null,y.createdAt=i,y.version=m.UUID.uuid();const c=C(y,l);c.hydrateAncestors(),c.addSelfToProject(o),o==null||o.add(c,A.Added)}),a?(d.visit(u=>{const y=l.get(e.get(u.id));y&&y.afterAllChildrenInitialized(o)}),l.afterAllChildrenInitialized(o)):ad(l,i).forEach(y=>{y.remove({ignoreUpstream:!0},null)}),l.instancesList.forEach(u=>{u.previousVersion=null}),o==null||o.close(),l}function cw(r,{enrich:a}={enrich:!0}){const e=sd(r),t=T().toISOString(),i=a?e.addChangeSet(new b(e,"",t,e)):null;i&&(i.type=Pc.Automatic);const s=new Zl(r);return s.visit(l=>{const o=C(l,e);o.hydrateAncestors(),o.addSelfToProject(i)}),a?(s.visit(l=>{const o=e.get(l.id);o&&o.afterAllChildrenInitialized(i)}),e.afterAllChildrenInitialized(i)):ad(e,t).forEach(o=>{o.remove({ignoreUpstream:!0},null)}),i==null||i.close(),e}async function PW(r,a=$a){const e={...$a,...a};if(r.id&&Un[r.id]&&!e.ignoreCache)return Un[r.id];if(r.id&&nd[r.id]&&!e.ignoreCache)return await nd[r.id],Un[r.id];const t=DW(r,e);r.id&&(nd[r.id]=t);const i=await t;if(i.data){let s;return e.mock?s=cw(lp,{enrich:!!e.enrich}):i.data instanceof m?s=i.data:s=pw(i.data,{enrich:!!e.enrich}),Un[r.id]=s,r.id&&delete nd[r.id],s}return null}function wW(r){return Un[r.id]&&delete Un[r.id],null}const CW="test_primitive_entities_export";h.AI_VALUE_CONNECTION_GENERATION_ACTION_EXPLANATION=Gc,h.ALL_BUILT_IN_BASE_ENTITIES=xI,h.ALL_BUILT_IN_CONDITION_ENTITIES=tE,h.ALL_BUILT_IN_GLOBAL_EVENT_ENTITIES=rE,h.ALL_BUILT_IN_LOOP_BODY_ENTITIES=vT,h.ALL_BUILT_IN_LOOP_ENTITIES=mT,h.ALL_BUILT_IN_OPERATION_ENTITIES=C0,h.ALL_BUILT_IN_PRIMITIVE_ENTITIES=mf,h.ALL_BUILT_IN_TOP_LEVEL_ENTITIES=oE,h.ALL_BUILT_IN_VALUE_DESCRIPTORS=aE,h.ActionDescriptorState=Je,h.ActionInputMapState=$7,h.ActionOutputMapState=x7,h.AppendToListOperationInputIds=Dh,h.AppendToListOperationOutputIds=Oh,h.ArgumentDeclarationDependencyField=M1,h.ArgumentDeclarationState=Zr,h.BREAK_AND_CONTINUE_STATEMENTS_RETURN_DECLARATIONS_EXPLANATION=Uc,h.BUILT_IN_BASE_ENTITY_IDS=k,h.BUILT_IN_ENTITY_TYPES=Ti,h.BaseCanvasDraggableState=tW,h.BaseEntityNames=z,h.BaseState=eW,h.BaseValueDescriptorIds=Za,h.BreakStatementDependencyField=Vc,h.BreakStatementState=_n,h.BuiltInBaseEntityState=Ki,h.CACHED_PROJECTS_BY_ID=Un,h.CALLABLE_ENTITIES_EXPLANATION=Y7,h.CALLABLE_TYPES=Mi,h.CALLER_ENTITIES_EXPLANATION=G1,h.CALLER_TYPES=Ni,h.CALLS_UPDATE_EXPLANATION=Wr,h.COMPARISON_CONDITIONS=QI,h.CONDITIONS=eE,h.CUSTOM_ENTITY_OPERATIONS=Jm,h.CallableEntityClass=rW,h.CallerEntityClass=nf,h.ChangeSet=b,h.ChangeSetChangeCaptureType=Pc,h.ChangeSetEntityChangeType=A,h.ChildEntityState=iW,h.ComparisonOperatorTypes=yt,h.ConditionDependencyField=v1,h.ConditionState=Gr,h.ContinueStatementDependencyField=wc,h.ContinueStatementState=Ft,h.CreateNewInputIds=Em,h.CreateNewOutputIds=Am,h.DRAGGABLE_CALLABLE_TYPES=ud,h.DRAGGABLE_CALLER_TYPES=lf,h.DRAGGABLE_ELEMENT_TYPES=Sa,h.DRAGGABLE_EXECUTABLE_TYPES=vw,h.DRAGGABLE_PASS_THROUGH_CALLABLE_TYPES=ka,h.DRAGGABLE_PASS_THROUGH_CALLABLE_TYPES_WITH_OUTPUTS=dd,h.DataTypeCompatibilityTypes=bi,h.DataTypeDependencyField=Cc,h.DataTypeParentChildRelation=Dt,h.DataTypeState=Vn,h.DefinitionEntityDependencyField=rd,h.DefinitionEntityState=Xr,h.EDITABLE_PERSISTANCE_REPOSITORY_DEFAULTS=XJ,h.ENTITIES_WITH_VALLUES_EXPLANATION=Gl,h.ENTITY_PERSISTANCE_OPTIONS_DEFAULTS=g,h.ENTITY_RECUSION_OPTIONS_DEFAULTS=q,h.ENTITY_TYPES=Tw,h.ENTITY_WITH_DECLARATION_TYPES=hw,h.ENTITY_WITH_LOGIC_SCOPE_TYPES=dt,h.ENTITY_WITH_NAMES_TYPES=df,h.ENTITY_WITH_PARENT_TYPES=fw,h.ENTITY_WITH_USER_MANAGED_DECLARATION_TYPES=af,h.ENTITY_WITH_USER_MANAGED_SINGLE_IMPLEMENTS_TYPES=yw,h.ENTITY_WITH_VALUE_TYPES=sf,h.ENTRY_POINT_ENTITIES_EXPLANATION=Ba,h.ENTRY_POINT_TYPES=lt,h.EVENT_TYPES=Gn,h.EXECUTABLE_TYPES=mw,h.EXECUTION_OPERATIONS=Im,h.EntityAction=aw,h.EntityError=tt,h.EntityErrorSeverity=D,h.EntityGenerationError=w,h.EntityGenerationErrorCode=R,h.EntityInstanceErrorCode=F,h.EntityOperations=Xe,h.EntityType=n,h.EntityWithLogicScopeClass=oW,h.EntityWithValueClass=aW,h.EntryPointEntityClass=nW,h.ExecutionOperations=Ke,h.ExecutionTerminationType=y1,h.FunctionCallDependencyField=H1,h.FunctionCallState=Yr,h.FunctionDeclarationDependencyField=o1,h.FunctionDeclarationState=gr,h.GET_PROJECT_OPTIONS_DEFAULTS=$a,h.GLOBAL_EVENT_DECLARATIONS=iE,h.GetLastInListOperationInputIds=ch,h.GetLastInListOperationOutputIds=fh,h.GlobalEventNames=Qi,h.GlobalEventState=Bn,h.HTTPOperations=_t,h.HTTP_OPERATIONS=P0,h.InputMapDependencyField=C1,h.InputMapState=Wi,h.InstalledProjectState=Sr,h.InternalCallDependencyField=P1,h.InternalCallState=Mn,h.JoinListOperationInputIds=My,h.JoinListOperationOutputIds=Ny,h.LIST_OPERATIONS=$h,h.ListOperations=he,h.LiteralValueDependencyField=L1,h.LiteralValueState=Nn,h.LoopDependencyField=h1,h.LoopState=$r,h.LoopTypes=Q,h.NON_INTERACTIVE_BASE_ENTITIES_EXPLANATION=zr,h.NUMBER_OPERATIONS=Jf,h.NumberOperations=Qe,h.OPERATION_DECLARATIONS=w0,h.OperationDependencyField=u1,h.OperationState=jr,h.OutputMapDependencyField=B1,h.OutputMapParentChildRelation=$n,h.OutputMapState=zi,h.PARENT_AUTO_CALCULATION_FROM_CALLER_EXPLANATION=Fl,h.PASS_THROUGH_CALLABLE_ENTITIES_EXPLANATION=Jr,h.PASS_THROUGH_CALLABLE_TYPES=ot,h.PASS_THROUGH_CALLABLE_TYPES_WITH_OUTPUTS=of,h.PROPERTY_NOT_VALUE_READER_WRITTER_EXPLANATION=$c,h.ParallelExecutionOperation=ow,h.PassThroughCallableEntityClass=sW,h.PersistedEntity=uw,h.PersistedEntityMethods=di,h.PrimitiveEntityState=oi,h.PrimitiveTypes=L,h.ProjectState=m,h.PropertyDependencyField=t1,h.PropertyState=Lr,h.READ_ONLY_ENTITY_PERSISTANCE_REPOSITORY=sw,h.RETURN_STATEMENT_RETURN_DECLARATIONS_EXPLANATION=H7,h.ReturnDeclarationDependencyField=r1,h.ReturnDeclarationState=si,h.ReturnStatementDependencyField=Ul,h.ReturnStatementState=Ur,h.STANDALONE_CONDITIONS=ZI,h.STRING_OPERATIONS=_y,h.ScopeCompatibilityType=td,h.SearchDependencyField=b1,h.SearchState=kr,h.SequentialExecutionOperation=dw,h.SequentialExecutionOperationInputIds=am,h.SequentialExecutionOperationOutputIds=om,h.SharedEntityErrorCode=j,h.SharedStateFunctionality=nw,h.SplitListOperationInputIds=zy,h.SplitListOperationOutputIds=Yy,h.StandaloneOperatorTypes=vi,h.StringOperations=Ee,h.TERMINATION_TYPES=st,h.Traverser=Zl,h.USER_MANAGED_ENTITY_TYPES=uf,h.UserManagedEntityStateTemplate=QJ,h.VALUE_READING_ENTITIES_EXPLANATION=jc,h.VALUE_READING_TYPES=Ir,h.VALUE_WRITING_ENTITIES_EXPLANATION=F1,h.VALUE_WRITING_TYPES=Tt,h.VARIABLE_DATA_TYPE_INFERRANCE_EXPLANATION=gc,h.VARIABLE_TYPES=et,h.ValueAutogenerationType=vt,h.ValueDescriptorDependencyField=g1,h.ValueDescriptorParentChildRelation=N,h.ValueDescriptorState=qr,h.ValueReadingEntityClass=Tr,h.ValueWritingEntityClass=ja,h.VariableDeclarationDependencyField=E1,h.VariableDeclarationState=xr,h.VariableInputMapState=j7,h.VariableInstanceDependencyField=_c,h.VariableInstanceState=Fr,h.VariableOutputMapState=F7,h.WaitOperation=lw,h.WaitOperationInputIds=Qh,h.WaitOperationOutputIds=em,h.actionDescriptorValidation=V7,h.appendToListOperation=za,h.appendToListOperationElementToAppendArgument=Dd,h.appendToListOperationElementToAppendArgumentParentRef=Nh,h.appendToListOperationElementToAppendArgumentRef=Ch,h.appendToListOperationError=jh,h.appendToListOperationErrorParentRef=gh,h.appendToListOperationListArgument=Rd,h.appendToListOperationListArgumentParentRef=Mh,h.appendToListOperationListArgumentRef=Ph,h.appendToListOperationListDataType=wh,h.appendToListOperationResultListDataType=_h,h.appendToListOperationResultListReturn=Uh,h.appendToListOperationResultListReturnParentRef=Lh,h.appendToListOperationResultListReturnRef=Bh,h.appendToListOperationSecondListDataType=Vh,h.applyNewScope=K,h.argumentDeclarationValidation=k7,h.asGenerationActionExample=Yi,h.booleanPrototype=er,h.breakStatementValidation=P7,h.calculateNewParentBasedOnCallers=qc,h.capitalizeFirstLetter=Kt,h.changeSetJSONRecordToUniqueIds=y7,h.checkAreDataTypesCompatible=Ri,h.checkAreDefinitionEntitiesCompatibleAsDataType=FO,h.checkArePropertiesCompatibleAsDataType=GO,h.checkHasMetadataChanged=pt,h.checkImplementationsOverlap=vr,h.checkIsBranchDependentButNotDirectlyOnBranch=Ma,h.checkIsBranchDependentOnBranch=dJ,h.checkIsCallableEntityReachable=ga,h.checkIsCanvasEntity=wJ,h.checkIsDetachedBranch=YP,h.checkIsDetachedBranchShallow=tf,h.checkIsGlobalVariable=OJ,h.checkIsGloballyDeclared=ef,h.checkIsMethod=XP,h.checkIsNestedScope=ed,h.checkScopeCompatibility=Ua,h.cloneProject=OW,h.conditionValidation=B7,h.continueStatementValidation=v7,h.convertToAbstract=sJ,h.convertToNonAbstract=aJ,h.convertToNonStatic=lJ,h.convertToStatic=oJ,h.countedLoopActionDescriptor=Ls,h.countedLoopActionDescriptorDynamicReturnDeclaration=lT,h.countedLoopActionDescriptorDynamicReturnDeclarationParentRef=oT,h.countedLoopActionDescriptorStringArgumentDeclaration=aT,h.countedLoopActionDescriptorStringArgumentDeclarationDataType=nT,h.countedLoopActionDescriptorStringArgumentDeclarationDataTypeDefaultValue=iT,h.countedLoopActionDescriptorStringArgumentDeclarationDataTypeDefaultValueParentRef=tT,h.countedLoopActionDescriptorStringArgumentDeclarationDataTypeParentRef=rT,h.countedLoopActionDescriptorStringArgumentDeclarationParentRef=sT,h.countedLoopBodyActionDescriptor=ao,h.countedLoopBodyActionDescriptorAnyDynamicArgument=fT,h.countedLoopBodyActionDescriptorAnyDynamicArgumentParentRef=cT,h.countedLoopBodyActionDescriptorAnyDynamicReturn=hT,h.countedLoopBodyActionDescriptorAnyDynamicReturnParentRef=yT,h.countedLoopBodyActionDescriptorIterationNumberArgumentDeclaration=Gd,h.countedLoopBodyActionDescriptorIterationNumberArgumentDeclarationDataType=uT,h.countedLoopBodyActionDescriptorIterationNumberArgumentDeclarationDataTypeParentRef=dT,h.countedLoopBodyActionDescriptorIterationNumberArgumentDeclarationParentRef=pT,h.createDefinitionEntityFromJSONObject=Jl,h.createEntityError=de,h.createNestedDataTypeForEntity=Q1,h.createNewInstanceOperation=tn,h.createNewInstanceOperationEntityToInstanciateArgument=Vm,h.createNewInstanceOperationEntityToInstanciateArgumentRef=Pm,h.createNewInstanceOperationEntityToInstanciateDataType=wm,h.createNewInstanceOperationError=Nm,h.createNewInstanceOperationErrorParentRef=Mm,h.createNewInstanceOperationNewEntityDataArgument=Om,h.createNewInstanceOperationNewEntityDataArgumentDataType=Dm,h.createNewInstanceOperationNewEntityDataArgumentDataTypeParentRef=Rm,h.createNewInstanceOperationNewEntityDataArgumentParentRef=bm,h.createNewInstanceOperationOutputEntityDeclaration=_m,h.createNewInstanceOperationOutputEntityDeclarationParentRef=Bm,h.createNewInstanceOperationRef=Cm,h.createSemanticId=XO,h.createStateFromGenerationTargetType=KJ,h.createStateFromType=ct,h.createStateFromTypeAndSubscribe=C,h.cronJobBuiltInBaseEntity=co,h.cronJobBuiltInBaseEntityExpressionProperty=GI,h.cronJobBuiltInBaseEntityExpressionPropertyDataTypeRef=Ow,h.cronJobBuiltInBaseEntityExpressionPropertyRef=jI,h.cronJobBuiltInBaseEntityRef=$I,h.cronJobTriggeredFunctionDeclarationBlueprint=Qd,h.cronJobTriggeredFunctionDeclarationBlueprintParentRef=UI,h.dataTypeCompatibilityToErrorExplanation=z1,h.dataTypeValidation=A7,h.datePrototype=Li,h.dateValueAutogenerationSchema=fp,h.definitionEntityToZodSchema=RE,h.definitionEntityValidation=WJ,h.deletePersistedEntityMethod=Xd,h.deletePersistedEntityMethodParentRef=EI,h.deleteRootProject=wW,h.endpointBuiltInBaseEntity=js,h.endpointBuiltInBaseEntityRef=AT,h.endpointBuiltInBaseEntityRefFour=iI,h.endpointBuiltInBaseEntityRefThree=BT,h.endpointBuiltInBaseEntityRefTwo=PT,h.endpointBuiltInCorsProperty=bT,h.endpointBuiltInCorsPropertyDataType=ET,h.endpointBuiltInCorsPropertyDataTypeRef=TT,h.endpointBuiltInCorsPropertyRef=IT,h.endpointBuiltInMethodProperty=xd,h.endpointBuiltInMethodPropertyDataType=VT,h.endpointBuiltInMethodPropertyDataTypeRef=wT,h.endpointBuiltInMethodPropertyRef=CT,h.endpointBuiltInPathProperty=Fd,h.endpointBuiltInPathPropertyDataType=OT,h.endpointBuiltInPathPropertyDataTypeRef=RT,h.endpointBuiltInPathPropertyRef=DT,h.endpointPathParamsArgumentDeclaration=Sd,h.endpointPathParamsArgumentDeclarationRef=FT,h.endpointPathParamsVariableDataType=xT,h.endpointPathParamsVariableDataTypeRef=GT,h.endpointReachedTriggerActionDescriptor=Yd,h.endpointReachedTriggerActionDescriptorRef=kT,h.endpointReachedTriggerActionDescriptorRefFour=qT,h.endpointReachedTriggerActionDescriptorRefThree=ZT,h.endpointReachedTriggerActionDescriptorRefTwo=ST,h.endpointRequestBodyArgumentDeclaration=qd,h.endpointRequestBodyArgumentDeclarationRef=LT,h.endpointRequestBodyVariableDataType=UT,h.endpointRequestHeadersArgumentDeclaration=kd,h.endpointRequestHeadersArgumentDeclarationRef=MT,h.endpointRequestHeadersVariableDataType=NT,h.endpointRequestHeadersVariableDataTypeRef=_T,h.endpointRequestQueryParamsArgumentDeclaration=Zd,h.endpointRequestQueryParamsArgumentDeclarationRef=jT,h.endpointRequestQueryParamsVariableDataType=$T,h.endpointRequestQueryParamsVariableDataTypeRef=gT,h.endpointResponseBodyDataType=eI,h.endpointResponseBodyReturnDeclaration=zd,h.endpointResponseBodyReturnDeclarationRef=QT,h.endpointResponseCodeDataType=WT,h.endpointResponseCodeReturnDeclaration=Jd,h.endpointResponseCodeReturnDeclarationRef=JT,h.endpointResponseHeadersDataType=KT,h.endpointResponseHeadersDataTypeRef=YT,h.endpointResponseHeadersReturnDeclaration=Wd,h.endpointResponseHeadersReturnDeclarationRef=HT,h.endpointReturnStatementRef=zT,h.endpointReturnStatementRefThree=tI,h.endpointReturnStatementRefTwo=XT,h.enrichFromKnownEntities=Na,h.enumOptionsProperty=hf,h.enumOptionsPropertyDataType=ff,h.enumOptionsPropertyDataTypeRef=pf,h.enumOptionsPropertyRef=cf,h.enumPrototype=tr,h.enumPrototypeRef=yf,h.executionBuiltInBaseEntity=fo,h.executionBuiltInEntityAbortMethod=eu,h.executionBuiltInEntityAbortMethodParentRef=FI,h.filterOutDuplicateEntities=p,h.filterOutDuplicateErrors=C3,h.findEntityFromKeys=Sc,h.findReferenceToSelfInList=yP,h.findReferencesToSelfInProject=TJ,h.flattenActionDescriptor=hP,h.flattenArgumentDeclaration=mP,h.flattenBreakStatement=vP,h.flattenBuiltInBaseEntity=TP,h.flattenCalls=Hi,h.flattenCanvasAncestorsUntil=Ds,h.flattenCondition=IP,h.flattenContinueStatement=EP,h.flattenDataType=bP,h.flattenDefinitionEntity=AP,h.flattenDefinitionEntityExtensionAndImplementationTypes=Xc,h.flattenDefinitionEntityExtensionTypes=Xl,h.flattenDefinitionEntityExtensions=Hc,h.flattenDefinitionEntityImplementations=Kc,h.flattenDefinitionEntityImplementionTypes=Kl,h.flattenDerivedCanvasEntities=ai,h.flattenDetachedBranch=KP,h.flattenElementCalls=rt,h.flattenElementCallsOnTheSameScope=vJ,h.flattenEntity=U,h.flattenFunctionCall=RP,h.flattenFunctionDeclaration=DP,h.flattenGlobalEvent=OP,h.flattenInputMap=PP,h.flattenInstalledProject=wP,h.flattenInternalCall=CP,h.flattenLiteralValue=VP,h.flattenLoop=BP,h.flattenOperation=_P,h.flattenOutputMap=MP,h.flattenPrimitiveEntity=NP,h.flattenProject=LP,h.flattenProjectElements=fP,h.flattenProperty=UP,h.flattenRelatedCanvasElementsOnTheLeft=WP,h.flattenRelatedCanvasElementsOnTheRight=JP,h.flattenReturnDeclaration=gP,h.flattenReturnStatement=jP,h.flattenSearch=$P,h.flattenValueDescriptor=GP,h.flattenVariableDeclaration=FP,h.flattenVariableInstance=xP,h.flattenVariableReads=cP,h.flattenVariableWrites=pP,h.flattenVariables=ze,h.fromChangeSetToRecordChangeSet=UJ,h.fromZodParseToEntityGenerationErrors=Mc,h.functionCallValidation=nJ,h.functionDeclarationValidation=E7,h.generate=VV,h.generateActionExample=K7,h.generateExecutionDataType=s7,h.generateIdFromStrategy=ht,h.generateMutablePropertiesExplanation=gl,h.generateRandomBoolean=HE,h.generateRandomDate=wE,h.generateRandomDateAfter=DE,h.generateRandomDateBefore=OE,h.generateRandomDateBetweenRange=PE,h.generateRandomNumber=qE,h.generateRandomNumberAfter=kE,h.generateRandomNumberBefore=SE,h.generateRandomNumberBetweenRange=ZE,h.generateRandomText=YE,h.generateRandomTextAfter=JE,h.generateRandomTextBefore=WE,h.generateRandomTextBetweenRange=zE,h.generateUniqueUUID=xE,h.getAllActionDescriptorsForConditions=Sl,h.getAllActionDescriptorsForGlobalEvents=xl,h.getAllActionDescriptorsForLoops=kl,h.getAllActionDescriptorsForOperations=tJ,h.getAllBuiltInEntityIds=_i,h.getAllGloballyDeclaredFunctionDeclarationsExplanation=q1,h.getBaseBuiltInEntities=xt,h.getBaseSchemaBasedOnType=j1,h.getBuiltInEntityOwner=Kr,h.getCallableEntityReferenceSchema=Pt,h.getCallableEntityTypeSchema=wD,h.getCalledBy=hi,h.getCallerEntityReferenceSchema=MS,h.getCallerEntityTypeSchema=_S,h.getCalls=Wc,h.getCanvasEntitiesDerivedFromInternalCalls=qP,h.getCanvasEntitiesDerivedFromWrites=Os,h.getCanvasEntityDerivedFromValueReadingEntity=Hl,h.getCanvasEntityDerivedFromValueReadingEntityFromTransfer=ZP,h.getCanvasEntityReferenceSchema=YS,h.getCanvasEntityTypeSchema=zS,h.getChildrenEntityWithValues=pJ,h.getColumnProperties=MJ,h.getCommonAncestor=Jc,h.getCommonChildren=eP,h.getDatabaseEntities=BJ,h.getDatabaseEntity=NJ,h.getDeclaration=Cn,h.getDeepestScope=ew,h.getDefinitionEntityExtends=Ps,h.getDraggableCallableEntityReferenceSchema=VD,h.getDraggableCallableEntityTypeSchema=CD,h.getDraggableCallerEntityReferenceSchema=LS,h.getDraggableCallerEntityTypeSchema=NS,h.getDraggableExecutableEntityReferenceSchema=$S,h.getDraggableExecutableEntityTypeSchema=jS,h.getDraggablePassThroughCallableEntityReferenceSchema=bl,h.getDraggablePassThroughCallableEntityTypeSchema=Al,h.getDraggablePlayableEntityReferenceSchema=SS,h.getDraggablePlayableEntityTypeSchema=kS,h.getEntitiesCreatedSinceInitialization=ad,h.getEntityArgumentDeclarations=Yc,h.getEntityInputMaps=kP,h.getEntityOutputMaps=bJ,h.getEntityReferenceSchema=WS,h.getEntityReturnDeclarations=SP,h.getEntityTypeSchema=JS,h.getEntityWithLogicScopeReferenceSchema=fr,h.getEntityWithLogicScopeTypeSchema=GS,h.getEntityWithValueReferenceSchema=PD,h.getEntityWithValueTypeSchema=BS,h.getEntryPointEntityReferenceSchema=Rt,h.getEntryPointEntityTypeSchema=_r,h.getEventEntityReferenceSchema=Il,h.getEventEntityTypeSchema=Tl,h.getExecutableEntityReferenceSchema=gS,h.getExecutableEntityTypeSchema=US,h.getExtendedBuiltInEntity=RJ,h.getExtendedDefinitionEntity=Qc,h.getGenerationTargetSchemaBasedOnType=$1,h.getHeadIfPartOfDetachedBranch=HP,h.getHighestScope=QP,h.getImplementedBuiltInEntity=DJ,h.getIsInteractive=Ql,h.getLastInListOperation=bd,h.getLastInListOperationError=Rh,h.getLastInListOperationErrorParentRef=bh,h.getLastInListOperationInputListArgument=Ih,h.getLastInListOperationInputListArgumentParentRef=Th,h.getLastInListOperationInputListArgumentRef=yh,h.getLastInListOperationInputListDataType=hh,h.getLastInListOperationOutputElementDataType=vh,h.getLastInListOperationOutputElementReturn=Ah,h.getLastInListOperationOutputElementReturnParentRef=Eh,h.getLastInListOperationOutputElementReturnRef=mh,h.getLinkedEntitiesFromArgumentDeclaration=mJ,h.getLowestPersistedEntityImplementation=zP,h.getParentCallableEntity=tP,h.getParentCallerEntity=rP,h.getParentCanvasEntities=Xt,h.getParentCanvasEntity=wt,h.getParentCanvasEntityFromTransfer=Wl,h.getParentEntryPoint=uJ,h.getParentPassthroughCallableEntity=iP,h.getPassThroughCallableEntityReferenceSchema=it,h.getPassThroughCallableEntityTypeSchema=El,h.getPeristedEntities=VJ,h.getPlayableEntityReferenceSchema=xS,h.getPlayableEntityTypeSchema=FS,h.getProject=PW,h.getPrototypeByType=La,h.getRecusriveParentsIds=id,h.getReferenceEntityId=_,h.getReferencedEntitiesStateOrErrors=$l,h.getReferencedEntityStateOrErrors=Nc,h.getReferencedIds=Yl,h.getRelatedCanvasElementsOnTheLeft=Ln,h.getRelatedCanvasElementsOnTheLeftFromTransfer=IJ,h.getRelatedCanvasElementsOnTheRight=Hr,h.getRootEntryPointScopeOwner=rf,h.getScopeOwner=kt,h.getStateClassFromType=LJ,h.getTerminationReferenceSchema=qS,h.getTerminationTypeSchema=ZS,h.getTouchedCanvasEntitiesFromChangeSet=gJ,h.getUsedArgFromDeclaration=EJ,h.getUsedReturnFromDeclaration=AJ,h.getValueReadingEntityReferenceSchema=OD,h.getValueReadingEntityTypeSchema=cr,h.getValueWritingEntityReferenceSchema=VS,h.getValueWritingEntityTypeSchema=Ea,h.getVariableFromInputMapping=sP,h.getVariableFromReturnVariablePointer=lP,h.getVariableReferenceSchema=Br,h.getVariableTypeSchema=bn,h.getVariablesFromArgumentDeclarations=zl,h.getVariablesFromInputMaps=aP,h.getVariablesFromOutputMapping=dP,h.getVariablesFromOutputMaps=uP,h.getVariablesFromReturnDeclarations=oP,h.getVariablesInSameOrHigherScope=Tc,h.getWrites=zc,h.globalEventValidation=O7,h.groupCallsBasedOnParallelizableExecution=fJ,h.handleAfterEntityImplementationSideEffects=X1,h.handleBeforeEntityImplementationSideEffects=K1,h.httpRequestBodyArgument=Xa,h.httpRequestBodyArgumentRef=s0,h.httpRequestBodyDataType=a0,h.httpRequestHeadersArgument=Ka,h.httpRequestHeadersArgumentRef=r0,h.httpRequestHeadersDataType=n0,h.httpRequestMethodArgument=Ya,h.httpRequestMethodArgumentRef=t0,h.httpRequestMethodDataType=i0,h.httpRequestMethodDataTypeRef=Qm,h.httpRequestOperation=Bs,h.httpRequestOperationErrorValueDescriptor=Bd,h.httpRequestOperationErrorValueDescriptorDatatype=O0,h.httpRequestOperationErrorValueDescriptorRef=D0,h.httpRequestOperationRef=E0,h.httpRequestOperationRefEight=b0,h.httpRequestOperationRefFive=T0,h.httpRequestOperationRefFour=v0,h.httpRequestOperationRefNine=R0,h.httpRequestOperationRefSeven=A0,h.httpRequestOperationRefSix=I0,h.httpRequestOperationRefThree=m0,h.httpRequestOperationRefTwo=h0,h.httpRequestQueryParamsArgument=Vd,h.httpRequestQueryParamsArgumentRef=Km,h.httpRequestQueryParamsDataType=Xm,h.httpRequestVariableURLArgument=Ha,h.httpRequestVariableURLArgumentRef=Ym,h.httpRequestVariableURLDataType=Hm,h.httpRequestVariableURLDataTypeRef=Wm,h.httpResponseBodyReturnDataType=y0,h.httpResponseBodyReturnDataTypeRef=c0,h.httpResponseBodyReturnReturn=to,h.httpResponseBodyReturnReturnRef=f0,h.httpResponseCodeDataType=l0,h.httpResponseCodeReturn=Qa,h.httpResponseCodeReturnRef=o0,h.httpResponseHeadersDataType=p0,h.httpResponseHeadersDataTypeRef=d0,h.httpResponseHeadersReturn=eo,h.httpResponseHeadersReturnRef=u0,h.implement=ql,h.inferArgumentDeclarationDataType=xO,h.inferDataType=Ji,h.inferInputMapDataType=hc,h.inferOutputMapDataType=vc,h.inferPropertyDataType=ZO,h.inferReturnDeclarationDataType=mc,h.inferValueDescriptorDataType=qO,h.inferVariableDeclarationDataType=SO,h.inferVariableInstanceDataType=kO,h.initBaseProjectEntity=sd,h.initProject=cw,h.initProjectFromFetchResult=pw,h.inputMapValidation=g7,h.installedProjectValidation=L7,h.internalCallValidation=U7,h.isPromise=kc,h.iterateOverListActionDescriptorListArgumentDeclaration=sv,h.iterateOverListActionDescriptorListArgumentDeclarationDataType=rv,h.iterateOverListActionDescriptorListArgumentDeclarationDataTypeParentRef=iv,h.iterateOverListActionDescriptorListArgumentDeclarationParentRef=nv,h.iterateOverListLoopActionDescriptor=Er,h.iterateOverListLoopActionDescriptorDynamicReturnDeclaration=ov,h.iterateOverListLoopActionDescriptorDynamicReturnDeclarationParentRef=av,h.iterateOverListLoopBodyActionDescriptor=Ns,h.iterateOverListLoopBodyActionDescriptorAnyDynamicArgument=mv,h.iterateOverListLoopBodyActionDescriptorAnyDynamicArgumentParentRef=hv,h.iterateOverListLoopBodyActionDescriptorAnyDynamicReturn=Tv,h.iterateOverListLoopBodyActionDescriptorAnyDynamicReturnParentRef=vv,h.iterateOverListLoopBodyActionDescriptorCurrentValueArgumentDeclaration=so,h.iterateOverListLoopBodyActionDescriptorCurrentValueArgumentDeclarationDataType=dv,h.iterateOverListLoopBodyActionDescriptorCurrentValueArgumentDeclarationDataTypeParentRef=lv,h.iterateOverListLoopBodyActionDescriptorCurrentValueArgumentDeclarationParentRef=uv,h.iterateOverListLoopBodyActionDescriptorIterationNumberArgumentDeclaration=yv,h.iterateOverListLoopBodyActionDescriptorIterationNumberArgumentDeclarationDataType=cv,h.iterateOverListLoopBodyActionDescriptorIterationNumberArgumentDeclarationDataTypeParentRef=pv,h.iterateOverListLoopBodyActionDescriptorIterationNumberArgumentDeclarationParentRef=fv,h.iterateOverObjectKeysActionDescriptorObjectArgumentDeclaration=Rv,h.iterateOverObjectKeysActionDescriptorObjectArgumentDeclarationDataType=Av,h.iterateOverObjectKeysActionDescriptorObjectArgumentDeclarationDataTypeParentRef=Ev,h.iterateOverObjectKeysActionDescriptorObjectArgumentDeclarationParentRef=bv,h.iterateOverObjectKeysLoopActionDescriptor=Sn,h.iterateOverObjectKeysLoopActionDescriptorDynamicReturnDeclaration=Ov,h.iterateOverObjectKeysLoopActionDescriptorDynamicReturnDeclarationParentRef=Dv,h.iterateOverObjectKeysLoopBodyActionDescriptor=Ud,h.iterateOverObjectKeysLoopBodyActionDescriptorAnyDynamicArgument=Lv,h.iterateOverObjectKeysLoopBodyActionDescriptorAnyDynamicArgumentParentRef=Nv,h.iterateOverObjectKeysLoopBodyActionDescriptorAnyDynamicReturn=gv,h.iterateOverObjectKeysLoopBodyActionDescriptorAnyDynamicReturnParentRef=Uv,h.iterateOverObjectKeysLoopBodyActionDescriptorCurrentValueArgumentDeclaration=Ld,h.iterateOverObjectKeysLoopBodyActionDescriptorCurrentValueArgumentDeclarationDataType=wv,h.iterateOverObjectKeysLoopBodyActionDescriptorCurrentValueArgumentDeclarationDataTypeParentRef=Pv,h.iterateOverObjectKeysLoopBodyActionDescriptorCurrentValueArgumentDeclarationParentRef=Cv,h.iterateOverObjectKeysLoopBodyActionDescriptorIterationNumberArgumentDeclaration=Mv,h.iterateOverObjectKeysLoopBodyActionDescriptorIterationNumberArgumentDeclarationDataType=Bv,h.iterateOverObjectKeysLoopBodyActionDescriptorIterationNumberArgumentDeclarationDataTypeParentRef=Vv,h.iterateOverObjectKeysLoopBodyActionDescriptorIterationNumberArgumentDeclarationParentRef=_v,h.iterateOverObjectValuesActionDescriptorObjectArgumentDeclaration=xv,h.iterateOverObjectValuesActionDescriptorObjectArgumentDeclarationDataType=Gv,h.iterateOverObjectValuesActionDescriptorObjectArgumentDeclarationDataTypeParentRef=$v,h.iterateOverObjectValuesActionDescriptorObjectArgumentDeclarationParentRef=Fv,h.iterateOverObjectValuesLoopActionDescriptor=Zn,h.iterateOverObjectValuesLoopActionDescriptorDynamicReturnDeclaration=Sv,h.iterateOverObjectValuesLoopActionDescriptorDynamicReturnDeclarationParentRef=kv,h.iterateOverObjectValuesLoopBodyActionDescriptor=jd,h.iterateOverObjectValuesLoopBodyActionDescriptorAnyDynamicArgument=Xv,h.iterateOverObjectValuesLoopBodyActionDescriptorAnyDynamicArgumentParentRef=Kv,h.iterateOverObjectValuesLoopBodyActionDescriptorAnyDynamicReturn=eT,h.iterateOverObjectValuesLoopBodyActionDescriptorAnyDynamicReturnParentRef=Qv,h.iterateOverObjectValuesLoopBodyActionDescriptorCurrentValueArgumentDeclaration=gd,h.iterateOverObjectValuesLoopBodyActionDescriptorCurrentValueArgumentDeclarationDataType=qv,h.iterateOverObjectValuesLoopBodyActionDescriptorCurrentValueArgumentDeclarationDataTypeParentRef=Zv,h.iterateOverObjectValuesLoopBodyActionDescriptorCurrentValueArgumentDeclarationParentRef=Jv,h.iterateOverObjectValuesLoopBodyActionDescriptorIterationNumberArgumentDeclaration=Hv,h.iterateOverObjectValuesLoopBodyActionDescriptorIterationNumberArgumentDeclarationDataType=zv,h.iterateOverObjectValuesLoopBodyActionDescriptorIterationNumberArgumentDeclarationDataTypeParentRef=Wv,h.iterateOverObjectValuesLoopBodyActionDescriptorIterationNumberArgumentDeclarationParentRef=Yv,h.iterateOverStringActionDescriptorDynamicReturnDeclaration=Z0,h.iterateOverStringActionDescriptorDynamicReturnDeclarationParentRef=S0,h.iterateOverStringActionDescriptorStringArgumentDeclaration=k0,h.iterateOverStringActionDescriptorStringArgumentDeclarationDataType=F0,h.iterateOverStringActionDescriptorStringArgumentDeclarationDataTypeParentRef=G0,h.iterateOverStringActionDescriptorStringArgumentDeclarationParentRef=x0,h.iterateOverStringLoopActionDescriptor=Ms,h.iterateOverStringLoopBodyActionDescriptor=no,h.iterateOverStringLoopBodyActionDescriptorAnyDynamicArgument=X0,h.iterateOverStringLoopBodyActionDescriptorAnyDynamicArgumentParentRef=K0,h.iterateOverStringLoopBodyActionDescriptorAnyDynamicReturn=ev,h.iterateOverStringLoopBodyActionDescriptorAnyDynamicReturnParentRef=Q0,h.iterateOverStringLoopBodyActionDescriptorCurrentValueArgumentDeclaration=Md,h.iterateOverStringLoopBodyActionDescriptorCurrentValueArgumentDeclarationDataType=J0,h.iterateOverStringLoopBodyActionDescriptorCurrentValueArgumentDeclarationDataTypeParentRef=q0,h.iterateOverStringLoopBodyActionDescriptorCurrentValueArgumentDeclarationParentRef=W0,h.iterateOverStringLoopBodyActionDescriptorIterationNumberArgumentDeclaration=Nd,h.iterateOverStringLoopBodyActionDescriptorIterationNumberArgumentDeclarationDataType=Y0,h.iterateOverStringLoopBodyActionDescriptorIterationNumberArgumentDeclarationDataTypeParentRef=z0,h.iterateOverStringLoopBodyActionDescriptorIterationNumberArgumentDeclarationParentRef=H0,h.joinListOperation=Id,h.joinListOperationError=Wy,h.joinListOperationErrorParentRef=Jy,h.joinListOperationFirstListArgument=xy,h.joinListOperationFirstListArgumentParentRef=Fy,h.joinListOperationFirstListArgumentRef=Ly,h.joinListOperationFirstListDataType=Uy,h.joinListOperationResultListDataType=Gy,h.joinListOperationResultListReturn=qy,h.joinListOperationResultListReturnParentRef=Zy,h.joinListOperationResultListReturnRef=$y,h.joinListOperationSecondListArgument=Sy,h.joinListOperationSecondListArgumentParentRef=ky,h.joinListOperationSecondListArgumentRef=gy,h.joinListOperationSecondListDataType=jy,h.joinListWithLastSeparator=ne,h.joinStringsOperation=Vs,h.joinStringsOperationDynamicStringArgument=fy,h.joinStringsOperationDynamicStringArgumentParentRef=cy,h.joinStringsOperationDynamicStringArgumentRef=uy,h.joinStringsOperationDynamicStringDataType=py,h.joinStringsOperationError=dy,h.joinStringsOperationErrorParentRef=ly,h.joinStringsOperationFirstStringArgument=Ja,h.joinStringsOperationFirstStringArgumentParentRef=Qf,h.joinStringsOperationFirstStringArgumentRef=Wf,h.joinStringsOperationFirstStringDataType=zf,h.joinStringsOperationResultStringDataType=Xf,h.joinStringsOperationResultStringReturn=Cs,h.joinStringsOperationResultStringReturnParentRef=oy,h.joinStringsOperationResultStringReturnRef=Kf,h.joinStringsOperationSecondStringArgument=Wa,h.joinStringsOperationSecondStringArgumentParentRef=ay,h.joinStringsOperationSecondStringArgumentRef=Yf,h.joinStringsOperationSecondStringDataType=Hf,h.joinStringsOperationSeparatorStringArgument=sy,h.joinStringsOperationSeparatorStringArgumentParentRef=ny,h.joinStringsOperationSeparatorStringArgumentRef=ey,h.joinStringsOperationSeparatorStringDataType=ry,h.joinStringsOperationSeparatorStringDataTypeDefaultValue=iy,h.joinStringsOperationSeparatorStringDataTypeDefaultValueParentRef=ty,h.keyValuePrototype=Fn,h.literalValudValidation=S7,h.loopValidation=C7,h.lowercaseFirstLetter=Bl,h.manualFlowActionDescriptorDeclarationArgumentDeclaration=_d,h.manualFlowActionDescriptorDeclarationArgumentDeclarationDataType=M0,h.manualFlowActionDescriptorDeclarationArgumentDeclarationDataTypeParentRef=_0,h.manualFlowActionDescriptorDeclarationArgumentDeclarationParentRef=N0,h.manualFlowLoopActionDescriptor=io,h.manualFlowLoopActionDescriptorDynamicReturnDeclaration=B0,h.manualFlowLoopActionDescriptorDynamicReturnDeclarationParentRef=V0,h.manualFlowLoopBodyActionDescriptor=ro,h.manualFlowLoopBodyActionDescriptorAnyDynamicArgument=U0,h.manualFlowLoopBodyActionDescriptorAnyDynamicArgumentParentRef=L0,h.manualFlowLoopBodyActionDescriptorAnyDynamicReturn=j0,h.manualFlowLoopBodyActionDescriptorAnyDynamicReturnParentRef=g0,h.mapActionDescriptorToTypeItRepresents=CJ,h.mergeEntityErrorsList=V3,h.mergeListOfEntities=PJ,h.methodDefaultValue=e0,h.mockClientProject=lp,h.moreThanOrEqualCondition=Yn,h.moreThanOrEqualConditionLeftHandArgument=zI,h.moreThanOrEqualConditionLeftHandArgumentDataType=JI,h.moreThanOrEqualConditionLeftHandArgumentDataTypeParentRef=qI,h.moreThanOrEqualConditionLeftHandArgumentParentRef=WI,h.moreThanOrEqualConditionRightHandArgument=XI,h.moreThanOrEqualConditionRightHandArgumentDataType=HI,h.moreThanOrEqualConditionRightHandArgumentDataTypeParentRef=YI,h.moreThanOrEqualConditionRightHandArgumentParentRef=KI,h.notEmptyCondition=ln,h.notEmptyConditionArgument=SI,h.notEmptyConditionRef=kI,h.nullPrototype=pd,h.numberAdditionOperation=qa,h.numberAdditionOperationDynamicSummandArgument=Vf,h.numberAdditionOperationDynamicSummandArgumentType=Cf,h.numberAdditionOperationDynamicSummandArgumentTypeParentRef=wf,h.numberAdditionOperationError=Pf,h.numberAdditionOperationErrorParentRef=Of,h.numberAdditionOperationFirstNumberArgument=cd,h.numberAdditionOperationFirstNumberArgumentRef=vf,h.numberAdditionOperationFirstNumberDataType=Tf,h.numberAdditionOperationRef=Rf,h.numberAdditionOperationRefThree=yd,h.numberAdditionOperationRefTwo=Df,h.numberAdditionOperationResultNumberDataType=bf,h.numberAdditionOperationResultNumberReturn=hd,h.numberAdditionOperationResultNumberReturnRef=Af,h.numberAdditionOperationSecondNumberArgument=fd,h.numberAdditionOperationSecondNumberArgumentRef=If,h.numberAdditionOperationSecondNumberDataType=Ef,h.numberPrototype=ve,h.numberSubtractionOperation=vd,h.numberSubtractionOperationDynamicSubtrahendArgument=qf,h.numberSubtractionOperationDynamicSubtrahendArgumentType=Zf,h.numberSubtractionOperationDynamicSubtrahendArgumentTypeParentRef=Sf,h.numberSubtractionOperationError=kf,h.numberSubtractionOperationErrorParentRef=xf,h.numberSubtractionOperationFirstNumberArgument=gf,h.numberSubtractionOperationFirstNumberArgumentRef=Bf,h.numberSubtractionOperationFirstNumberDataType=_f,h.numberSubtractionOperationRef=md,h.numberSubtractionOperationRefThree=Gf,h.numberSubtractionOperationRefTwo=jf,h.numberSubtractionOperationResultNumberDataType=Uf,h.numberSubtractionOperationResultNumberReturn=Ff,h.numberSubtractionOperationResultNumberReturnRef=Lf,h.numberSubtractionOperationSecondNumberArgument=$f,h.numberSubtractionOperationSecondNumberArgumentRef=Mf,h.numberSubtractionOperationSecondNumberDataType=Nf,h.numberValueAutogenerationSchema=cp,h.operationValidation=D7,h.outputMapValidation=G7,h.parallelExecutionOperation=Oi,h.parallelExecutionOperationError=Xh,h.parallelExecutionOperationErrorParentRef=Kh,h.parallelExecutionOperationListOfExecutionResultsDataType=zh,h.parallelExecutionOperationListOfExecutionResultsReturn=Pd,h.parallelExecutionOperationListOfExecutionResultsReturnRef=Wh,h.parallelExecutionOperationListOfFunctionsArgument=Od,h.parallelExecutionOperationListOfFunctionsArgumentDatatype=Jh,h.parallelExecutionOperationListOfFunctionsArgumentRef=qh,h.parallelExecutionOperationListOfFunctionsBlueprint=Zh,h.parallelExecutionOperationListOfFunctionsBlueprintDynamicInput=kh,h.parallelExecutionOperationListOfFunctionsBlueprintDynamicInputParentRef=xh,h.parallelExecutionOperationListOfFunctionsBlueprintDynamicOutput=Fh,h.parallelExecutionOperationListOfFunctionsBlueprintDynamicOutputParentRef=Gh,h.parallelExecutionOperationListOfFunctionsBlueprintParentRef=Sh,h.parallelExecutionOperationRef=Yh,h.parallelExecutionOperationRefThree=Hh,h.persistedBuiltInBaseEntity=Ct,h.persistedBuiltInBaseEntityDatabaseProperty=Jn,h.persistedBuiltInBaseEntityDatabasePropertyDataType=RI,h.persistedBuiltInBaseEntityDatabasePropertyDataTypeRef=Rw,h.persistedBuiltInBaseEntityDatabasePropertyParentRef=DI,h.persistedBuiltInBaseEntityDatabasePropertyRef=bI,h.persistedBuiltInBaseEntityPrimaryKeyProperty=Wn,h.persistedBuiltInBaseEntityPrimaryKeyPropertyDataType=MI,h.persistedBuiltInBaseEntityPrimaryKeyPropertyNumberDataTypeOption=PI,h.persistedBuiltInBaseEntityPrimaryKeyPropertyNumberDataTypeOptionParentRef=OI,h.persistedBuiltInBaseEntityPrimaryKeyPropertyParentRef=NI,h.persistedBuiltInBaseEntityPrimaryKeyPropertyRef=_I,h.persistedBuiltInBaseEntityPrimaryKeyPropertyStringDataTypeOption=CI,h.persistedBuiltInBaseEntityPrimaryKeyPropertyStringDataTypeOptionParentRef=wI,h.persistedBuiltInBaseEntityPrimaryKeyPropertyUUIDDataTypeOption=BI,h.persistedBuiltInBaseEntityPrimaryKeyPropertyUUIDDataTypeOptionParentRef=VI,h.processOutputGlobalValueDescriptorDataType=sE,h.processOutputGlobalValueDescriptorReturn=ho,h.processOutputGlobalValueDescriptorReturnRef=nE,h.projectPublicationCompletedGlobalEvent=yo,h.propertyToZodSchema=bE,h.propertyValidation=c7,h.relationalDatabaseBuiltInBaseEntity=ji,h.relationalDatabaseBuiltInBaseEntityAutoscalingProperty=Kd,h.relationalDatabaseBuiltInBaseEntityAutoscalingPropertyDataType=TI,h.relationalDatabaseBuiltInBaseEntityAutoscalingPropertyDataTypeRef=vI,h.relationalDatabaseBuiltInBaseEntityAutoscalingPropertyParentRef=II,h.relationalDatabaseBuiltInBaseEntityAutoscalingPropertyRef=mI,h.relationalDatabaseBuiltInBaseEntityDefaultProperty=Hd,h.relationalDatabaseBuiltInBaseEntityDefaultPropertyDataType=hI,h.relationalDatabaseBuiltInBaseEntityDefaultPropertyDataTypeRef=fI,h.relationalDatabaseBuiltInBaseEntityDefaultPropertyRef=yI,h.relationalDatabaseBuiltInBaseEntityIdentifierProperty=oo,h.relationalDatabaseBuiltInBaseEntityIdentifierPropertyDataType=sI,h.relationalDatabaseBuiltInBaseEntityIdentifierPropertyDataTypeRef=rI,h.relationalDatabaseBuiltInBaseEntityIdentifierPropertyRef=nI,h.relationalDatabaseBuiltInBaseEntityMinSizeProperty=po,h.relationalDatabaseBuiltInBaseEntityMinSizePropertyDataType=cI,h.relationalDatabaseBuiltInBaseEntityMinSizePropertyDataTypeRef=uI,h.relationalDatabaseBuiltInBaseEntityMinSizePropertyRef=pI,h.relationalDatabaseBuiltInBaseEntityPasswordProperty=uo,h.relationalDatabaseBuiltInBaseEntityPasswordPropertyDataType=dI,h.relationalDatabaseBuiltInBaseEntityPasswordPropertyDataTypeRef=bw,h.relationalDatabaseBuiltInBaseEntityPasswordPropertyRef=lI,h.relationalDatabaseBuiltInBaseEntityRef=qn,h.relationalDatabaseBuiltInBaseEntityUsernameProperty=lo,h.relationalDatabaseBuiltInBaseEntityUsernamePropertyDataType=oI,h.relationalDatabaseBuiltInBaseEntityUsernamePropertyDataTypeRef=Aw,h.relationalDatabaseBuiltInBaseEntityUsernamePropertyRef=aI,h.resolveActionDescriptorName=KO,h.resolveBaseEntityName=WO,h.resolveBuiltInBaseEntityDataTypeLabel=zO,h.resolveClonedEntityProject=mt,h.resolveConditionOperatorLabel=Ll,h.resolveDataType=_l,h.resolveDataTypeEntityOrNestedChildrenFromLiteralValue=Zc,h.resolveDataTypeLabel=Nl,h.resolveDefinitionEntityDataTypeLabel=u7,h.resolveEntityDataTypeLabel=d7,h.resolveEntityName=x,h.resolveFirstCallsSecond=yJ,h.resolveFirstWritesSecond=hJ,h.resolvePrimaryKeyProperty=_J,h.resolvePrimitiveEntityName=HO,h.resolveSearchName=YO,h.resolveVariableScope=a7,h.returnDeclarationValidation=h7,h.returnStatementValidation=m7,h.searchValidation=N7,h.sequentialExecutionOperation=nr,h.sequentialExecutionOperationError=Tm,h.sequentialExecutionOperationErrorParentRef=vm,h.sequentialExecutionOperationListOfExecutionResultsDataType=ym,h.sequentialExecutionOperationListOfExecutionResultsReturn=Cd,h.sequentialExecutionOperationListOfExecutionResultsReturnParentRef=mm,h.sequentialExecutionOperationListOfExecutionResultsReturnRef=fm,h.sequentialExecutionOperationListOfFunctionsArgument=wd,h.sequentialExecutionOperationListOfFunctionsArgumentDatatype=cm,h.sequentialExecutionOperationListOfFunctionsArgumentParentRef=hm,h.sequentialExecutionOperationListOfFunctionsArgumentRef=pm,h.sequentialExecutionOperationListOfFunctionsBlueprint=um,h.sequentialExecutionOperationListOfFunctionsBlueprintDynamicInput=dm,h.sequentialExecutionOperationListOfFunctionsBlueprintDynamicOutput=lm,h.softDeletePersistedEntityMethod=Dw,h.softDeletePersistedEntityMethodParentRef=LI,h.sortCallsBasedOnExecutionDependencies=nP,h.sortChildrenEntitiesBasedOnExecutionDependencies=cJ,h.splitListOperation=Ad,h.splitListOperationError=ph,h.splitListOperationErrorParentRef=uh,h.splitListOperationFirstOutputListDataType=eh,h.splitListOperationFirstOutputListReturn=ah,h.splitListOperationFirstOutputListReturnParentRef=sh,h.splitListOperationFirstOutputListReturnRef=Ed,h.splitListOperationInputListArgument=ih,h.splitListOperationInputListArgumentParentRef=th,h.splitListOperationInputListArgumentRef=Hy,h.splitListOperationInputListDataType=Ky,h.splitListOperationSecondOutputListDataType=oh,h.splitListOperationSecondOutputListReturn=dh,h.splitListOperationSecondOutputListReturnParentRef=lh,h.splitListOperationSplitIndexArgument=nh,h.splitListOperationSplitIndexArgumentParentRef=rh,h.splitListOperationSplitIndexArgumentRef=Xy,h.splitListOperationSplitIndexDataType=Qy,h.splitStringOperation=Td,h.splitStringOperationError=By,h.splitStringOperationErrorParentRef=Vy,h.splitStringOperationFirstPartResultStringDataType=Iy,h.splitStringOperationFirstPartResultStringReturn=Cy,h.splitStringOperationFirstPartResultStringReturnParentRef=wy,h.splitStringOperationFirstPartResultStringReturnRef=Ty,h.splitStringOperationIndexArgument=Oy,h.splitStringOperationIndexArgumentParentRef=Dy,h.splitStringOperationIndexArgumentRef=my,h.splitStringOperationIndexDataType=vy,h.splitStringOperationSecondPartResultStringDataType=Ay,h.splitStringOperationSecondPartResultStringReturn=Iw,h.splitStringOperationSecondPartResultStringReturnParentRef=Py,h.splitStringOperationSecondPartResultStringReturnRef=Ey,h.splitStringOperationStringArgument=Ry,h.splitStringOperationStringArgumentParentRef=by,h.splitStringOperationStringArgumentRef=yy,h.splitStringOperationStringDataType=hy,h.stringPrototype=se,h.stringValueAutogenerationSchema=pp,h.suggestNewIdForEntity=Oc,h.test_primitive_entities_export=CW,h.toCamelCase=o7,h.toEntityState=mi,h.toKebabCase=JO,h.toLowerCaseKebabCase=Ml,h.toPascalCase=l7,h.untypedDataPrototype=Ot,h.updateErrorsList=Ye,h.urlDefaultValue=zm,h.uuidPrototype=ir,h.validateArgumentDeclarationName=Rc,h.validateCalledByErrorIdInAction=Q7,h.validateCalledByIdInAction=X7,h.validateCallers=Z1,h.validateConditionEntityDeclaration=iJ,h.validateDataOperation=rn,h.validateDataOperationDataToValidateArgument=jm,h.validateDataOperationDataToValidateArgumentParentRef=gm,h.validateDataOperationDataToValidateArgumentRef=Lm,h.validateDataOperationDataToValidateDataType=Um,h.validateDataOperationEntityToMatchTypeArgument=xm,h.validateDataOperationEntityToMatchTypeArgumentParentRef=Fm,h.validateDataOperationEntityToMatchTypeArgumentRef=$m,h.validateDataOperationEntityToMatchTypeDataType=Gm,h.validateDataOperationError=qm,h.validateDataOperationErrorParentRef=Zm,h.validateDataOperationOutputEntityDeclaration=Sm,h.validateDataOperationOutputEntityDeclarationParentRef=km,h.validateDefinitionEntityName=Ic,h.validateEntryCaller=S1,h.validateErrorCaller=k1,h.validateFunctionCallDeclaration=J1,h.validateFunctionDeclarationName=Ec,h.validateGeneratedEntityParentIsNotBuiltInEntity=z7,h.validateGeneration=J7,h.validateGenerationTarget=ut,h.validateGenerationUpdate=W7,h.validateLoopEntityDeclaration=rJ,h.validateName=p7,h.validateOperationEntityDeclaration=W1,h.validatePropertyName=bc,h.validateReachability=mr,h.validateReadsValueInActionPayload=eJ,h.validateReferenceObject=jl,h.validateReferenceToOne=Lc,h.validateReferences=At,h.validateReturnDeclarationName=Dc,h.validateSuccessCaller=x1,h.validateValueReaderGenerationUpdate=_a,h.validateValueWritter=Fc,h.validateVariableDeclarationName=Ac,h.validateVariableInternalCallUse=xc,h.valueAutogenerationCurrentDateAndTimeSchema=nD,h.valueAutogenerationGenericSchema=rl,h.valueAutogenerationOptions=yp,h.valueAutogenerationOptionsSchema=rD,h.valueAutogenerationRandomBooleanSchema=up,h.valueAutogenerationRandomDateBetweenSchema=fD,h.valueAutogenerationRandomDateFromSchema=pD,h.valueAutogenerationRandomDateSchema=al,h.valueAutogenerationRandomDateUntilSchema=cD,h.valueAutogenerationRandomNumberBetweenSchema=oD,h.valueAutogenerationRandomNumberFromSchema=sD,h.valueAutogenerationRandomNumberSchema=nl,h.valueAutogenerationRandomNumberUntilSchema=aD,h.valueAutogenerationRandomSchema=fa,h.valueAutogenerationRandomTextBetweenSchema=uD,h.valueAutogenerationRandomTextFromSchema=lD,h.valueAutogenerationRandomTextSchema=sl,h.valueAutogenerationRandomTextUntilSchema=dD,h.valueAutogenerationRangeValueTypesSchema=ca,h.valueAutogenerationUniqueSchema=dp,h.valueDescriptorValidation=q7,h.variableDeclarationValidation=_7,h.variableInstanceValidation=M7,h.waitOperation=Zt,h.waitOperationMillisecondsNumberArgument=en,h.waitOperationMillisecondsNumberArgumentRef=tm,h.waitOperationMillisecondsNumberDataType=im,h.waitOperationOperationError=sm,h.waitOperationOperationErrorParentRef=nm,h.waitOperationRef=rm,Object.defineProperty(h,Symbol.toStringTag,{value:"Module"})});