@elyx-code/project-logic-tree 0.0.6155 → 0.0.6156

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.
@@ -1,4 +1,4 @@
1
- (function(c,r){typeof exports=="object"&&typeof module<"u"?r(exports):typeof define=="function"&&define.amd?define(["exports"],r):(c=typeof globalThis<"u"?globalThis:c||self,r(c["@elyx-code/project-logic-tree"]={}))})(this,function(c){"use strict";var uJ=Object.defineProperty;var cJ=(c,r,k)=>r in c?uJ(c,r,{enumerable:!0,configurable:!0,writable:!0,value:k}):c[r]=k;var u=(c,r,k)=>(cJ(c,typeof r!="symbol"?r+"":r,k),k);var r=(n=>(n.DefinitionEntity="definition-entity",n.BuiltInBaseEntity="built-in-base-entity",n.Project="project",n.InstalledProject="installed-project",n.GlobalEvent="global-event",n.DataType="data-type",n.FunctionCall="function-call",n.FunctionDeclaration="function-declaration",n.ActionDescriptor="action-descriptor",n.ValueDescriptor="value-descriptor",n.ArgumentDeclaration="argument-declaration",n.InputMap="input-map",n.ReturnStatement="return-statement",n.BreakStatement="break-statement",n.ContinueStatement="continue-statement",n.ReturnDeclaration="return-declaration",n.OutputMap="output-map",n.PrimitiveEntity="primitive-entity",n.LiteralValue="literal-value",n.Property="property",n.Operation="operation",n.Condition="condition",n.VariableDeclaration="variable-declaration",n.VariableInstance="variable-instance",n.Search="search",n.Loop="loop",n.InternalCall="internal-call",n.GenericReference="generic-reference",n))(r||{}),k=(n=>(n.HTTP_ENDPOINT="BUILT_IN_HTTP_ENDPOINT_ENTITY",n.RELATIONAL_DATABASE="BUILT_IN_RELATIONAL_DATABASE_ENTITY",n.PERSISTED_ENTITY="BUILT_IN_PERSISTED_ENTITY_ENTITY",n.CRON_JOB="BUILT_IN_CRON_JOB_ENTITY",n.EXECUTION="BUILT_IN_EXECUTION_ENTITY",n.KEY_VALUE_PARAM="BUILT_IN_KEY_VALUE_PARAM_ENTITY",n))(k||{}),st=(n=>(n.CurrentDateAndTime="current-date-and-time",n.Unique="unique",n.Random="random",n))(st||{}),C=(n=>(n.EntityTemplate="entity-template",n.ActionDescriptor="action-descriptor",n.String="string",n.Number="number",n.Boolean="boolean",n.Null="null",n.Enum="enum",n.KeyValue="key-value",n.Date="date",n.UUID="uuid",n.File="file",n.Untyped="untyped",n))(C||{}),qe=(n=>(n.Addition="addition",n.Subtraction="subtraction",n.Multiplication="multiplication",n.Division="division",n.Remainder="remainder",n.Exponentiation="exponentiation",n))(qe||{}),pe=(n=>(n.Join="string-join",n.Split="string-split",n.DeleteLast="string-delete-last",n.DeleteFirst="string-delete-first",n.DeleteIndex="string-delete-index",n.AddIndex="string-add-index",n.ReplaceFirst="string-replace-first",n.ReplaceLast="string-replace-last",n.ReplaceIndex="string-replace-index",n.ReplaceSingleMatch="string-replace-single-match",n.ReplaceAllMatches="string-replace-all-matches",n.GetIndex="string-get-index",n.GetFirst="string-get-first",n.GetLast="string-get-last",n.Append="string-append",n.Prepend="string-prepend",n))(pe||{}),oe=(n=>(n.Join="list-join",n.Split="list-split",n.DeleteLast="list-delete-last",n.DeleteFirst="list-delete-first",n.DeleteIndex="list-delete-index",n.AddIndex="list-add-index",n.ReplaceFirst="list-replace-first",n.ReplaceLast="list-replace-last",n.ReplaceIndex="list-replace-index",n.ReplaceSingleMatch="list-replace-single-match",n.ReplaceAllMatches="list-replace-all-matches",n.GetIndex="list-get-index",n.GetFirst="list-get-first",n.GetLast="list-get-last",n.Append="list-append",n.Prepend="list-prepend",n))(oe||{}),ke=(n=>(n.Parallel="parallel",n.Sequential="sequential",n.Wait="wait",n))(ke||{}),Ze=(n=>(n.CreateNewInstance="create-new-instance",n.Validate="validate",n))(Ze||{}),Dt=(n=>(n.HttpRequest="base-http-request",n))(Dt||{}),nt=(n=>(n.Equal="equal",n.NotEqual="not-equal",n.And="and",n.Or="or",n.LessThan="less-than",n.MoreThan="more-than",n.LessThanOrEqual="less-than-or-equal",n.MoreThanOrEqual="more-than-or-equal",n))(nt||{}),lr=(n=>(n.Empty="empty",n.NotEmpty="not-empty",n))(lr||{}),q=(n=>(n.ManualFlow="manual-flow-loop",n.Counted="counted-loop",n.List="list-loop",n.ObjectKeys="object-keys-loop",n.ObjectValues="object-values-loop",n.String="string-loop",n))(q||{}),V=(n=>(n.FixedArguments="fixed-arguments",n.FixedReturns="fixed-returns",n.ReturnedError="returned-error",n.OngoingProcessExecution="ongoing-process-execution",n.DynamicArgument="dynamic-argument-types",n.DynamicReturn="dynamic-return-types",n))(V||{}),yt=(n=>(n.OrDataTypeGroup="or-data-type-group",n.AndDataTypeGroup="and-data-type-group",n))(yt||{}),jr=(n=>(n.PROJECT_PUBLICATION_COMPLETED="GLOBAL_EVENT_PROJECT_PUBLICATION_COMPLETED",n))(jr||{}),er=(n=>(n.DeletePersistedEntity="base-delete-persisted-entity",n.SoftDeletePersistedEntity="base-soft-delete-persisted-entity",n.AbortExecution="base-abort-execution",n))(er||{}),Di=(n=>(n.Error="error",n.Task="task",n.Return="return",n))(Di||{});const un=[r.VariableDeclaration,r.VariableInstance,r.InputMap,r.ReturnDeclaration],ot=[r.VariableDeclaration,r.VariableInstance,r.ArgumentDeclaration,r.OutputMap],Up=[...un,...ot],Je=[r.VariableDeclaration,r.VariableInstance],hP=[r.FunctionDeclaration,r.Condition,r.Loop,r.Operation,r.FunctionCall,r.Search,r.InternalCall,r.GlobalEvent,r.DefinitionEntity,r.ReturnStatement,r.BreakStatement,r.ContinueStatement,r.VariableDeclaration,r.VariableInstance,r.LiteralValue,r.ActionDescriptor,r.ValueDescriptor,r.Property,r.DataType,r.InstalledProject,r.ArgumentDeclaration,r.InputMap,r.OutputMap,r.ReturnDeclaration],yP=[r.FunctionDeclaration,r.Property,r.ArgumentDeclaration,r.ReturnDeclaration],xp=[r.FunctionCall,r.VariableInstance,r.InputMap,r.OutputMap,r.InternalCall],fP=[...xp,r.Condition,r.Loop,r.Operation,r.Condition],Pi=[r.GlobalEvent],Hl=[r.Operation,r.FunctionCall,r.Search,r.VariableDeclaration,r.VariableInstance,r.Loop],jp=[...Hl,r.InternalCall],Cs=[...Hl,r.Condition],Ke=[...Cs,r.InternalCall],Xe=[r.FunctionDeclaration,...Pi],Ir=[...Ke,r.ReturnStatement,r.BreakStatement,r.ContinueStatement],zl=[...Cs,r.ReturnStatement,r.BreakStatement,r.ContinueStatement],Ar=[...Ke,...Xe],kp=[...Cs,...Xe],mP=[...Ir,...Xe],TP=[...zl,...Xe],lt=[...Xe,r.Loop],Qe=[r.ReturnStatement,r.BreakStatement,r.ContinueStatement],vP=[r.DefinitionEntity,r.BuiltInBaseEntity,r.Project,r.InstalledProject,r.GlobalEvent,r.DataType,r.FunctionCall,r.FunctionDeclaration,r.ActionDescriptor,r.ValueDescriptor,r.ArgumentDeclaration,r.InputMap,r.ReturnStatement,r.BreakStatement,r.ContinueStatement,r.ReturnDeclaration,r.OutputMap,r.PrimitiveEntity,r.LiteralValue,r.Property,r.Operation,r.Condition,r.VariableDeclaration,r.VariableInstance,r.Search,r.Loop,r.InternalCall],ws=[r.DefinitionEntity,r.GlobalEvent,r.FunctionDeclaration,r.FunctionCall,r.VariableDeclaration,r.VariableInstance,r.Operation,r.Condition,r.ReturnStatement,r.BreakStatement,r.ContinueStatement,r.InstalledProject,r.Loop,r.Search],Zp=[r.DefinitionEntity,r.FunctionDeclaration,r.ArgumentDeclaration,r.ReturnDeclaration,r.Property,r.VariableDeclaration,r.Search,r.Project,r.InstalledProject,r.ActionDescriptor,r.ValueDescriptor],Dr=[r.BuiltInBaseEntity,r.PrimitiveEntity],qp=[r.DefinitionEntity,r.FunctionDeclaration,r.ArgumentDeclaration,r.ReturnDeclaration,r.Property,r.VariableDeclaration,r.GlobalEvent,r.Search,r.Project,r.InstalledProject,r.ActionDescriptor,r.ValueDescriptor,r.InputMap,r.OutputMap,r.FunctionCall,r.Operation,r.Condition,r.ReturnStatement,r.BreakStatement,r.ContinueStatement,r.VariableInstance,r.LiteralValue,r.InternalCall];var Bs=(n=>(n.ActionOngoingProcessOutputValue="action-ongoing-process-output-value-descriptor-id",n))(Bs||{});const N={[r.PrimitiveEntity]:{[C.String]:{id:"8b5fbe15-4c2b-48c0-9fd8-e5efbe3978dc",properties:{}},[C.Boolean]:{id:"f596545d-1565-4faa-9969-d95fa5edfea4",properties:{}},[C.Number]:{id:"ecb84c29-6153-4b82-86a5-fce2b5f92002",properties:{}},[C.KeyValue]:{id:"b6f3c3c4-9c3d-4f9d-9e9e-1c0f6a3c8c6b",properties:{}},[C.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"}}}}},[C.UUID]:{id:"4a6234aa-c0f6-4731-b4dd-750388029226",properties:{}},[C.Date]:{id:"dc58f38b-d574-4956-aac6-32ce9529b937",properties:{}},[C.Null]:{id:"7d698f34-5a89-4aab-846b-07ef3843b8c4",properties:{}},[C.Untyped]:{id:"4044a018-818e-49d7-bf9a-c3dd1fff2102",properties:{}}},[r.ValueDescriptor]:{"action-ongoing-process-output-value-descriptor-id":{id:"action-ongoing-process-output-value-descriptor-id",dataType:{id:"process-output-value-data-type-id"}}},[r.BuiltInBaseEntity]:{[k.KEY_VALUE_PARAM]:{id:k.KEY_VALUE_PARAM},[k.HTTP_ENDPOINT]:{id:k.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"}}},[k.PERSISTED_ENTITY]:{id:k.PERSISTED_ENTITY,properties:{database:{id:"persisted-built-in-base-entity-database-property-id"},primaryKey:{id:"persisted-built-in-base-entity-primary-key-property-id"}}},[k.RELATIONAL_DATABASE]:{id:k.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"}}},[k.CRON_JOB]:{id:k.CRON_JOB,properties:{expression:{id:"cron-job-built-in-base-entity-expression-property-id"}}}},[r.Operation]:{[pe.Join]:{id:pe.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"}}},[pe.Split]:{id:pe.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"}}},[Dt.HttpRequest]:{id:Dt.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"}}},[Ze.Validate]:{id:Ze.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"}}}},[r.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"}}}}},[r.Condition]:{[nt.MoreThanOrEqual]:{id:nt.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"}}}},[lr.NotEmpty]:{id:lr.NotEmpty,inputs:{leftHand:{id:"condition-not-empty-input-id"}}}},[r.GlobalEvent]:{[jr.PROJECT_PUBLICATION_COMPLETED]:{id:jr.PROJECT_PUBLICATION_COMPLETED}}},tr=N[r.PrimitiveEntity],X={type:r.PrimitiveEntity,id:tr.string.id,description:"A string of characters.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:C.String,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[],methods:[]},kr={type:r.PrimitiveEntity,id:tr.boolean.id,description:"A 'true' or 'false' value.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:C.Boolean,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[],methods:[]},ue={type:r.PrimitiveEntity,id:tr.number.id,description:"A number value.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:C.Number,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[],methods:[]},Jp={type:r.PrimitiveEntity,id:tr.null.id,description:"An explicitly empty value.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:C.Null,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[],methods:[]},vt={type:r.PrimitiveEntity,id:tr.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:C.Untyped,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[],methods:[]},Wp={id:"c2f52f01-8f2e-490e-8083-72289c8189c1",type:r.GenericReference,entityId:tr.enum.properties.options.id,version:"1",entityType:r.Property},Yp={id:"4e803941-2e6a-4227-b803-b8877c0d7fee",type:r.GenericReference,entityId:"00ccfcae-2104-45ef-bf6c-50ddccd74286",version:"1",entityType:r.Property},Hp={like:!1,inferred:!1,id:tr.enum.properties.options.dataType.id,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!0,entity:X,asType:!1,parent:Yp},zp={id:"a2983c4c-0286-4ef1-8b5c-5a52904d3200",type:r.GenericReference,entityId:"9542b8b4-2642-4eee-9db9-def7963a17a0",version:"1",entityType:r.PrimitiveEntity},Kp={constant:!1,hidden:!1,required:!0,id:tr.enum.properties.options.id,name:"Options",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:r.Property,private:!1,abstract:!1,implements:null,static:!1,index:0,defaultValue:{id:tr.enum.properties.options.dataType.defaultValue.id,type:r.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:C.KeyValue,autogeneration:null,value:[],valueAsType:null,parent:Wp},dataType:Hp,description:"Options for the enum. Each option is a text value.",parent:zp},Zr={type:r.PrimitiveEntity,id:tr.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:C.Enum,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[Kp],methods:[]},Pr={type:r.PrimitiveEntity,id:tr.date.id,description:"A date and time value.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:C.Date,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[],methods:[]},qr={type:r.PrimitiveEntity,id:tr.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:C.UUID,static:!1,abstract:!1,abstractMethods:[],extends:[X],properties:[],methods:[]},Si={type:r.PrimitiveEntity,id:tr[C.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:C.KeyValue,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[],methods:[]},Xp=[X,kr,ue,Jp,vt,Zr,Pr,qr,Si],Sr=N[r.Operation][qe.Addition],Qp={type:r.GenericReference,id:"3bd4aeb2-e3b7-4120-b289-011ebb03dba5",entityId:Sr.inputs.firstSummand.id,version:"1",entityType:r.ValueDescriptor},eh={like:!1,inferred:!1,id:"number-addition-first-number-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ue,isList:!1,asType:!1,parent:Qp},th={type:r.GenericReference,id:"9f486db2-a983-4293-9eef-81d4fc8d2d3e",entityId:Sr.inputs.secondSummand.id,version:"1",entityType:r.ValueDescriptor},rh={like:!1,inferred:!1,id:"1d4abe83-3e87-4f74-99be-c1fd8c2f8d2d",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ue,asType:!1,isList:!1,parent:th},nh={type:r.GenericReference,id:"da5e9fe9-f18a-49e3-98e5-c1bf7b9b3153",entityId:Sr.outputs.result.id,version:"1",entityType:r.ValueDescriptor},ih={like:!1,inferred:!1,id:Sr.outputs.result.dataType.id,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ue,asType:!1,isList:!1,parent:nh},ah={type:r.GenericReference,id:"a6c14305-d4f7-43ae-9d5e-b7dbacdc830a",entityId:qe.Addition,version:"1",entityType:r.ActionDescriptor},Kl={id:Sr.inputs.firstSummand.id,type:r.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:eh,required:!0,parentRelationType:V.FixedArguments,index:0,parent:ah},sh={type:r.GenericReference,id:"c5015128-4a65-462c-9da0-1c86e83ef897",entityId:qe.Addition,version:"1",entityType:r.ActionDescriptor},Xl={id:Sr.inputs.secondSummand.id,type:r.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:rh,required:!0,parentRelationType:V.FixedArguments,index:1,parent:sh},Ql={type:r.GenericReference,id:"caac2bc7-c23c-4f01-9581-a515c2e4637f",entityId:qe.Addition,version:"1",entityType:r.ActionDescriptor},ed={parentRelationType:V.FixedReturns,id:Sr.outputs.result.id,type:r.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:ih,required:!0,index:0,parent:Ql},oh={type:r.GenericReference,id:"number-addition-operation-error-parent-ref",entityId:qe.Addition,version:"1",entityType:r.ActionDescriptor},lh={parentRelationType:V.FixedReturns,id:Sr.outputs.error.id,type:r.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:oh},dh={type:r.GenericReference,id:"number-addition-operation-dynamic-summand-argument-type-parent-ref",entityId:Sr.inputs.dynamicSummand.id,version:"1",entityType:r.ValueDescriptor},uh={like:!1,inferred:!1,id:"number-addition-operation-dynamic-summand-argument-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ue,asType:!1,isList:!1,parent:dh},ch={parentRelationType:V.DynamicArgument,id:Sr.inputs.dynamicSummand.id,type:r.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:uh,required:!0,index:2,parent:Ql},Ms={id:qe.Addition,type:r.ActionDescriptor,description:"Sum numbers",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:qe.Addition,inputs:[Kl,Xl,ch],error:lh,outputs:[ed],parent:null},Or=N[r.Operation][qe.Subtraction],ph={type:r.GenericReference,id:"3bd4aeb2-e3b7-4120-b289-011ebb03dba5",entityId:Or.inputs.minuend.id,version:"1",entityType:r.ValueDescriptor},hh={like:!1,inferred:!1,id:"number-subtraction-first-number-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ue,isList:!1,asType:!1,parent:ph},yh={type:r.GenericReference,id:"9f486db2-a983-4293-9eef-81d4fc8d2d3e",entityId:Or.inputs.subtrahend.id,version:"1",entityType:r.ValueDescriptor},fh={like:!1,inferred:!1,id:"1d4abe83-3e87-4f74-99be-c1fd8c2f8d2d",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ue,asType:!1,isList:!1,parent:yh},mh={type:r.GenericReference,id:"da5e9fe9-f18a-49e3-98e5-c1bf7b9b3153",entityId:Or.outputs.result.id,version:"1",entityType:r.ValueDescriptor},Th={like:!1,inferred:!1,id:Or.outputs.result.dataType.id,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ue,asType:!1,isList:!1,parent:mh},td={type:r.GenericReference,id:"a6c14305-d4f7-43ae-9d5e-b7dbacdc830a",entityId:qe.Subtraction,version:"1",entityType:r.ActionDescriptor},vh={id:Or.inputs.minuend.id,type:r.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:hh,required:!0,parentRelationType:V.FixedArguments,index:0,parent:td},Eh={type:r.GenericReference,id:"c5015128-4a65-462c-9da0-1c86e83ef897",entityId:qe.Subtraction,version:"1",entityType:r.ActionDescriptor},Rh={id:Or.inputs.subtrahend.id,type:r.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:fh,required:!0,parentRelationType:V.FixedArguments,index:1,parent:Eh},gh={type:r.GenericReference,id:"caac2bc7-c23c-4f01-9581-a515c2e4637f",entityId:qe.Subtraction,version:"1",entityType:r.ActionDescriptor},bh={parentRelationType:V.FixedReturns,id:Or.outputs.result.id,type:r.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:Th,required:!0,index:0,parent:gh},Ih={type:r.GenericReference,id:"number-subtraction-operation-error-parent-ref",entityId:qe.Subtraction,version:"1",entityType:r.ActionDescriptor},Ah={parentRelationType:V.FixedReturns,id:Or.outputs.error.id,type:r.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:Ih},Dh={type:r.GenericReference,id:"number-subtraction-operation-dynamic-subtrahend-argument-type-parent-ref",entityId:Or.inputs.dynamicSubtrahend.id,version:"1",entityType:r.ValueDescriptor},Ph={like:!1,inferred:!1,id:"number-subtraction-operation-dynamic-subtrahend-argument-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ue,asType:!1,isList:!1,parent:Dh},Sh={id:Or.inputs.dynamicSubtrahend.id,type:r.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:Ph,required:!0,parentRelationType:V.DynamicArgument,index:2,parent:td},rd={id:qe.Subtraction,type:r.ActionDescriptor,description:"Substract numbers",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:qe.Subtraction,inputs:[vh,Rh,Sh],error:Ah,outputs:[bh],parent:null},Oh={[qe.Addition]:Ms,[qe.Subtraction]:rd},dr=N[r.Operation][pe.Join],Vh={type:r.GenericReference,id:"join-strings-first-string-argument-declaration",entityId:dr.inputs.first.id,version:"1",entityType:r.ValueDescriptor},Ch={like:!1,inferred:!1,id:"join-strings-first-string-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:X,asType:!1,isList:!1,parent:Vh},wh={type:r.GenericReference,id:"join-strings-second-string-argument-declaration",entityId:dr.inputs.second.id,version:"1",entityType:r.ValueDescriptor},Bh={like:!1,inferred:!1,id:"join-strings-second-string-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:X,asType:!1,isList:!1,parent:wh},Mh={type:r.GenericReference,id:"join-strings-result-string-return-delaration",entityId:dr.outputs.result.id,version:"1",entityType:r.ValueDescriptor},_h={like:!1,inferred:!1,id:"join-strings-result-string-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:X,asType:!1,isList:!1,parent:Mh},Nh={type:r.GenericReference,id:"join-strings-operation-first-string-argument-parent-ref",entityId:pe.Join,version:"1",entityType:r.ActionDescriptor},_s={id:dr.inputs.first.id,type:r.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:Ch,parentRelationType:V.FixedArguments,required:!0,index:1,parent:Nh},Lh={type:r.GenericReference,id:"join-strings-first-string-argument-declaration",entityId:dr.inputs.first.id,version:"1",entityType:r.ValueDescriptor},Gh={type:r.GenericReference,id:"join-strings-separator-string-data-type-default-value-parent-ref",entityId:dr.inputs.separator.id,version:"1",entityType:r.ValueDescriptor},$h={type:r.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:C.String,value:"",valueAsType:null,autogeneration:null,parent:Gh},Fh={like:!1,inferred:!1,id:"join-strings-separator-string-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:X,asType:!1,isList:!1,parent:Lh},Uh={type:r.GenericReference,id:"join-strings-operation-separator-string-argument-parent-ref",entityId:pe.Join,version:"1",entityType:r.ActionDescriptor},xh={id:dr.inputs.separator.id,type:r.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:$h,dataType:Fh,parentRelationType:V.FixedArguments,required:!1,index:0,parent:Uh},jh={type:r.GenericReference,id:"join-strings-operation-second-string-argument-parent-ref",entityId:pe.Join,version:"1",entityType:r.ActionDescriptor},Ns={id:dr.inputs.second.id,type:r.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:Bh,parentRelationType:V.FixedArguments,required:!0,index:2,parent:jh},kh={type:r.GenericReference,id:"join-strings-operation-result-string-return-parent-ref",entityId:pe.Join,version:"1",entityType:r.ActionDescriptor},Ea={parentRelationType:V.FixedReturns,id:dr.outputs.result.id,type:r.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:_h,required:!0,index:0,parent:kh},Zh={type:r.GenericReference,id:"join-strings-operation-error-parent-ref",entityId:pe.Join,version:"1",entityType:r.ActionDescriptor},qh={parentRelationType:V.FixedReturns,id:dr.outputs.error.id,type:r.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:Zh},Jh={type:r.GenericReference,id:"join-strings-dynamic-string-argument-declaration",entityId:dr.inputs.dynamicString.id,version:"1",entityType:r.ValueDescriptor},Wh={like:!1,inferred:!1,id:"join-strings-dynamic-string-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:X,asType:!1,isList:!1,parent:Jh},Yh={type:r.GenericReference,id:"join-strings-operation-dynamic-string-argument-parent-ref",entityId:pe.Join,version:"1",entityType:r.ActionDescriptor},Hh={id:dr.inputs.dynamicString.id,type:r.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:Wh,parentRelationType:V.DynamicArgument,required:!0,index:3,parent:Yh},Ra={id:pe.Join,type:r.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:pe.Join,description:"Join text values together, to form a single resulting text value.",inputs:[xh,_s,Ns,Hh],outputs:[Ea],error:qh,parent:null},Jr=N[r.Operation][pe.Split],zh={type:r.GenericReference,id:"split-string-string-argument-declaration",entityId:Jr.inputs.stringValue.id,version:"1",entityType:r.ValueDescriptor},Kh={like:!1,inferred:!1,id:"split-string-string-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:X,asType:!1,isList:!1,parent:zh},Xh={type:r.GenericReference,id:"split-string-index-argument-declaration",entityId:Jr.inputs.indexLocation.id,version:"1",entityType:r.ValueDescriptor},Qh={like:!1,inferred:!1,id:"split-string-index-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ue,asType:!1,isList:!1,parent:Xh},ey={type:r.GenericReference,id:"split-string-first-part-result-string-return-delaration",entityId:Jr.outputs.firstPartResult.id,version:"1",entityType:r.ValueDescriptor},ty={like:!1,inferred:!1,id:"split-string-first-part-result-string-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:X,asType:!1,isList:!1,parent:ey},ry={type:r.GenericReference,id:"split-string-second-part-result-string-return-delaration",entityId:Jr.outputs.secondPartResult.id,version:"1",entityType:r.ValueDescriptor},ny={like:!1,inferred:!1,id:"split-string-second-part-result-string-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:X,asType:!1,isList:!1,parent:ry},iy={type:r.GenericReference,id:"split-string-operation-string-argument-parent-ref",entityId:pe.Join,version:"1",entityType:r.ActionDescriptor},ay={id:Jr.inputs.stringValue.id,type:r.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:Kh,parentRelationType:V.FixedArguments,required:!0,index:0,parent:iy},sy={type:r.GenericReference,id:"split-string-operation-index-argument-parent-ref",entityId:pe.Join,version:"1",entityType:r.ActionDescriptor},oy={id:Jr.inputs.indexLocation.id,type:r.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:Qh,parentRelationType:V.FixedArguments,required:!0,index:1,parent:sy},ly={type:r.GenericReference,id:"split-string-operation-second-part-result-string-return-parent-ref",entityId:pe.Join,version:"1",entityType:r.ActionDescriptor},EP={parentRelationType:V.FixedReturns,id:Jr.outputs.secondPartResult.id,type:r.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:ny,required:!0,index:1,parent:ly},dy={type:r.GenericReference,id:"split-string-operation-first-part-result-string-return-parent-ref",entityId:pe.Join,version:"1",entityType:r.ActionDescriptor},uy={parentRelationType:V.FixedReturns,id:Jr.outputs.firstPartResult.id,type:r.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:ty,required:!0,index:0,parent:dy},cy={type:r.GenericReference,id:"split-string-operation-error-parent-ref",entityId:pe.Join,version:"1",entityType:r.ActionDescriptor},py={parentRelationType:V.FixedReturns,id:Jr.outputs.error.id,type:r.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:cy},nd={id:pe.Split,type:r.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:pe.Split,description:"Split a text into two, at the given index location.",inputs:[ay,oy],outputs:[uy],error:py,parent:null},hy={[pe.Join]:Ra,[pe.Split]:nd};var yy=(n=>(n.FirstInputList="join-list-first-list-argument-declaration",n.SecondInputList="join-list-second-list-argument-declaration",n))(yy||{}),fy=(n=>(n.ResultList="join-list-result-list-return-delaration",n.Error="join-list-error-return-delaration",n))(fy||{});const my={type:r.GenericReference,id:"join-list-operation-first-list-argument-ref",entityId:"join-list-first-list-argument-declaration",version:"1",entityType:r.ValueDescriptor},Ty={like:!1,inferred:!1,id:"join-list-first-list-data-type-id",type:r.DataType,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:my},vy={type:r.GenericReference,id:"join-list-operation-second-list-argument-ref",entityId:"join-list-second-list-argument-declaration",version:"1",entityType:r.ValueDescriptor},Ey={like:!1,inferred:!1,id:"join-list-second-list-data-type-id",type:r.DataType,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:vy},Ry={type:r.GenericReference,id:"join-list-operation-result-list-return-ref",entityId:"join-list-result-list-return-delaration",version:"1",entityType:r.ValueDescriptor},gy={like:!1,inferred:!1,id:"join-list-result-list-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:X,asType:!1,isList:!0,parent:Ry},by={type:r.GenericReference,id:"join-list-operation-first-list-argument-parent-ref",entityId:oe.Join,version:"1",entityType:r.ActionDescriptor},Iy={id:"join-list-first-list-argument-declaration",type:r.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:Ty,parentRelationType:V.FixedArguments,required:!0,index:0,parent:by},Ay={type:r.GenericReference,id:"join-list-operation-second-list-argument-parent-ref",entityId:oe.Join,version:"1",entityType:r.ActionDescriptor},Dy={id:"join-list-second-list-argument-declaration",type:r.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:Ey,parentRelationType:V.FixedArguments,required:!0,index:1,parent:Ay},Py={type:r.GenericReference,id:"join-list-operation-result-list-return-parent-ref",entityId:oe.Join,version:"1",entityType:r.ActionDescriptor},Sy={parentRelationType:V.FixedReturns,id:"join-list-result-list-return-delaration",type:r.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:Py},Oy={type:r.GenericReference,id:"join-list-operation-error-parent-ref",entityId:oe.Join,version:"1",entityType:r.ActionDescriptor},Vy={parentRelationType:V.FixedReturns,id:"join-list-error-return-delaration",type:r.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:Oy},id={id:oe.Join,type:r.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:oe.Join,description:"Join two lists together, to form a single resulting list value.",inputs:[Iy,Dy],error:Vy,outputs:[Sy],parent:null};var Cy=(n=>(n.InputList="list-to-split-argument-declaration",n.SplitIndex="split-list-index-argument-declaration",n))(Cy||{}),wy=(n=>(n.FirstOutputList="split-list-first-output-list-return-delaration",n.SecondOutputList="split-list-second-output-list-return-delaration",n.Error="split-list-error-return-delaration",n))(wy||{});const By={type:r.GenericReference,id:"split-list-operation-input-list-argument-ref",entityId:"list-to-split-argument-declaration",version:"1",entityType:r.ValueDescriptor},My={like:!1,inferred:!1,id:"split-list-operation-input-list-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:X,asType:!1,isList:!0,parent:By},_y={type:r.GenericReference,id:"split-list-operation-split-index-argument-ref",entityId:"split-list-index-argument-declaration",version:"1",entityType:r.ValueDescriptor},Ny={like:!1,inferred:!1,id:"split-list-operation-split-index-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ue,asType:!1,isList:!1,parent:_y},ad={type:r.GenericReference,id:"split-list-operation-first-output-list-return-ref",entityId:"split-list-first-output-list-return-delaration",version:"1",entityType:r.ValueDescriptor},Ly={like:!1,inferred:!1,id:"split-list-operation-first-output-list-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:X,asType:!1,isList:!0,parent:ad},Gy={type:r.GenericReference,id:"split-list-operation-input-list-argument-parent-ref",entityId:oe.Split,version:"1",entityType:r.ActionDescriptor},$y={id:"list-to-split-argument-declaration",type:r.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:My,parentRelationType:V.FixedArguments,required:!0,index:0,parent:Gy},Fy={type:r.GenericReference,id:"split-list-operation-split-index-argument-parent-ref",entityId:oe.Split,version:"1",entityType:r.ActionDescriptor},Uy={id:"split-list-index-argument-declaration",type:r.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:Ny,parentRelationType:V.FixedArguments,required:!0,index:1,parent:Fy},xy={type:r.GenericReference,id:"split-list-operation-first-output-list-return-parent-ref",entityId:oe.Split,version:"1",entityType:r.ActionDescriptor},jy={parentRelationType:V.FixedReturns,id:"split-list-first-output-list-return-delaration",type:r.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:Ly,required:!0,index:0,parent:xy},ky={like:!1,inferred:!1,id:"split-list-operation-second-output-list-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:X,asType:!1,isList:!0,parent:ad},Zy={type:r.GenericReference,id:"split-list-operation-second-output-list-return-parent-ref",entityId:oe.Split,version:"1",entityType:r.ActionDescriptor},qy={parentRelationType:V.FixedReturns,id:"split-list-second-output-list-return-delaration",type:r.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:ky,required:!0,index:0,parent:Zy},Jy={type:r.GenericReference,id:"split-list-operation-error-parent-ref",entityId:oe.Split,version:"1",entityType:r.ActionDescriptor},Wy={parentRelationType:V.FixedReturns,id:"split-list-error-return-delaration",type:r.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},sd={id:oe.Split,type:r.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:oe.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:[$y,Uy],outputs:[jy,qy],error:Wy,parent:null};var Yy=(n=>(n.InputList="get-last-in-list-input-list-argument-declaration",n))(Yy||{}),Hy=(n=>(n.OutputElement="get-last-in-list-output-element-return-delaration",n.Error="get-last-in-list-error-return-delaration",n))(Hy||{});const zy={type:r.GenericReference,id:"get-last-in-list-operation-input-list-argument-ref",entityId:"get-last-in-list-input-list-argument-declaration",version:"1",entityType:r.ValueDescriptor},Ky={like:!1,inferred:!1,id:"get-last-in-list-input-list-data-type-id",type:r.DataType,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:zy},Xy={type:r.GenericReference,id:"get-last-in-list-operation-output-element-return-ref",entityId:"get-last-in-list-output-element-return-delaration",version:"1",entityType:r.ValueDescriptor},Qy={like:!1,inferred:!1,id:"get-last-in-list-output-element-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:X,asType:!1,isList:!0,parent:Xy},ef={type:r.GenericReference,id:"get-last-in-list-operation-input-list-argument-parent-ref",entityId:oe.GetLast,version:"1",entityType:r.ActionDescriptor},tf={id:"get-last-in-list-input-list-argument-declaration",type:r.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:Ky,parentRelationType:V.FixedArguments,required:!0,index:0,parent:ef},rf={type:r.GenericReference,id:"get-last-in-list-operation-output-element-return-parent-ref",entityId:oe.GetLast,version:"1",entityType:r.ActionDescriptor},nf={parentRelationType:V.FixedReturns,id:"get-last-in-list-output-element-return-delaration",type:r.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:Qy,required:!0,index:0,parent:rf},af={type:r.GenericReference,id:"get-last-in-list-operation-error-parent-ref",entityId:oe.GetLast,version:"1",entityType:r.ActionDescriptor},sf={parentRelationType:V.FixedReturns,id:"get-last-in-list-error-return-delaration",type:r.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:af},od={id:oe.GetLast,type:r.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:oe.GetLast,description:"Outputs the last element of a given list.",inputs:[tf],outputs:[nf],error:sf,parent:null};var of=(n=>(n.List="append-to-list-lsit-argument-declaration",n.ElementToAppend="append-to-list-element-to-append-argument-declaration",n))(of||{}),lf=(n=>(n.ResultList="append-to-list-result-list-return-delaration",n.Error="append-to-list-error-return-delaration",n))(lf||{});const df={type:r.GenericReference,id:"append-to-list-operation-lsit-argument-ref",entityId:"append-to-list-lsit-argument-declaration",version:"1",entityType:r.ValueDescriptor},uf={like:!1,inferred:!1,id:"append-to-list-lsit-data-type-id",type:r.DataType,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:df},cf={type:r.GenericReference,id:"append-to-list-operation-second-list-argument-ref",entityId:"append-to-list-element-to-append-argument-declaration",version:"1",entityType:r.ValueDescriptor},pf={like:!1,inferred:!1,id:"append-to-list-second-list-data-type-id",type:r.DataType,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:cf},hf={type:r.GenericReference,id:"append-to-list-operation-result-list-return-ref",entityId:"append-to-list-result-list-return-delaration",version:"1",entityType:r.ValueDescriptor},yf={like:!1,inferred:!1,id:"append-to-list-result-list-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:X,asType:!1,isList:!0,parent:hf},ff={type:r.GenericReference,id:"append-to-list-operation-lsit-argument-parent-ref",entityId:oe.Append,version:"1",entityType:r.ActionDescriptor},ld={id:"append-to-list-lsit-argument-declaration",type:r.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:uf,parentRelationType:V.FixedArguments,required:!0,index:0,parent:ff},mf={type:r.GenericReference,id:"append-to-list-operation-second-list-argument-parent-ref",entityId:oe.Append,version:"1",entityType:r.ActionDescriptor},dd={id:"append-to-list-element-to-append-argument-declaration",type:r.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:pf,parentRelationType:V.FixedArguments,required:!0,index:1,parent:mf},Tf={type:r.GenericReference,id:"append-to-list-operation-result-list-return-parent-ref",entityId:oe.Append,version:"1",entityType:r.ActionDescriptor},vf={parentRelationType:V.FixedReturns,id:"append-to-list-result-list-return-delaration",type:r.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:yf,required:!0,index:0,parent:Tf},Ef={type:r.GenericReference,id:"append-to-list-operation-error-parent-ref",entityId:oe.Append,version:"1",entityType:r.ActionDescriptor},Rf={parentRelationType:V.FixedReturns,id:"append-to-list-error-return-delaration",type:r.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:Ef},Ls={id:oe.Append,type:r.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:oe.Append,description:"Adds a given element to the end of a list value.",inputs:[ld,dd],error:Rf,outputs:[vf],parent:null},gf={[oe.Join]:id,[oe.Split]:sd,[oe.GetLast]:od,[oe.Append]:Ls},Oi=N[r.Operation][ke.Parallel],bf={id:"parallel-execution-list-of-functions-blueprint-dynamic-output-id",type:r.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:V.DynamicArgument},If={id:"parallel-execution-list-of-functions-blueprint-dynamic-input-id",type:r.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:V.DynamicArgument},Af={id:"parallel-execution-list-of-functions-blueprint-id",type:r.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:[If],outputs:[bf],error:null,parent:null},Df={type:r.GenericReference,id:"3bd4aeb2-e3b7-4120-b289-011ebb03dba5",entityId:Oi.inputs.listOfActions.id,version:"1",entityType:r.ValueDescriptor},Pf={like:!1,inferred:!1,id:"parallel-execution-list-of-functions-argument-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Af,asType:!1,isList:!0,parent:Df},Sf={type:r.GenericReference,id:"da5e9fe9-f18a-49e3-98e5-c1bf7b9b3153",entityId:Oi.outputs.results.id,version:"1",entityType:r.ValueDescriptor},Of={like:!1,inferred:!1,id:Oi.outputs.results.dataType.id,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ue,asType:!1,isList:!0,parent:Sf},Vf={type:r.GenericReference,id:"a6c14305-d4f7-43ae-9d5e-b7dbacdc830a",entityId:ke.Parallel,version:"1",entityType:r.ActionDescriptor},ud={id:Oi.inputs.listOfActions.id,type:r.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:Pf,defaultValue:null,required:!0,index:0,parent:Vf,parentRelationType:V.FixedArguments},Cf={type:r.GenericReference,id:"caac2bc7-c23c-4f01-9581-a515c2e4637f",entityId:ke.Parallel,version:"1",entityType:r.ActionDescriptor},cd={id:Oi.outputs.results.id,type:r.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:Of,defaultValue:null,required:!0,index:0,parent:Cf,parentRelationType:V.FixedReturns},wf={type:r.GenericReference,id:"parallel-execution-operation-error-parent-ref",entityId:ke.Parallel,version:"1",entityType:r.ActionDescriptor},Bf={id:Oi.outputs.error.id,type:r.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:wf,parentRelationType:V.ReturnedError},Tr={id:ke.Parallel,type:r.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:[ud],outputs:[cd],error:Bf,parent:null};var Mf=(n=>(n.MillisecondsNumber="wait-milliseconds-number-argument-declaration",n))(Mf||{}),_f=(n=>(n.Error="wait-operation-error-return-delaration",n))(_f||{});const Nf={type:r.GenericReference,id:"3bd4aeb2-e3b7-4120-b289-011ebb03dba5",version:"1",entityType:r.ValueDescriptor,entityId:"wait-milliseconds-number-argument-declaration"},Lf={like:!1,inferred:!1,id:"wait-milliseconds-number-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ue,isList:!1,asType:!1,parent:Nf},Gf={type:r.GenericReference,id:"a6c14305-d4f7-43ae-9d5e-b7dbacdc830a",version:"1",entityType:r.ActionDescriptor,entityId:ke.Wait},Bn={id:"wait-milliseconds-number-argument-declaration",type:r.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:Lf,required:!0,index:0,parent:Gf,parentRelationType:V.FixedArguments},$f={type:r.GenericReference,id:"wait-operation-error-parent-ref",entityId:ke.Wait,version:"1",entityType:r.ActionDescriptor},Ff={id:"wait-operation-error-return-delaration",type:r.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:$f,parentRelationType:V.ReturnedError},Lt={id:ke.Wait,type:r.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:[Bn],outputs:[],error:Ff,parent:null};var Uf=(n=>(n.ListOfFunctions="sequential-execution-list-of-functions-argument-declaration",n))(Uf||{}),xf=(n=>(n.ListOfExecutionResults="sequential-execution-result-return-delaration",n.Error="sequential-execution-error-return-delaration",n))(xf||{});const jf={id:"sequential-execution-list-of-functions-blueprint-dynamic-output-id",type:r.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:V.DynamicArgument},kf={id:"sequential-execution-list-of-functions-blueprint-dynamic-input-id",type:r.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:V.DynamicArgument},Zf={id:"sequential-execution-list-of-functions-blueprint-id",type:r.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:[kf],outputs:[jf],error:null,parent:null},qf={type:r.GenericReference,id:"parallel-execution-list-of-functions-argument-declaration-id",entityId:"sequential-execution-list-of-functions-argument-declaration",version:"1",entityType:r.ValueDescriptor},Jf={like:!1,inferred:!1,id:"sequential-execution-list-of-functions-argument-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Zf,asType:!1,isList:!0,parent:qf},Wf={type:r.GenericReference,id:"sequential-execution-list-of-execution-results-return-declaration-id",entityId:"sequential-execution-result-return-delaration",version:"1",entityType:r.ValueDescriptor},Yf={like:!1,inferred:!1,id:"sequential-execution-list-of-execution-results-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ue,asType:!1,isList:!0,parent:Wf},Hf={type:r.GenericReference,id:"parallel-execution-operation-list-of-functions-argument-parent-ref",entityId:ke.Sequential,version:"1",entityType:r.ActionDescriptor},pd={id:"sequential-execution-list-of-functions-argument-declaration",type:r.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:Jf,required:!0,index:0,parent:Hf,parentRelationType:V.FixedArguments},zf={type:r.GenericReference,id:"parallel-execution-operation-list-of-execution-results-return-parent-ref",entityId:ke.Sequential,version:"1",entityType:r.ActionDescriptor},hd={id:"sequential-execution-result-return-delaration",type:r.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:Yf,required:!0,index:0,parent:zf,parentRelationType:V.FixedReturns},Kf={type:r.GenericReference,id:"sequential-execution-operation-error-parent-ref",entityId:ke.Sequential,version:"1",entityType:r.ActionDescriptor},Xf={id:"sequential-execution-error-return-delaration",type:r.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:Kf,parentRelationType:V.ReturnedError},Wr={id:ke.Sequential,type:r.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:[pd],outputs:[hd],error:Xf,parent:null},Qf={[ke.Parallel]:Tr,[ke.Wait]:Lt,[ke.Sequential]:Wr};var em=(n=>(n.EntityToInstanciate="entity-to-instanciate-argument-declaration",n.NewEntityData="new-entity-data-argument-declaration",n))(em||{}),tm=(n=>(n.Error="create-new-instance-error-return-delaration",n))(tm||{});const rm={type:r.GenericReference,id:"new-entity-data-argument-declaration-parent-ref",entityId:Ze.CreateNewInstance,version:"1",entityType:r.ActionDescriptor},nm={type:r.GenericReference,id:"new-entity-data-argument-data-type-parent-ref",entityId:"new-entity-data-argument-declaration",version:"1",entityType:r.ValueDescriptor},im={like:!1,inferred:!1,id:"new-entity-data-argument-data-type-id",type:r.DataType,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:nm},am={id:"new-entity-data-argument-declaration",type:r.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:im,required:!0,defaultValue:null,parentRelationType:V.FixedArguments,index:1,parent:rm},sm={type:r.GenericReference,id:"entity-to-instanciate-argument-declaration-ref",version:"1",entityType:r.ValueDescriptor,entityId:"entity-to-instanciate-argument-declaration"},om={like:!1,inferred:!1,id:"entity-to-instanciate-data-type-id",type:r.DataType,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:sm},lm={type:r.GenericReference,id:"create-new-instance-operation-ref",version:"1",entityType:r.ActionDescriptor,entityId:Ze.CreateNewInstance},dm={id:"entity-to-instanciate-argument-declaration",type:r.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:om,required:!0,parentRelationType:V.FixedArguments,index:0,parent:lm},um={type:r.GenericReference,id:"create-new-instance-output-entity-declaration-parent-ref",entityId:Ze.CreateNewInstance,version:"1",entityType:r.ActionDescriptor},cm={parentRelationType:V.FixedReturns,id:"create-new-instance-output-entity-declaration",type:r.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:um,required:!0,index:0},pm={type:r.GenericReference,id:"create-new-instance-error-parent-ref",entityId:Ze.CreateNewInstance,version:"1",entityType:r.ActionDescriptor},hm={parentRelationType:V.FixedReturns,id:"create-new-instance-error-return-delaration",type:r.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:pm},Mn={id:Ze.CreateNewInstance,type:r.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:Ze.CreateNewInstance,inputs:[dm,am],outputs:[cm],error:hm,parent:null},Vi=N[r.Operation][Ze.Validate],ym={type:r.GenericReference,id:"validate-data-operation-data-to-validate-argument-declaration-ref",version:"1",entityType:r.ValueDescriptor,entityId:Vi.inputs.dataToValidate.id},fm={like:!1,inferred:!1,id:"validate-data-operation-data-to-validate-data-type-id",type:r.DataType,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:ym},mm={type:r.GenericReference,id:"validate-data-operation-data-to-validate-argument-parent-ref",version:"1",entityType:r.ActionDescriptor,entityId:Ze.Validate},Tm={id:Vi.inputs.dataToValidate.id,type:r.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:fm,required:!0,parentRelationType:V.FixedArguments,index:0,parent:mm},vm={type:r.GenericReference,id:"validate-data-operation-entity-to-match-type-argument-declaration-ref",version:"1",entityType:r.ValueDescriptor,entityId:Vi.inputs.entityToMatch.id},Em={like:!1,inferred:!1,id:"validate-data-operation-entity-to-match-type-data-type-id",type:r.DataType,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:vm},Rm={type:r.GenericReference,id:"validate-data-operation-entity-to-match-type-argument-parent-ref",version:"1",entityType:r.ActionDescriptor,entityId:Ze.Validate},gm={id:Vi.inputs.entityToMatch.id,type:r.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:Em,defaultValue:null,required:!0,index:0,parentRelationType:V.FixedArguments,parent:Rm},bm={type:r.GenericReference,id:"validate-data-operation-output-entity-declaration-parent-ref",entityId:Ze.Validate,version:"1",entityType:r.ActionDescriptor},Im={id:Vi.outputs.outputEntity.id,type:r.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:bm,required:!0,index:0,parentRelationType:V.FixedReturns},Am={type:r.GenericReference,id:"wait-operation-error-parent-ref",entityId:Ze.Validate,version:"1",entityType:r.ActionDescriptor},Dm={id:Vi.outputs.error.id,type:r.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:Am,parentRelationType:V.ReturnedError},_n={id:Ze.Validate,type:r.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:Ze.Validate,inputs:[gm,Tm],outputs:[Im],error:Dm,parent:null},Pm={[Ze.CreateNewInstance]:Mn,[Ze.Validate]:_n},pt=N[r.Operation]["base-http-request"],Sm={type:r.GenericReference,id:"d87cf943-57e1-4d19-9f05-190fa8c8ebc4",version:"1",entityType:r.ValueDescriptor,entityId:pt.inputs.url.id},Om={id:"http-request-url-default-value-id",type:r.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:"https://some-url.com",name:C.String,valueAsType:null,parent:Sm,autogeneration:null},Vm={type:r.GenericReference,id:"aed50d73-eab5-42ce-b00e-7f5c45a9026f",entityId:pt.inputs.url.id,version:"1",entityType:r.ValueDescriptor},Cm={like:!1,inferred:!1,id:"0deb4ef7-d739-4ddc-a4d6-50bd6fababe3",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:X,asType:!1,isList:!1,parent:Vm},wm={type:r.GenericReference,id:"c3145af6-3387-464a-8887-272e483c856d",entityId:pt.inputs.query.id,version:"1",entityType:r.ValueDescriptor},Bm={like:!1,inferred:!1,id:"2a5ba737-6335-4cc4-a2c0-16dca4052fac",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:X,asType:!1,isList:!1,parent:wm},Mm={type:r.GenericReference,id:"075556b7-e468-48f7-8485-7159eaf389b2",version:"1",entityType:r.ValueDescriptor,entityId:pt.inputs.method.id},_m={id:"http-request-method-default-value-id",type:r.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:"GET",name:C.Enum,valueAsType:null,parent:Mm,autogeneration:null},Nm={type:r.GenericReference,id:"aed647c8-a1b5-4cfc-9a3d-97887a567a80",entityId:pt.inputs.method.id,version:"1",entityType:r.ValueDescriptor},Lm={like:!1,inferred:!1,id:"6df7ec2b-5dbd-44af-896b-17b314e88560",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Zr,isList:!1,asType:!1,options:["GET","POST","PUT","DELETE","PATCH","OPTIONS","HEAD","TRACE","CONNECT","CUSTOM"],parent:Nm},Gm={type:r.GenericReference,id:"77203dfa-d2f6-4804-9556-e1cce46228f3",entityId:pt.inputs.headers.id,version:"1",entityType:r.ValueDescriptor},$m={like:!1,inferred:!1,id:"2c8a2a07-69c6-40ad-b5c9-f0dc4d5955ce",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:vt,asType:!1,isList:!1,parent:Gm},Fm={type:r.GenericReference,id:"03db68a0-7ab6-4c6a-85b6-f4b95ebb53ff",entityId:pt.inputs.body.id,version:"1",entityType:r.ValueDescriptor},Um={like:!1,inferred:!1,id:"0397876c-ed54-4ee9-85a4-04fd16dad973",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:vt,asType:!1,isList:!1,parent:Fm},xm={type:r.GenericReference,id:"182f767f-50e8-4394-ba5f-43e78c232733",version:"1",entityType:r.ValueDescriptor,entityId:pt.outputs.code.id},jm={like:!1,inferred:!1,id:"45e6d0bc-0c0e-4059-a7a1-6bee925d73d0",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ue,asType:!1,isList:!1,parent:xm},km={type:r.GenericReference,id:"2baaa53a-9aef-4bd1-b06d-967c17b7b627",version:"1",entityType:r.ValueDescriptor,entityId:pt.outputs.headers.id},Zm={type:r.GenericReference,id:"69f34d6c-c686-4165-b6ff-70dae8e1778b",version:"1",entityType:r.ValueDescriptor,entityId:pt.outputs.headers.id},qm={like:!1,inferred:!1,id:"dac63bfa-640d-4f4e-ba0f-86c2401bcfbe",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:vt,isList:!1,asType:!1,parent:Zm},Jm={type:r.GenericReference,id:"744334e0-5135-4214-85d0-809437cb620b",version:"1",entityType:r.ValueDescriptor,entityId:pt.outputs.body.id},Wm={type:r.GenericReference,id:"0e0e20df-1a46-432c-ba01-fd96508a6a61",version:"1",entityType:r.ValueDescriptor,entityId:pt.outputs.body.id},Ym={like:!1,inferred:!1,id:"05fc1a5d-151a-479a-9c4e-4063f3456177",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:vt,isList:!1,asType:!1,parent:Wm},Hm={type:r.GenericReference,id:"26911792-f707-4bf1-b6f7-03d04a84232c",version:"1",entityType:r.ActionDescriptor,entityId:Dt.HttpRequest},Gs={id:pt.inputs.method.id,type:r.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:_m,dataType:Lm,required:!1,index:0,parentRelationType:V.FixedArguments,parent:Hm},zm={type:r.GenericReference,id:"eee0c501-0ae6-4448-b914-aada76d63163",version:"1",entityType:r.ActionDescriptor,entityId:Dt.HttpRequest},$s={id:pt.inputs.url.id,type:r.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:Cm,defaultValue:Om,required:!1,index:1,parentRelationType:V.FixedArguments,parent:zm},Km={type:r.GenericReference,id:"670091a4-21b1-4223-ad4c-b6dada0aec49",version:"1",entityType:r.ActionDescriptor,entityId:Dt.HttpRequest},yd={id:pt.inputs.query.id,type:r.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:Bm,required:!1,index:2,parentRelationType:V.FixedArguments,parent:Km},Xm={type:r.GenericReference,id:"85aad3eb-22fe-45f9-b68c-1dc7061f41e0",version:"1",entityType:r.ActionDescriptor,entityId:Dt.HttpRequest},Fs={id:pt.inputs.headers.id,type:r.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:$m,required:!1,index:3,parent:Xm,parentRelationType:V.FixedArguments},Qm={type:r.GenericReference,id:"c3e2a4af-9b84-4574-8b30-5044ffc51776",version:"1",entityType:r.ActionDescriptor,entityId:Dt.HttpRequest},Us={id:pt.inputs.body.id,type:r.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:Um,defaultValue:null,required:!1,index:4,parentRelationType:V.FixedArguments,parent:Qm},e0={type:r.GenericReference,id:"92e04dc7-2145-4a31-908e-03810f7235e8",version:"1",entityType:r.ActionDescriptor,entityId:Dt.HttpRequest},xs={id:pt.outputs.code.id,type:r.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:jm,required:!0,index:0,parentRelationType:V.FixedReturns,parent:e0},t0={type:r.GenericReference,id:"86aca556-bbf1-4679-9909-31db61b288e2",version:"1",entityType:r.ActionDescriptor,entityId:Dt.HttpRequest},js={parentRelationType:V.FixedReturns,id:pt.outputs.headers.id,type:r.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:r.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:{},name:C.KeyValue,parent:km,valueAsType:null,autogeneration:null},dataType:qm,required:!0,index:1,parent:t0},r0={type:r.GenericReference,id:"ccf3d1be-04e4-4d03-99fd-5bc1e1919f90",version:"1",entityType:r.ActionDescriptor,entityId:Dt.HttpRequest},ks={id:pt.outputs.body.id,type:r.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:V.FixedReturns,dataType:Ym,defaultValue:{id:"http-response-body-default-value-id",type:r.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:{},name:C.KeyValue,parent:Jm,valueAsType:null,autogeneration:null},required:!0,index:2,parent:r0},n0={type:r.GenericReference,id:"21487ffc-82b9-473d-bc19-6e7d7c480ed7",version:"1",entityType:r.ActionDescriptor,entityId:Dt.HttpRequest},i0={type:r.GenericReference,id:"ad69861b-32f7-4461-b7f7-aa84a82578d9",version:"1",entityType:r.ValueDescriptor,entityId:pt.outputs.error.id},a0={like:!1,inferred:!1,id:"5da68b15-57bc-40c1-b79f-a9075e0f22c1",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:vt,isList:!1,asType:!1,parent:i0},fd={parentRelationType:V.ReturnedError,id:pt.outputs.error.id,type:r.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:a0,required:!0,index:0,parent:n0},ga={type:r.ActionDescriptor,id:Dt.HttpRequest,name:Dt.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:[Gs,$s,yd,Fs,Us],outputs:[xs,js,ks],error:fd,parent:null},s0={[Dt.HttpRequest]:ga},o0={...hy,...Oh,...gf,...Qf,...Pm,...s0},l0=Object.values(o0),RP=N[r.Loop]["manual-flow-loop"],d0={id:"manual-flow-loop-dynamic-return-declaration-parent-ref-id",type:r.GenericReference,entityId:q.ManualFlow,version:"1",entityType:r.ActionDescriptor},u0={id:RP.outputs.results.id,type:r.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:d0,parentRelationType:V.DynamicReturn},Zs={id:q.ManualFlow,type:r.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:[u0],error:null,parent:null},ba=N[r.Loop]["manual-flow-loop"],c0={id:"manual-flow-loop-current-iteration-number-declaration-data-type-parent-ref-id",type:r.GenericReference,entityId:"manual-flow-loop-current-iteration-number-declaration-id",version:"1",entityType:r.ValueDescriptor},p0={like:!1,inferred:!1,id:"manual-flow-loop-current-iteration-number-declaration-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,entity:ue,asType:!1,parent:c0},h0={id:"manual-flow-loop-current-iteration-number-declaration-parent-ref-id",type:r.GenericReference,entityId:ba.body.id,version:"1",entityType:r.ActionDescriptor},md={id:ba.body.inputs.iterationNumber.id,type:r.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:p0,required:!0,index:0,parentRelationType:V.FixedArguments,parent:h0},y0={id:"manual-flow-loop-body-any-dynamic-argument-parent-ref-id",type:r.GenericReference,entityId:ba.body.id,version:"1",entityType:r.ActionDescriptor},f0={id:"manual-flow-loop-body-any-dynamic-argument-id",type:r.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:V.DynamicArgument,parent:y0},m0={id:"manual-flow-loop-body-any-dynamic-return-parent-ref-id",type:r.GenericReference,entityId:ba.body.id,version:"1",entityType:r.ActionDescriptor},T0={id:"manual-flow-loop-body-any-dynamic-return-id",type:r.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:V.DynamicReturn,parent:m0},qs={id:ba.body.id,type:r.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:[md,f0],outputs:[T0],error:null,parent:null},v0=N[r.Loop]["string-loop"],E0={id:"iterate-over-string-loop-string-argument-declaration-data-type-parent-ref-id",type:r.GenericReference,entityId:"iterate-over-string-loop-string-argument-declaration-id",version:"1",entityType:r.ValueDescriptor},R0={like:!1,inferred:!1,id:"iterate-over-string-loop-string-argument-declaration-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,entity:X,asType:!1,parent:E0},g0={id:"iterate-over-string-loop-string-argument-declaration-parent-ref-id",type:r.GenericReference,entityId:q.String,version:"1",entityType:r.ActionDescriptor},b0={id:v0.inputs.string.id,type:r.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:R0,index:0,parent:g0,parentRelationType:V.FixedArguments},I0={id:"iterate-over-string-loop-dynamic-return-declaration-parent-ref-id",type:r.GenericReference,entityId:q.String,version:"1",entityType:r.ActionDescriptor},A0={id:v0.outputs.results.id,type:r.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:I0,parentRelationType:V.DynamicReturn},Ia={id:q.String,type:r.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:[b0],outputs:[A0],error:null,parent:null},Nn=N[r.Loop]["string-loop"],D0={id:"iterate-over-string-loop-body-current-value-declaration-data-type-parent-ref-id",type:r.GenericReference,entityId:"iterate-over-string-loop-body-current-value-declaration-id",version:"1",entityType:r.ValueDescriptor},P0={like:!1,inferred:!1,id:"iterate-over-string-loop-body-current-value-declaration-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,entity:X,asType:!1,parent:D0},S0={id:"iterate-over-string-loop-body-current-value-declaration-parent-ref-id",type:r.GenericReference,entityId:Nn.body.id,version:"1",entityType:r.ActionDescriptor},Td={id:Nn.body.inputs.currentValue.id,type:r.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:P0,required:!0,index:1,parentRelationType:V.FixedArguments,parent:S0},O0={id:"iterate-over-string-loop-body-current-iteration-number-declaration-data-type-parent-ref-id",type:r.GenericReference,entityId:"iterate-over-string-loop-body-current-iteration-number-declaration-id",version:"1",entityType:r.ValueDescriptor},V0={like:!1,inferred:!1,id:"iterate-over-string-loop-body-current-iteration-number-declaration-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,entity:ue,asType:!1,parent:O0},C0={id:"iterate-over-string-loop-body-current-iteration-number-declaration-parent-ref-id",type:r.GenericReference,entityId:Nn.body.id,version:"1",entityType:r.ActionDescriptor},vd={id:Nn.body.inputs.iterationNumber.id,type:r.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:V0,required:!0,index:0,parentRelationType:V.FixedArguments,parent:C0},w0={id:"iterate-over-string-loop-body-any-dynamic-argument-parent-ref-id",type:r.GenericReference,entityId:Nn.body.id,version:"1",entityType:r.ActionDescriptor},B0={id:"iterate-over-string-loop-body-any-dynamic-argument-id",type:r.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:V.DynamicArgument,parent:w0},M0={id:"iterate-over-string-loop-body-any-dynamic-return-parent-ref-id",type:r.GenericReference,entityId:Nn.body.id,version:"1",entityType:r.ActionDescriptor},_0={id:"iterate-over-string-loop-body-any-dynamic-return-id",type:r.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:V.DynamicReturn,parent:M0},Js={id:Nn.body.id,type:r.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:[vd,Td,B0],outputs:[_0],error:null,parent:null},N0=N[r.Loop]["list-loop"],L0={id:"iterate-over-list-loop-list-argument-declaration-data-type-parent-ref-id",type:r.GenericReference,entityId:"iterate-over-list-loop-list-argument-declaration-id",version:"1",entityType:r.ValueDescriptor},G0={like:!1,inferred:!1,id:"iterate-over-list-loop-list-argument-declaration-data-type-id",type:r.DataType,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:L0},$0={id:"iterate-over-list-loop-list-argument-declaration-parent-ref-id",type:r.GenericReference,entityId:q.List,version:"1",entityType:r.ActionDescriptor},F0={id:N0.inputs.list.id,type:r.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:G0,index:0,parent:$0,parentRelationType:V.FixedArguments},U0={id:"iterate-over-list-loop-dynamic-return-declaration-parent-ref-id",type:r.GenericReference,entityId:q.List,version:"1",entityType:r.ActionDescriptor},x0={id:N0.outputs.results.id,type:r.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:U0,parentRelationType:V.DynamicReturn},cn={id:q.List,type:r.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:[F0],outputs:[x0],error:null,parent:null},Ln=N[r.Loop]["list-loop"],j0={id:"iterate-over-list-loop-body-current-value-declaration-data-type-parent-ref-id",type:r.GenericReference,entityId:"iterate-over-list-loop-body-current-value-declaration-id",version:"1",entityType:r.ValueDescriptor},k0={like:!1,inferred:!1,id:"iterate-over-list-loop-body-current-value-declaration-data-type-id",type:r.DataType,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:j0},Z0={id:"iterate-over-list-loop-body-current-value-declaration-parent-ref-id",type:r.GenericReference,entityId:Ln.body.id,version:"1",entityType:r.ActionDescriptor},Ws={id:Ln.body.inputs.currentValue.id,type:r.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:k0,required:!0,index:1,parentRelationType:V.FixedArguments,parent:Z0},q0={id:"iterate-over-list-loop-body-current-iteration-number-declaration-data-type-parent-ref-id",type:r.GenericReference,entityId:"iterate-over-list-loop-body-current-iteration-number-declaration-id",version:"1",entityType:r.ValueDescriptor},J0={like:!1,inferred:!1,id:"iterate-over-list-loop-body-current-iteration-number-declaration-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,entity:ue,asType:!1,parent:q0},W0={id:"iterate-over-list-loop-body-current-iteration-number-declaration-parent-ref-id",type:r.GenericReference,entityId:Ln.body.id,version:"1",entityType:r.ActionDescriptor},Y0={id:Ln.body.inputs.iterationNumber.id,type:r.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:J0,required:!0,index:0,parentRelationType:V.FixedArguments,parent:W0},H0={id:"iterate-over-list-loop-body-any-dynamic-argument-parent-ref-id",type:r.GenericReference,entityId:Ln.body.id,version:"1",entityType:r.ActionDescriptor},z0={id:"iterate-over-list-loop-body-any-dynamic-argument-id",type:r.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:V.DynamicArgument,parent:H0},K0={id:"iterate-over-list-loop-body-any-dynamic-return-parent-ref-id",type:r.GenericReference,entityId:Ln.body.id,version:"1",entityType:r.ActionDescriptor},X0={id:"iterate-over-list-loop-body-any-dynamic-return-id",type:r.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:V.DynamicReturn,parent:K0},Aa={id:Ln.body.id,type:r.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:[Y0,Ws,z0],outputs:[X0],error:null,parent:null},Q0=N[r.Loop]["object-keys-loop"],eT={id:"iterate-over-object-keys-loop-object-argument-declaration-data-type-parent-ref-id",type:r.GenericReference,entityId:"iterate-over-object-keys-loop-object-argument-declaration-id",version:"1",entityType:r.ValueDescriptor},tT={like:!1,inferred:!1,id:"iterate-over-object-keys-loop-object-argument-declaration-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,entity:vt,asType:!1,parent:eT},rT={id:"iterate-over-object-keys-loop-object-argument-declaration-parent-ref-id",type:r.GenericReference,entityId:q.ObjectKeys,version:"1",entityType:r.ActionDescriptor},nT={id:Q0.inputs.object.id,type:r.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:tT,index:0,parent:rT,parentRelationType:V.FixedArguments},iT={id:"iterate-over-object-keys-loop-dynamic-return-declaration-parent-ref-id",type:r.GenericReference,entityId:q.ObjectKeys,version:"1",entityType:r.ActionDescriptor},aT={id:Q0.outputs.results.id,type:r.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:iT,parentRelationType:V.DynamicReturn},Ci={id:q.ObjectKeys,type:r.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:[nT],outputs:[aT],error:null,parent:null},Gn=N[r.Loop]["object-keys-loop"],sT={id:"iterate-over-object-keys-loop-body-current-value-declaration-data-type-parent-ref-id",type:r.GenericReference,entityId:"iterate-over-object-keys-loop-body-current-value-declaration-id",version:"1",entityType:r.ValueDescriptor},oT={like:!1,inferred:!1,id:"iterate-over-object-keys-loop-body-current-value-declaration-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,entity:X,asType:!1,parent:sT},lT={id:"iterate-over-object-keys-loop-body-current-value-declaration-parent-ref-id",type:r.GenericReference,entityId:Gn.body.id,version:"1",entityType:r.ActionDescriptor},Ed={id:Gn.body.inputs.currentValue.id,type:r.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:oT,required:!0,index:1,parentRelationType:V.FixedArguments,parent:lT},dT={id:"iterate-over-object-keys-loop-body-current-iteration-number-declaration-data-type-parent-ref-id",type:r.GenericReference,entityId:"iterate-over-object-keys-loop-body-current-iteration-number-declaration-id",version:"1",entityType:r.ValueDescriptor},uT={like:!1,inferred:!1,id:"iterate-over-object-keys-loop-body-current-iteration-number-declaration-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,entity:ue,asType:!1,parent:dT},cT={id:"iterate-over-object-keys-loop-body-current-iteration-number-declaration-parent-ref-id",type:r.GenericReference,entityId:Gn.body.id,version:"1",entityType:r.ActionDescriptor},pT={id:Gn.body.inputs.iterationNumber.id,type:r.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:uT,required:!0,index:0,parentRelationType:V.FixedArguments,parent:cT},hT={id:"iterate-over-object-keys-loop-body-any-dynamic-argument-parent-ref-id",type:r.GenericReference,entityId:Gn.body.id,version:"1",entityType:r.ActionDescriptor},yT={id:"iterate-over-object-keys-loop-body-any-dynamic-argument-id",type:r.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:V.DynamicArgument,parent:hT},fT={id:"iterate-over-object-keys-loop-body-any-dynamic-return-parent-ref-id",type:r.GenericReference,entityId:Gn.body.id,version:"1",entityType:r.ActionDescriptor},mT={id:"iterate-over-object-keys-loop-body-any-dynamic-return-id",type:r.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:V.DynamicReturn,parent:fT},Rd={id:Gn.body.id,type:r.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:[pT,Ed,yT],outputs:[mT],error:null,parent:null},TT=N[r.Loop]["object-values-loop"],vT={id:"iterate-over-object-values-loop-object-argument-declaration-data-type-parent-ref-id",type:r.GenericReference,entityId:"iterate-over-object-values-loop-object-argument-declaration-id",version:"1",entityType:r.ValueDescriptor},ET={like:!1,inferred:!1,id:"iterate-over-object-values-loop-object-argument-declaration-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,entity:vt,asType:!1,parent:vT},RT={id:"iterate-over-object-values-loop-object-argument-declaration-parent-ref-id",type:r.GenericReference,entityId:q.ObjectValues,version:"1",entityType:r.ActionDescriptor},gT={id:TT.inputs.object.id,type:r.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:ET,index:0,parent:RT,parentRelationType:V.FixedArguments},bT={id:"iterate-over-object-values-loop-dynamic-return-declaration-parent-ref-id",type:r.GenericReference,entityId:q.ObjectValues,version:"1",entityType:r.ActionDescriptor},IT={id:TT.outputs.results.id,type:r.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:bT,parentRelationType:V.DynamicReturn},wi={id:q.ObjectValues,type:r.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:[gT],outputs:[IT],error:null,parent:null},$n=N[r.Loop]["object-values-loop"],AT={id:"iterate-over-object-values-loop-body-current-value-declaration-data-type-parent-ref-id",type:r.GenericReference,entityId:"iterate-over-object-values-loop-body-current-value-declaration-id",version:"1",entityType:r.ValueDescriptor},DT={id:"iterate-over-object-values-loop-body-current-value-declaration-data-type-id",type:r.DataType,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:AT},PT={id:"iterate-over-object-values-loop-body-current-value-declaration-parent-ref-id",type:r.GenericReference,entityId:$n.body.id,version:"1",entityType:r.ActionDescriptor},gd={id:$n.body.inputs.currentValue.id,type:r.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:DT,required:!0,index:1,parentRelationType:V.FixedArguments,parent:PT},ST={id:"iterate-over-object-values-loop-body-current-iteration-number-declaration-data-type-parent-ref-id",type:r.GenericReference,entityId:"iterate-over-object-values-loop-body-current-iteration-number-declaration-id",version:"1",entityType:r.ValueDescriptor},OT={like:!1,inferred:!1,id:"iterate-over-object-values-loop-body-current-iteration-number-declaration-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,entity:ue,asType:!1,parent:ST},VT={id:"iterate-over-object-values-loop-body-current-iteration-number-declaration-parent-ref-id",type:r.GenericReference,entityId:$n.body.id,version:"1",entityType:r.ActionDescriptor},CT={id:$n.body.inputs.iterationNumber.id,type:r.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:OT,required:!0,index:0,parentRelationType:V.FixedArguments,parent:VT},wT={id:"iterate-over-object-values-loop-body-any-dynamic-argument-parent-ref-id",type:r.GenericReference,entityId:$n.body.id,version:"1",entityType:r.ActionDescriptor},BT={id:"iterate-over-object-values-loop-body-any-dynamic-argument-id",type:r.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:V.DynamicArgument,parent:wT},MT={id:"iterate-over-object-values-loop-body-any-dynamic-return-parent-ref-id",type:r.GenericReference,entityId:$n.body.id,version:"1",entityType:r.ActionDescriptor},_T={id:"iterate-over-object-values-loop-body-any-dynamic-return-id",type:r.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:V.DynamicReturn,parent:MT},bd={id:$n.body.id,type:r.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:[CT,gd,BT],outputs:[_T],error:null,parent:null},Id=N[r.Loop]["counted-loop"],NT={id:"counted-loop-string-argument-declaration-data-type-default-value-parent-ref-id",type:r.GenericReference,entityId:Id.inputs.number.id,version:"1",entityType:r.ValueDescriptor},LT={id:"counted-loop-string-argument-declaration-data-type-default-value-id",type:r.LiteralValue,name:C.Number,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:5,valueAsType:null,autogeneration:null,parent:NT},GT={id:"counted-loop-string-argument-declaration-data-type-parent-ref-id",type:r.GenericReference,entityId:"counted-loop-string-argument-declaration-id",version:"1",entityType:r.ValueDescriptor},$T={like:!1,inferred:!1,id:"counted-loop-string-argument-declaration-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,entity:ue,asType:!1,parent:GT},FT={id:"counted-loop-string-argument-declaration-parent-ref-id",type:r.GenericReference,entityId:q.Counted,version:"1",entityType:r.ActionDescriptor},UT={id:Id.inputs.number.id,type:r.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:$T,defaultValue:LT,index:0,parent:FT,parentRelationType:V.FixedArguments},xT={id:"counted-loop-dynamic-return-declaration-parent-ref-id",type:r.GenericReference,entityId:q.Counted,version:"1",entityType:r.ActionDescriptor},jT={id:Id.outputs.results.id,type:r.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:xT,parentRelationType:V.DynamicReturn},Da={id:q.Counted,type:r.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:[UT],outputs:[jT],error:null,parent:null},Pa=N[r.Loop]["counted-loop"],kT={id:"counted-loop-body-current-iteration-number-declaration-data-type-parent-ref-id",type:r.GenericReference,entityId:"counted-loop-body-current-iteration-number-declaration-id",version:"1",entityType:r.ValueDescriptor},ZT={like:!1,inferred:!1,id:"counted-loop-body-current-iteration-number-declaration-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,entity:ue,asType:!1,parent:kT},qT={id:"counted-loop-body-current-iteration-number-declaration-parent-ref-id",type:r.GenericReference,entityId:Pa.body.id,version:"1",entityType:r.ActionDescriptor},Ad={id:Pa.body.inputs.iterationNumber.id,type:r.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:ZT,required:!0,index:0,parentRelationType:V.FixedArguments,parent:qT},JT={id:"counted-loop-body-any-dynamic-argument-parent-ref-id",type:r.GenericReference,entityId:Pa.body.id,version:"1",entityType:r.ActionDescriptor},WT={id:"counted-loop-body-any-dynamic-argument-id",type:r.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:V.DynamicArgument,parent:JT},YT={id:"counted-loop-body-any-dynamic-return-parent-ref-id",type:r.GenericReference,entityId:Pa.body.id,version:"1",entityType:r.ActionDescriptor},HT={id:"counted-loop-body-any-dynamic-return-id",type:r.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:V.DynamicReturn,parent:YT},Ys={id:Pa.body.id,type:r.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:[Ad,WT],outputs:[HT],error:null,parent:null},zT=[Zs,cn,Ia,Ci,wi,Da],KT=[qs,Aa,Js,Rd,bd,Ys],pn=N[r.BuiltInBaseEntity][k.HTTP_ENDPOINT].properties,XT={id:"endpointBuiltInCorsPropertyDataTypeRef",type:r.GenericReference,version:"1",entityType:r.ValueDescriptor,entityId:pn.cors.id},QT={id:"endpointBuiltInCorsPropertyRef",type:r.GenericReference,version:"1",entityType:r.Property,entityId:pn.cors.id},ev={like:!1,inferred:!1,id:"endpointBuiltInCorsPropertyDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!0,entity:X,asType:!1,parent:QT},tv={id:"endpointBuiltInBaseEntityRef",type:r.GenericReference,version:"1",entityType:r.BuiltInBaseEntity,entityId:k.HTTP_ENDPOINT},rv={constant:!1,hidden:!0,required:!0,id:pn.cors.id,name:"Allowed origins",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:r.Property,private:!1,abstract:!0,implements:null,static:!0,index:0,dataType:ev,defaultValue:{id:"endpointBuiltInCorsPropertyDataTypeDefaultValueId",type:r.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:C.KeyValue,value:["*"],parent:XT,autogeneration:null,valueAsType: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:tv},nv={id:"endpointBuiltInPathPropertyDataTypeRef",type:r.GenericReference,version:"1",entityType:r.ValueDescriptor,entityId:pn.path.id},iv={id:"endpointBuiltInPathPropertyRef",type:r.GenericReference,version:"1",entityType:r.Property,entityId:pn.path.id},av={like:!1,inferred:!1,id:"endpointBuiltInPathPropertyDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:X,asType:!1,parent:iv},sv={id:"endpointBuiltInBaseEntityRefTwo",type:r.GenericReference,version:"1",entityType:r.BuiltInBaseEntity,entityId:k.HTTP_ENDPOINT},Dd={constant:!1,id:pn.path.id,hidden:!1,required:!0,name:"Path",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:r.Property,private:!1,abstract:!0,implements:null,static:!0,index:1,dataType:av,defaultValue:{id:"endpointBuiltInPathPropertyDataTypeDefaultValueId",type:r.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:C.String,value:"/",parent:nv,autogeneration:null,valueAsType: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:sv},ov={id:"endpointBuiltInMethodPropertyDataTypeRef",type:r.GenericReference,version:"1",entityType:r.ValueDescriptor,entityId:pn.method.id},lv={id:"endpointBuiltInMethodPropertyRef",type:r.GenericReference,version:"1",entityType:r.Property,entityId:"endpointBuiltInMethodProperty"},dv={like:!1,inferred:!1,id:"endpointBuiltInMethodPropertyDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,entity:Zr,isList:!0,asType:!1,options:["GET","POST","PUT","DELETE","PATCH","OPTIONS","HEAD","TRACE","CONNECT","CUSTOM"],parent:lv},uv={id:"endpointBuiltInBaseEntityRefThree",type:r.GenericReference,version:"1",entityType:r.BuiltInBaseEntity,entityId:k.HTTP_ENDPOINT},Pd={constant:!1,hidden:!1,required:!0,id:pn.method.id,name:"Method",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:r.Property,private:!1,index:2,implements:null,defaultValue:{id:"endpointBuiltInMethodPropertyDataTypeDefaultValueId",type:r.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:"GET",name:C.Enum,parent:ov,autogeneration:null,valueAsType:null},abstract:!0,static:!0,dataType:dv,description:"The HTTP method that this endpoint will respond to, for example GET, POST, PUT, DELETE, etc.",parent:uv},cv={id:"endpointRequestHeadersVariableDataTypeRef",type:r.GenericReference,version:"1",entityType:r.ValueDescriptor,entityId:"endpointRequestHeadersArgumentDeclaration"},pv={id:"endpointRequestHeadersArgumentDeclarationRef",type:r.GenericReference,version:"1",entityType:r.ArgumentDeclaration,entityId:"endpointRequestHeadersArgumentDeclaration"},hv={like:!1,inferred:!1,id:"endpointRequestHeadersVariableDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!0,entity:vt,asType:!1,parent:pv},yv={id:"endpointRequestBodyArgumentDeclarationRef",type:r.GenericReference,version:"1",entityType:r.ArgumentDeclaration,entityId:"endpointRequestBodyArgumentDeclaration"},fv={like:!1,inferred:!1,id:"endpointRequestBodyVariableDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,asType:!1,entity:vt,parent:yv},mv={id:"endpointRequestQueryParamsVariableDataTypeRef",type:r.GenericReference,version:"1",entityType:r.ValueDescriptor,entityId:"endpointRequestQueryParamsArgumentDeclaration"},Tv={id:"endpointRequestQueryParamsArgumentDeclarationRef",type:r.GenericReference,version:"1",entityType:r.ArgumentDeclaration,entityId:"endpointRequestQueryParamsArgumentDeclaration"},vv={like:!1,inferred:!1,id:"endpointRequestQueryParamsVariableDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!0,asType:!1,entity:Si,parent:Tv},Ev={id:"endpointPathParamsVariableDataTypeRef",type:r.GenericReference,version:"1",entityType:r.ValueDescriptor,entityId:"endpointPathParamsArgumentDeclaration"},Rv={id:"endpointPathParamsArgumentDeclarationRef",type:r.GenericReference,version:"1",entityType:r.ArgumentDeclaration,entityId:"endpointPathParamsArgumentDeclaration"},gv={like:!1,inferred:!1,id:"endpointPathParamsVariableDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!0,entity:Si,asType:!1,parent:Rv},bv={id:"endpointReachedTriggerActionDescriptorRef",type:r.GenericReference,version:"1",entityType:r.ActionDescriptor,entityId:"endpointReachedTriggerActionDescriptor"},Sd={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:r.ValueDescriptor,name:"Request headers",dataType:hv,defaultValue:{id:"endpointRequestHeadersVariableDataTypeDefaultValueId",type:r.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:C.KeyValue,value:{},parent:cv,autogeneration:null,valueAsType:null},required:!0,index:0,parentRelationType:V.FixedArguments,parent:bv},Iv={id:"endpointReachedTriggerActionDescriptorRefTwo",type:r.GenericReference,version:"1",entityType:r.ActionDescriptor,entityId:"endpointReachedTriggerActionDescriptor"},Od={id:"endpointPathParamsArgumentDeclaration",type:r.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:gv,defaultValue:{id:"endpointPathParamsVariableDataTypeDefaultValueId",type:r.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:C.KeyValue,value:[],parent:Ev,autogeneration:null,valueAsType:null},required:!0,index:1,parentRelationType:V.FixedArguments,parent:Iv},Av={id:"endpointReachedTriggerActionDescriptorRefThree",type:r.GenericReference,version:"1",entityType:r.ActionDescriptor,entityId:"endpointReachedTriggerActionDescriptor"},Vd={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:r.ValueDescriptor,name:"Request query params",dataType:vv,defaultValue:{id:"endpointRequestQueryParamsVariableDataTypeDefaultValueId",type:r.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:C.KeyValue,value:[],parent:mv,autogeneration:null,valueAsType:null},required:!0,index:2,parentRelationType:V.FixedArguments,parent:Av},Dv={id:"endpointReachedTriggerActionDescriptorRefFour",type:r.GenericReference,version:"1",entityType:r.ActionDescriptor,entityId:"endpointReachedTriggerActionDescriptor"},Cd={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:r.ValueDescriptor,name:"Request body",dataType:fv,defaultValue:null,index:3,required:!0,parentRelationType:V.FixedArguments,parent:Dv},Pv={id:"endpointResponseCodeReturnDeclarationRef",type:r.GenericReference,version:"1",entityType:r.ReturnDeclaration,entityId:"endpointResponseCodeReturnDeclaration"},Sv={like:!1,inferred:!1,id:"9ba575b0-6f8e-436d-a3de-3b843622aa17",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ue,asType:!1,isList:!1,parent:Pv},Ov={id:"endpointReturnStatementRef",type:r.GenericReference,version:"1",entityType:r.ActionDescriptor,entityId:"endpointReturnStatement"},wd={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:r.ValueDescriptor,name:"Response code",dataType:Sv,defaultValue:null,required:!0,index:0,parentRelationType:V.FixedReturns,parent:Ov},Vv={id:"endpointResponseHeadersDataTypeRef",type:r.GenericReference,version:"1",entityType:r.ValueDescriptor,entityId:"endpointResponseHeadersReturnDeclaration"},Cv={id:"endpointResponseHeadersReturnDeclarationRef",type:r.GenericReference,version:"1",entityType:r.ReturnDeclaration,entityId:"endpointResponseHeadersReturnDeclaration"},wv={like:!1,inferred:!1,id:"endpointResponseHeadersDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!0,entity:vt,asType:!1,parent:Cv},Bv={id:"endpointReturnStatementRefTwo",type:r.GenericReference,version:"1",entityType:r.ActionDescriptor,entityId:"endpointReturnStatement"},Bd={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:r.ValueDescriptor,name:"Response headers",dataType:wv,defaultValue:{id:"endpointResponseHeadersDataTypeDefaultValueId",type:r.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:C.KeyValue,value:{},parent:Vv,autogeneration:null,valueAsType:null},required:!1,index:1,parentRelationType:V.FixedReturns,parent:Bv},Mv={id:"endpointResponseBodyReturnDeclarationRef",type:r.GenericReference,version:"1",entityType:r.ReturnDeclaration,entityId:"endpointResponseBodyReturnDeclaration"},_v={like:!1,inferred:!1,id:"endpointResponseBodyDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,asType:!1,entity:vt,parent:Mv},Nv={id:"endpointReturnStatementRefThree",type:r.GenericReference,version:"1",entityType:r.ActionDescriptor,entityId:"endpointReturnStatement"},Md={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:r.ValueDescriptor,name:"Response body",dataType:_v,defaultValue:null,required:!1,index:2,parentRelationType:V.FixedReturns,parent:Nv},Lv={id:"endpointBuiltInBaseEntityRefFour",type:r.GenericReference,version:"1",entityType:r.BuiltInBaseEntity,entityId:k.HTTP_ENDPOINT},_d={id:"endpointReachedTriggerActionDescriptor",type:r.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:[Sd,Od,Vd,Cd],outputs:[wd,Bd,Md],error:null,parent:Lv},Sa={id:k.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:k.HTTP_ENDPOINT,type:r.BuiltInBaseEntity,interactive:!1,abstract:!0,static:!0,properties:[rv,Dd,Pd],abstractMethods:[_d],extends:[],methods:[]},Pt=N[r.BuiltInBaseEntity].BUILT_IN_RELATIONAL_DATABASE_ENTITY,Gv={id:"relational-database-built-in-base-entity-identifier-property-data-type-ref-id",type:r.GenericReference,entityId:Pt.properties.identifier.id,version:"1",entityType:r.Property},$v={id:"relational-database-built-in-base-entity-identifier-property-ref-id",type:r.GenericReference,entityId:Pt.properties.identifier.id,version:"1",entityType:r.Property},Fv={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:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:X,asType:!1,parent:$v},Bi={id:"relational-database-built-in-base-entity-ref-id",type:r.GenericReference,entityId:k.PERSISTED_ENTITY,version:"1",entityType:r.BuiltInBaseEntity},Hs={constant:!1,id:Pt.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:r.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:r.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:C.String,value:null,parent:Gv,autogeneration:{type:st.Unique,rangeStart:null,rangeEnd:null},valueAsType:null},dataType:Fv,description:"The name of the main database inside of the server instance where the data will be stored.",parent:Bi},gP={id:"relational-database-built-in-base-entity-username-property-data-type-ref-id",type:r.GenericReference,entityId:"relational-database-built-in-base-entity-username-property-data-type-idd",version:"1",entityType:r.Property},Uv={id:"relational-database-built-in-base-entity-username-property-ref-id",type:r.GenericReference,entityId:Pt.properties.username.id,version:"1",entityType:r.Property},xv={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:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:X,asType:!1,parent:Uv},zs={constant:!1,hidden:!1,required:!0,id:Pt.properties.username.id,name:"Username",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:r.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:r.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:C.String,value:"postgres",parent:{id:"relational-database-built-in-base-entity-username-property-data-type-default-value-parent-ref-id",type:r.GenericReference,entityId:Pt.properties.username.id,version:"1",entityType:r.Property},autogeneration:null,valueAsType:null},dataType:xv,description:"The username that will be used to connect to the database.",parent:Bi},bP={id:"relational-database-built-in-base-entity-password-property-data-type-ref-id",type:r.GenericReference,entityId:"relational-database-built-in-base-entity-password-property-data-type-id",version:"1",entityType:r.Property},jv={id:"relational-database-built-in-base-entity-password-property-ref-id",type:r.GenericReference,entityId:Pt.properties.password.id,version:"1",entityType:r.Property},kv={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:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:X,asType:!1,parent:jv},Ks={constant:!1,hidden:!1,required:!0,id:Pt.properties.password.id,name:"Password",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:r.Property,private:!1,abstract:!0,static:!0,implements:null,index:2,defaultValue:null,dataType:kv,description:"The password that will be used to connect to the database.",parent:Bi},Zv={id:"relational-database-built-in-base-entity-min-size-property-data-type-ref-id",type:r.GenericReference,entityId:Pt.properties.minSize.id,version:"1",entityType:r.Property},qv={id:"relational-database-built-in-base-entity-min-size-property-ref-id",type:r.GenericReference,entityId:Pt.properties.minSize.id,version:"1",entityType:r.Property},Jv={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:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ue,asType:!1,parent:qv},Xs={constant:!1,hidden:!0,required:!0,id:Pt.properties.minSize.id,name:"Minimum GB size",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:r.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:r.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:C.Number,value:6,parent:Zv,autogeneration:null,valueAsType:null},dataType:Jv,description:"The minimum size of the database in GB.",parent:Bi},Wv={id:"relational-database-built-in-base-entity-default-property-data-type-ref-id",type:r.GenericReference,entityId:Pt.properties.default.id,version:"1",entityType:r.Property},Yv={id:"relational-database-built-in-base-entity-default-property-ref-id",type:r.GenericReference,entityId:Pt.properties.default.id,version:"1",entityType:r.Property},Hv={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:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:kr,asType:!1,parent:Yv},Nd={constant:!1,hidden:!0,required:!0,id:Pt.properties.default.id,name:"Default",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:r.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:r.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:C.Boolean,value:!1,parent:Wv,autogeneration:null,valueAsType:null},dataType:Hv,description:"If true, this database will be the default database for the server instance and all the new entities.",parent:Bi},zv={id:"relational-database-built-in-base-entity-autoscaling-property-ref-id",type:r.GenericReference,entityId:Pt.properties.autoscaling.id,version:"1",entityType:r.Property},Kv={id:"relational-database-built-in-base-entity-autoscaling-property-data-type-ref-id",type:r.GenericReference,entityId:Pt.properties.autoscaling.id,version:"1",entityType:r.Property},Xv={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:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:kr,asType:!1,parent:zv},Qv={id:"relational-database-built-in-base-entity-autoscaling-property-parent-ref-id",type:r.GenericReference,entityId:k.PERSISTED_ENTITY,version:"1",entityType:r.BuiltInBaseEntity},Ld={constant:!1,hidden:!0,required:!0,id:Pt.properties.autoscaling.id,name:"Auto-scaling",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:r.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:r.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:C.Boolean,value:!1,parent:Kv,autogeneration:null,valueAsType:null},dataType:Xv,description:"If true, this database will automatically scale up or down in memory size, based on the usage.",parent:Qv},Vr={id:k.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:k.RELATIONAL_DATABASE,type:r.BuiltInBaseEntity,abstract:!0,static:!0,interactive:!1,properties:[Hs,zs,Ks,Xs,Nd,Ld],abstractMethods:[],methods:[],extends:[]},eE={type:r.GenericReference,entityId:"persisted-built-in-base-entity-ref-id",version:"1",entityType:r.BuiltInBaseEntity,id:er.DeletePersistedEntity},Gd={type:r.FunctionDeclaration,id:er.DeletePersistedEntity,name:er.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:eE,inputs:[],calls:[],implements:null,collapsed:!1,returnStatements:[],index:0,private:!1,x:0,y:0},tE=N[r.BuiltInBaseEntity][k.PERSISTED_ENTITY].properties,IP={id:"persisted-built-in-base-entity-database-property-data-type-ref-id",type:r.GenericReference,entityId:"persisted-built-in-base-entity-database-property-data-type-id",version:"1",entityType:r.DataType},rE={id:"persisted-built-in-base-entity-database-property-ref-id",type:r.GenericReference,entityId:"persisted-built-in-base-entity-database-property-id",version:"1",entityType:r.Property},nE={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:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:Vr,asType:!1,parent:rE},iE={id:"persisted-built-in-base-entity-database-property-parent-ref-id",type:r.GenericReference,entityId:k.PERSISTED_ENTITY,version:"1",entityType:r.BuiltInBaseEntity},Mi={constant:!1,hidden:!0,required:!0,id:tE.database.id,name:"Database",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:r.Property,defaultValue:null,private:!1,abstract:!0,implements:null,static:!0,index:0,dataType:nE,description:"The database that the entity belongs to.",parent:iE},aE={id:"persisted-built-in-base-entity-primary-key-property-number-data-type-option-parent-ref-id",type:r.GenericReference,entityId:"persisted-built-in-base-entity-primary-key-property-data-type-id",version:"1",entityType:r.DataType},sE={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:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ue,asType:!1,parentRelationType:yt.OrDataTypeGroup,parent:aE},oE={id:"persisted-built-in-base-entity-primary-key-property-string-data-type-option-parent-ref-id",type:r.GenericReference,entityId:"persisted-built-in-base-entity-primary-key-property-data-type-id",version:"1",entityType:r.DataType},lE={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:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:X,asType:!1,parentRelationType:yt.OrDataTypeGroup,parent:oE},dE={id:"persisted-built-in-base-entity-primary-key-property-uuid-data-type-option-parent-ref-id",type:r.GenericReference,entityId:"persisted-built-in-base-entity-primary-key-property-data-type-id",version:"1",entityType:r.DataType},uE={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:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:qr,asType:!1,parentRelationType:yt.OrDataTypeGroup,parent:dE},cE={id:"persisted-built-in-base-entity-primary-key-property-ref-id",type:r.GenericReference,entityId:"persisted-built-in-base-entity-primary-key-property-id",version:"1",entityType:r.Property},pE={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:r.DataType,andChildrenGroup:null,orChildrenGroup:[uE,lE,sE],isList:!1,entity:null,asType:null,implementationChooseOne:!0,parent:cE},hE={id:"persisted-built-in-base-entity-primary-key-property-parent-ref-id",type:r.GenericReference,entityId:k.PERSISTED_ENTITY,version:"1",entityType:r.BuiltInBaseEntity},_i={constant:!1,hidden:!1,required:!0,id:tE.primaryKey.id,name:"Primary key",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:r.Property,defaultValue:null,private:!1,abstract:!0,implements:null,static:!1,index:0,dataType:pE,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:hE},gt={id:k.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:k.PERSISTED_ENTITY,type:r.BuiltInBaseEntity,abstract:!0,static:!1,interactive:!0,abstractMethods:[],properties:[Mi,_i],methods:[Gd],extends:[]},yE={type:r.GenericReference,entityId:"persisted-built-in-base-entity-ref-id",version:"1",entityType:r.BuiltInBaseEntity,id:er.SoftDeletePersistedEntity},AP={type:r.FunctionDeclaration,id:er.SoftDeletePersistedEntity,name:er.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:yE,inputs:[],calls:[],implements:null,collapsed:!1,returnStatements:[],index:0,private:!1,x:0,y:0},fE={id:"cron-job-triggered-function-declaration-blueprint-parent-ref-id",type:r.GenericReference,version:"1",entityType:r.BuiltInBaseEntity,entityId:k.HTTP_ENDPOINT},$d={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:r.ActionDescriptor,description:"Executed when the cron job is triggered",inputs:[],error:null,outputs:[],parent:fE},mE=N[r.BuiltInBaseEntity].BUILT_IN_CRON_JOB_ENTITY,DP={id:"cron-job-built-in-base-entity-expression-property-data-type-ref",type:r.GenericReference,entityId:"cron-job-built-in-base-entity-expression-property-data-type",version:"1",entityType:r.DataType},TE={id:"cron-job-built-in-base-entity-expression-property-ref",type:r.GenericReference,entityId:mE.properties.expression.id,version:"1",entityType:r.Property},PP={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:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:X,asType:!1,parent:TE},vE={id:"cron-job-built-in-base-entity-ref",type:r.GenericReference,entityId:k.CRON_JOB,version:"1",entityType:r.BuiltInBaseEntity},EE={constant:!1,hidden:!1,required:!0,id:mE.properties.expression.id,name:"Cron expression",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:r.Property,defaultValue:null,private:!1,abstract:!0,implements:null,static:!0,index:0,dataType:PP,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:vE},Qs={id:k.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:k.CRON_JOB,type:r.BuiltInBaseEntity,abstract:!0,static:!0,interactive:!1,properties:[EE],methods:[],abstractMethods:[$d],extends:[]},RE={type:r.GenericReference,id:"execution-built-in-entity-abort-method-parent-ref-id",version:"1",entityType:r.BuiltInBaseEntity,entityId:"execution-built-in-entity-id"},Fd={id:"execution-built-in-entity-abort-method-id",type:r.FunctionDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:er.AbortExecution,description:"Aborts the execution of the entity",inputs:[],returnStatements:[],calls:[],implements:null,private:!1,collapsed:!1,index:null,x:0,y:0,parent:RE},eo={id:k.EXECUTION,type:r.BuiltInBaseEntity,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:k.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:[Fd],abstractMethods:[]},gE=[Sa,Vr,gt,Qs,eo],SP=N[r.Condition]["not-empty"],bE={type:r.GenericReference,id:"not-empty-condition-ref",version:"1",entityType:r.ActionDescriptor,entityId:lr.NotEmpty},IE={id:SP.inputs.leftHand.id,type:r.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:V.FixedArguments,index:0,parent:bE},Fn={type:r.ActionDescriptor,id:lr.NotEmpty,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:lr.NotEmpty,description:"Checks if the value is not empty",parent:null,inputs:[IE],outputs:[],error:null},AE={[lr.NotEmpty]:Fn},Ni=N[r.Condition]["more-than-or-equal"],DE={type:r.GenericReference,id:"more-than-or-equal-condition-left-hand-argument-data-type-parent-ref",version:"1",entityType:r.ValueDescriptor,entityId:Ni.inputs.leftHand.id},PE={type:r.DataType,id:Ni.inputs.leftHand.dataType.id,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ue,like:!1,isList:!1,inferred:!1,andChildrenGroup:null,orChildrenGroup:null,asType:!1,parent:DE},SE={type:r.GenericReference,id:"more-than-or-equal-condition-left-hand-argument-parent-ref",version:"1",entityType:r.ActionDescriptor,entityId:nt.MoreThanOrEqual},OE={id:Ni.inputs.leftHand.id,type:r.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:PE,required:!0,parentRelationType:V.FixedArguments,index:0,parent:SE},VE={type:r.GenericReference,id:"more-than-or-equal-condition-right-hand-argument-data-type-parent-ref",version:"1",entityType:r.ValueDescriptor,entityId:Ni.inputs.rightHand.id},CE={type:r.DataType,id:Ni.inputs.rightHand.dataType.id,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ue,like:!1,isList:!1,inferred:!1,andChildrenGroup:null,orChildrenGroup:null,asType:!1,parent:VE},wE={type:r.GenericReference,id:"more-than-or-equal-condition-right-hand-argument-parent-ref",version:"1",entityType:r.ActionDescriptor,entityId:nt.MoreThanOrEqual},BE={id:Ni.inputs.rightHand.id,type:r.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:CE,required:!0,parentRelationType:V.FixedArguments,index:1,parent:wE},Li={type:r.ActionDescriptor,id:nt.MoreThanOrEqual,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:nt.MoreThanOrEqual,description:"Checks if the value is not empty",parent:null,inputs:[OE,BE],outputs:[],error:null},ME={[nt.MoreThanOrEqual]:Li},_E={...AE,...ME},NE=Object.values(_E),to={type:r.ActionDescriptor,id:jr.PROJECT_PUBLICATION_COMPLETED,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:jr.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},LE={[jr.PROJECT_PUBLICATION_COMPLETED]:to},GE=Object.values(LE),Ud=N[r.ValueDescriptor][Bs.ActionOngoingProcessOutputValue],$E={type:r.GenericReference,id:"182f767f-50e8-4394-ba5f-43e78c232733",version:"1",entityType:r.ValueDescriptor,entityId:Ud.id},FE={like:!1,inferred:!1,id:Ud.dataType.id,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:eo,asType:!1,isList:!1,parent:$E},ro={id:Ud.id,type:r.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:FE,required:!0,index:0,parent:null,parentRelationType:V.OngoingProcessExecution},UE=[ro],xE=[...Xp,...l0,...zT,...KT,...gE,...NE,...GE,...UE];var $e;(function(n){n.assertEqual=i=>i;function s(i){}n.assertIs=s;function e(i){throw new Error}n.assertNever=e,n.arrayToEnum=i=>{const a={};for(const o of i)a[o]=o;return a},n.getValidEnumValues=i=>{const a=n.objectKeys(i).filter(l=>typeof i[i[l]]!="number"),o={};for(const l of a)o[l]=i[l];return n.objectValues(o)},n.objectValues=i=>n.objectKeys(i).map(function(a){return i[a]}),n.objectKeys=typeof Object.keys=="function"?i=>Object.keys(i):i=>{const a=[];for(const o in i)Object.prototype.hasOwnProperty.call(i,o)&&a.push(o);return a},n.find=(i,a)=>{for(const o of i)if(a(o))return o},n.isInteger=typeof Number.isInteger=="function"?i=>Number.isInteger(i):i=>typeof i=="number"&&isFinite(i)&&Math.floor(i)===i;function t(i,a=" | "){return i.map(o=>typeof o=="string"?`'${o}'`:o).join(a)}n.joinValues=t,n.jsonStringifyReplacer=(i,a)=>typeof a=="bigint"?a.toString():a})($e||($e={}));var xd;(function(n){n.mergeShapes=(s,e)=>({...s,...e})})(xd||(xd={}));const Z=$e.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Yr=n=>{switch(typeof n){case"undefined":return Z.undefined;case"string":return Z.string;case"number":return isNaN(n)?Z.nan:Z.number;case"boolean":return Z.boolean;case"function":return Z.function;case"bigint":return Z.bigint;case"symbol":return Z.symbol;case"object":return Array.isArray(n)?Z.array:n===null?Z.null:n.then&&typeof n.then=="function"&&n.catch&&typeof n.catch=="function"?Z.promise:typeof Map<"u"&&n instanceof Map?Z.map:typeof Set<"u"&&n instanceof Set?Z.set:typeof Date<"u"&&n instanceof Date?Z.date:Z.object;default:return Z.unknown}},G=$e.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"]),OP=n=>JSON.stringify(n,null,2).replace(/"([^"]+)":/g,"$1:");class Jt extends Error{get errors(){return this.issues}constructor(s){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=s}format(s){const e=s||function(a){return a.message},t={_errors:[]},i=a=>{for(const o of a.issues)if(o.code==="invalid_union")o.unionErrors.map(i);else if(o.code==="invalid_return_type")i(o.returnTypeError);else if(o.code==="invalid_arguments")i(o.argumentsError);else if(o.path.length===0)t._errors.push(e(o));else{let l=t,d=0;for(;d<o.path.length;){const h=o.path[d];d===o.path.length-1?(l[h]=l[h]||{_errors:[]},l[h]._errors.push(e(o))):l[h]=l[h]||{_errors:[]},l=l[h],d++}}};return i(this),t}static assert(s){if(!(s instanceof Jt))throw new Error(`Not a ZodError: ${s}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,$e.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(s=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(s(i))):t.push(s(i));return{formErrors:t,fieldErrors:e}}get formErrors(){return this.flatten()}}Jt.create=n=>new Jt(n);const Gi=(n,s)=>{let e;switch(n.code){case G.invalid_type:n.received===Z.undefined?e="Required":e=`Expected ${n.expected}, received ${n.received}`;break;case G.invalid_literal:e=`Invalid literal value, expected ${JSON.stringify(n.expected,$e.jsonStringifyReplacer)}`;break;case G.unrecognized_keys:e=`Unrecognized key(s) in object: ${$e.joinValues(n.keys,", ")}`;break;case G.invalid_union:e="Invalid input";break;case G.invalid_union_discriminator:e=`Invalid discriminator value. Expected ${$e.joinValues(n.options)}`;break;case G.invalid_enum_value:e=`Invalid enum value. Expected ${$e.joinValues(n.options)}, received '${n.received}'`;break;case G.invalid_arguments:e="Invalid function arguments";break;case G.invalid_return_type:e="Invalid function return type";break;case G.invalid_date:e="Invalid date";break;case G.invalid_string:typeof n.validation=="object"?"includes"in n.validation?(e=`Invalid input: must include "${n.validation.includes}"`,typeof n.validation.position=="number"&&(e=`${e} at one or more positions greater than or equal to ${n.validation.position}`)):"startsWith"in n.validation?e=`Invalid input: must start with "${n.validation.startsWith}"`:"endsWith"in n.validation?e=`Invalid input: must end with "${n.validation.endsWith}"`:$e.assertNever(n.validation):n.validation!=="regex"?e=`Invalid ${n.validation}`:e="Invalid";break;case G.too_small:n.type==="array"?e=`Array must contain ${n.exact?"exactly":n.inclusive?"at least":"more than"} ${n.minimum} element(s)`:n.type==="string"?e=`String must contain ${n.exact?"exactly":n.inclusive?"at least":"over"} ${n.minimum} character(s)`:n.type==="number"?e=`Number must be ${n.exact?"exactly equal to ":n.inclusive?"greater than or equal to ":"greater than "}${n.minimum}`:n.type==="date"?e=`Date must be ${n.exact?"exactly equal to ":n.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(n.minimum))}`:e="Invalid input";break;case G.too_big:n.type==="array"?e=`Array must contain ${n.exact?"exactly":n.inclusive?"at most":"less than"} ${n.maximum} element(s)`:n.type==="string"?e=`String must contain ${n.exact?"exactly":n.inclusive?"at most":"under"} ${n.maximum} character(s)`:n.type==="number"?e=`Number must be ${n.exact?"exactly":n.inclusive?"less than or equal to":"less than"} ${n.maximum}`:n.type==="bigint"?e=`BigInt must be ${n.exact?"exactly":n.inclusive?"less than or equal to":"less than"} ${n.maximum}`:n.type==="date"?e=`Date must be ${n.exact?"exactly":n.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(n.maximum))}`:e="Invalid input";break;case G.custom:e="Invalid input";break;case G.invalid_intersection_types:e="Intersection results could not be merged";break;case G.not_multiple_of:e=`Number must be a multiple of ${n.multipleOf}`;break;case G.not_finite:e="Number must be finite";break;default:e=s.defaultError,$e.assertNever(n)}return{message:e}};let jE=Gi;function VP(n){jE=n}function no(){return jE}const io=n=>{const{data:s,path:e,errorMaps:t,issueData:i}=n,a=[...e,...i.path||[]],o={...i,path:a};if(i.message!==void 0)return{...i,path:a,message:i.message};let l="";const d=t.filter(h=>!!h).slice().reverse();for(const h of d)l=h(o,{data:s,defaultError:l}).message;return{...i,path:a,message:l}},CP=[];function x(n,s){const e=no(),t=io({issueData:s,data:n.data,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,e,e===Gi?void 0:Gi].filter(i=>!!i)});n.common.issues.push(t)}class Ot{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(s,e){const t=[];for(const i of e){if(i.status==="aborted")return ie;i.status==="dirty"&&s.dirty(),t.push(i.value)}return{status:s.value,value:t}}static async mergeObjectAsync(s,e){const t=[];for(const i of e){const a=await i.key,o=await i.value;t.push({key:a,value:o})}return Ot.mergeObjectSync(s,t)}static mergeObjectSync(s,e){const t={};for(const i of e){const{key:a,value:o}=i;if(a.status==="aborted"||o.status==="aborted")return ie;a.status==="dirty"&&s.dirty(),o.status==="dirty"&&s.dirty(),a.value!=="__proto__"&&(typeof o.value<"u"||i.alwaysSet)&&(t[a.value]=o.value)}return{status:s.value,value:t}}}const ie=Object.freeze({status:"aborted"}),$i=n=>({status:"dirty",value:n}),Gt=n=>({status:"valid",value:n}),jd=n=>n.status==="aborted",kd=n=>n.status==="dirty",Un=n=>n.status==="valid",Oa=n=>typeof Promise<"u"&&n instanceof Promise;function ao(n,s,e,t){if(e==="a"&&!t)throw new TypeError("Private accessor was defined without a getter");if(typeof s=="function"?n!==s||!t:!s.has(n))throw new TypeError("Cannot read private member from an object whose class did not declare it");return e==="m"?t:e==="a"?t.call(n):t?t.value:s.get(n)}function kE(n,s,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 s=="function"?n!==s||!i:!s.has(n))throw new TypeError("Cannot write private member to an object whose class did not declare it");return t==="a"?i.call(n,e):i?i.value=e:s.set(n,e),e}typeof SuppressedError=="function"&&SuppressedError;var z;(function(n){n.errToObj=s=>typeof s=="string"?{message:s}:s||{},n.toString=s=>typeof s=="string"?s:s==null?void 0:s.message})(z||(z={}));var Va,Ca;class Cr{constructor(s,e,t,i){this._cachedPath=[],this.parent=s,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 ZE=(n,s)=>{if(Un(s))return{success:!0,data:s.value};if(!n.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 Jt(n.common.issues);return this._error=e,this._error}}};function ce(n){if(!n)return{};const{errorMap:s,invalid_type_error:e,required_error:t,description:i}=n;if(s&&(e||t))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return s?{errorMap:s,description:i}:{errorMap:(o,l)=>{var d,h;const{message:y}=n;return o.code==="invalid_enum_value"?{message:y??l.defaultError}:typeof l.data>"u"?{message:(d=y??t)!==null&&d!==void 0?d:l.defaultError}:o.code!=="invalid_type"?{message:l.defaultError}:{message:(h=y??e)!==null&&h!==void 0?h:l.defaultError}},description:i}}class fe{get description(){return this._def.description}_getType(s){return Yr(s.data)}_getOrReturnCtx(s,e){return e||{common:s.parent.common,data:s.data,parsedType:Yr(s.data),schemaErrorMap:this._def.errorMap,path:s.path,parent:s.parent}}_processInputParams(s){return{status:new Ot,ctx:{common:s.parent.common,data:s.data,parsedType:Yr(s.data),schemaErrorMap:this._def.errorMap,path:s.path,parent:s.parent}}}_parseSync(s){const e=this._parse(s);if(Oa(e))throw new Error("Synchronous parse encountered promise.");return e}_parseAsync(s){const e=this._parse(s);return Promise.resolve(e)}parse(s,e){const t=this.safeParse(s,e);if(t.success)return t.data;throw t.error}safeParse(s,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:s,parsedType:Yr(s)},a=this._parseSync({data:s,path:i.path,parent:i});return ZE(i,a)}"~validate"(s){var e,t;const i={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:s,parsedType:Yr(s)};if(!this["~standard"].async)try{const a=this._parseSync({data:s,path:[],parent:i});return Un(a)?{value:a.value}:{issues:i.common.issues}}catch(a){!((t=(e=a==null?void 0:a.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:s,path:[],parent:i}).then(a=>Un(a)?{value:a.value}:{issues:i.common.issues})}async parseAsync(s,e){const t=await this.safeParseAsync(s,e);if(t.success)return t.data;throw t.error}async safeParseAsync(s,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:s,parsedType:Yr(s)},i=this._parse({data:s,path:t.path,parent:t}),a=await(Oa(i)?i:Promise.resolve(i));return ZE(t,a)}refine(s,e){const t=i=>typeof e=="string"||typeof e>"u"?{message:e}:typeof e=="function"?e(i):e;return this._refinement((i,a)=>{const o=s(i),l=()=>a.addIssue({code:G.custom,...t(i)});return typeof Promise<"u"&&o instanceof Promise?o.then(d=>d?!0:(l(),!1)):o?!0:(l(),!1)})}refinement(s,e){return this._refinement((t,i)=>s(t)?!0:(i.addIssue(typeof e=="function"?e(t,i):e),!1))}_refinement(s){return new Rr({schema:this,typeName:re.ZodEffects,effect:{type:"refinement",refinement:s}})}superRefine(s){return this._refinement(s)}constructor(s){this.spa=this.safeParseAsync,this._def=s,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 Br.create(this,this._def)}nullable(){return mn.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Er.create(this)}promise(){return ji.create(this,this._def)}or(s){return _a.create([this,s],this._def)}and(s){return Na.create(this,s,this._def)}transform(s){return new Rr({...ce(this._def),schema:this,typeName:re.ZodEffects,effect:{type:"transform",transform:s}})}default(s){const e=typeof s=="function"?s:()=>s;return new Ua({...ce(this._def),innerType:this,defaultValue:e,typeName:re.ZodDefault})}brand(){return new Jd({typeName:re.ZodBranded,type:this,...ce(this._def)})}catch(s){const e=typeof s=="function"?s:()=>s;return new xa({...ce(this._def),innerType:this,catchValue:e,typeName:re.ZodCatch})}describe(s){const e=this.constructor;return new e({...this._def,description:s})}pipe(s){return ja.create(this,s)}readonly(){return ka.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const wP=/^c[^\s-]{8,}$/i,BP=/^[0-9a-z]+$/,MP=/^[0-9A-HJKMNP-TV-Z]{26}$/i,_P=/^[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,NP=/^[a-z0-9_-]{21}$/i,LP=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,GP=/^[-+]?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)?)??$/,$P=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,FP="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let Zd;const UP=/^(?:(?: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])$/,xP=/^(?:(?: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])$/,jP=/^(([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]))$/,kP=/^(([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])$/,ZP=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,qP=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,qE="((\\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])))",JP=new RegExp(`^${qE}$`);function JE(n){let s="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return n.precision?s=`${s}\\.\\d{${n.precision}}`:n.precision==null&&(s=`${s}(\\.\\d+)?`),s}function WP(n){return new RegExp(`^${JE(n)}$`)}function WE(n){let s=`${qE}T${JE(n)}`;const e=[];return e.push(n.local?"Z?":"Z"),n.offset&&e.push("([+-]\\d{2}:?\\d{2})"),s=`${s}(${e.join("|")})`,new RegExp(`^${s}$`)}function YP(n,s){return!!((s==="v4"||!s)&&UP.test(n)||(s==="v6"||!s)&&jP.test(n))}function HP(n,s){if(!LP.test(n))return!1;try{const[e]=n.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||s&&i.alg!==s)}catch{return!1}}function zP(n,s){return!!((s==="v4"||!s)&&xP.test(n)||(s==="v6"||!s)&&kP.test(n))}class vr extends fe{_parse(s){if(this._def.coerce&&(s.data=String(s.data)),this._getType(s)!==Z.string){const a=this._getOrReturnCtx(s);return x(a,{code:G.invalid_type,expected:Z.string,received:a.parsedType}),ie}const t=new Ot;let i;for(const a of this._def.checks)if(a.kind==="min")s.data.length<a.value&&(i=this._getOrReturnCtx(s,i),x(i,{code:G.too_small,minimum:a.value,type:"string",inclusive:!0,exact:!1,message:a.message}),t.dirty());else if(a.kind==="max")s.data.length>a.value&&(i=this._getOrReturnCtx(s,i),x(i,{code:G.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!1,message:a.message}),t.dirty());else if(a.kind==="length"){const o=s.data.length>a.value,l=s.data.length<a.value;(o||l)&&(i=this._getOrReturnCtx(s,i),o?x(i,{code:G.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!0,message:a.message}):l&&x(i,{code:G.too_small,minimum:a.value,type:"string",inclusive:!0,exact:!0,message:a.message}),t.dirty())}else if(a.kind==="email")$P.test(s.data)||(i=this._getOrReturnCtx(s,i),x(i,{validation:"email",code:G.invalid_string,message:a.message}),t.dirty());else if(a.kind==="emoji")Zd||(Zd=new RegExp(FP,"u")),Zd.test(s.data)||(i=this._getOrReturnCtx(s,i),x(i,{validation:"emoji",code:G.invalid_string,message:a.message}),t.dirty());else if(a.kind==="uuid")_P.test(s.data)||(i=this._getOrReturnCtx(s,i),x(i,{validation:"uuid",code:G.invalid_string,message:a.message}),t.dirty());else if(a.kind==="nanoid")NP.test(s.data)||(i=this._getOrReturnCtx(s,i),x(i,{validation:"nanoid",code:G.invalid_string,message:a.message}),t.dirty());else if(a.kind==="cuid")wP.test(s.data)||(i=this._getOrReturnCtx(s,i),x(i,{validation:"cuid",code:G.invalid_string,message:a.message}),t.dirty());else if(a.kind==="cuid2")BP.test(s.data)||(i=this._getOrReturnCtx(s,i),x(i,{validation:"cuid2",code:G.invalid_string,message:a.message}),t.dirty());else if(a.kind==="ulid")MP.test(s.data)||(i=this._getOrReturnCtx(s,i),x(i,{validation:"ulid",code:G.invalid_string,message:a.message}),t.dirty());else if(a.kind==="url")try{new URL(s.data)}catch{i=this._getOrReturnCtx(s,i),x(i,{validation:"url",code:G.invalid_string,message:a.message}),t.dirty()}else a.kind==="regex"?(a.regex.lastIndex=0,a.regex.test(s.data)||(i=this._getOrReturnCtx(s,i),x(i,{validation:"regex",code:G.invalid_string,message:a.message}),t.dirty())):a.kind==="trim"?s.data=s.data.trim():a.kind==="includes"?s.data.includes(a.value,a.position)||(i=this._getOrReturnCtx(s,i),x(i,{code:G.invalid_string,validation:{includes:a.value,position:a.position},message:a.message}),t.dirty()):a.kind==="toLowerCase"?s.data=s.data.toLowerCase():a.kind==="toUpperCase"?s.data=s.data.toUpperCase():a.kind==="startsWith"?s.data.startsWith(a.value)||(i=this._getOrReturnCtx(s,i),x(i,{code:G.invalid_string,validation:{startsWith:a.value},message:a.message}),t.dirty()):a.kind==="endsWith"?s.data.endsWith(a.value)||(i=this._getOrReturnCtx(s,i),x(i,{code:G.invalid_string,validation:{endsWith:a.value},message:a.message}),t.dirty()):a.kind==="datetime"?WE(a).test(s.data)||(i=this._getOrReturnCtx(s,i),x(i,{code:G.invalid_string,validation:"datetime",message:a.message}),t.dirty()):a.kind==="date"?JP.test(s.data)||(i=this._getOrReturnCtx(s,i),x(i,{code:G.invalid_string,validation:"date",message:a.message}),t.dirty()):a.kind==="time"?WP(a).test(s.data)||(i=this._getOrReturnCtx(s,i),x(i,{code:G.invalid_string,validation:"time",message:a.message}),t.dirty()):a.kind==="duration"?GP.test(s.data)||(i=this._getOrReturnCtx(s,i),x(i,{validation:"duration",code:G.invalid_string,message:a.message}),t.dirty()):a.kind==="ip"?YP(s.data,a.version)||(i=this._getOrReturnCtx(s,i),x(i,{validation:"ip",code:G.invalid_string,message:a.message}),t.dirty()):a.kind==="jwt"?HP(s.data,a.alg)||(i=this._getOrReturnCtx(s,i),x(i,{validation:"jwt",code:G.invalid_string,message:a.message}),t.dirty()):a.kind==="cidr"?zP(s.data,a.version)||(i=this._getOrReturnCtx(s,i),x(i,{validation:"cidr",code:G.invalid_string,message:a.message}),t.dirty()):a.kind==="base64"?ZP.test(s.data)||(i=this._getOrReturnCtx(s,i),x(i,{validation:"base64",code:G.invalid_string,message:a.message}),t.dirty()):a.kind==="base64url"?qP.test(s.data)||(i=this._getOrReturnCtx(s,i),x(i,{validation:"base64url",code:G.invalid_string,message:a.message}),t.dirty()):$e.assertNever(a);return{status:t.value,value:s.data}}_regex(s,e,t){return this.refinement(i=>s.test(i),{validation:e,code:G.invalid_string,...z.errToObj(t)})}_addCheck(s){return new vr({...this._def,checks:[...this._def.checks,s]})}email(s){return this._addCheck({kind:"email",...z.errToObj(s)})}url(s){return this._addCheck({kind:"url",...z.errToObj(s)})}emoji(s){return this._addCheck({kind:"emoji",...z.errToObj(s)})}uuid(s){return this._addCheck({kind:"uuid",...z.errToObj(s)})}nanoid(s){return this._addCheck({kind:"nanoid",...z.errToObj(s)})}cuid(s){return this._addCheck({kind:"cuid",...z.errToObj(s)})}cuid2(s){return this._addCheck({kind:"cuid2",...z.errToObj(s)})}ulid(s){return this._addCheck({kind:"ulid",...z.errToObj(s)})}base64(s){return this._addCheck({kind:"base64",...z.errToObj(s)})}base64url(s){return this._addCheck({kind:"base64url",...z.errToObj(s)})}jwt(s){return this._addCheck({kind:"jwt",...z.errToObj(s)})}ip(s){return this._addCheck({kind:"ip",...z.errToObj(s)})}cidr(s){return this._addCheck({kind:"cidr",...z.errToObj(s)})}datetime(s){var e,t;return typeof s=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:s}):this._addCheck({kind:"datetime",precision:typeof(s==null?void 0:s.precision)>"u"?null:s==null?void 0:s.precision,offset:(e=s==null?void 0:s.offset)!==null&&e!==void 0?e:!1,local:(t=s==null?void 0:s.local)!==null&&t!==void 0?t:!1,...z.errToObj(s==null?void 0:s.message)})}date(s){return this._addCheck({kind:"date",message:s})}time(s){return typeof s=="string"?this._addCheck({kind:"time",precision:null,message:s}):this._addCheck({kind:"time",precision:typeof(s==null?void 0:s.precision)>"u"?null:s==null?void 0:s.precision,...z.errToObj(s==null?void 0:s.message)})}duration(s){return this._addCheck({kind:"duration",...z.errToObj(s)})}regex(s,e){return this._addCheck({kind:"regex",regex:s,...z.errToObj(e)})}includes(s,e){return this._addCheck({kind:"includes",value:s,position:e==null?void 0:e.position,...z.errToObj(e==null?void 0:e.message)})}startsWith(s,e){return this._addCheck({kind:"startsWith",value:s,...z.errToObj(e)})}endsWith(s,e){return this._addCheck({kind:"endsWith",value:s,...z.errToObj(e)})}min(s,e){return this._addCheck({kind:"min",value:s,...z.errToObj(e)})}max(s,e){return this._addCheck({kind:"max",value:s,...z.errToObj(e)})}length(s,e){return this._addCheck({kind:"length",value:s,...z.errToObj(e)})}nonempty(s){return this.min(1,z.errToObj(s))}trim(){return new vr({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new vr({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new vr({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(s=>s.kind==="datetime")}get isDate(){return!!this._def.checks.find(s=>s.kind==="date")}get isTime(){return!!this._def.checks.find(s=>s.kind==="time")}get isDuration(){return!!this._def.checks.find(s=>s.kind==="duration")}get isEmail(){return!!this._def.checks.find(s=>s.kind==="email")}get isURL(){return!!this._def.checks.find(s=>s.kind==="url")}get isEmoji(){return!!this._def.checks.find(s=>s.kind==="emoji")}get isUUID(){return!!this._def.checks.find(s=>s.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(s=>s.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(s=>s.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(s=>s.kind==="cuid2")}get isULID(){return!!this._def.checks.find(s=>s.kind==="ulid")}get isIP(){return!!this._def.checks.find(s=>s.kind==="ip")}get isCIDR(){return!!this._def.checks.find(s=>s.kind==="cidr")}get isBase64(){return!!this._def.checks.find(s=>s.kind==="base64")}get isBase64url(){return!!this._def.checks.find(s=>s.kind==="base64url")}get minLength(){let s=null;for(const e of this._def.checks)e.kind==="min"&&(s===null||e.value>s)&&(s=e.value);return s}get maxLength(){let s=null;for(const e of this._def.checks)e.kind==="max"&&(s===null||e.value<s)&&(s=e.value);return s}}vr.create=n=>{var s;return new vr({checks:[],typeName:re.ZodString,coerce:(s=n==null?void 0:n.coerce)!==null&&s!==void 0?s:!1,...ce(n)})};function KP(n,s){const e=(n.toString().split(".")[1]||"").length,t=(s.toString().split(".")[1]||"").length,i=e>t?e:t,a=parseInt(n.toFixed(i).replace(".","")),o=parseInt(s.toFixed(i).replace(".",""));return a%o/Math.pow(10,i)}class hn extends fe{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(s){if(this._def.coerce&&(s.data=Number(s.data)),this._getType(s)!==Z.number){const a=this._getOrReturnCtx(s);return x(a,{code:G.invalid_type,expected:Z.number,received:a.parsedType}),ie}let t;const i=new Ot;for(const a of this._def.checks)a.kind==="int"?$e.isInteger(s.data)||(t=this._getOrReturnCtx(s,t),x(t,{code:G.invalid_type,expected:"integer",received:"float",message:a.message}),i.dirty()):a.kind==="min"?(a.inclusive?s.data<a.value:s.data<=a.value)&&(t=this._getOrReturnCtx(s,t),x(t,{code:G.too_small,minimum:a.value,type:"number",inclusive:a.inclusive,exact:!1,message:a.message}),i.dirty()):a.kind==="max"?(a.inclusive?s.data>a.value:s.data>=a.value)&&(t=this._getOrReturnCtx(s,t),x(t,{code:G.too_big,maximum:a.value,type:"number",inclusive:a.inclusive,exact:!1,message:a.message}),i.dirty()):a.kind==="multipleOf"?KP(s.data,a.value)!==0&&(t=this._getOrReturnCtx(s,t),x(t,{code:G.not_multiple_of,multipleOf:a.value,message:a.message}),i.dirty()):a.kind==="finite"?Number.isFinite(s.data)||(t=this._getOrReturnCtx(s,t),x(t,{code:G.not_finite,message:a.message}),i.dirty()):$e.assertNever(a);return{status:i.value,value:s.data}}gte(s,e){return this.setLimit("min",s,!0,z.toString(e))}gt(s,e){return this.setLimit("min",s,!1,z.toString(e))}lte(s,e){return this.setLimit("max",s,!0,z.toString(e))}lt(s,e){return this.setLimit("max",s,!1,z.toString(e))}setLimit(s,e,t,i){return new hn({...this._def,checks:[...this._def.checks,{kind:s,value:e,inclusive:t,message:z.toString(i)}]})}_addCheck(s){return new hn({...this._def,checks:[...this._def.checks,s]})}int(s){return this._addCheck({kind:"int",message:z.toString(s)})}positive(s){return this._addCheck({kind:"min",value:0,inclusive:!1,message:z.toString(s)})}negative(s){return this._addCheck({kind:"max",value:0,inclusive:!1,message:z.toString(s)})}nonpositive(s){return this._addCheck({kind:"max",value:0,inclusive:!0,message:z.toString(s)})}nonnegative(s){return this._addCheck({kind:"min",value:0,inclusive:!0,message:z.toString(s)})}multipleOf(s,e){return this._addCheck({kind:"multipleOf",value:s,message:z.toString(e)})}finite(s){return this._addCheck({kind:"finite",message:z.toString(s)})}safe(s){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:z.toString(s)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:z.toString(s)})}get minValue(){let s=null;for(const e of this._def.checks)e.kind==="min"&&(s===null||e.value>s)&&(s=e.value);return s}get maxValue(){let s=null;for(const e of this._def.checks)e.kind==="max"&&(s===null||e.value<s)&&(s=e.value);return s}get isInt(){return!!this._def.checks.find(s=>s.kind==="int"||s.kind==="multipleOf"&&$e.isInteger(s.value))}get isFinite(){let s=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"&&(s===null||t.value<s)&&(s=t.value)}return Number.isFinite(e)&&Number.isFinite(s)}}hn.create=n=>new hn({checks:[],typeName:re.ZodNumber,coerce:(n==null?void 0:n.coerce)||!1,...ce(n)});class yn extends fe{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(s){if(this._def.coerce)try{s.data=BigInt(s.data)}catch{return this._getInvalidInput(s)}if(this._getType(s)!==Z.bigint)return this._getInvalidInput(s);let t;const i=new Ot;for(const a of this._def.checks)a.kind==="min"?(a.inclusive?s.data<a.value:s.data<=a.value)&&(t=this._getOrReturnCtx(s,t),x(t,{code:G.too_small,type:"bigint",minimum:a.value,inclusive:a.inclusive,message:a.message}),i.dirty()):a.kind==="max"?(a.inclusive?s.data>a.value:s.data>=a.value)&&(t=this._getOrReturnCtx(s,t),x(t,{code:G.too_big,type:"bigint",maximum:a.value,inclusive:a.inclusive,message:a.message}),i.dirty()):a.kind==="multipleOf"?s.data%a.value!==BigInt(0)&&(t=this._getOrReturnCtx(s,t),x(t,{code:G.not_multiple_of,multipleOf:a.value,message:a.message}),i.dirty()):$e.assertNever(a);return{status:i.value,value:s.data}}_getInvalidInput(s){const e=this._getOrReturnCtx(s);return x(e,{code:G.invalid_type,expected:Z.bigint,received:e.parsedType}),ie}gte(s,e){return this.setLimit("min",s,!0,z.toString(e))}gt(s,e){return this.setLimit("min",s,!1,z.toString(e))}lte(s,e){return this.setLimit("max",s,!0,z.toString(e))}lt(s,e){return this.setLimit("max",s,!1,z.toString(e))}setLimit(s,e,t,i){return new yn({...this._def,checks:[...this._def.checks,{kind:s,value:e,inclusive:t,message:z.toString(i)}]})}_addCheck(s){return new yn({...this._def,checks:[...this._def.checks,s]})}positive(s){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:z.toString(s)})}negative(s){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:z.toString(s)})}nonpositive(s){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:z.toString(s)})}nonnegative(s){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:z.toString(s)})}multipleOf(s,e){return this._addCheck({kind:"multipleOf",value:s,message:z.toString(e)})}get minValue(){let s=null;for(const e of this._def.checks)e.kind==="min"&&(s===null||e.value>s)&&(s=e.value);return s}get maxValue(){let s=null;for(const e of this._def.checks)e.kind==="max"&&(s===null||e.value<s)&&(s=e.value);return s}}yn.create=n=>{var s;return new yn({checks:[],typeName:re.ZodBigInt,coerce:(s=n==null?void 0:n.coerce)!==null&&s!==void 0?s:!1,...ce(n)})};class wa extends fe{_parse(s){if(this._def.coerce&&(s.data=!!s.data),this._getType(s)!==Z.boolean){const t=this._getOrReturnCtx(s);return x(t,{code:G.invalid_type,expected:Z.boolean,received:t.parsedType}),ie}return Gt(s.data)}}wa.create=n=>new wa({typeName:re.ZodBoolean,coerce:(n==null?void 0:n.coerce)||!1,...ce(n)});class xn extends fe{_parse(s){if(this._def.coerce&&(s.data=new Date(s.data)),this._getType(s)!==Z.date){const a=this._getOrReturnCtx(s);return x(a,{code:G.invalid_type,expected:Z.date,received:a.parsedType}),ie}if(isNaN(s.data.getTime())){const a=this._getOrReturnCtx(s);return x(a,{code:G.invalid_date}),ie}const t=new Ot;let i;for(const a of this._def.checks)a.kind==="min"?s.data.getTime()<a.value&&(i=this._getOrReturnCtx(s,i),x(i,{code:G.too_small,message:a.message,inclusive:!0,exact:!1,minimum:a.value,type:"date"}),t.dirty()):a.kind==="max"?s.data.getTime()>a.value&&(i=this._getOrReturnCtx(s,i),x(i,{code:G.too_big,message:a.message,inclusive:!0,exact:!1,maximum:a.value,type:"date"}),t.dirty()):$e.assertNever(a);return{status:t.value,value:new Date(s.data.getTime())}}_addCheck(s){return new xn({...this._def,checks:[...this._def.checks,s]})}min(s,e){return this._addCheck({kind:"min",value:s.getTime(),message:z.toString(e)})}max(s,e){return this._addCheck({kind:"max",value:s.getTime(),message:z.toString(e)})}get minDate(){let s=null;for(const e of this._def.checks)e.kind==="min"&&(s===null||e.value>s)&&(s=e.value);return s!=null?new Date(s):null}get maxDate(){let s=null;for(const e of this._def.checks)e.kind==="max"&&(s===null||e.value<s)&&(s=e.value);return s!=null?new Date(s):null}}xn.create=n=>new xn({checks:[],coerce:(n==null?void 0:n.coerce)||!1,typeName:re.ZodDate,...ce(n)});class so extends fe{_parse(s){if(this._getType(s)!==Z.symbol){const t=this._getOrReturnCtx(s);return x(t,{code:G.invalid_type,expected:Z.symbol,received:t.parsedType}),ie}return Gt(s.data)}}so.create=n=>new so({typeName:re.ZodSymbol,...ce(n)});class Ba extends fe{_parse(s){if(this._getType(s)!==Z.undefined){const t=this._getOrReturnCtx(s);return x(t,{code:G.invalid_type,expected:Z.undefined,received:t.parsedType}),ie}return Gt(s.data)}}Ba.create=n=>new Ba({typeName:re.ZodUndefined,...ce(n)});class Ma extends fe{_parse(s){if(this._getType(s)!==Z.null){const t=this._getOrReturnCtx(s);return x(t,{code:G.invalid_type,expected:Z.null,received:t.parsedType}),ie}return Gt(s.data)}}Ma.create=n=>new Ma({typeName:re.ZodNull,...ce(n)});class Fi extends fe{constructor(){super(...arguments),this._any=!0}_parse(s){return Gt(s.data)}}Fi.create=n=>new Fi({typeName:re.ZodAny,...ce(n)});class jn extends fe{constructor(){super(...arguments),this._unknown=!0}_parse(s){return Gt(s.data)}}jn.create=n=>new jn({typeName:re.ZodUnknown,...ce(n)});class Hr extends fe{_parse(s){const e=this._getOrReturnCtx(s);return x(e,{code:G.invalid_type,expected:Z.never,received:e.parsedType}),ie}}Hr.create=n=>new Hr({typeName:re.ZodNever,...ce(n)});class oo extends fe{_parse(s){if(this._getType(s)!==Z.undefined){const t=this._getOrReturnCtx(s);return x(t,{code:G.invalid_type,expected:Z.void,received:t.parsedType}),ie}return Gt(s.data)}}oo.create=n=>new oo({typeName:re.ZodVoid,...ce(n)});class Er extends fe{_parse(s){const{ctx:e,status:t}=this._processInputParams(s),i=this._def;if(e.parsedType!==Z.array)return x(e,{code:G.invalid_type,expected:Z.array,received:e.parsedType}),ie;if(i.exactLength!==null){const o=e.data.length>i.exactLength.value,l=e.data.length<i.exactLength.value;(o||l)&&(x(e,{code:o?G.too_big:G.too_small,minimum:l?i.exactLength.value:void 0,maximum:o?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&&(x(e,{code:G.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&&(x(e,{code:G.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((o,l)=>i.type._parseAsync(new Cr(e,o,e.path,l)))).then(o=>Ot.mergeArray(t,o));const a=[...e.data].map((o,l)=>i.type._parseSync(new Cr(e,o,e.path,l)));return Ot.mergeArray(t,a)}get element(){return this._def.type}min(s,e){return new Er({...this._def,minLength:{value:s,message:z.toString(e)}})}max(s,e){return new Er({...this._def,maxLength:{value:s,message:z.toString(e)}})}length(s,e){return new Er({...this._def,exactLength:{value:s,message:z.toString(e)}})}nonempty(s){return this.min(1,s)}}Er.create=(n,s)=>new Er({type:n,minLength:null,maxLength:null,exactLength:null,typeName:re.ZodArray,...ce(s)});function Ui(n){if(n instanceof ut){const s={};for(const e in n.shape){const t=n.shape[e];s[e]=Br.create(Ui(t))}return new ut({...n._def,shape:()=>s})}else return n instanceof Er?new Er({...n._def,type:Ui(n.element)}):n instanceof Br?Br.create(Ui(n.unwrap())):n instanceof mn?mn.create(Ui(n.unwrap())):n instanceof wr?wr.create(n.items.map(s=>Ui(s))):n}class ut extends fe{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const s=this._def.shape(),e=$e.objectKeys(s);return this._cached={shape:s,keys:e}}_parse(s){if(this._getType(s)!==Z.object){const h=this._getOrReturnCtx(s);return x(h,{code:G.invalid_type,expected:Z.object,received:h.parsedType}),ie}const{status:t,ctx:i}=this._processInputParams(s),{shape:a,keys:o}=this._getCached(),l=[];if(!(this._def.catchall instanceof Hr&&this._def.unknownKeys==="strip"))for(const h in i.data)o.includes(h)||l.push(h);const d=[];for(const h of o){const y=a[h],f=i.data[h];d.push({key:{status:"valid",value:h},value:y._parse(new Cr(i,f,i.path,h)),alwaysSet:h in i.data})}if(this._def.catchall instanceof Hr){const h=this._def.unknownKeys;if(h==="passthrough")for(const y of l)d.push({key:{status:"valid",value:y},value:{status:"valid",value:i.data[y]}});else if(h==="strict")l.length>0&&(x(i,{code:G.unrecognized_keys,keys:l}),t.dirty());else if(h!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const h=this._def.catchall;for(const y of l){const f=i.data[y];d.push({key:{status:"valid",value:y},value:h._parse(new Cr(i,f,i.path,y)),alwaysSet:y in i.data})}}return i.common.async?Promise.resolve().then(async()=>{const h=[];for(const y of d){const f=await y.key,v=await y.value;h.push({key:f,value:v,alwaysSet:y.alwaysSet})}return h}).then(h=>Ot.mergeObjectSync(t,h)):Ot.mergeObjectSync(t,d)}get shape(){return this._def.shape()}strict(s){return z.errToObj,new ut({...this._def,unknownKeys:"strict",...s!==void 0?{errorMap:(e,t)=>{var i,a,o,l;const d=(o=(a=(i=this._def).errorMap)===null||a===void 0?void 0:a.call(i,e,t).message)!==null&&o!==void 0?o:t.defaultError;return e.code==="unrecognized_keys"?{message:(l=z.errToObj(s).message)!==null&&l!==void 0?l:d}:{message:d}}}:{}})}strip(){return new ut({...this._def,unknownKeys:"strip"})}passthrough(){return new ut({...this._def,unknownKeys:"passthrough"})}extend(s){return new ut({...this._def,shape:()=>({...this._def.shape(),...s})})}merge(s){return new ut({unknownKeys:s._def.unknownKeys,catchall:s._def.catchall,shape:()=>({...this._def.shape(),...s._def.shape()}),typeName:re.ZodObject})}setKey(s,e){return this.augment({[s]:e})}catchall(s){return new ut({...this._def,catchall:s})}pick(s){const e={};return $e.objectKeys(s).forEach(t=>{s[t]&&this.shape[t]&&(e[t]=this.shape[t])}),new ut({...this._def,shape:()=>e})}omit(s){const e={};return $e.objectKeys(this.shape).forEach(t=>{s[t]||(e[t]=this.shape[t])}),new ut({...this._def,shape:()=>e})}deepPartial(){return Ui(this)}partial(s){const e={};return $e.objectKeys(this.shape).forEach(t=>{const i=this.shape[t];s&&!s[t]?e[t]=i:e[t]=i.optional()}),new ut({...this._def,shape:()=>e})}required(s){const e={};return $e.objectKeys(this.shape).forEach(t=>{if(s&&!s[t])e[t]=this.shape[t];else{let a=this.shape[t];for(;a instanceof Br;)a=a._def.innerType;e[t]=a}}),new ut({...this._def,shape:()=>e})}keyof(){return YE($e.objectKeys(this.shape))}}ut.create=(n,s)=>new ut({shape:()=>n,unknownKeys:"strip",catchall:Hr.create(),typeName:re.ZodObject,...ce(s)}),ut.strictCreate=(n,s)=>new ut({shape:()=>n,unknownKeys:"strict",catchall:Hr.create(),typeName:re.ZodObject,...ce(s)}),ut.lazycreate=(n,s)=>new ut({shape:n,unknownKeys:"strip",catchall:Hr.create(),typeName:re.ZodObject,...ce(s)});class _a extends fe{_parse(s){const{ctx:e}=this._processInputParams(s),t=this._def.options;function i(a){for(const l of a)if(l.result.status==="valid")return l.result;for(const l of a)if(l.result.status==="dirty")return e.common.issues.push(...l.ctx.common.issues),l.result;const o=a.map(l=>new Jt(l.ctx.common.issues));return x(e,{code:G.invalid_union,unionErrors:o}),ie}if(e.common.async)return Promise.all(t.map(async a=>{const o={...e,common:{...e.common,issues:[]},parent:null};return{result:await a._parseAsync({data:e.data,path:e.path,parent:o}),ctx:o}})).then(i);{let a;const o=[];for(const d of t){const h={...e,common:{...e.common,issues:[]},parent:null},y=d._parseSync({data:e.data,path:e.path,parent:h});if(y.status==="valid")return y;y.status==="dirty"&&!a&&(a={result:y,ctx:h}),h.common.issues.length&&o.push(h.common.issues)}if(a)return e.common.issues.push(...a.ctx.common.issues),a.result;const l=o.map(d=>new Jt(d));return x(e,{code:G.invalid_union,unionErrors:l}),ie}}get options(){return this._def.options}}_a.create=(n,s)=>new _a({options:n,typeName:re.ZodUnion,...ce(s)});const zr=n=>n instanceof Ga?zr(n.schema):n instanceof Rr?zr(n.innerType()):n instanceof $a?[n.value]:n instanceof fn?n.options:n instanceof Fa?$e.objectValues(n.enum):n instanceof Ua?zr(n._def.innerType):n instanceof Ba?[void 0]:n instanceof Ma?[null]:n instanceof Br?[void 0,...zr(n.unwrap())]:n instanceof mn?[null,...zr(n.unwrap())]:n instanceof Jd||n instanceof ka?zr(n.unwrap()):n instanceof xa?zr(n._def.innerType):[];class lo extends fe{_parse(s){const{ctx:e}=this._processInputParams(s);if(e.parsedType!==Z.object)return x(e,{code:G.invalid_type,expected:Z.object,received:e.parsedType}),ie;const t=this.discriminator,i=e.data[t],a=this.optionsMap.get(i);return a?e.common.async?a._parseAsync({data:e.data,path:e.path,parent:e}):a._parseSync({data:e.data,path:e.path,parent:e}):(x(e,{code:G.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[t]}),ie)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(s,e,t){const i=new Map;for(const a of e){const o=zr(a.shape[s]);if(!o.length)throw new Error(`A discriminator value for key \`${s}\` could not be extracted from all schema options`);for(const l of o){if(i.has(l))throw new Error(`Discriminator property ${String(s)} has duplicate value ${String(l)}`);i.set(l,a)}}return new lo({typeName:re.ZodDiscriminatedUnion,discriminator:s,options:e,optionsMap:i,...ce(t)})}}function qd(n,s){const e=Yr(n),t=Yr(s);if(n===s)return{valid:!0,data:n};if(e===Z.object&&t===Z.object){const i=$e.objectKeys(s),a=$e.objectKeys(n).filter(l=>i.indexOf(l)!==-1),o={...n,...s};for(const l of a){const d=qd(n[l],s[l]);if(!d.valid)return{valid:!1};o[l]=d.data}return{valid:!0,data:o}}else if(e===Z.array&&t===Z.array){if(n.length!==s.length)return{valid:!1};const i=[];for(let a=0;a<n.length;a++){const o=n[a],l=s[a],d=qd(o,l);if(!d.valid)return{valid:!1};i.push(d.data)}return{valid:!0,data:i}}else return e===Z.date&&t===Z.date&&+n==+s?{valid:!0,data:n}:{valid:!1}}class Na extends fe{_parse(s){const{status:e,ctx:t}=this._processInputParams(s),i=(a,o)=>{if(jd(a)||jd(o))return ie;const l=qd(a.value,o.value);return l.valid?((kd(a)||kd(o))&&e.dirty(),{status:e.value,value:l.data}):(x(t,{code:G.invalid_intersection_types}),ie)};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(([a,o])=>i(a,o)):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}))}}Na.create=(n,s,e)=>new Na({left:n,right:s,typeName:re.ZodIntersection,...ce(e)});class wr extends fe{_parse(s){const{status:e,ctx:t}=this._processInputParams(s);if(t.parsedType!==Z.array)return x(t,{code:G.invalid_type,expected:Z.array,received:t.parsedType}),ie;if(t.data.length<this._def.items.length)return x(t,{code:G.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),ie;!this._def.rest&&t.data.length>this._def.items.length&&(x(t,{code:G.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),e.dirty());const a=[...t.data].map((o,l)=>{const d=this._def.items[l]||this._def.rest;return d?d._parse(new Cr(t,o,t.path,l)):null}).filter(o=>!!o);return t.common.async?Promise.all(a).then(o=>Ot.mergeArray(e,o)):Ot.mergeArray(e,a)}get items(){return this._def.items}rest(s){return new wr({...this._def,rest:s})}}wr.create=(n,s)=>{if(!Array.isArray(n))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new wr({items:n,typeName:re.ZodTuple,rest:null,...ce(s)})};class La extends fe{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(s){const{status:e,ctx:t}=this._processInputParams(s);if(t.parsedType!==Z.object)return x(t,{code:G.invalid_type,expected:Z.object,received:t.parsedType}),ie;const i=[],a=this._def.keyType,o=this._def.valueType;for(const l in t.data)i.push({key:a._parse(new Cr(t,l,t.path,l)),value:o._parse(new Cr(t,t.data[l],t.path,l)),alwaysSet:l in t.data});return t.common.async?Ot.mergeObjectAsync(e,i):Ot.mergeObjectSync(e,i)}get element(){return this._def.valueType}static create(s,e,t){return e instanceof fe?new La({keyType:s,valueType:e,typeName:re.ZodRecord,...ce(t)}):new La({keyType:vr.create(),valueType:s,typeName:re.ZodRecord,...ce(e)})}}class uo extends fe{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(s){const{status:e,ctx:t}=this._processInputParams(s);if(t.parsedType!==Z.map)return x(t,{code:G.invalid_type,expected:Z.map,received:t.parsedType}),ie;const i=this._def.keyType,a=this._def.valueType,o=[...t.data.entries()].map(([l,d],h)=>({key:i._parse(new Cr(t,l,t.path,[h,"key"])),value:a._parse(new Cr(t,d,t.path,[h,"value"]))}));if(t.common.async){const l=new Map;return Promise.resolve().then(async()=>{for(const d of o){const h=await d.key,y=await d.value;if(h.status==="aborted"||y.status==="aborted")return ie;(h.status==="dirty"||y.status==="dirty")&&e.dirty(),l.set(h.value,y.value)}return{status:e.value,value:l}})}else{const l=new Map;for(const d of o){const h=d.key,y=d.value;if(h.status==="aborted"||y.status==="aborted")return ie;(h.status==="dirty"||y.status==="dirty")&&e.dirty(),l.set(h.value,y.value)}return{status:e.value,value:l}}}}uo.create=(n,s,e)=>new uo({valueType:s,keyType:n,typeName:re.ZodMap,...ce(e)});class kn extends fe{_parse(s){const{status:e,ctx:t}=this._processInputParams(s);if(t.parsedType!==Z.set)return x(t,{code:G.invalid_type,expected:Z.set,received:t.parsedType}),ie;const i=this._def;i.minSize!==null&&t.data.size<i.minSize.value&&(x(t,{code:G.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&&(x(t,{code:G.too_big,maximum:i.maxSize.value,type:"set",inclusive:!0,exact:!1,message:i.maxSize.message}),e.dirty());const a=this._def.valueType;function o(d){const h=new Set;for(const y of d){if(y.status==="aborted")return ie;y.status==="dirty"&&e.dirty(),h.add(y.value)}return{status:e.value,value:h}}const l=[...t.data.values()].map((d,h)=>a._parse(new Cr(t,d,t.path,h)));return t.common.async?Promise.all(l).then(d=>o(d)):o(l)}min(s,e){return new kn({...this._def,minSize:{value:s,message:z.toString(e)}})}max(s,e){return new kn({...this._def,maxSize:{value:s,message:z.toString(e)}})}size(s,e){return this.min(s,e).max(s,e)}nonempty(s){return this.min(1,s)}}kn.create=(n,s)=>new kn({valueType:n,minSize:null,maxSize:null,typeName:re.ZodSet,...ce(s)});class xi extends fe{constructor(){super(...arguments),this.validate=this.implement}_parse(s){const{ctx:e}=this._processInputParams(s);if(e.parsedType!==Z.function)return x(e,{code:G.invalid_type,expected:Z.function,received:e.parsedType}),ie;function t(l,d){return io({data:l,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,no(),Gi].filter(h=>!!h),issueData:{code:G.invalid_arguments,argumentsError:d}})}function i(l,d){return io({data:l,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,no(),Gi].filter(h=>!!h),issueData:{code:G.invalid_return_type,returnTypeError:d}})}const a={errorMap:e.common.contextualErrorMap},o=e.data;if(this._def.returns instanceof ji){const l=this;return Gt(async function(...d){const h=new Jt([]),y=await l._def.args.parseAsync(d,a).catch(R=>{throw h.addIssue(t(d,R)),h}),f=await Reflect.apply(o,this,y);return await l._def.returns._def.type.parseAsync(f,a).catch(R=>{throw h.addIssue(i(f,R)),h})})}else{const l=this;return Gt(function(...d){const h=l._def.args.safeParse(d,a);if(!h.success)throw new Jt([t(d,h.error)]);const y=Reflect.apply(o,this,h.data),f=l._def.returns.safeParse(y,a);if(!f.success)throw new Jt([i(y,f.error)]);return f.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...s){return new xi({...this._def,args:wr.create(s).rest(jn.create())})}returns(s){return new xi({...this._def,returns:s})}implement(s){return this.parse(s)}strictImplement(s){return this.parse(s)}static create(s,e,t){return new xi({args:s||wr.create([]).rest(jn.create()),returns:e||jn.create(),typeName:re.ZodFunction,...ce(t)})}}class Ga extends fe{get schema(){return this._def.getter()}_parse(s){const{ctx:e}=this._processInputParams(s);return this._def.getter()._parse({data:e.data,path:e.path,parent:e})}}Ga.create=(n,s)=>new Ga({getter:n,typeName:re.ZodLazy,...ce(s)});class $a extends fe{_parse(s){if(s.data!==this._def.value){const e=this._getOrReturnCtx(s);return x(e,{received:e.data,code:G.invalid_literal,expected:this._def.value}),ie}return{status:"valid",value:s.data}}get value(){return this._def.value}}$a.create=(n,s)=>new $a({value:n,typeName:re.ZodLiteral,...ce(s)});function YE(n,s){return new fn({values:n,typeName:re.ZodEnum,...ce(s)})}class fn extends fe{constructor(){super(...arguments),Va.set(this,void 0)}_parse(s){if(typeof s.data!="string"){const e=this._getOrReturnCtx(s),t=this._def.values;return x(e,{expected:$e.joinValues(t),received:e.parsedType,code:G.invalid_type}),ie}if(ao(this,Va,"f")||kE(this,Va,new Set(this._def.values),"f"),!ao(this,Va,"f").has(s.data)){const e=this._getOrReturnCtx(s),t=this._def.values;return x(e,{received:e.data,code:G.invalid_enum_value,options:t}),ie}return Gt(s.data)}get options(){return this._def.values}get enum(){const s={};for(const e of this._def.values)s[e]=e;return s}get Values(){const s={};for(const e of this._def.values)s[e]=e;return s}get Enum(){const s={};for(const e of this._def.values)s[e]=e;return s}extract(s,e=this._def){return fn.create(s,{...this._def,...e})}exclude(s,e=this._def){return fn.create(this.options.filter(t=>!s.includes(t)),{...this._def,...e})}}Va=new WeakMap,fn.create=YE;class Fa extends fe{constructor(){super(...arguments),Ca.set(this,void 0)}_parse(s){const e=$e.getValidEnumValues(this._def.values),t=this._getOrReturnCtx(s);if(t.parsedType!==Z.string&&t.parsedType!==Z.number){const i=$e.objectValues(e);return x(t,{expected:$e.joinValues(i),received:t.parsedType,code:G.invalid_type}),ie}if(ao(this,Ca,"f")||kE(this,Ca,new Set($e.getValidEnumValues(this._def.values)),"f"),!ao(this,Ca,"f").has(s.data)){const i=$e.objectValues(e);return x(t,{received:t.data,code:G.invalid_enum_value,options:i}),ie}return Gt(s.data)}get enum(){return this._def.values}}Ca=new WeakMap,Fa.create=(n,s)=>new Fa({values:n,typeName:re.ZodNativeEnum,...ce(s)});class ji extends fe{unwrap(){return this._def.type}_parse(s){const{ctx:e}=this._processInputParams(s);if(e.parsedType!==Z.promise&&e.common.async===!1)return x(e,{code:G.invalid_type,expected:Z.promise,received:e.parsedType}),ie;const t=e.parsedType===Z.promise?e.data:Promise.resolve(e.data);return Gt(t.then(i=>this._def.type.parseAsync(i,{path:e.path,errorMap:e.common.contextualErrorMap})))}}ji.create=(n,s)=>new ji({type:n,typeName:re.ZodPromise,...ce(s)});class Rr extends fe{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===re.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(s){const{status:e,ctx:t}=this._processInputParams(s),i=this._def.effect||null,a={addIssue:o=>{x(t,o),o.fatal?e.abort():e.dirty()},get path(){return t.path}};if(a.addIssue=a.addIssue.bind(a),i.type==="preprocess"){const o=i.transform(t.data,a);if(t.common.async)return Promise.resolve(o).then(async l=>{if(e.value==="aborted")return ie;const d=await this._def.schema._parseAsync({data:l,path:t.path,parent:t});return d.status==="aborted"?ie:d.status==="dirty"||e.value==="dirty"?$i(d.value):d});{if(e.value==="aborted")return ie;const l=this._def.schema._parseSync({data:o,path:t.path,parent:t});return l.status==="aborted"?ie:l.status==="dirty"||e.value==="dirty"?$i(l.value):l}}if(i.type==="refinement"){const o=l=>{const d=i.refinement(l,a);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 l};if(t.common.async===!1){const l=this._def.schema._parseSync({data:t.data,path:t.path,parent:t});return l.status==="aborted"?ie:(l.status==="dirty"&&e.dirty(),o(l.value),{status:e.value,value:l.value})}else return this._def.schema._parseAsync({data:t.data,path:t.path,parent:t}).then(l=>l.status==="aborted"?ie:(l.status==="dirty"&&e.dirty(),o(l.value).then(()=>({status:e.value,value:l.value}))))}if(i.type==="transform")if(t.common.async===!1){const o=this._def.schema._parseSync({data:t.data,path:t.path,parent:t});if(!Un(o))return o;const l=i.transform(o.value,a);if(l instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:e.value,value:l}}else return this._def.schema._parseAsync({data:t.data,path:t.path,parent:t}).then(o=>Un(o)?Promise.resolve(i.transform(o.value,a)).then(l=>({status:e.value,value:l})):o);$e.assertNever(i)}}Rr.create=(n,s,e)=>new Rr({schema:n,typeName:re.ZodEffects,effect:s,...ce(e)}),Rr.createWithPreprocess=(n,s,e)=>new Rr({schema:s,effect:{type:"preprocess",transform:n},typeName:re.ZodEffects,...ce(e)});class Br extends fe{_parse(s){return this._getType(s)===Z.undefined?Gt(void 0):this._def.innerType._parse(s)}unwrap(){return this._def.innerType}}Br.create=(n,s)=>new Br({innerType:n,typeName:re.ZodOptional,...ce(s)});class mn extends fe{_parse(s){return this._getType(s)===Z.null?Gt(null):this._def.innerType._parse(s)}unwrap(){return this._def.innerType}}mn.create=(n,s)=>new mn({innerType:n,typeName:re.ZodNullable,...ce(s)});class Ua extends fe{_parse(s){const{ctx:e}=this._processInputParams(s);let t=e.data;return e.parsedType===Z.undefined&&(t=this._def.defaultValue()),this._def.innerType._parse({data:t,path:e.path,parent:e})}removeDefault(){return this._def.innerType}}Ua.create=(n,s)=>new Ua({innerType:n,typeName:re.ZodDefault,defaultValue:typeof s.default=="function"?s.default:()=>s.default,...ce(s)});class xa extends fe{_parse(s){const{ctx:e}=this._processInputParams(s),t={...e,common:{...e.common,issues:[]}},i=this._def.innerType._parse({data:t.data,path:t.path,parent:{...t}});return Oa(i)?i.then(a=>({status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new Jt(t.common.issues)},input:t.data})})):{status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new Jt(t.common.issues)},input:t.data})}}removeCatch(){return this._def.innerType}}xa.create=(n,s)=>new xa({innerType:n,typeName:re.ZodCatch,catchValue:typeof s.catch=="function"?s.catch:()=>s.catch,...ce(s)});class co extends fe{_parse(s){if(this._getType(s)!==Z.nan){const t=this._getOrReturnCtx(s);return x(t,{code:G.invalid_type,expected:Z.nan,received:t.parsedType}),ie}return{status:"valid",value:s.data}}}co.create=n=>new co({typeName:re.ZodNaN,...ce(n)});const XP=Symbol("zod_brand");class Jd extends fe{_parse(s){const{ctx:e}=this._processInputParams(s),t=e.data;return this._def.type._parse({data:t,path:e.path,parent:e})}unwrap(){return this._def.type}}class ja extends fe{_parse(s){const{status:e,ctx:t}=this._processInputParams(s);if(t.common.async)return(async()=>{const a=await this._def.in._parseAsync({data:t.data,path:t.path,parent:t});return a.status==="aborted"?ie:a.status==="dirty"?(e.dirty(),$i(a.value)):this._def.out._parseAsync({data:a.value,path:t.path,parent:t})})();{const i=this._def.in._parseSync({data:t.data,path:t.path,parent:t});return i.status==="aborted"?ie:i.status==="dirty"?(e.dirty(),{status:"dirty",value:i.value}):this._def.out._parseSync({data:i.value,path:t.path,parent:t})}}static create(s,e){return new ja({in:s,out:e,typeName:re.ZodPipeline})}}class ka extends fe{_parse(s){const e=this._def.innerType._parse(s),t=i=>(Un(i)&&(i.value=Object.freeze(i.value)),i);return Oa(e)?e.then(i=>t(i)):t(e)}unwrap(){return this._def.innerType}}ka.create=(n,s)=>new ka({innerType:n,typeName:re.ZodReadonly,...ce(s)});function HE(n,s={},e){return n?Fi.create().superRefine((t,i)=>{var a,o;if(!n(t)){const l=typeof s=="function"?s(t):typeof s=="string"?{message:s}:s,d=(o=(a=l.fatal)!==null&&a!==void 0?a:e)!==null&&o!==void 0?o:!0,h=typeof l=="string"?{message:l}:l;i.addIssue({code:"custom",...h,fatal:d})}}):Fi.create()}const QP={object:ut.lazycreate};var re;(function(n){n.ZodString="ZodString",n.ZodNumber="ZodNumber",n.ZodNaN="ZodNaN",n.ZodBigInt="ZodBigInt",n.ZodBoolean="ZodBoolean",n.ZodDate="ZodDate",n.ZodSymbol="ZodSymbol",n.ZodUndefined="ZodUndefined",n.ZodNull="ZodNull",n.ZodAny="ZodAny",n.ZodUnknown="ZodUnknown",n.ZodNever="ZodNever",n.ZodVoid="ZodVoid",n.ZodArray="ZodArray",n.ZodObject="ZodObject",n.ZodUnion="ZodUnion",n.ZodDiscriminatedUnion="ZodDiscriminatedUnion",n.ZodIntersection="ZodIntersection",n.ZodTuple="ZodTuple",n.ZodRecord="ZodRecord",n.ZodMap="ZodMap",n.ZodSet="ZodSet",n.ZodFunction="ZodFunction",n.ZodLazy="ZodLazy",n.ZodLiteral="ZodLiteral",n.ZodEnum="ZodEnum",n.ZodEffects="ZodEffects",n.ZodNativeEnum="ZodNativeEnum",n.ZodOptional="ZodOptional",n.ZodNullable="ZodNullable",n.ZodDefault="ZodDefault",n.ZodCatch="ZodCatch",n.ZodPromise="ZodPromise",n.ZodBranded="ZodBranded",n.ZodPipeline="ZodPipeline",n.ZodReadonly="ZodReadonly"})(re||(re={}));const eS=(n,s={message:`Input not instance of ${n.name}`})=>HE(e=>e instanceof n,s),po=vr.create,Wd=hn.create,tS=co.create,rS=yn.create,Yd=wa.create,zE=xn.create,nS=so.create,iS=Ba.create,KE=Ma.create,aS=Fi.create,ho=jn.create,sS=Hr.create,oS=oo.create,lS=Er.create,XE=ut.create,dS=ut.strictCreate,uS=_a.create,cS=lo.create,pS=Na.create,hS=wr.create,QE=La.create,yS=uo.create,fS=kn.create,mS=xi.create,TS=Ga.create,vS=$a.create,eR=fn.create,ES=Fa.create,RS=ji.create,tR=Rr.create,gS=Br.create,bS=mn.create,IS=Rr.createWithPreprocess,AS=ja.create;var p=Object.freeze({__proto__:null,defaultErrorMap:Gi,setErrorMap:VP,getErrorMap:no,makeIssue:io,EMPTY_PATH:CP,addIssueToContext:x,ParseStatus:Ot,INVALID:ie,DIRTY:$i,OK:Gt,isAborted:jd,isDirty:kd,isValid:Un,isAsync:Oa,get util(){return $e},get objectUtil(){return xd},ZodParsedType:Z,getParsedType:Yr,ZodType:fe,datetimeRegex:WE,ZodString:vr,ZodNumber:hn,ZodBigInt:yn,ZodBoolean:wa,ZodDate:xn,ZodSymbol:so,ZodUndefined:Ba,ZodNull:Ma,ZodAny:Fi,ZodUnknown:jn,ZodNever:Hr,ZodVoid:oo,ZodArray:Er,ZodObject:ut,ZodUnion:_a,ZodDiscriminatedUnion:lo,ZodIntersection:Na,ZodTuple:wr,ZodRecord:La,ZodMap:uo,ZodSet:kn,ZodFunction:xi,ZodLazy:Ga,ZodLiteral:$a,ZodEnum:fn,ZodNativeEnum:Fa,ZodPromise:ji,ZodEffects:Rr,ZodTransformer:Rr,ZodOptional:Br,ZodNullable:mn,ZodDefault:Ua,ZodCatch:xa,ZodNaN:co,BRAND:XP,ZodBranded:Jd,ZodPipeline:ja,ZodReadonly:ka,custom:HE,Schema:fe,ZodSchema:fe,late:QP,get ZodFirstPartyTypeKind(){return re},coerce:{string:n=>vr.create({...n,coerce:!0}),number:n=>hn.create({...n,coerce:!0}),boolean:n=>wa.create({...n,coerce:!0}),bigint:n=>yn.create({...n,coerce:!0}),date:n=>xn.create({...n,coerce:!0})},any:aS,array:lS,bigint:rS,boolean:Yd,date:zE,discriminatedUnion:cS,effect:tR,enum:eR,function:mS,instanceof:eS,intersection:pS,lazy:TS,literal:vS,map:yS,nan:tS,nativeEnum:ES,never:sS,null:KE,nullable:bS,number:Wd,object:XE,oboolean:()=>Yd().optional(),onumber:()=>Wd().optional(),optional:gS,ostring:()=>po().optional(),pipeline:AS,preprocess:IS,promise:RS,record:QE,set:fS,strictObject:dS,string:po,symbol:nS,transformer:tR,tuple:hS,undefined:iS,union:uS,unknown:ho,void:oS,NEVER:ie,ZodIssueCode:G,quotelessJson:OP,ZodError:Jt});function rR(n){var i,a,o;if(!(n!=null&&n.dataType))return ho();const s=!n.required,e=n.dataType.isList||!1;let t=ho();if(((i=n.dataType.entity)==null?void 0:i.type)===r.PrimitiveEntity)switch(n.dataType.entity.name){case C.String:t=po();break;case C.KeyValue:t=QE(ho());break;case C.Number:t=Wd();break;case C.Boolean:t=Yd();break;case C.Date:t=zE();break;case C.Enum:{const l=n.dataType.options||[];if(l.length===0)throw new Error(`Enum property ${n.name} has no options`);t=eR(l);break}case C.Null:t=KE();break;case C.UUID:t=po().uuid();break}else if(((a=n.dataType.entity)==null?void 0:a.type)===r.DefinitionEntity)t=nR(n.dataType.entity);else throw new Error(`Unsupported data type validation: ${(o=n.dataType.entity)==null?void 0:o.type}`);return s&&(t=t.nullable()),e&&(t=t.array()),t}function nR(n){const s=XE({});for(const e of n.properties){const t=rR(e);s.shape[e.name]=t}return s}function iR(n){const s=n.rangeStart;return new Date(s.getTime()+Math.random()*(Date.now()-s.getTime()))}function aR(n){const s=n.rangeEnd;return new Date(Math.random()*s.getTime())}function sR(n){const s=n.rangeStart,e=n.rangeEnd;return new Date(s.getTime()+Math.random()*(e.getTime()-s.getTime()))}function oR(n){return n.rangeStart&&n.rangeEnd?sR(n):n.rangeStart?iR(n):n.rangeEnd?aR(n):new Date}var DS=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function lR(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var dR={},yo={},fo={};Object.defineProperty(fo,"__esModule",{value:!0}),fo.default=SS;let mo;const PS=new Uint8Array(16);function SS(){if(!mo&&(mo=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!mo))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return mo(PS)}var Tn={},Zn={},To={};Object.defineProperty(To,"__esModule",{value:!0}),To.default=void 0;var OS=/^(?:[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;To.default=OS,Object.defineProperty(Zn,"__esModule",{value:!0}),Zn.default=void 0;var VS=CS(To);function CS(n){return n&&n.__esModule?n:{default:n}}function wS(n){return typeof n=="string"&&VS.default.test(n)}var BS=wS;Zn.default=BS,Object.defineProperty(Tn,"__esModule",{value:!0}),Tn.default=void 0,Tn.unsafeStringify=uR;var MS=_S(Zn);function _S(n){return n&&n.__esModule?n:{default:n}}const St=[];for(let n=0;n<256;++n)St.push((n+256).toString(16).slice(1));function uR(n,s=0){return St[n[s+0]]+St[n[s+1]]+St[n[s+2]]+St[n[s+3]]+"-"+St[n[s+4]]+St[n[s+5]]+"-"+St[n[s+6]]+St[n[s+7]]+"-"+St[n[s+8]]+St[n[s+9]]+"-"+St[n[s+10]]+St[n[s+11]]+St[n[s+12]]+St[n[s+13]]+St[n[s+14]]+St[n[s+15]]}function NS(n,s=0){const e=uR(n,s);if(!(0,MS.default)(e))throw TypeError("Stringified UUID is invalid");return e}var LS=NS;Tn.default=LS,Object.defineProperty(yo,"__esModule",{value:!0}),yo.default=void 0;var GS=FS(fo),$S=Tn;function FS(n){return n&&n.__esModule?n:{default:n}}let cR,Hd,zd=0,Kd=0;function US(n,s,e){let t=s&&e||0;const i=s||new Array(16);n=n||{};let a=n.node||cR,o=n.clockseq!==void 0?n.clockseq:Hd;if(a==null||o==null){const v=n.random||(n.rng||GS.default)();a==null&&(a=cR=[v[0]|1,v[1],v[2],v[3],v[4],v[5]]),o==null&&(o=Hd=(v[6]<<8|v[7])&16383)}let l=n.msecs!==void 0?n.msecs:Date.now(),d=n.nsecs!==void 0?n.nsecs:Kd+1;const h=l-zd+(d-Kd)/1e4;if(h<0&&n.clockseq===void 0&&(o=o+1&16383),(h<0||l>zd)&&n.nsecs===void 0&&(d=0),d>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");zd=l,Kd=d,Hd=o,l+=122192928e5;const y=((l&268435455)*1e4+d)%4294967296;i[t++]=y>>>24&255,i[t++]=y>>>16&255,i[t++]=y>>>8&255,i[t++]=y&255;const f=l/4294967296*1e4&268435455;i[t++]=f>>>8&255,i[t++]=f&255,i[t++]=f>>>24&15|16,i[t++]=f>>>16&255,i[t++]=o>>>8|128,i[t++]=o&255;for(let v=0;v<6;++v)i[t+v]=a[v];return s||(0,$S.unsafeStringify)(i)}var xS=US;yo.default=xS;var vo={},vn={},Za={};Object.defineProperty(Za,"__esModule",{value:!0}),Za.default=void 0;var jS=kS(Zn);function kS(n){return n&&n.__esModule?n:{default:n}}function ZS(n){if(!(0,jS.default)(n))throw TypeError("Invalid UUID");let s;const e=new Uint8Array(16);return e[0]=(s=parseInt(n.slice(0,8),16))>>>24,e[1]=s>>>16&255,e[2]=s>>>8&255,e[3]=s&255,e[4]=(s=parseInt(n.slice(9,13),16))>>>8,e[5]=s&255,e[6]=(s=parseInt(n.slice(14,18),16))>>>8,e[7]=s&255,e[8]=(s=parseInt(n.slice(19,23),16))>>>8,e[9]=s&255,e[10]=(s=parseInt(n.slice(24,36),16))/1099511627776&255,e[11]=s/4294967296&255,e[12]=s>>>24&255,e[13]=s>>>16&255,e[14]=s>>>8&255,e[15]=s&255,e}var qS=ZS;Za.default=qS,Object.defineProperty(vn,"__esModule",{value:!0}),vn.URL=vn.DNS=void 0,vn.default=zS;var JS=Tn,WS=YS(Za);function YS(n){return n&&n.__esModule?n:{default:n}}function HS(n){n=unescape(encodeURIComponent(n));const s=[];for(let e=0;e<n.length;++e)s.push(n.charCodeAt(e));return s}const pR="6ba7b810-9dad-11d1-80b4-00c04fd430c8";vn.DNS=pR;const hR="6ba7b811-9dad-11d1-80b4-00c04fd430c8";vn.URL=hR;function zS(n,s,e){function t(i,a,o,l){var d;if(typeof i=="string"&&(i=HS(i)),typeof a=="string"&&(a=(0,WS.default)(a)),((d=a)===null||d===void 0?void 0:d.length)!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let h=new Uint8Array(16+i.length);if(h.set(a),h.set(i,a.length),h=e(h),h[6]=h[6]&15|s,h[8]=h[8]&63|128,o){l=l||0;for(let y=0;y<16;++y)o[l+y]=h[y];return o}return(0,JS.unsafeStringify)(h)}try{t.name=n}catch{}return t.DNS=pR,t.URL=hR,t}var Eo={};Object.defineProperty(Eo,"__esModule",{value:!0}),Eo.default=void 0;function KS(n){if(typeof n=="string"){const s=unescape(encodeURIComponent(n));n=new Uint8Array(s.length);for(let e=0;e<s.length;++e)n[e]=s.charCodeAt(e)}return XS(QS(eO(n),n.length*8))}function XS(n){const s=[],e=n.length*32,t="0123456789abcdef";for(let i=0;i<e;i+=8){const a=n[i>>5]>>>i%32&255,o=parseInt(t.charAt(a>>>4&15)+t.charAt(a&15),16);s.push(o)}return s}function yR(n){return(n+64>>>9<<4)+14+1}function QS(n,s){n[s>>5]|=128<<s%32,n[yR(s)-1]=s;let e=1732584193,t=-271733879,i=-1732584194,a=271733878;for(let o=0;o<n.length;o+=16){const l=e,d=t,h=i,y=a;e=Vt(e,t,i,a,n[o],7,-680876936),a=Vt(a,e,t,i,n[o+1],12,-389564586),i=Vt(i,a,e,t,n[o+2],17,606105819),t=Vt(t,i,a,e,n[o+3],22,-1044525330),e=Vt(e,t,i,a,n[o+4],7,-176418897),a=Vt(a,e,t,i,n[o+5],12,1200080426),i=Vt(i,a,e,t,n[o+6],17,-1473231341),t=Vt(t,i,a,e,n[o+7],22,-45705983),e=Vt(e,t,i,a,n[o+8],7,1770035416),a=Vt(a,e,t,i,n[o+9],12,-1958414417),i=Vt(i,a,e,t,n[o+10],17,-42063),t=Vt(t,i,a,e,n[o+11],22,-1990404162),e=Vt(e,t,i,a,n[o+12],7,1804603682),a=Vt(a,e,t,i,n[o+13],12,-40341101),i=Vt(i,a,e,t,n[o+14],17,-1502002290),t=Vt(t,i,a,e,n[o+15],22,1236535329),e=Ct(e,t,i,a,n[o+1],5,-165796510),a=Ct(a,e,t,i,n[o+6],9,-1069501632),i=Ct(i,a,e,t,n[o+11],14,643717713),t=Ct(t,i,a,e,n[o],20,-373897302),e=Ct(e,t,i,a,n[o+5],5,-701558691),a=Ct(a,e,t,i,n[o+10],9,38016083),i=Ct(i,a,e,t,n[o+15],14,-660478335),t=Ct(t,i,a,e,n[o+4],20,-405537848),e=Ct(e,t,i,a,n[o+9],5,568446438),a=Ct(a,e,t,i,n[o+14],9,-1019803690),i=Ct(i,a,e,t,n[o+3],14,-187363961),t=Ct(t,i,a,e,n[o+8],20,1163531501),e=Ct(e,t,i,a,n[o+13],5,-1444681467),a=Ct(a,e,t,i,n[o+2],9,-51403784),i=Ct(i,a,e,t,n[o+7],14,1735328473),t=Ct(t,i,a,e,n[o+12],20,-1926607734),e=wt(e,t,i,a,n[o+5],4,-378558),a=wt(a,e,t,i,n[o+8],11,-2022574463),i=wt(i,a,e,t,n[o+11],16,1839030562),t=wt(t,i,a,e,n[o+14],23,-35309556),e=wt(e,t,i,a,n[o+1],4,-1530992060),a=wt(a,e,t,i,n[o+4],11,1272893353),i=wt(i,a,e,t,n[o+7],16,-155497632),t=wt(t,i,a,e,n[o+10],23,-1094730640),e=wt(e,t,i,a,n[o+13],4,681279174),a=wt(a,e,t,i,n[o],11,-358537222),i=wt(i,a,e,t,n[o+3],16,-722521979),t=wt(t,i,a,e,n[o+6],23,76029189),e=wt(e,t,i,a,n[o+9],4,-640364487),a=wt(a,e,t,i,n[o+12],11,-421815835),i=wt(i,a,e,t,n[o+15],16,530742520),t=wt(t,i,a,e,n[o+2],23,-995338651),e=Bt(e,t,i,a,n[o],6,-198630844),a=Bt(a,e,t,i,n[o+7],10,1126891415),i=Bt(i,a,e,t,n[o+14],15,-1416354905),t=Bt(t,i,a,e,n[o+5],21,-57434055),e=Bt(e,t,i,a,n[o+12],6,1700485571),a=Bt(a,e,t,i,n[o+3],10,-1894986606),i=Bt(i,a,e,t,n[o+10],15,-1051523),t=Bt(t,i,a,e,n[o+1],21,-2054922799),e=Bt(e,t,i,a,n[o+8],6,1873313359),a=Bt(a,e,t,i,n[o+15],10,-30611744),i=Bt(i,a,e,t,n[o+6],15,-1560198380),t=Bt(t,i,a,e,n[o+13],21,1309151649),e=Bt(e,t,i,a,n[o+4],6,-145523070),a=Bt(a,e,t,i,n[o+11],10,-1120210379),i=Bt(i,a,e,t,n[o+2],15,718787259),t=Bt(t,i,a,e,n[o+9],21,-343485551),e=En(e,l),t=En(t,d),i=En(i,h),a=En(a,y)}return[e,t,i,a]}function eO(n){if(n.length===0)return[];const s=n.length*8,e=new Uint32Array(yR(s));for(let t=0;t<s;t+=8)e[t>>5]|=(n[t/8]&255)<<t%32;return e}function En(n,s){const e=(n&65535)+(s&65535);return(n>>16)+(s>>16)+(e>>16)<<16|e&65535}function tO(n,s){return n<<s|n>>>32-s}function Ro(n,s,e,t,i,a){return En(tO(En(En(s,n),En(t,a)),i),e)}function Vt(n,s,e,t,i,a,o){return Ro(s&e|~s&t,n,s,i,a,o)}function Ct(n,s,e,t,i,a,o){return Ro(s&t|e&~t,n,s,i,a,o)}function wt(n,s,e,t,i,a,o){return Ro(s^e^t,n,s,i,a,o)}function Bt(n,s,e,t,i,a,o){return Ro(e^(s|~t),n,s,i,a,o)}var rO=KS;Eo.default=rO,Object.defineProperty(vo,"__esModule",{value:!0}),vo.default=void 0;var nO=fR(vn),iO=fR(Eo);function fR(n){return n&&n.__esModule?n:{default:n}}var aO=(0,nO.default)("v3",48,iO.default);vo.default=aO;var go={},bo={};Object.defineProperty(bo,"__esModule",{value:!0}),bo.default=void 0;var sO={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};bo.default=sO,Object.defineProperty(go,"__esModule",{value:!0}),go.default=void 0;var mR=TR(bo),oO=TR(fo),lO=Tn;function TR(n){return n&&n.__esModule?n:{default:n}}function dO(n,s,e){if(mR.default.randomUUID&&!s&&!n)return mR.default.randomUUID();n=n||{};const t=n.random||(n.rng||oO.default)();if(t[6]=t[6]&15|64,t[8]=t[8]&63|128,s){e=e||0;for(let i=0;i<16;++i)s[e+i]=t[i];return s}return(0,lO.unsafeStringify)(t)}var uO=dO;go.default=uO;var Io={},Ao={};Object.defineProperty(Ao,"__esModule",{value:!0}),Ao.default=void 0;function cO(n,s,e,t){switch(n){case 0:return s&e^~s&t;case 1:return s^e^t;case 2:return s&e^s&t^e&t;case 3:return s^e^t}}function Xd(n,s){return n<<s|n>>>32-s}function pO(n){const s=[1518500249,1859775393,2400959708,3395469782],e=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof n=="string"){const o=unescape(encodeURIComponent(n));n=[];for(let l=0;l<o.length;++l)n.push(o.charCodeAt(l))}else Array.isArray(n)||(n=Array.prototype.slice.call(n));n.push(128);const t=n.length/4+2,i=Math.ceil(t/16),a=new Array(i);for(let o=0;o<i;++o){const l=new Uint32Array(16);for(let d=0;d<16;++d)l[d]=n[o*64+d*4]<<24|n[o*64+d*4+1]<<16|n[o*64+d*4+2]<<8|n[o*64+d*4+3];a[o]=l}a[i-1][14]=(n.length-1)*8/Math.pow(2,32),a[i-1][14]=Math.floor(a[i-1][14]),a[i-1][15]=(n.length-1)*8&4294967295;for(let o=0;o<i;++o){const l=new Uint32Array(80);for(let R=0;R<16;++R)l[R]=a[o][R];for(let R=16;R<80;++R)l[R]=Xd(l[R-3]^l[R-8]^l[R-14]^l[R-16],1);let d=e[0],h=e[1],y=e[2],f=e[3],v=e[4];for(let R=0;R<80;++R){const I=Math.floor(R/20),D=Xd(d,5)+cO(I,h,y,f)+v+s[I]+l[R]>>>0;v=f,f=y,y=Xd(h,30)>>>0,h=d,d=D}e[0]=e[0]+d>>>0,e[1]=e[1]+h>>>0,e[2]=e[2]+y>>>0,e[3]=e[3]+f>>>0,e[4]=e[4]+v>>>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 hO=pO;Ao.default=hO,Object.defineProperty(Io,"__esModule",{value:!0}),Io.default=void 0;var yO=vR(vn),fO=vR(Ao);function vR(n){return n&&n.__esModule?n:{default:n}}var mO=(0,yO.default)("v5",80,fO.default);Io.default=mO;var Do={};Object.defineProperty(Do,"__esModule",{value:!0}),Do.default=void 0;var TO="00000000-0000-0000-0000-000000000000";Do.default=TO;var Po={};Object.defineProperty(Po,"__esModule",{value:!0}),Po.default=void 0;var vO=EO(Zn);function EO(n){return n&&n.__esModule?n:{default:n}}function RO(n){if(!(0,vO.default)(n))throw TypeError("Invalid UUID");return parseInt(n.slice(14,15),16)}var gO=RO;Po.default=gO,function(n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"NIL",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(n,"parse",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(n,"stringify",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(n,"v1",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(n,"v3",{enumerable:!0,get:function(){return e.default}}),Object.defineProperty(n,"v4",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(n,"v5",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(n,"validate",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(n,"version",{enumerable:!0,get:function(){return o.default}});var s=y(yo),e=y(vo),t=y(go),i=y(Io),a=y(Do),o=y(Po),l=y(Zn),d=y(Tn),h=y(Za);function y(f){return f&&f.__esModule?f:{default:f}}}(dR);function Qd(n,s){if(!n||!s||!n.length||!s.length)throw new Error("Bad alphabet");this.srcAlphabet=n,this.dstAlphabet=s}Qd.prototype.convert=function(n){var s,e,t,i={},a=this.srcAlphabet.length,o=this.dstAlphabet.length,l=n.length,d=typeof n=="string"?"":[];if(!this.isValid(n))throw new Error('Number "'+n+'" contains of non-alphabetic digits ('+this.srcAlphabet+")");if(this.srcAlphabet===this.dstAlphabet)return n;for(s=0;s<l;s++)i[s]=this.srcAlphabet.indexOf(n[s]);do{for(e=0,t=0,s=0;s<l;s++)e=e*a+i[s],e>=o?(i[t++]=parseInt(e/o,10),e=e%o):t>0&&(i[t++]=0);l=t,d=this.dstAlphabet.slice(e,e+1).concat(d)}while(t!==0);return d},Qd.prototype.isValid=function(n){for(var s=0;s<n.length;++s)if(this.srcAlphabet.indexOf(n[s])===-1)return!1;return!0};var bO=Qd,IO=bO;function qa(n,s){var e=new IO(n,s);return function(t){return e.convert(t)}}qa.BIN="01",qa.OCT="01234567",qa.DEC="0123456789",qa.HEX="0123456789abcdef";var AO=qa;const{v4:eu,validate:DO}=dR,So=AO,tu={cookieBase90:"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!#$%&'()*+-./:<=>?@[]^_`{|}~",flickrBase58:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ",uuid25Base36:"0123456789abcdefghijklmnopqrstuvwxyz"},PO={consistentLength:!0};let ru;const ER=(n,s,e)=>{const t=s(n.toLowerCase().replace(/-/g,""));return!e||!e.consistentLength?t:t.padStart(e.shortIdLength,e.paddingChar)},RR=(n,s)=>{const t=s(n).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("-")},SO=n=>Math.ceil(Math.log(2**128)/Math.log(n));var OO=(()=>{const n=(s,e)=>{const t=s||tu.flickrBase58,i={...PO,...e};if([...new Set(Array.from(t))].length!==t.length)throw new Error("The provided Alphabet has duplicate characters resulting in unreliable results");const a=SO(t.length),o={shortIdLength:a,consistentLength:i.consistentLength,paddingChar:t[0]},l=So(So.HEX,t),d=So(t,So.HEX),h=()=>ER(eu(),l,o),f={alphabet:t,fromUUID:v=>ER(v,l,o),maxLength:a,generate:h,new:h,toUUID:v=>RR(v,d),uuid:eu,validate:(v,R=!1)=>{if(!v||typeof v!="string")return!1;const I=i.consistentLength?v.length===a:v.length<=a,D=v.split("").every(A=>t.includes(A));return R===!1?I&&D:I&&D&&DO(RR(v,d))}};return Object.freeze(f),f};return n.constants=tu,n.uuid=eu,n.generate=()=>(ru||(ru=n(tu.flickrBase58).generate),ru()),n})();const Oo=lR(OO);function gR(){return Oo().uuid()}function bR(n){return n.rangeStart+Math.random()}function IR(n){const s=n.rangeEnd;return Math.random()*s}function AR(n){const s=n.rangeStart,e=n.rangeEnd;return Math.random()*(e-s)+s}function DR(n){return n.rangeStart&&n.rangeEnd?AR(n):n.rangeStart?bR(n):n.rangeEnd?IR(n):Math.random()}function PR(n){const s=n.rangeStart;return Math.random().toString(36).substring(s)}function SR(n){const s=n.rangeEnd;return Math.random().toString(36).substring(0,s)}function OR(n){const s=n.rangeStart,e=n.rangeEnd;return Math.random().toString(36).substring(s,e)}function VR(n){return n.rangeStart&&n.rangeEnd?OR(n):n.rangeStart?PR(n):n.rangeEnd?SR(n):Math.random().toString(36)}function CR(n){return Math.random()>=.5}function VO(n){if(!n||!n.autogeneration)return null;switch(n.autogeneration.type){case st.CurrentDateAndTime:if(n.name===C.Date)return new Date;case st.Random:{if(n.name===C.Date)return oR(n.autogeneration);if(n.name===C.Number)return DR(n.autogeneration);if(n.name===C.String)return VR(n.autogeneration);if(n.name===C.Boolean)return CR(n.autogeneration)}case st.Unique:if(n.name===C.UUID)return gR();default:throw new Error(`Generating a ${n.autogeneration.type} value for a ${n.name} is not supported`)}}const ne="e7eb5382-3d99-44fd-972a-b8b1e819f6be",wR="global-user-variable-id",nu="last-executed-timestamp-variable-id",CO={id:"alternative-relational-database-entity-identifier-property-data-type-ref-id",type:r.GenericReference,entityId:"alternative-relational-database-entity-identifier-property-id",version:"1",entityType:r.ValueDescriptor},wO={id:"alternative-relational-database-entity-identifier-property-ref-id",type:r.GenericReference,entityId:"alternative-relational-database-entity-identifier-property-id",version:"1",entityType:r.Property},BO={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:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:X,asType:!1,parent:wO},Vo={id:"alternative-relational-database-entity-ref-id",type:r.GenericReference,entityId:"alternative-relational-database-entity-id",version:"1",entityType:r.DefinitionEntity},MO={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:r.Property,private:!1,abstract:!1,implements:Hs,static:!0,index:0,defaultValue:{id:"alternative-relational-database-entity-identifier-property-data-type-default-value-id",type:r.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:C.String,value:null,parent:CO,autogeneration:{type:st.Unique,rangeStart:null,rangeEnd:null},valueAsType:null},dataType:BO,description:"The name of the main database inside of the server instance where the data will be stored.",parent:Vo};r.GenericReference,r.ValueDescriptor;const _O={id:"alternative-relational-database-entity-username-property-ref-id",type:r.GenericReference,entityId:"alternative-relational-database-entity-username-property-id",version:"1",entityType:r.Property},NO={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:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:X,asType:!1,parent:_O},LO={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:r.Property,private:!1,abstract:!1,implements:zs,static:!0,index:1,defaultValue:null,dataType:NO,description:"The username that will be used to connect to the database.",parent:Vo};r.GenericReference,r.ValueDescriptor;const GO={id:"alternative-relational-database-entity-password-property-ref-id",type:r.GenericReference,entityId:"alternative-relational-database-entity-password-property-id",version:"1",entityType:r.Property},$O={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:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:X,asType:!1,parent:GO},FO={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:r.Property,private:!1,abstract:!1,implements:Ks,static:!0,index:2,defaultValue:null,dataType:$O,description:"The password that will be used to connect to the database.",parent:Vo},UO={id:"alternative-relational-database-entity-min-size-property-data-type-ref-id",type:r.GenericReference,entityId:"alternative-relational-database-entity-min-size-property-id",version:"1",entityType:r.ValueDescriptor},xO={id:"alternative-relational-database-entity-min-size-property-ref-id",type:r.GenericReference,entityId:"alternative-relational-database-entity-min-size-property-id",version:"1",entityType:r.Property},jO={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:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ue,asType:!1,parent:xO},kO={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:r.Property,private:!1,abstract:!1,implements:Xs,static:!0,index:3,defaultValue:{id:"alternative-relational-database-entity-min-size-property-data-type-default-value-id",type:r.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:C.Number,value:6,parent:UO,autogeneration:null,valueAsType:null},dataType:jO,description:"The minimum size of the database in GB.",parent:Vo},ZO={id:"alternative-relational-database-entity-parent-ref-id",type:r.GenericReference,entityId:ne,version:"1",entityType:r.Project},iu={id:"alternative-relational-database-entity-id",type:r.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:[MO,LO,FO,kO],methods:[],abstractMethods:[],extends:[],implements:[Vr],x:0,y:0,parent:ZO},qO={id:"animal-prototype-database-property-ref-id",type:r.GenericReference,entityId:"animal-prototype-database-property-id",version:"1",entityType:r.Property},JO={id:"animal-prototype-database-property-data-type-default-value-parent-ref-id",type:r.GenericReference,entityId:"animal-prototype-database-property-id",version:"1",entityType:r.Property},WO={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:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:Vr,asType:!1,parent:qO},YO={id:"animal-prototype-database-property-parent-ref-id",type:r.GenericReference,entityId:"83eaa847-e62b-4192-84fb-3d8d6f5ea970",version:"1",entityType:r.DefinitionEntity},HO={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:r.Property,private:!1,abstract:!1,implements:Mi,static:!0,index:0,defaultValue:{id:"animal-prototype-database-property-data-type-default-value-id",type:r.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:null,name:C.EntityTemplate,valueAsType:iu,autogeneration:null,parent:JO},dataType:WO,description:"The database that the entity belongs to.",parent:YO},zO={type:r.GenericReference,id:"291e4d4f-01d8-40a0-90dc-5f1ac6636e9b",version:"1",entityType:r.Property,entityId:"5cb617b0-92be-4dbe-a007-49093368d94f"},KO={like:!1,inferred:!1,id:"c1930577-9e79-48a6-8905-be24611015c1",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:X,asType:!1,isList:!1,parent:zO},XO={type:r.GenericReference,id:"animal-name-property-parent-ref-id",version:"1",entityType:r.DefinitionEntity,entityId:"83eaa847-e62b-4192-84fb-3d8d6f5ea970"},QO={constant:!1,hidden:!1,required:!0,type:r.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:_i,static:!1,private:!1,index:0,dataType:KO,abstract:!1,parent:XO},eV={type:r.GenericReference,id:"abc565de-4c83-4936-bc48-4013bef213b8",version:"1",entityType:r.Project,entityId:ne},tV={type:r.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:[HO,QO],methods:[],extends:[],implements:[gt],x:0,y:0,parent:eV},Ja="base-table-entity",BR="base-table-entity-identifier-property-id";r.GenericReference,r.Property,r.GenericReference,r.Property;const rV={id:"base-table-entity-identifier-property-data-type-ref-id",type:r.GenericReference,entityId:BR,version:"1",entityType:r.Property},nV={id:"base-table-entity-identifier-property-ref-id",type:r.GenericReference,entityId:"base-table-entity-identifier-property-id",version:"1",entityType:r.Property},iV={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:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:qr,asType:!1,parent:nV},aV={id:"base-table-entity-identifier-property-parent-ref-id",type:r.GenericReference,entityId:Ja,version:"1",entityType:r.DefinitionEntity};r.Property,r.LiteralValue,C.UUID,st.Unique,r.GenericReference,r.Property;const sV={id:"base-table-entity-deleted-at-property-ref-id",type:r.GenericReference,entityId:"base-table-entity-deleted-at-property-id",version:"1",entityType:r.Property},oV={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:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:Pr,asType:!1,parent:sV},lV={id:"base-table-entity-deleted-at-property-parent-ref-id",type:r.GenericReference,entityId:Ja,version:"1",entityType:r.DefinitionEntity},dV={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:r.Property,private:!1,abstract:!0,implements:null,static:!1,index:0,defaultValue:null,dataType:oV,description:"The date and time when the entity was deleted.",parent:lV};r.GenericReference,r.Property;const uV={id:"base-table-entity-created-at-property-ref-id",type:r.GenericReference,entityId:"base-table-entity-created-at-property-id",version:"1",entityType:r.Property},cV={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:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:Pr,asType:!1,parent:uV},pV={id:"base-table-entity-created-at-property-parent-ref-id",type:r.GenericReference,entityId:Ja,version:"1",entityType:r.DefinitionEntity},hV={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:r.Property,private:!1,abstract:!0,implements:null,static:!1,index:0,defaultValue:null,dataType:cV,description:"The date and time when the entity was created.",parent:pV};r.GenericReference,r.Property;const yV={id:"base-table-entity-updated-at-property-ref-id",type:r.GenericReference,entityId:"base-table-entity-updated-at-property-id",version:"1",entityType:r.Property},fV={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:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:Pr,asType:!1,parent:yV},mV={id:"base-table-entity-updated-at-property-parent-ref-id",type:r.GenericReference,entityId:Ja,version:"1",entityType:r.DefinitionEntity},TV={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:r.Property,private:!1,implements:null,abstract:!0,static:!1,index:0,defaultValue:null,dataType:fV,description:"The date and time when the entity was last updated.",parent:mV},vV={id:"base-table-entity-parent-ref-id",type:r.GenericReference,entityId:ne,version:"1",entityType:r.Project},rr={id:Ja,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:r.DefinitionEntity,abstract:!0,static:!1,abstractMethods:[],implements:[],properties:[dV,hV,TV],methods:[],extends:[],x:0,y:0,parent:vV},EV={id:"default-relational-database-entity-identifier-property-data-type-ref-id",type:r.GenericReference,entityId:"default-relational-database-entity-identifier-property-id",version:"1",entityType:r.Property},RV={id:"default-relational-database-entity-identifier-property-ref-id",type:r.GenericReference,entityId:"default-relational-database-entity-identifier-property-id",version:"1",entityType:r.Property},gV={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:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:X,asType:!1,parent:RV},ki={id:"default-relational-database-entity-ref-id",type:r.GenericReference,entityId:"default-relational-database-entity-id",version:"1",entityType:r.DefinitionEntity},bV={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:r.Property,private:!1,abstract:!1,implements:Hs,static:!0,index:0,defaultValue:{id:"default-relational-database-entity-identifier-property-data-type-default-value-id",type:r.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:C.String,value:"main",parent:EV,autogeneration:{type:st.Unique,rangeStart:null,rangeEnd:null},valueAsType:null},dataType:gV,description:"The name of the main database inside of the server instance where the data will be stored.",parent:ki};r.GenericReference,r.Property;const IV={id:"default-relational-database-entity-username-property-ref-id",type:r.GenericReference,entityId:"default-relational-database-entity-username-property-id",version:"1",entityType:r.Property},AV={id:"default-relational-database-entity-username-property-default-value-parent-ref-id",type:r.GenericReference,entityId:"default-relational-database-entity-username-property-id",version:"1",entityType:r.Property},DV={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:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:X,asType:!1,parent:IV},PV={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:r.Property,private:!1,abstract:!1,implements:zs,defaultValue:{id:"default-relational-database-entity-username-property-data-type-default-value-id",type:r.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:C.String,value:"root",parent:AV,autogeneration:null,valueAsType:null},static:!0,index:1,dataType:DV,description:"The username that will be used to connect to the database.",parent:ki};r.GenericReference,r.Property;const SV={id:"default-relational-database-entity-password-property-ref-id",type:r.GenericReference,entityId:"default-relational-database-entity-password-property-id",version:"1",entityType:r.Property},OV={id:"default-relational-database-entity-password-property-default-value-parent-ref-id",type:r.GenericReference,entityId:"default-relational-database-entity-password-property-id",version:"1",entityType:r.Property},VV={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:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:X,asType:!1,parent:SV},CV={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:r.Property,private:!1,abstract:!1,implements:Ks,static:!0,index:2,defaultValue:{id:"default-relational-database-entity-password-property-data-type-default-value-id",type:r.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:C.String,value:"password",parent:OV,autogeneration:null,valueAsType:null},dataType:VV,description:"The password that will be used to connect to the database.",parent:ki},wV={id:"default-relational-database-entity-min-size-property-data-type-ref-id",type:r.GenericReference,entityId:"default-relational-database-entity-min-size-property-id",version:"1",entityType:r.Property},BV={id:"default-relational-database-entity-min-size-property-ref-id",type:r.GenericReference,entityId:"default-relational-database-entity-min-size-property-id",version:"1",entityType:r.Property},MV={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:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ue,asType:!1,parent:BV},_V={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:r.Property,private:!1,abstract:!1,implements:Xs,static:!0,index:3,defaultValue:{id:"default-relational-database-entity-min-size-property-data-type-default-value-id",type:r.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:C.Number,value:6,parent:wV,autogeneration:null,valueAsType:null},dataType:MV,description:"The minimum size of the database in GB.",parent:ki},NV={id:"default-relational-database-entity-default-property-data-type-ref-id",type:r.GenericReference,entityId:"default-relational-database-entity-default-property-id",version:"1",entityType:r.Property},LV={id:"default-relational-database-entity-default-property-ref-id",type:r.GenericReference,entityId:"default-relational-database-entity-default-property-id",version:"1",entityType:r.Property},GV={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:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ue,asType:!1,parent:LV},$V={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:r.Property,private:!1,abstract:!1,implements:Nd,static:!0,index:4,dataType:GV,defaultValue:{id:"default-relational-database-entity-default-property-data-type-default-value-id",type:r.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:C.Boolean,value:!0,parent:NV,autogeneration:null,valueAsType:null},parent:ki},FV={id:"default-relational-database-entity-autoscaling-property-data-type-ref-id",type:r.GenericReference,entityId:"default-relational-database-entity-autoscaling-property-id",version:"1",entityType:r.Property},UV={id:"default-relational-database-entity-autoscaling-property-ref-id",type:r.GenericReference,entityId:"default-relational-database-entity-autoscaling-property-id",version:"1",entityType:r.Property},xV={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:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ue,asType:!1,parent:UV},jV={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:r.Property,private:!1,abstract:!1,implements:Ld,static:!0,index:5,defaultValue:{id:"default-relational-database-entity-autoscaling-property-data-type-default-value-id",type:r.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:C.Boolean,value:!0,parent:FV,autogeneration:null,valueAsType:null},dataType:xV,description:"If true, this database will automatically scale up or down in memory size, based on the usage.s",parent:ki},kV={id:"default-relational-database-entity-parent-ref-id",type:r.GenericReference,entityId:ne,version:"1",entityType:r.Project},au={id:"default-relational-database-entity-id",type:r.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:[$V,jV,bV,PV,CV,_V],methods:[],abstractMethods:[],extends:[],implements:[Vr],x:0,y:0,parent:kV},ZV={id:"user-prototype-database-property-data-type-ref-id",type:r.GenericReference,entityId:"user-prototype-database-property-id",version:"1",entityType:r.Property},qV={id:"user-prototype-database-property-ref-id",type:r.GenericReference,entityId:"user-prototype-database-property-id",version:"1",entityType:r.Property},JV={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:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:Vr,asType:!1,parent:qV},WV={id:"user-prototype-database-property-parent-ref-id",type:r.GenericReference,entityId:"de67fc84-3719-46fd-9ab4-3fca3a3cc50d",version:"1",entityType:r.DefinitionEntity},YV={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:r.Property,private:!1,abstract:!1,implements:Mi,static:!0,index:0,defaultValue:{id:"user-prototype-database-property-data-type-default-value-id",type:r.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:null,name:C.EntityTemplate,valueAsType:au,autogeneration:null,parent:ZV},dataType:JV,description:"The database that the entity belongs to.",parent:WV},HV={type:r.GenericReference,id:"user-prototype-parent-ref-id",version:"1",entityType:r.Project,entityId:ne},zV={id:"user-prototype-primary-key-property-data-type-ref-id",type:r.GenericReference,entityId:"user-prototype-primary-key-property-id",version:"1",entityType:r.Property},KV={id:"user-prototype-primary-key-property-ref-id",type:r.GenericReference,entityId:"user-prototype-primary-key-property-id",version:"1",entityType:r.Property},XV={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:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:qr,asType:!1,parent:KV},QV={id:"user-prototype-primary-key-property-parent-ref-id",type:r.GenericReference,entityId:"de67fc84-3719-46fd-9ab4-3fca3a3cc50d",version:"1",entityType:r.DefinitionEntity},eC={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:r.Property,private:!1,abstract:!1,implements:_i,static:!1,index:1,defaultValue:{id:"user-prototype-primary-key-property-data-type-default-value-id",type:r.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:C.UUID,value:null,parent:zV,autogeneration:{type:st.Unique,rangeStart:null,rangeEnd:null},valueAsType:null},dataType:XV,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:QV},su={type:r.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:[gt,rr],abstract:!1,static:!1,abstractMethods:[],extends:[],properties:[YV,eC],methods:[],x:0,y:0,parent:HV},tC={type:r.GenericReference,id:"person-date-of-birth-property-data-type-parent-ref-id",version:"1",entityType:r.Property,entityId:"person-date-of-birth-property-id"},rC={like:!1,inferred:!1,id:"person-date-of-birth-property-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Pr,isList:!1,asType:!1,parent:tC},nC={type:r.GenericReference,id:"person-date-of-birth-property-parent-ref-id",version:"1",entityType:r.DefinitionEntity,entityId:"c9bc312a-10d3-48a7-9ab4-ea483a9e2416"},iC={constant:!1,hidden:!1,required:!0,type:r.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:rC,abstract:!1,parent:nC},aC={type:r.GenericReference,id:"a2867827-2f8e-4c25-b18b-d91857d7f24e",version:"1",entityType:r.Property,entityId:"cacfec92-46c3-4fca-a1d9-fd1ba94d78c7"},sC={like:!1,inferred:!1,id:"1d49f41b-17b9-4f48-87aa-3ce43498e5a9",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:X,isList:!1,asType:!1,parent:aC},oC={type:r.GenericReference,id:"01cbe760-40a9-4f49-8e3d-194d2f57cb1e",version:"1",entityType:r.DefinitionEntity,entityId:"c9bc312a-10d3-48a7-9ab4-ea483a9e2416"},lC={constant:!1,hidden:!1,required:!0,type:r.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:sC,abstract:!1,parent:oC},dC={type:r.GenericReference,id:"3542b22a-3a2f-41c6-876e-24c885572498",version:"1",entityType:r.Project,entityId:ne},$t={type:r.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:[lC,iC],abstract:!1,static:!1,abstractMethods:[],methods:[],implements:[],extends:[su],x:0,y:0,parent:dC},uC={type:r.GenericReference,id:"b59c80b7-b2e9-41e9-abcd-7c5652835efc",version:"1",entityType:r.FunctionDeclaration,entityId:"36f29f96-c001-4b9a-b49c-83eff406a060"},cC={type:r.GenericReference,id:"1190b5a2-f25e-46db-884d-8a3dd1a44d94",version:"1",entityType:r.ReturnStatement,entityId:"3ebc4342-c9e8-42e7-a61c-7937081e1d2e"},pC={type:r.GenericReference,id:"36c63126-7814-496f-a6cc-48662c2aabae",version:"1",entityType:r.ArgumentDeclaration,entityId:"500dee3a-3435-4453-9699-0d053f646523"},hC={type:r.GenericReference,id:"c567e55d-ec12-4e4e-958e-f07522892b4b",version:"1",entityType:r.ReturnDeclaration,entityId:"9e070523-7e07-4100-8637-960a187f5f14"},yC={like:!1,inferred:!1,id:"3973c5a1-f0d8-49a0-a9a9-a0009bf3f0d8",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:$t,isList:!1,asType:!1,parent:hC},ou={constant:!0,isError:!1,id:"9e070523-7e07-4100-8637-960a187f5f14",type:r.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:yC,implements:null,readsValue:pC,required:!0,index:0,parent:cC},fC={type:r.GenericReference,id:"567d923c-20da-4c1e-956d-962ea30c6d0b",version:"1",entityType:r.FunctionDeclaration,entityId:"36f29f96-c001-4b9a-b49c-83eff406a060"},mC={type:r.GenericReference,id:"da85e620-59f3-42ab-88c8-b38d33c2c833",version:"1",entityType:r.FunctionDeclaration,entityId:"36f29f96-c001-4b9a-b49c-83eff406a060"},MR={type:r.ReturnStatement,id:"3ebc4342-c9e8-42e7-a61c-7937081e1d2e",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[ou],calledByError:[],calledByEntry:[fC],calledBySuccess:[],throws:null,x:0,y:0,parent:mC},TC={type:r.GenericReference,id:"1c806bb7-4c25-4bad-963b-93dfbb7c8304",version:"1",entityType:r.ArgumentDeclaration,entityId:"500dee3a-3435-4453-9699-0d053f646523"},vC={like:!1,inferred:!1,id:"d90fcc18-642b-433c-8fcb-4094b9031cd5",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:$t,isList:!1,asType:!1,parent:TC},_R={constant:!0,id:"500dee3a-3435-4453-9699-0d053f646523",type:r.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:vC,implements:null,required:!0,writesValues:[ou],index:0,parent:uC},EC={type:r.GenericReference,id:"83dceb60-f3c4-4085-824c-85f2003bfd27",version:"1",entityType:r.DefinitionEntity,entityId:"506946aa-30da-48e6-918f-ffd9eac58813"},NR={type:r.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:[_R],calls:[MR],returnStatements:[MR],index:0,collapsed:!1,private:!1,x:0,y:0,parent:EC},RC={type:r.GenericReference,id:"adbaf302-ffa9-49b6-a3c6-83f9a75068e3",version:"1",entityType:r.VariableDeclaration,entityId:"8e36a476-766e-4cc2-a8a7-27a07dfb5a4b"},gC={like:!1,inferred:!1,id:"79ee04aa-1ba4-4ae9-a406-ed45e5b03f7f",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:$t,asType:!1,isList:!1,parent:RC},bC={type:r.GenericReference,id:"55e212d1-f0ec-4bb6-acbe-60f741367daf",version:"1",entityType:r.OutputMap,entityId:"dc9ddb8f-02a0-4a43-aea6-270ec7b7f8a4"},IC={type:r.GenericReference,id:"944e1171-3d9b-4559-9386-1d4974b15962",version:"1",entityType:r.FunctionDeclaration,entityId:"15ee556d-681f-47de-a31f-16d4ba73cc4e"},AC={constant:!0,required:!0,id:"8e36a476-766e-4cc2-a8a7-27a07dfb5a4b",type:r.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:gC,readsValue:bC,writesValues:[],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:IC},DC={type:r.GenericReference,id:"b89ebc83-52cf-4447-a5ae-62241f713079",version:"1",entityType:r.FunctionCall,entityId:"78f6dba8-bed8-44cd-8b0f-6dcc787d1e1e"},PC={id:"dc9ddb8f-02a0-4a43-aea6-270ec7b7f8a4",type:r.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:ou,defaultValue:null,writesValues:[AC],index:0,parent:DC},SC={type:r.GenericReference,id:"c1b9e125-1aad-48b7-9687-95c57a6bc10d",version:"1",entityType:r.FunctionDeclaration,entityId:"15ee556d-681f-47de-a31f-16d4ba73cc4e"},OC={type:r.GenericReference,id:"d2deaa02-e164-4425-905c-6dee47eb4eac",version:"1",entityType:r.FunctionDeclaration,entityId:"15ee556d-681f-47de-a31f-16d4ba73cc4e"},VC={type:r.GenericReference,id:"1109a655-ac62-4110-a933-42a72106f4f0",version:"1",entityType:r.VariableDeclaration,entityId:"8bea6986-8da2-487b-905d-2fb962db6728"},CC={like:!1,inferred:!1,id:"7d9a1307-512e-42ec-9797-2f7229796b97",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:$t,asType:!1,isList:!1,parent:VC},wC={type:r.GenericReference,id:"bb61ebf7-57b3-4d14-905d-82ec907205b5",version:"1",entityType:r.ArgumentDeclaration,entityId:"38f6b236-98ac-47b0-ab9c-d2f9610137b9"},BC={type:r.GenericReference,id:"6b8c7bf2-9fc8-4ea4-9ec0-f41679d513b1",version:"1",entityType:r.FunctionDeclaration,entityId:"15ee556d-681f-47de-a31f-16d4ba73cc4e"},MC={type:r.GenericReference,id:"6163d1a1-7a94-49b1-95bb-aecd8d6d335c",version:"1",entityType:r.FunctionCall,entityId:"78f6dba8-bed8-44cd-8b0f-6dcc787d1e1e"},_C={type:r.GenericReference,id:"1f900f62-4bd2-4246-94aa-b8f5aad384fd",version:"1",entityType:r.VariableDeclaration,entityId:"8bea6986-8da2-487b-905d-2fb962db6728"},LR={id:"be8538be-e6f9-4b94-9314-a546003ebaa0",type:r.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:_R,name:null,description:null,readsValue:_C,defaultValue:null,index:0,parent:MC},NC={constant:!0,required:!0,type:r.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:CC,readsValue:wC,writesValues:[LR],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:BC},LC={type:r.FunctionCall,id:"78f6dba8-bed8-44cd-8b0f-6dcc787d1e1e",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:NR,inputs:[LR],outputs:[PC],process:null,successCalls:[],errorCalls:[],calledByError:[],calledByEntry:[SC],calledBySuccess:[],parent:OC,error:null,x:0,y:0},GC={type:r.GenericReference,id:"2d47aba1-a918-46a7-8db7-78809928654a",version:"1",entityType:r.ArgumentDeclaration,entityId:"38f6b236-98ac-47b0-ab9c-d2f9610137b9"},$C={like:!1,inferred:!1,id:"5583766c-e9a5-484c-8f43-f4b0a6a1876c",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:$t,asType:!1,isList:!1,parent:GC},FC={type:r.GenericReference,id:"3e2a81e4-55b2-49f5-94eb-39135e95c3d7",version:"1",entityType:r.FunctionDeclaration,entityId:"15ee556d-681f-47de-a31f-16d4ba73cc4e"},UC={constant:!0,id:"38f6b236-98ac-47b0-ab9c-d2f9610137b9",type:r.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:$C,implements:null,required:!0,index:0,writesValues:[NC],parent:FC},xC={type:r.GenericReference,id:"30291b01-1b94-4d03-b434-dec122c2bc7d",version:"1",entityType:r.DefinitionEntity,entityId:"506946aa-30da-48e6-918f-ffd9eac58813"},jC={type:r.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:[UC],collapsed:!0,returnStatements:[],calls:[LC],private:!1,index:0,implements:null,x:0,y:0,parent:xC},kC={type:r.GenericReference,id:"72c7ac0a-886e-4e10-b7ed-2f5a819a0233",version:"1",entityType:r.Property,entityId:"b8f4656a-2b77-43ab-af51-7c32ddede044"},ZC={like:!1,inferred:!1,id:"c09dd282-73f6-4077-a467-b66db20b9fc6",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:X,isList:!1,asType:!1,parent:kC},qC={type:r.GenericReference,id:"8a950024-512c-4580-81db-a705410aeb99",version:"1",entityType:r.DefinitionEntity,entityId:"506946aa-30da-48e6-918f-ffd9eac58813"},JC={constant:!1,hidden:!1,required:!0,type:r.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:_i,static:!1,index:0,dataType:ZC,abstract:!1,parent:qC},WC={type:r.GenericReference,id:"b6704b6c-c3bd-49d0-8ebc-82d03e726cbb",version:"1",entityType:r.Property,entityId:"733d06a6-b8c5-44f3-a1f7-a8c9bd9e44ea"},YC={like:!1,inferred:!1,id:"c03e0b0a-88ab-401a-8833-4806738bdc37",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:$t,isList:!1,asType:!1,parent:WC},HC={type:r.GenericReference,id:"1ef999a7-e9ed-406a-866e-e58277fc985b",version:"1",entityType:r.DefinitionEntity,entityId:"506946aa-30da-48e6-918f-ffd9eac58813"},zC={constant:!1,hidden:!1,required:!0,type:r.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:YC,implements:null,static:!1,private:!0,abstract:!1,parent:HC},KC={type:r.GenericReference,id:"d41d7f41-98b8-4f67-be92-c349fdda5156",version:"1",entityType:r.Project,entityId:ne},Zi={type:r.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:[JC,zC],methods:[NR,jC],extends:[],implements:[gt,rr],x:0,y:0,parent:KC},Wa="bitcoin-api-response-id",GR="time-property-id",$R="disclaimer-property-id",FR="chart-name-property-id",UR="bpi-property-id",Co="bpi-entity-id",xR="usd-property-id",jR="gbp-property-id",kR="eur-property-id",qi="currency-entity-id",ZR="currency-code-property-id",qR="currency-symbol-property-id",JR="currency-rate-property-id",WR="currency-description-property-id",YR="currency-rate-number-property-id",XC={type:r.GenericReference,id:"code-property-data-type-parent-ref-id",version:"1",entityType:r.Property,entityId:ZR},QC={like:!1,inferred:!1,id:"code-property-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Zr,isList:!1,asType:!1,options:["USD","GBP","EUR"],parent:XC},ew={type:r.GenericReference,id:"code-property-parent-ref-id",version:"1",entityType:r.DefinitionEntity,entityId:qi},tw={constant:!1,hidden:!1,required:!0,type:r.Property,id:ZR,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"code",description:null,defaultValue:null,dataType:QC,index:0,implements:null,static:!1,private:!1,abstract:!1,parent:ew},rw={type:r.GenericReference,id:"symbol-property-data-type-parent-ref-id",version:"1",entityType:r.Property,entityId:qR},nw={like:!1,inferred:!1,id:"symbol-property-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Zr,isList:!1,asType:!1,options:["&#36;","&pound;","&euro;"],parent:rw},iw={type:r.GenericReference,id:"symbol-property-parent-ref-id",version:"1",entityType:r.DefinitionEntity,entityId:qi},aw={constant:!1,hidden:!1,required:!0,type:r.Property,id:qR,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"symbol",description:null,index:0,defaultValue:null,dataType:nw,implements:null,static:!1,private:!1,abstract:!1,parent:iw},sw={type:r.GenericReference,id:"rate-property-data-type-parent-ref-id",version:"1",entityType:r.Property,entityId:JR},ow={like:!1,inferred:!1,id:"rate-property-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:X,isList:!1,asType:!1,parent:sw},lw={type:r.GenericReference,id:"rate-property-parent-ref-id",version:"1",entityType:r.DefinitionEntity,entityId:qi},dw={constant:!1,hidden:!1,required:!0,type:r.Property,id:JR,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"rate",description:null,index:0,defaultValue:null,dataType:ow,implements:null,static:!1,private:!1,abstract:!1,parent:lw},uw={type:r.GenericReference,id:"description-property-data-type-parent-ref-id",version:"1",entityType:r.Property,entityId:WR},cw={like:!1,inferred:!1,id:"description-property-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:X,isList:!1,asType:!1,parent:uw},pw={type:r.GenericReference,id:"description-property-parent-ref-id",version:"1",entityType:r.DefinitionEntity,entityId:qi},hw={constant:!1,hidden:!1,required:!0,type:r.Property,id:WR,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"description",description:null,defaultValue:null,dataType:cw,implements:null,static:!1,index:0,private:!1,abstract:!1,parent:pw},yw={type:r.GenericReference,id:"rate-number-property-data-type-parent-ref-id",version:"1",entityType:r.Property,entityId:YR},fw={like:!1,inferred:!1,id:"rate-number-property-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ue,isList:!1,asType:!1,parent:yw},mw={type:r.GenericReference,id:"rate-number-property-parent-ref-id",version:"1",entityType:r.DefinitionEntity,entityId:qi},Tw={constant:!1,hidden:!1,required:!0,type:r.Property,id:YR,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"rate_float",description:null,defaultValue:null,dataType:fw,implements:null,static:!1,index:0,private:!1,abstract:!1,parent:mw},vw={type:r.GenericReference,id:"currency-prototype-parent-ref-id",version:"1",entityType:r.Project,entityId:ne},wo={type:r.DefinitionEntity,id:qi,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:[tw,aw,dw,hw,Tw],static:!1,abstract:!1,abstractMethods:[],methods:[],extends:[],implements:[],x:0,y:0,parent:vw},Ew={type:r.GenericReference,id:"usd-property-data-type-parent-ref-id",version:"1",entityType:r.Property,entityId:xR},Rw={like:!1,inferred:!1,id:"usd-property-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:wo,isList:!1,asType:!1,parent:Ew},gw={type:r.GenericReference,id:"usd-property-parent-ref-id",version:"1",entityType:r.DefinitionEntity,entityId:Co},bw={constant:!1,hidden:!1,required:!0,id:xR,type:r.Property,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"USD",description:null,index:0,dataType:Rw,defaultValue:null,implements:null,static:!1,private:!1,abstract:!1,parent:gw},Iw={type:r.GenericReference,id:"gbp-property-data-type-parent-ref-id",version:"1",entityType:r.Property,entityId:jR},Aw={like:!1,inferred:!1,id:"gbp-property-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:wo,isList:!1,asType:!1,parent:Iw},Dw={type:r.GenericReference,id:"gbp-property-parent-ref-id",version:"1",entityType:r.DefinitionEntity,entityId:Co},Pw={constant:!1,hidden:!1,required:!0,id:jR,type:r.Property,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"GBP",description:null,index:0,dataType:Aw,defaultValue:null,implements:null,static:!1,private:!1,abstract:!1,parent:Dw},Sw={type:r.GenericReference,id:"eur-property-data-type-parent-ref-id",version:"1",entityType:r.Property,entityId:kR},Ow={like:!1,inferred:!1,id:"eur-property-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:wo,isList:!1,asType:!1,parent:Sw},Vw={type:r.GenericReference,id:"eur-property-parent-ref-id",version:"1",entityType:r.DefinitionEntity,entityId:Co},Cw={constant:!1,hidden:!1,required:!0,id:kR,type:r.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:Ow,private:!1,abstract:!1,parent:Vw},ww={type:r.GenericReference,id:"bpi-prototype-parent-ref-id",version:"1",entityType:r.Project,entityId:ne},HR={type:r.DefinitionEntity,id:Co,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"BPI",description:"The Bitcoin Price Index",properties:[bw,Pw,Cw],abstract:!1,static:!1,abstractMethods:[],methods:[],extends:[],implements:[],x:0,y:0,parent:ww},Bw={type:r.GenericReference,id:"time-property-data-type-parent-ref-id",version:"1",entityType:r.Property,entityId:GR},Mw={like:!1,inferred:!1,id:"time-property-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Si,isList:!1,asType:!1,parent:Bw},_w={type:r.GenericReference,id:"time-property-parent-ref-id",version:"1",entityType:r.DefinitionEntity,entityId:Wa},Nw={constant:!1,hidden:!1,required:!0,type:r.Property,id:GR,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"time",description:null,index:0,defaultValue:null,dataType:Mw,implements:null,static:!1,private:!1,abstract:!1,parent:_w},Lw={type:r.GenericReference,id:"disclaimer-property-data-type-parent-ref-id",version:"1",entityType:r.Property,entityId:$R},Gw={like:!1,inferred:!1,id:"disclaimer-property-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:X,isList:!1,asType:!1,parent:Lw},$w={type:r.GenericReference,id:"disclaimer-property-parent-ref-id",version:"1",entityType:r.DefinitionEntity,entityId:Wa},Fw={constant:!1,hidden:!1,required:!0,type:r.Property,id:$R,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"disclaimer",description:null,index:0,defaultValue:null,dataType:Gw,implements:null,static:!1,private:!1,abstract:!1,parent:$w},Uw={type:r.GenericReference,id:"chart-name-property-data-type-parent-ref-id",version:"1",entityType:r.Property,entityId:FR},xw={like:!1,inferred:!1,id:"chart-name-property-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:X,isList:!1,asType:!1,parent:Uw},jw={type:r.GenericReference,id:"chart-name-property-parent-ref-id",version:"1",entityType:r.DefinitionEntity,entityId:Wa},kw={constant:!1,hidden:!1,required:!0,type:r.Property,id:FR,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"chartName",description:null,index:0,defaultValue:null,dataType:xw,implements:null,static:!1,private:!1,abstract:!1,parent:jw},Zw={type:r.GenericReference,id:"bpi-property-data-type-parent-ref-id",version:"1",entityType:r.Property,entityId:UR},qw={like:!1,inferred:!1,id:"bpi-property-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:HR,isList:!1,asType:!1,parent:Zw},Jw={type:r.GenericReference,id:"bpi-property-parent-ref-id",version:"1",entityType:r.DefinitionEntity,entityId:Wa},Ww={constant:!1,hidden:!1,required:!0,type:r.Property,id:UR,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:qw,static:!1,private:!1,abstract:!1,parent:Jw},Yw={type:r.GenericReference,id:"bitcoin-api-response-parent-ref-id",version:"1",entityType:r.Project,entityId:ne},zR={type:r.DefinitionEntity,id:Wa,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:[Nw,Fw,kw,Ww],abstract:!1,static:!1,abstractMethods:[],methods:[],extends:[],implements:[],x:0,y:0,parent:Yw},Hw={type:r.GenericReference,id:"eefa0147-f873-484b-b4f3-9e6493aab183",version:"1",entityType:r.ArgumentDeclaration,entityId:"f2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a"},zw={like:!1,inferred:!1,id:"b9f35112-dcb2-4b7c-8fb9-f196b3fa37f9",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:$t,isList:!1,asType:!1,parent:Hw},Kw={type:r.GenericReference,id:"128770d6-5e3a-4aff-bca0-ad1f32ebefa8",version:"1",entityType:r.ReturnStatement,entityId:"e4e05975-c277-471a-b869-f0aed316045c"},Xw={type:r.GenericReference,id:"0be84bf9-6421-42b9-980f-6a03f30cb809",version:"1",entityType:r.ReturnDeclaration,entityId:"a1ec31f0-25ca-42ac-a4c4-c9ec2255f55b"},Qw={like:!1,inferred:!1,id:"43daa02a-237b-4b7c-a6e9-2b8c167f6e22",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:$t,isList:!1,asType:!1,parent:Xw},eB={type:r.GenericReference,id:"ad380383-4a47-43da-968e-75a2d603b230",version:"1",entityType:r.ArgumentDeclaration,entityId:"f2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a"},KR={constant:!0,isError:!1,id:"a1ec31f0-25ca-42ac-a4c4-c9ec2255f55b",type:r.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:Qw,readsValue:eB,required:!0,index:0,parent:Kw},tB={type:r.GenericReference,id:"4f24dc27-59a1-49bf-abcc-7d72b00926e4",version:"1",entityType:r.FunctionDeclaration,entityId:"d683bfc1-a464-4810-8ec0-1dd8eaa0c3c4"},rB={constant:!0,id:"f2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a",type:r.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:zw,writesValues:[KR],required:!0,index:0,parent:tB},nB={type:r.GenericReference,id:"5c9a02f0-d2cf-4efc-828e-467f33a74dd3",version:"1",entityType:r.DefinitionEntity,entityId:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d"},iB={type:r.GenericReference,id:"2ff8f3da-e0c5-4f0f-b688-2c051c588786",version:"1",entityType:r.FunctionDeclaration,entityId:"d683bfc1-a464-4810-8ec0-1dd8eaa0c3c4"},aB={type:r.GenericReference,id:"195ae28c-159b-42de-80b1-2ebb8be3619f",version:"1",entityType:r.FunctionDeclaration,entityId:"d683bfc1-a464-4810-8ec0-1dd8eaa0c3c4"},XR={type:r.ReturnStatement,id:"e4e05975-c277-471a-b869-f0aed316045c",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[KR],calledByError:[],calledByEntry:[iB],calledBySuccess:[],throws:null,x:0,y:0,parent:aB},sB={type:r.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:[rB],calls:[XR],index:0,collapsed:!1,implements:null,returnStatements:[XR],private:!1,x:0,y:0,parent:nB},oB={type:r.GenericReference,id:"e691026f-6db0-43ec-93cd-805ae7d713e3",version:"1",entityType:r.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},lB={type:r.GenericReference,id:"29c4e3e0-1b66-4075-b559-45b27c5cf356",version:"1",entityType:r.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},dB={type:r.GenericReference,id:"b1289358-b185-455d-8f58-7791b15cd52a",version:"1",entityType:r.ReturnStatement,entityId:"9690cd1d-ea35-4e83-823d-0c7310265fee"},uB={type:r.GenericReference,id:"d847bb49-8789-4550-bb2d-e2d551993b28",version:"1",entityType:r.VariableDeclaration,entityId:"e5a8b6d0-0e6f-4e9a-9b1e-8a2b5c7f0d5a"},cB={type:r.GenericReference,id:"06535500-c37c-4915-8398-1d4e184fa5e7",version:"1",entityType:r.ReturnDeclaration,entityId:"e7a35277-a0c4-46d5-aca2-bddd0c26e931"},pB={like:!1,inferred:!1,id:"d358dd91-35f7-4095-b728-3fb3c71dbc05",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:kr,asType:!1,isList:!1,parent:cB},lu={constant:!0,isError:!1,id:"e7a35277-a0c4-46d5-aca2-bddd0c26e931",type:r.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:pB,implements:null,readsValue:uB,required:!0,index:0,parent:dB},hB={type:r.GenericReference,id:"gov-company-registry-return-statement-called-by-success-ref-id",version:"1",entityType:r.VariableDeclaration,entityId:"e5a8b6d0-0e6f-4e9a-9b1e-8a2b5c7f0d5a"},du={type:r.ReturnStatement,id:"9690cd1d-ea35-4e83-823d-0c7310265fee",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[lu],calledByError:[],calledByEntry:[],calledBySuccess:[oB,hB],throws:null,x:0,y:0,parent:lB},yB={type:r.GenericReference,id:"b3126414-4c9b-495f-901e-59f5073c8d67",version:"1",entityType:r.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},fB={type:r.GenericReference,id:"35115c48-618b-411b-a290-d746d22fdd10",version:"1",entityType:r.VariableDeclaration,entityId:"83e12ebb-c958-4dee-b750-8ab9930f0f4e"},QR={id:"a0e7b4e5-2f5f-4d4c-8f5c-1e1f1e1a1b1a",type:r.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:yd,name:null,description:null,readsValue:fB,defaultValue:null,parent:yB,index:2},mB={type:r.GenericReference,id:"14f46eae-04a5-47d1-9c7f-28fb09b84d1d",version:"1",entityType:r.VariableDeclaration,entityId:"e5a8b6d0-0e6f-4e9a-9b1e-8a2b5c7f0d5a"},TB={like:!1,inferred:!1,id:"990bd5d1-07ea-4253-acc1-d03bedd22a38",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:kr,isList:!1,asType:!1,parent:mB},vB={type:r.GenericReference,id:"e4c3542a-8fb0-4b72-8d6e-3fdff812dd67",version:"1",entityType:r.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},EB={type:r.GenericReference,id:"825f9f60-22a8-4cc6-9055-d7333f8e92f4",version:"1",entityType:r.OutputMap,entityId:"8f30d787-9459-4d8d-98a2-b46fbc2006d5"},RB={type:r.GenericReference,id:"is-company-name-registered-var-called-by-ref",version:"1",entityType:r.Operation,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},eg={constant:!0,required:!0,type:r.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:TB,readsValue:EB,writesValues:[lu],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[RB],successCalls:[du],errorCalls:[],internalCalls:[],x:0,y:0,parent:vB},gB={type:r.GenericReference,id:"1aba021e-48ef-44ac-93d0-eaecac5895da",version:"1",entityType:r.InputMap,entityId:"c3c8d6c1-3e0d-4e6c-9f9c-6b8c7d7f8e9a"},bB={type:r.GenericReference,id:"dffae7e0-0a5c-4c14-8ed2-8d680b4c4c86",version:"1",entityType:r.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},IB={type:r.InputMap,id:"c3c8d6c1-3e0d-4e6c-9f9c-6b8c7d7f8e9a",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:$s,name:null,description:null,readsValue:null,defaultValue:{id:"gov-http-request-url-argument-default-value-id",type:r.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:"https://api.publicapis.org/entries",name:C.String,valueAsType:null,parent:gB,autogeneration:null},index:1,parent:bB},AB={type:r.GenericReference,id:"64ae61f5-ace7-401b-926d-25f852daa60e",version:"1",entityType:r.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},DB={id:"8f30d787-9459-4d8d-98a2-b46fbc2006d5",type:r.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:ks,index:2,writesValues:[eg],parent:AB},PB={type:r.GenericReference,id:"62a1a086-caea-4270-9c9f-a1695503e745",version:"1",entityType:r.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},SB={id:"48cf7654-8f3e-4fcd-abc6-740876c310a0",type:r.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Gs,name:null,description:null,readsValue:null,index:0,defaultValue:null,parent:PB},OB={type:r.GenericReference,id:"b0c9c79f-f525-428d-99e7-087d3237ad62",version:"1",entityType:r.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},VB={id:"2c1dc406-4b71-4023-87b2-abede3a111d2",type:r.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:null,description:null,declaration:Fs,index:3,readsValue:null,defaultValue:null,parent:OB},CB={type:r.GenericReference,id:"9887d6c9-d75b-4c97-b722-e2e60945ea20",version:"1",entityType:r.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},wB={id:"3fef94b2-0278-43ae-b0c5-bc7083f0a111",type:r.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Us,name:null,description:null,readsValue:null,index:4,defaultValue:null,parent:CB},BB={type:r.GenericReference,id:"561275b6-5056-45d8-bf7d-8abaa4645593",version:"1",entityType:r.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},MB={id:"3efe20a7-4d63-411e-89ef-63e277f48d66",type:r.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:js,index:1,writesValues:[],parent:BB},_B={type:r.GenericReference,id:"3170ccc2-13de-4bfc-802a-a643be41cd42",version:"1",entityType:r.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},NB={id:"40d34323-d7e6-440a-8016-67c05a3b66dd",type:r.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:xs,index:0,writesValues:[],parent:_B},LB={type:r.GenericReference,id:"7432fa82-f574-4c54-a8fa-4cc4376da3d5",version:"1",entityType:r.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},GB={type:r.GenericReference,id:"8f518502-9eea-462c-8753-8bc3bf3e29a9",version:"1",entityType:r.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},$B={type:r.GenericReference,id:"123b8f18-79d9-4166-a5f6-78ec4b461680",version:"1",entityType:r.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},FB={type:r.GenericReference,id:"e691026f-6db0-43ec-93cd-805ae7d713e3",version:"1",entityType:r.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},UB={type:r.GenericReference,id:"a375eedf-4811-41aa-a998-4897c69c46b9",version:"1",entityType:r.ReturnDeclaration,entityId:"024a9b77-c1cd-4b67-b3ba-1935046b590d"},xB={like:!1,inferred:!1,id:"767cc5ed-20ec-4fd1-89b1-c8d19daa87d1",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:vt,asType:!1,isList:!1,parent:UB},jB={type:r.GenericReference,id:"e64b0c23-129d-4d74-8ab4-eec60e1e5b9b",version:"1",entityType:r.ReturnStatement,entityId:"ea444a9e-6a5b-4138-b81f-0d5618c3c6f3"},tg={constant:!0,isError:!0,id:"024a9b77-c1cd-4b67-b3ba-1935046b590d",type:r.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:xB,defaultValue:null,implements:null,required:!0,readsValue:null,index:0,parent:jB},rg={type:r.ReturnStatement,id:"ea444a9e-6a5b-4138-b81f-0d5618c3c6f3",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[],calledByError:[FB],calledByEntry:[],calledBySuccess:[],throws:tg,x:0,y:0,parent:$B},kB={type:r.GenericReference,id:"323814fb-9723-49ef-bbba-f882384f18e4",version:"1",entityType:r.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},ZB={id:"2f63f7ba-0ff0-458a-92bc-65d1dd4df8c3",type:r.OutputMap,declaration:fd,defaultValue:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,writesValues:[tg],index:0,parentRelationType:Di.Error,parent:kB},qB={type:r.Operation,id:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:ga,inputs:[SB,IB,QR,VB,wB],outputs:[NB,MB,DB],process:null,calledByError:[],calledByEntry:[LB],calledBySuccess:[],successCalls:[du,eg],errorCalls:[rg],error:ZB,x:0,y:0,parent:GB},JB={type:r.GenericReference,id:"597b8aa2-f6f2-4f7d-bbb9-b703d02de96a",version:"1",entityType:r.InputMap,entityId:"b0e7b4e5-2f5f-4d4c-8f5c-1e1f1e1a1b1a"},WB={type:r.GenericReference,id:"546d99b3-28c4-4186-93a0-ac53c1565e07",version:"1",entityType:r.Operation,entityId:"8f2094c0-e27e-465e-9280-112da0de9019"},YB={id:"b0e7b4e5-2f5f-4d4c-8f5c-1e1f1e1a1b1a",type:r.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:_s,name:null,description:null,readsValue:null,defaultValue:{id:"base-query-string-map-default-value-id",type:r.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:"?name=",name:C.String,parent:JB,valueAsType:null,autogeneration:null},index:0,parent:WB},HB={type:r.GenericReference,id:"6a56fb22-82e1-47c9-bf85-41c4e5986c74",version:"1",entityType:r.Operation,entityId:"8f2094c0-e27e-465e-9280-112da0de9019"},zB={type:r.GenericReference,id:"191c6a6d-9bcb-441e-bf98-de0da96f5f3a",version:"1",entityType:r.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},KB={type:r.GenericReference,id:"d8fcbb76-dae2-40cf-847a-02364721b387",version:"1",entityType:r.VariableDeclaration,entityId:"83e12ebb-c958-4dee-b750-8ab9930f0f4e"},XB={like:!1,inferred:!1,id:"6a70c42b-024a-47c6-8a9d-af52be9c9b9a",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:X,isList:!1,asType:!1,parent:KB},QB={type:r.GenericReference,id:"2282e2c0-ed9e-4c7b-86fc-1a364fa0fdb8",version:"1",entityType:r.OutputMap,entityId:"f6c22cf8-63e4-4b2d-b649-b5ab884cf9a5"},eM={type:r.GenericReference,id:"assembled-query-string-called-by-ref",version:"1",entityType:r.Operation,entityId:"8f2094c0-e27e-465e-9280-112da0de9019"},ng={constant:!0,required:!0,type:r.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:XB,readsValue:QB,writesValues:[QR],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[eM],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:zB},tM={id:"f6c22cf8-63e4-4b2d-b649-b5ab884cf9a5",type:r.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,writesValues:[ng],declaration:Ea,index:0,parent:HB},rM={type:r.GenericReference,id:"a1b48e7c-0301-4747-b4dd-b5af79956f7f",version:"1",entityType:r.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},nM={type:r.GenericReference,id:"487c9235-be95-4c96-b9b5-2714b374a277",version:"1",entityType:r.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},iM={type:r.GenericReference,id:"f6471f4f-b269-46fa-80ec-885e87a449c2",entityId:"a4106e8e-ec4f-4633-a636-09ae73135f69",version:"1",entityType:r.ArgumentDeclaration},aM={type:r.GenericReference,id:"62b4afb0-6c21-4b0f-abd3-cebef7b17c28",version:"1",entityType:r.Operation,entityId:"8f2094c0-e27e-465e-9280-112da0de9019"},ig={id:"08f36e2b-bad2-425c-8129-93560bec8488",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:r.InputMap,declaration:Ns,name:null,description:null,readsValue:iM,defaultValue:null,index:1,parent:aM},sM={type:r.Operation,id:"8f2094c0-e27e-465e-9280-112da0de9019",declaration:Ra,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,inputs:[ig,YB],outputs:[tM],process:null,calledByError:[],calledByEntry:[rM],calledBySuccess:[],successCalls:[ng],errorCalls:[],error:null,x:0,y:0,parent:nM},oM={type:r.GenericReference,id:"c2e0e9b4-aa46-4974-bf8a-886b737b12fb",version:"1",entityType:r.ArgumentDeclaration,entityId:"a4106e8e-ec4f-4633-a636-09ae73135f69"},lM={like:!1,inferred:!1,id:"a4279518-3bf3-44b7-a2ac-65142ca37f1c",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:X,asType:!1,isList:!1,parent:oM},dM={type:r.GenericReference,id:"dc273f24-164b-4943-82f9-589b237141e2",version:"1",entityType:r.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},ag={constant:!0,id:"a4106e8e-ec4f-4633-a636-09ae73135f69",type:r.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:lM,defaultValue:null,implements:null,required:!1,writesValues:[ig],index:0,parent:dM},uM={type:r.GenericReference,id:"2178a10c-1cc0-4dad-97c3-0941be6c9738",version:"1",entityType:r.Project,entityId:ne},sg={type:r.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:[ag],calls:[sM,qB],returnStatements:[du,rg],implements:null,index:null,collapsed:!1,private:!1,x:0,y:0,parent:uM},cM={type:r.GenericReference,id:"4d66c53c-f0f7-496a-9955-1e6c8533c5e0",version:"1",entityType:r.Condition,entityId:"a8f4b0f2-5e5e-4e8f-9d7b-1b5b9b6e9a4b"},pM={type:r.GenericReference,id:"6fa0c8e0-d104-4b4d-a035-d4f6e0c49f09",version:"1",entityType:r.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},hM={type:r.GenericReference,id:"146408d5-5336-4877-941a-777dd5871926",version:"1",entityType:r.ArgumentDeclaration,entityId:"c6cf620c-1eee-4919-8578-1a0b6c088551"},yM={type:r.GenericReference,id:"34ae8f8c-548d-4654-984a-6f36affdaf49",version:"1",entityType:r.FunctionCall,entityId:"d2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a"},og={id:"69b1215d-9ebf-4274-b9cb-d4a5888f5122",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:r.InputMap,declaration:ag,name:null,description:null,readsValue:hM,defaultValue:null,index:0,parent:yM},fM={type:r.GenericReference,id:"07540a94-dda1-40b3-8452-f209bdc87b88",version:"1",entityType:r.FunctionCall,entityId:"d2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a"},mM={type:r.GenericReference,id:"eaddf12a-a995-429e-90a0-13bf06efeb28",version:"1",entityType:r.VariableDeclaration,entityId:"faaf3bf6-917d-40d7-aee6-5164f6646c4b"},TM={like:!1,inferred:!1,id:"7fdaf943-3ffb-48e0-b766-b86cc24090cf",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:kr,asType:!1,isList:!1,parent:mM},vM={type:r.GenericReference,id:"030fb5c5-af4d-4c85-8cf0-e99edd50d2bd",version:"1",entityType:r.OutputMap,entityId:"c1ec31f0-25ca-42ac-a4c4-c9ec2255f55b"},EM={type:r.GenericReference,id:"a8b618e9-c68c-48c1-8bd6-ef47c87d699e",version:"1",entityType:r.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},RM={type:r.GenericReference,id:"is-company-name-valid-var-called-by-ref",version:"1",entityType:r.FunctionCall,entityId:"d2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a"},lg={constant:!0,required:!0,type:r.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:TM,readsValue:vM,writesValues:[],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[RM],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:EM},gM={id:"c1ec31f0-25ca-42ac-a4c4-c9ec2255f55b",type:r.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:lu,defaultValue:null,writesValues:[lg],index:0,parent:fM},bM={type:r.FunctionCall,id:"d2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:sg,inputs:[og],outputs:[gM],calledByError:[],calledByEntry:[],process:null,calledBySuccess:[cM],successCalls:[lg],errorCalls:[],error:null,x:0,y:0,parent:pM},IM={type:r.GenericReference,id:"9d0b87b4-bfed-4e02-9e84-6831c21feae2",version:"1",entityType:r.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},AM={type:r.GenericReference,id:"74345f4f-e80d-48be-adff-d12fcea25bec",version:"1",entityType:r.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},DM={type:r.GenericReference,id:"b39279ea-969a-4efb-a9ec-353bfd13db65",version:"1",entityType:r.ArgumentDeclaration,entityId:"c6cf620c-1eee-4919-8578-1a0b6c088551"},PM={type:r.GenericReference,id:"549db613-f225-4c5b-9634-7d096717f0ff",version:"1",entityType:r.Condition,entityId:"a8f4b0f2-5e5e-4e8f-9d7b-1b5b9b6e9a4b"},dg={id:"358e242c-7448-442e-ab8b-fd7fa119ea71",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:r.InputMap,declaration:Fn.inputs[0],name:null,description:null,readsValue:DM,defaultValue:null,index:0,parent:PM},SM={type:r.Condition,id:"a8f4b0f2-5e5e-4e8f-9d7b-1b5b9b6e9a4b",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Fn,inputs:[dg],calledByError:[],calledByEntry:[IM],calledBySuccess:[],successCalls:[bM],errorCalls:[],x:0,y:0,parent:AM},OM={type:r.GenericReference,id:"43ba1e25-f805-488f-8ae8-c58bb6215b2f",version:"1",entityType:r.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},VM={type:r.GenericReference,id:"eb091bed-507f-4a1e-93b5-7cd2fccfe002",version:"1",entityType:r.VariableDeclaration,entityId:"9c928995-0dd5-4f97-9962-56b343bc8a45"},CM={like:!1,inferred:!1,id:"d64152ea-831f-4426-9506-a39bfa170513",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Zi,asType:!1,isList:!1,parent:VM},wM={type:r.GenericReference,id:"7e79c29f-f7bd-441a-a77e-c627604dae94",version:"1",entityType:r.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},BM={type:r.GenericReference,id:"8995ce5f-d5cf-4341-a8b1-5c046cc78b89",version:"1",entityType:r.ArgumentDeclaration,entityId:"7ed0f7bb-2df0-44e2-b0b3-0709dcca8071"},MM={type:r.GenericReference,id:"new-company-bank-account-var-decl-1-called-by-ref",version:"1",entityType:r.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},ug={constant:!0,required:!0,type:r.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:CM,readsValue:BM,writesValues:[],inputs:[],outputs:[],calledByError:[],calledByEntry:[MM],calledBySuccess:[],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:wM},_M={type:r.GenericReference,id:"9a4887bf-d50d-43e4-bdd5-a5262f65f04b",version:"1",entityType:r.ArgumentDeclaration,entityId:"7ed0f7bb-2df0-44e2-b0b3-0709dcca8071"},NM={like:!1,inferred:!1,id:"ae148c06-3143-49e9-9614-c3aca3f6fa7b",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Zi,asType:!1,isList:!1,parent:_M},LM={constant:!0,id:"7ed0f7bb-2df0-44e2-b0b3-0709dcca8071",type:r.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:NM,implements:null,defaultValue:null,required:!0,index:1,writesValues:[ug],parent:OM},GM={type:r.GenericReference,id:"caec9cf8-3133-48d4-a390-114fa71b2933",version:"1",entityType:r.DefinitionEntity,entityId:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d"},$M={type:r.GenericReference,id:"cebcbad8-ca87-4c4b-be8a-312293d49892",version:"1",entityType:r.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},FM={type:r.GenericReference,id:"7b8ccfe5-f9cd-4776-a19b-80c689bbe3df",version:"1",entityType:r.ArgumentDeclaration,entityId:"c6cf620c-1eee-4919-8578-1a0b6c088551"},UM={like:!1,inferred:!1,id:"2a6b4703-ac8d-4d25-8abd-48a115577fec",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:X,asType:!1,isList:!1,parent:FM},xM={constant:!0,id:"c6cf620c-1eee-4919-8578-1a0b6c088551",type:r.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"New company name",description:null,dataType:UM,implements:null,defaultValue:null,required:!0,index:0,writesValues:[dg,og],parent:$M},jM={type:r.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",returnStatements:[],collapsed:!1,inputs:[xM,LM],calls:[SM,ug],index:1,private:!1,implements:null,x:0,y:0,parent:GM},kM={type:r.GenericReference,id:"employee-manager-property-data-type-entity-ref-id",version:"1",entityType:r.DefinitionEntity,entityId:"employee-entity-id"},ZM={type:r.GenericReference,id:"employee-manager-property-data-type-parent-ref-id",version:"1",entityType:r.Property,entityId:"employee-manager-property-id"},qM={like:!1,inferred:!1,id:"employee-manager-property-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:kM,isList:!1,asType:!1,parent:ZM},JM={type:r.GenericReference,id:"employee-manager-property-parent-ref-id",version:"1",entityType:r.DefinitionEntity,entityId:"employee-entity-id"},WM={constant:!1,required:!0,hidden:!1,type:r.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:qM,abstract:!1,parent:JM},YM={type:r.GenericReference,id:"employee-start-date-property-data-type-parent-ref-id",version:"1",entityType:r.Property,entityId:"employee-start-date-property-id"},HM={like:!1,inferred:!1,id:"employee-start-date-property-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Pr,isList:!1,asType:!1,parent:YM},zM={type:r.GenericReference,id:"employee-start-date-property-parent-ref-id",version:"1",entityType:r.DefinitionEntity,entityId:"employee-entity-id"},KM={constant:!1,hidden:!1,required:!0,type:r.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:HM,abstract:!1,parent:zM},XM={type:r.GenericReference,id:"employee-department-property-ref-id",version:"1",entityType:r.Property,entityId:"employee-department-property-id"},QM={like:!1,inferred:!1,id:"employee-department-property-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Zr,isList:!1,asType:!1,options:["Human Resources","Finance","IT","Sales","Marketing","Customer Service","Logistics","Product"],parent:XM},e_={type:r.GenericReference,id:"employee-department-property-parent-ref-id",version:"1",entityType:r.DefinitionEntity,entityId:"employee-entity-id"},t_={constant:!1,hidden:!1,required:!0,type:r.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:QM,abstract:!1,parent:e_},r_={type:r.GenericReference,id:"employee-prototype-parent-ref-id",version:"1",entityType:r.Project,entityId:ne},ur={type:r.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:[t_,KM,WM],abstract:!1,static:!1,abstractMethods:[],methods:[],implements:[],extends:[$t],x:0,y:0,parent:r_},n_={type:r.GenericReference,id:"dec8fbfe-9124-41fd-9f1c-5b2f07cfd6ba",version:"1",entityType:r.Property,entityId:"4f52d044-f3dd-4bdf-927e-637c3b92e8bd"},i_={like:!1,inferred:!1,id:"bc0b8979-6c43-4d47-a712-6742b89e3c00",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:X,isList:!1,asType:!1,parent:n_},a_={type:r.GenericReference,id:"4f8c0a05-466e-4672-b4c4-6bd408c0be9a",version:"1",entityType:r.DefinitionEntity,entityId:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d"},s_={constant:!1,hidden:!1,required:!0,type:r.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:i_,abstract:!1,parent:a_},o_={type:r.GenericReference,id:"95173fe0-a6e6-443c-94f3-f7c5cf171fcf",version:"1",entityType:r.Property,entityId:"80c86e1b-caca-4ba5-9b1f-38f72d10e4a3"},l_={like:!1,inferred:!1,id:"ddbb6f5c-0cf4-41fb-83b3-b6c47c0e338d",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Zi,isList:!1,asType:!1,parent:o_},d_={type:r.GenericReference,id:"6a9a0b72-a05d-4169-b3f3-5afb01e8d0df",version:"1",entityType:r.DefinitionEntity,entityId:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d"},uu={constant:!1,hidden:!1,required:!0,type:r.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:l_,abstract:!1,parent:d_},u_={type:r.GenericReference,id:"62892cc6-d227-4088-90d3-ae7c15ed4af4",version:"1",entityType:r.Property,entityId:"19a31727-1fba-40a5-be25-18e0f149d5cb"},c_={like:!1,inferred:!1,id:"1f7629df-dc29-4c89-8369-c6d043e97a9e",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:$t,isList:!1,asType:!1,parent:u_},p_={type:r.GenericReference,id:"89384206-fd5a-4f0a-849c-f777473e5773",version:"1",entityType:r.DefinitionEntity,entityId:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d"},h_={constant:!1,hidden:!1,required:!0,type:r.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:c_,private:!0,abstract:!1,parent:p_},y_={type:r.GenericReference,id:"4d2ffb6c-5f38-436e-8339-fb9878ac2b5e",version:"1",entityType:r.Property,entityId:"f8310850-a87e-405c-b182-4f1d5fa49240"},f_={like:!1,inferred:!1,id:"ad44250b-40c2-48f7-a480-381fa938f562",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ur,isList:!0,asType:!1,parent:y_},m_={type:r.GenericReference,id:"aa5d4eee-6fac-4e72-bf21-9c8750024541",version:"1",entityType:r.DefinitionEntity,entityId:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d"},T_={constant:!1,hidden:!1,required:!0,type:r.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:f_,implements:null,private:!0,static:!1,abstract:!1,parent:m_},v_={id:"company-prototype-primary-key-property-data-type-ref-id",type:r.GenericReference,entityId:"company-prototype-primary-key-property-id",version:"1",entityType:r.Property},E_={id:"company-prototype-primary-key-property-ref-id",type:r.GenericReference,entityId:"company-prototype-primary-key-property-id",version:"1",entityType:r.Property},R_={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:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:qr,asType:!1,parent:E_},g_={id:"company-prototype-primary-key-property-parent-ref-id",type:r.GenericReference,entityId:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d",version:"1",entityType:r.DefinitionEntity},b_={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:r.Property,private:!1,abstract:!1,implements:_i,static:!1,index:4,defaultValue:{id:"company-prototype-primary-key-property-data-type-default-value-id",type:r.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:C.UUID,value:null,parent:v_,autogeneration:{type:st.Unique,rangeStart:null,rangeEnd:null},valueAsType:null},dataType:R_,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:g_},I_={type:r.GenericReference,id:"e3c03b6b-2ea0-4d99-865d-5e6a348672d0",version:"1",entityType:r.Project,entityId:ne},cr={type:r.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:[s_,uu,h_,T_,b_],static:!1,abstract:!1,abstractMethods:[],methods:[sB,jM],extends:[],implements:[gt,rr],x:0,y:0,parent:I_},A_={type:r.GenericReference,id:"ffcad334-138d-4b67-8fb3-5f0e6f5fefbd",version:"1",entityType:r.Project,entityId:ne},cu={type:r.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:[],returnStatements:[],implements:null,collapsed:!1,private:!1,index:null,x:0,y:0,parent:A_};r.GenericReference,r.DataType;const D_={id:"cron-job-entity-expression-property-ref-id",type:r.GenericReference,entityId:"cron-job-entity-expression-property-id",version:"1",entityType:r.Property},P_={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:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:X,asType:!1,parent:D_},S_={id:"cron-job-entity-ref-id",type:r.GenericReference,entityId:"cron-job-entity-id",version:"1",entityType:r.DefinitionEntity},O_={constant:!1,hidden:!1,required:!0,id:"cron-job-entity-expression-property-id",type:r.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:P_,implements:null,static:!0,private:!1,abstract:!1,index:0,parent:S_},V_={id:"cron-job-entity-trigger-show-popup-func-call-called-by-ref-one-id",type:r.GenericReference,entityId:"cron-job-entity-trigger-func-decl-id",version:"1",entityType:r.FunctionDeclaration},C_={id:"cron-job-entity-trigger-show-popup-func-call-parent-ref-id",type:r.GenericReference,entityId:"cron-job-entity-trigger-func-decl-id",version:"1",entityType:r.FunctionDeclaration},w_={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:r.FunctionCall,declaration:cu,inputs:[],outputs:[],process:null,successCalls:[],calledByError:[],calledByEntry:[V_],calledBySuccess:[],errorCalls:[],error:null,x:0,y:0,parent:C_},B_={id:"cron-job-entity-trigger-func-decl-parent-ref-id",type:r.GenericReference,entityId:"cron-job-entity-id",version:"1",entityType:r.DefinitionEntity},M_={id:"cron-job-entity-trigger-func-decl-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:r.FunctionDeclaration,name:"Scheduled trigger",description:"The function that is called when the cron job is triggered",inputs:[],private:!1,implements:$d,calls:[w_],collapsed:!1,returnStatements:[],index:0,x:0,y:0,parent:B_},__={id:"cron-job-entity-parent-ref-id",type:r.GenericReference,entityId:ne,version:"1",entityType:r.Project},N_={id:"cron-job-entity-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:r.DefinitionEntity,name:"Run at 12pm on Christmas day",description:"A cron job that runs at 12pm on Christmas day",properties:[O_],static:!0,abstract:!1,abstractMethods:[],extends:[Qs],implements:[],methods:[M_],x:0,y:0,parent:__},L_={type:r.GenericReference,id:"52dbd85c-48b1-462a-8205-2437d6fb1cb4",version:"1",entityType:r.Project,entityId:ne},G_={type:r.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:[Sa],x:0,y:0,parent:L_},Bo="f558fbf8-67de-4545-9804-6ae621e0b2d4",$_={id:"getCompanyByIdEndpointPathParamsVariableDataTypeRef",type:r.GenericReference,version:"1",entityType:r.ArgumentDeclaration,entityId:"getCompanyByIdEndpointPathParamsArgumentDeclaration"},F_={id:"getCompanyByIdEndpointPathParamsArgumentDeclarationRef",type:r.GenericReference,version:"1",entityType:r.ArgumentDeclaration,entityId:"getCompanyByIdEndpointPathParamsArgumentDeclaration"},U_={like:!1,inferred:!1,id:"getCompanyByIdEndpointPathParamsVariableDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!0,entity:X,asType:!1,parent:F_},x_={id:"getCompanyByIdEndpointReachedEntityEventRef",type:r.GenericReference,version:"1",entityType:r.FunctionDeclaration,entityId:"getCompanyByIdEndpointReachedEntityEvent"},j_={id:"getCompanyByIdEndpointRequestHeadersVariableDataTypeRef",type:r.GenericReference,version:"1",entityType:r.ArgumentDeclaration,entityId:"getCompanyByIdEndpointRequestHeadersArgumentDeclaration"},k_={id:"getCompanyByIdEndpointRequestHeadersArgumentDeclarationRef",type:r.GenericReference,version:"1",entityType:r.ArgumentDeclaration,entityId:"getCompanyByIdEndpointRequestHeadersArgumentDeclaration"},Z_={like:!1,inferred:!1,id:"getCompanyByIdEndpointRequestHeadersVariableDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!0,entity:vt,asType:!1,parent:k_},q_={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:r.ArgumentDeclaration,writesValues:[],name:"Request headers",defaultValue:{id:"getCompanyByIdEndpointRequestHeadersVariableDataTypeDefaultValueId",type:r.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:C.KeyValue,value:{},parent:j_,autogeneration:null,valueAsType:null},dataType:Z_,implements:Sd,required:!0,index:0,parent:x_},J_={id:"getCompanyByIdEndpointReachedEntityEventRefTwo",type:r.GenericReference,version:"1",entityType:r.FunctionDeclaration,entityId:"getCompanyByIdEndpointReachedEntityEvent"},W_={constant:!0,id:"getCompanyByIdEndpointPathParamsArgumentDeclaration",type:r.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:r.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:C.KeyValue,value:{},parent:$_,autogeneration:null,valueAsType:null},dataType:U_,implements:Od,required:!0,index:1,parent:J_},Y_={id:"getCompanyByIdEndpointReachedEntityEventRefThree",type:r.GenericReference,version:"1",entityType:r.FunctionDeclaration,entityId:"getCompanyByIdEndpointReachedEntityEvent"},H_={id:"getCompanyByIdEndpointRequestQueryParamsVariableDataTypeRef",type:r.GenericReference,version:"1",entityType:r.ArgumentDeclaration,entityId:"getCompanyByIdEndpointRequestQueryParamsArgumentDeclaration"},z_={id:"getCompanyByIdEndpointRequestQueryParamsArgumentDeclarationRef",type:r.GenericReference,version:"1",entityType:r.ArgumentDeclaration,entityId:"getCompanyByIdEndpointRequestQueryParamsArgumentDeclaration"},K_={like:!1,inferred:!1,id:"getCompanyByIdEndpointRequestQueryParamsVariableDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!0,asType:!1,entity:X,parent:z_},X_={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:r.ArgumentDeclaration,writesValues:[],name:"Request query params",defaultValue:{id:"getCompanyByIdEndpointRequestQueryParamsVariableDataTypeDefaultValueId",type:r.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:C.KeyValue,value:{},parent:H_,autogeneration:null,valueAsType:null},dataType:K_,implements:Vd,required:!0,index:2,parent:Y_},Q_={id:"getCompanyByIdEndpointReachedEntityEventRefFour",type:r.GenericReference,version:"1",entityType:r.FunctionDeclaration,entityId:"getCompanyByIdEndpointReachedEntityEvent"},eN={id:"getCompanyByIdEndpointRequestBodyArgumentDeclarationRef",type:r.GenericReference,version:"1",entityType:r.ArgumentDeclaration,entityId:"getCompanyByIdEndpointRequestBodyArgumentDeclaration"},tN={like:!1,inferred:!1,id:"getCompanyByIdEndpointRequestBodyVariableDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,asType:!1,entity:vt,parent:eN},rN={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:r.ArgumentDeclaration,writesValues:[],name:"Request body",defaultValue:null,dataType:tN,implements:Cd,index:3,required:!0,parent:Q_},nN={id:"getCompanyByIdEndpointResponseCodeReturnDeclarationRef",type:r.GenericReference,version:"1",entityType:r.ReturnDeclaration,entityId:"getCompanyByIdEndpointResponseCodeReturnDeclaration"},iN={like:!1,inferred:!1,id:"9ba575b0-6f8e-436d-a3de-3b843622aa17",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ue,asType:!1,isList:!1,parent:nN},aN={id:"getCompanyByIdEndpointReturnStatementRef",type:r.GenericReference,version:"1",entityType:r.ReturnStatement,entityId:"getCompanyByIdEndpointReturnStatement"},sN={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:r.ReturnDeclaration,name:"Response code",defaultValue:null,dataType:iN,implements:wd,readsValue:null,required:!0,index:0,parent:aN},oN={id:"getCompanyByIdEndpointResponseHeadersDataTypeRef",type:r.GenericReference,version:"1",entityType:r.ReturnDeclaration,entityId:"getCompanyByIdEndpointResponseHeadersReturnDeclaration"},lN={id:"getCompanyByIdEndpointResponseHeadersReturnDeclarationRef",type:r.GenericReference,version:"1",entityType:r.ReturnDeclaration,entityId:"getCompanyByIdEndpointResponseHeadersReturnDeclaration"},dN={like:!1,inferred:!1,id:"getCompanyByIdEndpointResponseHeadersDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!0,entity:vt,asType:!1,parent:lN},uN={id:"getCompanyByIdEndpointReturnStatementRefTwo",type:r.GenericReference,version:"1",entityType:r.ReturnStatement,entityId:"getCompanyByIdEndpointReturnStatement"},cN={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:r.ReturnDeclaration,name:"Response headers",defaultValue:{id:"getCompanyByIdEndpointResponseHeadersDataTypeDefaultValueId",type:r.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:C.KeyValue,value:{},parent:oN,autogeneration:null,valueAsType:null},dataType:dN,implements:Bd,readsValue:null,required:!0,index:1,parent:uN},pN={id:"getCompanyByIdEndpointResponseBodyReturnDeclarationRef",type:r.GenericReference,version:"1",entityType:r.ReturnDeclaration,entityId:"getCompanyByIdEndpointResponseBodyReturnDeclaration"},hN={like:!1,inferred:!1,id:"getCompanyByIdEndpointResponseBodyDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,asType:!1,entity:vt,parent:pN},yN={id:"getCompanyByIdEndpointReturnStatementRefThree",type:r.GenericReference,version:"1",entityType:r.ReturnStatement,entityId:"getCompanyByIdEndpointReturnStatement"},fN={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:r.ReturnDeclaration,name:"Response body",implements:Md,defaultValue:null,dataType:hN,readsValue:null,required:!0,index:2,parent:yN},mN={id:"getCompanyByIdEndpointReturnStatementCallerRef",type:r.GenericReference,entityId:"getCompanyByIdEndpointReachedEntityEvent",version:"1",entityType:r.FunctionDeclaration},TN={id:"getCompanyByIdEndpointReachedEntityEventRefFive",type:r.GenericReference,version:"1",entityType:r.FunctionDeclaration,entityId:"getCompanyByIdEndpointReachedEntityEvent"},vN={id:"getCompanyByIdEndpointReturnStatement",type:r.ReturnStatement,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[sN,cN,fN],calledByError:[],calledByEntry:[mN],calledBySuccess:[],throws:null,x:0,y:0,parent:TN},EN={id:"endpointBuiltInBaseEntityRefFour",type:r.GenericReference,version:"1",entityType:r.BuiltInBaseEntity,entityId:Bo},RN={id:"getCompanyByIdEndpointReachedEntityEvent",name:"Endpoint reached",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:r.FunctionDeclaration,inputs:[q_,W_,X_,rN],returnStatements:[vN],description:"Fired when the endpoint is reached.",calls:[],collapsed:!1,implements:_d,index:0,private:!1,x:0,y:0,parent:EN},gN={id:"getCompanyByIdEndpointPathPropertyDataTypeRef",type:r.GenericReference,version:"1",entityType:r.Property,entityId:"getCompanyByIdEndpointPathProperty"},bN={id:"getCompanyByIdEndpointPathPropertyRef",type:r.GenericReference,version:"1",entityType:r.Property,entityId:"getCompanyByIdEndpointPathProperty"},IN={like:!1,inferred:!1,id:"getCompanyByIdEndpointPathPropertyDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:X,asType:!1,parent:bN},AN={id:"getCompanyByIdEndpointBaseEntityRefTwo",type:r.GenericReference,version:"1",entityType:r.DefinitionEntity,entityId:Bo},DN={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:r.Property,private:!1,abstract:!1,static:!0,implements:Dd,defaultValue:{id:"getCompanyByIdEndpointPathPropertyDataTypeDefaultValueId",type:r.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:C.String,value:"/company/{id}",parent:gN,valueAsType:null,autogeneration:null},dataType:IN,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:AN},PN={id:"getCompanyByIdEndpointMethodPropertyDataTypeRef",type:r.GenericReference,version:"1",entityType:r.Property,entityId:"getCompanyByIdEndpointMethodProperty"},SN={id:"getCompanyByIdEndpointMethodPropertyRef",type:r.GenericReference,version:"1",entityType:r.Property,entityId:"getCompanyByIdEndpointMethodProperty"},ON={like:!1,inferred:!1,id:"getCompanyByIdEndpointMethodPropertyDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,entity:Zr,isList:!0,asType:!1,options:["GET","POST","PUT","DELETE","PATCH","OPTIONS","HEAD","TRACE","CONNECT","CUSTOM"],parent:SN},VN={id:"getCompanyByIdEndpointBaseEntityRefThree",type:r.GenericReference,version:"1",entityType:r.DefinitionEntity,entityId:Bo},CN={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:r.Property,private:!1,abstract:!1,static:!0,implements:Pd,index:0,defaultValue:{id:"getCompanyByIdEndpointMethodPropertyDataTypeDefaultValueId",type:r.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:"GET",name:C.Enum,parent:PN,valueAsType:null,autogeneration:null},dataType:ON,description:null,parent:VN},wN={type:r.GenericReference,id:"6a905153-8aa8-4424-bd7b-6415731a2725",version:"1",entityType:r.Project,entityId:ne},BN={type:r.DefinitionEntity,id:Bo,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:[DN,CN],methods:[RN],static:!0,abstract:!1,abstractMethods:[],extends:[],implements:[Sa],x:0,y:0,parent:wN},MN={id:"plant-prototype-database-property-ref-id",type:r.GenericReference,entityId:"plant-prototype-database-property-id",version:"1",entityType:r.Property},_N={id:"plant-prototype-database-property-data-type-default-value-parent-ref-id",type:r.GenericReference,entityId:"plant-prototype-database-property-id",version:"1",entityType:r.Property},NN={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:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:Vr,asType:!1,parent:MN},LN={id:"plant-prototype-database-property-parent-ref-id",type:r.GenericReference,entityId:"plant-entity-id",version:"1",entityType:r.DefinitionEntity},GN={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:r.Property,private:!1,abstract:!1,implements:Mi,static:!0,index:0,defaultValue:{id:"plant-prototype-database-property-data-type-default-value-id",type:r.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:null,name:C.EntityTemplate,valueAsType:iu,autogeneration:null,parent:_N},dataType:NN,description:"The database that the entity belongs to.",parent:LN},$N={type:r.GenericReference,id:"plant-name-property-ref-id",version:"1",entityType:r.Property,entityId:"plant-name-property-id"},FN={like:!1,inferred:!1,id:"plant-name-property-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:X,asType:!1,isList:!1,parent:$N},UN={type:r.GenericReference,id:"animal-name-property-parent-ref-id",version:"1",entityType:r.DefinitionEntity,entityId:"plant-entity-id"},xN={constant:!1,hidden:!1,required:!0,type:r.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:FN,abstract:!1,parent:UN},jN={type:r.GenericReference,id:"plant-prototype-parent-ref-id",version:"1",entityType:r.Project,entityId:ne},kN={type:r.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:[GN,xN],methods:[],extends:[],implements:[gt],x:0,y:0,parent:jN},ZN={id:"product-prototype-database-property-ref-id",type:r.GenericReference,entityId:"product-prototype-database-property-id",version:"1",entityType:r.Property},qN={id:"product-prototype-database-property-data-type-default-value-parent-ref-id",type:r.GenericReference,entityId:"product-prototype-database-property-id",version:"1",entityType:r.Property},JN={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:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:Vr,asType:!1,parent:ZN},WN={id:"product-prototype-database-property-parent-ref-id",type:r.GenericReference,entityId:"a2d0ec83-72ce-4f54-b059-a39e018fa86c",version:"1",entityType:r.DefinitionEntity},YN={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:r.Property,private:!1,abstract:!1,implements:Mi,static:!0,index:0,defaultValue:{id:"product-prototype-database-property-data-type-default-value-id",type:r.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:null,name:C.EntityTemplate,valueAsType:au,autogeneration:null,parent:qN},dataType:JN,description:"The database that the entity belongs to.",parent:WN},HN={type:r.GenericReference,id:"13a4045e-dcb0-4159-8d33-10a646078b5a",version:"1",entityType:r.Property,entityId:"d519c26a-15b8-40d8-ad09-13fa9342e9ba"},zN={like:!1,inferred:!1,id:"7449779e-1d4e-409c-81c6-4b611336ed18",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:X,isList:!1,asType:!1,parent:HN},KN={type:r.GenericReference,id:"0969562f-d836-406f-8b48-dd9d417fbe72",version:"1",entityType:r.DefinitionEntity,entityId:"a2d0ec83-72ce-4f54-b059-a39e018fa86c"},XN={constant:!1,hidden:!1,required:!0,type:r.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:zN,abstract:!1,parent:KN},QN={type:r.GenericReference,id:"833a5425-7bd0-41dd-9e97-e018acce9592",version:"1",entityType:r.Project,entityId:ne},eL={id:"product-prototype-primary-key-property-data-type-ref-id",type:r.GenericReference,entityId:"product-prototype-primary-key-property-id",version:"1",entityType:r.Property},tL={id:"product-prototype-primary-key-property-ref-id",type:r.GenericReference,entityId:"product-prototype-primary-key-property-id",version:"1",entityType:r.Property},rL={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:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:qr,asType:!1,parent:tL},nL={id:"product-prototype-primary-key-property-parent-ref-id",type:r.GenericReference,entityId:"a2d0ec83-72ce-4f54-b059-a39e018fa86c",version:"1",entityType:r.DefinitionEntity},iL={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:r.Property,private:!1,abstract:!1,implements:null,static:!1,index:0,defaultValue:{id:"product-prototype-primary-key-property-data-type-default-value-id",type:r.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:C.UUID,value:null,parent:eL,autogeneration:{type:st.Unique,rangeStart:null,rangeEnd:null},valueAsType:null},dataType:rL,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:nL},aL={type:r.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:[gt,rr],extends:[],abstract:!1,static:!1,abstractMethods:[],properties:[iL,YN,XN],methods:[],x:0,y:0,parent:QN},Ji="project-loaded-event-id",Kr="get-bitcoin-price-http-call-operation-id",cg="get-bitcoin-price-http-call-response-body-id",Mo="validate-bitcoin-price-response-operation-ids",sL={type:r.GenericReference,id:"validate-bitcoin-data-to-validate-input-map-reads-value-ref-id",version:"1",entityType:r.OutputMap,entityId:cg},oL={type:r.GenericReference,id:"validate-bitcoin-data-to-validate-input-map-parent-ref-id",version:"1",entityType:r.Operation,entityId:Mo},pg={id:"validate-bitcoin-data-to-validate-input-map-id",type:r.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:_n.inputs[1],name:null,description:null,readsValue:sL,defaultValue:null,index:0,parent:oL},lL={type:r.GenericReference,id:"validate-bitcoin-type-to-match-input-map-default-value-parent-ref-id",version:"1",entityType:r.InputMap,entityId:"validate-bitcoin-type-to-match-input-map-id"},dL={type:r.GenericReference,id:"validate-bitcoin-type-to-match-input-map-parent-ref-id",version:"1",entityType:r.Operation,entityId:Mo},uL={id:"validate-bitcoin-type-to-match-input-map-id",type:r.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:_n.inputs[0],name:null,description:null,readsValue:null,defaultValue:{id:"validate-bitcoin-type-to-match-input-map-default-value-id",type:r.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:C.EntityTemplate,valueAsType:zR,value:null,parent:lL,autogeneration:null},index:0,parent:dL},cL={type:r.GenericReference,id:"validate-bitcoin-validated-entity-output-map-parent-ref-id",version:"1",entityType:r.Operation,entityId:Mo},pL={id:"validate-bitcoin-validated-entity-output-map-id",type:r.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:_n.outputs[0],writesValues:[],index:0,parent:cL},hL={type:r.GenericReference,id:"validate-bitcoin-price-response-operation-parent-ref-id",version:"1",entityType:r.GlobalEvent,entityId:Ji},yL={type:r.GenericReference,id:"validate-bitcoin-price-response-operation-called-by-ref-id",version:"1",entityType:r.Operation,entityId:Kr},fL={type:r.Operation,id:Mo,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:_n,inputs:[uL,pg],outputs:[pL],process:null,successCalls:[],errorCalls:[],error:null,x:0,y:0,calledByError:[],calledByEntry:[],calledBySuccess:[yL],parent:hL},mL={type:r.GenericReference,id:"96edb661-3f36-406c-8921-f1679dd796a3",version:"1",entityType:r.FunctionCall,entityId:Kr},TL={id:"c93e1393-9b5e-4de2-b8da-7eae647d715a",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:r.InputMap,declaration:Gs,name:null,description:null,readsValue:null,defaultValue:null,index:0,parent:mL},vL={type:r.GenericReference,id:"40312b28-71b8-4b01-a654-58b87191939d",version:"1",entityType:r.FunctionCall,entityId:Kr},EL={type:r.GenericReference,id:"6ea96c7d-02a7-4971-82ad-2f32a0fec8b4",version:"1",entityType:r.InputMap,entityId:"9f21cbac-5a83-4983-8923-9224ffd3ba9f"},RL={id:"9f21cbac-5a83-4983-8923-9224ffd3ba9f",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:r.InputMap,declaration:$s,name:null,description:null,readsValue:null,defaultValue:{id:"get-bitcoin-price-http-request-url-argument-default-value-id",type:r.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:C.String,parent:EL,valueAsType:null,autogeneration:null},index:1,parent:vL},gL={type:r.GenericReference,id:"2610bf4a-c8a2-4746-b6cc-eb15f7fa8e9c",version:"1",entityType:r.FunctionCall,entityId:Kr},bL={id:"ffb3cd9d-c955-4104-bc7b-299120fe4ede",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:r.InputMap,declaration:Fs,name:null,description:null,readsValue:null,defaultValue:null,index:2,parent:gL},IL={type:r.GenericReference,id:"bfd29a6a-671a-448c-9f2f-f8c7e4ad8349",version:"1",entityType:r.FunctionCall,entityId:Kr},AL={id:"412bf1f3-1a8e-4665-a95f-82117540e34e",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:r.InputMap,declaration:Us,name:null,description:null,readsValue:null,defaultValue:null,index:3,parent:IL},DL={type:r.GenericReference,id:"616a15f3-c224-4b11-b95c-63314edef409",version:"1",entityType:r.FunctionCall,entityId:Kr},PL={id:"4dd4651c-02e4-45f1-b50f-824f3bcb1648",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:r.OutputMap,defaultValue:null,declaration:js,writesValues:[],index:1,parent:DL},SL={type:r.GenericReference,id:"28793b68-4d7e-4826-aee1-f201a3499faf",version:"1",entityType:r.FunctionCall,entityId:Kr},OL={id:"94fe9d35-4dd4-4729-a50c-5283ccd7e661",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:r.OutputMap,defaultValue:null,declaration:xs,writesValues:[],index:0,parent:SL},VL={type:r.GenericReference,id:"f13e04b2-49b4-4c69-85b8-cbbafafa3524",version:"1",entityType:r.FunctionCall,entityId:Kr},CL={id:cg,type:r.OutputMap,defaultValue:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:ks,writesValues:[pg],index:2,parent:VL},wL={type:r.GenericReference,id:"6148d6d0-caaa-45fc-b601-ff2493dfc60f",version:"1",entityType:r.GlobalEvent,entityId:Ji},BL={type:r.GenericReference,id:"b115f084-807b-44b3-ae01-b69cc342f761",version:"1",entityType:r.GlobalEvent,entityId:Ji},ML={type:r.Operation,id:Kr,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:ga,inputs:[TL,RL,bL,AL],outputs:[OL,PL,CL],process:null,parent:BL,calledByError:[],calledByEntry:[wL],calledBySuccess:[],successCalls:[fL],errorCalls:[],error:null,x:0,y:0},_L={type:r.GenericReference,id:"24e76019-3f94-475b-91ce-297f76bbc224",version:"1",entityType:r.GlobalEvent,entityId:Ji},NL={type:r.GenericReference,id:"0eac8e29-cdf2-42f8-8ea7-ad76d4d79abe",version:"1",entityType:r.GlobalEvent,entityId:Ji},LL={process:null,type:r.FunctionCall,id:"2d2e7593-bfbf-457c-a607-5fce18eef457",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:cu,inputs:[],outputs:[],calledByError:[],calledByEntry:[_L],calledBySuccess:[],parent:NL,successCalls:[],errorCalls:[],error:null,x:0,y:0},GL={id:"793b5999-a9da-47fb-9665-0c17ebc6d5c9",type:r.GenericReference,version:"1",entityType:r.Project,entityId:ne},$L={type:r.GlobalEvent,id:Ji,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:jr.PROJECT_PUBLICATION_COMPLETED,description:null,returnStatements:[],collapsed:!1,implements:to,parent:GL,inputs:[],calls:[LL,ML],x:0,y:0},nr="abort-execution-func-declaration-id",Ya="abort-execution-func-exec-var-declaration-id",pu="abort-execution-func-small-wait-op-id",hu="abort-execution-func-long-wait-op-id",hg="abort-execution-func-long-wait-process-output-id",yg="abort-execution-func-exec-var-instance-write-id",fg="abort-execution-func-long-wait-return-stmt-id",mg="abort-execution-func-small-wait-return-stmt-id",FL="abort-execution-func-exec-var-instance-abort-call-id",yu="abort-execution-func-exec-var-instance-abort-internal-call-id",fu="abort-execution-func-exec-second-wait-op-id",UL={type:r.GenericReference,id:"short-wait-return-statement-returned-hello-string-data-type-parent-ref-id",version:"1",entityType:r.ReturnDeclaration,entityId:"short-wait-return-statement-returned-hello-string-id"},xL={type:r.GenericReference,id:"short-wait-return-statement-returned-hello-string-data-type-default-value-parent-ref-id",version:"1",entityType:r.ReturnDeclaration,entityId:"short-wait-return-statement-returned-hello-string-id"},jL={like:!1,inferred:!1,id:"short-wait-return-statement-returned-hello-string-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:X,asType:!1,isList:!1,parent:UL},kL={type:r.GenericReference,id:"short-wait-return-statement-returned-hello-string-parent-ref-id",version:"1",entityType:r.ReturnStatement,entityId:mg},ZL={constant:!0,isError:!1,id:"short-wait-return-statement-returned-hello-string-id",type:r.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:r.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:C.String,value:"Hello 2",autogeneration:null,valueAsType:null,parent:xL},dataType:jL,implements:null,readsValue:null,required:!0,index:0,parent:kL},qL={type:r.GenericReference,id:"short-wait-return-statement-called-by-ref-id",version:"1",entityType:r.Operation,entityId:fu},JL={type:r.GenericReference,id:"short-wait-return-statement-parent-ref-id",version:"1",entityType:r.FunctionDeclaration,entityId:nr},Tg={type:r.ReturnStatement,id:mg,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[ZL],calledByError:[],calledByEntry:[],calledBySuccess:[qL],throws:null,x:0,y:0,parent:JL},WL={type:r.GenericReference,id:"second-wait-argument-default-value-parent-ref-id",version:"1",entityType:r.InputMap,entityId:"second-wait-argument-map-id"},YL={type:r.GenericReference,id:"second-wait-argument-map-parent-ref-id",version:"1",entityType:r.Operation,entityId:fu},HL={id:"second-wait-argument-map-id",type:r.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Bn,name:null,description:null,readsValue:null,defaultValue:{id:"second-wait-argument-default-value-id",type:r.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:2e3,valueAsType:null,autogeneration:null,name:C.Number,parent:WL},index:0,parent:YL},zL={type:r.GenericReference,id:"small-wait-parent-ref-id",version:"1",entityType:r.FunctionDeclaration,entityId:nr},KL={type:r.GenericReference,id:"small-wait-called-by-ref-one-id",version:"1",entityType:r.InternalCall,entityId:yu},XL={id:fu,type:r.Operation,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Lt,inputs:[HL],outputs:[],process:null,successCalls:[Tg],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[],calledBySuccess:[KL],error:null,parent:zL},QL={type:r.GenericReference,id:"abort-exec-func-abort-call-var-instance-abort-internal-call-called-by-ref-one-id",version:"1",entityType:r.VariableInstance,entityId:yg},e2={type:r.GenericReference,id:"abort-exec-func-abort-call-var-instance-abort-internal-call-called-by-ref-two-id",version:"1",entityType:r.Operation,entityId:pu},t2={type:r.GenericReference,id:"abort-exec-func-abort-call-var-instance-main-project-ref-id",version:"1",entityType:r.FunctionDeclaration,entityId:nr},r2={type:r.GenericReference,id:"abort-exec-func-abort-call-var-instance-declaration-ref-id-2",version:"1",entityType:r.VariableDeclaration,entityId:Ya},n2={type:r.GenericReference,id:"abort-exec-func-abort-call-var-instance-internal-call-ref-one-id",version:"1",entityType:r.InternalCall,entityId:yu},i2={id:FL,type:r.VariableInstance,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:r2,defaultValue:null,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],x:0,y:0,readsValue:null,writesValues:[],internalCalls:[n2],parent:t2},vg={id:yu,type:r.InternalCall,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,inputs:[],outputs:[],declaration:Fd,process:null,calledByError:[],calledByEntry:[],calledBySuccess:[QL,e2],successCalls:[XL],errorCalls:[],error:null,index:0,parent:i2},a2={type:r.GenericReference,id:"abort-exec-func-var-write-instance-main-project-ref-id",version:"1",entityType:r.FunctionDeclaration,entityId:nr},s2={type:r.GenericReference,id:"abort-exec-func-var-write-instance-called-by-ref-one-id",version:"1",entityType:r.VariableDeclaration,entityId:Ya},o2={type:r.GenericReference,id:"abort-exec-func-var-write-instance-called-by-ref-two-id",version:"1",entityType:r.FunctionDeclaration,entityId:nr},l2={type:r.GenericReference,id:"abort-exec-func-abort-call-var-instance-declaration-ref-id",version:"1",entityType:r.VariableDeclaration,entityId:Ya},d2={type:r.GenericReference,id:"abort-exec-func-var-write-instance-reads-value-ref-id",version:"1",entityType:r.OutputMap,entityId:hg},mu={id:yg,type:r.VariableInstance,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:l2,inputs:[],outputs:[],defaultValue:null,calledByError:[],calledByEntry:[o2],calledBySuccess:[s2],successCalls:[vg],errorCalls:[],x:0,y:0,readsValue:d2,writesValues:[],internalCalls:[],parent:a2},u2={type:r.GenericReference,id:"abort-exec-func-var-decl-datatype-parent-ref-id",version:"1",entityType:r.VariableDeclaration,entityId:Ya};r.GenericReference,r.DataType;const c2={like:!1,inferred:!1,id:"abort-exec-func-var-decl-datatype-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,entity:eo,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,asType:!1,isList:!1,parent:u2},p2={type:r.GenericReference,id:"abort-exec-func-var-decl-main-project-ref-id",version:"1",entityType:r.FunctionDeclaration,entityId:nr},h2={type:r.GenericReference,id:"abort-exec-func-var-decl-called-by-ref-one-id",version:"1",entityType:r.FunctionDeclaration,entityId:nr},y2={constant:!0,required:!0,id:Ya,type:r.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:c2,inputs:[],outputs:[],calledByError:[],calledByEntry:[h2],calledBySuccess:[],successCalls:[mu],errorCalls:[],x:0,y:0,readsValue:null,writesValues:[],internalCalls:[],parent:p2},f2={type:r.GenericReference,id:"long-wait-return-statement-returned-hello-string-data-type-parent-ref-id",version:"1",entityType:r.ReturnDeclaration,entityId:"long-wait-return-statement-returned-hello-string-id"},m2={type:r.GenericReference,id:"long-wait-return-statement-returned-hello-string-data-type-default-value-parent-ref-id",version:"1",entityType:r.ReturnDeclaration,entityId:"long-wait-return-statement-returned-hello-string-id"},T2={like:!1,inferred:!1,id:"long-wait-return-statement-returned-hello-string-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:X,asType:!1,isList:!1,parent:f2},v2={type:r.GenericReference,id:"long-wait-return-statement-returned-hello-string-parent-ref-id",version:"1",entityType:r.ReturnStatement,entityId:fg},E2={constant:!0,isError:!1,id:"long-wait-return-statement-returned-hello-string-id",type:r.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:r.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:C.String,value:"Hello 1",autogeneration:null,valueAsType:null,parent:m2},dataType:T2,readsValue:null,required:!0,index:0,parent:v2},R2={type:r.GenericReference,id:"long-wait-return-statement-called-by-ref-id",version:"1",entityType:r.Operation,entityId:hu},g2={type:r.GenericReference,id:"long-wait-return-statement-parent-ref-id",version:"1",entityType:r.FunctionDeclaration,entityId:nr},Eg={type:r.ReturnStatement,id:fg,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[E2],calledByError:[],calledByEntry:[],calledBySuccess:[R2],throws:null,x:0,y:0,parent:g2},b2={type:r.GenericReference,id:"long-argument-default-value-parent-ref-id",version:"1",entityType:r.InputMap,entityId:"long-argument-map-id"},Rg={type:r.GenericReference,id:"long-argument-map-parent-ref-id",version:"1",entityType:r.Operation,entityId:hu},I2={id:"long-argument-map-id",type:r.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Bn,name:null,description:null,readsValue:null,defaultValue:{id:"long-argument-default-value-id",type:r.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:1500,valueAsType:null,autogeneration:null,name:C.Number,parent:b2},index:0,parent:Rg},A2={type:r.GenericReference,id:"long-parent-ref-id",version:"1",entityType:r.FunctionDeclaration,entityId:nr},D2={type:r.GenericReference,id:"long-called-by-ref-one-id",version:"1",entityType:r.FunctionDeclaration,entityId:nr},P2={id:hg,type:r.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:ro,writesValues:[mu],index:0,parent:Rg},S2={id:hu,type:r.Operation,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Lt,inputs:[I2],outputs:[],process:P2,successCalls:[Eg],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[D2],calledBySuccess:[],error:null,parent:A2},O2={type:r.GenericReference,id:"small-wait-argument-default-value-parent-ref-id",version:"1",entityType:r.InputMap,entityId:"small-wait-argument-map-id"},V2={type:r.GenericReference,id:"small-wait-argument-map-parent-ref-id",version:"1",entityType:r.Operation,entityId:pu},C2={id:"small-wait-argument-map-id",type:r.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Bn,name:null,description:null,readsValue:null,defaultValue:{id:"small-wait-argument-default-value-id",type:r.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:500,valueAsType:null,autogeneration:null,name:C.Number,parent:O2},index:0,parent:V2},w2={type:r.GenericReference,id:"small-wait-parent-ref-id",version:"1",entityType:r.FunctionDeclaration,entityId:nr},B2={type:r.GenericReference,id:"small-wait-called-by-ref-one-id",version:"1",entityType:r.FunctionDeclaration,entityId:nr},M2={id:pu,type:r.Operation,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Lt,inputs:[C2],outputs:[],process:null,successCalls:[vg],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[B2],calledBySuccess:[],error:null,parent:w2},_2={type:r.GenericReference,id:"abort-execution-func-decl-parent-ref-id",version:"1",entityType:r.Project,entityId:ne},gg={id:nr,type:r.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:[],returnStatements:[Eg,Tg],calls:[M2,y2,mu,S2],implements:null,private:!1,collapsed:!1,index:null,x:0,y:0,parent:_2},N2={type:r.GenericReference,id:"call-execution-abort-func-parent-ref-id",version:"1",entityType:r.Project,entityId:ne},L2={id:"call-execution-abort-func-id",type:r.FunctionCall,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:gg,inputs:[],process:null,outputs:[],successCalls:[],errorCalls:[],error:null,calledByError:[],calledByEntry:[],calledBySuccess:[],x:0,y:0,parent:N2},_o="manual-hello-world-loop-func-decl-id",bg="manual-hello-world-loop-func-return-statement-id",Mr="manual-hello-world-loop-id",Ha="manual-hello-world-loop-body-id",Tu="manual-hello-world-loop-break-statement-id",za="manual-hello-world-loop-current-iteration-number-output-map-id",vu="manual-hello-world-loop-previous-iterations-results-output-map-id",Eu="assembled-hello-world-text-output-id",G2="assembled-hello-world-list-output-id",Ka="iteration-number-is-equal-or-greater-than-10-condition-id",No="join-hello-world-and-number-operation-id",Lo="append-string-to-list-operation-id",Ig="hello-world-loop-output-map-id",$2={type:r.GenericReference,id:"manual-hello-world-loop-function-declaration-output-declaration-parent-ref",version:"1",entityType:r.ReturnStatement,entityId:bg},F2={type:r.GenericReference,id:"manual-hello-world-loop-function-declaration-output-declaration-data-type-parent-ref",version:"1",entityType:r.ReturnDeclaration,entityId:"manual-hello-world-loop-function-declaration-output-declaration"},U2={like:!1,inferred:!1,id:"manual-hello-world-loop-function-declaration-output-declaration-data-type",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:X,isList:!0,asType:!1,parent:F2},x2={type:r.GenericReference,id:"manual-hello-world-loop-function-declaration-output-declaration-reads-value-ref",version:"1",entityType:r.OutputMap,entityId:Ig},Ag={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:r.ReturnDeclaration,name:"Results",description:null,defaultValue:null,dataType:U2,implements:null,readsValue:x2,required:!0,index:0,parent:$2},j2={type:r.GenericReference,id:"manual-hello-world-loop-function-declaration-return-statement-called-by-ref",version:"1",entityType:r.Loop,entityId:Mr},k2={type:r.GenericReference,id:"manual-hello-world-loop-function-declaration-parent-ref",version:"1",entityType:r.FunctionDeclaration,entityId:_o},Dg={type:r.ReturnStatement,id:bg,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[Ag],calledByError:[],calledByEntry:[],calledBySuccess:[j2],parent:k2,throws:null,x:0,y:0},Z2={type:r.GenericReference,id:"hello-world-loop-break-statement-ref-id",version:"1",entityType:r.BreakStatement,entityId:Tu},Pg={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:r.ReturnDeclaration,name:"Iteration result",description:null,defaultValue:null,dataType:null,readsValue:null,implements:null,required:!0,index:0,parent:Z2},q2={type:r.GenericReference,id:"hello-world-loop-break-statement-counter-reads-value-ref-id",version:"1",entityType:r.ArgumentDeclaration,entityId:za},J2={type:r.GenericReference,id:"hello-world-loop-break-statement-counter-ref-id",version:"1",entityType:r.BreakStatement,entityId:Tu},Sg={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:r.ReturnDeclaration,name:"Iteration counter",description:null,implements:null,defaultValue:null,dataType:null,readsValue:q2,required:!0,index:1,parent:J2},W2={type:r.GenericReference,id:"hello-world-loop-break-statement-called-by-ref-id",version:"1",entityType:r.Condition,entityId:Ka},Y2={type:r.GenericReference,id:"hello-world-loop-break-statement-parent-ref-id",version:"1",entityType:r.Loop,entityId:Mr},Og={type:r.BreakStatement,id:Tu,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[Pg,Sg],calledByError:[],calledByEntry:[],calledBySuccess:[W2],parent:Y2,throws:null,x:0,y:0},H2={type:r.GenericReference,id:"hello-world-loop-continue-statement-ref-id",version:"1",entityType:r.ContinueStatement,entityId:"hello-world-loop-continue-statement"},z2={type:r.GenericReference,id:"hello-world-loop-continue-statement-output-data-type-ref-id",version:"1",entityType:r.ReturnDeclaration,entityId:"hello-world-loop-continue-statement-output-id"},K2={like:!1,inferred:!1,id:"hello-world-loop-continue-statement-output-data-type-id",type:r.DataType,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:z2},X2={type:r.GenericReference,id:"hello-world-loop-continue-statement-reads-value-ref-id",version:"1",entityType:r.OutputMap,entityId:Eu},Vg={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:r.ReturnDeclaration,name:"Iteration result",description:null,defaultValue:null,implements:null,dataType:K2,readsValue:X2,required:!0,index:0,parent:H2},Q2={type:r.GenericReference,id:"hello-world-loop-continue-statement-called-by-ref-id",version:"1",entityType:r.Condition,entityId:Ka},e4={type:r.GenericReference,id:"hello-world-loop-continue-statement-parent-ref-id",version:"1",entityType:r.Loop,entityId:Mr},Cg={type:r.ContinueStatement,id:"hello-world-loop-continue-statement",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[Vg],calledBySuccess:[],calledByError:[Q2],calledByEntry:[],parent:e4,throws:null,x:0,y:0};r.GenericReference,r.InputMap;const t4={type:r.GenericReference,id:"append-string-to-list-base-string-map-parent-ref-id",version:"1",entityType:r.Operation,entityId:Lo},r4={type:r.GenericReference,id:"base-string-map-reads-value-ref-id",version:"1",entityType:r.OutputMap,entityId:vu},wg={id:"append-string-to-list-base-string-map-id",type:r.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:ld,name:null,description:null,readsValue:r4,defaultValue:null,index:0,parent:t4},n4={type:r.GenericReference,id:"assembly-string-map-parent-ref-id",version:"1",entityType:r.Operation,entityId:Lo},i4={id:G2,type:r.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,writesValues:[Pg],declaration:Ea,index:0,parent:n4},a4={type:r.GenericReference,id:"append-string-to-list-called-by-ref-id",version:"1",entityType:r.Condition,entityId:Ka},s4={type:r.GenericReference,id:"latest-string-to-add-input-map-reads-value-ref-id",version:"1",entityType:r.OutputMap,entityId:Eu},o4={type:r.GenericReference,id:"62b4afb0-6c21-4b0f-abd3-cebef7b17c28",version:"1",entityType:r.Operation,entityId:Lo},Bg={id:"latest-string-to-add-input-map-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:r.InputMap,declaration:dd,name:null,description:null,readsValue:s4,defaultValue:null,index:1,parent:o4},l4={type:r.GenericReference,id:"append-string-to-list-parent-ref-id",version:"1",entityType:r.FunctionDeclaration,entityId:Mr},d4={type:r.Operation,id:Lo,declaration:Ls,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,inputs:[wg,Bg],outputs:[i4],calledByError:[],process:null,calledByEntry:[],calledBySuccess:[a4],successCalls:[],errorCalls:[],error:null,x:0,y:0,parent:l4},u4={type:r.GenericReference,id:"iteration-number-is-equal-or-greater-than-10-condition-called-by-ref-id",version:"1",entityType:r.FunctionDeclaration,entityId:Ha},c4={type:r.GenericReference,id:"iteration-number-is-equal-or-greater-than-10-condition-parent-ref-id",version:"1",entityType:r.Loop,entityId:Mr},p4={type:r.GenericReference,id:"current-iteration-number-to-check-map-reads-value-ref-id",version:"1",entityType:r.OutputMap,entityId:za},Mg={type:r.GenericReference,id:"iteration-number-is-equal-or-greater-than-10-condition-ref-two-id",version:"1",entityType:r.Condition,entityId:Ka},h4={id:"current-iteration-number-to-check-map-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:r.InputMap,declaration:Li.inputs[0],name:null,description:null,readsValue:p4,index:0,defaultValue:null,parent:Mg},y4={type:r.GenericReference,id:"max-num-iterations-value-map-default-value-parent-ref-id",version:"1",entityType:r.InputMap,entityId:"max-num-iterations-value-map-id"},f4={id:"max-num-iterations-value-map-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:r.InputMap,declaration:Li.inputs[1],name:null,description:null,readsValue:null,index:1,defaultValue:{id:"max-num-iterations-value-map-default-value-id",type:r.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:C.Number,value:10,autogeneration:null,valueAsType:null,parent:y4},parent:Mg},m4={type:r.Condition,id:Ka,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Li,inputs:[h4,f4],calledByError:[],calledByEntry:[u4],calledBySuccess:[],successCalls:[Og,d4],errorCalls:[Cg],x:0,y:0,parent:c4},T4={type:r.GenericReference,id:"base-string-map-ref-id",version:"1",entityType:r.InputMap,entityId:"join-hello-world-and-number-base-string-map-id"},v4={type:r.GenericReference,id:"join-hello-world-and-number-base-string-map-parent-ref-id",version:"1",entityType:r.Operation,entityId:No},E4={id:"join-hello-world-and-number-base-string-map-id",type:r.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:_s,name:null,description:null,readsValue:null,defaultValue:{id:"join-hello-world-and-number-base-string-map-default-value-id",type:r.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:"Hello world ",name:C.String,parent:T4,valueAsType:null,autogeneration:null},index:0,parent:v4},R4={type:r.GenericReference,id:"assembly-string-map-parent-ref-id",version:"1",entityType:r.Operation,entityId:No},g4={id:Eu,type:r.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,writesValues:[Bg,Vg],declaration:Ea,index:0,parent:R4},b4={type:r.GenericReference,id:"join-hello-world-and-number-called-by-ref-id",version:"1",entityType:r.FunctionDeclaration,entityId:Ha},I4={type:r.GenericReference,id:"current-iteration-number-input-map-reads-value-ref-id",version:"1",entityType:r.OutputMap,entityId:za},A4={type:r.GenericReference,id:"62b4afb0-6c21-4b0f-abd3-cebef7b17c28",version:"1",entityType:r.Operation,entityId:No},_g={id:"current-iteration-number-input-map-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:r.InputMap,declaration:Ns,name:null,description:null,readsValue:I4,defaultValue:null,index:1,parent:A4},D4={type:r.GenericReference,id:"join-hello-world-and-number-parent-ref-id",version:"1",entityType:r.FunctionDeclaration,entityId:Mr},P4={type:r.Operation,id:No,declaration:Ra,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,inputs:[E4,_g],outputs:[g4],process:null,calledByError:[],calledByEntry:[b4],calledBySuccess:[],successCalls:[],errorCalls:[],error:null,x:0,y:0,parent:D4},S4={id:"manual-hello-world-loop-iterations-results-declaration-data-type-parent-ref-id",type:r.GenericReference,entityId:vu,version:"1",entityType:r.ArgumentDeclaration},O4={like:!1,inferred:!1,id:"manual-hello-world-loop-iterations-results-declaration-data-type-id",type:r.DataType,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:S4},V4={id:"manual-hello-world-loop-previous-iterations-results-output-map-parent-ref-id",type:r.GenericReference,entityId:Ha,version:"1",entityType:r.FunctionDeclaration},C4={constant:!0,id:vu,type:r.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:O4,implements:null,writesValues:[wg],index:1,parent:V4},w4={id:"manual-hello-world-loop-current-iteration-number-output-map-parent-ref-id",type:r.GenericReference,entityId:Ha,version:"1",entityType:r.FunctionDeclaration},B4={id:"manual-flow-loop-current-iteration-number-declaration-data-type-parent-ref-id",type:r.GenericReference,entityId:za,version:"1",entityType:r.ArgumentDeclaration};r.DataType;const M4={constant:!0,id:za,type:r.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:md,defaultValue:null,dataType:null,writesValues:[_g,Sg],index:0,parent:w4},_4={id:"manual-flow-loop-body-parent-ref-id",type:r.GenericReference,entityId:Mr,version:"1",entityType:r.Loop},N4={id:Ha,type:r.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:[M4,C4],calls:[m4,P4],implements:qs,collapsed:!1,returnStatements:[],private:!1,index:0,x:0,y:0,parent:_4},L4={type:r.GenericReference,id:"hello-world-loop-iteration-result-inline-output-declaration-parent-ref-id",version:"1",entityType:r.Loop,entityId:Mr},Ng={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:r.ValueDescriptor,name:"Iteration result",defaultValue:null,description:null,dataType:null,required:!0,parentRelationType:V.FixedReturns,index:0,parent:L4},G4={type:r.GenericReference,id:"hello-world-loop-break-statement-output-map-parent-ref-id",version:"1",entityType:r.Loop,entityId:Mr},$4={type:r.OutputMap,id:Ig,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:Ng,writesValues:[Ag],index:0,parent:G4},F4={id:"manual-hello-world-loop-parent-ref-id",type:r.GenericReference,entityId:_o,version:"1",entityType:r.FunctionDeclaration},U4={id:"manual-hello-world-loop-called-by-ref-id",type:r.GenericReference,entityId:_o,version:"1",entityType:r.FunctionDeclaration},x4={id:Mr,type:r.Loop,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Zs,inputs:[],outputsDeclarations:[Ng],outputs:[$4],body:N4,successCalls:[Dg],errorCalls:[],process:null,error:null,calledByError:[],calledByEntry:[U4],calledBySuccess:[],breakStatements:[Og],continueStatements:[Cg],x:0,y:0,parent:F4},j4={type:r.GenericReference,id:"manual-hello-world-loop-function-declaration-parent-ref-id",version:"1",entityType:r.Project,entityId:ne},Lg={type:r.FunctionDeclaration,id:_o,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Manual hello world loop",description:null,inputs:[],calls:[x4],returnStatements:[Dg],implements:null,collapsed:!1,private:!1,index:null,x:0,y:0,parent:j4},k4={type:r.GenericReference,id:"call-hello-world-loop-parent-ref-id",version:"1",entityType:r.Project,entityId:ne},Z4={id:"call-hello-world-loop-id",type:r.FunctionCall,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Lg,inputs:[],outputs:[],process:null,successCalls:[],errorCalls:[],error:null,calledByError:[],calledByEntry:[],calledBySuccess:[],x:0,y:0,parent:k4},Xr="company-dto-function-declaration-id",Ru="company-dto-func-declaration-argument-dcl-id",_r="company-dto-function-company-variable-id",Rn="company-dto-function-company-dto-variable-id",Wi="iterate-over-employee-list-loop-id",Gg="iterate-over-employee-list-loop-employee-dto-output-map-id",gu="iterate-over-employee-list-loop-body-current-employee-argument-declaration-id",Go="iterate-over-employee-list-loop-body-map-employee-dto-function-call-id",$g="iterate-over-employee-list-continue-statement-employee-dto-output-decl-id",Fg="iterate-over-employee-list-loop-body-map-employee-dto-function-call-employee-dto-output-map-id",Ug="iterate-over-employee-list-continue-statement-id",$o="iterate-over-employee-list-loop-body-id",xg="company-dto-func-declaration-return-statement-id",jg="company-dto-func-declaration-return-decl-id",kg="company-dto-func-declaration-company-variable-id-output-map-id",Zg="company-dto-func-declaration-company-variable-employess-output-map-id",qg="company-dto-func-declaration-company-variable-name-output-map-id",q4="company-dto-func-declaration-company-dto-variable-input-map-id",J4="company-dto-func-declaration-company-dto-variable-employess-input-map-id",W4="company-dto-func-declaration-company-dto-variable-name-input-map-id",Fo="company-dto-func-declaration-owner-variable-id",Y4="company-dto-func-declaration-company-dto-variable-owner-input-map-id",Jg="company-dto-func-declaration-company-variable-owner-output-map-id",Wg="company-dto-func-declaration-owner-variable-id-output-map-id",Uo="company-dto-func-declaration-bank-account-variable-id",H4="company-dto-func-declaration-company-dto-variable-bank-account-input-map-id",Yg="company-dto-func-declaration-company-variable-bank-account-output-map-id",Hg="company-dto-func-declaration-bank-account-variable-id-output-map-id",z4={type:r.GenericReference,id:"company-dto-func-returned-company-dto-data-type-parent-ref-id",version:"1",entityType:r.ReturnDeclaration,entityId:jg},K4={like:!1,inferred:!1,id:"company-dto-func-returned-company-dto-data-type-id",type:r.DataType,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:z4},X4={type:r.GenericReference,id:"company-dto-func-returned-company-dto-parent-ref-id",version:"1",entityType:r.ReturnStatement,entityId:xg},Q4={type:r.GenericReference,id:"company-dto-func-returned-company-dto-reads-value-ref-id",version:"1",entityType:r.VariableDeclaration,entityId:Rn},zg={constant:!0,isError:!1,id:jg,type:r.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:K4,readsValue:Q4,required:!0,index:0,parent:X4},eG={type:r.GenericReference,id:"company-dto-func-return-statement-called-by-ref-id",version:"1",entityType:r.Operation,entityId:Rn},tG={type:r.GenericReference,id:"company-dto-func-return-statement-parent-ref-id",version:"1",entityType:r.FunctionDeclaration,entityId:Xr},bu={type:r.ReturnStatement,id:xg,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[zg],calledByError:[],calledByEntry:[],calledBySuccess:[eG],throws:null,x:0,y:0,parent:tG},rG={type:r.GenericReference,id:"company-dto-func-company-dto-variable-owner-input-map-reads-value-ref-id",version:"1",entityType:r.OutputMap,entityId:Wg},nG={type:r.GenericReference,id:"company-dto-func-company-dto-variable-owner-output-map-parent-ref-id",version:"1",entityType:r.VariableDeclaration,entityId:Rn},Kg={id:Y4,type:r.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:rG,parent:nG},iG={type:r.GenericReference,id:"company-dto-func-company-dto-variable-bank-account-input-map-reads-value-ref-id",version:"1",entityType:r.OutputMap,entityId:Hg},aG={type:r.GenericReference,id:"company-dto-func-company-dto-variable-bank-account-output-map-parent-ref-id",version:"1",entityType:r.VariableDeclaration,entityId:Rn},Xg={id:H4,type:r.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:iG,parent:aG},sG={type:r.GenericReference,id:"company-dto-func-company-dto-variable-name-input-map-reads-value-ref-id",version:"1",entityType:r.OutputMap,entityId:qg},oG={type:r.GenericReference,id:"company-dto-func-company-dto-variable-name-output-map-parent-ref-id",version:"1",entityType:r.VariableDeclaration,entityId:Rn},Qg={id:W4,type:r.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:sG,parent:oG},lG={type:r.GenericReference,id:"company-dto-func-company-dto-variable-employess-input-map-reads-value-ref-id",version:"1",entityType:r.OutputMap,entityId:Gg},dG={type:r.GenericReference,id:"company-dto-func-company-dto-variable-employess-output-map-parent-ref-id",version:"1",entityType:r.VariableDeclaration,entityId:Rn},eb={id:J4,type:r.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:lG,parent:dG},uG={type:r.GenericReference,id:"company-dto-func-company-dto-variable-id-output-map-reads-value-ref-id",version:"1",entityType:r.OutputMap,entityId:kg},cG={type:r.GenericReference,id:"company-dto-func-company-dto-variable-id-output-map-parent-ref-id",version:"1",entityType:r.VariableDeclaration,entityId:Rn},tb={id:q4,type:r.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:uG,parent:cG},pG={type:r.GenericReference,id:"company-dto-func-company-dto-variable-parent-ref-id",version:"1",entityType:r.FunctionDeclaration,entityId:Xr},hG={type:r.GenericReference,id:"company-dto-func-company-dto-variable-called-by-ref-one-id",version:"1",entityType:r.VariableDeclaration,entityId:Uo},yG={type:r.GenericReference,id:"company-dto-func-company-dto-variable-called-by-ref-two-id",version:"1",entityType:r.VariableDeclaration,entityId:Fo},fG={type:r.GenericReference,id:"company-dto-func-company-dto-variable-called-by-ref-three-id",version:"1",entityType:r.VariableDeclaration,entityId:Wi},Iu={constant:!0,required:!0,id:Rn,type:r.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:[hG,yG,fG],successCalls:[bu],errorCalls:[],readsValue:null,writesValues:[zg],inputs:[tb,Qg,Xg,Kg,eb],outputs:[],internalCalls:[],parent:pG,x:0,y:0},qn="employee-dto-func-declaration-id",Au="employee-dto-func-declaration-argument-dcl-id",rb="employee-dto-func-declaration-return-statement-id",nb="employee-dto-func-declaration-return-decl-id",Jn="employee-dto-func-declaration-employee-variable-id",Wn="employee-dto-func-declaration-employee-dto-variable-id",xo="employee-dto-func-declaration-manager-variable-id",ib="employee-dto-func-declaration-employee-variable-id-output-map-id",ab="employee-dto-func-declaration-employee-variable-birth-date-output-map-id",sb="employee-dto-func-declaration-employee-variable-department-output-map-id",ob="employee-dto-func-declaration-employee-variable-manager-output-map-id",lb="employee-dto-func-declaration-manager-variable-id-output-map-id",mG="employee-dto-func-declaration-employee-dto-variable-input-map-id",TG="employee-dto-func-declaration-employee-dto-variable-birth-date-input-map-id",vG="employee-dto-func-declaration-employee-dto-variable-department-input-map-id",EG="employee-dto-func-declaration-employee-dto-variable-manager-input-map-id",RG={type:r.GenericReference,id:"employee-dto-func-returned-employee-dto-data-type-parent-ref-id",version:"1",entityType:r.ReturnDeclaration,entityId:nb},gG={like:!1,inferred:!1,id:"employee-dto-func-returned-employee-dto-data-type-id",type:r.DataType,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:RG},bG={type:r.GenericReference,id:"employee-dto-func-returned-employee-dto-parent-ref-id",version:"1",entityType:r.ReturnStatement,entityId:rb},IG={type:r.GenericReference,id:"employee-dto-func-returned-employee-dto-reads-value-ref-id",version:"1",entityType:r.VariableDeclaration,entityId:Wn},db={constant:!0,isError:!1,id:nb,type:r.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:gG,implements:null,readsValue:IG,required:!0,index:0,parent:bG},AG={type:r.GenericReference,id:"employee-dto-func-return-statement-called-by-ref-id",version:"1",entityType:r.Operation,entityId:Wn},DG={type:r.GenericReference,id:"employee-dto-func-return-statement-parent-ref-id",version:"1",entityType:r.FunctionDeclaration,entityId:qn},Du={type:r.ReturnStatement,id:rb,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[db],calledByError:[],calledByEntry:[],calledBySuccess:[AG],throws:null,x:0,y:0,parent:DG},PG={type:r.GenericReference,id:"employee-dto-func-employee-dto-variable-manager-input-map-reads-value-ref-id",version:"1",entityType:r.OutputMap,entityId:lb},SG={type:r.GenericReference,id:"employee-dto-func-employee-dto-variable-manager-output-map-parent-ref-id",version:"1",entityType:r.VariableDeclaration,entityId:Wn},ub={id:EG,type:r.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:PG,parent:SG},OG={type:r.GenericReference,id:"employee-dto-func-employee-dto-variable-department-input-map-reads-value-ref-id",version:"1",entityType:r.OutputMap,entityId:sb},VG={type:r.GenericReference,id:"employee-dto-func-employee-dto-variable-department-output-map-parent-ref-id",version:"1",entityType:r.VariableDeclaration,entityId:Wn},cb={id:vG,type:r.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:OG,parent:VG},CG={type:r.GenericReference,id:"employee-dto-func-employee-dto-variable-birth-date-input-map-reads-value-ref-id",version:"1",entityType:r.OutputMap,entityId:ab},wG={type:r.GenericReference,id:"employee-dto-func-employee-dto-variable-birth-date-output-map-parent-ref-id",version:"1",entityType:r.VariableDeclaration,entityId:Wn},pb={id:TG,type:r.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:CG,parent:wG},BG={type:r.GenericReference,id:"employee-dto-func-employee-dto-variable-id-output-map-reads-value-ref-id",version:"1",entityType:r.OutputMap,entityId:ib},MG={type:r.GenericReference,id:"employee-dto-func-employee-dto-variable-id-output-map-parent-ref-id",version:"1",entityType:r.VariableDeclaration,entityId:Wn},hb={id:mG,type:r.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:BG,parent:MG},_G={type:r.GenericReference,id:"employee-dto-func-employee-dto-variable-parent-ref-id",version:"1",entityType:r.FunctionDeclaration,entityId:qn},NG={type:r.GenericReference,id:"employee-dto-func-employee-dto-variable-called-by-ref-id",version:"1",entityType:r.VariableDeclaration,entityId:xo},LG={constant:!0,required:!0,id:Wn,type:r.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:[NG],successCalls:[Du],errorCalls:[],readsValue:null,writesValues:[db],inputs:[hb,pb,cb,ub],outputs:[],internalCalls:[],parent:_G,x:0,y:0},GG={type:r.GenericReference,id:"employee-dto-func-manager-variable-id-output-map-parent-ref-id",version:"1",entityType:r.VariableDeclaration,entityId:xo},$G={id:lb,type:r.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:rr.properties[0],index:0,writesValues:[ub],parent:GG},FG={type:r.GenericReference,id:"employee-dto-func-manager-variable-data-type-parent-ref-id",version:"1",entityType:r.VariableDeclaration,entityId:xo},UG={like:!1,inferred:!1,id:"employee-dto-func-manager-variable-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ur,asType:!1,isList:!1,parent:FG},xG={type:r.GenericReference,id:"employee-dto-func-manager-variable-reads-value-ref-id",version:"1",entityType:r.OutputMap,entityId:ob},jG={type:r.GenericReference,id:"employee-dto-func-manager-variable-parent-ref-id",version:"1",entityType:r.FunctionDeclaration,entityId:qn};r.GenericReference,r.VariableDeclaration;const yb={constant:!0,required:!0,id:xo,type:r.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:UG,calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[LG],errorCalls:[],readsValue:xG,writesValues:[],inputs:[],outputs:[$G],internalCalls:[],parent:jG,x:0,y:0},kG={type:r.GenericReference,id:"employee-dto-func-employee-variable-manager-output-map-parent-ref-id",version:"1",entityType:r.VariableDeclaration,entityId:Jn},ZG={id:ob,type:r.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:ur.properties[2],index:3,writesValues:[yb],parent:kG},qG={type:r.GenericReference,id:"employee-dto-func-employee-variable-department-output-map-parent-ref-id",version:"1",entityType:r.VariableDeclaration,entityId:Jn},JG={id:sb,type:r.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:ur.properties[0],index:2,writesValues:[cb],parent:qG},WG={type:r.GenericReference,id:"employee-dto-func-employee-variable-birth-date-output-map-parent-ref-id",version:"1",entityType:r.VariableDeclaration,entityId:Jn},YG={id:ab,type:r.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:$t.properties[1],index:1,writesValues:[pb],parent:WG},HG={type:r.GenericReference,id:"employee-dto-func-employee-variable-id-output-map-parent-ref-id",version:"1",entityType:r.VariableDeclaration,entityId:Jn},zG={id:ib,type:r.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:rr.properties[0],index:0,writesValues:[hb],parent:HG},KG={type:r.GenericReference,id:"employee-dto-func-employee-variable-data-type-parent-ref-id",version:"1",entityType:r.VariableDeclaration,entityId:Jn},XG={like:!1,inferred:!1,id:"employee-dto-func-employee-variable-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ur,asType:!1,isList:!1,parent:KG},QG={type:r.GenericReference,id:"employee-dto-func-employee-variable-parent-ref-id",version:"1",entityType:r.FunctionDeclaration,entityId:qn},e$={type:r.GenericReference,id:"employee-dto-func-employee-variable-reads-value-ref-id",version:"1",entityType:r.ArgumentDeclaration,entityId:Au},t$={type:r.GenericReference,id:"employee-dto-func-employee-variable-called-by-id",version:"1",entityType:r.FunctionDeclaration,entityId:qn},fb={constant:!0,required:!0,id:Jn,type:r.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Company employee",dataType:XG,description:"A variable holding a company employee",calledByError:[],defaultValue:null,calledByEntry:[t$],calledBySuccess:[],successCalls:[yb],errorCalls:[],readsValue:e$,writesValues:[],inputs:[],outputs:[zG,YG,JG,ZG],internalCalls:[],parent:QG,x:0,y:0},r$={type:r.GenericReference,id:"employee-dto-func-declaration-employee-input-declaration-data-type-parent-ref-id",entityId:Au,version:"1",entityType:r.ArgumentDeclaration},n$={type:r.DataType,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:ur,asType:!1,isList:!1,like:!1,inferred:!1,parent:r$},i$={type:r.GenericReference,id:"employee-dto-func-declaration-employee-input-declaration-parent-ref-id",entityId:qn,version:"1",entityType:r.FunctionDeclaration},a$={constant:!0,type:r.ArgumentDeclaration,id:Au,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:n$,index:0,writesValues:[fb],parent:i$},s$={type:r.GenericReference,id:"employee-dto-function-declaration-parent-ref-id",version:"1",entityType:r.Project,entityId:ne},Pu={type:r.FunctionDeclaration,id:qn,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:[a$],calls:[fb],implements:null,returnStatements:[Du],collapsed:!1,private:!1,x:0,y:0,parent:s$},o$={id:"iterate-over-employee-list-continue-statement-employee-dto-output-decl-data-type-parent-ref-id",type:r.GenericReference,entityId:$g,version:"1",entityType:r.ReturnDeclaration},l$={like:!1,inferred:!1,id:"iterate-over-employee-list-continue-statement-employee-dto-output-decl-data-type-id",type:r.DataType,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:o$},d$={id:"iterate-over-employee-list-continue-statement-employee-dto-output-decl-reads-value-ref-id",type:r.GenericReference,entityId:Fg,version:"1",entityType:r.OutputMap},u$={id:"iterate-over-employee-list-continue-statement-employee-dto-output-decl-parent-ref-id",type:r.GenericReference,entityId:Ug,version:"1",entityType:r.ContinueStatement},mb={constant:!0,isError:!1,id:$g,type:r.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:d$,dataType:l$,implements:null,required:!0,index:0,parent:u$},c$={id:"iterate-over-employee-list-continue-statement-called-by-ref-id",type:r.GenericReference,entityId:Go,version:"1",entityType:r.FunctionCall},p$={id:"iterate-over-employee-list-continue-statement-parent-ref-id",type:r.GenericReference,entityId:Wi,version:"1",entityType:r.Loop},Tb={id:Ug,type:r.ContinueStatement,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,calledByError:[],calledByEntry:[],calledBySuccess:[c$],outputs:[mb],throws:null,x:0,y:0,parent:p$},h$={id:"iterate-over-employee-list-loop-body-map-employee-dto-function-call-employee-dto-output-map-parent-ref-id",type:r.GenericReference,entityId:Go,version:"1",entityType:r.FunctionCall},y$={id:Fg,type:r.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:Du.outputs[0],writesValues:[mb],index:0,parent:h$},f$={id:"iterate-over-employee-list-loop-body-map-employee-dto-function-call-employee-input-map-reads-value-ref-id",type:r.GenericReference,entityId:gu,version:"1",entityType:r.ArgumentDeclaration},m$={id:"iterate-over-employee-list-loop-body-map-employee-dto-function-call-employee-input-map-parent-ref-id",type:r.GenericReference,entityId:Go,version:"1",entityType:r.FunctionCall},vb={id:"iterate-over-employee-list-loop-body-map-employee-dto-function-call-employee-input-map-id",type:r.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:null,description:null,declaration:Pu.inputs[0],readsValue:f$,index:0,defaultValue:null,parent:m$},T$={id:"iterate-over-employee-list-loop-body-map-employee-dto-function-call-called-by-ref-id",type:r.GenericReference,entityId:$o,version:"1",entityType:r.FunctionDeclaration},v$={id:"iterate-over-employee-list-loop-body-map-employee-dto-function-call-parent-ref-id",type:r.GenericReference,entityId:$o,version:"1",entityType:r.FunctionDeclaration},E$={id:Go,type:r.FunctionCall,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Pu,inputs:[vb],process:null,outputs:[y$],calledByError:[],calledByEntry:[T$],calledBySuccess:[],successCalls:[Tb],errorCalls:[],error:null,x:0,y:0,parent:v$},R$={type:r.GenericReference,id:"iterate-over-employee-list-loop-body-current-employee-argument-declaration-data-type-parent-ref-id",entityId:gu,version:"1",entityType:r.ArgumentDeclaration},g$={like:!1,inferred:!1,id:"iterate-over-employee-list-loop-body-current-employee-argument-declaration-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ur,isList:!1,asType:!1,parent:R$},b$={id:"iterate-over-employee-list-loop-body-current-employee-argument-declaration-parent-ref-id",type:r.GenericReference,entityId:$o,version:"1",entityType:r.FunctionDeclaration},I$={constant:!0,id:gu,type:r.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:g$,required:!0,implements:Ws,index:0,writesValues:[vb],parent:b$},A$={id:"iterate-over-employee-list-loop-body-parent-ref-id",type:r.GenericReference,entityId:Wi,version:"1",entityType:r.Loop},D$={id:$o,type:r.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:[I$],calls:[E$],implements:Aa,collapsed:!1,returnStatements:[],private:!1,index:0,x:0,y:0,parent:A$},P$={id:"iterate-over-employee-list-loop-iteration-list-input-map-parent-ref-id",type:r.GenericReference,entityId:Wi,version:"1",entityType:r.Loop},S$={id:"iterate-over-employee-list-loop-iteration-list-input-map-reads-value-ref-id",type:r.GenericReference,entityId:Zg,version:"1",entityType:r.OutputMap},Eb={id:"iterate-over-employee-list-loop-iteration-list-input-map-id",type:r.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:null,description:null,declaration:cn.inputs[0],defaultValue:null,readsValue:S$,index:0,parent:P$},O$={id:"iterate-over-employee-list-loop-parent-ref-id",type:r.GenericReference,entityId:Xr,version:"1",entityType:r.FunctionDeclaration},V$={id:"iterate-over-employee-list-loop-employee-dto-output-map-parent-ref-id",type:r.GenericReference,entityId:Wi,version:"1",entityType:r.Loop},C$={id:Gg,type:r.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:cn.outputs[0],writesValues:[eb],index:0,parent:V$},w$={type:r.GenericReference,id:"iterate-over-employee-list-loop-called-by-ref-id",version:"1",entityType:r.VariableDeclaration,entityId:_r},B$={id:Wi,type:r.Loop,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:cn,inputs:[Eb],successCalls:[Iu],errorCalls:[],outputsDeclarations:[],outputs:[C$],body:D$,process:null,calledByError:[],calledByEntry:[],calledBySuccess:[w$],breakStatements:[],continueStatements:[Tb],error:null,x:0,y:0,parent:O$},M$={type:r.GenericReference,id:"company-dto-func-bank-account-variable-id-output-map-parent-ref-id",version:"1",entityType:r.VariableDeclaration,entityId:Uo},_$={id:Hg,type:r.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:rr.properties[0],index:0,writesValues:[Xg],parent:M$},N$={type:r.GenericReference,id:"company-dto-func-bank-account-variable-data-type-parent-ref-id",version:"1",entityType:r.VariableDeclaration,entityId:Uo},L$={like:!1,inferred:!1,id:"company-dto-func-bank-account-variable-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:cr,asType:!1,isList:!1,parent:N$},G$={type:r.GenericReference,id:"company-dto-func-bank-account-variable-reads-value-ref-id",version:"1",entityType:r.OutputMap,entityId:Yg},$$={type:r.GenericReference,id:"company-dto-func-bank-account-variable-parent-ref-id",version:"1",entityType:r.FunctionDeclaration,entityId:Xr};r.GenericReference,r.VariableDeclaration;const Rb={constant:!0,required:!0,id:Uo,type:r.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:L$,calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[Iu],errorCalls:[],readsValue:G$,writesValues:[],inputs:[],outputs:[_$],internalCalls:[],parent:$$,x:0,y:0},F$={type:r.GenericReference,id:"company-dto-func-owner-variable-id-output-map-parent-ref-id",version:"1",entityType:r.VariableDeclaration,entityId:Fo},U$={id:Wg,type:r.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:rr.properties[0],index:0,defaultValue:null,writesValues:[Kg],parent:F$},x$={type:r.GenericReference,id:"company-dto-func-owner-variable-data-type-parent-ref-id",version:"1",entityType:r.VariableDeclaration,entityId:Fo},j$={like:!1,inferred:!1,id:"company-dto-func-owner-variable-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:cr,asType:!1,isList:!1,parent:x$},k$={type:r.GenericReference,id:"company-dto-func-owner-variable-reads-value-ref-id",version:"1",entityType:r.OutputMap,entityId:Jg},Z$={type:r.GenericReference,id:"company-dto-func-owner-variable-parent-ref-id",version:"1",entityType:r.FunctionDeclaration,entityId:Xr};r.GenericReference,r.VariableDeclaration;const gb={constant:!0,required:!0,id:Fo,type:r.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Owner",dataType:j$,description:"A variable holding an inherited owner",defaultValue:null,calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[Iu],errorCalls:[],readsValue:k$,writesValues:[],inputs:[],outputs:[U$],internalCalls:[],parent:Z$,x:0,y:0},q$={type:r.GenericReference,id:"company-dto-func-company-variable-owner-output-map-parent-ref-id",version:"1",entityType:r.VariableDeclaration,entityId:_r},J$={id:Jg,type:r.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:cr.properties[2],index:4,writesValues:[gb],parent:q$},W$={type:r.GenericReference,id:"company-dto-func-company-variable-bank-account-output-map-parent-ref-id",version:"1",entityType:r.VariableDeclaration,entityId:_r},Y$={id:Yg,type:r.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:cr.properties[2],index:3,writesValues:[Rb],parent:W$},H$={type:r.GenericReference,id:"company-dto-func-company-variable-name-output-map-parent-ref-id",version:"1",entityType:r.VariableDeclaration,entityId:_r},z$={id:qg,type:r.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:cr.properties[0],index:2,writesValues:[Qg],parent:H$},K$={type:r.GenericReference,id:"company-dto-func-company-variable-employess-output-map-parent-ref-id",version:"1",entityType:r.VariableDeclaration,entityId:_r},X$={id:Zg,type:r.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:cr.properties[3],index:1,writesValues:[Eb],parent:K$},Q$={type:r.GenericReference,id:"company-dto-func-company-variable-id-output-map-parent-ref-id",version:"1",entityType:r.VariableDeclaration,entityId:_r},eF={id:kg,type:r.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:rr.properties[0],index:0,writesValues:[tb],parent:Q$},tF={type:r.GenericReference,id:"company-dto-func-company-variable-data-type-parent-ref-id",version:"1",entityType:r.VariableDeclaration,entityId:_r},rF={like:!1,inferred:!1,id:"company-dto-func-company-variable-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:cr,asType:!1,isList:!1,parent:tF},nF={type:r.GenericReference,id:"company-dto-func-company-variable-parent-ref-id",version:"1",entityType:r.FunctionDeclaration,entityId:Xr},iF={type:r.GenericReference,id:"company-dto-func-company-variable-reads-value-ref-id",version:"1",entityType:r.ArgumentDeclaration,entityId:Ru},aF={type:r.GenericReference,id:"company-dto-func-company-variable-called-by-id",version:"1",entityType:r.FunctionDeclaration,entityId:Xr},bb={constant:!0,required:!0,id:_r,type:r.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Company",dataType:rF,description:"A variable holding a company",defaultValue:null,calledByError:[],calledByEntry:[aF],calledBySuccess:[],successCalls:[Rb,gb,B$],errorCalls:[],readsValue:iF,writesValues:[],inputs:[],outputs:[eF,X$,z$,Y$,J$],internalCalls:[],parent:nF,x:0,y:0},sF={type:r.GenericReference,id:"company-dto-func-declaration-company-input-declaration-data-type-parent-ref-id",entityId:Ru,version:"1",entityType:r.ArgumentDeclaration},oF={type:r.DataType,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:cr,asType:!1,isList:!1,like:!1,inferred:!1,parent:sF},lF={type:r.GenericReference,id:"company-dto-func-declaration-company-input-declaration-parent-ref-id",entityId:Xr,version:"1",entityType:r.FunctionDeclaration},dF={constant:!0,type:r.ArgumentDeclaration,id:Ru,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:oF,index:0,writesValues:[bb],parent:lF},uF={type:r.GenericReference,id:"company-dto-function-declaration-parent-ref-id",version:"1",entityType:r.Project,entityId:ne},Su={type:r.FunctionDeclaration,id:Xr,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:[dF],calls:[bb],implements:null,index:null,returnStatements:[bu],collapsed:!1,private:!1,x:0,y:0,parent:uF},Xa="exec-in-parallel-operation-call-id",Qa="exec-sequentially-operation-call-id",Ft="concurrency-and-wait-function-declaration-id",Ib="concurrency-and-wait-return-statement-id",Ab="concurrency-and-wait-return-declaration-id",Ou="exec-in-parallel-argument-map-id",Db="exec-sequentially-argument-map-id",Vu="wait-for-2-seconds-operation-id",Pb="wait-for-2-seconds-argument-map-id",Cu="map-company-dto-function-call-id",Sb="map-company-dto-function-call-company-dto-output-map-id",jo="company-dto-variable-one-id",wu="company-dto-variable-one-instance-id",Ob="company-dto-variable-two-id",cF={type:r.GenericReference,id:"returned-company-dto-data-type-parent-ref-id",version:"1",entityType:r.ReturnDeclaration,entityId:Ab},pF={like:!1,inferred:!1,id:"returned-company-dto-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:cr,asType:!1,isList:!1,parent:cF},hF={type:r.GenericReference,id:"returned-company-dto-parent-ref-id",version:"1",entityType:r.ReturnStatement,entityId:Ib},yF={type:r.GenericReference,id:"returned-company-dto-reads-value-ref-id",version:"1",entityType:r.VariableDeclaration,entityId:Ob},Vb={constant:!0,isError:!1,id:Ab,type:r.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:pF,implements:null,readsValue:yF,required:!0,index:0,parent:hF},fF={type:r.GenericReference,id:"concurrency-and-wait-return-statement-called-by-ref-id",version:"1",entityType:r.Operation,entityId:Vu},mF={type:r.GenericReference,id:"concurrency-and-wait-return-statement-parent-ref-id",version:"1",entityType:r.FunctionDeclaration,entityId:Ft},Cb={type:r.ReturnStatement,id:Ib,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[Vb],calledByError:[],calledByEntry:[],calledBySuccess:[fF],throws:null,x:0,y:0,parent:mF},TF={type:r.GenericReference,id:"company-dto-variable-two-called-by-ref-id",version:"1",entityType:r.VariableInstance,entityId:wu},vF={type:r.GenericReference,id:"company-dto-variable-two-reads-value-ref-id",version:"1",entityType:r.VariableInstance,entityId:wu},EF={type:r.GenericReference,id:"company-dto-variable-two-parent-ref-id",version:"1",entityType:r.FunctionDeclaration,entityId:Ft},wb={constant:!0,required:!0,id:Ob,type:r.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:[TF],internalCalls:[],writesValues:[Vb],readsValue:vF,x:0,y:0,parent:EF},RF={type:r.GenericReference,id:"company-dto-variable-one-instance-called-by-ref-id",version:"1",entityType:r.VariableDeclaration,entityId:jo},gF={type:r.GenericReference,id:"company-dto-variable-one-instance-reads-value-ref-id",version:"1",entityType:r.VariableDeclaration,entityId:jo},bF={type:r.GenericReference,id:"company-dto-variable-one-instance-parent-ref-id",version:"1",entityType:r.FunctionDeclaration,entityId:Ft},IF={type:r.GenericReference,id:"company-dto-variable-one-instance-declaration-ref-id",version:"1",entityType:r.VariableDeclaration,entityId:jo},Bb={id:wu,type:r.VariableInstance,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:IF,inputs:[],outputs:[],successCalls:[wb],errorCalls:[],defaultValue:null,calledByError:[],calledByEntry:[],calledBySuccess:[RF],internalCalls:[],writesValues:[wb],readsValue:gF,x:0,y:0,parent:bF},AF={type:r.GenericReference,id:"company-dto-variable-one-called-by-ref-id",version:"1",entityType:r.FunctionCall,entityId:Cu},DF={type:r.GenericReference,id:"company-dto-variable-one-reads-value-ref-id",version:"1",entityType:r.OutputMap,entityId:Sb},PF={type:r.GenericReference,id:"company-dto-variable-one-parent-ref-id",version:"1",entityType:r.FunctionDeclaration,entityId:Ft},Mb={constant:!0,required:!0,id:jo,type:r.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:[Bb],errorCalls:[],calledByError:[],calledByEntry:[],calledBySuccess:[AF],internalCalls:[],writesValues:[Bb],readsValue:DF,x:0,y:0,parent:PF},_b={type:r.GenericReference,id:"map-company-dto-function-call-company-input-map-parent-ref-id",version:"1",entityType:r.FunctionCall,entityId:Cu},SF={id:"map-company-dto-function-call-company-input-map-id",type:r.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Su.inputs[0],name:null,description:null,defaultValue:null,index:0,readsValue:null,parent:_b},OF={id:Sb,type:r.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:bu.outputs[0],writesValues:[Mb],index:0,parent:_b},VF={id:"map-company-dto-function-call-called-by-ref-id",type:r.GenericReference,version:"1",entityType:r.FunctionDeclaration,entityId:Ft},CF={id:"map-company-dto-function-call-parent-ref-id",type:r.GenericReference,version:"1",entityType:r.FunctionDeclaration,entityId:Ft},wF={id:Cu,type:r.FunctionCall,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Su,successCalls:[Mb],process:null,errorCalls:[],inputs:[SF],outputs:[OF],calledByError:[],calledByEntry:[VF],calledBySuccess:[],parent:CF,x:0,y:0,error:null},BF={type:r.GenericReference,id:"last-timestamp-variable-datatype-parent-ref-id",version:"1",entityType:r.VariableDeclaration,entityId:nu},MF={type:r.GenericReference,id:"last-timestamp-variable-default-value-parent-ref-id",version:"1",entityType:r.VariableDeclaration,entityId:nu},_F={like:!1,inferred:!1,id:"last-timestamp-variable-datatype-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,entity:Pr,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,asType:!1,isList:!1,parent:BF},NF={type:r.GenericReference,id:"last-timestamp-variable-main-project-ref-id",version:"1",entityType:r.Project,entityId:ne},Bu={constant:!0,required:!0,id:nu,type:r.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:r.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:C.Date,value:null,autogeneration:{type:st.CurrentDateAndTime,rangeStart:null,rangeEnd:null},valueAsType:null,parent:MF},dataType:_F,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],x:0,y:0,readsValue:null,writesValues:[],internalCalls:[],parent:NF},LF={type:r.GenericReference,id:"wait-for-2-seconds-argument-default-value-parent-ref-id",version:"1",entityType:r.InputMap,entityId:Pb},GF={type:r.GenericReference,id:"wait-for-2-seconds-argument-map-parent-ref-id",version:"1",entityType:r.Operation,entityId:Vu},$F={id:Pb,type:r.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Bn,name:null,description:null,readsValue:null,defaultValue:{id:"wait-for-2-seconds-argument-default-value-id",type:r.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:2e3,valueAsType:null,autogeneration:null,name:C.Number,parent:LF},index:0,parent:GF},FF={type:r.GenericReference,id:"wait-for-2-seconds-parent-ref-id",version:"1",entityType:r.FunctionDeclaration,entityId:Ft},UF={type:r.GenericReference,id:"wait-for-2-seconds-called-by-ref-one-id",version:"1",entityType:r.Operation,entityId:Qa},xF={type:r.GenericReference,id:"wait-for-2-seconds-called-by-ref-two-id",version:"1",entityType:r.Operation,entityId:Xa},Nb={id:Vu,type:r.Operation,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Tr,inputs:[$F],outputs:[],process:null,successCalls:[Cb],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[],calledBySuccess:[UF,xF],error:null,parent:FF},jF={type:r.GenericReference,id:"wait-for-random-amount-argument-default-value-parent-ref-id",version:"1",entityType:r.InputMap,entityId:"wait-for-random-amount-input-map-id"},kF={type:r.GenericReference,id:"wait-for-random-amount-argument-map-parent-ref-id",version:"1",entityType:r.Operation,entityId:"wait-for-random-amount-id"},ZF={id:"wait-for-random-amount-input-map-id",type:r.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Bn,name:null,description:null,readsValue:null,defaultValue:{id:"wait-for-random-amount-argument-default-value-id",type:r.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:null,valueAsType:null,autogeneration:{type:st.Random,rangeStart:1e3,rangeEnd:4e3},name:C.Number,parent:jF},index:0,parent:kF},qF={type:r.GenericReference,id:"wait-for-random-amount-parent-ref-id",version:"1",entityType:r.Project,entityId:ne},Yi={id:"wait-for-random-amount-id",type:r.Operation,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Tr,inputs:[ZF],process:null,outputs:[],successCalls:[],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[],calledBySuccess:[],error:null,parent:qF},Mu="list-of-functions-variable-id",JF={type:r.GenericReference,id:"list-of-functions-variable-action-descriptor-dynamic-argument-parent-ref-id",version:"1",entityType:r.ActionDescriptor,entityId:"list-of-functions-variable-action-descriptor-id"},WF={id:"list-of-functions-variable-action-descriptor-dynamic-argument-id",type:r.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:JF},YF={type:r.GenericReference,id:"list-of-functions-variable-action-descriptor-dynamic-return-parent-ref-id",version:"1",entityType:r.ActionDescriptor,entityId:"list-of-functions-variable-action-descriptor-id"},HF={id:"list-of-functions-variable-action-descriptor-dynamic-return-id",type:r.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:YF},zF={type:r.GenericReference,id:"list-of-functions-variable-data-type-parent-ref-id",version:"1",entityType:r.VariableDeclaration,entityId:Mu},KF={type:r.GenericReference,id:"list-of-functions-variable-action-descriptor-parent-ref-id",version:"1",entityType:r.DataType,entityId:"list-of-functions-variable-data-type-id"},XF={id:"list-of-functions-variable-action-descriptor-id",type:r.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:[WF],error:null,outputs:[HF],parent:KF},QF={type:r.GenericReference,id:"list-of-functions-variable-data-type-default-parent-ref-id",version:"1",entityType:r.VariableDeclaration,entityId:Mu},eU={like:!1,inferred:!1,id:"list-of-functions-variable-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:XF,asType:!1,isList:!0,parent:zF},tU={type:r.GenericReference,id:"list-of-functions-variable-parent-ref-id",version:"1",entityType:r.FunctionDeclaration,entityId:Ft};r.GenericReference,r.InputMap;const rU={type:r.GenericReference,id:"list-of-functions-variable-writes-value-one-ref-id",version:"1",entityType:r.InputMap,entityId:Db},nU={type:r.GenericReference,id:"list-of-functions-variable-writes-value-two-ref-id",version:"1",entityType:r.InputMap,entityId:Ou},Lb={constant:!0,required:!0,id:Mu,type:r.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:r.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:C.ActionDescriptor,value:null,valueAsType:[Yi,Yi,Yi,Yi,Yi],autogeneration:null,parent:QF},dataType:eU,parent:tU,readsValue:null,writesValues:[rU,nU],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],inputs:[],outputs:[],internalCalls:[],x:0,y:0},iU={type:r.GenericReference,id:"exec-in-parallel-return-map-parent-ref-id",version:"1",entityType:r.Operation,entityId:Xa},aU={type:r.GenericReference,id:"exec-in-parallel-result-variable-parent-ref-id",version:"1",entityType:r.FunctionDeclaration,entityId:Ft},sU={type:r.GenericReference,id:"exec-in-parallel-result-variable-reads-value-ref-id",version:"1",entityType:r.OutputMap,entityId:"exec-in-parallel-return-map-id"},oU={type:r.GenericReference,id:"exec-in-parallel-result-variable-called-by-ref-id",version:"1",entityType:r.Operation,entityId:Xa},Gb={id:"exec-in-parallel-result-variable-id",type:r.VariableInstance,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Bu,readsValue:sU,writesValues:[],defaultValue:null,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[oU],successCalls:[],errorCalls:[],internalCalls:[],parent:aU,x:0,y:0},lU={id:"exec-in-parallel-return-map-id",type:r.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:cd,writesValues:[Gb],index:0,parent:iU},dU={type:r.GenericReference,id:"exec-in-parallel-argument-map-parent-ref-id",version:"1",entityType:r.Operation,entityId:Xa},uU={id:Ou,type:r.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:ud,name:null,description:null,readsValue:Lb,defaultValue:null,index:0,parent:dU},cU={type:r.GenericReference,id:"exec-in-parallel-parent-ref-id",version:"1",entityType:r.FunctionDeclaration,entityId:Ft},pU={type:r.GenericReference,id:"exec-in-parallel-called-by-ref-id",version:"1",entityType:r.FunctionDeclaration,entityId:Ft},hU={process:null,id:Xa,type:r.Operation,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Tr,inputs:[uU],outputs:[lU],successCalls:[Nb,Gb],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[pU],calledBySuccess:[],error:null,parent:cU},yU={type:r.GenericReference,id:"exec-sequentially-return-map-parent-ref-id",version:"1",entityType:r.Operation,entityId:Qa},fU={type:r.GenericReference,id:"exec-sequentially-result-variable-parent-ref-id",version:"1",entityType:r.FunctionDeclaration,entityId:Ft},mU={type:r.GenericReference,id:"exec-sequentially-result-variable-reads-value-ref-id",version:"1",entityType:r.OutputMap,entityId:"exec-sequentially-return-map-id"},TU={type:r.GenericReference,id:"exec-sequentially-result-variable-called-by-ref-id",version:"1",entityType:r.Operation,entityId:Qa},$b={id:"exec-sequentially-result-variable-id",type:r.VariableInstance,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Bu,readsValue:mU,defaultValue:null,writesValues:[],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[TU],successCalls:[],errorCalls:[],internalCalls:[],parent:fU,x:0,y:0},vU={id:"exec-sequentially-return-map-id",type:r.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:hd,writesValues:[$b],index:0,parent:yU},EU={type:r.GenericReference,id:"exec-sequentially-argument-map-parent-ref-id",version:"1",entityType:r.Operation,entityId:Qa},RU={id:Db,type:r.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:pd,name:null,description:null,readsValue:Lb,defaultValue:null,index:0,parent:EU},gU={type:r.GenericReference,id:"exec-sequentially-parent-ref-id",version:"1",entityType:r.FunctionDeclaration,entityId:Ft},bU={type:r.GenericReference,id:"exec-sequentially-called-by-ref-id",version:"1",entityType:r.FunctionDeclaration,entityId:Ft},IU={id:Qa,type:r.Operation,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Wr,inputs:[RU],process:null,outputs:[vU],successCalls:[Nb,$b],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[bU],calledBySuccess:[],error:null,parent:gU},AU={type:r.GenericReference,id:"concurrency-and-wait-parent-ref-id",version:"1",entityType:r.Project,entityId:ne},DU={type:r.FunctionDeclaration,id:Ft,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:[IU,hU,wF],returnStatements:[Cb],implements:null,index:null,collapsed:!1,private:!1,x:0,y:0,parent:AU},PU={type:r.GenericReference,id:"3521f2c8-a5c0-419c-8808-4fc6a73d0b78",version:"1",entityType:r.ReturnDeclaration,entityId:"e1ec31f0-25ca-42ac-a4c4-c9ec2255f55b"},SU={like:!1,inferred:!1,id:"ce8b9a30-afe9-4d4f-879f-1677efca2c47",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:cr,isList:!1,asType:!1,parent:PU},OU={type:r.GenericReference,id:"8ee66e38-b060-474e-a503-594063a8ec24",version:"1",entityType:r.ReturnStatement,entityId:"40a23a98-d3b2-42b1-9652-b33779ad15aa"},VU={constant:!0,isError:!1,id:"e1ec31f0-25ca-42ac-a4c4-c9ec2255f55b",type:r.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:SU,readsValue:null,required:!0,index:0,parent:OU},CU={type:r.GenericReference,id:"9cb3c1e4-7250-4be6-be2a-69c2dd366d6f",version:"1",entityType:r.FunctionDeclaration,entityId:"5059c093-eda2-4efc-b7b4-aaaadd4d44de"},wU={type:r.GenericReference,id:"c065fcdd-e054-4f95-941c-7eaa65c35d04",version:"1",entityType:r.FunctionDeclaration,entityId:"5059c093-eda2-4efc-b7b4-aaaadd4d44de"},Fb={type:r.ReturnStatement,id:"40a23a98-d3b2-42b1-9652-b33779ad15aa",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[VU],calledByError:[],calledByEntry:[wU],calledBySuccess:[],throws:null,x:0,y:0,parent:CU},BU={type:r.GenericReference,id:"312ef836-9e40-4d57-b177-03b7145ed074",version:"1",entityType:r.Project,entityId:ne},MU={type:r.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:[Fb],index:null,implements:null,returnStatements:[Fb],collapsed:!1,private:!1,x:0,y:0,parent:BU},_u="get-current-date-and-time-func-decl-id",Ub="get-current-date-and-time-return-statement-id",Nu="get-current-date-and-time-return-declaration-id",_U="get-current-date-and-time-return-declaration-data-type-id",NU={type:r.GenericReference,id:"get-current-date-and-time-return-declaration-data-type-value-parent-ref-id",version:"1",entityType:r.ReturnDeclaration,entityId:Nu},LU={type:r.GenericReference,id:"get-current-date-and-time-return-declaration-data-type-parent-ref-id",version:"1",entityType:r.ReturnDeclaration,entityId:Nu},GU={type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,id:_U,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Pr,asType:!1,isList:!1,like:!1,inferred:!1,parent:LU},$U={type:r.GenericReference,id:"get-current-date-and-time-return-declaration-parent-ref-id",version:"1",entityType:r.ReturnStatement,entityId:Ub};r.ReturnDeclaration,r.LiteralValue,C.Date,st.CurrentDateAndTime;const FU={type:r.GenericReference,id:"get-current-date-and-time-return-statement-called-by-ref-id",version:"1",entityType:r.FunctionDeclaration,entityId:_u},UU={type:r.GenericReference,id:"get-current-date-and-time-return-statement-parent-ref-id",version:"1",entityType:r.FunctionDeclaration,entityId:_u};r.ReturnStatement;const xU={type:r.GenericReference,id:"concurrency-and-wait-parent-ref-id",version:"1",entityType:r.Project,entityId:ne},jU={type:r.FunctionDeclaration,id:_u,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:[],returnStatements:[],implements:null,index:null,collapsed:!1,private:!1,x:0,y:0,parent:xU},xb="do-math-return-statement-id",Lu="do-math-return-declaration-id",kU={type:r.GenericReference,id:"do-math-func-var-to-return-one-ref-id",version:"1",entityType:r.VariableDeclaration,entityId:"do-math-func-var-to-return-one-id"},ZU={like:!1,inferred:!1,id:"do-math-func-var-to-return-one-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ue,asType:!1,isList:!1,parent:kU},qU={type:r.GenericReference,id:"do-math-func-decl-ref-two-id",version:"1",entityType:r.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},JU={type:r.GenericReference,id:"do-math-func-var-to-return-one-map-ref-id",version:"1",entityType:r.ReturnDeclaration,entityId:Lu},WU={constant:!0,required:!0,type:r.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:ZU,readsValue:null,writesValues:[JU],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:qU},YU={type:r.GenericReference,id:"96ec244e-594b-45f7-802b-6dc3056920f6",version:"1",entityType:r.ReturnStatement,entityId:xb},HU={type:r.GenericReference,id:"d120c0cc-9d13-4e45-90e2-4e1ee825ca46",version:"1",entityType:r.ReturnDeclaration,entityId:Lu},zU={like:!1,inferred:!1,id:"da91aa23-9985-49ac-a8bf-9d623ba1ba8f",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ue,isList:!1,asType:!1,parent:HU},KU={constant:!0,isError:!1,id:Lu,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:r.ReturnDeclaration,name:"Result",description:null,implements:null,defaultValue:null,dataType:zU,readsValue:WU,required:!0,index:0,parent:YU},XU={type:r.GenericReference,id:"57fd93e4-93a1-484e-82eb-4dd15d2d0e24",version:"1",entityType:r.Operation,entityId:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e"},QU={type:r.GenericReference,id:"0a86e8d5-ab21-476e-a482-b928cbf351e3",version:"1",entityType:r.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},jb={type:r.ReturnStatement,id:xb,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[KU],calledByError:[],calledByEntry:[],calledBySuccess:[XU],parent:QU,throws:null,x:0,y:0},ex={type:r.GenericReference,id:"a2db26be-57f2-48e5-9769-cdbf0d95dc7c",version:"1",entityType:r.VariableDeclaration,entityId:"d0e9f1f3-7e9f-4e1f-8d8e-7b4b3e6c6a6a"},tx={like:!1,inferred:!1,id:"c3e9d5f0-204f-45f9-85f7-e1b56b468388",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ue,asType:!1,isList:!1,parent:ex},rx={type:r.GenericReference,id:"692122c5-610a-4504-90dd-f5a5202d116c",version:"1",entityType:r.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},nx={type:r.GenericReference,id:"do-math-func-return-one-called-by",version:"1",entityType:r.Operation,entityId:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e"},ix={type:r.GenericReference,id:"6dceb501-be5b-4252-afb4-3c0d08abba33",version:"1",entityType:r.OutputMap,entityId:"64752080-ee0f-4cfe-9897-a0668f2b2aca"},kb={constant:!0,required:!0,type:r.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:tx,description:null,defaultValue:null,readsValue:ix,writesValues:[],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[nx],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:rx},ax={type:r.GenericReference,id:"5440f523-af38-4981-8035-89d162fe8041",version:"1",entityType:r.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},sx={type:r.GenericReference,id:"8c482c35-e674-4713-a1dd-63c3d13b611c",version:"1",entityType:r.OutputMap,entityId:"64752080-ee0f-4cfe-9897-a0668f2b2aca"},ox={type:r.GenericReference,id:"c0a299cd-5869-4930-8cf0-90e3ceb8a903",version:"1",entityType:r.VariableDeclaration,entityId:"46b2fe23-b417-4887-a35d-09b186679172"},lx={like:!1,inferred:!1,id:"51c0c1df-2ee3-41df-ae52-ac512d8cf795",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ue,isList:!1,asType:!1,parent:ox},dx={type:r.GenericReference,id:"do-math-func-return-two-called-by",version:"1",entityType:r.Operation,entityId:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e"},Zb={constant:!0,required:!0,type:r.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:[dx],successCalls:[],errorCalls:[],dataType:lx,readsValue:sx,writesValues:[],internalCalls:[],parent:ax,x:0,y:0},qb={type:r.GenericReference,id:"6e4d776e-6af2-4321-b630-c78110fd677c",version:"1",entityType:r.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},ux={type:r.GenericReference,id:"5b60955b-2486-40b6-bb24-ffd97ccd8902",version:"1",entityType:r.Operation,entityId:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e"},cx={type:r.GenericReference,id:"1a49923f-bc6f-453f-a438-e74e5475c2a9",version:"1",entityType:r.Operation,entityId:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e"},px={type:r.GenericReference,id:"02bfde0a-b757-4072-9613-6e9c7c9a424a",version:"1",entityType:r.ArgumentDeclaration,entityId:"d8895765-f705-457e-85fa-25d130926769"},Jb={id:"928953b0-0e3f-4d8c-ae5a-84620b4b8c68",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:r.InputMap,declaration:Kl,name:null,description:null,readsValue:px,defaultValue:null,index:0,parent:cx},hx={id:"64752080-ee0f-4cfe-9897-a0668f2b2aca",type:r.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:ed,writesValues:[kb,Zb],index:0,parent:ux},yx={type:r.GenericReference,id:"d235a7f6-07ff-4f35-98d2-8f42dd59cf9f",version:"1",entityType:r.Operation,entityId:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e"},fx={id:"8827e8e9-9381-4ad7-8f61-5419c23c9136",type:r.GenericReference,version:"1",entityType:r.VariableDeclaration,entityId:"72a338d8-0183-4ca2-8760-227517854595"},Wb={id:"a5525249-0eb5-472b-97bc-5e4cc0d75aee",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:r.InputMap,declaration:Xl,name:null,description:null,readsValue:fx,defaultValue:null,index:1,parent:yx},mx={type:r.Operation,id:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e",declaration:Ms,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,inputs:[Jb,Wb],outputs:[hx],calledByError:[],calledByEntry:[qb],calledBySuccess:[],process:null,successCalls:[jb,kb,Zb],errorCalls:[],parent:qb,error:null,x:0,y:0},Tx={type:r.GenericReference,id:"a2c40226-2270-4963-a865-c777ba79c551",version:"1",entityType:r.VariableDeclaration,entityId:"72a338d8-0183-4ca2-8760-227517854595"},vx={id:"f47731b3-f278-4ab5-aeb2-24519c1119fb",type:r.GenericReference,entityId:"72a338d8-0183-4ca2-8760-227517854595",version:"1",entityType:r.ArgumentDeclaration},Yb={like:!1,inferred:!1,id:"a350a9e9-25ee-477f-a83d-9e98ed2451662",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ue,isList:!1,asType:!1,parent:vx},Ex={type:r.GenericReference,id:"5f5d8dd0-7f3b-40cd-9f84-83d976887eaf",version:"1",entityType:r.ArgumentDeclaration,entityId:"649bf0a4-6532-44aa-9818-a03d1c6564e9"},Rx={type:r.GenericReference,id:"ca018d0f-a8b3-4c7e-a408-c8b372d04aff",version:"1",entityType:r.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},gx={type:r.GenericReference,id:"do-math-func-var-called-by-ref",version:"1",entityType:r.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},Hb={constant:!0,required:!0,id:"72a338d8-0183-4ca2-8760-227517854595",type:r.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:r.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:1,name:C.Number,valueAsType:null,autogeneration:null,parent:Tx},dataType:Yb,inputs:[],outputs:[],calledByError:[],calledByEntry:[gx],calledBySuccess:[],successCalls:[],errorCalls:[],readsValue:Ex,writesValues:[Wb],internalCalls:[],x:0,y:0,parent:Rx},bx={version:"1",entityType:r.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b",type:r.GenericReference,id:"af0cf105-4075-425f-aecc-b25d3600fcc4"},Ix={constant:!0,id:"649bf0a4-6532-44aa-9818-a03d1c6564e9",type:r.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:Yb,implements:null,writesValues:[Hb],required:!0,index:1,parent:bx},Ax={type:r.GenericReference,id:"56953b5d-3e43-4dea-a62c-f3e868ba81bb",version:"1",entityType:r.Project,entityId:ne},Dx={id:"868defc8-5c95-48ed-942d-257e8b9b9b00",type:r.GenericReference,version:"1",entityType:r.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},Px={type:r.GenericReference,id:"35167664-a793-49f1-9eaf-fb57eac30897",version:"1",entityType:r.VariableDeclaration,entityId:"d8895765-f705-457e-85fa-25d130926769"},Sx={id:"d47ceef6-be6f-40f1-a7b3-c73c8d8a6c6a",type:r.GenericReference,entityId:"d8895765-f705-457e-85fa-25d130926769",version:"1",entityType:r.ArgumentDeclaration},Ox={like:!1,inferred:!1,id:"55b12914-91b1-48b7-9a3e-9c5d0d2a2ec2",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ue,isList:!1,asType:!1,parent:Sx},Vx={constant:!0,id:"d8895765-f705-457e-85fa-25d130926769",type:r.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"N",dataType:Ox,description:"The number to add",implements:null,defaultValue:{id:"do-math-func-argument-one-default-value-id",type:r.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:5,name:C.Number,valueAsType:null,autogeneration:null,parent:Px},writesValues:[Jb],required:!0,index:0,parent:Dx},Cx={type:r.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:[Vx,Ix],calls:[mx,Hb],implements:null,index:null,collapsed:!1,returnStatements:[jb],private:!1,x:0,y:0,parent:Ax},Ut="replace-bank-account-in-company-func-declaration-id",Gu="company-entity-to-modify-arg-declaration-id",$u="account-number-to-create-arg-decl-id",Hi="company-main-variable-id",zi="search-person-by-id-id",zb="new-bank-account-owner-arg-decl-id",Kb="search-person-by-id-output-declaration-id",Fu="search-person-by-id-output-entity-map-id",es="person-not-empty-condition-id",ko="create-new-bank-account-instance-operation-id",Xb="create-new-bank-account-instance-operation-output-entity-map-id",Qb="company-bank-account-output-map-id",Uu="old-bank-account-var-declaration-id",eI="old-bank-account-var-instance-id",tI="company-variable-instance-id",xu="delete-bank-account-internal-call-id",ts="new-bank-account-data-variable-declaration-id",wx={type:r.GenericReference,id:"company-variable-instance-parent-ref-id",version:"1",entityType:r.FunctionDeclaration,entityId:Ut},Bx={type:r.GenericReference,id:"company-variable-instance-called-by-ref-id",version:"1",entityType:r.InternalCall,entityId:xu},Mx={type:r.GenericReference,id:"company-variable-instance-declaration-ref-id",version:"1",entityType:r.VariableDeclaration,entityId:Hi},_x={type:r.GenericReference,id:"bank-account-input-map-parent-ref-id",version:"1",entityType:r.VariableInstance,entityId:tI},Nx={type:r.GenericReference,id:"bank-account-input-map-reads-value-ref-id",version:"1",entityType:r.OutputMap,entityId:Xb},rI={type:r.InputMap,id:"bank-account-input-map-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,readsValue:Nx,declaration:uu,name:null,description:null,index:0,defaultValue:null,parent:_x},Lx={type:r.VariableInstance,id:tI,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:Mx,inputs:[rI],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[Bx],successCalls:[],errorCalls:[],internalCalls:[],parent:wx,readsValue:null,writesValues:[],x:0,y:0},Gx={type:r.GenericReference,id:"bank-account-variable-data-type-parent-ref-id",version:"1",entityType:r.VariableDeclaration,entityId:Hi},$x={type:r.DataType,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:Zi,asType:!1,isList:!1,like:!1,inferred:!1,parent:Gx},Fx={type:r.GenericReference,id:"bank-account-variable-reads-value-ref-id",version:"1",entityType:r.OutputMap,entityId:Qb},Ux={type:r.GenericReference,id:"bank-account-variable-parent-ref-id",version:"1",entityType:r.FunctionDeclaration,entityId:Ut},xx={type:r.GenericReference,id:"bank-account-variable-called-by-ref-id",version:"1",entityType:r.VariableDeclaration,entityId:Hi},jx={type:r.GenericReference,id:"delete-bank-account-internal-call-called-by-ref-id",version:"1",entityType:r.Operation,entityId:ko};r.GenericReference,r.VariableInstance;const kx={type:r.GenericReference,id:"delete-bank-account-internal-call-called-by-ref-two-id",version:"1",entityType:r.VariableDeclaration,entityId:Uu},Zx={type:r.GenericReference,id:"old-bank-account-variable-trigger-delete-decl-ref-id",version:"1",entityType:r.VariableDeclaration,entityId:Uu},qx={type:r.GenericReference,id:"bank-account-variable-parent-ref-two-id",version:"1",entityType:r.FunctionDeclaration,entityId:Ut},Jx={type:r.GenericReference,id:"old-bank-account-variable-trigger-delete-internal-call-ref-id",version:"1",entityType:r.InternalCall,entityId:xu},Wx={type:r.VariableInstance,id:eI,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:Zx,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],internalCalls:[Jx],errorCalls:[],parent:qx,readsValue:null,writesValues:[],x:0,y:0},nI={process:null,type:r.InternalCall,id:xu,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Gd,index:0,successCalls:[Lx],errorCalls:[],inputs:[],outputs:[],error:null,calledByError:[],calledByEntry:[],calledBySuccess:[jx,kx],parent:Wx},iI={constant:!0,required:!0,type:r.VariableDeclaration,id:Uu,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:$x,defaultValue:null,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[xx],successCalls:[nI],internalCalls:[],errorCalls:[],parent:Ux,readsValue:Fx,writesValues:[],x:0,y:0},Yx={type:r.GenericReference,id:"company-variable-declaration-data-type-parent-ref-id",version:"1",entityType:r.VariableDeclaration,entityId:Hi},Hx={type:r.DataType,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:cr,asType:!1,isList:!1,like:!1,inferred:!1,parent:Yx},zx={type:r.GenericReference,id:"company-variable-declaration-reads-value-ref-id",version:"1",entityType:r.ArgumentDeclaration,entityId:Gu},Kx={type:r.GenericReference,id:"company-variable-declaration-parent-ref-id",version:"1",entityType:r.FunctionDeclaration,entityId:Ut},Xx={type:r.GenericReference,id:"company-variable-declaration-called-by-ref-id",version:"1",entityType:r.FunctionDeclaration,entityId:Ut},Qx={type:r.GenericReference,id:"company-bank-account-output-map-parent-ref-id",version:"1",entityType:r.VariableDeclaration,entityId:Hi},ej={id:Qb,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:r.OutputMap,defaultValue:null,declaration:uu,index:0,parent:Qx,writesValues:[iI]},aI={constant:!0,required:!0,type:r.VariableDeclaration,id:Hi,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:Hx,inputs:[],outputs:[ej],calledByError:[],calledByEntry:[Xx],calledBySuccess:[],successCalls:[iI],errorCalls:[],parent:Kx,internalCalls:[],readsValue:zx,writesValues:[],x:0,y:0},tj={type:r.GenericReference,id:"create-new-bank-account-account-owner-dynamic-input-map-parent-ref-id",version:"1",entityType:r.VariableDeclaration,entityId:ts},rj={id:"create-new-bank-account-account-owner-dynamic-input-map-reads-value-ref-id",type:r.GenericReference,version:"1",entityType:r.OutputMap,entityId:Fu},sI={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:r.InputMap,declaration:null,name:"Account owner",description:null,readsValue:rj,index:1,defaultValue:null,parent:tj},nj={id:"create-new-bank-account-account-number-dynamic-input-map-reads-value-ref-id",type:r.GenericReference,version:"1",entityType:r.ArgumentDeclaration,entityId:$u},ij={type:r.GenericReference,id:"create-new-bank-account-account-number-dynamic-input-map-parent-ref-id",version:"1",entityType:r.VariableDeclaration,entityId:ts},oI={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:r.InputMap,declaration:null,name:"Account number",description:null,readsValue:nj,defaultValue:null,index:0,parent:ij},lI={type:r.GenericReference,id:"create-new-bank-account-instance-operation-entity-to-create-input-map-parent-ref-id",version:"1",entityType:r.Operation,entityId:ko},aj={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:r.InputMap,declaration:Mn.inputs[0],name:null,description:null,index:0,readsValue:null,defaultValue:{type:r.LiteralValue,name:C.EntityTemplate,value:null,valueAsType:Zi,autogeneration:null},parent:lI},sj={type:r.GenericReference,id:"create-new-bank-account-instance-operation-entity-data-input-map-reads-value-ref-id",version:"1",entityType:r.VariableDeclaration,entityId:ts},dI={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:r.InputMap,declaration:Mn.inputs[1],name:null,description:null,index:1,readsValue:sj,defaultValue:null,parent:lI},oj={type:r.GenericReference,id:"create-new-bank-account-instance-operation-output-entity-map-parent-ref-id",version:"1",entityType:r.Operation,entityId:ko},lj={id:Xb,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:r.OutputMap,defaultValue:null,declaration:Mn.outputs[0],index:0,writesValues:[rI],parent:oj},dj={type:r.GenericReference,id:"create-new-bank-account-instance-operation-called-by-ref-id",version:"1",entityType:r.Condition,entityId:es},uj={type:r.GenericReference,id:"create-new-bank-account-instance-operation-called-by-ref-id",version:"1",entityType:r.VariableDeclaration,entityId:ts},cj={type:r.GenericReference,id:"create-new-bank-account-instance-operation-parent-ref-id",version:"1",entityType:r.FunctionDeclaration,entityId:Ut},uI={process:null,id:ko,type:r.Operation,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Mn,inputs:[aj,dI],error:null,outputs:[lj],successCalls:[nI],errorCalls:[],calledByError:[],calledByEntry:[],calledBySuccess:[uj,dj],parent:cj,x:0,y:0},pj={type:r.GenericReference,id:"new-bank-account-data-variable-declaration-parent-ref-id",version:"1",entityType:r.FunctionDeclaration,entityId:Ut},hj={type:r.GenericReference,id:"create-new-bank-account-instance-operation-called-by-ref-id",version:"1",entityType:r.Condition,entityId:es},yj={constant:!0,required:!0,id:ts,type:r.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,inputs:[oI,sI],dataType:null,name:"New bank Account's data",description:null,readsValue:null,outputs:[],writesValues:[dI],successCalls:[uI],errorCalls:[],internalCalls:[],calledByError:[],calledBySuccess:[hj],calledByEntry:[],x:0,y:0,parent:pj},fj={id:"person-not-found-thrown-error-datatype-default-value-parent-ref-id",type:r.GenericReference,entityId:"person-not-found-thrown-error-id",version:"1",entityType:r.ReturnDeclaration},mj={id:"person-not-found-thrown-error-datatype-parent-ref-id",type:r.GenericReference,entityId:"person-not-found-thrown-error-id",version:"1",entityType:r.ReturnDeclaration},Tj={like:!1,inferred:!1,id:"person-not-found-thrown-error-datatype-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:X,isList:!1,asType:!1,parent:mj},vj={id:"person-not-found-thrown-error-parent-ref-id",type:r.GenericReference,entityId:"person-not-found-error-return-statement-id",version:"1",entityType:r.ReturnStatement},Ej={constant:!0,isError:!0,id:"person-not-found-thrown-error-id",type:r.ReturnDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,dataType:Tj,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:r.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:"Person not found",name:C.String,parent:fj,valueAsType:null,autogeneration:null},parent:vj,implements:null,required:!0,index:0,readsValue:null},Rj={id:"person-not-found-error-return-statement-called-by-ref-id",type:r.GenericReference,entityId:es,version:"1",entityType:r.Condition},gj={id:"person-not-found-error-return-statement-parent-ref-id",type:r.GenericReference,entityId:Ut,version:"1",entityType:r.FunctionDeclaration},bj={id:"person-not-found-error-return-statement-id",type:r.ReturnStatement,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,throws:Ej,outputs:[],calledBySuccess:[],calledByError:[Rj],calledByEntry:[],x:0,y:0,parent:gj},Ij={type:r.GenericReference,id:"person-not-empty-condition-called-by-ref-id",version:"1",entityType:r.Search,entityId:zi},Aj={type:r.GenericReference,id:"person-not-empty-condition-parent-ref-id",version:"1",entityType:r.FunctionDeclaration,entityId:Ut},Dj={type:r.GenericReference,id:"person-entity-to-check-map-reads-value-ref-id",version:"1",entityType:r.OutputMap,entityId:Fu},Pj={type:r.GenericReference,id:"person-not-empty-condition-ref-two-id",version:"1",entityType:r.Condition,entityId:es},cI={id:"person-entity-to-check-map-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:r.InputMap,declaration:Fn.inputs[0],name:null,description:null,readsValue:Dj,index:0,defaultValue:null,parent:Pj},Sj={type:r.Condition,id:es,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Fn,inputs:[cI],calledByError:[],calledByEntry:[],calledBySuccess:[Ij],successCalls:[yj,uI],errorCalls:[bj],x:0,y:0,parent:Aj},Oj={type:r.GenericReference,id:"search-person-by-id-output-entity-declaration-datatype-parent-ref-id",version:"1",entityType:r.ValueDescriptor,entityId:Kb},Vj={like:!1,inferred:!1,id:"search-person-by-id-output-entity-declaration-datatype-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,asType:!1,entity:$t,parent:Oj},Cj={type:r.GenericReference,id:"search-person-by-id-output-entity-declaration-parent-ref-id",version:"1",entityType:r.Search,entityId:zi},pI={id:Kb,type:r.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,dataType:Vj,name:"Found person",description:"The person entity that was found",parent:Cj,required:!0,index:0},wj={type:r.GenericReference,id:"search-person-by-id-output-entity-map-parent-ref-id",version:"1",entityType:r.Search,entityId:zi},Bj={type:r.OutputMap,id:Fu,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:pI,parent:wj,writesValues:[cI,sI],index:0},Mj={id:"search-person-by-id-input-declaration-datatype-parent-ref-id",type:r.GenericReference,entityId:"search-person-by-id-input-declaration-id",version:"1",entityType:r.ArgumentDeclaration};r.DataType;const _j={type:r.GenericReference,id:"search-person-by-id-input-declaration-parent-ref-id",version:"1",entityType:r.Search,entityId:zi},hI={id:"search-person-by-id-input-declaration-id",type:r.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:V.FixedArguments,index:0,required:!0,parent:_j},Nj={type:r.GenericReference,id:"search-person-by-id-input-map-parent-ref-id",version:"1",entityType:r.Search,entityId:zi},Lj={id:"search-person-by-id-input-map-reads-value-ref-id",type:r.GenericReference,entityId:zb,version:"1",entityType:r.ArgumentDeclaration},yI={type:r.InputMap,id:"search-person-by-id-input-map",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:hI,name:null,description:null,readsValue:Lj,defaultValue:null,parent:Nj,index:0},Gj="SELECT * FROM Person WHERE id = your_id;",$j={type:r.GenericReference,id:"search-person-by-id-parent-ref-id",version:"1",entityType:r.FunctionDeclaration,entityId:Ut},Fj={type:r.GenericReference,id:"search-person-by-id-called-by-ref-id",version:"1",entityType:r.FunctionDeclaration,entityId:Ut},Uj={type:r.Search,id:zi,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:Gj,inputsDeclarations:[hI],inputs:[yI],outputsDeclarations:[pI],outputs:[Bj],calledByError:[],calledByEntry:[Fj],calledBySuccess:[],error:null,successCalls:[Sj],errorCalls:[],parent:$j,x:0,y:0};r.GenericReference,r.DataType;const xj={id:"account-number-to-create-arg-decl-data-type-parent-ref-id",type:r.GenericReference,entityId:$u,version:"1",entityType:r.ArgumentDeclaration},jj={like:!1,inferred:!1,id:"account-number-to-create-arg-decl-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:X,isList:!1,asType:!1,parent:xj},kj={version:"1",entityType:r.FunctionDeclaration,entityId:Ut,type:r.GenericReference,id:"account-number-to-create-arg-decl-parent-ref-id"},Zj={constant:!0,id:$u,type:r.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:jj,implements:null,writesValues:[oI],required:!0,index:1,parent:kj};r.GenericReference,r.DataType;const qj={id:"new-bank-account-owner-arg-decl-data-type-parent-ref-id",type:r.GenericReference,entityId:"new-bank-account-owner-arg-decl-id",version:"1",entityType:r.ArgumentDeclaration},Jj={like:!1,inferred:!1,id:"new-bank-account-owner-arg-decl-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:qr,isList:!1,asType:!1,parent:qj},Wj={version:"1",entityType:r.FunctionDeclaration,entityId:Ut,type:r.GenericReference,id:"new-bank-account-owner-arg-decl-parent-ref-id"},Yj={constant:!0,id:zb,type:r.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:Jj,implements:null,writesValues:[yI],required:!1,index:1,parent:Wj},Hj={type:r.GenericReference,id:"replace-bank-account-in-company-parent-ref",version:"1",entityType:r.Project,entityId:ne},zj={type:r.GenericReference,id:"company-entity-to-modify-parent-ref",version:"1",entityType:r.FunctionDeclaration,entityId:Ut};r.GenericReference,r.DataType;const Kj={id:"d47ceef6-be6f-40f1-a7b3-c73c8d8a6c6a",type:r.GenericReference,entityId:Gu,version:"1",entityType:r.ArgumentDeclaration},Xj={like:!1,inferred:!1,id:"company-entity-to-modify-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ue,isList:!1,asType:!1,parent:Kj},Qj={constant:!0,id:Gu,type:r.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Company",defaultValue:null,dataType:Xj,implements:null,description:"The company to replace the bank account for",writesValues:[aI],required:!0,index:0,parent:zj},e9={type:r.FunctionDeclaration,id:Ut,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:[Qj,Zj,Yj],index:null,implements:null,calls:[Uj,aI],collapsed:!1,returnStatements:[],private:!1,x:0,y:0,parent:Hj},t9={type:r.GenericReference,id:"e0a937bd-3a85-4037-a973-916985b9f94b",version:"1",entityType:r.Project,entityId:"7268bc97-c0e6-4d88-b37e-d3241b5f77a6"},r9={type:r.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,returnStatements:[],private:!1,parent:t9,x:0,y:0},n9={type:r.GenericReference,id:"948e6869-ae5b-4914-bea0-b9f02ad6a014",version:"1",entityType:r.Project,entityId:ne},i9={type:r.GenericReference,id:"f3d6f2c6-1b3e-4e9d-8c9d-5b5b9f0b8d9c",version:"1",entityType:r.Project,entityId:"7268bc97-c0e6-4d88-b37e-d3241b5f77a6"},a9={type:r.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:[r9],events:[],implements:i9,parent:n9,x:0,y:0},ju="global-counted-test-loop-id",fI="global-counted-test-loop-body-id",mI="global-counted-test-loop-body-current-iteration-value-argument-declaration-id",s9={type:r.GenericReference,id:"global-counted-test-loop-body-current-iteration-value-argument-declaration-data-type-parent-ref-id",entityId:mI,version:"1",entityType:r.ArgumentDeclaration},o9={like:!1,inferred:!1,id:"global-counted-test-loop-body-current-iteration-value-argument-declaration-data-type-id",type:r.DataType,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:s9},l9={id:"global-counted-test-loop-body-current-iteration-value-argument-declaration-parent-ref-id",type:r.GenericReference,entityId:fI,version:"1",entityType:r.FunctionDeclaration},d9={constant:!0,id:mI,type:r.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:o9,implements:Ad,required:!0,index:0,writesValues:[],parent:l9},u9={id:"global-counted-test-loop-body-parent-ref-id",type:r.GenericReference,entityId:ju,version:"1",entityType:r.Loop},c9={id:fI,type:r.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:[d9],calls:[],implements:Ys,collapsed:!1,returnStatements:[],private:!1,index:0,x:0,y:0,parent:u9},Ki="random-company-employee-test-variable-id",ku="manager-global-variable-id",TI="global-user-instance-id",Nr="employee-mapped-dto-variable-id",Yn="employee-mapped-dto-variable-instance-id",vI="random-employee-id-output-map-id",EI="random-employee-birth-date-output-map-id",RI="random-employee-department-output-map-id",gI="random-employee-manager-output-map-id",bI="manager-global-id-output-map-id",II="global-user-instance-id-output-map-id",p9="employee-mapped-dto-requester-id-input-map-id",AI="employee-mapped-dto-now-timestamp-input-map-id",h9="employee-mapped-dto-id-input-map-id",y9="employee-mapped-dto-birth-date-input-map-id",f9="employee-mapped-dto-department-input-map-id",m9="employee-mapped-dto-manager-input-map-id",T9={id:"global-counted-test-loop-iteration-number-input-map-parent-ref-id",type:r.GenericReference,entityId:ju,version:"1",entityType:r.Loop};r.GenericReference,r.VariableDeclaration;const v9={id:"global-counted-test-loop-iteration-number-input-map-id",type:r.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:null,description:null,declaration:Da.inputs[0],defaultValue:null,readsValue:null,index:0,parent:T9},E9={id:"global-counted-test-loop-parent-ref-id",type:r.GenericReference,entityId:ne,version:"1",entityType:r.Project},R9={id:"global-counted-test-loop-called-by-success-ref-id",type:r.GenericReference,entityId:Yn,version:"1",entityType:r.VariableDeclaration},DI={id:ju,type:r.Loop,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Da,inputs:[v9],successCalls:[],errorCalls:[],outputsDeclarations:[],outputs:[],process:null,body:c9,calledByError:[],calledByEntry:[],calledBySuccess:[R9],breakStatements:[],continueStatements:[],error:null,x:0,y:0,parent:E9},Zu="global-object-keys-test-loop-id",PI="global-object-keys-test-loop-body-id",SI="global-object-keys-test-loop-body-current-iteration-value-argument-declaration-id",g9={type:r.GenericReference,id:"global-object-keys-test-loop-body-current-iteration-value-argument-declaration-data-type-parent-ref-id",entityId:SI,version:"1",entityType:r.ArgumentDeclaration},b9={like:!1,inferred:!1,id:"global-object-keys-test-loop-body-current-iteration-value-argument-declaration-data-type-id",type:r.DataType,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:g9},I9={id:"global-object-keys-test-loop-body-current-iteration-value-argument-declaration-parent-ref-id",type:r.GenericReference,entityId:PI,version:"1",entityType:r.FunctionDeclaration},A9={constant:!0,id:SI,type:r.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:b9,implements:Ed,required:!0,index:0,writesValues:[],parent:I9},D9={id:"global-object-keys-test-loop-body-parent-ref-id",type:r.GenericReference,entityId:Zu,version:"1",entityType:r.Loop},P9={id:PI,type:r.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:[A9],calls:[],implements:Ci,collapsed:!1,returnStatements:[],private:!1,index:0,x:0,y:0,parent:D9},S9={id:"global-object-keys-test-loop-iteration-object-input-map-parent-ref-id",type:r.GenericReference,entityId:Zu,version:"1",entityType:r.Loop},O9={id:"global-object-keys-test-loop-iteration-object-input-map-reads-value-ref-id",type:r.GenericReference,entityId:Nr,version:"1",entityType:r.VariableDeclaration},OI={id:"global-object-keys-test-loop-iteration-object-input-map-id",type:r.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:null,description:null,declaration:Ci.inputs[0],defaultValue:null,readsValue:O9,index:0,parent:S9},V9={id:"global-object-keys-test-loop-parent-ref-id",type:r.GenericReference,entityId:ne,version:"1",entityType:r.Project},C9={id:"global-object-keys-test-loop-called-by-success-ref-two-id",type:r.GenericReference,entityId:Yn,version:"1",entityType:r.VariableDeclaration},w9={id:"global-object-keys-test-loop-called-by-success-ref-one-id",type:r.GenericReference,entityId:Nr,version:"1",entityType:r.VariableDeclaration},qu={id:Zu,type:r.Loop,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Ci,inputs:[OI],successCalls:[],errorCalls:[],outputsDeclarations:[],outputs:[],process:null,body:P9,calledByError:[],calledByEntry:[],calledBySuccess:[w9,C9],breakStatements:[],continueStatements:[],error:null,x:0,y:0,parent:V9},Ju="global-object-values-test-loop-id",VI="global-object-values-test-loop-body-id",CI="global-object-values-test-loop-body-current-iteration-value-argument-declaration-id",B9={type:r.GenericReference,id:"global-object-values-test-loop-body-current-iteration-value-argument-declaration-data-type-parent-ref-id",entityId:CI,version:"1",entityType:r.ArgumentDeclaration},M9={like:!1,inferred:!1,id:"global-object-values-test-loop-body-current-iteration-value-argument-declaration-data-type-id",type:r.DataType,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:B9},_9={id:"global-object-values-test-loop-body-current-iteration-value-argument-declaration-parent-ref-id",type:r.GenericReference,entityId:VI,version:"1",entityType:r.FunctionDeclaration},N9={constant:!0,id:CI,type:r.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:gd,required:!0,index:0,writesValues:[],parent:_9},L9={id:"global-object-values-test-loop-body-parent-ref-id",type:r.GenericReference,entityId:Ju,version:"1",entityType:r.Loop},G9={id:VI,type:r.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:[N9],calls:[],implements:wi,collapsed:!1,returnStatements:[],private:!1,index:0,x:0,y:0,parent:L9},$9={id:"global-object-values-test-loop-iteration-object-input-map-parent-ref-id",type:r.GenericReference,entityId:Ju,version:"1",entityType:r.Loop},F9={id:"global-object-values-test-loop-iteration-object-input-map-reads-value-ref-id",type:r.GenericReference,entityId:Yn,version:"1",entityType:r.VariableDeclaration},wI={id:"global-object-values-test-loop-iteration-object-input-map-id",type:r.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:null,description:null,declaration:wi.inputs[0],defaultValue:null,readsValue:F9,index:0,parent:$9},U9={id:"global-object-values-test-loop-parent-ref-id",type:r.GenericReference,entityId:ne,version:"1",entityType:r.Project},x9={id:"global-object-values-test-loop-called-by-success-ref-id",type:r.GenericReference,entityId:Yn,version:"1",entityType:r.VariableInstance},BI={id:Ju,type:r.Loop,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:wi,inputs:[wI],successCalls:[],errorCalls:[],outputsDeclarations:[],outputs:[],process:null,body:G9,calledByError:[],calledByEntry:[],calledBySuccess:[x9],breakStatements:[],continueStatements:[],error:null,x:0,y:0,parent:U9},Wu="global-test-iterate-over-string-loop-id",Yu="global-test-iterate-over-string-loop-body-id",Zo="global-test-iterate-over-string-loop-body-current-iteration-value-argument-declaration-id",MI="global-test-iterate-over-string-loop-iteration-list-input-map-id",j9={type:r.GenericReference,id:"global-test-iterate-over-string-loop-body-current-iteration-value-argument-declaration-data-type-parent-ref-id",entityId:Zo,version:"1",entityType:r.ArgumentDeclaration},k9={like:!1,inferred:!1,id:"global-test-iterate-over-string-loop-body-current-iteration-value-argument-declaration-data-type-id",type:r.DataType,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:j9},Z9={id:"global-test-iterate-over-string-loop-body-current-iteration-value-argument-declaration-parent-ref-id",type:r.GenericReference,entityId:Yu,version:"1",entityType:r.FunctionDeclaration},q9={constant:!0,id:Zo,type:r.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:k9,implements:Td,required:!0,index:1,writesValues:[],parent:Z9},J9={type:r.GenericReference,id:"global-test-iterate-over-string-loop-body-current-iteration-value-argument-declaration-data-type-parent-ref-id",entityId:Zo,version:"1",entityType:r.ArgumentDeclaration},W9={like:!1,inferred:!1,id:"global-test-iterate-over-string-loop-body-current-iteration-value-argument-declaration-data-type-id",type:r.DataType,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:J9},Y9={id:"global-test-iterate-over-string-loop-body-current-iteration-value-argument-declaration-parent-ref-id",type:r.GenericReference,entityId:Yu,version:"1",entityType:r.FunctionDeclaration},H9={constant:!0,id:Zo,type:r.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:W9,implements:vd,required:!0,index:0,writesValues:[],parent:Y9},z9={id:"global-test-iterate-over-string-loop-body-parent-ref-id",type:r.GenericReference,entityId:Wu,version:"1",entityType:r.Loop},K9={id:Yu,type:r.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:[H9,q9],calls:[],implements:Js,collapsed:!1,returnStatements:[],private:!1,index:0,x:0,y:0,parent:z9},X9={id:"global-test-iterate-over-string-loop-iteration-list-input-map-parent-ref-id",type:r.GenericReference,entityId:Wu,version:"1",entityType:r.Loop},Q9={id:"global-test-iterate-over-string-loop-iteration-list-input-map-default-value-parent-ref-id",type:r.GenericReference,entityId:MI,version:"1",entityType:r.InputMap},e8={id:"global-test-iterate-over-string-loop-iteration-list-input-map-default-value-id",type:r.LiteralValue,name:C.String,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:"Hello",valueAsType:null,autogeneration:{type:st.Random,rangeStart:4,rangeEnd:5},parent:Q9},t8={id:MI,type:r.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:null,description:null,declaration:Ia.inputs[0],defaultValue:e8,readsValue:null,index:0,parent:X9},r8={id:"global-test-iterate-over-string-loop-parent-ref-id",type:r.GenericReference,entityId:ne,version:"1",entityType:r.Project},n8={id:Wu,type:r.Loop,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Ia,inputs:[t8],successCalls:[],errorCalls:[],outputsDeclarations:[],outputs:[],process:null,body:K9,calledByError:[],calledByEntry:[],calledBySuccess:[],breakStatements:[],continueStatements:[],error:null,x:0,y:0,parent:r8},Hu="iterate-over-list-loop-id",_I="iterate-over-list-loop-body-id",NI="iterate-over-list-loop-body-current-iteration-value-argument-declaration-id",i8={type:r.GenericReference,id:"iterate-over-list-loop-body-current-iteration-value-argument-declaration-data-type-parent-ref-id",entityId:NI,version:"1",entityType:r.ArgumentDeclaration},a8={like:!1,inferred:!1,id:"iterate-over-list-loop-body-current-iteration-value-argument-declaration-data-type-id",type:r.DataType,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:i8},s8={id:"iterate-over-list-loop-body-current-iteration-value-argument-declaration-parent-ref-id",type:r.GenericReference,entityId:_I,version:"1",entityType:r.FunctionDeclaration},o8={constant:!0,id:NI,type:r.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:a8,implements:Ws,required:!0,index:0,writesValues:[],parent:s8},l8={id:"iterate-over-list-loop-body-parent-ref-id",type:r.GenericReference,entityId:Hu,version:"1",entityType:r.Loop},d8={id:_I,type:r.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:[o8],calls:[],implements:Aa,collapsed:!1,returnStatements:[],private:!1,index:0,x:0,y:0,parent:l8},u8={id:"iterate-over-list-loop-iteration-list-input-map-parent-ref-id",type:r.GenericReference,entityId:Hu,version:"1",entityType:r.Loop},c8={id:"iterate-over-list-loop-iteration-list-input-map-id",type:r.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:null,description:null,declaration:cn.inputs[0],defaultValue:null,readsValue:null,index:0,parent:u8},p8={id:"iterate-over-list-loop-parent-ref-id",type:r.GenericReference,entityId:ne,version:"1",entityType:r.Project},h8={id:Hu,type:r.Loop,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:cn,inputs:[c8],successCalls:[],errorCalls:[],outputsDeclarations:[],outputs:[],process:null,body:d8,calledByError:[],calledByEntry:[],calledBySuccess:[],breakStatements:[],continueStatements:[],error:null,x:0,y:0,parent:p8},y8=`SELECT
1
+ (function(c,r){typeof exports=="object"&&typeof module<"u"?r(exports):typeof define=="function"&&define.amd?define(["exports"],r):(c=typeof globalThis<"u"?globalThis:c||self,r(c["@elyx-code/project-logic-tree"]={}))})(this,function(c){"use strict";var uJ=Object.defineProperty;var cJ=(c,r,k)=>r in c?uJ(c,r,{enumerable:!0,configurable:!0,writable:!0,value:k}):c[r]=k;var u=(c,r,k)=>(cJ(c,typeof r!="symbol"?r+"":r,k),k);var r=(n=>(n.DefinitionEntity="definition-entity",n.BuiltInBaseEntity="built-in-base-entity",n.Project="project",n.InstalledProject="installed-project",n.GlobalEvent="global-event",n.DataType="data-type",n.FunctionCall="function-call",n.FunctionDeclaration="function-declaration",n.ActionDescriptor="action-descriptor",n.ValueDescriptor="value-descriptor",n.ArgumentDeclaration="argument-declaration",n.InputMap="input-map",n.ReturnStatement="return-statement",n.BreakStatement="break-statement",n.ContinueStatement="continue-statement",n.ReturnDeclaration="return-declaration",n.OutputMap="output-map",n.PrimitiveEntity="primitive-entity",n.LiteralValue="literal-value",n.Property="property",n.Operation="operation",n.Condition="condition",n.VariableDeclaration="variable-declaration",n.VariableInstance="variable-instance",n.Search="search",n.Loop="loop",n.InternalCall="internal-call",n.GenericReference="generic-reference",n))(r||{}),k=(n=>(n.HTTP_ENDPOINT="BUILT_IN_HTTP_ENDPOINT_ENTITY",n.RELATIONAL_DATABASE="BUILT_IN_RELATIONAL_DATABASE_ENTITY",n.PERSISTED_ENTITY="BUILT_IN_PERSISTED_ENTITY_ENTITY",n.CRON_JOB="BUILT_IN_CRON_JOB_ENTITY",n.EXECUTION="BUILT_IN_EXECUTION_ENTITY",n.KEY_VALUE_PARAM="BUILT_IN_KEY_VALUE_PARAM_ENTITY",n))(k||{}),st=(n=>(n.CurrentDateAndTime="current-date-and-time",n.Unique="unique",n.Random="random",n))(st||{}),C=(n=>(n.EntityTemplate="entity-template",n.ActionDescriptor="action-descriptor",n.String="string",n.Number="number",n.Boolean="boolean",n.Null="null",n.Enum="enum",n.KeyValue="key-value",n.Date="date",n.UUID="uuid",n.File="file",n.Untyped="untyped",n))(C||{}),qe=(n=>(n.Addition="addition",n.Subtraction="subtraction",n.Multiplication="multiplication",n.Division="division",n.Remainder="remainder",n.Exponentiation="exponentiation",n))(qe||{}),pe=(n=>(n.Join="string-join",n.Split="string-split",n.DeleteLast="string-delete-last",n.DeleteFirst="string-delete-first",n.DeleteIndex="string-delete-index",n.AddIndex="string-add-index",n.ReplaceFirst="string-replace-first",n.ReplaceLast="string-replace-last",n.ReplaceIndex="string-replace-index",n.ReplaceSingleMatch="string-replace-single-match",n.ReplaceAllMatches="string-replace-all-matches",n.GetIndex="string-get-index",n.GetFirst="string-get-first",n.GetLast="string-get-last",n.Append="string-append",n.Prepend="string-prepend",n))(pe||{}),oe=(n=>(n.Join="list-join",n.Split="list-split",n.DeleteLast="list-delete-last",n.DeleteFirst="list-delete-first",n.DeleteIndex="list-delete-index",n.AddIndex="list-add-index",n.ReplaceFirst="list-replace-first",n.ReplaceLast="list-replace-last",n.ReplaceIndex="list-replace-index",n.ReplaceSingleMatch="list-replace-single-match",n.ReplaceAllMatches="list-replace-all-matches",n.GetIndex="list-get-index",n.GetFirst="list-get-first",n.GetLast="list-get-last",n.Append="list-append",n.Prepend="list-prepend",n))(oe||{}),ke=(n=>(n.Parallel="parallel",n.Sequential="sequential",n.Wait="wait",n))(ke||{}),Ze=(n=>(n.CreateNewInstance="create-new-instance",n.Validate="validate",n))(Ze||{}),Dt=(n=>(n.HttpRequest="base-http-request",n))(Dt||{}),nt=(n=>(n.Equal="equal",n.NotEqual="not-equal",n.And="and",n.Or="or",n.LessThan="less-than",n.MoreThan="more-than",n.LessThanOrEqual="less-than-or-equal",n.MoreThanOrEqual="more-than-or-equal",n))(nt||{}),lr=(n=>(n.Empty="empty",n.NotEmpty="not-empty",n))(lr||{}),q=(n=>(n.ManualFlow="manual-flow-loop",n.Counted="counted-loop",n.List="list-loop",n.ObjectKeys="object-keys-loop",n.ObjectValues="object-values-loop",n.String="string-loop",n))(q||{}),V=(n=>(n.FixedArguments="fixed-arguments",n.FixedReturns="fixed-returns",n.ReturnedError="returned-error",n.OngoingProcessExecution="ongoing-process-execution",n.DynamicArgument="dynamic-argument-types",n.DynamicReturn="dynamic-return-types",n))(V||{}),yt=(n=>(n.OrDataTypeGroup="or-data-type-group",n.AndDataTypeGroup="and-data-type-group",n))(yt||{}),jr=(n=>(n.PROJECT_PUBLICATION_COMPLETED="GLOBAL_EVENT_PROJECT_PUBLICATION_COMPLETED",n))(jr||{}),er=(n=>(n.DeletePersistedEntity="base-delete-persisted-entity",n.SoftDeletePersistedEntity="base-soft-delete-persisted-entity",n.AbortExecution="base-abort-execution",n))(er||{}),Di=(n=>(n.Error="error",n.Task="task",n.Return="return",n))(Di||{});const un=[r.VariableDeclaration,r.VariableInstance,r.InputMap,r.ReturnDeclaration],ot=[r.VariableDeclaration,r.VariableInstance,r.ArgumentDeclaration,r.OutputMap],Up=[...un,...ot],Je=[r.VariableDeclaration,r.VariableInstance],hP=[r.FunctionDeclaration,r.Condition,r.Loop,r.Operation,r.FunctionCall,r.Search,r.InternalCall,r.GlobalEvent,r.DefinitionEntity,r.ReturnStatement,r.BreakStatement,r.ContinueStatement,r.VariableDeclaration,r.VariableInstance,r.LiteralValue,r.ActionDescriptor,r.ValueDescriptor,r.Property,r.DataType,r.InstalledProject,r.ArgumentDeclaration,r.InputMap,r.OutputMap,r.ReturnDeclaration],yP=[r.FunctionDeclaration,r.Property,r.ArgumentDeclaration,r.ReturnDeclaration],xp=[r.FunctionCall,r.VariableInstance,r.InputMap,r.OutputMap,r.InternalCall],fP=[...xp,r.Condition,r.Loop,r.Operation,r.Condition],Pi=[r.GlobalEvent],Hl=[r.Operation,r.FunctionCall,r.Search,r.VariableDeclaration,r.VariableInstance,r.Loop],jp=[...Hl,r.InternalCall],Cs=[...Hl,r.Condition],Ke=[...Cs,r.InternalCall],Xe=[r.FunctionDeclaration,...Pi],Ir=[...Ke,r.ReturnStatement,r.BreakStatement,r.ContinueStatement],zl=[...Cs,r.ReturnStatement,r.BreakStatement,r.ContinueStatement],Ar=[...Ke,...Xe],kp=[...Cs,...Xe],mP=[...Ir,...Xe],TP=[...zl,...Xe],lt=[...Xe,r.Loop],Qe=[r.ReturnStatement,r.BreakStatement,r.ContinueStatement],vP=[r.DefinitionEntity,r.BuiltInBaseEntity,r.Project,r.InstalledProject,r.GlobalEvent,r.DataType,r.FunctionCall,r.FunctionDeclaration,r.ActionDescriptor,r.ValueDescriptor,r.ArgumentDeclaration,r.InputMap,r.ReturnStatement,r.BreakStatement,r.ContinueStatement,r.ReturnDeclaration,r.OutputMap,r.PrimitiveEntity,r.LiteralValue,r.Property,r.Operation,r.Condition,r.VariableDeclaration,r.VariableInstance,r.Search,r.Loop,r.InternalCall],ws=[r.DefinitionEntity,r.GlobalEvent,r.FunctionDeclaration,r.FunctionCall,r.VariableDeclaration,r.VariableInstance,r.Operation,r.Condition,r.ReturnStatement,r.BreakStatement,r.ContinueStatement,r.InstalledProject,r.Loop,r.Search],Zp=[r.DefinitionEntity,r.FunctionDeclaration,r.ArgumentDeclaration,r.ReturnDeclaration,r.Property,r.VariableDeclaration,r.Search,r.Project,r.InstalledProject,r.ActionDescriptor,r.ValueDescriptor],Dr=[r.BuiltInBaseEntity,r.PrimitiveEntity],qp=[r.DefinitionEntity,r.FunctionDeclaration,r.ArgumentDeclaration,r.ReturnDeclaration,r.Property,r.VariableDeclaration,r.GlobalEvent,r.Search,r.Project,r.InstalledProject,r.ActionDescriptor,r.ValueDescriptor,r.InputMap,r.OutputMap,r.FunctionCall,r.Operation,r.Condition,r.ReturnStatement,r.BreakStatement,r.ContinueStatement,r.VariableInstance,r.LiteralValue,r.InternalCall];var Bs=(n=>(n.ActionOngoingProcessOutputValue="action-ongoing-process-output-value-descriptor-id",n))(Bs||{});const N={[r.PrimitiveEntity]:{[C.String]:{id:"8b5fbe15-4c2b-48c0-9fd8-e5efbe3978dc",properties:{}},[C.Boolean]:{id:"f596545d-1565-4faa-9969-d95fa5edfea4",properties:{}},[C.Number]:{id:"ecb84c29-6153-4b82-86a5-fce2b5f92002",properties:{}},[C.KeyValue]:{id:"b6f3c3c4-9c3d-4f9d-9e9e-1c0f6a3c8c6b",properties:{}},[C.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"}}}}},[C.UUID]:{id:"4a6234aa-c0f6-4731-b4dd-750388029226",properties:{}},[C.Date]:{id:"dc58f38b-d574-4956-aac6-32ce9529b937",properties:{}},[C.Null]:{id:"7d698f34-5a89-4aab-846b-07ef3843b8c4",properties:{}},[C.Untyped]:{id:"4044a018-818e-49d7-bf9a-c3dd1fff2102",properties:{}}},[r.ValueDescriptor]:{"action-ongoing-process-output-value-descriptor-id":{id:"action-ongoing-process-output-value-descriptor-id",dataType:{id:"process-output-value-data-type-id"}}},[r.BuiltInBaseEntity]:{[k.KEY_VALUE_PARAM]:{id:k.KEY_VALUE_PARAM},[k.HTTP_ENDPOINT]:{id:k.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"}}},[k.PERSISTED_ENTITY]:{id:k.PERSISTED_ENTITY,properties:{database:{id:"persisted-built-in-base-entity-database-property-id"},primaryKey:{id:"persisted-built-in-base-entity-primary-key-property-id"}}},[k.RELATIONAL_DATABASE]:{id:k.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"}}},[k.CRON_JOB]:{id:k.CRON_JOB,properties:{expression:{id:"cron-job-built-in-base-entity-expression-property-id"}}}},[r.Operation]:{[pe.Join]:{id:pe.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"}}},[pe.Split]:{id:pe.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"}}},[Dt.HttpRequest]:{id:Dt.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"}}},[Ze.Validate]:{id:Ze.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"}}}},[r.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"}}}}},[r.Condition]:{[nt.MoreThanOrEqual]:{id:nt.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"}}}},[lr.NotEmpty]:{id:lr.NotEmpty,inputs:{leftHand:{id:"condition-not-empty-input-id"}}}},[r.GlobalEvent]:{[jr.PROJECT_PUBLICATION_COMPLETED]:{id:jr.PROJECT_PUBLICATION_COMPLETED}}},tr=N[r.PrimitiveEntity],X={type:r.PrimitiveEntity,id:tr.string.id,description:"A string of characters.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:C.String,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[],methods:[]},kr={type:r.PrimitiveEntity,id:tr.boolean.id,description:"A 'true' or 'false' value.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:C.Boolean,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[],methods:[]},ue={type:r.PrimitiveEntity,id:tr.number.id,description:"A number value.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:C.Number,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[],methods:[]},Jp={type:r.PrimitiveEntity,id:tr.null.id,description:"An explicitly empty value.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:C.Null,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[],methods:[]},vt={type:r.PrimitiveEntity,id:tr.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:C.Untyped,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[],methods:[]},Wp={id:"c2f52f01-8f2e-490e-8083-72289c8189c1",type:r.GenericReference,entityId:tr.enum.properties.options.id,version:"1",entityType:r.Property},Yp={id:"4e803941-2e6a-4227-b803-b8877c0d7fee",type:r.GenericReference,entityId:"00ccfcae-2104-45ef-bf6c-50ddccd74286",version:"1",entityType:r.Property},Hp={like:!1,inferred:!1,id:tr.enum.properties.options.dataType.id,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!0,entity:X,asType:!1,parent:Yp},zp={id:"a2983c4c-0286-4ef1-8b5c-5a52904d3200",type:r.GenericReference,entityId:"9542b8b4-2642-4eee-9db9-def7963a17a0",version:"1",entityType:r.PrimitiveEntity},Kp={constant:!1,hidden:!1,required:!0,id:tr.enum.properties.options.id,name:"Options",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:r.Property,private:!1,abstract:!1,implements:null,static:!1,index:0,defaultValue:{id:tr.enum.properties.options.dataType.defaultValue.id,type:r.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:C.KeyValue,autogeneration:null,value:[],valueAsType:null,parent:Wp},dataType:Hp,description:"Options for the enum. Each option is a text value.",parent:zp},Zr={type:r.PrimitiveEntity,id:tr.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:C.Enum,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[Kp],methods:[]},Pr={type:r.PrimitiveEntity,id:tr.date.id,description:"A date and time value.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:C.Date,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[],methods:[]},qr={type:r.PrimitiveEntity,id:tr.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:C.UUID,static:!1,abstract:!1,abstractMethods:[],extends:[X],properties:[],methods:[]},Si={type:r.PrimitiveEntity,id:tr[C.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:C.KeyValue,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[],methods:[]},Xp=[X,kr,ue,Jp,vt,Zr,Pr,qr,Si],Sr=N[r.Operation][qe.Addition],Qp={type:r.GenericReference,id:"3bd4aeb2-e3b7-4120-b289-011ebb03dba5",entityId:Sr.inputs.firstSummand.id,version:"1",entityType:r.ValueDescriptor},eh={like:!1,inferred:!1,id:"number-addition-first-number-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ue,isList:!1,asType:!1,parent:Qp},th={type:r.GenericReference,id:"9f486db2-a983-4293-9eef-81d4fc8d2d3e",entityId:Sr.inputs.secondSummand.id,version:"1",entityType:r.ValueDescriptor},rh={like:!1,inferred:!1,id:"1d4abe83-3e87-4f74-99be-c1fd8c2f8d2d",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ue,asType:!1,isList:!1,parent:th},nh={type:r.GenericReference,id:"da5e9fe9-f18a-49e3-98e5-c1bf7b9b3153",entityId:Sr.outputs.result.id,version:"1",entityType:r.ValueDescriptor},ih={like:!1,inferred:!1,id:Sr.outputs.result.dataType.id,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ue,asType:!1,isList:!1,parent:nh},ah={type:r.GenericReference,id:"a6c14305-d4f7-43ae-9d5e-b7dbacdc830a",entityId:qe.Addition,version:"1",entityType:r.ActionDescriptor},Kl={id:Sr.inputs.firstSummand.id,type:r.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:eh,required:!0,parentRelationType:V.FixedArguments,index:0,parent:ah},sh={type:r.GenericReference,id:"c5015128-4a65-462c-9da0-1c86e83ef897",entityId:qe.Addition,version:"1",entityType:r.ActionDescriptor},Xl={id:Sr.inputs.secondSummand.id,type:r.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:rh,required:!0,parentRelationType:V.FixedArguments,index:1,parent:sh},Ql={type:r.GenericReference,id:"caac2bc7-c23c-4f01-9581-a515c2e4637f",entityId:qe.Addition,version:"1",entityType:r.ActionDescriptor},ed={parentRelationType:V.FixedReturns,id:Sr.outputs.result.id,type:r.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:ih,required:!0,index:0,parent:Ql},oh={type:r.GenericReference,id:"number-addition-operation-error-parent-ref",entityId:qe.Addition,version:"1",entityType:r.ActionDescriptor},lh={parentRelationType:V.FixedReturns,id:Sr.outputs.error.id,type:r.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:oh},dh={type:r.GenericReference,id:"number-addition-operation-dynamic-summand-argument-type-parent-ref",entityId:Sr.inputs.dynamicSummand.id,version:"1",entityType:r.ValueDescriptor},uh={like:!1,inferred:!1,id:"number-addition-operation-dynamic-summand-argument-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ue,asType:!1,isList:!1,parent:dh},ch={parentRelationType:V.DynamicArgument,id:Sr.inputs.dynamicSummand.id,type:r.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:uh,required:!0,index:2,parent:Ql},Ms={id:qe.Addition,type:r.ActionDescriptor,description:"Sum numbers",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:qe.Addition,inputs:[Kl,Xl,ch],error:lh,outputs:[ed],parent:null},Or=N[r.Operation][qe.Subtraction],ph={type:r.GenericReference,id:"3bd4aeb2-e3b7-4120-b289-011ebb03dba5",entityId:Or.inputs.minuend.id,version:"1",entityType:r.ValueDescriptor},hh={like:!1,inferred:!1,id:"number-subtraction-first-number-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ue,isList:!1,asType:!1,parent:ph},yh={type:r.GenericReference,id:"9f486db2-a983-4293-9eef-81d4fc8d2d3e",entityId:Or.inputs.subtrahend.id,version:"1",entityType:r.ValueDescriptor},fh={like:!1,inferred:!1,id:"1d4abe83-3e87-4f74-99be-c1fd8c2f8d2d",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ue,asType:!1,isList:!1,parent:yh},mh={type:r.GenericReference,id:"da5e9fe9-f18a-49e3-98e5-c1bf7b9b3153",entityId:Or.outputs.result.id,version:"1",entityType:r.ValueDescriptor},Th={like:!1,inferred:!1,id:Or.outputs.result.dataType.id,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ue,asType:!1,isList:!1,parent:mh},td={type:r.GenericReference,id:"a6c14305-d4f7-43ae-9d5e-b7dbacdc830a",entityId:qe.Subtraction,version:"1",entityType:r.ActionDescriptor},vh={id:Or.inputs.minuend.id,type:r.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:hh,required:!0,parentRelationType:V.FixedArguments,index:0,parent:td},Eh={type:r.GenericReference,id:"c5015128-4a65-462c-9da0-1c86e83ef897",entityId:qe.Subtraction,version:"1",entityType:r.ActionDescriptor},Rh={id:Or.inputs.subtrahend.id,type:r.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:fh,required:!0,parentRelationType:V.FixedArguments,index:1,parent:Eh},gh={type:r.GenericReference,id:"caac2bc7-c23c-4f01-9581-a515c2e4637f",entityId:qe.Subtraction,version:"1",entityType:r.ActionDescriptor},bh={parentRelationType:V.FixedReturns,id:Or.outputs.result.id,type:r.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:Th,required:!0,index:0,parent:gh},Ih={type:r.GenericReference,id:"number-subtraction-operation-error-parent-ref",entityId:qe.Subtraction,version:"1",entityType:r.ActionDescriptor},Ah={parentRelationType:V.FixedReturns,id:Or.outputs.error.id,type:r.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:Ih},Dh={type:r.GenericReference,id:"number-subtraction-operation-dynamic-subtrahend-argument-type-parent-ref",entityId:Or.inputs.dynamicSubtrahend.id,version:"1",entityType:r.ValueDescriptor},Ph={like:!1,inferred:!1,id:"number-subtraction-operation-dynamic-subtrahend-argument-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ue,asType:!1,isList:!1,parent:Dh},Sh={id:Or.inputs.dynamicSubtrahend.id,type:r.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:Ph,required:!0,parentRelationType:V.DynamicArgument,index:2,parent:td},rd={id:qe.Subtraction,type:r.ActionDescriptor,description:"Substract numbers",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:qe.Subtraction,inputs:[vh,Rh,Sh],error:Ah,outputs:[bh],parent:null},Oh={[qe.Addition]:Ms,[qe.Subtraction]:rd},dr=N[r.Operation][pe.Join],Vh={type:r.GenericReference,id:"join-strings-first-string-argument-declaration",entityId:dr.inputs.first.id,version:"1",entityType:r.ValueDescriptor},Ch={like:!1,inferred:!1,id:"join-strings-first-string-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:X,asType:!1,isList:!1,parent:Vh},wh={type:r.GenericReference,id:"join-strings-second-string-argument-declaration",entityId:dr.inputs.second.id,version:"1",entityType:r.ValueDescriptor},Bh={like:!1,inferred:!1,id:"join-strings-second-string-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:X,asType:!1,isList:!1,parent:wh},Mh={type:r.GenericReference,id:"join-strings-result-string-return-delaration",entityId:dr.outputs.result.id,version:"1",entityType:r.ValueDescriptor},_h={like:!1,inferred:!1,id:"join-strings-result-string-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:X,asType:!1,isList:!1,parent:Mh},Nh={type:r.GenericReference,id:"join-strings-operation-first-string-argument-parent-ref",entityId:pe.Join,version:"1",entityType:r.ActionDescriptor},_s={id:dr.inputs.first.id,type:r.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:Ch,parentRelationType:V.FixedArguments,required:!0,index:1,parent:Nh},Lh={type:r.GenericReference,id:"join-strings-first-string-argument-declaration",entityId:dr.inputs.first.id,version:"1",entityType:r.ValueDescriptor},Gh={type:r.GenericReference,id:"join-strings-separator-string-data-type-default-value-parent-ref",entityId:dr.inputs.separator.id,version:"1",entityType:r.ValueDescriptor},$h={type:r.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:C.String,value:"",valueAsType:null,autogeneration:null,parent:Gh},Fh={like:!1,inferred:!1,id:"join-strings-separator-string-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:X,asType:!1,isList:!1,parent:Lh},Uh={type:r.GenericReference,id:"join-strings-operation-separator-string-argument-parent-ref",entityId:pe.Join,version:"1",entityType:r.ActionDescriptor},xh={id:dr.inputs.separator.id,type:r.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:$h,dataType:Fh,parentRelationType:V.FixedArguments,required:!1,index:0,parent:Uh},jh={type:r.GenericReference,id:"join-strings-operation-second-string-argument-parent-ref",entityId:pe.Join,version:"1",entityType:r.ActionDescriptor},Ns={id:dr.inputs.second.id,type:r.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:Bh,parentRelationType:V.FixedArguments,required:!0,index:2,parent:jh},kh={type:r.GenericReference,id:"join-strings-operation-result-string-return-parent-ref",entityId:pe.Join,version:"1",entityType:r.ActionDescriptor},Ea={parentRelationType:V.FixedReturns,id:dr.outputs.result.id,type:r.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:_h,required:!0,index:0,parent:kh},Zh={type:r.GenericReference,id:"join-strings-operation-error-parent-ref",entityId:pe.Join,version:"1",entityType:r.ActionDescriptor},qh={parentRelationType:V.FixedReturns,id:dr.outputs.error.id,type:r.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:Zh},Jh={type:r.GenericReference,id:"join-strings-dynamic-string-argument-declaration",entityId:dr.inputs.dynamicString.id,version:"1",entityType:r.ValueDescriptor},Wh={like:!1,inferred:!1,id:"join-strings-dynamic-string-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:X,asType:!1,isList:!1,parent:Jh},Yh={type:r.GenericReference,id:"join-strings-operation-dynamic-string-argument-parent-ref",entityId:pe.Join,version:"1",entityType:r.ActionDescriptor},Hh={id:dr.inputs.dynamicString.id,type:r.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:Wh,parentRelationType:V.DynamicArgument,required:!0,index:3,parent:Yh},Ra={id:pe.Join,type:r.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:pe.Join,description:"Join text values together, to form a single resulting text value.",inputs:[xh,_s,Ns,Hh],outputs:[Ea],error:qh,parent:null},Jr=N[r.Operation][pe.Split],zh={type:r.GenericReference,id:"split-string-string-argument-declaration",entityId:Jr.inputs.stringValue.id,version:"1",entityType:r.ValueDescriptor},Kh={like:!1,inferred:!1,id:"split-string-string-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:X,asType:!1,isList:!1,parent:zh},Xh={type:r.GenericReference,id:"split-string-index-argument-declaration",entityId:Jr.inputs.indexLocation.id,version:"1",entityType:r.ValueDescriptor},Qh={like:!1,inferred:!1,id:"split-string-index-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ue,asType:!1,isList:!1,parent:Xh},ey={type:r.GenericReference,id:"split-string-first-part-result-string-return-delaration",entityId:Jr.outputs.firstPartResult.id,version:"1",entityType:r.ValueDescriptor},ty={like:!1,inferred:!1,id:"split-string-first-part-result-string-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:X,asType:!1,isList:!1,parent:ey},ry={type:r.GenericReference,id:"split-string-second-part-result-string-return-delaration",entityId:Jr.outputs.secondPartResult.id,version:"1",entityType:r.ValueDescriptor},ny={like:!1,inferred:!1,id:"split-string-second-part-result-string-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:X,asType:!1,isList:!1,parent:ry},iy={type:r.GenericReference,id:"split-string-operation-string-argument-parent-ref",entityId:pe.Join,version:"1",entityType:r.ActionDescriptor},ay={id:Jr.inputs.stringValue.id,type:r.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:Kh,parentRelationType:V.FixedArguments,required:!0,index:0,parent:iy},sy={type:r.GenericReference,id:"split-string-operation-index-argument-parent-ref",entityId:pe.Join,version:"1",entityType:r.ActionDescriptor},oy={id:Jr.inputs.indexLocation.id,type:r.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:Qh,parentRelationType:V.FixedArguments,required:!0,index:1,parent:sy},ly={type:r.GenericReference,id:"split-string-operation-second-part-result-string-return-parent-ref",entityId:pe.Join,version:"1",entityType:r.ActionDescriptor},EP={parentRelationType:V.FixedReturns,id:Jr.outputs.secondPartResult.id,type:r.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:ny,required:!0,index:1,parent:ly},dy={type:r.GenericReference,id:"split-string-operation-first-part-result-string-return-parent-ref",entityId:pe.Join,version:"1",entityType:r.ActionDescriptor},uy={parentRelationType:V.FixedReturns,id:Jr.outputs.firstPartResult.id,type:r.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:ty,required:!0,index:0,parent:dy},cy={type:r.GenericReference,id:"split-string-operation-error-parent-ref",entityId:pe.Join,version:"1",entityType:r.ActionDescriptor},py={parentRelationType:V.FixedReturns,id:Jr.outputs.error.id,type:r.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:cy},nd={id:pe.Split,type:r.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:pe.Split,description:"Split a text into two, at the given index location.",inputs:[ay,oy],outputs:[uy],error:py,parent:null},hy={[pe.Join]:Ra,[pe.Split]:nd};var yy=(n=>(n.FirstInputList="join-list-first-list-argument-declaration",n.SecondInputList="join-list-second-list-argument-declaration",n))(yy||{}),fy=(n=>(n.ResultList="join-list-result-list-return-delaration",n.Error="join-list-error-return-delaration",n))(fy||{});const my={type:r.GenericReference,id:"join-list-operation-first-list-argument-ref",entityId:"join-list-first-list-argument-declaration",version:"1",entityType:r.ValueDescriptor},Ty={like:!1,inferred:!1,id:"join-list-first-list-data-type-id",type:r.DataType,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:my},vy={type:r.GenericReference,id:"join-list-operation-second-list-argument-ref",entityId:"join-list-second-list-argument-declaration",version:"1",entityType:r.ValueDescriptor},Ey={like:!1,inferred:!1,id:"join-list-second-list-data-type-id",type:r.DataType,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:vy},Ry={type:r.GenericReference,id:"join-list-operation-result-list-return-ref",entityId:"join-list-result-list-return-delaration",version:"1",entityType:r.ValueDescriptor},gy={like:!1,inferred:!1,id:"join-list-result-list-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:X,asType:!1,isList:!0,parent:Ry},by={type:r.GenericReference,id:"join-list-operation-first-list-argument-parent-ref",entityId:oe.Join,version:"1",entityType:r.ActionDescriptor},Iy={id:"join-list-first-list-argument-declaration",type:r.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:Ty,parentRelationType:V.FixedArguments,required:!0,index:0,parent:by},Ay={type:r.GenericReference,id:"join-list-operation-second-list-argument-parent-ref",entityId:oe.Join,version:"1",entityType:r.ActionDescriptor},Dy={id:"join-list-second-list-argument-declaration",type:r.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:Ey,parentRelationType:V.FixedArguments,required:!0,index:1,parent:Ay},Py={type:r.GenericReference,id:"join-list-operation-result-list-return-parent-ref",entityId:oe.Join,version:"1",entityType:r.ActionDescriptor},Sy={parentRelationType:V.FixedReturns,id:"join-list-result-list-return-delaration",type:r.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:Py},Oy={type:r.GenericReference,id:"join-list-operation-error-parent-ref",entityId:oe.Join,version:"1",entityType:r.ActionDescriptor},Vy={parentRelationType:V.FixedReturns,id:"join-list-error-return-delaration",type:r.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:Oy},id={id:oe.Join,type:r.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:oe.Join,description:"Join two lists together, to form a single resulting list value.",inputs:[Iy,Dy],error:Vy,outputs:[Sy],parent:null};var Cy=(n=>(n.InputList="list-to-split-argument-declaration",n.SplitIndex="split-list-index-argument-declaration",n))(Cy||{}),wy=(n=>(n.FirstOutputList="split-list-first-output-list-return-delaration",n.SecondOutputList="split-list-second-output-list-return-delaration",n.Error="split-list-error-return-delaration",n))(wy||{});const By={type:r.GenericReference,id:"split-list-operation-input-list-argument-ref",entityId:"list-to-split-argument-declaration",version:"1",entityType:r.ValueDescriptor},My={like:!1,inferred:!1,id:"split-list-operation-input-list-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:X,asType:!1,isList:!0,parent:By},_y={type:r.GenericReference,id:"split-list-operation-split-index-argument-ref",entityId:"split-list-index-argument-declaration",version:"1",entityType:r.ValueDescriptor},Ny={like:!1,inferred:!1,id:"split-list-operation-split-index-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ue,asType:!1,isList:!1,parent:_y},ad={type:r.GenericReference,id:"split-list-operation-first-output-list-return-ref",entityId:"split-list-first-output-list-return-delaration",version:"1",entityType:r.ValueDescriptor},Ly={like:!1,inferred:!1,id:"split-list-operation-first-output-list-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:X,asType:!1,isList:!0,parent:ad},Gy={type:r.GenericReference,id:"split-list-operation-input-list-argument-parent-ref",entityId:oe.Split,version:"1",entityType:r.ActionDescriptor},$y={id:"list-to-split-argument-declaration",type:r.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:My,parentRelationType:V.FixedArguments,required:!0,index:0,parent:Gy},Fy={type:r.GenericReference,id:"split-list-operation-split-index-argument-parent-ref",entityId:oe.Split,version:"1",entityType:r.ActionDescriptor},Uy={id:"split-list-index-argument-declaration",type:r.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:Ny,parentRelationType:V.FixedArguments,required:!0,index:1,parent:Fy},xy={type:r.GenericReference,id:"split-list-operation-first-output-list-return-parent-ref",entityId:oe.Split,version:"1",entityType:r.ActionDescriptor},jy={parentRelationType:V.FixedReturns,id:"split-list-first-output-list-return-delaration",type:r.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:Ly,required:!0,index:0,parent:xy},ky={like:!1,inferred:!1,id:"split-list-operation-second-output-list-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:X,asType:!1,isList:!0,parent:ad},Zy={type:r.GenericReference,id:"split-list-operation-second-output-list-return-parent-ref",entityId:oe.Split,version:"1",entityType:r.ActionDescriptor},qy={parentRelationType:V.FixedReturns,id:"split-list-second-output-list-return-delaration",type:r.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:ky,required:!0,index:0,parent:Zy},Jy={type:r.GenericReference,id:"split-list-operation-error-parent-ref",entityId:oe.Split,version:"1",entityType:r.ActionDescriptor},Wy={parentRelationType:V.FixedReturns,id:"split-list-error-return-delaration",type:r.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},sd={id:oe.Split,type:r.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:oe.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:[$y,Uy],outputs:[jy,qy],error:Wy,parent:null};var Yy=(n=>(n.InputList="get-last-in-list-input-list-argument-declaration",n))(Yy||{}),Hy=(n=>(n.OutputElement="get-last-in-list-output-element-return-delaration",n.Error="get-last-in-list-error-return-delaration",n))(Hy||{});const zy={type:r.GenericReference,id:"get-last-in-list-operation-input-list-argument-ref",entityId:"get-last-in-list-input-list-argument-declaration",version:"1",entityType:r.ValueDescriptor},Ky={like:!1,inferred:!1,id:"get-last-in-list-input-list-data-type-id",type:r.DataType,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:zy},Xy={type:r.GenericReference,id:"get-last-in-list-operation-output-element-return-ref",entityId:"get-last-in-list-output-element-return-delaration",version:"1",entityType:r.ValueDescriptor},Qy={like:!1,inferred:!1,id:"get-last-in-list-output-element-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:X,asType:!1,isList:!0,parent:Xy},ef={type:r.GenericReference,id:"get-last-in-list-operation-input-list-argument-parent-ref",entityId:oe.GetLast,version:"1",entityType:r.ActionDescriptor},tf={id:"get-last-in-list-input-list-argument-declaration",type:r.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:Ky,parentRelationType:V.FixedArguments,required:!0,index:0,parent:ef},rf={type:r.GenericReference,id:"get-last-in-list-operation-output-element-return-parent-ref",entityId:oe.GetLast,version:"1",entityType:r.ActionDescriptor},nf={parentRelationType:V.FixedReturns,id:"get-last-in-list-output-element-return-delaration",type:r.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:Qy,required:!0,index:0,parent:rf},af={type:r.GenericReference,id:"get-last-in-list-operation-error-parent-ref",entityId:oe.GetLast,version:"1",entityType:r.ActionDescriptor},sf={parentRelationType:V.FixedReturns,id:"get-last-in-list-error-return-delaration",type:r.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:af},od={id:oe.GetLast,type:r.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:oe.GetLast,description:"Outputs the last element of a given list.",inputs:[tf],outputs:[nf],error:sf,parent:null};var of=(n=>(n.List="append-to-list-lsit-argument-declaration",n.ElementToAppend="append-to-list-element-to-append-argument-declaration",n))(of||{}),lf=(n=>(n.ResultList="append-to-list-result-list-return-delaration",n.Error="append-to-list-error-return-delaration",n))(lf||{});const df={type:r.GenericReference,id:"append-to-list-operation-lsit-argument-ref",entityId:"append-to-list-lsit-argument-declaration",version:"1",entityType:r.ValueDescriptor},uf={like:!1,inferred:!1,id:"append-to-list-lsit-data-type-id",type:r.DataType,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:df},cf={type:r.GenericReference,id:"append-to-list-operation-second-list-argument-ref",entityId:"append-to-list-element-to-append-argument-declaration",version:"1",entityType:r.ValueDescriptor},pf={like:!1,inferred:!1,id:"append-to-list-second-list-data-type-id",type:r.DataType,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:cf},hf={type:r.GenericReference,id:"append-to-list-operation-result-list-return-ref",entityId:"append-to-list-result-list-return-delaration",version:"1",entityType:r.ValueDescriptor},yf={like:!1,inferred:!1,id:"append-to-list-result-list-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:X,asType:!1,isList:!0,parent:hf},ff={type:r.GenericReference,id:"append-to-list-operation-lsit-argument-parent-ref",entityId:oe.Append,version:"1",entityType:r.ActionDescriptor},ld={id:"append-to-list-lsit-argument-declaration",type:r.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:uf,parentRelationType:V.FixedArguments,required:!0,index:0,parent:ff},mf={type:r.GenericReference,id:"append-to-list-operation-second-list-argument-parent-ref",entityId:oe.Append,version:"1",entityType:r.ActionDescriptor},dd={id:"append-to-list-element-to-append-argument-declaration",type:r.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:pf,parentRelationType:V.FixedArguments,required:!0,index:1,parent:mf},Tf={type:r.GenericReference,id:"append-to-list-operation-result-list-return-parent-ref",entityId:oe.Append,version:"1",entityType:r.ActionDescriptor},vf={parentRelationType:V.FixedReturns,id:"append-to-list-result-list-return-delaration",type:r.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:yf,required:!0,index:0,parent:Tf},Ef={type:r.GenericReference,id:"append-to-list-operation-error-parent-ref",entityId:oe.Append,version:"1",entityType:r.ActionDescriptor},Rf={parentRelationType:V.FixedReturns,id:"append-to-list-error-return-delaration",type:r.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:Ef},Ls={id:oe.Append,type:r.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:oe.Append,description:"Adds a given element to the end of a list value.",inputs:[ld,dd],error:Rf,outputs:[vf],parent:null},gf={[oe.Join]:id,[oe.Split]:sd,[oe.GetLast]:od,[oe.Append]:Ls},Oi=N[r.Operation][ke.Parallel],bf={id:"parallel-execution-list-of-functions-blueprint-dynamic-output-id",type:r.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:V.DynamicArgument},If={id:"parallel-execution-list-of-functions-blueprint-dynamic-input-id",type:r.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:V.DynamicArgument},Af={id:"parallel-execution-list-of-functions-blueprint-id",type:r.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:[If],outputs:[bf],error:null,parent:null},Df={type:r.GenericReference,id:"3bd4aeb2-e3b7-4120-b289-011ebb03dba5",entityId:Oi.inputs.listOfActions.id,version:"1",entityType:r.ValueDescriptor},Pf={like:!1,inferred:!1,id:"parallel-execution-list-of-functions-argument-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Af,asType:!1,isList:!0,parent:Df},Sf={type:r.GenericReference,id:"da5e9fe9-f18a-49e3-98e5-c1bf7b9b3153",entityId:Oi.outputs.results.id,version:"1",entityType:r.ValueDescriptor},Of={like:!1,inferred:!1,id:Oi.outputs.results.dataType.id,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ue,asType:!1,isList:!0,parent:Sf},Vf={type:r.GenericReference,id:"a6c14305-d4f7-43ae-9d5e-b7dbacdc830a",entityId:ke.Parallel,version:"1",entityType:r.ActionDescriptor},ud={id:Oi.inputs.listOfActions.id,type:r.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:Pf,defaultValue:null,required:!0,index:0,parent:Vf,parentRelationType:V.FixedArguments},Cf={type:r.GenericReference,id:"caac2bc7-c23c-4f01-9581-a515c2e4637f",entityId:ke.Parallel,version:"1",entityType:r.ActionDescriptor},cd={id:Oi.outputs.results.id,type:r.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:Of,defaultValue:null,required:!0,index:0,parent:Cf,parentRelationType:V.FixedReturns},wf={type:r.GenericReference,id:"parallel-execution-operation-error-parent-ref",entityId:ke.Parallel,version:"1",entityType:r.ActionDescriptor},Bf={id:Oi.outputs.error.id,type:r.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:wf,parentRelationType:V.ReturnedError},Tr={id:ke.Parallel,type:r.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:[ud],outputs:[cd],error:Bf,parent:null};var Mf=(n=>(n.MillisecondsNumber="wait-milliseconds-number-argument-declaration",n))(Mf||{}),_f=(n=>(n.Error="wait-operation-error-return-delaration",n))(_f||{});const Nf={type:r.GenericReference,id:"3bd4aeb2-e3b7-4120-b289-011ebb03dba5",version:"1",entityType:r.ValueDescriptor,entityId:"wait-milliseconds-number-argument-declaration"},Lf={like:!1,inferred:!1,id:"wait-milliseconds-number-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ue,isList:!1,asType:!1,parent:Nf},Gf={type:r.GenericReference,id:"a6c14305-d4f7-43ae-9d5e-b7dbacdc830a",version:"1",entityType:r.ActionDescriptor,entityId:ke.Wait},Bn={id:"wait-milliseconds-number-argument-declaration",type:r.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:Lf,required:!0,index:0,parent:Gf,parentRelationType:V.FixedArguments},$f={type:r.GenericReference,id:"wait-operation-error-parent-ref",entityId:ke.Wait,version:"1",entityType:r.ActionDescriptor},Ff={id:"wait-operation-error-return-delaration",type:r.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:$f,parentRelationType:V.ReturnedError},Nt={id:ke.Wait,type:r.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:[Bn],outputs:[],error:Ff,parent:null};var Uf=(n=>(n.ListOfFunctions="sequential-execution-list-of-functions-argument-declaration",n))(Uf||{}),xf=(n=>(n.ListOfExecutionResults="sequential-execution-result-return-delaration",n.Error="sequential-execution-error-return-delaration",n))(xf||{});const jf={id:"sequential-execution-list-of-functions-blueprint-dynamic-output-id",type:r.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:V.DynamicArgument},kf={id:"sequential-execution-list-of-functions-blueprint-dynamic-input-id",type:r.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:V.DynamicArgument},Zf={id:"sequential-execution-list-of-functions-blueprint-id",type:r.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:[kf],outputs:[jf],error:null,parent:null},qf={type:r.GenericReference,id:"parallel-execution-list-of-functions-argument-declaration-id",entityId:"sequential-execution-list-of-functions-argument-declaration",version:"1",entityType:r.ValueDescriptor},Jf={like:!1,inferred:!1,id:"sequential-execution-list-of-functions-argument-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Zf,asType:!1,isList:!0,parent:qf},Wf={type:r.GenericReference,id:"sequential-execution-list-of-execution-results-return-declaration-id",entityId:"sequential-execution-result-return-delaration",version:"1",entityType:r.ValueDescriptor},Yf={like:!1,inferred:!1,id:"sequential-execution-list-of-execution-results-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ue,asType:!1,isList:!0,parent:Wf},Hf={type:r.GenericReference,id:"parallel-execution-operation-list-of-functions-argument-parent-ref",entityId:ke.Sequential,version:"1",entityType:r.ActionDescriptor},pd={id:"sequential-execution-list-of-functions-argument-declaration",type:r.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:Jf,required:!0,index:0,parent:Hf,parentRelationType:V.FixedArguments},zf={type:r.GenericReference,id:"parallel-execution-operation-list-of-execution-results-return-parent-ref",entityId:ke.Sequential,version:"1",entityType:r.ActionDescriptor},hd={id:"sequential-execution-result-return-delaration",type:r.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:Yf,required:!0,index:0,parent:zf,parentRelationType:V.FixedReturns},Kf={type:r.GenericReference,id:"sequential-execution-operation-error-parent-ref",entityId:ke.Sequential,version:"1",entityType:r.ActionDescriptor},Xf={id:"sequential-execution-error-return-delaration",type:r.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:Kf,parentRelationType:V.ReturnedError},Wr={id:ke.Sequential,type:r.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:[pd],outputs:[hd],error:Xf,parent:null},Qf={[ke.Parallel]:Tr,[ke.Wait]:Nt,[ke.Sequential]:Wr};var em=(n=>(n.EntityToInstanciate="entity-to-instanciate-argument-declaration",n.NewEntityData="new-entity-data-argument-declaration",n))(em||{}),tm=(n=>(n.Error="create-new-instance-error-return-delaration",n))(tm||{});const rm={type:r.GenericReference,id:"new-entity-data-argument-declaration-parent-ref",entityId:Ze.CreateNewInstance,version:"1",entityType:r.ActionDescriptor},nm={type:r.GenericReference,id:"new-entity-data-argument-data-type-parent-ref",entityId:"new-entity-data-argument-declaration",version:"1",entityType:r.ValueDescriptor},im={like:!1,inferred:!1,id:"new-entity-data-argument-data-type-id",type:r.DataType,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:nm},am={id:"new-entity-data-argument-declaration",type:r.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:im,required:!0,defaultValue:null,parentRelationType:V.FixedArguments,index:1,parent:rm},sm={type:r.GenericReference,id:"entity-to-instanciate-argument-declaration-ref",version:"1",entityType:r.ValueDescriptor,entityId:"entity-to-instanciate-argument-declaration"},om={like:!1,inferred:!1,id:"entity-to-instanciate-data-type-id",type:r.DataType,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:sm},lm={type:r.GenericReference,id:"create-new-instance-operation-ref",version:"1",entityType:r.ActionDescriptor,entityId:Ze.CreateNewInstance},dm={id:"entity-to-instanciate-argument-declaration",type:r.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:om,required:!0,parentRelationType:V.FixedArguments,index:0,parent:lm},um={type:r.GenericReference,id:"create-new-instance-output-entity-declaration-parent-ref",entityId:Ze.CreateNewInstance,version:"1",entityType:r.ActionDescriptor},cm={parentRelationType:V.FixedReturns,id:"create-new-instance-output-entity-declaration",type:r.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:um,required:!0,index:0},pm={type:r.GenericReference,id:"create-new-instance-error-parent-ref",entityId:Ze.CreateNewInstance,version:"1",entityType:r.ActionDescriptor},hm={parentRelationType:V.FixedReturns,id:"create-new-instance-error-return-delaration",type:r.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:pm},Mn={id:Ze.CreateNewInstance,type:r.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:Ze.CreateNewInstance,inputs:[dm,am],outputs:[cm],error:hm,parent:null},Vi=N[r.Operation][Ze.Validate],ym={type:r.GenericReference,id:"validate-data-operation-data-to-validate-argument-declaration-ref",version:"1",entityType:r.ValueDescriptor,entityId:Vi.inputs.dataToValidate.id},fm={like:!1,inferred:!1,id:"validate-data-operation-data-to-validate-data-type-id",type:r.DataType,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:ym},mm={type:r.GenericReference,id:"validate-data-operation-data-to-validate-argument-parent-ref",version:"1",entityType:r.ActionDescriptor,entityId:Ze.Validate},Tm={id:Vi.inputs.dataToValidate.id,type:r.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:fm,required:!0,parentRelationType:V.FixedArguments,index:0,parent:mm},vm={type:r.GenericReference,id:"validate-data-operation-entity-to-match-type-argument-declaration-ref",version:"1",entityType:r.ValueDescriptor,entityId:Vi.inputs.entityToMatch.id},Em={like:!1,inferred:!1,id:"validate-data-operation-entity-to-match-type-data-type-id",type:r.DataType,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:vm},Rm={type:r.GenericReference,id:"validate-data-operation-entity-to-match-type-argument-parent-ref",version:"1",entityType:r.ActionDescriptor,entityId:Ze.Validate},gm={id:Vi.inputs.entityToMatch.id,type:r.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:Em,defaultValue:null,required:!0,index:0,parentRelationType:V.FixedArguments,parent:Rm},bm={type:r.GenericReference,id:"validate-data-operation-output-entity-declaration-parent-ref",entityId:Ze.Validate,version:"1",entityType:r.ActionDescriptor},Im={id:Vi.outputs.outputEntity.id,type:r.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:bm,required:!0,index:0,parentRelationType:V.FixedReturns},Am={type:r.GenericReference,id:"wait-operation-error-parent-ref",entityId:Ze.Validate,version:"1",entityType:r.ActionDescriptor},Dm={id:Vi.outputs.error.id,type:r.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:Am,parentRelationType:V.ReturnedError},_n={id:Ze.Validate,type:r.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:Ze.Validate,inputs:[gm,Tm],outputs:[Im],error:Dm,parent:null},Pm={[Ze.CreateNewInstance]:Mn,[Ze.Validate]:_n},pt=N[r.Operation]["base-http-request"],Sm={type:r.GenericReference,id:"d87cf943-57e1-4d19-9f05-190fa8c8ebc4",version:"1",entityType:r.ValueDescriptor,entityId:pt.inputs.url.id},Om={id:"http-request-url-default-value-id",type:r.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:"https://some-url.com",name:C.String,valueAsType:null,parent:Sm,autogeneration:null},Vm={type:r.GenericReference,id:"aed50d73-eab5-42ce-b00e-7f5c45a9026f",entityId:pt.inputs.url.id,version:"1",entityType:r.ValueDescriptor},Cm={like:!1,inferred:!1,id:"0deb4ef7-d739-4ddc-a4d6-50bd6fababe3",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:X,asType:!1,isList:!1,parent:Vm},wm={type:r.GenericReference,id:"c3145af6-3387-464a-8887-272e483c856d",entityId:pt.inputs.query.id,version:"1",entityType:r.ValueDescriptor},Bm={like:!1,inferred:!1,id:"2a5ba737-6335-4cc4-a2c0-16dca4052fac",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:X,asType:!1,isList:!1,parent:wm},Mm={type:r.GenericReference,id:"075556b7-e468-48f7-8485-7159eaf389b2",version:"1",entityType:r.ValueDescriptor,entityId:pt.inputs.method.id},_m={id:"http-request-method-default-value-id",type:r.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:"GET",name:C.Enum,valueAsType:null,parent:Mm,autogeneration:null},Nm={type:r.GenericReference,id:"aed647c8-a1b5-4cfc-9a3d-97887a567a80",entityId:pt.inputs.method.id,version:"1",entityType:r.ValueDescriptor},Lm={like:!1,inferred:!1,id:"6df7ec2b-5dbd-44af-896b-17b314e88560",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Zr,isList:!1,asType:!1,options:["GET","POST","PUT","DELETE","PATCH","OPTIONS","HEAD","TRACE","CONNECT","CUSTOM"],parent:Nm},Gm={type:r.GenericReference,id:"77203dfa-d2f6-4804-9556-e1cce46228f3",entityId:pt.inputs.headers.id,version:"1",entityType:r.ValueDescriptor},$m={like:!1,inferred:!1,id:"2c8a2a07-69c6-40ad-b5c9-f0dc4d5955ce",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:vt,asType:!1,isList:!1,parent:Gm},Fm={type:r.GenericReference,id:"03db68a0-7ab6-4c6a-85b6-f4b95ebb53ff",entityId:pt.inputs.body.id,version:"1",entityType:r.ValueDescriptor},Um={like:!1,inferred:!1,id:"0397876c-ed54-4ee9-85a4-04fd16dad973",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:vt,asType:!1,isList:!1,parent:Fm},xm={type:r.GenericReference,id:"182f767f-50e8-4394-ba5f-43e78c232733",version:"1",entityType:r.ValueDescriptor,entityId:pt.outputs.code.id},jm={like:!1,inferred:!1,id:"45e6d0bc-0c0e-4059-a7a1-6bee925d73d0",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ue,asType:!1,isList:!1,parent:xm},km={type:r.GenericReference,id:"2baaa53a-9aef-4bd1-b06d-967c17b7b627",version:"1",entityType:r.ValueDescriptor,entityId:pt.outputs.headers.id},Zm={type:r.GenericReference,id:"69f34d6c-c686-4165-b6ff-70dae8e1778b",version:"1",entityType:r.ValueDescriptor,entityId:pt.outputs.headers.id},qm={like:!1,inferred:!1,id:"dac63bfa-640d-4f4e-ba0f-86c2401bcfbe",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:vt,isList:!1,asType:!1,parent:Zm},Jm={type:r.GenericReference,id:"744334e0-5135-4214-85d0-809437cb620b",version:"1",entityType:r.ValueDescriptor,entityId:pt.outputs.body.id},Wm={type:r.GenericReference,id:"0e0e20df-1a46-432c-ba01-fd96508a6a61",version:"1",entityType:r.ValueDescriptor,entityId:pt.outputs.body.id},Ym={like:!1,inferred:!1,id:"05fc1a5d-151a-479a-9c4e-4063f3456177",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:vt,isList:!1,asType:!1,parent:Wm},Hm={type:r.GenericReference,id:"26911792-f707-4bf1-b6f7-03d04a84232c",version:"1",entityType:r.ActionDescriptor,entityId:Dt.HttpRequest},Gs={id:pt.inputs.method.id,type:r.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:_m,dataType:Lm,required:!1,index:0,parentRelationType:V.FixedArguments,parent:Hm},zm={type:r.GenericReference,id:"eee0c501-0ae6-4448-b914-aada76d63163",version:"1",entityType:r.ActionDescriptor,entityId:Dt.HttpRequest},$s={id:pt.inputs.url.id,type:r.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:Cm,defaultValue:Om,required:!1,index:1,parentRelationType:V.FixedArguments,parent:zm},Km={type:r.GenericReference,id:"670091a4-21b1-4223-ad4c-b6dada0aec49",version:"1",entityType:r.ActionDescriptor,entityId:Dt.HttpRequest},yd={id:pt.inputs.query.id,type:r.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:Bm,required:!1,index:2,parentRelationType:V.FixedArguments,parent:Km},Xm={type:r.GenericReference,id:"85aad3eb-22fe-45f9-b68c-1dc7061f41e0",version:"1",entityType:r.ActionDescriptor,entityId:Dt.HttpRequest},Fs={id:pt.inputs.headers.id,type:r.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:$m,required:!1,index:3,parent:Xm,parentRelationType:V.FixedArguments},Qm={type:r.GenericReference,id:"c3e2a4af-9b84-4574-8b30-5044ffc51776",version:"1",entityType:r.ActionDescriptor,entityId:Dt.HttpRequest},Us={id:pt.inputs.body.id,type:r.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:Um,defaultValue:null,required:!1,index:4,parentRelationType:V.FixedArguments,parent:Qm},e0={type:r.GenericReference,id:"92e04dc7-2145-4a31-908e-03810f7235e8",version:"1",entityType:r.ActionDescriptor,entityId:Dt.HttpRequest},xs={id:pt.outputs.code.id,type:r.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:jm,required:!0,index:0,parentRelationType:V.FixedReturns,parent:e0},t0={type:r.GenericReference,id:"86aca556-bbf1-4679-9909-31db61b288e2",version:"1",entityType:r.ActionDescriptor,entityId:Dt.HttpRequest},js={parentRelationType:V.FixedReturns,id:pt.outputs.headers.id,type:r.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:r.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:{},name:C.KeyValue,parent:km,valueAsType:null,autogeneration:null},dataType:qm,required:!0,index:1,parent:t0},r0={type:r.GenericReference,id:"ccf3d1be-04e4-4d03-99fd-5bc1e1919f90",version:"1",entityType:r.ActionDescriptor,entityId:Dt.HttpRequest},ks={id:pt.outputs.body.id,type:r.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:V.FixedReturns,dataType:Ym,defaultValue:{id:"http-response-body-default-value-id",type:r.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:{},name:C.KeyValue,parent:Jm,valueAsType:null,autogeneration:null},required:!0,index:2,parent:r0},n0={type:r.GenericReference,id:"21487ffc-82b9-473d-bc19-6e7d7c480ed7",version:"1",entityType:r.ActionDescriptor,entityId:Dt.HttpRequest},i0={type:r.GenericReference,id:"ad69861b-32f7-4461-b7f7-aa84a82578d9",version:"1",entityType:r.ValueDescriptor,entityId:pt.outputs.error.id},a0={like:!1,inferred:!1,id:"5da68b15-57bc-40c1-b79f-a9075e0f22c1",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:vt,isList:!1,asType:!1,parent:i0},fd={parentRelationType:V.ReturnedError,id:pt.outputs.error.id,type:r.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:a0,required:!0,index:0,parent:n0},ga={type:r.ActionDescriptor,id:Dt.HttpRequest,name:Dt.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:[Gs,$s,yd,Fs,Us],outputs:[xs,js,ks],error:fd,parent:null},s0={[Dt.HttpRequest]:ga},o0={...hy,...Oh,...gf,...Qf,...Pm,...s0},l0=Object.values(o0),RP=N[r.Loop]["manual-flow-loop"],d0={id:"manual-flow-loop-dynamic-return-declaration-parent-ref-id",type:r.GenericReference,entityId:q.ManualFlow,version:"1",entityType:r.ActionDescriptor},u0={id:RP.outputs.results.id,type:r.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:d0,parentRelationType:V.DynamicReturn},Zs={id:q.ManualFlow,type:r.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:[u0],error:null,parent:null},ba=N[r.Loop]["manual-flow-loop"],c0={id:"manual-flow-loop-current-iteration-number-declaration-data-type-parent-ref-id",type:r.GenericReference,entityId:"manual-flow-loop-current-iteration-number-declaration-id",version:"1",entityType:r.ValueDescriptor},p0={like:!1,inferred:!1,id:"manual-flow-loop-current-iteration-number-declaration-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,entity:ue,asType:!1,parent:c0},h0={id:"manual-flow-loop-current-iteration-number-declaration-parent-ref-id",type:r.GenericReference,entityId:ba.body.id,version:"1",entityType:r.ActionDescriptor},md={id:ba.body.inputs.iterationNumber.id,type:r.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:p0,required:!0,index:0,parentRelationType:V.FixedArguments,parent:h0},y0={id:"manual-flow-loop-body-any-dynamic-argument-parent-ref-id",type:r.GenericReference,entityId:ba.body.id,version:"1",entityType:r.ActionDescriptor},f0={id:"manual-flow-loop-body-any-dynamic-argument-id",type:r.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:V.DynamicArgument,parent:y0},m0={id:"manual-flow-loop-body-any-dynamic-return-parent-ref-id",type:r.GenericReference,entityId:ba.body.id,version:"1",entityType:r.ActionDescriptor},T0={id:"manual-flow-loop-body-any-dynamic-return-id",type:r.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:V.DynamicReturn,parent:m0},qs={id:ba.body.id,type:r.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:[md,f0],outputs:[T0],error:null,parent:null},v0=N[r.Loop]["string-loop"],E0={id:"iterate-over-string-loop-string-argument-declaration-data-type-parent-ref-id",type:r.GenericReference,entityId:"iterate-over-string-loop-string-argument-declaration-id",version:"1",entityType:r.ValueDescriptor},R0={like:!1,inferred:!1,id:"iterate-over-string-loop-string-argument-declaration-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,entity:X,asType:!1,parent:E0},g0={id:"iterate-over-string-loop-string-argument-declaration-parent-ref-id",type:r.GenericReference,entityId:q.String,version:"1",entityType:r.ActionDescriptor},b0={id:v0.inputs.string.id,type:r.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:R0,index:0,parent:g0,parentRelationType:V.FixedArguments},I0={id:"iterate-over-string-loop-dynamic-return-declaration-parent-ref-id",type:r.GenericReference,entityId:q.String,version:"1",entityType:r.ActionDescriptor},A0={id:v0.outputs.results.id,type:r.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:I0,parentRelationType:V.DynamicReturn},Ia={id:q.String,type:r.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:[b0],outputs:[A0],error:null,parent:null},Nn=N[r.Loop]["string-loop"],D0={id:"iterate-over-string-loop-body-current-value-declaration-data-type-parent-ref-id",type:r.GenericReference,entityId:"iterate-over-string-loop-body-current-value-declaration-id",version:"1",entityType:r.ValueDescriptor},P0={like:!1,inferred:!1,id:"iterate-over-string-loop-body-current-value-declaration-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,entity:X,asType:!1,parent:D0},S0={id:"iterate-over-string-loop-body-current-value-declaration-parent-ref-id",type:r.GenericReference,entityId:Nn.body.id,version:"1",entityType:r.ActionDescriptor},Td={id:Nn.body.inputs.currentValue.id,type:r.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:P0,required:!0,index:1,parentRelationType:V.FixedArguments,parent:S0},O0={id:"iterate-over-string-loop-body-current-iteration-number-declaration-data-type-parent-ref-id",type:r.GenericReference,entityId:"iterate-over-string-loop-body-current-iteration-number-declaration-id",version:"1",entityType:r.ValueDescriptor},V0={like:!1,inferred:!1,id:"iterate-over-string-loop-body-current-iteration-number-declaration-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,entity:ue,asType:!1,parent:O0},C0={id:"iterate-over-string-loop-body-current-iteration-number-declaration-parent-ref-id",type:r.GenericReference,entityId:Nn.body.id,version:"1",entityType:r.ActionDescriptor},vd={id:Nn.body.inputs.iterationNumber.id,type:r.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:V0,required:!0,index:0,parentRelationType:V.FixedArguments,parent:C0},w0={id:"iterate-over-string-loop-body-any-dynamic-argument-parent-ref-id",type:r.GenericReference,entityId:Nn.body.id,version:"1",entityType:r.ActionDescriptor},B0={id:"iterate-over-string-loop-body-any-dynamic-argument-id",type:r.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:V.DynamicArgument,parent:w0},M0={id:"iterate-over-string-loop-body-any-dynamic-return-parent-ref-id",type:r.GenericReference,entityId:Nn.body.id,version:"1",entityType:r.ActionDescriptor},_0={id:"iterate-over-string-loop-body-any-dynamic-return-id",type:r.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:V.DynamicReturn,parent:M0},Js={id:Nn.body.id,type:r.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:[vd,Td,B0],outputs:[_0],error:null,parent:null},N0=N[r.Loop]["list-loop"],L0={id:"iterate-over-list-loop-list-argument-declaration-data-type-parent-ref-id",type:r.GenericReference,entityId:"iterate-over-list-loop-list-argument-declaration-id",version:"1",entityType:r.ValueDescriptor},G0={like:!1,inferred:!1,id:"iterate-over-list-loop-list-argument-declaration-data-type-id",type:r.DataType,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:L0},$0={id:"iterate-over-list-loop-list-argument-declaration-parent-ref-id",type:r.GenericReference,entityId:q.List,version:"1",entityType:r.ActionDescriptor},F0={id:N0.inputs.list.id,type:r.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:G0,index:0,parent:$0,parentRelationType:V.FixedArguments},U0={id:"iterate-over-list-loop-dynamic-return-declaration-parent-ref-id",type:r.GenericReference,entityId:q.List,version:"1",entityType:r.ActionDescriptor},x0={id:N0.outputs.results.id,type:r.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:U0,parentRelationType:V.DynamicReturn},cn={id:q.List,type:r.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:[F0],outputs:[x0],error:null,parent:null},Ln=N[r.Loop]["list-loop"],j0={id:"iterate-over-list-loop-body-current-value-declaration-data-type-parent-ref-id",type:r.GenericReference,entityId:"iterate-over-list-loop-body-current-value-declaration-id",version:"1",entityType:r.ValueDescriptor},k0={like:!1,inferred:!1,id:"iterate-over-list-loop-body-current-value-declaration-data-type-id",type:r.DataType,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:j0},Z0={id:"iterate-over-list-loop-body-current-value-declaration-parent-ref-id",type:r.GenericReference,entityId:Ln.body.id,version:"1",entityType:r.ActionDescriptor},Ws={id:Ln.body.inputs.currentValue.id,type:r.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:k0,required:!0,index:1,parentRelationType:V.FixedArguments,parent:Z0},q0={id:"iterate-over-list-loop-body-current-iteration-number-declaration-data-type-parent-ref-id",type:r.GenericReference,entityId:"iterate-over-list-loop-body-current-iteration-number-declaration-id",version:"1",entityType:r.ValueDescriptor},J0={like:!1,inferred:!1,id:"iterate-over-list-loop-body-current-iteration-number-declaration-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,entity:ue,asType:!1,parent:q0},W0={id:"iterate-over-list-loop-body-current-iteration-number-declaration-parent-ref-id",type:r.GenericReference,entityId:Ln.body.id,version:"1",entityType:r.ActionDescriptor},Y0={id:Ln.body.inputs.iterationNumber.id,type:r.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:J0,required:!0,index:0,parentRelationType:V.FixedArguments,parent:W0},H0={id:"iterate-over-list-loop-body-any-dynamic-argument-parent-ref-id",type:r.GenericReference,entityId:Ln.body.id,version:"1",entityType:r.ActionDescriptor},z0={id:"iterate-over-list-loop-body-any-dynamic-argument-id",type:r.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:V.DynamicArgument,parent:H0},K0={id:"iterate-over-list-loop-body-any-dynamic-return-parent-ref-id",type:r.GenericReference,entityId:Ln.body.id,version:"1",entityType:r.ActionDescriptor},X0={id:"iterate-over-list-loop-body-any-dynamic-return-id",type:r.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:V.DynamicReturn,parent:K0},Aa={id:Ln.body.id,type:r.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:[Y0,Ws,z0],outputs:[X0],error:null,parent:null},Q0=N[r.Loop]["object-keys-loop"],eT={id:"iterate-over-object-keys-loop-object-argument-declaration-data-type-parent-ref-id",type:r.GenericReference,entityId:"iterate-over-object-keys-loop-object-argument-declaration-id",version:"1",entityType:r.ValueDescriptor},tT={like:!1,inferred:!1,id:"iterate-over-object-keys-loop-object-argument-declaration-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,entity:vt,asType:!1,parent:eT},rT={id:"iterate-over-object-keys-loop-object-argument-declaration-parent-ref-id",type:r.GenericReference,entityId:q.ObjectKeys,version:"1",entityType:r.ActionDescriptor},nT={id:Q0.inputs.object.id,type:r.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:tT,index:0,parent:rT,parentRelationType:V.FixedArguments},iT={id:"iterate-over-object-keys-loop-dynamic-return-declaration-parent-ref-id",type:r.GenericReference,entityId:q.ObjectKeys,version:"1",entityType:r.ActionDescriptor},aT={id:Q0.outputs.results.id,type:r.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:iT,parentRelationType:V.DynamicReturn},Ci={id:q.ObjectKeys,type:r.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:[nT],outputs:[aT],error:null,parent:null},Gn=N[r.Loop]["object-keys-loop"],sT={id:"iterate-over-object-keys-loop-body-current-value-declaration-data-type-parent-ref-id",type:r.GenericReference,entityId:"iterate-over-object-keys-loop-body-current-value-declaration-id",version:"1",entityType:r.ValueDescriptor},oT={like:!1,inferred:!1,id:"iterate-over-object-keys-loop-body-current-value-declaration-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,entity:X,asType:!1,parent:sT},lT={id:"iterate-over-object-keys-loop-body-current-value-declaration-parent-ref-id",type:r.GenericReference,entityId:Gn.body.id,version:"1",entityType:r.ActionDescriptor},Ed={id:Gn.body.inputs.currentValue.id,type:r.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:oT,required:!0,index:1,parentRelationType:V.FixedArguments,parent:lT},dT={id:"iterate-over-object-keys-loop-body-current-iteration-number-declaration-data-type-parent-ref-id",type:r.GenericReference,entityId:"iterate-over-object-keys-loop-body-current-iteration-number-declaration-id",version:"1",entityType:r.ValueDescriptor},uT={like:!1,inferred:!1,id:"iterate-over-object-keys-loop-body-current-iteration-number-declaration-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,entity:ue,asType:!1,parent:dT},cT={id:"iterate-over-object-keys-loop-body-current-iteration-number-declaration-parent-ref-id",type:r.GenericReference,entityId:Gn.body.id,version:"1",entityType:r.ActionDescriptor},pT={id:Gn.body.inputs.iterationNumber.id,type:r.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:uT,required:!0,index:0,parentRelationType:V.FixedArguments,parent:cT},hT={id:"iterate-over-object-keys-loop-body-any-dynamic-argument-parent-ref-id",type:r.GenericReference,entityId:Gn.body.id,version:"1",entityType:r.ActionDescriptor},yT={id:"iterate-over-object-keys-loop-body-any-dynamic-argument-id",type:r.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:V.DynamicArgument,parent:hT},fT={id:"iterate-over-object-keys-loop-body-any-dynamic-return-parent-ref-id",type:r.GenericReference,entityId:Gn.body.id,version:"1",entityType:r.ActionDescriptor},mT={id:"iterate-over-object-keys-loop-body-any-dynamic-return-id",type:r.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:V.DynamicReturn,parent:fT},Rd={id:Gn.body.id,type:r.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:[pT,Ed,yT],outputs:[mT],error:null,parent:null},TT=N[r.Loop]["object-values-loop"],vT={id:"iterate-over-object-values-loop-object-argument-declaration-data-type-parent-ref-id",type:r.GenericReference,entityId:"iterate-over-object-values-loop-object-argument-declaration-id",version:"1",entityType:r.ValueDescriptor},ET={like:!1,inferred:!1,id:"iterate-over-object-values-loop-object-argument-declaration-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,entity:vt,asType:!1,parent:vT},RT={id:"iterate-over-object-values-loop-object-argument-declaration-parent-ref-id",type:r.GenericReference,entityId:q.ObjectValues,version:"1",entityType:r.ActionDescriptor},gT={id:TT.inputs.object.id,type:r.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:ET,index:0,parent:RT,parentRelationType:V.FixedArguments},bT={id:"iterate-over-object-values-loop-dynamic-return-declaration-parent-ref-id",type:r.GenericReference,entityId:q.ObjectValues,version:"1",entityType:r.ActionDescriptor},IT={id:TT.outputs.results.id,type:r.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:bT,parentRelationType:V.DynamicReturn},wi={id:q.ObjectValues,type:r.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:[gT],outputs:[IT],error:null,parent:null},$n=N[r.Loop]["object-values-loop"],AT={id:"iterate-over-object-values-loop-body-current-value-declaration-data-type-parent-ref-id",type:r.GenericReference,entityId:"iterate-over-object-values-loop-body-current-value-declaration-id",version:"1",entityType:r.ValueDescriptor},DT={id:"iterate-over-object-values-loop-body-current-value-declaration-data-type-id",type:r.DataType,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:AT},PT={id:"iterate-over-object-values-loop-body-current-value-declaration-parent-ref-id",type:r.GenericReference,entityId:$n.body.id,version:"1",entityType:r.ActionDescriptor},gd={id:$n.body.inputs.currentValue.id,type:r.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:DT,required:!0,index:1,parentRelationType:V.FixedArguments,parent:PT},ST={id:"iterate-over-object-values-loop-body-current-iteration-number-declaration-data-type-parent-ref-id",type:r.GenericReference,entityId:"iterate-over-object-values-loop-body-current-iteration-number-declaration-id",version:"1",entityType:r.ValueDescriptor},OT={like:!1,inferred:!1,id:"iterate-over-object-values-loop-body-current-iteration-number-declaration-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,entity:ue,asType:!1,parent:ST},VT={id:"iterate-over-object-values-loop-body-current-iteration-number-declaration-parent-ref-id",type:r.GenericReference,entityId:$n.body.id,version:"1",entityType:r.ActionDescriptor},CT={id:$n.body.inputs.iterationNumber.id,type:r.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:OT,required:!0,index:0,parentRelationType:V.FixedArguments,parent:VT},wT={id:"iterate-over-object-values-loop-body-any-dynamic-argument-parent-ref-id",type:r.GenericReference,entityId:$n.body.id,version:"1",entityType:r.ActionDescriptor},BT={id:"iterate-over-object-values-loop-body-any-dynamic-argument-id",type:r.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:V.DynamicArgument,parent:wT},MT={id:"iterate-over-object-values-loop-body-any-dynamic-return-parent-ref-id",type:r.GenericReference,entityId:$n.body.id,version:"1",entityType:r.ActionDescriptor},_T={id:"iterate-over-object-values-loop-body-any-dynamic-return-id",type:r.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:V.DynamicReturn,parent:MT},bd={id:$n.body.id,type:r.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:[CT,gd,BT],outputs:[_T],error:null,parent:null},Id=N[r.Loop]["counted-loop"],NT={id:"counted-loop-string-argument-declaration-data-type-default-value-parent-ref-id",type:r.GenericReference,entityId:Id.inputs.number.id,version:"1",entityType:r.ValueDescriptor},LT={id:"counted-loop-string-argument-declaration-data-type-default-value-id",type:r.LiteralValue,name:C.Number,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:5,valueAsType:null,autogeneration:null,parent:NT},GT={id:"counted-loop-string-argument-declaration-data-type-parent-ref-id",type:r.GenericReference,entityId:"counted-loop-string-argument-declaration-id",version:"1",entityType:r.ValueDescriptor},$T={like:!1,inferred:!1,id:"counted-loop-string-argument-declaration-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,entity:ue,asType:!1,parent:GT},FT={id:"counted-loop-string-argument-declaration-parent-ref-id",type:r.GenericReference,entityId:q.Counted,version:"1",entityType:r.ActionDescriptor},UT={id:Id.inputs.number.id,type:r.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:$T,defaultValue:LT,index:0,parent:FT,parentRelationType:V.FixedArguments},xT={id:"counted-loop-dynamic-return-declaration-parent-ref-id",type:r.GenericReference,entityId:q.Counted,version:"1",entityType:r.ActionDescriptor},jT={id:Id.outputs.results.id,type:r.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:xT,parentRelationType:V.DynamicReturn},Da={id:q.Counted,type:r.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:[UT],outputs:[jT],error:null,parent:null},Pa=N[r.Loop]["counted-loop"],kT={id:"counted-loop-body-current-iteration-number-declaration-data-type-parent-ref-id",type:r.GenericReference,entityId:"counted-loop-body-current-iteration-number-declaration-id",version:"1",entityType:r.ValueDescriptor},ZT={like:!1,inferred:!1,id:"counted-loop-body-current-iteration-number-declaration-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,entity:ue,asType:!1,parent:kT},qT={id:"counted-loop-body-current-iteration-number-declaration-parent-ref-id",type:r.GenericReference,entityId:Pa.body.id,version:"1",entityType:r.ActionDescriptor},Ad={id:Pa.body.inputs.iterationNumber.id,type:r.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:ZT,required:!0,index:0,parentRelationType:V.FixedArguments,parent:qT},JT={id:"counted-loop-body-any-dynamic-argument-parent-ref-id",type:r.GenericReference,entityId:Pa.body.id,version:"1",entityType:r.ActionDescriptor},WT={id:"counted-loop-body-any-dynamic-argument-id",type:r.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:V.DynamicArgument,parent:JT},YT={id:"counted-loop-body-any-dynamic-return-parent-ref-id",type:r.GenericReference,entityId:Pa.body.id,version:"1",entityType:r.ActionDescriptor},HT={id:"counted-loop-body-any-dynamic-return-id",type:r.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:V.DynamicReturn,parent:YT},Ys={id:Pa.body.id,type:r.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:[Ad,WT],outputs:[HT],error:null,parent:null},zT=[Zs,cn,Ia,Ci,wi,Da],KT=[qs,Aa,Js,Rd,bd,Ys],pn=N[r.BuiltInBaseEntity][k.HTTP_ENDPOINT].properties,XT={id:"endpointBuiltInCorsPropertyDataTypeRef",type:r.GenericReference,version:"1",entityType:r.ValueDescriptor,entityId:pn.cors.id},QT={id:"endpointBuiltInCorsPropertyRef",type:r.GenericReference,version:"1",entityType:r.Property,entityId:pn.cors.id},ev={like:!1,inferred:!1,id:"endpointBuiltInCorsPropertyDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!0,entity:X,asType:!1,parent:QT},tv={id:"endpointBuiltInBaseEntityRef",type:r.GenericReference,version:"1",entityType:r.BuiltInBaseEntity,entityId:k.HTTP_ENDPOINT},rv={constant:!1,hidden:!0,required:!0,id:pn.cors.id,name:"Allowed origins",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:r.Property,private:!1,abstract:!0,implements:null,static:!0,index:0,dataType:ev,defaultValue:{id:"endpointBuiltInCorsPropertyDataTypeDefaultValueId",type:r.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:C.KeyValue,value:["*"],parent:XT,autogeneration:null,valueAsType: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:tv},nv={id:"endpointBuiltInPathPropertyDataTypeRef",type:r.GenericReference,version:"1",entityType:r.ValueDescriptor,entityId:pn.path.id},iv={id:"endpointBuiltInPathPropertyRef",type:r.GenericReference,version:"1",entityType:r.Property,entityId:pn.path.id},av={like:!1,inferred:!1,id:"endpointBuiltInPathPropertyDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:X,asType:!1,parent:iv},sv={id:"endpointBuiltInBaseEntityRefTwo",type:r.GenericReference,version:"1",entityType:r.BuiltInBaseEntity,entityId:k.HTTP_ENDPOINT},Dd={constant:!1,id:pn.path.id,hidden:!1,required:!0,name:"Path",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:r.Property,private:!1,abstract:!0,implements:null,static:!0,index:1,dataType:av,defaultValue:{id:"endpointBuiltInPathPropertyDataTypeDefaultValueId",type:r.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:C.String,value:"/",parent:nv,autogeneration:null,valueAsType: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:sv},ov={id:"endpointBuiltInMethodPropertyDataTypeRef",type:r.GenericReference,version:"1",entityType:r.ValueDescriptor,entityId:pn.method.id},lv={id:"endpointBuiltInMethodPropertyRef",type:r.GenericReference,version:"1",entityType:r.Property,entityId:"endpointBuiltInMethodProperty"},dv={like:!1,inferred:!1,id:"endpointBuiltInMethodPropertyDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,entity:Zr,isList:!0,asType:!1,options:["GET","POST","PUT","DELETE","PATCH","OPTIONS","HEAD","TRACE","CONNECT","CUSTOM"],parent:lv},uv={id:"endpointBuiltInBaseEntityRefThree",type:r.GenericReference,version:"1",entityType:r.BuiltInBaseEntity,entityId:k.HTTP_ENDPOINT},Pd={constant:!1,hidden:!1,required:!0,id:pn.method.id,name:"Method",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:r.Property,private:!1,index:2,implements:null,defaultValue:{id:"endpointBuiltInMethodPropertyDataTypeDefaultValueId",type:r.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:"GET",name:C.Enum,parent:ov,autogeneration:null,valueAsType:null},abstract:!0,static:!0,dataType:dv,description:"The HTTP method that this endpoint will respond to, for example GET, POST, PUT, DELETE, etc.",parent:uv},cv={id:"endpointRequestHeadersVariableDataTypeRef",type:r.GenericReference,version:"1",entityType:r.ValueDescriptor,entityId:"endpointRequestHeadersArgumentDeclaration"},pv={id:"endpointRequestHeadersArgumentDeclarationRef",type:r.GenericReference,version:"1",entityType:r.ArgumentDeclaration,entityId:"endpointRequestHeadersArgumentDeclaration"},hv={like:!1,inferred:!1,id:"endpointRequestHeadersVariableDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!0,entity:vt,asType:!1,parent:pv},yv={id:"endpointRequestBodyArgumentDeclarationRef",type:r.GenericReference,version:"1",entityType:r.ArgumentDeclaration,entityId:"endpointRequestBodyArgumentDeclaration"},fv={like:!1,inferred:!1,id:"endpointRequestBodyVariableDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,asType:!1,entity:vt,parent:yv},mv={id:"endpointRequestQueryParamsVariableDataTypeRef",type:r.GenericReference,version:"1",entityType:r.ValueDescriptor,entityId:"endpointRequestQueryParamsArgumentDeclaration"},Tv={id:"endpointRequestQueryParamsArgumentDeclarationRef",type:r.GenericReference,version:"1",entityType:r.ArgumentDeclaration,entityId:"endpointRequestQueryParamsArgumentDeclaration"},vv={like:!1,inferred:!1,id:"endpointRequestQueryParamsVariableDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!0,asType:!1,entity:Si,parent:Tv},Ev={id:"endpointPathParamsVariableDataTypeRef",type:r.GenericReference,version:"1",entityType:r.ValueDescriptor,entityId:"endpointPathParamsArgumentDeclaration"},Rv={id:"endpointPathParamsArgumentDeclarationRef",type:r.GenericReference,version:"1",entityType:r.ArgumentDeclaration,entityId:"endpointPathParamsArgumentDeclaration"},gv={like:!1,inferred:!1,id:"endpointPathParamsVariableDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!0,entity:Si,asType:!1,parent:Rv},bv={id:"endpointReachedTriggerActionDescriptorRef",type:r.GenericReference,version:"1",entityType:r.ActionDescriptor,entityId:"endpointReachedTriggerActionDescriptor"},Sd={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:r.ValueDescriptor,name:"Request headers",dataType:hv,defaultValue:{id:"endpointRequestHeadersVariableDataTypeDefaultValueId",type:r.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:C.KeyValue,value:{},parent:cv,autogeneration:null,valueAsType:null},required:!0,index:0,parentRelationType:V.FixedArguments,parent:bv},Iv={id:"endpointReachedTriggerActionDescriptorRefTwo",type:r.GenericReference,version:"1",entityType:r.ActionDescriptor,entityId:"endpointReachedTriggerActionDescriptor"},Od={id:"endpointPathParamsArgumentDeclaration",type:r.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:gv,defaultValue:{id:"endpointPathParamsVariableDataTypeDefaultValueId",type:r.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:C.KeyValue,value:[],parent:Ev,autogeneration:null,valueAsType:null},required:!0,index:1,parentRelationType:V.FixedArguments,parent:Iv},Av={id:"endpointReachedTriggerActionDescriptorRefThree",type:r.GenericReference,version:"1",entityType:r.ActionDescriptor,entityId:"endpointReachedTriggerActionDescriptor"},Vd={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:r.ValueDescriptor,name:"Request query params",dataType:vv,defaultValue:{id:"endpointRequestQueryParamsVariableDataTypeDefaultValueId",type:r.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:C.KeyValue,value:[],parent:mv,autogeneration:null,valueAsType:null},required:!0,index:2,parentRelationType:V.FixedArguments,parent:Av},Dv={id:"endpointReachedTriggerActionDescriptorRefFour",type:r.GenericReference,version:"1",entityType:r.ActionDescriptor,entityId:"endpointReachedTriggerActionDescriptor"},Cd={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:r.ValueDescriptor,name:"Request body",dataType:fv,defaultValue:null,index:3,required:!0,parentRelationType:V.FixedArguments,parent:Dv},Pv={id:"endpointResponseCodeReturnDeclarationRef",type:r.GenericReference,version:"1",entityType:r.ReturnDeclaration,entityId:"endpointResponseCodeReturnDeclaration"},Sv={like:!1,inferred:!1,id:"9ba575b0-6f8e-436d-a3de-3b843622aa17",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ue,asType:!1,isList:!1,parent:Pv},Ov={id:"endpointReturnStatementRef",type:r.GenericReference,version:"1",entityType:r.ActionDescriptor,entityId:"endpointReturnStatement"},wd={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:r.ValueDescriptor,name:"Response code",dataType:Sv,defaultValue:null,required:!0,index:0,parentRelationType:V.FixedReturns,parent:Ov},Vv={id:"endpointResponseHeadersDataTypeRef",type:r.GenericReference,version:"1",entityType:r.ValueDescriptor,entityId:"endpointResponseHeadersReturnDeclaration"},Cv={id:"endpointResponseHeadersReturnDeclarationRef",type:r.GenericReference,version:"1",entityType:r.ReturnDeclaration,entityId:"endpointResponseHeadersReturnDeclaration"},wv={like:!1,inferred:!1,id:"endpointResponseHeadersDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!0,entity:vt,asType:!1,parent:Cv},Bv={id:"endpointReturnStatementRefTwo",type:r.GenericReference,version:"1",entityType:r.ActionDescriptor,entityId:"endpointReturnStatement"},Bd={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:r.ValueDescriptor,name:"Response headers",dataType:wv,defaultValue:{id:"endpointResponseHeadersDataTypeDefaultValueId",type:r.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:C.KeyValue,value:{},parent:Vv,autogeneration:null,valueAsType:null},required:!1,index:1,parentRelationType:V.FixedReturns,parent:Bv},Mv={id:"endpointResponseBodyReturnDeclarationRef",type:r.GenericReference,version:"1",entityType:r.ReturnDeclaration,entityId:"endpointResponseBodyReturnDeclaration"},_v={like:!1,inferred:!1,id:"endpointResponseBodyDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,asType:!1,entity:vt,parent:Mv},Nv={id:"endpointReturnStatementRefThree",type:r.GenericReference,version:"1",entityType:r.ActionDescriptor,entityId:"endpointReturnStatement"},Md={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:r.ValueDescriptor,name:"Response body",dataType:_v,defaultValue:null,required:!1,index:2,parentRelationType:V.FixedReturns,parent:Nv},Lv={id:"endpointBuiltInBaseEntityRefFour",type:r.GenericReference,version:"1",entityType:r.BuiltInBaseEntity,entityId:k.HTTP_ENDPOINT},_d={id:"endpointReachedTriggerActionDescriptor",type:r.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:[Sd,Od,Vd,Cd],outputs:[wd,Bd,Md],error:null,parent:Lv},Sa={id:k.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:k.HTTP_ENDPOINT,type:r.BuiltInBaseEntity,interactive:!1,abstract:!0,static:!0,properties:[rv,Dd,Pd],abstractMethods:[_d],extends:[],methods:[]},Pt=N[r.BuiltInBaseEntity].BUILT_IN_RELATIONAL_DATABASE_ENTITY,Gv={id:"relational-database-built-in-base-entity-identifier-property-data-type-ref-id",type:r.GenericReference,entityId:Pt.properties.identifier.id,version:"1",entityType:r.Property},$v={id:"relational-database-built-in-base-entity-identifier-property-ref-id",type:r.GenericReference,entityId:Pt.properties.identifier.id,version:"1",entityType:r.Property},Fv={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:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:X,asType:!1,parent:$v},Bi={id:"relational-database-built-in-base-entity-ref-id",type:r.GenericReference,entityId:k.PERSISTED_ENTITY,version:"1",entityType:r.BuiltInBaseEntity},Hs={constant:!1,id:Pt.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:r.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:r.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:C.String,value:null,parent:Gv,autogeneration:{type:st.Unique,rangeStart:null,rangeEnd:null},valueAsType:null},dataType:Fv,description:"The name of the main database inside of the server instance where the data will be stored.",parent:Bi},gP={id:"relational-database-built-in-base-entity-username-property-data-type-ref-id",type:r.GenericReference,entityId:"relational-database-built-in-base-entity-username-property-data-type-idd",version:"1",entityType:r.Property},Uv={id:"relational-database-built-in-base-entity-username-property-ref-id",type:r.GenericReference,entityId:Pt.properties.username.id,version:"1",entityType:r.Property},xv={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:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:X,asType:!1,parent:Uv},zs={constant:!1,hidden:!1,required:!0,id:Pt.properties.username.id,name:"Username",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:r.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:r.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:C.String,value:"postgres",parent:{id:"relational-database-built-in-base-entity-username-property-data-type-default-value-parent-ref-id",type:r.GenericReference,entityId:Pt.properties.username.id,version:"1",entityType:r.Property},autogeneration:null,valueAsType:null},dataType:xv,description:"The username that will be used to connect to the database.",parent:Bi},bP={id:"relational-database-built-in-base-entity-password-property-data-type-ref-id",type:r.GenericReference,entityId:"relational-database-built-in-base-entity-password-property-data-type-id",version:"1",entityType:r.Property},jv={id:"relational-database-built-in-base-entity-password-property-ref-id",type:r.GenericReference,entityId:Pt.properties.password.id,version:"1",entityType:r.Property},kv={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:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:X,asType:!1,parent:jv},Ks={constant:!1,hidden:!1,required:!0,id:Pt.properties.password.id,name:"Password",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:r.Property,private:!1,abstract:!0,static:!0,implements:null,index:2,defaultValue:null,dataType:kv,description:"The password that will be used to connect to the database.",parent:Bi},Zv={id:"relational-database-built-in-base-entity-min-size-property-data-type-ref-id",type:r.GenericReference,entityId:Pt.properties.minSize.id,version:"1",entityType:r.Property},qv={id:"relational-database-built-in-base-entity-min-size-property-ref-id",type:r.GenericReference,entityId:Pt.properties.minSize.id,version:"1",entityType:r.Property},Jv={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:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ue,asType:!1,parent:qv},Xs={constant:!1,hidden:!0,required:!0,id:Pt.properties.minSize.id,name:"Minimum GB size",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:r.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:r.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:C.Number,value:6,parent:Zv,autogeneration:null,valueAsType:null},dataType:Jv,description:"The minimum size of the database in GB.",parent:Bi},Wv={id:"relational-database-built-in-base-entity-default-property-data-type-ref-id",type:r.GenericReference,entityId:Pt.properties.default.id,version:"1",entityType:r.Property},Yv={id:"relational-database-built-in-base-entity-default-property-ref-id",type:r.GenericReference,entityId:Pt.properties.default.id,version:"1",entityType:r.Property},Hv={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:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:kr,asType:!1,parent:Yv},Nd={constant:!1,hidden:!0,required:!0,id:Pt.properties.default.id,name:"Default",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:r.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:r.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:C.Boolean,value:!1,parent:Wv,autogeneration:null,valueAsType:null},dataType:Hv,description:"If true, this database will be the default database for the server instance and all the new entities.",parent:Bi},zv={id:"relational-database-built-in-base-entity-autoscaling-property-ref-id",type:r.GenericReference,entityId:Pt.properties.autoscaling.id,version:"1",entityType:r.Property},Kv={id:"relational-database-built-in-base-entity-autoscaling-property-data-type-ref-id",type:r.GenericReference,entityId:Pt.properties.autoscaling.id,version:"1",entityType:r.Property},Xv={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:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:kr,asType:!1,parent:zv},Qv={id:"relational-database-built-in-base-entity-autoscaling-property-parent-ref-id",type:r.GenericReference,entityId:k.PERSISTED_ENTITY,version:"1",entityType:r.BuiltInBaseEntity},Ld={constant:!1,hidden:!0,required:!0,id:Pt.properties.autoscaling.id,name:"Auto-scaling",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:r.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:r.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:C.Boolean,value:!1,parent:Kv,autogeneration:null,valueAsType:null},dataType:Xv,description:"If true, this database will automatically scale up or down in memory size, based on the usage.",parent:Qv},Vr={id:k.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:k.RELATIONAL_DATABASE,type:r.BuiltInBaseEntity,abstract:!0,static:!0,interactive:!1,properties:[Hs,zs,Ks,Xs,Nd,Ld],abstractMethods:[],methods:[],extends:[]},eE={type:r.GenericReference,entityId:"persisted-built-in-base-entity-ref-id",version:"1",entityType:r.BuiltInBaseEntity,id:er.DeletePersistedEntity},Gd={type:r.FunctionDeclaration,id:er.DeletePersistedEntity,name:er.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:eE,inputs:[],calls:[],implements:null,collapsed:!1,returnStatements:[],index:0,private:!1,x:0,y:0},tE=N[r.BuiltInBaseEntity][k.PERSISTED_ENTITY].properties,IP={id:"persisted-built-in-base-entity-database-property-data-type-ref-id",type:r.GenericReference,entityId:"persisted-built-in-base-entity-database-property-data-type-id",version:"1",entityType:r.DataType},rE={id:"persisted-built-in-base-entity-database-property-ref-id",type:r.GenericReference,entityId:"persisted-built-in-base-entity-database-property-id",version:"1",entityType:r.Property},nE={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:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:Vr,asType:!1,parent:rE},iE={id:"persisted-built-in-base-entity-database-property-parent-ref-id",type:r.GenericReference,entityId:k.PERSISTED_ENTITY,version:"1",entityType:r.BuiltInBaseEntity},Mi={constant:!1,hidden:!0,required:!0,id:tE.database.id,name:"Database",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:r.Property,defaultValue:null,private:!1,abstract:!0,implements:null,static:!0,index:0,dataType:nE,description:"The database that the entity belongs to.",parent:iE},aE={id:"persisted-built-in-base-entity-primary-key-property-number-data-type-option-parent-ref-id",type:r.GenericReference,entityId:"persisted-built-in-base-entity-primary-key-property-data-type-id",version:"1",entityType:r.DataType},sE={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:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ue,asType:!1,parentRelationType:yt.OrDataTypeGroup,parent:aE},oE={id:"persisted-built-in-base-entity-primary-key-property-string-data-type-option-parent-ref-id",type:r.GenericReference,entityId:"persisted-built-in-base-entity-primary-key-property-data-type-id",version:"1",entityType:r.DataType},lE={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:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:X,asType:!1,parentRelationType:yt.OrDataTypeGroup,parent:oE},dE={id:"persisted-built-in-base-entity-primary-key-property-uuid-data-type-option-parent-ref-id",type:r.GenericReference,entityId:"persisted-built-in-base-entity-primary-key-property-data-type-id",version:"1",entityType:r.DataType},uE={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:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:qr,asType:!1,parentRelationType:yt.OrDataTypeGroup,parent:dE},cE={id:"persisted-built-in-base-entity-primary-key-property-ref-id",type:r.GenericReference,entityId:"persisted-built-in-base-entity-primary-key-property-id",version:"1",entityType:r.Property},pE={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:r.DataType,andChildrenGroup:null,orChildrenGroup:[uE,lE,sE],isList:!1,entity:null,asType:null,implementationChooseOne:!0,parent:cE},hE={id:"persisted-built-in-base-entity-primary-key-property-parent-ref-id",type:r.GenericReference,entityId:k.PERSISTED_ENTITY,version:"1",entityType:r.BuiltInBaseEntity},_i={constant:!1,hidden:!1,required:!0,id:tE.primaryKey.id,name:"Primary key",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:r.Property,defaultValue:null,private:!1,abstract:!0,implements:null,static:!1,index:0,dataType:pE,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:hE},gt={id:k.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:k.PERSISTED_ENTITY,type:r.BuiltInBaseEntity,abstract:!0,static:!1,interactive:!0,abstractMethods:[],properties:[Mi,_i],methods:[Gd],extends:[]},yE={type:r.GenericReference,entityId:"persisted-built-in-base-entity-ref-id",version:"1",entityType:r.BuiltInBaseEntity,id:er.SoftDeletePersistedEntity},AP={type:r.FunctionDeclaration,id:er.SoftDeletePersistedEntity,name:er.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:yE,inputs:[],calls:[],implements:null,collapsed:!1,returnStatements:[],index:0,private:!1,x:0,y:0},fE={id:"cron-job-triggered-function-declaration-blueprint-parent-ref-id",type:r.GenericReference,version:"1",entityType:r.BuiltInBaseEntity,entityId:k.HTTP_ENDPOINT},$d={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:r.ActionDescriptor,description:"Executed when the cron job is triggered",inputs:[],error:null,outputs:[],parent:fE},mE=N[r.BuiltInBaseEntity].BUILT_IN_CRON_JOB_ENTITY,DP={id:"cron-job-built-in-base-entity-expression-property-data-type-ref",type:r.GenericReference,entityId:"cron-job-built-in-base-entity-expression-property-data-type",version:"1",entityType:r.DataType},TE={id:"cron-job-built-in-base-entity-expression-property-ref",type:r.GenericReference,entityId:mE.properties.expression.id,version:"1",entityType:r.Property},PP={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:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:X,asType:!1,parent:TE},vE={id:"cron-job-built-in-base-entity-ref",type:r.GenericReference,entityId:k.CRON_JOB,version:"1",entityType:r.BuiltInBaseEntity},EE={constant:!1,hidden:!1,required:!0,id:mE.properties.expression.id,name:"Cron expression",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:r.Property,defaultValue:null,private:!1,abstract:!0,implements:null,static:!0,index:0,dataType:PP,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:vE},Qs={id:k.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:k.CRON_JOB,type:r.BuiltInBaseEntity,abstract:!0,static:!0,interactive:!1,properties:[EE],methods:[],abstractMethods:[$d],extends:[]},RE={type:r.GenericReference,id:"execution-built-in-entity-abort-method-parent-ref-id",version:"1",entityType:r.BuiltInBaseEntity,entityId:"execution-built-in-entity-id"},Fd={id:"execution-built-in-entity-abort-method-id",type:r.FunctionDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:er.AbortExecution,description:"Aborts the execution of the entity",inputs:[],returnStatements:[],calls:[],implements:null,private:!1,collapsed:!1,index:null,x:0,y:0,parent:RE},eo={id:k.EXECUTION,type:r.BuiltInBaseEntity,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:k.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:[Fd],abstractMethods:[]},gE=[Sa,Vr,gt,Qs,eo],SP=N[r.Condition]["not-empty"],bE={type:r.GenericReference,id:"not-empty-condition-ref",version:"1",entityType:r.ActionDescriptor,entityId:lr.NotEmpty},IE={id:SP.inputs.leftHand.id,type:r.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:V.FixedArguments,index:0,parent:bE},Fn={type:r.ActionDescriptor,id:lr.NotEmpty,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:lr.NotEmpty,description:"Checks if the value is not empty",parent:null,inputs:[IE],outputs:[],error:null},AE={[lr.NotEmpty]:Fn},Ni=N[r.Condition]["more-than-or-equal"],DE={type:r.GenericReference,id:"more-than-or-equal-condition-left-hand-argument-data-type-parent-ref",version:"1",entityType:r.ValueDescriptor,entityId:Ni.inputs.leftHand.id},PE={type:r.DataType,id:Ni.inputs.leftHand.dataType.id,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ue,like:!1,isList:!1,inferred:!1,andChildrenGroup:null,orChildrenGroup:null,asType:!1,parent:DE},SE={type:r.GenericReference,id:"more-than-or-equal-condition-left-hand-argument-parent-ref",version:"1",entityType:r.ActionDescriptor,entityId:nt.MoreThanOrEqual},OE={id:Ni.inputs.leftHand.id,type:r.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:PE,required:!0,parentRelationType:V.FixedArguments,index:0,parent:SE},VE={type:r.GenericReference,id:"more-than-or-equal-condition-right-hand-argument-data-type-parent-ref",version:"1",entityType:r.ValueDescriptor,entityId:Ni.inputs.rightHand.id},CE={type:r.DataType,id:Ni.inputs.rightHand.dataType.id,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ue,like:!1,isList:!1,inferred:!1,andChildrenGroup:null,orChildrenGroup:null,asType:!1,parent:VE},wE={type:r.GenericReference,id:"more-than-or-equal-condition-right-hand-argument-parent-ref",version:"1",entityType:r.ActionDescriptor,entityId:nt.MoreThanOrEqual},BE={id:Ni.inputs.rightHand.id,type:r.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:CE,required:!0,parentRelationType:V.FixedArguments,index:1,parent:wE},Li={type:r.ActionDescriptor,id:nt.MoreThanOrEqual,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:nt.MoreThanOrEqual,description:"Checks if the value is not empty",parent:null,inputs:[OE,BE],outputs:[],error:null},ME={[nt.MoreThanOrEqual]:Li},_E={...AE,...ME},NE=Object.values(_E),to={type:r.ActionDescriptor,id:jr.PROJECT_PUBLICATION_COMPLETED,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:jr.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},LE={[jr.PROJECT_PUBLICATION_COMPLETED]:to},GE=Object.values(LE),Ud=N[r.ValueDescriptor][Bs.ActionOngoingProcessOutputValue],$E={type:r.GenericReference,id:"182f767f-50e8-4394-ba5f-43e78c232733",version:"1",entityType:r.ValueDescriptor,entityId:Ud.id},FE={like:!1,inferred:!1,id:Ud.dataType.id,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:eo,asType:!1,isList:!1,parent:$E},ro={id:Ud.id,type:r.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:FE,required:!0,index:0,parent:null,parentRelationType:V.OngoingProcessExecution},UE=[ro],xE=[...Xp,...l0,...zT,...KT,...gE,...NE,...GE,...UE];var $e;(function(n){n.assertEqual=i=>i;function s(i){}n.assertIs=s;function e(i){throw new Error}n.assertNever=e,n.arrayToEnum=i=>{const a={};for(const o of i)a[o]=o;return a},n.getValidEnumValues=i=>{const a=n.objectKeys(i).filter(l=>typeof i[i[l]]!="number"),o={};for(const l of a)o[l]=i[l];return n.objectValues(o)},n.objectValues=i=>n.objectKeys(i).map(function(a){return i[a]}),n.objectKeys=typeof Object.keys=="function"?i=>Object.keys(i):i=>{const a=[];for(const o in i)Object.prototype.hasOwnProperty.call(i,o)&&a.push(o);return a},n.find=(i,a)=>{for(const o of i)if(a(o))return o},n.isInteger=typeof Number.isInteger=="function"?i=>Number.isInteger(i):i=>typeof i=="number"&&isFinite(i)&&Math.floor(i)===i;function t(i,a=" | "){return i.map(o=>typeof o=="string"?`'${o}'`:o).join(a)}n.joinValues=t,n.jsonStringifyReplacer=(i,a)=>typeof a=="bigint"?a.toString():a})($e||($e={}));var xd;(function(n){n.mergeShapes=(s,e)=>({...s,...e})})(xd||(xd={}));const Z=$e.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Yr=n=>{switch(typeof n){case"undefined":return Z.undefined;case"string":return Z.string;case"number":return isNaN(n)?Z.nan:Z.number;case"boolean":return Z.boolean;case"function":return Z.function;case"bigint":return Z.bigint;case"symbol":return Z.symbol;case"object":return Array.isArray(n)?Z.array:n===null?Z.null:n.then&&typeof n.then=="function"&&n.catch&&typeof n.catch=="function"?Z.promise:typeof Map<"u"&&n instanceof Map?Z.map:typeof Set<"u"&&n instanceof Set?Z.set:typeof Date<"u"&&n instanceof Date?Z.date:Z.object;default:return Z.unknown}},G=$e.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"]),OP=n=>JSON.stringify(n,null,2).replace(/"([^"]+)":/g,"$1:");class Jt extends Error{get errors(){return this.issues}constructor(s){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=s}format(s){const e=s||function(a){return a.message},t={_errors:[]},i=a=>{for(const o of a.issues)if(o.code==="invalid_union")o.unionErrors.map(i);else if(o.code==="invalid_return_type")i(o.returnTypeError);else if(o.code==="invalid_arguments")i(o.argumentsError);else if(o.path.length===0)t._errors.push(e(o));else{let l=t,d=0;for(;d<o.path.length;){const h=o.path[d];d===o.path.length-1?(l[h]=l[h]||{_errors:[]},l[h]._errors.push(e(o))):l[h]=l[h]||{_errors:[]},l=l[h],d++}}};return i(this),t}static assert(s){if(!(s instanceof Jt))throw new Error(`Not a ZodError: ${s}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,$e.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(s=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(s(i))):t.push(s(i));return{formErrors:t,fieldErrors:e}}get formErrors(){return this.flatten()}}Jt.create=n=>new Jt(n);const Gi=(n,s)=>{let e;switch(n.code){case G.invalid_type:n.received===Z.undefined?e="Required":e=`Expected ${n.expected}, received ${n.received}`;break;case G.invalid_literal:e=`Invalid literal value, expected ${JSON.stringify(n.expected,$e.jsonStringifyReplacer)}`;break;case G.unrecognized_keys:e=`Unrecognized key(s) in object: ${$e.joinValues(n.keys,", ")}`;break;case G.invalid_union:e="Invalid input";break;case G.invalid_union_discriminator:e=`Invalid discriminator value. Expected ${$e.joinValues(n.options)}`;break;case G.invalid_enum_value:e=`Invalid enum value. Expected ${$e.joinValues(n.options)}, received '${n.received}'`;break;case G.invalid_arguments:e="Invalid function arguments";break;case G.invalid_return_type:e="Invalid function return type";break;case G.invalid_date:e="Invalid date";break;case G.invalid_string:typeof n.validation=="object"?"includes"in n.validation?(e=`Invalid input: must include "${n.validation.includes}"`,typeof n.validation.position=="number"&&(e=`${e} at one or more positions greater than or equal to ${n.validation.position}`)):"startsWith"in n.validation?e=`Invalid input: must start with "${n.validation.startsWith}"`:"endsWith"in n.validation?e=`Invalid input: must end with "${n.validation.endsWith}"`:$e.assertNever(n.validation):n.validation!=="regex"?e=`Invalid ${n.validation}`:e="Invalid";break;case G.too_small:n.type==="array"?e=`Array must contain ${n.exact?"exactly":n.inclusive?"at least":"more than"} ${n.minimum} element(s)`:n.type==="string"?e=`String must contain ${n.exact?"exactly":n.inclusive?"at least":"over"} ${n.minimum} character(s)`:n.type==="number"?e=`Number must be ${n.exact?"exactly equal to ":n.inclusive?"greater than or equal to ":"greater than "}${n.minimum}`:n.type==="date"?e=`Date must be ${n.exact?"exactly equal to ":n.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(n.minimum))}`:e="Invalid input";break;case G.too_big:n.type==="array"?e=`Array must contain ${n.exact?"exactly":n.inclusive?"at most":"less than"} ${n.maximum} element(s)`:n.type==="string"?e=`String must contain ${n.exact?"exactly":n.inclusive?"at most":"under"} ${n.maximum} character(s)`:n.type==="number"?e=`Number must be ${n.exact?"exactly":n.inclusive?"less than or equal to":"less than"} ${n.maximum}`:n.type==="bigint"?e=`BigInt must be ${n.exact?"exactly":n.inclusive?"less than or equal to":"less than"} ${n.maximum}`:n.type==="date"?e=`Date must be ${n.exact?"exactly":n.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(n.maximum))}`:e="Invalid input";break;case G.custom:e="Invalid input";break;case G.invalid_intersection_types:e="Intersection results could not be merged";break;case G.not_multiple_of:e=`Number must be a multiple of ${n.multipleOf}`;break;case G.not_finite:e="Number must be finite";break;default:e=s.defaultError,$e.assertNever(n)}return{message:e}};let jE=Gi;function VP(n){jE=n}function no(){return jE}const io=n=>{const{data:s,path:e,errorMaps:t,issueData:i}=n,a=[...e,...i.path||[]],o={...i,path:a};if(i.message!==void 0)return{...i,path:a,message:i.message};let l="";const d=t.filter(h=>!!h).slice().reverse();for(const h of d)l=h(o,{data:s,defaultError:l}).message;return{...i,path:a,message:l}},CP=[];function x(n,s){const e=no(),t=io({issueData:s,data:n.data,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,e,e===Gi?void 0:Gi].filter(i=>!!i)});n.common.issues.push(t)}class Ot{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(s,e){const t=[];for(const i of e){if(i.status==="aborted")return ie;i.status==="dirty"&&s.dirty(),t.push(i.value)}return{status:s.value,value:t}}static async mergeObjectAsync(s,e){const t=[];for(const i of e){const a=await i.key,o=await i.value;t.push({key:a,value:o})}return Ot.mergeObjectSync(s,t)}static mergeObjectSync(s,e){const t={};for(const i of e){const{key:a,value:o}=i;if(a.status==="aborted"||o.status==="aborted")return ie;a.status==="dirty"&&s.dirty(),o.status==="dirty"&&s.dirty(),a.value!=="__proto__"&&(typeof o.value<"u"||i.alwaysSet)&&(t[a.value]=o.value)}return{status:s.value,value:t}}}const ie=Object.freeze({status:"aborted"}),$i=n=>({status:"dirty",value:n}),Lt=n=>({status:"valid",value:n}),jd=n=>n.status==="aborted",kd=n=>n.status==="dirty",Un=n=>n.status==="valid",Oa=n=>typeof Promise<"u"&&n instanceof Promise;function ao(n,s,e,t){if(e==="a"&&!t)throw new TypeError("Private accessor was defined without a getter");if(typeof s=="function"?n!==s||!t:!s.has(n))throw new TypeError("Cannot read private member from an object whose class did not declare it");return e==="m"?t:e==="a"?t.call(n):t?t.value:s.get(n)}function kE(n,s,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 s=="function"?n!==s||!i:!s.has(n))throw new TypeError("Cannot write private member to an object whose class did not declare it");return t==="a"?i.call(n,e):i?i.value=e:s.set(n,e),e}typeof SuppressedError=="function"&&SuppressedError;var z;(function(n){n.errToObj=s=>typeof s=="string"?{message:s}:s||{},n.toString=s=>typeof s=="string"?s:s==null?void 0:s.message})(z||(z={}));var Va,Ca;class Cr{constructor(s,e,t,i){this._cachedPath=[],this.parent=s,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 ZE=(n,s)=>{if(Un(s))return{success:!0,data:s.value};if(!n.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 Jt(n.common.issues);return this._error=e,this._error}}};function ce(n){if(!n)return{};const{errorMap:s,invalid_type_error:e,required_error:t,description:i}=n;if(s&&(e||t))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return s?{errorMap:s,description:i}:{errorMap:(o,l)=>{var d,h;const{message:y}=n;return o.code==="invalid_enum_value"?{message:y??l.defaultError}:typeof l.data>"u"?{message:(d=y??t)!==null&&d!==void 0?d:l.defaultError}:o.code!=="invalid_type"?{message:l.defaultError}:{message:(h=y??e)!==null&&h!==void 0?h:l.defaultError}},description:i}}class fe{get description(){return this._def.description}_getType(s){return Yr(s.data)}_getOrReturnCtx(s,e){return e||{common:s.parent.common,data:s.data,parsedType:Yr(s.data),schemaErrorMap:this._def.errorMap,path:s.path,parent:s.parent}}_processInputParams(s){return{status:new Ot,ctx:{common:s.parent.common,data:s.data,parsedType:Yr(s.data),schemaErrorMap:this._def.errorMap,path:s.path,parent:s.parent}}}_parseSync(s){const e=this._parse(s);if(Oa(e))throw new Error("Synchronous parse encountered promise.");return e}_parseAsync(s){const e=this._parse(s);return Promise.resolve(e)}parse(s,e){const t=this.safeParse(s,e);if(t.success)return t.data;throw t.error}safeParse(s,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:s,parsedType:Yr(s)},a=this._parseSync({data:s,path:i.path,parent:i});return ZE(i,a)}"~validate"(s){var e,t;const i={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:s,parsedType:Yr(s)};if(!this["~standard"].async)try{const a=this._parseSync({data:s,path:[],parent:i});return Un(a)?{value:a.value}:{issues:i.common.issues}}catch(a){!((t=(e=a==null?void 0:a.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:s,path:[],parent:i}).then(a=>Un(a)?{value:a.value}:{issues:i.common.issues})}async parseAsync(s,e){const t=await this.safeParseAsync(s,e);if(t.success)return t.data;throw t.error}async safeParseAsync(s,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:s,parsedType:Yr(s)},i=this._parse({data:s,path:t.path,parent:t}),a=await(Oa(i)?i:Promise.resolve(i));return ZE(t,a)}refine(s,e){const t=i=>typeof e=="string"||typeof e>"u"?{message:e}:typeof e=="function"?e(i):e;return this._refinement((i,a)=>{const o=s(i),l=()=>a.addIssue({code:G.custom,...t(i)});return typeof Promise<"u"&&o instanceof Promise?o.then(d=>d?!0:(l(),!1)):o?!0:(l(),!1)})}refinement(s,e){return this._refinement((t,i)=>s(t)?!0:(i.addIssue(typeof e=="function"?e(t,i):e),!1))}_refinement(s){return new Rr({schema:this,typeName:re.ZodEffects,effect:{type:"refinement",refinement:s}})}superRefine(s){return this._refinement(s)}constructor(s){this.spa=this.safeParseAsync,this._def=s,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 Br.create(this,this._def)}nullable(){return mn.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Er.create(this)}promise(){return ji.create(this,this._def)}or(s){return _a.create([this,s],this._def)}and(s){return Na.create(this,s,this._def)}transform(s){return new Rr({...ce(this._def),schema:this,typeName:re.ZodEffects,effect:{type:"transform",transform:s}})}default(s){const e=typeof s=="function"?s:()=>s;return new Ua({...ce(this._def),innerType:this,defaultValue:e,typeName:re.ZodDefault})}brand(){return new Jd({typeName:re.ZodBranded,type:this,...ce(this._def)})}catch(s){const e=typeof s=="function"?s:()=>s;return new xa({...ce(this._def),innerType:this,catchValue:e,typeName:re.ZodCatch})}describe(s){const e=this.constructor;return new e({...this._def,description:s})}pipe(s){return ja.create(this,s)}readonly(){return ka.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const wP=/^c[^\s-]{8,}$/i,BP=/^[0-9a-z]+$/,MP=/^[0-9A-HJKMNP-TV-Z]{26}$/i,_P=/^[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,NP=/^[a-z0-9_-]{21}$/i,LP=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,GP=/^[-+]?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)?)??$/,$P=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,FP="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let Zd;const UP=/^(?:(?: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])$/,xP=/^(?:(?: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])$/,jP=/^(([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]))$/,kP=/^(([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])$/,ZP=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,qP=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,qE="((\\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])))",JP=new RegExp(`^${qE}$`);function JE(n){let s="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return n.precision?s=`${s}\\.\\d{${n.precision}}`:n.precision==null&&(s=`${s}(\\.\\d+)?`),s}function WP(n){return new RegExp(`^${JE(n)}$`)}function WE(n){let s=`${qE}T${JE(n)}`;const e=[];return e.push(n.local?"Z?":"Z"),n.offset&&e.push("([+-]\\d{2}:?\\d{2})"),s=`${s}(${e.join("|")})`,new RegExp(`^${s}$`)}function YP(n,s){return!!((s==="v4"||!s)&&UP.test(n)||(s==="v6"||!s)&&jP.test(n))}function HP(n,s){if(!LP.test(n))return!1;try{const[e]=n.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||s&&i.alg!==s)}catch{return!1}}function zP(n,s){return!!((s==="v4"||!s)&&xP.test(n)||(s==="v6"||!s)&&kP.test(n))}class vr extends fe{_parse(s){if(this._def.coerce&&(s.data=String(s.data)),this._getType(s)!==Z.string){const a=this._getOrReturnCtx(s);return x(a,{code:G.invalid_type,expected:Z.string,received:a.parsedType}),ie}const t=new Ot;let i;for(const a of this._def.checks)if(a.kind==="min")s.data.length<a.value&&(i=this._getOrReturnCtx(s,i),x(i,{code:G.too_small,minimum:a.value,type:"string",inclusive:!0,exact:!1,message:a.message}),t.dirty());else if(a.kind==="max")s.data.length>a.value&&(i=this._getOrReturnCtx(s,i),x(i,{code:G.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!1,message:a.message}),t.dirty());else if(a.kind==="length"){const o=s.data.length>a.value,l=s.data.length<a.value;(o||l)&&(i=this._getOrReturnCtx(s,i),o?x(i,{code:G.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!0,message:a.message}):l&&x(i,{code:G.too_small,minimum:a.value,type:"string",inclusive:!0,exact:!0,message:a.message}),t.dirty())}else if(a.kind==="email")$P.test(s.data)||(i=this._getOrReturnCtx(s,i),x(i,{validation:"email",code:G.invalid_string,message:a.message}),t.dirty());else if(a.kind==="emoji")Zd||(Zd=new RegExp(FP,"u")),Zd.test(s.data)||(i=this._getOrReturnCtx(s,i),x(i,{validation:"emoji",code:G.invalid_string,message:a.message}),t.dirty());else if(a.kind==="uuid")_P.test(s.data)||(i=this._getOrReturnCtx(s,i),x(i,{validation:"uuid",code:G.invalid_string,message:a.message}),t.dirty());else if(a.kind==="nanoid")NP.test(s.data)||(i=this._getOrReturnCtx(s,i),x(i,{validation:"nanoid",code:G.invalid_string,message:a.message}),t.dirty());else if(a.kind==="cuid")wP.test(s.data)||(i=this._getOrReturnCtx(s,i),x(i,{validation:"cuid",code:G.invalid_string,message:a.message}),t.dirty());else if(a.kind==="cuid2")BP.test(s.data)||(i=this._getOrReturnCtx(s,i),x(i,{validation:"cuid2",code:G.invalid_string,message:a.message}),t.dirty());else if(a.kind==="ulid")MP.test(s.data)||(i=this._getOrReturnCtx(s,i),x(i,{validation:"ulid",code:G.invalid_string,message:a.message}),t.dirty());else if(a.kind==="url")try{new URL(s.data)}catch{i=this._getOrReturnCtx(s,i),x(i,{validation:"url",code:G.invalid_string,message:a.message}),t.dirty()}else a.kind==="regex"?(a.regex.lastIndex=0,a.regex.test(s.data)||(i=this._getOrReturnCtx(s,i),x(i,{validation:"regex",code:G.invalid_string,message:a.message}),t.dirty())):a.kind==="trim"?s.data=s.data.trim():a.kind==="includes"?s.data.includes(a.value,a.position)||(i=this._getOrReturnCtx(s,i),x(i,{code:G.invalid_string,validation:{includes:a.value,position:a.position},message:a.message}),t.dirty()):a.kind==="toLowerCase"?s.data=s.data.toLowerCase():a.kind==="toUpperCase"?s.data=s.data.toUpperCase():a.kind==="startsWith"?s.data.startsWith(a.value)||(i=this._getOrReturnCtx(s,i),x(i,{code:G.invalid_string,validation:{startsWith:a.value},message:a.message}),t.dirty()):a.kind==="endsWith"?s.data.endsWith(a.value)||(i=this._getOrReturnCtx(s,i),x(i,{code:G.invalid_string,validation:{endsWith:a.value},message:a.message}),t.dirty()):a.kind==="datetime"?WE(a).test(s.data)||(i=this._getOrReturnCtx(s,i),x(i,{code:G.invalid_string,validation:"datetime",message:a.message}),t.dirty()):a.kind==="date"?JP.test(s.data)||(i=this._getOrReturnCtx(s,i),x(i,{code:G.invalid_string,validation:"date",message:a.message}),t.dirty()):a.kind==="time"?WP(a).test(s.data)||(i=this._getOrReturnCtx(s,i),x(i,{code:G.invalid_string,validation:"time",message:a.message}),t.dirty()):a.kind==="duration"?GP.test(s.data)||(i=this._getOrReturnCtx(s,i),x(i,{validation:"duration",code:G.invalid_string,message:a.message}),t.dirty()):a.kind==="ip"?YP(s.data,a.version)||(i=this._getOrReturnCtx(s,i),x(i,{validation:"ip",code:G.invalid_string,message:a.message}),t.dirty()):a.kind==="jwt"?HP(s.data,a.alg)||(i=this._getOrReturnCtx(s,i),x(i,{validation:"jwt",code:G.invalid_string,message:a.message}),t.dirty()):a.kind==="cidr"?zP(s.data,a.version)||(i=this._getOrReturnCtx(s,i),x(i,{validation:"cidr",code:G.invalid_string,message:a.message}),t.dirty()):a.kind==="base64"?ZP.test(s.data)||(i=this._getOrReturnCtx(s,i),x(i,{validation:"base64",code:G.invalid_string,message:a.message}),t.dirty()):a.kind==="base64url"?qP.test(s.data)||(i=this._getOrReturnCtx(s,i),x(i,{validation:"base64url",code:G.invalid_string,message:a.message}),t.dirty()):$e.assertNever(a);return{status:t.value,value:s.data}}_regex(s,e,t){return this.refinement(i=>s.test(i),{validation:e,code:G.invalid_string,...z.errToObj(t)})}_addCheck(s){return new vr({...this._def,checks:[...this._def.checks,s]})}email(s){return this._addCheck({kind:"email",...z.errToObj(s)})}url(s){return this._addCheck({kind:"url",...z.errToObj(s)})}emoji(s){return this._addCheck({kind:"emoji",...z.errToObj(s)})}uuid(s){return this._addCheck({kind:"uuid",...z.errToObj(s)})}nanoid(s){return this._addCheck({kind:"nanoid",...z.errToObj(s)})}cuid(s){return this._addCheck({kind:"cuid",...z.errToObj(s)})}cuid2(s){return this._addCheck({kind:"cuid2",...z.errToObj(s)})}ulid(s){return this._addCheck({kind:"ulid",...z.errToObj(s)})}base64(s){return this._addCheck({kind:"base64",...z.errToObj(s)})}base64url(s){return this._addCheck({kind:"base64url",...z.errToObj(s)})}jwt(s){return this._addCheck({kind:"jwt",...z.errToObj(s)})}ip(s){return this._addCheck({kind:"ip",...z.errToObj(s)})}cidr(s){return this._addCheck({kind:"cidr",...z.errToObj(s)})}datetime(s){var e,t;return typeof s=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:s}):this._addCheck({kind:"datetime",precision:typeof(s==null?void 0:s.precision)>"u"?null:s==null?void 0:s.precision,offset:(e=s==null?void 0:s.offset)!==null&&e!==void 0?e:!1,local:(t=s==null?void 0:s.local)!==null&&t!==void 0?t:!1,...z.errToObj(s==null?void 0:s.message)})}date(s){return this._addCheck({kind:"date",message:s})}time(s){return typeof s=="string"?this._addCheck({kind:"time",precision:null,message:s}):this._addCheck({kind:"time",precision:typeof(s==null?void 0:s.precision)>"u"?null:s==null?void 0:s.precision,...z.errToObj(s==null?void 0:s.message)})}duration(s){return this._addCheck({kind:"duration",...z.errToObj(s)})}regex(s,e){return this._addCheck({kind:"regex",regex:s,...z.errToObj(e)})}includes(s,e){return this._addCheck({kind:"includes",value:s,position:e==null?void 0:e.position,...z.errToObj(e==null?void 0:e.message)})}startsWith(s,e){return this._addCheck({kind:"startsWith",value:s,...z.errToObj(e)})}endsWith(s,e){return this._addCheck({kind:"endsWith",value:s,...z.errToObj(e)})}min(s,e){return this._addCheck({kind:"min",value:s,...z.errToObj(e)})}max(s,e){return this._addCheck({kind:"max",value:s,...z.errToObj(e)})}length(s,e){return this._addCheck({kind:"length",value:s,...z.errToObj(e)})}nonempty(s){return this.min(1,z.errToObj(s))}trim(){return new vr({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new vr({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new vr({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(s=>s.kind==="datetime")}get isDate(){return!!this._def.checks.find(s=>s.kind==="date")}get isTime(){return!!this._def.checks.find(s=>s.kind==="time")}get isDuration(){return!!this._def.checks.find(s=>s.kind==="duration")}get isEmail(){return!!this._def.checks.find(s=>s.kind==="email")}get isURL(){return!!this._def.checks.find(s=>s.kind==="url")}get isEmoji(){return!!this._def.checks.find(s=>s.kind==="emoji")}get isUUID(){return!!this._def.checks.find(s=>s.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(s=>s.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(s=>s.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(s=>s.kind==="cuid2")}get isULID(){return!!this._def.checks.find(s=>s.kind==="ulid")}get isIP(){return!!this._def.checks.find(s=>s.kind==="ip")}get isCIDR(){return!!this._def.checks.find(s=>s.kind==="cidr")}get isBase64(){return!!this._def.checks.find(s=>s.kind==="base64")}get isBase64url(){return!!this._def.checks.find(s=>s.kind==="base64url")}get minLength(){let s=null;for(const e of this._def.checks)e.kind==="min"&&(s===null||e.value>s)&&(s=e.value);return s}get maxLength(){let s=null;for(const e of this._def.checks)e.kind==="max"&&(s===null||e.value<s)&&(s=e.value);return s}}vr.create=n=>{var s;return new vr({checks:[],typeName:re.ZodString,coerce:(s=n==null?void 0:n.coerce)!==null&&s!==void 0?s:!1,...ce(n)})};function KP(n,s){const e=(n.toString().split(".")[1]||"").length,t=(s.toString().split(".")[1]||"").length,i=e>t?e:t,a=parseInt(n.toFixed(i).replace(".","")),o=parseInt(s.toFixed(i).replace(".",""));return a%o/Math.pow(10,i)}class hn extends fe{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(s){if(this._def.coerce&&(s.data=Number(s.data)),this._getType(s)!==Z.number){const a=this._getOrReturnCtx(s);return x(a,{code:G.invalid_type,expected:Z.number,received:a.parsedType}),ie}let t;const i=new Ot;for(const a of this._def.checks)a.kind==="int"?$e.isInteger(s.data)||(t=this._getOrReturnCtx(s,t),x(t,{code:G.invalid_type,expected:"integer",received:"float",message:a.message}),i.dirty()):a.kind==="min"?(a.inclusive?s.data<a.value:s.data<=a.value)&&(t=this._getOrReturnCtx(s,t),x(t,{code:G.too_small,minimum:a.value,type:"number",inclusive:a.inclusive,exact:!1,message:a.message}),i.dirty()):a.kind==="max"?(a.inclusive?s.data>a.value:s.data>=a.value)&&(t=this._getOrReturnCtx(s,t),x(t,{code:G.too_big,maximum:a.value,type:"number",inclusive:a.inclusive,exact:!1,message:a.message}),i.dirty()):a.kind==="multipleOf"?KP(s.data,a.value)!==0&&(t=this._getOrReturnCtx(s,t),x(t,{code:G.not_multiple_of,multipleOf:a.value,message:a.message}),i.dirty()):a.kind==="finite"?Number.isFinite(s.data)||(t=this._getOrReturnCtx(s,t),x(t,{code:G.not_finite,message:a.message}),i.dirty()):$e.assertNever(a);return{status:i.value,value:s.data}}gte(s,e){return this.setLimit("min",s,!0,z.toString(e))}gt(s,e){return this.setLimit("min",s,!1,z.toString(e))}lte(s,e){return this.setLimit("max",s,!0,z.toString(e))}lt(s,e){return this.setLimit("max",s,!1,z.toString(e))}setLimit(s,e,t,i){return new hn({...this._def,checks:[...this._def.checks,{kind:s,value:e,inclusive:t,message:z.toString(i)}]})}_addCheck(s){return new hn({...this._def,checks:[...this._def.checks,s]})}int(s){return this._addCheck({kind:"int",message:z.toString(s)})}positive(s){return this._addCheck({kind:"min",value:0,inclusive:!1,message:z.toString(s)})}negative(s){return this._addCheck({kind:"max",value:0,inclusive:!1,message:z.toString(s)})}nonpositive(s){return this._addCheck({kind:"max",value:0,inclusive:!0,message:z.toString(s)})}nonnegative(s){return this._addCheck({kind:"min",value:0,inclusive:!0,message:z.toString(s)})}multipleOf(s,e){return this._addCheck({kind:"multipleOf",value:s,message:z.toString(e)})}finite(s){return this._addCheck({kind:"finite",message:z.toString(s)})}safe(s){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:z.toString(s)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:z.toString(s)})}get minValue(){let s=null;for(const e of this._def.checks)e.kind==="min"&&(s===null||e.value>s)&&(s=e.value);return s}get maxValue(){let s=null;for(const e of this._def.checks)e.kind==="max"&&(s===null||e.value<s)&&(s=e.value);return s}get isInt(){return!!this._def.checks.find(s=>s.kind==="int"||s.kind==="multipleOf"&&$e.isInteger(s.value))}get isFinite(){let s=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"&&(s===null||t.value<s)&&(s=t.value)}return Number.isFinite(e)&&Number.isFinite(s)}}hn.create=n=>new hn({checks:[],typeName:re.ZodNumber,coerce:(n==null?void 0:n.coerce)||!1,...ce(n)});class yn extends fe{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(s){if(this._def.coerce)try{s.data=BigInt(s.data)}catch{return this._getInvalidInput(s)}if(this._getType(s)!==Z.bigint)return this._getInvalidInput(s);let t;const i=new Ot;for(const a of this._def.checks)a.kind==="min"?(a.inclusive?s.data<a.value:s.data<=a.value)&&(t=this._getOrReturnCtx(s,t),x(t,{code:G.too_small,type:"bigint",minimum:a.value,inclusive:a.inclusive,message:a.message}),i.dirty()):a.kind==="max"?(a.inclusive?s.data>a.value:s.data>=a.value)&&(t=this._getOrReturnCtx(s,t),x(t,{code:G.too_big,type:"bigint",maximum:a.value,inclusive:a.inclusive,message:a.message}),i.dirty()):a.kind==="multipleOf"?s.data%a.value!==BigInt(0)&&(t=this._getOrReturnCtx(s,t),x(t,{code:G.not_multiple_of,multipleOf:a.value,message:a.message}),i.dirty()):$e.assertNever(a);return{status:i.value,value:s.data}}_getInvalidInput(s){const e=this._getOrReturnCtx(s);return x(e,{code:G.invalid_type,expected:Z.bigint,received:e.parsedType}),ie}gte(s,e){return this.setLimit("min",s,!0,z.toString(e))}gt(s,e){return this.setLimit("min",s,!1,z.toString(e))}lte(s,e){return this.setLimit("max",s,!0,z.toString(e))}lt(s,e){return this.setLimit("max",s,!1,z.toString(e))}setLimit(s,e,t,i){return new yn({...this._def,checks:[...this._def.checks,{kind:s,value:e,inclusive:t,message:z.toString(i)}]})}_addCheck(s){return new yn({...this._def,checks:[...this._def.checks,s]})}positive(s){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:z.toString(s)})}negative(s){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:z.toString(s)})}nonpositive(s){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:z.toString(s)})}nonnegative(s){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:z.toString(s)})}multipleOf(s,e){return this._addCheck({kind:"multipleOf",value:s,message:z.toString(e)})}get minValue(){let s=null;for(const e of this._def.checks)e.kind==="min"&&(s===null||e.value>s)&&(s=e.value);return s}get maxValue(){let s=null;for(const e of this._def.checks)e.kind==="max"&&(s===null||e.value<s)&&(s=e.value);return s}}yn.create=n=>{var s;return new yn({checks:[],typeName:re.ZodBigInt,coerce:(s=n==null?void 0:n.coerce)!==null&&s!==void 0?s:!1,...ce(n)})};class wa extends fe{_parse(s){if(this._def.coerce&&(s.data=!!s.data),this._getType(s)!==Z.boolean){const t=this._getOrReturnCtx(s);return x(t,{code:G.invalid_type,expected:Z.boolean,received:t.parsedType}),ie}return Lt(s.data)}}wa.create=n=>new wa({typeName:re.ZodBoolean,coerce:(n==null?void 0:n.coerce)||!1,...ce(n)});class xn extends fe{_parse(s){if(this._def.coerce&&(s.data=new Date(s.data)),this._getType(s)!==Z.date){const a=this._getOrReturnCtx(s);return x(a,{code:G.invalid_type,expected:Z.date,received:a.parsedType}),ie}if(isNaN(s.data.getTime())){const a=this._getOrReturnCtx(s);return x(a,{code:G.invalid_date}),ie}const t=new Ot;let i;for(const a of this._def.checks)a.kind==="min"?s.data.getTime()<a.value&&(i=this._getOrReturnCtx(s,i),x(i,{code:G.too_small,message:a.message,inclusive:!0,exact:!1,minimum:a.value,type:"date"}),t.dirty()):a.kind==="max"?s.data.getTime()>a.value&&(i=this._getOrReturnCtx(s,i),x(i,{code:G.too_big,message:a.message,inclusive:!0,exact:!1,maximum:a.value,type:"date"}),t.dirty()):$e.assertNever(a);return{status:t.value,value:new Date(s.data.getTime())}}_addCheck(s){return new xn({...this._def,checks:[...this._def.checks,s]})}min(s,e){return this._addCheck({kind:"min",value:s.getTime(),message:z.toString(e)})}max(s,e){return this._addCheck({kind:"max",value:s.getTime(),message:z.toString(e)})}get minDate(){let s=null;for(const e of this._def.checks)e.kind==="min"&&(s===null||e.value>s)&&(s=e.value);return s!=null?new Date(s):null}get maxDate(){let s=null;for(const e of this._def.checks)e.kind==="max"&&(s===null||e.value<s)&&(s=e.value);return s!=null?new Date(s):null}}xn.create=n=>new xn({checks:[],coerce:(n==null?void 0:n.coerce)||!1,typeName:re.ZodDate,...ce(n)});class so extends fe{_parse(s){if(this._getType(s)!==Z.symbol){const t=this._getOrReturnCtx(s);return x(t,{code:G.invalid_type,expected:Z.symbol,received:t.parsedType}),ie}return Lt(s.data)}}so.create=n=>new so({typeName:re.ZodSymbol,...ce(n)});class Ba extends fe{_parse(s){if(this._getType(s)!==Z.undefined){const t=this._getOrReturnCtx(s);return x(t,{code:G.invalid_type,expected:Z.undefined,received:t.parsedType}),ie}return Lt(s.data)}}Ba.create=n=>new Ba({typeName:re.ZodUndefined,...ce(n)});class Ma extends fe{_parse(s){if(this._getType(s)!==Z.null){const t=this._getOrReturnCtx(s);return x(t,{code:G.invalid_type,expected:Z.null,received:t.parsedType}),ie}return Lt(s.data)}}Ma.create=n=>new Ma({typeName:re.ZodNull,...ce(n)});class Fi extends fe{constructor(){super(...arguments),this._any=!0}_parse(s){return Lt(s.data)}}Fi.create=n=>new Fi({typeName:re.ZodAny,...ce(n)});class jn extends fe{constructor(){super(...arguments),this._unknown=!0}_parse(s){return Lt(s.data)}}jn.create=n=>new jn({typeName:re.ZodUnknown,...ce(n)});class Hr extends fe{_parse(s){const e=this._getOrReturnCtx(s);return x(e,{code:G.invalid_type,expected:Z.never,received:e.parsedType}),ie}}Hr.create=n=>new Hr({typeName:re.ZodNever,...ce(n)});class oo extends fe{_parse(s){if(this._getType(s)!==Z.undefined){const t=this._getOrReturnCtx(s);return x(t,{code:G.invalid_type,expected:Z.void,received:t.parsedType}),ie}return Lt(s.data)}}oo.create=n=>new oo({typeName:re.ZodVoid,...ce(n)});class Er extends fe{_parse(s){const{ctx:e,status:t}=this._processInputParams(s),i=this._def;if(e.parsedType!==Z.array)return x(e,{code:G.invalid_type,expected:Z.array,received:e.parsedType}),ie;if(i.exactLength!==null){const o=e.data.length>i.exactLength.value,l=e.data.length<i.exactLength.value;(o||l)&&(x(e,{code:o?G.too_big:G.too_small,minimum:l?i.exactLength.value:void 0,maximum:o?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&&(x(e,{code:G.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&&(x(e,{code:G.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((o,l)=>i.type._parseAsync(new Cr(e,o,e.path,l)))).then(o=>Ot.mergeArray(t,o));const a=[...e.data].map((o,l)=>i.type._parseSync(new Cr(e,o,e.path,l)));return Ot.mergeArray(t,a)}get element(){return this._def.type}min(s,e){return new Er({...this._def,minLength:{value:s,message:z.toString(e)}})}max(s,e){return new Er({...this._def,maxLength:{value:s,message:z.toString(e)}})}length(s,e){return new Er({...this._def,exactLength:{value:s,message:z.toString(e)}})}nonempty(s){return this.min(1,s)}}Er.create=(n,s)=>new Er({type:n,minLength:null,maxLength:null,exactLength:null,typeName:re.ZodArray,...ce(s)});function Ui(n){if(n instanceof ut){const s={};for(const e in n.shape){const t=n.shape[e];s[e]=Br.create(Ui(t))}return new ut({...n._def,shape:()=>s})}else return n instanceof Er?new Er({...n._def,type:Ui(n.element)}):n instanceof Br?Br.create(Ui(n.unwrap())):n instanceof mn?mn.create(Ui(n.unwrap())):n instanceof wr?wr.create(n.items.map(s=>Ui(s))):n}class ut extends fe{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const s=this._def.shape(),e=$e.objectKeys(s);return this._cached={shape:s,keys:e}}_parse(s){if(this._getType(s)!==Z.object){const h=this._getOrReturnCtx(s);return x(h,{code:G.invalid_type,expected:Z.object,received:h.parsedType}),ie}const{status:t,ctx:i}=this._processInputParams(s),{shape:a,keys:o}=this._getCached(),l=[];if(!(this._def.catchall instanceof Hr&&this._def.unknownKeys==="strip"))for(const h in i.data)o.includes(h)||l.push(h);const d=[];for(const h of o){const y=a[h],f=i.data[h];d.push({key:{status:"valid",value:h},value:y._parse(new Cr(i,f,i.path,h)),alwaysSet:h in i.data})}if(this._def.catchall instanceof Hr){const h=this._def.unknownKeys;if(h==="passthrough")for(const y of l)d.push({key:{status:"valid",value:y},value:{status:"valid",value:i.data[y]}});else if(h==="strict")l.length>0&&(x(i,{code:G.unrecognized_keys,keys:l}),t.dirty());else if(h!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const h=this._def.catchall;for(const y of l){const f=i.data[y];d.push({key:{status:"valid",value:y},value:h._parse(new Cr(i,f,i.path,y)),alwaysSet:y in i.data})}}return i.common.async?Promise.resolve().then(async()=>{const h=[];for(const y of d){const f=await y.key,v=await y.value;h.push({key:f,value:v,alwaysSet:y.alwaysSet})}return h}).then(h=>Ot.mergeObjectSync(t,h)):Ot.mergeObjectSync(t,d)}get shape(){return this._def.shape()}strict(s){return z.errToObj,new ut({...this._def,unknownKeys:"strict",...s!==void 0?{errorMap:(e,t)=>{var i,a,o,l;const d=(o=(a=(i=this._def).errorMap)===null||a===void 0?void 0:a.call(i,e,t).message)!==null&&o!==void 0?o:t.defaultError;return e.code==="unrecognized_keys"?{message:(l=z.errToObj(s).message)!==null&&l!==void 0?l:d}:{message:d}}}:{}})}strip(){return new ut({...this._def,unknownKeys:"strip"})}passthrough(){return new ut({...this._def,unknownKeys:"passthrough"})}extend(s){return new ut({...this._def,shape:()=>({...this._def.shape(),...s})})}merge(s){return new ut({unknownKeys:s._def.unknownKeys,catchall:s._def.catchall,shape:()=>({...this._def.shape(),...s._def.shape()}),typeName:re.ZodObject})}setKey(s,e){return this.augment({[s]:e})}catchall(s){return new ut({...this._def,catchall:s})}pick(s){const e={};return $e.objectKeys(s).forEach(t=>{s[t]&&this.shape[t]&&(e[t]=this.shape[t])}),new ut({...this._def,shape:()=>e})}omit(s){const e={};return $e.objectKeys(this.shape).forEach(t=>{s[t]||(e[t]=this.shape[t])}),new ut({...this._def,shape:()=>e})}deepPartial(){return Ui(this)}partial(s){const e={};return $e.objectKeys(this.shape).forEach(t=>{const i=this.shape[t];s&&!s[t]?e[t]=i:e[t]=i.optional()}),new ut({...this._def,shape:()=>e})}required(s){const e={};return $e.objectKeys(this.shape).forEach(t=>{if(s&&!s[t])e[t]=this.shape[t];else{let a=this.shape[t];for(;a instanceof Br;)a=a._def.innerType;e[t]=a}}),new ut({...this._def,shape:()=>e})}keyof(){return YE($e.objectKeys(this.shape))}}ut.create=(n,s)=>new ut({shape:()=>n,unknownKeys:"strip",catchall:Hr.create(),typeName:re.ZodObject,...ce(s)}),ut.strictCreate=(n,s)=>new ut({shape:()=>n,unknownKeys:"strict",catchall:Hr.create(),typeName:re.ZodObject,...ce(s)}),ut.lazycreate=(n,s)=>new ut({shape:n,unknownKeys:"strip",catchall:Hr.create(),typeName:re.ZodObject,...ce(s)});class _a extends fe{_parse(s){const{ctx:e}=this._processInputParams(s),t=this._def.options;function i(a){for(const l of a)if(l.result.status==="valid")return l.result;for(const l of a)if(l.result.status==="dirty")return e.common.issues.push(...l.ctx.common.issues),l.result;const o=a.map(l=>new Jt(l.ctx.common.issues));return x(e,{code:G.invalid_union,unionErrors:o}),ie}if(e.common.async)return Promise.all(t.map(async a=>{const o={...e,common:{...e.common,issues:[]},parent:null};return{result:await a._parseAsync({data:e.data,path:e.path,parent:o}),ctx:o}})).then(i);{let a;const o=[];for(const d of t){const h={...e,common:{...e.common,issues:[]},parent:null},y=d._parseSync({data:e.data,path:e.path,parent:h});if(y.status==="valid")return y;y.status==="dirty"&&!a&&(a={result:y,ctx:h}),h.common.issues.length&&o.push(h.common.issues)}if(a)return e.common.issues.push(...a.ctx.common.issues),a.result;const l=o.map(d=>new Jt(d));return x(e,{code:G.invalid_union,unionErrors:l}),ie}}get options(){return this._def.options}}_a.create=(n,s)=>new _a({options:n,typeName:re.ZodUnion,...ce(s)});const zr=n=>n instanceof Ga?zr(n.schema):n instanceof Rr?zr(n.innerType()):n instanceof $a?[n.value]:n instanceof fn?n.options:n instanceof Fa?$e.objectValues(n.enum):n instanceof Ua?zr(n._def.innerType):n instanceof Ba?[void 0]:n instanceof Ma?[null]:n instanceof Br?[void 0,...zr(n.unwrap())]:n instanceof mn?[null,...zr(n.unwrap())]:n instanceof Jd||n instanceof ka?zr(n.unwrap()):n instanceof xa?zr(n._def.innerType):[];class lo extends fe{_parse(s){const{ctx:e}=this._processInputParams(s);if(e.parsedType!==Z.object)return x(e,{code:G.invalid_type,expected:Z.object,received:e.parsedType}),ie;const t=this.discriminator,i=e.data[t],a=this.optionsMap.get(i);return a?e.common.async?a._parseAsync({data:e.data,path:e.path,parent:e}):a._parseSync({data:e.data,path:e.path,parent:e}):(x(e,{code:G.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[t]}),ie)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(s,e,t){const i=new Map;for(const a of e){const o=zr(a.shape[s]);if(!o.length)throw new Error(`A discriminator value for key \`${s}\` could not be extracted from all schema options`);for(const l of o){if(i.has(l))throw new Error(`Discriminator property ${String(s)} has duplicate value ${String(l)}`);i.set(l,a)}}return new lo({typeName:re.ZodDiscriminatedUnion,discriminator:s,options:e,optionsMap:i,...ce(t)})}}function qd(n,s){const e=Yr(n),t=Yr(s);if(n===s)return{valid:!0,data:n};if(e===Z.object&&t===Z.object){const i=$e.objectKeys(s),a=$e.objectKeys(n).filter(l=>i.indexOf(l)!==-1),o={...n,...s};for(const l of a){const d=qd(n[l],s[l]);if(!d.valid)return{valid:!1};o[l]=d.data}return{valid:!0,data:o}}else if(e===Z.array&&t===Z.array){if(n.length!==s.length)return{valid:!1};const i=[];for(let a=0;a<n.length;a++){const o=n[a],l=s[a],d=qd(o,l);if(!d.valid)return{valid:!1};i.push(d.data)}return{valid:!0,data:i}}else return e===Z.date&&t===Z.date&&+n==+s?{valid:!0,data:n}:{valid:!1}}class Na extends fe{_parse(s){const{status:e,ctx:t}=this._processInputParams(s),i=(a,o)=>{if(jd(a)||jd(o))return ie;const l=qd(a.value,o.value);return l.valid?((kd(a)||kd(o))&&e.dirty(),{status:e.value,value:l.data}):(x(t,{code:G.invalid_intersection_types}),ie)};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(([a,o])=>i(a,o)):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}))}}Na.create=(n,s,e)=>new Na({left:n,right:s,typeName:re.ZodIntersection,...ce(e)});class wr extends fe{_parse(s){const{status:e,ctx:t}=this._processInputParams(s);if(t.parsedType!==Z.array)return x(t,{code:G.invalid_type,expected:Z.array,received:t.parsedType}),ie;if(t.data.length<this._def.items.length)return x(t,{code:G.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),ie;!this._def.rest&&t.data.length>this._def.items.length&&(x(t,{code:G.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),e.dirty());const a=[...t.data].map((o,l)=>{const d=this._def.items[l]||this._def.rest;return d?d._parse(new Cr(t,o,t.path,l)):null}).filter(o=>!!o);return t.common.async?Promise.all(a).then(o=>Ot.mergeArray(e,o)):Ot.mergeArray(e,a)}get items(){return this._def.items}rest(s){return new wr({...this._def,rest:s})}}wr.create=(n,s)=>{if(!Array.isArray(n))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new wr({items:n,typeName:re.ZodTuple,rest:null,...ce(s)})};class La extends fe{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(s){const{status:e,ctx:t}=this._processInputParams(s);if(t.parsedType!==Z.object)return x(t,{code:G.invalid_type,expected:Z.object,received:t.parsedType}),ie;const i=[],a=this._def.keyType,o=this._def.valueType;for(const l in t.data)i.push({key:a._parse(new Cr(t,l,t.path,l)),value:o._parse(new Cr(t,t.data[l],t.path,l)),alwaysSet:l in t.data});return t.common.async?Ot.mergeObjectAsync(e,i):Ot.mergeObjectSync(e,i)}get element(){return this._def.valueType}static create(s,e,t){return e instanceof fe?new La({keyType:s,valueType:e,typeName:re.ZodRecord,...ce(t)}):new La({keyType:vr.create(),valueType:s,typeName:re.ZodRecord,...ce(e)})}}class uo extends fe{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(s){const{status:e,ctx:t}=this._processInputParams(s);if(t.parsedType!==Z.map)return x(t,{code:G.invalid_type,expected:Z.map,received:t.parsedType}),ie;const i=this._def.keyType,a=this._def.valueType,o=[...t.data.entries()].map(([l,d],h)=>({key:i._parse(new Cr(t,l,t.path,[h,"key"])),value:a._parse(new Cr(t,d,t.path,[h,"value"]))}));if(t.common.async){const l=new Map;return Promise.resolve().then(async()=>{for(const d of o){const h=await d.key,y=await d.value;if(h.status==="aborted"||y.status==="aborted")return ie;(h.status==="dirty"||y.status==="dirty")&&e.dirty(),l.set(h.value,y.value)}return{status:e.value,value:l}})}else{const l=new Map;for(const d of o){const h=d.key,y=d.value;if(h.status==="aborted"||y.status==="aborted")return ie;(h.status==="dirty"||y.status==="dirty")&&e.dirty(),l.set(h.value,y.value)}return{status:e.value,value:l}}}}uo.create=(n,s,e)=>new uo({valueType:s,keyType:n,typeName:re.ZodMap,...ce(e)});class kn extends fe{_parse(s){const{status:e,ctx:t}=this._processInputParams(s);if(t.parsedType!==Z.set)return x(t,{code:G.invalid_type,expected:Z.set,received:t.parsedType}),ie;const i=this._def;i.minSize!==null&&t.data.size<i.minSize.value&&(x(t,{code:G.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&&(x(t,{code:G.too_big,maximum:i.maxSize.value,type:"set",inclusive:!0,exact:!1,message:i.maxSize.message}),e.dirty());const a=this._def.valueType;function o(d){const h=new Set;for(const y of d){if(y.status==="aborted")return ie;y.status==="dirty"&&e.dirty(),h.add(y.value)}return{status:e.value,value:h}}const l=[...t.data.values()].map((d,h)=>a._parse(new Cr(t,d,t.path,h)));return t.common.async?Promise.all(l).then(d=>o(d)):o(l)}min(s,e){return new kn({...this._def,minSize:{value:s,message:z.toString(e)}})}max(s,e){return new kn({...this._def,maxSize:{value:s,message:z.toString(e)}})}size(s,e){return this.min(s,e).max(s,e)}nonempty(s){return this.min(1,s)}}kn.create=(n,s)=>new kn({valueType:n,minSize:null,maxSize:null,typeName:re.ZodSet,...ce(s)});class xi extends fe{constructor(){super(...arguments),this.validate=this.implement}_parse(s){const{ctx:e}=this._processInputParams(s);if(e.parsedType!==Z.function)return x(e,{code:G.invalid_type,expected:Z.function,received:e.parsedType}),ie;function t(l,d){return io({data:l,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,no(),Gi].filter(h=>!!h),issueData:{code:G.invalid_arguments,argumentsError:d}})}function i(l,d){return io({data:l,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,no(),Gi].filter(h=>!!h),issueData:{code:G.invalid_return_type,returnTypeError:d}})}const a={errorMap:e.common.contextualErrorMap},o=e.data;if(this._def.returns instanceof ji){const l=this;return Lt(async function(...d){const h=new Jt([]),y=await l._def.args.parseAsync(d,a).catch(R=>{throw h.addIssue(t(d,R)),h}),f=await Reflect.apply(o,this,y);return await l._def.returns._def.type.parseAsync(f,a).catch(R=>{throw h.addIssue(i(f,R)),h})})}else{const l=this;return Lt(function(...d){const h=l._def.args.safeParse(d,a);if(!h.success)throw new Jt([t(d,h.error)]);const y=Reflect.apply(o,this,h.data),f=l._def.returns.safeParse(y,a);if(!f.success)throw new Jt([i(y,f.error)]);return f.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...s){return new xi({...this._def,args:wr.create(s).rest(jn.create())})}returns(s){return new xi({...this._def,returns:s})}implement(s){return this.parse(s)}strictImplement(s){return this.parse(s)}static create(s,e,t){return new xi({args:s||wr.create([]).rest(jn.create()),returns:e||jn.create(),typeName:re.ZodFunction,...ce(t)})}}class Ga extends fe{get schema(){return this._def.getter()}_parse(s){const{ctx:e}=this._processInputParams(s);return this._def.getter()._parse({data:e.data,path:e.path,parent:e})}}Ga.create=(n,s)=>new Ga({getter:n,typeName:re.ZodLazy,...ce(s)});class $a extends fe{_parse(s){if(s.data!==this._def.value){const e=this._getOrReturnCtx(s);return x(e,{received:e.data,code:G.invalid_literal,expected:this._def.value}),ie}return{status:"valid",value:s.data}}get value(){return this._def.value}}$a.create=(n,s)=>new $a({value:n,typeName:re.ZodLiteral,...ce(s)});function YE(n,s){return new fn({values:n,typeName:re.ZodEnum,...ce(s)})}class fn extends fe{constructor(){super(...arguments),Va.set(this,void 0)}_parse(s){if(typeof s.data!="string"){const e=this._getOrReturnCtx(s),t=this._def.values;return x(e,{expected:$e.joinValues(t),received:e.parsedType,code:G.invalid_type}),ie}if(ao(this,Va,"f")||kE(this,Va,new Set(this._def.values),"f"),!ao(this,Va,"f").has(s.data)){const e=this._getOrReturnCtx(s),t=this._def.values;return x(e,{received:e.data,code:G.invalid_enum_value,options:t}),ie}return Lt(s.data)}get options(){return this._def.values}get enum(){const s={};for(const e of this._def.values)s[e]=e;return s}get Values(){const s={};for(const e of this._def.values)s[e]=e;return s}get Enum(){const s={};for(const e of this._def.values)s[e]=e;return s}extract(s,e=this._def){return fn.create(s,{...this._def,...e})}exclude(s,e=this._def){return fn.create(this.options.filter(t=>!s.includes(t)),{...this._def,...e})}}Va=new WeakMap,fn.create=YE;class Fa extends fe{constructor(){super(...arguments),Ca.set(this,void 0)}_parse(s){const e=$e.getValidEnumValues(this._def.values),t=this._getOrReturnCtx(s);if(t.parsedType!==Z.string&&t.parsedType!==Z.number){const i=$e.objectValues(e);return x(t,{expected:$e.joinValues(i),received:t.parsedType,code:G.invalid_type}),ie}if(ao(this,Ca,"f")||kE(this,Ca,new Set($e.getValidEnumValues(this._def.values)),"f"),!ao(this,Ca,"f").has(s.data)){const i=$e.objectValues(e);return x(t,{received:t.data,code:G.invalid_enum_value,options:i}),ie}return Lt(s.data)}get enum(){return this._def.values}}Ca=new WeakMap,Fa.create=(n,s)=>new Fa({values:n,typeName:re.ZodNativeEnum,...ce(s)});class ji extends fe{unwrap(){return this._def.type}_parse(s){const{ctx:e}=this._processInputParams(s);if(e.parsedType!==Z.promise&&e.common.async===!1)return x(e,{code:G.invalid_type,expected:Z.promise,received:e.parsedType}),ie;const t=e.parsedType===Z.promise?e.data:Promise.resolve(e.data);return Lt(t.then(i=>this._def.type.parseAsync(i,{path:e.path,errorMap:e.common.contextualErrorMap})))}}ji.create=(n,s)=>new ji({type:n,typeName:re.ZodPromise,...ce(s)});class Rr extends fe{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===re.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(s){const{status:e,ctx:t}=this._processInputParams(s),i=this._def.effect||null,a={addIssue:o=>{x(t,o),o.fatal?e.abort():e.dirty()},get path(){return t.path}};if(a.addIssue=a.addIssue.bind(a),i.type==="preprocess"){const o=i.transform(t.data,a);if(t.common.async)return Promise.resolve(o).then(async l=>{if(e.value==="aborted")return ie;const d=await this._def.schema._parseAsync({data:l,path:t.path,parent:t});return d.status==="aborted"?ie:d.status==="dirty"||e.value==="dirty"?$i(d.value):d});{if(e.value==="aborted")return ie;const l=this._def.schema._parseSync({data:o,path:t.path,parent:t});return l.status==="aborted"?ie:l.status==="dirty"||e.value==="dirty"?$i(l.value):l}}if(i.type==="refinement"){const o=l=>{const d=i.refinement(l,a);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 l};if(t.common.async===!1){const l=this._def.schema._parseSync({data:t.data,path:t.path,parent:t});return l.status==="aborted"?ie:(l.status==="dirty"&&e.dirty(),o(l.value),{status:e.value,value:l.value})}else return this._def.schema._parseAsync({data:t.data,path:t.path,parent:t}).then(l=>l.status==="aborted"?ie:(l.status==="dirty"&&e.dirty(),o(l.value).then(()=>({status:e.value,value:l.value}))))}if(i.type==="transform")if(t.common.async===!1){const o=this._def.schema._parseSync({data:t.data,path:t.path,parent:t});if(!Un(o))return o;const l=i.transform(o.value,a);if(l instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:e.value,value:l}}else return this._def.schema._parseAsync({data:t.data,path:t.path,parent:t}).then(o=>Un(o)?Promise.resolve(i.transform(o.value,a)).then(l=>({status:e.value,value:l})):o);$e.assertNever(i)}}Rr.create=(n,s,e)=>new Rr({schema:n,typeName:re.ZodEffects,effect:s,...ce(e)}),Rr.createWithPreprocess=(n,s,e)=>new Rr({schema:s,effect:{type:"preprocess",transform:n},typeName:re.ZodEffects,...ce(e)});class Br extends fe{_parse(s){return this._getType(s)===Z.undefined?Lt(void 0):this._def.innerType._parse(s)}unwrap(){return this._def.innerType}}Br.create=(n,s)=>new Br({innerType:n,typeName:re.ZodOptional,...ce(s)});class mn extends fe{_parse(s){return this._getType(s)===Z.null?Lt(null):this._def.innerType._parse(s)}unwrap(){return this._def.innerType}}mn.create=(n,s)=>new mn({innerType:n,typeName:re.ZodNullable,...ce(s)});class Ua extends fe{_parse(s){const{ctx:e}=this._processInputParams(s);let t=e.data;return e.parsedType===Z.undefined&&(t=this._def.defaultValue()),this._def.innerType._parse({data:t,path:e.path,parent:e})}removeDefault(){return this._def.innerType}}Ua.create=(n,s)=>new Ua({innerType:n,typeName:re.ZodDefault,defaultValue:typeof s.default=="function"?s.default:()=>s.default,...ce(s)});class xa extends fe{_parse(s){const{ctx:e}=this._processInputParams(s),t={...e,common:{...e.common,issues:[]}},i=this._def.innerType._parse({data:t.data,path:t.path,parent:{...t}});return Oa(i)?i.then(a=>({status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new Jt(t.common.issues)},input:t.data})})):{status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new Jt(t.common.issues)},input:t.data})}}removeCatch(){return this._def.innerType}}xa.create=(n,s)=>new xa({innerType:n,typeName:re.ZodCatch,catchValue:typeof s.catch=="function"?s.catch:()=>s.catch,...ce(s)});class co extends fe{_parse(s){if(this._getType(s)!==Z.nan){const t=this._getOrReturnCtx(s);return x(t,{code:G.invalid_type,expected:Z.nan,received:t.parsedType}),ie}return{status:"valid",value:s.data}}}co.create=n=>new co({typeName:re.ZodNaN,...ce(n)});const XP=Symbol("zod_brand");class Jd extends fe{_parse(s){const{ctx:e}=this._processInputParams(s),t=e.data;return this._def.type._parse({data:t,path:e.path,parent:e})}unwrap(){return this._def.type}}class ja extends fe{_parse(s){const{status:e,ctx:t}=this._processInputParams(s);if(t.common.async)return(async()=>{const a=await this._def.in._parseAsync({data:t.data,path:t.path,parent:t});return a.status==="aborted"?ie:a.status==="dirty"?(e.dirty(),$i(a.value)):this._def.out._parseAsync({data:a.value,path:t.path,parent:t})})();{const i=this._def.in._parseSync({data:t.data,path:t.path,parent:t});return i.status==="aborted"?ie:i.status==="dirty"?(e.dirty(),{status:"dirty",value:i.value}):this._def.out._parseSync({data:i.value,path:t.path,parent:t})}}static create(s,e){return new ja({in:s,out:e,typeName:re.ZodPipeline})}}class ka extends fe{_parse(s){const e=this._def.innerType._parse(s),t=i=>(Un(i)&&(i.value=Object.freeze(i.value)),i);return Oa(e)?e.then(i=>t(i)):t(e)}unwrap(){return this._def.innerType}}ka.create=(n,s)=>new ka({innerType:n,typeName:re.ZodReadonly,...ce(s)});function HE(n,s={},e){return n?Fi.create().superRefine((t,i)=>{var a,o;if(!n(t)){const l=typeof s=="function"?s(t):typeof s=="string"?{message:s}:s,d=(o=(a=l.fatal)!==null&&a!==void 0?a:e)!==null&&o!==void 0?o:!0,h=typeof l=="string"?{message:l}:l;i.addIssue({code:"custom",...h,fatal:d})}}):Fi.create()}const QP={object:ut.lazycreate};var re;(function(n){n.ZodString="ZodString",n.ZodNumber="ZodNumber",n.ZodNaN="ZodNaN",n.ZodBigInt="ZodBigInt",n.ZodBoolean="ZodBoolean",n.ZodDate="ZodDate",n.ZodSymbol="ZodSymbol",n.ZodUndefined="ZodUndefined",n.ZodNull="ZodNull",n.ZodAny="ZodAny",n.ZodUnknown="ZodUnknown",n.ZodNever="ZodNever",n.ZodVoid="ZodVoid",n.ZodArray="ZodArray",n.ZodObject="ZodObject",n.ZodUnion="ZodUnion",n.ZodDiscriminatedUnion="ZodDiscriminatedUnion",n.ZodIntersection="ZodIntersection",n.ZodTuple="ZodTuple",n.ZodRecord="ZodRecord",n.ZodMap="ZodMap",n.ZodSet="ZodSet",n.ZodFunction="ZodFunction",n.ZodLazy="ZodLazy",n.ZodLiteral="ZodLiteral",n.ZodEnum="ZodEnum",n.ZodEffects="ZodEffects",n.ZodNativeEnum="ZodNativeEnum",n.ZodOptional="ZodOptional",n.ZodNullable="ZodNullable",n.ZodDefault="ZodDefault",n.ZodCatch="ZodCatch",n.ZodPromise="ZodPromise",n.ZodBranded="ZodBranded",n.ZodPipeline="ZodPipeline",n.ZodReadonly="ZodReadonly"})(re||(re={}));const eS=(n,s={message:`Input not instance of ${n.name}`})=>HE(e=>e instanceof n,s),po=vr.create,Wd=hn.create,tS=co.create,rS=yn.create,Yd=wa.create,zE=xn.create,nS=so.create,iS=Ba.create,KE=Ma.create,aS=Fi.create,ho=jn.create,sS=Hr.create,oS=oo.create,lS=Er.create,XE=ut.create,dS=ut.strictCreate,uS=_a.create,cS=lo.create,pS=Na.create,hS=wr.create,QE=La.create,yS=uo.create,fS=kn.create,mS=xi.create,TS=Ga.create,vS=$a.create,eR=fn.create,ES=Fa.create,RS=ji.create,tR=Rr.create,gS=Br.create,bS=mn.create,IS=Rr.createWithPreprocess,AS=ja.create;var p=Object.freeze({__proto__:null,defaultErrorMap:Gi,setErrorMap:VP,getErrorMap:no,makeIssue:io,EMPTY_PATH:CP,addIssueToContext:x,ParseStatus:Ot,INVALID:ie,DIRTY:$i,OK:Lt,isAborted:jd,isDirty:kd,isValid:Un,isAsync:Oa,get util(){return $e},get objectUtil(){return xd},ZodParsedType:Z,getParsedType:Yr,ZodType:fe,datetimeRegex:WE,ZodString:vr,ZodNumber:hn,ZodBigInt:yn,ZodBoolean:wa,ZodDate:xn,ZodSymbol:so,ZodUndefined:Ba,ZodNull:Ma,ZodAny:Fi,ZodUnknown:jn,ZodNever:Hr,ZodVoid:oo,ZodArray:Er,ZodObject:ut,ZodUnion:_a,ZodDiscriminatedUnion:lo,ZodIntersection:Na,ZodTuple:wr,ZodRecord:La,ZodMap:uo,ZodSet:kn,ZodFunction:xi,ZodLazy:Ga,ZodLiteral:$a,ZodEnum:fn,ZodNativeEnum:Fa,ZodPromise:ji,ZodEffects:Rr,ZodTransformer:Rr,ZodOptional:Br,ZodNullable:mn,ZodDefault:Ua,ZodCatch:xa,ZodNaN:co,BRAND:XP,ZodBranded:Jd,ZodPipeline:ja,ZodReadonly:ka,custom:HE,Schema:fe,ZodSchema:fe,late:QP,get ZodFirstPartyTypeKind(){return re},coerce:{string:n=>vr.create({...n,coerce:!0}),number:n=>hn.create({...n,coerce:!0}),boolean:n=>wa.create({...n,coerce:!0}),bigint:n=>yn.create({...n,coerce:!0}),date:n=>xn.create({...n,coerce:!0})},any:aS,array:lS,bigint:rS,boolean:Yd,date:zE,discriminatedUnion:cS,effect:tR,enum:eR,function:mS,instanceof:eS,intersection:pS,lazy:TS,literal:vS,map:yS,nan:tS,nativeEnum:ES,never:sS,null:KE,nullable:bS,number:Wd,object:XE,oboolean:()=>Yd().optional(),onumber:()=>Wd().optional(),optional:gS,ostring:()=>po().optional(),pipeline:AS,preprocess:IS,promise:RS,record:QE,set:fS,strictObject:dS,string:po,symbol:nS,transformer:tR,tuple:hS,undefined:iS,union:uS,unknown:ho,void:oS,NEVER:ie,ZodIssueCode:G,quotelessJson:OP,ZodError:Jt});function rR(n){var i,a,o;if(!(n!=null&&n.dataType))return ho();const s=!n.required,e=n.dataType.isList||!1;let t=ho();if(((i=n.dataType.entity)==null?void 0:i.type)===r.PrimitiveEntity)switch(n.dataType.entity.name){case C.String:t=po();break;case C.KeyValue:t=QE(ho());break;case C.Number:t=Wd();break;case C.Boolean:t=Yd();break;case C.Date:t=zE();break;case C.Enum:{const l=n.dataType.options||[];if(l.length===0)throw new Error(`Enum property ${n.name} has no options`);t=eR(l);break}case C.Null:t=KE();break;case C.UUID:t=po().uuid();break}else if(((a=n.dataType.entity)==null?void 0:a.type)===r.DefinitionEntity)t=nR(n.dataType.entity);else throw new Error(`Unsupported data type validation: ${(o=n.dataType.entity)==null?void 0:o.type}`);return s&&(t=t.nullable()),e&&(t=t.array()),t}function nR(n){const s=XE({});for(const e of n.properties){const t=rR(e);s.shape[e.name]=t}return s}function iR(n){const s=n.rangeStart;return new Date(s.getTime()+Math.random()*(Date.now()-s.getTime()))}function aR(n){const s=n.rangeEnd;return new Date(Math.random()*s.getTime())}function sR(n){const s=n.rangeStart,e=n.rangeEnd;return new Date(s.getTime()+Math.random()*(e.getTime()-s.getTime()))}function oR(n){return n.rangeStart&&n.rangeEnd?sR(n):n.rangeStart?iR(n):n.rangeEnd?aR(n):new Date}var DS=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function lR(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var dR={},yo={},fo={};Object.defineProperty(fo,"__esModule",{value:!0}),fo.default=SS;let mo;const PS=new Uint8Array(16);function SS(){if(!mo&&(mo=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!mo))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return mo(PS)}var Tn={},Zn={},To={};Object.defineProperty(To,"__esModule",{value:!0}),To.default=void 0;var OS=/^(?:[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;To.default=OS,Object.defineProperty(Zn,"__esModule",{value:!0}),Zn.default=void 0;var VS=CS(To);function CS(n){return n&&n.__esModule?n:{default:n}}function wS(n){return typeof n=="string"&&VS.default.test(n)}var BS=wS;Zn.default=BS,Object.defineProperty(Tn,"__esModule",{value:!0}),Tn.default=void 0,Tn.unsafeStringify=uR;var MS=_S(Zn);function _S(n){return n&&n.__esModule?n:{default:n}}const St=[];for(let n=0;n<256;++n)St.push((n+256).toString(16).slice(1));function uR(n,s=0){return St[n[s+0]]+St[n[s+1]]+St[n[s+2]]+St[n[s+3]]+"-"+St[n[s+4]]+St[n[s+5]]+"-"+St[n[s+6]]+St[n[s+7]]+"-"+St[n[s+8]]+St[n[s+9]]+"-"+St[n[s+10]]+St[n[s+11]]+St[n[s+12]]+St[n[s+13]]+St[n[s+14]]+St[n[s+15]]}function NS(n,s=0){const e=uR(n,s);if(!(0,MS.default)(e))throw TypeError("Stringified UUID is invalid");return e}var LS=NS;Tn.default=LS,Object.defineProperty(yo,"__esModule",{value:!0}),yo.default=void 0;var GS=FS(fo),$S=Tn;function FS(n){return n&&n.__esModule?n:{default:n}}let cR,Hd,zd=0,Kd=0;function US(n,s,e){let t=s&&e||0;const i=s||new Array(16);n=n||{};let a=n.node||cR,o=n.clockseq!==void 0?n.clockseq:Hd;if(a==null||o==null){const v=n.random||(n.rng||GS.default)();a==null&&(a=cR=[v[0]|1,v[1],v[2],v[3],v[4],v[5]]),o==null&&(o=Hd=(v[6]<<8|v[7])&16383)}let l=n.msecs!==void 0?n.msecs:Date.now(),d=n.nsecs!==void 0?n.nsecs:Kd+1;const h=l-zd+(d-Kd)/1e4;if(h<0&&n.clockseq===void 0&&(o=o+1&16383),(h<0||l>zd)&&n.nsecs===void 0&&(d=0),d>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");zd=l,Kd=d,Hd=o,l+=122192928e5;const y=((l&268435455)*1e4+d)%4294967296;i[t++]=y>>>24&255,i[t++]=y>>>16&255,i[t++]=y>>>8&255,i[t++]=y&255;const f=l/4294967296*1e4&268435455;i[t++]=f>>>8&255,i[t++]=f&255,i[t++]=f>>>24&15|16,i[t++]=f>>>16&255,i[t++]=o>>>8|128,i[t++]=o&255;for(let v=0;v<6;++v)i[t+v]=a[v];return s||(0,$S.unsafeStringify)(i)}var xS=US;yo.default=xS;var vo={},vn={},Za={};Object.defineProperty(Za,"__esModule",{value:!0}),Za.default=void 0;var jS=kS(Zn);function kS(n){return n&&n.__esModule?n:{default:n}}function ZS(n){if(!(0,jS.default)(n))throw TypeError("Invalid UUID");let s;const e=new Uint8Array(16);return e[0]=(s=parseInt(n.slice(0,8),16))>>>24,e[1]=s>>>16&255,e[2]=s>>>8&255,e[3]=s&255,e[4]=(s=parseInt(n.slice(9,13),16))>>>8,e[5]=s&255,e[6]=(s=parseInt(n.slice(14,18),16))>>>8,e[7]=s&255,e[8]=(s=parseInt(n.slice(19,23),16))>>>8,e[9]=s&255,e[10]=(s=parseInt(n.slice(24,36),16))/1099511627776&255,e[11]=s/4294967296&255,e[12]=s>>>24&255,e[13]=s>>>16&255,e[14]=s>>>8&255,e[15]=s&255,e}var qS=ZS;Za.default=qS,Object.defineProperty(vn,"__esModule",{value:!0}),vn.URL=vn.DNS=void 0,vn.default=zS;var JS=Tn,WS=YS(Za);function YS(n){return n&&n.__esModule?n:{default:n}}function HS(n){n=unescape(encodeURIComponent(n));const s=[];for(let e=0;e<n.length;++e)s.push(n.charCodeAt(e));return s}const pR="6ba7b810-9dad-11d1-80b4-00c04fd430c8";vn.DNS=pR;const hR="6ba7b811-9dad-11d1-80b4-00c04fd430c8";vn.URL=hR;function zS(n,s,e){function t(i,a,o,l){var d;if(typeof i=="string"&&(i=HS(i)),typeof a=="string"&&(a=(0,WS.default)(a)),((d=a)===null||d===void 0?void 0:d.length)!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let h=new Uint8Array(16+i.length);if(h.set(a),h.set(i,a.length),h=e(h),h[6]=h[6]&15|s,h[8]=h[8]&63|128,o){l=l||0;for(let y=0;y<16;++y)o[l+y]=h[y];return o}return(0,JS.unsafeStringify)(h)}try{t.name=n}catch{}return t.DNS=pR,t.URL=hR,t}var Eo={};Object.defineProperty(Eo,"__esModule",{value:!0}),Eo.default=void 0;function KS(n){if(typeof n=="string"){const s=unescape(encodeURIComponent(n));n=new Uint8Array(s.length);for(let e=0;e<s.length;++e)n[e]=s.charCodeAt(e)}return XS(QS(eO(n),n.length*8))}function XS(n){const s=[],e=n.length*32,t="0123456789abcdef";for(let i=0;i<e;i+=8){const a=n[i>>5]>>>i%32&255,o=parseInt(t.charAt(a>>>4&15)+t.charAt(a&15),16);s.push(o)}return s}function yR(n){return(n+64>>>9<<4)+14+1}function QS(n,s){n[s>>5]|=128<<s%32,n[yR(s)-1]=s;let e=1732584193,t=-271733879,i=-1732584194,a=271733878;for(let o=0;o<n.length;o+=16){const l=e,d=t,h=i,y=a;e=Vt(e,t,i,a,n[o],7,-680876936),a=Vt(a,e,t,i,n[o+1],12,-389564586),i=Vt(i,a,e,t,n[o+2],17,606105819),t=Vt(t,i,a,e,n[o+3],22,-1044525330),e=Vt(e,t,i,a,n[o+4],7,-176418897),a=Vt(a,e,t,i,n[o+5],12,1200080426),i=Vt(i,a,e,t,n[o+6],17,-1473231341),t=Vt(t,i,a,e,n[o+7],22,-45705983),e=Vt(e,t,i,a,n[o+8],7,1770035416),a=Vt(a,e,t,i,n[o+9],12,-1958414417),i=Vt(i,a,e,t,n[o+10],17,-42063),t=Vt(t,i,a,e,n[o+11],22,-1990404162),e=Vt(e,t,i,a,n[o+12],7,1804603682),a=Vt(a,e,t,i,n[o+13],12,-40341101),i=Vt(i,a,e,t,n[o+14],17,-1502002290),t=Vt(t,i,a,e,n[o+15],22,1236535329),e=Ct(e,t,i,a,n[o+1],5,-165796510),a=Ct(a,e,t,i,n[o+6],9,-1069501632),i=Ct(i,a,e,t,n[o+11],14,643717713),t=Ct(t,i,a,e,n[o],20,-373897302),e=Ct(e,t,i,a,n[o+5],5,-701558691),a=Ct(a,e,t,i,n[o+10],9,38016083),i=Ct(i,a,e,t,n[o+15],14,-660478335),t=Ct(t,i,a,e,n[o+4],20,-405537848),e=Ct(e,t,i,a,n[o+9],5,568446438),a=Ct(a,e,t,i,n[o+14],9,-1019803690),i=Ct(i,a,e,t,n[o+3],14,-187363961),t=Ct(t,i,a,e,n[o+8],20,1163531501),e=Ct(e,t,i,a,n[o+13],5,-1444681467),a=Ct(a,e,t,i,n[o+2],9,-51403784),i=Ct(i,a,e,t,n[o+7],14,1735328473),t=Ct(t,i,a,e,n[o+12],20,-1926607734),e=wt(e,t,i,a,n[o+5],4,-378558),a=wt(a,e,t,i,n[o+8],11,-2022574463),i=wt(i,a,e,t,n[o+11],16,1839030562),t=wt(t,i,a,e,n[o+14],23,-35309556),e=wt(e,t,i,a,n[o+1],4,-1530992060),a=wt(a,e,t,i,n[o+4],11,1272893353),i=wt(i,a,e,t,n[o+7],16,-155497632),t=wt(t,i,a,e,n[o+10],23,-1094730640),e=wt(e,t,i,a,n[o+13],4,681279174),a=wt(a,e,t,i,n[o],11,-358537222),i=wt(i,a,e,t,n[o+3],16,-722521979),t=wt(t,i,a,e,n[o+6],23,76029189),e=wt(e,t,i,a,n[o+9],4,-640364487),a=wt(a,e,t,i,n[o+12],11,-421815835),i=wt(i,a,e,t,n[o+15],16,530742520),t=wt(t,i,a,e,n[o+2],23,-995338651),e=Bt(e,t,i,a,n[o],6,-198630844),a=Bt(a,e,t,i,n[o+7],10,1126891415),i=Bt(i,a,e,t,n[o+14],15,-1416354905),t=Bt(t,i,a,e,n[o+5],21,-57434055),e=Bt(e,t,i,a,n[o+12],6,1700485571),a=Bt(a,e,t,i,n[o+3],10,-1894986606),i=Bt(i,a,e,t,n[o+10],15,-1051523),t=Bt(t,i,a,e,n[o+1],21,-2054922799),e=Bt(e,t,i,a,n[o+8],6,1873313359),a=Bt(a,e,t,i,n[o+15],10,-30611744),i=Bt(i,a,e,t,n[o+6],15,-1560198380),t=Bt(t,i,a,e,n[o+13],21,1309151649),e=Bt(e,t,i,a,n[o+4],6,-145523070),a=Bt(a,e,t,i,n[o+11],10,-1120210379),i=Bt(i,a,e,t,n[o+2],15,718787259),t=Bt(t,i,a,e,n[o+9],21,-343485551),e=En(e,l),t=En(t,d),i=En(i,h),a=En(a,y)}return[e,t,i,a]}function eO(n){if(n.length===0)return[];const s=n.length*8,e=new Uint32Array(yR(s));for(let t=0;t<s;t+=8)e[t>>5]|=(n[t/8]&255)<<t%32;return e}function En(n,s){const e=(n&65535)+(s&65535);return(n>>16)+(s>>16)+(e>>16)<<16|e&65535}function tO(n,s){return n<<s|n>>>32-s}function Ro(n,s,e,t,i,a){return En(tO(En(En(s,n),En(t,a)),i),e)}function Vt(n,s,e,t,i,a,o){return Ro(s&e|~s&t,n,s,i,a,o)}function Ct(n,s,e,t,i,a,o){return Ro(s&t|e&~t,n,s,i,a,o)}function wt(n,s,e,t,i,a,o){return Ro(s^e^t,n,s,i,a,o)}function Bt(n,s,e,t,i,a,o){return Ro(e^(s|~t),n,s,i,a,o)}var rO=KS;Eo.default=rO,Object.defineProperty(vo,"__esModule",{value:!0}),vo.default=void 0;var nO=fR(vn),iO=fR(Eo);function fR(n){return n&&n.__esModule?n:{default:n}}var aO=(0,nO.default)("v3",48,iO.default);vo.default=aO;var go={},bo={};Object.defineProperty(bo,"__esModule",{value:!0}),bo.default=void 0;var sO={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};bo.default=sO,Object.defineProperty(go,"__esModule",{value:!0}),go.default=void 0;var mR=TR(bo),oO=TR(fo),lO=Tn;function TR(n){return n&&n.__esModule?n:{default:n}}function dO(n,s,e){if(mR.default.randomUUID&&!s&&!n)return mR.default.randomUUID();n=n||{};const t=n.random||(n.rng||oO.default)();if(t[6]=t[6]&15|64,t[8]=t[8]&63|128,s){e=e||0;for(let i=0;i<16;++i)s[e+i]=t[i];return s}return(0,lO.unsafeStringify)(t)}var uO=dO;go.default=uO;var Io={},Ao={};Object.defineProperty(Ao,"__esModule",{value:!0}),Ao.default=void 0;function cO(n,s,e,t){switch(n){case 0:return s&e^~s&t;case 1:return s^e^t;case 2:return s&e^s&t^e&t;case 3:return s^e^t}}function Xd(n,s){return n<<s|n>>>32-s}function pO(n){const s=[1518500249,1859775393,2400959708,3395469782],e=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof n=="string"){const o=unescape(encodeURIComponent(n));n=[];for(let l=0;l<o.length;++l)n.push(o.charCodeAt(l))}else Array.isArray(n)||(n=Array.prototype.slice.call(n));n.push(128);const t=n.length/4+2,i=Math.ceil(t/16),a=new Array(i);for(let o=0;o<i;++o){const l=new Uint32Array(16);for(let d=0;d<16;++d)l[d]=n[o*64+d*4]<<24|n[o*64+d*4+1]<<16|n[o*64+d*4+2]<<8|n[o*64+d*4+3];a[o]=l}a[i-1][14]=(n.length-1)*8/Math.pow(2,32),a[i-1][14]=Math.floor(a[i-1][14]),a[i-1][15]=(n.length-1)*8&4294967295;for(let o=0;o<i;++o){const l=new Uint32Array(80);for(let R=0;R<16;++R)l[R]=a[o][R];for(let R=16;R<80;++R)l[R]=Xd(l[R-3]^l[R-8]^l[R-14]^l[R-16],1);let d=e[0],h=e[1],y=e[2],f=e[3],v=e[4];for(let R=0;R<80;++R){const I=Math.floor(R/20),D=Xd(d,5)+cO(I,h,y,f)+v+s[I]+l[R]>>>0;v=f,f=y,y=Xd(h,30)>>>0,h=d,d=D}e[0]=e[0]+d>>>0,e[1]=e[1]+h>>>0,e[2]=e[2]+y>>>0,e[3]=e[3]+f>>>0,e[4]=e[4]+v>>>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 hO=pO;Ao.default=hO,Object.defineProperty(Io,"__esModule",{value:!0}),Io.default=void 0;var yO=vR(vn),fO=vR(Ao);function vR(n){return n&&n.__esModule?n:{default:n}}var mO=(0,yO.default)("v5",80,fO.default);Io.default=mO;var Do={};Object.defineProperty(Do,"__esModule",{value:!0}),Do.default=void 0;var TO="00000000-0000-0000-0000-000000000000";Do.default=TO;var Po={};Object.defineProperty(Po,"__esModule",{value:!0}),Po.default=void 0;var vO=EO(Zn);function EO(n){return n&&n.__esModule?n:{default:n}}function RO(n){if(!(0,vO.default)(n))throw TypeError("Invalid UUID");return parseInt(n.slice(14,15),16)}var gO=RO;Po.default=gO,function(n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"NIL",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(n,"parse",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(n,"stringify",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(n,"v1",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(n,"v3",{enumerable:!0,get:function(){return e.default}}),Object.defineProperty(n,"v4",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(n,"v5",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(n,"validate",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(n,"version",{enumerable:!0,get:function(){return o.default}});var s=y(yo),e=y(vo),t=y(go),i=y(Io),a=y(Do),o=y(Po),l=y(Zn),d=y(Tn),h=y(Za);function y(f){return f&&f.__esModule?f:{default:f}}}(dR);function Qd(n,s){if(!n||!s||!n.length||!s.length)throw new Error("Bad alphabet");this.srcAlphabet=n,this.dstAlphabet=s}Qd.prototype.convert=function(n){var s,e,t,i={},a=this.srcAlphabet.length,o=this.dstAlphabet.length,l=n.length,d=typeof n=="string"?"":[];if(!this.isValid(n))throw new Error('Number "'+n+'" contains of non-alphabetic digits ('+this.srcAlphabet+")");if(this.srcAlphabet===this.dstAlphabet)return n;for(s=0;s<l;s++)i[s]=this.srcAlphabet.indexOf(n[s]);do{for(e=0,t=0,s=0;s<l;s++)e=e*a+i[s],e>=o?(i[t++]=parseInt(e/o,10),e=e%o):t>0&&(i[t++]=0);l=t,d=this.dstAlphabet.slice(e,e+1).concat(d)}while(t!==0);return d},Qd.prototype.isValid=function(n){for(var s=0;s<n.length;++s)if(this.srcAlphabet.indexOf(n[s])===-1)return!1;return!0};var bO=Qd,IO=bO;function qa(n,s){var e=new IO(n,s);return function(t){return e.convert(t)}}qa.BIN="01",qa.OCT="01234567",qa.DEC="0123456789",qa.HEX="0123456789abcdef";var AO=qa;const{v4:eu,validate:DO}=dR,So=AO,tu={cookieBase90:"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!#$%&'()*+-./:<=>?@[]^_`{|}~",flickrBase58:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ",uuid25Base36:"0123456789abcdefghijklmnopqrstuvwxyz"},PO={consistentLength:!0};let ru;const ER=(n,s,e)=>{const t=s(n.toLowerCase().replace(/-/g,""));return!e||!e.consistentLength?t:t.padStart(e.shortIdLength,e.paddingChar)},RR=(n,s)=>{const t=s(n).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("-")},SO=n=>Math.ceil(Math.log(2**128)/Math.log(n));var OO=(()=>{const n=(s,e)=>{const t=s||tu.flickrBase58,i={...PO,...e};if([...new Set(Array.from(t))].length!==t.length)throw new Error("The provided Alphabet has duplicate characters resulting in unreliable results");const a=SO(t.length),o={shortIdLength:a,consistentLength:i.consistentLength,paddingChar:t[0]},l=So(So.HEX,t),d=So(t,So.HEX),h=()=>ER(eu(),l,o),f={alphabet:t,fromUUID:v=>ER(v,l,o),maxLength:a,generate:h,new:h,toUUID:v=>RR(v,d),uuid:eu,validate:(v,R=!1)=>{if(!v||typeof v!="string")return!1;const I=i.consistentLength?v.length===a:v.length<=a,D=v.split("").every(A=>t.includes(A));return R===!1?I&&D:I&&D&&DO(RR(v,d))}};return Object.freeze(f),f};return n.constants=tu,n.uuid=eu,n.generate=()=>(ru||(ru=n(tu.flickrBase58).generate),ru()),n})();const Oo=lR(OO);function gR(){return Oo().uuid()}function bR(n){return n.rangeStart+Math.random()}function IR(n){const s=n.rangeEnd;return Math.random()*s}function AR(n){const s=n.rangeStart,e=n.rangeEnd;return Math.random()*(e-s)+s}function DR(n){return n.rangeStart&&n.rangeEnd?AR(n):n.rangeStart?bR(n):n.rangeEnd?IR(n):Math.random()}function PR(n){const s=n.rangeStart;return Math.random().toString(36).substring(s)}function SR(n){const s=n.rangeEnd;return Math.random().toString(36).substring(0,s)}function OR(n){const s=n.rangeStart,e=n.rangeEnd;return Math.random().toString(36).substring(s,e)}function VR(n){return n.rangeStart&&n.rangeEnd?OR(n):n.rangeStart?PR(n):n.rangeEnd?SR(n):Math.random().toString(36)}function CR(n){return Math.random()>=.5}function VO(n){if(!n||!n.autogeneration)return null;switch(n.autogeneration.type){case st.CurrentDateAndTime:if(n.name===C.Date)return new Date;case st.Random:{if(n.name===C.Date)return oR(n.autogeneration);if(n.name===C.Number)return DR(n.autogeneration);if(n.name===C.String)return VR(n.autogeneration);if(n.name===C.Boolean)return CR(n.autogeneration)}case st.Unique:if(n.name===C.UUID)return gR();default:throw new Error(`Generating a ${n.autogeneration.type} value for a ${n.name} is not supported`)}}const ne="e7eb5382-3d99-44fd-972a-b8b1e819f6be",wR="global-user-variable-id",nu="last-executed-timestamp-variable-id",CO={id:"alternative-relational-database-entity-identifier-property-data-type-ref-id",type:r.GenericReference,entityId:"alternative-relational-database-entity-identifier-property-id",version:"1",entityType:r.ValueDescriptor},wO={id:"alternative-relational-database-entity-identifier-property-ref-id",type:r.GenericReference,entityId:"alternative-relational-database-entity-identifier-property-id",version:"1",entityType:r.Property},BO={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:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:X,asType:!1,parent:wO},Vo={id:"alternative-relational-database-entity-ref-id",type:r.GenericReference,entityId:"alternative-relational-database-entity-id",version:"1",entityType:r.DefinitionEntity},MO={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:r.Property,private:!1,abstract:!1,implements:Hs,static:!0,index:0,defaultValue:{id:"alternative-relational-database-entity-identifier-property-data-type-default-value-id",type:r.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:C.String,value:null,parent:CO,autogeneration:{type:st.Unique,rangeStart:null,rangeEnd:null},valueAsType:null},dataType:BO,description:"The name of the main database inside of the server instance where the data will be stored.",parent:Vo};r.GenericReference,r.ValueDescriptor;const _O={id:"alternative-relational-database-entity-username-property-ref-id",type:r.GenericReference,entityId:"alternative-relational-database-entity-username-property-id",version:"1",entityType:r.Property},NO={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:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:X,asType:!1,parent:_O},LO={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:r.Property,private:!1,abstract:!1,implements:zs,static:!0,index:1,defaultValue:null,dataType:NO,description:"The username that will be used to connect to the database.",parent:Vo};r.GenericReference,r.ValueDescriptor;const GO={id:"alternative-relational-database-entity-password-property-ref-id",type:r.GenericReference,entityId:"alternative-relational-database-entity-password-property-id",version:"1",entityType:r.Property},$O={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:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:X,asType:!1,parent:GO},FO={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:r.Property,private:!1,abstract:!1,implements:Ks,static:!0,index:2,defaultValue:null,dataType:$O,description:"The password that will be used to connect to the database.",parent:Vo},UO={id:"alternative-relational-database-entity-min-size-property-data-type-ref-id",type:r.GenericReference,entityId:"alternative-relational-database-entity-min-size-property-id",version:"1",entityType:r.ValueDescriptor},xO={id:"alternative-relational-database-entity-min-size-property-ref-id",type:r.GenericReference,entityId:"alternative-relational-database-entity-min-size-property-id",version:"1",entityType:r.Property},jO={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:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ue,asType:!1,parent:xO},kO={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:r.Property,private:!1,abstract:!1,implements:Xs,static:!0,index:3,defaultValue:{id:"alternative-relational-database-entity-min-size-property-data-type-default-value-id",type:r.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:C.Number,value:6,parent:UO,autogeneration:null,valueAsType:null},dataType:jO,description:"The minimum size of the database in GB.",parent:Vo},ZO={id:"alternative-relational-database-entity-parent-ref-id",type:r.GenericReference,entityId:ne,version:"1",entityType:r.Project},iu={id:"alternative-relational-database-entity-id",type:r.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:[MO,LO,FO,kO],methods:[],abstractMethods:[],extends:[],implements:[Vr],x:0,y:0,parent:ZO},qO={id:"animal-prototype-database-property-ref-id",type:r.GenericReference,entityId:"animal-prototype-database-property-id",version:"1",entityType:r.Property},JO={id:"animal-prototype-database-property-data-type-default-value-parent-ref-id",type:r.GenericReference,entityId:"animal-prototype-database-property-id",version:"1",entityType:r.Property},WO={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:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:Vr,asType:!1,parent:qO},YO={id:"animal-prototype-database-property-parent-ref-id",type:r.GenericReference,entityId:"83eaa847-e62b-4192-84fb-3d8d6f5ea970",version:"1",entityType:r.DefinitionEntity},HO={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:r.Property,private:!1,abstract:!1,implements:Mi,static:!0,index:0,defaultValue:{id:"animal-prototype-database-property-data-type-default-value-id",type:r.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:null,name:C.EntityTemplate,valueAsType:iu,autogeneration:null,parent:JO},dataType:WO,description:"The database that the entity belongs to.",parent:YO},zO={type:r.GenericReference,id:"291e4d4f-01d8-40a0-90dc-5f1ac6636e9b",version:"1",entityType:r.Property,entityId:"5cb617b0-92be-4dbe-a007-49093368d94f"},KO={like:!1,inferred:!1,id:"c1930577-9e79-48a6-8905-be24611015c1",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:X,asType:!1,isList:!1,parent:zO},XO={type:r.GenericReference,id:"animal-name-property-parent-ref-id",version:"1",entityType:r.DefinitionEntity,entityId:"83eaa847-e62b-4192-84fb-3d8d6f5ea970"},QO={constant:!1,hidden:!1,required:!0,type:r.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:_i,static:!1,private:!1,index:0,dataType:KO,abstract:!1,parent:XO},eV={type:r.GenericReference,id:"abc565de-4c83-4936-bc48-4013bef213b8",version:"1",entityType:r.Project,entityId:ne},tV={type:r.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:[HO,QO],methods:[],extends:[],implements:[gt],x:0,y:0,parent:eV},Ja="base-table-entity",BR="base-table-entity-identifier-property-id";r.GenericReference,r.Property,r.GenericReference,r.Property;const rV={id:"base-table-entity-identifier-property-data-type-ref-id",type:r.GenericReference,entityId:BR,version:"1",entityType:r.Property},nV={id:"base-table-entity-identifier-property-ref-id",type:r.GenericReference,entityId:"base-table-entity-identifier-property-id",version:"1",entityType:r.Property},iV={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:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:qr,asType:!1,parent:nV},aV={id:"base-table-entity-identifier-property-parent-ref-id",type:r.GenericReference,entityId:Ja,version:"1",entityType:r.DefinitionEntity};r.Property,r.LiteralValue,C.UUID,st.Unique,r.GenericReference,r.Property;const sV={id:"base-table-entity-deleted-at-property-ref-id",type:r.GenericReference,entityId:"base-table-entity-deleted-at-property-id",version:"1",entityType:r.Property},oV={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:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:Pr,asType:!1,parent:sV},lV={id:"base-table-entity-deleted-at-property-parent-ref-id",type:r.GenericReference,entityId:Ja,version:"1",entityType:r.DefinitionEntity},dV={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:r.Property,private:!1,abstract:!0,implements:null,static:!1,index:0,defaultValue:null,dataType:oV,description:"The date and time when the entity was deleted.",parent:lV};r.GenericReference,r.Property;const uV={id:"base-table-entity-created-at-property-ref-id",type:r.GenericReference,entityId:"base-table-entity-created-at-property-id",version:"1",entityType:r.Property},cV={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:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:Pr,asType:!1,parent:uV},pV={id:"base-table-entity-created-at-property-parent-ref-id",type:r.GenericReference,entityId:Ja,version:"1",entityType:r.DefinitionEntity},hV={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:r.Property,private:!1,abstract:!0,implements:null,static:!1,index:0,defaultValue:null,dataType:cV,description:"The date and time when the entity was created.",parent:pV};r.GenericReference,r.Property;const yV={id:"base-table-entity-updated-at-property-ref-id",type:r.GenericReference,entityId:"base-table-entity-updated-at-property-id",version:"1",entityType:r.Property},fV={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:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:Pr,asType:!1,parent:yV},mV={id:"base-table-entity-updated-at-property-parent-ref-id",type:r.GenericReference,entityId:Ja,version:"1",entityType:r.DefinitionEntity},TV={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:r.Property,private:!1,implements:null,abstract:!0,static:!1,index:0,defaultValue:null,dataType:fV,description:"The date and time when the entity was last updated.",parent:mV},vV={id:"base-table-entity-parent-ref-id",type:r.GenericReference,entityId:ne,version:"1",entityType:r.Project},rr={id:Ja,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:r.DefinitionEntity,abstract:!0,static:!1,abstractMethods:[],implements:[],properties:[dV,hV,TV],methods:[],extends:[],x:0,y:0,parent:vV},EV={id:"default-relational-database-entity-identifier-property-data-type-ref-id",type:r.GenericReference,entityId:"default-relational-database-entity-identifier-property-id",version:"1",entityType:r.Property},RV={id:"default-relational-database-entity-identifier-property-ref-id",type:r.GenericReference,entityId:"default-relational-database-entity-identifier-property-id",version:"1",entityType:r.Property},gV={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:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:X,asType:!1,parent:RV},ki={id:"default-relational-database-entity-ref-id",type:r.GenericReference,entityId:"default-relational-database-entity-id",version:"1",entityType:r.DefinitionEntity},bV={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:r.Property,private:!1,abstract:!1,implements:Hs,static:!0,index:0,defaultValue:{id:"default-relational-database-entity-identifier-property-data-type-default-value-id",type:r.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:C.String,value:"main",parent:EV,autogeneration:{type:st.Unique,rangeStart:null,rangeEnd:null},valueAsType:null},dataType:gV,description:"The name of the main database inside of the server instance where the data will be stored.",parent:ki};r.GenericReference,r.Property;const IV={id:"default-relational-database-entity-username-property-ref-id",type:r.GenericReference,entityId:"default-relational-database-entity-username-property-id",version:"1",entityType:r.Property},AV={id:"default-relational-database-entity-username-property-default-value-parent-ref-id",type:r.GenericReference,entityId:"default-relational-database-entity-username-property-id",version:"1",entityType:r.Property},DV={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:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:X,asType:!1,parent:IV},PV={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:r.Property,private:!1,abstract:!1,implements:zs,defaultValue:{id:"default-relational-database-entity-username-property-data-type-default-value-id",type:r.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:C.String,value:"root",parent:AV,autogeneration:null,valueAsType:null},static:!0,index:1,dataType:DV,description:"The username that will be used to connect to the database.",parent:ki};r.GenericReference,r.Property;const SV={id:"default-relational-database-entity-password-property-ref-id",type:r.GenericReference,entityId:"default-relational-database-entity-password-property-id",version:"1",entityType:r.Property},OV={id:"default-relational-database-entity-password-property-default-value-parent-ref-id",type:r.GenericReference,entityId:"default-relational-database-entity-password-property-id",version:"1",entityType:r.Property},VV={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:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:X,asType:!1,parent:SV},CV={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:r.Property,private:!1,abstract:!1,implements:Ks,static:!0,index:2,defaultValue:{id:"default-relational-database-entity-password-property-data-type-default-value-id",type:r.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:C.String,value:"password",parent:OV,autogeneration:null,valueAsType:null},dataType:VV,description:"The password that will be used to connect to the database.",parent:ki},wV={id:"default-relational-database-entity-min-size-property-data-type-ref-id",type:r.GenericReference,entityId:"default-relational-database-entity-min-size-property-id",version:"1",entityType:r.Property},BV={id:"default-relational-database-entity-min-size-property-ref-id",type:r.GenericReference,entityId:"default-relational-database-entity-min-size-property-id",version:"1",entityType:r.Property},MV={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:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ue,asType:!1,parent:BV},_V={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:r.Property,private:!1,abstract:!1,implements:Xs,static:!0,index:3,defaultValue:{id:"default-relational-database-entity-min-size-property-data-type-default-value-id",type:r.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:C.Number,value:6,parent:wV,autogeneration:null,valueAsType:null},dataType:MV,description:"The minimum size of the database in GB.",parent:ki},NV={id:"default-relational-database-entity-default-property-data-type-ref-id",type:r.GenericReference,entityId:"default-relational-database-entity-default-property-id",version:"1",entityType:r.Property},LV={id:"default-relational-database-entity-default-property-ref-id",type:r.GenericReference,entityId:"default-relational-database-entity-default-property-id",version:"1",entityType:r.Property},GV={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:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ue,asType:!1,parent:LV},$V={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:r.Property,private:!1,abstract:!1,implements:Nd,static:!0,index:4,dataType:GV,defaultValue:{id:"default-relational-database-entity-default-property-data-type-default-value-id",type:r.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:C.Boolean,value:!0,parent:NV,autogeneration:null,valueAsType:null},parent:ki},FV={id:"default-relational-database-entity-autoscaling-property-data-type-ref-id",type:r.GenericReference,entityId:"default-relational-database-entity-autoscaling-property-id",version:"1",entityType:r.Property},UV={id:"default-relational-database-entity-autoscaling-property-ref-id",type:r.GenericReference,entityId:"default-relational-database-entity-autoscaling-property-id",version:"1",entityType:r.Property},xV={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:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ue,asType:!1,parent:UV},jV={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:r.Property,private:!1,abstract:!1,implements:Ld,static:!0,index:5,defaultValue:{id:"default-relational-database-entity-autoscaling-property-data-type-default-value-id",type:r.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:C.Boolean,value:!0,parent:FV,autogeneration:null,valueAsType:null},dataType:xV,description:"If true, this database will automatically scale up or down in memory size, based on the usage.s",parent:ki},kV={id:"default-relational-database-entity-parent-ref-id",type:r.GenericReference,entityId:ne,version:"1",entityType:r.Project},au={id:"default-relational-database-entity-id",type:r.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:[$V,jV,bV,PV,CV,_V],methods:[],abstractMethods:[],extends:[],implements:[Vr],x:0,y:0,parent:kV},ZV={id:"user-prototype-database-property-data-type-ref-id",type:r.GenericReference,entityId:"user-prototype-database-property-id",version:"1",entityType:r.Property},qV={id:"user-prototype-database-property-ref-id",type:r.GenericReference,entityId:"user-prototype-database-property-id",version:"1",entityType:r.Property},JV={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:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:Vr,asType:!1,parent:qV},WV={id:"user-prototype-database-property-parent-ref-id",type:r.GenericReference,entityId:"de67fc84-3719-46fd-9ab4-3fca3a3cc50d",version:"1",entityType:r.DefinitionEntity},YV={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:r.Property,private:!1,abstract:!1,implements:Mi,static:!0,index:0,defaultValue:{id:"user-prototype-database-property-data-type-default-value-id",type:r.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:null,name:C.EntityTemplate,valueAsType:au,autogeneration:null,parent:ZV},dataType:JV,description:"The database that the entity belongs to.",parent:WV},HV={type:r.GenericReference,id:"user-prototype-parent-ref-id",version:"1",entityType:r.Project,entityId:ne},zV={id:"user-prototype-primary-key-property-data-type-ref-id",type:r.GenericReference,entityId:"user-prototype-primary-key-property-id",version:"1",entityType:r.Property},KV={id:"user-prototype-primary-key-property-ref-id",type:r.GenericReference,entityId:"user-prototype-primary-key-property-id",version:"1",entityType:r.Property},XV={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:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:qr,asType:!1,parent:KV},QV={id:"user-prototype-primary-key-property-parent-ref-id",type:r.GenericReference,entityId:"de67fc84-3719-46fd-9ab4-3fca3a3cc50d",version:"1",entityType:r.DefinitionEntity},eC={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:r.Property,private:!1,abstract:!1,implements:_i,static:!1,index:1,defaultValue:{id:"user-prototype-primary-key-property-data-type-default-value-id",type:r.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:C.UUID,value:null,parent:zV,autogeneration:{type:st.Unique,rangeStart:null,rangeEnd:null},valueAsType:null},dataType:XV,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:QV},su={type:r.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:[gt,rr],abstract:!1,static:!1,abstractMethods:[],extends:[],properties:[YV,eC],methods:[],x:0,y:0,parent:HV},tC={type:r.GenericReference,id:"person-date-of-birth-property-data-type-parent-ref-id",version:"1",entityType:r.Property,entityId:"person-date-of-birth-property-id"},rC={like:!1,inferred:!1,id:"person-date-of-birth-property-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Pr,isList:!1,asType:!1,parent:tC},nC={type:r.GenericReference,id:"person-date-of-birth-property-parent-ref-id",version:"1",entityType:r.DefinitionEntity,entityId:"c9bc312a-10d3-48a7-9ab4-ea483a9e2416"},iC={constant:!1,hidden:!1,required:!0,type:r.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:rC,abstract:!1,parent:nC},aC={type:r.GenericReference,id:"a2867827-2f8e-4c25-b18b-d91857d7f24e",version:"1",entityType:r.Property,entityId:"cacfec92-46c3-4fca-a1d9-fd1ba94d78c7"},sC={like:!1,inferred:!1,id:"1d49f41b-17b9-4f48-87aa-3ce43498e5a9",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:X,isList:!1,asType:!1,parent:aC},oC={type:r.GenericReference,id:"01cbe760-40a9-4f49-8e3d-194d2f57cb1e",version:"1",entityType:r.DefinitionEntity,entityId:"c9bc312a-10d3-48a7-9ab4-ea483a9e2416"},lC={constant:!1,hidden:!1,required:!0,type:r.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:sC,abstract:!1,parent:oC},dC={type:r.GenericReference,id:"3542b22a-3a2f-41c6-876e-24c885572498",version:"1",entityType:r.Project,entityId:ne},Gt={type:r.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:[lC,iC],abstract:!1,static:!1,abstractMethods:[],methods:[],implements:[],extends:[su],x:0,y:0,parent:dC},uC={type:r.GenericReference,id:"b59c80b7-b2e9-41e9-abcd-7c5652835efc",version:"1",entityType:r.FunctionDeclaration,entityId:"36f29f96-c001-4b9a-b49c-83eff406a060"},cC={type:r.GenericReference,id:"1190b5a2-f25e-46db-884d-8a3dd1a44d94",version:"1",entityType:r.ReturnStatement,entityId:"3ebc4342-c9e8-42e7-a61c-7937081e1d2e"},pC={type:r.GenericReference,id:"36c63126-7814-496f-a6cc-48662c2aabae",version:"1",entityType:r.ArgumentDeclaration,entityId:"500dee3a-3435-4453-9699-0d053f646523"},hC={type:r.GenericReference,id:"c567e55d-ec12-4e4e-958e-f07522892b4b",version:"1",entityType:r.ReturnDeclaration,entityId:"9e070523-7e07-4100-8637-960a187f5f14"},yC={like:!1,inferred:!1,id:"3973c5a1-f0d8-49a0-a9a9-a0009bf3f0d8",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Gt,isList:!1,asType:!1,parent:hC},ou={constant:!0,isError:!1,id:"9e070523-7e07-4100-8637-960a187f5f14",type:r.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:yC,implements:null,readsValue:pC,required:!0,index:0,parent:cC},fC={type:r.GenericReference,id:"567d923c-20da-4c1e-956d-962ea30c6d0b",version:"1",entityType:r.FunctionDeclaration,entityId:"36f29f96-c001-4b9a-b49c-83eff406a060"},mC={type:r.GenericReference,id:"da85e620-59f3-42ab-88c8-b38d33c2c833",version:"1",entityType:r.FunctionDeclaration,entityId:"36f29f96-c001-4b9a-b49c-83eff406a060"},MR={type:r.ReturnStatement,id:"3ebc4342-c9e8-42e7-a61c-7937081e1d2e",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[ou],calledByError:[],calledByEntry:[fC],calledBySuccess:[],throws:null,x:0,y:0,parent:mC},TC={type:r.GenericReference,id:"1c806bb7-4c25-4bad-963b-93dfbb7c8304",version:"1",entityType:r.ArgumentDeclaration,entityId:"500dee3a-3435-4453-9699-0d053f646523"},vC={like:!1,inferred:!1,id:"d90fcc18-642b-433c-8fcb-4094b9031cd5",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Gt,isList:!1,asType:!1,parent:TC},_R={constant:!0,id:"500dee3a-3435-4453-9699-0d053f646523",type:r.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:vC,implements:null,required:!0,writesValues:[ou],index:0,parent:uC},EC={type:r.GenericReference,id:"83dceb60-f3c4-4085-824c-85f2003bfd27",version:"1",entityType:r.DefinitionEntity,entityId:"506946aa-30da-48e6-918f-ffd9eac58813"},NR={type:r.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:[_R],calls:[MR],returnStatements:[MR],index:0,collapsed:!1,private:!1,x:0,y:0,parent:EC},RC={type:r.GenericReference,id:"adbaf302-ffa9-49b6-a3c6-83f9a75068e3",version:"1",entityType:r.VariableDeclaration,entityId:"8e36a476-766e-4cc2-a8a7-27a07dfb5a4b"},gC={like:!1,inferred:!1,id:"79ee04aa-1ba4-4ae9-a406-ed45e5b03f7f",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Gt,asType:!1,isList:!1,parent:RC},bC={type:r.GenericReference,id:"55e212d1-f0ec-4bb6-acbe-60f741367daf",version:"1",entityType:r.OutputMap,entityId:"dc9ddb8f-02a0-4a43-aea6-270ec7b7f8a4"},IC={type:r.GenericReference,id:"944e1171-3d9b-4559-9386-1d4974b15962",version:"1",entityType:r.FunctionDeclaration,entityId:"15ee556d-681f-47de-a31f-16d4ba73cc4e"},AC={constant:!0,required:!0,id:"8e36a476-766e-4cc2-a8a7-27a07dfb5a4b",type:r.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:gC,readsValue:bC,writesValues:[],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:IC},DC={type:r.GenericReference,id:"b89ebc83-52cf-4447-a5ae-62241f713079",version:"1",entityType:r.FunctionCall,entityId:"78f6dba8-bed8-44cd-8b0f-6dcc787d1e1e"},PC={id:"dc9ddb8f-02a0-4a43-aea6-270ec7b7f8a4",type:r.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:ou,defaultValue:null,writesValues:[AC],index:0,parent:DC},SC={type:r.GenericReference,id:"c1b9e125-1aad-48b7-9687-95c57a6bc10d",version:"1",entityType:r.FunctionDeclaration,entityId:"15ee556d-681f-47de-a31f-16d4ba73cc4e"},OC={type:r.GenericReference,id:"d2deaa02-e164-4425-905c-6dee47eb4eac",version:"1",entityType:r.FunctionDeclaration,entityId:"15ee556d-681f-47de-a31f-16d4ba73cc4e"},VC={type:r.GenericReference,id:"1109a655-ac62-4110-a933-42a72106f4f0",version:"1",entityType:r.VariableDeclaration,entityId:"8bea6986-8da2-487b-905d-2fb962db6728"},CC={like:!1,inferred:!1,id:"7d9a1307-512e-42ec-9797-2f7229796b97",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Gt,asType:!1,isList:!1,parent:VC},wC={type:r.GenericReference,id:"bb61ebf7-57b3-4d14-905d-82ec907205b5",version:"1",entityType:r.ArgumentDeclaration,entityId:"38f6b236-98ac-47b0-ab9c-d2f9610137b9"},BC={type:r.GenericReference,id:"6b8c7bf2-9fc8-4ea4-9ec0-f41679d513b1",version:"1",entityType:r.FunctionDeclaration,entityId:"15ee556d-681f-47de-a31f-16d4ba73cc4e"},MC={type:r.GenericReference,id:"6163d1a1-7a94-49b1-95bb-aecd8d6d335c",version:"1",entityType:r.FunctionCall,entityId:"78f6dba8-bed8-44cd-8b0f-6dcc787d1e1e"},_C={type:r.GenericReference,id:"1f900f62-4bd2-4246-94aa-b8f5aad384fd",version:"1",entityType:r.VariableDeclaration,entityId:"8bea6986-8da2-487b-905d-2fb962db6728"},LR={id:"be8538be-e6f9-4b94-9314-a546003ebaa0",type:r.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:_R,name:null,description:null,readsValue:_C,defaultValue:null,index:0,parent:MC},NC={constant:!0,required:!0,type:r.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:CC,readsValue:wC,writesValues:[LR],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:BC},LC={type:r.FunctionCall,id:"78f6dba8-bed8-44cd-8b0f-6dcc787d1e1e",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:NR,inputs:[LR],outputs:[PC],process:null,successCalls:[],errorCalls:[],calledByError:[],calledByEntry:[SC],calledBySuccess:[],parent:OC,error:null,x:0,y:0},GC={type:r.GenericReference,id:"2d47aba1-a918-46a7-8db7-78809928654a",version:"1",entityType:r.ArgumentDeclaration,entityId:"38f6b236-98ac-47b0-ab9c-d2f9610137b9"},$C={like:!1,inferred:!1,id:"5583766c-e9a5-484c-8f43-f4b0a6a1876c",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Gt,asType:!1,isList:!1,parent:GC},FC={type:r.GenericReference,id:"3e2a81e4-55b2-49f5-94eb-39135e95c3d7",version:"1",entityType:r.FunctionDeclaration,entityId:"15ee556d-681f-47de-a31f-16d4ba73cc4e"},UC={constant:!0,id:"38f6b236-98ac-47b0-ab9c-d2f9610137b9",type:r.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:$C,implements:null,required:!0,index:0,writesValues:[NC],parent:FC},xC={type:r.GenericReference,id:"30291b01-1b94-4d03-b434-dec122c2bc7d",version:"1",entityType:r.DefinitionEntity,entityId:"506946aa-30da-48e6-918f-ffd9eac58813"},jC={type:r.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:[UC],collapsed:!0,returnStatements:[],calls:[LC],private:!1,index:0,implements:null,x:0,y:0,parent:xC},kC={type:r.GenericReference,id:"72c7ac0a-886e-4e10-b7ed-2f5a819a0233",version:"1",entityType:r.Property,entityId:"b8f4656a-2b77-43ab-af51-7c32ddede044"},ZC={like:!1,inferred:!1,id:"c09dd282-73f6-4077-a467-b66db20b9fc6",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:X,isList:!1,asType:!1,parent:kC},qC={type:r.GenericReference,id:"8a950024-512c-4580-81db-a705410aeb99",version:"1",entityType:r.DefinitionEntity,entityId:"506946aa-30da-48e6-918f-ffd9eac58813"},JC={constant:!1,hidden:!1,required:!0,type:r.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:_i,static:!1,index:0,dataType:ZC,abstract:!1,parent:qC},WC={type:r.GenericReference,id:"b6704b6c-c3bd-49d0-8ebc-82d03e726cbb",version:"1",entityType:r.Property,entityId:"733d06a6-b8c5-44f3-a1f7-a8c9bd9e44ea"},YC={like:!1,inferred:!1,id:"c03e0b0a-88ab-401a-8833-4806738bdc37",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Gt,isList:!1,asType:!1,parent:WC},HC={type:r.GenericReference,id:"1ef999a7-e9ed-406a-866e-e58277fc985b",version:"1",entityType:r.DefinitionEntity,entityId:"506946aa-30da-48e6-918f-ffd9eac58813"},zC={constant:!1,hidden:!1,required:!0,type:r.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:YC,implements:null,static:!1,private:!0,abstract:!1,parent:HC},KC={type:r.GenericReference,id:"d41d7f41-98b8-4f67-be92-c349fdda5156",version:"1",entityType:r.Project,entityId:ne},Zi={type:r.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:[JC,zC],methods:[NR,jC],extends:[],implements:[gt,rr],x:0,y:0,parent:KC},Wa="bitcoin-api-response-id",GR="time-property-id",$R="disclaimer-property-id",FR="chart-name-property-id",UR="bpi-property-id",Co="bpi-entity-id",xR="usd-property-id",jR="gbp-property-id",kR="eur-property-id",qi="currency-entity-id",ZR="currency-code-property-id",qR="currency-symbol-property-id",JR="currency-rate-property-id",WR="currency-description-property-id",YR="currency-rate-number-property-id",XC={type:r.GenericReference,id:"code-property-data-type-parent-ref-id",version:"1",entityType:r.Property,entityId:ZR},QC={like:!1,inferred:!1,id:"code-property-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Zr,isList:!1,asType:!1,options:["USD","GBP","EUR"],parent:XC},ew={type:r.GenericReference,id:"code-property-parent-ref-id",version:"1",entityType:r.DefinitionEntity,entityId:qi},tw={constant:!1,hidden:!1,required:!0,type:r.Property,id:ZR,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"code",description:null,defaultValue:null,dataType:QC,index:0,implements:null,static:!1,private:!1,abstract:!1,parent:ew},rw={type:r.GenericReference,id:"symbol-property-data-type-parent-ref-id",version:"1",entityType:r.Property,entityId:qR},nw={like:!1,inferred:!1,id:"symbol-property-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Zr,isList:!1,asType:!1,options:["&#36;","&pound;","&euro;"],parent:rw},iw={type:r.GenericReference,id:"symbol-property-parent-ref-id",version:"1",entityType:r.DefinitionEntity,entityId:qi},aw={constant:!1,hidden:!1,required:!0,type:r.Property,id:qR,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"symbol",description:null,index:0,defaultValue:null,dataType:nw,implements:null,static:!1,private:!1,abstract:!1,parent:iw},sw={type:r.GenericReference,id:"rate-property-data-type-parent-ref-id",version:"1",entityType:r.Property,entityId:JR},ow={like:!1,inferred:!1,id:"rate-property-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:X,isList:!1,asType:!1,parent:sw},lw={type:r.GenericReference,id:"rate-property-parent-ref-id",version:"1",entityType:r.DefinitionEntity,entityId:qi},dw={constant:!1,hidden:!1,required:!0,type:r.Property,id:JR,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"rate",description:null,index:0,defaultValue:null,dataType:ow,implements:null,static:!1,private:!1,abstract:!1,parent:lw},uw={type:r.GenericReference,id:"description-property-data-type-parent-ref-id",version:"1",entityType:r.Property,entityId:WR},cw={like:!1,inferred:!1,id:"description-property-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:X,isList:!1,asType:!1,parent:uw},pw={type:r.GenericReference,id:"description-property-parent-ref-id",version:"1",entityType:r.DefinitionEntity,entityId:qi},hw={constant:!1,hidden:!1,required:!0,type:r.Property,id:WR,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"description",description:null,defaultValue:null,dataType:cw,implements:null,static:!1,index:0,private:!1,abstract:!1,parent:pw},yw={type:r.GenericReference,id:"rate-number-property-data-type-parent-ref-id",version:"1",entityType:r.Property,entityId:YR},fw={like:!1,inferred:!1,id:"rate-number-property-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ue,isList:!1,asType:!1,parent:yw},mw={type:r.GenericReference,id:"rate-number-property-parent-ref-id",version:"1",entityType:r.DefinitionEntity,entityId:qi},Tw={constant:!1,hidden:!1,required:!0,type:r.Property,id:YR,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"rate_float",description:null,defaultValue:null,dataType:fw,implements:null,static:!1,index:0,private:!1,abstract:!1,parent:mw},vw={type:r.GenericReference,id:"currency-prototype-parent-ref-id",version:"1",entityType:r.Project,entityId:ne},wo={type:r.DefinitionEntity,id:qi,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:[tw,aw,dw,hw,Tw],static:!1,abstract:!1,abstractMethods:[],methods:[],extends:[],implements:[],x:0,y:0,parent:vw},Ew={type:r.GenericReference,id:"usd-property-data-type-parent-ref-id",version:"1",entityType:r.Property,entityId:xR},Rw={like:!1,inferred:!1,id:"usd-property-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:wo,isList:!1,asType:!1,parent:Ew},gw={type:r.GenericReference,id:"usd-property-parent-ref-id",version:"1",entityType:r.DefinitionEntity,entityId:Co},bw={constant:!1,hidden:!1,required:!0,id:xR,type:r.Property,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"USD",description:null,index:0,dataType:Rw,defaultValue:null,implements:null,static:!1,private:!1,abstract:!1,parent:gw},Iw={type:r.GenericReference,id:"gbp-property-data-type-parent-ref-id",version:"1",entityType:r.Property,entityId:jR},Aw={like:!1,inferred:!1,id:"gbp-property-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:wo,isList:!1,asType:!1,parent:Iw},Dw={type:r.GenericReference,id:"gbp-property-parent-ref-id",version:"1",entityType:r.DefinitionEntity,entityId:Co},Pw={constant:!1,hidden:!1,required:!0,id:jR,type:r.Property,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"GBP",description:null,index:0,dataType:Aw,defaultValue:null,implements:null,static:!1,private:!1,abstract:!1,parent:Dw},Sw={type:r.GenericReference,id:"eur-property-data-type-parent-ref-id",version:"1",entityType:r.Property,entityId:kR},Ow={like:!1,inferred:!1,id:"eur-property-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:wo,isList:!1,asType:!1,parent:Sw},Vw={type:r.GenericReference,id:"eur-property-parent-ref-id",version:"1",entityType:r.DefinitionEntity,entityId:Co},Cw={constant:!1,hidden:!1,required:!0,id:kR,type:r.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:Ow,private:!1,abstract:!1,parent:Vw},ww={type:r.GenericReference,id:"bpi-prototype-parent-ref-id",version:"1",entityType:r.Project,entityId:ne},HR={type:r.DefinitionEntity,id:Co,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"BPI",description:"The Bitcoin Price Index",properties:[bw,Pw,Cw],abstract:!1,static:!1,abstractMethods:[],methods:[],extends:[],implements:[],x:0,y:0,parent:ww},Bw={type:r.GenericReference,id:"time-property-data-type-parent-ref-id",version:"1",entityType:r.Property,entityId:GR},Mw={like:!1,inferred:!1,id:"time-property-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Si,isList:!1,asType:!1,parent:Bw},_w={type:r.GenericReference,id:"time-property-parent-ref-id",version:"1",entityType:r.DefinitionEntity,entityId:Wa},Nw={constant:!1,hidden:!1,required:!0,type:r.Property,id:GR,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"time",description:null,index:0,defaultValue:null,dataType:Mw,implements:null,static:!1,private:!1,abstract:!1,parent:_w},Lw={type:r.GenericReference,id:"disclaimer-property-data-type-parent-ref-id",version:"1",entityType:r.Property,entityId:$R},Gw={like:!1,inferred:!1,id:"disclaimer-property-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:X,isList:!1,asType:!1,parent:Lw},$w={type:r.GenericReference,id:"disclaimer-property-parent-ref-id",version:"1",entityType:r.DefinitionEntity,entityId:Wa},Fw={constant:!1,hidden:!1,required:!0,type:r.Property,id:$R,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"disclaimer",description:null,index:0,defaultValue:null,dataType:Gw,implements:null,static:!1,private:!1,abstract:!1,parent:$w},Uw={type:r.GenericReference,id:"chart-name-property-data-type-parent-ref-id",version:"1",entityType:r.Property,entityId:FR},xw={like:!1,inferred:!1,id:"chart-name-property-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:X,isList:!1,asType:!1,parent:Uw},jw={type:r.GenericReference,id:"chart-name-property-parent-ref-id",version:"1",entityType:r.DefinitionEntity,entityId:Wa},kw={constant:!1,hidden:!1,required:!0,type:r.Property,id:FR,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"chartName",description:null,index:0,defaultValue:null,dataType:xw,implements:null,static:!1,private:!1,abstract:!1,parent:jw},Zw={type:r.GenericReference,id:"bpi-property-data-type-parent-ref-id",version:"1",entityType:r.Property,entityId:UR},qw={like:!1,inferred:!1,id:"bpi-property-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:HR,isList:!1,asType:!1,parent:Zw},Jw={type:r.GenericReference,id:"bpi-property-parent-ref-id",version:"1",entityType:r.DefinitionEntity,entityId:Wa},Ww={constant:!1,hidden:!1,required:!0,type:r.Property,id:UR,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:qw,static:!1,private:!1,abstract:!1,parent:Jw},Yw={type:r.GenericReference,id:"bitcoin-api-response-parent-ref-id",version:"1",entityType:r.Project,entityId:ne},zR={type:r.DefinitionEntity,id:Wa,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:[Nw,Fw,kw,Ww],abstract:!1,static:!1,abstractMethods:[],methods:[],extends:[],implements:[],x:0,y:0,parent:Yw},Hw={type:r.GenericReference,id:"eefa0147-f873-484b-b4f3-9e6493aab183",version:"1",entityType:r.ArgumentDeclaration,entityId:"f2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a"},zw={like:!1,inferred:!1,id:"b9f35112-dcb2-4b7c-8fb9-f196b3fa37f9",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Gt,isList:!1,asType:!1,parent:Hw},Kw={type:r.GenericReference,id:"128770d6-5e3a-4aff-bca0-ad1f32ebefa8",version:"1",entityType:r.ReturnStatement,entityId:"e4e05975-c277-471a-b869-f0aed316045c"},Xw={type:r.GenericReference,id:"0be84bf9-6421-42b9-980f-6a03f30cb809",version:"1",entityType:r.ReturnDeclaration,entityId:"a1ec31f0-25ca-42ac-a4c4-c9ec2255f55b"},Qw={like:!1,inferred:!1,id:"43daa02a-237b-4b7c-a6e9-2b8c167f6e22",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Gt,isList:!1,asType:!1,parent:Xw},eB={type:r.GenericReference,id:"ad380383-4a47-43da-968e-75a2d603b230",version:"1",entityType:r.ArgumentDeclaration,entityId:"f2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a"},KR={constant:!0,isError:!1,id:"a1ec31f0-25ca-42ac-a4c4-c9ec2255f55b",type:r.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:Qw,readsValue:eB,required:!0,index:0,parent:Kw},tB={type:r.GenericReference,id:"4f24dc27-59a1-49bf-abcc-7d72b00926e4",version:"1",entityType:r.FunctionDeclaration,entityId:"d683bfc1-a464-4810-8ec0-1dd8eaa0c3c4"},rB={constant:!0,id:"f2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a",type:r.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:zw,writesValues:[KR],required:!0,index:0,parent:tB},nB={type:r.GenericReference,id:"5c9a02f0-d2cf-4efc-828e-467f33a74dd3",version:"1",entityType:r.DefinitionEntity,entityId:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d"},iB={type:r.GenericReference,id:"2ff8f3da-e0c5-4f0f-b688-2c051c588786",version:"1",entityType:r.FunctionDeclaration,entityId:"d683bfc1-a464-4810-8ec0-1dd8eaa0c3c4"},aB={type:r.GenericReference,id:"195ae28c-159b-42de-80b1-2ebb8be3619f",version:"1",entityType:r.FunctionDeclaration,entityId:"d683bfc1-a464-4810-8ec0-1dd8eaa0c3c4"},XR={type:r.ReturnStatement,id:"e4e05975-c277-471a-b869-f0aed316045c",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[KR],calledByError:[],calledByEntry:[iB],calledBySuccess:[],throws:null,x:0,y:0,parent:aB},sB={type:r.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:[rB],calls:[XR],index:0,collapsed:!1,implements:null,returnStatements:[XR],private:!1,x:0,y:0,parent:nB},oB={type:r.GenericReference,id:"e691026f-6db0-43ec-93cd-805ae7d713e3",version:"1",entityType:r.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},lB={type:r.GenericReference,id:"29c4e3e0-1b66-4075-b559-45b27c5cf356",version:"1",entityType:r.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},dB={type:r.GenericReference,id:"b1289358-b185-455d-8f58-7791b15cd52a",version:"1",entityType:r.ReturnStatement,entityId:"9690cd1d-ea35-4e83-823d-0c7310265fee"},uB={type:r.GenericReference,id:"d847bb49-8789-4550-bb2d-e2d551993b28",version:"1",entityType:r.VariableDeclaration,entityId:"e5a8b6d0-0e6f-4e9a-9b1e-8a2b5c7f0d5a"},cB={type:r.GenericReference,id:"06535500-c37c-4915-8398-1d4e184fa5e7",version:"1",entityType:r.ReturnDeclaration,entityId:"e7a35277-a0c4-46d5-aca2-bddd0c26e931"},pB={like:!1,inferred:!1,id:"d358dd91-35f7-4095-b728-3fb3c71dbc05",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:kr,asType:!1,isList:!1,parent:cB},lu={constant:!0,isError:!1,id:"e7a35277-a0c4-46d5-aca2-bddd0c26e931",type:r.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:pB,implements:null,readsValue:uB,required:!0,index:0,parent:dB},hB={type:r.GenericReference,id:"gov-company-registry-return-statement-called-by-success-ref-id",version:"1",entityType:r.VariableDeclaration,entityId:"e5a8b6d0-0e6f-4e9a-9b1e-8a2b5c7f0d5a"},du={type:r.ReturnStatement,id:"9690cd1d-ea35-4e83-823d-0c7310265fee",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[lu],calledByError:[],calledByEntry:[],calledBySuccess:[oB,hB],throws:null,x:0,y:0,parent:lB},yB={type:r.GenericReference,id:"b3126414-4c9b-495f-901e-59f5073c8d67",version:"1",entityType:r.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},fB={type:r.GenericReference,id:"35115c48-618b-411b-a290-d746d22fdd10",version:"1",entityType:r.VariableDeclaration,entityId:"83e12ebb-c958-4dee-b750-8ab9930f0f4e"},QR={id:"a0e7b4e5-2f5f-4d4c-8f5c-1e1f1e1a1b1a",type:r.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:yd,name:null,description:null,readsValue:fB,defaultValue:null,parent:yB,index:2},mB={type:r.GenericReference,id:"14f46eae-04a5-47d1-9c7f-28fb09b84d1d",version:"1",entityType:r.VariableDeclaration,entityId:"e5a8b6d0-0e6f-4e9a-9b1e-8a2b5c7f0d5a"},TB={like:!1,inferred:!1,id:"990bd5d1-07ea-4253-acc1-d03bedd22a38",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:kr,isList:!1,asType:!1,parent:mB},vB={type:r.GenericReference,id:"e4c3542a-8fb0-4b72-8d6e-3fdff812dd67",version:"1",entityType:r.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},EB={type:r.GenericReference,id:"825f9f60-22a8-4cc6-9055-d7333f8e92f4",version:"1",entityType:r.OutputMap,entityId:"8f30d787-9459-4d8d-98a2-b46fbc2006d5"},RB={type:r.GenericReference,id:"is-company-name-registered-var-called-by-ref",version:"1",entityType:r.Operation,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},eg={constant:!0,required:!0,type:r.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:TB,readsValue:EB,writesValues:[lu],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[RB],successCalls:[du],errorCalls:[],internalCalls:[],x:0,y:0,parent:vB},gB={type:r.GenericReference,id:"1aba021e-48ef-44ac-93d0-eaecac5895da",version:"1",entityType:r.InputMap,entityId:"c3c8d6c1-3e0d-4e6c-9f9c-6b8c7d7f8e9a"},bB={type:r.GenericReference,id:"dffae7e0-0a5c-4c14-8ed2-8d680b4c4c86",version:"1",entityType:r.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},IB={type:r.InputMap,id:"c3c8d6c1-3e0d-4e6c-9f9c-6b8c7d7f8e9a",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:$s,name:null,description:null,readsValue:null,defaultValue:{id:"gov-http-request-url-argument-default-value-id",type:r.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:"https://api.publicapis.org/entries",name:C.String,valueAsType:null,parent:gB,autogeneration:null},index:1,parent:bB},AB={type:r.GenericReference,id:"64ae61f5-ace7-401b-926d-25f852daa60e",version:"1",entityType:r.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},DB={id:"8f30d787-9459-4d8d-98a2-b46fbc2006d5",type:r.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:ks,index:2,writesValues:[eg],parent:AB},PB={type:r.GenericReference,id:"62a1a086-caea-4270-9c9f-a1695503e745",version:"1",entityType:r.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},SB={id:"48cf7654-8f3e-4fcd-abc6-740876c310a0",type:r.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Gs,name:null,description:null,readsValue:null,index:0,defaultValue:null,parent:PB},OB={type:r.GenericReference,id:"b0c9c79f-f525-428d-99e7-087d3237ad62",version:"1",entityType:r.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},VB={id:"2c1dc406-4b71-4023-87b2-abede3a111d2",type:r.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:null,description:null,declaration:Fs,index:3,readsValue:null,defaultValue:null,parent:OB},CB={type:r.GenericReference,id:"9887d6c9-d75b-4c97-b722-e2e60945ea20",version:"1",entityType:r.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},wB={id:"3fef94b2-0278-43ae-b0c5-bc7083f0a111",type:r.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Us,name:null,description:null,readsValue:null,index:4,defaultValue:null,parent:CB},BB={type:r.GenericReference,id:"561275b6-5056-45d8-bf7d-8abaa4645593",version:"1",entityType:r.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},MB={id:"3efe20a7-4d63-411e-89ef-63e277f48d66",type:r.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:js,index:1,writesValues:[],parent:BB},_B={type:r.GenericReference,id:"3170ccc2-13de-4bfc-802a-a643be41cd42",version:"1",entityType:r.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},NB={id:"40d34323-d7e6-440a-8016-67c05a3b66dd",type:r.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:xs,index:0,writesValues:[],parent:_B},LB={type:r.GenericReference,id:"7432fa82-f574-4c54-a8fa-4cc4376da3d5",version:"1",entityType:r.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},GB={type:r.GenericReference,id:"8f518502-9eea-462c-8753-8bc3bf3e29a9",version:"1",entityType:r.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},$B={type:r.GenericReference,id:"123b8f18-79d9-4166-a5f6-78ec4b461680",version:"1",entityType:r.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},FB={type:r.GenericReference,id:"e691026f-6db0-43ec-93cd-805ae7d713e3",version:"1",entityType:r.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},UB={type:r.GenericReference,id:"a375eedf-4811-41aa-a998-4897c69c46b9",version:"1",entityType:r.ReturnDeclaration,entityId:"024a9b77-c1cd-4b67-b3ba-1935046b590d"},xB={like:!1,inferred:!1,id:"767cc5ed-20ec-4fd1-89b1-c8d19daa87d1",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:vt,asType:!1,isList:!1,parent:UB},jB={type:r.GenericReference,id:"e64b0c23-129d-4d74-8ab4-eec60e1e5b9b",version:"1",entityType:r.ReturnStatement,entityId:"ea444a9e-6a5b-4138-b81f-0d5618c3c6f3"},tg={constant:!0,isError:!0,id:"024a9b77-c1cd-4b67-b3ba-1935046b590d",type:r.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:xB,defaultValue:null,implements:null,required:!0,readsValue:null,index:0,parent:jB},rg={type:r.ReturnStatement,id:"ea444a9e-6a5b-4138-b81f-0d5618c3c6f3",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[],calledByError:[FB],calledByEntry:[],calledBySuccess:[],throws:tg,x:0,y:0,parent:$B},kB={type:r.GenericReference,id:"323814fb-9723-49ef-bbba-f882384f18e4",version:"1",entityType:r.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},ZB={id:"2f63f7ba-0ff0-458a-92bc-65d1dd4df8c3",type:r.OutputMap,declaration:fd,defaultValue:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,writesValues:[tg],index:0,parentRelationType:Di.Error,parent:kB},qB={type:r.Operation,id:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:ga,inputs:[SB,IB,QR,VB,wB],outputs:[NB,MB,DB],process:null,calledByError:[],calledByEntry:[LB],calledBySuccess:[],successCalls:[du,eg],errorCalls:[rg],error:ZB,x:0,y:0,parent:GB},JB={type:r.GenericReference,id:"597b8aa2-f6f2-4f7d-bbb9-b703d02de96a",version:"1",entityType:r.InputMap,entityId:"b0e7b4e5-2f5f-4d4c-8f5c-1e1f1e1a1b1a"},WB={type:r.GenericReference,id:"546d99b3-28c4-4186-93a0-ac53c1565e07",version:"1",entityType:r.Operation,entityId:"8f2094c0-e27e-465e-9280-112da0de9019"},YB={id:"b0e7b4e5-2f5f-4d4c-8f5c-1e1f1e1a1b1a",type:r.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:_s,name:null,description:null,readsValue:null,defaultValue:{id:"base-query-string-map-default-value-id",type:r.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:"?name=",name:C.String,parent:JB,valueAsType:null,autogeneration:null},index:0,parent:WB},HB={type:r.GenericReference,id:"6a56fb22-82e1-47c9-bf85-41c4e5986c74",version:"1",entityType:r.Operation,entityId:"8f2094c0-e27e-465e-9280-112da0de9019"},zB={type:r.GenericReference,id:"191c6a6d-9bcb-441e-bf98-de0da96f5f3a",version:"1",entityType:r.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},KB={type:r.GenericReference,id:"d8fcbb76-dae2-40cf-847a-02364721b387",version:"1",entityType:r.VariableDeclaration,entityId:"83e12ebb-c958-4dee-b750-8ab9930f0f4e"},XB={like:!1,inferred:!1,id:"6a70c42b-024a-47c6-8a9d-af52be9c9b9a",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:X,isList:!1,asType:!1,parent:KB},QB={type:r.GenericReference,id:"2282e2c0-ed9e-4c7b-86fc-1a364fa0fdb8",version:"1",entityType:r.OutputMap,entityId:"f6c22cf8-63e4-4b2d-b649-b5ab884cf9a5"},eM={type:r.GenericReference,id:"assembled-query-string-called-by-ref",version:"1",entityType:r.Operation,entityId:"8f2094c0-e27e-465e-9280-112da0de9019"},ng={constant:!0,required:!0,type:r.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:XB,readsValue:QB,writesValues:[QR],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[eM],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:zB},tM={id:"f6c22cf8-63e4-4b2d-b649-b5ab884cf9a5",type:r.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,writesValues:[ng],declaration:Ea,index:0,parent:HB},rM={type:r.GenericReference,id:"a1b48e7c-0301-4747-b4dd-b5af79956f7f",version:"1",entityType:r.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},nM={type:r.GenericReference,id:"487c9235-be95-4c96-b9b5-2714b374a277",version:"1",entityType:r.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},iM={type:r.GenericReference,id:"f6471f4f-b269-46fa-80ec-885e87a449c2",entityId:"a4106e8e-ec4f-4633-a636-09ae73135f69",version:"1",entityType:r.ArgumentDeclaration},aM={type:r.GenericReference,id:"62b4afb0-6c21-4b0f-abd3-cebef7b17c28",version:"1",entityType:r.Operation,entityId:"8f2094c0-e27e-465e-9280-112da0de9019"},ig={id:"08f36e2b-bad2-425c-8129-93560bec8488",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:r.InputMap,declaration:Ns,name:null,description:null,readsValue:iM,defaultValue:null,index:1,parent:aM},sM={type:r.Operation,id:"8f2094c0-e27e-465e-9280-112da0de9019",declaration:Ra,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,inputs:[ig,YB],outputs:[tM],process:null,calledByError:[],calledByEntry:[rM],calledBySuccess:[],successCalls:[ng],errorCalls:[],error:null,x:0,y:0,parent:nM},oM={type:r.GenericReference,id:"c2e0e9b4-aa46-4974-bf8a-886b737b12fb",version:"1",entityType:r.ArgumentDeclaration,entityId:"a4106e8e-ec4f-4633-a636-09ae73135f69"},lM={like:!1,inferred:!1,id:"a4279518-3bf3-44b7-a2ac-65142ca37f1c",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:X,asType:!1,isList:!1,parent:oM},dM={type:r.GenericReference,id:"dc273f24-164b-4943-82f9-589b237141e2",version:"1",entityType:r.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},ag={constant:!0,id:"a4106e8e-ec4f-4633-a636-09ae73135f69",type:r.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:lM,defaultValue:null,implements:null,required:!1,writesValues:[ig],index:0,parent:dM},uM={type:r.GenericReference,id:"2178a10c-1cc0-4dad-97c3-0941be6c9738",version:"1",entityType:r.Project,entityId:ne},sg={type:r.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:[ag],calls:[sM,qB],returnStatements:[du,rg],implements:null,index:null,collapsed:!1,private:!1,x:0,y:0,parent:uM},cM={type:r.GenericReference,id:"4d66c53c-f0f7-496a-9955-1e6c8533c5e0",version:"1",entityType:r.Condition,entityId:"a8f4b0f2-5e5e-4e8f-9d7b-1b5b9b6e9a4b"},pM={type:r.GenericReference,id:"6fa0c8e0-d104-4b4d-a035-d4f6e0c49f09",version:"1",entityType:r.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},hM={type:r.GenericReference,id:"146408d5-5336-4877-941a-777dd5871926",version:"1",entityType:r.ArgumentDeclaration,entityId:"c6cf620c-1eee-4919-8578-1a0b6c088551"},yM={type:r.GenericReference,id:"34ae8f8c-548d-4654-984a-6f36affdaf49",version:"1",entityType:r.FunctionCall,entityId:"d2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a"},og={id:"69b1215d-9ebf-4274-b9cb-d4a5888f5122",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:r.InputMap,declaration:ag,name:null,description:null,readsValue:hM,defaultValue:null,index:0,parent:yM},fM={type:r.GenericReference,id:"07540a94-dda1-40b3-8452-f209bdc87b88",version:"1",entityType:r.FunctionCall,entityId:"d2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a"},mM={type:r.GenericReference,id:"eaddf12a-a995-429e-90a0-13bf06efeb28",version:"1",entityType:r.VariableDeclaration,entityId:"faaf3bf6-917d-40d7-aee6-5164f6646c4b"},TM={like:!1,inferred:!1,id:"7fdaf943-3ffb-48e0-b766-b86cc24090cf",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:kr,asType:!1,isList:!1,parent:mM},vM={type:r.GenericReference,id:"030fb5c5-af4d-4c85-8cf0-e99edd50d2bd",version:"1",entityType:r.OutputMap,entityId:"c1ec31f0-25ca-42ac-a4c4-c9ec2255f55b"},EM={type:r.GenericReference,id:"a8b618e9-c68c-48c1-8bd6-ef47c87d699e",version:"1",entityType:r.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},RM={type:r.GenericReference,id:"is-company-name-valid-var-called-by-ref",version:"1",entityType:r.FunctionCall,entityId:"d2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a"},lg={constant:!0,required:!0,type:r.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:TM,readsValue:vM,writesValues:[],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[RM],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:EM},gM={id:"c1ec31f0-25ca-42ac-a4c4-c9ec2255f55b",type:r.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:lu,defaultValue:null,writesValues:[lg],index:0,parent:fM},bM={type:r.FunctionCall,id:"d2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:sg,inputs:[og],outputs:[gM],calledByError:[],calledByEntry:[],process:null,calledBySuccess:[cM],successCalls:[lg],errorCalls:[],error:null,x:0,y:0,parent:pM},IM={type:r.GenericReference,id:"9d0b87b4-bfed-4e02-9e84-6831c21feae2",version:"1",entityType:r.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},AM={type:r.GenericReference,id:"74345f4f-e80d-48be-adff-d12fcea25bec",version:"1",entityType:r.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},DM={type:r.GenericReference,id:"b39279ea-969a-4efb-a9ec-353bfd13db65",version:"1",entityType:r.ArgumentDeclaration,entityId:"c6cf620c-1eee-4919-8578-1a0b6c088551"},PM={type:r.GenericReference,id:"549db613-f225-4c5b-9634-7d096717f0ff",version:"1",entityType:r.Condition,entityId:"a8f4b0f2-5e5e-4e8f-9d7b-1b5b9b6e9a4b"},dg={id:"358e242c-7448-442e-ab8b-fd7fa119ea71",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:r.InputMap,declaration:Fn.inputs[0],name:null,description:null,readsValue:DM,defaultValue:null,index:0,parent:PM},SM={type:r.Condition,id:"a8f4b0f2-5e5e-4e8f-9d7b-1b5b9b6e9a4b",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Fn,inputs:[dg],calledByError:[],calledByEntry:[IM],calledBySuccess:[],successCalls:[bM],errorCalls:[],x:0,y:0,parent:AM},OM={type:r.GenericReference,id:"43ba1e25-f805-488f-8ae8-c58bb6215b2f",version:"1",entityType:r.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},VM={type:r.GenericReference,id:"eb091bed-507f-4a1e-93b5-7cd2fccfe002",version:"1",entityType:r.VariableDeclaration,entityId:"9c928995-0dd5-4f97-9962-56b343bc8a45"},CM={like:!1,inferred:!1,id:"d64152ea-831f-4426-9506-a39bfa170513",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Zi,asType:!1,isList:!1,parent:VM},wM={type:r.GenericReference,id:"7e79c29f-f7bd-441a-a77e-c627604dae94",version:"1",entityType:r.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},BM={type:r.GenericReference,id:"8995ce5f-d5cf-4341-a8b1-5c046cc78b89",version:"1",entityType:r.ArgumentDeclaration,entityId:"7ed0f7bb-2df0-44e2-b0b3-0709dcca8071"},MM={type:r.GenericReference,id:"new-company-bank-account-var-decl-1-called-by-ref",version:"1",entityType:r.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},ug={constant:!0,required:!0,type:r.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:CM,readsValue:BM,writesValues:[],inputs:[],outputs:[],calledByError:[],calledByEntry:[MM],calledBySuccess:[],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:wM},_M={type:r.GenericReference,id:"9a4887bf-d50d-43e4-bdd5-a5262f65f04b",version:"1",entityType:r.ArgumentDeclaration,entityId:"7ed0f7bb-2df0-44e2-b0b3-0709dcca8071"},NM={like:!1,inferred:!1,id:"ae148c06-3143-49e9-9614-c3aca3f6fa7b",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Zi,asType:!1,isList:!1,parent:_M},LM={constant:!0,id:"7ed0f7bb-2df0-44e2-b0b3-0709dcca8071",type:r.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:NM,implements:null,defaultValue:null,required:!0,index:1,writesValues:[ug],parent:OM},GM={type:r.GenericReference,id:"caec9cf8-3133-48d4-a390-114fa71b2933",version:"1",entityType:r.DefinitionEntity,entityId:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d"},$M={type:r.GenericReference,id:"cebcbad8-ca87-4c4b-be8a-312293d49892",version:"1",entityType:r.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},FM={type:r.GenericReference,id:"7b8ccfe5-f9cd-4776-a19b-80c689bbe3df",version:"1",entityType:r.ArgumentDeclaration,entityId:"c6cf620c-1eee-4919-8578-1a0b6c088551"},UM={like:!1,inferred:!1,id:"2a6b4703-ac8d-4d25-8abd-48a115577fec",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:X,asType:!1,isList:!1,parent:FM},xM={constant:!0,id:"c6cf620c-1eee-4919-8578-1a0b6c088551",type:r.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"New company name",description:null,dataType:UM,implements:null,defaultValue:null,required:!0,index:0,writesValues:[dg,og],parent:$M},jM={type:r.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",returnStatements:[],collapsed:!1,inputs:[xM,LM],calls:[SM,ug],index:1,private:!1,implements:null,x:0,y:0,parent:GM},kM={type:r.GenericReference,id:"employee-manager-property-data-type-entity-ref-id",version:"1",entityType:r.DefinitionEntity,entityId:"employee-entity-id"},ZM={type:r.GenericReference,id:"employee-manager-property-data-type-parent-ref-id",version:"1",entityType:r.Property,entityId:"employee-manager-property-id"},qM={like:!1,inferred:!1,id:"employee-manager-property-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:kM,isList:!1,asType:!1,parent:ZM},JM={type:r.GenericReference,id:"employee-manager-property-parent-ref-id",version:"1",entityType:r.DefinitionEntity,entityId:"employee-entity-id"},WM={constant:!1,required:!0,hidden:!1,type:r.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:qM,abstract:!1,parent:JM},YM={type:r.GenericReference,id:"employee-start-date-property-data-type-parent-ref-id",version:"1",entityType:r.Property,entityId:"employee-start-date-property-id"},HM={like:!1,inferred:!1,id:"employee-start-date-property-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Pr,isList:!1,asType:!1,parent:YM},zM={type:r.GenericReference,id:"employee-start-date-property-parent-ref-id",version:"1",entityType:r.DefinitionEntity,entityId:"employee-entity-id"},KM={constant:!1,hidden:!1,required:!0,type:r.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:HM,abstract:!1,parent:zM},XM={type:r.GenericReference,id:"employee-department-property-ref-id",version:"1",entityType:r.Property,entityId:"employee-department-property-id"},QM={like:!1,inferred:!1,id:"employee-department-property-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Zr,isList:!1,asType:!1,options:["Human Resources","Finance","IT","Sales","Marketing","Customer Service","Logistics","Product"],parent:XM},e_={type:r.GenericReference,id:"employee-department-property-parent-ref-id",version:"1",entityType:r.DefinitionEntity,entityId:"employee-entity-id"},t_={constant:!1,hidden:!1,required:!0,type:r.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:QM,abstract:!1,parent:e_},r_={type:r.GenericReference,id:"employee-prototype-parent-ref-id",version:"1",entityType:r.Project,entityId:ne},ur={type:r.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:[t_,KM,WM],abstract:!1,static:!1,abstractMethods:[],methods:[],implements:[],extends:[Gt],x:0,y:0,parent:r_},n_={type:r.GenericReference,id:"dec8fbfe-9124-41fd-9f1c-5b2f07cfd6ba",version:"1",entityType:r.Property,entityId:"4f52d044-f3dd-4bdf-927e-637c3b92e8bd"},i_={like:!1,inferred:!1,id:"bc0b8979-6c43-4d47-a712-6742b89e3c00",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:X,isList:!1,asType:!1,parent:n_},a_={type:r.GenericReference,id:"4f8c0a05-466e-4672-b4c4-6bd408c0be9a",version:"1",entityType:r.DefinitionEntity,entityId:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d"},s_={constant:!1,hidden:!1,required:!0,type:r.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:i_,abstract:!1,parent:a_},o_={type:r.GenericReference,id:"95173fe0-a6e6-443c-94f3-f7c5cf171fcf",version:"1",entityType:r.Property,entityId:"80c86e1b-caca-4ba5-9b1f-38f72d10e4a3"},l_={like:!1,inferred:!1,id:"ddbb6f5c-0cf4-41fb-83b3-b6c47c0e338d",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Zi,isList:!1,asType:!1,parent:o_},d_={type:r.GenericReference,id:"6a9a0b72-a05d-4169-b3f3-5afb01e8d0df",version:"1",entityType:r.DefinitionEntity,entityId:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d"},uu={constant:!1,hidden:!1,required:!0,type:r.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:l_,abstract:!1,parent:d_},u_={type:r.GenericReference,id:"62892cc6-d227-4088-90d3-ae7c15ed4af4",version:"1",entityType:r.Property,entityId:"19a31727-1fba-40a5-be25-18e0f149d5cb"},c_={like:!1,inferred:!1,id:"1f7629df-dc29-4c89-8369-c6d043e97a9e",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Gt,isList:!1,asType:!1,parent:u_},p_={type:r.GenericReference,id:"89384206-fd5a-4f0a-849c-f777473e5773",version:"1",entityType:r.DefinitionEntity,entityId:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d"},h_={constant:!1,hidden:!1,required:!0,type:r.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:c_,private:!0,abstract:!1,parent:p_},y_={type:r.GenericReference,id:"4d2ffb6c-5f38-436e-8339-fb9878ac2b5e",version:"1",entityType:r.Property,entityId:"f8310850-a87e-405c-b182-4f1d5fa49240"},f_={like:!1,inferred:!1,id:"ad44250b-40c2-48f7-a480-381fa938f562",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ur,isList:!0,asType:!1,parent:y_},m_={type:r.GenericReference,id:"aa5d4eee-6fac-4e72-bf21-9c8750024541",version:"1",entityType:r.DefinitionEntity,entityId:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d"},T_={constant:!1,hidden:!1,required:!0,type:r.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:f_,implements:null,private:!0,static:!1,abstract:!1,parent:m_},v_={id:"company-prototype-primary-key-property-data-type-ref-id",type:r.GenericReference,entityId:"company-prototype-primary-key-property-id",version:"1",entityType:r.Property},E_={id:"company-prototype-primary-key-property-ref-id",type:r.GenericReference,entityId:"company-prototype-primary-key-property-id",version:"1",entityType:r.Property},R_={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:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:qr,asType:!1,parent:E_},g_={id:"company-prototype-primary-key-property-parent-ref-id",type:r.GenericReference,entityId:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d",version:"1",entityType:r.DefinitionEntity},b_={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:r.Property,private:!1,abstract:!1,implements:_i,static:!1,index:4,defaultValue:{id:"company-prototype-primary-key-property-data-type-default-value-id",type:r.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:C.UUID,value:null,parent:v_,autogeneration:{type:st.Unique,rangeStart:null,rangeEnd:null},valueAsType:null},dataType:R_,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:g_},I_={type:r.GenericReference,id:"e3c03b6b-2ea0-4d99-865d-5e6a348672d0",version:"1",entityType:r.Project,entityId:ne},cr={type:r.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:[s_,uu,h_,T_,b_],static:!1,abstract:!1,abstractMethods:[],methods:[sB,jM],extends:[],implements:[gt,rr],x:0,y:0,parent:I_},A_={type:r.GenericReference,id:"ffcad334-138d-4b67-8fb3-5f0e6f5fefbd",version:"1",entityType:r.Project,entityId:ne},cu={type:r.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:[],returnStatements:[],implements:null,collapsed:!1,private:!1,index:null,x:0,y:0,parent:A_};r.GenericReference,r.DataType;const D_={id:"cron-job-entity-expression-property-ref-id",type:r.GenericReference,entityId:"cron-job-entity-expression-property-id",version:"1",entityType:r.Property},P_={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:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:X,asType:!1,parent:D_},S_={id:"cron-job-entity-ref-id",type:r.GenericReference,entityId:"cron-job-entity-id",version:"1",entityType:r.DefinitionEntity},O_={constant:!1,hidden:!1,required:!0,id:"cron-job-entity-expression-property-id",type:r.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:P_,implements:null,static:!0,private:!1,abstract:!1,index:0,parent:S_},V_={id:"cron-job-entity-trigger-show-popup-func-call-called-by-ref-one-id",type:r.GenericReference,entityId:"cron-job-entity-trigger-func-decl-id",version:"1",entityType:r.FunctionDeclaration},C_={id:"cron-job-entity-trigger-show-popup-func-call-parent-ref-id",type:r.GenericReference,entityId:"cron-job-entity-trigger-func-decl-id",version:"1",entityType:r.FunctionDeclaration},w_={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:r.FunctionCall,declaration:cu,inputs:[],outputs:[],process:null,successCalls:[],calledByError:[],calledByEntry:[V_],calledBySuccess:[],errorCalls:[],error:null,x:0,y:0,parent:C_},B_={id:"cron-job-entity-trigger-func-decl-parent-ref-id",type:r.GenericReference,entityId:"cron-job-entity-id",version:"1",entityType:r.DefinitionEntity},M_={id:"cron-job-entity-trigger-func-decl-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:r.FunctionDeclaration,name:"Scheduled trigger",description:"The function that is called when the cron job is triggered",inputs:[],private:!1,implements:$d,calls:[w_],collapsed:!1,returnStatements:[],index:0,x:0,y:0,parent:B_},__={id:"cron-job-entity-parent-ref-id",type:r.GenericReference,entityId:ne,version:"1",entityType:r.Project},N_={id:"cron-job-entity-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:r.DefinitionEntity,name:"Run at 12pm on Christmas day",description:"A cron job that runs at 12pm on Christmas day",properties:[O_],static:!0,abstract:!1,abstractMethods:[],extends:[Qs],implements:[],methods:[M_],x:0,y:0,parent:__},L_={type:r.GenericReference,id:"52dbd85c-48b1-462a-8205-2437d6fb1cb4",version:"1",entityType:r.Project,entityId:ne},G_={type:r.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:[Sa],x:0,y:0,parent:L_},Bo="f558fbf8-67de-4545-9804-6ae621e0b2d4",$_={id:"getCompanyByIdEndpointPathParamsVariableDataTypeRef",type:r.GenericReference,version:"1",entityType:r.ArgumentDeclaration,entityId:"getCompanyByIdEndpointPathParamsArgumentDeclaration"},F_={id:"getCompanyByIdEndpointPathParamsArgumentDeclarationRef",type:r.GenericReference,version:"1",entityType:r.ArgumentDeclaration,entityId:"getCompanyByIdEndpointPathParamsArgumentDeclaration"},U_={like:!1,inferred:!1,id:"getCompanyByIdEndpointPathParamsVariableDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!0,entity:X,asType:!1,parent:F_},x_={id:"getCompanyByIdEndpointReachedEntityEventRef",type:r.GenericReference,version:"1",entityType:r.FunctionDeclaration,entityId:"getCompanyByIdEndpointReachedEntityEvent"},j_={id:"getCompanyByIdEndpointRequestHeadersVariableDataTypeRef",type:r.GenericReference,version:"1",entityType:r.ArgumentDeclaration,entityId:"getCompanyByIdEndpointRequestHeadersArgumentDeclaration"},k_={id:"getCompanyByIdEndpointRequestHeadersArgumentDeclarationRef",type:r.GenericReference,version:"1",entityType:r.ArgumentDeclaration,entityId:"getCompanyByIdEndpointRequestHeadersArgumentDeclaration"},Z_={like:!1,inferred:!1,id:"getCompanyByIdEndpointRequestHeadersVariableDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!0,entity:vt,asType:!1,parent:k_},q_={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:r.ArgumentDeclaration,writesValues:[],name:"Request headers",defaultValue:{id:"getCompanyByIdEndpointRequestHeadersVariableDataTypeDefaultValueId",type:r.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:C.KeyValue,value:{},parent:j_,autogeneration:null,valueAsType:null},dataType:Z_,implements:Sd,required:!0,index:0,parent:x_},J_={id:"getCompanyByIdEndpointReachedEntityEventRefTwo",type:r.GenericReference,version:"1",entityType:r.FunctionDeclaration,entityId:"getCompanyByIdEndpointReachedEntityEvent"},W_={constant:!0,id:"getCompanyByIdEndpointPathParamsArgumentDeclaration",type:r.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:r.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:C.KeyValue,value:{},parent:$_,autogeneration:null,valueAsType:null},dataType:U_,implements:Od,required:!0,index:1,parent:J_},Y_={id:"getCompanyByIdEndpointReachedEntityEventRefThree",type:r.GenericReference,version:"1",entityType:r.FunctionDeclaration,entityId:"getCompanyByIdEndpointReachedEntityEvent"},H_={id:"getCompanyByIdEndpointRequestQueryParamsVariableDataTypeRef",type:r.GenericReference,version:"1",entityType:r.ArgumentDeclaration,entityId:"getCompanyByIdEndpointRequestQueryParamsArgumentDeclaration"},z_={id:"getCompanyByIdEndpointRequestQueryParamsArgumentDeclarationRef",type:r.GenericReference,version:"1",entityType:r.ArgumentDeclaration,entityId:"getCompanyByIdEndpointRequestQueryParamsArgumentDeclaration"},K_={like:!1,inferred:!1,id:"getCompanyByIdEndpointRequestQueryParamsVariableDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!0,asType:!1,entity:X,parent:z_},X_={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:r.ArgumentDeclaration,writesValues:[],name:"Request query params",defaultValue:{id:"getCompanyByIdEndpointRequestQueryParamsVariableDataTypeDefaultValueId",type:r.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:C.KeyValue,value:{},parent:H_,autogeneration:null,valueAsType:null},dataType:K_,implements:Vd,required:!0,index:2,parent:Y_},Q_={id:"getCompanyByIdEndpointReachedEntityEventRefFour",type:r.GenericReference,version:"1",entityType:r.FunctionDeclaration,entityId:"getCompanyByIdEndpointReachedEntityEvent"},eN={id:"getCompanyByIdEndpointRequestBodyArgumentDeclarationRef",type:r.GenericReference,version:"1",entityType:r.ArgumentDeclaration,entityId:"getCompanyByIdEndpointRequestBodyArgumentDeclaration"},tN={like:!1,inferred:!1,id:"getCompanyByIdEndpointRequestBodyVariableDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,asType:!1,entity:vt,parent:eN},rN={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:r.ArgumentDeclaration,writesValues:[],name:"Request body",defaultValue:null,dataType:tN,implements:Cd,index:3,required:!0,parent:Q_},nN={id:"getCompanyByIdEndpointResponseCodeReturnDeclarationRef",type:r.GenericReference,version:"1",entityType:r.ReturnDeclaration,entityId:"getCompanyByIdEndpointResponseCodeReturnDeclaration"},iN={like:!1,inferred:!1,id:"9ba575b0-6f8e-436d-a3de-3b843622aa17",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ue,asType:!1,isList:!1,parent:nN},aN={id:"getCompanyByIdEndpointReturnStatementRef",type:r.GenericReference,version:"1",entityType:r.ReturnStatement,entityId:"getCompanyByIdEndpointReturnStatement"},sN={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:r.ReturnDeclaration,name:"Response code",defaultValue:null,dataType:iN,implements:wd,readsValue:null,required:!0,index:0,parent:aN},oN={id:"getCompanyByIdEndpointResponseHeadersDataTypeRef",type:r.GenericReference,version:"1",entityType:r.ReturnDeclaration,entityId:"getCompanyByIdEndpointResponseHeadersReturnDeclaration"},lN={id:"getCompanyByIdEndpointResponseHeadersReturnDeclarationRef",type:r.GenericReference,version:"1",entityType:r.ReturnDeclaration,entityId:"getCompanyByIdEndpointResponseHeadersReturnDeclaration"},dN={like:!1,inferred:!1,id:"getCompanyByIdEndpointResponseHeadersDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!0,entity:vt,asType:!1,parent:lN},uN={id:"getCompanyByIdEndpointReturnStatementRefTwo",type:r.GenericReference,version:"1",entityType:r.ReturnStatement,entityId:"getCompanyByIdEndpointReturnStatement"},cN={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:r.ReturnDeclaration,name:"Response headers",defaultValue:{id:"getCompanyByIdEndpointResponseHeadersDataTypeDefaultValueId",type:r.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:C.KeyValue,value:{},parent:oN,autogeneration:null,valueAsType:null},dataType:dN,implements:Bd,readsValue:null,required:!0,index:1,parent:uN},pN={id:"getCompanyByIdEndpointResponseBodyReturnDeclarationRef",type:r.GenericReference,version:"1",entityType:r.ReturnDeclaration,entityId:"getCompanyByIdEndpointResponseBodyReturnDeclaration"},hN={like:!1,inferred:!1,id:"getCompanyByIdEndpointResponseBodyDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,asType:!1,entity:vt,parent:pN},yN={id:"getCompanyByIdEndpointReturnStatementRefThree",type:r.GenericReference,version:"1",entityType:r.ReturnStatement,entityId:"getCompanyByIdEndpointReturnStatement"},fN={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:r.ReturnDeclaration,name:"Response body",implements:Md,defaultValue:null,dataType:hN,readsValue:null,required:!0,index:2,parent:yN},mN={id:"getCompanyByIdEndpointReturnStatementCallerRef",type:r.GenericReference,entityId:"getCompanyByIdEndpointReachedEntityEvent",version:"1",entityType:r.FunctionDeclaration},TN={id:"getCompanyByIdEndpointReachedEntityEventRefFive",type:r.GenericReference,version:"1",entityType:r.FunctionDeclaration,entityId:"getCompanyByIdEndpointReachedEntityEvent"},vN={id:"getCompanyByIdEndpointReturnStatement",type:r.ReturnStatement,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[sN,cN,fN],calledByError:[],calledByEntry:[mN],calledBySuccess:[],throws:null,x:0,y:0,parent:TN},EN={id:"endpointBuiltInBaseEntityRefFour",type:r.GenericReference,version:"1",entityType:r.BuiltInBaseEntity,entityId:Bo},RN={id:"getCompanyByIdEndpointReachedEntityEvent",name:"Endpoint reached",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:r.FunctionDeclaration,inputs:[q_,W_,X_,rN],returnStatements:[vN],description:"Fired when the endpoint is reached.",calls:[],collapsed:!1,implements:_d,index:0,private:!1,x:0,y:0,parent:EN},gN={id:"getCompanyByIdEndpointPathPropertyDataTypeRef",type:r.GenericReference,version:"1",entityType:r.Property,entityId:"getCompanyByIdEndpointPathProperty"},bN={id:"getCompanyByIdEndpointPathPropertyRef",type:r.GenericReference,version:"1",entityType:r.Property,entityId:"getCompanyByIdEndpointPathProperty"},IN={like:!1,inferred:!1,id:"getCompanyByIdEndpointPathPropertyDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:X,asType:!1,parent:bN},AN={id:"getCompanyByIdEndpointBaseEntityRefTwo",type:r.GenericReference,version:"1",entityType:r.DefinitionEntity,entityId:Bo},DN={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:r.Property,private:!1,abstract:!1,static:!0,implements:Dd,defaultValue:{id:"getCompanyByIdEndpointPathPropertyDataTypeDefaultValueId",type:r.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:C.String,value:"/company/{id}",parent:gN,valueAsType:null,autogeneration:null},dataType:IN,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:AN},PN={id:"getCompanyByIdEndpointMethodPropertyDataTypeRef",type:r.GenericReference,version:"1",entityType:r.Property,entityId:"getCompanyByIdEndpointMethodProperty"},SN={id:"getCompanyByIdEndpointMethodPropertyRef",type:r.GenericReference,version:"1",entityType:r.Property,entityId:"getCompanyByIdEndpointMethodProperty"},ON={like:!1,inferred:!1,id:"getCompanyByIdEndpointMethodPropertyDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,entity:Zr,isList:!0,asType:!1,options:["GET","POST","PUT","DELETE","PATCH","OPTIONS","HEAD","TRACE","CONNECT","CUSTOM"],parent:SN},VN={id:"getCompanyByIdEndpointBaseEntityRefThree",type:r.GenericReference,version:"1",entityType:r.DefinitionEntity,entityId:Bo},CN={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:r.Property,private:!1,abstract:!1,static:!0,implements:Pd,index:0,defaultValue:{id:"getCompanyByIdEndpointMethodPropertyDataTypeDefaultValueId",type:r.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:"GET",name:C.Enum,parent:PN,valueAsType:null,autogeneration:null},dataType:ON,description:null,parent:VN},wN={type:r.GenericReference,id:"6a905153-8aa8-4424-bd7b-6415731a2725",version:"1",entityType:r.Project,entityId:ne},BN={type:r.DefinitionEntity,id:Bo,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:[DN,CN],methods:[RN],static:!0,abstract:!1,abstractMethods:[],extends:[],implements:[Sa],x:0,y:0,parent:wN},MN={id:"plant-prototype-database-property-ref-id",type:r.GenericReference,entityId:"plant-prototype-database-property-id",version:"1",entityType:r.Property},_N={id:"plant-prototype-database-property-data-type-default-value-parent-ref-id",type:r.GenericReference,entityId:"plant-prototype-database-property-id",version:"1",entityType:r.Property},NN={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:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:Vr,asType:!1,parent:MN},LN={id:"plant-prototype-database-property-parent-ref-id",type:r.GenericReference,entityId:"plant-entity-id",version:"1",entityType:r.DefinitionEntity},GN={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:r.Property,private:!1,abstract:!1,implements:Mi,static:!0,index:0,defaultValue:{id:"plant-prototype-database-property-data-type-default-value-id",type:r.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:null,name:C.EntityTemplate,valueAsType:iu,autogeneration:null,parent:_N},dataType:NN,description:"The database that the entity belongs to.",parent:LN},$N={type:r.GenericReference,id:"plant-name-property-ref-id",version:"1",entityType:r.Property,entityId:"plant-name-property-id"},FN={like:!1,inferred:!1,id:"plant-name-property-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:X,asType:!1,isList:!1,parent:$N},UN={type:r.GenericReference,id:"animal-name-property-parent-ref-id",version:"1",entityType:r.DefinitionEntity,entityId:"plant-entity-id"},xN={constant:!1,hidden:!1,required:!0,type:r.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:FN,abstract:!1,parent:UN},jN={type:r.GenericReference,id:"plant-prototype-parent-ref-id",version:"1",entityType:r.Project,entityId:ne},kN={type:r.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:[GN,xN],methods:[],extends:[],implements:[gt],x:0,y:0,parent:jN},ZN={id:"product-prototype-database-property-ref-id",type:r.GenericReference,entityId:"product-prototype-database-property-id",version:"1",entityType:r.Property},qN={id:"product-prototype-database-property-data-type-default-value-parent-ref-id",type:r.GenericReference,entityId:"product-prototype-database-property-id",version:"1",entityType:r.Property},JN={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:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:Vr,asType:!1,parent:ZN},WN={id:"product-prototype-database-property-parent-ref-id",type:r.GenericReference,entityId:"a2d0ec83-72ce-4f54-b059-a39e018fa86c",version:"1",entityType:r.DefinitionEntity},YN={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:r.Property,private:!1,abstract:!1,implements:Mi,static:!0,index:0,defaultValue:{id:"product-prototype-database-property-data-type-default-value-id",type:r.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:null,name:C.EntityTemplate,valueAsType:au,autogeneration:null,parent:qN},dataType:JN,description:"The database that the entity belongs to.",parent:WN},HN={type:r.GenericReference,id:"13a4045e-dcb0-4159-8d33-10a646078b5a",version:"1",entityType:r.Property,entityId:"d519c26a-15b8-40d8-ad09-13fa9342e9ba"},zN={like:!1,inferred:!1,id:"7449779e-1d4e-409c-81c6-4b611336ed18",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:X,isList:!1,asType:!1,parent:HN},KN={type:r.GenericReference,id:"0969562f-d836-406f-8b48-dd9d417fbe72",version:"1",entityType:r.DefinitionEntity,entityId:"a2d0ec83-72ce-4f54-b059-a39e018fa86c"},XN={constant:!1,hidden:!1,required:!0,type:r.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:zN,abstract:!1,parent:KN},QN={type:r.GenericReference,id:"833a5425-7bd0-41dd-9e97-e018acce9592",version:"1",entityType:r.Project,entityId:ne},eL={id:"product-prototype-primary-key-property-data-type-ref-id",type:r.GenericReference,entityId:"product-prototype-primary-key-property-id",version:"1",entityType:r.Property},tL={id:"product-prototype-primary-key-property-ref-id",type:r.GenericReference,entityId:"product-prototype-primary-key-property-id",version:"1",entityType:r.Property},rL={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:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:qr,asType:!1,parent:tL},nL={id:"product-prototype-primary-key-property-parent-ref-id",type:r.GenericReference,entityId:"a2d0ec83-72ce-4f54-b059-a39e018fa86c",version:"1",entityType:r.DefinitionEntity},iL={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:r.Property,private:!1,abstract:!1,implements:null,static:!1,index:0,defaultValue:{id:"product-prototype-primary-key-property-data-type-default-value-id",type:r.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:C.UUID,value:null,parent:eL,autogeneration:{type:st.Unique,rangeStart:null,rangeEnd:null},valueAsType:null},dataType:rL,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:nL},aL={type:r.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:[gt,rr],extends:[],abstract:!1,static:!1,abstractMethods:[],properties:[iL,YN,XN],methods:[],x:0,y:0,parent:QN},Ji="project-loaded-event-id",Kr="get-bitcoin-price-http-call-operation-id",cg="get-bitcoin-price-http-call-response-body-id",Mo="validate-bitcoin-price-response-operation-ids",sL={type:r.GenericReference,id:"validate-bitcoin-data-to-validate-input-map-reads-value-ref-id",version:"1",entityType:r.OutputMap,entityId:cg},oL={type:r.GenericReference,id:"validate-bitcoin-data-to-validate-input-map-parent-ref-id",version:"1",entityType:r.Operation,entityId:Mo},pg={id:"validate-bitcoin-data-to-validate-input-map-id",type:r.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:_n.inputs[1],name:null,description:null,readsValue:sL,defaultValue:null,index:0,parent:oL},lL={type:r.GenericReference,id:"validate-bitcoin-type-to-match-input-map-default-value-parent-ref-id",version:"1",entityType:r.InputMap,entityId:"validate-bitcoin-type-to-match-input-map-id"},dL={type:r.GenericReference,id:"validate-bitcoin-type-to-match-input-map-parent-ref-id",version:"1",entityType:r.Operation,entityId:Mo},uL={id:"validate-bitcoin-type-to-match-input-map-id",type:r.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:_n.inputs[0],name:null,description:null,readsValue:null,defaultValue:{id:"validate-bitcoin-type-to-match-input-map-default-value-id",type:r.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:C.EntityTemplate,valueAsType:zR,value:null,parent:lL,autogeneration:null},index:0,parent:dL},cL={type:r.GenericReference,id:"validate-bitcoin-validated-entity-output-map-parent-ref-id",version:"1",entityType:r.Operation,entityId:Mo},pL={id:"validate-bitcoin-validated-entity-output-map-id",type:r.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:_n.outputs[0],writesValues:[],index:0,parent:cL},hL={type:r.GenericReference,id:"validate-bitcoin-price-response-operation-parent-ref-id",version:"1",entityType:r.GlobalEvent,entityId:Ji},yL={type:r.GenericReference,id:"validate-bitcoin-price-response-operation-called-by-ref-id",version:"1",entityType:r.Operation,entityId:Kr},fL={type:r.Operation,id:Mo,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:_n,inputs:[uL,pg],outputs:[pL],process:null,successCalls:[],errorCalls:[],error:null,x:0,y:0,calledByError:[],calledByEntry:[],calledBySuccess:[yL],parent:hL},mL={type:r.GenericReference,id:"96edb661-3f36-406c-8921-f1679dd796a3",version:"1",entityType:r.FunctionCall,entityId:Kr},TL={id:"c93e1393-9b5e-4de2-b8da-7eae647d715a",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:r.InputMap,declaration:Gs,name:null,description:null,readsValue:null,defaultValue:null,index:0,parent:mL},vL={type:r.GenericReference,id:"40312b28-71b8-4b01-a654-58b87191939d",version:"1",entityType:r.FunctionCall,entityId:Kr},EL={type:r.GenericReference,id:"6ea96c7d-02a7-4971-82ad-2f32a0fec8b4",version:"1",entityType:r.InputMap,entityId:"9f21cbac-5a83-4983-8923-9224ffd3ba9f"},RL={id:"9f21cbac-5a83-4983-8923-9224ffd3ba9f",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:r.InputMap,declaration:$s,name:null,description:null,readsValue:null,defaultValue:{id:"get-bitcoin-price-http-request-url-argument-default-value-id",type:r.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:C.String,parent:EL,valueAsType:null,autogeneration:null},index:1,parent:vL},gL={type:r.GenericReference,id:"2610bf4a-c8a2-4746-b6cc-eb15f7fa8e9c",version:"1",entityType:r.FunctionCall,entityId:Kr},bL={id:"ffb3cd9d-c955-4104-bc7b-299120fe4ede",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:r.InputMap,declaration:Fs,name:null,description:null,readsValue:null,defaultValue:null,index:2,parent:gL},IL={type:r.GenericReference,id:"bfd29a6a-671a-448c-9f2f-f8c7e4ad8349",version:"1",entityType:r.FunctionCall,entityId:Kr},AL={id:"412bf1f3-1a8e-4665-a95f-82117540e34e",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:r.InputMap,declaration:Us,name:null,description:null,readsValue:null,defaultValue:null,index:3,parent:IL},DL={type:r.GenericReference,id:"616a15f3-c224-4b11-b95c-63314edef409",version:"1",entityType:r.FunctionCall,entityId:Kr},PL={id:"4dd4651c-02e4-45f1-b50f-824f3bcb1648",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:r.OutputMap,defaultValue:null,declaration:js,writesValues:[],index:1,parent:DL},SL={type:r.GenericReference,id:"28793b68-4d7e-4826-aee1-f201a3499faf",version:"1",entityType:r.FunctionCall,entityId:Kr},OL={id:"94fe9d35-4dd4-4729-a50c-5283ccd7e661",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:r.OutputMap,defaultValue:null,declaration:xs,writesValues:[],index:0,parent:SL},VL={type:r.GenericReference,id:"f13e04b2-49b4-4c69-85b8-cbbafafa3524",version:"1",entityType:r.FunctionCall,entityId:Kr},CL={id:cg,type:r.OutputMap,defaultValue:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:ks,writesValues:[pg],index:2,parent:VL},wL={type:r.GenericReference,id:"6148d6d0-caaa-45fc-b601-ff2493dfc60f",version:"1",entityType:r.GlobalEvent,entityId:Ji},BL={type:r.GenericReference,id:"b115f084-807b-44b3-ae01-b69cc342f761",version:"1",entityType:r.GlobalEvent,entityId:Ji},ML={type:r.Operation,id:Kr,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:ga,inputs:[TL,RL,bL,AL],outputs:[OL,PL,CL],process:null,parent:BL,calledByError:[],calledByEntry:[wL],calledBySuccess:[],successCalls:[fL],errorCalls:[],error:null,x:0,y:0},_L={type:r.GenericReference,id:"24e76019-3f94-475b-91ce-297f76bbc224",version:"1",entityType:r.GlobalEvent,entityId:Ji},NL={type:r.GenericReference,id:"0eac8e29-cdf2-42f8-8ea7-ad76d4d79abe",version:"1",entityType:r.GlobalEvent,entityId:Ji},LL={process:null,type:r.FunctionCall,id:"2d2e7593-bfbf-457c-a607-5fce18eef457",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:cu,inputs:[],outputs:[],calledByError:[],calledByEntry:[_L],calledBySuccess:[],parent:NL,successCalls:[],errorCalls:[],error:null,x:0,y:0},GL={id:"793b5999-a9da-47fb-9665-0c17ebc6d5c9",type:r.GenericReference,version:"1",entityType:r.Project,entityId:ne},$L={type:r.GlobalEvent,id:Ji,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:jr.PROJECT_PUBLICATION_COMPLETED,description:null,returnStatements:[],collapsed:!1,implements:to,parent:GL,inputs:[],calls:[LL,ML],x:0,y:0},nr="abort-execution-func-declaration-id",Ya="abort-execution-func-exec-var-declaration-id",pu="abort-execution-func-small-wait-op-id",hu="abort-execution-func-long-wait-op-id",hg="abort-execution-func-long-wait-process-output-id",yg="abort-execution-func-exec-var-instance-write-id",fg="abort-execution-func-long-wait-return-stmt-id",mg="abort-execution-func-small-wait-return-stmt-id",FL="abort-execution-func-exec-var-instance-abort-call-id",yu="abort-execution-func-exec-var-instance-abort-internal-call-id",fu="abort-execution-func-exec-second-wait-op-id",UL={type:r.GenericReference,id:"short-wait-return-statement-returned-hello-string-data-type-parent-ref-id",version:"1",entityType:r.ReturnDeclaration,entityId:"short-wait-return-statement-returned-hello-string-id"},xL={type:r.GenericReference,id:"short-wait-return-statement-returned-hello-string-data-type-default-value-parent-ref-id",version:"1",entityType:r.ReturnDeclaration,entityId:"short-wait-return-statement-returned-hello-string-id"},jL={like:!1,inferred:!1,id:"short-wait-return-statement-returned-hello-string-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:X,asType:!1,isList:!1,parent:UL},kL={type:r.GenericReference,id:"short-wait-return-statement-returned-hello-string-parent-ref-id",version:"1",entityType:r.ReturnStatement,entityId:mg},ZL={constant:!0,isError:!1,id:"short-wait-return-statement-returned-hello-string-id",type:r.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:r.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:C.String,value:"Hello 2",autogeneration:null,valueAsType:null,parent:xL},dataType:jL,implements:null,readsValue:null,required:!0,index:0,parent:kL},qL={type:r.GenericReference,id:"short-wait-return-statement-called-by-ref-id",version:"1",entityType:r.Operation,entityId:fu},JL={type:r.GenericReference,id:"short-wait-return-statement-parent-ref-id",version:"1",entityType:r.FunctionDeclaration,entityId:nr},Tg={type:r.ReturnStatement,id:mg,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[ZL],calledByError:[],calledByEntry:[],calledBySuccess:[qL],throws:null,x:0,y:0,parent:JL},WL={type:r.GenericReference,id:"second-wait-argument-default-value-parent-ref-id",version:"1",entityType:r.InputMap,entityId:"second-wait-argument-map-id"},YL={type:r.GenericReference,id:"second-wait-argument-map-parent-ref-id",version:"1",entityType:r.Operation,entityId:fu},HL={id:"second-wait-argument-map-id",type:r.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Bn,name:null,description:null,readsValue:null,defaultValue:{id:"second-wait-argument-default-value-id",type:r.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:2e3,valueAsType:null,autogeneration:null,name:C.Number,parent:WL},index:0,parent:YL},zL={type:r.GenericReference,id:"small-wait-parent-ref-id",version:"1",entityType:r.FunctionDeclaration,entityId:nr},KL={type:r.GenericReference,id:"small-wait-called-by-ref-one-id",version:"1",entityType:r.InternalCall,entityId:yu},XL={id:fu,type:r.Operation,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Nt,inputs:[HL],outputs:[],process:null,successCalls:[Tg],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[],calledBySuccess:[KL],error:null,parent:zL},QL={type:r.GenericReference,id:"abort-exec-func-abort-call-var-instance-abort-internal-call-called-by-ref-one-id",version:"1",entityType:r.VariableInstance,entityId:yg},e2={type:r.GenericReference,id:"abort-exec-func-abort-call-var-instance-abort-internal-call-called-by-ref-two-id",version:"1",entityType:r.Operation,entityId:pu},t2={type:r.GenericReference,id:"abort-exec-func-abort-call-var-instance-main-project-ref-id",version:"1",entityType:r.FunctionDeclaration,entityId:nr},r2={type:r.GenericReference,id:"abort-exec-func-abort-call-var-instance-declaration-ref-id-2",version:"1",entityType:r.VariableDeclaration,entityId:Ya},n2={type:r.GenericReference,id:"abort-exec-func-abort-call-var-instance-internal-call-ref-one-id",version:"1",entityType:r.InternalCall,entityId:yu},i2={id:FL,type:r.VariableInstance,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:r2,defaultValue:null,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],x:0,y:0,readsValue:null,writesValues:[],internalCalls:[n2],parent:t2},vg={id:yu,type:r.InternalCall,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,inputs:[],outputs:[],declaration:Fd,process:null,calledByError:[],calledByEntry:[],calledBySuccess:[QL,e2],successCalls:[XL],errorCalls:[],error:null,index:0,parent:i2},a2={type:r.GenericReference,id:"abort-exec-func-var-write-instance-main-project-ref-id",version:"1",entityType:r.FunctionDeclaration,entityId:nr},s2={type:r.GenericReference,id:"abort-exec-func-var-write-instance-called-by-ref-one-id",version:"1",entityType:r.VariableDeclaration,entityId:Ya},o2={type:r.GenericReference,id:"abort-exec-func-var-write-instance-called-by-ref-two-id",version:"1",entityType:r.FunctionDeclaration,entityId:nr},l2={type:r.GenericReference,id:"abort-exec-func-abort-call-var-instance-declaration-ref-id",version:"1",entityType:r.VariableDeclaration,entityId:Ya},d2={type:r.GenericReference,id:"abort-exec-func-var-write-instance-reads-value-ref-id",version:"1",entityType:r.OutputMap,entityId:hg},mu={id:yg,type:r.VariableInstance,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:l2,inputs:[],outputs:[],defaultValue:null,calledByError:[],calledByEntry:[o2],calledBySuccess:[s2],successCalls:[vg],errorCalls:[],x:0,y:0,readsValue:d2,writesValues:[],internalCalls:[],parent:a2},u2={type:r.GenericReference,id:"abort-exec-func-var-decl-datatype-parent-ref-id",version:"1",entityType:r.VariableDeclaration,entityId:Ya};r.GenericReference,r.DataType;const c2={like:!1,inferred:!1,id:"abort-exec-func-var-decl-datatype-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,entity:eo,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,asType:!1,isList:!1,parent:u2},p2={type:r.GenericReference,id:"abort-exec-func-var-decl-main-project-ref-id",version:"1",entityType:r.FunctionDeclaration,entityId:nr},h2={type:r.GenericReference,id:"abort-exec-func-var-decl-called-by-ref-one-id",version:"1",entityType:r.FunctionDeclaration,entityId:nr},y2={constant:!0,required:!0,id:Ya,type:r.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:c2,inputs:[],outputs:[],calledByError:[],calledByEntry:[h2],calledBySuccess:[],successCalls:[mu],errorCalls:[],x:0,y:0,readsValue:null,writesValues:[],internalCalls:[],parent:p2},f2={type:r.GenericReference,id:"long-wait-return-statement-returned-hello-string-data-type-parent-ref-id",version:"1",entityType:r.ReturnDeclaration,entityId:"long-wait-return-statement-returned-hello-string-id"},m2={type:r.GenericReference,id:"long-wait-return-statement-returned-hello-string-data-type-default-value-parent-ref-id",version:"1",entityType:r.ReturnDeclaration,entityId:"long-wait-return-statement-returned-hello-string-id"},T2={like:!1,inferred:!1,id:"long-wait-return-statement-returned-hello-string-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:X,asType:!1,isList:!1,parent:f2},v2={type:r.GenericReference,id:"long-wait-return-statement-returned-hello-string-parent-ref-id",version:"1",entityType:r.ReturnStatement,entityId:fg},E2={constant:!0,isError:!1,id:"long-wait-return-statement-returned-hello-string-id",type:r.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:r.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:C.String,value:"Hello 1",autogeneration:null,valueAsType:null,parent:m2},dataType:T2,readsValue:null,required:!0,index:0,parent:v2},R2={type:r.GenericReference,id:"long-wait-return-statement-called-by-ref-id",version:"1",entityType:r.Operation,entityId:hu},g2={type:r.GenericReference,id:"long-wait-return-statement-parent-ref-id",version:"1",entityType:r.FunctionDeclaration,entityId:nr},Eg={type:r.ReturnStatement,id:fg,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[E2],calledByError:[],calledByEntry:[],calledBySuccess:[R2],throws:null,x:0,y:0,parent:g2},b2={type:r.GenericReference,id:"long-argument-default-value-parent-ref-id",version:"1",entityType:r.InputMap,entityId:"long-argument-map-id"},Rg={type:r.GenericReference,id:"long-argument-map-parent-ref-id",version:"1",entityType:r.Operation,entityId:hu},I2={id:"long-argument-map-id",type:r.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Bn,name:null,description:null,readsValue:null,defaultValue:{id:"long-argument-default-value-id",type:r.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:1500,valueAsType:null,autogeneration:null,name:C.Number,parent:b2},index:0,parent:Rg},A2={type:r.GenericReference,id:"long-parent-ref-id",version:"1",entityType:r.FunctionDeclaration,entityId:nr},D2={type:r.GenericReference,id:"long-called-by-ref-one-id",version:"1",entityType:r.FunctionDeclaration,entityId:nr},P2={id:hg,type:r.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:ro,writesValues:[mu],index:0,parent:Rg},S2={id:hu,type:r.Operation,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Nt,inputs:[I2],outputs:[],process:P2,successCalls:[Eg],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[D2],calledBySuccess:[],error:null,parent:A2},O2={type:r.GenericReference,id:"small-wait-argument-default-value-parent-ref-id",version:"1",entityType:r.InputMap,entityId:"small-wait-argument-map-id"},V2={type:r.GenericReference,id:"small-wait-argument-map-parent-ref-id",version:"1",entityType:r.Operation,entityId:pu},C2={id:"small-wait-argument-map-id",type:r.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Bn,name:null,description:null,readsValue:null,defaultValue:{id:"small-wait-argument-default-value-id",type:r.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:500,valueAsType:null,autogeneration:null,name:C.Number,parent:O2},index:0,parent:V2},w2={type:r.GenericReference,id:"small-wait-parent-ref-id",version:"1",entityType:r.FunctionDeclaration,entityId:nr},B2={type:r.GenericReference,id:"small-wait-called-by-ref-one-id",version:"1",entityType:r.FunctionDeclaration,entityId:nr},M2={id:pu,type:r.Operation,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Nt,inputs:[C2],outputs:[],process:null,successCalls:[vg],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[B2],calledBySuccess:[],error:null,parent:w2},_2={type:r.GenericReference,id:"abort-execution-func-decl-parent-ref-id",version:"1",entityType:r.Project,entityId:ne},gg={id:nr,type:r.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:[],returnStatements:[Eg,Tg],calls:[M2,y2,mu,S2],implements:null,private:!1,collapsed:!1,index:null,x:0,y:0,parent:_2},N2={type:r.GenericReference,id:"call-execution-abort-func-parent-ref-id",version:"1",entityType:r.Project,entityId:ne},L2={id:"call-execution-abort-func-id",type:r.FunctionCall,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:gg,inputs:[],process:null,outputs:[],successCalls:[],errorCalls:[],error:null,calledByError:[],calledByEntry:[],calledBySuccess:[],x:0,y:0,parent:N2},_o="manual-hello-world-loop-func-decl-id",bg="manual-hello-world-loop-func-return-statement-id",Mr="manual-hello-world-loop-id",Ha="manual-hello-world-loop-body-id",Tu="manual-hello-world-loop-break-statement-id",za="manual-hello-world-loop-current-iteration-number-output-map-id",vu="manual-hello-world-loop-previous-iterations-results-output-map-id",Eu="assembled-hello-world-text-output-id",G2="assembled-hello-world-list-output-id",Ka="iteration-number-is-equal-or-greater-than-10-condition-id",No="join-hello-world-and-number-operation-id",Lo="append-string-to-list-operation-id",Ig="hello-world-loop-output-map-id",$2={type:r.GenericReference,id:"manual-hello-world-loop-function-declaration-output-declaration-parent-ref",version:"1",entityType:r.ReturnStatement,entityId:bg},F2={type:r.GenericReference,id:"manual-hello-world-loop-function-declaration-output-declaration-data-type-parent-ref",version:"1",entityType:r.ReturnDeclaration,entityId:"manual-hello-world-loop-function-declaration-output-declaration"},U2={like:!1,inferred:!1,id:"manual-hello-world-loop-function-declaration-output-declaration-data-type",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:X,isList:!0,asType:!1,parent:F2},x2={type:r.GenericReference,id:"manual-hello-world-loop-function-declaration-output-declaration-reads-value-ref",version:"1",entityType:r.OutputMap,entityId:Ig},Ag={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:r.ReturnDeclaration,name:"Results",description:null,defaultValue:null,dataType:U2,implements:null,readsValue:x2,required:!0,index:0,parent:$2},j2={type:r.GenericReference,id:"manual-hello-world-loop-function-declaration-return-statement-called-by-ref",version:"1",entityType:r.Loop,entityId:Mr},k2={type:r.GenericReference,id:"manual-hello-world-loop-function-declaration-parent-ref",version:"1",entityType:r.FunctionDeclaration,entityId:_o},Dg={type:r.ReturnStatement,id:bg,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[Ag],calledByError:[],calledByEntry:[],calledBySuccess:[j2],parent:k2,throws:null,x:0,y:0},Z2={type:r.GenericReference,id:"hello-world-loop-break-statement-ref-id",version:"1",entityType:r.BreakStatement,entityId:Tu},Pg={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:r.ReturnDeclaration,name:"Iteration result",description:null,defaultValue:null,dataType:null,readsValue:null,implements:null,required:!0,index:0,parent:Z2},q2={type:r.GenericReference,id:"hello-world-loop-break-statement-counter-reads-value-ref-id",version:"1",entityType:r.ArgumentDeclaration,entityId:za},J2={type:r.GenericReference,id:"hello-world-loop-break-statement-counter-ref-id",version:"1",entityType:r.BreakStatement,entityId:Tu},Sg={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:r.ReturnDeclaration,name:"Iteration counter",description:null,implements:null,defaultValue:null,dataType:null,readsValue:q2,required:!0,index:1,parent:J2},W2={type:r.GenericReference,id:"hello-world-loop-break-statement-called-by-ref-id",version:"1",entityType:r.Condition,entityId:Ka},Y2={type:r.GenericReference,id:"hello-world-loop-break-statement-parent-ref-id",version:"1",entityType:r.Loop,entityId:Mr},Og={type:r.BreakStatement,id:Tu,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[Pg,Sg],calledByError:[],calledByEntry:[],calledBySuccess:[W2],parent:Y2,throws:null,x:0,y:0},H2={type:r.GenericReference,id:"hello-world-loop-continue-statement-ref-id",version:"1",entityType:r.ContinueStatement,entityId:"hello-world-loop-continue-statement"},z2={type:r.GenericReference,id:"hello-world-loop-continue-statement-output-data-type-ref-id",version:"1",entityType:r.ReturnDeclaration,entityId:"hello-world-loop-continue-statement-output-id"},K2={like:!1,inferred:!1,id:"hello-world-loop-continue-statement-output-data-type-id",type:r.DataType,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:z2},X2={type:r.GenericReference,id:"hello-world-loop-continue-statement-reads-value-ref-id",version:"1",entityType:r.OutputMap,entityId:Eu},Vg={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:r.ReturnDeclaration,name:"Iteration result",description:null,defaultValue:null,implements:null,dataType:K2,readsValue:X2,required:!0,index:0,parent:H2},Q2={type:r.GenericReference,id:"hello-world-loop-continue-statement-called-by-ref-id",version:"1",entityType:r.Condition,entityId:Ka},e4={type:r.GenericReference,id:"hello-world-loop-continue-statement-parent-ref-id",version:"1",entityType:r.Loop,entityId:Mr},Cg={type:r.ContinueStatement,id:"hello-world-loop-continue-statement",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[Vg],calledBySuccess:[],calledByError:[Q2],calledByEntry:[],parent:e4,throws:null,x:0,y:0};r.GenericReference,r.InputMap;const t4={type:r.GenericReference,id:"append-string-to-list-base-string-map-parent-ref-id",version:"1",entityType:r.Operation,entityId:Lo},r4={type:r.GenericReference,id:"base-string-map-reads-value-ref-id",version:"1",entityType:r.OutputMap,entityId:vu},wg={id:"append-string-to-list-base-string-map-id",type:r.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:ld,name:null,description:null,readsValue:r4,defaultValue:null,index:0,parent:t4},n4={type:r.GenericReference,id:"assembly-string-map-parent-ref-id",version:"1",entityType:r.Operation,entityId:Lo},i4={id:G2,type:r.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,writesValues:[Pg],declaration:Ea,index:0,parent:n4},a4={type:r.GenericReference,id:"append-string-to-list-called-by-ref-id",version:"1",entityType:r.Condition,entityId:Ka},s4={type:r.GenericReference,id:"latest-string-to-add-input-map-reads-value-ref-id",version:"1",entityType:r.OutputMap,entityId:Eu},o4={type:r.GenericReference,id:"62b4afb0-6c21-4b0f-abd3-cebef7b17c28",version:"1",entityType:r.Operation,entityId:Lo},Bg={id:"latest-string-to-add-input-map-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:r.InputMap,declaration:dd,name:null,description:null,readsValue:s4,defaultValue:null,index:1,parent:o4},l4={type:r.GenericReference,id:"append-string-to-list-parent-ref-id",version:"1",entityType:r.FunctionDeclaration,entityId:Mr},d4={type:r.Operation,id:Lo,declaration:Ls,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,inputs:[wg,Bg],outputs:[i4],calledByError:[],process:null,calledByEntry:[],calledBySuccess:[a4],successCalls:[],errorCalls:[],error:null,x:0,y:0,parent:l4},u4={type:r.GenericReference,id:"iteration-number-is-equal-or-greater-than-10-condition-called-by-ref-id",version:"1",entityType:r.FunctionDeclaration,entityId:Ha},c4={type:r.GenericReference,id:"iteration-number-is-equal-or-greater-than-10-condition-parent-ref-id",version:"1",entityType:r.Loop,entityId:Mr},p4={type:r.GenericReference,id:"current-iteration-number-to-check-map-reads-value-ref-id",version:"1",entityType:r.OutputMap,entityId:za},Mg={type:r.GenericReference,id:"iteration-number-is-equal-or-greater-than-10-condition-ref-two-id",version:"1",entityType:r.Condition,entityId:Ka},h4={id:"current-iteration-number-to-check-map-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:r.InputMap,declaration:Li.inputs[0],name:null,description:null,readsValue:p4,index:0,defaultValue:null,parent:Mg},y4={type:r.GenericReference,id:"max-num-iterations-value-map-default-value-parent-ref-id",version:"1",entityType:r.InputMap,entityId:"max-num-iterations-value-map-id"},f4={id:"max-num-iterations-value-map-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:r.InputMap,declaration:Li.inputs[1],name:null,description:null,readsValue:null,index:1,defaultValue:{id:"max-num-iterations-value-map-default-value-id",type:r.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:C.Number,value:10,autogeneration:null,valueAsType:null,parent:y4},parent:Mg},m4={type:r.Condition,id:Ka,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Li,inputs:[h4,f4],calledByError:[],calledByEntry:[u4],calledBySuccess:[],successCalls:[Og,d4],errorCalls:[Cg],x:0,y:0,parent:c4},T4={type:r.GenericReference,id:"base-string-map-ref-id",version:"1",entityType:r.InputMap,entityId:"join-hello-world-and-number-base-string-map-id"},v4={type:r.GenericReference,id:"join-hello-world-and-number-base-string-map-parent-ref-id",version:"1",entityType:r.Operation,entityId:No},E4={id:"join-hello-world-and-number-base-string-map-id",type:r.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:_s,name:null,description:null,readsValue:null,defaultValue:{id:"join-hello-world-and-number-base-string-map-default-value-id",type:r.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:"Hello world ",name:C.String,parent:T4,valueAsType:null,autogeneration:null},index:0,parent:v4},R4={type:r.GenericReference,id:"assembly-string-map-parent-ref-id",version:"1",entityType:r.Operation,entityId:No},g4={id:Eu,type:r.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,writesValues:[Bg,Vg],declaration:Ea,index:0,parent:R4},b4={type:r.GenericReference,id:"join-hello-world-and-number-called-by-ref-id",version:"1",entityType:r.FunctionDeclaration,entityId:Ha},I4={type:r.GenericReference,id:"current-iteration-number-input-map-reads-value-ref-id",version:"1",entityType:r.OutputMap,entityId:za},A4={type:r.GenericReference,id:"62b4afb0-6c21-4b0f-abd3-cebef7b17c28",version:"1",entityType:r.Operation,entityId:No},_g={id:"current-iteration-number-input-map-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:r.InputMap,declaration:Ns,name:null,description:null,readsValue:I4,defaultValue:null,index:1,parent:A4},D4={type:r.GenericReference,id:"join-hello-world-and-number-parent-ref-id",version:"1",entityType:r.FunctionDeclaration,entityId:Mr},P4={type:r.Operation,id:No,declaration:Ra,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,inputs:[E4,_g],outputs:[g4],process:null,calledByError:[],calledByEntry:[b4],calledBySuccess:[],successCalls:[],errorCalls:[],error:null,x:0,y:0,parent:D4},S4={id:"manual-hello-world-loop-iterations-results-declaration-data-type-parent-ref-id",type:r.GenericReference,entityId:vu,version:"1",entityType:r.ArgumentDeclaration},O4={like:!1,inferred:!1,id:"manual-hello-world-loop-iterations-results-declaration-data-type-id",type:r.DataType,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:S4},V4={id:"manual-hello-world-loop-previous-iterations-results-output-map-parent-ref-id",type:r.GenericReference,entityId:Ha,version:"1",entityType:r.FunctionDeclaration},C4={constant:!0,id:vu,type:r.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:O4,implements:null,writesValues:[wg],index:1,parent:V4},w4={id:"manual-hello-world-loop-current-iteration-number-output-map-parent-ref-id",type:r.GenericReference,entityId:Ha,version:"1",entityType:r.FunctionDeclaration},B4={id:"manual-flow-loop-current-iteration-number-declaration-data-type-parent-ref-id",type:r.GenericReference,entityId:za,version:"1",entityType:r.ArgumentDeclaration};r.DataType;const M4={constant:!0,id:za,type:r.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:md,defaultValue:null,dataType:null,writesValues:[_g,Sg],index:0,parent:w4},_4={id:"manual-flow-loop-body-parent-ref-id",type:r.GenericReference,entityId:Mr,version:"1",entityType:r.Loop},N4={id:Ha,type:r.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:[M4,C4],calls:[m4,P4],implements:qs,collapsed:!1,returnStatements:[],private:!1,index:0,x:0,y:0,parent:_4},L4={type:r.GenericReference,id:"hello-world-loop-iteration-result-inline-output-declaration-parent-ref-id",version:"1",entityType:r.Loop,entityId:Mr},Ng={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:r.ValueDescriptor,name:"Iteration result",defaultValue:null,description:null,dataType:null,required:!0,parentRelationType:V.FixedReturns,index:0,parent:L4},G4={type:r.GenericReference,id:"hello-world-loop-break-statement-output-map-parent-ref-id",version:"1",entityType:r.Loop,entityId:Mr},$4={type:r.OutputMap,id:Ig,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:Ng,writesValues:[Ag],index:0,parent:G4},F4={id:"manual-hello-world-loop-parent-ref-id",type:r.GenericReference,entityId:_o,version:"1",entityType:r.FunctionDeclaration},U4={id:"manual-hello-world-loop-called-by-ref-id",type:r.GenericReference,entityId:_o,version:"1",entityType:r.FunctionDeclaration},x4={id:Mr,type:r.Loop,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Zs,inputs:[],outputsDeclarations:[Ng],outputs:[$4],body:N4,successCalls:[Dg],errorCalls:[],process:null,error:null,calledByError:[],calledByEntry:[U4],calledBySuccess:[],breakStatements:[Og],continueStatements:[Cg],x:0,y:0,parent:F4},j4={type:r.GenericReference,id:"manual-hello-world-loop-function-declaration-parent-ref-id",version:"1",entityType:r.Project,entityId:ne},Lg={type:r.FunctionDeclaration,id:_o,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Manual hello world loop",description:null,inputs:[],calls:[x4],returnStatements:[Dg],implements:null,collapsed:!1,private:!1,index:null,x:0,y:0,parent:j4},k4={type:r.GenericReference,id:"call-hello-world-loop-parent-ref-id",version:"1",entityType:r.Project,entityId:ne},Z4={id:"call-hello-world-loop-id",type:r.FunctionCall,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Lg,inputs:[],outputs:[],process:null,successCalls:[],errorCalls:[],error:null,calledByError:[],calledByEntry:[],calledBySuccess:[],x:0,y:0,parent:k4},Xr="company-dto-function-declaration-id",Ru="company-dto-func-declaration-argument-dcl-id",_r="company-dto-function-company-variable-id",Rn="company-dto-function-company-dto-variable-id",Wi="iterate-over-employee-list-loop-id",Gg="iterate-over-employee-list-loop-employee-dto-output-map-id",gu="iterate-over-employee-list-loop-body-current-employee-argument-declaration-id",Go="iterate-over-employee-list-loop-body-map-employee-dto-function-call-id",$g="iterate-over-employee-list-continue-statement-employee-dto-output-decl-id",Fg="iterate-over-employee-list-loop-body-map-employee-dto-function-call-employee-dto-output-map-id",Ug="iterate-over-employee-list-continue-statement-id",$o="iterate-over-employee-list-loop-body-id",xg="company-dto-func-declaration-return-statement-id",jg="company-dto-func-declaration-return-decl-id",kg="company-dto-func-declaration-company-variable-id-output-map-id",Zg="company-dto-func-declaration-company-variable-employess-output-map-id",qg="company-dto-func-declaration-company-variable-name-output-map-id",q4="company-dto-func-declaration-company-dto-variable-input-map-id",J4="company-dto-func-declaration-company-dto-variable-employess-input-map-id",W4="company-dto-func-declaration-company-dto-variable-name-input-map-id",Fo="company-dto-func-declaration-owner-variable-id",Y4="company-dto-func-declaration-company-dto-variable-owner-input-map-id",Jg="company-dto-func-declaration-company-variable-owner-output-map-id",Wg="company-dto-func-declaration-owner-variable-id-output-map-id",Uo="company-dto-func-declaration-bank-account-variable-id",H4="company-dto-func-declaration-company-dto-variable-bank-account-input-map-id",Yg="company-dto-func-declaration-company-variable-bank-account-output-map-id",Hg="company-dto-func-declaration-bank-account-variable-id-output-map-id",z4={type:r.GenericReference,id:"company-dto-func-returned-company-dto-data-type-parent-ref-id",version:"1",entityType:r.ReturnDeclaration,entityId:jg},K4={like:!1,inferred:!1,id:"company-dto-func-returned-company-dto-data-type-id",type:r.DataType,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:z4},X4={type:r.GenericReference,id:"company-dto-func-returned-company-dto-parent-ref-id",version:"1",entityType:r.ReturnStatement,entityId:xg},Q4={type:r.GenericReference,id:"company-dto-func-returned-company-dto-reads-value-ref-id",version:"1",entityType:r.VariableDeclaration,entityId:Rn},zg={constant:!0,isError:!1,id:jg,type:r.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:K4,readsValue:Q4,required:!0,index:0,parent:X4},eG={type:r.GenericReference,id:"company-dto-func-return-statement-called-by-ref-id",version:"1",entityType:r.Operation,entityId:Rn},tG={type:r.GenericReference,id:"company-dto-func-return-statement-parent-ref-id",version:"1",entityType:r.FunctionDeclaration,entityId:Xr},bu={type:r.ReturnStatement,id:xg,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[zg],calledByError:[],calledByEntry:[],calledBySuccess:[eG],throws:null,x:0,y:0,parent:tG},rG={type:r.GenericReference,id:"company-dto-func-company-dto-variable-owner-input-map-reads-value-ref-id",version:"1",entityType:r.OutputMap,entityId:Wg},nG={type:r.GenericReference,id:"company-dto-func-company-dto-variable-owner-output-map-parent-ref-id",version:"1",entityType:r.VariableDeclaration,entityId:Rn},Kg={id:Y4,type:r.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:rG,parent:nG},iG={type:r.GenericReference,id:"company-dto-func-company-dto-variable-bank-account-input-map-reads-value-ref-id",version:"1",entityType:r.OutputMap,entityId:Hg},aG={type:r.GenericReference,id:"company-dto-func-company-dto-variable-bank-account-output-map-parent-ref-id",version:"1",entityType:r.VariableDeclaration,entityId:Rn},Xg={id:H4,type:r.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:iG,parent:aG},sG={type:r.GenericReference,id:"company-dto-func-company-dto-variable-name-input-map-reads-value-ref-id",version:"1",entityType:r.OutputMap,entityId:qg},oG={type:r.GenericReference,id:"company-dto-func-company-dto-variable-name-output-map-parent-ref-id",version:"1",entityType:r.VariableDeclaration,entityId:Rn},Qg={id:W4,type:r.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:sG,parent:oG},lG={type:r.GenericReference,id:"company-dto-func-company-dto-variable-employess-input-map-reads-value-ref-id",version:"1",entityType:r.OutputMap,entityId:Gg},dG={type:r.GenericReference,id:"company-dto-func-company-dto-variable-employess-output-map-parent-ref-id",version:"1",entityType:r.VariableDeclaration,entityId:Rn},eb={id:J4,type:r.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:lG,parent:dG},uG={type:r.GenericReference,id:"company-dto-func-company-dto-variable-id-output-map-reads-value-ref-id",version:"1",entityType:r.OutputMap,entityId:kg},cG={type:r.GenericReference,id:"company-dto-func-company-dto-variable-id-output-map-parent-ref-id",version:"1",entityType:r.VariableDeclaration,entityId:Rn},tb={id:q4,type:r.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:uG,parent:cG},pG={type:r.GenericReference,id:"company-dto-func-company-dto-variable-parent-ref-id",version:"1",entityType:r.FunctionDeclaration,entityId:Xr},hG={type:r.GenericReference,id:"company-dto-func-company-dto-variable-called-by-ref-one-id",version:"1",entityType:r.VariableDeclaration,entityId:Uo},yG={type:r.GenericReference,id:"company-dto-func-company-dto-variable-called-by-ref-two-id",version:"1",entityType:r.VariableDeclaration,entityId:Fo},fG={type:r.GenericReference,id:"company-dto-func-company-dto-variable-called-by-ref-three-id",version:"1",entityType:r.VariableDeclaration,entityId:Wi},Iu={constant:!0,required:!0,id:Rn,type:r.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:[hG,yG,fG],successCalls:[bu],errorCalls:[],readsValue:null,writesValues:[zg],inputs:[tb,Qg,Xg,Kg,eb],outputs:[],internalCalls:[],parent:pG,x:0,y:0},qn="employee-dto-func-declaration-id",Au="employee-dto-func-declaration-argument-dcl-id",rb="employee-dto-func-declaration-return-statement-id",nb="employee-dto-func-declaration-return-decl-id",Jn="employee-dto-func-declaration-employee-variable-id",Wn="employee-dto-func-declaration-employee-dto-variable-id",xo="employee-dto-func-declaration-manager-variable-id",ib="employee-dto-func-declaration-employee-variable-id-output-map-id",ab="employee-dto-func-declaration-employee-variable-birth-date-output-map-id",sb="employee-dto-func-declaration-employee-variable-department-output-map-id",ob="employee-dto-func-declaration-employee-variable-manager-output-map-id",lb="employee-dto-func-declaration-manager-variable-id-output-map-id",mG="employee-dto-func-declaration-employee-dto-variable-input-map-id",TG="employee-dto-func-declaration-employee-dto-variable-birth-date-input-map-id",vG="employee-dto-func-declaration-employee-dto-variable-department-input-map-id",EG="employee-dto-func-declaration-employee-dto-variable-manager-input-map-id",RG={type:r.GenericReference,id:"employee-dto-func-returned-employee-dto-data-type-parent-ref-id",version:"1",entityType:r.ReturnDeclaration,entityId:nb},gG={like:!1,inferred:!1,id:"employee-dto-func-returned-employee-dto-data-type-id",type:r.DataType,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:RG},bG={type:r.GenericReference,id:"employee-dto-func-returned-employee-dto-parent-ref-id",version:"1",entityType:r.ReturnStatement,entityId:rb},IG={type:r.GenericReference,id:"employee-dto-func-returned-employee-dto-reads-value-ref-id",version:"1",entityType:r.VariableDeclaration,entityId:Wn},db={constant:!0,isError:!1,id:nb,type:r.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:gG,implements:null,readsValue:IG,required:!0,index:0,parent:bG},AG={type:r.GenericReference,id:"employee-dto-func-return-statement-called-by-ref-id",version:"1",entityType:r.Operation,entityId:Wn},DG={type:r.GenericReference,id:"employee-dto-func-return-statement-parent-ref-id",version:"1",entityType:r.FunctionDeclaration,entityId:qn},Du={type:r.ReturnStatement,id:rb,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[db],calledByError:[],calledByEntry:[],calledBySuccess:[AG],throws:null,x:0,y:0,parent:DG},PG={type:r.GenericReference,id:"employee-dto-func-employee-dto-variable-manager-input-map-reads-value-ref-id",version:"1",entityType:r.OutputMap,entityId:lb},SG={type:r.GenericReference,id:"employee-dto-func-employee-dto-variable-manager-output-map-parent-ref-id",version:"1",entityType:r.VariableDeclaration,entityId:Wn},ub={id:EG,type:r.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:PG,parent:SG},OG={type:r.GenericReference,id:"employee-dto-func-employee-dto-variable-department-input-map-reads-value-ref-id",version:"1",entityType:r.OutputMap,entityId:sb},VG={type:r.GenericReference,id:"employee-dto-func-employee-dto-variable-department-output-map-parent-ref-id",version:"1",entityType:r.VariableDeclaration,entityId:Wn},cb={id:vG,type:r.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:OG,parent:VG},CG={type:r.GenericReference,id:"employee-dto-func-employee-dto-variable-birth-date-input-map-reads-value-ref-id",version:"1",entityType:r.OutputMap,entityId:ab},wG={type:r.GenericReference,id:"employee-dto-func-employee-dto-variable-birth-date-output-map-parent-ref-id",version:"1",entityType:r.VariableDeclaration,entityId:Wn},pb={id:TG,type:r.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:CG,parent:wG},BG={type:r.GenericReference,id:"employee-dto-func-employee-dto-variable-id-output-map-reads-value-ref-id",version:"1",entityType:r.OutputMap,entityId:ib},MG={type:r.GenericReference,id:"employee-dto-func-employee-dto-variable-id-output-map-parent-ref-id",version:"1",entityType:r.VariableDeclaration,entityId:Wn},hb={id:mG,type:r.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:BG,parent:MG},_G={type:r.GenericReference,id:"employee-dto-func-employee-dto-variable-parent-ref-id",version:"1",entityType:r.FunctionDeclaration,entityId:qn},NG={type:r.GenericReference,id:"employee-dto-func-employee-dto-variable-called-by-ref-id",version:"1",entityType:r.VariableDeclaration,entityId:xo},LG={constant:!0,required:!0,id:Wn,type:r.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:[NG],successCalls:[Du],errorCalls:[],readsValue:null,writesValues:[db],inputs:[hb,pb,cb,ub],outputs:[],internalCalls:[],parent:_G,x:0,y:0},GG={type:r.GenericReference,id:"employee-dto-func-manager-variable-id-output-map-parent-ref-id",version:"1",entityType:r.VariableDeclaration,entityId:xo},$G={id:lb,type:r.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:rr.properties[0],index:0,writesValues:[ub],parent:GG},FG={type:r.GenericReference,id:"employee-dto-func-manager-variable-data-type-parent-ref-id",version:"1",entityType:r.VariableDeclaration,entityId:xo},UG={like:!1,inferred:!1,id:"employee-dto-func-manager-variable-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ur,asType:!1,isList:!1,parent:FG},xG={type:r.GenericReference,id:"employee-dto-func-manager-variable-reads-value-ref-id",version:"1",entityType:r.OutputMap,entityId:ob},jG={type:r.GenericReference,id:"employee-dto-func-manager-variable-parent-ref-id",version:"1",entityType:r.FunctionDeclaration,entityId:qn};r.GenericReference,r.VariableDeclaration;const yb={constant:!0,required:!0,id:xo,type:r.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:UG,calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[LG],errorCalls:[],readsValue:xG,writesValues:[],inputs:[],outputs:[$G],internalCalls:[],parent:jG,x:0,y:0},kG={type:r.GenericReference,id:"employee-dto-func-employee-variable-manager-output-map-parent-ref-id",version:"1",entityType:r.VariableDeclaration,entityId:Jn},ZG={id:ob,type:r.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:ur.properties[2],index:3,writesValues:[yb],parent:kG},qG={type:r.GenericReference,id:"employee-dto-func-employee-variable-department-output-map-parent-ref-id",version:"1",entityType:r.VariableDeclaration,entityId:Jn},JG={id:sb,type:r.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:ur.properties[0],index:2,writesValues:[cb],parent:qG},WG={type:r.GenericReference,id:"employee-dto-func-employee-variable-birth-date-output-map-parent-ref-id",version:"1",entityType:r.VariableDeclaration,entityId:Jn},YG={id:ab,type:r.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:Gt.properties[1],index:1,writesValues:[pb],parent:WG},HG={type:r.GenericReference,id:"employee-dto-func-employee-variable-id-output-map-parent-ref-id",version:"1",entityType:r.VariableDeclaration,entityId:Jn},zG={id:ib,type:r.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:rr.properties[0],index:0,writesValues:[hb],parent:HG},KG={type:r.GenericReference,id:"employee-dto-func-employee-variable-data-type-parent-ref-id",version:"1",entityType:r.VariableDeclaration,entityId:Jn},XG={like:!1,inferred:!1,id:"employee-dto-func-employee-variable-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ur,asType:!1,isList:!1,parent:KG},QG={type:r.GenericReference,id:"employee-dto-func-employee-variable-parent-ref-id",version:"1",entityType:r.FunctionDeclaration,entityId:qn},e$={type:r.GenericReference,id:"employee-dto-func-employee-variable-reads-value-ref-id",version:"1",entityType:r.ArgumentDeclaration,entityId:Au},t$={type:r.GenericReference,id:"employee-dto-func-employee-variable-called-by-id",version:"1",entityType:r.FunctionDeclaration,entityId:qn},fb={constant:!0,required:!0,id:Jn,type:r.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Company employee",dataType:XG,description:"A variable holding a company employee",calledByError:[],defaultValue:null,calledByEntry:[t$],calledBySuccess:[],successCalls:[yb],errorCalls:[],readsValue:e$,writesValues:[],inputs:[],outputs:[zG,YG,JG,ZG],internalCalls:[],parent:QG,x:0,y:0},r$={type:r.GenericReference,id:"employee-dto-func-declaration-employee-input-declaration-data-type-parent-ref-id",entityId:Au,version:"1",entityType:r.ArgumentDeclaration},n$={type:r.DataType,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:ur,asType:!1,isList:!1,like:!1,inferred:!1,parent:r$},i$={type:r.GenericReference,id:"employee-dto-func-declaration-employee-input-declaration-parent-ref-id",entityId:qn,version:"1",entityType:r.FunctionDeclaration},a$={constant:!0,type:r.ArgumentDeclaration,id:Au,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:n$,index:0,writesValues:[fb],parent:i$},s$={type:r.GenericReference,id:"employee-dto-function-declaration-parent-ref-id",version:"1",entityType:r.Project,entityId:ne},Pu={type:r.FunctionDeclaration,id:qn,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:[a$],calls:[fb],implements:null,returnStatements:[Du],collapsed:!1,private:!1,x:0,y:0,parent:s$},o$={id:"iterate-over-employee-list-continue-statement-employee-dto-output-decl-data-type-parent-ref-id",type:r.GenericReference,entityId:$g,version:"1",entityType:r.ReturnDeclaration},l$={like:!1,inferred:!1,id:"iterate-over-employee-list-continue-statement-employee-dto-output-decl-data-type-id",type:r.DataType,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:o$},d$={id:"iterate-over-employee-list-continue-statement-employee-dto-output-decl-reads-value-ref-id",type:r.GenericReference,entityId:Fg,version:"1",entityType:r.OutputMap},u$={id:"iterate-over-employee-list-continue-statement-employee-dto-output-decl-parent-ref-id",type:r.GenericReference,entityId:Ug,version:"1",entityType:r.ContinueStatement},mb={constant:!0,isError:!1,id:$g,type:r.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:d$,dataType:l$,implements:null,required:!0,index:0,parent:u$},c$={id:"iterate-over-employee-list-continue-statement-called-by-ref-id",type:r.GenericReference,entityId:Go,version:"1",entityType:r.FunctionCall},p$={id:"iterate-over-employee-list-continue-statement-parent-ref-id",type:r.GenericReference,entityId:Wi,version:"1",entityType:r.Loop},Tb={id:Ug,type:r.ContinueStatement,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,calledByError:[],calledByEntry:[],calledBySuccess:[c$],outputs:[mb],throws:null,x:0,y:0,parent:p$},h$={id:"iterate-over-employee-list-loop-body-map-employee-dto-function-call-employee-dto-output-map-parent-ref-id",type:r.GenericReference,entityId:Go,version:"1",entityType:r.FunctionCall},y$={id:Fg,type:r.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:Du.outputs[0],writesValues:[mb],index:0,parent:h$},f$={id:"iterate-over-employee-list-loop-body-map-employee-dto-function-call-employee-input-map-reads-value-ref-id",type:r.GenericReference,entityId:gu,version:"1",entityType:r.ArgumentDeclaration},m$={id:"iterate-over-employee-list-loop-body-map-employee-dto-function-call-employee-input-map-parent-ref-id",type:r.GenericReference,entityId:Go,version:"1",entityType:r.FunctionCall},vb={id:"iterate-over-employee-list-loop-body-map-employee-dto-function-call-employee-input-map-id",type:r.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:null,description:null,declaration:Pu.inputs[0],readsValue:f$,index:0,defaultValue:null,parent:m$},T$={id:"iterate-over-employee-list-loop-body-map-employee-dto-function-call-called-by-ref-id",type:r.GenericReference,entityId:$o,version:"1",entityType:r.FunctionDeclaration},v$={id:"iterate-over-employee-list-loop-body-map-employee-dto-function-call-parent-ref-id",type:r.GenericReference,entityId:$o,version:"1",entityType:r.FunctionDeclaration},E$={id:Go,type:r.FunctionCall,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Pu,inputs:[vb],process:null,outputs:[y$],calledByError:[],calledByEntry:[T$],calledBySuccess:[],successCalls:[Tb],errorCalls:[],error:null,x:0,y:0,parent:v$},R$={type:r.GenericReference,id:"iterate-over-employee-list-loop-body-current-employee-argument-declaration-data-type-parent-ref-id",entityId:gu,version:"1",entityType:r.ArgumentDeclaration},g$={like:!1,inferred:!1,id:"iterate-over-employee-list-loop-body-current-employee-argument-declaration-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ur,isList:!1,asType:!1,parent:R$},b$={id:"iterate-over-employee-list-loop-body-current-employee-argument-declaration-parent-ref-id",type:r.GenericReference,entityId:$o,version:"1",entityType:r.FunctionDeclaration},I$={constant:!0,id:gu,type:r.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:g$,required:!0,implements:Ws,index:0,writesValues:[vb],parent:b$},A$={id:"iterate-over-employee-list-loop-body-parent-ref-id",type:r.GenericReference,entityId:Wi,version:"1",entityType:r.Loop},D$={id:$o,type:r.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:[I$],calls:[E$],implements:Aa,collapsed:!1,returnStatements:[],private:!1,index:0,x:0,y:0,parent:A$},P$={id:"iterate-over-employee-list-loop-iteration-list-input-map-parent-ref-id",type:r.GenericReference,entityId:Wi,version:"1",entityType:r.Loop},S$={id:"iterate-over-employee-list-loop-iteration-list-input-map-reads-value-ref-id",type:r.GenericReference,entityId:Zg,version:"1",entityType:r.OutputMap},Eb={id:"iterate-over-employee-list-loop-iteration-list-input-map-id",type:r.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:null,description:null,declaration:cn.inputs[0],defaultValue:null,readsValue:S$,index:0,parent:P$},O$={id:"iterate-over-employee-list-loop-parent-ref-id",type:r.GenericReference,entityId:Xr,version:"1",entityType:r.FunctionDeclaration},V$={id:"iterate-over-employee-list-loop-employee-dto-output-map-parent-ref-id",type:r.GenericReference,entityId:Wi,version:"1",entityType:r.Loop},C$={id:Gg,type:r.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:cn.outputs[0],writesValues:[eb],index:0,parent:V$},w$={type:r.GenericReference,id:"iterate-over-employee-list-loop-called-by-ref-id",version:"1",entityType:r.VariableDeclaration,entityId:_r},B$={id:Wi,type:r.Loop,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:cn,inputs:[Eb],successCalls:[Iu],errorCalls:[],outputsDeclarations:[],outputs:[C$],body:D$,process:null,calledByError:[],calledByEntry:[],calledBySuccess:[w$],breakStatements:[],continueStatements:[Tb],error:null,x:0,y:0,parent:O$},M$={type:r.GenericReference,id:"company-dto-func-bank-account-variable-id-output-map-parent-ref-id",version:"1",entityType:r.VariableDeclaration,entityId:Uo},_$={id:Hg,type:r.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:rr.properties[0],index:0,writesValues:[Xg],parent:M$},N$={type:r.GenericReference,id:"company-dto-func-bank-account-variable-data-type-parent-ref-id",version:"1",entityType:r.VariableDeclaration,entityId:Uo},L$={like:!1,inferred:!1,id:"company-dto-func-bank-account-variable-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:cr,asType:!1,isList:!1,parent:N$},G$={type:r.GenericReference,id:"company-dto-func-bank-account-variable-reads-value-ref-id",version:"1",entityType:r.OutputMap,entityId:Yg},$$={type:r.GenericReference,id:"company-dto-func-bank-account-variable-parent-ref-id",version:"1",entityType:r.FunctionDeclaration,entityId:Xr};r.GenericReference,r.VariableDeclaration;const Rb={constant:!0,required:!0,id:Uo,type:r.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:L$,calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[Iu],errorCalls:[],readsValue:G$,writesValues:[],inputs:[],outputs:[_$],internalCalls:[],parent:$$,x:0,y:0},F$={type:r.GenericReference,id:"company-dto-func-owner-variable-id-output-map-parent-ref-id",version:"1",entityType:r.VariableDeclaration,entityId:Fo},U$={id:Wg,type:r.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:rr.properties[0],index:0,defaultValue:null,writesValues:[Kg],parent:F$},x$={type:r.GenericReference,id:"company-dto-func-owner-variable-data-type-parent-ref-id",version:"1",entityType:r.VariableDeclaration,entityId:Fo},j$={like:!1,inferred:!1,id:"company-dto-func-owner-variable-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:cr,asType:!1,isList:!1,parent:x$},k$={type:r.GenericReference,id:"company-dto-func-owner-variable-reads-value-ref-id",version:"1",entityType:r.OutputMap,entityId:Jg},Z$={type:r.GenericReference,id:"company-dto-func-owner-variable-parent-ref-id",version:"1",entityType:r.FunctionDeclaration,entityId:Xr};r.GenericReference,r.VariableDeclaration;const gb={constant:!0,required:!0,id:Fo,type:r.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Owner",dataType:j$,description:"A variable holding an inherited owner",defaultValue:null,calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[Iu],errorCalls:[],readsValue:k$,writesValues:[],inputs:[],outputs:[U$],internalCalls:[],parent:Z$,x:0,y:0},q$={type:r.GenericReference,id:"company-dto-func-company-variable-owner-output-map-parent-ref-id",version:"1",entityType:r.VariableDeclaration,entityId:_r},J$={id:Jg,type:r.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:cr.properties[2],index:4,writesValues:[gb],parent:q$},W$={type:r.GenericReference,id:"company-dto-func-company-variable-bank-account-output-map-parent-ref-id",version:"1",entityType:r.VariableDeclaration,entityId:_r},Y$={id:Yg,type:r.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:cr.properties[2],index:3,writesValues:[Rb],parent:W$},H$={type:r.GenericReference,id:"company-dto-func-company-variable-name-output-map-parent-ref-id",version:"1",entityType:r.VariableDeclaration,entityId:_r},z$={id:qg,type:r.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:cr.properties[0],index:2,writesValues:[Qg],parent:H$},K$={type:r.GenericReference,id:"company-dto-func-company-variable-employess-output-map-parent-ref-id",version:"1",entityType:r.VariableDeclaration,entityId:_r},X$={id:Zg,type:r.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:cr.properties[3],index:1,writesValues:[Eb],parent:K$},Q$={type:r.GenericReference,id:"company-dto-func-company-variable-id-output-map-parent-ref-id",version:"1",entityType:r.VariableDeclaration,entityId:_r},eF={id:kg,type:r.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:rr.properties[0],index:0,writesValues:[tb],parent:Q$},tF={type:r.GenericReference,id:"company-dto-func-company-variable-data-type-parent-ref-id",version:"1",entityType:r.VariableDeclaration,entityId:_r},rF={like:!1,inferred:!1,id:"company-dto-func-company-variable-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:cr,asType:!1,isList:!1,parent:tF},nF={type:r.GenericReference,id:"company-dto-func-company-variable-parent-ref-id",version:"1",entityType:r.FunctionDeclaration,entityId:Xr},iF={type:r.GenericReference,id:"company-dto-func-company-variable-reads-value-ref-id",version:"1",entityType:r.ArgumentDeclaration,entityId:Ru},aF={type:r.GenericReference,id:"company-dto-func-company-variable-called-by-id",version:"1",entityType:r.FunctionDeclaration,entityId:Xr},bb={constant:!0,required:!0,id:_r,type:r.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Company",dataType:rF,description:"A variable holding a company",defaultValue:null,calledByError:[],calledByEntry:[aF],calledBySuccess:[],successCalls:[Rb,gb,B$],errorCalls:[],readsValue:iF,writesValues:[],inputs:[],outputs:[eF,X$,z$,Y$,J$],internalCalls:[],parent:nF,x:0,y:0},sF={type:r.GenericReference,id:"company-dto-func-declaration-company-input-declaration-data-type-parent-ref-id",entityId:Ru,version:"1",entityType:r.ArgumentDeclaration},oF={type:r.DataType,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:cr,asType:!1,isList:!1,like:!1,inferred:!1,parent:sF},lF={type:r.GenericReference,id:"company-dto-func-declaration-company-input-declaration-parent-ref-id",entityId:Xr,version:"1",entityType:r.FunctionDeclaration},dF={constant:!0,type:r.ArgumentDeclaration,id:Ru,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:oF,index:0,writesValues:[bb],parent:lF},uF={type:r.GenericReference,id:"company-dto-function-declaration-parent-ref-id",version:"1",entityType:r.Project,entityId:ne},Su={type:r.FunctionDeclaration,id:Xr,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:[dF],calls:[bb],implements:null,index:null,returnStatements:[bu],collapsed:!1,private:!1,x:0,y:0,parent:uF},Xa="exec-in-parallel-operation-call-id",Qa="exec-sequentially-operation-call-id",$t="concurrency-and-wait-function-declaration-id",Ib="concurrency-and-wait-return-statement-id",Ab="concurrency-and-wait-return-declaration-id",Ou="exec-in-parallel-argument-map-id",Db="exec-sequentially-argument-map-id",Vu="wait-for-2-seconds-operation-id",Pb="wait-for-2-seconds-argument-map-id",Cu="map-company-dto-function-call-id",Sb="map-company-dto-function-call-company-dto-output-map-id",jo="company-dto-variable-one-id",wu="company-dto-variable-one-instance-id",Ob="company-dto-variable-two-id",cF={type:r.GenericReference,id:"returned-company-dto-data-type-parent-ref-id",version:"1",entityType:r.ReturnDeclaration,entityId:Ab},pF={like:!1,inferred:!1,id:"returned-company-dto-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:cr,asType:!1,isList:!1,parent:cF},hF={type:r.GenericReference,id:"returned-company-dto-parent-ref-id",version:"1",entityType:r.ReturnStatement,entityId:Ib},yF={type:r.GenericReference,id:"returned-company-dto-reads-value-ref-id",version:"1",entityType:r.VariableDeclaration,entityId:Ob},Vb={constant:!0,isError:!1,id:Ab,type:r.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:pF,implements:null,readsValue:yF,required:!0,index:0,parent:hF},fF={type:r.GenericReference,id:"concurrency-and-wait-return-statement-called-by-ref-id",version:"1",entityType:r.Operation,entityId:Vu},mF={type:r.GenericReference,id:"concurrency-and-wait-return-statement-parent-ref-id",version:"1",entityType:r.FunctionDeclaration,entityId:$t},Cb={type:r.ReturnStatement,id:Ib,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[Vb],calledByError:[],calledByEntry:[],calledBySuccess:[fF],throws:null,x:0,y:0,parent:mF},TF={type:r.GenericReference,id:"company-dto-variable-two-called-by-ref-id",version:"1",entityType:r.VariableInstance,entityId:wu},vF={type:r.GenericReference,id:"company-dto-variable-two-reads-value-ref-id",version:"1",entityType:r.VariableInstance,entityId:wu},EF={type:r.GenericReference,id:"company-dto-variable-two-parent-ref-id",version:"1",entityType:r.FunctionDeclaration,entityId:$t},wb={constant:!0,required:!0,id:Ob,type:r.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:[TF],internalCalls:[],writesValues:[Vb],readsValue:vF,x:0,y:0,parent:EF},RF={type:r.GenericReference,id:"company-dto-variable-one-instance-called-by-ref-id",version:"1",entityType:r.VariableDeclaration,entityId:jo},gF={type:r.GenericReference,id:"company-dto-variable-one-instance-reads-value-ref-id",version:"1",entityType:r.VariableDeclaration,entityId:jo},bF={type:r.GenericReference,id:"company-dto-variable-one-instance-parent-ref-id",version:"1",entityType:r.FunctionDeclaration,entityId:$t},IF={type:r.GenericReference,id:"company-dto-variable-one-instance-declaration-ref-id",version:"1",entityType:r.VariableDeclaration,entityId:jo},Bb={id:wu,type:r.VariableInstance,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:IF,inputs:[],outputs:[],successCalls:[wb],errorCalls:[],defaultValue:null,calledByError:[],calledByEntry:[],calledBySuccess:[RF],internalCalls:[],writesValues:[wb],readsValue:gF,x:0,y:0,parent:bF},AF={type:r.GenericReference,id:"company-dto-variable-one-called-by-ref-id",version:"1",entityType:r.FunctionCall,entityId:Cu},DF={type:r.GenericReference,id:"company-dto-variable-one-reads-value-ref-id",version:"1",entityType:r.OutputMap,entityId:Sb},PF={type:r.GenericReference,id:"company-dto-variable-one-parent-ref-id",version:"1",entityType:r.FunctionDeclaration,entityId:$t},Mb={constant:!0,required:!0,id:jo,type:r.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:[Bb],errorCalls:[],calledByError:[],calledByEntry:[],calledBySuccess:[AF],internalCalls:[],writesValues:[Bb],readsValue:DF,x:0,y:0,parent:PF},_b={type:r.GenericReference,id:"map-company-dto-function-call-company-input-map-parent-ref-id",version:"1",entityType:r.FunctionCall,entityId:Cu},SF={id:"map-company-dto-function-call-company-input-map-id",type:r.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Su.inputs[0],name:null,description:null,defaultValue:null,index:0,readsValue:null,parent:_b},OF={id:Sb,type:r.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:bu.outputs[0],writesValues:[Mb],index:0,parent:_b},VF={id:"map-company-dto-function-call-called-by-ref-id",type:r.GenericReference,version:"1",entityType:r.FunctionDeclaration,entityId:$t},CF={id:"map-company-dto-function-call-parent-ref-id",type:r.GenericReference,version:"1",entityType:r.FunctionDeclaration,entityId:$t},wF={id:Cu,type:r.FunctionCall,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Su,successCalls:[Mb],process:null,errorCalls:[],inputs:[SF],outputs:[OF],calledByError:[],calledByEntry:[VF],calledBySuccess:[],parent:CF,x:0,y:0,error:null},BF={type:r.GenericReference,id:"last-timestamp-variable-datatype-parent-ref-id",version:"1",entityType:r.VariableDeclaration,entityId:nu},MF={type:r.GenericReference,id:"last-timestamp-variable-default-value-parent-ref-id",version:"1",entityType:r.VariableDeclaration,entityId:nu},_F={like:!1,inferred:!1,id:"last-timestamp-variable-datatype-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,entity:Pr,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,asType:!1,isList:!1,parent:BF},NF={type:r.GenericReference,id:"last-timestamp-variable-main-project-ref-id",version:"1",entityType:r.Project,entityId:ne},Bu={constant:!0,required:!0,id:nu,type:r.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:r.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:C.Date,value:null,autogeneration:{type:st.CurrentDateAndTime,rangeStart:null,rangeEnd:null},valueAsType:null,parent:MF},dataType:_F,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],x:0,y:0,readsValue:null,writesValues:[],internalCalls:[],parent:NF},LF={type:r.GenericReference,id:"wait-for-2-seconds-argument-default-value-parent-ref-id",version:"1",entityType:r.InputMap,entityId:Pb},GF={type:r.GenericReference,id:"wait-for-2-seconds-argument-map-parent-ref-id",version:"1",entityType:r.Operation,entityId:Vu},$F={id:Pb,type:r.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Bn,name:null,description:null,readsValue:null,defaultValue:{id:"wait-for-2-seconds-argument-default-value-id",type:r.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:2e3,valueAsType:null,autogeneration:null,name:C.Number,parent:LF},index:0,parent:GF},FF={type:r.GenericReference,id:"wait-for-2-seconds-parent-ref-id",version:"1",entityType:r.FunctionDeclaration,entityId:$t},UF={type:r.GenericReference,id:"wait-for-2-seconds-called-by-ref-one-id",version:"1",entityType:r.Operation,entityId:Qa},xF={type:r.GenericReference,id:"wait-for-2-seconds-called-by-ref-two-id",version:"1",entityType:r.Operation,entityId:Xa},Nb={id:Vu,type:r.Operation,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Tr,inputs:[$F],outputs:[],process:null,successCalls:[Cb],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[],calledBySuccess:[UF,xF],error:null,parent:FF},jF={type:r.GenericReference,id:"wait-for-random-amount-argument-default-value-parent-ref-id",version:"1",entityType:r.InputMap,entityId:"wait-for-random-amount-input-map-id"},kF={type:r.GenericReference,id:"wait-for-random-amount-argument-map-parent-ref-id",version:"1",entityType:r.Operation,entityId:"wait-for-random-amount-id"},ZF={id:"wait-for-random-amount-input-map-id",type:r.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Bn,name:null,description:null,readsValue:null,defaultValue:{id:"wait-for-random-amount-argument-default-value-id",type:r.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:null,valueAsType:null,autogeneration:{type:st.Random,rangeStart:1e3,rangeEnd:4e3},name:C.Number,parent:jF},index:0,parent:kF},qF={type:r.GenericReference,id:"wait-for-random-amount-parent-ref-id",version:"1",entityType:r.Project,entityId:ne},Yi={id:"wait-for-random-amount-id",type:r.Operation,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Tr,inputs:[ZF],process:null,outputs:[],successCalls:[],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[],calledBySuccess:[],error:null,parent:qF},Mu="list-of-functions-variable-id",JF={type:r.GenericReference,id:"list-of-functions-variable-action-descriptor-dynamic-argument-parent-ref-id",version:"1",entityType:r.ActionDescriptor,entityId:"list-of-functions-variable-action-descriptor-id"},WF={id:"list-of-functions-variable-action-descriptor-dynamic-argument-id",type:r.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:JF},YF={type:r.GenericReference,id:"list-of-functions-variable-action-descriptor-dynamic-return-parent-ref-id",version:"1",entityType:r.ActionDescriptor,entityId:"list-of-functions-variable-action-descriptor-id"},HF={id:"list-of-functions-variable-action-descriptor-dynamic-return-id",type:r.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:YF},zF={type:r.GenericReference,id:"list-of-functions-variable-data-type-parent-ref-id",version:"1",entityType:r.VariableDeclaration,entityId:Mu},KF={type:r.GenericReference,id:"list-of-functions-variable-action-descriptor-parent-ref-id",version:"1",entityType:r.DataType,entityId:"list-of-functions-variable-data-type-id"},XF={id:"list-of-functions-variable-action-descriptor-id",type:r.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:[WF],error:null,outputs:[HF],parent:KF},QF={type:r.GenericReference,id:"list-of-functions-variable-data-type-default-parent-ref-id",version:"1",entityType:r.VariableDeclaration,entityId:Mu},eU={like:!1,inferred:!1,id:"list-of-functions-variable-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:XF,asType:!1,isList:!0,parent:zF},tU={type:r.GenericReference,id:"list-of-functions-variable-parent-ref-id",version:"1",entityType:r.FunctionDeclaration,entityId:$t};r.GenericReference,r.InputMap;const rU={type:r.GenericReference,id:"list-of-functions-variable-writes-value-one-ref-id",version:"1",entityType:r.InputMap,entityId:Db},nU={type:r.GenericReference,id:"list-of-functions-variable-writes-value-two-ref-id",version:"1",entityType:r.InputMap,entityId:Ou},Lb={constant:!0,required:!0,id:Mu,type:r.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:r.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:C.ActionDescriptor,value:null,valueAsType:[Yi,Yi,Yi,Yi,Yi],autogeneration:null,parent:QF},dataType:eU,parent:tU,readsValue:null,writesValues:[rU,nU],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],inputs:[],outputs:[],internalCalls:[],x:0,y:0},iU={type:r.GenericReference,id:"exec-in-parallel-return-map-parent-ref-id",version:"1",entityType:r.Operation,entityId:Xa},aU={type:r.GenericReference,id:"exec-in-parallel-result-variable-parent-ref-id",version:"1",entityType:r.FunctionDeclaration,entityId:$t},sU={type:r.GenericReference,id:"exec-in-parallel-result-variable-reads-value-ref-id",version:"1",entityType:r.OutputMap,entityId:"exec-in-parallel-return-map-id"},oU={type:r.GenericReference,id:"exec-in-parallel-result-variable-called-by-ref-id",version:"1",entityType:r.Operation,entityId:Xa},Gb={id:"exec-in-parallel-result-variable-id",type:r.VariableInstance,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Bu,readsValue:sU,writesValues:[],defaultValue:null,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[oU],successCalls:[],errorCalls:[],internalCalls:[],parent:aU,x:0,y:0},lU={id:"exec-in-parallel-return-map-id",type:r.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:cd,writesValues:[Gb],index:0,parent:iU},dU={type:r.GenericReference,id:"exec-in-parallel-argument-map-parent-ref-id",version:"1",entityType:r.Operation,entityId:Xa},uU={id:Ou,type:r.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:ud,name:null,description:null,readsValue:Lb,defaultValue:null,index:0,parent:dU},cU={type:r.GenericReference,id:"exec-in-parallel-parent-ref-id",version:"1",entityType:r.FunctionDeclaration,entityId:$t},pU={type:r.GenericReference,id:"exec-in-parallel-called-by-ref-id",version:"1",entityType:r.FunctionDeclaration,entityId:$t},hU={process:null,id:Xa,type:r.Operation,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Tr,inputs:[uU],outputs:[lU],successCalls:[Nb,Gb],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[pU],calledBySuccess:[],error:null,parent:cU},yU={type:r.GenericReference,id:"exec-sequentially-return-map-parent-ref-id",version:"1",entityType:r.Operation,entityId:Qa},fU={type:r.GenericReference,id:"exec-sequentially-result-variable-parent-ref-id",version:"1",entityType:r.FunctionDeclaration,entityId:$t},mU={type:r.GenericReference,id:"exec-sequentially-result-variable-reads-value-ref-id",version:"1",entityType:r.OutputMap,entityId:"exec-sequentially-return-map-id"},TU={type:r.GenericReference,id:"exec-sequentially-result-variable-called-by-ref-id",version:"1",entityType:r.Operation,entityId:Qa},$b={id:"exec-sequentially-result-variable-id",type:r.VariableInstance,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Bu,readsValue:mU,defaultValue:null,writesValues:[],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[TU],successCalls:[],errorCalls:[],internalCalls:[],parent:fU,x:0,y:0},vU={id:"exec-sequentially-return-map-id",type:r.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:hd,writesValues:[$b],index:0,parent:yU},EU={type:r.GenericReference,id:"exec-sequentially-argument-map-parent-ref-id",version:"1",entityType:r.Operation,entityId:Qa},RU={id:Db,type:r.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:pd,name:null,description:null,readsValue:Lb,defaultValue:null,index:0,parent:EU},gU={type:r.GenericReference,id:"exec-sequentially-parent-ref-id",version:"1",entityType:r.FunctionDeclaration,entityId:$t},bU={type:r.GenericReference,id:"exec-sequentially-called-by-ref-id",version:"1",entityType:r.FunctionDeclaration,entityId:$t},IU={id:Qa,type:r.Operation,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Wr,inputs:[RU],process:null,outputs:[vU],successCalls:[Nb,$b],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[bU],calledBySuccess:[],error:null,parent:gU},AU={type:r.GenericReference,id:"concurrency-and-wait-parent-ref-id",version:"1",entityType:r.Project,entityId:ne},DU={type:r.FunctionDeclaration,id:$t,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:[IU,hU,wF],returnStatements:[Cb],implements:null,index:null,collapsed:!1,private:!1,x:0,y:0,parent:AU},PU={type:r.GenericReference,id:"3521f2c8-a5c0-419c-8808-4fc6a73d0b78",version:"1",entityType:r.ReturnDeclaration,entityId:"e1ec31f0-25ca-42ac-a4c4-c9ec2255f55b"},SU={like:!1,inferred:!1,id:"ce8b9a30-afe9-4d4f-879f-1677efca2c47",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:cr,isList:!1,asType:!1,parent:PU},OU={type:r.GenericReference,id:"8ee66e38-b060-474e-a503-594063a8ec24",version:"1",entityType:r.ReturnStatement,entityId:"40a23a98-d3b2-42b1-9652-b33779ad15aa"},VU={constant:!0,isError:!1,id:"e1ec31f0-25ca-42ac-a4c4-c9ec2255f55b",type:r.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:SU,readsValue:null,required:!0,index:0,parent:OU},CU={type:r.GenericReference,id:"9cb3c1e4-7250-4be6-be2a-69c2dd366d6f",version:"1",entityType:r.FunctionDeclaration,entityId:"5059c093-eda2-4efc-b7b4-aaaadd4d44de"},wU={type:r.GenericReference,id:"c065fcdd-e054-4f95-941c-7eaa65c35d04",version:"1",entityType:r.FunctionDeclaration,entityId:"5059c093-eda2-4efc-b7b4-aaaadd4d44de"},Fb={type:r.ReturnStatement,id:"40a23a98-d3b2-42b1-9652-b33779ad15aa",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[VU],calledByError:[],calledByEntry:[wU],calledBySuccess:[],throws:null,x:0,y:0,parent:CU},BU={type:r.GenericReference,id:"312ef836-9e40-4d57-b177-03b7145ed074",version:"1",entityType:r.Project,entityId:ne},MU={type:r.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:[Fb],index:null,implements:null,returnStatements:[Fb],collapsed:!1,private:!1,x:0,y:0,parent:BU},_u="get-current-date-and-time-func-decl-id",Ub="get-current-date-and-time-return-statement-id",Nu="get-current-date-and-time-return-declaration-id",_U="get-current-date-and-time-return-declaration-data-type-id",NU={type:r.GenericReference,id:"get-current-date-and-time-return-declaration-data-type-value-parent-ref-id",version:"1",entityType:r.ReturnDeclaration,entityId:Nu},LU={type:r.GenericReference,id:"get-current-date-and-time-return-declaration-data-type-parent-ref-id",version:"1",entityType:r.ReturnDeclaration,entityId:Nu},GU={type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,id:_U,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Pr,asType:!1,isList:!1,like:!1,inferred:!1,parent:LU},$U={type:r.GenericReference,id:"get-current-date-and-time-return-declaration-parent-ref-id",version:"1",entityType:r.ReturnStatement,entityId:Ub};r.ReturnDeclaration,r.LiteralValue,C.Date,st.CurrentDateAndTime;const FU={type:r.GenericReference,id:"get-current-date-and-time-return-statement-called-by-ref-id",version:"1",entityType:r.FunctionDeclaration,entityId:_u},UU={type:r.GenericReference,id:"get-current-date-and-time-return-statement-parent-ref-id",version:"1",entityType:r.FunctionDeclaration,entityId:_u};r.ReturnStatement;const xU={type:r.GenericReference,id:"concurrency-and-wait-parent-ref-id",version:"1",entityType:r.Project,entityId:ne},jU={type:r.FunctionDeclaration,id:_u,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:[],returnStatements:[],implements:null,index:null,collapsed:!1,private:!1,x:0,y:0,parent:xU},xb="do-math-return-statement-id",Lu="do-math-return-declaration-id",kU={type:r.GenericReference,id:"do-math-func-var-to-return-one-ref-id",version:"1",entityType:r.VariableDeclaration,entityId:"do-math-func-var-to-return-one-id"},ZU={like:!1,inferred:!1,id:"do-math-func-var-to-return-one-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ue,asType:!1,isList:!1,parent:kU},qU={type:r.GenericReference,id:"do-math-func-decl-ref-two-id",version:"1",entityType:r.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},JU={type:r.GenericReference,id:"do-math-func-var-to-return-one-map-ref-id",version:"1",entityType:r.ReturnDeclaration,entityId:Lu},WU={constant:!0,required:!0,type:r.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:ZU,readsValue:null,writesValues:[JU],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:qU},YU={type:r.GenericReference,id:"96ec244e-594b-45f7-802b-6dc3056920f6",version:"1",entityType:r.ReturnStatement,entityId:xb},HU={type:r.GenericReference,id:"d120c0cc-9d13-4e45-90e2-4e1ee825ca46",version:"1",entityType:r.ReturnDeclaration,entityId:Lu},zU={like:!1,inferred:!1,id:"da91aa23-9985-49ac-a8bf-9d623ba1ba8f",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ue,isList:!1,asType:!1,parent:HU},KU={constant:!0,isError:!1,id:Lu,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:r.ReturnDeclaration,name:"Result",description:null,implements:null,defaultValue:null,dataType:zU,readsValue:WU,required:!0,index:0,parent:YU},XU={type:r.GenericReference,id:"57fd93e4-93a1-484e-82eb-4dd15d2d0e24",version:"1",entityType:r.Operation,entityId:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e"},QU={type:r.GenericReference,id:"0a86e8d5-ab21-476e-a482-b928cbf351e3",version:"1",entityType:r.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},jb={type:r.ReturnStatement,id:xb,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[KU],calledByError:[],calledByEntry:[],calledBySuccess:[XU],parent:QU,throws:null,x:0,y:0},ex={type:r.GenericReference,id:"a2db26be-57f2-48e5-9769-cdbf0d95dc7c",version:"1",entityType:r.VariableDeclaration,entityId:"d0e9f1f3-7e9f-4e1f-8d8e-7b4b3e6c6a6a"},tx={like:!1,inferred:!1,id:"c3e9d5f0-204f-45f9-85f7-e1b56b468388",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ue,asType:!1,isList:!1,parent:ex},rx={type:r.GenericReference,id:"692122c5-610a-4504-90dd-f5a5202d116c",version:"1",entityType:r.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},nx={type:r.GenericReference,id:"do-math-func-return-one-called-by",version:"1",entityType:r.Operation,entityId:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e"},ix={type:r.GenericReference,id:"6dceb501-be5b-4252-afb4-3c0d08abba33",version:"1",entityType:r.OutputMap,entityId:"64752080-ee0f-4cfe-9897-a0668f2b2aca"},kb={constant:!0,required:!0,type:r.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:tx,description:null,defaultValue:null,readsValue:ix,writesValues:[],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[nx],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:rx},ax={type:r.GenericReference,id:"5440f523-af38-4981-8035-89d162fe8041",version:"1",entityType:r.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},sx={type:r.GenericReference,id:"8c482c35-e674-4713-a1dd-63c3d13b611c",version:"1",entityType:r.OutputMap,entityId:"64752080-ee0f-4cfe-9897-a0668f2b2aca"},ox={type:r.GenericReference,id:"c0a299cd-5869-4930-8cf0-90e3ceb8a903",version:"1",entityType:r.VariableDeclaration,entityId:"46b2fe23-b417-4887-a35d-09b186679172"},lx={like:!1,inferred:!1,id:"51c0c1df-2ee3-41df-ae52-ac512d8cf795",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ue,isList:!1,asType:!1,parent:ox},dx={type:r.GenericReference,id:"do-math-func-return-two-called-by",version:"1",entityType:r.Operation,entityId:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e"},Zb={constant:!0,required:!0,type:r.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:[dx],successCalls:[],errorCalls:[],dataType:lx,readsValue:sx,writesValues:[],internalCalls:[],parent:ax,x:0,y:0},qb={type:r.GenericReference,id:"6e4d776e-6af2-4321-b630-c78110fd677c",version:"1",entityType:r.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},ux={type:r.GenericReference,id:"5b60955b-2486-40b6-bb24-ffd97ccd8902",version:"1",entityType:r.Operation,entityId:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e"},cx={type:r.GenericReference,id:"1a49923f-bc6f-453f-a438-e74e5475c2a9",version:"1",entityType:r.Operation,entityId:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e"},px={type:r.GenericReference,id:"02bfde0a-b757-4072-9613-6e9c7c9a424a",version:"1",entityType:r.ArgumentDeclaration,entityId:"d8895765-f705-457e-85fa-25d130926769"},Jb={id:"928953b0-0e3f-4d8c-ae5a-84620b4b8c68",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:r.InputMap,declaration:Kl,name:null,description:null,readsValue:px,defaultValue:null,index:0,parent:cx},hx={id:"64752080-ee0f-4cfe-9897-a0668f2b2aca",type:r.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:ed,writesValues:[kb,Zb],index:0,parent:ux},yx={type:r.GenericReference,id:"d235a7f6-07ff-4f35-98d2-8f42dd59cf9f",version:"1",entityType:r.Operation,entityId:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e"},fx={id:"8827e8e9-9381-4ad7-8f61-5419c23c9136",type:r.GenericReference,version:"1",entityType:r.VariableDeclaration,entityId:"72a338d8-0183-4ca2-8760-227517854595"},Wb={id:"a5525249-0eb5-472b-97bc-5e4cc0d75aee",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:r.InputMap,declaration:Xl,name:null,description:null,readsValue:fx,defaultValue:null,index:1,parent:yx},mx={type:r.Operation,id:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e",declaration:Ms,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,inputs:[Jb,Wb],outputs:[hx],calledByError:[],calledByEntry:[qb],calledBySuccess:[],process:null,successCalls:[jb,kb,Zb],errorCalls:[],parent:qb,error:null,x:0,y:0},Tx={type:r.GenericReference,id:"a2c40226-2270-4963-a865-c777ba79c551",version:"1",entityType:r.VariableDeclaration,entityId:"72a338d8-0183-4ca2-8760-227517854595"},vx={id:"f47731b3-f278-4ab5-aeb2-24519c1119fb",type:r.GenericReference,entityId:"72a338d8-0183-4ca2-8760-227517854595",version:"1",entityType:r.ArgumentDeclaration},Yb={like:!1,inferred:!1,id:"a350a9e9-25ee-477f-a83d-9e98ed2451662",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ue,isList:!1,asType:!1,parent:vx},Ex={type:r.GenericReference,id:"5f5d8dd0-7f3b-40cd-9f84-83d976887eaf",version:"1",entityType:r.ArgumentDeclaration,entityId:"649bf0a4-6532-44aa-9818-a03d1c6564e9"},Rx={type:r.GenericReference,id:"ca018d0f-a8b3-4c7e-a408-c8b372d04aff",version:"1",entityType:r.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},gx={type:r.GenericReference,id:"do-math-func-var-called-by-ref",version:"1",entityType:r.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},Hb={constant:!0,required:!0,id:"72a338d8-0183-4ca2-8760-227517854595",type:r.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:r.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:1,name:C.Number,valueAsType:null,autogeneration:null,parent:Tx},dataType:Yb,inputs:[],outputs:[],calledByError:[],calledByEntry:[gx],calledBySuccess:[],successCalls:[],errorCalls:[],readsValue:Ex,writesValues:[Wb],internalCalls:[],x:0,y:0,parent:Rx},bx={version:"1",entityType:r.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b",type:r.GenericReference,id:"af0cf105-4075-425f-aecc-b25d3600fcc4"},Ix={constant:!0,id:"649bf0a4-6532-44aa-9818-a03d1c6564e9",type:r.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:Yb,implements:null,writesValues:[Hb],required:!0,index:1,parent:bx},Ax={type:r.GenericReference,id:"56953b5d-3e43-4dea-a62c-f3e868ba81bb",version:"1",entityType:r.Project,entityId:ne},Dx={id:"868defc8-5c95-48ed-942d-257e8b9b9b00",type:r.GenericReference,version:"1",entityType:r.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},Px={type:r.GenericReference,id:"35167664-a793-49f1-9eaf-fb57eac30897",version:"1",entityType:r.VariableDeclaration,entityId:"d8895765-f705-457e-85fa-25d130926769"},Sx={id:"d47ceef6-be6f-40f1-a7b3-c73c8d8a6c6a",type:r.GenericReference,entityId:"d8895765-f705-457e-85fa-25d130926769",version:"1",entityType:r.ArgumentDeclaration},Ox={like:!1,inferred:!1,id:"55b12914-91b1-48b7-9a3e-9c5d0d2a2ec2",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ue,isList:!1,asType:!1,parent:Sx},Vx={constant:!0,id:"d8895765-f705-457e-85fa-25d130926769",type:r.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"N",dataType:Ox,description:"The number to add",implements:null,defaultValue:{id:"do-math-func-argument-one-default-value-id",type:r.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:5,name:C.Number,valueAsType:null,autogeneration:null,parent:Px},writesValues:[Jb],required:!0,index:0,parent:Dx},Cx={type:r.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:[Vx,Ix],calls:[mx,Hb],implements:null,index:null,collapsed:!1,returnStatements:[jb],private:!1,x:0,y:0,parent:Ax},Ft="replace-bank-account-in-company-func-declaration-id",Gu="company-entity-to-modify-arg-declaration-id",$u="account-number-to-create-arg-decl-id",Hi="company-main-variable-id",zi="search-person-by-id-id",zb="new-bank-account-owner-arg-decl-id",Kb="search-person-by-id-output-declaration-id",Fu="search-person-by-id-output-entity-map-id",es="person-not-empty-condition-id",ko="create-new-bank-account-instance-operation-id",Xb="create-new-bank-account-instance-operation-output-entity-map-id",Qb="company-bank-account-output-map-id",Uu="old-bank-account-var-declaration-id",eI="old-bank-account-var-instance-id",tI="company-variable-instance-id",xu="delete-bank-account-internal-call-id",ts="new-bank-account-data-variable-declaration-id",wx={type:r.GenericReference,id:"company-variable-instance-parent-ref-id",version:"1",entityType:r.FunctionDeclaration,entityId:Ft},Bx={type:r.GenericReference,id:"company-variable-instance-called-by-ref-id",version:"1",entityType:r.InternalCall,entityId:xu},Mx={type:r.GenericReference,id:"company-variable-instance-declaration-ref-id",version:"1",entityType:r.VariableDeclaration,entityId:Hi},_x={type:r.GenericReference,id:"bank-account-input-map-parent-ref-id",version:"1",entityType:r.VariableInstance,entityId:tI},Nx={type:r.GenericReference,id:"bank-account-input-map-reads-value-ref-id",version:"1",entityType:r.OutputMap,entityId:Xb},rI={type:r.InputMap,id:"bank-account-input-map-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,readsValue:Nx,declaration:uu,name:null,description:null,index:0,defaultValue:null,parent:_x},Lx={type:r.VariableInstance,id:tI,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:Mx,inputs:[rI],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[Bx],successCalls:[],errorCalls:[],internalCalls:[],parent:wx,readsValue:null,writesValues:[],x:0,y:0},Gx={type:r.GenericReference,id:"bank-account-variable-data-type-parent-ref-id",version:"1",entityType:r.VariableDeclaration,entityId:Hi},$x={type:r.DataType,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:Zi,asType:!1,isList:!1,like:!1,inferred:!1,parent:Gx},Fx={type:r.GenericReference,id:"bank-account-variable-reads-value-ref-id",version:"1",entityType:r.OutputMap,entityId:Qb},Ux={type:r.GenericReference,id:"bank-account-variable-parent-ref-id",version:"1",entityType:r.FunctionDeclaration,entityId:Ft},xx={type:r.GenericReference,id:"bank-account-variable-called-by-ref-id",version:"1",entityType:r.VariableDeclaration,entityId:Hi},jx={type:r.GenericReference,id:"delete-bank-account-internal-call-called-by-ref-id",version:"1",entityType:r.Operation,entityId:ko};r.GenericReference,r.VariableInstance;const kx={type:r.GenericReference,id:"delete-bank-account-internal-call-called-by-ref-two-id",version:"1",entityType:r.VariableDeclaration,entityId:Uu},Zx={type:r.GenericReference,id:"old-bank-account-variable-trigger-delete-decl-ref-id",version:"1",entityType:r.VariableDeclaration,entityId:Uu},qx={type:r.GenericReference,id:"bank-account-variable-parent-ref-two-id",version:"1",entityType:r.FunctionDeclaration,entityId:Ft},Jx={type:r.GenericReference,id:"old-bank-account-variable-trigger-delete-internal-call-ref-id",version:"1",entityType:r.InternalCall,entityId:xu},Wx={type:r.VariableInstance,id:eI,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:Zx,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],internalCalls:[Jx],errorCalls:[],parent:qx,readsValue:null,writesValues:[],x:0,y:0},nI={process:null,type:r.InternalCall,id:xu,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Gd,index:0,successCalls:[Lx],errorCalls:[],inputs:[],outputs:[],error:null,calledByError:[],calledByEntry:[],calledBySuccess:[jx,kx],parent:Wx},iI={constant:!0,required:!0,type:r.VariableDeclaration,id:Uu,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:$x,defaultValue:null,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[xx],successCalls:[nI],internalCalls:[],errorCalls:[],parent:Ux,readsValue:Fx,writesValues:[],x:0,y:0},Yx={type:r.GenericReference,id:"company-variable-declaration-data-type-parent-ref-id",version:"1",entityType:r.VariableDeclaration,entityId:Hi},Hx={type:r.DataType,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:cr,asType:!1,isList:!1,like:!1,inferred:!1,parent:Yx},zx={type:r.GenericReference,id:"company-variable-declaration-reads-value-ref-id",version:"1",entityType:r.ArgumentDeclaration,entityId:Gu},Kx={type:r.GenericReference,id:"company-variable-declaration-parent-ref-id",version:"1",entityType:r.FunctionDeclaration,entityId:Ft},Xx={type:r.GenericReference,id:"company-variable-declaration-called-by-ref-id",version:"1",entityType:r.FunctionDeclaration,entityId:Ft},Qx={type:r.GenericReference,id:"company-bank-account-output-map-parent-ref-id",version:"1",entityType:r.VariableDeclaration,entityId:Hi},ej={id:Qb,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:r.OutputMap,defaultValue:null,declaration:uu,index:0,parent:Qx,writesValues:[iI]},aI={constant:!0,required:!0,type:r.VariableDeclaration,id:Hi,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:Hx,inputs:[],outputs:[ej],calledByError:[],calledByEntry:[Xx],calledBySuccess:[],successCalls:[iI],errorCalls:[],parent:Kx,internalCalls:[],readsValue:zx,writesValues:[],x:0,y:0},tj={type:r.GenericReference,id:"create-new-bank-account-account-owner-dynamic-input-map-parent-ref-id",version:"1",entityType:r.VariableDeclaration,entityId:ts},rj={id:"create-new-bank-account-account-owner-dynamic-input-map-reads-value-ref-id",type:r.GenericReference,version:"1",entityType:r.OutputMap,entityId:Fu},sI={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:r.InputMap,declaration:null,name:"Account owner",description:null,readsValue:rj,index:1,defaultValue:null,parent:tj},nj={id:"create-new-bank-account-account-number-dynamic-input-map-reads-value-ref-id",type:r.GenericReference,version:"1",entityType:r.ArgumentDeclaration,entityId:$u},ij={type:r.GenericReference,id:"create-new-bank-account-account-number-dynamic-input-map-parent-ref-id",version:"1",entityType:r.VariableDeclaration,entityId:ts},oI={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:r.InputMap,declaration:null,name:"Account number",description:null,readsValue:nj,defaultValue:null,index:0,parent:ij},lI={type:r.GenericReference,id:"create-new-bank-account-instance-operation-entity-to-create-input-map-parent-ref-id",version:"1",entityType:r.Operation,entityId:ko},aj={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:r.InputMap,declaration:Mn.inputs[0],name:null,description:null,index:0,readsValue:null,defaultValue:{type:r.LiteralValue,name:C.EntityTemplate,value:null,valueAsType:Zi,autogeneration:null},parent:lI},sj={type:r.GenericReference,id:"create-new-bank-account-instance-operation-entity-data-input-map-reads-value-ref-id",version:"1",entityType:r.VariableDeclaration,entityId:ts},dI={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:r.InputMap,declaration:Mn.inputs[1],name:null,description:null,index:1,readsValue:sj,defaultValue:null,parent:lI},oj={type:r.GenericReference,id:"create-new-bank-account-instance-operation-output-entity-map-parent-ref-id",version:"1",entityType:r.Operation,entityId:ko},lj={id:Xb,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:r.OutputMap,defaultValue:null,declaration:Mn.outputs[0],index:0,writesValues:[rI],parent:oj},dj={type:r.GenericReference,id:"create-new-bank-account-instance-operation-called-by-ref-id",version:"1",entityType:r.Condition,entityId:es},uj={type:r.GenericReference,id:"create-new-bank-account-instance-operation-called-by-ref-id",version:"1",entityType:r.VariableDeclaration,entityId:ts},cj={type:r.GenericReference,id:"create-new-bank-account-instance-operation-parent-ref-id",version:"1",entityType:r.FunctionDeclaration,entityId:Ft},uI={process:null,id:ko,type:r.Operation,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Mn,inputs:[aj,dI],error:null,outputs:[lj],successCalls:[nI],errorCalls:[],calledByError:[],calledByEntry:[],calledBySuccess:[uj,dj],parent:cj,x:0,y:0},pj={type:r.GenericReference,id:"new-bank-account-data-variable-declaration-parent-ref-id",version:"1",entityType:r.FunctionDeclaration,entityId:Ft},hj={type:r.GenericReference,id:"create-new-bank-account-instance-operation-called-by-ref-id",version:"1",entityType:r.Condition,entityId:es},yj={constant:!0,required:!0,id:ts,type:r.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,inputs:[oI,sI],dataType:null,name:"New bank Account's data",description:null,readsValue:null,outputs:[],writesValues:[dI],successCalls:[uI],errorCalls:[],internalCalls:[],calledByError:[],calledBySuccess:[hj],calledByEntry:[],x:0,y:0,parent:pj},fj={id:"person-not-found-thrown-error-datatype-default-value-parent-ref-id",type:r.GenericReference,entityId:"person-not-found-thrown-error-id",version:"1",entityType:r.ReturnDeclaration},mj={id:"person-not-found-thrown-error-datatype-parent-ref-id",type:r.GenericReference,entityId:"person-not-found-thrown-error-id",version:"1",entityType:r.ReturnDeclaration},Tj={like:!1,inferred:!1,id:"person-not-found-thrown-error-datatype-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:X,isList:!1,asType:!1,parent:mj},vj={id:"person-not-found-thrown-error-parent-ref-id",type:r.GenericReference,entityId:"person-not-found-error-return-statement-id",version:"1",entityType:r.ReturnStatement},Ej={constant:!0,isError:!0,id:"person-not-found-thrown-error-id",type:r.ReturnDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,dataType:Tj,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:r.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:"Person not found",name:C.String,parent:fj,valueAsType:null,autogeneration:null},parent:vj,implements:null,required:!0,index:0,readsValue:null},Rj={id:"person-not-found-error-return-statement-called-by-ref-id",type:r.GenericReference,entityId:es,version:"1",entityType:r.Condition},gj={id:"person-not-found-error-return-statement-parent-ref-id",type:r.GenericReference,entityId:Ft,version:"1",entityType:r.FunctionDeclaration},bj={id:"person-not-found-error-return-statement-id",type:r.ReturnStatement,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,throws:Ej,outputs:[],calledBySuccess:[],calledByError:[Rj],calledByEntry:[],x:0,y:0,parent:gj},Ij={type:r.GenericReference,id:"person-not-empty-condition-called-by-ref-id",version:"1",entityType:r.Search,entityId:zi},Aj={type:r.GenericReference,id:"person-not-empty-condition-parent-ref-id",version:"1",entityType:r.FunctionDeclaration,entityId:Ft},Dj={type:r.GenericReference,id:"person-entity-to-check-map-reads-value-ref-id",version:"1",entityType:r.OutputMap,entityId:Fu},Pj={type:r.GenericReference,id:"person-not-empty-condition-ref-two-id",version:"1",entityType:r.Condition,entityId:es},cI={id:"person-entity-to-check-map-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:r.InputMap,declaration:Fn.inputs[0],name:null,description:null,readsValue:Dj,index:0,defaultValue:null,parent:Pj},Sj={type:r.Condition,id:es,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Fn,inputs:[cI],calledByError:[],calledByEntry:[],calledBySuccess:[Ij],successCalls:[yj,uI],errorCalls:[bj],x:0,y:0,parent:Aj},Oj={type:r.GenericReference,id:"search-person-by-id-output-entity-declaration-datatype-parent-ref-id",version:"1",entityType:r.ValueDescriptor,entityId:Kb},Vj={like:!1,inferred:!1,id:"search-person-by-id-output-entity-declaration-datatype-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,asType:!1,entity:Gt,parent:Oj},Cj={type:r.GenericReference,id:"search-person-by-id-output-entity-declaration-parent-ref-id",version:"1",entityType:r.Search,entityId:zi},pI={id:Kb,type:r.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,dataType:Vj,name:"Found person",description:"The person entity that was found",parent:Cj,required:!0,index:0},wj={type:r.GenericReference,id:"search-person-by-id-output-entity-map-parent-ref-id",version:"1",entityType:r.Search,entityId:zi},Bj={type:r.OutputMap,id:Fu,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:pI,parent:wj,writesValues:[cI,sI],index:0},Mj={id:"search-person-by-id-input-declaration-datatype-parent-ref-id",type:r.GenericReference,entityId:"search-person-by-id-input-declaration-id",version:"1",entityType:r.ArgumentDeclaration};r.DataType;const _j={type:r.GenericReference,id:"search-person-by-id-input-declaration-parent-ref-id",version:"1",entityType:r.Search,entityId:zi},hI={id:"search-person-by-id-input-declaration-id",type:r.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:V.FixedArguments,index:0,required:!0,parent:_j},Nj={type:r.GenericReference,id:"search-person-by-id-input-map-parent-ref-id",version:"1",entityType:r.Search,entityId:zi},Lj={id:"search-person-by-id-input-map-reads-value-ref-id",type:r.GenericReference,entityId:zb,version:"1",entityType:r.ArgumentDeclaration},yI={type:r.InputMap,id:"search-person-by-id-input-map",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:hI,name:null,description:null,readsValue:Lj,defaultValue:null,parent:Nj,index:0},Gj="SELECT * FROM Person WHERE id = your_id;",$j={type:r.GenericReference,id:"search-person-by-id-parent-ref-id",version:"1",entityType:r.FunctionDeclaration,entityId:Ft},Fj={type:r.GenericReference,id:"search-person-by-id-called-by-ref-id",version:"1",entityType:r.FunctionDeclaration,entityId:Ft},Uj={type:r.Search,id:zi,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:Gj,inputsDeclarations:[hI],inputs:[yI],outputsDeclarations:[pI],outputs:[Bj],calledByError:[],calledByEntry:[Fj],calledBySuccess:[],error:null,successCalls:[Sj],errorCalls:[],parent:$j,x:0,y:0};r.GenericReference,r.DataType;const xj={id:"account-number-to-create-arg-decl-data-type-parent-ref-id",type:r.GenericReference,entityId:$u,version:"1",entityType:r.ArgumentDeclaration},jj={like:!1,inferred:!1,id:"account-number-to-create-arg-decl-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:X,isList:!1,asType:!1,parent:xj},kj={version:"1",entityType:r.FunctionDeclaration,entityId:Ft,type:r.GenericReference,id:"account-number-to-create-arg-decl-parent-ref-id"},Zj={constant:!0,id:$u,type:r.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:jj,implements:null,writesValues:[oI],required:!0,index:1,parent:kj};r.GenericReference,r.DataType;const qj={id:"new-bank-account-owner-arg-decl-data-type-parent-ref-id",type:r.GenericReference,entityId:"new-bank-account-owner-arg-decl-id",version:"1",entityType:r.ArgumentDeclaration},Jj={like:!1,inferred:!1,id:"new-bank-account-owner-arg-decl-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:qr,isList:!1,asType:!1,parent:qj},Wj={version:"1",entityType:r.FunctionDeclaration,entityId:Ft,type:r.GenericReference,id:"new-bank-account-owner-arg-decl-parent-ref-id"},Yj={constant:!0,id:zb,type:r.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:Jj,implements:null,writesValues:[yI],required:!1,index:1,parent:Wj},Hj={type:r.GenericReference,id:"replace-bank-account-in-company-parent-ref",version:"1",entityType:r.Project,entityId:ne},zj={type:r.GenericReference,id:"company-entity-to-modify-parent-ref",version:"1",entityType:r.FunctionDeclaration,entityId:Ft};r.GenericReference,r.DataType;const Kj={id:"d47ceef6-be6f-40f1-a7b3-c73c8d8a6c6a",type:r.GenericReference,entityId:Gu,version:"1",entityType:r.ArgumentDeclaration},Xj={like:!1,inferred:!1,id:"company-entity-to-modify-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ue,isList:!1,asType:!1,parent:Kj},Qj={constant:!0,id:Gu,type:r.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Company",defaultValue:null,dataType:Xj,implements:null,description:"The company to replace the bank account for",writesValues:[aI],required:!0,index:0,parent:zj},e9={type:r.FunctionDeclaration,id:Ft,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:[Qj,Zj,Yj],index:null,implements:null,calls:[Uj,aI],collapsed:!1,returnStatements:[],private:!1,x:0,y:0,parent:Hj},t9={type:r.GenericReference,id:"e0a937bd-3a85-4037-a973-916985b9f94b",version:"1",entityType:r.Project,entityId:"7268bc97-c0e6-4d88-b37e-d3241b5f77a6"},r9={type:r.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,returnStatements:[],private:!1,parent:t9,x:0,y:0},n9={type:r.GenericReference,id:"948e6869-ae5b-4914-bea0-b9f02ad6a014",version:"1",entityType:r.Project,entityId:ne},i9={type:r.GenericReference,id:"f3d6f2c6-1b3e-4e9d-8c9d-5b5b9f0b8d9c",version:"1",entityType:r.Project,entityId:"7268bc97-c0e6-4d88-b37e-d3241b5f77a6"},a9={type:r.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:[r9],events:[],implements:i9,parent:n9,x:0,y:0},ju="global-counted-test-loop-id",fI="global-counted-test-loop-body-id",mI="global-counted-test-loop-body-current-iteration-value-argument-declaration-id",s9={type:r.GenericReference,id:"global-counted-test-loop-body-current-iteration-value-argument-declaration-data-type-parent-ref-id",entityId:mI,version:"1",entityType:r.ArgumentDeclaration},o9={like:!1,inferred:!1,id:"global-counted-test-loop-body-current-iteration-value-argument-declaration-data-type-id",type:r.DataType,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:s9},l9={id:"global-counted-test-loop-body-current-iteration-value-argument-declaration-parent-ref-id",type:r.GenericReference,entityId:fI,version:"1",entityType:r.FunctionDeclaration},d9={constant:!0,id:mI,type:r.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:o9,implements:Ad,required:!0,index:0,writesValues:[],parent:l9},u9={id:"global-counted-test-loop-body-parent-ref-id",type:r.GenericReference,entityId:ju,version:"1",entityType:r.Loop},c9={id:fI,type:r.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:[d9],calls:[],implements:Ys,collapsed:!1,returnStatements:[],private:!1,index:0,x:0,y:0,parent:u9},Ki="random-company-employee-test-variable-id",ku="manager-global-variable-id",TI="global-user-instance-id",Nr="employee-mapped-dto-variable-id",Yn="employee-mapped-dto-variable-instance-id",vI="random-employee-id-output-map-id",EI="random-employee-birth-date-output-map-id",RI="random-employee-department-output-map-id",gI="random-employee-manager-output-map-id",bI="manager-global-id-output-map-id",II="global-user-instance-id-output-map-id",p9="employee-mapped-dto-requester-id-input-map-id",AI="employee-mapped-dto-now-timestamp-input-map-id",h9="employee-mapped-dto-id-input-map-id",y9="employee-mapped-dto-birth-date-input-map-id",f9="employee-mapped-dto-department-input-map-id",m9="employee-mapped-dto-manager-input-map-id",T9={id:"global-counted-test-loop-iteration-number-input-map-parent-ref-id",type:r.GenericReference,entityId:ju,version:"1",entityType:r.Loop};r.GenericReference,r.VariableDeclaration;const v9={id:"global-counted-test-loop-iteration-number-input-map-id",type:r.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:null,description:null,declaration:Da.inputs[0],defaultValue:null,readsValue:null,index:0,parent:T9},E9={id:"global-counted-test-loop-parent-ref-id",type:r.GenericReference,entityId:ne,version:"1",entityType:r.Project},R9={id:"global-counted-test-loop-called-by-success-ref-id",type:r.GenericReference,entityId:Yn,version:"1",entityType:r.VariableDeclaration},DI={id:ju,type:r.Loop,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Da,inputs:[v9],successCalls:[],errorCalls:[],outputsDeclarations:[],outputs:[],process:null,body:c9,calledByError:[],calledByEntry:[],calledBySuccess:[R9],breakStatements:[],continueStatements:[],error:null,x:0,y:0,parent:E9},Zu="global-object-keys-test-loop-id",PI="global-object-keys-test-loop-body-id",SI="global-object-keys-test-loop-body-current-iteration-value-argument-declaration-id",g9={type:r.GenericReference,id:"global-object-keys-test-loop-body-current-iteration-value-argument-declaration-data-type-parent-ref-id",entityId:SI,version:"1",entityType:r.ArgumentDeclaration},b9={like:!1,inferred:!1,id:"global-object-keys-test-loop-body-current-iteration-value-argument-declaration-data-type-id",type:r.DataType,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:g9},I9={id:"global-object-keys-test-loop-body-current-iteration-value-argument-declaration-parent-ref-id",type:r.GenericReference,entityId:PI,version:"1",entityType:r.FunctionDeclaration},A9={constant:!0,id:SI,type:r.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:b9,implements:Ed,required:!0,index:0,writesValues:[],parent:I9},D9={id:"global-object-keys-test-loop-body-parent-ref-id",type:r.GenericReference,entityId:Zu,version:"1",entityType:r.Loop},P9={id:PI,type:r.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:[A9],calls:[],implements:Ci,collapsed:!1,returnStatements:[],private:!1,index:0,x:0,y:0,parent:D9},S9={id:"global-object-keys-test-loop-iteration-object-input-map-parent-ref-id",type:r.GenericReference,entityId:Zu,version:"1",entityType:r.Loop},O9={id:"global-object-keys-test-loop-iteration-object-input-map-reads-value-ref-id",type:r.GenericReference,entityId:Nr,version:"1",entityType:r.VariableDeclaration},OI={id:"global-object-keys-test-loop-iteration-object-input-map-id",type:r.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:null,description:null,declaration:Ci.inputs[0],defaultValue:null,readsValue:O9,index:0,parent:S9},V9={id:"global-object-keys-test-loop-parent-ref-id",type:r.GenericReference,entityId:ne,version:"1",entityType:r.Project},C9={id:"global-object-keys-test-loop-called-by-success-ref-two-id",type:r.GenericReference,entityId:Yn,version:"1",entityType:r.VariableDeclaration},w9={id:"global-object-keys-test-loop-called-by-success-ref-one-id",type:r.GenericReference,entityId:Nr,version:"1",entityType:r.VariableDeclaration},qu={id:Zu,type:r.Loop,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Ci,inputs:[OI],successCalls:[],errorCalls:[],outputsDeclarations:[],outputs:[],process:null,body:P9,calledByError:[],calledByEntry:[],calledBySuccess:[w9,C9],breakStatements:[],continueStatements:[],error:null,x:0,y:0,parent:V9},Ju="global-object-values-test-loop-id",VI="global-object-values-test-loop-body-id",CI="global-object-values-test-loop-body-current-iteration-value-argument-declaration-id",B9={type:r.GenericReference,id:"global-object-values-test-loop-body-current-iteration-value-argument-declaration-data-type-parent-ref-id",entityId:CI,version:"1",entityType:r.ArgumentDeclaration},M9={like:!1,inferred:!1,id:"global-object-values-test-loop-body-current-iteration-value-argument-declaration-data-type-id",type:r.DataType,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:B9},_9={id:"global-object-values-test-loop-body-current-iteration-value-argument-declaration-parent-ref-id",type:r.GenericReference,entityId:VI,version:"1",entityType:r.FunctionDeclaration},N9={constant:!0,id:CI,type:r.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:gd,required:!0,index:0,writesValues:[],parent:_9},L9={id:"global-object-values-test-loop-body-parent-ref-id",type:r.GenericReference,entityId:Ju,version:"1",entityType:r.Loop},G9={id:VI,type:r.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:[N9],calls:[],implements:wi,collapsed:!1,returnStatements:[],private:!1,index:0,x:0,y:0,parent:L9},$9={id:"global-object-values-test-loop-iteration-object-input-map-parent-ref-id",type:r.GenericReference,entityId:Ju,version:"1",entityType:r.Loop},F9={id:"global-object-values-test-loop-iteration-object-input-map-reads-value-ref-id",type:r.GenericReference,entityId:Yn,version:"1",entityType:r.VariableDeclaration},wI={id:"global-object-values-test-loop-iteration-object-input-map-id",type:r.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:null,description:null,declaration:wi.inputs[0],defaultValue:null,readsValue:F9,index:0,parent:$9},U9={id:"global-object-values-test-loop-parent-ref-id",type:r.GenericReference,entityId:ne,version:"1",entityType:r.Project},x9={id:"global-object-values-test-loop-called-by-success-ref-id",type:r.GenericReference,entityId:Yn,version:"1",entityType:r.VariableInstance},BI={id:Ju,type:r.Loop,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:wi,inputs:[wI],successCalls:[],errorCalls:[],outputsDeclarations:[],outputs:[],process:null,body:G9,calledByError:[],calledByEntry:[],calledBySuccess:[x9],breakStatements:[],continueStatements:[],error:null,x:0,y:0,parent:U9},Wu="global-test-iterate-over-string-loop-id",Yu="global-test-iterate-over-string-loop-body-id",Zo="global-test-iterate-over-string-loop-body-current-iteration-value-argument-declaration-id",MI="global-test-iterate-over-string-loop-iteration-list-input-map-id",j9={type:r.GenericReference,id:"global-test-iterate-over-string-loop-body-current-iteration-value-argument-declaration-data-type-parent-ref-id",entityId:Zo,version:"1",entityType:r.ArgumentDeclaration},k9={like:!1,inferred:!1,id:"global-test-iterate-over-string-loop-body-current-iteration-value-argument-declaration-data-type-id",type:r.DataType,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:j9},Z9={id:"global-test-iterate-over-string-loop-body-current-iteration-value-argument-declaration-parent-ref-id",type:r.GenericReference,entityId:Yu,version:"1",entityType:r.FunctionDeclaration},q9={constant:!0,id:Zo,type:r.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:k9,implements:Td,required:!0,index:1,writesValues:[],parent:Z9},J9={type:r.GenericReference,id:"global-test-iterate-over-string-loop-body-current-iteration-value-argument-declaration-data-type-parent-ref-id",entityId:Zo,version:"1",entityType:r.ArgumentDeclaration},W9={like:!1,inferred:!1,id:"global-test-iterate-over-string-loop-body-current-iteration-value-argument-declaration-data-type-id",type:r.DataType,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:J9},Y9={id:"global-test-iterate-over-string-loop-body-current-iteration-value-argument-declaration-parent-ref-id",type:r.GenericReference,entityId:Yu,version:"1",entityType:r.FunctionDeclaration},H9={constant:!0,id:Zo,type:r.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:W9,implements:vd,required:!0,index:0,writesValues:[],parent:Y9},z9={id:"global-test-iterate-over-string-loop-body-parent-ref-id",type:r.GenericReference,entityId:Wu,version:"1",entityType:r.Loop},K9={id:Yu,type:r.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:[H9,q9],calls:[],implements:Js,collapsed:!1,returnStatements:[],private:!1,index:0,x:0,y:0,parent:z9},X9={id:"global-test-iterate-over-string-loop-iteration-list-input-map-parent-ref-id",type:r.GenericReference,entityId:Wu,version:"1",entityType:r.Loop},Q9={id:"global-test-iterate-over-string-loop-iteration-list-input-map-default-value-parent-ref-id",type:r.GenericReference,entityId:MI,version:"1",entityType:r.InputMap},e8={id:"global-test-iterate-over-string-loop-iteration-list-input-map-default-value-id",type:r.LiteralValue,name:C.String,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:"Hello",valueAsType:null,autogeneration:{type:st.Random,rangeStart:4,rangeEnd:5},parent:Q9},t8={id:MI,type:r.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:null,description:null,declaration:Ia.inputs[0],defaultValue:e8,readsValue:null,index:0,parent:X9},r8={id:"global-test-iterate-over-string-loop-parent-ref-id",type:r.GenericReference,entityId:ne,version:"1",entityType:r.Project},n8={id:Wu,type:r.Loop,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Ia,inputs:[t8],successCalls:[],errorCalls:[],outputsDeclarations:[],outputs:[],process:null,body:K9,calledByError:[],calledByEntry:[],calledBySuccess:[],breakStatements:[],continueStatements:[],error:null,x:0,y:0,parent:r8},Hu="iterate-over-list-loop-id",_I="iterate-over-list-loop-body-id",NI="iterate-over-list-loop-body-current-iteration-value-argument-declaration-id",i8={type:r.GenericReference,id:"iterate-over-list-loop-body-current-iteration-value-argument-declaration-data-type-parent-ref-id",entityId:NI,version:"1",entityType:r.ArgumentDeclaration},a8={like:!1,inferred:!1,id:"iterate-over-list-loop-body-current-iteration-value-argument-declaration-data-type-id",type:r.DataType,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:i8},s8={id:"iterate-over-list-loop-body-current-iteration-value-argument-declaration-parent-ref-id",type:r.GenericReference,entityId:_I,version:"1",entityType:r.FunctionDeclaration},o8={constant:!0,id:NI,type:r.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:a8,implements:Ws,required:!0,index:0,writesValues:[],parent:s8},l8={id:"iterate-over-list-loop-body-parent-ref-id",type:r.GenericReference,entityId:Hu,version:"1",entityType:r.Loop},d8={id:_I,type:r.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:[o8],calls:[],implements:Aa,collapsed:!1,returnStatements:[],private:!1,index:0,x:0,y:0,parent:l8},u8={id:"iterate-over-list-loop-iteration-list-input-map-parent-ref-id",type:r.GenericReference,entityId:Hu,version:"1",entityType:r.Loop},c8={id:"iterate-over-list-loop-iteration-list-input-map-id",type:r.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:null,description:null,declaration:cn.inputs[0],defaultValue:null,readsValue:null,index:0,parent:u8},p8={id:"iterate-over-list-loop-parent-ref-id",type:r.GenericReference,entityId:ne,version:"1",entityType:r.Project},h8={id:Hu,type:r.Loop,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:cn,inputs:[c8],successCalls:[],errorCalls:[],outputsDeclarations:[],outputs:[],process:null,body:d8,calledByError:[],calledByEntry:[],calledBySuccess:[],breakStatements:[],continueStatements:[],error:null,x:0,y:0,parent:p8},y8=`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;`,f8={id:"find-companies-with-multiple-employees-and-bank-account-search-parent-ref-id",type:r.GenericReference,entityId:ne,version:"1",entityType:r.Project},m8={id:"find-companies-with-multiple-employees-and-bank-account-search-companies-list-output-declaration-parent-ref-id",type:r.GenericReference,entityId:"find-companies-with-multiple-employees-and-bank-account",version:"1",entityType:r.Search},LI={id:"find-companies-with-multiple-employees-and-bank-account-search-companies-list-output-declaration-id",type:r.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:V.FixedReturns,index:0,parent:m8},T8={id:"find-companies-with-multiple-employees-and-bank-account-search-companies-list-output-parent-ref-id",type:r.GenericReference,entityId:"find-companies-with-multiple-employees-and-bank-account",version:"1",entityType:r.Search},v8={id:"find-companies-with-multiple-employees-and-bank-account-search-companies-list-output-id",type:r.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:LI,writesValues:[],index:0,parent:T8},E8={id:"find-companies-with-multiple-employees-and-bank-account",type:r.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:[LI],inputs:[],outputs:[v8],query:y8,successCalls:[],errorCalls:[],error:null,calledByError:[],calledByEntry:[],calledBySuccess:[],x:0,y:0,parent:f8},R8={type:r.GenericReference,id:"employee-mapped-dto-manager-input-map-reads-value-ref-id",version:"1",entityType:r.OutputMap,entityId:bI},g8={type:r.GenericReference,id:"employee-mapped-dto-manager-output-map-parent-ref-id",version:"1",entityType:r.VariableDeclaration,entityId:Nr},GI={id:m9,type:r.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:R8,parent:g8},b8={type:r.GenericReference,id:"employee-mapped-dto-department-input-map-reads-value-ref-id",version:"1",entityType:r.OutputMap,entityId:RI},I8={type:r.GenericReference,id:"employee-mapped-dto-department-output-map-parent-ref-id",version:"1",entityType:r.VariableDeclaration,entityId:Nr},$I={id:f9,type:r.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:b8,parent:I8},A8={type:r.GenericReference,id:"employee-mapped-dto-birth-date-input-map-reads-value-ref-id",version:"1",entityType:r.OutputMap,entityId:EI},D8={type:r.GenericReference,id:"employee-mapped-dto-birth-date-output-map-parent-ref-id",version:"1",entityType:r.VariableDeclaration,entityId:Nr},FI={id:y9,type:r.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:A8,parent:D8},P8={type:r.GenericReference,id:"employee-mapped-dto-id-output-map-reads-value-ref-id",version:"1",entityType:r.OutputMap,entityId:vI},S8={type:r.GenericReference,id:"employee-mapped-dto-id-output-map-parent-ref-id",version:"1",entityType:r.VariableDeclaration,entityId:Nr},UI={id:h9,type:r.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:P8,parent:S8},O8={type:r.GenericReference,id:"employee-mapped-dto-requester-id-output-map-reads-value-ref-id",version:"1",entityType:r.OutputMap,entityId:II},V8={type:r.GenericReference,id:"employee-mapped-dto-requester-id-output-map-parent-ref-id",version:"1",entityType:r.VariableDeclaration,entityId:Nr},xI={id:p9,type:r.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:O8,parent:V8},C8={type:r.GenericReference,id:"manager-variable-id-output-map-parent-ref-id",version:"1",entityType:r.VariableDeclaration,entityId:ku},w8={id:bI,type:r.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:rr.properties[0],defaultValue:null,index:0,writesValues:[GI],parent:C8},B8={type:r.GenericReference,id:"manager-variable-data-type-parent-ref-id",version:"1",entityType:r.VariableDeclaration,entityId:ku},M8={like:!1,inferred:!1,id:"manager-variable-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ur,asType:!1,isList:!1,parent:B8},_8={type:r.GenericReference,id:"manager-variable-reads-value-ref-id",version:"1",entityType:r.OutputMap,entityId:gI},N8={type:r.GenericReference,id:"manager-variable-parent-ref-id",version:"1",entityType:r.Project,entityId:ne},jI={constant:!0,required:!0,id:ku,type:r.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Manager",dataType:M8,description:"A variable holding an inherited manager for testing purposes",defaultValue:null,calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],readsValue:_8,writesValues:[],inputs:[],outputs:[w8],internalCalls:[],parent:N8,x:0,y:0},L8={type:r.GenericReference,id:"random-company-employee-manager-output-map-parent-ref-id",version:"1",entityType:r.VariableDeclaration,entityId:Ki},G8={id:gI,type:r.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:ur.properties[2],index:3,writesValues:[jI],parent:L8},$8={type:r.GenericReference,id:"random-company-employee-department-output-map-parent-ref-id",version:"1",entityType:r.VariableDeclaration,entityId:Ki},F8={id:RI,type:r.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:ur.properties[0],index:2,writesValues:[$I],parent:$8},U8={type:r.GenericReference,id:"random-company-employee-birth-date-output-map-parent-ref-id",version:"1",entityType:r.VariableDeclaration,entityId:Ki},x8={id:EI,type:r.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:$t.properties[1],index:1,writesValues:[FI],parent:U8},j8={type:r.GenericReference,id:"random-company-employee-id-output-map-parent-ref-id",version:"1",entityType:r.VariableDeclaration,entityId:Ki},k8={id:vI,type:r.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:rr.properties[0],index:0,writesValues:[UI],parent:j8},Z8={type:r.GenericReference,id:"random-company-employee-test-variable-data-type-parent-ref-id",version:"1",entityType:r.VariableDeclaration,entityId:Ki},q8={like:!1,inferred:!1,id:"random-company-employee-test-variable-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ur,asType:!1,isList:!1,parent:Z8},J8={type:r.GenericReference,id:"random-company-employee-test-variable-parent-ref-id",version:"1",entityType:r.Project,entityId:ne},W8={constant:!0,required:!0,id:Ki,type:r.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Company employee",dataType:q8,description:"A variable holding a random company employee for testing purposes",defaultValue:null,calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],readsValue:null,writesValues:[],inputs:[],outputs:[k8,x8,F8,G8],internalCalls:[],parent:J8,x:0,y:0},Y8={type:r.GenericReference,id:"employee-mapped-dto-variable-instance-now-timestamp-input-map-default-value-parent-ref-id",version:"1",entityType:r.InputMap,entityId:AI},H8={type:r.LiteralValue,id:"employee-mapped-dto-variable-instance-now-timestamp-input-map-default-value-id",name:C.Date,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,valueAsType:null,value:null,autogeneration:{type:st.CurrentDateAndTime,rangeStart:null,rangeEnd:null},parent:Y8},z8={type:r.GenericReference,id:"employee-mapped-dto-variable-instance-now-timestamp-input-map-parent-ref-id",version:"1",entityType:r.VariableInstance,entityId:Yn},K8={id:AI,type:r.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:H8,index:5,readsValue:null,parent:z8},X8={type:r.GenericReference,id:"employee-mapped-dto-variable-instance-decl-ref-id",version:"1",entityType:r.VariableDeclaration,entityId:Nr},Q8={type:r.GenericReference,id:"employee-mapped-dto-variable-instance-called-by-success-ref-id",version:"1",entityType:r.VariableDeclaration,entityId:Nr},ek={type:r.GenericReference,id:"employee-mapped-dto-variable-instance-parent-ref-id",version:"1",entityType:r.Project,entityId:ne},tk={id:Yn,type:r.VariableInstance,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:X8,calledByError:[],calledByEntry:[],calledBySuccess:[Q8],successCalls:[qu,BI,DI],errorCalls:[],readsValue:null,writesValues:[wI],inputs:[K8],outputs:[],internalCalls:[],parent:ek,x:0,y:0},rk={type:r.GenericReference,id:"employee-mapped-dto-variable-parent-ref-id",version:"1",entityType:r.Project,entityId:ne},nk={constant:!0,required:!0,id:Nr,type:r.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:[qu,tk],errorCalls:[],readsValue:null,writesValues:[OI],inputs:[xI,UI,FI,$I,GI],outputs:[],internalCalls:[],parent:rk,x:0,y:0},ik={type:r.GenericReference,id:"0e63e617-f9d3-42e8-bde0-1bb0b1df7034",version:"1",entityType:r.VariableDeclaration,entityId:wR},ak={like:!1,inferred:!1,id:"e75645ce-d3df-4f07-a897-ae9ef4d917fd",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,entity:su,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,asType:!1,isList:!1,parent:ik},sk={type:r.GenericReference,id:"e92a8ff5-3fef-4e0c-8d8f-92c930b2890b",version:"1",entityType:r.Project,entityId:ne},kI={constant:!0,required:!0,id:wR,type:r.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:ak,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],x:0,y:0,readsValue:null,writesValues:[],internalCalls:[],parent:sk},ok={type:r.GenericReference,id:"manager-variable-id-output-map-parent-ref-id",version:"1",entityType:r.VariableInstance,entityId:TI},lk={id:II,type:r.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:rr.properties[0],index:0,writesValues:[xI],parent:ok},dk={type:r.GenericReference,id:"global-user-instance-parent-ref-id",version:"1",entityType:r.Project,entityId:ne},uk={id:TI,type:r.VariableInstance,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:kI,calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],readsValue:null,writesValues:[],inputs:[],outputs:[lk],internalCalls:[],parent:dk,x:0,y:0},ck={type:r.GenericReference,id:"is-test-environment-variable-dcl-datatype-parent-ref-id",version:"1",entityType:r.VariableDeclaration,entityId:"is-test-environment-variable-dcl-id"},pk={type:r.GenericReference,id:"is-test-environment-variable-dcl-datatype-default-value-parent-ref-id",version:"1",entityType:r.VariableDeclaration,entityId:"is-test-environment-variable-dcl-id"},hk={like:!1,inferred:!1,id:"is-test-environment-variable-dcl-datatype-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,entity:kr,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,asType:!1,isList:!1,parent:ck},yk={type:r.GenericReference,id:"is-test-environment-variable-dcl-main-project-ref-id",version:"1",entityType:r.Project,entityId:ne},ZI={constant:!0,required:!0,id:"is-test-environment-variable-dcl-id",type:r.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:C.Boolean,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:null,type:r.LiteralValue,autogeneration:{type:st.Random,rangeStart:null,rangeEnd:null},valueAsType:null,parent:pk},dataType:hk,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],x:0,y:0,readsValue:null,writesValues:[],internalCalls:[],parent:yk},fk={type:r.GenericReference,id:"is-test-environment-variable-instance-parent-ref-id",version:"1",entityType:r.Project,entityId:ne},mk={id:"is-test-environment-variable-instance-id",type:r.VariableInstance,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:ZI,calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],readsValue:null,writesValues:[],inputs:[],outputs:[],internalCalls:[],parent:fk,x:0,y:0},qI={type:r.Project,id:ne,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:[a9],entities:[au,rr,su,$t,aL,ur,wo,HR,zR,Zi,G_,cr,BN,iu,tV,kN,N_],functions:[DU,gg,Pu,MU,jU,Lg,Su,cu,e9,sg,Cx],events:[$L],variableDeclarations:[ZI,kI,Bu,W8,jI,nk],variableInstances:[mk,uk],conditions:[],operations:[Yi],functionCalls:[L2,Z4],loops:[h8,qu,BI,n8,DI],searches:[E8]};var JI={exports:{}};(function(n,s){(function(e,t){n.exports=t()})(DS,function(){var e=1e3,t=6e4,i=36e5,a="millisecond",o="second",l="minute",d="hour",h="day",y="week",f="month",v="quarter",R="year",I="date",D="Invalid Date",A=/^(\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,H={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(de){var Y=["th","st","nd","rd"],j=de%100;return"["+de+(Y[(j-20)%10]||Y[j]||Y[0])+"]"}},W=function(de,Y,j){var ee=String(de);return!ee||ee.length>=Y?de:""+Array(Y+1-ee.length).join(j)+de},_={s:W,z:function(de){var Y=-de.utcOffset(),j=Math.abs(Y),ee=Math.floor(j/60),J=j%60;return(Y<=0?"+":"-")+W(ee,2,"0")+":"+W(J,2,"0")},m:function de(Y,j){if(Y.date()<j.date())return-de(j,Y);var ee=12*(j.year()-Y.year())+(j.month()-Y.month()),J=Y.clone().add(ee,f),he=j-J<0,ye=Y.clone().add(ee+(he?-1:1),f);return+(-(ee+(j-J)/(he?J-ye:ye-J))||0)},a:function(de){return de<0?Math.ceil(de)||0:Math.floor(de)},p:function(de){return{M:f,y:R,w:y,d:h,D:I,h:d,m:l,s:o,ms:a,Q:v}[de]||String(de||"").toLowerCase().replace(/s$/,"")},u:function(de){return de===void 0}},Q="en",se={};se[Q]=H;var ht="$isDayjsObject",Rt=function(de){return de instanceof Wl||!(!de||!de[ht])},fr=function de(Y,j,ee){var J;if(!Y)return Q;if(typeof Y=="string"){var he=Y.toLowerCase();se[he]&&(J=he),j&&(se[he]=j,J=he);var ye=Y.split("-");if(!J&&ye.length>1)return de(ye[0])}else{var rt=Y.name;se[rt]=Y,J=rt}return!ee&&J&&(Q=J),J||!ee&&Q},ct=function(de,Y){if(Rt(de))return de.clone();var j=typeof Y=="object"?Y:{};return j.date=de,j.args=arguments,new Wl(j)},Ye=_;Ye.l=fr,Ye.i=Rt,Ye.w=function(de,Y){return ct(de,{locale:Y.$L,utc:Y.$u,x:Y.$x,$offset:Y.$offset})};var Wl=function(){function de(j){this.$L=fr(j.locale,null,!0),this.parse(j),this.$x=this.$x||j.x||{},this[ht]=!0}var Y=de.prototype;return Y.parse=function(j){this.$d=function(ee){var J=ee.date,he=ee.utc;if(J===null)return new Date(NaN);if(Ye.u(J))return new Date;if(J instanceof Date)return new Date(J);if(typeof J=="string"&&!/Z$/i.test(J)){var ye=J.match(A);if(ye){var rt=ye[2]-1||0,mt=(ye[7]||"0").substring(0,3);return he?new Date(Date.UTC(ye[1],rt,ye[3]||1,ye[4]||0,ye[5]||0,ye[6]||0,mt)):new Date(ye[1],rt,ye[3]||1,ye[4]||0,ye[5]||0,ye[6]||0,mt)}}return new Date(J)}(j),this.init()},Y.init=function(){var j=this.$d;this.$y=j.getFullYear(),this.$M=j.getMonth(),this.$D=j.getDate(),this.$W=j.getDay(),this.$H=j.getHours(),this.$m=j.getMinutes(),this.$s=j.getSeconds(),this.$ms=j.getMilliseconds()},Y.$utils=function(){return Ye},Y.isValid=function(){return this.$d.toString()!==D},Y.isSame=function(j,ee){var J=ct(j);return this.startOf(ee)<=J&&J<=this.endOf(ee)},Y.isAfter=function(j,ee){return ct(j)<this.startOf(ee)},Y.isBefore=function(j,ee){return this.endOf(ee)<ct(j)},Y.$g=function(j,ee,J){return Ye.u(j)?this[ee]:this.set(J,j)},Y.unix=function(){return Math.floor(this.valueOf()/1e3)},Y.valueOf=function(){return this.$d.getTime()},Y.startOf=function(j,ee){var J=this,he=!!Ye.u(ee)||ee,ye=Ye.p(j),rt=function(Ai,Qt){var wn=Ye.w(J.$u?Date.UTC(J.$y,Qt,Ai):new Date(J.$y,Qt,Ai),J);return he?wn:wn.endOf(h)},mt=function(Ai,Qt){return Ye.w(J.toDate()[Ai].apply(J.toDate("s"),(he?[0,0,0,0]:[23,59,59,999]).slice(Qt)),J)},At=this.$W,Nt=this.$M,mr=this.$D,va="set"+(this.$u?"UTC":"");switch(ye){case R:return he?rt(1,0):rt(31,11);case f:return he?rt(1,Nt):rt(0,Nt+1);case y:var Ii=this.$locale().weekStart||0,Os=(At<Ii?At+7:At)-Ii;return rt(he?mr-Os:mr+(6-Os),Nt);case h:case I:return mt(va+"Hours",0);case d:return mt(va+"Minutes",1);case l:return mt(va+"Seconds",2);case o:return mt(va+"Milliseconds",3);default:return this.clone()}},Y.endOf=function(j){return this.startOf(j,!1)},Y.$set=function(j,ee){var J,he=Ye.p(j),ye="set"+(this.$u?"UTC":""),rt=(J={},J[h]=ye+"Date",J[I]=ye+"Date",J[f]=ye+"Month",J[R]=ye+"FullYear",J[d]=ye+"Hours",J[l]=ye+"Minutes",J[o]=ye+"Seconds",J[a]=ye+"Milliseconds",J)[he],mt=he===h?this.$D+(ee-this.$W):ee;if(he===f||he===R){var At=this.clone().set(I,1);At.$d[rt](mt),At.init(),this.$d=At.set(I,Math.min(this.$D,At.daysInMonth())).$d}else rt&&this.$d[rt](mt);return this.init(),this},Y.set=function(j,ee){return this.clone().$set(j,ee)},Y.get=function(j){return this[Ye.p(j)]()},Y.add=function(j,ee){var J,he=this;j=Number(j);var ye=Ye.p(ee),rt=function(Nt){var mr=ct(he);return Ye.w(mr.date(mr.date()+Math.round(Nt*j)),he)};if(ye===f)return this.set(f,this.$M+j);if(ye===R)return this.set(R,this.$y+j);if(ye===h)return rt(1);if(ye===y)return rt(7);var mt=(J={},J[l]=t,J[d]=i,J[o]=e,J)[ye]||1,At=this.$d.getTime()+j*mt;return Ye.w(At,this)},Y.subtract=function(j,ee){return this.add(-1*j,ee)},Y.format=function(j){var ee=this,J=this.$locale();if(!this.isValid())return J.invalidDate||D;var he=j||"YYYY-MM-DDTHH:mm:ssZ",ye=Ye.z(this),rt=this.$H,mt=this.$m,At=this.$M,Nt=J.weekdays,mr=J.months,va=J.meridiem,Ii=function(Qt,wn,Vs,Yl){return Qt&&(Qt[wn]||Qt(ee,he))||Vs[wn].slice(0,Yl)},Os=function(Qt){return Ye.s(rt%12||12,Qt,"0")},Ai=va||function(Qt,wn,Vs){var Yl=Qt<12?"AM":"PM";return Vs?Yl.toLowerCase():Yl};return he.replace(M,function(Qt,wn){return wn||function(Vs){switch(Vs){case"YY":return String(ee.$y).slice(-2);case"YYYY":return Ye.s(ee.$y,4,"0");case"M":return At+1;case"MM":return Ye.s(At+1,2,"0");case"MMM":return Ii(J.monthsShort,At,mr,3);case"MMMM":return Ii(mr,At);case"D":return ee.$D;case"DD":return Ye.s(ee.$D,2,"0");case"d":return String(ee.$W);case"dd":return Ii(J.weekdaysMin,ee.$W,Nt,2);case"ddd":return Ii(J.weekdaysShort,ee.$W,Nt,3);case"dddd":return Nt[ee.$W];case"H":return String(rt);case"HH":return Ye.s(rt,2,"0");case"h":return Os(1);case"hh":return Os(2);case"a":return Ai(rt,mt,!0);case"A":return Ai(rt,mt,!1);case"m":return String(mt);case"mm":return Ye.s(mt,2,"0");case"s":return String(ee.$s);case"ss":return Ye.s(ee.$s,2,"0");case"SSS":return Ye.s(ee.$ms,3,"0");case"Z":return ye}return null}(Qt)||ye.replace(":","")})},Y.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},Y.diff=function(j,ee,J){var he,ye=this,rt=Ye.p(ee),mt=ct(j),At=(mt.utcOffset()-this.utcOffset())*t,Nt=this-mt,mr=function(){return Ye.m(ye,mt)};switch(rt){case R:he=mr()/12;break;case f:he=mr();break;case v:he=mr()/3;break;case y:he=(Nt-At)/6048e5;break;case h:he=(Nt-At)/864e5;break;case d:he=Nt/i;break;case l:he=Nt/t;break;case o:he=Nt/e;break;default:he=Nt}return J?he:Ye.a(he)},Y.daysInMonth=function(){return this.endOf(f).$D},Y.$locale=function(){return se[this.$L]},Y.locale=function(j,ee){if(!j)return this.$L;var J=this.clone(),he=fr(j,ee,!0);return he&&(J.$L=he),J},Y.clone=function(){return Ye.w(this.$d,this)},Y.toDate=function(){return new Date(this.valueOf())},Y.toJSON=function(){return this.isValid()?this.toISOString():null},Y.toISOString=function(){return this.$d.toISOString()},Y.toString=function(){return this.$d.toUTCString()},de}(),pP=Wl.prototype;return ct.prototype=pP,[["$ms",a],["$s",o],["$m",l],["$H",d],["$W",h],["$M",f],["$y",R],["$D",I]].forEach(function(de){pP[de[1]]=function(Y){return this.$g(Y,de[0],de[1])}}),ct.extend=function(de,Y){return de.$i||(de(Y,Wl,ct),de.$i=!0),ct},ct.locale=fr,ct.isDayjs=Rt,ct.unix=function(de){return ct(1e3*de)},ct.en=se[Q],ct.Ls=se,ct.p={},ct})})(JI);var Tk=JI.exports;const $=lR(Tk);var E=(n=>(n.Error="error",n.Warning="warning",n))(E||{}),w=(n=>(n.InvalidObjectStructure="invalid-object-structure",n.NameNotUniqueInScope="name-not-unique-in-scope",n.EmptyName="empty-name",n.MissingCaller="missing-caller",n.PropertyOverwrite="property-overwrite",n.MethodOverwrite="method-overwrite",n.NoOverlapWithImplementedSignature="no-overlap-with-implemented-signature",n.ReaderWriterIncompatibleDataType="reader-writer-incompatible-data-type",n.UnreachableEntity="unreachable-entity",n.InternalCallParentMissingDataType="internal-call-parent-missing-data-type",n.InternalCallParentDeclarationEntityInvalidType="internal-call-parent-declaration-entity-invalid-type",n.InternalCallDeclarationNotFoundInParentDatatypeEntity="internal-call-declaration-not-found-in-parent-datatype-entity",n.InternalCallDeclarationIsNotFunctionDeclaration="internal-call-declaration-is-not-function-declaration",n.InternalCallDeclarationNotInParentDatatypeEntity="internal-call-declaration-not-in-parent-datatype-entity",n))(w||{}),T=(n=>(n.RootReference="root-reference",n.ReferencedEntityNotFound="referenced-entity-not-found",n.EntityIdNotUnique="entity-id-not-unique",n.BuiltInEntityGenerated="built-in-entity-generated",n.BuiltInEntityUpdated="built-in-entity-updated",n.BuiltInEntityDeleted="built-in-entity-deleted",n.UnknownEntityType="unknown-entity-type",n.MissingTypeProperty="missing-type-property",n.MissingIdProperty="missing-id-property",n.BuiltInEntityParent="built-in-entity-parent",n.InvalidBuiltInEntityReference="invalid-built-in-entity-reference",n.RecommendedImplementAbstractEntityAction="recommended-implement-abstract-entity-action",n.RecommendedImplementOperationAction="recommended-implement-operation-action",n.RecommendedImplementFunctionCallAction="recommended-implement-function-call-action",n.RecommendedImplementVariableDeclarationAction="recommended-implement-variable-declaration-action",n.RecommendedImplementVariableInstanceAction="recommended-implement-variable-instance-action",n.RecommendedImplementConditionAction="recommended-implement-condition-action",n.InvalidReferenceObjectStructure="invalid-reference-object-structure",n.ContainsSingleButShouldBeReferenceList="contains-single-but-should-be-reference-list",n.ContainsListButShouldReferenceSingle="contains-list-but-should-reference-single",n.InvalidParentReference="invalid-parent-reference",n.InvalidImplementsReference="invalid-implements-reference",n.InvalidExtendsReference="invalid-extends-reference",n.InvalidGenerationActionPayload="invalid-generation-action-payload",n.InvalidReference="invalid-reference",n.InvalidInternalCallParentRelation="invalid-internal-call-parent-relation",n.InvalidUpdateEntityOperation="invalid-update-entity-operation",n.NewEntityWouldOverriteExisting="new-entity-would-overrite-existing",n.InvalidDownstreamPropertyOverride="invalid-downstream-property-override",n.UnrecognizedProperty="unrecognized-property",n.SelfReference="self-reference",n.DuplicateReference="duplicate-reference",n.CallerWithIncompatibleScope="caller-with-incompatible-scope",n.InvalidFunctionDeclarationForFunctionCall="invalid-function-declaration-for-function-call",n.InvalidInputMapDeclaration="invalid-input-map-declaration",n.InvalidActionDescriptorForOperation="invalid-action-descriptor-for-operation",n.InvalidActionDescriptorForCondition="invalid-action-descriptor-for-condition",n.InvalidActionDescriptorForLoop="invalid-action-descriptor-for-loop",n.InvalidInmutablePropertyOverride="invalid-inmutable-property-override",n.OutputOverwrite="output-overwrite",n.InputOverwrite="input-overwrite",n.IncompatibleScope="incompatible-scope",n.InvalidParentUpdate="invalid-parent-update",n.NonInteractiveEntityReferenced="non-interactive-entity-referenced",n.InvalidParentRelationType="invalid-parent-relation-type",n))(T||{}),U=(n=>(n.NoPrimaryKeyProperty="no-primary-key-property",n.ScopeWithoutLogic="scope-without-logic",n.ExtendingAbstractEntity="extending-abstract-entity",n.ImplementingNonAbstractEntity="implementing-non-abstract-entity",n.AbstractEntityWithNonAbstractMethods="abstract-entity-with-non-abstract-methods",n.AbstractEntityWithNonAbstractProperties="abstract-entity-with-non-abstract-properties",n.StaticEntityWithNonStaticProperties="static-entity-with-non-static-properties",n.NonStaticPropertyInStaticEntity="non-static-property-in-static-entity",n.AbstractPropertyInNonAbstractEntity="abstract-property-in-non-abstract-entity",n.AbstractMethodInNonAbstractEntity="abstract-method-in-non-abstract-entity",n.IncorrectEntityImplementation="incorrect-entity-implementation",n.IncorrectMethodImplementation="incorrect-method-implementation",n.IncorrectPropertyImplementation="incorrect-property-implementation",n.PropertyImplementsNonAbstact="property-implements-non-abstract",n.NonStaticPropertyImplementsStatic="non-static-property-implements-static",n.StaticPropertyImplementsNonStatic="static-property-implements-non-static",n.PropertyImplementsIncompatibleType="property-implements-incompatible-type",n.MissingPropertyImplementation="missing-property-implementation",n.MissingMethodImplementation="missing-method-implementation",n.NoProperties="no-properties",n.ReadingFromIncompatibleType="reading-from-incompatible-type",n.WritingToIncompatibleType="writing-to-incompatible-type",n.InvalidPropertiesCombination="invalid-properties-combination",n.DisconnectedCallableEntity="disconnected-callable-entity",n.VariableReadsValueAndInternalCall="variable-reads-value-and-internal-call",n.VariableWritesValuesAndInternalCall="variable-writes-values-and-internal-call",n.VariableHasInputsAndInternalCall="variable-has-inputs-and-internal-calls",n.VariableHasOutputsAndInternalCall="variable-has-outputs-and-internal-call",n.VariableIsCalledAndHasInternalCall="variable-is-called-and-has-internal-call",n.VariableCallsOthersAndHasInternalCall="variable-calls-others-and-has-internal-call",n))(U||{});class g{constructor(s){u(this,"id");u(this,"message");u(this,"issue");u(this,"severity");u(this,"code");this.id=s.id,this.message=s.message,this.issue=s.issue,this.severity=s.severity,this.code=s.code}toEntityError(s){return this.code in w?new Hn({id:this.id,message:this.message,issue:this.issue,severity:this.severity,code:this.code,entity:s}):null}}class Hn{constructor(s){u(this,"id");u(this,"message");u(this,"issue");u(this,"severity");u(this,"code");u(this,"entity");this.id=s.id,this.message=s.message,this.issue=s.issue,this.severity=s.severity,this.code=s.code,this.entity=s.entity}clone(){return new Hn({id:this.id,message:this.message,issue:this.issue,severity:this.severity,code:this.code,entity:this.entity})}}function vk(n){const s=new Set;return n.filter(e=>s.has(e.id)?!1:(s.add(e.id),!0))}function le(n){const s=n.entity.errors.find(t=>t.id===n.id);return s?{new:!1,error:s}:{new:!0,error:new Hn(n)}}function Ek(n,s){const e=new Map;return n.forEach(t=>{e.set(t.id,t)}),s.forEach(t=>{e.set(t.id,t)}),Array.from(e.values())}function xe(n,s){const e=[];return s.forEach(t=>{const i=n.find(a=>a.id===t.id);i?e.push(i):e.push(t)}),e}const rs=p.union([p.string(),p.number(),p.boolean(),p.date()]),WI=p.enum([st.CurrentDateAndTime,st.Random,st.Unique]),qo=p.object({type:WI,rangeStart:rs.nullable(),rangeEnd:rs.nullable()}),ns=qo.extend({type:p.literal(st.Random),rangeStart:rs,rangeEnd:rs}),zu=qo.extend({type:p.literal(st.Unique),rangeStart:p.null(),rangeEnd:p.null()}),YI=qo.extend({type:p.literal(st.CurrentDateAndTime),rangeStart:p.null(),rangeEnd:p.null()}),Jo=ns.extend({rangeStart:p.number().nullable(),rangeEnd:p.number().nullable()}),HI=Jo.extend({rangeStart:p.number(),rangeEnd:p.null()}),zI=Jo.extend({rangeStart:p.null(),rangeEnd:p.number()}),KI=Jo.extend({rangeStart:p.number(),rangeEnd:p.number()}),Wo=ns.extend({rangeStart:p.number().nullable(),rangeEnd:p.number().nullable()}),XI=Wo.extend({rangeStart:p.number(),rangeEnd:p.null()}),QI=Wo.extend({rangeStart:p.null(),rangeEnd:p.number()}),eA=Wo.extend({rangeStart:p.number(),rangeEnd:p.number()}),Yo=ns.extend({rangeStart:p.date().nullable(),rangeEnd:p.date().nullable()}),tA=Yo.extend({rangeStart:p.date(),rangeEnd:p.null()}),rA=Yo.extend({rangeStart:p.null(),rangeEnd:p.date()}),nA=Yo.extend({rangeStart:p.date(),rangeEnd:p.date()}),Ku=ns.extend({rangeStart:p.null(),rangeEnd:p.null()}),Xu=p.union([XI,QI,eA]),Qu=p.union([HI,zI,KI]),ec=p.union([tA,rA,nA,YI]),tc=p.union([Xu,Qu,ec,zu,Ku]);function is(){return p.union([p.object({type:p.literal(r.ValueDescriptor)}),p.record(p.string(),p.any())])}function iA(){return p.object({id:p.string(),type:p.literal(r.GenericReference),entityId:p.string(),entityType:p.literal(r.ValueDescriptor)})}function rc(){return p.object({id:p.string(),type:p.literal(r.ValueDescriptor),name:p.string(),required:p.boolean()})}function Rk(){return rc().merge(p.object({version:p.number(),index:p.number()}))}function gk(){return rc().merge(p.object({}))}function bk(){return p.object({dataType:Qn(),parent:Kn()})}function Ik(){return Rk().merge(bk())}function Ho(){return p.union([p.object({type:p.literal(r.PrimitiveEntity)}),p.record(p.string(),p.any())])}function zo(){return p.object({id:p.string(),type:p.literal(r.GenericReference),entityId:p.string(),entityType:p.literal(r.PrimitiveEntity)})}function Ko(){return p.object({id:p.string(),type:p.literal(r.PrimitiveEntity),name:p.string(),description:p.string().nullable(),static:p.boolean(),abstract:p.boolean()})}function Ak(){return Ko().merge(p.object({version:p.number()}))}function Dk(){return Ko().merge(p.object({}))}function Pk(){return p.object({properties:p.array(zn()),methods:p.array(ir()),abstractMethods:p.array(Lr()),extends:p.array(p.union([Ho(),Xi()]))})}function Sk(){return Ak().merge(Pk())}function zn(){return p.union([p.object({type:p.literal(r.Property)}),p.record(p.string(),p.any())])}function aA(){return p.object({id:p.string(),type:p.literal(r.GenericReference),entityId:p.string(),entityType:p.literal(r.Property)})}function nc(){return p.object({id:p.string(),type:p.literal(r.Property),name:p.string(),description:p.string().nullable(),private:p.boolean(),static:p.boolean(),required:p.boolean(),abstract:p.boolean()})}function Ok(){return nc().merge(p.object({version:p.number(),index:p.number()}))}function Vk(){return nc().merge(p.object({}))}function Ck(){return p.object({dataType:Qn(),implements:zn().nullable(),parent:p.union([ri(),zo(),Xo()])})}function wk(){return Ok().merge(Ck())}function Bk(){return p.enum([k.CRON_JOB,k.EXECUTION,k.HTTP_ENDPOINT,k.PERSISTED_ENTITY,k.RELATIONAL_DATABASE])}function Xi(){return p.union([p.object({type:p.literal(r.BuiltInBaseEntity)}),p.record(p.string(),p.any())])}function Xo(){return p.object({id:p.string(),type:p.literal(r.GenericReference),entityId:p.string(),entityType:p.literal(r.BuiltInBaseEntity)})}function ic(){return p.object({id:p.string(),version:p.number(),type:p.literal(r.BuiltInBaseEntity),name:Bk(),description:p.string().nullable(),abstract:p.boolean(),static:p.boolean()})}function Mk(){return ic()}function _k(){return ic().merge(p.object({}))}function Nk(){return p.object({properties:p.array(zn()),methods:p.array(ir()),abstractMethods:p.array(Lr()),extends:p.array(p.union([Xi(),Ho()]))})}function Lk(){return Mk().merge(Nk())}function Lr(){return p.union([p.object({type:p.literal(r.ActionDescriptor)}),p.record(p.string(),p.any())])}function Kn(){return p.object({id:p.string(),type:p.literal(r.GenericReference),entityId:p.string(),entityType:p.literal(r.ActionDescriptor)})}function Qo(){return p.object({id:p.string(),type:p.literal(r.ActionDescriptor),name:p.string(),description:p.string().nullable()})}function Gk(){return Qo().merge(p.object({version:p.number()}))}function $k(){return Qo().merge(p.object({}))}function Fk(){return p.object({inputs:p.array(is()),outputs:p.array(is()),parent:p.union([Wt(),ri(),Xo(),zo()]).nullable()})}function sA(){return Gk().merge(Fk())}function Qi(){return p.union([p.object({type:p.literal(r.Loop)}),p.record(p.string(),p.any())])}function Gr(){return p.object({id:p.string(),type:p.literal(r.GenericReference),entityId:p.string(),entityType:p.literal(r.Loop)})}function oA(){return p.object({id:p.string(),type:p.literal(r.Loop)})}function Uk(){return oA().merge(p.object({version:p.number(),x:p.number(),y:p.number()}))}function xk(){return oA().merge(p.object({declaration:p.union([p.string(),ir()])}))}function jk(){return p.object({calledBySuccess:p.array(We()),calledByError:p.array(We()),calledByEntry:p.array(Tt()),declaration:Lr(),inputs:p.array(gr()),outputs:p.array(xt()),outputsDeclarations:p.array(is()),successCalls:p.array(Et()),errorCalls:p.array(Et()),error:xt(),body:ir(),parent:p.union([rn(),Wt()]),breakStatements:p.array(na()),continueStatements:p.array(ea())})}function kk(){return Uk().merge(jk())}function ea(){return p.union([p.object({type:p.literal(r.ContinueStatement)}),p.record(p.string(),p.any())])}function ta(){return p.object({id:p.string(),type:p.literal(r.GenericReference),entityId:p.string(),entityType:p.literal(r.ContinueStatement)})}function ac(){return p.object({id:p.string(),type:p.literal(r.ContinueStatement)})}function Zk(){return ac().merge(p.object({version:p.number(),x:p.number(),y:p.number()}))}function qk(){return ac().merge(p.object({}))}function Jk(){return p.object({calledBySuccess:p.array(We()),calledByError:p.array(We()),calledByEntry:p.array(Tt()),outputs:p.array(Qr()),throws:p.optional(Qr()),parent:Gr()})}function Wk(){return Zk().merge(Jk())}function Xn(){return p.union([p.object({type:p.literal(r.ReturnStatement)}),p.record(p.string(),p.any())])}function ra(){return p.object({id:p.string(),type:p.literal(r.GenericReference),entityId:p.string(),entityType:p.literal(r.ReturnStatement)})}function sc(){return p.object({id:p.string(),type:p.literal(r.ReturnStatement)})}function Yk(){return sc().merge(p.object({version:p.number(),x:p.number(),y:p.number()}))}function Hk(){return sc().merge(p.object({}))}function zk(){return p.object({calledBySuccess:p.array(We()),calledByError:p.array(We()),calledByEntry:p.array(Tt()),outputs:p.array(Qr()),throws:p.optional(Qr()),parent:rn()})}function Kk(){return Yk().merge(zk())}function Qr(){return p.union([p.object({type:p.literal(r.ReturnDeclaration)}),p.record(p.string(),p.any())])}function lA(){return p.object({id:p.string(),type:p.literal(r.GenericReference),entityId:p.string(),entityType:p.literal(r.ReturnDeclaration)})}function oc(){return p.object({id:p.string(),type:p.literal(r.ReturnDeclaration),name:p.string(),description:p.string().nullable(),isError:p.boolean()})}function Xk(){return oc().merge(p.object({version:p.number(),index:p.number()}))}function Qk(){return oc().merge(p.object({}))}function e6(){return p.object({dataType:Qn().nullable(),readsValue:us().nullable(),parent:p.union([ra(),Kn(),en(),ta()])})}function t6(){return Xk().merge(e6())}function na(){return p.union([p.object({type:p.literal(r.BreakStatement)}),p.record(p.string(),p.any())])}function en(){return p.object({id:p.string(),type:p.literal(r.GenericReference),entityId:p.string(),entityType:p.literal(r.BreakStatement)})}function lc(){return p.object({id:p.string(),type:p.literal(r.BreakStatement)})}function r6(){return lc().merge(p.object({version:p.number(),x:p.number(),y:p.number()}))}function n6(){return lc().merge(p.object({}))}function i6(){return p.object({calledBySuccess:p.array(We()),calledByError:p.array(We()),calledByEntry:p.array(Tt()),outputs:p.array(Qr()),throws:p.optional(Qr()),parent:Gr()})}function a6(){return r6().merge(i6())}function xt(){return p.union([p.object({type:p.literal(r.OutputMap)}),p.record(p.string(),p.any())])}function dc(){return p.object({id:p.string(),type:p.literal(r.GenericReference),entityId:p.string(),entityType:p.literal(r.OutputMap)})}function uc(){return p.object({id:p.string(),type:p.literal(r.OutputMap)})}function s6(){return uc().merge(p.object({version:p.number(),index:p.number()}))}function o6(){return uc().merge(p.object({}))}function l6(){return p.object({writesValues:p.array(tn()),declaration:p.union([Qr(),zn()]),parent:p.union([We(),Gr(),en()])})}function d6(){return s6().merge(l6())}function ia(){return p.union([p.object({type:p.literal(r.FunctionCall)}),p.record(p.string(),p.any())])}function as(){return p.object({id:p.string(),type:p.literal(r.GenericReference),entityId:p.string(),entityType:p.literal(r.FunctionCall)})}function cc(){return p.object({id:p.string(),type:p.literal(r.FunctionCall)})}function u6(){return cc().merge(p.object({version:p.number(),x:p.number(),y:p.number()}))}function c6(){return cc().merge(p.object({}))}function p6(){return p.object({successCalls:p.array(Et()),errorCalls:p.array(Et()),calledBySuccess:p.array(We()),calledByError:p.array(We()),calledByEntry:p.array(Tt()),writesValues:p.array(tn()),declaration:ir(),inputs:p.array(gr()),outputs:p.array(xt()),error:p.optional(xt()),parent:p.union([rn(),Wt()])})}function h6(){return u6().merge(p6())}function y6(){return p.enum([nt.Equal,nt.NotEqual,nt.MoreThan,nt.MoreThanOrEqual,nt.LessThan,nt.LessThanOrEqual,nt.And,nt.Or,lr.Empty,lr.NotEmpty])}function ss(){return p.union([p.object({type:p.literal(r.Condition)}),p.record(p.string(),p.any())])}function el(){return p.object({id:p.string(),type:p.literal(r.GenericReference),entityId:p.string(),entityType:p.literal(r.Condition)})}function pc(){return p.object({id:p.string(),type:p.literal(r.Condition)})}function f6(){return pc().merge(p.object({version:p.number(),x:p.number(),y:p.number()}))}function m6(){return pc().merge(p.object({}))}function T6(){return p.object({successCalls:p.array(Et()),errorCalls:p.array(Et()),calledBySuccess:p.array(We()),calledByError:p.array(We()),calledByEntry:p.array(Tt()),leftValue:gr(),rightValue:gr().nullable(),operator:y6(),parent:p.union([rn(),Wt()])})}function v6(){return f6().merge(T6())}function os(){return p.union([p.object({type:p.literal(r.Search)}),p.record(p.string(),p.any())])}function ls(){return p.object({id:p.string(),type:p.literal(r.GenericReference),entityId:p.string(),entityType:p.literal(r.Search)})}function hc(){return p.object({id:p.string(),type:p.literal(r.Search),name:p.string(),query:p.any(),description:p.string().nullable()})}function E6(){return hc().merge(p.object({version:p.number(),x:p.number(),y:p.number()}))}function R6(){return hc().merge(p.object({}))}function g6(){return p.object({successCalls:p.array(Et()),errorCalls:p.array(Et()),calledBySuccess:p.array(We()),calledByError:p.array(We()),calledByEntry:p.array(Tt()),inputsDeclarations:p.array(ti()),inputs:p.array(gr()),outputsDeclarations:p.array(is()),outputs:p.array(xt()),parent:p.union([rn(),Wt()]),error:xt().nullable()})}function b6(){return E6().merge(g6())}function ds(){return p.union([p.object({type:p.literal(r.InternalCall)}),p.record(p.string(),p.any())])}function yc(){return p.object({id:p.string(),type:p.literal(r.GenericReference),entityId:p.string(),entityType:p.literal(r.InternalCall)})}function fc(){return p.object({id:p.string(),type:p.literal(r.InternalCall),index:p.number()})}function I6(){return fc().merge(p.object({version:p.number(),index:p.number()}))}function A6(){return fc().merge(p.object({declaration:p.union([p.string(),ir()])}))}function D6(){return p.object({successCalls:p.array(Et()),errorCalls:p.array(Et()),calledBySuccess:p.array(We()),calledByError:p.array(We()),calledByEntry:p.array(Tt()),writesValues:p.array(tn()),declaration:ir(),inputs:p.array(gr()),outputs:p.array(xt()),parent:gn(),error:p.optional(xt())})}function P6(){return I6().merge(D6())}function gr(){return p.union([p.object({type:p.literal(r.InputMap)}),p.record(p.string(),p.any())])}function tl(){return p.object({id:p.string(),type:p.literal(r.GenericReference),entityId:p.string(),entityType:p.literal(r.InputMap)})}function mc(){return p.object({id:p.string(),type:p.literal(r.InputMap),name:p.string().nullable().optional(),description:p.string().nullable().optional()})}function S6(){return mc().merge(p.object({version:p.number(),index:p.number()}))}function O6(){return mc().merge(p.object({}))}function V6(){return p.object({defaultValue:Tc().nullable(),declaration:p.union([ti(),zn()]).nullable(),readsValue:us().nullable(),parent:p.union([We(),tl(),Gr(),en()])})}function C6(){return S6().merge(V6())}function aa(){return p.union([p.object({type:p.literal(r.Operation)}),p.record(p.string(),p.any())])}function sa(){return p.object({id:p.string(),type:p.literal(r.GenericReference),entityId:p.string(),entityType:p.literal(r.Operation)})}function rl(){return p.object({id:p.string(),type:p.literal(r.Operation)})}function w6(){return rl().merge(p.object({version:p.number(),x:p.number(),y:p.number()}))}function B6(){return rl().merge(p.object({}))}function M6(){return rl().merge(p.object({successCalls:p.array(Et()),errorCalls:p.array(Et()),calledBySuccess:p.array(We()),calledByError:p.array(We()),calledByEntry:p.array(Tt()),writesValues:p.array(tn()),declaration:Lr(),inputs:p.array(gr()),outputs:p.array(xt()),error:p.array(xt()),parent:p.union([rn(),Wt()])}))}function _6(){return w6().merge(M6())}function nl(){return p.union([p.string(),p.number(),p.boolean(),p.null(),p.date()])}function dA(){return p.record(p.string(),nl())}function N6(){return p.array(p.union([nl(),dA()]))}function uA(){return p.union([nl(),dA(),N6()])}function cA(){return p.union([nl(),uA()])}function pA(){return p.enum([C.String,C.Number,C.Boolean,C.Null,C.Date,C.KeyValue,C.Enum,C.File,C.UUID,C.EntityTemplate,C.ActionDescriptor])}function L6(){return p.union([ri(),sa(),cs()])}function G6(){return p.object({id:p.string(),name:pA(),type:p.literal(r.LiteralValue),value:cA(),autogeneration:tc.nullable()})}function $6(){return G6().merge(p.object({}))}function br(){return p.object({id:p.string(),version:p.number(),name:pA(),type:p.literal(r.LiteralValue),value:cA(),valueAsType:L6().nullable(),autogeneration:tc.nullable(),parent:p.union([vc(),tl()])})}function F6(){return br().extend({name:p.literal(C.String),value:p.string(),autogeneration:Xu.nullable()})}function U6(){return br().extend({name:p.literal(C.Number),value:p.number(),autogeneration:Qu.nullable()})}function x6(){return br().extend({name:p.literal(C.Boolean),value:p.boolean(),autogeneration:Ku.nullable()})}function j6(){return br().extend({name:p.literal(C.Null),value:p.null(),autogeneration:p.null()})}function k6(){return br().extend({name:p.literal(C.Date),value:p.date(),autogeneration:ec.nullable()})}function Z6(){return br().extend({name:p.literal(C.KeyValue),value:uA(),autogeneration:p.null()})}function q6(){return br().extend({name:p.literal(C.Enum),value:p.string(),autogeneration:p.null()})}function J6(){return br().extend({name:p.literal(C.File),value:p.string(),autogeneration:p.null()})}function W6(){return br().extend({name:p.literal(C.UUID),value:p.string(),autogeneration:zu.nullable()})}function Y6(){return br().extend({name:p.literal(C.EntityTemplate),value:ri(),autogeneration:p.null()})}function H6(){return br().extend({name:p.literal(C.ActionDescriptor),value:cs(),autogeneration:p.null()})}function Tc(){return p.union([F6(),U6(),x6(),j6(),k6(),Z6(),q6(),J6(),W6(),Y6(),H6()])}function Qn(){return p.union([p.object({type:p.literal(r.DataType)}),p.record(p.string(),p.any())])}function vc(){return p.object({id:p.string(),type:p.literal(r.GenericReference),entityId:p.string(),entityType:p.literal(r.DataType)})}function Ec(){return p.object({id:p.string(),type:p.literal(r.DataType),isNullable:p.boolean(),isList:p.boolean(),constant:p.boolean(),asType:p.boolean(),options:p.array(p.string()).optional()})}function z6(){return Ec().merge(p.object({version:p.number()}))}function K6(){return Ec().merge(p.object({}))}function X6(){return p.object({defaultValue:Tc().nullable(),entity:p.union([oa(),Xi(),Ho(),Lr()]).nullable(),parent:p.union([aA(),fA(),iA()])})}function Q6(){return z6().merge(X6())}function Rc(){return p.union([p.object({type:p.literal(r.VariableDeclaration)}),p.record(p.string(),p.any())])}function e3(){return p.object({id:p.string(),type:p.literal(r.GenericReference),entityId:p.string(),entityType:p.literal(r.VariableDeclaration)})}function gc(){return p.object({id:p.string(),type:p.literal(r.VariableDeclaration),name:p.string(),description:p.string().nullable()})}function t3(){return gc().merge(p.object({version:p.number(),x:p.number(),y:p.number()}))}function r3(){return gc().merge(p.object({}))}function n3(){return p.object({dataType:Qn().nullable(),readsValue:us().nullable(),writesValues:p.array(tn()),inputs:p.array(gr()),outputs:p.array(xt()),successCalls:p.array(Et()),errorCalls:p.array(Et()),internalCalls:p.array(ds()),calledBySuccess:p.array(We()),calledByError:p.array(We()),calledByEntry:p.array(Tt()),parent:p.union([rn(),Wt()])})}function i3(){return t3().merge(n3())}function hA(){return p.union([p.object({type:p.literal(r.VariableInstance)}),p.record(p.string(),p.any())])}function a3(){return p.object({id:p.string(),type:p.literal(r.GenericReference),entityId:p.string(),entityType:p.literal(r.VariableInstance)})}function bc(){return p.object({id:p.string(),type:p.literal(r.VariableInstance)})}function s3(){return bc().merge(p.object({version:p.number(),x:p.number(),y:p.number()}))}function o3(){return bc().merge(p.object({}))}function l3(){return p.object({declaration:Rc(),dataType:Qn().nullable(),readsValue:us().nullable(),writesValues:p.array(tn()),inputs:p.array(gr()),outputs:p.array(xt()),successCalls:p.array(Et()),errorCalls:p.array(Et()),internalCalls:p.array(ds()),calledBySuccess:p.array(We()),calledByError:p.array(We()),calledByEntry:p.array(Tt()),parent:p.union([rn(),Wt()])})}function d3(){return s3().merge(l3())}function Ic(){return p.union([p.object({type:p.literal(r.InstalledProject)}),p.record(p.string(),p.any())])}function il(){return p.object({id:p.string(),type:p.literal(r.GenericReference),entityId:p.string(),entityType:p.literal(r.InstalledProject)})}function u3(){return p.object({id:p.string(),type:p.literal(r.InstalledProject)})}function c3(){return p.object({version:p.number(),x:p.number(),y:p.number()})}function p3(){return p.object({})}function h3(){return p.object({implements:Wt(),description:p.string().nullable(),functions:p.array(ir()),events:p.array(Ac()),parent:Wt()})}function y3(){return c3().merge(h3())}function Ac(){return p.union([p.object({type:p.literal(r.GlobalEvent)}),p.record(p.string(),p.any())])}function f3(){return p.object({id:p.string(),type:p.literal(r.GenericReference),entityId:p.string(),entityType:p.literal(r.GlobalEvent)})}function al(){return p.object({id:p.string(),type:p.literal(r.GlobalEvent),name:p.string(),collapsed:p.boolean()})}function m3(){return al().merge(p.object({version:p.number(),x:p.number(),y:p.number()}))}function T3(){return al().merge(p.object({}))}function v3(){return al().merge(p.object({returnStatements:p.array(Xn()),implements:p.array(sA()),inputs:p.array(ti()),calls:p.array(Et()),parent:p.union([Wt(),il()])}))}function E3(){return m3().merge(v3())}function ei(){return p.union([Rc(),hA()])}function gn(){return p.union([e3(),a3()])}function tn(){return p.union([ei(),gr(),Qr()])}function yA(){return p.union([gn(),tl(),lA()])}function us(){return p.union([ei(),ti(),xt(),aa(),ds(),ia()])}function R3(){return p.union([gn(),Dc(),dc(),sa(),yc(),as()])}function g3(){return p.union([ti(),xt(),tn()])}function fA(){return p.union([Dc(),dc(),yA()])}function sl(){return Ac()}function ol(){return f3()}function ll(){return p.union([aa(),ia(),ss(),os(),ei(),ds(),Qi()])}function We(){return p.union([sa(),as(),el(),ls(),gn(),yc(),Gr()])}function dl(){return p.union([aa(),ia(),ss(),os(),ei(),Qi()])}function ul(){return p.union([sa(),as(),el(),ls(),gn(),Gr()])}function mA(){return p.union([ll(),Xn(),na(),ea()])}function Et(){return p.union([We(),ra(),en(),ta()])}function TA(){return p.union([dl(),Xn(),na(),ea()])}function vA(){return p.union([ul(),ra(),en(),ta()])}function bn(){return p.union([ir(),sl()])}function Tt(){return p.union([cs(),ol()])}function b3(){return p.union([ll(),bn()])}function I3(){return p.union([We(),Tt()])}function A3(){return p.union([dl(),bn()])}function D3(){return p.union([ul(),Tt()])}function P3(){return p.union([mA(),bn()])}function S3(){return p.union([Et(),Tt()])}function O3(){return p.union([TA(),bn()])}function V3(){return p.union([vA(),Tt()])}function C3(){return p.union([bn(),Qi()])}function rn(){return p.union([Tt(),Gr()])}function w3(){return p.union([ll(),bn()])}function B3(){return p.union([We(),Tt()])}function M3(){return p.union([dl(),bn()])}function _3(){return p.union([ul(),Tt()])}function N3(){return p.union([Xn(),na(),ea()])}function L3(){return p.union([ra(),en(),ta()])}function G3(){return p.union([Xi(),H3(),Ic(),oa(),ir(),sl(),ei(),gr(),xt(),ss(),aa(),ia(),Qr(),ti(),Ho(),Qn(),zn(),Lr(),Xn(),ea(),na(),Qi(),os(),Lr(),Lr(),is(),ds()])}function $3(){return p.union([Xo(),Wt(),il(),ri(),cs(),ol(),gn(),tl(),dc(),el(),sa(),as(),lA(),Dc(),zo(),vc(),aA(),Kn(),ra(),ta(),en(),Gr(),ls(),Kn(),Kn(),iA(),yc()])}function F3(){return p.union([Ic(),oa(),ir(),sl(),ei(),ss(),aa(),ia(),Xn(),ea(),na(),Qi(),os()])}function U3(){return p.union([il(),ri(),cs(),ol(),gn(),el(),sa(),as(),ra(),ta(),en(),Gr(),ls()])}function ti(){return p.union([p.object({type:p.literal(r.ArgumentDeclaration)}),p.record(p.string(),p.any())])}function Dc(){return p.object({id:p.string(),type:p.literal(r.GenericReference),entityId:p.string(),entityType:p.literal(r.ArgumentDeclaration)})}function Pc(){return p.object({id:p.string(),type:p.literal(r.ArgumentDeclaration)})}function x3(){return Pc().merge(p.object({version:p.number(),x:p.number(),y:p.number()}))}function j3(){return Pc().merge(p.object({}))}function k3(){return p.object({dataType:Qn().nullable(),writesValues:p.array(tn()),parent:p.union([Tt(),Kn(),Kn(),ls(),en()])})}function Z3(){return x3().merge(k3())}function ir(){return p.union([p.object({type:p.literal(r.FunctionDeclaration)}),p.record(p.string(),p.any())])}function cs(){return p.object({id:p.string(),type:p.literal(r.GenericReference),entityId:p.string(),entityType:p.literal(r.FunctionDeclaration)})}function Sc(){return p.object({id:p.string(),type:p.literal(r.FunctionDeclaration),name:p.string(),description:p.string().nullable()})}function q3(){return Sc().merge(p.object({version:p.number(),x:p.number(),y:p.number(),index:p.number().nullable()}))}function J3(){return Sc()}function W3(){return p.object({inputs:p.array(ti()),implements:Lr().nullable(),returnStatements:p.array(Xn()),parent:p.union([Wt(),il(),ri(),Gr(),Xo(),zo()])})}function Y3(){return q3().merge(W3())}function H3(){return p.union([p.object({type:p.literal(r.Project)}),p.record(p.string(),p.any())])}function Wt(){return p.object({entityType:p.literal(r.Project),entityId:p.string(),id:p.string(),type:p.literal(r.GenericReference)})}function Oc(){return p.object({id:p.string(),type:p.literal(r.Project),name:p.string(),description:p.string().nullable()})}function z3(){return Oc().merge(p.object({version:p.number()}))}function K3(){return Oc()}function X3(){return p.object({entities:p.array(oa()),functions:p.array(ir()),events:p.array(Ac()),projects:p.array(Ic()),variableDeclarations:p.array(Rc()),variableInstances:p.array(hA()),conditions:p.array(ss()),operations:p.array(aa()),functionCalls:p.array(ia()),loops:p.array(Qi()),searches:p.array(os())})}function Q3(){return z3().merge(X3())}function oa(){return p.union([p.object({type:p.literal(r.DefinitionEntity)}),p.record(p.string(),p.any())])}function ri(){return p.object({id:p.string(),type:p.literal(r.GenericReference),entityId:p.string(),entityType:p.literal(r.DefinitionEntity)})}function Vc(){return p.object({id:p.string(),type:p.literal(r.DefinitionEntity),name:p.string(),description:p.string().nullable(),static:p.boolean(),abstract:p.boolean()})}function e5(){return Vc().merge(p.object({version:p.number(),x:p.number(),y:p.number()}))}function t5(){return Vc().merge(p.object({}))}function r5(){return p.union([Wt(),vc()])}function n5(){return p.object({properties:p.array(zn()),methods:p.array(ir()),abstractMethods:p.array(Lr()),extends:p.array(p.union([oa(),Xi()])),implements:p.array(p.union([oa(),Xi()])),parent:r5()})}function i5(){return e5().merge(n5())}function a5(n){const s=i5(),e=n.toJSON();s.safeParse(e).success;const i=n.implements.flatMap(y=>l5(n,y)),a=n.extends.flatMap(y=>d5(n,y)),o=c5(n),l=u5(n);n.methods.flatMap(y=>y.validate());const d=[...i,...a,...o,...l];return xe(n.errors,d)}function s5(n,s){const e=s.properties.filter(a=>a.abstract),t=[];let i=[...n.properties];return e.forEach(a=>{const o=i.find(l=>{var d;return((d=l.implements)==null?void 0:d.id)===a.id});o?i=i.filter(l=>l.id!==o.id):t.push(a)}),t}function o5(n,s){const e=s.abstractMethods,t=[];let i=[...n.methods];return e.forEach(a=>{const o=i.find(l=>{var d;return((d=l.implements)==null?void 0:d.id)===a.id});o?i=i.filter(l=>l.id!==o.id):t.push(a)}),t}function l5(n,s){const e=[];if(!s.abstract){const y=le({id:n.id+"--"+U.ImplementingNonAbstractEntity,message:`Entity "${n.name}" with id "${n.id}" is implementing a non-abstract entity "${s.name}" with id "${s.id}"`,issue:null,severity:E.Error,code:U.ImplementingNonAbstractEntity,entity:n});return e.push(y.error),e}const t=s.properties.filter(y=>y.abstract),i=[];let a=[...n.properties];t.forEach(y=>{const f=a.find(v=>{var R;return((R=v.implements)==null?void 0:R.id)===y.id});f?a=a.filter(v=>v.id!==f.id):i.push(y)}),i.length&&i.forEach(y=>{const f=le({id:n.id+"--"+U.MissingPropertyImplementation+"--"+y.id,message:`Property "${y.name}" with id "${y.id}" of entity "${s.name}" with id "${s.id}" is not implemented when entity "${n.name}" with id "${n.id}" implements it`,issue:null,severity:E.Error,code:U.MissingPropertyImplementation,entity:n});e.push(f.error)});const o=[];let l=[...n.methods];s.abstractMethods.forEach(y=>{const f=l.find(v=>{var R;return((R=v.implements)==null?void 0:R.id)===y.id});f?l=l.filter(v=>v.id!==f.id):o.push(y)}),o.length&&o.forEach(y=>{const f=le({id:n.id+"--"+U.MissingMethodImplementation+"--"+y.id,message:`Method "${y.name}" with id "${y.id}" of entity "${s.name}" with id "${s.id}" is not implemented when entity "${n.name}" with id "${n.id}" implements it`,issue:null,severity:E.Error,code:U.MissingMethodImplementation,entity:n});e.push(f.error)});const d=[];s.properties.forEach(y=>{const f=a.find(v=>v.name===y.name);f&&d.push([f,y])}),d.length&&d.forEach(([y])=>{const f=le({id:n.id+"--"+w.PropertyOverwrite+"--"+y.id,message:`Property "${y.name}" with id "${y.id}" of entity "${n.name}" with id "${n.id}" overwrites the property with the same name from the base entity "${s.name}" with id "${s.id}"`,issue:null,severity:E.Error,code:w.PropertyOverwrite,entity:n});e.push(f.error)});const h=[];return s.methods.forEach(y=>{const f=l.find(v=>v.name===y.name);f&&h.push([f,y])}),h.length&&h.forEach(([y])=>{const f=le({id:n.id+"--"+w.MethodOverwrite+"--"+y.id,message:`Method "${y.name}" with id "${y.id}" of entity "${n.name}" with id "${n.id}" overwrites the method with the same name from the base entity "${s.name}" with id "${s.id}"`,issue:null,severity:E.Error,code:w.MethodOverwrite,entity:n});e.push(f.error)}),e}function d5(n,s){const e=[],t=[];if(s.abstract){const a=le({id:n.id+"--"+U.ExtendingAbstractEntity,message:`Entity "${n.name}" with id "${n.id}" is extending an abstract entity "${s.name}" with id "${s.id}"`,issue:null,severity:E.Error,code:U.ExtendingAbstractEntity,entity:n});return e.push(a.error),e}n.properties.forEach(a=>{var l;const o=s.properties.find(d=>d.name===a.name);((l=a.implements)==null?void 0:l.id)!==(o==null?void 0:o.id)&&o&&t.push(a)}),t.length&&t.forEach(a=>{const o=le({id:n.id+"--"+w.PropertyOverwrite,message:`Property "${a.name}" with id "${a.id}" of entity "${n.name}" with id "${n.id}" overwrites the property with the same name from the extended entity "${s.name}" with id "${s.id}"`,issue:null,severity:E.Error,code:w.PropertyOverwrite,entity:n});e.push(o.error)});const i=[];return n.methods.forEach(a=>{var l;const o=s.methods.find(d=>d.name===a.name);((l=a.implements)==null?void 0:l.id)!==(o==null?void 0:o.id)&&o&&i.push(a)}),i.length&&i.forEach(a=>{const o=le({id:n.id+"--"+w.MethodOverwrite,message:`Method "${a.name}" with id "${a.id}" of entity "${n.name}" with id "${n.id}" overwrites the method with the same name from the extended entity "${s.name}" with id "${s.id}"`,issue:null,severity:E.Error,code:w.MethodOverwrite,entity:n});e.push(o.error)}),e}function u5(n){const s=[];if(!n.properties.length){const e=le({id:n.id+"--"+U.NoProperties,message:"No properties implemented",issue:null,severity:E.Warning,code:U.NoProperties,entity:n});s.push(e.error)}return n.properties.forEach(e=>{e.validate()}),s}function c5(n){const s=[];if(n.abstract){if(n.methods.length){const e=le({id:n.id+"--"+U.AbstractEntityWithNonAbstractMethods,message:`Entity "${n.name}" with id "${n.id}" is marked as abstract but has non-abstract methods`,issue:null,severity:E.Error,code:U.AbstractEntityWithNonAbstractMethods,entity:n});s.push(e.error)}if(n.properties.some(e=>!e.abstract)){const e=le({id:n.id+"--"+U.AbstractEntityWithNonAbstractProperties,message:`Entity "${n.name}" with id "${n.id}" is marked as abstract but has non-abstract properties`,issue:null,severity:E.Error,code:U.AbstractEntityWithNonAbstractProperties,entity:n});s.push(e.error),n.properties.forEach(t=>{if(!t.abstract){const i=le({id:n.id+"--"+U.StaticEntityWithNonStaticProperties+"--"+t.id,message:`Property "${t.name}" with id "${t.id}" of entity "${n.name}" with id "${n.id}" is not marked as abstract but the entity is marked as abstract`,issue:null,severity:E.Error,code:U.StaticEntityWithNonStaticProperties,entity:n});s.push(i.error)}})}}else{if(n.abstractMethods.length){const e=le({id:n.id+"--"+U.AbstractPropertyInNonAbstractEntity,message:`Entity "${n.name}" with id "${n.id}" is not marked as abstract but has abstract methods`,issue:null,severity:E.Error,code:U.AbstractPropertyInNonAbstractEntity,entity:n});s.push(e.error)}if(n.properties.some(e=>e.abstract)){const e=le({id:n.id+"--"+U.AbstractMethodInNonAbstractEntity,message:`Entity "${n.name}" with id "${n.id}" is not marked as abstract but has abstract properties`,issue:null,severity:E.Error,code:U.AbstractMethodInNonAbstractEntity,entity:n});s.push(e.error),n.properties.forEach(t=>{if(t.abstract){const i=le({id:n.id+"--"+U.AbstractMethodInNonAbstractEntity+"--"+t.id,message:`Property "${t.name}" with id "${t.id}" of entity "${n.name}" with id "${n.id}" is marked as abstract but the entity is not marked as abstract`,issue:null,severity:E.Error,code:U.AbstractMethodInNonAbstractEntity,entity:n});s.push(i.error)}})}}if(n.static&&n.properties.some(e=>!e.static)){const e=le({id:n.id+"--"+U.StaticEntityWithNonStaticProperties,message:`Entity "${n.name}" with id "${n.id}" is marked as static but has non-static properties`,issue:null,severity:E.Error,code:U.StaticEntityWithNonStaticProperties,entity:n});s.push(e.error),n.properties.forEach(t=>{if(!t.static){const i=le({id:n.id+"--"+U.NonStaticPropertyInStaticEntity+"--"+t.id,message:`Property "${t.name}" with id "${t.id}" of entity "${n.name}" with id "${n.id}" is not marked as static but the entity is marked as static`,issue:null,severity:E.Error,code:U.NonStaticPropertyInStaticEntity,entity:n});s.push(i.error)}})}return s}function p5(n){return n instanceof Error&&n.name==="ZodError"&&"issues"in n&&Array.isArray(n.issues)}var h5=class extends Error{constructor(s,e){super(s,e);u(this,"name");u(this,"details");this.name="ZodValidationError",this.details=y5(e)}toString(){return this.message}};function y5(n){if(n){const s=n.cause;if(p5(s))return s.issues}return[]}function f5(n){return n.length!==0}var m5=/[$_\p{ID_Start}][$\u200c\u200d\p{ID_Continue}]*/u;function T5(n){return n.length===1?n[0].toString():n.reduce((s,e)=>{if(typeof e=="number")return s+"["+e.toString()+"]";if(e.includes('"'))return s+'["'+v5(e)+'"]';if(!m5.test(e))return s+'["'+e+'"]';const t=s.length===0?"":".";return s+t+e},"")}function v5(n){return n.replace(/"/g,'\\"')}var E5="; ",R5=99,EA="Validation error",g5=": ",b5=", or ";function I5(n={}){const{issueSeparator:s=E5,unionSeparator:e=b5,prefixSeparator:t=g5,prefix:i=EA,includePath:a=!0,maxIssuesInMessage:o=R5}=n;return l=>{const d=l.slice(0,o).map(h=>cl({issue:h,issueSeparator:s,unionSeparator:e,includePath:a})).join(s);return A5(d,i,t)}}function cl(n){const{issue:s,issueSeparator:e,unionSeparator:t,includePath:i}=n;if(s.code===G.invalid_union)return s.unionErrors.reduce((a,o)=>{const l=o.issues.map(d=>cl({issue:d,issueSeparator:e,unionSeparator:t,includePath:i})).join(e);return a.includes(l)||a.push(l),a},[]).join(t);if(s.code===G.invalid_arguments)return[s.message,...s.argumentsError.issues.map(a=>cl({issue:a,issueSeparator:e,unionSeparator:t,includePath:i}))].join(e);if(s.code===G.invalid_return_type)return[s.message,...s.returnTypeError.issues.map(a=>cl({issue:a,issueSeparator:e,unionSeparator:t,includePath:i}))].join(e);if(i&&f5(s.path)){if(s.path.length===1){const a=s.path[0];if(typeof a=="number")return`${s.message} at index ${a}`}return`${s.message} at "${T5(s.path)}"`}return s.message}function A5(n,s,e){return s!==null?n.length>0?[s,n].join(e):s:n.length>0?n:EA}function D5(n,s={}){const t=P5(s)([n]);return new h5(t,{cause:new Jt([n])})}function P5(n){return"messageBuilder"in n?n.messageBuilder:I5(n)}var RA="1.13.7",gA=typeof self=="object"&&self.self===self&&self||typeof global=="object"&&global.global===global&&global||Function("return this")()||{},pl=Array.prototype,Cc=Object.prototype,bA=typeof Symbol<"u"?Symbol.prototype:null,S5=pl.push,ps=pl.slice,hs=Cc.toString,O5=Cc.hasOwnProperty,IA=typeof ArrayBuffer<"u",V5=typeof DataView<"u",C5=Array.isArray,AA=Object.keys,DA=Object.create,PA=IA&&ArrayBuffer.isView,w5=isNaN,B5=isFinite,SA=!{toString:null}.propertyIsEnumerable("toString"),OA=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],M5=Math.pow(2,53)-1;function Yt(n,s){return s=s==null?n.length-1:+s,function(){for(var e=Math.max(arguments.length-s,0),t=Array(e),i=0;i<e;i++)t[i]=arguments[i+s];switch(s){case 0:return n.call(this,t);case 1:return n.call(this,arguments[0],t);case 2:return n.call(this,arguments[0],arguments[1],t)}var a=Array(s+1);for(i=0;i<s;i++)a[i]=arguments[i];return a[s]=t,n.apply(this,a)}}function In(n){var s=typeof n;return s==="function"||s==="object"&&!!n}function _5(n){return n===null}function VA(n){return n===void 0}function CA(n){return n===!0||n===!1||hs.call(n)==="[object Boolean]"}function N5(n){return!!(n&&n.nodeType===1)}function Mt(n){var s="[object "+n+"]";return function(e){return hs.call(e)===s}}const wc=Mt("String"),wA=Mt("Number"),L5=Mt("Date"),G5=Mt("RegExp"),$5=Mt("Error"),BA=Mt("Symbol"),MA=Mt("ArrayBuffer");var _A=Mt("Function"),F5=gA.document&&gA.document.childNodes;typeof/./!="function"&&typeof Int8Array!="object"&&typeof F5!="function"&&(_A=function(n){return typeof n=="function"||!1});const jt=_A,NA=Mt("Object");var LA=V5&&(!/\[native code\]/.test(String(DataView))||NA(new DataView(new ArrayBuffer(8)))),Bc=typeof Map<"u"&&NA(new Map),U5=Mt("DataView");function x5(n){return n!=null&&jt(n.getInt8)&&MA(n.buffer)}const hl=LA?x5:U5,ni=C5||Mt("Array");function An(n,s){return n!=null&&O5.call(n,s)}var Mc=Mt("Arguments");(function(){Mc(arguments)||(Mc=function(n){return An(n,"callee")})})();const _c=Mc;function j5(n){return!BA(n)&&B5(n)&&!isNaN(parseFloat(n))}function GA(n){return wA(n)&&w5(n)}function $A(n){return function(){return n}}function FA(n){return function(s){var e=n(s);return typeof e=="number"&&e>=0&&e<=M5}}function UA(n){return function(s){return s==null?void 0:s[n]}}const yl=UA("byteLength"),k5=FA(yl);var Z5=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;function q5(n){return PA?PA(n)&&!hl(n):k5(n)&&Z5.test(hs.call(n))}const xA=IA?q5:$A(!1),Ht=UA("length");function J5(n){for(var s={},e=n.length,t=0;t<e;++t)s[n[t]]=!0;return{contains:function(i){return s[i]===!0},push:function(i){return s[i]=!0,n.push(i)}}}function jA(n,s){s=J5(s);var e=OA.length,t=n.constructor,i=jt(t)&&t.prototype||Cc,a="constructor";for(An(n,a)&&!s.contains(a)&&s.push(a);e--;)a=OA[e],a in n&&n[a]!==i[a]&&!s.contains(a)&&s.push(a)}function bt(n){if(!In(n))return[];if(AA)return AA(n);var s=[];for(var e in n)An(n,e)&&s.push(e);return SA&&jA(n,s),s}function ys(n){if(n==null)return!0;var s=Ht(n);return typeof s=="number"&&(ni(n)||wc(n)||_c(n))?s===0:Ht(bt(n))===0}function kA(n,s){var e=bt(s),t=e.length;if(n==null)return!t;for(var i=Object(n),a=0;a<t;a++){var o=e[a];if(s[o]!==i[o]||!(o in i))return!1}return!0}function je(n){if(n instanceof je)return n;if(!(this instanceof je))return new je(n);this._wrapped=n}je.VERSION=RA,je.prototype.value=function(){return this._wrapped},je.prototype.valueOf=je.prototype.toJSON=je.prototype.value,je.prototype.toString=function(){return String(this._wrapped)};function ZA(n){return new Uint8Array(n.buffer||n,n.byteOffset||0,yl(n))}var qA="[object DataView]";function Nc(n,s,e,t){if(n===s)return n!==0||1/n===1/s;if(n==null||s==null)return!1;if(n!==n)return s!==s;var i=typeof n;return i!=="function"&&i!=="object"&&typeof s!="object"?!1:JA(n,s,e,t)}function JA(n,s,e,t){n instanceof je&&(n=n._wrapped),s instanceof je&&(s=s._wrapped);var i=hs.call(n);if(i!==hs.call(s))return!1;if(LA&&i=="[object Object]"&&hl(n)){if(!hl(s))return!1;i=qA}switch(i){case"[object RegExp]":case"[object String]":return""+n==""+s;case"[object Number]":return+n!=+n?+s!=+s:+n==0?1/+n===1/s:+n==+s;case"[object Date]":case"[object Boolean]":return+n==+s;case"[object Symbol]":return bA.valueOf.call(n)===bA.valueOf.call(s);case"[object ArrayBuffer]":case qA:return JA(ZA(n),ZA(s),e,t)}var a=i==="[object Array]";if(!a&&xA(n)){var o=yl(n);if(o!==yl(s))return!1;if(n.buffer===s.buffer&&n.byteOffset===s.byteOffset)return!0;a=!0}if(!a){if(typeof n!="object"||typeof s!="object")return!1;var l=n.constructor,d=s.constructor;if(l!==d&&!(jt(l)&&l instanceof l&&jt(d)&&d instanceof d)&&"constructor"in n&&"constructor"in s)return!1}e=e||[],t=t||[];for(var h=e.length;h--;)if(e[h]===n)return t[h]===s;if(e.push(n),t.push(s),a){if(h=n.length,h!==s.length)return!1;for(;h--;)if(!Nc(n[h],s[h],e,t))return!1}else{var y=bt(n),f;if(h=y.length,bt(s).length!==h)return!1;for(;h--;)if(f=y[h],!(An(s,f)&&Nc(n[f],s[f],e,t)))return!1}return e.pop(),t.pop(),!0}function W5(n,s){return Nc(n,s)}function fs(n){if(!In(n))return[];var s=[];for(var e in n)s.push(e);return SA&&jA(n,s),s}function Lc(n){var s=Ht(n);return function(e){if(e==null)return!1;var t=fs(e);if(Ht(t))return!1;for(var i=0;i<s;i++)if(!jt(e[n[i]]))return!1;return n!==HA||!jt(e[Gc])}}var Gc="forEach",WA="has",$c=["clear","delete"],YA=["get",WA,"set"],Y5=$c.concat(Gc,YA),HA=$c.concat(YA),H5=["add"].concat($c,Gc,WA);const z5=Bc?Lc(Y5):Mt("Map"),K5=Bc?Lc(HA):Mt("WeakMap"),X5=Bc?Lc(H5):Mt("Set"),Q5=Mt("WeakSet");function la(n){for(var s=bt(n),e=s.length,t=Array(e),i=0;i<e;i++)t[i]=n[s[i]];return t}function eZ(n){for(var s=bt(n),e=s.length,t=Array(e),i=0;i<e;i++)t[i]=[s[i],n[s[i]]];return t}function zA(n){for(var s={},e=bt(n),t=0,i=e.length;t<i;t++)s[n[e[t]]]=e[t];return s}function Fc(n){var s=[];for(var e in n)jt(n[e])&&s.push(e);return s.sort()}function Uc(n,s){return function(e){var t=arguments.length;if(s&&(e=Object(e)),t<2||e==null)return e;for(var i=1;i<t;i++)for(var a=arguments[i],o=n(a),l=o.length,d=0;d<l;d++){var h=o[d];(!s||e[h]===void 0)&&(e[h]=a[h])}return e}}const KA=Uc(fs),fl=Uc(bt),XA=Uc(fs,!0);function tZ(){return function(){}}function QA(n){if(!In(n))return{};if(DA)return DA(n);var s=tZ();s.prototype=n;var e=new s;return s.prototype=null,e}function rZ(n,s){var e=QA(n);return s&&fl(e,s),e}function nZ(n){return In(n)?ni(n)?n.slice():KA({},n):n}function iZ(n,s){return s(n),n}function e1(n){return ni(n)?n:[n]}je.toPath=e1;function ms(n){return je.toPath(n)}function xc(n,s){for(var e=s.length,t=0;t<e;t++){if(n==null)return;n=n[s[t]]}return e?n:void 0}function t1(n,s,e){var t=xc(n,ms(s));return VA(t)?e:t}function aZ(n,s){s=ms(s);for(var e=s.length,t=0;t<e;t++){var i=s[t];if(!An(n,i))return!1;n=n[i]}return!!e}function jc(n){return n}function Ts(n){return n=fl({},n),function(s){return kA(s,n)}}function kc(n){return n=ms(n),function(s){return xc(s,n)}}function vs(n,s,e){if(s===void 0)return n;switch(e??3){case 1:return function(t){return n.call(s,t)};case 3:return function(t,i,a){return n.call(s,t,i,a)};case 4:return function(t,i,a,o){return n.call(s,t,i,a,o)}}return function(){return n.apply(s,arguments)}}function r1(n,s,e){return n==null?jc:jt(n)?vs(n,s,e):In(n)&&!ni(n)?Ts(n):kc(n)}function Zc(n,s){return r1(n,s,1/0)}je.iteratee=Zc;function zt(n,s,e){return je.iteratee!==Zc?je.iteratee(n,s):r1(n,s,e)}function sZ(n,s,e){s=zt(s,e);for(var t=bt(n),i=t.length,a={},o=0;o<i;o++){var l=t[o];a[l]=s(n[l],l,n)}return a}function n1(){}function oZ(n){return n==null?n1:function(s){return t1(n,s)}}function lZ(n,s,e){var t=Array(Math.max(0,n));s=vs(s,e,1);for(var i=0;i<n;i++)t[i]=s(i);return t}function qc(n,s){return s==null&&(s=n,n=0),n+Math.floor(Math.random()*(s-n+1))}const Es=Date.now||function(){return new Date().getTime()};function i1(n){var s=function(a){return n[a]},e="(?:"+bt(n).join("|")+")",t=RegExp(e),i=RegExp(e,"g");return function(a){return a=a==null?"":""+a,t.test(a)?a.replace(i,s):a}}const a1={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},dZ=i1(a1),uZ=zA(a1),cZ=i1(uZ),pZ=je.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var Jc=/(.)^/,hZ={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},yZ=/\\|'|\r|\n|\u2028|\u2029/g;function fZ(n){return"\\"+hZ[n]}var mZ=/^\s*(\w|\$)+\s*$/;function TZ(n,s,e){!s&&e&&(s=e),s=XA({},s,je.templateSettings);var t=RegExp([(s.escape||Jc).source,(s.interpolate||Jc).source,(s.evaluate||Jc).source].join("|")+"|$","g"),i=0,a="__p+='";n.replace(t,function(h,y,f,v,R){return a+=n.slice(i,R).replace(yZ,fZ),i=R+h.length,y?a+=`'+
24
+ LIMIT 10 OFFSET 0;`,f8={id:"find-companies-with-multiple-employees-and-bank-account-search-parent-ref-id",type:r.GenericReference,entityId:ne,version:"1",entityType:r.Project},m8={id:"find-companies-with-multiple-employees-and-bank-account-search-companies-list-output-declaration-parent-ref-id",type:r.GenericReference,entityId:"find-companies-with-multiple-employees-and-bank-account",version:"1",entityType:r.Search},LI={id:"find-companies-with-multiple-employees-and-bank-account-search-companies-list-output-declaration-id",type:r.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:V.FixedReturns,index:0,parent:m8},T8={id:"find-companies-with-multiple-employees-and-bank-account-search-companies-list-output-parent-ref-id",type:r.GenericReference,entityId:"find-companies-with-multiple-employees-and-bank-account",version:"1",entityType:r.Search},v8={id:"find-companies-with-multiple-employees-and-bank-account-search-companies-list-output-id",type:r.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:LI,writesValues:[],index:0,parent:T8},E8={id:"find-companies-with-multiple-employees-and-bank-account",type:r.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:[LI],inputs:[],outputs:[v8],query:y8,successCalls:[],errorCalls:[],error:null,calledByError:[],calledByEntry:[],calledBySuccess:[],x:0,y:0,parent:f8},R8={type:r.GenericReference,id:"employee-mapped-dto-manager-input-map-reads-value-ref-id",version:"1",entityType:r.OutputMap,entityId:bI},g8={type:r.GenericReference,id:"employee-mapped-dto-manager-output-map-parent-ref-id",version:"1",entityType:r.VariableDeclaration,entityId:Nr},GI={id:m9,type:r.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:R8,parent:g8},b8={type:r.GenericReference,id:"employee-mapped-dto-department-input-map-reads-value-ref-id",version:"1",entityType:r.OutputMap,entityId:RI},I8={type:r.GenericReference,id:"employee-mapped-dto-department-output-map-parent-ref-id",version:"1",entityType:r.VariableDeclaration,entityId:Nr},$I={id:f9,type:r.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:b8,parent:I8},A8={type:r.GenericReference,id:"employee-mapped-dto-birth-date-input-map-reads-value-ref-id",version:"1",entityType:r.OutputMap,entityId:EI},D8={type:r.GenericReference,id:"employee-mapped-dto-birth-date-output-map-parent-ref-id",version:"1",entityType:r.VariableDeclaration,entityId:Nr},FI={id:y9,type:r.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:A8,parent:D8},P8={type:r.GenericReference,id:"employee-mapped-dto-id-output-map-reads-value-ref-id",version:"1",entityType:r.OutputMap,entityId:vI},S8={type:r.GenericReference,id:"employee-mapped-dto-id-output-map-parent-ref-id",version:"1",entityType:r.VariableDeclaration,entityId:Nr},UI={id:h9,type:r.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:P8,parent:S8},O8={type:r.GenericReference,id:"employee-mapped-dto-requester-id-output-map-reads-value-ref-id",version:"1",entityType:r.OutputMap,entityId:II},V8={type:r.GenericReference,id:"employee-mapped-dto-requester-id-output-map-parent-ref-id",version:"1",entityType:r.VariableDeclaration,entityId:Nr},xI={id:p9,type:r.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:O8,parent:V8},C8={type:r.GenericReference,id:"manager-variable-id-output-map-parent-ref-id",version:"1",entityType:r.VariableDeclaration,entityId:ku},w8={id:bI,type:r.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:rr.properties[0],defaultValue:null,index:0,writesValues:[GI],parent:C8},B8={type:r.GenericReference,id:"manager-variable-data-type-parent-ref-id",version:"1",entityType:r.VariableDeclaration,entityId:ku},M8={like:!1,inferred:!1,id:"manager-variable-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ur,asType:!1,isList:!1,parent:B8},_8={type:r.GenericReference,id:"manager-variable-reads-value-ref-id",version:"1",entityType:r.OutputMap,entityId:gI},N8={type:r.GenericReference,id:"manager-variable-parent-ref-id",version:"1",entityType:r.Project,entityId:ne},jI={constant:!0,required:!0,id:ku,type:r.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Manager",dataType:M8,description:"A variable holding an inherited manager for testing purposes",defaultValue:null,calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],readsValue:_8,writesValues:[],inputs:[],outputs:[w8],internalCalls:[],parent:N8,x:0,y:0},L8={type:r.GenericReference,id:"random-company-employee-manager-output-map-parent-ref-id",version:"1",entityType:r.VariableDeclaration,entityId:Ki},G8={id:gI,type:r.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:ur.properties[2],index:3,writesValues:[jI],parent:L8},$8={type:r.GenericReference,id:"random-company-employee-department-output-map-parent-ref-id",version:"1",entityType:r.VariableDeclaration,entityId:Ki},F8={id:RI,type:r.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:ur.properties[0],index:2,writesValues:[$I],parent:$8},U8={type:r.GenericReference,id:"random-company-employee-birth-date-output-map-parent-ref-id",version:"1",entityType:r.VariableDeclaration,entityId:Ki},x8={id:EI,type:r.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:Gt.properties[1],index:1,writesValues:[FI],parent:U8},j8={type:r.GenericReference,id:"random-company-employee-id-output-map-parent-ref-id",version:"1",entityType:r.VariableDeclaration,entityId:Ki},k8={id:vI,type:r.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:rr.properties[0],index:0,writesValues:[UI],parent:j8},Z8={type:r.GenericReference,id:"random-company-employee-test-variable-data-type-parent-ref-id",version:"1",entityType:r.VariableDeclaration,entityId:Ki},q8={like:!1,inferred:!1,id:"random-company-employee-test-variable-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ur,asType:!1,isList:!1,parent:Z8},J8={type:r.GenericReference,id:"random-company-employee-test-variable-parent-ref-id",version:"1",entityType:r.Project,entityId:ne},W8={constant:!0,required:!0,id:Ki,type:r.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Company employee",dataType:q8,description:"A variable holding a random company employee for testing purposes",defaultValue:null,calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],readsValue:null,writesValues:[],inputs:[],outputs:[k8,x8,F8,G8],internalCalls:[],parent:J8,x:0,y:0},Y8={type:r.GenericReference,id:"employee-mapped-dto-variable-instance-now-timestamp-input-map-default-value-parent-ref-id",version:"1",entityType:r.InputMap,entityId:AI},H8={type:r.LiteralValue,id:"employee-mapped-dto-variable-instance-now-timestamp-input-map-default-value-id",name:C.Date,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,valueAsType:null,value:null,autogeneration:{type:st.CurrentDateAndTime,rangeStart:null,rangeEnd:null},parent:Y8},z8={type:r.GenericReference,id:"employee-mapped-dto-variable-instance-now-timestamp-input-map-parent-ref-id",version:"1",entityType:r.VariableInstance,entityId:Yn},K8={id:AI,type:r.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:H8,index:5,readsValue:null,parent:z8},X8={type:r.GenericReference,id:"employee-mapped-dto-variable-instance-decl-ref-id",version:"1",entityType:r.VariableDeclaration,entityId:Nr},Q8={type:r.GenericReference,id:"employee-mapped-dto-variable-instance-called-by-success-ref-id",version:"1",entityType:r.VariableDeclaration,entityId:Nr},ek={type:r.GenericReference,id:"employee-mapped-dto-variable-instance-parent-ref-id",version:"1",entityType:r.Project,entityId:ne},tk={id:Yn,type:r.VariableInstance,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:X8,calledByError:[],calledByEntry:[],calledBySuccess:[Q8],successCalls:[qu,BI,DI],errorCalls:[],readsValue:null,writesValues:[wI],inputs:[K8],outputs:[],internalCalls:[],parent:ek,x:0,y:0},rk={type:r.GenericReference,id:"employee-mapped-dto-variable-parent-ref-id",version:"1",entityType:r.Project,entityId:ne},nk={constant:!0,required:!0,id:Nr,type:r.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:[qu,tk],errorCalls:[],readsValue:null,writesValues:[OI],inputs:[xI,UI,FI,$I,GI],outputs:[],internalCalls:[],parent:rk,x:0,y:0},ik={type:r.GenericReference,id:"0e63e617-f9d3-42e8-bde0-1bb0b1df7034",version:"1",entityType:r.VariableDeclaration,entityId:wR},ak={like:!1,inferred:!1,id:"e75645ce-d3df-4f07-a897-ae9ef4d917fd",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,entity:su,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,asType:!1,isList:!1,parent:ik},sk={type:r.GenericReference,id:"e92a8ff5-3fef-4e0c-8d8f-92c930b2890b",version:"1",entityType:r.Project,entityId:ne},kI={constant:!0,required:!0,id:wR,type:r.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:ak,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],x:0,y:0,readsValue:null,writesValues:[],internalCalls:[],parent:sk},ok={type:r.GenericReference,id:"manager-variable-id-output-map-parent-ref-id",version:"1",entityType:r.VariableInstance,entityId:TI},lk={id:II,type:r.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:rr.properties[0],index:0,writesValues:[xI],parent:ok},dk={type:r.GenericReference,id:"global-user-instance-parent-ref-id",version:"1",entityType:r.Project,entityId:ne},uk={id:TI,type:r.VariableInstance,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:kI,calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],readsValue:null,writesValues:[],inputs:[],outputs:[lk],internalCalls:[],parent:dk,x:0,y:0},ck={type:r.GenericReference,id:"is-test-environment-variable-dcl-datatype-parent-ref-id",version:"1",entityType:r.VariableDeclaration,entityId:"is-test-environment-variable-dcl-id"},pk={type:r.GenericReference,id:"is-test-environment-variable-dcl-datatype-default-value-parent-ref-id",version:"1",entityType:r.VariableDeclaration,entityId:"is-test-environment-variable-dcl-id"},hk={like:!1,inferred:!1,id:"is-test-environment-variable-dcl-datatype-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,entity:kr,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,asType:!1,isList:!1,parent:ck},yk={type:r.GenericReference,id:"is-test-environment-variable-dcl-main-project-ref-id",version:"1",entityType:r.Project,entityId:ne},ZI={constant:!0,required:!0,id:"is-test-environment-variable-dcl-id",type:r.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:C.Boolean,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:null,type:r.LiteralValue,autogeneration:{type:st.Random,rangeStart:null,rangeEnd:null},valueAsType:null,parent:pk},dataType:hk,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],x:0,y:0,readsValue:null,writesValues:[],internalCalls:[],parent:yk},fk={type:r.GenericReference,id:"is-test-environment-variable-instance-parent-ref-id",version:"1",entityType:r.Project,entityId:ne},mk={id:"is-test-environment-variable-instance-id",type:r.VariableInstance,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:ZI,calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],readsValue:null,writesValues:[],inputs:[],outputs:[],internalCalls:[],parent:fk,x:0,y:0},qI={type:r.Project,id:ne,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:[a9],entities:[au,rr,su,Gt,aL,ur,wo,HR,zR,Zi,G_,cr,BN,iu,tV,kN,N_],functions:[DU,gg,Pu,MU,jU,Lg,Su,cu,e9,sg,Cx],events:[$L],variableDeclarations:[ZI,kI,Bu,W8,jI,nk],variableInstances:[mk,uk],conditions:[],operations:[Yi],functionCalls:[L2,Z4],loops:[h8,qu,BI,n8,DI],searches:[E8]};var JI={exports:{}};(function(n,s){(function(e,t){n.exports=t()})(DS,function(){var e=1e3,t=6e4,i=36e5,a="millisecond",o="second",l="minute",d="hour",h="day",y="week",f="month",v="quarter",R="year",I="date",D="Invalid Date",A=/^(\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,H={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(de){var Y=["th","st","nd","rd"],j=de%100;return"["+de+(Y[(j-20)%10]||Y[j]||Y[0])+"]"}},W=function(de,Y,j){var ee=String(de);return!ee||ee.length>=Y?de:""+Array(Y+1-ee.length).join(j)+de},_={s:W,z:function(de){var Y=-de.utcOffset(),j=Math.abs(Y),ee=Math.floor(j/60),J=j%60;return(Y<=0?"+":"-")+W(ee,2,"0")+":"+W(J,2,"0")},m:function de(Y,j){if(Y.date()<j.date())return-de(j,Y);var ee=12*(j.year()-Y.year())+(j.month()-Y.month()),J=Y.clone().add(ee,f),he=j-J<0,ye=Y.clone().add(ee+(he?-1:1),f);return+(-(ee+(j-J)/(he?J-ye:ye-J))||0)},a:function(de){return de<0?Math.ceil(de)||0:Math.floor(de)},p:function(de){return{M:f,y:R,w:y,d:h,D:I,h:d,m:l,s:o,ms:a,Q:v}[de]||String(de||"").toLowerCase().replace(/s$/,"")},u:function(de){return de===void 0}},Q="en",se={};se[Q]=H;var ht="$isDayjsObject",Rt=function(de){return de instanceof Wl||!(!de||!de[ht])},fr=function de(Y,j,ee){var J;if(!Y)return Q;if(typeof Y=="string"){var he=Y.toLowerCase();se[he]&&(J=he),j&&(se[he]=j,J=he);var ye=Y.split("-");if(!J&&ye.length>1)return de(ye[0])}else{var rt=Y.name;se[rt]=Y,J=rt}return!ee&&J&&(Q=J),J||!ee&&Q},ct=function(de,Y){if(Rt(de))return de.clone();var j=typeof Y=="object"?Y:{};return j.date=de,j.args=arguments,new Wl(j)},Ye=_;Ye.l=fr,Ye.i=Rt,Ye.w=function(de,Y){return ct(de,{locale:Y.$L,utc:Y.$u,x:Y.$x,$offset:Y.$offset})};var Wl=function(){function de(j){this.$L=fr(j.locale,null,!0),this.parse(j),this.$x=this.$x||j.x||{},this[ht]=!0}var Y=de.prototype;return Y.parse=function(j){this.$d=function(ee){var J=ee.date,he=ee.utc;if(J===null)return new Date(NaN);if(Ye.u(J))return new Date;if(J instanceof Date)return new Date(J);if(typeof J=="string"&&!/Z$/i.test(J)){var ye=J.match(A);if(ye){var rt=ye[2]-1||0,mt=(ye[7]||"0").substring(0,3);return he?new Date(Date.UTC(ye[1],rt,ye[3]||1,ye[4]||0,ye[5]||0,ye[6]||0,mt)):new Date(ye[1],rt,ye[3]||1,ye[4]||0,ye[5]||0,ye[6]||0,mt)}}return new Date(J)}(j),this.init()},Y.init=function(){var j=this.$d;this.$y=j.getFullYear(),this.$M=j.getMonth(),this.$D=j.getDate(),this.$W=j.getDay(),this.$H=j.getHours(),this.$m=j.getMinutes(),this.$s=j.getSeconds(),this.$ms=j.getMilliseconds()},Y.$utils=function(){return Ye},Y.isValid=function(){return this.$d.toString()!==D},Y.isSame=function(j,ee){var J=ct(j);return this.startOf(ee)<=J&&J<=this.endOf(ee)},Y.isAfter=function(j,ee){return ct(j)<this.startOf(ee)},Y.isBefore=function(j,ee){return this.endOf(ee)<ct(j)},Y.$g=function(j,ee,J){return Ye.u(j)?this[ee]:this.set(J,j)},Y.unix=function(){return Math.floor(this.valueOf()/1e3)},Y.valueOf=function(){return this.$d.getTime()},Y.startOf=function(j,ee){var J=this,he=!!Ye.u(ee)||ee,ye=Ye.p(j),rt=function(Ai,Qt){var wn=Ye.w(J.$u?Date.UTC(J.$y,Qt,Ai):new Date(J.$y,Qt,Ai),J);return he?wn:wn.endOf(h)},mt=function(Ai,Qt){return Ye.w(J.toDate()[Ai].apply(J.toDate("s"),(he?[0,0,0,0]:[23,59,59,999]).slice(Qt)),J)},At=this.$W,_t=this.$M,mr=this.$D,va="set"+(this.$u?"UTC":"");switch(ye){case R:return he?rt(1,0):rt(31,11);case f:return he?rt(1,_t):rt(0,_t+1);case y:var Ii=this.$locale().weekStart||0,Os=(At<Ii?At+7:At)-Ii;return rt(he?mr-Os:mr+(6-Os),_t);case h:case I:return mt(va+"Hours",0);case d:return mt(va+"Minutes",1);case l:return mt(va+"Seconds",2);case o:return mt(va+"Milliseconds",3);default:return this.clone()}},Y.endOf=function(j){return this.startOf(j,!1)},Y.$set=function(j,ee){var J,he=Ye.p(j),ye="set"+(this.$u?"UTC":""),rt=(J={},J[h]=ye+"Date",J[I]=ye+"Date",J[f]=ye+"Month",J[R]=ye+"FullYear",J[d]=ye+"Hours",J[l]=ye+"Minutes",J[o]=ye+"Seconds",J[a]=ye+"Milliseconds",J)[he],mt=he===h?this.$D+(ee-this.$W):ee;if(he===f||he===R){var At=this.clone().set(I,1);At.$d[rt](mt),At.init(),this.$d=At.set(I,Math.min(this.$D,At.daysInMonth())).$d}else rt&&this.$d[rt](mt);return this.init(),this},Y.set=function(j,ee){return this.clone().$set(j,ee)},Y.get=function(j){return this[Ye.p(j)]()},Y.add=function(j,ee){var J,he=this;j=Number(j);var ye=Ye.p(ee),rt=function(_t){var mr=ct(he);return Ye.w(mr.date(mr.date()+Math.round(_t*j)),he)};if(ye===f)return this.set(f,this.$M+j);if(ye===R)return this.set(R,this.$y+j);if(ye===h)return rt(1);if(ye===y)return rt(7);var mt=(J={},J[l]=t,J[d]=i,J[o]=e,J)[ye]||1,At=this.$d.getTime()+j*mt;return Ye.w(At,this)},Y.subtract=function(j,ee){return this.add(-1*j,ee)},Y.format=function(j){var ee=this,J=this.$locale();if(!this.isValid())return J.invalidDate||D;var he=j||"YYYY-MM-DDTHH:mm:ssZ",ye=Ye.z(this),rt=this.$H,mt=this.$m,At=this.$M,_t=J.weekdays,mr=J.months,va=J.meridiem,Ii=function(Qt,wn,Vs,Yl){return Qt&&(Qt[wn]||Qt(ee,he))||Vs[wn].slice(0,Yl)},Os=function(Qt){return Ye.s(rt%12||12,Qt,"0")},Ai=va||function(Qt,wn,Vs){var Yl=Qt<12?"AM":"PM";return Vs?Yl.toLowerCase():Yl};return he.replace(M,function(Qt,wn){return wn||function(Vs){switch(Vs){case"YY":return String(ee.$y).slice(-2);case"YYYY":return Ye.s(ee.$y,4,"0");case"M":return At+1;case"MM":return Ye.s(At+1,2,"0");case"MMM":return Ii(J.monthsShort,At,mr,3);case"MMMM":return Ii(mr,At);case"D":return ee.$D;case"DD":return Ye.s(ee.$D,2,"0");case"d":return String(ee.$W);case"dd":return Ii(J.weekdaysMin,ee.$W,_t,2);case"ddd":return Ii(J.weekdaysShort,ee.$W,_t,3);case"dddd":return _t[ee.$W];case"H":return String(rt);case"HH":return Ye.s(rt,2,"0");case"h":return Os(1);case"hh":return Os(2);case"a":return Ai(rt,mt,!0);case"A":return Ai(rt,mt,!1);case"m":return String(mt);case"mm":return Ye.s(mt,2,"0");case"s":return String(ee.$s);case"ss":return Ye.s(ee.$s,2,"0");case"SSS":return Ye.s(ee.$ms,3,"0");case"Z":return ye}return null}(Qt)||ye.replace(":","")})},Y.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},Y.diff=function(j,ee,J){var he,ye=this,rt=Ye.p(ee),mt=ct(j),At=(mt.utcOffset()-this.utcOffset())*t,_t=this-mt,mr=function(){return Ye.m(ye,mt)};switch(rt){case R:he=mr()/12;break;case f:he=mr();break;case v:he=mr()/3;break;case y:he=(_t-At)/6048e5;break;case h:he=(_t-At)/864e5;break;case d:he=_t/i;break;case l:he=_t/t;break;case o:he=_t/e;break;default:he=_t}return J?he:Ye.a(he)},Y.daysInMonth=function(){return this.endOf(f).$D},Y.$locale=function(){return se[this.$L]},Y.locale=function(j,ee){if(!j)return this.$L;var J=this.clone(),he=fr(j,ee,!0);return he&&(J.$L=he),J},Y.clone=function(){return Ye.w(this.$d,this)},Y.toDate=function(){return new Date(this.valueOf())},Y.toJSON=function(){return this.isValid()?this.toISOString():null},Y.toISOString=function(){return this.$d.toISOString()},Y.toString=function(){return this.$d.toUTCString()},de}(),pP=Wl.prototype;return ct.prototype=pP,[["$ms",a],["$s",o],["$m",l],["$H",d],["$W",h],["$M",f],["$y",R],["$D",I]].forEach(function(de){pP[de[1]]=function(Y){return this.$g(Y,de[0],de[1])}}),ct.extend=function(de,Y){return de.$i||(de(Y,Wl,ct),de.$i=!0),ct},ct.locale=fr,ct.isDayjs=Rt,ct.unix=function(de){return ct(1e3*de)},ct.en=se[Q],ct.Ls=se,ct.p={},ct})})(JI);var Tk=JI.exports;const $=lR(Tk);var E=(n=>(n.Error="error",n.Warning="warning",n))(E||{}),w=(n=>(n.InvalidObjectStructure="invalid-object-structure",n.NameNotUniqueInScope="name-not-unique-in-scope",n.EmptyName="empty-name",n.MissingCaller="missing-caller",n.PropertyOverwrite="property-overwrite",n.MethodOverwrite="method-overwrite",n.NoOverlapWithImplementedSignature="no-overlap-with-implemented-signature",n.ReaderWriterIncompatibleDataType="reader-writer-incompatible-data-type",n.UnreachableEntity="unreachable-entity",n.InternalCallParentMissingDataType="internal-call-parent-missing-data-type",n.InternalCallParentDeclarationEntityInvalidType="internal-call-parent-declaration-entity-invalid-type",n.InternalCallDeclarationNotFoundInParentDatatypeEntity="internal-call-declaration-not-found-in-parent-datatype-entity",n.InternalCallDeclarationIsNotFunctionDeclaration="internal-call-declaration-is-not-function-declaration",n.InternalCallDeclarationNotInParentDatatypeEntity="internal-call-declaration-not-in-parent-datatype-entity",n))(w||{}),T=(n=>(n.RootReference="root-reference",n.ReferencedEntityNotFound="referenced-entity-not-found",n.EntityIdNotUnique="entity-id-not-unique",n.BuiltInEntityGenerated="built-in-entity-generated",n.BuiltInEntityUpdated="built-in-entity-updated",n.BuiltInEntityDeleted="built-in-entity-deleted",n.UnknownEntityType="unknown-entity-type",n.MissingTypeProperty="missing-type-property",n.MissingIdProperty="missing-id-property",n.BuiltInEntityParent="built-in-entity-parent",n.InvalidBuiltInEntityReference="invalid-built-in-entity-reference",n.RecommendedImplementAbstractEntityAction="recommended-implement-abstract-entity-action",n.RecommendedImplementOperationAction="recommended-implement-operation-action",n.RecommendedImplementFunctionCallAction="recommended-implement-function-call-action",n.RecommendedImplementVariableDeclarationAction="recommended-implement-variable-declaration-action",n.RecommendedImplementVariableInstanceAction="recommended-implement-variable-instance-action",n.RecommendedImplementConditionAction="recommended-implement-condition-action",n.InvalidReferenceObjectStructure="invalid-reference-object-structure",n.ContainsSingleButShouldBeReferenceList="contains-single-but-should-be-reference-list",n.ContainsListButShouldReferenceSingle="contains-list-but-should-reference-single",n.InvalidParentReference="invalid-parent-reference",n.InvalidImplementsReference="invalid-implements-reference",n.InvalidExtendsReference="invalid-extends-reference",n.InvalidGenerationActionPayload="invalid-generation-action-payload",n.InvalidReference="invalid-reference",n.InvalidInternalCallParentRelation="invalid-internal-call-parent-relation",n.InvalidUpdateEntityOperation="invalid-update-entity-operation",n.NewEntityWouldOverriteExisting="new-entity-would-overrite-existing",n.InvalidDownstreamPropertyOverride="invalid-downstream-property-override",n.UnrecognizedProperty="unrecognized-property",n.SelfReference="self-reference",n.DuplicateReference="duplicate-reference",n.CallerWithIncompatibleScope="caller-with-incompatible-scope",n.InvalidFunctionDeclarationForFunctionCall="invalid-function-declaration-for-function-call",n.InvalidInputMapDeclaration="invalid-input-map-declaration",n.InvalidActionDescriptorForOperation="invalid-action-descriptor-for-operation",n.InvalidActionDescriptorForCondition="invalid-action-descriptor-for-condition",n.InvalidActionDescriptorForLoop="invalid-action-descriptor-for-loop",n.InvalidInmutablePropertyOverride="invalid-inmutable-property-override",n.OutputOverwrite="output-overwrite",n.InputOverwrite="input-overwrite",n.IncompatibleScope="incompatible-scope",n.InvalidParentUpdate="invalid-parent-update",n.NonInteractiveEntityReferenced="non-interactive-entity-referenced",n.InvalidParentRelationType="invalid-parent-relation-type",n))(T||{}),U=(n=>(n.NoPrimaryKeyProperty="no-primary-key-property",n.ScopeWithoutLogic="scope-without-logic",n.ExtendingAbstractEntity="extending-abstract-entity",n.ImplementingNonAbstractEntity="implementing-non-abstract-entity",n.AbstractEntityWithNonAbstractMethods="abstract-entity-with-non-abstract-methods",n.AbstractEntityWithNonAbstractProperties="abstract-entity-with-non-abstract-properties",n.StaticEntityWithNonStaticProperties="static-entity-with-non-static-properties",n.NonStaticPropertyInStaticEntity="non-static-property-in-static-entity",n.AbstractPropertyInNonAbstractEntity="abstract-property-in-non-abstract-entity",n.AbstractMethodInNonAbstractEntity="abstract-method-in-non-abstract-entity",n.IncorrectEntityImplementation="incorrect-entity-implementation",n.IncorrectMethodImplementation="incorrect-method-implementation",n.IncorrectPropertyImplementation="incorrect-property-implementation",n.PropertyImplementsNonAbstact="property-implements-non-abstract",n.NonStaticPropertyImplementsStatic="non-static-property-implements-static",n.StaticPropertyImplementsNonStatic="static-property-implements-non-static",n.PropertyImplementsIncompatibleType="property-implements-incompatible-type",n.MissingPropertyImplementation="missing-property-implementation",n.MissingMethodImplementation="missing-method-implementation",n.NoProperties="no-properties",n.ReadingFromIncompatibleType="reading-from-incompatible-type",n.WritingToIncompatibleType="writing-to-incompatible-type",n.InvalidPropertiesCombination="invalid-properties-combination",n.DisconnectedCallableEntity="disconnected-callable-entity",n.VariableReadsValueAndInternalCall="variable-reads-value-and-internal-call",n.VariableWritesValuesAndInternalCall="variable-writes-values-and-internal-call",n.VariableHasInputsAndInternalCall="variable-has-inputs-and-internal-calls",n.VariableHasOutputsAndInternalCall="variable-has-outputs-and-internal-call",n.VariableIsCalledAndHasInternalCall="variable-is-called-and-has-internal-call",n.VariableCallsOthersAndHasInternalCall="variable-calls-others-and-has-internal-call",n))(U||{});class g{constructor(s){u(this,"id");u(this,"message");u(this,"issue");u(this,"severity");u(this,"code");this.id=s.id,this.message=s.message,this.issue=s.issue,this.severity=s.severity,this.code=s.code}toEntityError(s){return this.code in w?new Hn({id:this.id,message:this.message,issue:this.issue,severity:this.severity,code:this.code,entity:s}):null}}class Hn{constructor(s){u(this,"id");u(this,"message");u(this,"issue");u(this,"severity");u(this,"code");u(this,"entity");this.id=s.id,this.message=s.message,this.issue=s.issue,this.severity=s.severity,this.code=s.code,this.entity=s.entity}clone(){return new Hn({id:this.id,message:this.message,issue:this.issue,severity:this.severity,code:this.code,entity:this.entity})}}function vk(n){const s=new Set;return n.filter(e=>s.has(e.id)?!1:(s.add(e.id),!0))}function le(n){const s=n.entity.errors.find(t=>t.id===n.id);return s?{new:!1,error:s}:{new:!0,error:new Hn(n)}}function Ek(n,s){const e=new Map;return n.forEach(t=>{e.set(t.id,t)}),s.forEach(t=>{e.set(t.id,t)}),Array.from(e.values())}function xe(n,s){const e=[];return s.forEach(t=>{const i=n.find(a=>a.id===t.id);i?e.push(i):e.push(t)}),e}const rs=p.union([p.string(),p.number(),p.boolean(),p.date()]),WI=p.enum([st.CurrentDateAndTime,st.Random,st.Unique]),qo=p.object({type:WI,rangeStart:rs.nullable(),rangeEnd:rs.nullable()}),ns=qo.extend({type:p.literal(st.Random),rangeStart:rs,rangeEnd:rs}),zu=qo.extend({type:p.literal(st.Unique),rangeStart:p.null(),rangeEnd:p.null()}),YI=qo.extend({type:p.literal(st.CurrentDateAndTime),rangeStart:p.null(),rangeEnd:p.null()}),Jo=ns.extend({rangeStart:p.number().nullable(),rangeEnd:p.number().nullable()}),HI=Jo.extend({rangeStart:p.number(),rangeEnd:p.null()}),zI=Jo.extend({rangeStart:p.null(),rangeEnd:p.number()}),KI=Jo.extend({rangeStart:p.number(),rangeEnd:p.number()}),Wo=ns.extend({rangeStart:p.number().nullable(),rangeEnd:p.number().nullable()}),XI=Wo.extend({rangeStart:p.number(),rangeEnd:p.null()}),QI=Wo.extend({rangeStart:p.null(),rangeEnd:p.number()}),eA=Wo.extend({rangeStart:p.number(),rangeEnd:p.number()}),Yo=ns.extend({rangeStart:p.date().nullable(),rangeEnd:p.date().nullable()}),tA=Yo.extend({rangeStart:p.date(),rangeEnd:p.null()}),rA=Yo.extend({rangeStart:p.null(),rangeEnd:p.date()}),nA=Yo.extend({rangeStart:p.date(),rangeEnd:p.date()}),Ku=ns.extend({rangeStart:p.null(),rangeEnd:p.null()}),Xu=p.union([XI,QI,eA]),Qu=p.union([HI,zI,KI]),ec=p.union([tA,rA,nA,YI]),tc=p.union([Xu,Qu,ec,zu,Ku]);function is(){return p.union([p.object({type:p.literal(r.ValueDescriptor)}),p.record(p.string(),p.any())])}function iA(){return p.object({id:p.string(),type:p.literal(r.GenericReference),entityId:p.string(),entityType:p.literal(r.ValueDescriptor)})}function rc(){return p.object({id:p.string(),type:p.literal(r.ValueDescriptor),name:p.string(),required:p.boolean()})}function Rk(){return rc().merge(p.object({version:p.number(),index:p.number()}))}function gk(){return rc().merge(p.object({}))}function bk(){return p.object({dataType:Qn(),parent:Kn()})}function Ik(){return Rk().merge(bk())}function Ho(){return p.union([p.object({type:p.literal(r.PrimitiveEntity)}),p.record(p.string(),p.any())])}function zo(){return p.object({id:p.string(),type:p.literal(r.GenericReference),entityId:p.string(),entityType:p.literal(r.PrimitiveEntity)})}function Ko(){return p.object({id:p.string(),type:p.literal(r.PrimitiveEntity),name:p.string(),description:p.string().nullable(),static:p.boolean(),abstract:p.boolean()})}function Ak(){return Ko().merge(p.object({version:p.number()}))}function Dk(){return Ko().merge(p.object({}))}function Pk(){return p.object({properties:p.array(zn()),methods:p.array(ir()),abstractMethods:p.array(Lr()),extends:p.array(p.union([Ho(),Xi()]))})}function Sk(){return Ak().merge(Pk())}function zn(){return p.union([p.object({type:p.literal(r.Property)}),p.record(p.string(),p.any())])}function aA(){return p.object({id:p.string(),type:p.literal(r.GenericReference),entityId:p.string(),entityType:p.literal(r.Property)})}function nc(){return p.object({id:p.string(),type:p.literal(r.Property),name:p.string(),description:p.string().nullable(),private:p.boolean(),static:p.boolean(),required:p.boolean(),abstract:p.boolean()})}function Ok(){return nc().merge(p.object({version:p.number(),index:p.number()}))}function Vk(){return nc().merge(p.object({}))}function Ck(){return p.object({dataType:Qn(),implements:zn().nullable(),parent:p.union([ri(),zo(),Xo()])})}function wk(){return Ok().merge(Ck())}function Bk(){return p.enum([k.CRON_JOB,k.EXECUTION,k.HTTP_ENDPOINT,k.PERSISTED_ENTITY,k.RELATIONAL_DATABASE])}function Xi(){return p.union([p.object({type:p.literal(r.BuiltInBaseEntity)}),p.record(p.string(),p.any())])}function Xo(){return p.object({id:p.string(),type:p.literal(r.GenericReference),entityId:p.string(),entityType:p.literal(r.BuiltInBaseEntity)})}function ic(){return p.object({id:p.string(),version:p.number(),type:p.literal(r.BuiltInBaseEntity),name:Bk(),description:p.string().nullable(),abstract:p.boolean(),static:p.boolean()})}function Mk(){return ic()}function _k(){return ic().merge(p.object({}))}function Nk(){return p.object({properties:p.array(zn()),methods:p.array(ir()),abstractMethods:p.array(Lr()),extends:p.array(p.union([Xi(),Ho()]))})}function Lk(){return Mk().merge(Nk())}function Lr(){return p.union([p.object({type:p.literal(r.ActionDescriptor)}),p.record(p.string(),p.any())])}function Kn(){return p.object({id:p.string(),type:p.literal(r.GenericReference),entityId:p.string(),entityType:p.literal(r.ActionDescriptor)})}function Qo(){return p.object({id:p.string(),type:p.literal(r.ActionDescriptor),name:p.string(),description:p.string().nullable()})}function Gk(){return Qo().merge(p.object({version:p.number()}))}function $k(){return Qo().merge(p.object({}))}function Fk(){return p.object({inputs:p.array(is()),outputs:p.array(is()),parent:p.union([Wt(),ri(),Xo(),zo()]).nullable()})}function sA(){return Gk().merge(Fk())}function Qi(){return p.union([p.object({type:p.literal(r.Loop)}),p.record(p.string(),p.any())])}function Gr(){return p.object({id:p.string(),type:p.literal(r.GenericReference),entityId:p.string(),entityType:p.literal(r.Loop)})}function oA(){return p.object({id:p.string(),type:p.literal(r.Loop)})}function Uk(){return oA().merge(p.object({version:p.number(),x:p.number(),y:p.number()}))}function xk(){return oA().merge(p.object({declaration:p.union([p.string(),ir()])}))}function jk(){return p.object({calledBySuccess:p.array(We()),calledByError:p.array(We()),calledByEntry:p.array(Tt()),declaration:Lr(),inputs:p.array(gr()),outputs:p.array(Ut()),outputsDeclarations:p.array(is()),successCalls:p.array(Et()),errorCalls:p.array(Et()),error:Ut(),body:ir(),parent:p.union([rn(),Wt()]),breakStatements:p.array(na()),continueStatements:p.array(ea())})}function kk(){return Uk().merge(jk())}function ea(){return p.union([p.object({type:p.literal(r.ContinueStatement)}),p.record(p.string(),p.any())])}function ta(){return p.object({id:p.string(),type:p.literal(r.GenericReference),entityId:p.string(),entityType:p.literal(r.ContinueStatement)})}function ac(){return p.object({id:p.string(),type:p.literal(r.ContinueStatement)})}function Zk(){return ac().merge(p.object({version:p.number(),x:p.number(),y:p.number()}))}function qk(){return ac().merge(p.object({}))}function Jk(){return p.object({calledBySuccess:p.array(We()),calledByError:p.array(We()),calledByEntry:p.array(Tt()),outputs:p.array(Qr()),throws:p.optional(Qr()),parent:Gr()})}function Wk(){return Zk().merge(Jk())}function Xn(){return p.union([p.object({type:p.literal(r.ReturnStatement)}),p.record(p.string(),p.any())])}function ra(){return p.object({id:p.string(),type:p.literal(r.GenericReference),entityId:p.string(),entityType:p.literal(r.ReturnStatement)})}function sc(){return p.object({id:p.string(),type:p.literal(r.ReturnStatement)})}function Yk(){return sc().merge(p.object({version:p.number(),x:p.number(),y:p.number()}))}function Hk(){return sc().merge(p.object({}))}function zk(){return p.object({calledBySuccess:p.array(We()),calledByError:p.array(We()),calledByEntry:p.array(Tt()),outputs:p.array(Qr()),throws:p.optional(Qr()),parent:rn()})}function Kk(){return Yk().merge(zk())}function Qr(){return p.union([p.object({type:p.literal(r.ReturnDeclaration)}),p.record(p.string(),p.any())])}function lA(){return p.object({id:p.string(),type:p.literal(r.GenericReference),entityId:p.string(),entityType:p.literal(r.ReturnDeclaration)})}function oc(){return p.object({id:p.string(),type:p.literal(r.ReturnDeclaration),name:p.string(),description:p.string().nullable(),isError:p.boolean()})}function Xk(){return oc().merge(p.object({version:p.number(),index:p.number()}))}function Qk(){return oc().merge(p.object({}))}function e6(){return p.object({dataType:Qn().nullable(),readsValue:us().nullable(),parent:p.union([ra(),Kn(),en(),ta()])})}function t6(){return Xk().merge(e6())}function na(){return p.union([p.object({type:p.literal(r.BreakStatement)}),p.record(p.string(),p.any())])}function en(){return p.object({id:p.string(),type:p.literal(r.GenericReference),entityId:p.string(),entityType:p.literal(r.BreakStatement)})}function lc(){return p.object({id:p.string(),type:p.literal(r.BreakStatement)})}function r6(){return lc().merge(p.object({version:p.number(),x:p.number(),y:p.number()}))}function n6(){return lc().merge(p.object({}))}function i6(){return p.object({calledBySuccess:p.array(We()),calledByError:p.array(We()),calledByEntry:p.array(Tt()),outputs:p.array(Qr()),throws:p.optional(Qr()),parent:Gr()})}function a6(){return r6().merge(i6())}function Ut(){return p.union([p.object({type:p.literal(r.OutputMap)}),p.record(p.string(),p.any())])}function dc(){return p.object({id:p.string(),type:p.literal(r.GenericReference),entityId:p.string(),entityType:p.literal(r.OutputMap)})}function uc(){return p.object({id:p.string(),type:p.literal(r.OutputMap)})}function s6(){return uc().merge(p.object({version:p.number(),index:p.number()}))}function o6(){return uc().merge(p.object({}))}function l6(){return p.object({writesValues:p.array(tn()),declaration:p.union([Qr(),zn()]),parent:p.union([We(),Gr(),en()])})}function d6(){return s6().merge(l6())}function ia(){return p.union([p.object({type:p.literal(r.FunctionCall)}),p.record(p.string(),p.any())])}function as(){return p.object({id:p.string(),type:p.literal(r.GenericReference),entityId:p.string(),entityType:p.literal(r.FunctionCall)})}function cc(){return p.object({id:p.string(),type:p.literal(r.FunctionCall)})}function u6(){return cc().merge(p.object({version:p.number(),x:p.number(),y:p.number()}))}function c6(){return cc().merge(p.object({}))}function p6(){return p.object({successCalls:p.array(Et()),errorCalls:p.array(Et()),calledBySuccess:p.array(We()),calledByError:p.array(We()),calledByEntry:p.array(Tt()),writesValues:p.array(tn()),declaration:ir(),inputs:p.array(gr()),outputs:p.array(Ut()),error:p.optional(Ut()),parent:p.union([rn(),Wt()])})}function h6(){return u6().merge(p6())}function y6(){return p.enum([nt.Equal,nt.NotEqual,nt.MoreThan,nt.MoreThanOrEqual,nt.LessThan,nt.LessThanOrEqual,nt.And,nt.Or,lr.Empty,lr.NotEmpty])}function ss(){return p.union([p.object({type:p.literal(r.Condition)}),p.record(p.string(),p.any())])}function el(){return p.object({id:p.string(),type:p.literal(r.GenericReference),entityId:p.string(),entityType:p.literal(r.Condition)})}function pc(){return p.object({id:p.string(),type:p.literal(r.Condition)})}function f6(){return pc().merge(p.object({version:p.number(),x:p.number(),y:p.number()}))}function m6(){return pc().merge(p.object({}))}function T6(){return p.object({successCalls:p.array(Et()),errorCalls:p.array(Et()),calledBySuccess:p.array(We()),calledByError:p.array(We()),calledByEntry:p.array(Tt()),leftValue:gr(),rightValue:gr().nullable(),operator:y6(),parent:p.union([rn(),Wt()])})}function v6(){return f6().merge(T6())}function os(){return p.union([p.object({type:p.literal(r.Search)}),p.record(p.string(),p.any())])}function ls(){return p.object({id:p.string(),type:p.literal(r.GenericReference),entityId:p.string(),entityType:p.literal(r.Search)})}function hc(){return p.object({id:p.string(),type:p.literal(r.Search),name:p.string(),query:p.any(),description:p.string().nullable()})}function E6(){return hc().merge(p.object({version:p.number(),x:p.number(),y:p.number()}))}function R6(){return hc().merge(p.object({}))}function g6(){return p.object({successCalls:p.array(Et()),errorCalls:p.array(Et()),calledBySuccess:p.array(We()),calledByError:p.array(We()),calledByEntry:p.array(Tt()),inputsDeclarations:p.array(ti()),inputs:p.array(gr()),outputsDeclarations:p.array(is()),outputs:p.array(Ut()),parent:p.union([rn(),Wt()]),error:Ut().nullable()})}function b6(){return E6().merge(g6())}function ds(){return p.union([p.object({type:p.literal(r.InternalCall)}),p.record(p.string(),p.any())])}function yc(){return p.object({id:p.string(),type:p.literal(r.GenericReference),entityId:p.string(),entityType:p.literal(r.InternalCall)})}function fc(){return p.object({id:p.string(),type:p.literal(r.InternalCall),index:p.number()})}function I6(){return fc().merge(p.object({version:p.number(),index:p.number()}))}function A6(){return fc().merge(p.object({declaration:p.union([p.string(),ir()])}))}function D6(){return p.object({successCalls:p.array(Et()),errorCalls:p.array(Et()),calledBySuccess:p.array(We()),calledByError:p.array(We()),calledByEntry:p.array(Tt()),writesValues:p.array(tn()),declaration:ir(),inputs:p.array(gr()),outputs:p.array(Ut()),parent:gn(),error:p.optional(Ut())})}function P6(){return I6().merge(D6())}function gr(){return p.union([p.object({type:p.literal(r.InputMap)}),p.record(p.string(),p.any())])}function tl(){return p.object({id:p.string(),type:p.literal(r.GenericReference),entityId:p.string(),entityType:p.literal(r.InputMap)})}function mc(){return p.object({id:p.string(),type:p.literal(r.InputMap),name:p.string().nullable().optional(),description:p.string().nullable().optional()})}function S6(){return mc().merge(p.object({version:p.number(),index:p.number()}))}function O6(){return mc().merge(p.object({}))}function V6(){return p.object({defaultValue:Tc().nullable(),declaration:p.union([ti(),zn()]).nullable(),readsValue:us().nullable(),parent:p.union([We(),tl(),Gr(),en()])})}function C6(){return S6().merge(V6())}function aa(){return p.union([p.object({type:p.literal(r.Operation)}),p.record(p.string(),p.any())])}function sa(){return p.object({id:p.string(),type:p.literal(r.GenericReference),entityId:p.string(),entityType:p.literal(r.Operation)})}function rl(){return p.object({id:p.string(),type:p.literal(r.Operation)})}function w6(){return rl().merge(p.object({version:p.number(),x:p.number(),y:p.number()}))}function B6(){return rl().merge(p.object({}))}function M6(){return rl().merge(p.object({successCalls:p.array(Et()),errorCalls:p.array(Et()),calledBySuccess:p.array(We()),calledByError:p.array(We()),calledByEntry:p.array(Tt()),writesValues:p.array(tn()),declaration:Lr(),inputs:p.array(gr()),outputs:p.array(Ut()),error:p.array(Ut()),parent:p.union([rn(),Wt()])}))}function _6(){return w6().merge(M6())}function nl(){return p.union([p.string(),p.number(),p.boolean(),p.null(),p.date()])}function dA(){return p.record(p.string(),nl())}function N6(){return p.array(p.union([nl(),dA()]))}function uA(){return p.union([nl(),dA(),N6()])}function cA(){return p.union([nl(),uA()])}function pA(){return p.enum([C.String,C.Number,C.Boolean,C.Null,C.Date,C.KeyValue,C.Enum,C.File,C.UUID,C.EntityTemplate,C.ActionDescriptor])}function L6(){return p.union([ri(),sa(),cs()])}function G6(){return p.object({id:p.string(),name:pA(),type:p.literal(r.LiteralValue),value:cA(),autogeneration:tc.nullable()})}function $6(){return G6().merge(p.object({}))}function br(){return p.object({id:p.string(),version:p.number(),name:pA(),type:p.literal(r.LiteralValue),value:cA(),valueAsType:L6().nullable(),autogeneration:tc.nullable(),parent:p.union([vc(),tl()])})}function F6(){return br().extend({name:p.literal(C.String),value:p.string(),autogeneration:Xu.nullable()})}function U6(){return br().extend({name:p.literal(C.Number),value:p.number(),autogeneration:Qu.nullable()})}function x6(){return br().extend({name:p.literal(C.Boolean),value:p.boolean(),autogeneration:Ku.nullable()})}function j6(){return br().extend({name:p.literal(C.Null),value:p.null(),autogeneration:p.null()})}function k6(){return br().extend({name:p.literal(C.Date),value:p.date(),autogeneration:ec.nullable()})}function Z6(){return br().extend({name:p.literal(C.KeyValue),value:uA(),autogeneration:p.null()})}function q6(){return br().extend({name:p.literal(C.Enum),value:p.string(),autogeneration:p.null()})}function J6(){return br().extend({name:p.literal(C.File),value:p.string(),autogeneration:p.null()})}function W6(){return br().extend({name:p.literal(C.UUID),value:p.string(),autogeneration:zu.nullable()})}function Y6(){return br().extend({name:p.literal(C.EntityTemplate),value:ri(),autogeneration:p.null()})}function H6(){return br().extend({name:p.literal(C.ActionDescriptor),value:cs(),autogeneration:p.null()})}function Tc(){return p.union([F6(),U6(),x6(),j6(),k6(),Z6(),q6(),J6(),W6(),Y6(),H6()])}function Qn(){return p.union([p.object({type:p.literal(r.DataType)}),p.record(p.string(),p.any())])}function vc(){return p.object({id:p.string(),type:p.literal(r.GenericReference),entityId:p.string(),entityType:p.literal(r.DataType)})}function Ec(){return p.object({id:p.string(),type:p.literal(r.DataType),isNullable:p.boolean(),isList:p.boolean(),constant:p.boolean(),asType:p.boolean(),options:p.array(p.string()).optional()})}function z6(){return Ec().merge(p.object({version:p.number()}))}function K6(){return Ec().merge(p.object({}))}function X6(){return p.object({defaultValue:Tc().nullable(),entity:p.union([oa(),Xi(),Ho(),Lr()]).nullable(),parent:p.union([aA(),fA(),iA()])})}function Q6(){return z6().merge(X6())}function Rc(){return p.union([p.object({type:p.literal(r.VariableDeclaration)}),p.record(p.string(),p.any())])}function e3(){return p.object({id:p.string(),type:p.literal(r.GenericReference),entityId:p.string(),entityType:p.literal(r.VariableDeclaration)})}function gc(){return p.object({id:p.string(),type:p.literal(r.VariableDeclaration),name:p.string(),description:p.string().nullable()})}function t3(){return gc().merge(p.object({version:p.number(),x:p.number(),y:p.number()}))}function r3(){return gc().merge(p.object({}))}function n3(){return p.object({dataType:Qn().nullable(),readsValue:us().nullable(),writesValues:p.array(tn()),inputs:p.array(gr()),outputs:p.array(Ut()),successCalls:p.array(Et()),errorCalls:p.array(Et()),internalCalls:p.array(ds()),calledBySuccess:p.array(We()),calledByError:p.array(We()),calledByEntry:p.array(Tt()),parent:p.union([rn(),Wt()])})}function i3(){return t3().merge(n3())}function hA(){return p.union([p.object({type:p.literal(r.VariableInstance)}),p.record(p.string(),p.any())])}function a3(){return p.object({id:p.string(),type:p.literal(r.GenericReference),entityId:p.string(),entityType:p.literal(r.VariableInstance)})}function bc(){return p.object({id:p.string(),type:p.literal(r.VariableInstance)})}function s3(){return bc().merge(p.object({version:p.number(),x:p.number(),y:p.number()}))}function o3(){return bc().merge(p.object({}))}function l3(){return p.object({declaration:Rc(),dataType:Qn().nullable(),readsValue:us().nullable(),writesValues:p.array(tn()),inputs:p.array(gr()),outputs:p.array(Ut()),successCalls:p.array(Et()),errorCalls:p.array(Et()),internalCalls:p.array(ds()),calledBySuccess:p.array(We()),calledByError:p.array(We()),calledByEntry:p.array(Tt()),parent:p.union([rn(),Wt()])})}function d3(){return s3().merge(l3())}function Ic(){return p.union([p.object({type:p.literal(r.InstalledProject)}),p.record(p.string(),p.any())])}function il(){return p.object({id:p.string(),type:p.literal(r.GenericReference),entityId:p.string(),entityType:p.literal(r.InstalledProject)})}function u3(){return p.object({id:p.string(),type:p.literal(r.InstalledProject)})}function c3(){return p.object({version:p.number(),x:p.number(),y:p.number()})}function p3(){return p.object({})}function h3(){return p.object({implements:Wt(),description:p.string().nullable(),functions:p.array(ir()),events:p.array(Ac()),parent:Wt()})}function y3(){return c3().merge(h3())}function Ac(){return p.union([p.object({type:p.literal(r.GlobalEvent)}),p.record(p.string(),p.any())])}function f3(){return p.object({id:p.string(),type:p.literal(r.GenericReference),entityId:p.string(),entityType:p.literal(r.GlobalEvent)})}function al(){return p.object({id:p.string(),type:p.literal(r.GlobalEvent),name:p.string(),collapsed:p.boolean()})}function m3(){return al().merge(p.object({version:p.number(),x:p.number(),y:p.number()}))}function T3(){return al().merge(p.object({}))}function v3(){return al().merge(p.object({returnStatements:p.array(Xn()),implements:p.array(sA()),inputs:p.array(ti()),calls:p.array(Et()),parent:p.union([Wt(),il()])}))}function E3(){return m3().merge(v3())}function ei(){return p.union([Rc(),hA()])}function gn(){return p.union([e3(),a3()])}function tn(){return p.union([ei(),gr(),Qr()])}function yA(){return p.union([gn(),tl(),lA()])}function us(){return p.union([ei(),ti(),Ut(),aa(),ds(),ia()])}function R3(){return p.union([gn(),Dc(),dc(),sa(),yc(),as()])}function g3(){return p.union([ti(),Ut(),tn()])}function fA(){return p.union([Dc(),dc(),yA()])}function sl(){return Ac()}function ol(){return f3()}function ll(){return p.union([aa(),ia(),ss(),os(),ei(),ds(),Qi()])}function We(){return p.union([sa(),as(),el(),ls(),gn(),yc(),Gr()])}function dl(){return p.union([aa(),ia(),ss(),os(),ei(),Qi()])}function ul(){return p.union([sa(),as(),el(),ls(),gn(),Gr()])}function mA(){return p.union([ll(),Xn(),na(),ea()])}function Et(){return p.union([We(),ra(),en(),ta()])}function TA(){return p.union([dl(),Xn(),na(),ea()])}function vA(){return p.union([ul(),ra(),en(),ta()])}function bn(){return p.union([ir(),sl()])}function Tt(){return p.union([cs(),ol()])}function b3(){return p.union([ll(),bn()])}function I3(){return p.union([We(),Tt()])}function A3(){return p.union([dl(),bn()])}function D3(){return p.union([ul(),Tt()])}function P3(){return p.union([mA(),bn()])}function S3(){return p.union([Et(),Tt()])}function O3(){return p.union([TA(),bn()])}function V3(){return p.union([vA(),Tt()])}function C3(){return p.union([bn(),Qi()])}function rn(){return p.union([Tt(),Gr()])}function w3(){return p.union([ll(),bn()])}function B3(){return p.union([We(),Tt()])}function M3(){return p.union([dl(),bn()])}function _3(){return p.union([ul(),Tt()])}function N3(){return p.union([Xn(),na(),ea()])}function L3(){return p.union([ra(),en(),ta()])}function G3(){return p.union([Xi(),H3(),Ic(),oa(),ir(),sl(),ei(),gr(),Ut(),ss(),aa(),ia(),Qr(),ti(),Ho(),Qn(),zn(),Lr(),Xn(),ea(),na(),Qi(),os(),Lr(),Lr(),is(),ds()])}function $3(){return p.union([Xo(),Wt(),il(),ri(),cs(),ol(),gn(),tl(),dc(),el(),sa(),as(),lA(),Dc(),zo(),vc(),aA(),Kn(),ra(),ta(),en(),Gr(),ls(),Kn(),Kn(),iA(),yc()])}function F3(){return p.union([Ic(),oa(),ir(),sl(),ei(),ss(),aa(),ia(),Xn(),ea(),na(),Qi(),os()])}function U3(){return p.union([il(),ri(),cs(),ol(),gn(),el(),sa(),as(),ra(),ta(),en(),Gr(),ls()])}function ti(){return p.union([p.object({type:p.literal(r.ArgumentDeclaration)}),p.record(p.string(),p.any())])}function Dc(){return p.object({id:p.string(),type:p.literal(r.GenericReference),entityId:p.string(),entityType:p.literal(r.ArgumentDeclaration)})}function Pc(){return p.object({id:p.string(),type:p.literal(r.ArgumentDeclaration)})}function x3(){return Pc().merge(p.object({version:p.number(),x:p.number(),y:p.number()}))}function j3(){return Pc().merge(p.object({}))}function k3(){return p.object({dataType:Qn().nullable(),writesValues:p.array(tn()),parent:p.union([Tt(),Kn(),Kn(),ls(),en()])})}function Z3(){return x3().merge(k3())}function ir(){return p.union([p.object({type:p.literal(r.FunctionDeclaration)}),p.record(p.string(),p.any())])}function cs(){return p.object({id:p.string(),type:p.literal(r.GenericReference),entityId:p.string(),entityType:p.literal(r.FunctionDeclaration)})}function Sc(){return p.object({id:p.string(),type:p.literal(r.FunctionDeclaration),name:p.string(),description:p.string().nullable()})}function q3(){return Sc().merge(p.object({version:p.number(),x:p.number(),y:p.number(),index:p.number().nullable()}))}function J3(){return Sc()}function W3(){return p.object({inputs:p.array(ti()),implements:Lr().nullable(),returnStatements:p.array(Xn()),parent:p.union([Wt(),il(),ri(),Gr(),Xo(),zo()])})}function Y3(){return q3().merge(W3())}function H3(){return p.union([p.object({type:p.literal(r.Project)}),p.record(p.string(),p.any())])}function Wt(){return p.object({entityType:p.literal(r.Project),entityId:p.string(),id:p.string(),type:p.literal(r.GenericReference)})}function Oc(){return p.object({id:p.string(),type:p.literal(r.Project),name:p.string(),description:p.string().nullable()})}function z3(){return Oc().merge(p.object({version:p.number()}))}function K3(){return Oc()}function X3(){return p.object({entities:p.array(oa()),functions:p.array(ir()),events:p.array(Ac()),projects:p.array(Ic()),variableDeclarations:p.array(Rc()),variableInstances:p.array(hA()),conditions:p.array(ss()),operations:p.array(aa()),functionCalls:p.array(ia()),loops:p.array(Qi()),searches:p.array(os())})}function Q3(){return z3().merge(X3())}function oa(){return p.union([p.object({type:p.literal(r.DefinitionEntity)}),p.record(p.string(),p.any())])}function ri(){return p.object({id:p.string(),type:p.literal(r.GenericReference),entityId:p.string(),entityType:p.literal(r.DefinitionEntity)})}function Vc(){return p.object({id:p.string(),type:p.literal(r.DefinitionEntity),name:p.string(),description:p.string().nullable(),static:p.boolean(),abstract:p.boolean()})}function e5(){return Vc().merge(p.object({version:p.number(),x:p.number(),y:p.number()}))}function t5(){return Vc().merge(p.object({}))}function r5(){return p.union([Wt(),vc()])}function n5(){return p.object({properties:p.array(zn()),methods:p.array(ir()),abstractMethods:p.array(Lr()),extends:p.array(p.union([oa(),Xi()])),implements:p.array(p.union([oa(),Xi()])),parent:r5()})}function i5(){return e5().merge(n5())}function a5(n){const s=i5(),e=n.toJSON();s.safeParse(e).success;const i=n.implements.flatMap(y=>l5(n,y)),a=n.extends.flatMap(y=>d5(n,y)),o=c5(n),l=u5(n);n.methods.flatMap(y=>y.validate());const d=[...i,...a,...o,...l];return xe(n.errors,d)}function s5(n,s){const e=s.properties.filter(a=>a.abstract),t=[];let i=[...n.properties];return e.forEach(a=>{const o=i.find(l=>{var d;return((d=l.implements)==null?void 0:d.id)===a.id});o?i=i.filter(l=>l.id!==o.id):t.push(a)}),t}function o5(n,s){const e=s.abstractMethods,t=[];let i=[...n.methods];return e.forEach(a=>{const o=i.find(l=>{var d;return((d=l.implements)==null?void 0:d.id)===a.id});o?i=i.filter(l=>l.id!==o.id):t.push(a)}),t}function l5(n,s){const e=[];if(!s.abstract){const y=le({id:n.id+"--"+U.ImplementingNonAbstractEntity,message:`Entity "${n.name}" with id "${n.id}" is implementing a non-abstract entity "${s.name}" with id "${s.id}"`,issue:null,severity:E.Error,code:U.ImplementingNonAbstractEntity,entity:n});return e.push(y.error),e}const t=s.properties.filter(y=>y.abstract),i=[];let a=[...n.properties];t.forEach(y=>{const f=a.find(v=>{var R;return((R=v.implements)==null?void 0:R.id)===y.id});f?a=a.filter(v=>v.id!==f.id):i.push(y)}),i.length&&i.forEach(y=>{const f=le({id:n.id+"--"+U.MissingPropertyImplementation+"--"+y.id,message:`Property "${y.name}" with id "${y.id}" of entity "${s.name}" with id "${s.id}" is not implemented when entity "${n.name}" with id "${n.id}" implements it`,issue:null,severity:E.Error,code:U.MissingPropertyImplementation,entity:n});e.push(f.error)});const o=[];let l=[...n.methods];s.abstractMethods.forEach(y=>{const f=l.find(v=>{var R;return((R=v.implements)==null?void 0:R.id)===y.id});f?l=l.filter(v=>v.id!==f.id):o.push(y)}),o.length&&o.forEach(y=>{const f=le({id:n.id+"--"+U.MissingMethodImplementation+"--"+y.id,message:`Method "${y.name}" with id "${y.id}" of entity "${s.name}" with id "${s.id}" is not implemented when entity "${n.name}" with id "${n.id}" implements it`,issue:null,severity:E.Error,code:U.MissingMethodImplementation,entity:n});e.push(f.error)});const d=[];s.properties.forEach(y=>{const f=a.find(v=>v.name===y.name);f&&d.push([f,y])}),d.length&&d.forEach(([y])=>{const f=le({id:n.id+"--"+w.PropertyOverwrite+"--"+y.id,message:`Property "${y.name}" with id "${y.id}" of entity "${n.name}" with id "${n.id}" overwrites the property with the same name from the base entity "${s.name}" with id "${s.id}"`,issue:null,severity:E.Error,code:w.PropertyOverwrite,entity:n});e.push(f.error)});const h=[];return s.methods.forEach(y=>{const f=l.find(v=>v.name===y.name);f&&h.push([f,y])}),h.length&&h.forEach(([y])=>{const f=le({id:n.id+"--"+w.MethodOverwrite+"--"+y.id,message:`Method "${y.name}" with id "${y.id}" of entity "${n.name}" with id "${n.id}" overwrites the method with the same name from the base entity "${s.name}" with id "${s.id}"`,issue:null,severity:E.Error,code:w.MethodOverwrite,entity:n});e.push(f.error)}),e}function d5(n,s){const e=[],t=[];if(s.abstract){const a=le({id:n.id+"--"+U.ExtendingAbstractEntity,message:`Entity "${n.name}" with id "${n.id}" is extending an abstract entity "${s.name}" with id "${s.id}"`,issue:null,severity:E.Error,code:U.ExtendingAbstractEntity,entity:n});return e.push(a.error),e}n.properties.forEach(a=>{var l;const o=s.properties.find(d=>d.name===a.name);((l=a.implements)==null?void 0:l.id)!==(o==null?void 0:o.id)&&o&&t.push(a)}),t.length&&t.forEach(a=>{const o=le({id:n.id+"--"+w.PropertyOverwrite,message:`Property "${a.name}" with id "${a.id}" of entity "${n.name}" with id "${n.id}" overwrites the property with the same name from the extended entity "${s.name}" with id "${s.id}"`,issue:null,severity:E.Error,code:w.PropertyOverwrite,entity:n});e.push(o.error)});const i=[];return n.methods.forEach(a=>{var l;const o=s.methods.find(d=>d.name===a.name);((l=a.implements)==null?void 0:l.id)!==(o==null?void 0:o.id)&&o&&i.push(a)}),i.length&&i.forEach(a=>{const o=le({id:n.id+"--"+w.MethodOverwrite,message:`Method "${a.name}" with id "${a.id}" of entity "${n.name}" with id "${n.id}" overwrites the method with the same name from the extended entity "${s.name}" with id "${s.id}"`,issue:null,severity:E.Error,code:w.MethodOverwrite,entity:n});e.push(o.error)}),e}function u5(n){const s=[];if(!n.properties.length){const e=le({id:n.id+"--"+U.NoProperties,message:"No properties implemented",issue:null,severity:E.Warning,code:U.NoProperties,entity:n});s.push(e.error)}return n.properties.forEach(e=>{e.validate()}),s}function c5(n){const s=[];if(n.abstract){if(n.methods.length){const e=le({id:n.id+"--"+U.AbstractEntityWithNonAbstractMethods,message:`Entity "${n.name}" with id "${n.id}" is marked as abstract but has non-abstract methods`,issue:null,severity:E.Error,code:U.AbstractEntityWithNonAbstractMethods,entity:n});s.push(e.error)}if(n.properties.some(e=>!e.abstract)){const e=le({id:n.id+"--"+U.AbstractEntityWithNonAbstractProperties,message:`Entity "${n.name}" with id "${n.id}" is marked as abstract but has non-abstract properties`,issue:null,severity:E.Error,code:U.AbstractEntityWithNonAbstractProperties,entity:n});s.push(e.error),n.properties.forEach(t=>{if(!t.abstract){const i=le({id:n.id+"--"+U.StaticEntityWithNonStaticProperties+"--"+t.id,message:`Property "${t.name}" with id "${t.id}" of entity "${n.name}" with id "${n.id}" is not marked as abstract but the entity is marked as abstract`,issue:null,severity:E.Error,code:U.StaticEntityWithNonStaticProperties,entity:n});s.push(i.error)}})}}else{if(n.abstractMethods.length){const e=le({id:n.id+"--"+U.AbstractPropertyInNonAbstractEntity,message:`Entity "${n.name}" with id "${n.id}" is not marked as abstract but has abstract methods`,issue:null,severity:E.Error,code:U.AbstractPropertyInNonAbstractEntity,entity:n});s.push(e.error)}if(n.properties.some(e=>e.abstract)){const e=le({id:n.id+"--"+U.AbstractMethodInNonAbstractEntity,message:`Entity "${n.name}" with id "${n.id}" is not marked as abstract but has abstract properties`,issue:null,severity:E.Error,code:U.AbstractMethodInNonAbstractEntity,entity:n});s.push(e.error),n.properties.forEach(t=>{if(t.abstract){const i=le({id:n.id+"--"+U.AbstractMethodInNonAbstractEntity+"--"+t.id,message:`Property "${t.name}" with id "${t.id}" of entity "${n.name}" with id "${n.id}" is marked as abstract but the entity is not marked as abstract`,issue:null,severity:E.Error,code:U.AbstractMethodInNonAbstractEntity,entity:n});s.push(i.error)}})}}if(n.static&&n.properties.some(e=>!e.static)){const e=le({id:n.id+"--"+U.StaticEntityWithNonStaticProperties,message:`Entity "${n.name}" with id "${n.id}" is marked as static but has non-static properties`,issue:null,severity:E.Error,code:U.StaticEntityWithNonStaticProperties,entity:n});s.push(e.error),n.properties.forEach(t=>{if(!t.static){const i=le({id:n.id+"--"+U.NonStaticPropertyInStaticEntity+"--"+t.id,message:`Property "${t.name}" with id "${t.id}" of entity "${n.name}" with id "${n.id}" is not marked as static but the entity is marked as static`,issue:null,severity:E.Error,code:U.NonStaticPropertyInStaticEntity,entity:n});s.push(i.error)}})}return s}function p5(n){return n instanceof Error&&n.name==="ZodError"&&"issues"in n&&Array.isArray(n.issues)}var h5=class extends Error{constructor(s,e){super(s,e);u(this,"name");u(this,"details");this.name="ZodValidationError",this.details=y5(e)}toString(){return this.message}};function y5(n){if(n){const s=n.cause;if(p5(s))return s.issues}return[]}function f5(n){return n.length!==0}var m5=/[$_\p{ID_Start}][$\u200c\u200d\p{ID_Continue}]*/u;function T5(n){return n.length===1?n[0].toString():n.reduce((s,e)=>{if(typeof e=="number")return s+"["+e.toString()+"]";if(e.includes('"'))return s+'["'+v5(e)+'"]';if(!m5.test(e))return s+'["'+e+'"]';const t=s.length===0?"":".";return s+t+e},"")}function v5(n){return n.replace(/"/g,'\\"')}var E5="; ",R5=99,EA="Validation error",g5=": ",b5=", or ";function I5(n={}){const{issueSeparator:s=E5,unionSeparator:e=b5,prefixSeparator:t=g5,prefix:i=EA,includePath:a=!0,maxIssuesInMessage:o=R5}=n;return l=>{const d=l.slice(0,o).map(h=>cl({issue:h,issueSeparator:s,unionSeparator:e,includePath:a})).join(s);return A5(d,i,t)}}function cl(n){const{issue:s,issueSeparator:e,unionSeparator:t,includePath:i}=n;if(s.code===G.invalid_union)return s.unionErrors.reduce((a,o)=>{const l=o.issues.map(d=>cl({issue:d,issueSeparator:e,unionSeparator:t,includePath:i})).join(e);return a.includes(l)||a.push(l),a},[]).join(t);if(s.code===G.invalid_arguments)return[s.message,...s.argumentsError.issues.map(a=>cl({issue:a,issueSeparator:e,unionSeparator:t,includePath:i}))].join(e);if(s.code===G.invalid_return_type)return[s.message,...s.returnTypeError.issues.map(a=>cl({issue:a,issueSeparator:e,unionSeparator:t,includePath:i}))].join(e);if(i&&f5(s.path)){if(s.path.length===1){const a=s.path[0];if(typeof a=="number")return`${s.message} at index ${a}`}return`${s.message} at "${T5(s.path)}"`}return s.message}function A5(n,s,e){return s!==null?n.length>0?[s,n].join(e):s:n.length>0?n:EA}function D5(n,s={}){const t=P5(s)([n]);return new h5(t,{cause:new Jt([n])})}function P5(n){return"messageBuilder"in n?n.messageBuilder:I5(n)}var RA="1.13.7",gA=typeof self=="object"&&self.self===self&&self||typeof global=="object"&&global.global===global&&global||Function("return this")()||{},pl=Array.prototype,Cc=Object.prototype,bA=typeof Symbol<"u"?Symbol.prototype:null,S5=pl.push,ps=pl.slice,hs=Cc.toString,O5=Cc.hasOwnProperty,IA=typeof ArrayBuffer<"u",V5=typeof DataView<"u",C5=Array.isArray,AA=Object.keys,DA=Object.create,PA=IA&&ArrayBuffer.isView,w5=isNaN,B5=isFinite,SA=!{toString:null}.propertyIsEnumerable("toString"),OA=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],M5=Math.pow(2,53)-1;function Yt(n,s){return s=s==null?n.length-1:+s,function(){for(var e=Math.max(arguments.length-s,0),t=Array(e),i=0;i<e;i++)t[i]=arguments[i+s];switch(s){case 0:return n.call(this,t);case 1:return n.call(this,arguments[0],t);case 2:return n.call(this,arguments[0],arguments[1],t)}var a=Array(s+1);for(i=0;i<s;i++)a[i]=arguments[i];return a[s]=t,n.apply(this,a)}}function In(n){var s=typeof n;return s==="function"||s==="object"&&!!n}function _5(n){return n===null}function VA(n){return n===void 0}function CA(n){return n===!0||n===!1||hs.call(n)==="[object Boolean]"}function N5(n){return!!(n&&n.nodeType===1)}function Mt(n){var s="[object "+n+"]";return function(e){return hs.call(e)===s}}const wc=Mt("String"),wA=Mt("Number"),L5=Mt("Date"),G5=Mt("RegExp"),$5=Mt("Error"),BA=Mt("Symbol"),MA=Mt("ArrayBuffer");var _A=Mt("Function"),F5=gA.document&&gA.document.childNodes;typeof/./!="function"&&typeof Int8Array!="object"&&typeof F5!="function"&&(_A=function(n){return typeof n=="function"||!1});const xt=_A,NA=Mt("Object");var LA=V5&&(!/\[native code\]/.test(String(DataView))||NA(new DataView(new ArrayBuffer(8)))),Bc=typeof Map<"u"&&NA(new Map),U5=Mt("DataView");function x5(n){return n!=null&&xt(n.getInt8)&&MA(n.buffer)}const hl=LA?x5:U5,ni=C5||Mt("Array");function An(n,s){return n!=null&&O5.call(n,s)}var Mc=Mt("Arguments");(function(){Mc(arguments)||(Mc=function(n){return An(n,"callee")})})();const _c=Mc;function j5(n){return!BA(n)&&B5(n)&&!isNaN(parseFloat(n))}function GA(n){return wA(n)&&w5(n)}function $A(n){return function(){return n}}function FA(n){return function(s){var e=n(s);return typeof e=="number"&&e>=0&&e<=M5}}function UA(n){return function(s){return s==null?void 0:s[n]}}const yl=UA("byteLength"),k5=FA(yl);var Z5=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;function q5(n){return PA?PA(n)&&!hl(n):k5(n)&&Z5.test(hs.call(n))}const xA=IA?q5:$A(!1),Ht=UA("length");function J5(n){for(var s={},e=n.length,t=0;t<e;++t)s[n[t]]=!0;return{contains:function(i){return s[i]===!0},push:function(i){return s[i]=!0,n.push(i)}}}function jA(n,s){s=J5(s);var e=OA.length,t=n.constructor,i=xt(t)&&t.prototype||Cc,a="constructor";for(An(n,a)&&!s.contains(a)&&s.push(a);e--;)a=OA[e],a in n&&n[a]!==i[a]&&!s.contains(a)&&s.push(a)}function bt(n){if(!In(n))return[];if(AA)return AA(n);var s=[];for(var e in n)An(n,e)&&s.push(e);return SA&&jA(n,s),s}function ys(n){if(n==null)return!0;var s=Ht(n);return typeof s=="number"&&(ni(n)||wc(n)||_c(n))?s===0:Ht(bt(n))===0}function kA(n,s){var e=bt(s),t=e.length;if(n==null)return!t;for(var i=Object(n),a=0;a<t;a++){var o=e[a];if(s[o]!==i[o]||!(o in i))return!1}return!0}function je(n){if(n instanceof je)return n;if(!(this instanceof je))return new je(n);this._wrapped=n}je.VERSION=RA,je.prototype.value=function(){return this._wrapped},je.prototype.valueOf=je.prototype.toJSON=je.prototype.value,je.prototype.toString=function(){return String(this._wrapped)};function ZA(n){return new Uint8Array(n.buffer||n,n.byteOffset||0,yl(n))}var qA="[object DataView]";function Nc(n,s,e,t){if(n===s)return n!==0||1/n===1/s;if(n==null||s==null)return!1;if(n!==n)return s!==s;var i=typeof n;return i!=="function"&&i!=="object"&&typeof s!="object"?!1:JA(n,s,e,t)}function JA(n,s,e,t){n instanceof je&&(n=n._wrapped),s instanceof je&&(s=s._wrapped);var i=hs.call(n);if(i!==hs.call(s))return!1;if(LA&&i=="[object Object]"&&hl(n)){if(!hl(s))return!1;i=qA}switch(i){case"[object RegExp]":case"[object String]":return""+n==""+s;case"[object Number]":return+n!=+n?+s!=+s:+n==0?1/+n===1/s:+n==+s;case"[object Date]":case"[object Boolean]":return+n==+s;case"[object Symbol]":return bA.valueOf.call(n)===bA.valueOf.call(s);case"[object ArrayBuffer]":case qA:return JA(ZA(n),ZA(s),e,t)}var a=i==="[object Array]";if(!a&&xA(n)){var o=yl(n);if(o!==yl(s))return!1;if(n.buffer===s.buffer&&n.byteOffset===s.byteOffset)return!0;a=!0}if(!a){if(typeof n!="object"||typeof s!="object")return!1;var l=n.constructor,d=s.constructor;if(l!==d&&!(xt(l)&&l instanceof l&&xt(d)&&d instanceof d)&&"constructor"in n&&"constructor"in s)return!1}e=e||[],t=t||[];for(var h=e.length;h--;)if(e[h]===n)return t[h]===s;if(e.push(n),t.push(s),a){if(h=n.length,h!==s.length)return!1;for(;h--;)if(!Nc(n[h],s[h],e,t))return!1}else{var y=bt(n),f;if(h=y.length,bt(s).length!==h)return!1;for(;h--;)if(f=y[h],!(An(s,f)&&Nc(n[f],s[f],e,t)))return!1}return e.pop(),t.pop(),!0}function W5(n,s){return Nc(n,s)}function fs(n){if(!In(n))return[];var s=[];for(var e in n)s.push(e);return SA&&jA(n,s),s}function Lc(n){var s=Ht(n);return function(e){if(e==null)return!1;var t=fs(e);if(Ht(t))return!1;for(var i=0;i<s;i++)if(!xt(e[n[i]]))return!1;return n!==HA||!xt(e[Gc])}}var Gc="forEach",WA="has",$c=["clear","delete"],YA=["get",WA,"set"],Y5=$c.concat(Gc,YA),HA=$c.concat(YA),H5=["add"].concat($c,Gc,WA);const z5=Bc?Lc(Y5):Mt("Map"),K5=Bc?Lc(HA):Mt("WeakMap"),X5=Bc?Lc(H5):Mt("Set"),Q5=Mt("WeakSet");function la(n){for(var s=bt(n),e=s.length,t=Array(e),i=0;i<e;i++)t[i]=n[s[i]];return t}function eZ(n){for(var s=bt(n),e=s.length,t=Array(e),i=0;i<e;i++)t[i]=[s[i],n[s[i]]];return t}function zA(n){for(var s={},e=bt(n),t=0,i=e.length;t<i;t++)s[n[e[t]]]=e[t];return s}function Fc(n){var s=[];for(var e in n)xt(n[e])&&s.push(e);return s.sort()}function Uc(n,s){return function(e){var t=arguments.length;if(s&&(e=Object(e)),t<2||e==null)return e;for(var i=1;i<t;i++)for(var a=arguments[i],o=n(a),l=o.length,d=0;d<l;d++){var h=o[d];(!s||e[h]===void 0)&&(e[h]=a[h])}return e}}const KA=Uc(fs),fl=Uc(bt),XA=Uc(fs,!0);function tZ(){return function(){}}function QA(n){if(!In(n))return{};if(DA)return DA(n);var s=tZ();s.prototype=n;var e=new s;return s.prototype=null,e}function rZ(n,s){var e=QA(n);return s&&fl(e,s),e}function nZ(n){return In(n)?ni(n)?n.slice():KA({},n):n}function iZ(n,s){return s(n),n}function e1(n){return ni(n)?n:[n]}je.toPath=e1;function ms(n){return je.toPath(n)}function xc(n,s){for(var e=s.length,t=0;t<e;t++){if(n==null)return;n=n[s[t]]}return e?n:void 0}function t1(n,s,e){var t=xc(n,ms(s));return VA(t)?e:t}function aZ(n,s){s=ms(s);for(var e=s.length,t=0;t<e;t++){var i=s[t];if(!An(n,i))return!1;n=n[i]}return!!e}function jc(n){return n}function Ts(n){return n=fl({},n),function(s){return kA(s,n)}}function kc(n){return n=ms(n),function(s){return xc(s,n)}}function vs(n,s,e){if(s===void 0)return n;switch(e??3){case 1:return function(t){return n.call(s,t)};case 3:return function(t,i,a){return n.call(s,t,i,a)};case 4:return function(t,i,a,o){return n.call(s,t,i,a,o)}}return function(){return n.apply(s,arguments)}}function r1(n,s,e){return n==null?jc:xt(n)?vs(n,s,e):In(n)&&!ni(n)?Ts(n):kc(n)}function Zc(n,s){return r1(n,s,1/0)}je.iteratee=Zc;function zt(n,s,e){return je.iteratee!==Zc?je.iteratee(n,s):r1(n,s,e)}function sZ(n,s,e){s=zt(s,e);for(var t=bt(n),i=t.length,a={},o=0;o<i;o++){var l=t[o];a[l]=s(n[l],l,n)}return a}function n1(){}function oZ(n){return n==null?n1:function(s){return t1(n,s)}}function lZ(n,s,e){var t=Array(Math.max(0,n));s=vs(s,e,1);for(var i=0;i<n;i++)t[i]=s(i);return t}function qc(n,s){return s==null&&(s=n,n=0),n+Math.floor(Math.random()*(s-n+1))}const Es=Date.now||function(){return new Date().getTime()};function i1(n){var s=function(a){return n[a]},e="(?:"+bt(n).join("|")+")",t=RegExp(e),i=RegExp(e,"g");return function(a){return a=a==null?"":""+a,t.test(a)?a.replace(i,s):a}}const a1={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},dZ=i1(a1),uZ=zA(a1),cZ=i1(uZ),pZ=je.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var Jc=/(.)^/,hZ={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},yZ=/\\|'|\r|\n|\u2028|\u2029/g;function fZ(n){return"\\"+hZ[n]}var mZ=/^\s*(\w|\$)+\s*$/;function TZ(n,s,e){!s&&e&&(s=e),s=XA({},s,je.templateSettings);var t=RegExp([(s.escape||Jc).source,(s.interpolate||Jc).source,(s.evaluate||Jc).source].join("|")+"|$","g"),i=0,a="__p+='";n.replace(t,function(h,y,f,v,R){return a+=n.slice(i,R).replace(yZ,fZ),i=R+h.length,y?a+=`'+
25
25
  ((__t=(`+y+`))==null?'':_.escape(__t))+
26
26
  '`:f?a+=`'+
27
27
  ((__t=(`+f+`))==null?'':__t)+
@@ -33,7 +33,7 @@ __p+='`),h}),a+=`';
33
33
  `,o="obj";a=`var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};
34
34
  `+a+`return __p;
35
35
  `;var l;try{l=new Function(o,"_",a)}catch(h){throw h.source=a,h}var d=function(h){return l.call(this,h,je)};return d.source="function("+o+`){
36
- `+a+"}",d}function vZ(n,s,e){s=ms(s);var t=s.length;if(!t)return jt(e)?e.call(n):e;for(var i=0;i<t;i++){var a=n==null?void 0:n[s[i]];a===void 0&&(a=e,i=t),n=jt(a)?a.call(n):a}return n}var EZ=0;function RZ(n){var s=++EZ+"";return n?n+s:s}function gZ(n){var s=je(n);return s._chain=!0,s}function s1(n,s,e,t,i){if(!(t instanceof s))return n.apply(e,i);var a=QA(n.prototype),o=n.apply(a,i);return In(o)?o:a}var da=Yt(function(n,s){var e=da.placeholder,t=function(){for(var i=0,a=s.length,o=Array(a),l=0;l<a;l++)o[l]=s[l]===e?arguments[i++]:s[l];for(;i<arguments.length;)o.push(arguments[i++]);return s1(n,t,this,this,o)};return t});da.placeholder=je;const o1=Yt(function(n,s,e){if(!jt(n))throw new TypeError("Bind must be called on a function");var t=Yt(function(i){return s1(n,t,s,this,e.concat(i))});return t}),ar=FA(Ht);function ii(n,s,e,t){if(t=t||[],!s&&s!==0)s=1/0;else if(s<=0)return t.concat(n);for(var i=t.length,a=0,o=Ht(n);a<o;a++){var l=n[a];if(ar(l)&&(ni(l)||_c(l)))if(s>1)ii(l,s-1,e,t),i=t.length;else for(var d=0,h=l.length;d<h;)t[i++]=l[d++];else e||(t[i++]=l)}return t}const bZ=Yt(function(n,s){s=ii(s,!1,!1);var e=s.length;if(e<1)throw new Error("bindAll must be passed function names");for(;e--;){var t=s[e];n[t]=o1(n[t],n)}return n});function IZ(n,s){var e=function(t){var i=e.cache,a=""+(s?s.apply(this,arguments):t);return An(i,a)||(i[a]=n.apply(this,arguments)),i[a]};return e.cache={},e}const l1=Yt(function(n,s,e){return setTimeout(function(){return n.apply(null,e)},s)}),AZ=da(l1,je,1);function DZ(n,s,e){var t,i,a,o,l=0;e||(e={});var d=function(){l=e.leading===!1?0:Es(),t=null,o=n.apply(i,a),t||(i=a=null)},h=function(){var y=Es();!l&&e.leading===!1&&(l=y);var f=s-(y-l);return i=this,a=arguments,f<=0||f>s?(t&&(clearTimeout(t),t=null),l=y,o=n.apply(i,a),t||(i=a=null)):!t&&e.trailing!==!1&&(t=setTimeout(d,f)),o};return h.cancel=function(){clearTimeout(t),l=0,t=i=a=null},h}function PZ(n,s,e){var t,i,a,o,l,d=function(){var y=Es()-i;s>y?t=setTimeout(d,s-y):(t=null,e||(o=n.apply(l,a)),t||(a=l=null))},h=Yt(function(y){return l=this,a=y,i=Es(),t||(t=setTimeout(d,s),e&&(o=n.apply(l,a))),o});return h.cancel=function(){clearTimeout(t),t=a=l=null},h}function SZ(n,s){return da(s,n)}function Wc(n){return function(){return!n.apply(this,arguments)}}function OZ(){var n=arguments,s=n.length-1;return function(){for(var e=s,t=n[s].apply(this,arguments);e--;)t=n[e].call(this,t);return t}}function VZ(n,s){return function(){if(--n<1)return s.apply(this,arguments)}}function d1(n,s){var e;return function(){return--n>0&&(e=s.apply(this,arguments)),n<=1&&(s=null),e}}const CZ=da(d1,2);function u1(n,s,e){s=zt(s,e);for(var t=bt(n),i,a=0,o=t.length;a<o;a++)if(i=t[a],s(n[i],i,n))return i}function c1(n){return function(s,e,t){e=zt(e,t);for(var i=Ht(s),a=n>0?0:i-1;a>=0&&a<i;a+=n)if(e(s[a],a,s))return a;return-1}}const Yc=c1(1),p1=c1(-1);function h1(n,s,e,t){e=zt(e,t,1);for(var i=e(s),a=0,o=Ht(n);a<o;){var l=Math.floor((a+o)/2);e(n[l])<i?a=l+1:o=l}return a}function y1(n,s,e){return function(t,i,a){var o=0,l=Ht(t);if(typeof a=="number")n>0?o=a>=0?a:Math.max(a+l,o):l=a>=0?Math.min(a+1,l):a+l+1;else if(e&&a&&l)return a=e(t,i),t[a]===i?a:-1;if(i!==i)return a=s(ps.call(t,o,l),GA),a>=0?a+o:-1;for(a=n>0?o:l-1;a>=0&&a<l;a+=n)if(t[a]===i)return a;return-1}}const f1=y1(1,Yc,h1),wZ=y1(-1,p1);function Hc(n,s,e){var t=ar(n)?Yc:u1,i=t(n,s,e);if(i!==void 0&&i!==-1)return n[i]}function BZ(n,s){return Hc(n,Ts(s))}function nn(n,s,e){s=vs(s,e);var t,i;if(ar(n))for(t=0,i=n.length;t<i;t++)s(n[t],t,n);else{var a=bt(n);for(t=0,i=a.length;t<i;t++)s(n[a[t]],a[t],n)}return n}function ai(n,s,e){s=zt(s,e);for(var t=!ar(n)&&bt(n),i=(t||n).length,a=Array(i),o=0;o<i;o++){var l=t?t[o]:o;a[o]=s(n[l],l,n)}return a}function m1(n){var s=function(e,t,i,a){var o=!ar(e)&&bt(e),l=(o||e).length,d=n>0?0:l-1;for(a||(i=e[o?o[d]:d],d+=n);d>=0&&d<l;d+=n){var h=o?o[d]:d;i=t(i,e[h],h,e)}return i};return function(e,t,i,a){var o=arguments.length>=3;return s(e,vs(t,a,4),i,o)}}const zc=m1(1),T1=m1(-1);function ua(n,s,e){var t=[];return s=zt(s,e),nn(n,function(i,a,o){s(i,a,o)&&t.push(i)}),t}function MZ(n,s,e){return ua(n,Wc(zt(s)),e)}function v1(n,s,e){s=zt(s,e);for(var t=!ar(n)&&bt(n),i=(t||n).length,a=0;a<i;a++){var o=t?t[a]:a;if(!s(n[o],o,n))return!1}return!0}function E1(n,s,e){s=zt(s,e);for(var t=!ar(n)&&bt(n),i=(t||n).length,a=0;a<i;a++){var o=t?t[a]:a;if(s(n[o],o,n))return!0}return!1}function an(n,s,e,t){return ar(n)||(n=la(n)),(typeof e!="number"||t)&&(e=0),f1(n,s,e)>=0}const _Z=Yt(function(n,s,e){var t,i;return jt(s)?i=s:(s=ms(s),t=s.slice(0,-1),s=s[s.length-1]),ai(n,function(a){var o=i;if(!o){if(t&&t.length&&(a=xc(a,t)),a==null)return;o=a[s]}return o==null?o:o.apply(a,e)})});function Kc(n,s){return ai(n,kc(s))}function NZ(n,s){return ua(n,Ts(s))}function R1(n,s,e){var t=-1/0,i=-1/0,a,o;if(s==null||typeof s=="number"&&typeof n[0]!="object"&&n!=null){n=ar(n)?n:la(n);for(var l=0,d=n.length;l<d;l++)a=n[l],a!=null&&a>t&&(t=a)}else s=zt(s,e),nn(n,function(h,y,f){o=s(h,y,f),(o>i||o===-1/0&&t===-1/0)&&(t=h,i=o)});return t}function LZ(n,s,e){var t=1/0,i=1/0,a,o;if(s==null||typeof s=="number"&&typeof n[0]!="object"&&n!=null){n=ar(n)?n:la(n);for(var l=0,d=n.length;l<d;l++)a=n[l],a!=null&&a<t&&(t=a)}else s=zt(s,e),nn(n,function(h,y,f){o=s(h,y,f),(o<i||o===1/0&&t===1/0)&&(t=h,i=o)});return t}var GZ=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function g1(n){return n?ni(n)?ps.call(n):wc(n)?n.match(GZ):ar(n)?ai(n,jc):la(n):[]}function b1(n,s,e){if(s==null||e)return ar(n)||(n=la(n)),n[qc(n.length-1)];var t=g1(n),i=Ht(t);s=Math.max(Math.min(s,i),0);for(var a=i-1,o=0;o<s;o++){var l=qc(o,a),d=t[o];t[o]=t[l],t[l]=d}return t.slice(0,s)}function $Z(n){return b1(n,1/0)}function FZ(n,s,e){var t=0;return s=zt(s,e),Kc(ai(n,function(i,a,o){return{value:i,index:t++,criteria:s(i,a,o)}}).sort(function(i,a){var o=i.criteria,l=a.criteria;if(o!==l){if(o>l||o===void 0)return 1;if(o<l||l===void 0)return-1}return i.index-a.index}),"value")}function ml(n,s){return function(e,t,i){var a=s?[[],[]]:{};return t=zt(t,i),nn(e,function(o,l){var d=t(o,l,e);n(a,o,d)}),a}}const UZ=ml(function(n,s,e){An(n,e)?n[e].push(s):n[e]=[s]}),xZ=ml(function(n,s,e){n[e]=s}),jZ=ml(function(n,s,e){An(n,e)?n[e]++:n[e]=1}),kZ=ml(function(n,s,e){n[e?0:1].push(s)},!0);function ZZ(n){return n==null?0:ar(n)?n.length:bt(n).length}function qZ(n,s,e){return s in e}const I1=Yt(function(n,s){var e={},t=s[0];if(n==null)return e;jt(t)?(s.length>1&&(t=vs(t,s[1])),s=fs(n)):(t=qZ,s=ii(s,!1,!1),n=Object(n));for(var i=0,a=s.length;i<a;i++){var o=s[i],l=n[o];t(l,o,n)&&(e[o]=l)}return e}),JZ=Yt(function(n,s){var e=s[0],t;return jt(e)?(e=Wc(e),s.length>1&&(t=s[1])):(s=ai(ii(s,!1,!1),String),e=function(i,a){return!an(s,a)}),I1(n,e,t)});function A1(n,s,e){return ps.call(n,0,Math.max(0,n.length-(s==null||e?1:s)))}function Xc(n,s,e){return n==null||n.length<1?s==null||e?void 0:[]:s==null||e?n[0]:A1(n,n.length-s)}function Tl(n,s,e){return ps.call(n,s==null||e?1:s)}function WZ(n,s,e){return n==null||n.length<1?s==null||e?void 0:[]:s==null||e?n[n.length-1]:Tl(n,Math.max(0,n.length-s))}function YZ(n){return ua(n,Boolean)}function HZ(n,s){return ii(n,s,!1)}const D1=Yt(function(n,s){return s=ii(s,!0,!0),ua(n,function(e){return!an(s,e)})}),zZ=Yt(function(n,s){return D1(n,s)});function Qc(n,s,e,t){CA(s)||(t=e,e=s,s=!1),e!=null&&(e=zt(e,t));for(var i=[],a=[],o=0,l=Ht(n);o<l;o++){var d=n[o],h=e?e(d,o,n):d;s&&!e?((!o||a!==h)&&i.push(d),a=h):e?an(a,h)||(a.push(h),i.push(d)):an(i,d)||i.push(d)}return i}const KZ=Yt(function(n){return Qc(ii(n,!0,!0))});function XZ(n){for(var s=[],e=arguments.length,t=0,i=Ht(n);t<i;t++){var a=n[t];if(!an(s,a)){var o;for(o=1;o<e&&an(arguments[o],a);o++);o===e&&s.push(a)}}return s}function ep(n){for(var s=n&&R1(n,Ht).length||0,e=Array(s),t=0;t<s;t++)e[t]=Kc(n,t);return e}const QZ=Yt(ep);function e7(n,s){for(var e={},t=0,i=Ht(n);t<i;t++)s?e[n[t]]=s[t]:e[n[t][0]]=n[t][1];return e}function t7(n,s,e){s==null&&(s=n||0,n=0),e||(e=s<n?-1:1);for(var t=Math.max(Math.ceil((s-n)/e),0),i=Array(t),a=0;a<t;a++,n+=e)i[a]=n;return i}function r7(n,s){if(s==null||s<1)return[];for(var e=[],t=0,i=n.length;t<i;)e.push(ps.call(n,t,t+=s));return e}function tp(n,s){return n._chain?je(s).chain():s}function P1(n){return nn(Fc(n),function(s){var e=je[s]=n[s];je.prototype[s]=function(){var t=[this._wrapped];return S5.apply(t,arguments),tp(this,e.apply(je,t))}}),je}nn(["pop","push","reverse","shift","sort","splice","unshift"],function(n){var s=pl[n];je.prototype[n]=function(){var e=this._wrapped;return e!=null&&(s.apply(e,arguments),(n==="shift"||n==="splice")&&e.length===0&&delete e[0]),tp(this,e)}}),nn(["concat","join","slice"],function(n){var s=pl[n];je.prototype[n]=function(){var e=this._wrapped;return e!=null&&(e=s.apply(e,arguments)),tp(this,e)}});var S1=P1(Object.freeze(Object.defineProperty({__proto__:null,VERSION:RA,after:VZ,all:v1,allKeys:fs,any:E1,assign:fl,before:d1,bind:o1,bindAll:bZ,chain:gZ,chunk:r7,clone:nZ,collect:ai,compact:YZ,compose:OZ,constant:$A,contains:an,countBy:jZ,create:rZ,debounce:PZ,default:je,defaults:XA,defer:AZ,delay:l1,detect:Hc,difference:D1,drop:Tl,each:nn,escape:dZ,every:v1,extend:KA,extendOwn:fl,filter:ua,find:Hc,findIndex:Yc,findKey:u1,findLastIndex:p1,findWhere:BZ,first:Xc,flatten:HZ,foldl:zc,foldr:T1,forEach:nn,functions:Fc,get:t1,groupBy:UZ,has:aZ,head:Xc,identity:jc,include:an,includes:an,indexBy:xZ,indexOf:f1,initial:A1,inject:zc,intersection:XZ,invert:zA,invoke:_Z,isArguments:_c,isArray:ni,isArrayBuffer:MA,isBoolean:CA,isDataView:hl,isDate:L5,isElement:N5,isEmpty:ys,isEqual:W5,isError:$5,isFinite:j5,isFunction:jt,isMap:z5,isMatch:kA,isNaN:GA,isNull:_5,isNumber:wA,isObject:In,isRegExp:G5,isSet:X5,isString:wc,isSymbol:BA,isTypedArray:xA,isUndefined:VA,isWeakMap:K5,isWeakSet:Q5,iteratee:Zc,keys:bt,last:WZ,lastIndexOf:wZ,map:ai,mapObject:sZ,matcher:Ts,matches:Ts,max:R1,memoize:IZ,methods:Fc,min:LZ,mixin:P1,negate:Wc,noop:n1,now:Es,object:e7,omit:JZ,once:CZ,pairs:eZ,partial:da,partition:kZ,pick:I1,pluck:Kc,property:kc,propertyOf:oZ,random:qc,range:t7,reduce:zc,reduceRight:T1,reject:MZ,rest:Tl,restArguments:Yt,result:vZ,sample:b1,select:ua,shuffle:$Z,size:ZZ,some:E1,sortBy:FZ,sortedIndex:h1,tail:Tl,take:Xc,tap:iZ,template:TZ,templateSettings:pZ,throttle:DZ,times:lZ,toArray:g1,toPath:e1,transpose:ep,unescape:cZ,union:KZ,uniq:Qc,unique:Qc,uniqueId:RZ,unzip:ep,values:la,where:NZ,without:zZ,wrap:SZ,zip:QZ},Symbol.toStringTag,{value:"Module"})));S1._=S1;function _t(n){return n.charAt(0).toUpperCase()+n.slice(1)}function vl(n){return n.charAt(0).toLowerCase()+n.slice(1)}function O1(n,s){if(n.type!==r.Property||s.type!==r.Property)throw new Error(`Expected property entities for comparison. But got ${n.type} and ${s.type}.`);return n===s||n.id===s.id?!0:n.name!==s.name||n.static!==s.static||n.abstract!==s.abstract?!1:hr(n.dataType,s.dataType).compatible}function V1(n,s){if(n.type!==r.DefinitionEntity||s.type!==r.DefinitionEntity)throw new Error(`Expected definition entities for comparison. But got ${n.type} and ${s.type}.`);if(n===s||n.id===s.id)return!0;if(n.properties.length!==s.properties.length)return!1;let e=[...s.properties];const t=[];for(let i=0;i<n.properties.length;i++){const a=n.properties[i];e.find(l=>{const d=O1(a,l);return d&&(e=e.filter(h=>h.id!==l.id)),d})||t.push(a)}return!(t.length>0)}var pr=(n=>(n.BothUnconstrained="both-unconstrained",n.AConstraintBUnconstrained="a-constraint-b-unconstrained",n.BConstraintAUnconstrained="b-constraint-a-unconstrained",n.Same="same",n.AIsListBIsNot="a-is-list-b-is-not",n.BIsListAIsNot="b-is-list-a-is-not",n.AIsNullableBIsNot="a-is-nullable-b-is-not",n.BIsNullableAIsNot="b-is-nullable-a-is-not",n.AIsTemplateBIsNot="a-is-template-b-is-not",n.BIsTemplateAIsNot="b-is-template-a-is-not",n.BothUntyped="both-untyped",n.AIsUntypedBIsNot="a-is-untyped-b-is-not",n.BIsUntypedAIsNot="b-is-untyped-a-is-not",n.TypeEntityMismatch="type-entity-mismatch",n.SameDefinitionEntities="same-definition-entities",n.CompatibleDefinitionEntities="compatible-definition-entities",n.IncompatibleDefinitionEntities="incompatible-definition-entities",n.SamePrimitiveEntities="same-primitive-entities",n.IncompatiblePrimitiveEntities="incompatible-primitive-entities",n.SameBuiltInBaseEntities="same-built-in-base-entities",n.IncompatibleBuiltInBaseEntities="incompatible-built-in-base-entities",n.CheckUnknown="check-unknown",n))(pr||{});function hr(n,s){var e,t,i,a,o,l,d,h,y,f,v;if(n&&n.type!==r.DataType||s&&s.type!==r.DataType)throw new Error(`Expected data-type entities for comparison. But got ${n==null?void 0:n.type} and ${s==null?void 0:s.type}.`);if(n===null&&s===null)return{compatible:!0,type:"both-unconstrained"};if(n===null)return{compatible:!0,type:"a-constraint-b-unconstrained"};if(s===null)return{compatible:!0,type:"b-constraint-a-unconstrained"};if(n===s)return{compatible:!0,type:"same"};if(n.id===s.id)return{compatible:!0,type:"same"};if(n.isList!==s.isList)return{compatible:!1,type:n.isList?"a-is-list-b-is-not":"b-is-list-a-is-not"};if(n.asType!==s.asType)return{compatible:!1,type:n.asType?"a-is-template-b-is-not":"b-is-template-a-is-not"};if(!n.entity&&s.entity)return{compatible:!0,type:"a-is-untyped-b-is-not"};if(n.entity&&!s.entity)return{compatible:!0,type:"b-is-untyped-a-is-not"};if(!n.entity&&!s.entity)return{compatible:!0,type:"both-untyped"};if(((e=n.entity)==null?void 0:e.type)!==((t=s.entity)==null?void 0:t.type))return{compatible:!1,type:"type-entity-mismatch"};if(((i=n.entity)==null?void 0:i.type)===r.DefinitionEntity){if(((a=n.entity)==null?void 0:a.id)===((o=s.entity)==null?void 0:o.id))return{compatible:!0,type:"same-definition-entities"};const R=V1(n.entity,s.entity);return{compatible:R,type:R?"compatible-definition-entities":"incompatible-definition-entities"}}return((l=n.entity)==null?void 0:l.type)===r.PrimitiveEntity?((d=n.entity)==null?void 0:d.id)===((h=s.entity)==null?void 0:h.id)?{compatible:!0,type:"same-primitive-entities"}:{compatible:!1,type:"incompatible-primitive-entities"}:((y=n.entity)==null?void 0:y.type)===r.BuiltInBaseEntity?((f=n.entity)==null?void 0:f.id)===((v=s.entity)==null?void 0:v.id)?{compatible:!0,type:"same-built-in-base-entities"}:{compatible:!1,type:"incompatible-built-in-base-entities"}:{compatible:!1,type:"check-unknown"}}function n7(n){const s=n.project.builtInBaseEntities.find(i=>i.id===k.EXECUTION),e={id:O.UUID.uuid(),version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:r.DataType,isList:!1,isNullable:!1,andChildrenGroup:null,orChildrenGroup:null,asType:!1,entity:null,constant:!1,defaultValue:null,parent:null},t=b(e,n.project);return t.inferred=!0,t.sync(e),t.setParent(n),t.entity=s,t}function C1(n){return n.dataType?n.dataType:null}function rp(n){var e;const s=(e=n.declaration)==null?void 0:e.getDataType();return s&&s.isResolved?s:n.readsValue?$r(n.readsValue):null}function np(n){return n.dataType&&!n.dataType.inferred&&n.dataType.isResolved?n.dataType:n.readsValue?$r(n.readsValue):null}function w1(n){return $r(n.declaration)}function B1(n){return n.dataType&&!n.dataType.inferred?n.dataType:(n.dataType&&n.dataType.inferred,n.inferDataTypeAndSyncInstancesInputsAndOutputs(),n.dataType)}function ip(n){var s;return((s=n.declaration)==null?void 0:s.dataType)||null}function M1(n){return(n==null?void 0:n.dataType)||null}function _1(n){return(n==null?void 0:n.dataType)||null}function $r(n){switch(n.type){case r.VariableDeclaration:return B1(n);case r.ArgumentDeclaration:return C1(n);case r.ReturnDeclaration:return np(n);case r.VariableInstance:return w1(n);case r.InputMap:return rp(n);case r.OutputMap:return ip(n);case r.Property:return M1(n);case r.ValueDescriptor:return _1(n);default:throw new Error(`Cannot infer data type from entity of type ${n.type}.`)}}function El(n){switch(n.type){case r.ArgumentDeclaration:return n.getDataType();case r.InputMap:return n.getDataType();case r.VariableDeclaration:return n.getDataType();case r.VariableInstance:return n.getDataType();case r.OutputMap:return n.getDataType();case r.ReturnDeclaration:return n.getDataType();case r.Property:return n.getDataType();case r.ValueDescriptor:return n.getDataType();default:return null}}function P(n){if(n){let s=null;return typeof n=="string"?s=n:n.entityId?s=n.entityId:n.type!==r.GenericReference&&(s=n.id),s}return null}function si(n){return n.declaration||n}function i7(n){return n.type===r.VariableDeclaration?n.parent===n.project?"global-declaration":"local-declaration":n.declaration.parent===n.project?"global-instance":"local-instance"}function ap(n,s){const e=[];if(n.type===r.Project)e.push(...n.variableDeclarations);else{const i=Zt(ze(n)).filter(a=>a.type===r.VariableDeclaration);e.push(...i),n.parent&&(lt.includes(n.parent.type)||n.parent.type===r.Project)&&e.push(...ap(n.parent))}return e}function a7(n){return n.split(/[\s-]+/).filter(t=>t.length>0).map((t,i)=>i===0?t.toLowerCase():t[0].toUpperCase()+t.slice(1).toLowerCase()).join("")}function s7(n){return n.split(/[\s-]+/).filter(t=>t.length>0).map(t=>t[0].toUpperCase()+t.slice(1).toLowerCase()).join("")}function N1(n){var s;return(s=n.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:s.map(e=>e.toLowerCase()).join("-")}function Rl(n){return N1(n).toLowerCase()}function gl(n){var s,e;if(!n)return"Any data type";if(!n.entity){const t=n.isList;if(!((s=n.andChildrenGroup)!=null&&s.length)&&!((e=n.orChildrenGroup)!=null&&e.length))return t?"List of an any data type":"Any data type";let i="",a=!1,o=!1;return(n.andChildrenGroup||[]).forEach(l=>{const d=gl(l),h=vl(d);a&&(i+=" and "),l.isGroup?i+="("+h+")":a?i+=h:i+=d,a=!0,o=!0}),(n.orChildrenGroup||[]).forEach(l=>{const d=gl(l),h=vl(d);a&&(o&&(i+=","),i+=" or "),l.isGroup?i+="("+h+")":a?i+=h:i+=d,a=!0}),i}if(n.entity.type===r.PrimitiveEntity){let t=n.entity.name;switch(n.entity.name){case C.String:t="Text";break;case C.KeyValue:t="Data structure";break}return n.isList?`List of ${t}s`:`${t.slice(0,1).toUpperCase()}${t.slice(1)}`}else if(n.entity.type===r.DefinitionEntity){const t=B(n.entity,n.project);return n.isList?`List of ${t} entities`:t.slice(0,1).toUpperCase()+t.slice(1)}else if(n.entity.type===r.BuiltInBaseEntity){const t=G1(n.entity);return n.isList?`List of ${t} entities`:t.slice(0,1).toUpperCase()+t.slice(1)}else return n.isList?`List of ${n.entity.name} entities`:`${n.entity.name.slice(0,1).toUpperCase()+n.entity.name.slice(1)} entity`}function o7(n){if(!n)return"Any data type";const s=n.getDataType();return gl(s)}function bl(n){switch(n.declaration.id){case nt.Equal:return"is equal to";case nt.NotEqual:return"is not equal to";case nt.MoreThan:return"is greater than";case nt.MoreThanOrEqual:return"is greater than or equal to";case nt.LessThan:return"is less than";case nt.LessThanOrEqual:return"is less than or equal to";case nt.And:return"and";case nt.Or:return"or";case lr.Empty:return"is empty";case lr.NotEmpty:return"is not empty"}}function L1(n){return n.includes(k.HTTP_ENDPOINT)?"HTTP endpoint":n.includes(k.PERSISTED_ENTITY)?"Persisted entity":n.includes(k.CRON_JOB)?"Scheduled execution":n.includes(k.RELATIONAL_DATABASE)?"Relational database":"Entity"}function G1(n){switch(n.name){case k.HTTP_ENDPOINT:return"HTTP endpoint";case k.PERSISTED_ENTITY:return"Persisted entity";case k.CRON_JOB:return"Scheduled execution";case k.RELATIONAL_DATABASE:return"Relational database"}return"Entity"}function l7(n){const s=Mp(n);if(!s){const e=Bp(n);return e.includes(k.HTTP_ENDPOINT)?"HTTP endpoint":e.includes(k.PERSISTED_ENTITY)?"Persisted entity":e.includes(k.CRON_JOB)?"Scheduled execution":e.includes(k.RELATIONAL_DATABASE)?"Relational database":B(n,n.project)+" entity"}return B(s,n.project)+" entity"}function $1(n){let s="Find ";return n.outputsDeclarations.forEach((e,t)=>{const i=El(e),a=vl(i&&i.entity?B(i.entity,n.project):"unstructured data");t===0?s+=`${a} `:t===n.outputsDeclarations.length-1?s+=`and ${a} `:s+=`, ${a} `}),s}function F1(n){switch(n.name){case C.String:return"Text";case C.Number:return"Number";case C.Boolean:return"Boolean";case C.KeyValue:return"Data structure";case C.UUID:return"Unique identifier";case C.Date:return"Date";case C.EntityTemplate:return"Entity as template";case C.Enum:return"Enumeration";case C.File:return"File";case C.Null:return"Empty";case C.ActionDescriptor:return"Action descriptor";case C.Untyped:return"Untyped";default:return n.name}}function U1(n){switch(n.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 pe.AddIndex:return"Add at index position";case pe.DeleteFirst:return"Delete first character";case pe.DeleteLast:return"Delete last character";case pe.DeleteIndex:return"Delete at index position";case pe.Join:return"Join texts";case pe.ReplaceAllMatches:return"Replace all matches";case pe.ReplaceFirst:return"Replace first match";case pe.ReplaceLast:return"Replace last match";case pe.Split:return"Split text";case pe.ReplaceIndex:return"Replace at index position";case pe.ReplaceSingleMatch:return"Replace single match";case pe.GetFirst:return"Get first character";case pe.GetLast:return"Get last character";case pe.GetIndex:return"Get at index position";case pe.Append:return"Add at the end";case pe.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 Dt.HttpRequest:return"HTTP request";case Ze.CreateNewInstance:return"Create new copy of entity";case oe.AddIndex:return"Add item at index position";case oe.DeleteFirst:return"Delete first item";case oe.DeleteLast:return"Delete last item";case oe.DeleteIndex:return"Delete item at index position";case oe.Join:return"Join lists";case oe.ReplaceAllMatches:return"Replace all matches";case oe.ReplaceFirst:return"Replace first match";case oe.ReplaceLast:return"Replace last match";case oe.Split:return"Split list";case oe.ReplaceIndex:return"Replace at index position";case oe.ReplaceSingleMatch:return"Replace single match";case oe.GetFirst:return"Get first item";case oe.GetLast:return"Get last item";case oe.GetIndex:return"Get item at index position";case oe.Append:return"Add item at the end";case oe.Prepend:return"Add item at the start";case jr.PROJECT_PUBLICATION_COMPLETED:return"Project publication completed";default:return(n.name.slice(0,1).toUpperCase()+n.name.slice(1)).replaceAll("-"," ")}}function B(n,s){var e;if(r.FunctionDeclaration===n.type){const t=n.name;if(Object.values(er).includes(t))switch(t){case er.AbortExecution:return"Abort execution";case er.DeletePersistedEntity:return"Delete persisted entity";case er.SoftDeletePersistedEntity:return"Soft delete persisted entity";default:return _t(n.type).replaceAll("-"," ")}return t}if(r.BuiltInBaseEntity===n.type)return L1([n.name]);if(Zp.includes(n.type)&&n.type!==r.ActionDescriptor)return n.name;switch(n.type){case r.Search:return $1(n);case r.Operation:case r.InternalCall:case r.Loop:const t=Xt(n.declaration,s);return B(t,s);case r.ActionDescriptor:return U1(n);case r.BreakStatement:const i=Xt(n.parent,s);return`Stop loop ${B(i,s)}`;case r.ContinueStatement:const a=Xt(n.parent,s);return`Execute next iteration of ${B(a,s)}`;case r.FunctionCall:return Xt(n.declaration,s).name;case r.Condition:{const l=n;if((e=n.inputs)!=null&&e.length){const d=B(l.inputs[0],l.project);if(l.inputs[1]){const h=l.inputs[1].declaration.name;return`If ${d} ${bl(l)} ${h}`}return`If ${d} ${bl(l)}`}else return`If ${bl(l)}`}case r.ReturnStatement:{const l=Xt(n.parent,s);return`Output of ${B(l,s)}`}case r.InputMap:if(n.declaration){const l=Xt(n.declaration,s);return B(l,s)||""}else return n.name||"";case r.VariableInstance:{const l=Xt(n.declaration,s);return B(l,s)||""}case r.OutputMap:if(n.declaration){const l=Xt(n.declaration,s);return(l==null?void 0:l.name)||""}else return"";case r.PrimitiveEntity:case r.LiteralValue:return F1(n);default:return _t(n.type).replaceAll("-"," ")}}function Il(n,s){const e=[];n.name||e.push(new g({id:`${n.id}--${w.EmptyName}`,message:`Entity with id "${n.id}" and type "${n.type}" has an empty name. Please provide a 'name' string.`,severity:E.Error,code:w.EmptyName,issue:null}));const t=s.entities.filter(i=>i.name===n.name);return t.length&&e.push(new g({id:`${n.id}--${w.NameNotUniqueInScope}`,message:`Entity with id "${n.id}" and type "${n.type}" has a name "${n.name}" that is not unique in the project. Entity with id "${t[0].id}" has the same name.
36
+ `+a+"}",d}function vZ(n,s,e){s=ms(s);var t=s.length;if(!t)return xt(e)?e.call(n):e;for(var i=0;i<t;i++){var a=n==null?void 0:n[s[i]];a===void 0&&(a=e,i=t),n=xt(a)?a.call(n):a}return n}var EZ=0;function RZ(n){var s=++EZ+"";return n?n+s:s}function gZ(n){var s=je(n);return s._chain=!0,s}function s1(n,s,e,t,i){if(!(t instanceof s))return n.apply(e,i);var a=QA(n.prototype),o=n.apply(a,i);return In(o)?o:a}var da=Yt(function(n,s){var e=da.placeholder,t=function(){for(var i=0,a=s.length,o=Array(a),l=0;l<a;l++)o[l]=s[l]===e?arguments[i++]:s[l];for(;i<arguments.length;)o.push(arguments[i++]);return s1(n,t,this,this,o)};return t});da.placeholder=je;const o1=Yt(function(n,s,e){if(!xt(n))throw new TypeError("Bind must be called on a function");var t=Yt(function(i){return s1(n,t,s,this,e.concat(i))});return t}),ar=FA(Ht);function ii(n,s,e,t){if(t=t||[],!s&&s!==0)s=1/0;else if(s<=0)return t.concat(n);for(var i=t.length,a=0,o=Ht(n);a<o;a++){var l=n[a];if(ar(l)&&(ni(l)||_c(l)))if(s>1)ii(l,s-1,e,t),i=t.length;else for(var d=0,h=l.length;d<h;)t[i++]=l[d++];else e||(t[i++]=l)}return t}const bZ=Yt(function(n,s){s=ii(s,!1,!1);var e=s.length;if(e<1)throw new Error("bindAll must be passed function names");for(;e--;){var t=s[e];n[t]=o1(n[t],n)}return n});function IZ(n,s){var e=function(t){var i=e.cache,a=""+(s?s.apply(this,arguments):t);return An(i,a)||(i[a]=n.apply(this,arguments)),i[a]};return e.cache={},e}const l1=Yt(function(n,s,e){return setTimeout(function(){return n.apply(null,e)},s)}),AZ=da(l1,je,1);function DZ(n,s,e){var t,i,a,o,l=0;e||(e={});var d=function(){l=e.leading===!1?0:Es(),t=null,o=n.apply(i,a),t||(i=a=null)},h=function(){var y=Es();!l&&e.leading===!1&&(l=y);var f=s-(y-l);return i=this,a=arguments,f<=0||f>s?(t&&(clearTimeout(t),t=null),l=y,o=n.apply(i,a),t||(i=a=null)):!t&&e.trailing!==!1&&(t=setTimeout(d,f)),o};return h.cancel=function(){clearTimeout(t),l=0,t=i=a=null},h}function PZ(n,s,e){var t,i,a,o,l,d=function(){var y=Es()-i;s>y?t=setTimeout(d,s-y):(t=null,e||(o=n.apply(l,a)),t||(a=l=null))},h=Yt(function(y){return l=this,a=y,i=Es(),t||(t=setTimeout(d,s),e&&(o=n.apply(l,a))),o});return h.cancel=function(){clearTimeout(t),t=a=l=null},h}function SZ(n,s){return da(s,n)}function Wc(n){return function(){return!n.apply(this,arguments)}}function OZ(){var n=arguments,s=n.length-1;return function(){for(var e=s,t=n[s].apply(this,arguments);e--;)t=n[e].call(this,t);return t}}function VZ(n,s){return function(){if(--n<1)return s.apply(this,arguments)}}function d1(n,s){var e;return function(){return--n>0&&(e=s.apply(this,arguments)),n<=1&&(s=null),e}}const CZ=da(d1,2);function u1(n,s,e){s=zt(s,e);for(var t=bt(n),i,a=0,o=t.length;a<o;a++)if(i=t[a],s(n[i],i,n))return i}function c1(n){return function(s,e,t){e=zt(e,t);for(var i=Ht(s),a=n>0?0:i-1;a>=0&&a<i;a+=n)if(e(s[a],a,s))return a;return-1}}const Yc=c1(1),p1=c1(-1);function h1(n,s,e,t){e=zt(e,t,1);for(var i=e(s),a=0,o=Ht(n);a<o;){var l=Math.floor((a+o)/2);e(n[l])<i?a=l+1:o=l}return a}function y1(n,s,e){return function(t,i,a){var o=0,l=Ht(t);if(typeof a=="number")n>0?o=a>=0?a:Math.max(a+l,o):l=a>=0?Math.min(a+1,l):a+l+1;else if(e&&a&&l)return a=e(t,i),t[a]===i?a:-1;if(i!==i)return a=s(ps.call(t,o,l),GA),a>=0?a+o:-1;for(a=n>0?o:l-1;a>=0&&a<l;a+=n)if(t[a]===i)return a;return-1}}const f1=y1(1,Yc,h1),wZ=y1(-1,p1);function Hc(n,s,e){var t=ar(n)?Yc:u1,i=t(n,s,e);if(i!==void 0&&i!==-1)return n[i]}function BZ(n,s){return Hc(n,Ts(s))}function nn(n,s,e){s=vs(s,e);var t,i;if(ar(n))for(t=0,i=n.length;t<i;t++)s(n[t],t,n);else{var a=bt(n);for(t=0,i=a.length;t<i;t++)s(n[a[t]],a[t],n)}return n}function ai(n,s,e){s=zt(s,e);for(var t=!ar(n)&&bt(n),i=(t||n).length,a=Array(i),o=0;o<i;o++){var l=t?t[o]:o;a[o]=s(n[l],l,n)}return a}function m1(n){var s=function(e,t,i,a){var o=!ar(e)&&bt(e),l=(o||e).length,d=n>0?0:l-1;for(a||(i=e[o?o[d]:d],d+=n);d>=0&&d<l;d+=n){var h=o?o[d]:d;i=t(i,e[h],h,e)}return i};return function(e,t,i,a){var o=arguments.length>=3;return s(e,vs(t,a,4),i,o)}}const zc=m1(1),T1=m1(-1);function ua(n,s,e){var t=[];return s=zt(s,e),nn(n,function(i,a,o){s(i,a,o)&&t.push(i)}),t}function MZ(n,s,e){return ua(n,Wc(zt(s)),e)}function v1(n,s,e){s=zt(s,e);for(var t=!ar(n)&&bt(n),i=(t||n).length,a=0;a<i;a++){var o=t?t[a]:a;if(!s(n[o],o,n))return!1}return!0}function E1(n,s,e){s=zt(s,e);for(var t=!ar(n)&&bt(n),i=(t||n).length,a=0;a<i;a++){var o=t?t[a]:a;if(s(n[o],o,n))return!0}return!1}function an(n,s,e,t){return ar(n)||(n=la(n)),(typeof e!="number"||t)&&(e=0),f1(n,s,e)>=0}const _Z=Yt(function(n,s,e){var t,i;return xt(s)?i=s:(s=ms(s),t=s.slice(0,-1),s=s[s.length-1]),ai(n,function(a){var o=i;if(!o){if(t&&t.length&&(a=xc(a,t)),a==null)return;o=a[s]}return o==null?o:o.apply(a,e)})});function Kc(n,s){return ai(n,kc(s))}function NZ(n,s){return ua(n,Ts(s))}function R1(n,s,e){var t=-1/0,i=-1/0,a,o;if(s==null||typeof s=="number"&&typeof n[0]!="object"&&n!=null){n=ar(n)?n:la(n);for(var l=0,d=n.length;l<d;l++)a=n[l],a!=null&&a>t&&(t=a)}else s=zt(s,e),nn(n,function(h,y,f){o=s(h,y,f),(o>i||o===-1/0&&t===-1/0)&&(t=h,i=o)});return t}function LZ(n,s,e){var t=1/0,i=1/0,a,o;if(s==null||typeof s=="number"&&typeof n[0]!="object"&&n!=null){n=ar(n)?n:la(n);for(var l=0,d=n.length;l<d;l++)a=n[l],a!=null&&a<t&&(t=a)}else s=zt(s,e),nn(n,function(h,y,f){o=s(h,y,f),(o<i||o===1/0&&t===1/0)&&(t=h,i=o)});return t}var GZ=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function g1(n){return n?ni(n)?ps.call(n):wc(n)?n.match(GZ):ar(n)?ai(n,jc):la(n):[]}function b1(n,s,e){if(s==null||e)return ar(n)||(n=la(n)),n[qc(n.length-1)];var t=g1(n),i=Ht(t);s=Math.max(Math.min(s,i),0);for(var a=i-1,o=0;o<s;o++){var l=qc(o,a),d=t[o];t[o]=t[l],t[l]=d}return t.slice(0,s)}function $Z(n){return b1(n,1/0)}function FZ(n,s,e){var t=0;return s=zt(s,e),Kc(ai(n,function(i,a,o){return{value:i,index:t++,criteria:s(i,a,o)}}).sort(function(i,a){var o=i.criteria,l=a.criteria;if(o!==l){if(o>l||o===void 0)return 1;if(o<l||l===void 0)return-1}return i.index-a.index}),"value")}function ml(n,s){return function(e,t,i){var a=s?[[],[]]:{};return t=zt(t,i),nn(e,function(o,l){var d=t(o,l,e);n(a,o,d)}),a}}const UZ=ml(function(n,s,e){An(n,e)?n[e].push(s):n[e]=[s]}),xZ=ml(function(n,s,e){n[e]=s}),jZ=ml(function(n,s,e){An(n,e)?n[e]++:n[e]=1}),kZ=ml(function(n,s,e){n[e?0:1].push(s)},!0);function ZZ(n){return n==null?0:ar(n)?n.length:bt(n).length}function qZ(n,s,e){return s in e}const I1=Yt(function(n,s){var e={},t=s[0];if(n==null)return e;xt(t)?(s.length>1&&(t=vs(t,s[1])),s=fs(n)):(t=qZ,s=ii(s,!1,!1),n=Object(n));for(var i=0,a=s.length;i<a;i++){var o=s[i],l=n[o];t(l,o,n)&&(e[o]=l)}return e}),JZ=Yt(function(n,s){var e=s[0],t;return xt(e)?(e=Wc(e),s.length>1&&(t=s[1])):(s=ai(ii(s,!1,!1),String),e=function(i,a){return!an(s,a)}),I1(n,e,t)});function A1(n,s,e){return ps.call(n,0,Math.max(0,n.length-(s==null||e?1:s)))}function Xc(n,s,e){return n==null||n.length<1?s==null||e?void 0:[]:s==null||e?n[0]:A1(n,n.length-s)}function Tl(n,s,e){return ps.call(n,s==null||e?1:s)}function WZ(n,s,e){return n==null||n.length<1?s==null||e?void 0:[]:s==null||e?n[n.length-1]:Tl(n,Math.max(0,n.length-s))}function YZ(n){return ua(n,Boolean)}function HZ(n,s){return ii(n,s,!1)}const D1=Yt(function(n,s){return s=ii(s,!0,!0),ua(n,function(e){return!an(s,e)})}),zZ=Yt(function(n,s){return D1(n,s)});function Qc(n,s,e,t){CA(s)||(t=e,e=s,s=!1),e!=null&&(e=zt(e,t));for(var i=[],a=[],o=0,l=Ht(n);o<l;o++){var d=n[o],h=e?e(d,o,n):d;s&&!e?((!o||a!==h)&&i.push(d),a=h):e?an(a,h)||(a.push(h),i.push(d)):an(i,d)||i.push(d)}return i}const KZ=Yt(function(n){return Qc(ii(n,!0,!0))});function XZ(n){for(var s=[],e=arguments.length,t=0,i=Ht(n);t<i;t++){var a=n[t];if(!an(s,a)){var o;for(o=1;o<e&&an(arguments[o],a);o++);o===e&&s.push(a)}}return s}function ep(n){for(var s=n&&R1(n,Ht).length||0,e=Array(s),t=0;t<s;t++)e[t]=Kc(n,t);return e}const QZ=Yt(ep);function e7(n,s){for(var e={},t=0,i=Ht(n);t<i;t++)s?e[n[t]]=s[t]:e[n[t][0]]=n[t][1];return e}function t7(n,s,e){s==null&&(s=n||0,n=0),e||(e=s<n?-1:1);for(var t=Math.max(Math.ceil((s-n)/e),0),i=Array(t),a=0;a<t;a++,n+=e)i[a]=n;return i}function r7(n,s){if(s==null||s<1)return[];for(var e=[],t=0,i=n.length;t<i;)e.push(ps.call(n,t,t+=s));return e}function tp(n,s){return n._chain?je(s).chain():s}function P1(n){return nn(Fc(n),function(s){var e=je[s]=n[s];je.prototype[s]=function(){var t=[this._wrapped];return S5.apply(t,arguments),tp(this,e.apply(je,t))}}),je}nn(["pop","push","reverse","shift","sort","splice","unshift"],function(n){var s=pl[n];je.prototype[n]=function(){var e=this._wrapped;return e!=null&&(s.apply(e,arguments),(n==="shift"||n==="splice")&&e.length===0&&delete e[0]),tp(this,e)}}),nn(["concat","join","slice"],function(n){var s=pl[n];je.prototype[n]=function(){var e=this._wrapped;return e!=null&&(e=s.apply(e,arguments)),tp(this,e)}});var S1=P1(Object.freeze(Object.defineProperty({__proto__:null,VERSION:RA,after:VZ,all:v1,allKeys:fs,any:E1,assign:fl,before:d1,bind:o1,bindAll:bZ,chain:gZ,chunk:r7,clone:nZ,collect:ai,compact:YZ,compose:OZ,constant:$A,contains:an,countBy:jZ,create:rZ,debounce:PZ,default:je,defaults:XA,defer:AZ,delay:l1,detect:Hc,difference:D1,drop:Tl,each:nn,escape:dZ,every:v1,extend:KA,extendOwn:fl,filter:ua,find:Hc,findIndex:Yc,findKey:u1,findLastIndex:p1,findWhere:BZ,first:Xc,flatten:HZ,foldl:zc,foldr:T1,forEach:nn,functions:Fc,get:t1,groupBy:UZ,has:aZ,head:Xc,identity:jc,include:an,includes:an,indexBy:xZ,indexOf:f1,initial:A1,inject:zc,intersection:XZ,invert:zA,invoke:_Z,isArguments:_c,isArray:ni,isArrayBuffer:MA,isBoolean:CA,isDataView:hl,isDate:L5,isElement:N5,isEmpty:ys,isEqual:W5,isError:$5,isFinite:j5,isFunction:xt,isMap:z5,isMatch:kA,isNaN:GA,isNull:_5,isNumber:wA,isObject:In,isRegExp:G5,isSet:X5,isString:wc,isSymbol:BA,isTypedArray:xA,isUndefined:VA,isWeakMap:K5,isWeakSet:Q5,iteratee:Zc,keys:bt,last:WZ,lastIndexOf:wZ,map:ai,mapObject:sZ,matcher:Ts,matches:Ts,max:R1,memoize:IZ,methods:Fc,min:LZ,mixin:P1,negate:Wc,noop:n1,now:Es,object:e7,omit:JZ,once:CZ,pairs:eZ,partial:da,partition:kZ,pick:I1,pluck:Kc,property:kc,propertyOf:oZ,random:qc,range:t7,reduce:zc,reduceRight:T1,reject:MZ,rest:Tl,restArguments:Yt,result:vZ,sample:b1,select:ua,shuffle:$Z,size:ZZ,some:E1,sortBy:FZ,sortedIndex:h1,tail:Tl,take:Xc,tap:iZ,template:TZ,templateSettings:pZ,throttle:DZ,times:lZ,toArray:g1,toPath:e1,transpose:ep,unescape:cZ,union:KZ,uniq:Qc,unique:Qc,uniqueId:RZ,unzip:ep,values:la,where:NZ,without:zZ,wrap:SZ,zip:QZ},Symbol.toStringTag,{value:"Module"})));S1._=S1;function jt(n){return n.charAt(0).toUpperCase()+n.slice(1)}function vl(n){return n.charAt(0).toLowerCase()+n.slice(1)}function O1(n,s){if(n.type!==r.Property||s.type!==r.Property)throw new Error(`Expected property entities for comparison. But got ${n.type} and ${s.type}.`);return n===s||n.id===s.id?!0:n.name!==s.name||n.static!==s.static||n.abstract!==s.abstract?!1:hr(n.dataType,s.dataType).compatible}function V1(n,s){if(n.type!==r.DefinitionEntity||s.type!==r.DefinitionEntity)throw new Error(`Expected definition entities for comparison. But got ${n.type} and ${s.type}.`);if(n===s||n.id===s.id)return!0;if(n.properties.length!==s.properties.length)return!1;let e=[...s.properties];const t=[];for(let i=0;i<n.properties.length;i++){const a=n.properties[i];e.find(l=>{const d=O1(a,l);return d&&(e=e.filter(h=>h.id!==l.id)),d})||t.push(a)}return!(t.length>0)}var pr=(n=>(n.BothUnconstrained="both-unconstrained",n.AConstraintBUnconstrained="a-constraint-b-unconstrained",n.BConstraintAUnconstrained="b-constraint-a-unconstrained",n.Same="same",n.AIsListBIsNot="a-is-list-b-is-not",n.BIsListAIsNot="b-is-list-a-is-not",n.AIsNullableBIsNot="a-is-nullable-b-is-not",n.BIsNullableAIsNot="b-is-nullable-a-is-not",n.AIsTemplateBIsNot="a-is-template-b-is-not",n.BIsTemplateAIsNot="b-is-template-a-is-not",n.BothUntyped="both-untyped",n.AIsUntypedBIsNot="a-is-untyped-b-is-not",n.BIsUntypedAIsNot="b-is-untyped-a-is-not",n.TypeEntityMismatch="type-entity-mismatch",n.SameDefinitionEntities="same-definition-entities",n.CompatibleDefinitionEntities="compatible-definition-entities",n.IncompatibleDefinitionEntities="incompatible-definition-entities",n.SamePrimitiveEntities="same-primitive-entities",n.IncompatiblePrimitiveEntities="incompatible-primitive-entities",n.SameBuiltInBaseEntities="same-built-in-base-entities",n.IncompatibleBuiltInBaseEntities="incompatible-built-in-base-entities",n.CheckUnknown="check-unknown",n))(pr||{});function hr(n,s){var e,t,i,a,o,l,d,h,y,f,v;if(n&&n.type!==r.DataType||s&&s.type!==r.DataType)throw new Error(`Expected data-type entities for comparison. But got ${n==null?void 0:n.type} and ${s==null?void 0:s.type}.`);if(n===null&&s===null)return{compatible:!0,type:"both-unconstrained"};if(n===null)return{compatible:!0,type:"a-constraint-b-unconstrained"};if(s===null)return{compatible:!0,type:"b-constraint-a-unconstrained"};if(n===s)return{compatible:!0,type:"same"};if(n.id===s.id)return{compatible:!0,type:"same"};if(n.isList!==s.isList)return{compatible:!1,type:n.isList?"a-is-list-b-is-not":"b-is-list-a-is-not"};if(n.asType!==s.asType)return{compatible:!1,type:n.asType?"a-is-template-b-is-not":"b-is-template-a-is-not"};if(!n.entity&&s.entity)return{compatible:!0,type:"a-is-untyped-b-is-not"};if(n.entity&&!s.entity)return{compatible:!0,type:"b-is-untyped-a-is-not"};if(!n.entity&&!s.entity)return{compatible:!0,type:"both-untyped"};if(((e=n.entity)==null?void 0:e.type)!==((t=s.entity)==null?void 0:t.type))return{compatible:!1,type:"type-entity-mismatch"};if(((i=n.entity)==null?void 0:i.type)===r.DefinitionEntity){if(((a=n.entity)==null?void 0:a.id)===((o=s.entity)==null?void 0:o.id))return{compatible:!0,type:"same-definition-entities"};const R=V1(n.entity,s.entity);return{compatible:R,type:R?"compatible-definition-entities":"incompatible-definition-entities"}}return((l=n.entity)==null?void 0:l.type)===r.PrimitiveEntity?((d=n.entity)==null?void 0:d.id)===((h=s.entity)==null?void 0:h.id)?{compatible:!0,type:"same-primitive-entities"}:{compatible:!1,type:"incompatible-primitive-entities"}:((y=n.entity)==null?void 0:y.type)===r.BuiltInBaseEntity?((f=n.entity)==null?void 0:f.id)===((v=s.entity)==null?void 0:v.id)?{compatible:!0,type:"same-built-in-base-entities"}:{compatible:!1,type:"incompatible-built-in-base-entities"}:{compatible:!1,type:"check-unknown"}}function n7(n){const s=n.project.builtInBaseEntities.find(i=>i.id===k.EXECUTION),e={id:O.UUID.uuid(),version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:r.DataType,isList:!1,isNullable:!1,andChildrenGroup:null,orChildrenGroup:null,asType:!1,entity:null,constant:!1,defaultValue:null,parent:null},t=b(e,n.project);return t.inferred=!0,t.sync(e),t.setParent(n),t.entity=s,t}function C1(n){return n.dataType?n.dataType:null}function rp(n){var e;const s=(e=n.declaration)==null?void 0:e.getDataType();return s&&s.isResolved?s:n.readsValue?$r(n.readsValue):null}function np(n){return n.dataType&&!n.dataType.inferred&&n.dataType.isResolved?n.dataType:n.readsValue?$r(n.readsValue):null}function w1(n){return $r(n.declaration)}function B1(n){return n.dataType&&!n.dataType.inferred?n.dataType:(n.dataType&&n.dataType.inferred,n.inferDataTypeAndSyncInstancesInputsAndOutputs(),n.dataType)}function ip(n){var s;return((s=n.declaration)==null?void 0:s.dataType)||null}function M1(n){return(n==null?void 0:n.dataType)||null}function _1(n){return(n==null?void 0:n.dataType)||null}function $r(n){switch(n.type){case r.VariableDeclaration:return B1(n);case r.ArgumentDeclaration:return C1(n);case r.ReturnDeclaration:return np(n);case r.VariableInstance:return w1(n);case r.InputMap:return rp(n);case r.OutputMap:return ip(n);case r.Property:return M1(n);case r.ValueDescriptor:return _1(n);default:throw new Error(`Cannot infer data type from entity of type ${n.type}.`)}}function El(n){switch(n.type){case r.ArgumentDeclaration:return n.getDataType();case r.InputMap:return n.getDataType();case r.VariableDeclaration:return n.getDataType();case r.VariableInstance:return n.getDataType();case r.OutputMap:return n.getDataType();case r.ReturnDeclaration:return n.getDataType();case r.Property:return n.getDataType();case r.ValueDescriptor:return n.getDataType();default:return null}}function P(n){if(n){let s=null;return typeof n=="string"?s=n:n.entityId?s=n.entityId:n.type!==r.GenericReference&&(s=n.id),s}return null}function si(n){return n.declaration||n}function i7(n){return n.type===r.VariableDeclaration?n.parent===n.project?"global-declaration":"local-declaration":n.declaration.parent===n.project?"global-instance":"local-instance"}function ap(n,s){const e=[];if(n.type===r.Project)e.push(...n.variableDeclarations);else{const i=Zt(ze(n)).filter(a=>a.type===r.VariableDeclaration);e.push(...i),n.parent&&(lt.includes(n.parent.type)||n.parent.type===r.Project)&&e.push(...ap(n.parent))}return e}function a7(n){return n.split(/[\s-]+/).filter(t=>t.length>0).map((t,i)=>i===0?t.toLowerCase():t[0].toUpperCase()+t.slice(1).toLowerCase()).join("")}function s7(n){return n.split(/[\s-]+/).filter(t=>t.length>0).map(t=>t[0].toUpperCase()+t.slice(1).toLowerCase()).join("")}function N1(n){var s;return(s=n.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:s.map(e=>e.toLowerCase()).join("-")}function Rl(n){return N1(n).toLowerCase()}function gl(n){var s,e;if(!n)return"Any data type";if(!n.entity){const t=n.isList;if(!((s=n.andChildrenGroup)!=null&&s.length)&&!((e=n.orChildrenGroup)!=null&&e.length))return t?"List of an any data type":"Any data type";let i="",a=!1,o=!1;return(n.andChildrenGroup||[]).forEach(l=>{const d=gl(l),h=vl(d);a&&(i+=" and "),l.isGroup?i+="("+h+")":a?i+=h:i+=d,a=!0,o=!0}),(n.orChildrenGroup||[]).forEach(l=>{const d=gl(l),h=vl(d);a&&(o&&(i+=","),i+=" or "),l.isGroup?i+="("+h+")":a?i+=h:i+=d,a=!0}),i}if(n.entity.type===r.PrimitiveEntity){let t=n.entity.name;switch(n.entity.name){case C.String:t="Text";break;case C.KeyValue:t="Data structure";break}return n.isList?`List of ${t}s`:`${t.slice(0,1).toUpperCase()}${t.slice(1)}`}else if(n.entity.type===r.DefinitionEntity){const t=B(n.entity,n.project);return n.isList?`List of ${t} entities`:t.slice(0,1).toUpperCase()+t.slice(1)}else if(n.entity.type===r.BuiltInBaseEntity){const t=G1(n.entity);return n.isList?`List of ${t} entities`:t.slice(0,1).toUpperCase()+t.slice(1)}else return n.isList?`List of ${n.entity.name} entities`:`${n.entity.name.slice(0,1).toUpperCase()+n.entity.name.slice(1)} entity`}function o7(n){if(!n)return"Any data type";const s=n.getDataType();return gl(s)}function bl(n){switch(n.declaration.id){case nt.Equal:return"is equal to";case nt.NotEqual:return"is not equal to";case nt.MoreThan:return"is greater than";case nt.MoreThanOrEqual:return"is greater than or equal to";case nt.LessThan:return"is less than";case nt.LessThanOrEqual:return"is less than or equal to";case nt.And:return"and";case nt.Or:return"or";case lr.Empty:return"is empty";case lr.NotEmpty:return"is not empty"}}function L1(n){return n.includes(k.HTTP_ENDPOINT)?"HTTP endpoint":n.includes(k.PERSISTED_ENTITY)?"Persisted entity":n.includes(k.CRON_JOB)?"Scheduled execution":n.includes(k.RELATIONAL_DATABASE)?"Relational database":"Entity"}function G1(n){switch(n.name){case k.HTTP_ENDPOINT:return"HTTP endpoint";case k.PERSISTED_ENTITY:return"Persisted entity";case k.CRON_JOB:return"Scheduled execution";case k.RELATIONAL_DATABASE:return"Relational database"}return"Entity"}function l7(n){const s=Mp(n);if(!s){const e=Bp(n);return e.includes(k.HTTP_ENDPOINT)?"HTTP endpoint":e.includes(k.PERSISTED_ENTITY)?"Persisted entity":e.includes(k.CRON_JOB)?"Scheduled execution":e.includes(k.RELATIONAL_DATABASE)?"Relational database":B(n,n.project)+" entity"}return B(s,n.project)+" entity"}function $1(n){let s="Find ";return n.outputsDeclarations.forEach((e,t)=>{const i=El(e),a=vl(i&&i.entity?B(i.entity,n.project):"unstructured data");t===0?s+=`${a} `:t===n.outputsDeclarations.length-1?s+=`and ${a} `:s+=`, ${a} `}),s}function F1(n){switch(n.name){case C.String:return"Text";case C.Number:return"Number";case C.Boolean:return"Boolean";case C.KeyValue:return"Data structure";case C.UUID:return"Unique identifier";case C.Date:return"Date";case C.EntityTemplate:return"Entity as template";case C.Enum:return"Enumeration";case C.File:return"File";case C.Null:return"Empty";case C.ActionDescriptor:return"Action descriptor";case C.Untyped:return"Untyped";default:return n.name}}function U1(n){switch(n.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 pe.AddIndex:return"Add at index position";case pe.DeleteFirst:return"Delete first character";case pe.DeleteLast:return"Delete last character";case pe.DeleteIndex:return"Delete at index position";case pe.Join:return"Join texts";case pe.ReplaceAllMatches:return"Replace all matches";case pe.ReplaceFirst:return"Replace first match";case pe.ReplaceLast:return"Replace last match";case pe.Split:return"Split text";case pe.ReplaceIndex:return"Replace at index position";case pe.ReplaceSingleMatch:return"Replace single match";case pe.GetFirst:return"Get first character";case pe.GetLast:return"Get last character";case pe.GetIndex:return"Get at index position";case pe.Append:return"Add at the end";case pe.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 Dt.HttpRequest:return"HTTP request";case Ze.CreateNewInstance:return"Create new copy of entity";case oe.AddIndex:return"Add item at index position";case oe.DeleteFirst:return"Delete first item";case oe.DeleteLast:return"Delete last item";case oe.DeleteIndex:return"Delete item at index position";case oe.Join:return"Join lists";case oe.ReplaceAllMatches:return"Replace all matches";case oe.ReplaceFirst:return"Replace first match";case oe.ReplaceLast:return"Replace last match";case oe.Split:return"Split list";case oe.ReplaceIndex:return"Replace at index position";case oe.ReplaceSingleMatch:return"Replace single match";case oe.GetFirst:return"Get first item";case oe.GetLast:return"Get last item";case oe.GetIndex:return"Get item at index position";case oe.Append:return"Add item at the end";case oe.Prepend:return"Add item at the start";case jr.PROJECT_PUBLICATION_COMPLETED:return"Project publication completed";default:return(n.name.slice(0,1).toUpperCase()+n.name.slice(1)).replaceAll("-"," ")}}function B(n,s){var e;if(r.FunctionDeclaration===n.type){const t=n.name;if(Object.values(er).includes(t))switch(t){case er.AbortExecution:return"Abort execution";case er.DeletePersistedEntity:return"Delete persisted entity";case er.SoftDeletePersistedEntity:return"Soft delete persisted entity";default:return jt(n.type).replaceAll("-"," ")}return t}if(r.BuiltInBaseEntity===n.type)return L1([n.name]);if(Zp.includes(n.type)&&n.type!==r.ActionDescriptor)return n.name;switch(n.type){case r.Search:return $1(n);case r.Operation:case r.InternalCall:case r.Loop:const t=Xt(n.declaration,s);return B(t,s);case r.ActionDescriptor:return U1(n);case r.BreakStatement:const i=Xt(n.parent,s);return`Stop loop ${B(i,s)}`;case r.ContinueStatement:const a=Xt(n.parent,s);return`Execute next iteration of ${B(a,s)}`;case r.FunctionCall:return Xt(n.declaration,s).name;case r.Condition:{const l=n;if((e=n.inputs)!=null&&e.length){const d=B(l.inputs[0],l.project);if(l.inputs[1]){const h=l.inputs[1].declaration.name;return`If ${d} ${bl(l)} ${h}`}return`If ${d} ${bl(l)}`}else return`If ${bl(l)}`}case r.ReturnStatement:{const l=Xt(n.parent,s);return`Output of ${B(l,s)}`}case r.InputMap:if(n.declaration){const l=Xt(n.declaration,s);return B(l,s)||""}else return n.name||"";case r.VariableInstance:{const l=Xt(n.declaration,s);return B(l,s)||""}case r.OutputMap:if(n.declaration){const l=Xt(n.declaration,s);return(l==null?void 0:l.name)||""}else return"";case r.PrimitiveEntity:case r.LiteralValue:return F1(n);default:return jt(n.type).replaceAll("-"," ")}}function Il(n,s){const e=[];n.name||e.push(new g({id:`${n.id}--${w.EmptyName}`,message:`Entity with id "${n.id}" and type "${n.type}" has an empty name. Please provide a 'name' string.`,severity:E.Error,code:w.EmptyName,issue:null}));const t=s.entities.filter(i=>i.name===n.name);return t.length&&e.push(new g({id:`${n.id}--${w.NameNotUniqueInScope}`,message:`Entity with id "${n.id}" and type "${n.type}" has a name "${n.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:E.Error,code:w.NameNotUniqueInScope,issue:null})),e}function sp(n,s){const e=[];n.name||e.push(new g({id:`${n.id}--${w.EmptyName}`,message:`Entity with id "${n.id}" and type "${n.type}" has an empty name. Please provide a 'name' string.`,severity:E.Error,code:w.EmptyName,issue:null}));const t=n.parent?P(n.parent):null;let i=s;t&&(i=s.get(t));const a=[];i.type===r.DefinitionEntity?a.push(...i.methods.map(l=>l)):i.type===r.Project?a.push(...i.functions.map(l=>l)):i.type===r.Loop?i.body&&a.push(i.body):i.type===r.InstalledProject&&a.push(...i.functions.map(l=>l));const o=a.filter(l=>l.name===n.name);return o.length&&e.push(new g({id:`${n.id}--${w.NameNotUniqueInScope}`,message:`Entity with id "${n.id}" and type "${n.type}" has a name "${n.name}" that is not unique in ${i.type===r.Project?"the globally declared project scope":"its parent entity"}. Entity with id "${o[0].id}" has the same name.
38
38
  Please provide a unique 'name' string.`,severity:E.Error,code:w.NameNotUniqueInScope,issue:null})),e}function op(n,s){const e=[];n.name||e.push(new g({id:`${n.id}--${w.EmptyName}`,message:`Entity with id "${n.id}" and type "${n.type}" has an empty name. Please provide a 'name' string.`,severity:E.Error,code:w.EmptyName,issue:null}));const t=n.parent&&Xt(n.parent,s)||s;if(!t)e.push(new g({id:`${n.id}--parent-reference--${T.ReferencedEntityNotFound}`,message:`The entity with id '${n.parent}' that isn't yet found in the project. Perhaps it should be created first. Or perhaps the ID is incorrect.`,severity:E.Error,code:T.ReferencedEntityNotFound,issue:null}));else{const a=ap(t).filter(o=>o.name===n.name);a.length&&e.push(new g({id:`${n.id}--${w.NameNotUniqueInScope}`,message:`Entity with id "${n.id}" and type "${n.type}" has a name "${n.name}" that is not unique in its scope or higher scopes. Entity with id "${a[0].id}" has the same name.
39
39
  Please provide a unique 'name' string.`,severity:E.Error,code:w.NameNotUniqueInScope,issue:null}))}return e}function lp(n,s){const e=[];n.name||e.push(new g({id:`${n.id}--${w.EmptyName}`,message:`Entity with id "${n.id}" and type "${n.type}" has an empty name. Please provide a 'name' string.`,severity:E.Error,code:w.EmptyName,issue:null}));const t=P(n.parent);if(!t)e.push(new g({id:`${n.id}--parent-reference--${T.InvalidReferenceObjectStructure}`,message:`Reference object at 'parent' property for entity with id "${n.id}" and type "${n.type}" is not a valid reference. A reference needs to be a 'id' string of an existing entity in the project.`,severity:E.Error,code:T.InvalidReferenceObjectStructure,issue:null}));else{const i=s.get(t);if(!i)e.push(new g({id:`${n.id}--parent-reference--${T.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:E.Error,code:T.ReferencedEntityNotFound,issue:null}));else{const o=i.properties.filter(l=>l.name===n.name);o.length&&e.push(new g({id:`${n.id}--${w.NameNotUniqueInScope}`,message:`Entity with id "${n.id}" and type "${n.type}" has a name "${n.name}" that is not unique among all properties in the parent entity. Entity with id "${o[0].id}" has the same name.
@@ -42,7 +42,7 @@ Please provide a unique 'name' string.`,severity:E.Error,code:w.NameNotUniqueInS
42
42
  Please provide a unique 'name' string.`,severity:E.Error,code:w.NameNotUniqueInScope,issue:null}))}}return e}function d7(n,s){switch(n.type){case r.DefinitionEntity:return Il(n,s);case r.FunctionDeclaration:return sp(n,s);case r.VariableDeclaration:return op(n,s);case r.Property:return lp(n,s);case r.ArgumentDeclaration:return dp(n,s);case r.ReturnDeclaration:return up(n,s);default:return[]}}function x1(n,s,e){const i=`${Rl(n)}-${s}-id`;return e.instances[i]?O.UUID.uuid():i}function cp(n,s){let e="",t=null;if(n.parent){const a=s.get(n.parent);a&&(t=a)}let i="";return t&&(i=`${Rl(B(t,s))}-`),e=`${i}${Rl(B(n,s))}-id`,s.instances[e]?O.UUID.uuid():e}function it(n,s,e="uuid"){return e==="semantic"?x1(B(n,s),n.type,s):O.UUID.uuid()}function u7(n){var o;const s=wk(),e=n.toJSON();s.safeParse(e).success;const i=c7(n);(o=n.dataType)==null||o.validate();const a=[...i];if(n.id==="80c86e1b-caca-4ba5-9b1f-38f72d10e4a3"){const l=le({id:`${n.id}--${U.PropertyImplementsNonAbstact}`,message:`Property "${B(n,n.project)}" with id "${n.id}" implements a non-abstract property "${B(n,n.project)}" with id "${n.id}".`,issue:null,severity:E.Error,code:U.PropertyImplementsNonAbstact,entity:n});a.push(l.error)}return a}function c7(n){const s=[];if(!n.implements)return s;const e=n.implements;if(!e.abstract){const i=le({id:`${n.id}--${U.PropertyImplementsNonAbstact}`,message:`Property "${B(n,n.project)}" with id "${n.id}" implements a non-abstract property "${B(e,n.project)}" with id "${e.id}".`,issue:null,severity:E.Error,code:U.PropertyImplementsNonAbstact,entity:n});s.push(i.error)}if(n.static&&!e.static){const i=le({id:`${n.id}--${U.NonStaticPropertyImplementsStatic}`,message:`Static property "${B(n,n.project)}" with id "${n.id}" implements a non-static property "${B(e,n.project)}" with id "${e.id}".`,issue:null,severity:E.Error,code:U.NonStaticPropertyImplementsStatic,entity:n});s.push(i.error)}if(!n.static&&e.static){const i=le({id:`${n.id}--${U.StaticPropertyImplementsNonStatic}`,message:`Non-static property "${B(n,n.project)}" with id "${n.id}" implements a static property "${B(e,n.project)}" with id "${e.id}".`,issue:null,severity:E.Error,code:U.StaticPropertyImplementsNonStatic,entity:n});s.push(i.error)}if(!hr(n.dataType,e.dataType)){const i=le({id:`${n.id}--${U.PropertyImplementsIncompatibleType}`,message:`Property "${B(n,n.project)}" with id "${n.id}" implements a property "${B(e,n.project)}" with id "${e.id}" that has an incompatible data type.`,issue:null,severity:E.Error,code:U.PropertyImplementsIncompatibleType,entity:n});s.push(i.error)}return xe(n.errors,s)}function p7(n,s){const e=[];if(n.parent){const i=s.get(n.parent);if(!i)e.push(new g({id:`${n.id}--${n.parent}--${T.ReferencedEntityNotFound}`,code:T.ReferencedEntityNotFound,severity:E.Error,message:`Entity of type "${n.type}" with id "${n.id}", is referencing an entity with id "${n.parent}" that isn't yet found in the project. Perhaps it should be created first. Or perhaps the ID is incorrect.`,issue:null}));else{const a=Cn(i);if(a){const o=i!==a?`The entity of type '${n.type}' with id '${n.id}' have 'parent' with id '${n.parent}' because the entity belongs to a built-in '${a.type}' entity with id '${a.id}' (${B(a,i.project)}) higher up in the tree.`:`The entity of type '${n.type}' with id '${n.id}' have 'parent' with id '${n.parent}' because it is a built-in entity of type ${a.type}.`;e.push(new g({id:`${n.id}--${T.InvalidBuiltInEntityReference}`,code:T.InvalidBuiltInEntityReference,severity:E.Error,message:o,issue:null}))}else if(![r.DefinitionEntity].includes(i.type))e.push(new g({id:`${n.id}--${n.parent}--${T.InvalidParentReference}`,code:T.InvalidParentReference,severity:E.Error,message:`Entity of type "${n.type}" with id "${n.id}", has a parent reference that isn't pointing to an entity of type 'definition-entity'.`,issue:null}));else{const l=Vn(i).filter(d=>!d.interactive);if(l.length){let d=l.length>1?`The entity of type '${n.type}' with id '${n.id}' can't be added to the 'parent' entity with id '${i.id}' because it extends or implements multiple '${r.BuiltInBaseEntity}' entities that are non-interactive ("${K(l.map(h=>B(h,h.project)),'", "','" and "')}").`:`The entity of type '${n.type}' with id '${n.id}' can't be added to the 'parent' entity with id '${i.id}' because it extends or implements a '${r.BuiltInBaseEntity}' entity that is non-interactive ("${B(l[0],l[0].project)}").`;d+=`
43
43
  ${Sn}`,e.push(new g({id:`${n.id}--${T.NonInteractiveEntityReferenced}`,code:T.NonInteractiveEntityReferenced,severity:E.Error,message:d,issue:null}))}else if(n.implements){const d=s.get(n.implements);if(n.id===n.implements)return e.push(new g({id:`${n.id}--${n.implements}--${T.SelfReference}`,code:T.SelfReference,severity:E.Error,message:`Entity of type "${n.type}" with id "${n.id}", has a reference to itself at 'implements'. This is not allowed. Change the reference string or the 'entityId' property of the reference object.`,issue:null})),e;if(!d)e.push(new g({id:`${n.id}--${n.implements}--${T.ReferencedEntityNotFound}`,code:T.ReferencedEntityNotFound,severity:E.Error,message:`Entity of type "${n.type}" with id "${n.id}", is referencing an entity with id "${n.implements}" that isn't yet found in the project. Perhaps it should be created first. Or perhaps the ID is incorrect.`,issue:null}));else{const h=i.properties.find(y=>{var f;return((f=y.implements)==null?void 0:f.id)===n.implements});h?e.push(new g({id:`${n.id}--${w.PropertyOverwrite}`,code:w.PropertyOverwrite,severity:E.Error,message:`The property with id "${n.id}" is trying to implement the property with id "${n.implements}", but the parent entity already has a property with id '${h.id}' that implements the same base property.`,issue:null})):[r.Property].includes(d.type)?d.abstract||e.push(new g({id:`${n.id}--${n.implements}--${T.InvalidImplementsReference}`,code:T.InvalidImplementsReference,severity:E.Error,message:`Entity of type "${n.type}" with id "${n.id}", has an 'implements' reference that isn't pointing to an abstract entity.`,issue:null})):e.push(new g({id:`${n.id}--${n.implements}--${T.InvalidImplementsReference}`,code:T.InvalidImplementsReference,severity:E.Error,message:`Entity of type "${n.type}" with id "${n.id}", has an 'implements' reference that isn't pointing to an entity of type 'property'.`,issue:null}))}}}}}const t=ft(n,{},s);return e.push(...t.errors),e}class He{constructor(s){u(this,"version");u(this,"previousVersion",null);u(this,"createdAt");u(this,"deleted",!1);u(this,"author");this.version=s.version,this.previousVersion=s.previousVersion,this.createdAt=$(s.createdAt).toDate(),this.deleted=s.deleted,this.author=s.author}sync(s){this.version=s.version||this.version,this.previousVersion=s.previousVersion||this.previousVersion,this.createdAt=s.createdAt?$(s.createdAt).toDate():this.createdAt,this.deleted=s.deleted!==void 0?s.deleted:this.deleted,this.author=s.author||this.author}}const me=class me extends He{constructor(e,t){super(e);u(this,"initialData");u(this,"id");u(this,"name");u(this,"description",null);u(this,"private");u(this,"abstract");u(this,"index");u(this,"static");u(this,"required");u(this,"constant",!1);u(this,"type",r.Property);u(this,"hidden",!1);u(this,"defaultValue",null);u(this,"dataType",null);u(this,"implements",null);u(this,"project");u(this,"errors",[]);u(this,"parent");u(this,"initialized",!1);u(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.abstract=e.abstract,this.index=e.index,this.static=e.static,this.required=e.required||!1,this.hidden=e.hidden||!1,this.constant=e.constant||!1}static fromGenerationTarget(e,t){const i=P(e.parent),a=t.get(i);let o=null;if(e.implements){const h=P(e.implements);o=t.get(h)}const l={id:e.id,version:"1",createdAt:$().toDate(),author:"1",previousVersion:null,deleted:!1,name:e.name,type:r.Property,index:a.properties.length,private:e.private||!1,abstract:e.abstract||!1,static:e.static||!1,required:e.required||!1,constant:e.constant||!1,hidden:!1,description:e.description,defaultValue:null,implements:o,dataType:null,parent:a},d=b(l,t);return d.setParent(a),d.initChildren(),d}static validateGenerationTarget(e,t){let i=JSON.parse(JSON.stringify(e));const a=[],o=p7(i,t),l=lp(i,t);return a.push(...o,...l,...et(i)),{errors:a,modifiedData:i}}get isExtendedProperty(){const e=this.parent.allBasePropertiesFromExtendedAndImplementedEntities.find(t=>t.name===this.name);return!!e&&e.id!==this.id&&!e.abstract}validateGeneratedUpdate(e){const t=[];return e.parent&&t.push(new g({id:`${this.id}--${T.InvalidParentUpdate}`,code:T.InvalidParentUpdate,severity:E.Error,message:`Entity of type '${this.type}' with id '${this.id}' cannot have the 'parent' property updated, as it would mean moving the '${this.type}' entity to another parent entity.
44
44
  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})),(e.readsValue||e.writesValue)&&t.push(new g({id:`${this.id}--${w.InvalidObjectStructure}`,code:w.InvalidObjectStructure,severity:E.Error,message:`Entity of type '${this.type}' with id '${this.id}' is not a value reading or writing entity.
45
- ${Sl}`,issue:null})),{errors:t,modifiedData:e}}hydrateAncestors(){const e=[],t=[],i=[];if(this.initialData.parent){const a=P(this.initialData.parent),o=this.project.get(a);if(o)this.setParent(o),e.push(o);else throw new Error(`${_t(this.type)} with id '${this.id}' has a parent reference "${a}" which is missing in the project`)}else throw new Error(`${_t(this.type)} with id '${this.id}' is missing a parent reference`);if(this.initialData.implements){const a=P(this.initialData.implements),o=this.project.get(a);o&&(this.setImplements(o),e.push(o))}return{updated:m(e),added:m(t),removed:m(i),self:this}}afterAllChildrenInitialized(){const e=[],t=[],i=[];return this.initialized=!0,{updated:m(e),added:m(t),removed:m(i),self:this}}addSelfToProject(){const e=[this],t=[],i=[];return this.parent.addProperty(this),e.push(this.parent),{updated:m(e),added:m(t),removed:m(i),self:this}}setParent(e){return this.parent=e,this}setImplements(e){return this.implements=e,this}initChildren(){if(this.initialized)return this;if(this.initialized=!0,this.initialData.defaultValue&&(this.defaultValue=b(this.initialData.defaultValue,this.project),this.defaultValue.setParent(this),this.defaultValue.initChildren()),this.initialData.dataType){const e=b(this.initialData.dataType,this.project);e.setParent(this),e.initChildren(),this.dataType=e}if(this.initialData.implements){const e=b(this.initialData.implements,this.project);this.implements=e}return this.afterAllChildrenInitialized(),this}subscribe(){return this.project.subscribeInstance(this),this}unsubscribe(){return this.project.unsubscribeInstance(this),this}sync(e){return super.sync(e),this.name=e.name||this.name,this.description=e.description||this.description,this.abstract=e.abstract!==void 0?e.abstract:this.abstract,this.private=e.private!==void 0?e.private:this.private,this.index=e.index||(e.index!==0?this.index:0),this.static=e.static!==void 0?e.static:this.static,this.hidden=e.hidden!==void 0?e.hidden:this.hidden,this.constant=e.constant!==void 0?e.constant:this.constant,this.required=e.required!==void 0?e.required:this.required,this}async load(e=L,...t){return await me.repository.load(this.id,...t),this}async create(e=L,...t){return await me.repository.create(this.toShallowJSON(),...t),this}async update(e=L,...t){return await me.repository.update(this.toShallowJSON(),...t),this}async delete(e=L,...t){return await me.repository.delete(this.id,...t),this}remove({ignoreUpstream:e,seenEntities:t}={ignoreUpstream:!1,seenEntities:new Set}){const i=[],a=[];if(t.has(this.id))return{affected:[],removed:[]};if(t.add(this.id),a.push(this),this.unsubscribe(),this.defaultValue){const{affected:o,removed:l}=this.defaultValue.remove({ignoreUpstream:!0,seenEntities:t});i.push(...o),a.push(...l)}if(this.dataType){const{affected:o,removed:l}=this.dataType.remove({ignoreUpstream:!0,seenEntities:t});i.push(...o),a.push(...l)}return e||this.parent.type===r.DefinitionEntity&&(this.parent.removeProperty(this),i.push(this.parent)),{affected:m(i),removed:m(a)}}restore({seenEntities:e}={seenEntities:new Set}){const t=[];if(e.has(this.id))return{affected:[],self:this};if(e.add(this.id),this.subscribe(),this.defaultValue){const{affected:i}=this.defaultValue.restore({seenEntities:e});t.push(...i)}if(this.dataType){const{affected:i}=this.dataType.restore({seenEntities:e});t.push(...i)}return this.parent.type===r.DefinitionEntity&&(this.parent.addProperty(this),t.push(this.parent)),{affected:t,self:this}}toFlat(e=new Set){var i,a;return e.has(this.id)?[]:(e.add(this.id),[this,...((i=this.defaultValue)==null?void 0:i.toFlat(e))||[],...((a=this.dataType)==null?void 0:a.toFlat(e))||[],...this.parent.toFlat(e)])}toFlatIds(e=new Set){var i,a;return e.has(this.id)?[]:(e.add(this.id),[this.id,...((i=this.defaultValue)==null?void 0:i.toFlatIds(e))||[],...((a=this.dataType)==null?void 0:a.toFlatIds(e))||[],...this.parent.toFlatIds(e)])}toJSON(e=new Set){var t,i,a;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,index:this.index,private:this.private,required:this.required,static:this.static,constant:this.constant,abstract:this.abstract,hidden:this.hidden,defaultValue:((t=this.defaultValue)==null?void 0:t.toJSON(e))||null,dataType:((i=this.dataType)==null?void 0:i.toJSON(e))||null,implements:((a=this.implements)==null?void 0:a.toJSON(e))||null,parent:this.parent.toReference()})}toJSONClone(e=F){var i,a,o,l,d,h,y;let t;return(i=e.seenEntityMaps)!=null&&i.has(this.id)?t=e.seenEntityMaps.get(this.id):(t=e.newId||it(this,this.project,e.uuidStrategy),e.seenEntityMaps&&e.seenEntityMaps.set(this.id,t)),(a=e.seenEntities)!=null&&a.has(t)||(o=e.seenEntities)!=null&&o.has(this.id)?this.toReference({seenEntityMaps:e.seenEntityMaps}):((l=e.seenEntities)==null||l.add(t),(d=e.seenEntities)==null||d.add(this.id),{id:t,version:"1",createdAt:$().toDate(),author:"1",previousVersion:null,deleted:!1,type:this.type,name:this.name,description:this.description,index:this.index,private:this.private,required:this.required,static:this.static,constant:this.constant,abstract:this.abstract,hidden:this.hidden,defaultValue:((h=this.defaultValue)==null?void 0:h.toJSONClone({...e,newId:null}))||null,dataType:((y=this.dataType)==null?void 0:y.toJSONClone({...e,newId:null}))||null,implements:(()=>{var f;return this.implements&&this.project.getBuiltIn(this.implements.id)?this.implements.toJSON():((f=this.implements)==null?void 0:f.toJSONClone({...e,newId:null}))||null})(),parent:this.parent.toReference({seenEntityMaps:e.seenEntityMaps})})}toReference(e=F){var i;let t=this.id;return(i=e.seenEntityMaps)!=null&&i.has(this.id)&&(t=e.seenEntityMaps.get(this.id)),{id:t+"--"+O.UUID.uuid()+"--ref",type:r.GenericReference,entityId:t,version:this.version,entityType:this.type}}toShallowJSON(e=F){var i,a,o,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,name:this.name,description:this.description,type:this.type,index:this.index,private:this.private,required:this.required,abstract:this.abstract,static:this.static,constant:this.constant,hidden:this.hidden,defaultValue:((a=this.defaultValue)==null?void 0:a.toReference(e))||null,dataType:((o=this.dataType)==null?void 0:o.toReference(e))||null,implements:((l=this.implements)==null?void 0:l.toReference(e))||null,parent:this.parent.toReference(e)}}toFlatJSON(e=new Set){var i,a,o;return e.has(this.id)?[]:(e.add(this.id),[this.toShallowJSON(),...((i=this.defaultValue)==null?void 0:i.toFlatJSON(e))||[],...((a=this.dataType)==null?void 0:a.toFlatJSON(e))||[],...((o=this.implements)==null?void 0:o.toFlatJSON(e))||[],...this.parent.toFlatJSON(e)])}toGenerationTarget(){var e;return{id:this.id,name:this.name,description:this.description,type:this.type,private:this.private,required:this.required,abstract:this.abstract,static:this.static,implements:((e=this.implements)==null?void 0:e.id)||null,parent:this.parent.id}}toFlatGenerationTarget(e=new Set){var i,a;return e.has(this.id)?[]:(e.add(this.id),[this.toGenerationTarget(),...((i=this.defaultValue)==null?void 0:i.toFlatGenerationTarget(e))||[],...((a=this.dataType)==null?void 0:a.toFlatGenerationTarget(e))||[]])}clearErrors(){var e,t;return this.errors=[],(e=this.defaultValue)==null||e.clearErrors(),(t=this.dataType)==null||t.clearErrors(),this}validate(){return this.errors=u7(this),this.errors.length,{success:!0,error:null,data:null}}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}clone(e=null,t=null,i=!0){var I,D;let a=at(e,this);const o=t||O.UUID.uuid(),l=o.split("-id"),d=l[l.length-1||0]||o;let h=e||this.parent;const y={hidden:!1,id:o,version:O.UUID.uuid(),createdAt:this.createdAt,author:this.author,previousVersion:this.version,deleted:this.deleted,type:this.type,name:this.name,description:this.description,index:this.index,private:this.private,constant:this.constant,required:this.required,abstract:this.abstract,static:this.static,defaultValue:null,dataType:null,implements:this.implements,parent:h},f=tt(y,a);i&&f.subscribe(),f.setParent(h),f.initChildren();const v=((I=this.dataType)==null?void 0:I.clone(f,O.UUID.uuid(),i))||null;v&&f.setDataType(v);const R=(D=this.defaultValue)==null?void 0:D.clone(f,d+"-default-value-id",i);return f.defaultValue=R||null,this.implements&&(f.implements=this.implements),f.addSelfToProject(),f}setDataType(e){return this.dataType=e,this}removeDataType(){return this.dataType=null,this}getDataType(){return this.dataType}getDefaultValue(){return this.defaultValue}setDefaultValue(e){return this.defaultValue=e,this}};u(me,"repository",{create:async(e,...t)=>e,update:async(e,...t)=>e,delete:async(e,...t)=>{},load:async(e,...t)=>null}),u(me,"type",r.Property),u(me,"USER_MANAGED_PARENT_TYPES",[r.DefinitionEntity]),u(me,"PARENT_TYPES",[...me.USER_MANAGED_PARENT_TYPES,r.PrimitiveEntity,r.BuiltInBaseEntity]),u(me,"MUTABLE_BASE_PROPERTIES",["name","description","private","abstract","static","required","constant"]),u(me,"INMUTABLE_BASE_PROPERTIES",["id","type","version"]),u(me,"BASE_PROPERTIES",[...me.MUTABLE_BASE_PROPERTIES,...me.INMUTABLE_BASE_PROPERTIES]),u(me,"MUTABLE_META_PROPERTIES",[...me.MUTABLE_BASE_PROPERTIES,"index"]),u(me,"INMUTABLE_META_PROPERTIES",[...me.INMUTABLE_BASE_PROPERTIES]),u(me,"META_PROPERTIES",[...me.MUTABLE_META_PROPERTIES,...me.INMUTABLE_META_PROPERTIES]),u(me,"MUTABLE_UPSTREAM_PROPERTIES",[]),u(me,"INMUTABLE_UPSTREAM_PROPERTIES",["parent","implements"]),u(me,"UPSTREAM_PROPERTIES",[...me.MUTABLE_UPSTREAM_PROPERTIES,...me.INMUTABLE_UPSTREAM_PROPERTIES]),u(me,"MUTABLE_DOWNSTREAM_PROPERTIES",["dataType"]),u(me,"INMUTABLE_DOWNSTREAM_PROPERTIES",[]),u(me,"DOWNSTREAM_PROPERTIES",[...me.MUTABLE_DOWNSTREAM_PROPERTIES,...me.INMUTABLE_DOWNSTREAM_PROPERTIES]),u(me,"PROPERTIES",[...me.META_PROPERTIES,...me.UPSTREAM_PROPERTIES,...me.DOWNSTREAM_PROPERTIES]);let oi=me;function h7(n){const s=Y3(),e=n.toJSON();s.safeParse(e).success;const i=y7(n),a=f7(n),o=Kt(n);n.inputs.forEach(d=>d.validate()),o.forEach(d=>d.validate());const l=[...i,...a];if(n.id==="getCompanyByIdEndpointReachedEntityEvent"){const d=le({id:`${n.id}--${U.PropertyImplementsNonAbstact}`,message:`Property "${B(n,n.project)}" with id "${n.id}" implements a non-abstract property "${B(n,n.project)}" with id "${n.id}".`,issue:null,severity:E.Error,code:U.PropertyImplementsNonAbstact,entity:n});l.push(d.error)}return xe(n.errors,l)}function y7(n){const s=[];if(!n.calls.length){const e=le({id:`${n.id}--${U.ScopeWithoutLogic}`,message:`Action "${B(n,n.project)}" with id "${n.id}" does not have any logic defined. So it doesn't do anything.`,issue:null,severity:E.Warning,code:U.ScopeWithoutLogic,entity:n});s.push(e.error)}return xe(n.errors,s)}function f7(n){const s=[];return n.implements,xe(n.errors,s)}const Te=class Te extends He{constructor(e,t){super(e);u(this,"initialData");u(this,"id");u(this,"name");u(this,"description",null);u(this,"x");u(this,"y");u(this,"collapsed");u(this,"private");u(this,"index",null);u(this,"type",r.FunctionDeclaration);u(this,"implements",null);u(this,"inputs",[]);u(this,"returnStatements",[]);u(this,"calls",[]);u(this,"parent");u(this,"detachedChildren",[]);u(this,"errors",[]);u(this,"project");u(this,"initialized",!1);u(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 fromGenerationTarget(e,t){let i=t;if(e.parent){const d=P(e.parent);i=t.get(d)}let a=null;if(e.implements){const d=P(e.implements);a=t.get(d)}const o={id:e.id,version:"1",createdAt:$().toDate(),author:"1",previousVersion:null,deleted:!1,name:e.name,type:r.FunctionDeclaration,index:i.type===r.DefinitionEntity?i.methods.length:null,description:e.description,collapsed:!1,private:!1,returnStatements:[],calls:[],inputs:[],implements:a,x:0,y:0,parent:i},l=b(o,t);return l.setParent(i),l.initChildren(),l}static validateGenerationTarget(e,t){var f;let i=JSON.parse(JSON.stringify(e));const a=[],o=ft(i,{parent:{list:!1,types:[r.Project,r.InstalledProject,r.DefinitionEntity,r.Loop],optional:!0},implements:{list:!1,types:[r.ActionDescriptor],optional:!0}},t);i=o.modifiedData;const l=sp(i,t),d=i.parent?t.get(i.parent):null;if(d&&d.type===r.DefinitionEntity){const v=d,I=Vn(v).filter(D=>!D.interactive);if(I.length){let D=I.length>1?`The entity of type '${e.type}' with id '${e.id}' can't be added to the 'parent' entity with id '${v.id}' because it extends or implements multiple '${r.BuiltInBaseEntity}' entities that are non-interactive ("${K(I.map(A=>B(A,A.project)),'", "','" and "')}").`:`The entity of type '${e.type}' with id '${e.id}' can't be added to the 'parent' entity with id '${v.id}' because it extends or implements a '${r.BuiltInBaseEntity}' entity that is non-interactive ("${B(I[0],I[0].project)}").`;D+=`
45
+ ${Sl}`,issue:null})),{errors:t,modifiedData:e}}hydrateAncestors(){const e=[],t=[],i=[];if(this.initialData.parent){const a=P(this.initialData.parent),o=this.project.get(a);if(o)this.setParent(o),e.push(o);else throw new Error(`${jt(this.type)} with id '${this.id}' has a parent reference "${a}" which is missing in the project`)}else throw new Error(`${jt(this.type)} with id '${this.id}' is missing a parent reference`);if(this.initialData.implements){const a=P(this.initialData.implements),o=this.project.get(a);o&&(this.setImplements(o),e.push(o))}return{updated:m(e),added:m(t),removed:m(i),self:this}}afterAllChildrenInitialized(){const e=[],t=[],i=[];return this.initialized=!0,{updated:m(e),added:m(t),removed:m(i),self:this}}addSelfToProject(){const e=[this],t=[],i=[];return this.parent.addProperty(this),e.push(this.parent),{updated:m(e),added:m(t),removed:m(i),self:this}}setParent(e){return this.parent=e,this}setImplements(e){return this.implements=e,this}initChildren(){if(this.initialized)return this;if(this.initialized=!0,this.initialData.defaultValue&&(this.defaultValue=b(this.initialData.defaultValue,this.project),this.defaultValue.setParent(this),this.defaultValue.initChildren()),this.initialData.dataType){const e=b(this.initialData.dataType,this.project);e.setParent(this),e.initChildren(),this.dataType=e}if(this.initialData.implements){const e=b(this.initialData.implements,this.project);this.implements=e}return this.afterAllChildrenInitialized(),this}subscribe(){return this.project.subscribeInstance(this),this}unsubscribe(){return this.project.unsubscribeInstance(this),this}sync(e){return super.sync(e),this.name=e.name||this.name,this.description=e.description||this.description,this.abstract=e.abstract!==void 0?e.abstract:this.abstract,this.private=e.private!==void 0?e.private:this.private,this.index=e.index||(e.index!==0?this.index:0),this.static=e.static!==void 0?e.static:this.static,this.hidden=e.hidden!==void 0?e.hidden:this.hidden,this.constant=e.constant!==void 0?e.constant:this.constant,this.required=e.required!==void 0?e.required:this.required,this}async load(e=L,...t){return await me.repository.load(this.id,...t),this}async create(e=L,...t){return await me.repository.create(this.toShallowJSON(),...t),this}async update(e=L,...t){return await me.repository.update(this.toShallowJSON(),...t),this}async delete(e=L,...t){return await me.repository.delete(this.id,...t),this}remove({ignoreUpstream:e,seenEntities:t}={ignoreUpstream:!1,seenEntities:new Set}){const i=[],a=[];if(t.has(this.id))return{affected:[],removed:[]};if(t.add(this.id),a.push(this),this.unsubscribe(),this.defaultValue){const{affected:o,removed:l}=this.defaultValue.remove({ignoreUpstream:!0,seenEntities:t});i.push(...o),a.push(...l)}if(this.dataType){const{affected:o,removed:l}=this.dataType.remove({ignoreUpstream:!0,seenEntities:t});i.push(...o),a.push(...l)}return e||this.parent.type===r.DefinitionEntity&&(this.parent.removeProperty(this),i.push(this.parent)),{affected:m(i),removed:m(a)}}restore({seenEntities:e}={seenEntities:new Set}){const t=[];if(e.has(this.id))return{affected:[],self:this};if(e.add(this.id),this.subscribe(),this.defaultValue){const{affected:i}=this.defaultValue.restore({seenEntities:e});t.push(...i)}if(this.dataType){const{affected:i}=this.dataType.restore({seenEntities:e});t.push(...i)}return this.parent.type===r.DefinitionEntity&&(this.parent.addProperty(this),t.push(this.parent)),{affected:t,self:this}}toFlat(e=new Set){var i,a;return e.has(this.id)?[]:(e.add(this.id),[this,...((i=this.defaultValue)==null?void 0:i.toFlat(e))||[],...((a=this.dataType)==null?void 0:a.toFlat(e))||[],...this.parent.toFlat(e)])}toFlatIds(e=new Set){var i,a;return e.has(this.id)?[]:(e.add(this.id),[this.id,...((i=this.defaultValue)==null?void 0:i.toFlatIds(e))||[],...((a=this.dataType)==null?void 0:a.toFlatIds(e))||[],...this.parent.toFlatIds(e)])}toJSON(e=new Set){var t,i,a;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,index:this.index,private:this.private,required:this.required,static:this.static,constant:this.constant,abstract:this.abstract,hidden:this.hidden,defaultValue:((t=this.defaultValue)==null?void 0:t.toJSON(e))||null,dataType:((i=this.dataType)==null?void 0:i.toJSON(e))||null,implements:((a=this.implements)==null?void 0:a.toJSON(e))||null,parent:this.parent.toReference()})}toJSONClone(e=F){var i,a,o,l,d,h,y;let t;return(i=e.seenEntityMaps)!=null&&i.has(this.id)?t=e.seenEntityMaps.get(this.id):(t=e.newId||it(this,this.project,e.uuidStrategy),e.seenEntityMaps&&e.seenEntityMaps.set(this.id,t)),(a=e.seenEntities)!=null&&a.has(t)||(o=e.seenEntities)!=null&&o.has(this.id)?this.toReference({seenEntityMaps:e.seenEntityMaps}):((l=e.seenEntities)==null||l.add(t),(d=e.seenEntities)==null||d.add(this.id),{id:t,version:"1",createdAt:$().toDate(),author:"1",previousVersion:null,deleted:!1,type:this.type,name:this.name,description:this.description,index:this.index,private:this.private,required:this.required,static:this.static,constant:this.constant,abstract:this.abstract,hidden:this.hidden,defaultValue:((h=this.defaultValue)==null?void 0:h.toJSONClone({...e,newId:null}))||null,dataType:((y=this.dataType)==null?void 0:y.toJSONClone({...e,newId:null}))||null,implements:(()=>{var f;return this.implements&&this.project.getBuiltIn(this.implements.id)?this.implements.toJSON():((f=this.implements)==null?void 0:f.toJSONClone({...e,newId:null}))||null})(),parent:this.parent.toReference({seenEntityMaps:e.seenEntityMaps})})}toReference(e=F){var i;let t=this.id;return(i=e.seenEntityMaps)!=null&&i.has(this.id)&&(t=e.seenEntityMaps.get(this.id)),{id:t+"--"+O.UUID.uuid()+"--ref",type:r.GenericReference,entityId:t,version:this.version,entityType:this.type}}toShallowJSON(e=F){var i,a,o,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,name:this.name,description:this.description,type:this.type,index:this.index,private:this.private,required:this.required,abstract:this.abstract,static:this.static,constant:this.constant,hidden:this.hidden,defaultValue:((a=this.defaultValue)==null?void 0:a.toReference(e))||null,dataType:((o=this.dataType)==null?void 0:o.toReference(e))||null,implements:((l=this.implements)==null?void 0:l.toReference(e))||null,parent:this.parent.toReference(e)}}toFlatJSON(e=new Set){var i,a,o;return e.has(this.id)?[]:(e.add(this.id),[this.toShallowJSON(),...((i=this.defaultValue)==null?void 0:i.toFlatJSON(e))||[],...((a=this.dataType)==null?void 0:a.toFlatJSON(e))||[],...((o=this.implements)==null?void 0:o.toFlatJSON(e))||[],...this.parent.toFlatJSON(e)])}toGenerationTarget(){var e;return{id:this.id,name:this.name,description:this.description,type:this.type,private:this.private,required:this.required,abstract:this.abstract,static:this.static,implements:((e=this.implements)==null?void 0:e.id)||null,parent:this.parent.id}}toFlatGenerationTarget(e=new Set){var i,a;return e.has(this.id)?[]:(e.add(this.id),[this.toGenerationTarget(),...((i=this.defaultValue)==null?void 0:i.toFlatGenerationTarget(e))||[],...((a=this.dataType)==null?void 0:a.toFlatGenerationTarget(e))||[]])}clearErrors(){var e,t;return this.errors=[],(e=this.defaultValue)==null||e.clearErrors(),(t=this.dataType)==null||t.clearErrors(),this}validate(){return this.errors=u7(this),this.errors.length,{success:!0,error:null,data:null}}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}clone(e=null,t=null,i=!0){var I,D;let a=at(e,this);const o=t||O.UUID.uuid(),l=o.split("-id"),d=l[l.length-1||0]||o;let h=e||this.parent;const y={hidden:!1,id:o,version:O.UUID.uuid(),createdAt:this.createdAt,author:this.author,previousVersion:this.version,deleted:this.deleted,type:this.type,name:this.name,description:this.description,index:this.index,private:this.private,constant:this.constant,required:this.required,abstract:this.abstract,static:this.static,defaultValue:null,dataType:null,implements:this.implements,parent:h},f=tt(y,a);i&&f.subscribe(),f.setParent(h),f.initChildren();const v=((I=this.dataType)==null?void 0:I.clone(f,O.UUID.uuid(),i))||null;v&&f.setDataType(v);const R=(D=this.defaultValue)==null?void 0:D.clone(f,d+"-default-value-id",i);return f.defaultValue=R||null,this.implements&&(f.implements=this.implements),f.addSelfToProject(),f}setDataType(e){return this.dataType=e,this}removeDataType(){return this.dataType=null,this}getDataType(){return this.dataType}getDefaultValue(){return this.defaultValue}setDefaultValue(e){return this.defaultValue=e,this}};u(me,"repository",{create:async(e,...t)=>e,update:async(e,...t)=>e,delete:async(e,...t)=>{},load:async(e,...t)=>null}),u(me,"type",r.Property),u(me,"USER_MANAGED_PARENT_TYPES",[r.DefinitionEntity]),u(me,"PARENT_TYPES",[...me.USER_MANAGED_PARENT_TYPES,r.PrimitiveEntity,r.BuiltInBaseEntity]),u(me,"MUTABLE_BASE_PROPERTIES",["name","description","private","abstract","static","required","constant"]),u(me,"INMUTABLE_BASE_PROPERTIES",["id","type","version"]),u(me,"BASE_PROPERTIES",[...me.MUTABLE_BASE_PROPERTIES,...me.INMUTABLE_BASE_PROPERTIES]),u(me,"MUTABLE_META_PROPERTIES",[...me.MUTABLE_BASE_PROPERTIES,"index"]),u(me,"INMUTABLE_META_PROPERTIES",[...me.INMUTABLE_BASE_PROPERTIES]),u(me,"META_PROPERTIES",[...me.MUTABLE_META_PROPERTIES,...me.INMUTABLE_META_PROPERTIES]),u(me,"MUTABLE_UPSTREAM_PROPERTIES",[]),u(me,"INMUTABLE_UPSTREAM_PROPERTIES",["parent","implements"]),u(me,"UPSTREAM_PROPERTIES",[...me.MUTABLE_UPSTREAM_PROPERTIES,...me.INMUTABLE_UPSTREAM_PROPERTIES]),u(me,"MUTABLE_DOWNSTREAM_PROPERTIES",["dataType"]),u(me,"INMUTABLE_DOWNSTREAM_PROPERTIES",[]),u(me,"DOWNSTREAM_PROPERTIES",[...me.MUTABLE_DOWNSTREAM_PROPERTIES,...me.INMUTABLE_DOWNSTREAM_PROPERTIES]),u(me,"PROPERTIES",[...me.META_PROPERTIES,...me.UPSTREAM_PROPERTIES,...me.DOWNSTREAM_PROPERTIES]);let oi=me;function h7(n){const s=Y3(),e=n.toJSON();s.safeParse(e).success;const i=y7(n),a=f7(n),o=Kt(n);n.inputs.forEach(d=>d.validate()),o.forEach(d=>d.validate());const l=[...i,...a];if(n.id==="getCompanyByIdEndpointReachedEntityEvent"){const d=le({id:`${n.id}--${U.PropertyImplementsNonAbstact}`,message:`Property "${B(n,n.project)}" with id "${n.id}" implements a non-abstract property "${B(n,n.project)}" with id "${n.id}".`,issue:null,severity:E.Error,code:U.PropertyImplementsNonAbstact,entity:n});l.push(d.error)}return xe(n.errors,l)}function y7(n){const s=[];if(!n.calls.length){const e=le({id:`${n.id}--${U.ScopeWithoutLogic}`,message:`Action "${B(n,n.project)}" with id "${n.id}" does not have any logic defined. So it doesn't do anything.`,issue:null,severity:E.Warning,code:U.ScopeWithoutLogic,entity:n});s.push(e.error)}return xe(n.errors,s)}function f7(n){const s=[];return n.implements,xe(n.errors,s)}const Te=class Te extends He{constructor(e,t){super(e);u(this,"initialData");u(this,"id");u(this,"name");u(this,"description",null);u(this,"x");u(this,"y");u(this,"collapsed");u(this,"private");u(this,"index",null);u(this,"type",r.FunctionDeclaration);u(this,"implements",null);u(this,"inputs",[]);u(this,"returnStatements",[]);u(this,"calls",[]);u(this,"parent");u(this,"detachedChildren",[]);u(this,"errors",[]);u(this,"project");u(this,"initialized",!1);u(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 fromGenerationTarget(e,t){let i=t;if(e.parent){const d=P(e.parent);i=t.get(d)}let a=null;if(e.implements){const d=P(e.implements);a=t.get(d)}const o={id:e.id,version:"1",createdAt:$().toDate(),author:"1",previousVersion:null,deleted:!1,name:e.name,type:r.FunctionDeclaration,index:i.type===r.DefinitionEntity?i.methods.length:null,description:e.description,collapsed:!1,private:!1,returnStatements:[],calls:[],inputs:[],implements:a,x:0,y:0,parent:i},l=b(o,t);return l.setParent(i),l.initChildren(),l}static validateGenerationTarget(e,t){var f;let i=JSON.parse(JSON.stringify(e));const a=[],o=ft(i,{parent:{list:!1,types:[r.Project,r.InstalledProject,r.DefinitionEntity,r.Loop],optional:!0},implements:{list:!1,types:[r.ActionDescriptor],optional:!0}},t);i=o.modifiedData;const l=sp(i,t),d=i.parent?t.get(i.parent):null;if(d&&d.type===r.DefinitionEntity){const v=d,I=Vn(v).filter(D=>!D.interactive);if(I.length){let D=I.length>1?`The entity of type '${e.type}' with id '${e.id}' can't be added to the 'parent' entity with id '${v.id}' because it extends or implements multiple '${r.BuiltInBaseEntity}' entities that are non-interactive ("${K(I.map(A=>B(A,A.project)),'", "','" and "')}").`:`The entity of type '${e.type}' with id '${e.id}' can't be added to the 'parent' entity with id '${v.id}' because it extends or implements a '${r.BuiltInBaseEntity}' entity that is non-interactive ("${B(I[0],I[0].project)}").`;D+=`
46
46
  ${Sn}`,a.push(new g({id:`${e.id}--${T.NonInteractiveEntityReferenced}`,code:T.NonInteractiveEntityReferenced,severity:E.Error,message:D,issue:null}))}else{const D=v.methods.find(H=>{var W;return((W=H.implements)==null?void 0:W.id)===i.implements});D&&a.push(new g({id:`${i.id}--${w.MethodOverwrite}`,code:w.MethodOverwrite,severity:E.Error,message:`The '${r.FunctionDeclaration}' with id "${i.id}" is trying to implement the '${r.ActionDescriptor}' with id "${i.implements}", but the parent definition-entity already has a ${r.FunctionDeclaration} with id '${D.id}' that implements the same base method.
47
47
  A ${r.FunctionDeclaration} that has a parent of type '${r.DefinitionEntity}' is considered a method of that entity, and cannot implement the same '${r.ActionDescriptor}' more than once.
48
48
  ${r.ActionDescriptor} entities inside a ${r.DefinitionEntity} are considered abstract methods that can be implemented by ${r.FunctionDeclaration} entities inside the same parent.
@@ -52,7 +52,7 @@ If you want to implement a new method, you can create a new 'function-declaratio
52
52
  If you want to modify the existing implementation, you can update the existing method instead, but it will have to match the same base ${r.ActionDescriptor} signature, otherwise the implementation will have a validation error.`,issue:null}))}}else if(d&&d.type===r.Loop){const v=d.body;v&&((f=v.implements)==null?void 0:f.id)===i.implements&&a.push(new g({id:`${i.id}--${w.MethodOverwrite}`,code:w.MethodOverwrite,severity:E.Error,message:`The '${r.FunctionDeclaration}' with id "${i.id}" is being added as the 'body' of the ${r.Loop} with id "${d.id}", but the loop already has a function-declaration body. A loop can only have one function-declaration body at a time. You can edit the existing body instead, but it will have to match the same base signature, otherwise the implementation will have a validation error.`,issue:null}))}const h=i.parent&&t.get(i.parent)||t.getBuiltIn(i.parent),y=h?Cn(h):null;return y&&a.push(new g({id:`${e.id}--${T.BuiltInEntityParent}`,code:T.BuiltInEntityParent,severity:E.Error,message:`The entity with id '${e.id}' and type '${e.type}', belongs to a built-in system entity "${B(y,t)}" with id '${y.id}', and therefore it cannot be created as it would affect a built in entity, which are inmutable.`,issue:null})),a.push(...o.errors,...l,...et(i)),{errors:a,modifiedData:i}}validateGeneratedUpdate(e){const t=[];return e.parent&&(this.parent.type===r.Project?t.push(new g({id:`${this.id}--${T.InvalidParentUpdate}`,code:T.InvalidParentUpdate,severity:E.Error,message:`Entity of type '${this.type}' with id '${this.id}' cannot have the 'parent' property updated, as it would mean moving the '${this.type}' entity to another parent entity.
53
53
  This is likely an incorrect strategy because this is a globally declared '${this.type}' entity which can only have the root project as its parent.`,issue:null})):t.push(new g({id:`${this.id}--${T.InvalidParentUpdate}`,code:T.InvalidParentUpdate,severity:E.Error,message:`Entity of type '${this.type}' with id '${this.id}' cannot have the 'parent' property updated, as it would mean moving the '${this.type}' entity to another parent entity.
54
54
  This is likely an incorrect strategy because this function declaration is a method, since it belongs to a '${this.parent.type}' entity, 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.
55
- Please consider that any updates might affect the overlap with the signature of the parent entity's action descriptors.`,issue:null}))),{errors:t,modifiedData:e}}hydrateAncestors(){const e=[],t=[],i=[];if(this.initialData.parent){const a=P(this.initialData.parent),o=this.project.get(a);if(o)this.setParent(o),e.push(o);else throw new Error(`${_t(this.type)} with id '${this.id}' has a 'parent' reference "${a}" which is missing in the project`)}else throw new Error(`${_t(this.type)} with id '${this.id}' is missing a 'parent' reference`);if(this.initialData.implements){const a=P(this.initialData.implements),o=this.project.get(a);if(o)this.setImplements(o),e.push(o);else throw new Error(`${_t(this.type)} with id '${this.id}' has a 'implements' reference "${a}" which is missing in the project`)}else throw new Error(`${_t(this.type)} with id '${this.id}' is missing a 'implements' reference`);return{updated:m(e),added:m(t),removed:m(i),self:this}}afterAllChildrenInitialized(){const e=[],t=[],i=[];return this.initialized=!0,{updated:m(e),added:m(t),removed:m(i),self:this}}addSelfToProject(){const e=[this],t=[],i=[];return this.parent===this.project?this.project.addFunctionDeclaration(this):this.parent.type===r.DefinitionEntity?(this.parent.addMethod(this),e.push(this.parent)):this.parent.type===r.Loop&&(this.parent.setBody(this),e.push(this.parent)),{updated:m(e),added:m(t),removed:m(i),self:this}}replaceDetachedChild(e,t){const i=this.detachedChildren.indexOf(e);return i!==-1&&(this.detachedChildren[i]=t),this}subscribeDetachedChild(e){return this.detachedChildren.includes(e)||this.detachedChildren.push(e),this}addInputDeclaration(e){return this.inputs.includes(e)||this.inputs.push(e),this}removeInputDeclaration(e){const t=this.inputs.indexOf(e);return t!==-1&&this.inputs.splice(t,1),this}setParent(e){return this.parent=e,this}setImplements(e){return this.implements=e,this}addCall(e){return this.calls.includes(e)||this.calls.push(e),this}removeCall(e){const t=this.calls.indexOf(e);return t!==-1&&this.calls.splice(t,1),this}initChildren(){return this.initialized?this:(this.initialized=!0,this.inputs=this.initialData.inputs.map(e=>{const t=b(e,this.project);return t.setParent(this),t.initChildren(),t}),this.calls=this.initialData.calls.map(e=>{const t=b(e,this.project);return t.addEntryCaller(this),[r.BreakStatement,r.ContinueStatement].includes(t.type)?(t.setParent(this.parent),t.initChildren()):t.type!==r.InternalCall&&(t.setParent(this),t.initChildren()),t}),this.returnStatements=this.initialData.returnStatements.map(e=>{const t=b(e,this.project);return t.setParent(this),t.initChildren(),t}),this.initialData.implements&&(this.implements=b(this.initialData.implements,this.project)),this.afterAllChildrenInitialized(),this)}subscribe(){return this.project.subscribeInstance(this),this}unsubscribe(){return this.project.unsubscribeInstance(this),this}sync(e){return super.sync(e),this.name=e.name||this.name,this.description=e.description||this.description,this.private=e.private||this.private,this.index=e.index||(e.index!==0?this.index:0),this.collapsed=e.collapsed!==void 0?e.collapsed:this.collapsed,this.x=e.x||this.x,this.y=e.y||this.y,this}async load(e=L,...t){return await Te.repository.load(this.id,...t),this}async create(e=L,...t){return await Te.repository.create(this.toShallowJSON(),...t),this}async update(e=L,...t){return await Te.repository.update(this.toShallowJSON(),...t),this}async delete(e=L,...t){return await Te.repository.delete(this.id,...t),this}remove({ignoreUpstream:e,seenEntities:t}={ignoreUpstream:!1,seenEntities:new Set}){const i=[],a=[];return t.has(this.id)?{affected:[],removed:[]}:(t.add(this.id),a.push(this),this.unsubscribe(),this.inputs.forEach(l=>{const{affected:d,removed:h}=l.remove({ignoreUpstream:!0,seenEntities:t});i.push(...d),a.push(...h)}),Kt(this).forEach(l=>{const{affected:d,removed:h}=l.remove({ignoreUpstream:!0,seenEntities:t});i.push(...d),a.push(...h)}),{affected:m(i),removed:m(a)})}restore({seenEntities:e}={seenEntities:new Set}){const t=[];return e.has(this.id)?{affected:[],self:this}:(e.add(this.id),this.subscribe(),this.inputs.forEach(a=>{const{affected:o}=a.restore({seenEntities:e});t.push(...o)}),Kt(this).forEach(a=>{const{affected:o}=a.restore({seenEntities:e});t.push(...o)}),{affected:m(t),self:this})}toFlat(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this,...this.inputs.flatMap(i=>i.toFlat(e)),...this.calls.flatMap(i=>i.toFlat(e)),...this.returnStatements.flatMap(i=>i.toFlat(e)),...this.implements?this.implements.toFlat(e):[]])}toFlatIds(e=new Set){if(e.has(this.id))return[];e.add(this.id);const t=Kt(this);return[this.id,...this.inputs.flatMap(a=>a.toFlatIds(e)),...this.calls.flatMap(a=>a.toFlatIds(e)),...this.returnStatements.flatMap(a=>a.toFlatIds(e)),...this.implements?this.implements.toFlatIds(e):[],...t.flatMap(a=>a.toFlatIds(e))]}toJSON(e=new Set){var t;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,index:this.index,x:this.x,y:this.y,collapsed:this.collapsed,private:this.private,calls:this.calls.map(i=>i.toJSON(e)),inputs:this.inputs.map(i=>i.toJSON(e)),implements:((t=this.implements)==null?void 0:t.toJSON(e))||null,returnStatements:this.returnStatements.map(i=>i.toJSON(e)),parent:this.parent.toReference()})}toJSONClone(e=F){var i,a,o,l,d;let t;return(i=e.seenEntityMaps)!=null&&i.has(this.id)?t=e.seenEntityMaps.get(this.id):(t=e.newId||it(this,this.project,e.uuidStrategy),e.seenEntityMaps&&e.seenEntityMaps.set(this.id,t)),(a=e.seenEntities)!=null&&a.has(t)||(o=e.seenEntities)!=null&&o.has(this.id)?this.toReference({seenEntityMaps:e.seenEntityMaps}):((l=e.seenEntities)==null||l.add(t),(d=e.seenEntities)==null||d.add(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,index:this.index,x:this.x,y:this.y,collapsed:this.collapsed,private:this.private,calls:this.calls.map(h=>h.toJSONClone({...e,newId:null})),inputs:this.inputs.map(h=>h.toJSONClone({...e,newId:null})),implements:(()=>{var h;return this.implements&&this.project.getBuiltIn(this.implements.id)?this.implements.toJSON():(h=this.implements)==null?void 0:h.toJSONClone({...e,newId:null})})(),returnStatements:this.returnStatements.map(h=>h.toJSONClone({...e,newId:null})),parent:this.parent.toReference({seenEntityMaps:e.seenEntityMaps})})}toReference(e=F){var i;let t=this.id;return(i=e.seenEntityMaps)!=null&&i.has(this.id)&&(t=e.seenEntityMaps.get(this.id)),{id:t+"--"+O.UUID.uuid()+"--ref",type:r.GenericReference,entityId:t,version:this.version,entityType:this.type}}toShallowJSON(e=F){var i,a;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,index:this.index,collapsed:this.collapsed,private:this.private,x:this.x,y:this.y,inputs:this.inputs.map(o=>o.toReference(e)),calls:this.calls.map(o=>o.toReference(e)),returnStatements:this.returnStatements.map(o=>o.toReference(e)),implements:((a=this.implements)==null?void 0:a.toReference(e))||null,parent:this.parent.toReference(e)}}toFlatJSON(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.toShallowJSON(),...this.inputs.flatMap(i=>i.toFlatJSON(e)),...this.calls.flatMap(i=>i.toFlatJSON(e)),...this.returnStatements.flatMap(i=>i.toFlatJSON(e)),...this.implements?this.implements.toFlatJSON(e):[]])}toGenerationTarget(){var t;const e=this.parent.type===r.Project?void 0:this.parent.id;return{id:this.id,name:this.name,description:this.description,type:this.type,private:this.private,implements:((t=this.implements)==null?void 0:t.id)||null,parent:e}}toFlatGenerationTarget(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.toGenerationTarget(),...this.inputs.flatMap(i=>i.toFlatGenerationTarget(e)),...this.calls.flatMap(i=>i.toFlatGenerationTarget(e)),...this.returnStatements.flatMap(i=>i.toFlatGenerationTarget(e))])}clearErrors(){return this.errors=[],this.inputs.forEach(e=>e.clearErrors()),this.calls.forEach(e=>e.clearErrors()),this.returnStatements.forEach(e=>e.clearErrors()),this}validate(){const e=h7(this);return this.errors=[...e],{success:!0,error:null,data:this.toJSON()}}getErrors(){const e=Kt(this);return[...this.errors,...this.inputs.flatMap(i=>i.getErrors()),...e.flatMap(i=>i.getErrors())]}getShallowErrors(){return this.errors}clone(e=null,t=null,i=!0,a=!1){var I;let o=at(e,this);const l=this.toJSON(),d=t||O.UUID.uuid();l.inputs=[],l.calls=[],l.returnStatements=[];const h=d.split("-id"),y=h[h.length-1||0]||d;l.id=d;const f=tt(l,o);e?f.setParent(e):f.setParent(this.parent),i&&f.subscribe(),f.initChildren();const v=(I=this.inputs)==null?void 0:I.map((D,A)=>D.clone(f,y+"-argument-declaration-"+A+"-id",i));return f.inputs=v,a&&Kt(this).map((D,A)=>D.clone(f,y+"-body-entity-"+A+"-id")),f}getVariableInstances(){return Ue(this).filter(i=>i.type===r.VariableInstance)}getArgument(e){return this.inputs.find(t=>t.id===e)||null}createCall(e=this.project,t={}){const i={id:t.id||O.UUID.uuid(),version:t.version||"1",createdAt:t.createdAt||"2024-01-01T00:00:00.000Z",author:t.author||"1",previousVersion:t.previousVersion||null,deleted:t.deleted||!1,type:r.FunctionCall,parent:e.toReference(),successCalls:t.successCalls||[],errorCalls:t.errorCalls||[],inputs:t.inputs||[],outputs:t.outputs||[],error:t.error||null,process:t.process||null,calledBySuccess:t.calledBySuccess||[],calledByError:t.calledByError||[],calledByEntry:t.calledByEntry||[],declaration:this.toJSON(),x:0,y:0},a=b(i,this.project);return a.setParent(e),a.initChildren(),e===this.project&&this.project.addFunctionCall(a),a}createInternalCall(e,t={}){const i={id:t.id||O.UUID.uuid(),version:t.version||"1",type:r.InternalCall,parent:e.toReference(),successCalls:t.successCalls||[],errorCalls:t.errorCalls||[],inputs:t.inputs||[],outputs:t.outputs||[],error:t.error||null,process:t.process||null,calledBySuccess:t.calledBySuccess||[],calledByError:t.calledByError||[],calledByEntry:t.calledByEntry||[],declaration:this.toShallowJSON(),index:e.internalCalls.length},a=b(i,this.project);return a.setParent(e),a.initChildren(),a}addReturnStatement(e){return this.returnStatements.includes(e)||this.returnStatements.push(e),this}removeReturnStatement(e){const t=this.returnStatements.indexOf(e);return t!==-1&&this.returnStatements.splice(t,1),this}getUniqueReturnDeclarations(){const e=[],i=[...this.returnStatements].flatMap(a=>a.outputs);if(this.implements){const a=this.implements.outputs;return i.forEach(o=>{const l=a.find(h=>h===o.implements),d=e.find(h=>h.implements===o.implements);l&&!d&&e.push(o)}),m(e)}else return i.forEach(a=>{e.find(l=>l===a||B(l,this.project)===B(a,this.project)&&hr(l.dataType,a.dataType))||e.push(a)}),m(e)}};u(Te,"repository",{create:async(e,...t)=>e,update:async(e,...t)=>e,delete:async(e,...t)=>{},load:async(e,...t)=>null}),u(Te,"type",r.FunctionDeclaration),u(Te,"USER_MANAGED_PARENT_TYPES",[r.Project,r.InstalledProject,r.DefinitionEntity,r.Loop]),u(Te,"PARENT_TYPES",[...Te.USER_MANAGED_PARENT_TYPES,r.BuiltInBaseEntity,r.PrimitiveEntity]),u(Te,"MUTABLE_BASE_PROPERTIES",["name","description","private"]),u(Te,"INMUTABLE_BASE_PROPERTIES",["id","version","type"]),u(Te,"BASE_PROPERTIES",[...Te.MUTABLE_BASE_PROPERTIES,...Te.INMUTABLE_BASE_PROPERTIES]),u(Te,"MUTABLE_META_PROPERTIES",[...Te.MUTABLE_BASE_PROPERTIES,"x","y","index","collapsed"]),u(Te,"INMUTABLE_META_PROPERTIES",[...Te.INMUTABLE_BASE_PROPERTIES]),u(Te,"META_PROPERTIES",[...Te.MUTABLE_META_PROPERTIES,...Te.INMUTABLE_META_PROPERTIES]),u(Te,"MUTABLE_UPSTREAM_PROPERTIES",[]),u(Te,"INMUATABLE_UPSTREAM_PROPERTIES",["parent","implements"]),u(Te,"UPSTREAM_PROPERTIES",[...Te.MUTABLE_UPSTREAM_PROPERTIES,...Te.INMUATABLE_UPSTREAM_PROPERTIES]),u(Te,"MUTABLE_DOWNSTREAM_PROPERTIES",["inputs","calls","returnStatements"]),u(Te,"INMUATABLE_DOWNSTREAM_PROPERTIES",[]),u(Te,"DOWNSTREAM_PROPERTIES",[...Te.MUTABLE_DOWNSTREAM_PROPERTIES,...Te.INMUATABLE_DOWNSTREAM_PROPERTIES]),u(Te,"PROPERTIES",[...Te.META_PROPERTIES,...Te.UPSTREAM_PROPERTIES,...Te.DOWNSTREAM_PROPERTIES]);let li=Te;function m7(n){const s=Q6(),e=n.toJSON();s.safeParse(e).success;const i=[];if(n.entity&&n.andChildrenGroup||n.entity&&n.orChildrenGroup||n.andChildrenGroup&&n.orChildrenGroup){const a=le({id:n.id+"--"+U.InvalidPropertiesCombination,message:`Data type with id "${n.id}" has invalid properties combination. Only one of the following properties can be present at the time: 'entity', 'andChildrenGroup' or 'orChildrenGroup'`,issue:null,severity:E.Error,code:U.InvalidPropertiesCombination,entity:n});i.push(a.error)}return xe(n.errors,i)}function T7(n,s){const e=[],t=[r.DefinitionEntity,r.ActionDescriptor,r.Property,r.ArgumentDeclaration,r.ReturnDeclaration,r.VariableDeclaration,r.ValueDescriptor,r.DataType],i=`'${K(t,"', '","' or '")}'`;if(n.parent)if(n.id===n.parent)e.push(new g({id:`${n.id}--${n.parent}--${T.SelfReference}`,code:T.SelfReference,severity:E.Error,message:`Entity of type "${n.type}" with id "${n.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 a=s.get(n.parent);a?t.includes(a.type)||e.push(new g({id:`${n.id}--${n.parent}--${T.InvalidParentReference}`,code:T.InvalidParentReference,severity:E.Error,message:`Entity of type "${n.type}" with id "${n.id}", has a parent reference that isn't pointing to an entity of type ${i}.`,issue:null})):e.push(new g({id:`${n.id}--${n.parent}--${T.ReferencedEntityNotFound}`,code:T.ReferencedEntityNotFound,severity:E.Error,message:`Entity of type "${n.type}" with id "${n.id}", is referencing an entity with id "${n.parent}" that isn't yet found in the project. Perhaps it should be created first. Or perhaps the ID is incorrect.`,issue:null}))}else e.push(new g({id:`${n.id}--${w.InvalidObjectStructure}`,code:w.InvalidObjectStructure,severity:E.Error,message:`Entity of type "${n.type}" with id "${n.id}" is missing a 'parent' reference. The 'parent' of a 'data-type' entity must be a reference to an entity of type ${i}.`,issue:null}));if(n.entity){if(n.id===n.entity)return e.push(new g({id:`${n.id}--${n.entity}--${T.SelfReference}`,code:T.SelfReference,severity:E.Error,message:`Entity of type "${n.type}" with id "${n.id}", has a reference to itself at 'entity'. This is not allowed. Change the reference string or the 'entityId' property of the reference object.`,issue:null})),e;const a=s.get(n.entity);a?[r.DefinitionEntity,r.PrimitiveEntity,r.ActionDescriptor,r.BuiltInBaseEntity].includes(a.type)||e.push(new g({id:`${n.id}--${n.entity}--${T.InvalidImplementsReference}`,code:T.InvalidImplementsReference,severity:E.Error,message:`Entity of type "${n.type}" with id "${n.id}", has an 'entity' reference that isn't pointing to an entity of type 'definition-entity', 'primitive-entity', 'action-descriptor' or 'built-in-base-entity'.`,issue:null})):e.push(new g({id:`${n.id}--${n.entity}--${T.ReferencedEntityNotFound}`,code:T.ReferencedEntityNotFound,severity:E.Error,message:`Entity of type "${n.type}" with id "${n.id}", is referencing an entity with id "${n.entity}" that isn't yet found in the project. Perhaps it should be created first. Or perhaps the ID is incorrect.`,issue:null}))}return e}const ve=class ve extends He{constructor(e,t){super(e);u(this,"initialData");u(this,"id");u(this,"isList",null);u(this,"asType",null);u(this,"type",r.DataType);u(this,"options");u(this,"parentRelationType");u(this,"like");u(this,"implementationChooseOne",!1);u(this,"inferred",!1);u(this,"entity",null);u(this,"andChildrenGroup",null);u(this,"orChildrenGroup",null);u(this,"project");u(this,"errors",[]);u(this,"parent");u(this,"initialized",!1);this.initialData=e,this.project=t,this.id=e.id,this.isList=e.isList,this.asType=e.asType,this.options=e.options,this.parentRelationType=e.parentRelationType,this.inferred=e.inferred||!1,this.like=e.like||!1,this.implementationChooseOne=e.implementationChooseOne||!1}static fromGenerationTarget(e,t){const i=P(e.parent),a=t.get(i);let o=null;e.entity&&(o=t.get(e.entity));const l={id:e.id,version:"1",createdAt:$().toDate(),author:"1",previousVersion:null,deleted:!1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,parentRelationType:e.parentRelationType,isList:e.isList,like:e.like||!1,inferred:!1,implementationChooseOne:e.implementationChooseOne||!1,entity:o,asType:e.asType,parent:a},d=b(l,t);return d.setParent(a),d.initChildren(),d}static validateGenerationTarget(e,t){var h;let i=JSON.parse(JSON.stringify(e));const a=[],o=T7(i,t);if(a.push(...o,...et(i)),i.entity){const y=t.get(i.entity);if(y.type===r.DefinitionEntity){const v=Vn(y).filter(R=>!R.interactive);if(v.length){const R=v.length>1?`entities with ids '${K(v.map(I=>I.id),"', '","' and '")}'`:`entity with id '${v[0].id}'`;a.push(new g({id:`${e.id}--${T.NonInteractiveEntityReferenced}`,code:T.NonInteractiveEntityReferenced,severity:E.Error,message:`The entity with id '${e.id}' and type '${e.type}', cannot reference 'definition-entity' with id '${i.entity}' at 'entity'. The entity extends or implements non-interactive built-in-base-entity ${R}.
55
+ Please consider that any updates might affect the overlap with the signature of the parent entity's action descriptors.`,issue:null}))),{errors:t,modifiedData:e}}hydrateAncestors(){const e=[],t=[],i=[];if(this.initialData.parent){const a=P(this.initialData.parent),o=this.project.get(a);if(o)this.setParent(o),e.push(o);else throw new Error(`${jt(this.type)} with id '${this.id}' has a 'parent' reference "${a}" which is missing in the project`)}else throw new Error(`${jt(this.type)} with id '${this.id}' is missing a 'parent' reference`);if(this.initialData.implements){const a=P(this.initialData.implements),o=this.project.get(a);if(o)this.setImplements(o),e.push(o);else if(a)throw new Error(`${jt(this.type)} with id '${this.id}' has a 'implements' reference "${a}" which is missing in the project`)}return{updated:m(e),added:m(t),removed:m(i),self:this}}afterAllChildrenInitialized(){const e=[],t=[],i=[];return this.initialized=!0,{updated:m(e),added:m(t),removed:m(i),self:this}}addSelfToProject(){const e=[this],t=[],i=[];return this.parent===this.project?this.project.addFunctionDeclaration(this):this.parent.type===r.DefinitionEntity?(this.parent.addMethod(this),e.push(this.parent)):this.parent.type===r.Loop&&(this.parent.setBody(this),e.push(this.parent)),{updated:m(e),added:m(t),removed:m(i),self:this}}replaceDetachedChild(e,t){const i=this.detachedChildren.indexOf(e);return i!==-1&&(this.detachedChildren[i]=t),this}subscribeDetachedChild(e){return this.detachedChildren.includes(e)||this.detachedChildren.push(e),this}addInputDeclaration(e){return this.inputs.includes(e)||this.inputs.push(e),this}removeInputDeclaration(e){const t=this.inputs.indexOf(e);return t!==-1&&this.inputs.splice(t,1),this}setParent(e){return this.parent=e,this}setImplements(e){return this.implements=e,this}addCall(e){return this.calls.includes(e)||this.calls.push(e),this}removeCall(e){const t=this.calls.indexOf(e);return t!==-1&&this.calls.splice(t,1),this}initChildren(){return this.initialized?this:(this.initialized=!0,this.inputs=this.initialData.inputs.map(e=>{const t=b(e,this.project);return t.setParent(this),t.initChildren(),t}),this.calls=this.initialData.calls.map(e=>{const t=b(e,this.project);return t.addEntryCaller(this),[r.BreakStatement,r.ContinueStatement].includes(t.type)?(t.setParent(this.parent),t.initChildren()):t.type!==r.InternalCall&&(t.setParent(this),t.initChildren()),t}),this.returnStatements=this.initialData.returnStatements.map(e=>{const t=b(e,this.project);return t.setParent(this),t.initChildren(),t}),this.initialData.implements&&(this.implements=b(this.initialData.implements,this.project)),this.afterAllChildrenInitialized(),this)}subscribe(){return this.project.subscribeInstance(this),this}unsubscribe(){return this.project.unsubscribeInstance(this),this}sync(e){return super.sync(e),this.name=e.name||this.name,this.description=e.description||this.description,this.private=e.private||this.private,this.index=e.index||(e.index!==0?this.index:0),this.collapsed=e.collapsed!==void 0?e.collapsed:this.collapsed,this.x=e.x||this.x,this.y=e.y||this.y,this}async load(e=L,...t){return await Te.repository.load(this.id,...t),this}async create(e=L,...t){return await Te.repository.create(this.toShallowJSON(),...t),this}async update(e=L,...t){return await Te.repository.update(this.toShallowJSON(),...t),this}async delete(e=L,...t){return await Te.repository.delete(this.id,...t),this}remove({ignoreUpstream:e,seenEntities:t}={ignoreUpstream:!1,seenEntities:new Set}){const i=[],a=[];return t.has(this.id)?{affected:[],removed:[]}:(t.add(this.id),a.push(this),this.unsubscribe(),this.inputs.forEach(l=>{const{affected:d,removed:h}=l.remove({ignoreUpstream:!0,seenEntities:t});i.push(...d),a.push(...h)}),Kt(this).forEach(l=>{const{affected:d,removed:h}=l.remove({ignoreUpstream:!0,seenEntities:t});i.push(...d),a.push(...h)}),{affected:m(i),removed:m(a)})}restore({seenEntities:e}={seenEntities:new Set}){const t=[];return e.has(this.id)?{affected:[],self:this}:(e.add(this.id),this.subscribe(),this.inputs.forEach(a=>{const{affected:o}=a.restore({seenEntities:e});t.push(...o)}),Kt(this).forEach(a=>{const{affected:o}=a.restore({seenEntities:e});t.push(...o)}),{affected:m(t),self:this})}toFlat(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this,...this.inputs.flatMap(i=>i.toFlat(e)),...this.calls.flatMap(i=>i.toFlat(e)),...this.returnStatements.flatMap(i=>i.toFlat(e)),...this.implements?this.implements.toFlat(e):[]])}toFlatIds(e=new Set){if(e.has(this.id))return[];e.add(this.id);const t=Kt(this);return[this.id,...this.inputs.flatMap(a=>a.toFlatIds(e)),...this.calls.flatMap(a=>a.toFlatIds(e)),...this.returnStatements.flatMap(a=>a.toFlatIds(e)),...this.implements?this.implements.toFlatIds(e):[],...t.flatMap(a=>a.toFlatIds(e))]}toJSON(e=new Set){var t;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,index:this.index,x:this.x,y:this.y,collapsed:this.collapsed,private:this.private,calls:this.calls.map(i=>i.toJSON(e)),inputs:this.inputs.map(i=>i.toJSON(e)),implements:((t=this.implements)==null?void 0:t.toJSON(e))||null,returnStatements:this.returnStatements.map(i=>i.toJSON(e)),parent:this.parent.toReference()})}toJSONClone(e=F){var i,a,o,l,d;let t;return(i=e.seenEntityMaps)!=null&&i.has(this.id)?t=e.seenEntityMaps.get(this.id):(t=e.newId||it(this,this.project,e.uuidStrategy),e.seenEntityMaps&&e.seenEntityMaps.set(this.id,t)),(a=e.seenEntities)!=null&&a.has(t)||(o=e.seenEntities)!=null&&o.has(this.id)?this.toReference({seenEntityMaps:e.seenEntityMaps}):((l=e.seenEntities)==null||l.add(t),(d=e.seenEntities)==null||d.add(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,index:this.index,x:this.x,y:this.y,collapsed:this.collapsed,private:this.private,calls:this.calls.map(h=>h.toJSONClone({...e,newId:null})),inputs:this.inputs.map(h=>h.toJSONClone({...e,newId:null})),implements:(()=>{var h;return this.implements&&this.project.getBuiltIn(this.implements.id)?this.implements.toJSON():(h=this.implements)==null?void 0:h.toJSONClone({...e,newId:null})})(),returnStatements:this.returnStatements.map(h=>h.toJSONClone({...e,newId:null})),parent:this.parent.toReference({seenEntityMaps:e.seenEntityMaps})})}toReference(e=F){var i;let t=this.id;return(i=e.seenEntityMaps)!=null&&i.has(this.id)&&(t=e.seenEntityMaps.get(this.id)),{id:t+"--"+O.UUID.uuid()+"--ref",type:r.GenericReference,entityId:t,version:this.version,entityType:this.type}}toShallowJSON(e=F){var i,a;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,index:this.index,collapsed:this.collapsed,private:this.private,x:this.x,y:this.y,inputs:this.inputs.map(o=>o.toReference(e)),calls:this.calls.map(o=>o.toReference(e)),returnStatements:this.returnStatements.map(o=>o.toReference(e)),implements:((a=this.implements)==null?void 0:a.toReference(e))||null,parent:this.parent.toReference(e)}}toFlatJSON(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.toShallowJSON(),...this.inputs.flatMap(i=>i.toFlatJSON(e)),...this.calls.flatMap(i=>i.toFlatJSON(e)),...this.returnStatements.flatMap(i=>i.toFlatJSON(e)),...this.implements?this.implements.toFlatJSON(e):[]])}toGenerationTarget(){var t;const e=this.parent.type===r.Project?void 0:this.parent.id;return{id:this.id,name:this.name,description:this.description,type:this.type,private:this.private,implements:((t=this.implements)==null?void 0:t.id)||null,parent:e}}toFlatGenerationTarget(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.toGenerationTarget(),...this.inputs.flatMap(i=>i.toFlatGenerationTarget(e)),...this.calls.flatMap(i=>i.toFlatGenerationTarget(e)),...this.returnStatements.flatMap(i=>i.toFlatGenerationTarget(e))])}clearErrors(){return this.errors=[],this.inputs.forEach(e=>e.clearErrors()),this.calls.forEach(e=>e.clearErrors()),this.returnStatements.forEach(e=>e.clearErrors()),this}validate(){const e=h7(this);return this.errors=[...e],{success:!0,error:null,data:this.toJSON()}}getErrors(){const e=Kt(this);return[...this.errors,...this.inputs.flatMap(i=>i.getErrors()),...e.flatMap(i=>i.getErrors())]}getShallowErrors(){return this.errors}clone(e=null,t=null,i=!0,a=!1){var I;let o=at(e,this);const l=this.toJSON(),d=t||O.UUID.uuid();l.inputs=[],l.calls=[],l.returnStatements=[];const h=d.split("-id"),y=h[h.length-1||0]||d;l.id=d;const f=tt(l,o);e?f.setParent(e):f.setParent(this.parent),i&&f.subscribe(),f.initChildren();const v=(I=this.inputs)==null?void 0:I.map((D,A)=>D.clone(f,y+"-argument-declaration-"+A+"-id",i));return f.inputs=v,a&&Kt(this).map((D,A)=>D.clone(f,y+"-body-entity-"+A+"-id")),f}getVariableInstances(){return Ue(this).filter(i=>i.type===r.VariableInstance)}getArgument(e){return this.inputs.find(t=>t.id===e)||null}createCall(e=this.project,t={}){const i={id:t.id||O.UUID.uuid(),version:t.version||"1",createdAt:t.createdAt||"2024-01-01T00:00:00.000Z",author:t.author||"1",previousVersion:t.previousVersion||null,deleted:t.deleted||!1,type:r.FunctionCall,parent:e.toReference(),successCalls:t.successCalls||[],errorCalls:t.errorCalls||[],inputs:t.inputs||[],outputs:t.outputs||[],error:t.error||null,process:t.process||null,calledBySuccess:t.calledBySuccess||[],calledByError:t.calledByError||[],calledByEntry:t.calledByEntry||[],declaration:this.toJSON(),x:0,y:0},a=b(i,this.project);return a.setParent(e),a.initChildren(),e===this.project&&this.project.addFunctionCall(a),a}createInternalCall(e,t={}){const i={id:t.id||O.UUID.uuid(),version:t.version||"1",type:r.InternalCall,parent:e.toReference(),successCalls:t.successCalls||[],errorCalls:t.errorCalls||[],inputs:t.inputs||[],outputs:t.outputs||[],error:t.error||null,process:t.process||null,calledBySuccess:t.calledBySuccess||[],calledByError:t.calledByError||[],calledByEntry:t.calledByEntry||[],declaration:this.toShallowJSON(),index:e.internalCalls.length},a=b(i,this.project);return a.setParent(e),a.initChildren(),a}addReturnStatement(e){return this.returnStatements.includes(e)||this.returnStatements.push(e),this}removeReturnStatement(e){const t=this.returnStatements.indexOf(e);return t!==-1&&this.returnStatements.splice(t,1),this}getUniqueReturnDeclarations(){const e=[],i=[...this.returnStatements].flatMap(a=>a.outputs);if(this.implements){const a=this.implements.outputs;return i.forEach(o=>{const l=a.find(h=>h===o.implements),d=e.find(h=>h.implements===o.implements);l&&!d&&e.push(o)}),m(e)}else return i.forEach(a=>{e.find(l=>l===a||B(l,this.project)===B(a,this.project)&&hr(l.dataType,a.dataType))||e.push(a)}),m(e)}};u(Te,"repository",{create:async(e,...t)=>e,update:async(e,...t)=>e,delete:async(e,...t)=>{},load:async(e,...t)=>null}),u(Te,"type",r.FunctionDeclaration),u(Te,"USER_MANAGED_PARENT_TYPES",[r.Project,r.InstalledProject,r.DefinitionEntity,r.Loop]),u(Te,"PARENT_TYPES",[...Te.USER_MANAGED_PARENT_TYPES,r.BuiltInBaseEntity,r.PrimitiveEntity]),u(Te,"MUTABLE_BASE_PROPERTIES",["name","description","private"]),u(Te,"INMUTABLE_BASE_PROPERTIES",["id","version","type"]),u(Te,"BASE_PROPERTIES",[...Te.MUTABLE_BASE_PROPERTIES,...Te.INMUTABLE_BASE_PROPERTIES]),u(Te,"MUTABLE_META_PROPERTIES",[...Te.MUTABLE_BASE_PROPERTIES,"x","y","index","collapsed"]),u(Te,"INMUTABLE_META_PROPERTIES",[...Te.INMUTABLE_BASE_PROPERTIES]),u(Te,"META_PROPERTIES",[...Te.MUTABLE_META_PROPERTIES,...Te.INMUTABLE_META_PROPERTIES]),u(Te,"MUTABLE_UPSTREAM_PROPERTIES",[]),u(Te,"INMUATABLE_UPSTREAM_PROPERTIES",["parent","implements"]),u(Te,"UPSTREAM_PROPERTIES",[...Te.MUTABLE_UPSTREAM_PROPERTIES,...Te.INMUATABLE_UPSTREAM_PROPERTIES]),u(Te,"MUTABLE_DOWNSTREAM_PROPERTIES",["inputs","calls","returnStatements"]),u(Te,"INMUATABLE_DOWNSTREAM_PROPERTIES",[]),u(Te,"DOWNSTREAM_PROPERTIES",[...Te.MUTABLE_DOWNSTREAM_PROPERTIES,...Te.INMUATABLE_DOWNSTREAM_PROPERTIES]),u(Te,"PROPERTIES",[...Te.META_PROPERTIES,...Te.UPSTREAM_PROPERTIES,...Te.DOWNSTREAM_PROPERTIES]);let li=Te;function m7(n){const s=Q6(),e=n.toJSON();s.safeParse(e).success;const i=[];if(n.entity&&n.andChildrenGroup||n.entity&&n.orChildrenGroup||n.andChildrenGroup&&n.orChildrenGroup){const a=le({id:n.id+"--"+U.InvalidPropertiesCombination,message:`Data type with id "${n.id}" has invalid properties combination. Only one of the following properties can be present at the time: 'entity', 'andChildrenGroup' or 'orChildrenGroup'`,issue:null,severity:E.Error,code:U.InvalidPropertiesCombination,entity:n});i.push(a.error)}return xe(n.errors,i)}function T7(n,s){const e=[],t=[r.DefinitionEntity,r.ActionDescriptor,r.Property,r.ArgumentDeclaration,r.ReturnDeclaration,r.VariableDeclaration,r.ValueDescriptor,r.DataType],i=`'${K(t,"', '","' or '")}'`;if(n.parent)if(n.id===n.parent)e.push(new g({id:`${n.id}--${n.parent}--${T.SelfReference}`,code:T.SelfReference,severity:E.Error,message:`Entity of type "${n.type}" with id "${n.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 a=s.get(n.parent);a?t.includes(a.type)||e.push(new g({id:`${n.id}--${n.parent}--${T.InvalidParentReference}`,code:T.InvalidParentReference,severity:E.Error,message:`Entity of type "${n.type}" with id "${n.id}", has a parent reference that isn't pointing to an entity of type ${i}.`,issue:null})):e.push(new g({id:`${n.id}--${n.parent}--${T.ReferencedEntityNotFound}`,code:T.ReferencedEntityNotFound,severity:E.Error,message:`Entity of type "${n.type}" with id "${n.id}", is referencing an entity with id "${n.parent}" that isn't yet found in the project. Perhaps it should be created first. Or perhaps the ID is incorrect.`,issue:null}))}else e.push(new g({id:`${n.id}--${w.InvalidObjectStructure}`,code:w.InvalidObjectStructure,severity:E.Error,message:`Entity of type "${n.type}" with id "${n.id}" is missing a 'parent' reference. The 'parent' of a 'data-type' entity must be a reference to an entity of type ${i}.`,issue:null}));if(n.entity){if(n.id===n.entity)return e.push(new g({id:`${n.id}--${n.entity}--${T.SelfReference}`,code:T.SelfReference,severity:E.Error,message:`Entity of type "${n.type}" with id "${n.id}", has a reference to itself at 'entity'. This is not allowed. Change the reference string or the 'entityId' property of the reference object.`,issue:null})),e;const a=s.get(n.entity);a?[r.DefinitionEntity,r.PrimitiveEntity,r.ActionDescriptor,r.BuiltInBaseEntity].includes(a.type)||e.push(new g({id:`${n.id}--${n.entity}--${T.InvalidImplementsReference}`,code:T.InvalidImplementsReference,severity:E.Error,message:`Entity of type "${n.type}" with id "${n.id}", has an 'entity' reference that isn't pointing to an entity of type 'definition-entity', 'primitive-entity', 'action-descriptor' or 'built-in-base-entity'.`,issue:null})):e.push(new g({id:`${n.id}--${n.entity}--${T.ReferencedEntityNotFound}`,code:T.ReferencedEntityNotFound,severity:E.Error,message:`Entity of type "${n.type}" with id "${n.id}", is referencing an entity with id "${n.entity}" that isn't yet found in the project. Perhaps it should be created first. Or perhaps the ID is incorrect.`,issue:null}))}return e}const ve=class ve extends He{constructor(e,t){super(e);u(this,"initialData");u(this,"id");u(this,"isList",null);u(this,"asType",null);u(this,"type",r.DataType);u(this,"options");u(this,"parentRelationType");u(this,"like");u(this,"implementationChooseOne",!1);u(this,"inferred",!1);u(this,"entity",null);u(this,"andChildrenGroup",null);u(this,"orChildrenGroup",null);u(this,"project");u(this,"errors",[]);u(this,"parent");u(this,"initialized",!1);this.initialData=e,this.project=t,this.id=e.id,this.isList=e.isList,this.asType=e.asType,this.options=e.options,this.parentRelationType=e.parentRelationType,this.inferred=e.inferred||!1,this.like=e.like||!1,this.implementationChooseOne=e.implementationChooseOne||!1}static fromGenerationTarget(e,t){const i=P(e.parent),a=t.get(i);let o=null;e.entity&&(o=t.get(e.entity));const l={id:e.id,version:"1",createdAt:$().toDate(),author:"1",previousVersion:null,deleted:!1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,parentRelationType:e.parentRelationType,isList:e.isList,like:e.like||!1,inferred:!1,implementationChooseOne:e.implementationChooseOne||!1,entity:o,asType:e.asType,parent:a},d=b(l,t);return d.setParent(a),d.initChildren(),d}static validateGenerationTarget(e,t){var h;let i=JSON.parse(JSON.stringify(e));const a=[],o=T7(i,t);if(a.push(...o,...et(i)),i.entity){const y=t.get(i.entity);if(y.type===r.DefinitionEntity){const v=Vn(y).filter(R=>!R.interactive);if(v.length){const R=v.length>1?`entities with ids '${K(v.map(I=>I.id),"', '","' and '")}'`:`entity with id '${v[0].id}'`;a.push(new g({id:`${e.id}--${T.NonInteractiveEntityReferenced}`,code:T.NonInteractiveEntityReferenced,severity:E.Error,message:`The entity with id '${e.id}' and type '${e.type}', cannot reference 'definition-entity' with id '${i.entity}' at 'entity'. The entity extends or implements non-interactive built-in-base-entity ${R}.
56
56
  ${Sn}`,issue:null}))}}}const l=i.parent&&t.get(i.parent)||t.getBuiltIn(i.parent),d=l?Cn(l):null;if(d)a.push(new g({id:`${e.id}--${T.BuiltInEntityParent}`,code:T.BuiltInEntityParent,severity:E.Error,message:`The entity with id '${e.id}' and type '${e.type}', belongs to a built-in system entity "${B(d,t)}" with id '${d.id}', and therefore it cannot be created as it would affect a built in entity, which are inmutable.`,issue:null}));else if(l){const y=l.type,f=[r.Property,r.VariableDeclaration,r.ArgumentDeclaration,r.ReturnDeclaration,r.ValueDescriptor];if(f.includes(y)&&(i.parentRelationType&&a.push(new g({id:`${e.id}--${T.InvalidParentRelationType}`,code:T.InvalidParentRelationType,severity:E.Error,message:`The entity with id '${e.id}' and type '${e.type}', cannot have a 'parentRelationType' property set of type '${y}'.
57
57
  The entitities of type '${K(f,"', '","' and '")}' can only have one 'data-type' child under the 'dataType' property so no 'parentRelationType' is needed.`,issue:null})),l.dataType)){const v=(h=l.dataType)==null?void 0:h.id;a.push(new g({id:`${e.id}--${T.NewEntityWouldOverriteExisting}`,code:T.NewEntityWouldOverriteExisting,severity:E.Error,message:`The entity with id '${e.id}' and type '${e.type}', cannot be added as a child to the entity with id '${i.parent}' and type '${y}', because it already has a 'data-type' child with id '${v}'.
58
58
  The entitities of type '${K(f,"', '","' and '")}' can only have one 'data-type' child under the 'dataType' property. You can inspect the existing data-type entity with the 'describe_entity' action. Like so:
@@ -68,7 +68,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
68
68
  ${Vl(t)}`,issue:null}));else if(!t.get(e.implements))a.push(new g({id:`${e.id}--${T.ReferencedEntityNotFound}`,code:T.ReferencedEntityNotFound,severity:E.Error,message:`Entity of type '${e.type}' with id '${e.id}' has an 'implements' property that isn't found in the project. The 'implements' property must point to one of the built-in action descriptors reserved for 'global-event' entities.
69
69
  ${Vl(t)}`,issue:null}));else if(!t.globalEventActionDescriptors.find(h=>h.id===e.implements))a.push(new g({id:`${e.id}--${T.InvalidImplementsReference}`,code:T.InvalidImplementsReference,severity:E.Error,message:`Entity of type '${e.type}' with id '${e.id}' has an 'implements' property that isn't pointing to an action descriptor reserved for 'global-event' entities.
70
70
  ${Vl(t)}`,issue:null}));else{const h=t.events.find(y=>y.implements.id===e.implements);h&&a.push(new g({id:`${e.id}--${T.InvalidImplementsReference}`,code:T.InvalidImplementsReference,severity:E.Error,message:`Entity of type '${e.type}' with id '${e.id}' has an 'implements' property that points to an action descriptor that is already implemented by another global event with id '${h.id}' in the project. Each global event must implement a unique action descriptor.
71
- You can attach new logic to the existing 'global-event' but creating a new callable entity that gets called by it.`,issue:null}))}return{errors:a,modifiedData:i}}validateGeneratedUpdate(e){const t=[];return e.parent&&t.push(new g({id:`${this.id}--${T.InvalidParentUpdate}`,code:T.InvalidParentUpdate,severity:E.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}}hydrateAncestors(){const e=[],t=[],i=[];if(this.initialData.parent){const a=P(this.initialData.parent),o=this.project.get(a);if(o)this.setParent(o),e.push(o);else throw new Error(`${_t(this.type)} with id '${this.id}' has a parent reference "${a}" which is missing in the project`)}else throw new Error(`${_t(this.type)} with id '${this.id}' is missing a parent reference`);if(this.initialData.implements){const a=P(this.initialData.implements),o=this.project.get(a);if(o)this.setImplements(o),e.push(o);else throw new Error(`${_t(this.type)} with id '${this.id}' has a 'implements' reference "${a}" which is missing in the project`)}else throw new Error(`${_t(this.type)} with id '${this.id}' is missing a 'implements' reference`);return{updated:m(e),added:m(t),removed:m(i),self:this}}afterAllChildrenInitialized(){const e=[],t=[],i=[];return this.initialized=!0,{updated:m(e),added:m(t),removed:m(i),self:this}}addSelfToProject(){const e=[this],t=[],i=[];return this.project.addGlobalEvent(this),{updated:m(e),added:m(t),removed:m(i),self:this}}replaceDetachedChild(e,t){const i=this.detachedChildren.indexOf(e);return i!==-1&&(this.detachedChildren[i]=t),this}subscribeDetachedChild(e){return this.detachedChildren.includes(e)||this.detachedChildren.push(e),this}setParent(e){return this.parent=e,this}setImplements(e){return this.implements=e,this}addCall(e){return this.calls.includes(e)||this.calls.push(e),this}removeCall(e){const t=this.calls.indexOf(e);return t!==-1&&this.calls.splice(t,1),this}addInputDeclaration(e){return this.inputs.includes(e)||this.inputs.push(e),this}removeInputDeclaration(e){const t=this.inputs.findIndex(i=>i.id===e.id);return t>-1&&this.inputs.splice(t,1),this}initChildren(){return this.initialized?this:(this.initialized=!0,this.inputs=this.initialData.inputs.map(e=>{const t=b(e,this.project);return t.setParent(this),t.initChildren(),t}),this.calls=this.initialData.calls.map(e=>{const t=b(e,this.project);return t.addEntryCaller(this),t.type!==r.InternalCall&&(t.setParent(this),t.initChildren()),t}),this.returnStatements=this.initialData.returnStatements.map(e=>{const t=b(e,this.project);return t.setParent(this),t.initChildren(),t}),this.implements=b(this.initialData.implements,this.project),this.afterAllChildrenInitialized(),this)}subscribe(){return this.project.subscribeInstance(this),this}unsubscribe(){return this.project.unsubscribeInstance(this),this}sync(e){return super.sync(e),this.name=e.name||this.name,this.description=e.description||this.description,this.x=e.x||this.x,this.y=e.y||this.y,this.collapsed=e.collapsed!==void 0?e.collapsed:this.collapsed,this}async load(e=L,...t){return await Re.repository.load(this.id,...t),this}async create(e=L,...t){return await Re.repository.create(this.toShallowJSON(),...t),this}async update(e=L,...t){return await Re.repository.update(this.toShallowJSON(),...t),this}async delete(e=L,...t){return await Re.repository.delete(this.id,...t),this}remove({ignoreUpstream:e,seenEntities:t}={ignoreUpstream:!1,seenEntities:new Set}){const i=[],a=[];return t.has(this.id)?{affected:[],removed:[]}:(t.add(this.id),a.push(this),this.unsubscribe(),this.inputs.forEach(l=>{const{affected:d,removed:h}=l.remove({ignoreUpstream:!0,seenEntities:t});i.push(...d),a.push(...h)}),Kt(this).forEach(l=>{const{affected:d,removed:h}=l.remove({ignoreUpstream:!0,seenEntities:t});i.push(...d),a.push(...h)}),{affected:m(i),removed:m(a)})}restore({seenEntities:e}={seenEntities:new Set}){const t=[];return e.has(this.id)?{affected:[],self:this}:(e.add(this.id),this.subscribe(),this.inputs.forEach(a=>{const{affected:o}=a.restore({seenEntities:e});t.push(...o)}),Kt(this).forEach(a=>{const{affected:o}=a.restore({seenEntities:e});t.push(...o)}),{affected:m(t),self:this})}toFlat(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this,...this.inputs.flatMap(i=>i.toFlat(e)),...this.calls.flatMap(i=>i.toFlat(e)),...this.returnStatements.flatMap(i=>i.toFlat(e)),...this.implements?this.implements.toFlat(e):[]])}toFlatIds(e=new Set){if(e.has(this.id))return[];e.add(this.id);const t=Kt(this);return[this.id,...this.inputs.flatMap(a=>a.toFlatIds(e)),...this.calls.flatMap(a=>a.toFlatIds(e)),...this.returnStatements.flatMap(a=>a.toFlatIds(e)),...this.implements?this.implements.toFlatIds(e):[],...t.flatMap(a=>a.toFlatIds(e))]}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,collapsed:this.collapsed,implements:this.implements.toJSON(e),returnStatements:this.returnStatements.map(t=>t.toJSON(e)),inputs:this.inputs.map(t=>t.toJSON(e)),calls:this.calls.map(t=>t.toJSON(e)),parent:this.parent.toReference()})}toJSONClone(e=F){var i,a,o,l,d;let t;return(i=e.seenEntityMaps)!=null&&i.has(this.id)?t=e.seenEntityMaps.get(this.id):(t=e.newId||it(this,this.project,e.uuidStrategy),e.seenEntityMaps&&e.seenEntityMaps.set(this.id,t)),(a=e.seenEntities)!=null&&a.has(t)||(o=e.seenEntities)!=null&&o.has(this.id)?this.toReference({seenEntityMaps:e.seenEntityMaps}):((l=e.seenEntities)==null||l.add(t),(d=e.seenEntities)==null||d.add(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,x:this.x,y:this.y,collapsed:this.collapsed,implements:this.implements.toJSON(),returnStatements:this.returnStatements.map(h=>h.toJSONClone({...e,newId:null})),inputs:this.inputs.map(h=>h.toJSONClone({...e,newId:null})),calls:this.calls.map(h=>h.toJSONClone({...e,newId:null})),parent:this.parent.toReference({seenEntityMaps:e.seenEntityMaps})})}toReference(e=F){var i;let t=this.id;return(i=e.seenEntityMaps)!=null&&i.has(this.id)&&(t=e.seenEntityMaps.get(this.id)),{id:t+"--"+O.UUID.uuid()+"--ref",type:r.GenericReference,entityId:t,version:this.version,entityType:this.type}}toShallowJSON(e=F){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,collapsed:this.collapsed,x:this.x,y:this.y,implements:this.implements.toReference(e),inputs:this.inputs.map(a=>a.toReference(e)),calls:this.calls.map(a=>a.toReference(e)),returnStatements:this.returnStatements.map(a=>a.toReference(e)),parent:this.parent.toReference(e)}}toFlatJSON(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.toShallowJSON(),...this.inputs.flatMap(i=>i.toFlatJSON(e)),...this.calls.flatMap(i=>i.toFlatJSON(e)),...this.returnStatements.flatMap(i=>i.toFlatJSON(e))])}toGenerationTarget(){return{id:this.id,name:this.name,description:this.description||void 0,type:this.type,implements:this.implements.id}}toFlatGenerationTarget(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.toGenerationTarget(),...this.inputs.flatMap(i=>i.toFlatGenerationTarget(e)),...this.calls.flatMap(i=>i.toFlatGenerationTarget(e)),...this.returnStatements.flatMap(i=>i.toFlatGenerationTarget(e))])}clearErrors(){return this.errors=[],this.inputs.forEach(e=>e.clearErrors()),this.calls.forEach(e=>e.clearErrors()),this.returnStatements.forEach(e=>e.clearErrors()),this}validate(){const e=R7(this);return this.errors=e,{success:!0,error:null,data:this.toJSON()}}getErrors(){const e=Kt(this);return[...this.errors,...this.inputs.flatMap(i=>i.getErrors()),...e.flatMap(i=>i.getErrors())]}getShallowErrors(){return this.errors}clone(e=null,t=null,i=!0,a=!1){var I;let o=at(e,this);const l=this.toJSON(),d=t||O.UUID.uuid();l.inputs=[];const h=d.split("-id"),y=h[h.length-1||0]||d;l.id=d;const f=tt(l,o);e?f.setParent(e):f.setParent(this.parent),i&&f.subscribe(),f.initChildren();const v=(I=this.inputs)==null?void 0:I.map((D,A)=>D.clone(f,y+"-argument-declaration-"+A+"-id",i));return f.inputs=v,a&&Kt(this).map((D,A)=>D.clone(f,y+"-body-entity-"+A+"-id")),f}getVariableInstances(){return Ue(this).filter(i=>i.type===r.VariableInstance)}addReturnStatement(e){return this.returnStatements.includes(e)||this.returnStatements.push(e),this}removeReturnStatement(e){const t=this.returnStatements.indexOf(e);return t!==-1&&this.returnStatements.splice(t,1),this}};u(Re,"repository",{create:async(e,...t)=>e,update:async(e,...t)=>e,delete:async(e,...t)=>{},load:async(e,...t)=>null}),u(Re,"type",r.GlobalEvent),u(Re,"USER_MANAGED_PARENT_TYPES",[r.Project]),u(Re,"PARENT_TYPES",[...Re.USER_MANAGED_PARENT_TYPES]),u(Re,"MUTABLE_BASE_PROPERTIES",["description"]),u(Re,"INMUTABLE_BASE_PROPERTIES",["id","version","name","type"]),u(Re,"BASE_PROPERTIES",[...Re.MUTABLE_BASE_PROPERTIES,...Re.INMUTABLE_BASE_PROPERTIES]),u(Re,"MUTABLE_META_PROPERTIES",[...Re.MUTABLE_BASE_PROPERTIES,"x","y","collapsed"]),u(Re,"INMUTABLE_META_PROPERTIES",[...Re.INMUTABLE_BASE_PROPERTIES]),u(Re,"META_PROPERTIES",[...Re.MUTABLE_META_PROPERTIES,...Re.INMUTABLE_META_PROPERTIES]),u(Re,"MUTABLE_UPSTREAM_PROPERTIES",[]),u(Re,"INMUTABLE_UPSTREAM_PROPERTIES",["parent","implements"]),u(Re,"UPSTREAM_PROPERTIES",[...Re.MUTABLE_UPSTREAM_PROPERTIES,...Re.INMUTABLE_UPSTREAM_PROPERTIES]),u(Re,"MUTABLE_DOWNSTREAM_PROPERTIES",["inputs","calls","returnStatements"]),u(Re,"INMUTABLE_DOWNSTREAM_PROPERTIES",[]),u(Re,"DOWNSTREAM_PROPERTIES",[...Re.MUTABLE_DOWNSTREAM_PROPERTIES,...Re.INMUTABLE_DOWNSTREAM_PROPERTIES]),u(Re,"PROPERTIES",[...Re.META_PROPERTIES,...Re.UPSTREAM_PROPERTIES,...Re.DOWNSTREAM_PROPERTIES]);let pa=Re;function g7(n){var o,l;const s=kk(),e=n.toJSON();s.safeParse(e).success,n.inputs.forEach(d=>d.validate()),n.outputs.forEach(d=>d.validate()),(o=n.error)==null||o.validate(),(l=n.body)==null||l.validate();const a=[...ln(n)];return xe(n.errors,a)}function b7(n){const s=sA(),e=n.toJSON();s.safeParse(e).success,n.inputs.flatMap(a=>a.validate()),n.outputs.flatMap(a=>a.validate());const i=[];return xe(n.errors,i)}var j1=(n=>(n.Success="success",n.Error="error",n.Break="break",n.Continue="continue",n.Return="return",n))(j1||{});const ge=class ge extends He{constructor(e,t){super(e);u(this,"initialData");u(this,"id");u(this,"name");u(this,"description",null);u(this,"type",r.ActionDescriptor);u(this,"inputs",[]);u(this,"outputs",[]);u(this,"error",null);u(this,"implementation",null);u(this,"parent",null);u(this,"errors",[]);u(this,"project");u(this,"initialized",!1);u(this,"autoexecutable",!1);this.initialData=e,this.project=t,this.id=e.id,this.name=e.name,this.description=e.description}static fromGenerationTarget(e,t){let i=null;if(e.parent){const l=P(e.parent);i=t.get(l)}const a={id:e.id,version:"1",createdAt:$().toDate(),author:"1",previousVersion:null,deleted:!1,name:e.name,type:r.ActionDescriptor,description:e.description,inputs:[],outputs:[],error:null,parent:i},o=b(a,t);return i&&o.setParent(i),o.initChildren(),o}static validateGenerationTarget(e,t){let i=JSON.parse(JSON.stringify(e));const a=[],o=ft(i,{parent:{list:!1,types:[r.DefinitionEntity,r.DataType]}},t);i=o.modifiedData;const l=i.parent?t.get(i.parent):null;if(l&&l.type===r.DefinitionEntity){const d=l,y=Vn(d).filter(f=>!f.interactive);if(y.length){let f=y.length>1?`The entity of type '${e.type}' with id '${e.id}' can't be added to the 'parent' entity with id '${d.id}' because it extends or implements multiple '${r.BuiltInBaseEntity}' entities that are non-interactive ("${K(y.map(v=>B(v,v.project)),'", "','" and "')}").`:`The entity of type '${e.type}' with id '${e.id}' can't be added to the 'parent' entity with id '${d.id}' because it extends or implements a '${r.BuiltInBaseEntity}' entity that is non-interactive ("${B(y[0],y[0].project)}").`;f+=`
71
+ You can attach new logic to the existing 'global-event' but creating a new callable entity that gets called by it.`,issue:null}))}return{errors:a,modifiedData:i}}validateGeneratedUpdate(e){const t=[];return e.parent&&t.push(new g({id:`${this.id}--${T.InvalidParentUpdate}`,code:T.InvalidParentUpdate,severity:E.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}}hydrateAncestors(){const e=[],t=[],i=[];if(this.initialData.parent){const a=P(this.initialData.parent),o=this.project.get(a);if(o)this.setParent(o),e.push(o);else throw new Error(`${jt(this.type)} with id '${this.id}' has a parent reference "${a}" which is missing in the project`)}else throw new Error(`${jt(this.type)} with id '${this.id}' is missing a parent reference`);if(this.initialData.implements){const a=P(this.initialData.implements),o=this.project.get(a);if(o)this.setImplements(o),e.push(o);else throw new Error(`${jt(this.type)} with id '${this.id}' has a 'implements' reference "${a}" which is missing in the project`)}else throw new Error(`${jt(this.type)} with id '${this.id}' is missing a 'implements' reference`);return{updated:m(e),added:m(t),removed:m(i),self:this}}afterAllChildrenInitialized(){const e=[],t=[],i=[];return this.initialized=!0,{updated:m(e),added:m(t),removed:m(i),self:this}}addSelfToProject(){const e=[this],t=[],i=[];return this.project.addGlobalEvent(this),{updated:m(e),added:m(t),removed:m(i),self:this}}replaceDetachedChild(e,t){const i=this.detachedChildren.indexOf(e);return i!==-1&&(this.detachedChildren[i]=t),this}subscribeDetachedChild(e){return this.detachedChildren.includes(e)||this.detachedChildren.push(e),this}setParent(e){return this.parent=e,this}setImplements(e){return this.implements=e,this}addCall(e){return this.calls.includes(e)||this.calls.push(e),this}removeCall(e){const t=this.calls.indexOf(e);return t!==-1&&this.calls.splice(t,1),this}addInputDeclaration(e){return this.inputs.includes(e)||this.inputs.push(e),this}removeInputDeclaration(e){const t=this.inputs.findIndex(i=>i.id===e.id);return t>-1&&this.inputs.splice(t,1),this}initChildren(){return this.initialized?this:(this.initialized=!0,this.inputs=this.initialData.inputs.map(e=>{const t=b(e,this.project);return t.setParent(this),t.initChildren(),t}),this.calls=this.initialData.calls.map(e=>{const t=b(e,this.project);return t.addEntryCaller(this),t.type!==r.InternalCall&&(t.setParent(this),t.initChildren()),t}),this.returnStatements=this.initialData.returnStatements.map(e=>{const t=b(e,this.project);return t.setParent(this),t.initChildren(),t}),this.implements=b(this.initialData.implements,this.project),this.afterAllChildrenInitialized(),this)}subscribe(){return this.project.subscribeInstance(this),this}unsubscribe(){return this.project.unsubscribeInstance(this),this}sync(e){return super.sync(e),this.name=e.name||this.name,this.description=e.description||this.description,this.x=e.x||this.x,this.y=e.y||this.y,this.collapsed=e.collapsed!==void 0?e.collapsed:this.collapsed,this}async load(e=L,...t){return await Re.repository.load(this.id,...t),this}async create(e=L,...t){return await Re.repository.create(this.toShallowJSON(),...t),this}async update(e=L,...t){return await Re.repository.update(this.toShallowJSON(),...t),this}async delete(e=L,...t){return await Re.repository.delete(this.id,...t),this}remove({ignoreUpstream:e,seenEntities:t}={ignoreUpstream:!1,seenEntities:new Set}){const i=[],a=[];return t.has(this.id)?{affected:[],removed:[]}:(t.add(this.id),a.push(this),this.unsubscribe(),this.inputs.forEach(l=>{const{affected:d,removed:h}=l.remove({ignoreUpstream:!0,seenEntities:t});i.push(...d),a.push(...h)}),Kt(this).forEach(l=>{const{affected:d,removed:h}=l.remove({ignoreUpstream:!0,seenEntities:t});i.push(...d),a.push(...h)}),{affected:m(i),removed:m(a)})}restore({seenEntities:e}={seenEntities:new Set}){const t=[];return e.has(this.id)?{affected:[],self:this}:(e.add(this.id),this.subscribe(),this.inputs.forEach(a=>{const{affected:o}=a.restore({seenEntities:e});t.push(...o)}),Kt(this).forEach(a=>{const{affected:o}=a.restore({seenEntities:e});t.push(...o)}),{affected:m(t),self:this})}toFlat(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this,...this.inputs.flatMap(i=>i.toFlat(e)),...this.calls.flatMap(i=>i.toFlat(e)),...this.returnStatements.flatMap(i=>i.toFlat(e)),...this.implements?this.implements.toFlat(e):[]])}toFlatIds(e=new Set){if(e.has(this.id))return[];e.add(this.id);const t=Kt(this);return[this.id,...this.inputs.flatMap(a=>a.toFlatIds(e)),...this.calls.flatMap(a=>a.toFlatIds(e)),...this.returnStatements.flatMap(a=>a.toFlatIds(e)),...this.implements?this.implements.toFlatIds(e):[],...t.flatMap(a=>a.toFlatIds(e))]}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,collapsed:this.collapsed,implements:this.implements.toJSON(e),returnStatements:this.returnStatements.map(t=>t.toJSON(e)),inputs:this.inputs.map(t=>t.toJSON(e)),calls:this.calls.map(t=>t.toJSON(e)),parent:this.parent.toReference()})}toJSONClone(e=F){var i,a,o,l,d;let t;return(i=e.seenEntityMaps)!=null&&i.has(this.id)?t=e.seenEntityMaps.get(this.id):(t=e.newId||it(this,this.project,e.uuidStrategy),e.seenEntityMaps&&e.seenEntityMaps.set(this.id,t)),(a=e.seenEntities)!=null&&a.has(t)||(o=e.seenEntities)!=null&&o.has(this.id)?this.toReference({seenEntityMaps:e.seenEntityMaps}):((l=e.seenEntities)==null||l.add(t),(d=e.seenEntities)==null||d.add(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,x:this.x,y:this.y,collapsed:this.collapsed,implements:this.implements.toJSON(),returnStatements:this.returnStatements.map(h=>h.toJSONClone({...e,newId:null})),inputs:this.inputs.map(h=>h.toJSONClone({...e,newId:null})),calls:this.calls.map(h=>h.toJSONClone({...e,newId:null})),parent:this.parent.toReference({seenEntityMaps:e.seenEntityMaps})})}toReference(e=F){var i;let t=this.id;return(i=e.seenEntityMaps)!=null&&i.has(this.id)&&(t=e.seenEntityMaps.get(this.id)),{id:t+"--"+O.UUID.uuid()+"--ref",type:r.GenericReference,entityId:t,version:this.version,entityType:this.type}}toShallowJSON(e=F){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,collapsed:this.collapsed,x:this.x,y:this.y,implements:this.implements.toReference(e),inputs:this.inputs.map(a=>a.toReference(e)),calls:this.calls.map(a=>a.toReference(e)),returnStatements:this.returnStatements.map(a=>a.toReference(e)),parent:this.parent.toReference(e)}}toFlatJSON(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.toShallowJSON(),...this.inputs.flatMap(i=>i.toFlatJSON(e)),...this.calls.flatMap(i=>i.toFlatJSON(e)),...this.returnStatements.flatMap(i=>i.toFlatJSON(e))])}toGenerationTarget(){return{id:this.id,name:this.name,description:this.description||void 0,type:this.type,implements:this.implements.id}}toFlatGenerationTarget(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.toGenerationTarget(),...this.inputs.flatMap(i=>i.toFlatGenerationTarget(e)),...this.calls.flatMap(i=>i.toFlatGenerationTarget(e)),...this.returnStatements.flatMap(i=>i.toFlatGenerationTarget(e))])}clearErrors(){return this.errors=[],this.inputs.forEach(e=>e.clearErrors()),this.calls.forEach(e=>e.clearErrors()),this.returnStatements.forEach(e=>e.clearErrors()),this}validate(){const e=R7(this);return this.errors=e,{success:!0,error:null,data:this.toJSON()}}getErrors(){const e=Kt(this);return[...this.errors,...this.inputs.flatMap(i=>i.getErrors()),...e.flatMap(i=>i.getErrors())]}getShallowErrors(){return this.errors}clone(e=null,t=null,i=!0,a=!1){var I;let o=at(e,this);const l=this.toJSON(),d=t||O.UUID.uuid();l.inputs=[];const h=d.split("-id"),y=h[h.length-1||0]||d;l.id=d;const f=tt(l,o);e?f.setParent(e):f.setParent(this.parent),i&&f.subscribe(),f.initChildren();const v=(I=this.inputs)==null?void 0:I.map((D,A)=>D.clone(f,y+"-argument-declaration-"+A+"-id",i));return f.inputs=v,a&&Kt(this).map((D,A)=>D.clone(f,y+"-body-entity-"+A+"-id")),f}getVariableInstances(){return Ue(this).filter(i=>i.type===r.VariableInstance)}addReturnStatement(e){return this.returnStatements.includes(e)||this.returnStatements.push(e),this}removeReturnStatement(e){const t=this.returnStatements.indexOf(e);return t!==-1&&this.returnStatements.splice(t,1),this}};u(Re,"repository",{create:async(e,...t)=>e,update:async(e,...t)=>e,delete:async(e,...t)=>{},load:async(e,...t)=>null}),u(Re,"type",r.GlobalEvent),u(Re,"USER_MANAGED_PARENT_TYPES",[r.Project]),u(Re,"PARENT_TYPES",[...Re.USER_MANAGED_PARENT_TYPES]),u(Re,"MUTABLE_BASE_PROPERTIES",["description"]),u(Re,"INMUTABLE_BASE_PROPERTIES",["id","version","name","type"]),u(Re,"BASE_PROPERTIES",[...Re.MUTABLE_BASE_PROPERTIES,...Re.INMUTABLE_BASE_PROPERTIES]),u(Re,"MUTABLE_META_PROPERTIES",[...Re.MUTABLE_BASE_PROPERTIES,"x","y","collapsed"]),u(Re,"INMUTABLE_META_PROPERTIES",[...Re.INMUTABLE_BASE_PROPERTIES]),u(Re,"META_PROPERTIES",[...Re.MUTABLE_META_PROPERTIES,...Re.INMUTABLE_META_PROPERTIES]),u(Re,"MUTABLE_UPSTREAM_PROPERTIES",[]),u(Re,"INMUTABLE_UPSTREAM_PROPERTIES",["parent","implements"]),u(Re,"UPSTREAM_PROPERTIES",[...Re.MUTABLE_UPSTREAM_PROPERTIES,...Re.INMUTABLE_UPSTREAM_PROPERTIES]),u(Re,"MUTABLE_DOWNSTREAM_PROPERTIES",["inputs","calls","returnStatements"]),u(Re,"INMUTABLE_DOWNSTREAM_PROPERTIES",[]),u(Re,"DOWNSTREAM_PROPERTIES",[...Re.MUTABLE_DOWNSTREAM_PROPERTIES,...Re.INMUTABLE_DOWNSTREAM_PROPERTIES]),u(Re,"PROPERTIES",[...Re.META_PROPERTIES,...Re.UPSTREAM_PROPERTIES,...Re.DOWNSTREAM_PROPERTIES]);let pa=Re;function g7(n){var o,l;const s=kk(),e=n.toJSON();s.safeParse(e).success,n.inputs.forEach(d=>d.validate()),n.outputs.forEach(d=>d.validate()),(o=n.error)==null||o.validate(),(l=n.body)==null||l.validate();const a=[...ln(n)];return xe(n.errors,a)}function b7(n){const s=sA(),e=n.toJSON();s.safeParse(e).success,n.inputs.flatMap(a=>a.validate()),n.outputs.flatMap(a=>a.validate());const i=[];return xe(n.errors,i)}var j1=(n=>(n.Success="success",n.Error="error",n.Break="break",n.Continue="continue",n.Return="return",n))(j1||{});const ge=class ge extends He{constructor(e,t){super(e);u(this,"initialData");u(this,"id");u(this,"name");u(this,"description",null);u(this,"type",r.ActionDescriptor);u(this,"inputs",[]);u(this,"outputs",[]);u(this,"error",null);u(this,"implementation",null);u(this,"parent",null);u(this,"errors",[]);u(this,"project");u(this,"initialized",!1);u(this,"autoexecutable",!1);this.initialData=e,this.project=t,this.id=e.id,this.name=e.name,this.description=e.description}static fromGenerationTarget(e,t){let i=null;if(e.parent){const l=P(e.parent);i=t.get(l)}const a={id:e.id,version:"1",createdAt:$().toDate(),author:"1",previousVersion:null,deleted:!1,name:e.name,type:r.ActionDescriptor,description:e.description,inputs:[],outputs:[],error:null,parent:i},o=b(a,t);return i&&o.setParent(i),o.initChildren(),o}static validateGenerationTarget(e,t){let i=JSON.parse(JSON.stringify(e));const a=[],o=ft(i,{parent:{list:!1,types:[r.DefinitionEntity,r.DataType]}},t);i=o.modifiedData;const l=i.parent?t.get(i.parent):null;if(l&&l.type===r.DefinitionEntity){const d=l,y=Vn(d).filter(f=>!f.interactive);if(y.length){let f=y.length>1?`The entity of type '${e.type}' with id '${e.id}' can't be added to the 'parent' entity with id '${d.id}' because it extends or implements multiple '${r.BuiltInBaseEntity}' entities that are non-interactive ("${K(y.map(v=>B(v,v.project)),'", "','" and "')}").`:`The entity of type '${e.type}' with id '${e.id}' can't be added to the 'parent' entity with id '${d.id}' because it extends or implements a '${r.BuiltInBaseEntity}' entity that is non-interactive ("${B(y[0],y[0].project)}").`;f+=`
72
72
  ${Sn}`,a.push(new g({id:`${e.id}--${T.NonInteractiveEntityReferenced}`,code:T.NonInteractiveEntityReferenced,severity:E.Error,message:f,issue:null}))}}else if(l&&l.type===r.DataType){const d=l;d.entity&&a.push(new g({id:`${e.id}--${T.NewEntityWouldOverriteExisting}`,code:T.NewEntityWouldOverriteExisting,severity:E.Error,message:`The entity of type '${e.type}' with id '${e.id}' can't be added to the 'parent' entity with id '${d.id}' because it already has an 'entity' child. Data type entities can only have one 'entity' as children.
73
73
  You can inspect the existing 'entity' field with the 'describe_entity' action. Like so:
74
74
  ${Fr({describe_entity:d.entity.id})}
@@ -82,7 +82,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
82
82
  ${wl(t)}`,issue:null})):a.push(new g({id:`${e.id}--${T.ReferencedEntityNotFound}`,code:T.ReferencedEntityNotFound,severity:E.Error,message:`Entity of type '${e.type}' with id '${e.id}' has an 'declaration' property that isn't found in the project. The 'declaration' property must point to one of the built-in action descriptors reserved for '${r.Condition}' entities.
83
83
  ${wl(t)}`,issue:null})):a.push(new g({id:`${e.id}--${w.InvalidObjectStructure}`,code:w.InvalidObjectStructure,severity:E.Error,message:`Entity of type '${e.type}' with id '${e.id}' is missing the 'declaration' property. This property is required for a '${e.type}' entity and must point to one of the built-in action descriptors reserved for '${r.Condition}' entities.
84
84
  ${wl(t)}`,issue:null})),{errors:a,modifiedData:i}}validateGeneratedUpdate(e){const t=[];return e.parent&&t.push(new g({id:`${this.id}--${T.InvalidParentUpdate}`,code:T.InvalidParentUpdate,severity:E.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.
85
- If an entity is called by another, they must be in the same scope, which means they have the same parent.`,issue:null})),{errors:t,modifiedData:e}}hydrateAncestors(){const e=[],t=[],i=[];if(this.initialData.parent){const a=P(this.initialData.parent),o=this.project.get(a);if(o)this.setParent(o),e.push(o);else throw new Error(`${_t(this.type)} with id '${this.id}' has a parent reference "${a}" which is missing in the project`)}else throw new Error(`${_t(this.type)} with id '${this.id}' is missing a parent reference`);if(this.initialData.declaration){const a=P(this.initialData.declaration),o=this.project.get(a);o&&(this.setDeclaration(o),e.push(o))}return this.initialData.calledByEntry.forEach(a=>{const o=P(a),l=this.project.get(o);l&&(this.addEntryCaller(l),e.push(l))}),this.initialData.calledBySuccess.forEach(a=>{const o=P(a),l=this.project.get(o);l&&(this.addSuccessCaller(l),e.push(l))}),this.initialData.calledByError.forEach(a=>{const o=P(a),l=this.project.get(o);l&&(this.addErrorCaller(l),e.push(l))}),{updated:m(e),added:m(t),removed:m(i),self:this}}afterAllChildrenInitialized(){const e=[],t=[],i=[];this.initialized=!0;const{updated:a,added:o,removed:l}=this.syncMissingFixedInputs();return e.push(...a),t.push(...o),i.push(...l),{updated:m(e),added:m(t),removed:m(i),self:this}}addSelfToProject(){const e=[this],t=[],i=[];return this.parent===this.project&&this.project.addCondition(this),this.successCalls.forEach(a=>{a.addSuccessCaller(this),e.push(a)}),this.errorCalls.forEach(a=>{a.addErrorCaller(this),e.push(a)}),this.calledByEntry.forEach(a=>{a.addCall(this),e.push(a)}),this.calledBySuccess.forEach(a=>{a.addSuccessCall(this),e.push(a)}),this.calledByError.forEach(a=>{a.addErrorCall(this),e.push(a)}),{updated:m(e),added:m(t),removed:m(i),self:this}}get calledBy(){return[...this.calledByEntry,...this.calledBySuccess,...this.calledByError]}removeInput(e){const t=this.inputs.findIndex(i=>i.id===e.id);return t>-1&&this.inputs.splice(t,1),this}addInput(e){return this.inputs.includes(e)?this:(this.inputs.push(e),this)}addOutput(e){return this}removeOutput(e){return this}addSuccessCaller(e){return this.calledBySuccess.find(t=>t.id===e.id)||this.calledBySuccess.push(e),this}addErrorCaller(e){return this.calledByError.find(t=>t.id===e.id)||this.calledByError.push(e),this}addEntryCaller(e){return this.calledByEntry.find(t=>t.id===e.id)||this.calledByEntry.push(e),this}addErrorCall(e){return this.errorCalls.find(t=>t.id===e.id)||this.errorCalls.push(e),this}addSuccessCall(e){return this.successCalls.find(t=>t.id===e.id)||this.successCalls.push(e),this}removeCall(e){const t=this.successCalls.findIndex(a=>a.id===e.id);t>-1&&this.successCalls.splice(t,1);const i=this.errorCalls.findIndex(a=>a.id===e.id);return i>-1&&this.errorCalls.splice(i,1),this}removeCaller(e){return this.calledBySuccess=this.calledBySuccess.filter(t=>t.id!==e.id),this.calledByError=this.calledByError.filter(t=>t.id!==e.id),this.calledByEntry=this.calledByEntry.filter(t=>t.id!==e.id),this}setParent(e){return this.parent=e,this}setDeclaration(e){return this.declaration=e,this}initChildren(){return this.initialized?this:(this.initialized=!0,this.declaration=b(this.initialData.declaration,this.project),this.successCalls=this.initialData.successCalls.map(e=>{const t=b(e,this.project);return t.addSuccessCaller(this),[r.BreakStatement,r.ContinueStatement].includes(t.type)?(t.setParent(this.parent.parent),t.initChildren()):t.type!==r.InternalCall&&(t.setParent(this.parent),t.initChildren()),t}),this.errorCalls=this.initialData.errorCalls.map(e=>{const t=b(e,this.project);return t.addErrorCaller(this),[r.BreakStatement,r.ContinueStatement].includes(t.type)?(t.setParent(this.parent.parent),t.initChildren()):t.type!==r.InternalCall&&(t.setParent(this.parent),t.initChildren()),t}),this.inputs=this.initialData.inputs.map(e=>{const t=b(e,this.project);return t.setParent(this),t.initChildren(),t}),this.afterAllChildrenInitialized(),this)}subscribe(){return this.project.subscribeInstance(this),this}unsubscribe(){return this.project.unsubscribeInstance(this),this}sync(e){return super.sync(e),this.x=e.x||this.x,this.y=e.y||this.y,this}async load(e=L,...t){return await Me.repository.load(this.id,...t),this}async create(e=L,...t){return await Me.repository.create(this.toShallowJSON(),...t),this}async update(e=L,...t){return await Me.repository.update(this.toShallowJSON(),...t),this}async delete(e=L,...t){return await Me.repository.delete(this.id,...t),this}remove({ignoreUpstream:e,seenEntities:t}={ignoreUpstream:!1,seenEntities:new Set}){const i=[],a=[];return t.has(this.id)?{affected:[],removed:[]}:(t.add(this.id),a.push(this),this.unsubscribe(),this.inputs.forEach(o=>{const{affected:l,removed:d}=o.remove({ignoreUpstream:!0,seenEntities:t});i.push(...l),a.push(...d)}),this.successCalls.forEach(o=>{i.push(o),o.removeCaller(this)}),this.errorCalls.forEach(o=>{i.push(o),o.removeCaller(this)}),e||this.calledBy.forEach(o=>{i.push(o),o.removeCall(this)}),{affected:m(i),removed:m(a)})}restore({seenEntities:e}={seenEntities:new Set}){const t=[];return e.has(this.id)?{affected:[],self:this}:(e.add(this.id),this.subscribe(),this.inputs.forEach(i=>{const{affected:a}=i.restore({seenEntities:e});t.push(...a)}),this.successCalls.forEach(i=>{t.push(i),i.addSuccessCaller(this)}),this.errorCalls.forEach(i=>{t.push(i),i.addErrorCaller(this)}),this.calledBySuccess.forEach(i=>{t.push(i),i.addSuccessCall(this)}),this.calledByError.forEach(i=>{t.push(i),i.addErrorCall(this)}),this.calledByEntry.forEach(i=>{t.push(i),i.addCall(this)}),{affected:t,self:this})}toFlat(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this,...this.inputs.flatMap(i=>i.toFlat(e)),...this.successCalls.flatMap(i=>i.toFlat(e)),...this.errorCalls.flatMap(i=>i.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.inputs.flatMap(i=>i.toFlatIds(e)),...this.successCalls.flatMap(i=>i.toFlatIds(e)),...this.errorCalls.flatMap(i=>i.toFlatIds(e)),...this.calledBy.flatMap(i=>i.toFlatIds(e))])}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,x:this.x,y:this.y,declaration:this.declaration.toJSON(e),successCalls:this.successCalls.map(t=>t.toJSON(e)),errorCalls:this.errorCalls.map(t=>t.toJSON(e)),calledBySuccess:this.calledBySuccess.map(t=>t.toReference()),calledByError:this.calledByError.map(t=>t.toReference()),calledByEntry:this.calledByEntry.map(t=>t.toReference()),inputs:this.inputs.map(t=>t.toJSON(e)),parent:this.parent.toReference()})}toJSONClone(e=F){var i,a,o,l,d;let t;return(i=e.seenEntityMaps)!=null&&i.has(this.id)?t=e.seenEntityMaps.get(this.id):(t=e.newId||it(this,this.project,e.uuidStrategy),e.seenEntityMaps&&e.seenEntityMaps.set(this.id,t)),(a=e.seenEntities)!=null&&a.has(t)||(o=e.seenEntities)!=null&&o.has(this.id)?this.toReference({seenEntityMaps:e.seenEntityMaps}):((l=e.seenEntities)==null||l.add(t),(d=e.seenEntities)==null||d.add(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,declaration:this.declaration.toJSON(),successCalls:this.successCalls.map(h=>h.toJSONClone({...e,newId:null})),errorCalls:this.errorCalls.map(h=>h.toJSONClone({...e,newId:null})),calledBySuccess:this.calledBySuccess.map(h=>h.toReference({seenEntityMaps:e.seenEntityMaps})),calledByError:this.calledByError.map(h=>h.toReference({seenEntityMaps:e.seenEntityMaps})),calledByEntry:this.calledByEntry.map(h=>h.toReference({seenEntityMaps:e.seenEntityMaps})),inputs:this.inputs.map(h=>h.toJSONClone({...e,newId:null})),parent:this.parent.toReference({seenEntityMaps:e.seenEntityMaps})})}toReference(e=F){var i;let t=this.id;return(i=e.seenEntityMaps)!=null&&i.has(this.id)&&(t=e.seenEntityMaps.get(this.id)),{id:t+"--"+O.UUID.uuid()+"--ref",type:r.GenericReference,entityId:t,version:this.version,entityType:this.type}}toShallowJSON(e=F){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,declaration:this.declaration.toReference(e),inputs:this.inputs.map(a=>a.toReference(e)),successCalls:this.successCalls.map(a=>a.toReference(e)),errorCalls:this.errorCalls.map(a=>a.toReference(e)),calledBySuccess:this.calledBySuccess.map(a=>a.toReference(e)),calledByError:this.calledByError.map(a=>a.toReference(e)),calledByEntry:this.calledByEntry.map(a=>a.toReference(e)),parent:this.parent.toReference(e)}}toFlatJSON(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.toShallowJSON(),...this.inputs.flatMap(i=>i.toFlatJSON(e)),...this.successCalls.flatMap(i=>i.toFlatJSON(e)),...this.errorCalls.flatMap(i=>i.toFlatJSON(e)),...this.calledBy.flatMap(i=>i.toFlatJSON(e))])}toGenerationTarget(){const e=this.parent.type===r.Project?void 0:this.parent.id;return{id:this.id,type:this.type,declaration:this.declaration.id,calledByEntry:this.calledByEntry.map(t=>t.id),calledBySuccess:this.calledBySuccess.map(t=>t.id),calledByError:this.calledByError.map(t=>t.id),parent:e}}toFlatGenerationTarget(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.toGenerationTarget(),...this.inputs.flatMap(i=>i.toFlatGenerationTarget(e)),...this.successCalls.flatMap(i=>i.toFlatGenerationTarget(e)),...this.errorCalls.flatMap(i=>i.toFlatGenerationTarget(e))])}clearErrors(){return this.errors=[],this.inputs.forEach(e=>e.clearErrors()),this.successCalls.forEach(e=>e.clearErrors()),this.errorCalls.forEach(e=>e.clearErrors()),this}validate(){const e=I7(this);return this.errors=e,{success:!0,error:null,data:this.toJSON()}}getErrors(){return[...this.errors,...this.inputs.flatMap(t=>t.getErrors())]}getShallowErrors(){return this.errors}clone(e=null,t=null,i=!0){var v;let a=at(e,this);const o=this.toJSON(),l=t||O.UUID.uuid();o.inputs=[];const d=l.split("-id"),h=d[d.length-1||0]||l;o.id=l;const y=tt(o,a);e?y.setParent(e):y.setParent(this.parent),i&&y.subscribe(),y.initChildren();const f=(v=this.inputs)==null?void 0:v.map((R,I)=>R.clone(y,h+"-input-map-"+I+"-id",i));return y.inputs=f,y}removeUnrecognizedInputs(){const e=[],t=[],i=[];return this.inputs.forEach(a=>{if(!this.declaration.inputs.find(l=>{var d;return l.id===((d=a.declaration)==null?void 0:d.id)})){const l=a.remove();i.push(...l.removed),e.push(...l.affected)}}),{updated:m(e),added:m(t),removed:m(i),self:this}}syncMissingFixedInputs(){const e=[],t=[],i=[],a=this.declaration.inputs.filter(h=>h.parentRelationType===V.FixedArguments&&!this.inputs.find(y=>y.declaration.id===h.id));this.inputs.sort((h,y)=>h.index-y.index),a.forEach(h=>{this.inputs.forEach(v=>{v.index>=h.index&&v.sync({index:v.index+1})});const y={id:O.UUID.uuid(),version:"1",createdAt:$().toDate(),author:"1",previousVersion:null,deleted:!1,type:r.InputMap,declaration:h.toJSON(),readsValue:null,defaultValue:null,index:h.index,name:null,description:null,parent:this.toReference()},f=b(y,this.project);f.setParent(this),f.initChildren(),f.addSelfToProject()}),this.inputs.sort((h,y)=>h.index-y.index);const{updated:o,added:l,removed:d}=this.removeUnrecognizedInputs();return e.push(...o),t.push(...l),i.push(...d),{updated:m(e),added:m(t),removed:m(i),self:this}}};u(Me,"repository",{create:async(e,...t)=>e,update:async(e,...t)=>e,delete:async(e,...t)=>{},load:async(e,...t)=>null}),u(Me,"type",r.Condition),u(Me,"USER_MANAGED_PARENT_TYPES",[...lt,r.Project]),u(Me,"PARENT_TYPES",[...Me.USER_MANAGED_PARENT_TYPES]),u(Me,"MUTABLE_BASE_PROPERTIES",["operator"]),u(Me,"INMUTABLE_BASE_PROPERTIES",["id","version","type"]),u(Me,"BASE_PROPERTIES",[...Me.MUTABLE_BASE_PROPERTIES,...Me.INMUTABLE_BASE_PROPERTIES]),u(Me,"MUTABLE_META_PROPERTIES",["x","y"]),u(Me,"INMUTABLE_META_PROPERTIES",[...Me.INMUTABLE_BASE_PROPERTIES]),u(Me,"META_PROPERTIES",[...Me.MUTABLE_META_PROPERTIES,...Me.INMUTABLE_META_PROPERTIES]),u(Me,"MUTABLE_UPSTREAM_PROPERTIES",["calledBySuccess","calledByError","calledByEntry","parent"]),u(Me,"INMUTABLE_UPSTREAM_PROPERTIES",[]),u(Me,"UPSTREAM_PROPERTIES",[...Me.MUTABLE_UPSTREAM_PROPERTIES,...Me.INMUTABLE_UPSTREAM_PROPERTIES]),u(Me,"MUTABLE_DOWNSTREAM_PROPERTIES",["successCalls","errorCalls","inputsDeclarations","inputs"]),u(Me,"INMUTABLE_DOWNSTREAM_PROPERTIES",[]),u(Me,"DOWNSTREAM_PROPERTIES",[...Me.MUTABLE_DOWNSTREAM_PROPERTIES,...Me.INMUTABLE_DOWNSTREAM_PROPERTIES]),u(Me,"PROPERTIES",[...Me.META_PROPERTIES,...Me.UPSTREAM_PROPERTIES,...Me.DOWNSTREAM_PROPERTIES]);let ci=Me;function A7(n){var l;const s=i3(),e=n.toJSON();s.safeParse(e).success,(l=n.dataType)==null||l.validate(),n.inputs.forEach(d=>d.validate()),n.outputs.forEach(d=>d.validate()),n.internalCalls.forEach(d=>d.validate());const a=[...ln(n)];if(n.id==="random-company-employee-test-variable-id"){const d=le({id:`${n.id}--${U.PropertyImplementsNonAbstact}`,message:`Property "${B(n,n.project)}" with id "${n.id}" implements a non-abstract property "${B(n,n.project)}" with id "${n.id}".`,issue:null,severity:E.Error,code:U.PropertyImplementsNonAbstact,entity:n});a.push(d.error)}if(n.id==="company-dto-variable-one-id"){const d=le({id:`${n.id}--${U.PropertyImplementsNonAbstact}`,message:`Property "${B(n,n.project)}" with id "${n.id}" implements a non-abstract property "${B(n,n.project)}" with id "${n.id}".`,issue:null,severity:E.Error,code:U.PropertyImplementsNonAbstact,entity:n});a.push(d.error)}const o=gp(n);return a.push(...o),xe(n.errors,a)}const be=class be extends He{constructor(e,t){super(e);u(this,"initialData");u(this,"id");u(this,"name");u(this,"description",null);u(this,"required",!1);u(this,"constant",!1);u(this,"x");u(this,"y");u(this,"type",r.VariableDeclaration);u(this,"defaultValue",null);u(this,"dataType",null);u(this,"writesValues",[]);u(this,"readsValue",null);u(this,"inputs",[]);u(this,"outputs",[]);u(this,"calledBySuccess",[]);u(this,"calledByError",[]);u(this,"calledByEntry",[]);u(this,"successCalls",[]);u(this,"errorCalls",[]);u(this,"internalCalls",[]);u(this,"parent");u(this,"variableInstances",[]);u(this,"errors",[]);u(this,"project");u(this,"initialized",!1);u(this,"suggestion",!1);this.initialData=e,this.project=t,this.id=e.id,this.name=e.name,this.description=e.description,this.constant=e.constant,this.required=e.required,this.x=e.x,this.y=e.y}static fromGenerationTarget(e,t){let i=t;if(e.parent){const f=P(e.parent);i=t.get(f)}const a=e.calledByEntry.map(f=>{const v=P(f);return t.get(v)}),o=e.calledBySuccess.map(f=>{const v=P(f);return t.get(v)}),l=e.calledByError.map(f=>{const v=P(f);return t.get(v)});let d=null;if(e.readsValue){const f=P(e.readsValue);d=t.get(f)}const h={id:e.id,version:"1",createdAt:$().toDate(),author:"1",previousVersion:null,deleted:!1,type:r.VariableDeclaration,name:e.name,defaultValue:null,description:e.description,constant:e.constant||!1,required:e.required||!1,calledByEntry:a,calledBySuccess:o,calledByError:l,dataType:null,errorCalls:[],successCalls:[],internalCalls:[],readsValue:d,inputs:[],outputs:[],writesValues:[],x:0,y:0,parent:i},y=b(h,t);return y.setParent(i),y.initChildren(),y}static validateGenerationTarget(e,t){let i=JSON.parse(JSON.stringify(e));const a=[],o=ft(i,{parent:{list:!1,types:[...lt,r.Project],optional:!0}},t);i=o.modifiedData;const l=op(i,t);return a.push(...o.errors,...l,...et(i)),{errors:a,modifiedData:i}}validateGeneratedUpdate(e){const t=[];let i=JSON.parse(JSON.stringify(e));const a=gs(i,this);return i=a.modifiedData,t.push(...a.errors),e.parent&&t.push(new g({id:`${this.id}--${T.InvalidParentUpdate}`,code:T.InvalidParentUpdate,severity:E.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.
85
+ If an entity is called by another, they must be in the same scope, which means they have the same parent.`,issue:null})),{errors:t,modifiedData:e}}hydrateAncestors(){const e=[],t=[],i=[];if(this.initialData.parent){const a=P(this.initialData.parent),o=this.project.get(a);if(o)this.setParent(o),e.push(o);else throw new Error(`${jt(this.type)} with id '${this.id}' has a parent reference "${a}" which is missing in the project`)}else throw new Error(`${jt(this.type)} with id '${this.id}' is missing a parent reference`);if(this.initialData.declaration){const a=P(this.initialData.declaration),o=this.project.get(a);o&&(this.setDeclaration(o),e.push(o))}return this.initialData.calledByEntry.forEach(a=>{const o=P(a),l=this.project.get(o);l&&(this.addEntryCaller(l),e.push(l))}),this.initialData.calledBySuccess.forEach(a=>{const o=P(a),l=this.project.get(o);l&&(this.addSuccessCaller(l),e.push(l))}),this.initialData.calledByError.forEach(a=>{const o=P(a),l=this.project.get(o);l&&(this.addErrorCaller(l),e.push(l))}),{updated:m(e),added:m(t),removed:m(i),self:this}}afterAllChildrenInitialized(){const e=[],t=[],i=[];this.initialized=!0;const{updated:a,added:o,removed:l}=this.syncMissingFixedInputs();return e.push(...a),t.push(...o),i.push(...l),{updated:m(e),added:m(t),removed:m(i),self:this}}addSelfToProject(){const e=[this],t=[],i=[];return this.parent===this.project&&this.project.addCondition(this),this.successCalls.forEach(a=>{a.addSuccessCaller(this),e.push(a)}),this.errorCalls.forEach(a=>{a.addErrorCaller(this),e.push(a)}),this.calledByEntry.forEach(a=>{a.addCall(this),e.push(a)}),this.calledBySuccess.forEach(a=>{a.addSuccessCall(this),e.push(a)}),this.calledByError.forEach(a=>{a.addErrorCall(this),e.push(a)}),{updated:m(e),added:m(t),removed:m(i),self:this}}get calledBy(){return[...this.calledByEntry,...this.calledBySuccess,...this.calledByError]}removeInput(e){const t=this.inputs.findIndex(i=>i.id===e.id);return t>-1&&this.inputs.splice(t,1),this}addInput(e){return this.inputs.includes(e)?this:(this.inputs.push(e),this)}addOutput(e){return this}removeOutput(e){return this}addSuccessCaller(e){return this.calledBySuccess.find(t=>t.id===e.id)||this.calledBySuccess.push(e),this}addErrorCaller(e){return this.calledByError.find(t=>t.id===e.id)||this.calledByError.push(e),this}addEntryCaller(e){return this.calledByEntry.find(t=>t.id===e.id)||this.calledByEntry.push(e),this}addErrorCall(e){return this.errorCalls.find(t=>t.id===e.id)||this.errorCalls.push(e),this}addSuccessCall(e){return this.successCalls.find(t=>t.id===e.id)||this.successCalls.push(e),this}removeCall(e){const t=this.successCalls.findIndex(a=>a.id===e.id);t>-1&&this.successCalls.splice(t,1);const i=this.errorCalls.findIndex(a=>a.id===e.id);return i>-1&&this.errorCalls.splice(i,1),this}removeCaller(e){return this.calledBySuccess=this.calledBySuccess.filter(t=>t.id!==e.id),this.calledByError=this.calledByError.filter(t=>t.id!==e.id),this.calledByEntry=this.calledByEntry.filter(t=>t.id!==e.id),this}setParent(e){return this.parent=e,this}setDeclaration(e){return this.declaration=e,this}initChildren(){return this.initialized?this:(this.initialized=!0,this.declaration=b(this.initialData.declaration,this.project),this.successCalls=this.initialData.successCalls.map(e=>{const t=b(e,this.project);return t.addSuccessCaller(this),[r.BreakStatement,r.ContinueStatement].includes(t.type)?(t.setParent(this.parent.parent),t.initChildren()):t.type!==r.InternalCall&&(t.setParent(this.parent),t.initChildren()),t}),this.errorCalls=this.initialData.errorCalls.map(e=>{const t=b(e,this.project);return t.addErrorCaller(this),[r.BreakStatement,r.ContinueStatement].includes(t.type)?(t.setParent(this.parent.parent),t.initChildren()):t.type!==r.InternalCall&&(t.setParent(this.parent),t.initChildren()),t}),this.inputs=this.initialData.inputs.map(e=>{const t=b(e,this.project);return t.setParent(this),t.initChildren(),t}),this.afterAllChildrenInitialized(),this)}subscribe(){return this.project.subscribeInstance(this),this}unsubscribe(){return this.project.unsubscribeInstance(this),this}sync(e){return super.sync(e),this.x=e.x||this.x,this.y=e.y||this.y,this}async load(e=L,...t){return await Me.repository.load(this.id,...t),this}async create(e=L,...t){return await Me.repository.create(this.toShallowJSON(),...t),this}async update(e=L,...t){return await Me.repository.update(this.toShallowJSON(),...t),this}async delete(e=L,...t){return await Me.repository.delete(this.id,...t),this}remove({ignoreUpstream:e,seenEntities:t}={ignoreUpstream:!1,seenEntities:new Set}){const i=[],a=[];return t.has(this.id)?{affected:[],removed:[]}:(t.add(this.id),a.push(this),this.unsubscribe(),this.inputs.forEach(o=>{const{affected:l,removed:d}=o.remove({ignoreUpstream:!0,seenEntities:t});i.push(...l),a.push(...d)}),this.successCalls.forEach(o=>{i.push(o),o.removeCaller(this)}),this.errorCalls.forEach(o=>{i.push(o),o.removeCaller(this)}),e||this.calledBy.forEach(o=>{i.push(o),o.removeCall(this)}),{affected:m(i),removed:m(a)})}restore({seenEntities:e}={seenEntities:new Set}){const t=[];return e.has(this.id)?{affected:[],self:this}:(e.add(this.id),this.subscribe(),this.inputs.forEach(i=>{const{affected:a}=i.restore({seenEntities:e});t.push(...a)}),this.successCalls.forEach(i=>{t.push(i),i.addSuccessCaller(this)}),this.errorCalls.forEach(i=>{t.push(i),i.addErrorCaller(this)}),this.calledBySuccess.forEach(i=>{t.push(i),i.addSuccessCall(this)}),this.calledByError.forEach(i=>{t.push(i),i.addErrorCall(this)}),this.calledByEntry.forEach(i=>{t.push(i),i.addCall(this)}),{affected:t,self:this})}toFlat(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this,...this.inputs.flatMap(i=>i.toFlat(e)),...this.successCalls.flatMap(i=>i.toFlat(e)),...this.errorCalls.flatMap(i=>i.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.inputs.flatMap(i=>i.toFlatIds(e)),...this.successCalls.flatMap(i=>i.toFlatIds(e)),...this.errorCalls.flatMap(i=>i.toFlatIds(e)),...this.calledBy.flatMap(i=>i.toFlatIds(e))])}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,x:this.x,y:this.y,declaration:this.declaration.toJSON(e),successCalls:this.successCalls.map(t=>t.toJSON(e)),errorCalls:this.errorCalls.map(t=>t.toJSON(e)),calledBySuccess:this.calledBySuccess.map(t=>t.toReference()),calledByError:this.calledByError.map(t=>t.toReference()),calledByEntry:this.calledByEntry.map(t=>t.toReference()),inputs:this.inputs.map(t=>t.toJSON(e)),parent:this.parent.toReference()})}toJSONClone(e=F){var i,a,o,l,d;let t;return(i=e.seenEntityMaps)!=null&&i.has(this.id)?t=e.seenEntityMaps.get(this.id):(t=e.newId||it(this,this.project,e.uuidStrategy),e.seenEntityMaps&&e.seenEntityMaps.set(this.id,t)),(a=e.seenEntities)!=null&&a.has(t)||(o=e.seenEntities)!=null&&o.has(this.id)?this.toReference({seenEntityMaps:e.seenEntityMaps}):((l=e.seenEntities)==null||l.add(t),(d=e.seenEntities)==null||d.add(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,declaration:this.declaration.toJSON(),successCalls:this.successCalls.map(h=>h.toJSONClone({...e,newId:null})),errorCalls:this.errorCalls.map(h=>h.toJSONClone({...e,newId:null})),calledBySuccess:this.calledBySuccess.map(h=>h.toReference({seenEntityMaps:e.seenEntityMaps})),calledByError:this.calledByError.map(h=>h.toReference({seenEntityMaps:e.seenEntityMaps})),calledByEntry:this.calledByEntry.map(h=>h.toReference({seenEntityMaps:e.seenEntityMaps})),inputs:this.inputs.map(h=>h.toJSONClone({...e,newId:null})),parent:this.parent.toReference({seenEntityMaps:e.seenEntityMaps})})}toReference(e=F){var i;let t=this.id;return(i=e.seenEntityMaps)!=null&&i.has(this.id)&&(t=e.seenEntityMaps.get(this.id)),{id:t+"--"+O.UUID.uuid()+"--ref",type:r.GenericReference,entityId:t,version:this.version,entityType:this.type}}toShallowJSON(e=F){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,declaration:this.declaration.toReference(e),inputs:this.inputs.map(a=>a.toReference(e)),successCalls:this.successCalls.map(a=>a.toReference(e)),errorCalls:this.errorCalls.map(a=>a.toReference(e)),calledBySuccess:this.calledBySuccess.map(a=>a.toReference(e)),calledByError:this.calledByError.map(a=>a.toReference(e)),calledByEntry:this.calledByEntry.map(a=>a.toReference(e)),parent:this.parent.toReference(e)}}toFlatJSON(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.toShallowJSON(),...this.inputs.flatMap(i=>i.toFlatJSON(e)),...this.successCalls.flatMap(i=>i.toFlatJSON(e)),...this.errorCalls.flatMap(i=>i.toFlatJSON(e)),...this.calledBy.flatMap(i=>i.toFlatJSON(e))])}toGenerationTarget(){const e=this.parent.type===r.Project?void 0:this.parent.id;return{id:this.id,type:this.type,declaration:this.declaration.id,calledByEntry:this.calledByEntry.map(t=>t.id),calledBySuccess:this.calledBySuccess.map(t=>t.id),calledByError:this.calledByError.map(t=>t.id),parent:e}}toFlatGenerationTarget(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.toGenerationTarget(),...this.inputs.flatMap(i=>i.toFlatGenerationTarget(e)),...this.successCalls.flatMap(i=>i.toFlatGenerationTarget(e)),...this.errorCalls.flatMap(i=>i.toFlatGenerationTarget(e))])}clearErrors(){return this.errors=[],this.inputs.forEach(e=>e.clearErrors()),this.successCalls.forEach(e=>e.clearErrors()),this.errorCalls.forEach(e=>e.clearErrors()),this}validate(){const e=I7(this);return this.errors=e,{success:!0,error:null,data:this.toJSON()}}getErrors(){return[...this.errors,...this.inputs.flatMap(t=>t.getErrors())]}getShallowErrors(){return this.errors}clone(e=null,t=null,i=!0){var v;let a=at(e,this);const o=this.toJSON(),l=t||O.UUID.uuid();o.inputs=[];const d=l.split("-id"),h=d[d.length-1||0]||l;o.id=l;const y=tt(o,a);e?y.setParent(e):y.setParent(this.parent),i&&y.subscribe(),y.initChildren();const f=(v=this.inputs)==null?void 0:v.map((R,I)=>R.clone(y,h+"-input-map-"+I+"-id",i));return y.inputs=f,y}removeUnrecognizedInputs(){const e=[],t=[],i=[];return this.inputs.forEach(a=>{if(!this.declaration.inputs.find(l=>{var d;return l.id===((d=a.declaration)==null?void 0:d.id)})){const l=a.remove();i.push(...l.removed),e.push(...l.affected)}}),{updated:m(e),added:m(t),removed:m(i),self:this}}syncMissingFixedInputs(){const e=[],t=[],i=[],a=this.declaration.inputs.filter(h=>h.parentRelationType===V.FixedArguments&&!this.inputs.find(y=>y.declaration.id===h.id));this.inputs.sort((h,y)=>h.index-y.index),a.forEach(h=>{this.inputs.forEach(v=>{v.index>=h.index&&v.sync({index:v.index+1})});const y={id:O.UUID.uuid(),version:"1",createdAt:$().toDate(),author:"1",previousVersion:null,deleted:!1,type:r.InputMap,declaration:h.toJSON(),readsValue:null,defaultValue:null,index:h.index,name:null,description:null,parent:this.toReference()},f=b(y,this.project);f.setParent(this),f.initChildren(),f.addSelfToProject()}),this.inputs.sort((h,y)=>h.index-y.index);const{updated:o,added:l,removed:d}=this.removeUnrecognizedInputs();return e.push(...o),t.push(...l),i.push(...d),{updated:m(e),added:m(t),removed:m(i),self:this}}};u(Me,"repository",{create:async(e,...t)=>e,update:async(e,...t)=>e,delete:async(e,...t)=>{},load:async(e,...t)=>null}),u(Me,"type",r.Condition),u(Me,"USER_MANAGED_PARENT_TYPES",[...lt,r.Project]),u(Me,"PARENT_TYPES",[...Me.USER_MANAGED_PARENT_TYPES]),u(Me,"MUTABLE_BASE_PROPERTIES",["operator"]),u(Me,"INMUTABLE_BASE_PROPERTIES",["id","version","type"]),u(Me,"BASE_PROPERTIES",[...Me.MUTABLE_BASE_PROPERTIES,...Me.INMUTABLE_BASE_PROPERTIES]),u(Me,"MUTABLE_META_PROPERTIES",["x","y"]),u(Me,"INMUTABLE_META_PROPERTIES",[...Me.INMUTABLE_BASE_PROPERTIES]),u(Me,"META_PROPERTIES",[...Me.MUTABLE_META_PROPERTIES,...Me.INMUTABLE_META_PROPERTIES]),u(Me,"MUTABLE_UPSTREAM_PROPERTIES",["calledBySuccess","calledByError","calledByEntry","parent"]),u(Me,"INMUTABLE_UPSTREAM_PROPERTIES",[]),u(Me,"UPSTREAM_PROPERTIES",[...Me.MUTABLE_UPSTREAM_PROPERTIES,...Me.INMUTABLE_UPSTREAM_PROPERTIES]),u(Me,"MUTABLE_DOWNSTREAM_PROPERTIES",["successCalls","errorCalls","inputsDeclarations","inputs"]),u(Me,"INMUTABLE_DOWNSTREAM_PROPERTIES",[]),u(Me,"DOWNSTREAM_PROPERTIES",[...Me.MUTABLE_DOWNSTREAM_PROPERTIES,...Me.INMUTABLE_DOWNSTREAM_PROPERTIES]),u(Me,"PROPERTIES",[...Me.META_PROPERTIES,...Me.UPSTREAM_PROPERTIES,...Me.DOWNSTREAM_PROPERTIES]);let ci=Me;function A7(n){var l;const s=i3(),e=n.toJSON();s.safeParse(e).success,(l=n.dataType)==null||l.validate(),n.inputs.forEach(d=>d.validate()),n.outputs.forEach(d=>d.validate()),n.internalCalls.forEach(d=>d.validate());const a=[...ln(n)];if(n.id==="random-company-employee-test-variable-id"){const d=le({id:`${n.id}--${U.PropertyImplementsNonAbstact}`,message:`Property "${B(n,n.project)}" with id "${n.id}" implements a non-abstract property "${B(n,n.project)}" with id "${n.id}".`,issue:null,severity:E.Error,code:U.PropertyImplementsNonAbstact,entity:n});a.push(d.error)}if(n.id==="company-dto-variable-one-id"){const d=le({id:`${n.id}--${U.PropertyImplementsNonAbstact}`,message:`Property "${B(n,n.project)}" with id "${n.id}" implements a non-abstract property "${B(n,n.project)}" with id "${n.id}".`,issue:null,severity:E.Error,code:U.PropertyImplementsNonAbstact,entity:n});a.push(d.error)}const o=gp(n);return a.push(...o),xe(n.errors,a)}const be=class be extends He{constructor(e,t){super(e);u(this,"initialData");u(this,"id");u(this,"name");u(this,"description",null);u(this,"required",!1);u(this,"constant",!1);u(this,"x");u(this,"y");u(this,"type",r.VariableDeclaration);u(this,"defaultValue",null);u(this,"dataType",null);u(this,"writesValues",[]);u(this,"readsValue",null);u(this,"inputs",[]);u(this,"outputs",[]);u(this,"calledBySuccess",[]);u(this,"calledByError",[]);u(this,"calledByEntry",[]);u(this,"successCalls",[]);u(this,"errorCalls",[]);u(this,"internalCalls",[]);u(this,"parent");u(this,"variableInstances",[]);u(this,"errors",[]);u(this,"project");u(this,"initialized",!1);u(this,"suggestion",!1);this.initialData=e,this.project=t,this.id=e.id,this.name=e.name,this.description=e.description,this.constant=e.constant,this.required=e.required,this.x=e.x,this.y=e.y}static fromGenerationTarget(e,t){let i=t;if(e.parent){const f=P(e.parent);i=t.get(f)}const a=e.calledByEntry.map(f=>{const v=P(f);return t.get(v)}),o=e.calledBySuccess.map(f=>{const v=P(f);return t.get(v)}),l=e.calledByError.map(f=>{const v=P(f);return t.get(v)});let d=null;if(e.readsValue){const f=P(e.readsValue);d=t.get(f)}const h={id:e.id,version:"1",createdAt:$().toDate(),author:"1",previousVersion:null,deleted:!1,type:r.VariableDeclaration,name:e.name,defaultValue:null,description:e.description,constant:e.constant||!1,required:e.required||!1,calledByEntry:a,calledBySuccess:o,calledByError:l,dataType:null,errorCalls:[],successCalls:[],internalCalls:[],readsValue:d,inputs:[],outputs:[],writesValues:[],x:0,y:0,parent:i},y=b(h,t);return y.setParent(i),y.initChildren(),y}static validateGenerationTarget(e,t){let i=JSON.parse(JSON.stringify(e));const a=[],o=ft(i,{parent:{list:!1,types:[...lt,r.Project],optional:!0}},t);i=o.modifiedData;const l=op(i,t);return a.push(...o.errors,...l,...et(i)),{errors:a,modifiedData:i}}validateGeneratedUpdate(e){const t=[];let i=JSON.parse(JSON.stringify(e));const a=gs(i,this);return i=a.modifiedData,t.push(...a.errors),e.parent&&t.push(new g({id:`${this.id}--${T.InvalidParentUpdate}`,code:T.InvalidParentUpdate,severity:E.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.
86
86
  If an entity is called by another, they must be in the same scope, which means they have the same parent.
87
87
  Specifically for variables, their scope is also calculated from their value readers and value writters.
88
88
  You shouldn't have to manually update a 'parent' property. The equivalent result is to change its value readers, value writters, or callers.`,issue:null})),{errors:t,modifiedData:i}}hydrateAncestors(){const e=[],t=[],i=[];if(this.initialData.parent){const a=P(this.initialData.parent),o=this.project.get(a);o&&(this.setParent(o),e.push(o))}if(this.initialData.readsValue){const a=P(this.initialData.readsValue),o=this.project.get(a);o&&(this.setValueWriter(o),e.push(o))}return this.initialData.calledByEntry.forEach(a=>{const o=P(a),l=this.project.get(o);l&&(this.addEntryCaller(l),e.push(l))}),this.initialData.calledBySuccess.forEach(a=>{const o=P(a),l=this.project.get(o);l&&(this.addSuccessCaller(l),e.push(l))}),this.initialData.calledByError.forEach(a=>{const o=P(a),l=this.project.get(o);l&&(this.addErrorCaller(l),e.push(l))}),dn.hydrateReadsValue(this),{updated:m(e),added:m(t),removed:m(i),self:this}}afterAllChildrenInitialized(){const e=[],t=[],i=[];return this.initialized=!0,this.generateUnusedInputs(),this.generateUnusedOutputs(),this.generateUnusedInternalCalls(),(!this.dataType||this.dataType.inferred)&&this.inferDataTypeAndSyncInstancesInputsAndOutputs(),{updated:m(e),added:m(t),removed:m(i),self:this}}addSelfToProject(){const e=[this],t=[],i=[];return this.parent===this.project&&this.project.addVariableDeclaration(this),this.readsValue&&(this.readsValue.addValueReader(this),e.push(this.readsValue)),this.writesValues.forEach(a=>{a.setValueWriter(this),e.push(a)}),this.successCalls.forEach(a=>{a.addSuccessCaller(this),e.push(a)}),this.errorCalls.forEach(a=>{a.addErrorCaller(this),e.push(a)}),this.calledBySuccess.forEach(a=>{a.addSuccessCall(this),e.push(a)}),this.calledByError.forEach(a=>{a.addErrorCall(this),e.push(a)}),this.calledByEntry.forEach(a=>{a.addCall(this),e.push(a)}),{updated:m(e),added:m(t),removed:m(i),self:this}}get calledBy(){return[...this.calledByEntry,...this.calledBySuccess,...this.calledByError]}get usedInputs(){return this.inputs.filter(e=>e.readsValue||e.defaultValue)}get unusedInputs(){return this.inputs.filter(e=>!e.readsValue&&!e.defaultValue)}get usedOutputs(){return this.outputs.filter(e=>e.writesValues.length)}get unusedOutputs(){return this.outputs.filter(e=>!e.writesValues.length)}get usedInternalCalls(){return this.internalCalls.filter(e=>!!e.calledBy.length)}get unusedInternalCalls(){return this.internalCalls.filter(e=>!e.calledBy.length)}removeInput(e){const t=this.inputs.findIndex(i=>i.id===e.id);return t>-1&&this.inputs.splice(t,1),this}addInput(e){return this.inputs.includes(e)?this:(this.inputs.push(e),this)}addOutput(e){return this.outputs.includes(e)?this:(this.outputs.push(e),this)}removeOutput(e){const t=this.outputs.findIndex(i=>i.id===e.id);return t>-1&&this.outputs.splice(t,1),this}addSuccessCaller(e){return this.calledBySuccess.find(t=>t.id===e.id)||this.calledBySuccess.push(e),this}addErrorCaller(e){return this.calledByError.find(t=>t.id===e.id)||this.calledByError.push(e),this}addEntryCaller(e){return this.calledByEntry.find(t=>t.id===e.id)||this.calledByEntry.push(e),this}addErrorCall(e){return this.errorCalls.find(t=>t.id===e.id)||this.errorCalls.push(e),this}addSuccessCall(e){return this.successCalls.find(t=>t.id===e.id)||this.successCalls.push(e),this}removeCall(e){const t=this.successCalls.findIndex(a=>a.id===e.id);t>-1&&this.successCalls.splice(t,1);const i=this.errorCalls.findIndex(a=>a.id===e.id);return i>-1&&this.errorCalls.splice(i,1),this}removeCaller(e){return this.calledBySuccess=this.calledBySuccess.filter(t=>t.id!==e.id),this.calledByError=this.calledByError.filter(t=>t.id!==e.id),this.calledByEntry=this.calledByEntry.filter(t=>t.id!==e.id),this}addValueReader(e){return this.writesValues.includes(e)?this:(this.writesValues.push(e),this)}removeValueReader(e){return this.writesValues=this.writesValues.filter(t=>t.id!==e.id),this}setParent(e){return this.parent=e,this}initChildren(){return this.initialized?this:(this.initialized=!0,this.initialData.defaultValue&&(this.defaultValue=b(this.initialData.defaultValue,this.project),this.defaultValue.setParent(this),this.defaultValue.initChildren()),this.initialData.dataType&&(this.dataType=b(this.initialData.dataType,this.project),this.dataType.setParent(this),this.dataType.initChildren()),Ps.initWritesValues(this,this.parent),dn.initReadsValue(this),this.successCalls=this.initialData.successCalls.map(e=>{const t=b(e,this.project);return t.addSuccessCaller(this),[r.BreakStatement,r.ContinueStatement].includes(t.type)?(t.setParent(this.parent.parent),t.initChildren()):t.type!==r.InternalCall&&(t.setParent(this.parent),t.initChildren()),t}),this.errorCalls=this.initialData.errorCalls.map(e=>{const t=b(e,this.project);return t.addErrorCaller(this),[r.BreakStatement,r.ContinueStatement].includes(t.type)?(t.setParent(this.parent.parent),t.initChildren()):t.type!==r.InternalCall&&(t.setParent(this.parent),t.initChildren()),t}),this.initialData.inputs.forEach(e=>{const t=b(e,this.project);return t.setParent(this),t.initChildren(),this.addInput(t),t}),this.initialData.outputs.forEach(e=>{const t=b(e,this.project);return t.setParent(this),t.initChildren(),this.addOutput(t),t}),this.initialData.internalCalls.forEach(e=>{if(e.type===r.GenericReference){const i=this.project.findSubscribedInstanceFromReference(e);if(!i)return;i.setParent(this),i.initChildren(),this.addInternalCall(i);return}const t=b(e,this.project);return t.setParent(this),t.initChildren(),this.addInternalCall(t),t}),this.afterAllChildrenInitialized(),this)}setValueWriter(e){return this.readsValue=e,this}removeValueWriter(){return this.readsValue=null,this}subscribe(){return this.project.subscribeInstance(this),this}unsubscribe(){return this.project.unsubscribeInstance(this),this}subscribeInstance(e){return this.variableInstances.includes(e)?this:(this.variableInstances.push(e),this)}removeInstance(e){return this.variableInstances=this.variableInstances.filter(t=>t.id!==e.id),this}getMasterInputWithValueWritterFromAllInstances(e){return m([...this.inputs,...this.variableInstances.flatMap(a=>a.inputs)]).find(a=>B(a,this.project)===B(e,this.project)&&!!a.readsValue)||e}inferDataTypeAndSyncInstancesInputsAndOutputs(){var i,a;if(!this.dataType){const o=b({id:O.UUID.uuid(),version:"1",createdAt:$().toDate(),author:"1",previousVersion:null,deleted:!1,type:r.DataType,isList:!1,andChildrenGroup:null,orChildrenGroup:null,asType:!1,entity:null,like:!0,inferred:!0,parent:this.toReference()},this.project);o.setParent(this),o.initChildren(),o.sync({inferred:!0,like:!0}),this.setDataType(o)}if(this.readsValue){const o=(i=this.readsValue.getDataType())==null?void 0:i.clone(this);return o&&(o.sync({inferred:!0,like:!0}),this.setDataType(o)),this}const e=m([...this.inputs,...this.variableInstances.flatMap(o=>o.inputs)]),t=[];return e.forEach(o=>{t.find(d=>B(d,this.project)===B(o,this.project))||t.push(o)}),t.length?((a=this.dataType)==null||a.inferFromInputs(t),this.dataType?(this.generateUnusedInputs(),this.generateUnusedOutputs(),this.variableInstances.forEach(o=>{o.generateUnusedInputs(),o.generateUnusedOutputs()}),this):this):this}sync(e){return super.sync(e),this.name=e.name||this.name,this.description=e.description||this.description,this.x=e.x||this.x,this.y=e.y||this.y,this.constant=e.constant!==void 0?e.constant:this.constant,this.required=e.required!==void 0?e.required:this.required,this}async load(e=L,...t){return await be.repository.load(this.id,...t),this}async create(e=L,...t){return await be.repository.create(this.toShallowJSON(),...t),this}async update(e=L,...t){return await be.repository.update(this.toShallowJSON(),...t),this}async delete(e=L,...t){return await be.repository.delete(this.id,...t),this}remove({ignoreUpstream:e,seenEntities:t}={ignoreUpstream:!1,seenEntities:new Set}){const i=[],a=[];if(t.has(this.id))return{affected:[],removed:[]};if(t.add(this.id),a.push(this),this.unsubscribe(),this.defaultValue){const{affected:o,removed:l}=this.defaultValue.remove({ignoreUpstream:!0,seenEntities:t});i.push(...o),a.push(...l)}if(this.readsValue&&(i.push(this.readsValue),this.readsValue.removeValueReader(this)),this.writesValues.forEach(o=>{i.push(o),o.readsValue=null}),this.inputs.forEach(o=>{const{affected:l,removed:d}=o.remove({ignoreUpstream:!0,seenEntities:t});i.push(...l),a.push(...d)}),this.outputs.forEach(o=>{const{affected:l,removed:d}=o.remove({ignoreUpstream:!0,seenEntities:t});i.push(...l),a.push(...d)}),this.successCalls.forEach(o=>{i.push(o),o.removeCaller(this)}),this.errorCalls.forEach(o=>{i.push(o),o.removeCaller(this)}),this.internalCalls.forEach(o=>{const{affected:l,removed:d}=o.remove({ignoreUpstream:!0,seenEntities:t});i.push(...l),a.push(...d)}),this.dataType){const{affected:o,removed:l}=this.dataType.remove({ignoreUpstream:!0,seenEntities:t});i.push(...o),a.push(...l)}return e||this.calledBy.forEach(o=>{i.push(o),o.removeCall(this)}),{affected:m(i),removed:m(a)}}restore({seenEntities:e}={seenEntities:new Set}){const t=[];if(e.has(this.id))return{affected:[],self:this};if(e.add(this.id),this.subscribe(),this.defaultValue){const{affected:i}=this.defaultValue.restore({seenEntities:e});t.push(...i)}if(this.readsValue&&(t.push(this.readsValue),this.readsValue.addValueReader(this)),this.writesValues.forEach(i=>{t.push(i),i.setValueWriter(this)}),this.inputs.forEach(i=>{const{affected:a}=i.restore({seenEntities:e});t.push(...a)}),this.outputs.forEach(i=>{const{affected:a}=i.restore({seenEntities:e});t.push(...a)}),this.successCalls.forEach(i=>{t.push(i),i.addSuccessCaller(this)}),this.errorCalls.forEach(i=>{t.push(i),i.addErrorCaller(this)}),this.internalCalls.forEach(i=>{const{affected:a}=i.restore({seenEntities:e});t.push(...a)}),this.dataType){const{affected:i}=this.dataType.restore({seenEntities:e});t.push(...i)}return this.calledBySuccess.forEach(i=>{t.push(i),i.addSuccessCall(this)}),this.calledByError.forEach(i=>{t.push(i),i.addErrorCall(this)}),this.calledByEntry.forEach(i=>{t.push(i),i.addCall(this)}),{affected:m(t),self:this}}toFlat(e=new Set){var i,a,o;return e.has(this.id)?[]:(e.add(this.id),[this,...((i=this.defaultValue)==null?void 0:i.toFlat(e))||[],...((a=this.dataType)==null?void 0:a.toFlat(e))||[],...((o=this.readsValue)==null?void 0:o.toFlat(e))||[],...this.writesValues.flatMap(l=>l.toFlat(e)),...this.successCalls.flatMap(l=>l.toFlat(e)),...this.errorCalls.flatMap(l=>l.toFlat(e)),...this.inputs.flatMap(l=>l.toFlat(e)),...this.outputs.flatMap(l=>l.toFlat(e)),...this.internalCalls.flatMap(l=>l.toFlat(e)),...this.calledBy.flatMap(l=>l.toFlat(e))])}toFlatIds(e=new Set){var i,a;return e.has(this.id)?[]:(e.add(this.id),[this.id,...((i=this.defaultValue)==null?void 0:i.toFlatIds(e))||[],...((a=this.dataType)==null?void 0:a.toFlatIds(e))||[],...this.writesValues.flatMap(o=>o.toFlatIds(e)),...this.successCalls.flatMap(o=>o.toFlatIds(e)),...this.errorCalls.flatMap(o=>o.toFlatIds(e)),...this.inputs.flatMap(o=>o.toFlatIds(e)),...this.outputs.flatMap(o=>o.toFlatIds(e)),...this.internalCalls.flatMap(o=>o.toFlatIds(e))])}toJSON(e=new Set){var t,i,a;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,constant:this.constant,required:this.required,defaultValue:((t=this.defaultValue)==null?void 0:t.toJSON(e))||null,dataType:((i=this.dataType)==null?void 0:i.toJSON(e))||null,readsValue:((a=this.readsValue)==null?void 0:a.toReference())||null,writesValues:this.writesValues.map(o=>o.toJSON(e)),inputs:this.inputs.map(o=>o.toJSON(e)),outputs:this.outputs.map(o=>o.toJSON(e)),successCalls:this.successCalls.map(o=>o.toJSON(e)),errorCalls:this.errorCalls.map(o=>o.toJSON(e)),internalCalls:this.internalCalls.map(o=>o.toJSON(e)),calledBySuccess:this.calledBySuccess.map(o=>o.toReference()),calledByError:this.calledByError.map(o=>o.toReference()),calledByEntry:this.calledByEntry.map(o=>o.toReference()),parent:this.parent.toReference(),x:this.x,y:this.y})}toJSONClone(e=F){var i,a,o,l,d,h,y,f;let t;return(i=e.seenEntityMaps)!=null&&i.has(this.id)?t=e.seenEntityMaps.get(this.id):(t=e.newId||it(this,this.project,e.uuidStrategy),e.seenEntityMaps&&e.seenEntityMaps.set(this.id,t)),(a=e.seenEntities)!=null&&a.has(t)||(o=e.seenEntities)!=null&&o.has(this.id)?this.toReference({seenEntityMaps:e.seenEntityMaps}):((l=e.seenEntities)==null||l.add(t),(d=e.seenEntities)==null||d.add(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,defaultValue:((h=this.defaultValue)==null?void 0:h.toJSONClone({...e,newId:null}))||null,dataType:((y=this.dataType)==null?void 0:y.toJSONClone({...e,newId:null}))||null,readsValue:((f=this.readsValue)==null?void 0:f.toReference({seenEntityMaps:e.seenEntityMaps}))||null,writesValues:this.writesValues.map(v=>v.toJSONClone({...e,newId:null})),inputs:this.inputs.map(v=>v.toJSONClone({...e,newId:null})),outputs:this.outputs.map(v=>v.toJSONClone({...e,newId:null})),successCalls:this.successCalls.map(v=>v.toJSONClone({...e,newId:null})),errorCalls:this.errorCalls.map(v=>v.toJSONClone({...e,newId:null})),internalCalls:this.internalCalls.map(v=>this.calledBy.length||this.readsValue?v.toJSONClone({...e,newId:null}):v.toReference({seenEntityMaps:e.seenEntityMaps})),calledBySuccess:this.calledBySuccess.map(v=>v.toReference({seenEntityMaps:e.seenEntityMaps})),calledByError:this.calledByError.map(v=>v.toReference({seenEntityMaps:e.seenEntityMaps})),calledByEntry:this.calledByEntry.map(v=>v.toReference({seenEntityMaps:e.seenEntityMaps})),parent:this.parent.toReference({seenEntityMaps:e.seenEntityMaps}),x:this.x,y:this.y})}toReference(e=F){var i;let t=this.id;return(i=e.seenEntityMaps)!=null&&i.has(this.id)&&(t=e.seenEntityMaps.get(this.id)),{id:t+"--"+O.UUID.uuid()+"--ref",type:r.GenericReference,entityId:t,version:this.version,entityType:this.type}}toShallowJSON(e=F){var i,a,o,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,name:this.name,description:this.description,required:this.required,constant:this.constant,x:this.x,y:this.y,defaultValue:((a=this.defaultValue)==null?void 0:a.toReference(e))||null,dataType:((o=this.dataType)==null?void 0:o.toReference(e))||null,readsValue:((l=this.readsValue)==null?void 0:l.toReference(e))||null,writesValues:this.writesValues.map(d=>d.toReference(e)),inputs:this.inputs.map(d=>d.toReference(e)),outputs:this.outputs.map(d=>d.toReference(e)),successCalls:this.successCalls.map(d=>d.toReference(e)),errorCalls:this.errorCalls.map(d=>d.toReference(e)),calledBySuccess:this.calledBySuccess.map(d=>d.toReference(e)),calledByError:this.calledByError.map(d=>d.toReference(e)),calledByEntry:this.calledByEntry.map(d=>d.toReference(e)),internalCalls:this.internalCalls.map(d=>d.toReference(e)),parent:this.parent.toReference(e)}}toFlatJSON(e=new Set){var i,a;return e.has(this.id)?[]:(e.add(this.id),[this.toShallowJSON(),...((i=this.defaultValue)==null?void 0:i.toFlatJSON(e))||[],...((a=this.dataType)==null?void 0:a.toFlatJSON(e))||[],...this.writesValues.flatMap(o=>o.toFlatJSON(e)),...this.successCalls.flatMap(o=>o.toFlatJSON(e)),...this.errorCalls.flatMap(o=>o.toFlatJSON(e)),...this.inputs.flatMap(o=>o.toFlatJSON(e)),...this.outputs.flatMap(o=>o.toFlatJSON(e)),...this.internalCalls.flatMap(o=>o.toFlatJSON(e))])}toGenerationTarget(){const e=this.parent.type===r.Project?void 0:this.parent.id;return{id:this.id,type:this.type,name:this.name,description:this.description,calledByEntry:this.calledByEntry.map(t=>t.id),calledBySuccess:this.calledBySuccess.map(t=>t.id),calledByError:this.calledByError.map(t=>t.id),parent:e}}toFlatGenerationTarget(e=new Set){var i,a;return e.has(this.id)?[]:(e.add(this.id),[this.toGenerationTarget(),...((i=this.defaultValue)==null?void 0:i.toFlatGenerationTarget(e))||[],...((a=this.dataType)==null?void 0:a.toFlatGenerationTarget(e))||[],...this.writesValues.flatMap(o=>o.toFlatGenerationTarget(e)),...this.successCalls.flatMap(o=>o.toFlatGenerationTarget(e)),...this.errorCalls.flatMap(o=>o.toFlatGenerationTarget(e)),...this.inputs.flatMap(o=>o.toFlatGenerationTarget(e)),...this.outputs.flatMap(o=>o.toFlatGenerationTarget(e)),...this.internalCalls.flatMap(o=>o.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()),this.internalCalls.forEach(i=>i.clearErrors()),(e=this.dataType)==null||e.clearErrors(),(t=this.defaultValue)==null||t.clearErrors(),this}validate(){const e=A7(this);return this.errors=e,{success:!0,error:null,data:this.toJSON()}}getErrors(){var t,i,a;return[...this.errors,...((t=this.defaultValue)==null?void 0:t.getErrors())||[],...((i=this.dataType)==null?void 0:i.getErrors())||[],...this.inputs.flatMap(o=>o.getErrors()),...this.internalCalls.flatMap(o=>o.getErrors()),...this.outputs.flatMap(o=>o.getErrors()),...((a=this.readsValue)==null?void 0:a.getErrors())||[]]}getShallowErrors(){return this.errors}getDefaultValue(){return this.defaultValue||null}setDefaultValue(e){return this.defaultValue=e,this}clone(e=null,t=null,i=!0){var A,M,H,W,_;let a=at(e,this);const o=this.toJSON(),l=t||O.UUID.uuid();o.inputs=[];const d=l.split("-id"),h=d[d.length-1||0]||l;o.id=l;const y=tt(o,a);e?y.setParent(e):y.setParent(this.parent),i&&y.subscribe(),y.initChildren();const f=(A=this.dataType)==null?void 0:A.clone(y,O.UUID.uuid(),i);y.dataType=f||null;const v=(M=this.defaultValue)==null?void 0:M.clone(y,h+"-default-value-id",i);y.defaultValue=v||null;const R=(H=this.inputs)==null?void 0:H.map((Q,se)=>Q.clone(y,h+"-input-map-"+se+"-id",i));y.inputs=R;const I=(W=this.outputs)==null?void 0:W.map((Q,se)=>Q.clone(y,h+"-output-map-"+se+"-id",i));y.outputs=I;const D=(_=this.internalCalls)==null?void 0:_.map((Q,se)=>Q.clone(y,h+"-internal-call-"+se+"-id",i));return y.internalCalls=D,y}addInternalCall(e){return this.internalCalls.find(t=>t===e)||this.internalCalls.push(e),this}createInstance(e=this.project,t={}){const i={id:t.id||O.UUID.uuid(),version:t.version||"1",createdAt:$().toDate(),author:"1",previousVersion:null,deleted:!1,type:r.VariableInstance,parent:e.toReference(),defaultValue:t.defaultValue||null,successCalls:t.successCalls||[],errorCalls:t.errorCalls||[],inputs:t.inputs||[],outputs:t.outputs||[],writesValues:t.writesValues||[],internalCalls:t.internalCalls||[],readsValue:t.readsValue||null,calledByEntry:t.calledByEntry||[],calledBySuccess:t.calledBySuccess||[],calledByError:t.calledByError||[],declaration:this.toJSON(),x:0,y:0},a=b(i,this.project);return a.setParent(e),a.initChildren(),e===this.project&&this.project.addVariableInstance(a),a}generateUnusedInputs(){if(this.dataType)if(this.dataType.entity){if([r.DefinitionEntity,r.PrimitiveEntity,r.BuiltInBaseEntity].includes(this.dataType.entity.type)){const e=[...this.dataType.entity.properties];e.filter(o=>!o.getDataType()).forEach(o=>{const l=this.inputs.find(y=>B(y,this.project)===B(o,this.project));if(!l)return;const d=this.getMasterInputWithValueWritterFromAllInstances(l);if(!d)return;const h=$r(d);o.setDataType(h),l.setDeclaration(o)}),e.filter(o=>!this.inputs.find(l=>{var d;return((d=l.declaration)==null?void 0:d.id)===o.id})).forEach(o=>{const l={id:O.UUID.uuid(),version:"1",createdAt:$().toDate(),author:"1",previousVersion:null,deleted:!1,type:r.InputMap,parent:this.toReference(),name:null,description:null,declaration:o,defaultValue:null,index:o.index,readsValue:null},d=b(l,this.project);return d.setParent(this),d.initChildren(),d.suggestion=!0,this.addInput(d),d}),this.inputs.filter(o=>!o.declaration).forEach(o=>{const l=e.find(d=>B(d,this.project)===B(o,this.project));l&&o.setDeclaration(l)})}}else return[];else return[];return[]}generateUnusedOutputs(){if(this.dataType)if(this.dataType.entity){if([r.DefinitionEntity,r.PrimitiveEntity,r.BuiltInBaseEntity].includes(this.dataType.entity.type))return[...this.dataType.entity.properties].filter(i=>!this.outputs.find(a=>a.declaration===i)).map(i=>{const a={id:O.UUID.uuid(),version:"1",createdAt:$().toDate(),author:"1",previousVersion:null,deleted:!1,type:r.OutputMap,defaultValue:null,parent:this.toReference(),declaration:i,index:i.index,writesValues:[]},o=b(a,this.project);return o.setParent(this),o.initChildren(),o.suggestion=!0,this.addOutput(o),o})}else return[];else return[];return[]}generateUnusedInternalCalls(){if(this.dataType)if(this.dataType.entity){if([r.DefinitionEntity,r.PrimitiveEntity,r.BuiltInBaseEntity].includes(this.dataType.entity.type))return[...this.dataType.entity.getAllInteractiveMethods()].filter(i=>!this.internalCalls.find(o=>{var d,h,y,f,v;return(((d=o.declaration)==null?void 0:d.id)||((y=(h=o.initialData)==null?void 0:h.declaration)==null?void 0:y.entityId)||((v=(f=o.initialData)==null?void 0:f.declaration)==null?void 0:v.id))===i.id})).map(i=>{const a=i.createInternalCall(this);return a.suggestion=!0,this.addInternalCall(a),a})}else return[];else return[];return[]}setDataType(e){return this.dataType=e,this}removeDataType(){return this.dataType=null,this}getDataType(){return(!this.dataType||this.dataType.inferred)&&this.inferDataTypeAndSyncInstancesInputsAndOutputs(),this.dataType||null}getUnusedInputs(){return this.inputs.filter(e=>e.suggestion||!e.readsValue&&!e.defaultValue)}getUnusedOutputs(){return this.outputs.filter(e=>e.suggestion||!e.writesValues.length)}getUsedInputs(){return this.inputs.filter(e=>!e.suggestion&&(e.readsValue||e.defaultValue))}getUsedOutputs(){return this.outputs.filter(e=>!e.suggestion&&e.writesValues.length)}};u(be,"repository",{create:async(e,...t)=>e,update:async(e,...t)=>e,delete:async(e,...t)=>{},load:async(e,...t)=>null}),u(be,"type",r.VariableDeclaration),u(be,"USER_MANAGED_PARENT_TYPES",[...lt,r.Project]),u(be,"PARENT_TYPES",[...be.USER_MANAGED_PARENT_TYPES]),u(be,"MUTABLE_BASE_PROPERTIES",["name","description"]),u(be,"INMUTABLE_BASE_PROPERTIES",["id","type","version"]),u(be,"BASE_PROPERTIES",[...be.MUTABLE_BASE_PROPERTIES,...be.INMUTABLE_BASE_PROPERTIES]),u(be,"MUTABLE_META_PROPERTIES",[...be.MUTABLE_BASE_PROPERTIES,"x","y"]),u(be,"INMUTABLE_META_PROPERTIES",[...be.INMUTABLE_BASE_PROPERTIES]),u(be,"META_PROPERTIES",[...be.MUTABLE_META_PROPERTIES,...be.INMUTABLE_META_PROPERTIES]),u(be,"MUTABLE_UPSTREAM_PROPERTIES",["calledBySuccess","calledByError","calledByEntry","readsValue"]),u(be,"INMUTABLE_UPSTREAM_PROPERTIES",["parent","dataType"]),u(be,"UPSTREAM_PROPERTIES",[...be.MUTABLE_UPSTREAM_PROPERTIES,...be.INMUTABLE_UPSTREAM_PROPERTIES]),u(be,"MUTABLE_DOWNSTREAM_PROPERTIES",["writesValues","inputs","outputs","successCalls","errorCalls","internalCalls"]),u(be,"INMUTABLE_DOWNSTREAM_PROPERTIES",[]),u(be,"DOWNSTREAM_PROPERTIES",[...be.MUTABLE_DOWNSTREAM_PROPERTIES,...be.INMUTABLE_DOWNSTREAM_PROPERTIES]),u(be,"PROPERTIES",[...be.META_PROPERTIES,...be.UPSTREAM_PROPERTIES,...be.DOWNSTREAM_PROPERTIES]);let pi=be;function D7(n){const s=d3(),e=n.toJSON();s.safeParse(e).success,n.inputs.forEach(l=>l.validate()),n.outputs.forEach(l=>l.validate()),n.internalCalls.forEach(l=>l.validate());const a=[...ln(n)];if(n.id==="exec-sequentially-result-variable-id"){const l=le({id:`${n.id}--${U.PropertyImplementsNonAbstact}`,message:`Property "${B(n,n.project)}" with id "${n.id}" implements a non-abstract property "${B(n,n.project)}" with id "${n.id}".`,issue:null,severity:E.Error,code:U.PropertyImplementsNonAbstact,entity:n});a.push(l.error)}const o=gp(n);return a.push(...o),xe(n.errors,a)}const Ie=class Ie extends He{constructor(e,t){super(e);u(this,"initialData");u(this,"id");u(this,"x");u(this,"y");u(this,"type",r.VariableInstance);u(this,"defaultValue",null);u(this,"writesValues",[]);u(this,"readsValue",null);u(this,"declaration");u(this,"inputs",[]);u(this,"outputs",[]);u(this,"calledBySuccess",[]);u(this,"calledByError",[]);u(this,"calledByEntry",[]);u(this,"successCalls",[]);u(this,"errorCalls",[]);u(this,"internalCalls",[]);u(this,"project");u(this,"errors",[]);u(this,"parent");u(this,"initialized",!1);u(this,"suggestion",!1);this.initialData=e,this.project=t,this.id=e.id,this.x=e.x,this.y=e.y}static fromGenerationTarget(e,t){let i=t;if(e.parent){const R=P(e.parent);i=t.get(R)}const a=P(e.declaration),o=t.get(a),l=e.calledByEntry.map(R=>{const I=P(R);return t.get(I)}),d=e.calledBySuccess.map(R=>{const I=P(R);return t.get(I)}),h=e.calledByError.map(R=>{const I=P(R);return t.get(I)});let y=null;if(e.readsValue){const R=P(e.readsValue);y=t.get(R)}const f={id:e.id,version:"1",createdAt:$().toDate(),author:"1",previousVersion:null,deleted:!1,type:r.VariableInstance,declaration:o.toReference(),calledByEntry:l,calledBySuccess:d,calledByError:h,defaultValue:null,errorCalls:[],successCalls:[],internalCalls:[],readsValue:y,inputs:[],outputs:[],writesValues:[],x:0,y:0,parent:i},v=b(f,t);return v.setParent(i),v.initChildren(),v}static validateGenerationTarget(e,t){let i=JSON.parse(JSON.stringify(e));const a=[],o=ft(i,{parent:{list:!1,types:[...lt,r.Project],optional:!0},declaration:{list:!1,types:[r.VariableDeclaration]}},t);return i=o.modifiedData,a.push(...o.errors,...et(i)),{errors:a,modifiedData:i}}validateGeneratedUpdate(e){const t=[];let i=JSON.parse(JSON.stringify(e));const a=gs(i,this);return i=a.modifiedData,t.push(...a.errors),e.parent&&t.push(new g({id:`${this.id}--${T.InvalidParentUpdate}`,code:T.InvalidParentUpdate,severity:E.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.
@@ -376,7 +376,7 @@ All built-in 'action-descriptor' entities that define 'condition' entity, are (I
376
376
  `;return t?t.type===r.FunctionDeclaration?e.push(new g({id:`last-action--${T.InvalidActionDescriptorForCondition}`,code:T.InvalidActionDescriptorForCondition,severity:E.Error,message:`The entity with id '${n}' is of type '${t.type}' entity. Only 'action-descriptor' entities can be implemented as conditions instances.${i}`,issue:null})):t.type===r.ActionDescriptor?s.conditionDeclarations.find(o=>o.id===n)||e.push(new g({id:`last-action--${T.InvalidActionDescriptorForOperation}`,code:T.InvalidActionDescriptorForOperation,severity:E.Error,message:`The entity with id '${n}' is of type '${t.type}' entity but it isn't one of the allowed condition descriptors.${i}`,issue:null})):t.type!==r.ActionDescriptor&&e.push(new g({id:`last-action--${T.InvalidActionDescriptorForCondition}`,code:T.InvalidActionDescriptorForCondition,severity:E.Error,message:`The entity with id '${n}' is of type '${t.type}' entity. Only 'action-descriptor' entities can be implemented as conditions instances.${i}`,issue:null})):e.push(new g({id:`last-action--${T.ReferencedEntityNotFound}`,code:T.ReferencedEntityNotFound,severity:E.Error,message:`The entity with id '${n}' that isn't yet found in the project.${i}`,issue:null})),e}function tq(n,s){const e=[];if(!n)return[];const t=s.getBuiltIn(n),i=`
377
377
  All built-in 'action-descriptor' entities that define 'loop' entity, are (IDs):
378
378
  - ${s.loopDeclarations.map(a=>`${a.id} (${B(a,s)}).`).join(`
379
- - `)}`;return t?t.type===r.FunctionDeclaration?e.push(new g({id:`last-action--${T.InvalidActionDescriptorForLoop}`,code:T.InvalidActionDescriptorForLoop,severity:E.Error,message:`The entity with id '${n}' is of type '${t.type}' entity. Only 'action-descriptor' entities can be implemented as loops instances.${i}`,issue:null})):t.type===r.ActionDescriptor?s.loopDeclarations.find(o=>o.id===n)||e.push(new g({id:`last-action--${T.InvalidActionDescriptorForOperation}`,code:T.InvalidActionDescriptorForOperation,severity:E.Error,message:`The entity with id '${n}' is of type '${t.type}' entity but it isn't one of the allowed loop descriptors.${i}`,issue:null})):t.type!==r.ActionDescriptor&&e.push(new g({id:`last-action--${T.InvalidActionDescriptorForLoop}`,code:T.InvalidActionDescriptorForLoop,severity:E.Error,message:`The entity with id '${n}' is of type '${t.type}' entity. Only 'action-descriptor' entities can be implemented as loops instances.${i}`,issue:null})):e.push(new g({id:`last-action--${T.ReferencedEntityNotFound}`,code:T.ReferencedEntityNotFound,severity:E.Error,message:`The entity with id '${n}' that isn't yet found in the project.${i}`,issue:null})),e}function eD(n,s,e){var d,h,y,f;if(e.compatible)return"";const t=`entity of type "${n.type}" with id "${n.id}"`,i=`entity with id "${n.id}"`,a=`entity of type "${s.type}" with id "${s.id}"`,o=`entity with id "${s.id}"`,l=_t(`${t} and ${a} have incompatible data types and cannot be connected as value-reader and value-writter.`);return e.type===pr.AIsListBIsNot?`${l}
379
+ - `)}`;return t?t.type===r.FunctionDeclaration?e.push(new g({id:`last-action--${T.InvalidActionDescriptorForLoop}`,code:T.InvalidActionDescriptorForLoop,severity:E.Error,message:`The entity with id '${n}' is of type '${t.type}' entity. Only 'action-descriptor' entities can be implemented as loops instances.${i}`,issue:null})):t.type===r.ActionDescriptor?s.loopDeclarations.find(o=>o.id===n)||e.push(new g({id:`last-action--${T.InvalidActionDescriptorForOperation}`,code:T.InvalidActionDescriptorForOperation,severity:E.Error,message:`The entity with id '${n}' is of type '${t.type}' entity but it isn't one of the allowed loop descriptors.${i}`,issue:null})):t.type!==r.ActionDescriptor&&e.push(new g({id:`last-action--${T.InvalidActionDescriptorForLoop}`,code:T.InvalidActionDescriptorForLoop,severity:E.Error,message:`The entity with id '${n}' is of type '${t.type}' entity. Only 'action-descriptor' entities can be implemented as loops instances.${i}`,issue:null})):e.push(new g({id:`last-action--${T.ReferencedEntityNotFound}`,code:T.ReferencedEntityNotFound,severity:E.Error,message:`The entity with id '${n}' that isn't yet found in the project.${i}`,issue:null})),e}function eD(n,s,e){var d,h,y,f;if(e.compatible)return"";const t=`entity of type "${n.type}" with id "${n.id}"`,i=`entity with id "${n.id}"`,a=`entity of type "${s.type}" with id "${s.id}"`,o=`entity with id "${s.id}"`,l=jt(`${t} and ${a} have incompatible data types and cannot be connected as value-reader and value-writter.`);return e.type===pr.AIsListBIsNot?`${l}
380
380
  ${i} is a list, but ${o} is not. A list can't be connected to a single value.`:e.type===pr.BIsListAIsNot?`${l}
381
381
  ${i} is not a list, but ${o} is. A single value can't be connected to a list.`:e.type===pr.AIsNullableBIsNot?`${l}
382
382
  ${i} is nullable, but ${o} is not. A nullable value can't be connected to a non-nullable value since an empty value might be incorrectly provided.`:e.type===pr.BIsNullableAIsNot?`${l}
@@ -403,4 +403,4 @@ If an entity is called by another, they must be in the same scope, which means t
403
403
  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}}hydrateAncestors(){const e=[],t=[],i=[];if(this.initialData.parent){const a=P(this.initialData.parent),o=this.project.get(a);o&&(this.setParent(o),e.push(o))}if(this.initialData.declaration){const a=P(this.initialData.declaration),o=this.project.get(a);o&&(this.setDeclaration(o),e.push(o))}return this.initialData.calledByEntry.forEach(a=>{const o=P(a),l=this.project.get(o);l&&(this.addEntryCaller(l),e.push(l))}),this.initialData.calledBySuccess.forEach(a=>{const o=P(a),l=this.project.get(o);l&&(this.addSuccessCaller(l),e.push(l))}),this.initialData.calledByError.forEach(a=>{const o=P(a),l=this.project.get(o);l&&(this.addErrorCaller(l),e.push(l))}),{updated:m(e),added:m(t),removed:m(i),self:this}}afterAllChildrenInitialized(){const e=[],t=[],i=[];this.initialized=!0;const{updated:a,added:o,removed:l}=this.syncMissingFixedInputs(),{updated:d,added:h,removed:y}=this.syncMissingFixedOutputs();return e.push(...a,...d),t.push(...o,...h),i.push(...l,...y),{updated:m(e),added:m(t),removed:m(i),self:this}}addSelfToProject(){var a;const e=[this],t=[],i=[];return this.parent===this.project&&this.project.addFunctionCall(this),(a=this.process)==null||a.writesValues.forEach(o=>{o.setValueWriter(this.process),e.push(o)}),this.successCalls.forEach(o=>{o.addSuccessCaller(this),e.push(o)}),this.errorCalls.forEach(o=>{o.addErrorCaller(this),e.push(o)}),this.calledBySuccess.forEach(o=>{o.addSuccessCall(this),e.push(o)}),this.calledByError.forEach(o=>{o.addErrorCall(this),e.push(o)}),this.calledByEntry.forEach(o=>{o.addCall(this),e.push(o)}),{updated:m(e),added:m(t),removed:m(i),self:this}}get calledBy(){return[...this.calledByEntry,...this.calledBySuccess,...this.calledByError]}removeInput(e){const t=this.inputs.findIndex(i=>i.id===e.id);return t>-1&&this.inputs.splice(t,1),this}addInput(e){return this.inputs.includes(e)?this:(this.inputs.push(e),this)}addOutput(e){return this.outputs.includes(e)?this:(this.outputs.push(e),this)}removeOutput(e){const t=this.outputs.findIndex(i=>i.id===e.id);return t>-1&&this.outputs.splice(t,1),this}addValueReader(e){var t;return(t=this.process)==null||t.addValueReader(e),this}removeValueReader(e){var t;return(t=this.process)==null||t.removeValueReader(e),this}addSuccessCaller(e){return this.calledBySuccess.find(t=>t.id===e.id)||this.calledBySuccess.push(e),this}addErrorCaller(e){return this.calledByError.find(t=>t.id===e.id)||this.calledByError.push(e),this}addEntryCaller(e){return this.calledByEntry.find(t=>t.id===e.id)||this.calledByEntry.push(e),this}addErrorCall(e){return this.errorCalls.find(t=>t.id===e.id)||this.errorCalls.push(e),this}addSuccessCall(e){return this.successCalls.find(t=>t.id===e.id)||this.successCalls.push(e),this}removeCall(e){const t=this.successCalls.findIndex(a=>a.id===e.id);t>-1&&this.successCalls.splice(t,1);const i=this.errorCalls.findIndex(a=>a.id===e.id);return i>-1&&this.errorCalls.splice(i,1),this}removeCaller(e){return this.calledBySuccess=this.calledBySuccess.filter(t=>t.id!==e.id),this.calledByError=this.calledByError.filter(t=>t.id!==e.id),this.calledByEntry=this.calledByEntry.filter(t=>t.id!==e.id),this}setParent(e){return this.parent=e,this}setDeclaration(e){return this.declaration=e,this}initChildren(){if(this.initialized)return this;if(this.initialized=!0,this.initialData.declaration.type===r.FunctionDeclaration){const e=b(this.initialData.declaration,this.project);this.declaration=e}else{const e=P(this.initialData.declaration),t=this.project.get(e);this.declaration=t}return this.successCalls=this.initialData.successCalls.map(e=>{const t=b(e,this.project);return t.addSuccessCaller(this),[r.BreakStatement,r.ContinueStatement].includes(t.type)?(t.setParent(this.parent.parent),t.initChildren()):t.type!==r.InternalCall&&(t.setParent(this.parent),t.initChildren()),t}),this.errorCalls=this.initialData.errorCalls.map(e=>{const t=b(e,this.project);return t.addErrorCaller(this),[r.BreakStatement,r.ContinueStatement].includes(t.type)?(t.setParent(this.parent.parent),t.initChildren()):t.type!==r.InternalCall&&(t.setParent(this.parent),t.initChildren()),t}),this.inputs=this.initialData.inputs.map(e=>{const t=b(e,this.project);return t.setParent(this),t.initChildren(),t}),this.initialData.process&&(this.process=b(this.initialData.process,this.project),this.process.setParent(this),this.process.initChildren()),this.initialData.error&&(this.error=b(this.initialData.error,this.project),this.error.setParent(this),this.error.initChildren()),this.afterAllChildrenInitialized(),this}subscribe(){return this.project.subscribeInstance(this),this}unsubscribe(){return this.project.unsubscribeInstance(this),this}sync(e){return super.sync(e),this.x=e.x||this.x,this.y=e.y||this.y,this}async load(e=L,...t){return await Ge.repository.load(this.id,...t),this}async create(e=L,...t){return await Ge.repository.create(this.toShallowJSON(),...t),this}async update(e=L,...t){return await Ge.repository.update(this.toShallowJSON(),...t),this}async delete(e=L,...t){return await Ge.repository.delete(this.id,...t),this}remove({ignoreUpstream:e,seenEntities:t}={ignoreUpstream:!1,seenEntities:new Set}){var o;const i=[],a=[];if(t.has(this.id))return{affected:[],removed:[]};if(t.add(this.id),a.push(this),this.unsubscribe(),this.process){const{affected:l,removed:d}=(o=this.process)==null?void 0:o.remove({ignoreUpstream:!0,seenEntities:t});i.push(...l),a.push(...d)}if(this.inputs.forEach(l=>{const{affected:d,removed:h}=l.remove({ignoreUpstream:!0,seenEntities:t});i.push(...d),a.push(...h)}),this.outputs.forEach(l=>{const{affected:d,removed:h}=l.remove({ignoreUpstream:!0,seenEntities:t});i.push(...d),a.push(...h)}),this.error){const{affected:l,removed:d}=this.error.remove({ignoreUpstream:!0,seenEntities:t});i.push(...l),a.push(...d)}return this.successCalls.forEach(l=>{i.push(l),l.removeCaller(this)}),this.errorCalls.forEach(l=>{i.push(l),l.removeCaller(this)}),e||this.calledBy.forEach(l=>{i.push(l),l.removeCall(this)}),{affected:m(i),removed:m(a)}}restore({seenEntities:e}={seenEntities:new Set}){const t=[];if(e.has(this.id))return{affected:[],self:this};if(e.add(this.id),this.subscribe(),this.process){const{affected:i}=this.process.restore({seenEntities:e});t.push(...i)}return this.inputs.forEach(i=>{const{affected:a}=i.restore({seenEntities:e});t.push(...a)}),this.outputs.forEach(i=>{const{affected:a}=i.restore({seenEntities:e});t.push(...a)}),this.successCalls.forEach(i=>{t.push(i),i.addSuccessCaller(this)}),this.errorCalls.forEach(i=>{t.push(i),i.addErrorCaller(this)}),this.calledBySuccess.forEach(i=>{t.push(i),i.addSuccessCall(this)}),this.calledByError.forEach(i=>{t.push(i),i.addErrorCall(this)}),this.calledByEntry.forEach(i=>{t.push(i),i.addCall(this)}),{affected:m(t),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))])}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(a=>a.toJSON(e)),errorCalls:this.errorCalls.map(a=>a.toJSON(e)),calledBySuccess:this.calledBySuccess.map(a=>a.toReference()),calledByError:this.calledByError.map(a=>a.toReference()),calledByEntry:this.calledByEntry.map(a=>a.toReference()),process:(t=this.process)==null?void 0:t.toJSON(e),declaration:this.declaration.toJSON(e),inputs:this.inputs.map(a=>a.toJSON(e)),outputs:this.outputs.map(a=>a.toJSON(e)),parent:this.parent.toReference(),error:(i=this.error)==null?void 0:i.toJSON(e)})}toJSONClone(e=F){var i,a,o,l,d,h,y;let t;return(i=e.seenEntityMaps)!=null&&i.has(this.id)?t=e.seenEntityMaps.get(this.id):(t=e.newId||it(this,this.project,e.uuidStrategy),e.seenEntityMaps&&e.seenEntityMaps.set(this.id,t)),(a=e.seenEntities)!=null&&a.has(t)||(o=e.seenEntities)!=null&&o.has(this.id)?this.toReference({seenEntityMaps:e.seenEntityMaps}):((l=e.seenEntities)==null||l.add(t),(d=e.seenEntities)==null||d.add(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,successCalls:this.successCalls.map(f=>f.toJSONClone({...e,newId:null})),errorCalls:this.errorCalls.map(f=>f.toJSONClone({...e,newId:null})),calledBySuccess:this.calledBySuccess.map(f=>f.toReference({seenEntityMaps:e.seenEntityMaps})),calledByError:this.calledByError.map(f=>f.toReference({seenEntityMaps:e.seenEntityMaps})),calledByEntry:this.calledByEntry.map(f=>f.toReference({seenEntityMaps:e.seenEntityMaps})),process:(h=this.process)==null?void 0:h.toJSONClone({...e,newId:null}),declaration:this.declaration.toJSONClone({...e,newId:null}),inputs:this.inputs.map(f=>f.toJSONClone({...e,newId:null})),outputs:this.outputs.map(f=>f.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=F){var i;let t=this.id;return(i=e.seenEntityMaps)!=null&&i.has(this.id)&&(t=e.seenEntityMaps.get(this.id)),{id:t+"--"+O.UUID.uuid()+"--ref",type:r.GenericReference,entityId:t,version:this.version,entityType:this.type}}toShallowJSON(e=F){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(a=>a.toReference(e)),outputs:this.outputs.map(a=>a.toReference(e)),declaration:this.declaration.toReference(e),successCalls:this.successCalls.map(a=>a.toReference(e)),errorCalls:this.errorCalls.map(a=>a.toReference(e)),calledBySuccess:this.calledBySuccess.map(a=>a.toReference(e)),calledByError:this.calledByError.map(a=>a.toReference(e)),calledByEntry:this.calledByEntry.map(a=>a.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===r.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=rq(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=null,t=null,i=!0){var R,I;let a=at(e,this);const o=this.toJSON(),l=t||O.UUID.uuid();o.inputs=[];const d=l.split("-id"),h=d[d.length-1||0]||l;o.id=l;const y=tt(o,a);e?y.setParent(e):y.setParent(this.parent),i&&y.subscribe(),y.initChildren();const f=(R=this.inputs)==null?void 0:R.map((D,A)=>D.clone(y,h+"-input-map-"+A+"-id",i));y.inputs=f;const v=(I=this.outputs)==null?void 0:I.map((D,A)=>D.clone(y,h+"-output-map-"+A+"-id",i));return y.outputs=v,this.error&&(y.error=this.error.clone(y,h+"-error-map-id",i)),this.process&&(y.process=this.process.clone(y,h+"-process-id",i)),y}removeUnrecognizedInputs(){const e=[],t=[],i=[];return this.inputs.forEach(a=>{if(!this.declaration.inputs.find(l=>{var d;return l.id===((d=a.declaration)==null?void 0:d.id)})){const l=a.remove();i.push(...l.removed),e.push(...l.affected)}}),{updated:m(e),added:m(t),removed:m(i),self:this}}removeUnrecognizedOutputs(){const e=[],t=[],i=[];return this.outputs.forEach(a=>{if(!this.declaration.getUniqueReturnDeclarations().find(l=>{var d;return l.id===((d=a.declaration)==null?void 0:d.id)})){const l=a.remove();i.push(...l.removed),e.push(...l.affected)}}),{updated:m(e),added:m(t),removed:m(i),self:this}}syncMissingFixedInputs(){const e=[],t=[],i=[],a=this.declaration.inputs.filter(h=>!this.inputs.find(y=>y.declaration.id===h.id));this.inputs.sort((h,y)=>h.index-y.index),a.forEach(h=>{this.inputs.forEach(v=>{v.index>=h.index&&v.sync({index:v.index+1})});const y={id:O.UUID.uuid(),version:"1",createdAt:$().toDate(),author:"1",previousVersion:null,deleted:!1,type:r.InputMap,declaration:h.toJSON(),readsValue:null,defaultValue:null,index:h.index,name:null,description:null,parent:this.toReference()},f=b(y,this.project);f.setParent(this),f.initChildren(),f.addSelfToProject(),t.push(f)}),this.inputs.sort((h,y)=>h.index-y.index);const{updated:o,added:l,removed:d}=this.removeUnrecognizedInputs();return e.push(...o),t.push(...l),i.push(...d),{updated:m(e),added:m(t),removed:m(i),self:this}}syncMissingFixedOutputs(){const e=[],t=[],i=[],a=[];this.outputs=this.initialData.outputs.map(y=>{const f=b(y,this.project);return a.push(f.index),f.setParent(this),f.initChildren(),f});const o=this.declaration.getUniqueReturnDeclarations().filter(y=>!this.outputs.find(f=>f.declaration.id===y.id));this.outputs.sort((y,f)=>y.index-f.index),o.forEach((y,f)=>{this.outputs.forEach(D=>{D.index>=y.index&&D.index++});const v=a.includes(y.index)?this.outputs.length-1+f:y.index,R={id:O.UUID.uuid(),version:"1",createdAt:$().toDate(),author:"1",previousVersion:null,deleted:!1,type:r.OutputMap,declaration:y.toJSON(),defaultValue:null,writesValues:[],index:v,parent:this.toReference()},I=b(R,this.project);I.setParent(this),I.initChildren(),I.addSelfToProject()}),this.outputs.sort((y,f)=>y.index-f.index);const{updated:l,added:d,removed:h}=this.removeUnrecognizedOutputs();return e.push(...l),t.push(...d),i.push(...h),{updated:m(e),added:m(t),removed:m(i),self:this}}};u(Ge,"repository",{create:async(e,...t)=>e,update:async(e,...t)=>e,delete:async(e,...t)=>{},load:async(e,...t)=>null}),u(Ge,"type",r.FunctionCall),u(Ge,"USER_MANAGED_PARENT_TYPES",[...lt,r.Project]),u(Ge,"PARENT_TYPES",[...Ge.USER_MANAGED_PARENT_TYPES]),u(Ge,"MUTABLE_BASE_PROPERTIES",[]),u(Ge,"INMUTABLE_BASE_PROPERTIES",["id","version","type"]),u(Ge,"BASE_PROPERTIES",[...Ge.MUTABLE_BASE_PROPERTIES,...Ge.INMUTABLE_BASE_PROPERTIES]),u(Ge,"MUTABLE_META_PROPERTIES",["x","y"]),u(Ge,"INMUTABLE_META_PROPERTIES",[...Ge.INMUTABLE_BASE_PROPERTIES]),u(Ge,"META_PROPERTIES",[...Ge.MUTABLE_META_PROPERTIES,...Ge.INMUTABLE_META_PROPERTIES]),u(Ge,"MUTABLE_UPSTREAM_PROPERTIES",["calledBySuccess","calledByError","calledByEntry"]),u(Ge,"INMUTABLE_UPSTREAM_PROPERTIES",["declaration","parent"]),u(Ge,"UPSTREAM_PROPERTIES",[...Ge.MUTABLE_UPSTREAM_PROPERTIES,...Ge.INMUTABLE_UPSTREAM_PROPERTIES]),u(Ge,"MUTABLE_DOWNSTREAM_PROPERTIES",["successCalls","errorCalls","writesValues","inputs","outputs","error"]),u(Ge,"INMUTABLE_DOWNSTREAM_PROPERTIES",[]),u(Ge,"DOWNSTREAM_PROPERTIES",[...Ge.MUTABLE_DOWNSTREAM_PROPERTIES,...Ge.INMUTABLE_DOWNSTREAM_PROPERTIES]),u(Ge,"PROPERTIES",[...Ge.META_PROPERTIES,...Ge.UPSTREAM_PROPERTIES,...Ge.DOWNSTREAM_PROPERTIES]);let Ei=Ge;function bp(n){return n&&typeof n.then=="function"}class Ip{constructor(s){u(this,"order",[]);u(this,"flatRecord",{});u(this,"allBuiltInEntityIds",$l());u(this,"onGoingVisits",{});this.flatten(s),this.orderEntities()}flatten(s){const e=new Set($l()),t=m(S(s,e,{ignoreBuiltInBaseEntities:!0})),i=new Set;for(const a of t)this.flatRecord[a.id]=a,i.add(a.id);this.order=Array.from(i)}moveEntityAfterDependencies(s){const{upstream:e}=Gl(s,this.flatRecord,{ignoreBuiltInBaseEntities:!0,allBuiltInEntityIds:this.allBuiltInEntityIds});for(const t of Object.keys(e)){const i=this.order.indexOf(t),a=this.order.indexOf(s.id);if(i>a)return this.order.splice(a,1),this.order.splice(i,0,s.id),!0}return!1}orderEntities(){let s=!1;for(let e=0;e<this.order.length;e++){const t=this.order[e],i=this.flatRecord[t];if(this.moveEntityAfterDependencies(i)){s=!0;break}}s&&this.orderEntities()}getUpstreamOngoingDependenciesVisits(s,e){const{upstream:t}=Gl(this.flatRecord[s],this.flatRecord,{ignoreBuiltInBaseEntities:!0,allBuiltInEntityIds:this.allBuiltInEntityIds}),i={};return Object.entries(this.onGoingVisits[e]||{}).forEach(([a,o])=>{Object.keys(t).includes(a)&&(i[a]=o)}),i}getDownstreamOngoingDependenciesVisits(s,e){const t=Object.keys(this.onGoingVisits[e]||{}),i=new Set(t.flatMap(o=>Object.keys(Gl(this.flatRecord[o],this.flatRecord,{ignoreBuiltInBaseEntities:!0,allBuiltInEntityIds:this.allBuiltInEntityIds}).downstream))),a={};return Array.from(i).forEach(o=>{o===s&&(a[o]=this.onGoingVisits[e][o])}),a}async settlePromises(s,e){const t=Object.values(s);t.length&&await Promise.all(t),Object.keys(s).forEach(i=>{delete this.onGoingVisits[e][i]})}visit(s){const e=this.order;for(const t of e)s(this.flatRecord[t],this.flatRecord);return this}reverseVisit(s){const e=this.order.slice().reverse();for(const t of e)s(this.flatRecord[t],this.flatRecord);return this}async visitAsync(s){const e=this.order,t=Math.random().toString(36).substring(7);this.onGoingVisits[t]={};for(const i of e){const a=this.getUpstreamOngoingDependenciesVisits(i,t);Object.keys(a).length&&await this.settlePromises(a,t);const o=s(this.flatRecord[i],this.flatRecord);bp(o)&&(this.onGoingVisits[t][i]=o)}return await this.settlePromises(this.onGoingVisits[t],t),this.onGoingVisits[t]={},this}async reverseVisitAsync(s){const e=this.order.slice().reverse(),t=Math.random().toString(36).substring(7);this.onGoingVisits[t]={};for(const i of e){const a=this.getDownstreamOngoingDependenciesVisits(i,t);Object.keys(a).length&&await this.settlePromises(a,t);const o=s(this.flatRecord[i],this.flatRecord);bp(o)&&(this.onGoingVisits[t][i]=o)}return await this.settlePromises(this.onGoingVisits[t],t),this.onGoingVisits[t]={},this}}function tD(n){var s;switch(n.id){case N["built-in-base-entity"].BUILT_IN_PERSISTED_ENTITY_ENTITY.id:{const e=n.project.entities.filter(d=>!!d.implements.find(h=>h.id===N["built-in-base-entity"].BUILT_IN_RELATIONAL_DATABASE_ENTITY.id));if(e.find(d=>!!d.properties.find(h=>{var y;return h.implements&&h.implements.id===N["built-in-base-entity"].BUILT_IN_RELATIONAL_DATABASE_ENTITY.properties.default.id&&((y=h.getDefaultValue())==null?void 0:y.value)===!0}))){const h=e[0].properties.find(f=>f.implements&&f.implements.id===N["built-in-base-entity"].BUILT_IN_RELATIONAL_DATABASE_ENTITY.properties.default.id),y=h==null?void 0:h.defaultValue;if(y)y.value=!0;else if(h!=null&&h.dataType){const f=(s=h==null?void 0:h.dataType)==null?void 0:s.id.split("-id")[0],v=b({id:f+"-default-value-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:r.LiteralValue,name:C.EntityTemplate,autogeneration:null,value:!0,valueAsType:null,parent:h==null?void 0:h.dataType.toReference()},n.project);return v.setParent(h==null?void 0:h.dataType),v.initChildren(),v.addSelfToProject(),{newEntities:[v]}}return{newEntities:[]}}const i=n.project.get(N["built-in-base-entity"].BUILT_IN_RELATIONAL_DATABASE_ENTITY.id),a=Bl(i,"Main database");if(a.errors.length>0)return{newEntities:[]};const o=a.implemented.properties.find(d=>d.implements&&d.implements.id===N["built-in-base-entity"].BUILT_IN_RELATIONAL_DATABASE_ENTITY.properties.default.id),l=o==null?void 0:o.defaultValue;if(l)l.value=!0;else if(o!=null&&o.dataType){const d=o==null?void 0:o.dataType.id.split("-id")[0],h=b({id:d+"-default-value-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:r.LiteralValue,name:C.EntityTemplate,autogeneration:null,value:!0,valueAsType:null,parent:o==null?void 0:o.dataType.toReference()},n.project);h.setParent(o==null?void 0:o.dataType),h.initChildren(),h.addSelfToProject()}return{newEntities:[a.implemented]}}}return{newEntities:[]}}function rD(n){return n.implements.filter(e=>e.type===r.BuiltInBaseEntity).map(e=>{switch(e.id){case N["built-in-base-entity"].BUILT_IN_PERSISTED_ENTITY_ENTITY.id:{const i=n.project.entities.filter(l=>l.implements.find(d=>d.id===N["built-in-base-entity"].BUILT_IN_RELATIONAL_DATABASE_ENTITY.id)).find(l=>!!l.properties.find(d=>{var h;return d.implements&&d.implements.id===N["built-in-base-entity"].BUILT_IN_RELATIONAL_DATABASE_ENTITY.properties.default.id&&((h=d.getDefaultValue())==null?void 0:h.value)===!0}));if(!i)return{newEntities:[]};const a=n.properties.find(l=>l.implements&&l.implements.id===N["built-in-base-entity"].BUILT_IN_PERSISTED_ENTITY_ENTITY.properties.database.id),o=a==null?void 0:a.defaultValue;if(a&&(a!=null&&a.dataType)&&!o){const l=a==null?void 0:a.dataType.id.split("-id")[0],d=b({id:l+"-default-value-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:r.LiteralValue,name:C.EntityTemplate,autogeneration:null,value:null,valueAsType:i,parent:a==null?void 0:a.dataType.toReference()},n.project);return d.setParent(a==null?void 0:a.dataType),d.initChildren(),d.addSelfToProject(),{newEntities:[d]}}return{newEntities:[]}}}}),{newEntities:[]}}function Bl(n,s,e){const t=e||O.UUID.uuid(),i={id:t,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:s,type:r.DefinitionEntity,description:null,static:!1,abstract:!1,properties:[],methods:[],abstractMethods:[],extends:[],implements:[n],x:0,y:0,parent:n.project},a=Il(i,n.project);if(a.length>0)return{errors:a,implemented:null,entitiesChanges:{new:[],updated:[],deleted:[]}};const o=tD(n),l=b(i,n.project);l.setParent(n.project),l.initChildren();const d=n.properties.map(f=>{const v=O.UUID.uuid(),R=f.clone(l,v);return R.abstract=!1,R.implements=f,R.setParent(l),l.addProperty(R),R}),h=n.abstractMethods.map(f=>{const v=O.UUID.uuid(),R=f.implementAsFunctionDeclaration(v),I={id:v+"-parent-ref-id",type:r.GenericReference,entityId:t,version:"1",entityType:r.DefinitionEntity},D={...R,implements:f,parent:I},A=b(D,n.project);return l.addMethod(A),A.setParent(l),A.initChildren(),A.implements=f,A});i.properties=d,i.methods=h;const y=rD(l);return{implemented:l,errors:[],entitiesChanges:{new:[l,...o.newEntities,...y.newEntities],updated:[l],deleted:[]}}}function Ap(n,s){return s.entities.find(i=>{const a=i.properties,o=a.map(f=>f.name),l=n.every(f=>o.includes(f)),d=o.filter(f=>!n.includes(f)),h=a.every(f=>!d.includes(f.name)||!f.required);return l&&h})||null}function nD(n,s,e=yt.OrDataTypeGroup){const t=[],i=[],a=[],l={id:O.UUID.uuid(),version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:r.DataType,entity:n.toJSON(),isList:!1,asType:null,andChildrenGroup:null,orChildrenGroup:null,like:!0,inferred:!1,parentRelationType:e,parent:s.toReference()},d=b(l,n.project);return i.push(d),d.setParent(s),d.initChildren(),d.setEntity(n),d.addSelfToProject(),{updated:m(t),added:m(i),removed:m(a),self:d}}function Dp(n,s,e,t){const i=[],a=[],o=[];switch(typeof n){case"string":let l=!1;const d=new Date(n);if(d instanceof Date&&!isNaN(d.valueOf())&&(l=!0),l){const h=s.project.getBuiltIn(N[r.PrimitiveEntity][C.Date].id);s.setEntity(h);break}else{const h=s.project.getBuiltIn(N[r.PrimitiveEntity][C.String].id);s.setEntity(h);break}case"number":s.setEntity(s.project.getBuiltIn(N[r.PrimitiveEntity][C.Number].id));break;case"boolean":s.setEntity(s.project.getBuiltIn(N[r.PrimitiveEntity][C.Boolean].id));break;case"object":if(n===null){s.setEntity(s.project.getBuiltIn(N[r.PrimitiveEntity][C.Null].id));break}else if(Array.isArray(n))if(s.sync({isList:!0}),n.length>0){const h=n.slice(0,5).filter(f=>f!==void 0);if(h.every(f=>typeof f==typeof h[0])&&(typeof h[0]!="object"||h[0]===null))switch(typeof h[0]){case"string":s.setEntity(s.project.getBuiltIn(N[r.PrimitiveEntity][C.String].id));break;case"number":s.setEntity(s.project.getBuiltIn(N[r.PrimitiveEntity][C.Number].id));break;case"boolean":s.setEntity(s.project.getBuiltIn(N[r.PrimitiveEntity][C.Boolean].id));break;case"object":s.setEntity(s.project.getBuiltIn(N[r.PrimitiveEntity][C.Null].id));break}else{const f=[];let v=!1;h.forEach(I=>{if(Array.isArray(I)&&(v=!0),typeof I=="object"&&!Array.isArray(I)&&I!==null){const D=Ml(I,s.project,{...e,id:O.UUID.uuid()},t);D.hasCreated&&f.push(D.changeSet.self),i.push(...D.changeSet.updated),a.push(...D.changeSet.added),o.push(...D.changeSet.removed)}});const R=m(f);if(!R.length&&!v){h.forEach(I=>{const D={id:O.UUID.uuid(),version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:r.DataType,entity:null,isList:!1,asType:null,andChildrenGroup:null,orChildrenGroup:null,like:!0,inferred:!1,parentRelationType:yt.OrDataTypeGroup,parent:s.toReference()},A=b(D,s.project);switch(A.setParent(s),A.initChildren(),A.addSelfToProject(),typeof I){case"string":A.setEntity(A.project.getBuiltIn(N[r.PrimitiveEntity][C.String].id));break;case"number":A.setEntity(A.project.getBuiltIn(N[r.PrimitiveEntity][C.Number].id));break;case"boolean":A.setEntity(A.project.getBuiltIn(N[r.PrimitiveEntity][C.Boolean].id));break;case"object":A.setEntity(A.project.getBuiltIn(N[r.PrimitiveEntity][C.Null].id));break}});break}else R.length===1&&!v?s.setEntity(R[0]):h.forEach(I=>{if(typeof I=="object"&&!Array.isArray(I)&&I!==null){const D=Ap(Object.keys(I),s.project);if(D){const A=nD(D||R[0],s,yt.OrDataTypeGroup);i.push(...A.updated),a.push(...A.added),o.push(...A.removed)}}else{const D={id:O.UUID.uuid(),version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:r.DataType,entity:null,isList:Array.isArray(I),asType:null,andChildrenGroup:null,orChildrenGroup:null,like:!0,inferred:!1,parentRelationType:yt.OrDataTypeGroup,parent:s.toReference()},A=b(D,s.project);A.setParent(s),A.initChildren(),A.addSelfToProject();const M=Dp(I,A,{...e,id:O.UUID.uuid()},t);i.push(...M.updated),a.push(...M.added),o.push(...M.removed)}})}}else{const h=Ml(n[0],s.project,{...e},t);s.setEntity(h.changeSet.self),i.push(...h.changeSet.updated),a.push(...h.changeSet.added),o.push(...h.changeSet.removed);break}else{const h=Ml(n,s.project,{...e},t);s.setEntity(h.changeSet.self),i.push(...h.changeSet.updated),a.push(...h.changeSet.added),o.push(...h.changeSet.removed);break}}return{updated:m(i),added:m(a),removed:m(o),self:s}}function Ml(n,s,e,t){const i=[],a=[],o=[],l=Object.keys(n),d=Ap(l,s);if(d)return{hasCreated:!1,changeSet:{updated:[],added:[],removed:[],self:d}};const h=t?e.name+" of "+t.name:e.name,f={id:e.id||O.UUID.uuid(),version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:h,type:r.DefinitionEntity,description:e.description||null,static:e.static||!1,abstract:e.abstract||!1,properties:[],methods:[],abstractMethods:[],extends:[],implements:[],x:0,y:0,parent:s.toReference()},v=b(f,s);return v.setParent(s),v.initChildren(),v.addSelfToProject(),a.push(v),l.forEach((R,I)=>{const A={id:O.UUID.uuid(),version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:R,type:r.Property,description:null,static:!1,abstract:!1,defaultValue:null,constant:!1,dataType:null,implements:null,index:I,hidden:!1,private:!1,required:!0,parent:v.toReference()},M=b(A,s);M.setParent(v),M.initChildren(),M.addSelfToProject(),a.push(M);const H=n[R],_={id:O.UUID.uuid(),version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:r.DataType,entity:null,isList:!1,asType:null,andChildrenGroup:null,orChildrenGroup:null,like:!0,inferred:!1,parent:M.toReference()},Q=b(_,s);Q.setParent(M),Q.initChildren(),Q.addSelfToProject(),a.push(Q);const se=Dp(H,Q,{...e,name:R,id:O.UUID.uuid()},t||v);i.push(...se.updated),a.push(...se.added),o.push(...se.removed)}),{hasCreated:!0,changeSet:{updated:m(i),added:m(a),removed:m(o),self:v}}}function _l(n,s){const e=Ri(n);if(e.length===0)return{list:[],last:null};let t=null;return{list:e.flatMap(a=>{if(a===s)return t=a,[a];const o=_l(a,s);return o.last&&(t=o.last),[a,...o.list]}),last:t}}function iD(n,s,e=new Set){const t=On(n),i=On(s),a=t.filter(d=>!i.includes(d)),o=t.filter(d=>i.includes(d)),l=a.reduce((d,h)=>e.has(h.id)?d:(e.add(h.id),m([...d,...iD(h,s,e)])),[]);return m([...o,...l])}function bs(n,s){const e=_l(n,s);return e.last===s&&e.list.length>0&&e.list[0]!==s}function nq(n,s){return!!_l(n,s).last}function iq(n){if(Xe.includes(n.type))return n;if([...Ir,r.VariableDeclaration].includes(n.type)){const s=n.parent;return Xe.includes(s.type)?s:null}return null}function Pp(n,s){if(!n||!s)throw new Error("Both entities must be defined to find a common ancestor");if(n===s)return n;const e=n.parent;if(e){if(e===s)return s;if(e.type===r.Project)return null}else return null;const t=s.parent;if(t){if(t===n)return n;if(t.type===r.Project)return null}else return null;return Pp(e,t)}function It(n){if(ws.includes(n.type)){if(n.type===r.FunctionDeclaration){const s=n.parent;if(s.type===r.DefinitionEntity)return s;if(s.type===r.Loop)return s}return n}else{const s=n.parent;return s?It(s):null}}function Nl(n,s){const e=Is(n,s);if(!e)return null;if(ws.includes(e.type)){if(e.type===r.FunctionDeclaration){const t=Is(e.parent,s);if(t){if(t.type===r.DefinitionEntity)return t;if(t.type===r.Loop)return t}}return e}else{const t=e.parent?Is(e.parent,s):null;return t?Nl(t,s):null}}function aD(n){if(!n)return null;if(Ir.includes(n.type))return n;const s=n.parent;return s?aD(s):null}function sD(n){if(!n)return null;if(Ke.includes(n.type))return n;const s=n.parent;return s?sD(s):null}function oD(n){if(!n)return null;if(Ar.includes(n.type))return n;const s=n.parent;return s?oD(s):null}function aq(n){return n.type===r.VariableDeclaration?[n]:Ke.includes(n.type)?[...n.inputs,...n.outputs||[]]:Qe.includes(n.type)?n.outputs:Pi.includes(n.type)||n.type===r.FunctionDeclaration?n.inputs:[]}function sq(n){const s=On(n),e=[],t=[];kp.includes(n.type)&&e.push(...Sp(n));const i=s.filter(a=>{const o=e.includes(a);return o?!1:Ir.includes(a.type)&&!o?(t.push(a),!1):!0});return e.sort((a,o)=>bs(o,a)?-1:0),t.sort((a,o)=>bs(o,a)?-1:0),[...e,...t,...i]}function lD(n){return[...n].sort((s,e)=>bs(e,s)?-1:0)}function oq(n){const s=lD(n),e=[];return s.forEach(t=>{const i=e[e.length-1];if(i){const a=i[i.length-1];bs(t,a)?e.push([t]):i.push(t)}else e.push([t])}),e}function Zt(n){const s=n.map(e=>It(e));return m(s)}function Sp(n){return Ke.includes(n.type)?[...Zt(n.successCalls),...Zt(n.errorCalls)]:Xe.includes(n.type)?Zt(n.calls):[]}function lq(n,s){return Sp(n).includes(s)}function Op(n){return n.writesValues||[]}function dq(n,s){return Op(n).includes(s)}function dD(n){var s;return Je.includes((s=n==null?void 0:n.readsValue)==null?void 0:s.type)?n.readsValue:null}function uq(n){return n.writesValues}function uD(n=[]){return n.map(dD).filter(s=>!!s)}function Ll(n=[]){return n.map(s=>s.writesValues).flat().filter(s=>Je.includes(s.type))}function cD(n=[]){return n.map(s=>s.readsValue).filter(s=>!!s&&Je.includes(s.type))}function pD(n){return Je.includes(n.type)?n:null}function hD(n){return n.writesValues.map(pD).filter(s=>!!s)}function yD(n=[]){return n.reduce((s,e)=>e.type===r.OutputMap?[...s,...hD(e)]:s,[])}function ze(n){return Ke.includes(n.type)?[...Ur(Zt(n.successCalls)),...Ur(Zt(n.errorCalls))]:Xe.includes(n.type)?Ur(Zt(n.calls)):[]}function cq(n){return Ke.includes(n.type)?[...Ur(Zt(n.successCalls)),...Ur(Zt(n.errorCalls))]:Xe.includes(n.type)?Ur(Zt(n.calls)):[]}function fD(n,s=new Set){return n.writesValues.filter(t=>Je.includes(t.type)&&!s.has(t.id)).reduce((t,i)=>s.has(i.id)?t:[...t,...Ue(i,s)],[])}function mD(n,s=new Set){var t;return(((t=n.readsValue)==null?void 0:t.writesValues)||[]).filter(i=>Je.includes(i.type)&&!s.has(i.id)).reduce((i,a)=>s.has(a.id)?i:[...i,...Ue(a,s)],[])}function Ue(n,s=new Set){if(s.has(n.id))return[];if(n.type===r.ReturnStatement)return cD(n.outputs).reduce((t,i)=>[...t,...Ue(i,s)],[]);if(n.type===r.FunctionCall||n.type===r.Operation||n.type===r.Condition)return[...ze(n).reduce((a,o)=>{const l=It(o);return[...a,...Ue(l||o,s)]},[]),...uD(n.inputs),...yD(n.outputs)].reduce((a,o)=>[...a,...Ue(o,s)],[]);if(Pi.includes(n.type)){const e=Ll(n.inputs),i=ze(n).reduce((a,o)=>{const l=It(o);return[...a,...Ue(l||o,s)]},[]);return e.push(...i),e.reduce((a,o)=>[...a,...Ue(o,s)],[])}if(n.type===r.FunctionDeclaration){const e=[...Ll(n.inputs)],i=ze(n).reduce((a,o)=>{const l=It(o);return[...a,...Ue(l||o,s)]},[]);return e.push(...i),e.reduce((a,o)=>[...a,...Ue(o)],[])}if(Je.includes(n.type)){s.add(n.id);const t=ze(n).reduce((i,a)=>{const o=It(a);return[...i,...Ue(o||a,s)]},[]);return[n,...t,...mD(n,s),...fD(n,s)]}return[]}function Kt(n,s=new Set){return s.has(n.id)?[]:(s.add(n.id),[...On(n).reduce((i,a)=>[...i,a,...Kt(a,s)],[])])}function Ur(n){return n.reduce((s,e)=>e.type===r.ReturnStatement||e.type===r.ContinueStatement||e.type===r.BreakStatement?[...s,e]:[...s,e,...ze(e)],[])}function TD(n){const s=n.entities||[],e=[...s,...n.functions||[],...n.events||[],...n.projects||[]],t=s.reduce((d,h)=>[...d,...h.properties],[]),i=s.reduce((d,h)=>[...d,...h.methods],[]),a=i.reduce((d,h)=>[...d,...Ll(h.inputs),...Ur(Zt(h.calls)),...h.returnStatements],[]),o=n.functions.reduce((d,h)=>[...d,...Ur(Zt(h.calls)),...h.returnStatements],[]),l=n.events.reduce((d,h)=>[...d,...Ur(Zt(h.calls)),...h.returnStatements],[]);return[...e,...t,...i,...a,...o,...l]}function vD(n,s){return s.filter(t=>{if(!t)return!1;switch(t.type){case r.FunctionCall:return t.inputs.find(i=>i.id===n.id)!==void 0||t.outputs.find(i=>i.id===n.id)!==void 0;case r.Condition:return t.successCalls.find(i=>i.id===n.id)!==void 0||t.errorCalls.find(i=>i.id===n.id)!==void 0||t.inputs.find(i=>i.id===n.id)!==void 0;case r.Operation:return t.outputs.find(i=>i.id===n.id)!==void 0;case r.VariableDeclaration:return Ke.includes(n.type)?JD(n).find(a=>{var o;return((o=a.readsValue)==null?void 0:o.id)===t.id})!==void 0:!1;case r.DefinitionEntity:return t.properties.find(i=>i.id===n.id)!==void 0||t.methods.find(i=>i.id===n.id)!==void 0;case r.FunctionDeclaration:return t.inputs.find(i=>i.id===n.id)!==void 0||(t.returnStatements.map(i=>i.outputs).flat()||[]).find(i=>i.id===n.id)!==void 0;default:return!1}})}function pq(n){const s=TD(n.project);return vD(n,s)}function Is(n,s){return n?typeof n=="string"?s[n]:n.type===r.GenericReference?s[n.entityId]:s[n.id]?s[n.id]:null:null}function Gl(n,s={},e={ignoreBuiltInBaseEntities:!1,allBuiltInEntityIds:[]}){if(e.ignoreBuiltInBaseEntities&&(Dr.includes(n.type)||(e.allBuiltInEntityIds||[]).includes(n.id)))return{upstream:{},downstream:{}};const t=n,i=n,a=n,o=n,l=n,d=n,h=n,y=n,f=n,v=n,R=n,I=n,D=n,A=[...D.readsValue?[D.readsValue]:[],...D.declaration?[D.declaration]:[],...(I.calledByEntry||[]).flatMap(_=>_),...(I.calledBySuccess||[]).flatMap(_=>_),...(I.calledByError||[]).flatMap(_=>_),...(a.extends||[]).flatMap(_=>_),...v.parent?[v.parent]:[]];Array.isArray(a.implements)?A.push(...a.implements.flatMap(_=>_)):f.implements&&A.push(f.implements),Array.isArray(l.valueAsType)?A.push(...l.valueAsType.flatMap(_=>_)):l.valueAsType&&A.push(l.valueAsType);const M=[...(t.inputs||[]).flatMap(_=>_),...(R.inputsDeclarations||[]).flatMap(_=>_),...(t.outputs||[]).flatMap(_=>_),...(R.outputsDeclarations||[]).flatMap(_=>_),...(D.internalCalls||[]).flatMap(_=>_),...D.writesValues||[],...I.dataType?[I.dataType]:[],...d.body?[d.body]:[],...I.defaultValue?[I.defaultValue]:[],...(I.successCalls||[]).flatMap(_=>_),...(I.errorCalls||[]).flatMap(_=>_),...(a.properties||[]).flatMap(_=>_),...(a.methods||[]).flatMap(_=>_),...(a.abstractMethods||[]).flatMap(_=>_),...h.error?[h.error]:[],...h.process?[h.process]:[],...v.throws?[v.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(_=>_),...(o.calls||[]).flatMap(_=>_)];n.type===r.DataType&&(i.entity&&s[P(i.entity)]&&s[P(i.entity)].parent&&P(s[P(i.entity)].parent)===n.id?M.push(i.entity):i.entity&&A.push(i.entity));const H={},W={};return A.forEach(_=>{const Q=P(_);if(Q&&e.ignoreBuiltInBaseEntities&&(Dr.includes(_.type)||(e.allBuiltInEntityIds||[]).includes(Q)))return;const se=_.version;Q&&(H[Q]=se)}),M.forEach(_=>{const Q=P(_);if(Q&&e.ignoreBuiltInBaseEntities&&(Dr.includes(_.type)||(e.allBuiltInEntityIds||[]).includes(Q)))return;const se=_.version;Q&&(W[Q]=se)}),{upstream:H,downstream:W}}function hq(n,s){const e=[];if(Ir.includes(n.type)){or(n).forEach(a=>{const o=Nl(a,s);o&&e.push(o)});const i=[...n.inputs||[],...n.outputs||[]].map(a=>{const o=Is(a,s);return o?YD(o,s):null}).filter(a=>a!==null);e.push(...m(i))}if(Je.includes(n.type)){const t=Fl(n);t&&e.push(t)}return m(e)}function Ri(n){const s=[];if(Ir.includes(n.type)){n.calledBy.forEach(i=>{const a=It(i);a&&s.push(a)});const t=[...n.inputs||[],...n.outputs||[]].map(i=>Fl(i)).filter(i=>i!==null);s.push(...m(t))}if(Je.includes(n.type)){const e=Fl(n);e&&s.push(e)}return m(s)}function or(n){return[...n.calledByEntry||[],...n.calledByError||[],...n.calledBySuccess||[]].filter(s=>s.type!==r.GenericReference)}function ED(n,s=new Set,e={ignoreBuiltInBaseEntities:!1}){if(s.has(n.id))return[];if(s.add(n.id),n.type!==r.ActionDescriptor)throw new Error("Entity must be an action descriptor to be flattened");return[n,...n.inputs.flatMap(t=>S(t,s,e)),...n.outputs.flatMap(t=>S(t,s,e)),...n.error?S(n.error,s,e):[],...n.parent?S(n.parent,s,e):[]]}function RD(n,s=new Set,e={ignoreBuiltInBaseEntities:!1}){if(s.has(n.id))return[];if(s.add(n.id),n.type!==r.ArgumentDeclaration)throw new Error("Entity must be an argument declaration to be flattened");return[n,...n.defaultValue?S(n.defaultValue,s):[],...n.writesValues.flatMap(t=>S(t,s,e)),...n.dataType?S(n.dataType,s,e):[],...n.parent?S(n.parent,s,e):[]]}function gD(n,s=new Set,e={ignoreBuiltInBaseEntities:!1}){if(s.has(n.id))return[];if(s.add(n.id),n.type!==r.BreakStatement)throw new Error("Entity must be a break statement to be flattened");return[n,...n.outputs.flatMap(t=>S(t,s,e)),...n.throws?S(n.throws,s,e):[],...(or(n)||[]).flatMap(t=>S(t,s,e)),...n.parent?S(n.parent,s,e):[]]}function bD(n,s=new Set,e={ignoreBuiltInBaseEntities:!1}){if(s.has(n.id))return[];if(s.add(n.id),n.type!==r.BuiltInBaseEntity)throw new Error("Entity must be a built-in base entity to be flattened");return[n,...(n.properties||[]).flatMap(t=>S(t,s,e)),...(n.methods||[]).flatMap(t=>S(t,s,e)),...(n.abstractMethods||[]).flatMap(t=>S(t,s,e)),...(n.extends||[]).flatMap(t=>S(t,s,e))]}function ID(n,s=new Set,e={ignoreBuiltInBaseEntities:!1}){if(s.has(n.id))return[];if(s.add(n.id),n.type!==r.Condition)throw new Error("Entity must be a condition to be flattened");return[n,...(n.inputs||[]).flatMap(t=>S(t,s,e)),...(n.successCalls||[]).flatMap(t=>S(t,s,e)),...(n.errorCalls||[]).flatMap(t=>S(t,s,e)),...(or(n)||[]).flatMap(t=>S(t,s,e)),...n.parent?S(n.parent,s,e):[]]}function AD(n,s=new Set,e={ignoreBuiltInBaseEntities:!1}){if(s.has(n.id))return[];if(s.add(n.id),n.type!==r.ContinueStatement)throw new Error("Entity must be a continue statement to be flattened");return[n,...n.outputs.flatMap(t=>S(t,s,e)),...n.throws?S(n.throws,s,e):[],...(or(n)||[]).flatMap(t=>S(t,s,e)),...n.parent?S(n.parent,s,e):[]]}function DD(n,s=new Set,e={ignoreBuiltInBaseEntities:!1}){if(s.has(n.id))return[];if(s.add(n.id),n.type!==r.DefinitionEntity)throw new Error("Entity must be a definition entity to be flattened");return[n,...(n.extends||[]).flatMap(t=>S(t,s,e)),...(n.implements||[]).flatMap(t=>S(t,s,e)),...(n.properties||[]).flatMap(t=>S(t,s,e)),...(n.methods||[]).flatMap(t=>S(t,s,e)),...(n.abstractMethods||[]).flatMap(t=>S(t,s,e)),...n.parent?S(n.parent,s,e):[]]}function PD(n,s=new Set,e={ignoreBuiltInBaseEntities:!1}){if(s.has(n.id))return[];if(s.add(n.id),n.type!==r.DataType)throw new Error("Entity must be a data type to be flattened");return[n,...(n.andChildrenGroup||[]).flatMap(t=>S(t,s,e)),...(n.orChildrenGroup||[]).flatMap(t=>S(t,s,e)),...n.entity?S(n.entity,s,e):[],...n.parent?S(n.parent,s,e):[]]}function SD(n,s=new Set,e={ignoreBuiltInBaseEntities:!1}){if(s.has(n.id))return[];if(s.add(n.id),n.type!==r.FunctionCall)throw new Error("Entity must be a function call to be flattened");return[n,...(n.inputs||[]).flatMap(t=>S(t,s,e)),...(n.outputs||[]).flatMap(t=>S(t,s,e)),...n.error?S(n.error,s,e):[],...n.process?S(n.process,s,e):[],...(or(n)||[]).flatMap(t=>S(t,s,e)),...(n.successCalls||[]).flatMap(t=>S(t,s,e)),...(n.errorCalls||[]).flatMap(t=>S(t,s,e)),...n.parent?S(n.parent,s,e):[]]}function OD(n,s=new Set,e={ignoreBuiltInBaseEntities:!1}){if(s.has(n.id))return[];if(s.add(n.id),n.type!==r.FunctionDeclaration)throw new Error("Entity must be a function declaration to be flattened");return[n,...(n.inputs||[]).flatMap(t=>S(t,s,e)),...(n.returnStatements||[]).flatMap(t=>S(t,s,e)),...(n.calls||[]).flatMap(t=>S(t,s,e)),...n.implements?S(n.implements,s,e):[],...n.parent?S(n.parent,s,e):[]]}function VD(n,s=new Set,e={ignoreBuiltInBaseEntities:!1}){if(s.has(n.id))return[];if(s.add(n.id),n.type!==r.GlobalEvent)throw new Error("Entity must be a global event to be flattened");return[n,...(n.inputs||[]).flatMap(t=>S(t,s,e)),...(n.calls||[]).flatMap(t=>S(t,s,e)),...(n.returnStatements||[]).flatMap(t=>S(t,s,e)),...n.implements?S(n.implements,s,e):[],...n.parent?S(n.parent,s,e):[]]}function CD(n,s=new Set,e={ignoreBuiltInBaseEntities:!1}){if(s.has(n.id))return[];if(s.add(n.id),n.type!==r.InputMap)throw new Error("Entity must be an input map to be flattened");return[n,...n.readsValue?S(n.readsValue,s,e):[],...n.declaration?S(n.declaration,s,e):[],...n.defaultValue?S(n.defaultValue,s,e):[],...n.parent?S(n.parent,s,e):[]]}function wD(n,s=new Set,e={ignoreBuiltInBaseEntities:!1}){if(s.has(n.id))return[];if(s.add(n.id),n.type!==r.InstalledProject)throw new Error("Entity must be an installed project to be flattened");return[n,...(n.functions||[]).flatMap(t=>S(t,s,e)),...(n.events||[]).flatMap(t=>S(t,s,e)),...n.parent?S(n.parent,s,e):[]]}function BD(n,s=new Set,e={ignoreBuiltInBaseEntities:!1}){if(s.has(n.id))return[];if(s.add(n.id),n.type!==r.InternalCall)throw new Error("Entity must be an internal call to be flattened");return[n,...(n.successCalls||[]).flatMap(t=>S(t,s,e)),...(n.errorCalls||[]).flatMap(t=>S(t,s,e)),...(n.inputs||[]).flatMap(t=>S(t,s,e)),...(n.outputs||[]).flatMap(t=>S(t,s,e)),...(or(n)||[]).flatMap(t=>S(t,s,e)),...n.error?S(n.error,s,e):[],...n.process?S(n.process,s,e):[],...n.parent?S(n.parent,s,e):[]]}function MD(n,s=new Set,e={ignoreBuiltInBaseEntities:!1}){if(s.has(n.id))return[];if(s.add(n.id),n.type!==r.LiteralValue)throw new Error("Entity must be a literal value to be flattened");return[n,...n.valueAsType?Array.isArray(n.valueAsType)?n.valueAsType.flatMap(t=>S(t,s,e)):S(n.valueAsType,s,e):[],...n.parent?S(n.parent,s,e):[]]}function _D(n,s=new Set,e={ignoreBuiltInBaseEntities:!1}){if(s.has(n.id))return[];if(s.add(n.id),n.type!==r.Loop)throw new Error("Entity must be a loop to be flattened");return[n,...(n.inputs||[]).flatMap(t=>S(t,s,e)),...(n.outputs||[]).flatMap(t=>S(t,s,e)),...(n.successCalls||[]).flatMap(t=>S(t,s,e)),...(n.errorCalls||[]).flatMap(t=>S(t,s,e)),...n.error?S(n.error,s,e):[],...n.process?S(n.process,s,e):[],...n.body?S(n.body,s,e):[],...(or(n)||[]).flatMap(t=>S(t,s,e)),...(n.breakStatements||[]).flatMap(t=>S(t,s,e)),...(n.continueStatements||[]).flatMap(t=>S(t,s,e)),...n.parent?S(n.parent,s,e):[]]}function ND(n,s=new Set,e={ignoreBuiltInBaseEntities:!1}){if(s.has(n.id))return[];if(s.add(n.id),n.type!==r.Operation)throw new Error("Entity must be an operation to be flattened");return[n,...(n.successCalls||[]).flatMap(t=>S(t,s,e)),...(n.errorCalls||[]).flatMap(t=>S(t,s,e)),...(n.inputs||[]).flatMap(t=>S(t,s,e)),...(n.outputs||[]).flatMap(t=>S(t,s,e)),...n.error?S(n.error,s,e):[],...n.process?S(n.process,s,e):[],...(or(n)||[]).flatMap(t=>S(t,s,e)),...n.parent?S(n.parent,s,e):[]]}function LD(n,s=new Set,e={ignoreBuiltInBaseEntities:!1}){if(s.has(n.id))return[];if(s.add(n.id),n.type!==r.OutputMap)throw new Error("Entity must be an output map to be flattened");return[n,...(n.writesValues||[]).flatMap(t=>S(t,s,e)),...n.declaration?S(n.declaration,s,e):[],...n.defaultValue?S(n.defaultValue,s,e):[],...n.parent?S(n.parent,s,e):[]]}function GD(n,s=new Set,e={ignoreBuiltInBaseEntities:!1}){if(s.has(n.id))return[];if(s.add(n.id),n.type!==r.PrimitiveEntity)throw new Error("Entity must be a primitive entity to be flattened");return[n,...(n.properties||[]).flatMap(t=>S(t,s,e)),...(n.methods||[]).flatMap(t=>S(t,s,e)),...(n.abstractMethods||[]).flatMap(t=>S(t,s,e))]}function $D(n,s=new Set,e={ignoreBuiltInBaseEntities:!1}){if(s.has(n.id))return[];if(s.add(n.id),n.type!==r.Project)throw new Error("Entity must be a project to be flattened");return[n,...(n.entities||[]).flatMap(t=>S(t,s,e)),...(n.functions||[]).flatMap(t=>S(t,s,e)),...(n.events||[]).flatMap(t=>S(t,s,e)),...(n.projects||[]).flatMap(t=>S(t,s,e)),...(n.variableDeclarations||[]).flatMap(t=>S(t,s,e)),...(n.variableInstances||[]).flatMap(t=>S(t,s,e)),...(n.operations||[]).flatMap(t=>S(t,s,e)),...(n.conditions||[]).flatMap(t=>S(t,s,e)),...(n.functionCalls||[]).flatMap(t=>S(t,s,e)),...(n.projects||[]).flatMap(t=>S(t,s,e)),...(n.loops||[]).flatMap(t=>S(t,s,e)),...(n.searches||[]).flatMap(t=>S(t,s,e))]}function FD(n,s=new Set,e={ignoreBuiltInBaseEntities:!1}){if(s.has(n.id))return[];if(s.add(n.id),n.type!==r.Property)throw new Error("Entity must be a property to be flattened");return[n,...n.defaultValue?S(n.defaultValue,s,e):[],...n.dataType?S(n.dataType,s,e):[],...n.parent?S(n.parent,s,e):[]]}function UD(n,s=new Set,e={ignoreBuiltInBaseEntities:!1}){if(s.has(n.id))return[];if(s.add(n.id),n.type!==r.ReturnDeclaration)throw new Error("Entity must be a return declaration to be flattened");return[n,...n.readsValue?S(n.readsValue,s,e):[],...n.defaultValue?S(n.defaultValue,s,e):[],...n.dataType?S(n.dataType,s,e):[],...n.parent?S(n.parent,s,e):[]]}function xD(n,s=new Set,e={ignoreBuiltInBaseEntities:!1}){if(s.has(n.id))return[];if(s.add(n.id),n.type!==r.ReturnStatement)throw new Error("Entity must be a return statement to be flattened");return[n,...(n.outputs||[]).flatMap(t=>S(t,s,e)),...n.throws?S(n.throws,s,e):[],...(or(n)||[]).flatMap(t=>S(t,s,e)),...n.parent?S(n.parent,s,e):[]]}function jD(n,s=new Set,e={ignoreBuiltInBaseEntities:!1}){if(s.has(n.id))return[];if(s.add(n.id),n.type!==r.Search)throw new Error("Entity must be a search to be flattened");return[n,...(n.successCalls||[]).flatMap(t=>S(t,s,e)),...(n.errorCalls||[]).flatMap(t=>S(t,s,e)),...(n.inputsDeclarations||[]).flatMap(t=>S(t,s,e)),...(n.inputs||[]).flatMap(t=>S(t,s,e)),...(n.outputsDeclarations||[]).flatMap(t=>S(t,s,e)),...(n.outputs||[]).flatMap(t=>S(t,s,e)),...n.error?S(n.error,s,e):[],...(or(n)||[]).flatMap(t=>S(t,s,e)),...n.parent?S(n.parent,s,e):[]]}function kD(n,s=new Set,e={ignoreBuiltInBaseEntities:!1}){if(s.has(n.id))return[];if(s.add(n.id),n.type!==r.ValueDescriptor)throw new Error("Entity must be a value descriptor to be flattened");return[n,...n.defaultValue?S(n.defaultValue,s,e):[],...n.dataType?S(n.dataType,s,e):[],...n.parent?S(n.parent,s,e):[]]}function ZD(n,s=new Set,e={ignoreBuiltInBaseEntities:!1}){if(s.has(n.id))return[];if(s.add(n.id),n.type!==r.VariableDeclaration)throw new Error("Entity must be a variable declaration to be flattened");return[n,...(n.successCalls||[]).flatMap(t=>S(t,s,e)),...(n.errorCalls||[]).flatMap(t=>S(t,s,e)),...(n.inputs||[]).flatMap(t=>S(t,s,e)),...(n.outputs||[]).flatMap(t=>S(t,s,e)),...(n.internalCalls||[]).flatMap(t=>S(t,s,e)),...(n.writesValues||[]).flatMap(t=>S(t,s,e)),...n.readsValue?S(n.readsValue,s,e):[],...n.defaultValue?S(n.defaultValue,s,e):[],...(or(n)||[]).flatMap(t=>S(t,s,e)),...n.dataType?S(n.dataType,s,e):[],...n.parent?S(n.parent,s,e):[]]}function qD(n,s=new Set,e={ignoreBuiltInBaseEntities:!1}){if(s.has(n.id))return[];if(s.add(n.id),n.type!==r.VariableInstance)throw new Error("Entity must be a variable instance to be flattened");return[n,...(n.successCalls||[]).flatMap(t=>S(t,s,e)),...(n.errorCalls||[]).flatMap(t=>S(t,s,e)),...(n.inputs||[]).flatMap(t=>S(t,s,e)),...(n.outputs||[]).flatMap(t=>S(t,s,e)),...(n.internalCalls||[]).flatMap(t=>S(t,s,e)),...(n.writesValues||[]).flatMap(t=>S(t,s,e)),...n.readsValue?S(n.readsValue,s,e):[],...n.defaultValue?S(n.defaultValue,s,e):[],...(or(n)||[]).flatMap(t=>S(t,s,e)),...n.declaration?S(n.declaration,s,e):[],...n.parent?S(n.parent,s,e):[]]}function $l(){const n=new Set;return xE.flatMap(e=>S(e,n)).map(e=>e.id)}function S(n,s=new Set,e={ignoreBuiltInBaseEntities:!1}){if(!n)throw new Error("Entity must be defined to be flattened");if(n.type===r.GenericReference)return[];if(e.ignoreBuiltInBaseEntities&&(Dr.includes(n.type)||$l().includes(n.id)))return[];if(s.has(n.id))return[];switch(n.type){case r.FunctionCall:return SD(n,s,e);case r.Operation:return ND(n,s,e);case r.Condition:return ID(n,s,e);case r.Loop:return _D(n,s,e);case r.Search:return jD(n,s,e);case r.GlobalEvent:return VD(n,s,e);case r.ReturnStatement:return xD(n,s,e);case r.ContinueStatement:return AD(n,s,e);case r.BreakStatement:return gD(n,s,e);case r.VariableDeclaration:return ZD(n,s,e);case r.DefinitionEntity:return DD(n,s,e);case r.FunctionDeclaration:return OD(n,s,e);case r.Project:return $D(n,s,e);case r.ActionDescriptor:return ED(n,s,e);case r.ArgumentDeclaration:return RD(n,s,e);case r.ReturnDeclaration:return UD(n,s,e);case r.ValueDescriptor:return kD(n,s,e);case r.InputMap:return CD(n,s,e);case r.OutputMap:return LD(n,s,e);case r.DataType:return PD(n,s,e);case r.InstalledProject:return wD(n,s,e);case r.InternalCall:return BD(n,s,e);case r.LiteralValue:return MD(n,s,e);case r.Property:return FD(n,s,e);case r.VariableInstance:return qD(n,s,e);case r.BuiltInBaseEntity:return e.ignoreBuiltInBaseEntities?[]:bD(n,s,e);case r.PrimitiveEntity:return e.ignoreBuiltInBaseEntities?[]:GD(n,s,e)}return[]}function Vp(n){return n.type===r.FunctionCall||n.type===r.InternalCall||[r.Operation,r.Condition,r.Loop].includes(n.type)?n.declaration.inputs:n.type===r.FunctionDeclaration||Pi.includes(n.type)?n.inputs:n.type===r.Search?n.inputsDeclarations:[]}function yq(n,s){return s.type===r.Condition?s.inputs.find(e=>e.declaration.id===n.id):s.type===r.FunctionCall||s.type===r.Operation?s.inputs.find(e=>e.declaration.id===n.id):null}function JD(n){return Ke.includes(n.type)?n.inputs:[]}function WD(n){var s;return n.type===r.FunctionCall?((s=n.declaration.returnStatements[0])==null?void 0:s.outputs)||[]:[r.Operation,r.Condition,r.Loop].includes(n.type)?n.declaration.outputs:n.type===r.Search?n.outputsDeclarations:Qe.includes(n.type)?n.outputs:[]}function fq(n,s){return s.type===r.Condition?null:s.type===r.FunctionCall||s.type===r.Operation?s.outputs.find(e=>e.declaration.id===n.id):null}function mq(n){return n.type===r.Condition?[]:Ke.includes(n.type)?n.outputs:[]}function Fl(n){const s=n.readsValue;return s?It(s):null}function YD(n,s){const e=n.readsValue;return e?Nl(e,s):null}function HD(n){const s=n.internalCalls||[];return m(Zt(m(s.flatMap(e=>[...e.successCalls,...e.errorCalls]))))}function ma(n){const s=Op(n),e=[];return s.forEach(t=>{if(Je.includes(t.type))e.push(t);else if(un.includes(t.type)){const i=t.parent;e.push(i)}}),e}function m(n){const s=new Set;return n.filter(e=>!e||s.has(e.id)?!1:(s.add(e.id),!0))}function On(n,s=!1){const e=[];if(n.type===r.Project&&e.push(...(n==null?void 0:n.entities)||[],...(n==null?void 0:n.functions)||[],...(n==null?void 0:n.variableDeclarations)||[],...(n==null?void 0:n.variableInstances)||[],...(n==null?void 0:n.searches)||[],...(n==null?void 0:n.loops)||[],...(n==null?void 0:n.operations)||[],...(n==null?void 0:n.conditions)||[],...(n==null?void 0:n.functionCalls)||[],...(n==null?void 0:n.events)||[],...(n==null?void 0:n.projects)||[]),lt.includes(n.type)&&e.push(...(n==null?void 0:n.detachedChildren)||[]),n.type===r.DefinitionEntity){const t=[...n.suggestedMethods,...n.methods].flatMap(i=>i.collapsed&&s?[]:On(i));e.push(...t)}if(n.type===r.Condition){const t=n.successCalls.map(a=>It(a)),i=n.errorCalls.map(a=>It(a));e.push(...t,...i)}if(Pi.includes(n.type)){if(n.collapsed&&s)return[];const t=n.inputs.map(a=>ma(a)).flat(),i=n.calls.map(a=>It(a));e.push(...m(t),...i)}if(Ke.includes(n.type)&&n.type!==r.Condition&&n.type!==r.Loop){const t=n==null?void 0:n.outputs.map(o=>ma(o)).flat(),i=n.successCalls.map(o=>It(o)),a=n.errorCalls.map(o=>It(o));e.push(...m(t),...i,...a)}if(Je.includes(n.type)){const t=ma(n),i=HD(n);e.push(...t,...i)}if(n.type===r.Loop){const t=n.outputs.map(o=>ma(o)).flat();if(n.body){const o=On(n.body,s);e.push(...o)}const i=n.errorCalls.map(o=>It(o)),a=n.successCalls.map(o=>It(o));e.push(...m(t),...a,...i)}if(n.type===r.FunctionDeclaration){if(n.collapsed&&s)return[];const t=n.inputs.map(a=>ma(a)).flat(),i=n.calls.map(a=>It(a));e.push(...m(t),...i)}return m(e)}function zD(n,s=!1){const e=On(n,s),t=[...e,...e.reduce((i,a)=>[...i,...zD(a,s)],[])];return m(t)}function KD(n){const s=Ri(n),e=[...s,...s.reduce((t,i)=>[...t,...KD(i)],[])];return m(e)}function Ul(n){return n.implements.reduce((s,e)=>e.type===r.DefinitionEntity?[...s,r.DefinitionEntity,...Ul(e),...xl(e)]:[...s,e.name],[])}function xl(n){return n.extends.reduce((s,e)=>e.type===r.DefinitionEntity?[...s,r.DefinitionEntity,...xl(e),...Ul(e)]:[...s,e.name],[])}function Cp(n){return n.extends.reduce((s,e)=>e.type===r.DefinitionEntity?[...s,e,...Cp(e),...wp(e)]:[...s,e],[])}function wp(n){return n.implements.reduce((s,e)=>e.type===r.DefinitionEntity?[...s,e,...wp(e),...Cp(e)]:[...s,e],[])}function Bp(n){return[...xl(n),...Ul(n)].filter((e,t,i)=>i.indexOf(e)===t)}function XD(n){return n.implements.length===0&&n.extends.length===0?null:n.implements.find(t=>t.type===r.BuiltInBaseEntity&&t.name===k.PERSISTED_ENTITY)?n:[...n.implements,...n.extends].reduce((t,i)=>{if(i.type===r.DefinitionEntity){const a=XD(i);if(a)return a}return t},null)}function Tq(n){const s=n.extends.find(e=>e.type===r.BuiltInBaseEntity);return s&&s.type===r.BuiltInBaseEntity?s:null}function vq(n){const s=n.implements.find(e=>e.type===r.BuiltInBaseEntity);return s&&s.type===r.BuiltInBaseEntity?s:null}function Mp(n){const s=n.extends.find(e=>e.type===r.DefinitionEntity);return s&&s.type===r.DefinitionEntity?s:null}function Vn(n){const s=[...n.implements,...n.extends].reduce((e,t)=>t.type===r.BuiltInBaseEntity?[...e,t]:t.type===r.DefinitionEntity?[...e,...Vn(t)]:e,[]);return m(s)}function _p(n){return n.type===r.PrimitiveEntity?!0:n.type===r.BuiltInBaseEntity?n.interactive:!Vn(n).find(t=>!t.interactive)}function Eq(n){return n.parent===n.project&&n.project.variableDeclarations.includes(n)}function Np(n){return n.parent!==n.project?!1:r.VariableDeclaration===n.type?n.project.variableDeclarations.includes(n):r.VariableInstance===n.type?n.project.variableInstances.includes(n):r.FunctionCall===n.type?n.project.functionCalls.includes(n):r.Condition===n.type?n.project.conditions.includes(n):r.Operation===n.type?n.project.operations.includes(n):r.Loop===n.type?n.project.loops.includes(n):r.Search===n.type?n.project.searches.includes(n):!1}function QD(n){if([...Xe,r.DefinitionEntity,r.InstalledProject,r.Project].includes(n.type)||Np(n))return!1;const s=Ri(n);return s.length===0?!0:s.some(e=>QD(e))}function Lp(n){return[...Xe,r.DefinitionEntity,r.InstalledProject,r.Project].includes(n.type)||Np(n)?!1:Ri(n).length===0}function eP(n,s=0){if(Lp(n)){const e=Ri(n);return e.length===0?n:e.map(i=>eP(i,s+1)).reduce((i,a)=>i?a&&a.x<i.x?a:i:a,null)}return null}function tP(n){const s=[];if(Lp(n))s.push(n);else return[];return Ri(n).forEach(t=>{s.push(...tP(t))}),s}function rP(n){return n.type===r.FunctionDeclaration&&n.parent!==n.project&&!![r.DefinitionEntity,r.Loop,r.InstalledProject].includes(n.parent.type)}function Rq(n,s){const e=new Map;return n.forEach(t=>{e.set(t.id,t)}),s.forEach(t=>{e.set(t.id,t)}),Array.from(e.values())}function jl(n){switch(n){case r.DefinitionEntity:return gi;case r.FunctionDeclaration:return li;case r.VariableDeclaration:return pi;case r.VariableInstance:return hi;case r.FunctionCall:return Ei;case r.Operation:return di;case r.Condition:return ci;case r.ReturnStatement:return Ti;case r.Loop:return ui;case r.Search:return yi;case r.InputMap:return sn;case r.OutputMap:return on;case r.ArgumentDeclaration:return mi;case r.ReturnDeclaration:return sr;case r.Property:return oi;case r.InstalledProject:return fi;case r.Project:return O;case r.BuiltInBaseEntity:return xr;default:return null}}function qt(n,s){if(lt.includes(n.type))return n;if(Dr.includes(n.type))return null;const e=n.parent;if(!e)return null;if(e.type===r.GenericReference){const t=P(e);if(!t)return null;const i=s.get(t);return i?qt(i,s):null}else return e===s?s:qt(e,s)}function Gp(n,s){if(Dr.includes(n.type)||s.getBuiltIn(n.id))return null;const e=Xt(n.parent,s);return e?e===s?lt.includes(n.type)?n:null:e.type===r.DefinitionEntity?n:Gp(e,s):null}function kl(n,s,e){if(n===s||s===e||n===e)return!1;const t=qt(s.parent,e);return t===n?!0:kl(t,s,e)}var Zl=(n=>(n.SameBothLocal="same-both-local",n.AInB="a-in-b",n.BInA="b-in-a",n.ParallelInCommonParent="parallel-in-common-parent",n.ParallelInProject="parallel-in-project",n.AIsGlobalBIsNot="a-is-global-b-is-not",n.BIsGlobalAIsNot="b-is-global-a-is-not",n.SameBothGlobal="same-both-global",n))(Zl||{});function As(n,s,e){const t=qt(n,e),i=qt(s,e);if(!t)throw new Error("Could not find scope owner for the entity: "+n.id);if(!i)throw new Error("Could not find scope owner for the entity: "+s.id);if(t===i&&t.type!==r.Project)return{compatible:!0,type:"same-both-local",commonAncestorScope:t};if(t===i&&t.type===r.Project)return{compatible:!0,type:"same-both-global",commonAncestorScope:t};if(t.type===r.Project&&i.type!==r.Project)return{compatible:!1,type:"a-is-global-b-is-not",commonAncestorScope:t};if(t.type!==r.Project&&i.type===r.Project)return{compatible:!1,type:"b-is-global-a-is-not",commonAncestorScope:i};if(kl(t,i,e))return{compatible:!0,type:"b-in-a",commonAncestorScope:t};if(kl(i,t,e))return{compatible:!0,type:"a-in-b",commonAncestorScope:i};const l=Pp(t,i);return l===e?{compatible:!1,type:"parallel-in-project",commonAncestorScope:l}:l?{compatible:!1,type:"parallel-in-common-parent",commonAncestorScope:qt(l,e)}:{compatible:!1,type:"parallel-in-project",commonAncestorScope:e}}function nP(n,s,e){const t=As(n,s,e);if(!t.compatible||t.type!=="same-both-local")return null;if(n===s)return n;let i=qt(n.parent,e);if(i){if(i===s)return s;if(i.type===r.Project)return n}else return n;for(;i;){if(i){if(i===s)return s;if(i.type===r.Project)return n}else return n;i=qt(i.parent,e)}let a=qt(s.parent,e);if(a){if(a===n)return n;if(a.type===r.Project)return s}else return s;for(;a;){if(a){if(a===n)return n;if(a.type===r.Project)return s}else return s;a=qt(a.parent,e)}return null}function iP(n){return n.length===0?null:n.length===1?n[0]:n.reduce((e,t)=>{const i=nP(e,t,t.project);return!i||i===t?e:t},n[0])}function Xt(n,s){if(!n)return null;let e;return typeof n=="string"?e=n:n.type===r.GenericReference?e=P(n):e=n.id,e===s.id?s:s.get(e)}function Cn(n){if(!n)return null;if(Dr.includes(n.type))return n;if(n.type===r.Project)return null;if(n.project.getBuiltIn(n.id))return n;const s=n.parent;return!s||s.type===r.Project?null:Cn(s)}function gq(n,s){var e;if(n.readsValue){const t=Xt(n.readsValue,s.project);s.setValueWriter(t),t.addValueReader(s)}else n.readsValue===null&&((e=s.readsValue)==null||e.removeValueReader(s),s.readsValue=null);return s}function Ds(n){const s=[];function e(a,o){return s.some(l=>l.blockedByCaller===a&&l.blockedByCalling===o)}function t(a,o){e(a,o)||s.push({blockedByCaller:a,blockedByCalling:o})}const i=Gp(n,n.project);return n.calledBySuccess.forEach(a=>{[...a.successCalls||[]].forEach(d=>{Qe.includes(d.type)&&d!==n&&(ze(n).find(f=>f===d)||t(a,d))});let l;if(Ke.includes(a.type)&&(l=a),l){const d=Ds(l);d.reachable||ze(n).find(f=>f===a)||d.blocks.forEach(f=>{t(a,f.blockedByCalling)})}}),n.calledByError.forEach(a=>{[...a.errorCalls||[]].forEach(d=>{Qe.includes(d.type)&&d!==n&&(ze(n).find(f=>f===d)||t(a,d))});let l;if(Ke.includes(a.type)&&(l=a),l){const d=Ds(l);d.reachable||ze(n).find(f=>f===a)||d.blocks.forEach(f=>{t(a,f.blockedByCalling)})}}),n.calledByEntry.forEach(a=>{if([...a.calls||[]].forEach(d=>{Qe.includes(d.type)&&d!==n&&(ze(n).find(f=>f===d)||t(a,d))}),a===i)return;let l;if(a.type===r.FunctionDeclaration){const d=It(a);if(d.type===r.DefinitionEntity)return;d.type===r.Loop&&(l=d)}if(l){const d=Ds(l);d.reachable||d.blocks.forEach(h=>{t(a,h.blockedByCalling)})}}),{reachable:s.length===0,entryPoint:i,blocks:s}}function bq(n){return ws.includes(n.type)?n.type===r.FunctionDeclaration?!rP(n):!0:!1}function Iq(n){if(r.ActionDescriptor===n.type){if(n.project.operationDeclarations.find(a=>a.id===n.id))return r.Operation;if(n.project.globalEventActionDescriptors.find(a=>a.id===n.id))return r.GlobalEvent;if(n.project.loopDeclarations.find(a=>a.id===n.id))return r.Loop;if(n.project.conditionDeclarations.find(a=>a.id===n.id))return r.Condition}return n.type}function Ta(n,s){if(n.type!==r.DefinitionEntity||n.abstract)return!1;const e=Mp(n)||n;return!!Bp(e).includes(s)}function Aq(n){const s=[];return n.entities.forEach(e=>{if(Ta(e,k.PERSISTED_ENTITY)){s.push(e);return}}),m(s)}function Dq(n){const s=[];return n.entities.forEach(e=>{if(Ta(e,k.RELATIONAL_DATABASE)){s.push(e);return}}),m(s)}function Pq(n){return n.type!==r.DefinitionEntity||n.abstract||!Ta(n,k.PERSISTED_ENTITY)?null:(n==null?void 0:n.properties.find(e=>{var t;return((t=e.implements)==null?void 0:t.id)===N[r.BuiltInBaseEntity][k.PERSISTED_ENTITY].properties.primaryKey.id&&!e.abstract}))||null}function Sq(n){if(n.type!==r.DefinitionEntity)return[];if(n.abstract)return[];if(!Ta(n,k.PERSISTED_ENTITY))return[];const s=[],e=n.properties.filter(t=>{var i;return((i=t.implements)==null?void 0:i.id)!==N[r.BuiltInBaseEntity][k.PERSISTED_ENTITY].properties.database.id&&!t.abstract});return s.push(...e),s}function Oq(n){var e;if(!n||n.type!==r.DefinitionEntity||!Ta(n,k.PERSISTED_ENTITY))return null;const s=n.properties.find(t=>{var i;return((i=t.implements)==null?void 0:i.id)===N[r.BuiltInBaseEntity][k.PERSISTED_ENTITY].properties.database.id});return(e=s==null?void 0:s.getDefaultValue())==null?void 0:e.valueAsType}function at(n,s){var t;if(!qp.includes(s.type)||!n)return s.project||null;let e=s.project;return n.type===r.Project?e=n:((t=s.project)==null?void 0:t.id)!==n.project.id&&(e=n.project),e}function Vq(n,s){const e=[];if(n.parent)if(n.id===n.parent)e.push(new g({id:`${n.id}--${n.parent}--${T.SelfReference}`,code:T.SelfReference,severity:E.Error,message:`Entity of type "${n.type}" with id "${n.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=s.get(n.parent);t?[r.Project,r.DataType].includes(t.type)||e.push(new g({id:`${n.id}--${n.parent}--${T.InvalidParentReference}`,code:T.InvalidParentReference,severity:E.Error,message:`Entity of type "${n.type}" with id "${n.id}", has a parent reference that isn't pointing to an entity of type 'project' or 'data-type'.`,issue:null})):e.push(new g({id:`${n.id}--${n.parent}--${T.ReferencedEntityNotFound}`,code:T.ReferencedEntityNotFound,severity:E.Error,message:`Entity of type "${n.type}" with id "${n.id}", is referencing an entity with id "${n.parent}" that isn't yet found in the project. Perhaps it should be created first. Or perhaps the ID is incorrect.`,issue:null}))}return n.implements&&Array.isArray(n.implements)?n.implements.forEach(t=>{if(n.id===t){e.push(new g({id:`${n.id}--${t}--${T.SelfReference}`,code:T.SelfReference,severity:E.Error,message:`Entity of type "${n.type}" with id "${n.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=s.get(t);i?[r.DefinitionEntity,r.BuiltInBaseEntity].includes(i.type)?i.abstract||e.push(new g({id:`${n.id}--${t}--${T.InvalidImplementsReference}`,code:T.InvalidImplementsReference,severity:E.Error,message:`Entity of type "${n.type}" with id "${n.id}", has an 'implements' reference that isn't pointing to an abstract entity.`,issue:null})):e.push(new g({id:`${n.id}--${t}--${T.InvalidImplementsReference}`,code:T.InvalidImplementsReference,severity:E.Error,message:`Entity of type "${n.type}" with id "${n.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 g({id:`${n.id}--${t}--${T.ReferencedEntityNotFound}`,code:T.ReferencedEntityNotFound,severity:E.Error,message:`Entity of type "${n.type}" with id "${n.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 g({id:`${n.id}--${w.InvalidObjectStructure}`,code:w.InvalidObjectStructure,severity:E.Error,message:`Entity of type "${n.type}" with id "${n.id}", has an 'implements' property that isn't an array.`,issue:null})),n.extends&&Array.isArray(n.extends)&&n.extends.forEach(t=>{const i=s.get(t);i?[r.DefinitionEntity,r.BuiltInBaseEntity].includes(i.type)?i.abstract&&e.push(new g({id:`${n.id}--${t}--${T.InvalidExtendsReference}`,code:T.InvalidExtendsReference,severity:E.Error,message:`Entity of type "${n.type}" with id "${n.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 g({id:`${n.id}--${t}--${T.InvalidExtendsReference}`,code:T.InvalidExtendsReference,severity:E.Error,message:`Entity of type "${n.type}" with id "${n.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 g({id:`${n.id}--${t}--${T.ReferencedEntityNotFound}`,code:T.ReferencedEntityNotFound,severity:E.Error,message:`Entity of type "${n.type}" with id "${n.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}const we=class we extends He{constructor(e,t){super(e);u(this,"initialData");u(this,"id");u(this,"name");u(this,"description",null);u(this,"x");u(this,"y");u(this,"static");u(this,"abstract");u(this,"type",r.DefinitionEntity);u(this,"properties",[]);u(this,"methods",[]);u(this,"abstractMethods",[]);u(this,"extends",[]);u(this,"implements",[]);u(this,"project");u(this,"errors",[]);u(this,"parent");u(this,"initialized",!1);u(this,"suggestedProperties",[]);u(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 fromGenerationTarget(e,t){let i=t;if(e.parent){const h=P(e.parent);i=t.get(h)}const a=[];e.implements&&e.implements.forEach(h=>{a.push(t.get(h)||t.getBuiltIn(h))});const o=[];e.extends&&e.extends.forEach(h=>{o.push(t.get(h)||t.getBuiltIn(h))});const l={id:e.id,version:"1",createdAt:$().toDate(),author:"1",previousVersion:null,deleted:!1,name:e.name,type:r.DefinitionEntity,description:e.description,static:e.static,abstract:e.abstract,properties:[],methods:[],abstractMethods:[],extends:o,implements:a,x:0,y:0,parent:i},d=b(l,t);return d.setParent(i),d.initChildren(),d}static validateGenerationTarget(e,t){let i=JSON.parse(JSON.stringify(e));const a=[],o=Vq(i,t),l=Il(i,t);a.push(...o,...l,...et(i));const d=i.parent?t.get(i.parent):null;if(d&&d.type===r.DataType){const h=d;h.entity&&a.push(new g({id:`${e.id}--${T.NewEntityWouldOverriteExisting}`,code:T.NewEntityWouldOverriteExisting,severity:E.Error,message:`The entity of type '${e.type}' with id '${e.id}' can't be added to the 'parent' entity with id '${h.id}' because it already has an 'entity' child. Data type entities can only have one 'entity' as children.
404
404
  You can inspect the existing 'entity' field with the 'describe_entity' action. Like so:
405
405
  ${Fr({describe_entity:h.entity.id})}
406
- Alternatively you can update the parent data-type entity with 'update' action to remove the existing value of the field.`,issue:null}))}return{errors:a,modifiedData:i}}get allBasePropertiesFromExtendedAndImplementedEntities(){return m([...this.extends.reduce((e,t)=>[...[...t.ownDeclaredProperties,...t.allBasePropertiesFromExtendedAndImplementedEntities].filter(a=>!a.abstract),...e],[]),...this.implements.reduce((e,t)=>[...[...t.ownDeclaredProperties,...t.allBasePropertiesFromExtendedAndImplementedEntities].filter(a=>!a.abstract),...e],[])])}get extendedPropertiesFromOriginalParents(){return m(this.extends.reduce((e,t)=>{const i=[...t.ownDeclaredProperties,...t.extendedPropertiesFromOriginalParents].filter(a=>!a.abstract);return[...e,...i]},[]))}get implementedPropertiesFromOriginalParents(){return m([...this.extends.reduce((e,t)=>{const i=t.implementedPropertiesFromOriginalParents,a=[...t.ownDeclaredProperties].filter(o=>!!o.abstract&&!i.find(l=>l.name===o.name));return[...i,...a,...e]},[]),...this.implements.reduce((e,t)=>{const i=t.implementedPropertiesFromOriginalParents,a=[...t.ownDeclaredProperties].filter(o=>!!o.abstract&&!i.find(l=>l.name===o.name));return[...i,...a,...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 g({id:`${this.id}--${T.InvalidParentUpdate}`,code:T.InvalidParentUpdate,severity:E.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}}hydrateAncestors(){const e=[],t=[],i=[];if(this.initialData.parent){const a=P(this.initialData.parent),o=this.project.get(a);o&&(this.setParent(o),e.push(o))}return this.initialData.extends.forEach(a=>{const o=P(a),l=this.project.get(o);l&&(this.addExtension(l),e.push(l))}),this.initialData.implements.forEach(a=>{const o=P(a),l=this.project.get(o);l&&(this.addImplementation(l),e.push(l))}),{updated:m(e),added:m(t),removed:m(i),self:this}}afterAllChildrenInitialized(){const e=[],t=[],i=[];return this.initialized=!0,this.syncImplementationProperties(),this.addExtendedProperties(),this.addSuggestions(),{updated:m(e),added:m(t),removed:m(i),self:this}}addSelfToProject(){const e=[this],t=[],i=[];if(this.parent.type===r.DataType){const a=this.parent;a.entity=this,e.push(a)}else this.project.addDefinitionEntity(this);return{updated:m(e),added:m(t),removed:m(i),self:this}}setParent(e){return this.parent=e,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(){return this.initialized?this:(this.initialized=!0,this.properties=this.initialData.properties.map(e=>{const t=b(e,this.project);return t.setParent(this),t.initChildren(),t}),this.methods=this.initialData.methods.map(e=>{const t=b(e,this.project);return t.setParent(this),t.initChildren(),t}),this.abstractMethods=this.initialData.abstractMethods.map(e=>{const t=b(e,this.project);return t.setParent(this),t.initChildren(),t}),this.extends=this.initialData.extends.map(e=>b(e,this.project)),this.implements=this.initialData.implements.map(e=>b(e,this.project)),this.afterAllChildrenInitialized(),this)}syncImplementationProperties(){const e=this.properties,t=this.implementedPropertiesFromOriginalParents,i=[...this.allBasePropertiesFromExtendedAndImplementedEntities,...e];return t.filter(o=>!i.find(d=>{var h;return((h=d.implements)==null?void 0:h.id)===o.id})).forEach(o=>{if(this.properties.find(y=>{var f;return((f=y.implements)==null?void 0:f.id)===o.id}))return;const d=this.properties.find(y=>y.name===o.name&&!!y.abstract&&!y.implements);if(d){d.implements=o,d.abstract=!1;return}const h=o.clone(this,O.UUID.uuid());h.initChildren(),h.implements=o,h.abstract=!1,this.addProperty(h)}),this}addExtendedProperties(){const e=this.properties,t=this.extendedPropertiesFromOriginalParents,i=t.filter(o=>t.find(d=>{var h;return((h=d.implements)==null?void 0:h.id)===o.id})?!1:!o.abstract),a=new Set(e.map(o=>o.name));return i.forEach(o=>{if(a.has(o.name))return;a.add(o.name);const l=o.clone(this,O.UUID.uuid());l.initChildren(),this.addProperty(l)}),this}addSuggestions(){return this.implements.forEach(e=>{s5(this,e).forEach(a=>{const o=a.toJSON();o.id=`_suggestion--parent--${this.id}--${a.id}`;const l=b(o,this.project);l.suggestion=!0,l.setParent(this),l.initChildren(),this.addSuggestedProperty(l)}),o5(this,e).forEach(a=>{const o=`_suggestion--parent--${this.id}--${a.id}`,l=a.implementAsFunctionDeclaration(o),d=b(l,this.project);if(d.suggestion=!0,d.setParent(this),d.initChildren(),d.inputs.forEach(h=>{h.suggestion=!0}),d.returnStatements.length){const h=d.returnStatements[0];h.suggestion=!0,h.outputs.forEach(y=>{y.suggestion=!0})}this.addSuggestedMethod(d)})}),this}subscribe(){return this.project.subscribeInstance(this),this}unsubscribe(){return this.project.unsubscribeInstance(this),this}sync(e){return super.sync(e),this.name=e.name||this.name,this.x=e.x||this.x,this.y=e.y||this.y,this.static=e.static||this.static,this.abstract=e.abstract||this.abstract,this}async load(e=L,...t){return await we.repository.load(this.id,...t),this}async create(e=L,...t){return await we.repository.create(this.toShallowJSON(),...t),this}async update(e=L,...t){return await we.repository.update(this.toShallowJSON(),...t),this}async delete(e=L,...t){return await we.repository.delete(this.id,...t),this}remove({ignoreUpstream:e,seenEntities:t}={ignoreUpstream:!1,seenEntities:new Set}){const i=[],a=[];return t.has(this.id)?{affected:[],removed:[]}:(t.add(this.id),a.push(this),this.unsubscribe(),this.properties.forEach(o=>{const{affected:l,removed:d}=o.remove({ignoreUpstream:!0,seenEntities:t});i.push(...l),a.push(...d)}),this.methods.forEach(o=>{const{affected:l,removed:d}=o.remove({ignoreUpstream:!0,seenEntities:t});i.push(...l),a.push(...d)}),this.abstractMethods.forEach(o=>{const{affected:l,removed:d}=o.remove({ignoreUpstream:!0,seenEntities:t});i.push(...l),a.push(...d)}),this.suggestedProperties.forEach(o=>{const{affected:l,removed:d}=o.remove({ignoreUpstream:!0,seenEntities:t});i.push(...l),a.push(...d)}),this.suggestedMethods.forEach(o=>{const{affected:l,removed:d}=o.remove({ignoreUpstream:!0,seenEntities:t});i.push(...l),a.push(...d)}),{affected:m(i),removed:m(a)})}restore({seenEntities:e}={seenEntities:new Set}){const t=[];return e.has(this.id)?{affected:[],self:this}:(e.add(this.id),this.subscribe(),this.properties.forEach(i=>{const{affected:a}=i.restore({seenEntities:e});t.push(...a)}),this.methods.forEach(i=>{const{affected:a}=i.restore({seenEntities:e});t.push(...a)}),this.abstractMethods.forEach(i=>{const{affected:a}=i.restore({seenEntities:e});t.push(...a)}),this.suggestedProperties.forEach(i=>{const{affected:a}=i.restore({seenEntities:e});t.push(...a)}),this.suggestedMethods.forEach(i=>{const{affected:a}=i.restore({seenEntities:e});t.push(...a)}),{affected:m(t),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)])}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=F){var i,a,o,l,d;let t;return(i=e.seenEntityMaps)!=null&&i.has(this.id)?t=e.seenEntityMaps.get(this.id):(t=e.newId||it(this,this.project,e.uuidStrategy),e.seenEntityMaps&&e.seenEntityMaps.set(this.id,t)),(a=e.seenEntities)!=null&&a.has(t)||(o=e.seenEntities)!=null&&o.has(this.id)?this.toReference({seenEntityMaps:e.seenEntityMaps}):((l=e.seenEntities)==null||l.add(t),(d=e.seenEntities)==null||d.add(this.id),{id:t,version:"1",createdAt:$().toDate(),author:"1",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(h=>h.toJSONClone({...e,newId:null})),methods:this.methods.map(h=>h.toJSONClone({...e,newId:null})),abstractMethods:this.abstractMethods.map(h=>h.toJSONClone({...e,newId:null})),implements:this.implements.map(h=>h.type===r.BuiltInBaseEntity?h.toJSON():h.toJSONClone({...e,newId:null})),extends:this.extends.map(h=>h.type===r.BuiltInBaseEntity?h.toJSON():h.toJSONClone({...e,newId:null})),parent:this.parent.toReference({seenEntityMaps:e.seenEntityMaps})})}toReference(e=F){var i;let t=this.id;return(i=e.seenEntityMaps)!=null&&i.has(this.id)&&(t=e.seenEntityMaps.get(this.id)),{id:t+"--"+O.UUID.uuid()+"--ref",type:r.GenericReference,entityId:t,version:this.version,entityType:this.type}}toShallowJSON(e=F){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(a=>a.toReference(e)),methods:this.methods.map(a=>a.toReference(e)),abstractMethods:this.abstractMethods.map(a=>a.toReference(e)),implements:this.implements.map(a=>a.toReference(e)),extends:this.extends.map(a=>a.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===r.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===r.DefinitionEntity).flatMap(i=>i.toFlatGenerationTarget(e)),...this.implements.filter(i=>i.type===r.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=a5(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=null,t=null,i=!0){var I,D,A;let a=at(e,this);const o=this.toJSON(),l=t||O.UUID.uuid();o.properties=[],o.methods=[],o.abstractMethods=[];const d=l.split("-id"),h=d[d.length-1||0]||l;o.id=l;const y=tt(o,a);e&&y.setParent(e),i&&y.subscribe(),y.initChildren();const f=(I=this.properties)==null?void 0:I.map(M=>M.clone(y,O.UUID.uuid(),i));y.properties=f;const v=(D=this.methods)==null?void 0:D.map((M,H)=>M.clone(y,h+"-method-"+H+"-id",i));y.methods=v;const R=(A=this.abstractMethods)==null?void 0:A.map((M,H)=>M.clone(y,h+"-abstract-method-"+H+"-id",i));return y.abstractMethods=R,y}getFunctionDeclaration(e){return this.methods.find(t=>t.id===e)}implement(e,t){return Bl(this,e,t)}getAllInteractiveMethods(){const e=this.implements.filter(i=>i.type===r.DefinitionEntity||i.type===r.BuiltInBaseEntity&&i.interactive);return m([...this.methods,...this.extends.flatMap(i=>i.getAllInteractiveMethods()),...e.flatMap(i=>i.getAllInteractiveMethods())])}inferFromInputs(e){if(this.parent.type!==r.DataType||!this.parent.inferred)return this;const t=[];e.forEach(o=>{t.find(d=>B(d,this.project)===B(o,this.project))||t.push(o)});const i=this.properties.filter(o=>!o.getDataType());t.forEach(o=>{const l=i.find(v=>B(v,this.project)===B(o,this.project));if(!l)return;const h=si(o.parent).getMasterInputWithValueWritterFromAllInstances(o),y=$r(h),f=y==null?void 0:y.clone(l,O.UUID.uuid(),!0);f&&l.setDataType(f),o.setDeclaration(l)});const a=[];return t.forEach(o=>{if(!o.declaration){a.push(o);return}}),a.length===0?this:(a.forEach(o=>{const l=this.properties.find(I=>B(I,this.project)===B(o,this.project));if(l){if(o.setDeclaration(l),!l.getDataType()){const D=si(o.parent).getMasterInputWithValueWritterFromAllInstances(o),A=$r(D),M=A==null?void 0:A.clone(l,O.UUID.uuid(),!0);M&&l.setDataType(M)}return}const d={id:O.UUID.uuid(),type:r.Property,version:"1",createdAt:$().toDate(),author:"1",previousVersion:null,deleted:!1,name:B(o,this.project),description:o.description,defaultValue:null,static:!0,abstract:!1,private:!1,hidden:!1,required:!1,constant:!0,index:o.index,implements:null,dataType:null,parent:this.toReference()},h=b(d,this.project);h.setParent(this),h.initChildren();const f=si(o.parent).getMasterInputWithValueWritterFromAllInstances(o),v=$r(f),R=v==null?void 0:v.clone(h,O.UUID.uuid(),!0);return R&&h.setDataType(R),this.addProperty(h),o.setDeclaration(h),h}),this)}};u(we,"repository",{create:async(e,...t)=>e,update:async(e,...t)=>e,delete:async(e,...t)=>{},load:async(e,...t)=>null}),u(we,"type",r.DefinitionEntity),u(we,"USER_MANAGED_PARENT_TYPES",[r.Project,r.DataType]),u(we,"PARENT_TYPES",[...we.USER_MANAGED_PARENT_TYPES]),u(we,"MUTABLE_BASE_PROPERTIES",["name","description","static","abstract"]),u(we,"INMUTABLE_BASE_PROPERTIES",["id","version","type"]),u(we,"BASE_PROPERTIES",[...we.MUTABLE_BASE_PROPERTIES,...we.INMUTABLE_BASE_PROPERTIES]),u(we,"MUTABLE_META_PROPERTIES",[...we.MUTABLE_BASE_PROPERTIES,"x","y"]),u(we,"INMUTABLE_META_PROPERTIES",[...we.INMUTABLE_BASE_PROPERTIES]),u(we,"META_PROPERTIES",[...we.MUTABLE_META_PROPERTIES,...we.INMUTABLE_META_PROPERTIES]),u(we,"MUTABLE_UPSTREAM_PROPERTIES",["extends","implements"]),u(we,"INMUTABLE_UPSTREAM_PROPERTIES",["parent"]),u(we,"UPSTREAM_PROPERTIES",[...we.MUTABLE_UPSTREAM_PROPERTIES,...we.INMUTABLE_UPSTREAM_PROPERTIES]),u(we,"MUTABLE_DOWNSTREAM_PROPERTIES",["properties","methods","abstractMethods"]),u(we,"INMUTABLE_DOWNSTREAM_PROPERTIES",[]),u(we,"DOWNSTREAM_PROPERTIES",[...we.MUTABLE_DOWNSTREAM_PROPERTIES,...we.INMUTABLE_DOWNSTREAM_PROPERTIES]),u(we,"PROPERTIES",[...we.META_PROPERTIES,...we.UPSTREAM_PROPERTIES,...we.DOWNSTREAM_PROPERTIES]);let gi=we;function Cq(n){const s=Lk(),e=n.toJSON();s.safeParse(e).success;const i=[];return xe(n.errors,i)}const Ss=class Ss extends He{constructor(e,t){super(e);u(this,"initialData");u(this,"id");u(this,"version");u(this,"name");u(this,"description",null);u(this,"type",r.BuiltInBaseEntity);u(this,"abstract",!1);u(this,"static");u(this,"properties",[]);u(this,"methods",[]);u(this,"abstractMethods",[]);u(this,"extends",[]);u(this,"interactive",!1);u(this,"errors",[]);u(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 a=b(i,this.project);return a.setParent(this),a.initChildren(),a}),this.methods=this.initialData.methods.map(i=>{const a=b(i,this.project);return a.setParent(this),a.initChildren(),a}),this.abstractMethods=this.initialData.abstractMethods.map(i=>{const a=b(i,this.project);return a.setParent(this),a.initChildren(),a}),this.extends=this.initialData.extends.map(i=>b(i,this.project))}get allBasePropertiesFromExtendedAndImplementedEntities(){return m(this.extends.reduce((e,t)=>{const i=[...t.ownDeclaredProperties,...t.allBasePropertiesFromExtendedAndImplementedEntities].filter(a=>!a.abstract);return[...e,...i]},[]))}get extendedPropertiesFromOriginalParents(){return m(this.extends.reduce((e,t)=>{const i=[...t.ownDeclaredProperties,...t.extendedPropertiesFromOriginalParents].filter(a=>!a.abstract);return[...e,...i]},[]))}get implementedPropertiesFromOriginalParents(){return m([...this.extends.reduce((e,t)=>{const i=t.implementedPropertiesFromOriginalParents,a=[...t.ownDeclaredProperties].filter(o=>!!o.abstract&&!i.find(l=>l.name===o.name));return[...i,...a,...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 load(e=L,...t){return await Ss.repository.load(this.id,...t),this}remove(e={ignoreUpstream:!1,seenEntities:new Set}){return{affected:[],removed:[]}}restore({seenEntities:e}={seenEntities:new Set}){return{affected:[],self: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))])}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=F){return{id:this.id+"--"+O.UUID.uuid()+"--ref",type:r.GenericReference,entityId:this.id,version:this.version,entityType:this.type}}toShallowJSON(e=F){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=Cq(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){return Bl(this,e,t)}getAllInteractiveMethods(){const e=[];return this.interactive&&(e.push(...this.methods),this.extends.filter(i=>i.type===r.BuiltInBaseEntity&&i.interactive||i.type===r.PrimitiveEntity).forEach(i=>{i instanceof Ss&&e.push(...i.getAllInteractiveMethods())})),m(e)}};u(Ss,"repository",{load:async(e,...t)=>null});let xr=Ss;function wq(n){const s=Sk(),e=n.toJSON();s.safeParse(e).success;const i=[];return xe(n.errors,i)}const Jl=class Jl extends He{constructor(e,t){super(e);u(this,"initialData");u(this,"id");u(this,"name");u(this,"description",null);u(this,"type",r.PrimitiveEntity);u(this,"static");u(this,"abstract");u(this,"properties",[]);u(this,"methods",[]);u(this,"abstractMethods",[]);u(this,"extends",[]);u(this,"errors",[]);u(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 a=b(i,this.project);return a.setParent(this),a.initChildren(),a}),this.methods=this.initialData.methods.map(i=>{const a=b(i,this.project);return a.parent=this,a}),this.abstractMethods=this.initialData.abstractMethods.map(i=>{const a=b(i,this.project);return a.parent=this,a})}get allBasePropertiesFromExtendedAndImplementedEntities(){return m(this.extends.reduce((e,t)=>{const i=[...t.ownDeclaredProperties,...t.allBasePropertiesFromExtendedAndImplementedEntities].filter(a=>!a.abstract);return[...e,...i]},[]))}get extendedPropertiesFromOriginalParents(){return m(this.extends.reduce((e,t)=>{const i=[...t.ownDeclaredProperties,...t.extendedPropertiesFromOriginalParents].filter(a=>!a.abstract);return[...e,...i]},[]))}get implementedPropertiesFromOriginalParents(){return m([...this.extends.reduce((e,t)=>{const i=t.implementedPropertiesFromOriginalParents,a=[...t.ownDeclaredProperties].filter(o=>!!o.abstract&&!i.find(l=>l.name===o.name));return[...i,...a,...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 load(e=L,...t){return await Jl.repository.load(this.id,...t),this}remove({ignoreUpstream:e,seenEntities:t}={ignoreUpstream:!1,seenEntities:new Set}){return{affected:[],removed:[]}}restore({seenEntities:e}={seenEntities:new Set}){return{affected:[],self: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))])}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=F){return{id:this.id+"--"+O.UUID.uuid()+"--ref",type:r.GenericReference,entityId:this.id,version:this.version,entityType:this.type}}toShallowJSON(e=F){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=wq(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===r.BuiltInBaseEntity&&i.interactive||i.type===r.PrimitiveEntity).forEach(i=>{i instanceof xr&&e.push(...i.getAllInteractiveMethods())}),m(e)}};u(Jl,"repository",{load:async(e,...t)=>null});let yr=Jl;function tt(n,s){if(!n)throw new Error("Entity is null");const e=s.get(n.id);switch(n.type){case r.LiteralValue:return e||new ya(n,s);case r.DefinitionEntity:return e||new gi(n,s);case r.PrimitiveEntity:return e||new yr(n,s);case r.FunctionDeclaration:return e||new li(n,s);case r.GlobalEvent:return e||new pa(n,s);case r.DataType:return e||new ca(n,s);case r.Property:return e||new oi(n,s);case r.FunctionCall:return e||new Ei(n,s);case r.Condition:return e||new ci(n,s);case r.Operation:return e||new di(n,s);case r.VariableDeclaration:return e||new pi(n,s);case r.VariableInstance:return e||new hi(n,s);case r.OutputMap:return e||new on(n,s);case r.ReturnDeclaration:return e||new sr(n,s);case r.ArgumentDeclaration:return e||new mi(n,s);case r.InputMap:return e||new sn(n,s);case r.Project:return e||new O(n);case r.InstalledProject:return e||new fi(n,s);case r.ActionDescriptor:return e||new Be(n,s);case r.ReturnStatement:return e||new Ti(n,s);case r.Loop:return e||new ui(n,s);case r.Search:return e||new yi(n,s);case r.ValueDescriptor:return e||new vi(n,s);case r.BuiltInBaseEntity:return e||new xr(n,s);case r.InternalCall:return e||new ha(n,s);case r.ContinueStatement:return e||new kt(n,s);case r.BreakStatement:return e||new fa(n,s);case r.GenericReference:return s.get(n.entityId);default:throw new Error("Invalid entity type: "+n.type)}}function b(n,s){if(!n)throw new Error("Entity is null");const e=tt(n,s);return e.subscribe(),e}function Bq(n,s){if(!n)throw new Error("Entity is null");switch(n.type){case r.LiteralValue:return ya.fromGenerationTarget(n,s);case r.DefinitionEntity:return gi.fromGenerationTarget(n,s);case r.FunctionDeclaration:return li.fromGenerationTarget(n,s);case r.GlobalEvent:return pa.fromGenerationTarget(n,s);case r.DataType:return ca.fromGenerationTarget(n,s);case r.Property:return oi.fromGenerationTarget(n,s);case r.FunctionCall:return Ei.fromGenerationTarget(n,s);case r.Condition:return ci.fromGenerationTarget(n,s);case r.Operation:return di.fromGenerationTarget(n,s);case r.VariableDeclaration:return pi.fromGenerationTarget(n,s);case r.VariableInstance:return hi.fromGenerationTarget(n,s);case r.OutputMap:return on.fromGenerationTarget(n,s);case r.ReturnDeclaration:return sr.fromGenerationTarget(n,s);case r.ArgumentDeclaration:return mi.fromGenerationTarget(n,s);case r.InputMap:return sn.fromGenerationTarget(n,s);case r.InstalledProject:return fi.fromGenerationTarget(n,s);case r.ReturnStatement:return Ti.fromGenerationTarget(n,s);case r.Loop:return ui.fromGenerationTarget(n,s);case r.Search:return yi.fromGenerationTarget(n,s);case r.ActionDescriptor:return Be.fromGenerationTarget(n,s);case r.ValueDescriptor:return vi.fromGenerationTarget(n,s);case r.InternalCall:return ha.fromGenerationTarget(n,s);case r.ContinueStatement:return kt.fromGenerationTarget(n,s);case r.BreakStatement:return fa.fromGenerationTarget(n,s);default:throw new Error("Invalid entity type: "+n.type)}}const F={seenEntityMaps:new Map,seenEntities:new Set};class aP{constructor(){u(this,"initialData")}}const L={cascade:!1},sP={load:async(n,...s)=>null},Mq={create:async(n,...s)=>n,update:async(n,...s)=>n,delete:async(n,...s)=>{},...sP};class _q{}class Nq extends aP{}class Lq{}class Gq{}class $q{}class $p{}class Fq extends $p{}class Uq extends $p{}class xq{}class dn{static initReadsValue(s){if(s.initialData.readsValue&&s.initialData.readsValue.type!==r.GenericReference)s.readsValue=b(s.initialData.readsValue,s.project);else if(s.initialData.readsValue&&s.initialData.readsValue.type===r.GenericReference){const e=Xt(s.initialData.readsValue,s.project);e&&(s.readsValue=e)}if(s.readsValue){if(Je.includes(s.readsValue.type)){let e=s.parent;lt.includes(e.type)||(e=e.parent);const t=s.type===r.InputMap&&s.parent.type===r.Loop;t&&(e=s.parent.parent),s.readsValue.setParent(e),s.readsValue.initChildren(),!t&&e.detachedChildren.includes(s)?e.replaceDetachedChild(s,s.readsValue):t||e.subscribeDetachedChild(s.readsValue)}s.readsValue.addValueReader(s)}return s.readsValue}static hydrateReadsValue(s){if(s.initialData.readsValue&&s.initialData.readsValue.type!==r.GenericReference)s.readsValue=b(s.initialData.readsValue,s.project);else if(s.initialData.readsValue&&s.initialData.readsValue.type===r.GenericReference){const e=Xt(s.initialData.readsValue,s.project);e&&(s.readsValue=e)}if(s.readsValue){if(Je.includes(s.readsValue.type)){let e=s.parent;lt.includes(e.type)||(e=e.parent);const t=s.type===r.InputMap&&s.parent.type===r.Loop;t&&(e=s.parent.parent),s.readsValue.setParent(e),!t&&e.detachedChildren.includes(s)?e.replaceDetachedChild(s,s.readsValue):t||e.subscribeDetachedChild(s.readsValue)}s.readsValue.addValueReader(s)}return s.readsValue}}class Ps{static initWritesValues(s,e){const t=s.initialData.writesValues.reduce((a,o)=>{if(o.type===r.GenericReference||s.writesValues.some(d=>d.id===o.id))return a;const l=b(o,s.project);return l.setValueWriter(s),Je.includes(l.type)&&(l.setParent(e),l.initChildren()),[...a,l]},[]),i=[...s.writesValues];return s.writesValues=m([...i,...t]),s.writesValues}}class jq{}const ae=class ae extends He{constructor(e){super(e);u(this,"initialData");u(this,"id");u(this,"type",r.Project);u(this,"name",null);u(this,"description",null);u(this,"x");u(this,"y");u(this,"entities",[]);u(this,"projects",[]);u(this,"functions",[]);u(this,"events",[]);u(this,"variableDeclarations",[]);u(this,"variableInstances",[]);u(this,"conditions",[]);u(this,"operations",[]);u(this,"functionCalls",[]);u(this,"loops",[]);u(this,"searches",[]);u(this,"primitives",[]);u(this,"builtInBaseEntities",[]);u(this,"operationDeclarations",[]);u(this,"globalEventActionDescriptors",[]);u(this,"loopDeclarations",[]);u(this,"loopDeclarationsBodies",[]);u(this,"conditionDeclarations",[]);u(this,"valueDescriptors",[]);u(this,"dataTypes",[]);u(this,"project");u(this,"instances",{});u(this,"builtInInstances",{});u(this,"errors",[]);u(this,"references",[]);u(this,"initialized",!1);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=Oo==null?void 0:Oo()),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 a=[];return a.push(...et(i)),{errors:a,modifiedData:i}}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}}hydrateAncestors(){const e=[],t=[],i=[];return{updated:m(e),added:m(t),removed:m(i),self:this}}afterAllChildrenInitialized(){const e=[],t=[],i=[];return this.initialized=!0,this.validate(),{updated:m(e),added:m(t),removed:m(i),self:this}}addSelfToProject(){const e=[],t=[],i=[];return{updated:m(e),added:m(t),removed:m(i),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(){return this.initialized?this:(this.initialized=!0,this.entities=this.initialData.entities.map(e=>{const t=b(e,this);return t.setParent(this),t.initChildren(),t}),this.projects=this.initialData.projects.map(e=>{const t=b(e,this);return t.setParent(this),t.initChildren(),t}),this.variableDeclarations=this.initialData.variableDeclarations.map(e=>{const t=b(e,this);return t.setParent(this),t.initChildren(),t}),this.variableInstances=this.initialData.variableInstances.map(e=>{const t=b(e,this);return t.setParent(this),t.initChildren(),t}),this.conditions=this.initialData.conditions.map(e=>{const t=b(e,this);return t.setParent(this),t.initChildren(),t}),this.operations=this.initialData.operations.map(e=>{const t=b(e,this);return t.setParent(this),t.initChildren(),t}),this.functions=this.initialData.functions.map(e=>{const t=b(e,this);return t.setParent(this),t.initChildren(),t}),this.events=this.initialData.events.map(e=>{const t=b(e,this);return t.setParent(this),t.initChildren(),t}),this.functionCalls=this.initialData.functionCalls.map(e=>{const t=b(e,this);return t.setParent(this),t.initChildren(),t}),this.loops=this.initialData.loops.map(e=>{const t=b(e,this);return t.setParent(this),t.initChildren(),t}),this.searches=this.initialData.searches.map(e=>{const t=b(e,this);return t.setParent(this),t.initChildren(),t}),this.attachOrphanReferences(),this.afterAllChildrenInitialized(),this)}subscribeInstance(e){return(!this.instances[e.id]||this.instances[e.id]!==e)&&(this.instances[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}findSubscribedInstance(e){return this.instances[e.id]||null}findSubscribedBuiltInInstance(e){return this.builtInInstances[e.id]||null}get(e){return this.instances[e]||this.builtInInstances[e]||null}getManaged(e){return 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}sync(e){return super.sync(e),this.name=e.name||this.name,this.description=e.description||this.description,this.x=e.x||this.x,this.y=e.y||this.y,this}async load(e=L,...t){return await ae.repository.load(this.id,...t),this}async create(e=L,...t){return await ae.repository.create(this.toShallowJSON(),...t),this}async update(e=L,...t){return await ae.repository.update(this.toShallowJSON(),...t),this}async delete(e=L,...t){return await ae.repository.delete(this.id,...t),this}remove({ignoreUpstream:e}={ignoreUpstream:!1}){return{affected:[],removed:[]}}restore({seenEntities:e}={seenEntities:new Set}){return{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),Array.from(e))}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,a=this.getAllBuiltInIds();return Object.keys(this.instances).forEach(o=>{if(a.includes(o)){t.set(o,o);return}t.set(o,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(o=>o.toJSONClone({...e,seenEntityMaps:t,seenEntities:i,newId:null})),projects:this.projects.map(o=>o.toJSONClone({...e,seenEntityMaps:t,seenEntities:i,newId:null})),variableDeclarations:this.variableDeclarations.map(o=>o.toJSONClone({...e,seenEntityMaps:t,seenEntities:i,newId:null})),variableInstances:this.variableInstances.map(o=>o.toJSONClone({...e,seenEntityMaps:t,seenEntities:i,newId:null})),conditions:this.conditions.map(o=>o.toJSONClone({...e,seenEntityMaps:t,seenEntities:i,newId:null})),operations:this.operations.map(o=>o.toJSONClone({...e,seenEntityMaps:t,seenEntities:i,newId:null})),functions:this.functions.map(o=>o.toJSONClone({...e,seenEntityMaps:t,seenEntities:i,newId:null})),events:this.events.map(o=>o.toJSONClone({...e,seenEntityMaps:t,seenEntities:i,newId:null})),functionCalls:this.functionCalls.map(o=>o.toJSONClone({...e,seenEntityMaps:t,seenEntities:i,newId:null})),loops:this.loops.map(o=>o.toJSONClone({...e,seenEntityMaps:t,seenEntities:i,newId:null})),searches:this.searches.map(o=>o.toJSONClone({...e,seenEntityMaps:t,seenEntities:i,newId:null}))}}toReference(e=F){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:r.GenericReference,entityId:t,version:this.version,entityType:this.type}}toShallowJSON(e=F){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(a=>a.toReference(e)),functions:this.functions.map(a=>a.toReference(e)),events:this.events.map(a=>a.toReference(e)),projects:this.projects.map(a=>a.toReference(e)),variableDeclarations:this.variableDeclarations.map(a=>a.toReference(e)),variableInstances:this.variableInstances.map(a=>a.toReference(e)),conditions:this.conditions.map(a=>a.toReference(e)),operations:this.operations.map(a=>a.toReference(e)),functionCalls:this.functionCalls.map(a=>a.toReference(e)),loops:this.loops.map(a=>a.toReference(e)),searches:this.searches.map(a=>a.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=Q3(),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=b(e,this);return this.addDefinitionEntity(t),t}addDefinitionEntity(e){return this.entities.includes(e)||this.entities.push(e),e}addFunctionDeclarationFromTransfer(e){const t=b(e,this);return this.addFunctionDeclaration(t),t}addFunctionDeclaration(e){return this.functions.includes(e)||this.functions.push(e),e}addFunctionCallFromTransfer(e){const t=b(e,this);return this.addFunctionCall(t),t}addFunctionCall(e){return this.functionCalls.includes(e)||this.functionCalls.push(e),e}addVariableDeclarationFromTransfer(e){const t=b(e,this);return this.addVariableDeclaration(t),t}addVariableDeclaration(e){return this.variableDeclarations.includes(e)||this.variableDeclarations.push(e),e}addVariableInstanceFromTransfer(e){const t=b(e,this);return this.addVariableInstance(t),t}addVariableInstance(e){return this.variableInstances.includes(e)||this.variableInstances.push(e),e}addInstalledProjectFromTransfer(e){const t=b(e,this);return this.addInstalledProject(t),this}addInstalledProject(e){return this.projects.includes(e)||this.projects.push(e),this}addGlobalEventFromTransfer(e){const t=b(e,this);return this.addGlobalEvent(t),this}addGlobalEvent(e){return this.events.includes(e)||this.events.push(e),this}addConditionFromTransfer(e){const t=b(e,this);return this.addCondition(t),this}addCondition(e){return this.conditions.includes(e)||this.conditions.push(e),this}addOperationFromTransfer(e){const t=b(e,this);return this.addOperation(t),this}addOperation(e){return this.operations.includes(e)||this.operations.push(e),this}addLoopFromTransfer(e){const t=b(e,this);return this.addLoop(t),this}addLoop(e){return this.loops.includes(e)||this.loops.push(e),this}addSearchFromTransfer(e){const t=b(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!==r.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 a=ze(i);return[...t,...a.filter(o=>o.type===r.Condition)]},[]),...this.functionCalls.reduce((t,i)=>{const a=ze(i);return[...t,...a.filter(o=>o.type===r.Condition)]},[]),...this.operations.reduce((t,i)=>{const a=ze(i);return[...t,...a.filter(o=>o.type===r.Condition)]},[]),...this.loops.reduce((t,i)=>{const a=ze(i);return[...t,...a.filter(o=>o.type===r.Condition)]},[]),...this.searches.reduce((t,i)=>{const a=ze(i);return[...t,...a.filter(o=>o.type===r.Condition)]},[])]}getOperations(){return[...this.operations,...this.getEntryPoints().reduce((t,i)=>{const a=ze(i);return[...t,...a.filter(o=>o.type===r.Operation)]},[]),...this.functionCalls.reduce((t,i)=>{const a=ze(i);return[...t,...a.filter(o=>o.type===r.Operation)]},[]),...this.conditions.reduce((t,i)=>{const a=ze(i);return[...t,...a.filter(o=>o.type===r.Operation)]},[]),...this.loops.reduce((t,i)=>{const a=ze(i);return[...t,...a.filter(o=>o.type===r.Operation)]},[]),...this.searches.reduce((t,i)=>{const a=ze(i);return[...t,...a.filter(o=>o.type===r.Operation)]},[])]}getFunctionCalls(){return[...this.functionCalls,...this.getEntryPoints().reduce((t,i)=>{const a=ze(i);return[...t,...a.filter(o=>o.type===r.FunctionCall)]},[]),...this.conditions.reduce((t,i)=>{const a=ze(i);return[...t,...a.filter(o=>o.type===r.FunctionCall)]},[]),...this.operations.reduce((t,i)=>{const a=ze(i);return[...t,...a.filter(o=>o.type===r.FunctionCall)]},[]),...this.loops.reduce((t,i)=>{const a=ze(i);return[...t,...a.filter(o=>o.type===r.FunctionCall)]},[]),...this.searches.reduce((t,i)=>{const a=ze(i);return[...t,...a.filter(o=>o.type===r.FunctionCall)]},[])]}getVariables(){return[...this.variableDeclarations,...this.getEntryPoints().reduce((t,i)=>{const a=Ue(i);return[...t,...a]},[]),...this.functionCalls.reduce((t,i)=>{const a=Ue(i);return[...t,...a]},[]),...this.conditions.reduce((t,i)=>{const a=Ue(i);return[...t,...a]},[]),...this.operations.reduce((t,i)=>{const a=Ue(i);return[...t,...a]},[]),...this.loops.reduce((t,i)=>{const a=Ue(i);return[...t,...a]},[]),...this.searches.reduce((t,i)=>{const a=Ue(i);return[...t,...a]},[])]}getVariableInstances(){return[...this.variableInstances,...this.getEntryPoints().reduce((t,i)=>{const o=Ue(i).filter(l=>l.type===r.VariableInstance);return[...t,...o]},[]),...this.functionCalls.reduce((t,i)=>{const o=Ue(i).filter(l=>l.type===r.VariableInstance);return[...t,...o]},[]),...this.conditions.reduce((t,i)=>{const o=Ue(i).filter(l=>l.type===r.VariableInstance);return[...t,...o]},[]),...this.operations.reduce((t,i)=>{const o=Ue(i).filter(l=>l.type===r.VariableInstance);return[...t,...o]},[]),...this.loops.reduce((t,i)=>{const o=Ue(i).filter(l=>l.type===r.VariableInstance);return[...t,...o]},[]),...this.searches.reduce((t,i)=>{const o=Ue(i).filter(l=>l.type===r.VariableInstance);return[...t,...o]},[])]}getVariableDeclarations(){return m([...this.variableDeclarations,...this.getEntryPoints().reduce((t,i)=>{const o=Ue(i).filter(l=>l.type===r.VariableDeclaration);return[...t,...o]},[]),...this.functionCalls.reduce((t,i)=>{const o=Ue(i).filter(l=>l.type===r.VariableDeclaration);return[...t,...o]},[]),...this.conditions.reduce((t,i)=>{const o=Ue(i).filter(l=>l.type===r.VariableDeclaration);return[...t,...o]},[]),...this.operations.reduce((t,i)=>{const o=Ue(i).filter(l=>l.type===r.VariableDeclaration);return[...t,...o]},[]),...this.loops.reduce((t,i)=>{const o=Ue(i).filter(l=>l.type===r.VariableDeclaration);return[...t,...o]},[]),...this.searches.reduce((t,i)=>{const o=Ue(i).filter(l=>l.type===r.VariableDeclaration);return[...t,...o]},[])])}attachOrphanReferences(){const e=this.getVariableInstances(),t=this.getVariableDeclarations();return e.forEach(i=>{if(!i.declaration){const a=i.initialData,o=a.declaration.entityId||a.declaration.id,l=t.find(d=>d.id===o);l&&i.setDeclaration(l)}}),this}getBuiltInPersistedEntity(){return this.builtInBaseEntities.find(e=>e.name===k.PERSISTED_ENTITY)||null}};u(ae,"UUID",{isBackup:!0,uuid:()=>Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15),fromUUID:e=>e}),u(ae,"repository",{create:async(e,...t)=>e,update:async(e,...t)=>e,delete:async(e,...t)=>{},load:async(e,...t)=>null}),u(ae,"type",r.Project),u(ae,"USER_MANAGED_PARENT_TYPES",[]),u(ae,"PARENT_TYPES",[...ae.USER_MANAGED_PARENT_TYPES]),u(ae,"MUTABLE_BASE_PROPERTIES",["name","description"]),u(ae,"INMUTABLE_BASE_PROPERTIES",["id","type","version"]),u(ae,"BASE_PROPERTIES",[...ae.MUTABLE_BASE_PROPERTIES,...ae.INMUTABLE_BASE_PROPERTIES]),u(ae,"MUTABLE_META_PROPERTIES",[...ae.MUTABLE_BASE_PROPERTIES,"x","y"]),u(ae,"INMUTABLE_META_PROPERTIES",[...ae.INMUTABLE_BASE_PROPERTIES]),u(ae,"META_PROPERTIES",[...ae.MUTABLE_META_PROPERTIES,...ae.INMUTABLE_META_PROPERTIES]),u(ae,"MUTABLE_UPSTREAM_PROPERTIES",[]),u(ae,"INMUTABLE_UPSTREAM_PROPERTIES",["primitives","builtInBaseEntities","operationDeclarations","globalEventActionDescriptors","loopDeclarations","builtInInstances"]),u(ae,"UPSTREAM_PROPERTIES",[...ae.MUTABLE_UPSTREAM_PROPERTIES,...ae.INMUTABLE_UPSTREAM_PROPERTIES]),u(ae,"MUTABLE_DOWNSTREAM_PROPERTIES",["entities","projects","functions","events","variableDeclarations","variableInstances","conditions","operations","functionCalls","loops","searches"]),u(ae,"INMUTABLE_DOWNSTREAM_PROPERTIES",[]),u(ae,"DOWNSTREAM_PROPERTIES",[...ae.MUTABLE_DOWNSTREAM_PROPERTIES,...ae.INMUTABLE_DOWNSTREAM_PROPERTIES]),u(ae,"PROPERTIES",[...ae.META_PROPERTIES,...ae.UPSTREAM_PROPERTIES,...ae.DOWNSTREAM_PROPERTIES]);let O=ae;class oP extends Be{constructor(e){super(Tr,e);u(this,"id",ke.Parallel);u(this,"name",ke.Parallel);u(this,"description","Execute a list of actions one after the other");u(this,"version","1");u(this,"autoexecutable",!0);u(this,"initialData",Tr);u(this,"type",r.ActionDescriptor);u(this,"inputs",[]);u(this,"outputs",[]);u(this,"error",null);u(this,"project");this.project=e,this.inputs=Tr.inputs.map(t=>{const i=b(t,this.project);return i.setParent(this),i.initChildren(),i}),this.outputs=Tr.outputs.map(t=>{const i=b(t,this.project);return i.setParent(this),i.initChildren(),i}),this.error=Tr.error?b(Tr.error,this.project):null}}class lP extends Be{constructor(e){super(Lt,e);u(this,"id",Lt.id);u(this,"name",Lt.name);u(this,"description",Lt.description);u(this,"version",Lt.version);u(this,"autoexecutable",!1);u(this,"initialData",Lt);u(this,"type",r.ActionDescriptor);u(this,"inputs",[]);u(this,"outputs",[]);u(this,"error",null);u(this,"project");this.project=e,this.inputs=Lt.inputs.map(t=>{const i=b(t,this.project);return i.setParent(this),i.initChildren(),i}),this.outputs=Lt.outputs.map(t=>{const i=b(t,this.project);return i.setParent(this),i.initChildren(),i}),this.error=Lt.error?b(Lt.error,this.project):null}}class dP extends Be{constructor(e){super(Wr,e);u(this,"id",ke.Sequential);u(this,"name",ke.Sequential);u(this,"description","Execute a list of actions one after the other");u(this,"version","1");u(this,"autoexecutable",!0);u(this,"initialData",Wr);u(this,"type",r.ActionDescriptor);u(this,"inputs",[]);u(this,"outputs",[]);u(this,"error",null);u(this,"project");this.project=e,this.inputs=Wr.inputs.map(t=>{const i=b(t,this.project);return i.setParent(this),i.initChildren(),i}),this.outputs=Wr.outputs.map(t=>{const i=b(t,this.project);return i.setParent(this),i.initChildren(),i}),this.error=Wr.error?b(Wr.error,this.project):null}}class kq extends Be{constructor(s){super(ga,s)}}class Zq extends Be{constructor(s){super(Mn,s)}}class qq extends Be{constructor(e){super(_n,e);u(this,"autoexecutable",!0)}getEntityToMatchInputMap(e){return e.inputs.find(t=>{var i;return((i=t.declaration)==null?void 0:i.id)===N.operation[Ze.Validate].inputs.entityToMatch.id})||null}getDataToValidateInputMap(e){return e.inputs.find(t=>{var i;return((i=t.declaration)==null?void 0:i.id)===N.operation[Ze.Validate].inputs.dataToValidate.id})||null}getOutputDataOutputMap(e){return e.outputs.find(t=>{var i;return((i=t.declaration)==null?void 0:i.id)===N.operation[Ze.Validate].outputs.outputEntity.id})||null}getEntityToMatch(e){let t=null;if(e.readsValue){const a=e.readsValue.getDataType();a&&a.entity&&a.entity.type===r.DefinitionEntity&&(t=a.entity)}const i=e.getDefaultValue();return!t&&i&&i.valueAsType&&!Array.isArray(i.valueAsType)&&i.valueAsType.type===r.DefinitionEntity&&(t=i.valueAsType),t}syncOperationInstance(e){const t=this.getEntityToMatchInputMap(e);t&&this.syncEntityToMatchInputMapDataType(t);const i=this.getDataToValidateInputMap(e);i&&this.syncDataToValidateInputMapDataType(i);const a=this.getOutputDataOutputMap(e);return a&&this.syncOutputDataOutputMapDataType(a),e}syncEntityToMatchInputMapDataType(e){var i,a,o;if(((i=e.declaration)==null?void 0:i.id)!==N.operation[Ze.Validate].inputs.entityToMatch.id)return null;if(!e.dataType){const l={id:O.UUID.uuid(),version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:r.DataType,isList:!1,andChildrenGroup:null,orChildrenGroup:null,asType:!0,entity:null,like:!0,inferred:!0,parent:e.toReference()},d=b(l,e.project);d.setParent(e),d.initChildren(),e.setDataType(d)}(a=e.dataType)==null||a.sync({inferred:!0,like:!1,asType:!0});const t=this.getEntityToMatch(e);return(o=e.dataType)==null||o.setEntity(t),e.dataType}syncDataToValidateInputMapDataType(e){var o,l,d;if(((o=e.declaration)==null?void 0:o.id)!==N.operation[Ze.Validate].inputs.dataToValidate.id)return null;const t=this.getEntityToMatchInputMap(e.parent);if(!t||!this.getEntityToMatch(t))return null;if(!e.dataType){const h={id:O.UUID.uuid(),version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:r.DataType,isList:!1,andChildrenGroup:null,orChildrenGroup:null,asType:!1,entity:null,like:!0,inferred:!0,parent:e.toReference()},y=b(h,e.project);y.setParent(e),y.initChildren(),e.setDataType(y)}(l=e.dataType)==null||l.sync({inferred:!0,like:!0,asType:!1});const a=this.getEntityToMatch(t);return(d=e.dataType)==null||d.setEntity(a),e.dataType}syncOutputDataOutputMapDataType(e){var o,l,d;if(((o=e.declaration)==null?void 0:o.id)!==N.operation[Ze.Validate].outputs.outputEntity.id)return null;const t=this.getEntityToMatchInputMap(e.parent);if(!t||!this.getEntityToMatch(t))return null;if(!e.dataType){const h={id:O.UUID.uuid(),version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:r.DataType,isList:!1,andChildrenGroup:null,orChildrenGroup:null,asType:!1,entity:null,like:!0,inferred:!0,parent:e.toReference()},y=b(h,e.project);y.setParent(e),y.initChildren(),e.setDataType(y)}(l=e.dataType)==null||l.sync({inferred:!0,like:!0,asType:!1});const a=this.getEntityToMatch(t);return(d=e.dataType)==null||d.setEntity(a),e.dataType}inferInputMapDataType(e){var t,i;return((t=e.declaration)==null?void 0:t.id)===N.operation[Ze.Validate].inputs.entityToMatch.id?this.syncEntityToMatchInputMapDataType(e):((i=e.declaration)==null?void 0:i.id)===N.operation[Ze.Validate].inputs.dataToValidate.id?this.syncDataToValidateInputMapDataType(e):null}inferOutputMapDataType(e){var t;return((t=e.declaration)==null?void 0:t.id)===N.operation[Ze.Validate].outputs.outputEntity.id?this.syncOutputDataOutputMapDataType(e):null}}class Jq extends Be{constructor(s){super(id,s)}}class Wq extends Be{constructor(s){super(sd,s)}}class Yq extends Be{constructor(s){super(od,s)}}class Hq extends Be{constructor(s){super(Ls,s)}}class zq extends Be{constructor(s){super(Ms,s)}}class Kq extends Be{constructor(s){super(Ra,s)}}function Xq(n){const s=[new dP(n),new oP(n),new lP(n),new kq(n),new Zq(n),new qq(n),new Hq(n),new Jq(n),new Yq(n),new Wq(n),new zq(n),new Kq(n),new Be(nd,n),new Be(rd,n)];return s.forEach(e=>{e.initChildren(),n.subscribeBuiltInInstance(e)}),n.operationDeclarations=s,s}class uP extends xr{constructor(e){super(gt,e);u(this,"initialData");u(this,"id",k.PERSISTED_ENTITY);u(this,"version","1");u(this,"name",k.PERSISTED_ENTITY);u(this,"description",gt.description);u(this,"type",r.BuiltInBaseEntity);u(this,"abstract",gt.abstract);u(this,"static",gt.static);u(this,"properties",[]);u(this,"methods",[]);u(this,"abstractMethods",[]);u(this,"extends",[]);u(this,"errors",[]);u(this,"project");this.initialData=gt,this.project=e,this.id=gt.id,this.version=gt.version,this.name=gt.name,this.static=gt.static,this.abstract=gt.abstract,this.properties=this.initialData.properties.map(t=>{const i=b(t,this.project);return i.setParent(this),i.initChildren(),i}),this.methods=this.initialData.methods.map(t=>{const i=b(t,this.project);return i.parent=this,i}),this.abstractMethods=this.initialData.abstractMethods.map(t=>{const i=b(t,this.project);return i.parent=this,i}),this.extends=this.initialData.extends.map(t=>b(t,this.project))}}function Qq(n){const s=[new uP(n),new xr(Sa,n),new xr(Vr,n),new xr(Qs,n)];return s.forEach(e=>{n.subscribeBuiltInInstance(e)}),n.builtInBaseEntities=s,s}function eJ(n){const s=[new yr(X,n),new yr(kr,n),new yr(ue,n),new yr(vt,n),new yr(Zr,n),new yr(Pr,n),new yr(qr,n),new yr(Si,n)];return s.forEach(e=>{n.subscribeBuiltInInstance(e)}),n.primitives=s,s}function tJ(n){const s=[new Be(to,n)];return s.forEach(e=>{e.initChildren(),n.subscribeBuiltInInstance(e)}),n.globalEventActionDescriptors=s,s}function rJ(n){const s=[new Be(Da,n),new Be(cn,n),new Be(Ia,n),new Be(Ci,n),new Be(wi,n),new Be(Zs,n)];s.forEach(t=>{t.initChildren(),n.subscribeBuiltInInstance(t)}),n.loopDeclarations=s;const e=[new Be(Ys,n),new Be(Aa,n),new Be(Js,n),new Be(Rd,n),new Be(bd,n),new Be(qs,n)];return e.forEach(t=>{t.initChildren(),n.subscribeBuiltInInstance(t)}),n.loopDeclarationsBodies=e,s}function nJ(n){const s=[new vi(ro,n)];return s.forEach(e=>{e.initChildren(),n.subscribeBuiltInInstance(e)}),n.valueDescriptors=s,s}function iJ(n){const s=[new Be(Fn,n),new Be(Li,n)];return s.forEach(e=>{e.initChildren(),n.subscribeBuiltInInstance(e)}),n.operationDeclarations=s,s}const bi={},ql={};async function aJ(n,s={}){const e={...qI};return e.id=n.id,s.empty?{data:{id:n.id,type:r.Project,version:"1",createdAt:$().toDate(),author:"1",previousVersion:null,deleted:!1,name:null,description:null,projects:[],entities:[],operations:[],functions:[],variableDeclarations:[],variableInstances:[],functionCalls:[],conditions:[],loops:[],searches:[],events:[]}}:{data:e}}function Fp(n){const s=new O(n);return eJ(s),Qq(s),Xq(s),tJ(s),rJ(s),nJ(s),iJ(s),s.getAllBuiltIn().forEach(t=>{s.builtInInstances[t.id]||(s.builtInInstances[t.id]=t,delete s.instances[t.id])}),s}function sJ(n){const s=new Map,e=n.getAllBuiltInIds();Object.keys(n.instances).forEach(i=>{if(e.includes(i)){s.set(i,i);return}s.set(i,O.UUID.uuid())});const t=Fp(n.toShallowJSON({seenEntityMaps:s}));return new Ip(n).visit(i=>{const a=b(i.toShallowJSON({seenEntityMaps:s}),t);a.hydrateAncestors(),a.addSelfToProject()}).visit(i=>{const a=t.get(s.get(i.id));a&&a.afterAllChildrenInitialized()}),t.afterAllChildrenInitialized(),t}function cP(n){const s=Fp(n);return new Ip(n).visit(e=>{const t=b(e,s);t.hydrateAncestors(),t.addSelfToProject()}).visit(e=>{const t=s.get(e.id);t&&t.afterAllChildrenInitialized()}),s.afterAllChildrenInitialized(),s}async function oJ(n,s={}){if(n.id&&bi[n.id])return bi[n.id];if(n.id&&ql[n.id])return await ql[n.id],bi[n.id];const e=aJ(n,s);n.id&&(ql[n.id]=e);const t=await e;if(t.data){const i=cP(t.data);return bi[n.id]=i,n.id&&delete ql[n.id],i}return null}function lJ(n){return bi[n.id]&&delete bi[n.id],null}const dJ="test_primitive_entities_export";c.AI_VALUE_CONNECTION_GENERATION_ACTION_EXPLANATION=Ep,c.ALL_BUILT_IN_BASE_ENTITIES=gE,c.ALL_BUILT_IN_CONDITION_ENTITIES=NE,c.ALL_BUILT_IN_GLOBAL_EVENT_ENTITIES=GE,c.ALL_BUILT_IN_LOOP_BODY_ENTITIES=KT,c.ALL_BUILT_IN_LOOP_ENTITIES=zT,c.ALL_BUILT_IN_OPERATION_ENTITIES=l0,c.ALL_BUILT_IN_PRIMITIVE_ENTITIES=Xp,c.ALL_BUILT_IN_TOP_LEVEL_ENTITIES=xE,c.ALL_BUILT_IN_VALUE_DESCRIPTORS=UE,c.ActionDescriptorState=Be,c.ActionInputMapState=M7,c.ActionOutputMapState=L7,c.AppendToListOperationInputIds=of,c.AppendToListOperationOutputIds=lf,c.ArgumentDeclarationState=mi,c.BREAK_AND_CONTINUE_STATEMENTS_RETURN_DECLARATIONS_EXPLANATION=fp,c.BUILT_IN_BASE_ENTITY_IDS=N,c.BUILT_IN_ENTITY_TYPES=Dr,c.BaseCanvasDraggableState=Lq,c.BaseEntityNames=k,c.BaseState=Nq,c.BaseValueDescriptorIds=Bs,c.BreakStatementState=fa,c.BuiltInBaseEntityState=xr,c.CACHED_PROJECTS_BY_ID=bi,c.CALLABLE_ENTITIES_EXPLANATION=W7,c.CALLABLE_TYPES=Ir,c.CALLER_ENTITIES_EXPLANATION=q1,c.CALLER_TYPES=Ar,c.CALLS_UPDATE_EXPLANATION=Pn,c.COMPARISON_CONDITIONS=ME,c.CONDITIONS=_E,c.CUSTOM_ENTITY_OPERATIONS=Pm,c.CallableEntityClass=$q,c.CallerEntityClass=$p,c.ChildEntityState=Gq,c.ComparisonOperatorTypes=nt,c.ConditionState=ci,c.ContinueStatementState=kt,c.CreateNewInputIds=em,c.CreateNewOutputIds=tm,c.DRAGGABLE_CALLABLE_TYPES=zl,c.DRAGGABLE_CALLER_TYPES=kp,c.DRAGGABLE_ELEMENT_TYPES=ws,c.DRAGGABLE_EXECUTABLE_TYPES=TP,c.DRAGGABLE_PASS_THROUGH_CALLABLE_TYPES=Cs,c.DRAGGABLE_PASS_THROUGH_CALLABLE_TYPES_WITH_OUTPUTS=Hl,c.DataTypeCompatibilityTypes=pr,c.DataTypeParentChildRelation=yt,c.DataTypeState=ca,c.DefinitionEntityState=gi,c.EDITABLE_PERSISTANCE_REPOSITORY_DEFAULTS=Mq,c.ENTITIES_WITH_VALLUES_EXPLANATION=Sl,c.ENTITY_PERSISTANCE_OPTIONS_DEFAULTS=L,c.ENTITY_RECUSION_OPTIONS_DEFAULTS=F,c.ENTITY_TYPES=vP,c.ENTITY_WITH_DECLARATION_TYPES=fP,c.ENTITY_WITH_LOGIC_SCOPE_TYPES=lt,c.ENTITY_WITH_NAMES_TYPES=Zp,c.ENTITY_WITH_PARENT_TYPES=hP,c.ENTITY_WITH_USER_MANAGED_DECLARATION_TYPES=xp,c.ENTITY_WITH_USER_MANAGED_SINGLE_IMPLEMENTS_TYPES=yP,c.ENTITY_WITH_VALUE_TYPES=Up,c.ENTRY_POINT_ENTITIES_EXPLANATION=Rs,c.ENTRY_POINT_TYPES=Xe,c.EVENT_TYPES=Pi,c.EXECUTABLE_TYPES=mP,c.EXECUTION_OPERATIONS=Qf,c.EntityError=Hn,c.EntityErrorSeverity=E,c.EntityGenerationError=g,c.EntityGenerationErrorCode=T,c.EntityInstanceErrorCode=U,c.EntityOperations=Ze,c.EntityType=r,c.EntityWithLogicScopeClass=jq,c.EntityWithValueClass=xq,c.EntryPointEntityClass=Fq,c.ExecutionOperations=ke,c.ExecutionTerminationType=j1,c.FunctionCallState=Ei,c.FunctionDeclarationState=li,c.GLOBAL_EVENT_DECLARATIONS=LE,c.GetLastInListOperationInputIds=Yy,c.GetLastInListOperationOutputIds=Hy,c.GlobalEventNames=jr,c.GlobalEventState=pa,c.HTTPOperations=Dt,c.HTTP_OPERATIONS=s0,c.InputMapState=sn,c.InstalledProjectState=fi,c.InternalCallState=ha,c.JoinListOperationInputIds=yy,c.JoinListOperationOutputIds=fy,c.LIST_OPERATIONS=gf,c.ListOperations=oe,c.LiteralValueState=ya,c.LoopState=ui,c.LoopTypes=q,c.NON_INTERACTIVE_BASE_ENTITIES_EXPLANATION=Sn,c.NUMBER_OPERATIONS=Oh,c.NumberOperations=qe,c.OPERATION_DECLARATIONS=o0,c.OperationState=di,c.OutputMapParentChildRelation=Di,c.OutputMapState=on,c.PARENT_AUTO_CALCULATION_FROM_CALLER_EXPLANATION=Ol,c.PASS_THROUGH_CALLABLE_ENTITIES_EXPLANATION=Dn,c.PASS_THROUGH_CALLABLE_TYPES=Ke,c.PASS_THROUGH_CALLABLE_TYPES_WITH_OUTPUTS=jp,c.PROPERTY_NOT_VALUE_READER_WRITTER_EXPLANATION=vp,c.ParallelExecutionOperation=oP,c.PassThroughCallableEntityClass=Uq,c.PersistedEntity=uP,c.PersistedEntityMethods=er,c.PrimitiveEntityState=yr,c.PrimitiveTypes=C,c.ProjectState=O,c.PropertyState=oi,c.READ_ONLY_ENTITY_PERSISTANCE_REPOSITORY=sP,c.RETURN_STATEMENT_RETURN_DECLARATIONS_EXPLANATION=Y7,c.ReturnDeclarationState=sr,c.ReturnStatementState=Ti,c.STANDALONE_CONDITIONS=AE,c.STRING_OPERATIONS=hy,c.ScopeCompatibilityType=Zl,c.SearchState=yi,c.SequentialExecutionOperation=dP,c.SequentialExecutionOperationInputIds=Uf,c.SequentialExecutionOperationOutputIds=xf,c.SharedEntityErrorCode=w,c.SharedStateFunctionality=aP,c.SplitListOperationInputIds=Cy,c.SplitListOperationOutputIds=wy,c.StandaloneOperatorTypes=lr,c.StringOperations=pe,c.TERMINATION_TYPES=Qe,c.Traverser=Ip,c.USER_MANAGED_ENTITY_TYPES=qp,c.UserManagedEntityStateFunctionality=_q,c.VALUE_READING_ENTITIES_EXPLANATION=Tp,c.VALUE_READING_TYPES=un,c.VALUE_WRITING_ENTITIES_EXPLANATION=J1,c.VALUE_WRITING_TYPES=ot,c.VARIABLE_DATA_TYPE_INFERRANCE_EXPLANATION=mp,c.VARIABLE_TYPES=Je,c.ValueAutogenerationType=st,c.ValueDescriptorParentChildRelation=V,c.ValueDescriptorState=vi,c.ValueReadingEntityClass=dn,c.ValueWritingEntityClass=Ps,c.VariableDeclarationState=pi,c.VariableInputMapState=B7,c.VariableInstanceState=hi,c.VariableOutputMapState=N7,c.WaitOperation=lP,c.WaitOperationInputIds=Mf,c.WaitOperationOutputIds=_f,c.appendToListOperation=Ls,c.appendToListOperationElementToAppendArgument=dd,c.appendToListOperationElementToAppendArgumentParentRef=mf,c.appendToListOperationElementToAppendArgumentRef=cf,c.appendToListOperationError=Rf,c.appendToListOperationErrorParentRef=Ef,c.appendToListOperationListArgument=ld,c.appendToListOperationListArgumentParentRef=ff,c.appendToListOperationListArgumentRef=df,c.appendToListOperationListDataType=uf,c.appendToListOperationResultListDataType=yf,c.appendToListOperationResultListReturn=vf,c.appendToListOperationResultListReturnParentRef=Tf,c.appendToListOperationResultListReturnRef=hf,c.appendToListOperationSecondListDataType=pf,c.asGenerationActionExample=Fr,c.booleanPrototype=kr,c.capitalizeFirstLetter=_t,c.checkAreDataTypesCompatible=hr,c.checkAreDefinitionEntitiesCompatibleAsDataType=V1,c.checkArePropertiesCompatibleAsDataType=O1,c.checkIsBranchDependentButNotDirectlyOnBranch=bs,c.checkIsBranchDependentOnBranch=nq,c.checkIsCallableEntityReachable=Ds,c.checkIsCanvasEntity=bq,c.checkIsDetachedBranch=QD,c.checkIsDetachedBranchShallow=Lp,c.checkIsGlobalVariable=Eq,c.checkIsGloballyDeclared=Np,c.checkIsMethod=rP,c.checkIsNestedScope=kl,c.checkScopeCompatibility=As,c.cloneProject=sJ,c.countedLoopActionDescriptor=Da,c.countedLoopActionDescriptorDynamicReturnDeclaration=jT,c.countedLoopActionDescriptorDynamicReturnDeclarationParentRef=xT,c.countedLoopActionDescriptorStringArgumentDeclaration=UT,c.countedLoopActionDescriptorStringArgumentDeclarationDataType=$T,c.countedLoopActionDescriptorStringArgumentDeclarationDataTypeDefaultValue=LT,c.countedLoopActionDescriptorStringArgumentDeclarationDataTypeDefaultValueParentRef=NT,c.countedLoopActionDescriptorStringArgumentDeclarationDataTypeParentRef=GT,c.countedLoopActionDescriptorStringArgumentDeclarationParentRef=FT,c.countedLoopBodyActionDescriptor=Ys,c.countedLoopBodyActionDescriptorAnyDynamicArgument=WT,c.countedLoopBodyActionDescriptorAnyDynamicArgumentParentRef=JT,c.countedLoopBodyActionDescriptorAnyDynamicReturn=HT,c.countedLoopBodyActionDescriptorAnyDynamicReturnParentRef=YT,c.countedLoopBodyActionDescriptorIterationNumberArgumentDeclaration=Ad,c.countedLoopBodyActionDescriptorIterationNumberArgumentDeclarationDataType=ZT,c.countedLoopBodyActionDescriptorIterationNumberArgumentDeclarationDataTypeParentRef=kT,c.countedLoopBodyActionDescriptorIterationNumberArgumentDeclarationParentRef=qT,c.createDefinitionEntityFromJSONObject=Ml,c.createEntityError=le,c.createNestedDataTypeForEntity=nD,c.createNewInstanceOperation=Mn,c.createNewInstanceOperationEntityToInstanciateArgument=dm,c.createNewInstanceOperationEntityToInstanciateArgumentRef=sm,c.createNewInstanceOperationEntityToInstanciateDataType=om,c.createNewInstanceOperationError=hm,c.createNewInstanceOperationErrorParentRef=pm,c.createNewInstanceOperationNewEntityDataArgument=am,c.createNewInstanceOperationNewEntityDataArgumentDataType=im,c.createNewInstanceOperationNewEntityDataArgumentDataTypeParentRef=nm,c.createNewInstanceOperationNewEntityDataArgumentParentRef=rm,c.createNewInstanceOperationOutputEntityDeclaration=cm,c.createNewInstanceOperationOutputEntityDeclarationParentRef=um,c.createNewInstanceOperationRef=lm,c.createSemanticId=x1,c.createStateFromGenerationTargetType=Bq,c.createStateFromType=tt,c.createStateFromTypeAndSubscribe=b,c.cronJobBuiltInBaseEntity=Qs,c.cronJobBuiltInBaseEntityExpressionProperty=EE,c.cronJobBuiltInBaseEntityExpressionPropertyDataTypeRef=DP,c.cronJobBuiltInBaseEntityExpressionPropertyRef=TE,c.cronJobBuiltInBaseEntityRef=vE,c.cronJobTriggeredFunctionDeclarationBlueprint=$d,c.cronJobTriggeredFunctionDeclarationBlueprintParentRef=fE,c.dataTypeCompatibilityToErrorExplanation=eD,c.datePrototype=Pr,c.dateValueAutogenerationSchema=ec,c.definitionEntityToZodSchema=nR,c.deletePersistedEntityMethod=Gd,c.deletePersistedEntityMethodParentRef=eE,c.deleteRootProject=lJ,c.endpointBuiltInBaseEntity=Sa,c.endpointBuiltInBaseEntityRef=tv,c.endpointBuiltInBaseEntityRefFour=Lv,c.endpointBuiltInBaseEntityRefThree=uv,c.endpointBuiltInBaseEntityRefTwo=sv,c.endpointBuiltInCorsProperty=rv,c.endpointBuiltInCorsPropertyDataType=ev,c.endpointBuiltInCorsPropertyDataTypeRef=XT,c.endpointBuiltInCorsPropertyRef=QT,c.endpointBuiltInMethodProperty=Pd,c.endpointBuiltInMethodPropertyDataType=dv,c.endpointBuiltInMethodPropertyDataTypeRef=ov,c.endpointBuiltInMethodPropertyRef=lv,c.endpointBuiltInPathProperty=Dd,c.endpointBuiltInPathPropertyDataType=av,c.endpointBuiltInPathPropertyDataTypeRef=nv,c.endpointBuiltInPathPropertyRef=iv,c.endpointPathParamsArgumentDeclaration=Od,c.endpointPathParamsArgumentDeclarationRef=Rv,c.endpointPathParamsVariableDataType=gv,c.endpointPathParamsVariableDataTypeRef=Ev,c.endpointReachedTriggerActionDescriptor=_d,c.endpointReachedTriggerActionDescriptorRef=bv,c.endpointReachedTriggerActionDescriptorRefFour=Dv,c.endpointReachedTriggerActionDescriptorRefThree=Av,c.endpointReachedTriggerActionDescriptorRefTwo=Iv,c.endpointRequestBodyArgumentDeclaration=Cd,c.endpointRequestBodyArgumentDeclarationRef=yv,c.endpointRequestBodyVariableDataType=fv,c.endpointRequestHeadersArgumentDeclaration=Sd,c.endpointRequestHeadersArgumentDeclarationRef=pv,c.endpointRequestHeadersVariableDataType=hv,c.endpointRequestHeadersVariableDataTypeRef=cv,c.endpointRequestQueryParamsArgumentDeclaration=Vd,c.endpointRequestQueryParamsArgumentDeclarationRef=Tv,c.endpointRequestQueryParamsVariableDataType=vv,c.endpointRequestQueryParamsVariableDataTypeRef=mv,c.endpointResponseBodyDataType=_v,c.endpointResponseBodyReturnDeclaration=Md,c.endpointResponseBodyReturnDeclarationRef=Mv,c.endpointResponseCodeDataType=Sv,c.endpointResponseCodeReturnDeclaration=wd,c.endpointResponseCodeReturnDeclarationRef=Pv,c.endpointResponseHeadersDataType=wv,c.endpointResponseHeadersDataTypeRef=Vv,c.endpointResponseHeadersReturnDeclaration=Bd,c.endpointResponseHeadersReturnDeclarationRef=Cv,c.endpointReturnStatementRef=Ov,c.endpointReturnStatementRefThree=Nv,c.endpointReturnStatementRefTwo=Bv,c.enrichFromKnownEntities=Is,c.enumOptionsProperty=Kp,c.enumOptionsPropertyDataType=Hp,c.enumOptionsPropertyDataTypeRef=Wp,c.enumOptionsPropertyRef=Yp,c.enumPrototype=Zr,c.enumPrototypeRef=zp,c.executionBuiltInBaseEntity=eo,c.executionBuiltInEntityAbortMethod=Fd,c.executionBuiltInEntityAbortMethodParentRef=RE,c.filterOutDuplicateEntities=m,c.filterOutDuplicateErrors=vk,c.findEntityFromKeys=Ap,c.findReferenceToSelfInList=vD,c.findReferencesToSelfInProject=pq,c.flattenActionDescriptor=ED,c.flattenArgumentDeclaration=RD,c.flattenBreakStatement=gD,c.flattenBuiltInBaseEntity=bD,c.flattenCalls=Ur,c.flattenCanvasAncestorsUntil=_l,c.flattenCondition=ID,c.flattenContinueStatement=AD,c.flattenDataType=PD,c.flattenDefinitionEntity=DD,c.flattenDefinitionEntityExtensionAndImplementationTypes=Bp,c.flattenDefinitionEntityExtensionTypes=xl,c.flattenDefinitionEntityExtensions=Cp,c.flattenDefinitionEntityImplementations=wp,c.flattenDefinitionEntityImplementionTypes=Ul,c.flattenDerivedCanvasEntities=Kt,c.flattenDetachedBranch=tP,c.flattenElementCalls=ze,c.flattenElementCallsOnTheSameScope=cq,c.flattenEntity=S,c.flattenFunctionCall=SD,c.flattenFunctionDeclaration=OD,c.flattenGlobalEvent=VD,c.flattenInputMap=CD,c.flattenInstalledProject=wD,c.flattenInternalCall=BD,c.flattenLiteralValue=MD,c.flattenLoop=_D,c.flattenOperation=ND,c.flattenOutputMap=LD,c.flattenPrimitiveEntity=GD,c.flattenProject=$D,c.flattenProjectElements=TD,c.flattenProperty=FD,c.flattenRelatedCanvasElementsOnTheLeft=KD,c.flattenRelatedCanvasElementsOnTheRight=zD,c.flattenReturnDeclaration=UD,c.flattenReturnStatement=xD,c.flattenSearch=jD,c.flattenValueDescriptor=kD,c.flattenVariableDeclaration=ZD,c.flattenVariableInstance=qD,c.flattenVariableReads=mD,c.flattenVariableWrites=fD,c.flattenVariables=Ue,c.fromZodParseToEntityGenerationErrors=pp,c.generate=VO,c.generateActionExample=H7,c.generateExecutionDataType=n7,c.generateIdFromStrategy=it,c.generateMutablePropertiesExplanation=Al,c.generateRandomBoolean=CR,c.generateRandomDate=oR,c.generateRandomDateAfter=iR,c.generateRandomDateBefore=aR,c.generateRandomDateBetweenRange=sR,c.generateRandomNumber=DR,c.generateRandomNumberAfter=bR,c.generateRandomNumberBefore=IR,c.generateRandomNumberBetweenRange=AR,c.generateRandomText=VR,c.generateRandomTextAfter=PR,c.generateRandomTextBefore=SR,c.generateRandomTextBetweenRange=OR,c.generateUniqueUUID=gR,c.getAllActionDescriptorsForConditions=wl,c.getAllActionDescriptorsForGlobalEvents=Vl,c.getAllActionDescriptorsForLoops=Cl,c.getAllActionDescriptorsForOperations=Q7,c.getAllBuiltInEntityIds=$l,c.getAllGloballyDeclaredFunctionDeclarationsExplanation=K1,c.getBaseBuiltInEntities=Vn,c.getBaseSchemaBasedOnType=k1,c.getBuiltInEntityOwner=Cn,c.getCallableEntityReferenceSchema=Et,c.getCallableEntityTypeSchema=mA,c.getCalledBy=or,c.getCallerEntityReferenceSchema=I3,c.getCallerEntityTypeSchema=b3,c.getCalls=Sp,c.getCanvasEntitiesDerivedFromInternalCalls=HD,c.getCanvasEntitiesDerivedFromWrites=ma,c.getCanvasEntityDerivedFromValueReadingEntity=Fl,c.getCanvasEntityDerivedFromValueReadingEntityFromTransfer=YD,c.getCanvasEntityReferenceSchema=U3,c.getCanvasEntityTypeSchema=F3,c.getChildrenEntityWithValues=aq,c.getColumnProperties=Sq,c.getCommonAncestor=Pp,c.getCommonChildren=iD,c.getDatabaseEntities=Dq,c.getDatabaseEntity=Oq,c.getDeclaration=si,c.getDeepestScope=iP,c.getDefinitionEntityExtends=Ta,c.getDraggableCallableEntityReferenceSchema=vA,c.getDraggableCallableEntityTypeSchema=TA,c.getDraggableCallerEntityReferenceSchema=D3,c.getDraggableCallerEntityTypeSchema=A3,c.getDraggableExecutableEntityReferenceSchema=V3,c.getDraggableExecutableEntityTypeSchema=O3,c.getDraggablePassThroughCallableEntityReferenceSchema=ul,c.getDraggablePassThroughCallableEntityTypeSchema=dl,c.getDraggablePlayableEntityReferenceSchema=_3,c.getDraggablePlayableEntityTypeSchema=M3,c.getEntityArgumentDeclarations=Vp,c.getEntityInputMaps=JD,c.getEntityOutputMaps=mq,c.getEntityReferenceSchema=$3,c.getEntityReturnDeclarations=WD,c.getEntityTypeSchema=G3,c.getEntityWithLogicScopeReferenceSchema=rn,c.getEntityWithLogicScopeTypeSchema=C3,c.getEntityWithValueReferenceSchema=fA,c.getEntityWithValueTypeSchema=g3,c.getEntryPointEntityReferenceSchema=Tt,c.getEntryPointEntityTypeSchema=bn,c.getEventEntityReferenceSchema=ol,c.getEventEntityTypeSchema=sl,c.getExecutableEntityReferenceSchema=S3,c.getExecutableEntityTypeSchema=P3,c.getExtendedBuiltInEntity=Tq,c.getExtendedDefinitionEntity=Mp,c.getGenerationTargetSchemaBasedOnType=Z1,c.getHeadIfPartOfDetachedBranch=eP,c.getHighestScope=nP,c.getImplementedBuiltInEntity=vq,c.getIsInteractive=_p,c.getLastInListOperation=od,c.getLastInListOperationError=sf,c.getLastInListOperationErrorParentRef=af,c.getLastInListOperationInputListArgument=tf,c.getLastInListOperationInputListArgumentParentRef=ef,c.getLastInListOperationInputListArgumentRef=zy,c.getLastInListOperationInputListDataType=Ky,c.getLastInListOperationOutputElementDataType=Qy,c.getLastInListOperationOutputElementReturn=nf,c.getLastInListOperationOutputElementReturnParentRef=rf,c.getLastInListOperationOutputElementReturnRef=Xy,c.getLinkedEntitiesFromArgumentDeclaration=uq,c.getLowestPersistedEntityImplementation=XD,c.getParentCallableEntity=aD,c.getParentCallerEntity=oD,c.getParentCanvasEntities=Zt,c.getParentCanvasEntity=It,c.getParentCanvasEntityFromTransfer=Nl,c.getParentEntryPoint=iq,c.getParentPassthroughCallableEntity=sD,c.getPassThroughCallableEntityReferenceSchema=We,c.getPassThroughCallableEntityTypeSchema=ll,c.getPeristedEntities=Aq,c.getPlayableEntityReferenceSchema=B3,c.getPlayableEntityTypeSchema=w3,c.getProject=oJ,c.getPrototypeByType=jl,c.getReferenceEntityId=P,c.getReferencedEntitiesStateOrErrors=Pl,c.getReferencedEntityStateOrErrors=hp,c.getReferencedIds=Gl,c.getRelatedCanvasElementsOnTheLeft=Ri,c.getRelatedCanvasElementsOnTheLeftFromTransfer=hq,c.getRelatedCanvasElementsOnTheRight=On,c.getRootEntryPointScopeOwner=Gp,c.getScopeOwner=qt,c.getTerminationReferenceSchema=L3,c.getTerminationTypeSchema=N3,c.getUsedArgFromDeclaration=yq,c.getUsedReturnFromDeclaration=fq,c.getValueReadingEntityReferenceSchema=yA,c.getValueReadingEntityTypeSchema=tn,c.getValueWritingEntityReferenceSchema=R3,c.getValueWritingEntityTypeSchema=us,c.getVariableFromInputMapping=dD,c.getVariableFromReturnVariablePointer=pD,c.getVariableReferenceSchema=gn,c.getVariableTypeSchema=ei,c.getVariablesFromArgumentDeclarations=Ll,c.getVariablesFromInputMaps=uD,c.getVariablesFromOutputMapping=hD,c.getVariablesFromOutputMaps=yD,c.getVariablesFromReturnDeclarations=cD,c.getVariablesInSameOrHigherScope=ap,c.getWrites=Op,c.groupCallsBasedOnParallelizableExecution=oq,c.handleAfterEntityImplementationSideEffects=rD,c.handleBeforeEntityImplementationSideEffects=tD,c.httpRequestBodyArgument=Us,c.httpRequestBodyArgumentRef=Fm,c.httpRequestBodyDataType=Um,c.httpRequestHeadersArgument=Fs,c.httpRequestHeadersArgumentRef=Gm,c.httpRequestHeadersDataType=$m,c.httpRequestMethodArgument=Gs,c.httpRequestMethodArgumentRef=Nm,c.httpRequestMethodDataType=Lm,c.httpRequestMethodDataTypeRef=Mm,c.httpRequestOperation=ga,c.httpRequestOperationErrorValueDescriptor=fd,c.httpRequestOperationErrorValueDescriptorDatatype=a0,c.httpRequestOperationErrorValueDescriptorRef=i0,c.httpRequestOperationRef=e0,c.httpRequestOperationRefEight=r0,c.httpRequestOperationRefFive=Xm,c.httpRequestOperationRefFour=Km,c.httpRequestOperationRefNine=n0,c.httpRequestOperationRefSeven=t0,c.httpRequestOperationRefSix=Qm,c.httpRequestOperationRefThree=zm,c.httpRequestOperationRefTwo=Hm,c.httpRequestQueryParamsArgument=yd,c.httpRequestQueryParamsArgumentRef=wm,c.httpRequestQueryParamsDataType=Bm,c.httpRequestVariableURLArgument=$s,c.httpRequestVariableURLArgumentRef=Vm,c.httpRequestVariableURLDataType=Cm,c.httpRequestVariableURLDataTypeRef=Sm,c.httpResponseBodyReturnDataType=Ym,c.httpResponseBodyReturnDataTypeRef=Jm,c.httpResponseBodyReturnReturn=ks,c.httpResponseBodyReturnReturnRef=Wm,c.httpResponseCodeDataType=jm,c.httpResponseCodeReturn=xs,c.httpResponseCodeReturnRef=xm,c.httpResponseHeadersDataType=qm,c.httpResponseHeadersDataTypeRef=km,c.httpResponseHeadersReturn=js,c.httpResponseHeadersReturnRef=Zm,c.implement=Bl,c.inferArgumentDeclarationDataType=C1,c.inferDataType=$r,c.inferInputMapDataType=rp,c.inferOutputMapDataType=ip,c.inferPropertyDataType=M1,c.inferReturnDeclarationDataType=np,c.inferValueDescriptorDataType=_1,c.inferVariableDeclarationDataType=B1,c.inferVariableInstanceDataType=w1,c.initBaseProjectEntity=Fp,c.initProject=cP,c.isPromise=bp,c.iterateOverListActionDescriptorListArgumentDeclaration=F0,c.iterateOverListActionDescriptorListArgumentDeclarationDataType=G0,c.iterateOverListActionDescriptorListArgumentDeclarationDataTypeParentRef=L0,c.iterateOverListActionDescriptorListArgumentDeclarationParentRef=$0,c.iterateOverListLoopActionDescriptor=cn,c.iterateOverListLoopActionDescriptorDynamicReturnDeclaration=x0,c.iterateOverListLoopActionDescriptorDynamicReturnDeclarationParentRef=U0,c.iterateOverListLoopBodyActionDescriptor=Aa,c.iterateOverListLoopBodyActionDescriptorAnyDynamicArgument=z0,c.iterateOverListLoopBodyActionDescriptorAnyDynamicArgumentParentRef=H0,c.iterateOverListLoopBodyActionDescriptorAnyDynamicReturn=X0,c.iterateOverListLoopBodyActionDescriptorAnyDynamicReturnParentRef=K0,c.iterateOverListLoopBodyActionDescriptorCurrentValueArgumentDeclaration=Ws,c.iterateOverListLoopBodyActionDescriptorCurrentValueArgumentDeclarationDataType=k0,c.iterateOverListLoopBodyActionDescriptorCurrentValueArgumentDeclarationDataTypeParentRef=j0,c.iterateOverListLoopBodyActionDescriptorCurrentValueArgumentDeclarationParentRef=Z0,c.iterateOverListLoopBodyActionDescriptorIterationNumberArgumentDeclaration=Y0,c.iterateOverListLoopBodyActionDescriptorIterationNumberArgumentDeclarationDataType=J0,c.iterateOverListLoopBodyActionDescriptorIterationNumberArgumentDeclarationDataTypeParentRef=q0,c.iterateOverListLoopBodyActionDescriptorIterationNumberArgumentDeclarationParentRef=W0,c.iterateOverObjectKeysActionDescriptorObjectArgumentDeclaration=nT,c.iterateOverObjectKeysActionDescriptorObjectArgumentDeclarationDataType=tT,c.iterateOverObjectKeysActionDescriptorObjectArgumentDeclarationDataTypeParentRef=eT,c.iterateOverObjectKeysActionDescriptorObjectArgumentDeclarationParentRef=rT,c.iterateOverObjectKeysLoopActionDescriptor=Ci,c.iterateOverObjectKeysLoopActionDescriptorDynamicReturnDeclaration=aT,c.iterateOverObjectKeysLoopActionDescriptorDynamicReturnDeclarationParentRef=iT,c.iterateOverObjectKeysLoopBodyActionDescriptor=Rd,c.iterateOverObjectKeysLoopBodyActionDescriptorAnyDynamicArgument=yT,c.iterateOverObjectKeysLoopBodyActionDescriptorAnyDynamicArgumentParentRef=hT,c.iterateOverObjectKeysLoopBodyActionDescriptorAnyDynamicReturn=mT,c.iterateOverObjectKeysLoopBodyActionDescriptorAnyDynamicReturnParentRef=fT,c.iterateOverObjectKeysLoopBodyActionDescriptorCurrentValueArgumentDeclaration=Ed,c.iterateOverObjectKeysLoopBodyActionDescriptorCurrentValueArgumentDeclarationDataType=oT,c.iterateOverObjectKeysLoopBodyActionDescriptorCurrentValueArgumentDeclarationDataTypeParentRef=sT,c.iterateOverObjectKeysLoopBodyActionDescriptorCurrentValueArgumentDeclarationParentRef=lT,c.iterateOverObjectKeysLoopBodyActionDescriptorIterationNumberArgumentDeclaration=pT,c.iterateOverObjectKeysLoopBodyActionDescriptorIterationNumberArgumentDeclarationDataType=uT,c.iterateOverObjectKeysLoopBodyActionDescriptorIterationNumberArgumentDeclarationDataTypeParentRef=dT,c.iterateOverObjectKeysLoopBodyActionDescriptorIterationNumberArgumentDeclarationParentRef=cT,c.iterateOverObjectValuesActionDescriptorObjectArgumentDeclaration=gT,c.iterateOverObjectValuesActionDescriptorObjectArgumentDeclarationDataType=ET,c.iterateOverObjectValuesActionDescriptorObjectArgumentDeclarationDataTypeParentRef=vT,c.iterateOverObjectValuesActionDescriptorObjectArgumentDeclarationParentRef=RT,c.iterateOverObjectValuesLoopActionDescriptor=wi,c.iterateOverObjectValuesLoopActionDescriptorDynamicReturnDeclaration=IT,c.iterateOverObjectValuesLoopActionDescriptorDynamicReturnDeclarationParentRef=bT,c.iterateOverObjectValuesLoopBodyActionDescriptor=bd,c.iterateOverObjectValuesLoopBodyActionDescriptorAnyDynamicArgument=BT,c.iterateOverObjectValuesLoopBodyActionDescriptorAnyDynamicArgumentParentRef=wT,c.iterateOverObjectValuesLoopBodyActionDescriptorAnyDynamicReturn=_T,c.iterateOverObjectValuesLoopBodyActionDescriptorAnyDynamicReturnParentRef=MT,c.iterateOverObjectValuesLoopBodyActionDescriptorCurrentValueArgumentDeclaration=gd,c.iterateOverObjectValuesLoopBodyActionDescriptorCurrentValueArgumentDeclarationDataType=DT,c.iterateOverObjectValuesLoopBodyActionDescriptorCurrentValueArgumentDeclarationDataTypeParentRef=AT,c.iterateOverObjectValuesLoopBodyActionDescriptorCurrentValueArgumentDeclarationParentRef=PT,c.iterateOverObjectValuesLoopBodyActionDescriptorIterationNumberArgumentDeclaration=CT,c.iterateOverObjectValuesLoopBodyActionDescriptorIterationNumberArgumentDeclarationDataType=OT,c.iterateOverObjectValuesLoopBodyActionDescriptorIterationNumberArgumentDeclarationDataTypeParentRef=ST,c.iterateOverObjectValuesLoopBodyActionDescriptorIterationNumberArgumentDeclarationParentRef=VT,c.iterateOverStringActionDescriptorDynamicReturnDeclaration=A0,c.iterateOverStringActionDescriptorDynamicReturnDeclarationParentRef=I0,c.iterateOverStringActionDescriptorStringArgumentDeclaration=b0,c.iterateOverStringActionDescriptorStringArgumentDeclarationDataType=R0,c.iterateOverStringActionDescriptorStringArgumentDeclarationDataTypeParentRef=E0,c.iterateOverStringActionDescriptorStringArgumentDeclarationParentRef=g0,c.iterateOverStringLoopActionDescriptor=Ia,c.iterateOverStringLoopBodyActionDescriptor=Js,c.iterateOverStringLoopBodyActionDescriptorAnyDynamicArgument=B0,c.iterateOverStringLoopBodyActionDescriptorAnyDynamicArgumentParentRef=w0,c.iterateOverStringLoopBodyActionDescriptorAnyDynamicReturn=_0,c.iterateOverStringLoopBodyActionDescriptorAnyDynamicReturnParentRef=M0,c.iterateOverStringLoopBodyActionDescriptorCurrentValueArgumentDeclaration=Td,c.iterateOverStringLoopBodyActionDescriptorCurrentValueArgumentDeclarationDataType=P0,c.iterateOverStringLoopBodyActionDescriptorCurrentValueArgumentDeclarationDataTypeParentRef=D0,c.iterateOverStringLoopBodyActionDescriptorCurrentValueArgumentDeclarationParentRef=S0,c.iterateOverStringLoopBodyActionDescriptorIterationNumberArgumentDeclaration=vd,c.iterateOverStringLoopBodyActionDescriptorIterationNumberArgumentDeclarationDataType=V0,c.iterateOverStringLoopBodyActionDescriptorIterationNumberArgumentDeclarationDataTypeParentRef=O0,c.iterateOverStringLoopBodyActionDescriptorIterationNumberArgumentDeclarationParentRef=C0,c.joinListOperation=id,c.joinListOperationError=Vy,c.joinListOperationErrorParentRef=Oy,c.joinListOperationFirstListArgument=Iy,c.joinListOperationFirstListArgumentParentRef=by,c.joinListOperationFirstListArgumentRef=my,c.joinListOperationFirstListDataType=Ty,c.joinListOperationResultListDataType=gy,c.joinListOperationResultListReturn=Sy,c.joinListOperationResultListReturnParentRef=Py,c.joinListOperationResultListReturnRef=Ry,c.joinListOperationSecondListArgument=Dy,c.joinListOperationSecondListArgumentParentRef=Ay,c.joinListOperationSecondListArgumentRef=vy,c.joinListOperationSecondListDataType=Ey,c.joinListWithLastSeparator=K,c.joinStringsOperation=Ra,c.joinStringsOperationDynamicStringArgument=Hh,c.joinStringsOperationDynamicStringArgumentParentRef=Yh,c.joinStringsOperationDynamicStringArgumentRef=Jh,c.joinStringsOperationDynamicStringDataType=Wh,c.joinStringsOperationError=qh,c.joinStringsOperationErrorParentRef=Zh,c.joinStringsOperationFirstStringArgument=_s,c.joinStringsOperationFirstStringArgumentParentRef=Nh,c.joinStringsOperationFirstStringArgumentRef=Vh,c.joinStringsOperationFirstStringDataType=Ch,c.joinStringsOperationResultStringDataType=_h,c.joinStringsOperationResultStringReturn=Ea,c.joinStringsOperationResultStringReturnParentRef=kh,c.joinStringsOperationResultStringReturnRef=Mh,c.joinStringsOperationSecondStringArgument=Ns,c.joinStringsOperationSecondStringArgumentParentRef=jh,c.joinStringsOperationSecondStringArgumentRef=wh,c.joinStringsOperationSecondStringDataType=Bh,c.joinStringsOperationSeparatorStringArgument=xh,c.joinStringsOperationSeparatorStringArgumentParentRef=Uh,c.joinStringsOperationSeparatorStringArgumentRef=Lh,c.joinStringsOperationSeparatorStringDataType=Fh,c.joinStringsOperationSeparatorStringDataTypeDefaultValue=$h,c.joinStringsOperationSeparatorStringDataTypeDefaultValueParentRef=Gh,c.keyValuePrototype=Si,c.lowercaseFirstLetter=vl,c.manualFlowActionDescriptorDeclarationArgumentDeclaration=md,c.manualFlowActionDescriptorDeclarationArgumentDeclarationDataType=p0,c.manualFlowActionDescriptorDeclarationArgumentDeclarationDataTypeParentRef=c0,c.manualFlowActionDescriptorDeclarationArgumentDeclarationParentRef=h0,c.manualFlowLoopActionDescriptor=Zs,c.manualFlowLoopActionDescriptorDynamicReturnDeclaration=u0,c.manualFlowLoopActionDescriptorDynamicReturnDeclarationParentRef=d0,c.manualFlowLoopBodyActionDescriptor=qs,c.manualFlowLoopBodyActionDescriptorAnyDynamicArgument=f0,c.manualFlowLoopBodyActionDescriptorAnyDynamicArgumentParentRef=y0,c.manualFlowLoopBodyActionDescriptorAnyDynamicReturn=T0,c.manualFlowLoopBodyActionDescriptorAnyDynamicReturnParentRef=m0,c.mapActionDescriptorToTypeItRepresents=Iq,c.mergeEntityErrorsList=Ek,c.mergeListOfEntities=Rq,c.methodDefaultValue=_m,c.mockClientProject=qI,c.moreThanOrEqualCondition=Li,c.moreThanOrEqualConditionLeftHandArgument=OE,c.moreThanOrEqualConditionLeftHandArgumentDataType=PE,c.moreThanOrEqualConditionLeftHandArgumentDataTypeParentRef=DE,c.moreThanOrEqualConditionLeftHandArgumentParentRef=SE,c.moreThanOrEqualConditionRightHandArgument=BE,c.moreThanOrEqualConditionRightHandArgumentDataType=CE,c.moreThanOrEqualConditionRightHandArgumentDataTypeParentRef=VE,c.moreThanOrEqualConditionRightHandArgumentParentRef=wE,c.notEmptyCondition=Fn,c.notEmptyConditionArgument=IE,c.notEmptyConditionRef=bE,c.nullPrototype=Jp,c.numberAdditionOperation=Ms,c.numberAdditionOperationDynamicSummandArgument=ch,c.numberAdditionOperationDynamicSummandArgumentType=uh,c.numberAdditionOperationDynamicSummandArgumentTypeParentRef=dh,c.numberAdditionOperationError=lh,c.numberAdditionOperationErrorParentRef=oh,c.numberAdditionOperationFirstNumberArgument=Kl,c.numberAdditionOperationFirstNumberArgumentRef=Qp,c.numberAdditionOperationFirstNumberDataType=eh,c.numberAdditionOperationRef=ah,c.numberAdditionOperationRefThree=Ql,c.numberAdditionOperationRefTwo=sh,c.numberAdditionOperationResultNumberDataType=ih,c.numberAdditionOperationResultNumberReturn=ed,c.numberAdditionOperationResultNumberReturnRef=nh,c.numberAdditionOperationSecondNumberArgument=Xl,c.numberAdditionOperationSecondNumberArgumentRef=th,c.numberAdditionOperationSecondNumberDataType=rh,c.numberPrototype=ue,c.numberSubtractionOperation=rd,c.numberSubtractionOperationDynamicSubtrahendArgument=Sh,c.numberSubtractionOperationDynamicSubtrahendArgumentType=Ph,c.numberSubtractionOperationDynamicSubtrahendArgumentTypeParentRef=Dh,c.numberSubtractionOperationError=Ah,c.numberSubtractionOperationErrorParentRef=Ih,c.numberSubtractionOperationFirstNumberArgument=vh,c.numberSubtractionOperationFirstNumberArgumentRef=ph,c.numberSubtractionOperationFirstNumberDataType=hh,c.numberSubtractionOperationRef=td,c.numberSubtractionOperationRefThree=gh,c.numberSubtractionOperationRefTwo=Eh,c.numberSubtractionOperationResultNumberDataType=Th,c.numberSubtractionOperationResultNumberReturn=bh,c.numberSubtractionOperationResultNumberReturnRef=mh,c.numberSubtractionOperationSecondNumberArgument=Rh,c.numberSubtractionOperationSecondNumberArgumentRef=yh,c.numberSubtractionOperationSecondNumberDataType=fh,c.numberValueAutogenerationSchema=Qu,c.parallelExecutionOperation=Tr,c.parallelExecutionOperationError=Bf,c.parallelExecutionOperationErrorParentRef=wf,c.parallelExecutionOperationListOfExecutionResultsDataType=Of,c.parallelExecutionOperationListOfExecutionResultsReturn=cd,c.parallelExecutionOperationListOfExecutionResultsReturnRef=Sf,c.parallelExecutionOperationListOfFunctionsArgument=ud,c.parallelExecutionOperationListOfFunctionsArgumentDatatype=Pf,c.parallelExecutionOperationListOfFunctionsArgumentRef=Df,c.parallelExecutionOperationListOfFunctionsBlueprint=Af,c.parallelExecutionOperationListOfFunctionsBlueprintDynamicInput=If,c.parallelExecutionOperationListOfFunctionsBlueprintDynamicOutput=bf,c.parallelExecutionOperationRef=Vf,c.parallelExecutionOperationRefThree=Cf,c.persistedBuiltInBaseEntity=gt,c.persistedBuiltInBaseEntityDatabaseProperty=Mi,c.persistedBuiltInBaseEntityDatabasePropertyDataType=nE,c.persistedBuiltInBaseEntityDatabasePropertyDataTypeRef=IP,c.persistedBuiltInBaseEntityDatabasePropertyParentRef=iE,c.persistedBuiltInBaseEntityDatabasePropertyRef=rE,c.persistedBuiltInBaseEntityPrimaryKeyProperty=_i,c.persistedBuiltInBaseEntityPrimaryKeyPropertyDataType=pE,c.persistedBuiltInBaseEntityPrimaryKeyPropertyNumberDataTypeOption=sE,c.persistedBuiltInBaseEntityPrimaryKeyPropertyNumberDataTypeOptionParentRef=aE,c.persistedBuiltInBaseEntityPrimaryKeyPropertyParentRef=hE,c.persistedBuiltInBaseEntityPrimaryKeyPropertyRef=cE,c.persistedBuiltInBaseEntityPrimaryKeyPropertyStringDataTypeOption=lE,c.persistedBuiltInBaseEntityPrimaryKeyPropertyStringDataTypeOptionParentRef=oE,c.persistedBuiltInBaseEntityPrimaryKeyPropertyUUIDDataTypeOption=uE,c.persistedBuiltInBaseEntityPrimaryKeyPropertyUUIDDataTypeOptionParentRef=dE,c.processOutputGlobalValueDescriptorDataType=FE,c.processOutputGlobalValueDescriptorReturn=ro,c.processOutputGlobalValueDescriptorReturnRef=$E,c.projectPublicationCompletedGlobalEvent=to,c.propertyToZodSchema=rR,c.relationalDatabaseBuiltInBaseEntity=Vr,c.relationalDatabaseBuiltInBaseEntityAutoscalingProperty=Ld,c.relationalDatabaseBuiltInBaseEntityAutoscalingPropertyDataType=Xv,c.relationalDatabaseBuiltInBaseEntityAutoscalingPropertyDataTypeRef=Kv,c.relationalDatabaseBuiltInBaseEntityAutoscalingPropertyParentRef=Qv,c.relationalDatabaseBuiltInBaseEntityAutoscalingPropertyRef=zv,c.relationalDatabaseBuiltInBaseEntityDefaultProperty=Nd,c.relationalDatabaseBuiltInBaseEntityDefaultPropertyDataType=Hv,c.relationalDatabaseBuiltInBaseEntityDefaultPropertyDataTypeRef=Wv,c.relationalDatabaseBuiltInBaseEntityDefaultPropertyRef=Yv,c.relationalDatabaseBuiltInBaseEntityIdentifierProperty=Hs,c.relationalDatabaseBuiltInBaseEntityIdentifierPropertyDataType=Fv,c.relationalDatabaseBuiltInBaseEntityIdentifierPropertyDataTypeRef=Gv,c.relationalDatabaseBuiltInBaseEntityIdentifierPropertyRef=$v,c.relationalDatabaseBuiltInBaseEntityMinSizeProperty=Xs,c.relationalDatabaseBuiltInBaseEntityMinSizePropertyDataType=Jv,c.relationalDatabaseBuiltInBaseEntityMinSizePropertyDataTypeRef=Zv,c.relationalDatabaseBuiltInBaseEntityMinSizePropertyRef=qv,c.relationalDatabaseBuiltInBaseEntityPasswordProperty=Ks,c.relationalDatabaseBuiltInBaseEntityPasswordPropertyDataType=kv,c.relationalDatabaseBuiltInBaseEntityPasswordPropertyDataTypeRef=bP,c.relationalDatabaseBuiltInBaseEntityPasswordPropertyRef=jv,c.relationalDatabaseBuiltInBaseEntityRef=Bi,c.relationalDatabaseBuiltInBaseEntityUsernameProperty=zs,c.relationalDatabaseBuiltInBaseEntityUsernamePropertyDataType=xv,c.relationalDatabaseBuiltInBaseEntityUsernamePropertyDataTypeRef=gP,c.relationalDatabaseBuiltInBaseEntityUsernamePropertyRef=Uv,c.resolveActionDescriptorName=U1,c.resolveBaseEntityName=L1,c.resolveBuiltInBaseEntityDataTypeLabel=G1,c.resolveClonedEntityProject=at,c.resolveConditionOperatorLabel=bl,c.resolveDataType=El,c.resolveDataTypeEntityOrNestedChildrenFromLiteralValue=Dp,c.resolveDataTypeLabel=gl,c.resolveDefinitionEntityDataTypeLabel=l7,c.resolveEntityDataTypeLabel=o7,c.resolveEntityName=B,c.resolveFirstCallsSecond=lq,c.resolveFirstWritesSecond=dq,c.resolvePrimaryKeyProperty=Pq,c.resolvePrimitiveEntityName=F1,c.resolveSearchName=$1,c.resolveVariableScope=i7,c.sequentialExecutionOperation=Wr,c.sequentialExecutionOperationError=Xf,c.sequentialExecutionOperationErrorParentRef=Kf,c.sequentialExecutionOperationListOfExecutionResultsDataType=Yf,c.sequentialExecutionOperationListOfExecutionResultsReturn=hd,c.sequentialExecutionOperationListOfExecutionResultsReturnParentRef=zf,c.sequentialExecutionOperationListOfExecutionResultsReturnRef=Wf,c.sequentialExecutionOperationListOfFunctionsArgument=pd,c.sequentialExecutionOperationListOfFunctionsArgumentDatatype=Jf,c.sequentialExecutionOperationListOfFunctionsArgumentParentRef=Hf,c.sequentialExecutionOperationListOfFunctionsArgumentRef=qf,c.sequentialExecutionOperationListOfFunctionsBlueprint=Zf,c.sequentialExecutionOperationListOfFunctionsBlueprintDynamicInput=kf,c.sequentialExecutionOperationListOfFunctionsBlueprintDynamicOutput=jf,c.softDeletePersistedEntityMethod=AP,c.softDeletePersistedEntityMethodParentRef=yE,c.sortCallsBasedOnExecutionDependencies=lD,c.sortChildrenEntitiesBasedOnExecutionDependencies=sq,c.splitListOperation=sd,c.splitListOperationError=Wy,c.splitListOperationErrorParentRef=Jy,c.splitListOperationFirstOutputListDataType=Ly,c.splitListOperationFirstOutputListReturn=jy,c.splitListOperationFirstOutputListReturnParentRef=xy,c.splitListOperationFirstOutputListReturnRef=ad,c.splitListOperationInputListArgument=$y,c.splitListOperationInputListArgumentParentRef=Gy,c.splitListOperationInputListArgumentRef=By,c.splitListOperationInputListDataType=My,c.splitListOperationSecondOutputListDataType=ky,c.splitListOperationSecondOutputListReturn=qy,c.splitListOperationSecondOutputListReturnParentRef=Zy,c.splitListOperationSplitIndexArgument=Uy,c.splitListOperationSplitIndexArgumentParentRef=Fy,c.splitListOperationSplitIndexArgumentRef=_y,c.splitListOperationSplitIndexDataType=Ny,c.splitStringOperation=nd,c.splitStringOperationError=py,c.splitStringOperationErrorParentRef=cy,c.splitStringOperationFirstPartResultStringDataType=ty,c.splitStringOperationFirstPartResultStringReturn=uy,c.splitStringOperationFirstPartResultStringReturnParentRef=dy,c.splitStringOperationFirstPartResultStringReturnRef=ey,c.splitStringOperationIndexArgument=oy,c.splitStringOperationIndexArgumentParentRef=sy,c.splitStringOperationIndexArgumentRef=Xh,c.splitStringOperationIndexDataType=Qh,c.splitStringOperationSecondPartResultStringDataType=ny,c.splitStringOperationSecondPartResultStringReturn=EP,c.splitStringOperationSecondPartResultStringReturnParentRef=ly,c.splitStringOperationSecondPartResultStringReturnRef=ry,c.splitStringOperationStringArgument=ay,c.splitStringOperationStringArgumentParentRef=iy,c.splitStringOperationStringArgumentRef=zh,c.splitStringOperationStringDataType=Kh,c.stringPrototype=X,c.stringValueAutogenerationSchema=Xu,c.suggestNewIdForEntity=cp,c.test_primitive_entities_export=dJ,c.toCamelCase=a7,c.toEntityState=Xt,c.toKebabCase=N1,c.toLowerCaseKebabCase=Rl,c.toPascalCase=s7,c.untypedDataPrototype=vt,c.updateErrorsList=xe,c.updateValueReader=gq,c.urlDefaultValue=Om,c.uuidPrototype=qr,c.validateArgumentDeclarationName=dp,c.validateCalledByErrorIdInAction=K7,c.validateCalledByIdInAction=z7,c.validateCallers=z1,c.validateConditionEntityDeclaration=eq,c.validateDataOperation=_n,c.validateDataOperationDataToValidateArgument=Tm,c.validateDataOperationDataToValidateArgumentParentRef=mm,c.validateDataOperationDataToValidateArgumentRef=ym,c.validateDataOperationDataToValidateDataType=fm,c.validateDataOperationEntityToMatchTypeArgument=gm,c.validateDataOperationEntityToMatchTypeArgumentParentRef=Rm,c.validateDataOperationEntityToMatchTypeArgumentRef=vm,c.validateDataOperationEntityToMatchTypeDataType=Em,c.validateDataOperationError=Dm,c.validateDataOperationErrorParentRef=Am,c.validateDataOperationOutputEntityDeclaration=Im,c.validateDataOperationOutputEntityDeclarationParentRef=bm,c.validateDefinitionEntityName=Il,c.validateEntryCaller=H1,c.validateErrorCaller=Y1,c.validateFunctionCallDeclaration=X1,c.validateFunctionDeclarationName=sp,c.validateGeneratedEntityParentIsNotBuiltInEntity=J7,c.validateGeneration=Z7,c.validateGenerationTarget=et,c.validateGenerationUpdate=q7,c.validateLoopEntityDeclaration=tq,c.validateName=d7,c.validateOperationEntityDeclaration=Q1,c.validatePropertyName=lp,c.validateReachability=ln,c.validateReadsValueInActionPayload=X7,c.validateReferenceObject=Dl,c.validateReferenceToOne=yp,c.validateReferences=ft,c.validateReturnDeclarationName=up,c.validateSuccessCaller=W1,c.validateValueReaderGenerationUpdate=gs,c.validateValueWritter=Rp,c.validateVariableDeclarationName=op,c.validateVariableInternalCallUse=gp,c.valueAutogenerationCurrentDateAndTimeSchema=YI,c.valueAutogenerationGenericSchema=qo,c.valueAutogenerationOptions=tc,c.valueAutogenerationOptionsSchema=WI,c.valueAutogenerationRandomBooleanSchema=Ku,c.valueAutogenerationRandomDateBetweenSchema=nA,c.valueAutogenerationRandomDateFromSchema=tA,c.valueAutogenerationRandomDateSchema=Yo,c.valueAutogenerationRandomDateUntilSchema=rA,c.valueAutogenerationRandomNumberBetweenSchema=KI,c.valueAutogenerationRandomNumberFromSchema=HI,c.valueAutogenerationRandomNumberSchema=Jo,c.valueAutogenerationRandomNumberUntilSchema=zI,c.valueAutogenerationRandomSchema=ns,c.valueAutogenerationRandomTextBetweenSchema=eA,c.valueAutogenerationRandomTextFromSchema=XI,c.valueAutogenerationRandomTextSchema=Wo,c.valueAutogenerationRandomTextUntilSchema=QI,c.valueAutogenerationRangeValueTypesSchema=rs,c.valueAutogenerationUniqueSchema=zu,c.waitOperation=Lt,c.waitOperationMillisecondsNumberArgument=Bn,c.waitOperationMillisecondsNumberArgumentRef=Nf,c.waitOperationMillisecondsNumberDataType=Lf,c.waitOperationOperationError=Ff,c.waitOperationOperationErrorParentRef=$f,c.waitOperationRef=Gf,Object.defineProperty(c,Symbol.toStringTag,{value:"Module"})});
406
+ Alternatively you can update the parent data-type entity with 'update' action to remove the existing value of the field.`,issue:null}))}return{errors:a,modifiedData:i}}get allBasePropertiesFromExtendedAndImplementedEntities(){return m([...this.extends.reduce((e,t)=>[...[...t.ownDeclaredProperties,...t.allBasePropertiesFromExtendedAndImplementedEntities].filter(a=>!a.abstract),...e],[]),...this.implements.reduce((e,t)=>[...[...t.ownDeclaredProperties,...t.allBasePropertiesFromExtendedAndImplementedEntities].filter(a=>!a.abstract),...e],[])])}get extendedPropertiesFromOriginalParents(){return m(this.extends.reduce((e,t)=>{const i=[...t.ownDeclaredProperties,...t.extendedPropertiesFromOriginalParents].filter(a=>!a.abstract);return[...e,...i]},[]))}get implementedPropertiesFromOriginalParents(){return m([...this.extends.reduce((e,t)=>{const i=t.implementedPropertiesFromOriginalParents,a=[...t.ownDeclaredProperties].filter(o=>!!o.abstract&&!i.find(l=>l.name===o.name));return[...i,...a,...e]},[]),...this.implements.reduce((e,t)=>{const i=t.implementedPropertiesFromOriginalParents,a=[...t.ownDeclaredProperties].filter(o=>!!o.abstract&&!i.find(l=>l.name===o.name));return[...i,...a,...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 g({id:`${this.id}--${T.InvalidParentUpdate}`,code:T.InvalidParentUpdate,severity:E.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}}hydrateAncestors(){const e=[],t=[],i=[];if(this.initialData.parent){const a=P(this.initialData.parent),o=this.project.get(a);o&&(this.setParent(o),e.push(o))}return this.initialData.extends.forEach(a=>{const o=P(a),l=this.project.get(o);l&&(this.addExtension(l),e.push(l))}),this.initialData.implements.forEach(a=>{const o=P(a),l=this.project.get(o);l&&(this.addImplementation(l),e.push(l))}),{updated:m(e),added:m(t),removed:m(i),self:this}}afterAllChildrenInitialized(){const e=[],t=[],i=[];return this.initialized=!0,this.syncImplementationProperties(),this.addExtendedProperties(),this.addSuggestions(),{updated:m(e),added:m(t),removed:m(i),self:this}}addSelfToProject(){const e=[this],t=[],i=[];if(this.parent.type===r.DataType){const a=this.parent;a.entity=this,e.push(a)}else this.project.addDefinitionEntity(this);return{updated:m(e),added:m(t),removed:m(i),self:this}}setParent(e){return this.parent=e,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(){return this.initialized?this:(this.initialized=!0,this.properties=this.initialData.properties.map(e=>{const t=b(e,this.project);return t.setParent(this),t.initChildren(),t}),this.methods=this.initialData.methods.map(e=>{const t=b(e,this.project);return t.setParent(this),t.initChildren(),t}),this.abstractMethods=this.initialData.abstractMethods.map(e=>{const t=b(e,this.project);return t.setParent(this),t.initChildren(),t}),this.extends=this.initialData.extends.map(e=>b(e,this.project)),this.implements=this.initialData.implements.map(e=>b(e,this.project)),this.afterAllChildrenInitialized(),this)}syncImplementationProperties(){const e=this.properties,t=this.implementedPropertiesFromOriginalParents,i=[...this.allBasePropertiesFromExtendedAndImplementedEntities,...e];return t.filter(o=>!i.find(d=>{var h;return((h=d.implements)==null?void 0:h.id)===o.id})).forEach(o=>{if(this.properties.find(y=>{var f;return((f=y.implements)==null?void 0:f.id)===o.id}))return;const d=this.properties.find(y=>y.name===o.name&&!!y.abstract&&!y.implements);if(d){d.implements=o,d.abstract=!1;return}const h=o.clone(this,O.UUID.uuid());h.initChildren(),h.implements=o,h.abstract=!1,this.addProperty(h)}),this}addExtendedProperties(){const e=this.properties,t=this.extendedPropertiesFromOriginalParents,i=t.filter(o=>t.find(d=>{var h;return((h=d.implements)==null?void 0:h.id)===o.id})?!1:!o.abstract),a=new Set(e.map(o=>o.name));return i.forEach(o=>{if(a.has(o.name))return;a.add(o.name);const l=o.clone(this,O.UUID.uuid());l.initChildren(),this.addProperty(l)}),this}addSuggestions(){return this.implements.forEach(e=>{s5(this,e).forEach(a=>{const o=a.toJSON();o.id=`_suggestion--parent--${this.id}--${a.id}`;const l=b(o,this.project);l.suggestion=!0,l.setParent(this),l.initChildren(),this.addSuggestedProperty(l)}),o5(this,e).forEach(a=>{const o=`_suggestion--parent--${this.id}--${a.id}`,l=a.implementAsFunctionDeclaration(o),d=b(l,this.project);if(d.suggestion=!0,d.setParent(this),d.initChildren(),d.inputs.forEach(h=>{h.suggestion=!0}),d.returnStatements.length){const h=d.returnStatements[0];h.suggestion=!0,h.outputs.forEach(y=>{y.suggestion=!0})}this.addSuggestedMethod(d)})}),this}subscribe(){return this.project.subscribeInstance(this),this}unsubscribe(){return this.project.unsubscribeInstance(this),this}sync(e){return super.sync(e),this.name=e.name||this.name,this.x=e.x||this.x,this.y=e.y||this.y,this.static=e.static||this.static,this.abstract=e.abstract||this.abstract,this}async load(e=L,...t){return await we.repository.load(this.id,...t),this}async create(e=L,...t){return await we.repository.create(this.toShallowJSON(),...t),this}async update(e=L,...t){return await we.repository.update(this.toShallowJSON(),...t),this}async delete(e=L,...t){return await we.repository.delete(this.id,...t),this}remove({ignoreUpstream:e,seenEntities:t}={ignoreUpstream:!1,seenEntities:new Set}){const i=[],a=[];return t.has(this.id)?{affected:[],removed:[]}:(t.add(this.id),a.push(this),this.unsubscribe(),this.properties.forEach(o=>{const{affected:l,removed:d}=o.remove({ignoreUpstream:!0,seenEntities:t});i.push(...l),a.push(...d)}),this.methods.forEach(o=>{const{affected:l,removed:d}=o.remove({ignoreUpstream:!0,seenEntities:t});i.push(...l),a.push(...d)}),this.abstractMethods.forEach(o=>{const{affected:l,removed:d}=o.remove({ignoreUpstream:!0,seenEntities:t});i.push(...l),a.push(...d)}),this.suggestedProperties.forEach(o=>{const{affected:l,removed:d}=o.remove({ignoreUpstream:!0,seenEntities:t});i.push(...l),a.push(...d)}),this.suggestedMethods.forEach(o=>{const{affected:l,removed:d}=o.remove({ignoreUpstream:!0,seenEntities:t});i.push(...l),a.push(...d)}),{affected:m(i),removed:m(a)})}restore({seenEntities:e}={seenEntities:new Set}){const t=[];return e.has(this.id)?{affected:[],self:this}:(e.add(this.id),this.subscribe(),this.properties.forEach(i=>{const{affected:a}=i.restore({seenEntities:e});t.push(...a)}),this.methods.forEach(i=>{const{affected:a}=i.restore({seenEntities:e});t.push(...a)}),this.abstractMethods.forEach(i=>{const{affected:a}=i.restore({seenEntities:e});t.push(...a)}),this.suggestedProperties.forEach(i=>{const{affected:a}=i.restore({seenEntities:e});t.push(...a)}),this.suggestedMethods.forEach(i=>{const{affected:a}=i.restore({seenEntities:e});t.push(...a)}),{affected:m(t),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)])}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=F){var i,a,o,l,d;let t;return(i=e.seenEntityMaps)!=null&&i.has(this.id)?t=e.seenEntityMaps.get(this.id):(t=e.newId||it(this,this.project,e.uuidStrategy),e.seenEntityMaps&&e.seenEntityMaps.set(this.id,t)),(a=e.seenEntities)!=null&&a.has(t)||(o=e.seenEntities)!=null&&o.has(this.id)?this.toReference({seenEntityMaps:e.seenEntityMaps}):((l=e.seenEntities)==null||l.add(t),(d=e.seenEntities)==null||d.add(this.id),{id:t,version:"1",createdAt:$().toDate(),author:"1",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(h=>h.toJSONClone({...e,newId:null})),methods:this.methods.map(h=>h.toJSONClone({...e,newId:null})),abstractMethods:this.abstractMethods.map(h=>h.toJSONClone({...e,newId:null})),implements:this.implements.map(h=>h.type===r.BuiltInBaseEntity?h.toJSON():h.toJSONClone({...e,newId:null})),extends:this.extends.map(h=>h.type===r.BuiltInBaseEntity?h.toJSON():h.toJSONClone({...e,newId:null})),parent:this.parent.toReference({seenEntityMaps:e.seenEntityMaps})})}toReference(e=F){var i;let t=this.id;return(i=e.seenEntityMaps)!=null&&i.has(this.id)&&(t=e.seenEntityMaps.get(this.id)),{id:t+"--"+O.UUID.uuid()+"--ref",type:r.GenericReference,entityId:t,version:this.version,entityType:this.type}}toShallowJSON(e=F){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(a=>a.toReference(e)),methods:this.methods.map(a=>a.toReference(e)),abstractMethods:this.abstractMethods.map(a=>a.toReference(e)),implements:this.implements.map(a=>a.toReference(e)),extends:this.extends.map(a=>a.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===r.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===r.DefinitionEntity).flatMap(i=>i.toFlatGenerationTarget(e)),...this.implements.filter(i=>i.type===r.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=a5(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=null,t=null,i=!0){var I,D,A;let a=at(e,this);const o=this.toJSON(),l=t||O.UUID.uuid();o.properties=[],o.methods=[],o.abstractMethods=[];const d=l.split("-id"),h=d[d.length-1||0]||l;o.id=l;const y=tt(o,a);e&&y.setParent(e),i&&y.subscribe(),y.initChildren();const f=(I=this.properties)==null?void 0:I.map(M=>M.clone(y,O.UUID.uuid(),i));y.properties=f;const v=(D=this.methods)==null?void 0:D.map((M,H)=>M.clone(y,h+"-method-"+H+"-id",i));y.methods=v;const R=(A=this.abstractMethods)==null?void 0:A.map((M,H)=>M.clone(y,h+"-abstract-method-"+H+"-id",i));return y.abstractMethods=R,y}getFunctionDeclaration(e){return this.methods.find(t=>t.id===e)}implement(e,t){return Bl(this,e,t)}getAllInteractiveMethods(){const e=this.implements.filter(i=>i.type===r.DefinitionEntity||i.type===r.BuiltInBaseEntity&&i.interactive);return m([...this.methods,...this.extends.flatMap(i=>i.getAllInteractiveMethods()),...e.flatMap(i=>i.getAllInteractiveMethods())])}inferFromInputs(e){if(this.parent.type!==r.DataType||!this.parent.inferred)return this;const t=[];e.forEach(o=>{t.find(d=>B(d,this.project)===B(o,this.project))||t.push(o)});const i=this.properties.filter(o=>!o.getDataType());t.forEach(o=>{const l=i.find(v=>B(v,this.project)===B(o,this.project));if(!l)return;const h=si(o.parent).getMasterInputWithValueWritterFromAllInstances(o),y=$r(h),f=y==null?void 0:y.clone(l,O.UUID.uuid(),!0);f&&l.setDataType(f),o.setDeclaration(l)});const a=[];return t.forEach(o=>{if(!o.declaration){a.push(o);return}}),a.length===0?this:(a.forEach(o=>{const l=this.properties.find(I=>B(I,this.project)===B(o,this.project));if(l){if(o.setDeclaration(l),!l.getDataType()){const D=si(o.parent).getMasterInputWithValueWritterFromAllInstances(o),A=$r(D),M=A==null?void 0:A.clone(l,O.UUID.uuid(),!0);M&&l.setDataType(M)}return}const d={id:O.UUID.uuid(),type:r.Property,version:"1",createdAt:$().toDate(),author:"1",previousVersion:null,deleted:!1,name:B(o,this.project),description:o.description,defaultValue:null,static:!0,abstract:!1,private:!1,hidden:!1,required:!1,constant:!0,index:o.index,implements:null,dataType:null,parent:this.toReference()},h=b(d,this.project);h.setParent(this),h.initChildren();const f=si(o.parent).getMasterInputWithValueWritterFromAllInstances(o),v=$r(f),R=v==null?void 0:v.clone(h,O.UUID.uuid(),!0);return R&&h.setDataType(R),this.addProperty(h),o.setDeclaration(h),h}),this)}};u(we,"repository",{create:async(e,...t)=>e,update:async(e,...t)=>e,delete:async(e,...t)=>{},load:async(e,...t)=>null}),u(we,"type",r.DefinitionEntity),u(we,"USER_MANAGED_PARENT_TYPES",[r.Project,r.DataType]),u(we,"PARENT_TYPES",[...we.USER_MANAGED_PARENT_TYPES]),u(we,"MUTABLE_BASE_PROPERTIES",["name","description","static","abstract"]),u(we,"INMUTABLE_BASE_PROPERTIES",["id","version","type"]),u(we,"BASE_PROPERTIES",[...we.MUTABLE_BASE_PROPERTIES,...we.INMUTABLE_BASE_PROPERTIES]),u(we,"MUTABLE_META_PROPERTIES",[...we.MUTABLE_BASE_PROPERTIES,"x","y"]),u(we,"INMUTABLE_META_PROPERTIES",[...we.INMUTABLE_BASE_PROPERTIES]),u(we,"META_PROPERTIES",[...we.MUTABLE_META_PROPERTIES,...we.INMUTABLE_META_PROPERTIES]),u(we,"MUTABLE_UPSTREAM_PROPERTIES",["extends","implements"]),u(we,"INMUTABLE_UPSTREAM_PROPERTIES",["parent"]),u(we,"UPSTREAM_PROPERTIES",[...we.MUTABLE_UPSTREAM_PROPERTIES,...we.INMUTABLE_UPSTREAM_PROPERTIES]),u(we,"MUTABLE_DOWNSTREAM_PROPERTIES",["properties","methods","abstractMethods"]),u(we,"INMUTABLE_DOWNSTREAM_PROPERTIES",[]),u(we,"DOWNSTREAM_PROPERTIES",[...we.MUTABLE_DOWNSTREAM_PROPERTIES,...we.INMUTABLE_DOWNSTREAM_PROPERTIES]),u(we,"PROPERTIES",[...we.META_PROPERTIES,...we.UPSTREAM_PROPERTIES,...we.DOWNSTREAM_PROPERTIES]);let gi=we;function Cq(n){const s=Lk(),e=n.toJSON();s.safeParse(e).success;const i=[];return xe(n.errors,i)}const Ss=class Ss extends He{constructor(e,t){super(e);u(this,"initialData");u(this,"id");u(this,"version");u(this,"name");u(this,"description",null);u(this,"type",r.BuiltInBaseEntity);u(this,"abstract",!1);u(this,"static");u(this,"properties",[]);u(this,"methods",[]);u(this,"abstractMethods",[]);u(this,"extends",[]);u(this,"interactive",!1);u(this,"errors",[]);u(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 a=b(i,this.project);return a.setParent(this),a.initChildren(),a}),this.methods=this.initialData.methods.map(i=>{const a=b(i,this.project);return a.setParent(this),a.initChildren(),a}),this.abstractMethods=this.initialData.abstractMethods.map(i=>{const a=b(i,this.project);return a.setParent(this),a.initChildren(),a}),this.extends=this.initialData.extends.map(i=>b(i,this.project))}get allBasePropertiesFromExtendedAndImplementedEntities(){return m(this.extends.reduce((e,t)=>{const i=[...t.ownDeclaredProperties,...t.allBasePropertiesFromExtendedAndImplementedEntities].filter(a=>!a.abstract);return[...e,...i]},[]))}get extendedPropertiesFromOriginalParents(){return m(this.extends.reduce((e,t)=>{const i=[...t.ownDeclaredProperties,...t.extendedPropertiesFromOriginalParents].filter(a=>!a.abstract);return[...e,...i]},[]))}get implementedPropertiesFromOriginalParents(){return m([...this.extends.reduce((e,t)=>{const i=t.implementedPropertiesFromOriginalParents,a=[...t.ownDeclaredProperties].filter(o=>!!o.abstract&&!i.find(l=>l.name===o.name));return[...i,...a,...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 load(e=L,...t){return await Ss.repository.load(this.id,...t),this}remove(e={ignoreUpstream:!1,seenEntities:new Set}){return{affected:[],removed:[]}}restore({seenEntities:e}={seenEntities:new Set}){return{affected:[],self: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))])}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=F){return{id:this.id+"--"+O.UUID.uuid()+"--ref",type:r.GenericReference,entityId:this.id,version:this.version,entityType:this.type}}toShallowJSON(e=F){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=Cq(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){return Bl(this,e,t)}getAllInteractiveMethods(){const e=[];return this.interactive&&(e.push(...this.methods),this.extends.filter(i=>i.type===r.BuiltInBaseEntity&&i.interactive||i.type===r.PrimitiveEntity).forEach(i=>{i instanceof Ss&&e.push(...i.getAllInteractiveMethods())})),m(e)}};u(Ss,"repository",{load:async(e,...t)=>null});let xr=Ss;function wq(n){const s=Sk(),e=n.toJSON();s.safeParse(e).success;const i=[];return xe(n.errors,i)}const Jl=class Jl extends He{constructor(e,t){super(e);u(this,"initialData");u(this,"id");u(this,"name");u(this,"description",null);u(this,"type",r.PrimitiveEntity);u(this,"static");u(this,"abstract");u(this,"properties",[]);u(this,"methods",[]);u(this,"abstractMethods",[]);u(this,"extends",[]);u(this,"errors",[]);u(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 a=b(i,this.project);return a.setParent(this),a.initChildren(),a}),this.methods=this.initialData.methods.map(i=>{const a=b(i,this.project);return a.parent=this,a}),this.abstractMethods=this.initialData.abstractMethods.map(i=>{const a=b(i,this.project);return a.parent=this,a})}get allBasePropertiesFromExtendedAndImplementedEntities(){return m(this.extends.reduce((e,t)=>{const i=[...t.ownDeclaredProperties,...t.allBasePropertiesFromExtendedAndImplementedEntities].filter(a=>!a.abstract);return[...e,...i]},[]))}get extendedPropertiesFromOriginalParents(){return m(this.extends.reduce((e,t)=>{const i=[...t.ownDeclaredProperties,...t.extendedPropertiesFromOriginalParents].filter(a=>!a.abstract);return[...e,...i]},[]))}get implementedPropertiesFromOriginalParents(){return m([...this.extends.reduce((e,t)=>{const i=t.implementedPropertiesFromOriginalParents,a=[...t.ownDeclaredProperties].filter(o=>!!o.abstract&&!i.find(l=>l.name===o.name));return[...i,...a,...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 load(e=L,...t){return await Jl.repository.load(this.id,...t),this}remove({ignoreUpstream:e,seenEntities:t}={ignoreUpstream:!1,seenEntities:new Set}){return{affected:[],removed:[]}}restore({seenEntities:e}={seenEntities:new Set}){return{affected:[],self: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))])}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=F){return{id:this.id+"--"+O.UUID.uuid()+"--ref",type:r.GenericReference,entityId:this.id,version:this.version,entityType:this.type}}toShallowJSON(e=F){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=wq(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===r.BuiltInBaseEntity&&i.interactive||i.type===r.PrimitiveEntity).forEach(i=>{i instanceof xr&&e.push(...i.getAllInteractiveMethods())}),m(e)}};u(Jl,"repository",{load:async(e,...t)=>null});let yr=Jl;function tt(n,s){if(!n)throw new Error("Entity is null");const e=s.get(n.id);switch(n.type){case r.LiteralValue:return e||new ya(n,s);case r.DefinitionEntity:return e||new gi(n,s);case r.PrimitiveEntity:return e||new yr(n,s);case r.FunctionDeclaration:return e||new li(n,s);case r.GlobalEvent:return e||new pa(n,s);case r.DataType:return e||new ca(n,s);case r.Property:return e||new oi(n,s);case r.FunctionCall:return e||new Ei(n,s);case r.Condition:return e||new ci(n,s);case r.Operation:return e||new di(n,s);case r.VariableDeclaration:return e||new pi(n,s);case r.VariableInstance:return e||new hi(n,s);case r.OutputMap:return e||new on(n,s);case r.ReturnDeclaration:return e||new sr(n,s);case r.ArgumentDeclaration:return e||new mi(n,s);case r.InputMap:return e||new sn(n,s);case r.Project:return e||new O(n);case r.InstalledProject:return e||new fi(n,s);case r.ActionDescriptor:return e||new Be(n,s);case r.ReturnStatement:return e||new Ti(n,s);case r.Loop:return e||new ui(n,s);case r.Search:return e||new yi(n,s);case r.ValueDescriptor:return e||new vi(n,s);case r.BuiltInBaseEntity:return e||new xr(n,s);case r.InternalCall:return e||new ha(n,s);case r.ContinueStatement:return e||new kt(n,s);case r.BreakStatement:return e||new fa(n,s);case r.GenericReference:return s.get(n.entityId);default:throw new Error("Invalid entity type: "+n.type)}}function b(n,s){if(!n)throw new Error("Entity is null");const e=tt(n,s);return e.subscribe(),e}function Bq(n,s){if(!n)throw new Error("Entity is null");switch(n.type){case r.LiteralValue:return ya.fromGenerationTarget(n,s);case r.DefinitionEntity:return gi.fromGenerationTarget(n,s);case r.FunctionDeclaration:return li.fromGenerationTarget(n,s);case r.GlobalEvent:return pa.fromGenerationTarget(n,s);case r.DataType:return ca.fromGenerationTarget(n,s);case r.Property:return oi.fromGenerationTarget(n,s);case r.FunctionCall:return Ei.fromGenerationTarget(n,s);case r.Condition:return ci.fromGenerationTarget(n,s);case r.Operation:return di.fromGenerationTarget(n,s);case r.VariableDeclaration:return pi.fromGenerationTarget(n,s);case r.VariableInstance:return hi.fromGenerationTarget(n,s);case r.OutputMap:return on.fromGenerationTarget(n,s);case r.ReturnDeclaration:return sr.fromGenerationTarget(n,s);case r.ArgumentDeclaration:return mi.fromGenerationTarget(n,s);case r.InputMap:return sn.fromGenerationTarget(n,s);case r.InstalledProject:return fi.fromGenerationTarget(n,s);case r.ReturnStatement:return Ti.fromGenerationTarget(n,s);case r.Loop:return ui.fromGenerationTarget(n,s);case r.Search:return yi.fromGenerationTarget(n,s);case r.ActionDescriptor:return Be.fromGenerationTarget(n,s);case r.ValueDescriptor:return vi.fromGenerationTarget(n,s);case r.InternalCall:return ha.fromGenerationTarget(n,s);case r.ContinueStatement:return kt.fromGenerationTarget(n,s);case r.BreakStatement:return fa.fromGenerationTarget(n,s);default:throw new Error("Invalid entity type: "+n.type)}}const F={seenEntityMaps:new Map,seenEntities:new Set};class aP{constructor(){u(this,"initialData")}}const L={cascade:!1},sP={load:async(n,...s)=>null},Mq={create:async(n,...s)=>n,update:async(n,...s)=>n,delete:async(n,...s)=>{},...sP};class _q{}class Nq extends aP{}class Lq{}class Gq{}class $q{}class $p{}class Fq extends $p{}class Uq extends $p{}class xq{}class dn{static initReadsValue(s){if(s.initialData.readsValue&&s.initialData.readsValue.type!==r.GenericReference)s.readsValue=b(s.initialData.readsValue,s.project);else if(s.initialData.readsValue&&s.initialData.readsValue.type===r.GenericReference){const e=Xt(s.initialData.readsValue,s.project);e&&(s.readsValue=e)}if(s.readsValue){if(Je.includes(s.readsValue.type)){let e=s.parent;lt.includes(e.type)||(e=e.parent);const t=s.type===r.InputMap&&s.parent.type===r.Loop;t&&(e=s.parent.parent),s.readsValue.setParent(e),s.readsValue.initChildren(),!t&&e.detachedChildren.includes(s)?e.replaceDetachedChild(s,s.readsValue):t||e.subscribeDetachedChild(s.readsValue)}s.readsValue.addValueReader(s)}return s.readsValue}static hydrateReadsValue(s){if(s.initialData.readsValue&&s.initialData.readsValue.type!==r.GenericReference)s.readsValue=b(s.initialData.readsValue,s.project);else if(s.initialData.readsValue&&s.initialData.readsValue.type===r.GenericReference){const e=Xt(s.initialData.readsValue,s.project);e&&(s.readsValue=e)}if(s.readsValue){if(Je.includes(s.readsValue.type)){let e=s.parent;lt.includes(e.type)||(e=e.parent);const t=s.type===r.InputMap&&s.parent.type===r.Loop;t&&(e=s.parent.parent),s.readsValue.setParent(e),!t&&e.detachedChildren.includes(s)?e.replaceDetachedChild(s,s.readsValue):t||e.subscribeDetachedChild(s.readsValue)}s.readsValue.addValueReader(s)}return s.readsValue}}class Ps{static initWritesValues(s,e){const t=s.initialData.writesValues.reduce((a,o)=>{if(o.type===r.GenericReference||s.writesValues.some(d=>d.id===o.id))return a;const l=b(o,s.project);return l.setValueWriter(s),Je.includes(l.type)&&(l.setParent(e),l.initChildren()),[...a,l]},[]),i=[...s.writesValues];return s.writesValues=m([...i,...t]),s.writesValues}}class jq{}const ae=class ae extends He{constructor(e){super(e);u(this,"initialData");u(this,"id");u(this,"type",r.Project);u(this,"name",null);u(this,"description",null);u(this,"x");u(this,"y");u(this,"entities",[]);u(this,"projects",[]);u(this,"functions",[]);u(this,"events",[]);u(this,"variableDeclarations",[]);u(this,"variableInstances",[]);u(this,"conditions",[]);u(this,"operations",[]);u(this,"functionCalls",[]);u(this,"loops",[]);u(this,"searches",[]);u(this,"primitives",[]);u(this,"builtInBaseEntities",[]);u(this,"operationDeclarations",[]);u(this,"globalEventActionDescriptors",[]);u(this,"loopDeclarations",[]);u(this,"loopDeclarationsBodies",[]);u(this,"conditionDeclarations",[]);u(this,"valueDescriptors",[]);u(this,"dataTypes",[]);u(this,"project");u(this,"instances",{});u(this,"builtInInstances",{});u(this,"errors",[]);u(this,"references",[]);u(this,"initialized",!1);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=Oo==null?void 0:Oo()),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 a=[];return a.push(...et(i)),{errors:a,modifiedData:i}}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}}hydrateAncestors(){const e=[],t=[],i=[];return{updated:m(e),added:m(t),removed:m(i),self:this}}afterAllChildrenInitialized(){const e=[],t=[],i=[];return this.initialized=!0,this.validate(),{updated:m(e),added:m(t),removed:m(i),self:this}}addSelfToProject(){const e=[],t=[],i=[];return{updated:m(e),added:m(t),removed:m(i),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(){return this.initialized?this:(this.initialized=!0,this.entities=this.initialData.entities.map(e=>{const t=b(e,this);return t.setParent(this),t.initChildren(),t}),this.projects=this.initialData.projects.map(e=>{const t=b(e,this);return t.setParent(this),t.initChildren(),t}),this.variableDeclarations=this.initialData.variableDeclarations.map(e=>{const t=b(e,this);return t.setParent(this),t.initChildren(),t}),this.variableInstances=this.initialData.variableInstances.map(e=>{const t=b(e,this);return t.setParent(this),t.initChildren(),t}),this.conditions=this.initialData.conditions.map(e=>{const t=b(e,this);return t.setParent(this),t.initChildren(),t}),this.operations=this.initialData.operations.map(e=>{const t=b(e,this);return t.setParent(this),t.initChildren(),t}),this.functions=this.initialData.functions.map(e=>{const t=b(e,this);return t.setParent(this),t.initChildren(),t}),this.events=this.initialData.events.map(e=>{const t=b(e,this);return t.setParent(this),t.initChildren(),t}),this.functionCalls=this.initialData.functionCalls.map(e=>{const t=b(e,this);return t.setParent(this),t.initChildren(),t}),this.loops=this.initialData.loops.map(e=>{const t=b(e,this);return t.setParent(this),t.initChildren(),t}),this.searches=this.initialData.searches.map(e=>{const t=b(e,this);return t.setParent(this),t.initChildren(),t}),this.attachOrphanReferences(),this.afterAllChildrenInitialized(),this)}subscribeInstance(e){return(!this.instances[e.id]||this.instances[e.id]!==e)&&(this.instances[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}findSubscribedInstance(e){return this.instances[e.id]||null}findSubscribedBuiltInInstance(e){return this.builtInInstances[e.id]||null}get(e){return this.instances[e]||this.builtInInstances[e]||null}getManaged(e){return 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}sync(e){return super.sync(e),this.name=e.name||this.name,this.description=e.description||this.description,this.x=e.x||this.x,this.y=e.y||this.y,this}async load(e=L,...t){return await ae.repository.load(this.id,...t),this}async create(e=L,...t){return await ae.repository.create(this.toShallowJSON(),...t),this}async update(e=L,...t){return await ae.repository.update(this.toShallowJSON(),...t),this}async delete(e=L,...t){return await ae.repository.delete(this.id,...t),this}remove({ignoreUpstream:e}={ignoreUpstream:!1}){return{affected:[],removed:[]}}restore({seenEntities:e}={seenEntities:new Set}){return{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),Array.from(e))}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,a=this.getAllBuiltInIds();return Object.keys(this.instances).forEach(o=>{if(a.includes(o)){t.set(o,o);return}t.set(o,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(o=>o.toJSONClone({...e,seenEntityMaps:t,seenEntities:i,newId:null})),projects:this.projects.map(o=>o.toJSONClone({...e,seenEntityMaps:t,seenEntities:i,newId:null})),variableDeclarations:this.variableDeclarations.map(o=>o.toJSONClone({...e,seenEntityMaps:t,seenEntities:i,newId:null})),variableInstances:this.variableInstances.map(o=>o.toJSONClone({...e,seenEntityMaps:t,seenEntities:i,newId:null})),conditions:this.conditions.map(o=>o.toJSONClone({...e,seenEntityMaps:t,seenEntities:i,newId:null})),operations:this.operations.map(o=>o.toJSONClone({...e,seenEntityMaps:t,seenEntities:i,newId:null})),functions:this.functions.map(o=>o.toJSONClone({...e,seenEntityMaps:t,seenEntities:i,newId:null})),events:this.events.map(o=>o.toJSONClone({...e,seenEntityMaps:t,seenEntities:i,newId:null})),functionCalls:this.functionCalls.map(o=>o.toJSONClone({...e,seenEntityMaps:t,seenEntities:i,newId:null})),loops:this.loops.map(o=>o.toJSONClone({...e,seenEntityMaps:t,seenEntities:i,newId:null})),searches:this.searches.map(o=>o.toJSONClone({...e,seenEntityMaps:t,seenEntities:i,newId:null}))}}toReference(e=F){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:r.GenericReference,entityId:t,version:this.version,entityType:this.type}}toShallowJSON(e=F){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(a=>a.toReference(e)),functions:this.functions.map(a=>a.toReference(e)),events:this.events.map(a=>a.toReference(e)),projects:this.projects.map(a=>a.toReference(e)),variableDeclarations:this.variableDeclarations.map(a=>a.toReference(e)),variableInstances:this.variableInstances.map(a=>a.toReference(e)),conditions:this.conditions.map(a=>a.toReference(e)),operations:this.operations.map(a=>a.toReference(e)),functionCalls:this.functionCalls.map(a=>a.toReference(e)),loops:this.loops.map(a=>a.toReference(e)),searches:this.searches.map(a=>a.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=Q3(),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=b(e,this);return this.addDefinitionEntity(t),t}addDefinitionEntity(e){return this.entities.includes(e)||this.entities.push(e),e}addFunctionDeclarationFromTransfer(e){const t=b(e,this);return this.addFunctionDeclaration(t),t}addFunctionDeclaration(e){return this.functions.includes(e)||this.functions.push(e),e}addFunctionCallFromTransfer(e){const t=b(e,this);return this.addFunctionCall(t),t}addFunctionCall(e){return this.functionCalls.includes(e)||this.functionCalls.push(e),e}addVariableDeclarationFromTransfer(e){const t=b(e,this);return this.addVariableDeclaration(t),t}addVariableDeclaration(e){return this.variableDeclarations.includes(e)||this.variableDeclarations.push(e),e}addVariableInstanceFromTransfer(e){const t=b(e,this);return this.addVariableInstance(t),t}addVariableInstance(e){return this.variableInstances.includes(e)||this.variableInstances.push(e),e}addInstalledProjectFromTransfer(e){const t=b(e,this);return this.addInstalledProject(t),this}addInstalledProject(e){return this.projects.includes(e)||this.projects.push(e),this}addGlobalEventFromTransfer(e){const t=b(e,this);return this.addGlobalEvent(t),this}addGlobalEvent(e){return this.events.includes(e)||this.events.push(e),this}addConditionFromTransfer(e){const t=b(e,this);return this.addCondition(t),this}addCondition(e){return this.conditions.includes(e)||this.conditions.push(e),this}addOperationFromTransfer(e){const t=b(e,this);return this.addOperation(t),this}addOperation(e){return this.operations.includes(e)||this.operations.push(e),this}addLoopFromTransfer(e){const t=b(e,this);return this.addLoop(t),this}addLoop(e){return this.loops.includes(e)||this.loops.push(e),this}addSearchFromTransfer(e){const t=b(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!==r.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 a=ze(i);return[...t,...a.filter(o=>o.type===r.Condition)]},[]),...this.functionCalls.reduce((t,i)=>{const a=ze(i);return[...t,...a.filter(o=>o.type===r.Condition)]},[]),...this.operations.reduce((t,i)=>{const a=ze(i);return[...t,...a.filter(o=>o.type===r.Condition)]},[]),...this.loops.reduce((t,i)=>{const a=ze(i);return[...t,...a.filter(o=>o.type===r.Condition)]},[]),...this.searches.reduce((t,i)=>{const a=ze(i);return[...t,...a.filter(o=>o.type===r.Condition)]},[])]}getOperations(){return[...this.operations,...this.getEntryPoints().reduce((t,i)=>{const a=ze(i);return[...t,...a.filter(o=>o.type===r.Operation)]},[]),...this.functionCalls.reduce((t,i)=>{const a=ze(i);return[...t,...a.filter(o=>o.type===r.Operation)]},[]),...this.conditions.reduce((t,i)=>{const a=ze(i);return[...t,...a.filter(o=>o.type===r.Operation)]},[]),...this.loops.reduce((t,i)=>{const a=ze(i);return[...t,...a.filter(o=>o.type===r.Operation)]},[]),...this.searches.reduce((t,i)=>{const a=ze(i);return[...t,...a.filter(o=>o.type===r.Operation)]},[])]}getFunctionCalls(){return[...this.functionCalls,...this.getEntryPoints().reduce((t,i)=>{const a=ze(i);return[...t,...a.filter(o=>o.type===r.FunctionCall)]},[]),...this.conditions.reduce((t,i)=>{const a=ze(i);return[...t,...a.filter(o=>o.type===r.FunctionCall)]},[]),...this.operations.reduce((t,i)=>{const a=ze(i);return[...t,...a.filter(o=>o.type===r.FunctionCall)]},[]),...this.loops.reduce((t,i)=>{const a=ze(i);return[...t,...a.filter(o=>o.type===r.FunctionCall)]},[]),...this.searches.reduce((t,i)=>{const a=ze(i);return[...t,...a.filter(o=>o.type===r.FunctionCall)]},[])]}getVariables(){return[...this.variableDeclarations,...this.getEntryPoints().reduce((t,i)=>{const a=Ue(i);return[...t,...a]},[]),...this.functionCalls.reduce((t,i)=>{const a=Ue(i);return[...t,...a]},[]),...this.conditions.reduce((t,i)=>{const a=Ue(i);return[...t,...a]},[]),...this.operations.reduce((t,i)=>{const a=Ue(i);return[...t,...a]},[]),...this.loops.reduce((t,i)=>{const a=Ue(i);return[...t,...a]},[]),...this.searches.reduce((t,i)=>{const a=Ue(i);return[...t,...a]},[])]}getVariableInstances(){return[...this.variableInstances,...this.getEntryPoints().reduce((t,i)=>{const o=Ue(i).filter(l=>l.type===r.VariableInstance);return[...t,...o]},[]),...this.functionCalls.reduce((t,i)=>{const o=Ue(i).filter(l=>l.type===r.VariableInstance);return[...t,...o]},[]),...this.conditions.reduce((t,i)=>{const o=Ue(i).filter(l=>l.type===r.VariableInstance);return[...t,...o]},[]),...this.operations.reduce((t,i)=>{const o=Ue(i).filter(l=>l.type===r.VariableInstance);return[...t,...o]},[]),...this.loops.reduce((t,i)=>{const o=Ue(i).filter(l=>l.type===r.VariableInstance);return[...t,...o]},[]),...this.searches.reduce((t,i)=>{const o=Ue(i).filter(l=>l.type===r.VariableInstance);return[...t,...o]},[])]}getVariableDeclarations(){return m([...this.variableDeclarations,...this.getEntryPoints().reduce((t,i)=>{const o=Ue(i).filter(l=>l.type===r.VariableDeclaration);return[...t,...o]},[]),...this.functionCalls.reduce((t,i)=>{const o=Ue(i).filter(l=>l.type===r.VariableDeclaration);return[...t,...o]},[]),...this.conditions.reduce((t,i)=>{const o=Ue(i).filter(l=>l.type===r.VariableDeclaration);return[...t,...o]},[]),...this.operations.reduce((t,i)=>{const o=Ue(i).filter(l=>l.type===r.VariableDeclaration);return[...t,...o]},[]),...this.loops.reduce((t,i)=>{const o=Ue(i).filter(l=>l.type===r.VariableDeclaration);return[...t,...o]},[]),...this.searches.reduce((t,i)=>{const o=Ue(i).filter(l=>l.type===r.VariableDeclaration);return[...t,...o]},[])])}attachOrphanReferences(){const e=this.getVariableInstances(),t=this.getVariableDeclarations();return e.forEach(i=>{if(!i.declaration){const a=i.initialData,o=a.declaration.entityId||a.declaration.id,l=t.find(d=>d.id===o);l&&i.setDeclaration(l)}}),this}getBuiltInPersistedEntity(){return this.builtInBaseEntities.find(e=>e.name===k.PERSISTED_ENTITY)||null}};u(ae,"UUID",{isBackup:!0,uuid:()=>Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15),fromUUID:e=>e}),u(ae,"repository",{create:async(e,...t)=>e,update:async(e,...t)=>e,delete:async(e,...t)=>{},load:async(e,...t)=>null}),u(ae,"type",r.Project),u(ae,"USER_MANAGED_PARENT_TYPES",[]),u(ae,"PARENT_TYPES",[...ae.USER_MANAGED_PARENT_TYPES]),u(ae,"MUTABLE_BASE_PROPERTIES",["name","description"]),u(ae,"INMUTABLE_BASE_PROPERTIES",["id","type","version"]),u(ae,"BASE_PROPERTIES",[...ae.MUTABLE_BASE_PROPERTIES,...ae.INMUTABLE_BASE_PROPERTIES]),u(ae,"MUTABLE_META_PROPERTIES",[...ae.MUTABLE_BASE_PROPERTIES,"x","y"]),u(ae,"INMUTABLE_META_PROPERTIES",[...ae.INMUTABLE_BASE_PROPERTIES]),u(ae,"META_PROPERTIES",[...ae.MUTABLE_META_PROPERTIES,...ae.INMUTABLE_META_PROPERTIES]),u(ae,"MUTABLE_UPSTREAM_PROPERTIES",[]),u(ae,"INMUTABLE_UPSTREAM_PROPERTIES",["primitives","builtInBaseEntities","operationDeclarations","globalEventActionDescriptors","loopDeclarations","builtInInstances"]),u(ae,"UPSTREAM_PROPERTIES",[...ae.MUTABLE_UPSTREAM_PROPERTIES,...ae.INMUTABLE_UPSTREAM_PROPERTIES]),u(ae,"MUTABLE_DOWNSTREAM_PROPERTIES",["entities","projects","functions","events","variableDeclarations","variableInstances","conditions","operations","functionCalls","loops","searches"]),u(ae,"INMUTABLE_DOWNSTREAM_PROPERTIES",[]),u(ae,"DOWNSTREAM_PROPERTIES",[...ae.MUTABLE_DOWNSTREAM_PROPERTIES,...ae.INMUTABLE_DOWNSTREAM_PROPERTIES]),u(ae,"PROPERTIES",[...ae.META_PROPERTIES,...ae.UPSTREAM_PROPERTIES,...ae.DOWNSTREAM_PROPERTIES]);let O=ae;class oP extends Be{constructor(e){super(Tr,e);u(this,"id",ke.Parallel);u(this,"name",ke.Parallel);u(this,"description","Execute a list of actions one after the other");u(this,"version","1");u(this,"autoexecutable",!0);u(this,"initialData",Tr);u(this,"type",r.ActionDescriptor);u(this,"inputs",[]);u(this,"outputs",[]);u(this,"error",null);u(this,"project");this.project=e,this.inputs=Tr.inputs.map(t=>{const i=b(t,this.project);return i.setParent(this),i.initChildren(),i}),this.outputs=Tr.outputs.map(t=>{const i=b(t,this.project);return i.setParent(this),i.initChildren(),i}),this.error=Tr.error?b(Tr.error,this.project):null}}class lP extends Be{constructor(e){super(Nt,e);u(this,"id",Nt.id);u(this,"name",Nt.name);u(this,"description",Nt.description);u(this,"version",Nt.version);u(this,"autoexecutable",!1);u(this,"initialData",Nt);u(this,"type",r.ActionDescriptor);u(this,"inputs",[]);u(this,"outputs",[]);u(this,"error",null);u(this,"project");this.project=e,this.inputs=Nt.inputs.map(t=>{const i=b(t,this.project);return i.setParent(this),i.initChildren(),i}),this.outputs=Nt.outputs.map(t=>{const i=b(t,this.project);return i.setParent(this),i.initChildren(),i}),this.error=Nt.error?b(Nt.error,this.project):null}}class dP extends Be{constructor(e){super(Wr,e);u(this,"id",ke.Sequential);u(this,"name",ke.Sequential);u(this,"description","Execute a list of actions one after the other");u(this,"version","1");u(this,"autoexecutable",!0);u(this,"initialData",Wr);u(this,"type",r.ActionDescriptor);u(this,"inputs",[]);u(this,"outputs",[]);u(this,"error",null);u(this,"project");this.project=e,this.inputs=Wr.inputs.map(t=>{const i=b(t,this.project);return i.setParent(this),i.initChildren(),i}),this.outputs=Wr.outputs.map(t=>{const i=b(t,this.project);return i.setParent(this),i.initChildren(),i}),this.error=Wr.error?b(Wr.error,this.project):null}}class kq extends Be{constructor(s){super(ga,s)}}class Zq extends Be{constructor(s){super(Mn,s)}}class qq extends Be{constructor(e){super(_n,e);u(this,"autoexecutable",!0)}getEntityToMatchInputMap(e){return e.inputs.find(t=>{var i;return((i=t.declaration)==null?void 0:i.id)===N.operation[Ze.Validate].inputs.entityToMatch.id})||null}getDataToValidateInputMap(e){return e.inputs.find(t=>{var i;return((i=t.declaration)==null?void 0:i.id)===N.operation[Ze.Validate].inputs.dataToValidate.id})||null}getOutputDataOutputMap(e){return e.outputs.find(t=>{var i;return((i=t.declaration)==null?void 0:i.id)===N.operation[Ze.Validate].outputs.outputEntity.id})||null}getEntityToMatch(e){let t=null;if(e.readsValue){const a=e.readsValue.getDataType();a&&a.entity&&a.entity.type===r.DefinitionEntity&&(t=a.entity)}const i=e.getDefaultValue();return!t&&i&&i.valueAsType&&!Array.isArray(i.valueAsType)&&i.valueAsType.type===r.DefinitionEntity&&(t=i.valueAsType),t}syncOperationInstance(e){const t=this.getEntityToMatchInputMap(e);t&&this.syncEntityToMatchInputMapDataType(t);const i=this.getDataToValidateInputMap(e);i&&this.syncDataToValidateInputMapDataType(i);const a=this.getOutputDataOutputMap(e);return a&&this.syncOutputDataOutputMapDataType(a),e}syncEntityToMatchInputMapDataType(e){var i,a,o;if(((i=e.declaration)==null?void 0:i.id)!==N.operation[Ze.Validate].inputs.entityToMatch.id)return null;if(!e.dataType){const l={id:O.UUID.uuid(),version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:r.DataType,isList:!1,andChildrenGroup:null,orChildrenGroup:null,asType:!0,entity:null,like:!0,inferred:!0,parent:e.toReference()},d=b(l,e.project);d.setParent(e),d.initChildren(),e.setDataType(d)}(a=e.dataType)==null||a.sync({inferred:!0,like:!1,asType:!0});const t=this.getEntityToMatch(e);return(o=e.dataType)==null||o.setEntity(t),e.dataType}syncDataToValidateInputMapDataType(e){var o,l,d;if(((o=e.declaration)==null?void 0:o.id)!==N.operation[Ze.Validate].inputs.dataToValidate.id)return null;const t=this.getEntityToMatchInputMap(e.parent);if(!t||!this.getEntityToMatch(t))return null;if(!e.dataType){const h={id:O.UUID.uuid(),version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:r.DataType,isList:!1,andChildrenGroup:null,orChildrenGroup:null,asType:!1,entity:null,like:!0,inferred:!0,parent:e.toReference()},y=b(h,e.project);y.setParent(e),y.initChildren(),e.setDataType(y)}(l=e.dataType)==null||l.sync({inferred:!0,like:!0,asType:!1});const a=this.getEntityToMatch(t);return(d=e.dataType)==null||d.setEntity(a),e.dataType}syncOutputDataOutputMapDataType(e){var o,l,d;if(((o=e.declaration)==null?void 0:o.id)!==N.operation[Ze.Validate].outputs.outputEntity.id)return null;const t=this.getEntityToMatchInputMap(e.parent);if(!t||!this.getEntityToMatch(t))return null;if(!e.dataType){const h={id:O.UUID.uuid(),version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:r.DataType,isList:!1,andChildrenGroup:null,orChildrenGroup:null,asType:!1,entity:null,like:!0,inferred:!0,parent:e.toReference()},y=b(h,e.project);y.setParent(e),y.initChildren(),e.setDataType(y)}(l=e.dataType)==null||l.sync({inferred:!0,like:!0,asType:!1});const a=this.getEntityToMatch(t);return(d=e.dataType)==null||d.setEntity(a),e.dataType}inferInputMapDataType(e){var t,i;return((t=e.declaration)==null?void 0:t.id)===N.operation[Ze.Validate].inputs.entityToMatch.id?this.syncEntityToMatchInputMapDataType(e):((i=e.declaration)==null?void 0:i.id)===N.operation[Ze.Validate].inputs.dataToValidate.id?this.syncDataToValidateInputMapDataType(e):null}inferOutputMapDataType(e){var t;return((t=e.declaration)==null?void 0:t.id)===N.operation[Ze.Validate].outputs.outputEntity.id?this.syncOutputDataOutputMapDataType(e):null}}class Jq extends Be{constructor(s){super(id,s)}}class Wq extends Be{constructor(s){super(sd,s)}}class Yq extends Be{constructor(s){super(od,s)}}class Hq extends Be{constructor(s){super(Ls,s)}}class zq extends Be{constructor(s){super(Ms,s)}}class Kq extends Be{constructor(s){super(Ra,s)}}function Xq(n){const s=[new dP(n),new oP(n),new lP(n),new kq(n),new Zq(n),new qq(n),new Hq(n),new Jq(n),new Yq(n),new Wq(n),new zq(n),new Kq(n),new Be(nd,n),new Be(rd,n)];return s.forEach(e=>{e.initChildren(),n.subscribeBuiltInInstance(e)}),n.operationDeclarations=s,s}class uP extends xr{constructor(e){super(gt,e);u(this,"initialData");u(this,"id",k.PERSISTED_ENTITY);u(this,"version","1");u(this,"name",k.PERSISTED_ENTITY);u(this,"description",gt.description);u(this,"type",r.BuiltInBaseEntity);u(this,"abstract",gt.abstract);u(this,"static",gt.static);u(this,"properties",[]);u(this,"methods",[]);u(this,"abstractMethods",[]);u(this,"extends",[]);u(this,"errors",[]);u(this,"project");this.initialData=gt,this.project=e,this.id=gt.id,this.version=gt.version,this.name=gt.name,this.static=gt.static,this.abstract=gt.abstract,this.properties=this.initialData.properties.map(t=>{const i=b(t,this.project);return i.setParent(this),i.initChildren(),i}),this.methods=this.initialData.methods.map(t=>{const i=b(t,this.project);return i.parent=this,i}),this.abstractMethods=this.initialData.abstractMethods.map(t=>{const i=b(t,this.project);return i.parent=this,i}),this.extends=this.initialData.extends.map(t=>b(t,this.project))}}function Qq(n){const s=[new uP(n),new xr(Sa,n),new xr(Vr,n),new xr(Qs,n)];return s.forEach(e=>{n.subscribeBuiltInInstance(e)}),n.builtInBaseEntities=s,s}function eJ(n){const s=[new yr(X,n),new yr(kr,n),new yr(ue,n),new yr(vt,n),new yr(Zr,n),new yr(Pr,n),new yr(qr,n),new yr(Si,n)];return s.forEach(e=>{n.subscribeBuiltInInstance(e)}),n.primitives=s,s}function tJ(n){const s=[new Be(to,n)];return s.forEach(e=>{e.initChildren(),n.subscribeBuiltInInstance(e)}),n.globalEventActionDescriptors=s,s}function rJ(n){const s=[new Be(Da,n),new Be(cn,n),new Be(Ia,n),new Be(Ci,n),new Be(wi,n),new Be(Zs,n)];s.forEach(t=>{t.initChildren(),n.subscribeBuiltInInstance(t)}),n.loopDeclarations=s;const e=[new Be(Ys,n),new Be(Aa,n),new Be(Js,n),new Be(Rd,n),new Be(bd,n),new Be(qs,n)];return e.forEach(t=>{t.initChildren(),n.subscribeBuiltInInstance(t)}),n.loopDeclarationsBodies=e,s}function nJ(n){const s=[new vi(ro,n)];return s.forEach(e=>{e.initChildren(),n.subscribeBuiltInInstance(e)}),n.valueDescriptors=s,s}function iJ(n){const s=[new Be(Fn,n),new Be(Li,n)];return s.forEach(e=>{e.initChildren(),n.subscribeBuiltInInstance(e)}),n.operationDeclarations=s,s}const bi={},ql={};async function aJ(n,s={}){const e={...qI};return e.id=n.id,s.empty?{data:{id:n.id,type:r.Project,version:"1",createdAt:$().toDate(),author:"1",previousVersion:null,deleted:!1,name:null,description:null,projects:[],entities:[],operations:[],functions:[],variableDeclarations:[],variableInstances:[],functionCalls:[],conditions:[],loops:[],searches:[],events:[]}}:{data:e}}function Fp(n){const s=new O(n);return eJ(s),Qq(s),Xq(s),tJ(s),rJ(s),nJ(s),iJ(s),s.getAllBuiltIn().forEach(t=>{s.builtInInstances[t.id]||(s.builtInInstances[t.id]=t,delete s.instances[t.id])}),s}function sJ(n){const s=new Map,e=n.getAllBuiltInIds();Object.keys(n.instances).forEach(i=>{if(e.includes(i)){s.set(i,i);return}s.set(i,O.UUID.uuid())});const t=Fp(n.toShallowJSON({seenEntityMaps:s}));return new Ip(n).visit(i=>{const a=b(i.toShallowJSON({seenEntityMaps:s}),t);a.hydrateAncestors(),a.addSelfToProject()}).visit(i=>{const a=t.get(s.get(i.id));a&&a.afterAllChildrenInitialized()}),t.afterAllChildrenInitialized(),t}function cP(n){const s=Fp(n);return new Ip(n).visit(e=>{const t=b(e,s);t.hydrateAncestors(),t.addSelfToProject()}).visit(e=>{const t=s.get(e.id);t&&t.afterAllChildrenInitialized()}),s.afterAllChildrenInitialized(),s}async function oJ(n,s={}){if(n.id&&bi[n.id])return bi[n.id];if(n.id&&ql[n.id])return await ql[n.id],bi[n.id];const e=aJ(n,s);n.id&&(ql[n.id]=e);const t=await e;if(t.data){const i=cP(t.data);return bi[n.id]=i,n.id&&delete ql[n.id],i}return null}function lJ(n){return bi[n.id]&&delete bi[n.id],null}const dJ="test_primitive_entities_export";c.AI_VALUE_CONNECTION_GENERATION_ACTION_EXPLANATION=Ep,c.ALL_BUILT_IN_BASE_ENTITIES=gE,c.ALL_BUILT_IN_CONDITION_ENTITIES=NE,c.ALL_BUILT_IN_GLOBAL_EVENT_ENTITIES=GE,c.ALL_BUILT_IN_LOOP_BODY_ENTITIES=KT,c.ALL_BUILT_IN_LOOP_ENTITIES=zT,c.ALL_BUILT_IN_OPERATION_ENTITIES=l0,c.ALL_BUILT_IN_PRIMITIVE_ENTITIES=Xp,c.ALL_BUILT_IN_TOP_LEVEL_ENTITIES=xE,c.ALL_BUILT_IN_VALUE_DESCRIPTORS=UE,c.ActionDescriptorState=Be,c.ActionInputMapState=M7,c.ActionOutputMapState=L7,c.AppendToListOperationInputIds=of,c.AppendToListOperationOutputIds=lf,c.ArgumentDeclarationState=mi,c.BREAK_AND_CONTINUE_STATEMENTS_RETURN_DECLARATIONS_EXPLANATION=fp,c.BUILT_IN_BASE_ENTITY_IDS=N,c.BUILT_IN_ENTITY_TYPES=Dr,c.BaseCanvasDraggableState=Lq,c.BaseEntityNames=k,c.BaseState=Nq,c.BaseValueDescriptorIds=Bs,c.BreakStatementState=fa,c.BuiltInBaseEntityState=xr,c.CACHED_PROJECTS_BY_ID=bi,c.CALLABLE_ENTITIES_EXPLANATION=W7,c.CALLABLE_TYPES=Ir,c.CALLER_ENTITIES_EXPLANATION=q1,c.CALLER_TYPES=Ar,c.CALLS_UPDATE_EXPLANATION=Pn,c.COMPARISON_CONDITIONS=ME,c.CONDITIONS=_E,c.CUSTOM_ENTITY_OPERATIONS=Pm,c.CallableEntityClass=$q,c.CallerEntityClass=$p,c.ChildEntityState=Gq,c.ComparisonOperatorTypes=nt,c.ConditionState=ci,c.ContinueStatementState=kt,c.CreateNewInputIds=em,c.CreateNewOutputIds=tm,c.DRAGGABLE_CALLABLE_TYPES=zl,c.DRAGGABLE_CALLER_TYPES=kp,c.DRAGGABLE_ELEMENT_TYPES=ws,c.DRAGGABLE_EXECUTABLE_TYPES=TP,c.DRAGGABLE_PASS_THROUGH_CALLABLE_TYPES=Cs,c.DRAGGABLE_PASS_THROUGH_CALLABLE_TYPES_WITH_OUTPUTS=Hl,c.DataTypeCompatibilityTypes=pr,c.DataTypeParentChildRelation=yt,c.DataTypeState=ca,c.DefinitionEntityState=gi,c.EDITABLE_PERSISTANCE_REPOSITORY_DEFAULTS=Mq,c.ENTITIES_WITH_VALLUES_EXPLANATION=Sl,c.ENTITY_PERSISTANCE_OPTIONS_DEFAULTS=L,c.ENTITY_RECUSION_OPTIONS_DEFAULTS=F,c.ENTITY_TYPES=vP,c.ENTITY_WITH_DECLARATION_TYPES=fP,c.ENTITY_WITH_LOGIC_SCOPE_TYPES=lt,c.ENTITY_WITH_NAMES_TYPES=Zp,c.ENTITY_WITH_PARENT_TYPES=hP,c.ENTITY_WITH_USER_MANAGED_DECLARATION_TYPES=xp,c.ENTITY_WITH_USER_MANAGED_SINGLE_IMPLEMENTS_TYPES=yP,c.ENTITY_WITH_VALUE_TYPES=Up,c.ENTRY_POINT_ENTITIES_EXPLANATION=Rs,c.ENTRY_POINT_TYPES=Xe,c.EVENT_TYPES=Pi,c.EXECUTABLE_TYPES=mP,c.EXECUTION_OPERATIONS=Qf,c.EntityError=Hn,c.EntityErrorSeverity=E,c.EntityGenerationError=g,c.EntityGenerationErrorCode=T,c.EntityInstanceErrorCode=U,c.EntityOperations=Ze,c.EntityType=r,c.EntityWithLogicScopeClass=jq,c.EntityWithValueClass=xq,c.EntryPointEntityClass=Fq,c.ExecutionOperations=ke,c.ExecutionTerminationType=j1,c.FunctionCallState=Ei,c.FunctionDeclarationState=li,c.GLOBAL_EVENT_DECLARATIONS=LE,c.GetLastInListOperationInputIds=Yy,c.GetLastInListOperationOutputIds=Hy,c.GlobalEventNames=jr,c.GlobalEventState=pa,c.HTTPOperations=Dt,c.HTTP_OPERATIONS=s0,c.InputMapState=sn,c.InstalledProjectState=fi,c.InternalCallState=ha,c.JoinListOperationInputIds=yy,c.JoinListOperationOutputIds=fy,c.LIST_OPERATIONS=gf,c.ListOperations=oe,c.LiteralValueState=ya,c.LoopState=ui,c.LoopTypes=q,c.NON_INTERACTIVE_BASE_ENTITIES_EXPLANATION=Sn,c.NUMBER_OPERATIONS=Oh,c.NumberOperations=qe,c.OPERATION_DECLARATIONS=o0,c.OperationState=di,c.OutputMapParentChildRelation=Di,c.OutputMapState=on,c.PARENT_AUTO_CALCULATION_FROM_CALLER_EXPLANATION=Ol,c.PASS_THROUGH_CALLABLE_ENTITIES_EXPLANATION=Dn,c.PASS_THROUGH_CALLABLE_TYPES=Ke,c.PASS_THROUGH_CALLABLE_TYPES_WITH_OUTPUTS=jp,c.PROPERTY_NOT_VALUE_READER_WRITTER_EXPLANATION=vp,c.ParallelExecutionOperation=oP,c.PassThroughCallableEntityClass=Uq,c.PersistedEntity=uP,c.PersistedEntityMethods=er,c.PrimitiveEntityState=yr,c.PrimitiveTypes=C,c.ProjectState=O,c.PropertyState=oi,c.READ_ONLY_ENTITY_PERSISTANCE_REPOSITORY=sP,c.RETURN_STATEMENT_RETURN_DECLARATIONS_EXPLANATION=Y7,c.ReturnDeclarationState=sr,c.ReturnStatementState=Ti,c.STANDALONE_CONDITIONS=AE,c.STRING_OPERATIONS=hy,c.ScopeCompatibilityType=Zl,c.SearchState=yi,c.SequentialExecutionOperation=dP,c.SequentialExecutionOperationInputIds=Uf,c.SequentialExecutionOperationOutputIds=xf,c.SharedEntityErrorCode=w,c.SharedStateFunctionality=aP,c.SplitListOperationInputIds=Cy,c.SplitListOperationOutputIds=wy,c.StandaloneOperatorTypes=lr,c.StringOperations=pe,c.TERMINATION_TYPES=Qe,c.Traverser=Ip,c.USER_MANAGED_ENTITY_TYPES=qp,c.UserManagedEntityStateFunctionality=_q,c.VALUE_READING_ENTITIES_EXPLANATION=Tp,c.VALUE_READING_TYPES=un,c.VALUE_WRITING_ENTITIES_EXPLANATION=J1,c.VALUE_WRITING_TYPES=ot,c.VARIABLE_DATA_TYPE_INFERRANCE_EXPLANATION=mp,c.VARIABLE_TYPES=Je,c.ValueAutogenerationType=st,c.ValueDescriptorParentChildRelation=V,c.ValueDescriptorState=vi,c.ValueReadingEntityClass=dn,c.ValueWritingEntityClass=Ps,c.VariableDeclarationState=pi,c.VariableInputMapState=B7,c.VariableInstanceState=hi,c.VariableOutputMapState=N7,c.WaitOperation=lP,c.WaitOperationInputIds=Mf,c.WaitOperationOutputIds=_f,c.appendToListOperation=Ls,c.appendToListOperationElementToAppendArgument=dd,c.appendToListOperationElementToAppendArgumentParentRef=mf,c.appendToListOperationElementToAppendArgumentRef=cf,c.appendToListOperationError=Rf,c.appendToListOperationErrorParentRef=Ef,c.appendToListOperationListArgument=ld,c.appendToListOperationListArgumentParentRef=ff,c.appendToListOperationListArgumentRef=df,c.appendToListOperationListDataType=uf,c.appendToListOperationResultListDataType=yf,c.appendToListOperationResultListReturn=vf,c.appendToListOperationResultListReturnParentRef=Tf,c.appendToListOperationResultListReturnRef=hf,c.appendToListOperationSecondListDataType=pf,c.asGenerationActionExample=Fr,c.booleanPrototype=kr,c.capitalizeFirstLetter=jt,c.checkAreDataTypesCompatible=hr,c.checkAreDefinitionEntitiesCompatibleAsDataType=V1,c.checkArePropertiesCompatibleAsDataType=O1,c.checkIsBranchDependentButNotDirectlyOnBranch=bs,c.checkIsBranchDependentOnBranch=nq,c.checkIsCallableEntityReachable=Ds,c.checkIsCanvasEntity=bq,c.checkIsDetachedBranch=QD,c.checkIsDetachedBranchShallow=Lp,c.checkIsGlobalVariable=Eq,c.checkIsGloballyDeclared=Np,c.checkIsMethod=rP,c.checkIsNestedScope=kl,c.checkScopeCompatibility=As,c.cloneProject=sJ,c.countedLoopActionDescriptor=Da,c.countedLoopActionDescriptorDynamicReturnDeclaration=jT,c.countedLoopActionDescriptorDynamicReturnDeclarationParentRef=xT,c.countedLoopActionDescriptorStringArgumentDeclaration=UT,c.countedLoopActionDescriptorStringArgumentDeclarationDataType=$T,c.countedLoopActionDescriptorStringArgumentDeclarationDataTypeDefaultValue=LT,c.countedLoopActionDescriptorStringArgumentDeclarationDataTypeDefaultValueParentRef=NT,c.countedLoopActionDescriptorStringArgumentDeclarationDataTypeParentRef=GT,c.countedLoopActionDescriptorStringArgumentDeclarationParentRef=FT,c.countedLoopBodyActionDescriptor=Ys,c.countedLoopBodyActionDescriptorAnyDynamicArgument=WT,c.countedLoopBodyActionDescriptorAnyDynamicArgumentParentRef=JT,c.countedLoopBodyActionDescriptorAnyDynamicReturn=HT,c.countedLoopBodyActionDescriptorAnyDynamicReturnParentRef=YT,c.countedLoopBodyActionDescriptorIterationNumberArgumentDeclaration=Ad,c.countedLoopBodyActionDescriptorIterationNumberArgumentDeclarationDataType=ZT,c.countedLoopBodyActionDescriptorIterationNumberArgumentDeclarationDataTypeParentRef=kT,c.countedLoopBodyActionDescriptorIterationNumberArgumentDeclarationParentRef=qT,c.createDefinitionEntityFromJSONObject=Ml,c.createEntityError=le,c.createNestedDataTypeForEntity=nD,c.createNewInstanceOperation=Mn,c.createNewInstanceOperationEntityToInstanciateArgument=dm,c.createNewInstanceOperationEntityToInstanciateArgumentRef=sm,c.createNewInstanceOperationEntityToInstanciateDataType=om,c.createNewInstanceOperationError=hm,c.createNewInstanceOperationErrorParentRef=pm,c.createNewInstanceOperationNewEntityDataArgument=am,c.createNewInstanceOperationNewEntityDataArgumentDataType=im,c.createNewInstanceOperationNewEntityDataArgumentDataTypeParentRef=nm,c.createNewInstanceOperationNewEntityDataArgumentParentRef=rm,c.createNewInstanceOperationOutputEntityDeclaration=cm,c.createNewInstanceOperationOutputEntityDeclarationParentRef=um,c.createNewInstanceOperationRef=lm,c.createSemanticId=x1,c.createStateFromGenerationTargetType=Bq,c.createStateFromType=tt,c.createStateFromTypeAndSubscribe=b,c.cronJobBuiltInBaseEntity=Qs,c.cronJobBuiltInBaseEntityExpressionProperty=EE,c.cronJobBuiltInBaseEntityExpressionPropertyDataTypeRef=DP,c.cronJobBuiltInBaseEntityExpressionPropertyRef=TE,c.cronJobBuiltInBaseEntityRef=vE,c.cronJobTriggeredFunctionDeclarationBlueprint=$d,c.cronJobTriggeredFunctionDeclarationBlueprintParentRef=fE,c.dataTypeCompatibilityToErrorExplanation=eD,c.datePrototype=Pr,c.dateValueAutogenerationSchema=ec,c.definitionEntityToZodSchema=nR,c.deletePersistedEntityMethod=Gd,c.deletePersistedEntityMethodParentRef=eE,c.deleteRootProject=lJ,c.endpointBuiltInBaseEntity=Sa,c.endpointBuiltInBaseEntityRef=tv,c.endpointBuiltInBaseEntityRefFour=Lv,c.endpointBuiltInBaseEntityRefThree=uv,c.endpointBuiltInBaseEntityRefTwo=sv,c.endpointBuiltInCorsProperty=rv,c.endpointBuiltInCorsPropertyDataType=ev,c.endpointBuiltInCorsPropertyDataTypeRef=XT,c.endpointBuiltInCorsPropertyRef=QT,c.endpointBuiltInMethodProperty=Pd,c.endpointBuiltInMethodPropertyDataType=dv,c.endpointBuiltInMethodPropertyDataTypeRef=ov,c.endpointBuiltInMethodPropertyRef=lv,c.endpointBuiltInPathProperty=Dd,c.endpointBuiltInPathPropertyDataType=av,c.endpointBuiltInPathPropertyDataTypeRef=nv,c.endpointBuiltInPathPropertyRef=iv,c.endpointPathParamsArgumentDeclaration=Od,c.endpointPathParamsArgumentDeclarationRef=Rv,c.endpointPathParamsVariableDataType=gv,c.endpointPathParamsVariableDataTypeRef=Ev,c.endpointReachedTriggerActionDescriptor=_d,c.endpointReachedTriggerActionDescriptorRef=bv,c.endpointReachedTriggerActionDescriptorRefFour=Dv,c.endpointReachedTriggerActionDescriptorRefThree=Av,c.endpointReachedTriggerActionDescriptorRefTwo=Iv,c.endpointRequestBodyArgumentDeclaration=Cd,c.endpointRequestBodyArgumentDeclarationRef=yv,c.endpointRequestBodyVariableDataType=fv,c.endpointRequestHeadersArgumentDeclaration=Sd,c.endpointRequestHeadersArgumentDeclarationRef=pv,c.endpointRequestHeadersVariableDataType=hv,c.endpointRequestHeadersVariableDataTypeRef=cv,c.endpointRequestQueryParamsArgumentDeclaration=Vd,c.endpointRequestQueryParamsArgumentDeclarationRef=Tv,c.endpointRequestQueryParamsVariableDataType=vv,c.endpointRequestQueryParamsVariableDataTypeRef=mv,c.endpointResponseBodyDataType=_v,c.endpointResponseBodyReturnDeclaration=Md,c.endpointResponseBodyReturnDeclarationRef=Mv,c.endpointResponseCodeDataType=Sv,c.endpointResponseCodeReturnDeclaration=wd,c.endpointResponseCodeReturnDeclarationRef=Pv,c.endpointResponseHeadersDataType=wv,c.endpointResponseHeadersDataTypeRef=Vv,c.endpointResponseHeadersReturnDeclaration=Bd,c.endpointResponseHeadersReturnDeclarationRef=Cv,c.endpointReturnStatementRef=Ov,c.endpointReturnStatementRefThree=Nv,c.endpointReturnStatementRefTwo=Bv,c.enrichFromKnownEntities=Is,c.enumOptionsProperty=Kp,c.enumOptionsPropertyDataType=Hp,c.enumOptionsPropertyDataTypeRef=Wp,c.enumOptionsPropertyRef=Yp,c.enumPrototype=Zr,c.enumPrototypeRef=zp,c.executionBuiltInBaseEntity=eo,c.executionBuiltInEntityAbortMethod=Fd,c.executionBuiltInEntityAbortMethodParentRef=RE,c.filterOutDuplicateEntities=m,c.filterOutDuplicateErrors=vk,c.findEntityFromKeys=Ap,c.findReferenceToSelfInList=vD,c.findReferencesToSelfInProject=pq,c.flattenActionDescriptor=ED,c.flattenArgumentDeclaration=RD,c.flattenBreakStatement=gD,c.flattenBuiltInBaseEntity=bD,c.flattenCalls=Ur,c.flattenCanvasAncestorsUntil=_l,c.flattenCondition=ID,c.flattenContinueStatement=AD,c.flattenDataType=PD,c.flattenDefinitionEntity=DD,c.flattenDefinitionEntityExtensionAndImplementationTypes=Bp,c.flattenDefinitionEntityExtensionTypes=xl,c.flattenDefinitionEntityExtensions=Cp,c.flattenDefinitionEntityImplementations=wp,c.flattenDefinitionEntityImplementionTypes=Ul,c.flattenDerivedCanvasEntities=Kt,c.flattenDetachedBranch=tP,c.flattenElementCalls=ze,c.flattenElementCallsOnTheSameScope=cq,c.flattenEntity=S,c.flattenFunctionCall=SD,c.flattenFunctionDeclaration=OD,c.flattenGlobalEvent=VD,c.flattenInputMap=CD,c.flattenInstalledProject=wD,c.flattenInternalCall=BD,c.flattenLiteralValue=MD,c.flattenLoop=_D,c.flattenOperation=ND,c.flattenOutputMap=LD,c.flattenPrimitiveEntity=GD,c.flattenProject=$D,c.flattenProjectElements=TD,c.flattenProperty=FD,c.flattenRelatedCanvasElementsOnTheLeft=KD,c.flattenRelatedCanvasElementsOnTheRight=zD,c.flattenReturnDeclaration=UD,c.flattenReturnStatement=xD,c.flattenSearch=jD,c.flattenValueDescriptor=kD,c.flattenVariableDeclaration=ZD,c.flattenVariableInstance=qD,c.flattenVariableReads=mD,c.flattenVariableWrites=fD,c.flattenVariables=Ue,c.fromZodParseToEntityGenerationErrors=pp,c.generate=VO,c.generateActionExample=H7,c.generateExecutionDataType=n7,c.generateIdFromStrategy=it,c.generateMutablePropertiesExplanation=Al,c.generateRandomBoolean=CR,c.generateRandomDate=oR,c.generateRandomDateAfter=iR,c.generateRandomDateBefore=aR,c.generateRandomDateBetweenRange=sR,c.generateRandomNumber=DR,c.generateRandomNumberAfter=bR,c.generateRandomNumberBefore=IR,c.generateRandomNumberBetweenRange=AR,c.generateRandomText=VR,c.generateRandomTextAfter=PR,c.generateRandomTextBefore=SR,c.generateRandomTextBetweenRange=OR,c.generateUniqueUUID=gR,c.getAllActionDescriptorsForConditions=wl,c.getAllActionDescriptorsForGlobalEvents=Vl,c.getAllActionDescriptorsForLoops=Cl,c.getAllActionDescriptorsForOperations=Q7,c.getAllBuiltInEntityIds=$l,c.getAllGloballyDeclaredFunctionDeclarationsExplanation=K1,c.getBaseBuiltInEntities=Vn,c.getBaseSchemaBasedOnType=k1,c.getBuiltInEntityOwner=Cn,c.getCallableEntityReferenceSchema=Et,c.getCallableEntityTypeSchema=mA,c.getCalledBy=or,c.getCallerEntityReferenceSchema=I3,c.getCallerEntityTypeSchema=b3,c.getCalls=Sp,c.getCanvasEntitiesDerivedFromInternalCalls=HD,c.getCanvasEntitiesDerivedFromWrites=ma,c.getCanvasEntityDerivedFromValueReadingEntity=Fl,c.getCanvasEntityDerivedFromValueReadingEntityFromTransfer=YD,c.getCanvasEntityReferenceSchema=U3,c.getCanvasEntityTypeSchema=F3,c.getChildrenEntityWithValues=aq,c.getColumnProperties=Sq,c.getCommonAncestor=Pp,c.getCommonChildren=iD,c.getDatabaseEntities=Dq,c.getDatabaseEntity=Oq,c.getDeclaration=si,c.getDeepestScope=iP,c.getDefinitionEntityExtends=Ta,c.getDraggableCallableEntityReferenceSchema=vA,c.getDraggableCallableEntityTypeSchema=TA,c.getDraggableCallerEntityReferenceSchema=D3,c.getDraggableCallerEntityTypeSchema=A3,c.getDraggableExecutableEntityReferenceSchema=V3,c.getDraggableExecutableEntityTypeSchema=O3,c.getDraggablePassThroughCallableEntityReferenceSchema=ul,c.getDraggablePassThroughCallableEntityTypeSchema=dl,c.getDraggablePlayableEntityReferenceSchema=_3,c.getDraggablePlayableEntityTypeSchema=M3,c.getEntityArgumentDeclarations=Vp,c.getEntityInputMaps=JD,c.getEntityOutputMaps=mq,c.getEntityReferenceSchema=$3,c.getEntityReturnDeclarations=WD,c.getEntityTypeSchema=G3,c.getEntityWithLogicScopeReferenceSchema=rn,c.getEntityWithLogicScopeTypeSchema=C3,c.getEntityWithValueReferenceSchema=fA,c.getEntityWithValueTypeSchema=g3,c.getEntryPointEntityReferenceSchema=Tt,c.getEntryPointEntityTypeSchema=bn,c.getEventEntityReferenceSchema=ol,c.getEventEntityTypeSchema=sl,c.getExecutableEntityReferenceSchema=S3,c.getExecutableEntityTypeSchema=P3,c.getExtendedBuiltInEntity=Tq,c.getExtendedDefinitionEntity=Mp,c.getGenerationTargetSchemaBasedOnType=Z1,c.getHeadIfPartOfDetachedBranch=eP,c.getHighestScope=nP,c.getImplementedBuiltInEntity=vq,c.getIsInteractive=_p,c.getLastInListOperation=od,c.getLastInListOperationError=sf,c.getLastInListOperationErrorParentRef=af,c.getLastInListOperationInputListArgument=tf,c.getLastInListOperationInputListArgumentParentRef=ef,c.getLastInListOperationInputListArgumentRef=zy,c.getLastInListOperationInputListDataType=Ky,c.getLastInListOperationOutputElementDataType=Qy,c.getLastInListOperationOutputElementReturn=nf,c.getLastInListOperationOutputElementReturnParentRef=rf,c.getLastInListOperationOutputElementReturnRef=Xy,c.getLinkedEntitiesFromArgumentDeclaration=uq,c.getLowestPersistedEntityImplementation=XD,c.getParentCallableEntity=aD,c.getParentCallerEntity=oD,c.getParentCanvasEntities=Zt,c.getParentCanvasEntity=It,c.getParentCanvasEntityFromTransfer=Nl,c.getParentEntryPoint=iq,c.getParentPassthroughCallableEntity=sD,c.getPassThroughCallableEntityReferenceSchema=We,c.getPassThroughCallableEntityTypeSchema=ll,c.getPeristedEntities=Aq,c.getPlayableEntityReferenceSchema=B3,c.getPlayableEntityTypeSchema=w3,c.getProject=oJ,c.getPrototypeByType=jl,c.getReferenceEntityId=P,c.getReferencedEntitiesStateOrErrors=Pl,c.getReferencedEntityStateOrErrors=hp,c.getReferencedIds=Gl,c.getRelatedCanvasElementsOnTheLeft=Ri,c.getRelatedCanvasElementsOnTheLeftFromTransfer=hq,c.getRelatedCanvasElementsOnTheRight=On,c.getRootEntryPointScopeOwner=Gp,c.getScopeOwner=qt,c.getTerminationReferenceSchema=L3,c.getTerminationTypeSchema=N3,c.getUsedArgFromDeclaration=yq,c.getUsedReturnFromDeclaration=fq,c.getValueReadingEntityReferenceSchema=yA,c.getValueReadingEntityTypeSchema=tn,c.getValueWritingEntityReferenceSchema=R3,c.getValueWritingEntityTypeSchema=us,c.getVariableFromInputMapping=dD,c.getVariableFromReturnVariablePointer=pD,c.getVariableReferenceSchema=gn,c.getVariableTypeSchema=ei,c.getVariablesFromArgumentDeclarations=Ll,c.getVariablesFromInputMaps=uD,c.getVariablesFromOutputMapping=hD,c.getVariablesFromOutputMaps=yD,c.getVariablesFromReturnDeclarations=cD,c.getVariablesInSameOrHigherScope=ap,c.getWrites=Op,c.groupCallsBasedOnParallelizableExecution=oq,c.handleAfterEntityImplementationSideEffects=rD,c.handleBeforeEntityImplementationSideEffects=tD,c.httpRequestBodyArgument=Us,c.httpRequestBodyArgumentRef=Fm,c.httpRequestBodyDataType=Um,c.httpRequestHeadersArgument=Fs,c.httpRequestHeadersArgumentRef=Gm,c.httpRequestHeadersDataType=$m,c.httpRequestMethodArgument=Gs,c.httpRequestMethodArgumentRef=Nm,c.httpRequestMethodDataType=Lm,c.httpRequestMethodDataTypeRef=Mm,c.httpRequestOperation=ga,c.httpRequestOperationErrorValueDescriptor=fd,c.httpRequestOperationErrorValueDescriptorDatatype=a0,c.httpRequestOperationErrorValueDescriptorRef=i0,c.httpRequestOperationRef=e0,c.httpRequestOperationRefEight=r0,c.httpRequestOperationRefFive=Xm,c.httpRequestOperationRefFour=Km,c.httpRequestOperationRefNine=n0,c.httpRequestOperationRefSeven=t0,c.httpRequestOperationRefSix=Qm,c.httpRequestOperationRefThree=zm,c.httpRequestOperationRefTwo=Hm,c.httpRequestQueryParamsArgument=yd,c.httpRequestQueryParamsArgumentRef=wm,c.httpRequestQueryParamsDataType=Bm,c.httpRequestVariableURLArgument=$s,c.httpRequestVariableURLArgumentRef=Vm,c.httpRequestVariableURLDataType=Cm,c.httpRequestVariableURLDataTypeRef=Sm,c.httpResponseBodyReturnDataType=Ym,c.httpResponseBodyReturnDataTypeRef=Jm,c.httpResponseBodyReturnReturn=ks,c.httpResponseBodyReturnReturnRef=Wm,c.httpResponseCodeDataType=jm,c.httpResponseCodeReturn=xs,c.httpResponseCodeReturnRef=xm,c.httpResponseHeadersDataType=qm,c.httpResponseHeadersDataTypeRef=km,c.httpResponseHeadersReturn=js,c.httpResponseHeadersReturnRef=Zm,c.implement=Bl,c.inferArgumentDeclarationDataType=C1,c.inferDataType=$r,c.inferInputMapDataType=rp,c.inferOutputMapDataType=ip,c.inferPropertyDataType=M1,c.inferReturnDeclarationDataType=np,c.inferValueDescriptorDataType=_1,c.inferVariableDeclarationDataType=B1,c.inferVariableInstanceDataType=w1,c.initBaseProjectEntity=Fp,c.initProject=cP,c.isPromise=bp,c.iterateOverListActionDescriptorListArgumentDeclaration=F0,c.iterateOverListActionDescriptorListArgumentDeclarationDataType=G0,c.iterateOverListActionDescriptorListArgumentDeclarationDataTypeParentRef=L0,c.iterateOverListActionDescriptorListArgumentDeclarationParentRef=$0,c.iterateOverListLoopActionDescriptor=cn,c.iterateOverListLoopActionDescriptorDynamicReturnDeclaration=x0,c.iterateOverListLoopActionDescriptorDynamicReturnDeclarationParentRef=U0,c.iterateOverListLoopBodyActionDescriptor=Aa,c.iterateOverListLoopBodyActionDescriptorAnyDynamicArgument=z0,c.iterateOverListLoopBodyActionDescriptorAnyDynamicArgumentParentRef=H0,c.iterateOverListLoopBodyActionDescriptorAnyDynamicReturn=X0,c.iterateOverListLoopBodyActionDescriptorAnyDynamicReturnParentRef=K0,c.iterateOverListLoopBodyActionDescriptorCurrentValueArgumentDeclaration=Ws,c.iterateOverListLoopBodyActionDescriptorCurrentValueArgumentDeclarationDataType=k0,c.iterateOverListLoopBodyActionDescriptorCurrentValueArgumentDeclarationDataTypeParentRef=j0,c.iterateOverListLoopBodyActionDescriptorCurrentValueArgumentDeclarationParentRef=Z0,c.iterateOverListLoopBodyActionDescriptorIterationNumberArgumentDeclaration=Y0,c.iterateOverListLoopBodyActionDescriptorIterationNumberArgumentDeclarationDataType=J0,c.iterateOverListLoopBodyActionDescriptorIterationNumberArgumentDeclarationDataTypeParentRef=q0,c.iterateOverListLoopBodyActionDescriptorIterationNumberArgumentDeclarationParentRef=W0,c.iterateOverObjectKeysActionDescriptorObjectArgumentDeclaration=nT,c.iterateOverObjectKeysActionDescriptorObjectArgumentDeclarationDataType=tT,c.iterateOverObjectKeysActionDescriptorObjectArgumentDeclarationDataTypeParentRef=eT,c.iterateOverObjectKeysActionDescriptorObjectArgumentDeclarationParentRef=rT,c.iterateOverObjectKeysLoopActionDescriptor=Ci,c.iterateOverObjectKeysLoopActionDescriptorDynamicReturnDeclaration=aT,c.iterateOverObjectKeysLoopActionDescriptorDynamicReturnDeclarationParentRef=iT,c.iterateOverObjectKeysLoopBodyActionDescriptor=Rd,c.iterateOverObjectKeysLoopBodyActionDescriptorAnyDynamicArgument=yT,c.iterateOverObjectKeysLoopBodyActionDescriptorAnyDynamicArgumentParentRef=hT,c.iterateOverObjectKeysLoopBodyActionDescriptorAnyDynamicReturn=mT,c.iterateOverObjectKeysLoopBodyActionDescriptorAnyDynamicReturnParentRef=fT,c.iterateOverObjectKeysLoopBodyActionDescriptorCurrentValueArgumentDeclaration=Ed,c.iterateOverObjectKeysLoopBodyActionDescriptorCurrentValueArgumentDeclarationDataType=oT,c.iterateOverObjectKeysLoopBodyActionDescriptorCurrentValueArgumentDeclarationDataTypeParentRef=sT,c.iterateOverObjectKeysLoopBodyActionDescriptorCurrentValueArgumentDeclarationParentRef=lT,c.iterateOverObjectKeysLoopBodyActionDescriptorIterationNumberArgumentDeclaration=pT,c.iterateOverObjectKeysLoopBodyActionDescriptorIterationNumberArgumentDeclarationDataType=uT,c.iterateOverObjectKeysLoopBodyActionDescriptorIterationNumberArgumentDeclarationDataTypeParentRef=dT,c.iterateOverObjectKeysLoopBodyActionDescriptorIterationNumberArgumentDeclarationParentRef=cT,c.iterateOverObjectValuesActionDescriptorObjectArgumentDeclaration=gT,c.iterateOverObjectValuesActionDescriptorObjectArgumentDeclarationDataType=ET,c.iterateOverObjectValuesActionDescriptorObjectArgumentDeclarationDataTypeParentRef=vT,c.iterateOverObjectValuesActionDescriptorObjectArgumentDeclarationParentRef=RT,c.iterateOverObjectValuesLoopActionDescriptor=wi,c.iterateOverObjectValuesLoopActionDescriptorDynamicReturnDeclaration=IT,c.iterateOverObjectValuesLoopActionDescriptorDynamicReturnDeclarationParentRef=bT,c.iterateOverObjectValuesLoopBodyActionDescriptor=bd,c.iterateOverObjectValuesLoopBodyActionDescriptorAnyDynamicArgument=BT,c.iterateOverObjectValuesLoopBodyActionDescriptorAnyDynamicArgumentParentRef=wT,c.iterateOverObjectValuesLoopBodyActionDescriptorAnyDynamicReturn=_T,c.iterateOverObjectValuesLoopBodyActionDescriptorAnyDynamicReturnParentRef=MT,c.iterateOverObjectValuesLoopBodyActionDescriptorCurrentValueArgumentDeclaration=gd,c.iterateOverObjectValuesLoopBodyActionDescriptorCurrentValueArgumentDeclarationDataType=DT,c.iterateOverObjectValuesLoopBodyActionDescriptorCurrentValueArgumentDeclarationDataTypeParentRef=AT,c.iterateOverObjectValuesLoopBodyActionDescriptorCurrentValueArgumentDeclarationParentRef=PT,c.iterateOverObjectValuesLoopBodyActionDescriptorIterationNumberArgumentDeclaration=CT,c.iterateOverObjectValuesLoopBodyActionDescriptorIterationNumberArgumentDeclarationDataType=OT,c.iterateOverObjectValuesLoopBodyActionDescriptorIterationNumberArgumentDeclarationDataTypeParentRef=ST,c.iterateOverObjectValuesLoopBodyActionDescriptorIterationNumberArgumentDeclarationParentRef=VT,c.iterateOverStringActionDescriptorDynamicReturnDeclaration=A0,c.iterateOverStringActionDescriptorDynamicReturnDeclarationParentRef=I0,c.iterateOverStringActionDescriptorStringArgumentDeclaration=b0,c.iterateOverStringActionDescriptorStringArgumentDeclarationDataType=R0,c.iterateOverStringActionDescriptorStringArgumentDeclarationDataTypeParentRef=E0,c.iterateOverStringActionDescriptorStringArgumentDeclarationParentRef=g0,c.iterateOverStringLoopActionDescriptor=Ia,c.iterateOverStringLoopBodyActionDescriptor=Js,c.iterateOverStringLoopBodyActionDescriptorAnyDynamicArgument=B0,c.iterateOverStringLoopBodyActionDescriptorAnyDynamicArgumentParentRef=w0,c.iterateOverStringLoopBodyActionDescriptorAnyDynamicReturn=_0,c.iterateOverStringLoopBodyActionDescriptorAnyDynamicReturnParentRef=M0,c.iterateOverStringLoopBodyActionDescriptorCurrentValueArgumentDeclaration=Td,c.iterateOverStringLoopBodyActionDescriptorCurrentValueArgumentDeclarationDataType=P0,c.iterateOverStringLoopBodyActionDescriptorCurrentValueArgumentDeclarationDataTypeParentRef=D0,c.iterateOverStringLoopBodyActionDescriptorCurrentValueArgumentDeclarationParentRef=S0,c.iterateOverStringLoopBodyActionDescriptorIterationNumberArgumentDeclaration=vd,c.iterateOverStringLoopBodyActionDescriptorIterationNumberArgumentDeclarationDataType=V0,c.iterateOverStringLoopBodyActionDescriptorIterationNumberArgumentDeclarationDataTypeParentRef=O0,c.iterateOverStringLoopBodyActionDescriptorIterationNumberArgumentDeclarationParentRef=C0,c.joinListOperation=id,c.joinListOperationError=Vy,c.joinListOperationErrorParentRef=Oy,c.joinListOperationFirstListArgument=Iy,c.joinListOperationFirstListArgumentParentRef=by,c.joinListOperationFirstListArgumentRef=my,c.joinListOperationFirstListDataType=Ty,c.joinListOperationResultListDataType=gy,c.joinListOperationResultListReturn=Sy,c.joinListOperationResultListReturnParentRef=Py,c.joinListOperationResultListReturnRef=Ry,c.joinListOperationSecondListArgument=Dy,c.joinListOperationSecondListArgumentParentRef=Ay,c.joinListOperationSecondListArgumentRef=vy,c.joinListOperationSecondListDataType=Ey,c.joinListWithLastSeparator=K,c.joinStringsOperation=Ra,c.joinStringsOperationDynamicStringArgument=Hh,c.joinStringsOperationDynamicStringArgumentParentRef=Yh,c.joinStringsOperationDynamicStringArgumentRef=Jh,c.joinStringsOperationDynamicStringDataType=Wh,c.joinStringsOperationError=qh,c.joinStringsOperationErrorParentRef=Zh,c.joinStringsOperationFirstStringArgument=_s,c.joinStringsOperationFirstStringArgumentParentRef=Nh,c.joinStringsOperationFirstStringArgumentRef=Vh,c.joinStringsOperationFirstStringDataType=Ch,c.joinStringsOperationResultStringDataType=_h,c.joinStringsOperationResultStringReturn=Ea,c.joinStringsOperationResultStringReturnParentRef=kh,c.joinStringsOperationResultStringReturnRef=Mh,c.joinStringsOperationSecondStringArgument=Ns,c.joinStringsOperationSecondStringArgumentParentRef=jh,c.joinStringsOperationSecondStringArgumentRef=wh,c.joinStringsOperationSecondStringDataType=Bh,c.joinStringsOperationSeparatorStringArgument=xh,c.joinStringsOperationSeparatorStringArgumentParentRef=Uh,c.joinStringsOperationSeparatorStringArgumentRef=Lh,c.joinStringsOperationSeparatorStringDataType=Fh,c.joinStringsOperationSeparatorStringDataTypeDefaultValue=$h,c.joinStringsOperationSeparatorStringDataTypeDefaultValueParentRef=Gh,c.keyValuePrototype=Si,c.lowercaseFirstLetter=vl,c.manualFlowActionDescriptorDeclarationArgumentDeclaration=md,c.manualFlowActionDescriptorDeclarationArgumentDeclarationDataType=p0,c.manualFlowActionDescriptorDeclarationArgumentDeclarationDataTypeParentRef=c0,c.manualFlowActionDescriptorDeclarationArgumentDeclarationParentRef=h0,c.manualFlowLoopActionDescriptor=Zs,c.manualFlowLoopActionDescriptorDynamicReturnDeclaration=u0,c.manualFlowLoopActionDescriptorDynamicReturnDeclarationParentRef=d0,c.manualFlowLoopBodyActionDescriptor=qs,c.manualFlowLoopBodyActionDescriptorAnyDynamicArgument=f0,c.manualFlowLoopBodyActionDescriptorAnyDynamicArgumentParentRef=y0,c.manualFlowLoopBodyActionDescriptorAnyDynamicReturn=T0,c.manualFlowLoopBodyActionDescriptorAnyDynamicReturnParentRef=m0,c.mapActionDescriptorToTypeItRepresents=Iq,c.mergeEntityErrorsList=Ek,c.mergeListOfEntities=Rq,c.methodDefaultValue=_m,c.mockClientProject=qI,c.moreThanOrEqualCondition=Li,c.moreThanOrEqualConditionLeftHandArgument=OE,c.moreThanOrEqualConditionLeftHandArgumentDataType=PE,c.moreThanOrEqualConditionLeftHandArgumentDataTypeParentRef=DE,c.moreThanOrEqualConditionLeftHandArgumentParentRef=SE,c.moreThanOrEqualConditionRightHandArgument=BE,c.moreThanOrEqualConditionRightHandArgumentDataType=CE,c.moreThanOrEqualConditionRightHandArgumentDataTypeParentRef=VE,c.moreThanOrEqualConditionRightHandArgumentParentRef=wE,c.notEmptyCondition=Fn,c.notEmptyConditionArgument=IE,c.notEmptyConditionRef=bE,c.nullPrototype=Jp,c.numberAdditionOperation=Ms,c.numberAdditionOperationDynamicSummandArgument=ch,c.numberAdditionOperationDynamicSummandArgumentType=uh,c.numberAdditionOperationDynamicSummandArgumentTypeParentRef=dh,c.numberAdditionOperationError=lh,c.numberAdditionOperationErrorParentRef=oh,c.numberAdditionOperationFirstNumberArgument=Kl,c.numberAdditionOperationFirstNumberArgumentRef=Qp,c.numberAdditionOperationFirstNumberDataType=eh,c.numberAdditionOperationRef=ah,c.numberAdditionOperationRefThree=Ql,c.numberAdditionOperationRefTwo=sh,c.numberAdditionOperationResultNumberDataType=ih,c.numberAdditionOperationResultNumberReturn=ed,c.numberAdditionOperationResultNumberReturnRef=nh,c.numberAdditionOperationSecondNumberArgument=Xl,c.numberAdditionOperationSecondNumberArgumentRef=th,c.numberAdditionOperationSecondNumberDataType=rh,c.numberPrototype=ue,c.numberSubtractionOperation=rd,c.numberSubtractionOperationDynamicSubtrahendArgument=Sh,c.numberSubtractionOperationDynamicSubtrahendArgumentType=Ph,c.numberSubtractionOperationDynamicSubtrahendArgumentTypeParentRef=Dh,c.numberSubtractionOperationError=Ah,c.numberSubtractionOperationErrorParentRef=Ih,c.numberSubtractionOperationFirstNumberArgument=vh,c.numberSubtractionOperationFirstNumberArgumentRef=ph,c.numberSubtractionOperationFirstNumberDataType=hh,c.numberSubtractionOperationRef=td,c.numberSubtractionOperationRefThree=gh,c.numberSubtractionOperationRefTwo=Eh,c.numberSubtractionOperationResultNumberDataType=Th,c.numberSubtractionOperationResultNumberReturn=bh,c.numberSubtractionOperationResultNumberReturnRef=mh,c.numberSubtractionOperationSecondNumberArgument=Rh,c.numberSubtractionOperationSecondNumberArgumentRef=yh,c.numberSubtractionOperationSecondNumberDataType=fh,c.numberValueAutogenerationSchema=Qu,c.parallelExecutionOperation=Tr,c.parallelExecutionOperationError=Bf,c.parallelExecutionOperationErrorParentRef=wf,c.parallelExecutionOperationListOfExecutionResultsDataType=Of,c.parallelExecutionOperationListOfExecutionResultsReturn=cd,c.parallelExecutionOperationListOfExecutionResultsReturnRef=Sf,c.parallelExecutionOperationListOfFunctionsArgument=ud,c.parallelExecutionOperationListOfFunctionsArgumentDatatype=Pf,c.parallelExecutionOperationListOfFunctionsArgumentRef=Df,c.parallelExecutionOperationListOfFunctionsBlueprint=Af,c.parallelExecutionOperationListOfFunctionsBlueprintDynamicInput=If,c.parallelExecutionOperationListOfFunctionsBlueprintDynamicOutput=bf,c.parallelExecutionOperationRef=Vf,c.parallelExecutionOperationRefThree=Cf,c.persistedBuiltInBaseEntity=gt,c.persistedBuiltInBaseEntityDatabaseProperty=Mi,c.persistedBuiltInBaseEntityDatabasePropertyDataType=nE,c.persistedBuiltInBaseEntityDatabasePropertyDataTypeRef=IP,c.persistedBuiltInBaseEntityDatabasePropertyParentRef=iE,c.persistedBuiltInBaseEntityDatabasePropertyRef=rE,c.persistedBuiltInBaseEntityPrimaryKeyProperty=_i,c.persistedBuiltInBaseEntityPrimaryKeyPropertyDataType=pE,c.persistedBuiltInBaseEntityPrimaryKeyPropertyNumberDataTypeOption=sE,c.persistedBuiltInBaseEntityPrimaryKeyPropertyNumberDataTypeOptionParentRef=aE,c.persistedBuiltInBaseEntityPrimaryKeyPropertyParentRef=hE,c.persistedBuiltInBaseEntityPrimaryKeyPropertyRef=cE,c.persistedBuiltInBaseEntityPrimaryKeyPropertyStringDataTypeOption=lE,c.persistedBuiltInBaseEntityPrimaryKeyPropertyStringDataTypeOptionParentRef=oE,c.persistedBuiltInBaseEntityPrimaryKeyPropertyUUIDDataTypeOption=uE,c.persistedBuiltInBaseEntityPrimaryKeyPropertyUUIDDataTypeOptionParentRef=dE,c.processOutputGlobalValueDescriptorDataType=FE,c.processOutputGlobalValueDescriptorReturn=ro,c.processOutputGlobalValueDescriptorReturnRef=$E,c.projectPublicationCompletedGlobalEvent=to,c.propertyToZodSchema=rR,c.relationalDatabaseBuiltInBaseEntity=Vr,c.relationalDatabaseBuiltInBaseEntityAutoscalingProperty=Ld,c.relationalDatabaseBuiltInBaseEntityAutoscalingPropertyDataType=Xv,c.relationalDatabaseBuiltInBaseEntityAutoscalingPropertyDataTypeRef=Kv,c.relationalDatabaseBuiltInBaseEntityAutoscalingPropertyParentRef=Qv,c.relationalDatabaseBuiltInBaseEntityAutoscalingPropertyRef=zv,c.relationalDatabaseBuiltInBaseEntityDefaultProperty=Nd,c.relationalDatabaseBuiltInBaseEntityDefaultPropertyDataType=Hv,c.relationalDatabaseBuiltInBaseEntityDefaultPropertyDataTypeRef=Wv,c.relationalDatabaseBuiltInBaseEntityDefaultPropertyRef=Yv,c.relationalDatabaseBuiltInBaseEntityIdentifierProperty=Hs,c.relationalDatabaseBuiltInBaseEntityIdentifierPropertyDataType=Fv,c.relationalDatabaseBuiltInBaseEntityIdentifierPropertyDataTypeRef=Gv,c.relationalDatabaseBuiltInBaseEntityIdentifierPropertyRef=$v,c.relationalDatabaseBuiltInBaseEntityMinSizeProperty=Xs,c.relationalDatabaseBuiltInBaseEntityMinSizePropertyDataType=Jv,c.relationalDatabaseBuiltInBaseEntityMinSizePropertyDataTypeRef=Zv,c.relationalDatabaseBuiltInBaseEntityMinSizePropertyRef=qv,c.relationalDatabaseBuiltInBaseEntityPasswordProperty=Ks,c.relationalDatabaseBuiltInBaseEntityPasswordPropertyDataType=kv,c.relationalDatabaseBuiltInBaseEntityPasswordPropertyDataTypeRef=bP,c.relationalDatabaseBuiltInBaseEntityPasswordPropertyRef=jv,c.relationalDatabaseBuiltInBaseEntityRef=Bi,c.relationalDatabaseBuiltInBaseEntityUsernameProperty=zs,c.relationalDatabaseBuiltInBaseEntityUsernamePropertyDataType=xv,c.relationalDatabaseBuiltInBaseEntityUsernamePropertyDataTypeRef=gP,c.relationalDatabaseBuiltInBaseEntityUsernamePropertyRef=Uv,c.resolveActionDescriptorName=U1,c.resolveBaseEntityName=L1,c.resolveBuiltInBaseEntityDataTypeLabel=G1,c.resolveClonedEntityProject=at,c.resolveConditionOperatorLabel=bl,c.resolveDataType=El,c.resolveDataTypeEntityOrNestedChildrenFromLiteralValue=Dp,c.resolveDataTypeLabel=gl,c.resolveDefinitionEntityDataTypeLabel=l7,c.resolveEntityDataTypeLabel=o7,c.resolveEntityName=B,c.resolveFirstCallsSecond=lq,c.resolveFirstWritesSecond=dq,c.resolvePrimaryKeyProperty=Pq,c.resolvePrimitiveEntityName=F1,c.resolveSearchName=$1,c.resolveVariableScope=i7,c.sequentialExecutionOperation=Wr,c.sequentialExecutionOperationError=Xf,c.sequentialExecutionOperationErrorParentRef=Kf,c.sequentialExecutionOperationListOfExecutionResultsDataType=Yf,c.sequentialExecutionOperationListOfExecutionResultsReturn=hd,c.sequentialExecutionOperationListOfExecutionResultsReturnParentRef=zf,c.sequentialExecutionOperationListOfExecutionResultsReturnRef=Wf,c.sequentialExecutionOperationListOfFunctionsArgument=pd,c.sequentialExecutionOperationListOfFunctionsArgumentDatatype=Jf,c.sequentialExecutionOperationListOfFunctionsArgumentParentRef=Hf,c.sequentialExecutionOperationListOfFunctionsArgumentRef=qf,c.sequentialExecutionOperationListOfFunctionsBlueprint=Zf,c.sequentialExecutionOperationListOfFunctionsBlueprintDynamicInput=kf,c.sequentialExecutionOperationListOfFunctionsBlueprintDynamicOutput=jf,c.softDeletePersistedEntityMethod=AP,c.softDeletePersistedEntityMethodParentRef=yE,c.sortCallsBasedOnExecutionDependencies=lD,c.sortChildrenEntitiesBasedOnExecutionDependencies=sq,c.splitListOperation=sd,c.splitListOperationError=Wy,c.splitListOperationErrorParentRef=Jy,c.splitListOperationFirstOutputListDataType=Ly,c.splitListOperationFirstOutputListReturn=jy,c.splitListOperationFirstOutputListReturnParentRef=xy,c.splitListOperationFirstOutputListReturnRef=ad,c.splitListOperationInputListArgument=$y,c.splitListOperationInputListArgumentParentRef=Gy,c.splitListOperationInputListArgumentRef=By,c.splitListOperationInputListDataType=My,c.splitListOperationSecondOutputListDataType=ky,c.splitListOperationSecondOutputListReturn=qy,c.splitListOperationSecondOutputListReturnParentRef=Zy,c.splitListOperationSplitIndexArgument=Uy,c.splitListOperationSplitIndexArgumentParentRef=Fy,c.splitListOperationSplitIndexArgumentRef=_y,c.splitListOperationSplitIndexDataType=Ny,c.splitStringOperation=nd,c.splitStringOperationError=py,c.splitStringOperationErrorParentRef=cy,c.splitStringOperationFirstPartResultStringDataType=ty,c.splitStringOperationFirstPartResultStringReturn=uy,c.splitStringOperationFirstPartResultStringReturnParentRef=dy,c.splitStringOperationFirstPartResultStringReturnRef=ey,c.splitStringOperationIndexArgument=oy,c.splitStringOperationIndexArgumentParentRef=sy,c.splitStringOperationIndexArgumentRef=Xh,c.splitStringOperationIndexDataType=Qh,c.splitStringOperationSecondPartResultStringDataType=ny,c.splitStringOperationSecondPartResultStringReturn=EP,c.splitStringOperationSecondPartResultStringReturnParentRef=ly,c.splitStringOperationSecondPartResultStringReturnRef=ry,c.splitStringOperationStringArgument=ay,c.splitStringOperationStringArgumentParentRef=iy,c.splitStringOperationStringArgumentRef=zh,c.splitStringOperationStringDataType=Kh,c.stringPrototype=X,c.stringValueAutogenerationSchema=Xu,c.suggestNewIdForEntity=cp,c.test_primitive_entities_export=dJ,c.toCamelCase=a7,c.toEntityState=Xt,c.toKebabCase=N1,c.toLowerCaseKebabCase=Rl,c.toPascalCase=s7,c.untypedDataPrototype=vt,c.updateErrorsList=xe,c.updateValueReader=gq,c.urlDefaultValue=Om,c.uuidPrototype=qr,c.validateArgumentDeclarationName=dp,c.validateCalledByErrorIdInAction=K7,c.validateCalledByIdInAction=z7,c.validateCallers=z1,c.validateConditionEntityDeclaration=eq,c.validateDataOperation=_n,c.validateDataOperationDataToValidateArgument=Tm,c.validateDataOperationDataToValidateArgumentParentRef=mm,c.validateDataOperationDataToValidateArgumentRef=ym,c.validateDataOperationDataToValidateDataType=fm,c.validateDataOperationEntityToMatchTypeArgument=gm,c.validateDataOperationEntityToMatchTypeArgumentParentRef=Rm,c.validateDataOperationEntityToMatchTypeArgumentRef=vm,c.validateDataOperationEntityToMatchTypeDataType=Em,c.validateDataOperationError=Dm,c.validateDataOperationErrorParentRef=Am,c.validateDataOperationOutputEntityDeclaration=Im,c.validateDataOperationOutputEntityDeclarationParentRef=bm,c.validateDefinitionEntityName=Il,c.validateEntryCaller=H1,c.validateErrorCaller=Y1,c.validateFunctionCallDeclaration=X1,c.validateFunctionDeclarationName=sp,c.validateGeneratedEntityParentIsNotBuiltInEntity=J7,c.validateGeneration=Z7,c.validateGenerationTarget=et,c.validateGenerationUpdate=q7,c.validateLoopEntityDeclaration=tq,c.validateName=d7,c.validateOperationEntityDeclaration=Q1,c.validatePropertyName=lp,c.validateReachability=ln,c.validateReadsValueInActionPayload=X7,c.validateReferenceObject=Dl,c.validateReferenceToOne=yp,c.validateReferences=ft,c.validateReturnDeclarationName=up,c.validateSuccessCaller=W1,c.validateValueReaderGenerationUpdate=gs,c.validateValueWritter=Rp,c.validateVariableDeclarationName=op,c.validateVariableInternalCallUse=gp,c.valueAutogenerationCurrentDateAndTimeSchema=YI,c.valueAutogenerationGenericSchema=qo,c.valueAutogenerationOptions=tc,c.valueAutogenerationOptionsSchema=WI,c.valueAutogenerationRandomBooleanSchema=Ku,c.valueAutogenerationRandomDateBetweenSchema=nA,c.valueAutogenerationRandomDateFromSchema=tA,c.valueAutogenerationRandomDateSchema=Yo,c.valueAutogenerationRandomDateUntilSchema=rA,c.valueAutogenerationRandomNumberBetweenSchema=KI,c.valueAutogenerationRandomNumberFromSchema=HI,c.valueAutogenerationRandomNumberSchema=Jo,c.valueAutogenerationRandomNumberUntilSchema=zI,c.valueAutogenerationRandomSchema=ns,c.valueAutogenerationRandomTextBetweenSchema=eA,c.valueAutogenerationRandomTextFromSchema=XI,c.valueAutogenerationRandomTextSchema=Wo,c.valueAutogenerationRandomTextUntilSchema=QI,c.valueAutogenerationRangeValueTypesSchema=rs,c.valueAutogenerationUniqueSchema=zu,c.waitOperation=Nt,c.waitOperationMillisecondsNumberArgument=Bn,c.waitOperationMillisecondsNumberArgumentRef=Nf,c.waitOperationMillisecondsNumberDataType=Lf,c.waitOperationOperationError=Ff,c.waitOperationOperationErrorParentRef=$f,c.waitOperationRef=Gf,Object.defineProperty(c,Symbol.toStringTag,{value:"Module"})});