@elyx-code/project-logic-tree 0.0.6232 → 0.0.6234
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/definitions/types/primitives.d.ts +4 -4
- package/dist/index.js +21 -14
- package/dist/index.umd.cjs +3 -3
- package/dist/tree/state/argument-declaration/validation/validation-schema.d.ts +4 -4
- package/dist/tree/state/break-statement/validation/validation-schema.d.ts +4 -4
- package/dist/tree/state/condition/validation/validation-schema.d.ts +4 -4
- package/dist/tree/state/continue-statement/validation/validation-schema.d.ts +4 -4
- package/dist/tree/state/definition-entity/validation/validation-schema.d.ts +8 -8
- package/dist/tree/state/function-call/validation/validation-schema.d.ts +4 -4
- package/dist/tree/state/function-declaration/validation/validation-schema.d.ts +6 -6
- package/dist/tree/state/global-event/validation/validation-schema.d.ts +4 -4
- package/dist/tree/state/installed-project/validation/validation-schema.d.ts +4 -4
- package/dist/tree/state/literal-value/literal-value.d.ts +5 -2
- package/dist/tree/state/loop/validation/validation-schema.d.ts +4 -4
- package/dist/tree/state/operation/validation/validation-schema.d.ts +4 -4
- package/dist/tree/state/return-statement/validation/validation-schema.d.ts +4 -4
- package/dist/tree/state/search/validation/validation-schema.d.ts +4 -4
- package/dist/tree/state/variable-declaration/validation/validation-schema.d.ts +4 -4
- package/dist/tree/state/variable-instance/validation/validation-schema.d.ts +4 -4
- package/package.json +1 -1
package/dist/index.umd.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(h,n){typeof exports=="object"&&typeof module<"u"?n(exports):typeof define=="function"&&define.amd?define(["exports"],n):(h=typeof globalThis<"u"?globalThis:h||self,n(h["@elyx-code/project-logic-tree"]={}))})(this,function(h){"use strict";var qW=Object.defineProperty;var JW=(h,n,S)=>n in h?qW(h,n,{enumerable:!0,configurable:!0,writable:!0,value:S}):h[n]=S;var f=(h,n,S)=>(JW(h,typeof n!="symbol"?n+"":n,S),S);var n=(r=>(r.DefinitionEntity="definition-entity",r.BuiltInBaseEntity="built-in-base-entity",r.Project="project",r.InstalledProject="installed-project",r.GlobalEvent="global-event",r.DataType="data-type",r.FunctionCall="function-call",r.FunctionDeclaration="function-declaration",r.ActionDescriptor="action-descriptor",r.ValueDescriptor="value-descriptor",r.ArgumentDeclaration="argument-declaration",r.InputMap="input-map",r.ReturnStatement="return-statement",r.BreakStatement="break-statement",r.ContinueStatement="continue-statement",r.ReturnDeclaration="return-declaration",r.OutputMap="output-map",r.PrimitiveEntity="primitive-entity",r.LiteralValue="literal-value",r.Property="property",r.Operation="operation",r.Condition="condition",r.VariableDeclaration="variable-declaration",r.VariableInstance="variable-instance",r.Search="search",r.Loop="loop",r.InternalCall="internal-call",r.GenericReference="generic-reference",r))(n||{}),S=(r=>(r.HTTP_ENDPOINT="BUILT_IN_HTTP_ENDPOINT_ENTITY",r.RELATIONAL_DATABASE="BUILT_IN_RELATIONAL_DATABASE_ENTITY",r.PERSISTED_ENTITY="BUILT_IN_PERSISTED_ENTITY_ENTITY",r.CRON_JOB="BUILT_IN_CRON_JOB_ENTITY",r.EXECUTION="BUILT_IN_EXECUTION_ENTITY",r.KEY_VALUE_PARAM="BUILT_IN_KEY_VALUE_PARAM_ENTITY",r))(S||{}),vt=(r=>(r.CurrentDateAndTime="current-date-and-time",r.Unique="unique",r.Random="random",r))(vt||{}),L=(r=>(r.EntityTemplate="entity-template",r.ActionDescriptor="action-descriptor",r.String="string",r.Number="number",r.Boolean="boolean",r.Null="null",r.Enum="enum",r.KeyValue="key-value",r.Date="date",r.UUID="uuid",r.File="file",r.Untyped="untyped",r))(L||{}),tt=(r=>(r.Addition="addition",r.Subtraction="subtraction",r.Multiplication="multiplication",r.Division="division",r.Remainder="remainder",r.Exponentiation="exponentiation",r))(tt||{}),Ee=(r=>(r.Join="string-join",r.Split="string-split",r.DeleteLast="string-delete-last",r.DeleteFirst="string-delete-first",r.DeleteIndex="string-delete-index",r.AddIndex="string-add-index",r.ReplaceFirst="string-replace-first",r.ReplaceLast="string-replace-last",r.ReplaceIndex="string-replace-index",r.ReplaceSingleMatch="string-replace-single-match",r.ReplaceAllMatches="string-replace-all-matches",r.GetIndex="string-get-index",r.GetFirst="string-get-first",r.GetLast="string-get-last",r.Append="string-append",r.Prepend="string-prepend",r))(Ee||{}),he=(r=>(r.Join="list-join",r.Split="list-split",r.DeleteLast="list-delete-last",r.DeleteFirst="list-delete-first",r.DeleteIndex="list-delete-index",r.AddIndex="list-add-index",r.ReplaceFirst="list-replace-first",r.ReplaceLast="list-replace-last",r.ReplaceIndex="list-replace-index",r.ReplaceSingleMatch="list-replace-single-match",r.ReplaceAllMatches="list-replace-all-matches",r.GetIndex="list-get-index",r.GetFirst="list-get-first",r.GetLast="list-get-last",r.Append="list-append",r.Prepend="list-prepend",r))(he||{}),Qe=(r=>(r.Parallel="parallel",r.Sequential="sequential",r.Wait="wait",r))(Qe||{}),et=(r=>(r.CreateNewInstance="create-new-instance",r.Validate="validate",r))(et||{}),Lt=(r=>(r.HttpRequest="base-http-request",r))(Lt||{}),yt=(r=>(r.Equal="equal",r.NotEqual="not-equal",r.And="and",r.Or="or",r.LessThan="less-than",r.MoreThan="more-than",r.LessThanOrEqual="less-than-or-equal",r.MoreThanOrEqual="more-than-or-equal",r))(yt||{}),bi=(r=>(r.Empty="empty",r.NotEmpty="not-empty",r))(bi||{}),ee=(r=>(r.ManualFlow="manual-flow-loop",r.Counted="counted-loop",r.List="list-loop",r.ObjectKeys="object-keys-loop",r.ObjectValues="object-values-loop",r.String="string-loop",r))(ee||{}),N=(r=>(r.FixedArguments="fixed-arguments",r.FixedReturns="fixed-returns",r.ReturnedError="returned-error",r.OngoingProcessExecution="ongoing-process-execution",r.DynamicArgument="dynamic-argument-types",r.DynamicReturn="dynamic-return-types",r))(N||{}),Pt=(r=>(r.OrDataTypeGroup="or-data-type-group",r.AndDataTypeGroup="and-data-type-group",r))(Pt||{}),ir=(r=>(r.PROJECT_PUBLICATION_COMPLETED="GLOBAL_EVENT_PROJECT_PUBLICATION_COMPLETED",r))(ir||{}),ci=(r=>(r.DeletePersistedEntity="base-delete-persisted-entity",r.SoftDeletePersistedEntity="base-soft-delete-persisted-entity",r.AbortExecution="base-abort-execution",r))(ci||{}),xn=(r=>(r.Error="error",r.Task="task",r.Return="return",r))(xn||{});const Dr=[n.VariableDeclaration,n.VariableInstance,n.InputMap,n.ReturnDeclaration],Tt=[n.VariableDeclaration,n.VariableInstance,n.ArgumentDeclaration,n.OutputMap],af=[...Dr,...Tt,n.Property,n.ValueDescriptor],it=[n.VariableDeclaration,n.VariableInstance],Rw=[n.FunctionDeclaration,n.Condition,n.Loop,n.Operation,n.FunctionCall,n.Search,n.InternalCall,n.GlobalEvent,n.DefinitionEntity,n.ReturnStatement,n.BreakStatement,n.ContinueStatement,n.VariableDeclaration,n.VariableInstance,n.LiteralValue,n.ActionDescriptor,n.ValueDescriptor,n.Property,n.DataType,n.InstalledProject,n.ArgumentDeclaration,n.InputMap,n.OutputMap,n.ReturnDeclaration],Dw=[n.FunctionDeclaration,n.Property,n.ArgumentDeclaration,n.ReturnDeclaration],of=[n.FunctionCall,n.VariableInstance,n.InputMap,n.OutputMap,n.InternalCall],Ow=[...of,n.Condition,n.Loop,n.Operation,n.Condition],kn=[n.GlobalEvent],pl=[n.Operation,n.FunctionCall,n.Search,n.VariableDeclaration,n.VariableInstance,n.Loop],df=[...pl,n.InternalCall],Sa=[...pl,n.Condition],lt=[...Sa,n.InternalCall],at=[n.FunctionDeclaration,...kn],$i=[...lt,n.ReturnStatement,n.BreakStatement,n.ContinueStatement],cl=[...Sa,n.ReturnStatement,n.BreakStatement,n.ContinueStatement],gi=[...lt,...at],lf=[...Sa,...at],Pw=[...$i,...at],ww=[...cl,...at],ut=[...at,n.Loop],ot=[n.ReturnStatement,n.BreakStatement,n.ContinueStatement],Cw=[n.DefinitionEntity,n.BuiltInBaseEntity,n.Project,n.InstalledProject,n.GlobalEvent,n.DataType,n.FunctionCall,n.FunctionDeclaration,n.ActionDescriptor,n.ValueDescriptor,n.ArgumentDeclaration,n.InputMap,n.ReturnStatement,n.BreakStatement,n.ContinueStatement,n.ReturnDeclaration,n.OutputMap,n.PrimitiveEntity,n.LiteralValue,n.Property,n.Operation,n.Condition,n.VariableDeclaration,n.VariableInstance,n.Search,n.Loop,n.InternalCall],Wa=[n.DefinitionEntity,n.GlobalEvent,n.FunctionDeclaration,n.FunctionCall,n.VariableDeclaration,n.VariableInstance,n.Operation,n.Condition,n.ReturnStatement,n.BreakStatement,n.ContinueStatement,n.InstalledProject,n.Loop,n.Search],uf=[n.DefinitionEntity,n.FunctionDeclaration,n.ArgumentDeclaration,n.ReturnDeclaration,n.Property,n.VariableDeclaration,n.Search,n.Project,n.InstalledProject,n.ActionDescriptor,n.ValueDescriptor],fi=[n.BuiltInBaseEntity,n.PrimitiveEntity],pf=[n.DefinitionEntity,n.FunctionDeclaration,n.ArgumentDeclaration,n.ReturnDeclaration,n.Property,n.VariableDeclaration,n.GlobalEvent,n.Search,n.Project,n.InstalledProject,n.ActionDescriptor,n.ValueDescriptor,n.InputMap,n.OutputMap,n.FunctionCall,n.Operation,n.Condition,n.ReturnStatement,n.BreakStatement,n.ContinueStatement,n.VariableInstance,n.LiteralValue,n.InternalCall];var za=(r=>(r.ActionOngoingProcessOutputValue="action-ongoing-process-output-value-descriptor-id",r))(za||{});const k={[n.PrimitiveEntity]:{[L.String]:{id:"8b5fbe15-4c2b-48c0-9fd8-e5efbe3978dc",properties:{}},[L.Boolean]:{id:"f596545d-1565-4faa-9969-d95fa5edfea4",properties:{}},[L.Number]:{id:"ecb84c29-6153-4b82-86a5-fce2b5f92002",properties:{}},[L.KeyValue]:{id:"b6f3c3c4-9c3d-4f9d-9e9e-1c0f6a3c8c6b",properties:{}},[L.Enum]:{id:"9542b8b4-2642-4eee-9db9-def7963a17a0",properties:{options:{id:"00ccfcae-2104-45ef-bf6c-50ddccd74286",dataType:{id:"7dd59b70-f97b-43a7-a051-fde1842ce5d6",defaultValue:{id:"enum-options-property-data-type-default-value-id"}}}}},[L.UUID]:{id:"4a6234aa-c0f6-4731-b4dd-750388029226",properties:{}},[L.Date]:{id:"dc58f38b-d574-4956-aac6-32ce9529b937",properties:{}},[L.Null]:{id:"7d698f34-5a89-4aab-846b-07ef3843b8c4",properties:{}},[L.Untyped]:{id:"4044a018-818e-49d7-bf9a-c3dd1fff2102",properties:{}}},[n.ValueDescriptor]:{"action-ongoing-process-output-value-descriptor-id":{id:"action-ongoing-process-output-value-descriptor-id",dataType:{id:"process-output-value-data-type-id"}}},[n.BuiltInBaseEntity]:{[S.KEY_VALUE_PARAM]:{id:S.KEY_VALUE_PARAM},[S.HTTP_ENDPOINT]:{id:S.HTTP_ENDPOINT,properties:{method:{id:"http-endpoint-built-in-method-property-id"},path:{id:"http-endpoint-built-in-path-property-id"},cors:{id:"http-endpoint-built-in-cors-property-id"}},methods:{handler:{id:"http-endpoint-built-in-handler-method-id",outputs:{statusCode:{id:"http-endpoint-built-in-handler-status-code-output-id"},body:{id:"http-endpoint-built-in-handler-body-output-id"},headers:{id:"http-endpoint-built-in-handler-headers-output-id"}}}}},[S.PERSISTED_ENTITY]:{id:S.PERSISTED_ENTITY,properties:{database:{id:"persisted-built-in-base-entity-database-property-id"},primaryKey:{id:"persisted-built-in-base-entity-primary-key-property-id"}}},[S.RELATIONAL_DATABASE]:{id:S.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"}}},[S.CRON_JOB]:{id:S.CRON_JOB,properties:{expression:{id:"cron-job-built-in-base-entity-expression-property-id"}},methods:{handler:{id:"cron-job-built-in-base-entity-handler-method-id"}}}},[n.Operation]:{[Ee.Join]:{id:Ee.Join,inputs:{separator:{id:"join-strings-separator-input-id"},first:{id:"join-strings-first-string-input-id"},second:{id:"join-strings-second-string-input-id"},dynamicString:{id:"join-strings-dynamic-string-input-id"}},outputs:{result:{id:"join-strings-result-string-return-delaration-id"},error:{id:"join-strings-error-return-delaration-id"}}},[Ee.Split]:{id:Ee.Split,inputs:{stringValue:{id:"split-string-string-input-id"},indexLocation:{id:"split-string-index-input-id"}},outputs:{firstPartResult:{id:"split-string-first-part-result-string-return-delaration-id"},secondPartResult:{id:"split-string-second-part-result-string-return-delaration-id"},error:{id:"split-string-error-return-delaration-id"}}},[tt.Addition]:{id:tt.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"}}},[tt.Subtraction]:{id:tt.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"}}},[Lt.HttpRequest]:{id:Lt.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"}}},[et.Validate]:{id:et.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"}}},[Qe.Parallel]:{id:Qe.Parallel,inputs:{listOfActions:{id:"parallel-execution-list-of-actions-input-id"}},outputs:{results:{id:"parallel-execution-results-output-id",dataType:{id:"parallel-execution-results-data-type-id"}},error:{id:"parallel-execution-error-output-id"}}}},[n.Loop]:{[ee.List]:{id:ee.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"}}}},[ee.String]:{id:ee.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"}}}},[ee.ObjectKeys]:{id:ee.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"}}}},[ee.ObjectValues]:{id:ee.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"}}}},[ee.ManualFlow]:{id:ee.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"}}}},[ee.Counted]:{id:ee.Counted,inputs:{number:{id:"counted-loop-number-input-id"}},outputs:{results:{id:"counted-loop-output-id"}},body:{id:"counted-loop-body-descriptor-id",inputs:{iterationNumber:{id:"counted-loop-iteration-number-input-id"}}}}},[n.Condition]:{[yt.MoreThanOrEqual]:{id:yt.MoreThanOrEqual,inputs:{leftHand:{id:"condition-more-than-or-equal-left-hand-input-id",dataType:{id:"condition-more-than-or-equal-left-hand-data-type-id"}},rightHand:{id:"condition-more-than-or-equal-right-hand-input-id",dataType:{id:"condition-more-than-or-equal-right-hand-data-type-id"}}}},[bi.NotEmpty]:{id:bi.NotEmpty,inputs:{leftHand:{id:"condition-not-empty-input-id"}}}},[n.GlobalEvent]:{[ir.PROJECT_PUBLICATION_COMPLETED]:{id:ir.PROJECT_PUBLICATION_COMPLETED}}},yi=k[n.PrimitiveEntity],ae={type:n.PrimitiveEntity,id:yi.string.id,description:"A string of characters.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.String,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[],methods:[]},rr={type:n.PrimitiveEntity,id:yi.boolean.id,description:"A 'true' or 'false' value.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.Boolean,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[],methods:[]},ve={type:n.PrimitiveEntity,id:yi.number.id,description:"A number value.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.Number,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[],methods:[]},fl={type:n.PrimitiveEntity,id:yi.null.id,description:"An explicitly empty value.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.Null,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[],methods:[]},wt={type:n.PrimitiveEntity,id:yi.untyped.id,description:"Data of any type that isn't known in advance.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.Untyped,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[],methods:[]},cf={id:"c2f52f01-8f2e-490e-8083-72289c8189c1",type:n.GenericReference,entityId:yi.enum.properties.options.id,version:"1",entityType:n.Property},ff={id:"4e803941-2e6a-4227-b803-b8877c0d7fee",type:n.GenericReference,entityId:"00ccfcae-2104-45ef-bf6c-50ddccd74286",version:"1",entityType:n.Property},yf={like:!1,inferred:!1,id:yi.enum.properties.options.dataType.id,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!0,entity:ae,asType:!1,parent:ff},hf={id:"a2983c4c-0286-4ef1-8b5c-5a52904d3200",type:n.GenericReference,entityId:"9542b8b4-2642-4eee-9db9-def7963a17a0",version:"1",entityType:n.PrimitiveEntity},mf={constant:!1,hidden:!1,required:!0,id:yi.enum.properties.options.id,name:"Options",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,implements:null,static:!1,index:0,defaultValue:{id:yi.enum.properties.options.dataType.defaultValue.id,type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.KeyValue,autogeneration:null,value:[],valueAsTypeList:null,valueAsTypeSingle:null,parent:cf},dataType:yf,description:"Options for the enum. Each option is a text value.",parent:hf},nr={type:n.PrimitiveEntity,id:yi.enum.id,description:"A set of text options to choose from.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.Enum,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[mf],methods:[]},Gi={type:n.PrimitiveEntity,id:yi.date.id,description:"A date and time value.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.Date,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[],methods:[]},sr={type:n.PrimitiveEntity,id:yi.uuid.id,description:"A unique identifier in the form of a 36-character string.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.UUID,static:!1,abstract:!1,abstractMethods:[],extends:[ae],properties:[],methods:[]},Zn={type:n.PrimitiveEntity,id:yi[L.KeyValue].id,description:"A complex data structure with any combination of properties with names and values.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.KeyValue,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[],methods:[]},vf=[ae,rr,ve,fl,wt,nr,Gi,sr,Zn],Fi=k[n.Operation][tt.Addition],Tf={type:n.GenericReference,id:"3bd4aeb2-e3b7-4120-b289-011ebb03dba5",entityId:Fi.inputs.firstSummand.id,version:"1",entityType:n.ValueDescriptor},If={like:!1,inferred:!1,id:"number-addition-first-number-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,isList:!1,asType:!1,parent:Tf},Ef={type:n.GenericReference,id:"9f486db2-a983-4293-9eef-81d4fc8d2d3e",entityId:Fi.inputs.secondSummand.id,version:"1",entityType:n.ValueDescriptor},Af={like:!1,inferred:!1,id:"1d4abe83-3e87-4f74-99be-c1fd8c2f8d2d",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,asType:!1,isList:!1,parent:Ef},bf={type:n.GenericReference,id:"da5e9fe9-f18a-49e3-98e5-c1bf7b9b3153",entityId:Fi.outputs.result.id,version:"1",entityType:n.ValueDescriptor},Rf={like:!1,inferred:!1,id:Fi.outputs.result.dataType.id,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,asType:!1,isList:!1,parent:bf},Df={type:n.GenericReference,id:"a6c14305-d4f7-43ae-9d5e-b7dbacdc830a",entityId:tt.Addition,version:"1",entityType:n.ActionDescriptor},yl={id:Fi.inputs.firstSummand.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Summand",description:"The first number to add",defaultValue:null,dataType:If,required:!0,parentRelationType:N.FixedArguments,index:0,parent:Df},Of={type:n.GenericReference,id:"c5015128-4a65-462c-9da0-1c86e83ef897",entityId:tt.Addition,version:"1",entityType:n.ActionDescriptor},hl={id:Fi.inputs.secondSummand.id,type:n.ValueDescriptor,description:"The second number to add",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Summand",defaultValue:null,dataType:Af,required:!0,parentRelationType:N.FixedArguments,index:1,parent:Of},ml={type:n.GenericReference,id:"caac2bc7-c23c-4f01-9581-a515c2e4637f",entityId:tt.Addition,version:"1",entityType:n.ActionDescriptor},vl={parentRelationType:N.FixedReturns,id:Fi.outputs.result.id,type:n.ValueDescriptor,description:"The result number of the addition",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Result",defaultValue:null,dataType:Rf,required:!0,index:0,parent:ml},Pf={type:n.GenericReference,id:"number-addition-operation-error-parent-ref",entityId:tt.Addition,version:"1",entityType:n.ActionDescriptor},wf={parentRelationType:N.FixedReturns,id:Fi.outputs.error.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Error",description:"An error that occurred during the operation.",defaultValue:null,dataType:null,required:!0,index:1,parent:Pf},Cf={type:n.GenericReference,id:"number-addition-operation-dynamic-summand-argument-type-parent-ref",entityId:Fi.inputs.dynamicSummand.id,version:"1",entityType:n.ValueDescriptor},Vf={like:!1,inferred:!1,id:"number-addition-operation-dynamic-summand-argument-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,asType:!1,isList:!1,parent:Cf},Bf={parentRelationType:N.DynamicArgument,id:Fi.inputs.dynamicSummand.id,type:n.ValueDescriptor,description:"A number to add",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Summand",defaultValue:null,dataType:Vf,required:!0,index:2,parent:ml},Ya={id:tt.Addition,type:n.ActionDescriptor,description:"Sum numbers",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:tt.Addition,inputs:[yl,hl,Bf],error:wf,outputs:[vl],parent:null},xi=k[n.Operation][tt.Subtraction],_f={type:n.GenericReference,id:"3bd4aeb2-e3b7-4120-b289-011ebb03dba5",entityId:xi.inputs.minuend.id,version:"1",entityType:n.ValueDescriptor},Mf={like:!1,inferred:!1,id:"number-subtraction-first-number-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,isList:!1,asType:!1,parent:_f},Nf={type:n.GenericReference,id:"9f486db2-a983-4293-9eef-81d4fc8d2d3e",entityId:xi.inputs.subtrahend.id,version:"1",entityType:n.ValueDescriptor},Lf={like:!1,inferred:!1,id:"1d4abe83-3e87-4f74-99be-c1fd8c2f8d2d",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,asType:!1,isList:!1,parent:Nf},jf={type:n.GenericReference,id:"da5e9fe9-f18a-49e3-98e5-c1bf7b9b3153",entityId:xi.outputs.result.id,version:"1",entityType:n.ValueDescriptor},Uf={like:!1,inferred:!1,id:xi.outputs.result.dataType.id,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,asType:!1,isList:!1,parent:jf},Tl={type:n.GenericReference,id:"a6c14305-d4f7-43ae-9d5e-b7dbacdc830a",entityId:tt.Subtraction,version:"1",entityType:n.ActionDescriptor},$f={id:xi.inputs.minuend.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Minuend",description:"Base number to substract from",defaultValue:null,dataType:Mf,required:!0,parentRelationType:N.FixedArguments,index:0,parent:Tl},gf={type:n.GenericReference,id:"c5015128-4a65-462c-9da0-1c86e83ef897",entityId:tt.Subtraction,version:"1",entityType:n.ActionDescriptor},Gf={id:xi.inputs.subtrahend.id,type:n.ValueDescriptor,description:"The second number to substract",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Subtrahend",defaultValue:null,dataType:Lf,required:!0,parentRelationType:N.FixedArguments,index:1,parent:gf},Ff={type:n.GenericReference,id:"caac2bc7-c23c-4f01-9581-a515c2e4637f",entityId:tt.Subtraction,version:"1",entityType:n.ActionDescriptor},xf={parentRelationType:N.FixedReturns,id:xi.outputs.result.id,type:n.ValueDescriptor,description:"The result number of the subtraction",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Result",defaultValue:null,dataType:Uf,required:!0,index:0,parent:Ff},kf={type:n.GenericReference,id:"number-subtraction-operation-error-parent-ref",entityId:tt.Subtraction,version:"1",entityType:n.ActionDescriptor},Zf={parentRelationType:N.FixedReturns,id:xi.outputs.error.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Error",description:"An error that occurred during the operation.",defaultValue:null,dataType:null,required:!0,index:1,parent:kf},qf={type:n.GenericReference,id:"number-subtraction-operation-dynamic-subtrahend-argument-type-parent-ref",entityId:xi.inputs.dynamicSubtrahend.id,version:"1",entityType:n.ValueDescriptor},Jf={like:!1,inferred:!1,id:"number-subtraction-operation-dynamic-subtrahend-argument-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,asType:!1,isList:!1,parent:qf},Sf={id:xi.inputs.dynamicSubtrahend.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Subtrahend",description:"A number to substract",defaultValue:null,dataType:Jf,required:!0,parentRelationType:N.DynamicArgument,index:2,parent:Tl},Il={id:tt.Subtraction,type:n.ActionDescriptor,description:"Substract numbers",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:tt.Subtraction,inputs:[$f,Gf,Sf],error:Zf,outputs:[xf],parent:null},Wf={[tt.Addition]:Ya,[tt.Subtraction]:Il},Ri=k[n.Operation][Ee.Join],zf={type:n.GenericReference,id:"join-strings-first-string-argument-declaration",entityId:Ri.inputs.first.id,version:"1",entityType:n.ValueDescriptor},Yf={like:!1,inferred:!1,id:"join-strings-first-string-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ae,asType:!1,isList:!1,parent:zf},Hf={type:n.GenericReference,id:"join-strings-second-string-argument-declaration",entityId:Ri.inputs.second.id,version:"1",entityType:n.ValueDescriptor},Kf={like:!1,inferred:!1,id:"join-strings-second-string-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ae,asType:!1,isList:!1,parent:Hf},Xf={type:n.GenericReference,id:"join-strings-result-string-return-delaration",entityId:Ri.outputs.result.id,version:"1",entityType:n.ValueDescriptor},Qf={like:!1,inferred:!1,id:"join-strings-result-string-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ae,asType:!1,isList:!1,parent:Xf},ey={type:n.GenericReference,id:"join-strings-operation-first-string-argument-parent-ref",entityId:Ee.Join,version:"1",entityType:n.ActionDescriptor},Ha={id:Ri.inputs.first.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Text",description:"The first text to join to the second one. Its value will be at the beginning of the resulting text.",defaultValue:null,dataType:Yf,parentRelationType:N.FixedArguments,required:!0,index:1,parent:ey},ty={type:n.GenericReference,id:"join-strings-first-string-argument-declaration",entityId:Ri.inputs.first.id,version:"1",entityType:n.ValueDescriptor},iy={type:n.GenericReference,id:"join-strings-separator-string-data-type-default-value-parent-ref",entityId:Ri.inputs.separator.id,version:"1",entityType:n.ValueDescriptor},ry={type:n.LiteralValue,id:"join-strings-separator-string-data-type-default-value-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.String,value:"",valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null,parent:iy},ny={like:!1,inferred:!1,id:"join-strings-separator-string-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ae,asType:!1,isList:!1,parent:ty},sy={type:n.GenericReference,id:"join-strings-operation-separator-string-argument-parent-ref",entityId:Ee.Join,version:"1",entityType:n.ActionDescriptor},ay={id:Ri.inputs.separator.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Separator",description:"The text value that will be inserted between each of the values that are joined.",defaultValue:ry,dataType:ny,parentRelationType:N.FixedArguments,required:!1,index:0,parent:sy},oy={type:n.GenericReference,id:"join-strings-operation-second-string-argument-parent-ref",entityId:Ee.Join,version:"1",entityType:n.ActionDescriptor},Ka={id:Ri.inputs.second.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Text",description:"The second text to join to the first one. Its value will be at the end of the resulting text.",defaultValue:null,dataType:Kf,parentRelationType:N.FixedArguments,required:!0,index:2,parent:oy},dy={type:n.GenericReference,id:"join-strings-operation-result-string-return-parent-ref",entityId:Ee.Join,version:"1",entityType:n.ActionDescriptor},Bs={parentRelationType:N.FixedReturns,id:Ri.outputs.result.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Result",description:"The resulting text value.",defaultValue:null,dataType:Qf,required:!0,index:0,parent:dy},ly={type:n.GenericReference,id:"join-strings-operation-error-parent-ref",entityId:Ee.Join,version:"1",entityType:n.ActionDescriptor},uy={parentRelationType:N.FixedReturns,id:Ri.outputs.error.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Error",description:"An error that occurred during the operation.",defaultValue:null,dataType:null,required:!0,index:1,parent:ly},py={type:n.GenericReference,id:"join-strings-dynamic-string-argument-declaration",entityId:Ri.inputs.dynamicString.id,version:"1",entityType:n.ValueDescriptor},cy={like:!1,inferred:!1,id:"join-strings-dynamic-string-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ae,asType:!1,isList:!1,parent:py},fy={type:n.GenericReference,id:"join-strings-operation-dynamic-string-argument-parent-ref",entityId:Ee.Join,version:"1",entityType:n.ActionDescriptor},yy={id:Ri.inputs.dynamicString.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Text",description:"Text to join to the previous ones. Its value will be at the end of the resulting text.",defaultValue:null,dataType:cy,parentRelationType:N.DynamicArgument,required:!0,index:3,parent:fy},_s={id:Ee.Join,type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:Ee.Join,description:"Join text values together, to form a single resulting text value.",inputs:[ay,Ha,Ka,yy],outputs:[Bs],error:uy,parent:null},ar=k[n.Operation][Ee.Split],hy={type:n.GenericReference,id:"split-string-string-argument-declaration",entityId:ar.inputs.stringValue.id,version:"1",entityType:n.ValueDescriptor},my={like:!1,inferred:!1,id:"split-string-string-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ae,asType:!1,isList:!1,parent:hy},vy={type:n.GenericReference,id:"split-string-index-argument-declaration",entityId:ar.inputs.indexLocation.id,version:"1",entityType:n.ValueDescriptor},Ty={like:!1,inferred:!1,id:"split-string-index-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,asType:!1,isList:!1,parent:vy},Iy={type:n.GenericReference,id:"split-string-first-part-result-string-return-delaration",entityId:ar.outputs.firstPartResult.id,version:"1",entityType:n.ValueDescriptor},Ey={like:!1,inferred:!1,id:"split-string-first-part-result-string-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ae,asType:!1,isList:!1,parent:Iy},Ay={type:n.GenericReference,id:"split-string-second-part-result-string-return-delaration",entityId:ar.outputs.secondPartResult.id,version:"1",entityType:n.ValueDescriptor},by={like:!1,inferred:!1,id:"split-string-second-part-result-string-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ae,asType:!1,isList:!1,parent:Ay},Ry={type:n.GenericReference,id:"split-string-operation-string-argument-parent-ref",entityId:Ee.Join,version:"1",entityType:n.ActionDescriptor},Dy={id:ar.inputs.stringValue.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Text value",description:"The text value that will be split into two at the given index location.",defaultValue:null,dataType:my,parentRelationType:N.FixedArguments,required:!0,index:0,parent:Ry},Oy={type:n.GenericReference,id:"split-string-operation-index-argument-parent-ref",entityId:Ee.Join,version:"1",entityType:n.ActionDescriptor},Py={id:ar.inputs.indexLocation.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Index location",description:"The index location where the text will be split into two. The text at this index will be the beginning of the second text.",defaultValue:null,dataType:Ty,parentRelationType:N.FixedArguments,required:!0,index:1,parent:Oy},wy={type:n.GenericReference,id:"split-string-operation-second-part-result-string-return-parent-ref",entityId:Ee.Join,version:"1",entityType:n.ActionDescriptor},Vw={parentRelationType:N.FixedReturns,id:ar.outputs.secondPartResult.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Second part",description:"The secont part of the resulting text value.",defaultValue:null,dataType:by,required:!0,index:1,parent:wy},Cy={type:n.GenericReference,id:"split-string-operation-first-part-result-string-return-parent-ref",entityId:Ee.Join,version:"1",entityType:n.ActionDescriptor},Vy={parentRelationType:N.FixedReturns,id:ar.outputs.firstPartResult.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"First part",description:"The first part of the resulting text value.",defaultValue:null,dataType:Ey,required:!0,index:0,parent:Cy},By={type:n.GenericReference,id:"split-string-operation-error-parent-ref",entityId:Ee.Join,version:"1",entityType:n.ActionDescriptor},_y={parentRelationType:N.FixedReturns,id:ar.outputs.error.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Error",description:"An error that occurred during the operation.",defaultValue:null,dataType:null,required:!0,index:1,parent:By},El={id:Ee.Split,type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:Ee.Split,description:"Split a text into two, at the given index location.",inputs:[Dy,Py],outputs:[Vy],error:_y,parent:null},My={[Ee.Join]:_s,[Ee.Split]:El};var Ny=(r=>(r.FirstInputList="join-list-first-list-argument-declaration",r.SecondInputList="join-list-second-list-argument-declaration",r))(Ny||{}),Ly=(r=>(r.ResultList="join-list-result-list-return-delaration",r.Error="join-list-error-return-delaration",r))(Ly||{});const jy={type:n.GenericReference,id:"join-list-operation-first-list-argument-ref",entityId:"join-list-first-list-argument-declaration",version:"1",entityType:n.ValueDescriptor},Uy={like:!1,inferred:!1,id:"join-list-first-list-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,asType:!1,isList:!0,parent:jy},$y={type:n.GenericReference,id:"join-list-operation-second-list-argument-ref",entityId:"join-list-second-list-argument-declaration",version:"1",entityType:n.ValueDescriptor},gy={like:!1,inferred:!1,id:"join-list-second-list-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,asType:!1,isList:!0,parent:$y},Gy={type:n.GenericReference,id:"join-list-operation-result-list-return-ref",entityId:"join-list-result-list-return-delaration",version:"1",entityType:n.ValueDescriptor},Fy={like:!1,inferred:!1,id:"join-list-result-list-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ae,asType:!1,isList:!0,parent:Gy},xy={type:n.GenericReference,id:"join-list-operation-first-list-argument-parent-ref",entityId:he.Join,version:"1",entityType:n.ActionDescriptor},ky={id:"join-list-first-list-argument-declaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"First value",description:"The first list to join to the second one. Its values will be at the beginning of the resulting list.",defaultValue:null,dataType:Uy,parentRelationType:N.FixedArguments,required:!0,index:0,parent:xy},Zy={type:n.GenericReference,id:"join-list-operation-second-list-argument-parent-ref",entityId:he.Join,version:"1",entityType:n.ActionDescriptor},qy={id:"join-list-second-list-argument-declaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Second value",description:"The second list to join to the first one. Its values will be at the end of the resulting list.",defaultValue:null,dataType:gy,parentRelationType:N.FixedArguments,required:!0,index:1,parent:Zy},Jy={type:n.GenericReference,id:"join-list-operation-result-list-return-parent-ref",entityId:he.Join,version:"1",entityType:n.ActionDescriptor},Sy={parentRelationType:N.FixedReturns,id:"join-list-result-list-return-delaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Result",description:"The resulting list value.",defaultValue:null,dataType:Fy,required:!0,index:0,parent:Jy},Wy={type:n.GenericReference,id:"join-list-operation-error-parent-ref",entityId:he.Join,version:"1",entityType:n.ActionDescriptor},zy={parentRelationType:N.FixedReturns,id:"join-list-error-return-delaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Error",description:"An error that occurred during the operation.",defaultValue:null,dataType:null,required:!0,index:1,parent:Wy},Al={id:he.Join,type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:he.Join,description:"Join two lists together, to form a single resulting list value.",inputs:[ky,qy],error:zy,outputs:[Sy],parent:null};var Yy=(r=>(r.InputList="list-to-split-argument-declaration",r.SplitIndex="split-list-index-argument-declaration",r))(Yy||{}),Hy=(r=>(r.FirstOutputList="split-list-first-output-list-return-delaration",r.SecondOutputList="split-list-second-output-list-return-delaration",r.Error="split-list-error-return-delaration",r))(Hy||{});const Ky={type:n.GenericReference,id:"split-list-operation-input-list-argument-ref",entityId:"list-to-split-argument-declaration",version:"1",entityType:n.ValueDescriptor},Xy={like:!1,inferred:!1,id:"split-list-operation-input-list-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ae,asType:!1,isList:!0,parent:Ky},Qy={type:n.GenericReference,id:"split-list-operation-split-index-argument-ref",entityId:"split-list-index-argument-declaration",version:"1",entityType:n.ValueDescriptor},eh={like:!1,inferred:!1,id:"split-list-operation-split-index-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,asType:!1,isList:!1,parent:Qy},bl={type:n.GenericReference,id:"split-list-operation-first-output-list-return-ref",entityId:"split-list-first-output-list-return-delaration",version:"1",entityType:n.ValueDescriptor},th={like:!1,inferred:!1,id:"split-list-operation-first-output-list-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ae,asType:!1,isList:!0,parent:bl},ih={type:n.GenericReference,id:"split-list-operation-input-list-argument-parent-ref",entityId:he.Split,version:"1",entityType:n.ActionDescriptor},rh={id:"list-to-split-argument-declaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"List to split",description:"The list to split at the given index",defaultValue:null,dataType:Xy,parentRelationType:N.FixedArguments,required:!0,index:0,parent:ih},nh={type:n.GenericReference,id:"split-list-operation-split-index-argument-parent-ref",entityId:he.Split,version:"1",entityType:n.ActionDescriptor},sh={id:"split-list-index-argument-declaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Split location",description:"The index at which to split the list. The value at this index will be the first value of the second list.",defaultValue:null,dataType:eh,parentRelationType:N.FixedArguments,required:!0,index:1,parent:nh},ah={type:n.GenericReference,id:"split-list-operation-first-output-list-return-parent-ref",entityId:he.Split,version:"1",entityType:n.ActionDescriptor},oh={parentRelationType:N.FixedReturns,id:"split-list-first-output-list-return-delaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"First list",description:"The list of values up to the split index",defaultValue:null,dataType:th,required:!0,index:0,parent:ah},dh={like:!1,inferred:!1,id:"split-list-operation-second-output-list-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ae,asType:!1,isList:!0,parent:bl},lh={type:n.GenericReference,id:"split-list-operation-second-output-list-return-parent-ref",entityId:he.Split,version:"1",entityType:n.ActionDescriptor},uh={parentRelationType:N.FixedReturns,id:"split-list-second-output-list-return-delaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Second list",description:"The list of values up to the split index",defaultValue:null,dataType:dh,required:!0,index:0,parent:lh},ph={type:n.GenericReference,id:"split-list-operation-error-parent-ref",entityId:he.Split,version:"1",entityType:n.ActionDescriptor},ch={parentRelationType:N.FixedReturns,id:"split-list-error-return-delaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Error",description:"An error that occurred during the operation.",defaultValue:null,dataType:null,required:!0,index:1,parent:ph},Rl={id:he.Split,type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:he.Split,description:"Splits a given list at the given index, and returns two lists, one with the values up to the index, and the other with the values after the index",inputs:[rh,sh],outputs:[oh,uh],error:ch,parent:null};var fh=(r=>(r.InputList="get-last-in-list-input-list-argument-declaration",r))(fh||{}),yh=(r=>(r.OutputElement="get-last-in-list-output-element-return-delaration",r.Error="get-last-in-list-error-return-delaration",r))(yh||{});const hh={type:n.GenericReference,id:"get-last-in-list-operation-input-list-argument-ref",entityId:"get-last-in-list-input-list-argument-declaration",version:"1",entityType:n.ValueDescriptor},mh={like:!1,inferred:!1,id:"get-last-in-list-input-list-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,asType:!1,isList:!0,parent:hh},vh={type:n.GenericReference,id:"get-last-in-list-operation-output-element-return-ref",entityId:"get-last-in-list-output-element-return-delaration",version:"1",entityType:n.ValueDescriptor},Th={like:!1,inferred:!1,id:"get-last-in-list-output-element-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ae,asType:!1,isList:!0,parent:vh},Ih={type:n.GenericReference,id:"get-last-in-list-operation-input-list-argument-parent-ref",entityId:he.GetLast,version:"1",entityType:n.ActionDescriptor},Eh={id:"get-last-in-list-input-list-argument-declaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"List",description:"The list to get the last element from.",defaultValue:null,dataType:mh,parentRelationType:N.FixedArguments,required:!0,index:0,parent:Ih},Ah={type:n.GenericReference,id:"get-last-in-list-operation-output-element-return-parent-ref",entityId:he.GetLast,version:"1",entityType:n.ActionDescriptor},bh={parentRelationType:N.FixedReturns,id:"get-last-in-list-output-element-return-delaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Last element",description:"The last element of the given list.",defaultValue:null,dataType:Th,required:!0,index:0,parent:Ah},Rh={type:n.GenericReference,id:"get-last-in-list-operation-error-parent-ref",entityId:he.GetLast,version:"1",entityType:n.ActionDescriptor},Dh={parentRelationType:N.FixedReturns,id:"get-last-in-list-error-return-delaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Error",description:"An error that occurred during the operation.",defaultValue:null,dataType:null,required:!0,index:1,parent:Rh},Dl={id:he.GetLast,type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:he.GetLast,description:"Outputs the last element of a given list.",inputs:[Eh],outputs:[bh],error:Dh,parent:null};var Oh=(r=>(r.List="append-to-list-lsit-argument-declaration",r.ElementToAppend="append-to-list-element-to-append-argument-declaration",r))(Oh||{}),Ph=(r=>(r.ResultList="append-to-list-result-list-return-delaration",r.Error="append-to-list-error-return-delaration",r))(Ph||{});const wh={type:n.GenericReference,id:"append-to-list-operation-lsit-argument-ref",entityId:"append-to-list-lsit-argument-declaration",version:"1",entityType:n.ValueDescriptor},Ch={like:!1,inferred:!1,id:"append-to-list-lsit-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,asType:!1,isList:!0,parent:wh},Vh={type:n.GenericReference,id:"append-to-list-operation-second-list-argument-ref",entityId:"append-to-list-element-to-append-argument-declaration",version:"1",entityType:n.ValueDescriptor},Bh={like:!1,inferred:!1,id:"append-to-list-second-list-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,asType:!1,isList:!0,parent:Vh},_h={type:n.GenericReference,id:"append-to-list-operation-result-list-return-ref",entityId:"append-to-list-result-list-return-delaration",version:"1",entityType:n.ValueDescriptor},Mh={like:!1,inferred:!1,id:"append-to-list-result-list-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ae,asType:!1,isList:!0,parent:_h},Nh={type:n.GenericReference,id:"append-to-list-operation-lsit-argument-parent-ref",entityId:he.Append,version:"1",entityType:n.ActionDescriptor},Ol={id:"append-to-list-lsit-argument-declaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"List value",description:"The list to which the element will be appended",defaultValue:null,dataType:Ch,parentRelationType:N.FixedArguments,required:!0,index:0,parent:Nh},Lh={type:n.GenericReference,id:"append-to-list-operation-second-list-argument-parent-ref",entityId:he.Append,version:"1",entityType:n.ActionDescriptor},Pl={id:"append-to-list-element-to-append-argument-declaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Element",description:"The element that will be added at the end of the list",defaultValue:null,dataType:Bh,parentRelationType:N.FixedArguments,required:!0,index:1,parent:Lh},jh={type:n.GenericReference,id:"append-to-list-operation-result-list-return-parent-ref",entityId:he.Append,version:"1",entityType:n.ActionDescriptor},Uh={parentRelationType:N.FixedReturns,id:"append-to-list-result-list-return-delaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Result",description:"The resulting list value.",defaultValue:null,dataType:Mh,required:!0,index:0,parent:jh},$h={type:n.GenericReference,id:"append-to-list-operation-error-parent-ref",entityId:he.Append,version:"1",entityType:n.ActionDescriptor},gh={parentRelationType:N.FixedReturns,id:"append-to-list-error-return-delaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Error",description:"An error that occurred during the operation.",defaultValue:null,dataType:null,required:!0,index:1,parent:$h},Xa={id:he.Append,type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:he.Append,description:"Adds a given element to the end of a list value.",inputs:[Ol,Pl],error:gh,outputs:[Uh],parent:null},Gh={[he.Join]:Al,[he.Split]:Rl,[he.GetLast]:Dl,[he.Append]:Xa},qn=k[n.Operation][Qe.Parallel],Fh={id:"parallel-execution-list-of-functions-blueprint-dynamic-output-parent-ref",type:n.GenericReference,entityId:"parallel-execution-list-of-functions-blueprint-id",version:"1",entityType:n.ActionDescriptor},xh={id:"parallel-execution-list-of-functions-blueprint-dynamic-output-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Any output value",description:"An output value of any type, to be used in the action to be executed.",defaultValue:null,dataType:null,required:!1,index:0,parent:Fh,parentRelationType:N.DynamicArgument},kh={id:"parallel-execution-list-of-functions-blueprint-dynamic-input-parent-ref",type:n.GenericReference,entityId:"parallel-execution-list-of-functions-blueprint-id",version:"1",entityType:n.ActionDescriptor},Zh={id:"parallel-execution-list-of-functions-blueprint-dynamic-input-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Any input value",description:"An input value of any type, to be used in the action to be executed.",defaultValue:null,dataType:null,required:!1,index:0,parent:kh,parentRelationType:N.DynamicArgument},qh={id:"parallel-execution-list-of-functions-blueprint-parent-ref",type:n.GenericReference,entityId:"parallel-execution-list-of-functions-argument-data-type-id",version:"1",entityType:n.DataType},Jh={id:"parallel-execution-list-of-functions-blueprint-id",type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Action to execute",description:"An action of any type, to be executed. It can contain any number of inputs and outputs.",inputs:[Zh],outputs:[xh],error:null,parent:qh},Sh={type:n.GenericReference,id:"3bd4aeb2-e3b7-4120-b289-011ebb03dba5",entityId:qn.inputs.listOfActions.id,version:"1",entityType:n.ValueDescriptor},Wh={like:!1,inferred:!1,id:"parallel-execution-list-of-functions-argument-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Jh,asType:!1,isList:!0,parent:Sh},zh={type:n.GenericReference,id:"da5e9fe9-f18a-49e3-98e5-c1bf7b9b3153",entityId:qn.outputs.results.id,version:"1",entityType:n.ValueDescriptor},Yh={like:!1,inferred:!1,id:qn.outputs.results.dataType.id,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,asType:!1,isList:!0,parent:zh},Hh={type:n.GenericReference,id:"a6c14305-d4f7-43ae-9d5e-b7dbacdc830a",entityId:Qe.Parallel,version:"1",entityType:n.ActionDescriptor},wl={id:qn.inputs.listOfActions.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Actions to execute",description:"A value, of a list of actions to be executed in parallel",dataType:Wh,defaultValue:null,required:!0,index:0,parent:Hh,parentRelationType:N.FixedArguments},Kh={type:n.GenericReference,id:"caac2bc7-c23c-4f01-9581-a515c2e4637f",entityId:Qe.Parallel,version:"1",entityType:n.ActionDescriptor},Cl={id:qn.outputs.results.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"List of execution results",description:"Each execution result, in the same order as the input list of actions. One item on this list for each executed action.",dataType:Yh,defaultValue:null,required:!0,index:0,parent:Kh,parentRelationType:N.FixedReturns},Xh={type:n.GenericReference,id:"parallel-execution-operation-error-parent-ref",entityId:Qe.Parallel,version:"1",entityType:n.ActionDescriptor},Qh={id:qn.outputs.error.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Error",description:"An error that occurred during the operation.",defaultValue:null,dataType:null,required:!0,index:1,parent:Xh,parentRelationType:N.ReturnedError},Vi={id:Qe.Parallel,type:n.ActionDescriptor,description:"Execute a list of actions in parallel",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:Qe.Parallel,inputs:[wl],outputs:[Cl],error:Qh,parent:null};var em=(r=>(r.MillisecondsNumber="wait-milliseconds-number-argument-declaration",r))(em||{}),tm=(r=>(r.Error="wait-operation-error-return-delaration",r))(tm||{});const im={type:n.GenericReference,id:"3bd4aeb2-e3b7-4120-b289-011ebb03dba5",version:"1",entityType:n.ValueDescriptor,entityId:"wait-milliseconds-number-argument-declaration"},rm={like:!1,inferred:!1,id:"wait-milliseconds-number-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,isList:!1,asType:!1,parent:im},nm={type:n.GenericReference,id:"a6c14305-d4f7-43ae-9d5e-b7dbacdc830a",version:"1",entityType:n.ActionDescriptor,entityId:Qe.Wait},ln={id:"wait-milliseconds-number-argument-declaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Milliseconds to wait",description:"The amount of milliseconds to wait before calling the next entity",defaultValue:null,dataType:rm,required:!0,index:0,parent:nm,parentRelationType:N.FixedArguments},sm={type:n.GenericReference,id:"wait-operation-error-parent-ref",entityId:Qe.Wait,version:"1",entityType:n.ActionDescriptor},am={id:"wait-operation-error-return-delaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Error",description:"An error that occurred during the operation.",defaultValue:null,dataType:null,required:!0,index:1,parent:sm,parentRelationType:N.ReturnedError},Wt={id:Qe.Wait,type:n.ActionDescriptor,description:"Wait for the given amount of milliseconds before calling the next entity",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:Qe.Wait,inputs:[ln],outputs:[],error:am,parent:null};var om=(r=>(r.ListOfFunctions="sequential-execution-list-of-functions-argument-declaration",r))(om||{}),dm=(r=>(r.ListOfExecutionResults="sequential-execution-result-return-delaration",r.Error="sequential-execution-error-return-delaration",r))(dm||{});const lm={id:"sequential-execution-list-of-functions-blueprint-dynamic-output-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Any output value",description:"An output value of any type, to be used in the action to be executed.",defaultValue:null,dataType:null,required:!1,index:0,parent:null,parentRelationType:N.DynamicArgument},um={id:"sequential-execution-list-of-functions-blueprint-dynamic-input-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Any input value",description:"An input value of any type, to be used in the action to be executed.",defaultValue:null,dataType:null,required:!1,index:0,parent:null,parentRelationType:N.DynamicArgument},pm={id:"sequential-execution-list-of-functions-blueprint-id",type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Action to execute",description:"An action of any type, to be executed. It can contain any number of inputs and outputs.",inputs:[um],outputs:[lm],error:null,parent:null},cm={type:n.GenericReference,id:"parallel-execution-list-of-functions-argument-declaration-id",entityId:"sequential-execution-list-of-functions-argument-declaration",version:"1",entityType:n.ValueDescriptor},fm={like:!1,inferred:!1,id:"sequential-execution-list-of-functions-argument-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:pm,asType:!1,isList:!0,parent:cm},ym={type:n.GenericReference,id:"sequential-execution-list-of-execution-results-return-declaration-id",entityId:"sequential-execution-result-return-delaration",version:"1",entityType:n.ValueDescriptor},hm={like:!1,inferred:!1,id:"sequential-execution-list-of-execution-results-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,asType:!1,isList:!0,parent:ym},mm={type:n.GenericReference,id:"parallel-execution-operation-list-of-functions-argument-parent-ref",entityId:Qe.Sequential,version:"1",entityType:n.ActionDescriptor},Vl={id:"sequential-execution-list-of-functions-argument-declaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Actions to execute",description:"A value, of a list of actions to be executed in parallel",defaultValue:null,dataType:fm,required:!0,index:0,parent:mm,parentRelationType:N.FixedArguments},vm={type:n.GenericReference,id:"parallel-execution-operation-list-of-execution-results-return-parent-ref",entityId:Qe.Sequential,version:"1",entityType:n.ActionDescriptor},Bl={id:"sequential-execution-result-return-delaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"List of execution results",description:"Each execution result, in the same order as the input list of actions. One item on this list for each executed action.",defaultValue:null,dataType:hm,required:!0,index:0,parent:vm,parentRelationType:N.FixedReturns},Tm={type:n.GenericReference,id:"sequential-execution-operation-error-parent-ref",entityId:Qe.Sequential,version:"1",entityType:n.ActionDescriptor},Im={id:"sequential-execution-error-return-delaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Error",description:"An error that occurred during the operation.",defaultValue:null,dataType:null,required:!0,index:1,parent:Tm,parentRelationType:N.ReturnedError},or={id:Qe.Sequential,type:n.ActionDescriptor,description:"Execute a list of actions one after the other",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:Qe.Sequential,inputs:[Vl],outputs:[Bl],error:Im,parent:null},Em={[Qe.Parallel]:Vi,[Qe.Wait]:Wt,[Qe.Sequential]:or};var Am=(r=>(r.EntityToInstanciate="entity-to-instanciate-argument-declaration",r.NewEntityData="new-entity-data-argument-declaration",r))(Am||{}),bm=(r=>(r.Error="create-new-instance-error-return-delaration",r))(bm||{});const Rm={type:n.GenericReference,id:"new-entity-data-argument-declaration-parent-ref",entityId:et.CreateNewInstance,version:"1",entityType:n.ActionDescriptor},Dm={type:n.GenericReference,id:"new-entity-data-argument-data-type-parent-ref",entityId:"new-entity-data-argument-declaration",version:"1",entityType:n.ValueDescriptor},Om={like:!1,inferred:!1,id:"new-entity-data-argument-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,isList:!1,asType:!1,parent:Dm},Pm={id:"new-entity-data-argument-declaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Data for new entity",description:"The data to be used to create the new entity, with all the required properties",dataType:Om,required:!0,defaultValue:null,parentRelationType:N.FixedArguments,index:1,parent:Rm},wm={type:n.GenericReference,id:"entity-to-instanciate-argument-declaration-ref",version:"1",entityType:n.ValueDescriptor,entityId:"entity-to-instanciate-argument-declaration"},Cm={like:!1,inferred:!1,id:"entity-to-instanciate-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,isList:!1,asType:!0,parent:wm},Vm={type:n.GenericReference,id:"create-new-instance-operation-ref",version:"1",entityType:n.ActionDescriptor,entityId:et.CreateNewInstance},Bm={id:"entity-to-instanciate-argument-declaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Entity to create a new copy of",description:"The entity of which a new copy will to be created",defaultValue:null,dataType:Cm,required:!0,parentRelationType:N.FixedArguments,index:0,parent:Vm},_m={type:n.GenericReference,id:"create-new-instance-output-entity-declaration-parent-ref",entityId:et.CreateNewInstance,version:"1",entityType:n.ActionDescriptor},Mm={parentRelationType:N.FixedReturns,id:"create-new-instance-output-entity-declaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Created entity",description:"The entity that was created",defaultValue:null,dataType:null,parent:_m,required:!0,index:0},Nm={type:n.GenericReference,id:"create-new-instance-error-parent-ref",entityId:et.CreateNewInstance,version:"1",entityType:n.ActionDescriptor},Lm={parentRelationType:N.FixedReturns,id:"create-new-instance-error-return-delaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Error",description:"An error that occurred during the operation.",defaultValue:null,dataType:null,required:!0,index:1,parent:Nm},un={id:et.CreateNewInstance,type:n.ActionDescriptor,description:"Creates a new copy of a given entity, with the given values for each property, or default values if a value is not provided",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:et.CreateNewInstance,inputs:[Bm,Pm],outputs:[Mm],error:Lm,parent:null},Jn=k[n.Operation][et.Validate],jm={type:n.GenericReference,id:"validate-data-operation-data-to-validate-argument-declaration-ref",version:"1",entityType:n.ValueDescriptor,entityId:Jn.inputs.dataToValidate.id},Um={like:!1,inferred:!1,id:"validate-data-operation-data-to-validate-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,isList:!1,asType:!1,parent:jm},$m={type:n.GenericReference,id:"validate-data-operation-data-to-validate-argument-parent-ref",version:"1",entityType:n.ActionDescriptor,entityId:et.Validate},gm={id:Jn.inputs.dataToValidate.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Data to validate",description:"The value to validate against the given entity type",defaultValue:null,dataType:Um,required:!0,parentRelationType:N.FixedArguments,index:0,parent:$m},Gm={type:n.GenericReference,id:"validate-data-operation-entity-to-match-type-argument-declaration-ref",version:"1",entityType:n.ValueDescriptor,entityId:Jn.inputs.entityToMatch.id},Fm={like:!1,inferred:!1,id:"validate-data-operation-entity-to-match-type-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,isList:!1,asType:!0,parent:Gm},xm={type:n.GenericReference,id:"validate-data-operation-entity-to-match-type-argument-parent-ref",version:"1",entityType:n.ActionDescriptor,entityId:et.Validate},km={id:Jn.inputs.entityToMatch.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Entity to match",description:"The entity to match the data against",dataType:Fm,defaultValue:null,required:!0,index:0,parentRelationType:N.FixedArguments,parent:xm},Zm={type:n.GenericReference,id:"validate-data-operation-output-entity-declaration-parent-ref",entityId:et.Validate,version:"1",entityType:n.ActionDescriptor},qm={id:Jn.outputs.outputEntity.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,dataType:null,name:"Output value",description:"A value with the type of the entity that was validated",defaultValue:null,parent:Zm,required:!0,index:0,parentRelationType:N.FixedReturns},Jm={type:n.GenericReference,id:"wait-operation-error-parent-ref",entityId:et.Validate,version:"1",entityType:n.ActionDescriptor},Sm={id:Jn.outputs.error.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Error",description:"An error that occurred during the operation.",dataType:null,defaultValue:null,required:!0,index:1,parent:Jm,parentRelationType:N.ReturnedError},pn={id:et.Validate,type:n.ActionDescriptor,description:"Validates the given data to see if it matches the structure of a given type/entity",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:et.Validate,inputs:[km,gm],outputs:[qm],error:Sm,parent:null},Wm={[et.CreateNewInstance]:un,[et.Validate]:pn},At=k[n.Operation]["base-http-request"],zm={type:n.GenericReference,id:"d87cf943-57e1-4d19-9f05-190fa8c8ebc4",version:"1",entityType:n.ValueDescriptor,entityId:At.inputs.url.id},Ym={id:"http-request-url-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:"https://some-url.com",name:L.String,valueAsTypeSingle:null,valueAsTypeList:null,parent:zm,autogeneration:null},Hm={type:n.GenericReference,id:"aed50d73-eab5-42ce-b00e-7f5c45a9026f",entityId:At.inputs.url.id,version:"1",entityType:n.ValueDescriptor},Km={like:!1,inferred:!1,id:"0deb4ef7-d739-4ddc-a4d6-50bd6fababe3",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ae,asType:!1,isList:!1,parent:Hm},Xm={type:n.GenericReference,id:"c3145af6-3387-464a-8887-272e483c856d",entityId:At.inputs.query.id,version:"1",entityType:n.ValueDescriptor},Qm={like:!1,inferred:!1,id:"2a5ba737-6335-4cc4-a2c0-16dca4052fac",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ae,asType:!1,isList:!1,parent:Xm},e0={type:n.GenericReference,id:"075556b7-e468-48f7-8485-7159eaf389b2",version:"1",entityType:n.ValueDescriptor,entityId:At.inputs.method.id},t0={id:"http-request-method-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:"GET",name:L.Enum,valueAsTypeSingle:null,valueAsTypeList:null,parent:e0,autogeneration:null},i0={type:n.GenericReference,id:"aed647c8-a1b5-4cfc-9a3d-97887a567a80",entityId:At.inputs.method.id,version:"1",entityType:n.ValueDescriptor},r0={like:!1,inferred:!1,id:"6df7ec2b-5dbd-44af-896b-17b314e88560",type:n.DataType,parentRelationType:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:nr,isList:!1,asType:!1,options:["GET","POST","PUT","DELETE","PATCH","OPTIONS","HEAD","TRACE","CONNECT","CUSTOM"],parent:i0},n0={type:n.GenericReference,id:"77203dfa-d2f6-4804-9556-e1cce46228f3",entityId:At.inputs.headers.id,version:"1",entityType:n.ValueDescriptor},s0={like:!1,inferred:!1,id:"2c8a2a07-69c6-40ad-b5c9-f0dc4d5955ce",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:wt,asType:!1,isList:!1,parent:n0},a0={type:n.GenericReference,id:"03db68a0-7ab6-4c6a-85b6-f4b95ebb53ff",entityId:At.inputs.body.id,version:"1",entityType:n.ValueDescriptor},o0={like:!1,inferred:!1,id:"0397876c-ed54-4ee9-85a4-04fd16dad973",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:wt,asType:!1,isList:!1,parent:a0},d0={type:n.GenericReference,id:"182f767f-50e8-4394-ba5f-43e78c232733",version:"1",entityType:n.ValueDescriptor,entityId:At.outputs.code.id},l0={like:!1,inferred:!1,id:"45e6d0bc-0c0e-4059-a7a1-6bee925d73d0",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,asType:!1,isList:!1,parent:d0},u0={type:n.GenericReference,id:"2baaa53a-9aef-4bd1-b06d-967c17b7b627",version:"1",entityType:n.ValueDescriptor,entityId:At.outputs.headers.id},p0={type:n.GenericReference,id:"69f34d6c-c686-4165-b6ff-70dae8e1778b",version:"1",entityType:n.ValueDescriptor,entityId:At.outputs.headers.id},c0={like:!1,inferred:!1,id:"dac63bfa-640d-4f4e-ba0f-86c2401bcfbe",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:wt,isList:!1,asType:!1,parent:p0},f0={type:n.GenericReference,id:"744334e0-5135-4214-85d0-809437cb620b",version:"1",entityType:n.ValueDescriptor,entityId:At.outputs.body.id},y0={type:n.GenericReference,id:"0e0e20df-1a46-432c-ba01-fd96508a6a61",version:"1",entityType:n.ValueDescriptor,entityId:At.outputs.body.id},h0={like:!1,inferred:!1,id:"05fc1a5d-151a-479a-9c4e-4063f3456177",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:wt,isList:!1,asType:!1,parent:y0},m0={type:n.GenericReference,id:"26911792-f707-4bf1-b6f7-03d04a84232c",version:"1",entityType:n.ActionDescriptor,entityId:Lt.HttpRequest},Qa={id:At.inputs.method.id,type:n.ValueDescriptor,description:"A single word that represents the type of request you want to make. For example: GET, POST, PUT, DELETE, PATCH, OPTIONS, HEAD, TRACE, CONNECT, CUSTOM",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Method",defaultValue:t0,dataType:r0,required:!1,index:0,parentRelationType:N.FixedArguments,parent:m0},v0={type:n.GenericReference,id:"eee0c501-0ae6-4448-b914-aada76d63163",version:"1",entityType:n.ActionDescriptor,entityId:Lt.HttpRequest},eo={id:At.inputs.url.id,type:n.ValueDescriptor,description:"The base domain, or address where the request is being sent to. For example: https://some-url.com",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"URL",dataType:Km,defaultValue:Ym,required:!1,index:1,parentRelationType:N.FixedArguments,parent:v0},T0={type:n.GenericReference,id:"670091a4-21b1-4223-ad4c-b6dada0aec49",version:"1",entityType:n.ActionDescriptor,entityId:Lt.HttpRequest},_l={id:At.inputs.query.id,type:n.ValueDescriptor,description:"A text with standarized format, without spaces that is added at the end of the URL path, after the ? character. It contains data that might be used to process the request. For example: /api/users?name=John&age=30",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Query Params",defaultValue:null,dataType:Qm,required:!1,index:2,parentRelationType:N.FixedArguments,parent:T0},I0={type:n.GenericReference,id:"85aad3eb-22fe-45f9-b68c-1dc7061f41e0",version:"1",entityType:n.ActionDescriptor,entityId:Lt.HttpRequest},to={id:At.inputs.headers.id,type:n.ValueDescriptor,description:"A set of any properties, with names and values that represent metadata about the request, such as the server, date, content type, and more, that you want to send alongside your request data.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Headers",defaultValue:null,dataType:s0,required:!1,index:3,parent:I0,parentRelationType:N.FixedArguments},E0={type:n.GenericReference,id:"c3e2a4af-9b84-4574-8b30-5044ffc51776",version:"1",entityType:n.ActionDescriptor,entityId:Lt.HttpRequest},io={id:At.inputs.body.id,type:n.ValueDescriptor,description:"The main data payload of the request. This is the data that you want to send to the server. It could be anything, but it is usually a KeyValue data structure or a text value.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Body",dataType:o0,defaultValue:null,required:!1,index:4,parentRelationType:N.FixedArguments,parent:E0},A0={type:n.GenericReference,id:"92e04dc7-2145-4a31-908e-03810f7235e8",version:"1",entityType:n.ActionDescriptor,entityId:Lt.HttpRequest},ro={id:At.outputs.code.id,type:n.ValueDescriptor,description:'A standardized status code of the response. It is a 3-digit number that represents the response status. For example, 200 means "OK", 404 means "Not Found", and 500 means "Internal Server Error".',version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Code",defaultValue:null,dataType:l0,required:!0,index:0,parentRelationType:N.FixedReturns,parent:A0},b0={type:n.GenericReference,id:"86aca556-bbf1-4679-9909-31db61b288e2",version:"1",entityType:n.ActionDescriptor,entityId:Lt.HttpRequest},no={parentRelationType:N.FixedReturns,id:At.outputs.headers.id,type:n.ValueDescriptor,description:"A set of any properties, with names and value that the server sent back to you. It represents metadata about the response, such as the server, date, content type, and more.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Headers",defaultValue:{id:"http-response-headers-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:{},name:L.KeyValue,parent:u0,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null},dataType:c0,required:!0,index:1,parent:b0},R0={type:n.GenericReference,id:"ccf3d1be-04e4-4d03-99fd-5bc1e1919f90",version:"1",entityType:n.ActionDescriptor,entityId:Lt.HttpRequest},so={id:At.outputs.body.id,type:n.ValueDescriptor,description:"The main data payload of the response. This is the data that the server sent back to you. It could be anything, but it is usually a KeyValue data structure or a text value.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Body",parentRelationType:N.FixedReturns,dataType:h0,defaultValue:{id:"http-response-body-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:{},name:L.KeyValue,parent:f0,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null},required:!0,index:2,parent:R0},D0={type:n.GenericReference,id:"21487ffc-82b9-473d-bc19-6e7d7c480ed7",version:"1",entityType:n.ActionDescriptor,entityId:Lt.HttpRequest},O0={type:n.GenericReference,id:"ad69861b-32f7-4461-b7f7-aa84a82578d9",version:"1",entityType:n.ValueDescriptor,entityId:At.outputs.error.id},P0={like:!1,inferred:!1,id:"5da68b15-57bc-40c1-b79f-a9075e0f22c1",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:wt,isList:!1,asType:!1,parent:O0},Ml={parentRelationType:N.ReturnedError,id:At.outputs.error.id,type:n.ValueDescriptor,description:"Http request error, if any. Contains a payload describing what went wrong.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Error",defaultValue:null,dataType:P0,required:!0,index:0,parent:D0},Ms={type:n.ActionDescriptor,id:Lt.HttpRequest,name:Lt.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:[Qa,eo,_l,to,io],outputs:[ro,no,so],error:Ml,parent:null},w0={[Lt.HttpRequest]:Ms},C0={...My,...Wf,...Gh,...Em,...Wm,...w0},V0=Object.values(C0),Bw=k[n.Loop]["manual-flow-loop"],B0={id:"manual-flow-loop-dynamic-return-declaration-parent-ref-id",type:n.GenericReference,entityId:ee.ManualFlow,version:"1",entityType:n.ActionDescriptor},_0={id:Bw.outputs.results.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Ouput value",description:"An output value of the loop",defaultValue:null,required:!1,dataType:null,index:0,parent:B0,parentRelationType:N.DynamicReturn},ao={id:ee.ManualFlow,type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:ee.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:[_0],error:null,parent:null},Ns=k[n.Loop]["manual-flow-loop"],M0={id:"manual-flow-loop-current-iteration-number-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"manual-flow-loop-current-iteration-number-declaration-id",version:"1",entityType:n.ValueDescriptor},N0={like:!1,inferred:!1,id:"manual-flow-loop-current-iteration-number-declaration-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,entity:ve,asType:!1,parent:M0},L0={id:"manual-flow-loop-current-iteration-number-declaration-parent-ref-id",type:n.GenericReference,entityId:Ns.body.id,version:"1",entityType:n.ActionDescriptor},Nl={id:Ns.body.inputs.iterationNumber.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Current iteration number",description:"The number of the current iteration of the manual flow loop. Keeps track of the number of iterations that have been executed.",defaultValue:null,dataType:N0,required:!0,index:0,parentRelationType:N.FixedArguments,parent:L0},j0={id:"manual-flow-loop-body-any-dynamic-argument-parent-ref-id",type:n.GenericReference,entityId:Ns.body.id,version:"1",entityType:n.ActionDescriptor},U0={id:"manual-flow-loop-body-any-dynamic-argument-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Any value",description:"Values inputed to the loop's body as an aggregation of the respective values outputed.",defaultValue:null,dataType:null,required:!1,index:1,parentRelationType:N.DynamicArgument,parent:j0},$0={id:"manual-flow-loop-body-any-dynamic-return-parent-ref-id",type:n.GenericReference,entityId:Ns.body.id,version:"1",entityType:n.ActionDescriptor},g0={id:"manual-flow-loop-body-any-dynamic-return-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Any value",description:"Values outputed by the loop's body.",defaultValue:null,dataType:null,required:!1,index:0,parentRelationType:N.DynamicReturn,parent:$0},oo={id:Ns.body.id,type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Iteration logic trigger",description:"Describes the body of the manual flow loop.",inputs:[Nl,U0],outputs:[g0],error:null,parent:null},G0=k[n.Loop]["string-loop"],F0={id:"iterate-over-string-loop-string-argument-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"iterate-over-string-loop-string-argument-declaration-id",version:"1",entityType:n.ValueDescriptor},x0={like:!1,inferred:!1,id:"iterate-over-string-loop-string-argument-declaration-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,entity:ae,asType:!1,parent:F0},k0={id:"iterate-over-string-loop-string-argument-declaration-parent-ref-id",type:n.GenericReference,entityId:ee.String,version:"1",entityType:n.ActionDescriptor},Z0={id:G0.inputs.string.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Texts",description:"The text to iterate over the characters of",defaultValue:null,required:!0,dataType:x0,index:0,parent:k0,parentRelationType:N.FixedArguments},q0={id:"iterate-over-string-loop-dynamic-return-declaration-parent-ref-id",type:n.GenericReference,entityId:ee.String,version:"1",entityType:n.ActionDescriptor},J0={id:G0.outputs.results.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Ouput value",description:"An output value of the loop",defaultValue:null,required:!1,dataType:null,index:0,parent:q0,parentRelationType:N.DynamicReturn},Ls={id:ee.String,type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:ee.String,description:"Iterates over a string of entities",inputs:[Z0],outputs:[J0],error:null,parent:null},cn=k[n.Loop]["string-loop"],S0={id:"iterate-over-string-loop-body-current-value-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"iterate-over-string-loop-body-current-value-declaration-id",version:"1",entityType:n.ValueDescriptor},W0={like:!1,inferred:!1,id:"iterate-over-string-loop-body-current-value-declaration-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,entity:ae,asType:!1,parent:S0},z0={id:"iterate-over-string-loop-body-current-value-declaration-parent-ref-id",type:n.GenericReference,entityId:cn.body.id,version:"1",entityType:n.ActionDescriptor},Ll={id:cn.body.inputs.currentValue.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Current value",description:"The current value in the string that is being iterated over. This value is passed to the child actions.",defaultValue:null,dataType:W0,required:!0,index:1,parentRelationType:N.FixedArguments,parent:z0},Y0={id:"iterate-over-string-loop-body-current-iteration-number-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"iterate-over-string-loop-body-current-iteration-number-declaration-id",version:"1",entityType:n.ValueDescriptor},H0={like:!1,inferred:!1,id:"iterate-over-string-loop-body-current-iteration-number-declaration-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,entity:ve,asType:!1,parent:Y0},K0={id:"iterate-over-string-loop-body-current-iteration-number-declaration-parent-ref-id",type:n.GenericReference,entityId:cn.body.id,version:"1",entityType:n.ActionDescriptor},jl={id:cn.body.inputs.iterationNumber.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Current iteration number",description:"The number of the current iteration of the string loop. Keeps track of the number of iterations that have been executed.",defaultValue:null,dataType:H0,required:!0,index:0,parentRelationType:N.FixedArguments,parent:K0},X0={id:"iterate-over-string-loop-body-any-dynamic-argument-parent-ref-id",type:n.GenericReference,entityId:cn.body.id,version:"1",entityType:n.ActionDescriptor},Q0={id:"iterate-over-string-loop-body-any-dynamic-argument-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Any value",description:"Values inputed to the loop's body as an aggregation of the respective values outputed.",defaultValue:null,dataType:null,required:!1,index:2,parentRelationType:N.DynamicArgument,parent:X0},ev={id:"iterate-over-string-loop-body-any-dynamic-return-parent-ref-id",type:n.GenericReference,entityId:cn.body.id,version:"1",entityType:n.ActionDescriptor},tv={id:"iterate-over-string-loop-body-any-dynamic-return-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Any value",description:"Values outputed by the loop's body.",defaultValue:null,dataType:null,required:!1,index:0,parentRelationType:N.DynamicReturn,parent:ev},lo={id:cn.body.id,type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Iteration logic trigger",description:"Describes the body of the string loop.",inputs:[jl,Ll,Q0],outputs:[tv],error:null,parent:null},iv=k[n.Loop]["list-loop"],rv={id:"iterate-over-list-loop-list-argument-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"iterate-over-list-loop-list-argument-declaration-id",version:"1",entityType:n.ValueDescriptor},nv={like:!1,inferred:!1,id:"iterate-over-list-loop-list-argument-declaration-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!0,entity:null,asType:!1,parent:rv},sv={id:"iterate-over-list-loop-list-argument-declaration-parent-ref-id",type:n.GenericReference,entityId:ee.List,version:"1",entityType:n.ActionDescriptor},av={id:iv.inputs.list.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"List",description:"The list to iterate over",required:!0,defaultValue:null,dataType:nv,index:0,parent:sv,parentRelationType:N.FixedArguments},ov={id:"iterate-over-list-loop-dynamic-return-declaration-parent-ref-id",type:n.GenericReference,entityId:ee.List,version:"1",entityType:n.ActionDescriptor},dv={id:iv.outputs.results.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Ouput value",description:"An output value of the loop",required:!1,defaultValue:null,dataType:null,index:0,parent:ov,parentRelationType:N.DynamicReturn},Or={id:ee.List,type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:ee.List,description:"Iterates over a list of entities",inputs:[av],outputs:[dv],error:null,parent:null},fn=k[n.Loop]["list-loop"],lv={id:"iterate-over-list-loop-body-current-value-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"iterate-over-list-loop-body-current-value-declaration-id",version:"1",entityType:n.ValueDescriptor},uv={like:!1,inferred:!1,id:"iterate-over-list-loop-body-current-value-declaration-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,entity:null,asType:!1,parent:lv},pv={id:"iterate-over-list-loop-body-current-value-declaration-parent-ref-id",type:n.GenericReference,entityId:fn.body.id,version:"1",entityType:n.ActionDescriptor},uo={id:fn.body.inputs.currentValue.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Current value",description:"The current value in the list that is being iterated over. This value is passed to the child actions.",defaultValue:null,dataType:uv,required:!0,index:1,parentRelationType:N.FixedArguments,parent:pv},cv={id:"iterate-over-list-loop-body-current-iteration-number-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"iterate-over-list-loop-body-current-iteration-number-declaration-id",version:"1",entityType:n.ValueDescriptor},fv={like:!1,inferred:!1,id:"iterate-over-list-loop-body-current-iteration-number-declaration-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,entity:ve,asType:!1,parent:cv},yv={id:"iterate-over-list-loop-body-current-iteration-number-declaration-parent-ref-id",type:n.GenericReference,entityId:fn.body.id,version:"1",entityType:n.ActionDescriptor},hv={id:fn.body.inputs.iterationNumber.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Current iteration number",description:"The number of the current iteration of the list loop. Keeps track of the number of iterations that have been executed.",defaultValue:null,dataType:fv,required:!0,index:0,parentRelationType:N.FixedArguments,parent:yv},mv={id:"iterate-over-list-loop-body-any-dynamic-argument-parent-ref-id",type:n.GenericReference,entityId:fn.body.id,version:"1",entityType:n.ActionDescriptor},vv={id:"iterate-over-list-loop-body-any-dynamic-argument-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Any value",description:"Values inputed to the loop's body as an aggregation of the respective values outputed.",defaultValue:null,dataType:null,required:!1,index:2,parentRelationType:N.DynamicArgument,parent:mv},Tv={id:"iterate-over-list-loop-body-any-dynamic-return-parent-ref-id",type:n.GenericReference,entityId:fn.body.id,version:"1",entityType:n.ActionDescriptor},Iv={id:"iterate-over-list-loop-body-any-dynamic-return-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Any value",description:"Values outputed by the loop's body.",defaultValue:null,dataType:null,required:!1,index:0,parentRelationType:N.DynamicReturn,parent:Tv},js={id:fn.body.id,type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Iteration logic trigger",description:"Describes the body of the list loop.",inputs:[hv,uo,vv],outputs:[Iv],error:null,parent:null},Ev=k[n.Loop]["object-keys-loop"],Av={id:"iterate-over-object-keys-loop-object-argument-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"iterate-over-object-keys-loop-object-argument-declaration-id",version:"1",entityType:n.ValueDescriptor},bv={like:!1,inferred:!1,id:"iterate-over-object-keys-loop-object-argument-declaration-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,entity:wt,asType:!1,parent:Av},Rv={id:"iterate-over-object-keys-loop-object-argument-declaration-parent-ref-id",type:n.GenericReference,entityId:ee.ObjectKeys,version:"1",entityType:n.ActionDescriptor},Dv={id:Ev.inputs.object.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Object",description:"The object to iterate over",required:!0,defaultValue:null,dataType:bv,index:0,parent:Rv,parentRelationType:N.FixedArguments},Ov={id:"iterate-over-object-keys-loop-dynamic-return-declaration-parent-ref-id",type:n.GenericReference,entityId:ee.ObjectKeys,version:"1",entityType:n.ActionDescriptor},Pv={id:Ev.outputs.results.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Ouput value",description:"An output value of the loop",defaultValue:null,required:!1,dataType:null,index:0,parent:Ov,parentRelationType:N.DynamicReturn},Sn={id:ee.ObjectKeys,type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:ee.ObjectKeys,description:"Iterates over a object of entities",inputs:[Dv],outputs:[Pv],error:null,parent:null},yn=k[n.Loop]["object-keys-loop"],wv={id:"iterate-over-object-keys-loop-body-current-value-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"iterate-over-object-keys-loop-body-current-value-declaration-id",version:"1",entityType:n.ValueDescriptor},Cv={like:!1,inferred:!1,id:"iterate-over-object-keys-loop-body-current-value-declaration-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,entity:ae,asType:!1,parent:wv},Vv={id:"iterate-over-object-keys-loop-body-current-value-declaration-parent-ref-id",type:n.GenericReference,entityId:yn.body.id,version:"1",entityType:n.ActionDescriptor},Ul={id:yn.body.inputs.currentValue.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Current value",description:"The current value in the object-keys that is being iterated over. This value is passed to the child actions.",defaultValue:null,dataType:Cv,required:!0,index:1,parentRelationType:N.FixedArguments,parent:Vv},Bv={id:"iterate-over-object-keys-loop-body-current-iteration-number-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"iterate-over-object-keys-loop-body-current-iteration-number-declaration-id",version:"1",entityType:n.ValueDescriptor},_v={like:!1,inferred:!1,id:"iterate-over-object-keys-loop-body-current-iteration-number-declaration-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,entity:ve,asType:!1,parent:Bv},Mv={id:"iterate-over-object-keys-loop-body-current-iteration-number-declaration-parent-ref-id",type:n.GenericReference,entityId:yn.body.id,version:"1",entityType:n.ActionDescriptor},Nv={id:yn.body.inputs.iterationNumber.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Current iteration number",description:"The number of the current iteration of the object-keys loop. Keeps track of the number of iterations that have been executed.",defaultValue:null,dataType:_v,required:!0,index:0,parentRelationType:N.FixedArguments,parent:Mv},Lv={id:"iterate-over-object-keys-loop-body-any-dynamic-argument-parent-ref-id",type:n.GenericReference,entityId:yn.body.id,version:"1",entityType:n.ActionDescriptor},jv={id:"iterate-over-object-keys-loop-body-any-dynamic-argument-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Any value",description:"Values inputed to the loop's body as an aggregation of the respective values outputed.",defaultValue:null,dataType:null,required:!1,index:2,parentRelationType:N.DynamicArgument,parent:Lv},Uv={id:"iterate-over-object-keys-loop-body-any-dynamic-return-parent-ref-id",type:n.GenericReference,entityId:yn.body.id,version:"1",entityType:n.ActionDescriptor},$v={id:"iterate-over-object-keys-loop-body-any-dynamic-return-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Any value",description:"Values outputed by the loop's body.",defaultValue:null,dataType:null,required:!1,index:0,parentRelationType:N.DynamicReturn,parent:Uv},$l={id:yn.body.id,type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Iteration logic trigger",description:"Describes the body of the object-keys loop.",inputs:[Nv,Ul,jv],outputs:[$v],error:null,parent:null},gv=k[n.Loop]["object-values-loop"],Gv={id:"iterate-over-object-values-loop-object-argument-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"iterate-over-object-values-loop-object-argument-declaration-id",version:"1",entityType:n.ValueDescriptor},Fv={like:!1,inferred:!1,id:"iterate-over-object-values-loop-object-argument-declaration-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,entity:wt,asType:!1,parent:Gv},xv={id:"iterate-over-object-values-loop-object-argument-declaration-parent-ref-id",type:n.GenericReference,entityId:ee.ObjectValues,version:"1",entityType:n.ActionDescriptor},kv={id:gv.inputs.object.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Object",description:"The object to iterate over",required:!0,defaultValue:null,dataType:Fv,index:0,parent:xv,parentRelationType:N.FixedArguments},Zv={id:"iterate-over-object-values-loop-dynamic-return-declaration-parent-ref-id",type:n.GenericReference,entityId:ee.ObjectValues,version:"1",entityType:n.ActionDescriptor},qv={id:gv.outputs.results.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Ouput value",description:"An output value of the loop",defaultValue:null,required:!1,dataType:null,index:0,parent:Zv,parentRelationType:N.DynamicReturn},Wn={id:ee.ObjectValues,type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:ee.ObjectValues,description:"Iterates over a object of entities",inputs:[kv],outputs:[qv],error:null,parent:null},hn=k[n.Loop]["object-values-loop"],Jv={id:"iterate-over-object-values-loop-body-current-value-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"iterate-over-object-values-loop-body-current-value-declaration-id",version:"1",entityType:n.ValueDescriptor},Sv={id:"iterate-over-object-values-loop-body-current-value-declaration-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:null,entity:null,asType:null,like:!1,inferred:!1,parent:Jv},Wv={id:"iterate-over-object-values-loop-body-current-value-declaration-parent-ref-id",type:n.GenericReference,entityId:hn.body.id,version:"1",entityType:n.ActionDescriptor},gl={id:hn.body.inputs.currentValue.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Current value",description:"The current value in the object-values that is being iterated over. This value is passed to the child actions.",defaultValue:null,dataType:Sv,required:!0,index:1,parentRelationType:N.FixedArguments,parent:Wv},zv={id:"iterate-over-object-values-loop-body-current-iteration-number-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"iterate-over-object-values-loop-body-current-iteration-number-declaration-id",version:"1",entityType:n.ValueDescriptor},Yv={like:!1,inferred:!1,id:"iterate-over-object-values-loop-body-current-iteration-number-declaration-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,entity:ve,asType:!1,parent:zv},Hv={id:"iterate-over-object-values-loop-body-current-iteration-number-declaration-parent-ref-id",type:n.GenericReference,entityId:hn.body.id,version:"1",entityType:n.ActionDescriptor},Kv={id:hn.body.inputs.iterationNumber.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Current iteration number",description:"The number of the current iteration of the object-values loop. Keeps track of the number of iterations that have been executed.",defaultValue:null,dataType:Yv,required:!0,index:0,parentRelationType:N.FixedArguments,parent:Hv},Xv={id:"iterate-over-object-values-loop-body-any-dynamic-argument-parent-ref-id",type:n.GenericReference,entityId:hn.body.id,version:"1",entityType:n.ActionDescriptor},Qv={id:"iterate-over-object-values-loop-body-any-dynamic-argument-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Any value",description:"Values inputed to the loop's body as an aggregation of the respective values outputed.",defaultValue:null,dataType:null,required:!1,index:2,parentRelationType:N.DynamicArgument,parent:Xv},eT={id:"iterate-over-object-values-loop-body-any-dynamic-return-parent-ref-id",type:n.GenericReference,entityId:hn.body.id,version:"1",entityType:n.ActionDescriptor},tT={id:"iterate-over-object-values-loop-body-any-dynamic-return-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Any value",description:"Values outputed by the loop's body.",defaultValue:null,dataType:null,required:!1,index:0,parentRelationType:N.DynamicReturn,parent:eT},Gl={id:hn.body.id,type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Iteration logic trigger",description:"Describes the body of the object-values loop.",inputs:[Kv,gl,Qv],outputs:[tT],error:null,parent:null},Fl=k[n.Loop]["counted-loop"],iT={id:"counted-loop-string-argument-declaration-data-type-default-value-parent-ref-id",type:n.GenericReference,entityId:Fl.inputs.number.id,version:"1",entityType:n.ValueDescriptor},rT={id:"counted-loop-string-argument-declaration-data-type-default-value-id",type:n.LiteralValue,name:L.Number,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:5,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null,parent:iT},nT={id:"counted-loop-string-argument-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"counted-loop-string-argument-declaration-id",version:"1",entityType:n.ValueDescriptor},sT={like:!1,inferred:!1,id:"counted-loop-string-argument-declaration-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,entity:ve,asType:!1,parent:nT},aT={id:"counted-loop-string-argument-declaration-parent-ref-id",type:n.GenericReference,entityId:ee.Counted,version:"1",entityType:n.ActionDescriptor},oT={id:Fl.inputs.number.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Number of iterations",description:"The number of iterations to perform",required:!0,dataType:sT,defaultValue:rT,index:0,parent:aT,parentRelationType:N.FixedArguments},dT={id:"counted-loop-dynamic-return-declaration-parent-ref-id",type:n.GenericReference,entityId:ee.Counted,version:"1",entityType:n.ActionDescriptor},lT={id:Fl.outputs.results.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Ouput value",description:"An output value of the loop",defaultValue:null,required:!1,dataType:null,index:0,parent:dT,parentRelationType:N.DynamicReturn},Us={id:ee.Counted,type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:ee.Counted,description:"Iterates a given number of times",inputs:[oT],outputs:[lT],error:null,parent:null},$s=k[n.Loop]["counted-loop"],uT={id:"counted-loop-body-current-iteration-number-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"counted-loop-body-current-iteration-number-declaration-id",version:"1",entityType:n.ValueDescriptor},pT={like:!1,inferred:!1,id:"counted-loop-body-current-iteration-number-declaration-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,entity:ve,asType:!1,parent:uT},cT={id:"counted-loop-body-current-iteration-number-declaration-parent-ref-id",type:n.GenericReference,entityId:$s.body.id,version:"1",entityType:n.ActionDescriptor},xl={id:$s.body.inputs.iterationNumber.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Current iteration number",description:"The number of the current iteration of the string loop. Keeps track of the number of iterations that have been executed.",defaultValue:null,dataType:pT,required:!0,index:0,parentRelationType:N.FixedArguments,parent:cT},fT={id:"counted-loop-body-any-dynamic-argument-parent-ref-id",type:n.GenericReference,entityId:$s.body.id,version:"1",entityType:n.ActionDescriptor},yT={id:"counted-loop-body-any-dynamic-argument-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Any value",description:"Values inputed to the loop's body as an aggregation of the respective values outputed.",defaultValue:null,dataType:null,required:!1,index:1,parentRelationType:N.DynamicArgument,parent:fT},hT={id:"counted-loop-body-any-dynamic-return-parent-ref-id",type:n.GenericReference,entityId:$s.body.id,version:"1",entityType:n.ActionDescriptor},mT={id:"counted-loop-body-any-dynamic-return-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Any value",description:"Values outputed by the loop's body.",defaultValue:null,dataType:null,required:!1,index:0,parentRelationType:N.DynamicReturn,parent:hT},po={id:$s.body.id,type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Iteration logic trigger",description:"Describes the body of the string loop.",inputs:[xl,yT],outputs:[mT],error:null,parent:null},vT=[ao,Or,Ls,Sn,Wn,Us],TT=[oo,js,lo,$l,Gl,po],Pr=k[n.BuiltInBaseEntity][S.HTTP_ENDPOINT].properties,hi=k[n.BuiltInBaseEntity][S.HTTP_ENDPOINT].methods,IT={id:"endpointBuiltInCorsPropertyDataTypeRef",type:n.GenericReference,version:"1",entityType:n.ValueDescriptor,entityId:Pr.cors.id},ET={id:"endpointBuiltInCorsPropertyRef",type:n.GenericReference,version:"1",entityType:n.Property,entityId:Pr.cors.id},AT={like:!1,inferred:!1,id:"endpointBuiltInCorsPropertyDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!0,entity:ae,asType:!1,parent:ET},bT={id:"endpointBuiltInBaseEntityRef",type:n.GenericReference,version:"1",entityType:n.BuiltInBaseEntity,entityId:S.HTTP_ENDPOINT},RT={constant:!0,hidden:!0,required:!0,id:Pr.cors.id,name:"Allowed origins",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!0,implements:null,static:!0,index:0,dataType:AT,defaultValue:{id:"endpointBuiltInCorsPropertyDataTypeDefaultValueId",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.KeyValue,value:["*"],parent:IT,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},description:"The origins that are allowed to access this endpoint, use * for all origins, or http://example.com/* to be as specific as you need.",parent:bT},DT={id:"endpointBuiltInPathPropertyDataTypeRef",type:n.GenericReference,version:"1",entityType:n.ValueDescriptor,entityId:Pr.path.id},OT={id:"endpointBuiltInPathPropertyRef",type:n.GenericReference,version:"1",entityType:n.Property,entityId:Pr.path.id},PT={like:!1,inferred:!1,id:"endpointBuiltInPathPropertyDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ae,asType:!1,parent:OT},wT={id:"endpointBuiltInBaseEntityRefTwo",type:n.GenericReference,version:"1",entityType:n.BuiltInBaseEntity,entityId:S.HTTP_ENDPOINT},kl={constant:!0,id:Pr.path.id,hidden:!1,required:!0,name:"Path",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!0,implements:null,static:!0,index:1,dataType:PT,defaultValue:{id:"endpointBuiltInPathPropertyDataTypeDefaultValueId",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.String,value:"/",parent:DT,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},description:"Path to the endpoint, for example /api/users, or /api/users/{id}, or /api/users/{id}/:name. The path can contain parameters, which are defined by curly braces, and will be passed to the endpoint event as variables with the same name.",parent:wT},CT={id:"endpointBuiltInMethodPropertyDataTypeRef",type:n.GenericReference,version:"1",entityType:n.ValueDescriptor,entityId:Pr.method.id},VT={id:"endpointBuiltInMethodPropertyRef",type:n.GenericReference,version:"1",entityType:n.Property,entityId:"endpointBuiltInMethodProperty"},BT={like:!1,inferred:!1,id:"endpointBuiltInMethodPropertyDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,entity:nr,isList:!1,asType:!1,options:["GET","POST","PUT","DELETE","PATCH","OPTIONS","HEAD","TRACE","CONNECT","CUSTOM"],parent:VT},_T={id:"endpointBuiltInBaseEntityRefThree",type:n.GenericReference,version:"1",entityType:n.BuiltInBaseEntity,entityId:S.HTTP_ENDPOINT},Zl={constant:!0,hidden:!1,required:!0,id:Pr.method.id,name:"Method",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,index:2,implements:null,defaultValue:{id:"endpointBuiltInMethodPropertyDataTypeDefaultValueId",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:"GET",name:L.Enum,parent:CT,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},abstract:!0,static:!0,dataType:BT,description:"The HTTP method that this endpoint will respond to, for example GET, POST, PUT, DELETE, etc.",parent:_T},MT={id:"endpointRequestHeadersVariableDataTypeRef",type:n.GenericReference,version:"1",entityType:n.ValueDescriptor,entityId:"endpointRequestHeadersArgumentDeclaration"},NT={id:"endpointRequestHeadersArgumentDeclarationRef",type:n.GenericReference,version:"1",entityType:n.ArgumentDeclaration,entityId:"endpointRequestHeadersArgumentDeclaration"},LT={like:!1,inferred:!1,id:"endpointRequestHeadersVariableDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!0,entity:wt,asType:!1,parent:NT},jT={id:"endpointRequestBodyArgumentDeclarationRef",type:n.GenericReference,version:"1",entityType:n.ArgumentDeclaration,entityId:"endpointRequestBodyArgumentDeclaration"},UT={like:!1,inferred:!1,id:"endpointRequestBodyVariableDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,asType:!1,entity:wt,parent:jT},$T={id:"endpointRequestQueryParamsVariableDataTypeRef",type:n.GenericReference,version:"1",entityType:n.ValueDescriptor,entityId:"endpointRequestQueryParamsArgumentDeclaration"},gT={id:"endpointRequestQueryParamsArgumentDeclarationRef",type:n.GenericReference,version:"1",entityType:n.ArgumentDeclaration,entityId:"endpointRequestQueryParamsArgumentDeclaration"},GT={like:!1,inferred:!1,id:"endpointRequestQueryParamsVariableDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!0,asType:!1,entity:Zn,parent:gT},FT={id:"endpointPathParamsVariableDataTypeRef",type:n.GenericReference,version:"1",entityType:n.ValueDescriptor,entityId:"endpointPathParamsArgumentDeclaration"},xT={id:"endpointPathParamsArgumentDeclarationRef",type:n.GenericReference,version:"1",entityType:n.ArgumentDeclaration,entityId:"endpointPathParamsArgumentDeclaration"},kT={like:!1,inferred:!1,id:"endpointPathParamsVariableDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!0,entity:Zn,asType:!1,parent:xT},ZT={id:"endpointReachedTriggerActionDescriptorRef",type:n.GenericReference,version:"1",entityType:n.ActionDescriptor,entityId:hi.handler.id},ql={id:"endpointRequestHeadersArgumentDeclaration",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:"A set of any properties, with names and value that transmit metadata about the request.",type:n.ValueDescriptor,name:"Request headers",dataType:LT,defaultValue:{id:"endpointRequestHeadersVariableDataTypeDefaultValueId",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.KeyValue,value:{},parent:MT,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},required:!0,index:0,parentRelationType:N.FixedArguments,parent:ZT},qT={id:"endpointReachedTriggerActionDescriptorRefTwo",type:n.GenericReference,version:"1",entityType:n.ActionDescriptor,entityId:hi.handler.id},Jl={id:"endpointPathParamsArgumentDeclaration",type:n.ValueDescriptor,description:"A standarized text, without spaces that is added at the end of the domain and routes the request to a specific resource within the target server. For example: /api/users/123, /api/users/123/:name, /api/users/123/:name/:age.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Path parameters",dataType:kT,defaultValue:{id:"endpointPathParamsVariableDataTypeDefaultValueId",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.KeyValue,value:[],parent:FT,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},required:!0,index:1,parentRelationType:N.FixedArguments,parent:qT},JT={id:"endpointReachedTriggerActionDescriptorRefThree",type:n.GenericReference,version:"1",entityType:n.ActionDescriptor,entityId:hi.handler.id},Sl={id:"endpointRequestQueryParamsArgumentDeclaration",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:"A text with standarized format, without spaces that is added at the end of the URL path, after the ? character. It contains data that might be used to process the request. For example: /api/users?name=John&age=30",type:n.ValueDescriptor,name:"Request query params",dataType:GT,defaultValue:{id:"endpointRequestQueryParamsVariableDataTypeDefaultValueId",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.KeyValue,value:[],parent:$T,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},required:!0,index:2,parentRelationType:N.FixedArguments,parent:JT},ST={id:"endpointReachedTriggerActionDescriptorRefFour",type:n.GenericReference,version:"1",entityType:n.ActionDescriptor,entityId:hi.handler.id},Wl={id:"endpointRequestBodyArgumentDeclaration",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:"The main data payload of the request.",type:n.ValueDescriptor,name:"Request body",dataType:UT,defaultValue:null,index:3,required:!0,parentRelationType:N.FixedArguments,parent:ST},WT={id:"endpointResponseCodeReturnDeclarationRef",type:n.GenericReference,version:"1",entityType:n.ReturnDeclaration,entityId:hi.handler.outputs.statusCode.id},zT={like:!1,inferred:!1,id:"9ba575b0-6f8e-436d-a3de-3b843622aa17",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,asType:!1,isList:!1,parent:WT},YT={id:"endpointReturnStatementRef",type:n.GenericReference,version:"1",entityType:n.ActionDescriptor,entityId:"endpointReturnStatement"},HT={id:"endpointResponseCodeReturnDeclarationDefaultValueParentRef",type:n.GenericReference,version:"1",entityType:n.ValueDescriptor,entityId:hi.handler.outputs.statusCode.id},zl={id:hi.handler.outputs.statusCode.id,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:"A standarized number that represents the status of the response. 200 for OK, 404 for not found, 500 for server error, etc.",type:n.ValueDescriptor,name:"Response code",dataType:zT,defaultValue:{id:"endpointResponseCodeDataTypeDefaultValueId",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.Number,value:200,parent:HT,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},required:!0,index:0,parentRelationType:N.FixedReturns,parent:YT},KT={id:"endpointResponseHeadersDataTypeRef",type:n.GenericReference,version:"1",entityType:n.ValueDescriptor,entityId:hi.handler.outputs.headers.id},XT={id:"endpointResponseHeadersReturnDeclarationRef",type:n.GenericReference,version:"1",entityType:n.ReturnDeclaration,entityId:hi.handler.outputs.headers.id},QT={like:!1,inferred:!1,id:"endpointResponseHeadersDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!0,entity:wt,asType:!1,parent:XT},eI={id:"endpointReturnStatementRefTwo",type:n.GenericReference,version:"1",entityType:n.ActionDescriptor,entityId:"endpointReturnStatement"},Yl={id:hi.handler.outputs.headers.id,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:"A set of any properties, with names and value that transmit metadata about the response.",type:n.ValueDescriptor,name:"Response headers",dataType:QT,defaultValue:{id:"endpointResponseHeadersDataTypeDefaultValueId",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.KeyValue,value:{},parent:KT,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},required:!1,index:1,parentRelationType:N.FixedReturns,parent:eI},tI={id:"endpointResponseBodyReturnDeclarationRef",type:n.GenericReference,version:"1",entityType:n.ReturnDeclaration,entityId:hi.handler.outputs.body.id},iI={like:!1,inferred:!1,id:"endpointResponseBodyDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,asType:!1,entity:wt,parent:tI},rI={id:"endpointReturnStatementRefThree",type:n.GenericReference,version:"1",entityType:n.ActionDescriptor,entityId:"endpointReturnStatement"},Hl={id:hi.handler.outputs.body.id,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:"The main data payload of the response.",type:n.ValueDescriptor,name:"Response body",dataType:iI,defaultValue:null,required:!1,index:2,parentRelationType:N.FixedReturns,parent:rI},nI={id:"endpointBuiltInBaseEntityRefFour",type:n.GenericReference,version:"1",entityType:n.BuiltInBaseEntity,entityId:S.HTTP_ENDPOINT},Kl={id:hi.handler.id,type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Endpoint reached",description:"Fired when the endpoint is reached.",inputs:[ql,Jl,Sl,Wl],outputs:[zl,Yl,Hl],error:null,parent:nI},ni={id:S.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:S.HTTP_ENDPOINT,type:n.BuiltInBaseEntity,interactive:!1,abstract:!0,static:!0,properties:[RT,kl,Zl],abstractMethods:[Kl],extends:[],methods:[]},Bt=k[n.BuiltInBaseEntity].BUILT_IN_RELATIONAL_DATABASE_ENTITY,sI={id:"relational-database-built-in-base-entity-identifier-property-data-type-ref-id",type:n.GenericReference,entityId:Bt.properties.identifier.id,version:"1",entityType:n.Property},aI={id:"relational-database-built-in-base-entity-identifier-property-ref-id",type:n.GenericReference,entityId:Bt.properties.identifier.id,version:"1",entityType:n.Property},oI={like:!1,inferred:!1,id:"relational-database-built-in-base-entity-identifier-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ae,asType:!1,parent:aI},zn={id:"relational-database-built-in-base-entity-ref-id",type:n.GenericReference,entityId:S.PERSISTED_ENTITY,version:"1",entityType:n.BuiltInBaseEntity},co={constant:!0,id:Bt.properties.identifier.id,hidden:!1,required:!0,name:"Identifier name",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!0,static:!0,implements:null,index:0,defaultValue:{id:"relational-database-built-in-base-entity-identifier-property-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.String,value:null,parent:sI,autogeneration:{type:vt.Unique,rangeStart:null,rangeEnd:null},valueAsTypeList:null,valueAsTypeSingle:null},dataType:oI,description:"The name of the main database inside of the server instance where the data will be stored.",parent:zn},_w={id:"relational-database-built-in-base-entity-username-property-data-type-ref-id",type:n.GenericReference,entityId:"relational-database-built-in-base-entity-username-property-data-type-idd",version:"1",entityType:n.Property},dI={id:"relational-database-built-in-base-entity-username-property-ref-id",type:n.GenericReference,entityId:Bt.properties.username.id,version:"1",entityType:n.Property},lI={like:!1,inferred:!1,id:"relational-database-built-in-base-entity-username-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ae,asType:!1,parent:dI},fo={constant:!0,hidden:!1,required:!0,id:Bt.properties.username.id,name:"Username",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!0,static:!0,implements:null,index:1,defaultValue:{id:"relational-database-built-in-base-entity-username-property-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.String,value:"postgres",parent:{id:"relational-database-built-in-base-entity-username-property-data-type-default-value-parent-ref-id",type:n.GenericReference,entityId:Bt.properties.username.id,version:"1",entityType:n.Property},autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},dataType:lI,description:"The username that will be used to connect to the database.",parent:zn},Mw={id:"relational-database-built-in-base-entity-password-property-data-type-ref-id",type:n.GenericReference,entityId:"relational-database-built-in-base-entity-password-property-data-type-id",version:"1",entityType:n.Property},uI={id:"relational-database-built-in-base-entity-password-property-ref-id",type:n.GenericReference,entityId:Bt.properties.password.id,version:"1",entityType:n.Property},pI={like:!1,inferred:!1,id:"relational-database-built-in-base-entity-password-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ae,asType:!1,parent:uI},cI={id:"relational-database-built-in-base-entity-password-property-default-value-parent-ref-id",type:n.GenericReference,entityId:Bt.properties.password.id,version:"1",entityType:n.Property},yo={constant:!0,hidden:!1,required:!0,id:Bt.properties.password.id,name:"Password",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!0,static:!0,implements:null,index:2,defaultValue:{id:"relational-database-built-in-base-entity-password-property-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.String,value:"123456789",parent:cI,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},dataType:pI,description:"The password that will be used to connect to the database.",parent:zn},fI={id:"relational-database-built-in-base-entity-min-size-property-data-type-ref-id",type:n.GenericReference,entityId:Bt.properties.minSize.id,version:"1",entityType:n.Property},yI={id:"relational-database-built-in-base-entity-min-size-property-ref-id",type:n.GenericReference,entityId:Bt.properties.minSize.id,version:"1",entityType:n.Property},hI={like:!1,inferred:!1,id:"relational-database-built-in-base-entity-min-size-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ve,asType:!1,parent:yI},ho={constant:!0,hidden:!0,required:!0,id:Bt.properties.minSize.id,name:"Minimum GB size",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!0,static:!0,implements:null,index:3,defaultValue:{id:"relational-database-built-in-base-entity-min-size-property-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.Number,value:6,parent:fI,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},dataType:hI,description:"The minimum size of the database in GB.",parent:zn},mI={id:"relational-database-built-in-base-entity-default-property-data-type-ref-id",type:n.GenericReference,entityId:Bt.properties.default.id,version:"1",entityType:n.Property},vI={id:"relational-database-built-in-base-entity-default-property-ref-id",type:n.GenericReference,entityId:Bt.properties.default.id,version:"1",entityType:n.Property},TI={like:!1,inferred:!1,id:"relational-database-built-in-base-entity-default-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:rr,asType:!1,parent:vI},Xl={constant:!0,hidden:!0,required:!0,id:Bt.properties.default.id,name:"Default",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!0,static:!0,implements:null,index:4,defaultValue:{id:"relational-database-built-in-base-entity-default-property-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.Boolean,value:!1,parent:mI,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},dataType:TI,description:"If true, this database will be the default database for the server instance and all the new entities.",parent:zn},II={id:"relational-database-built-in-base-entity-autoscaling-property-ref-id",type:n.GenericReference,entityId:Bt.properties.autoscaling.id,version:"1",entityType:n.Property},EI={id:"relational-database-built-in-base-entity-autoscaling-property-data-type-ref-id",type:n.GenericReference,entityId:Bt.properties.autoscaling.id,version:"1",entityType:n.Property},AI={like:!1,inferred:!1,id:"relational-database-built-in-base-entity-autoscaling-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:rr,asType:!1,parent:II},bI={id:"relational-database-built-in-base-entity-autoscaling-property-parent-ref-id",type:n.GenericReference,entityId:S.PERSISTED_ENTITY,version:"1",entityType:n.BuiltInBaseEntity},Ql={constant:!0,hidden:!0,required:!0,id:Bt.properties.autoscaling.id,name:"Auto-scaling",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!0,static:!0,implements:null,index:4,defaultValue:{id:"relational-database-built-in-base-entity-autoscaling-property-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.Boolean,value:!1,parent:EI,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},dataType:AI,description:"If true, this database will automatically scale up or down in memory size, based on the usage.",parent:bI},Dt={id:S.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:S.RELATIONAL_DATABASE,type:n.BuiltInBaseEntity,abstract:!0,static:!0,interactive:!1,properties:[co,fo,yo,ho,Xl,Ql],abstractMethods:[],methods:[],extends:[]},RI={type:n.GenericReference,entityId:"persisted-built-in-base-entity-ref-id",version:"1",entityType:n.BuiltInBaseEntity,id:ci.DeletePersistedEntity},eu={type:n.FunctionDeclaration,id:ci.DeletePersistedEntity,name:ci.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:RI,inputs:[],calls:[],implements:null,collapsed:!1,index:0,private:!1,x:0,y:0},DI=k[n.BuiltInBaseEntity][S.PERSISTED_ENTITY].properties,Nw={id:"persisted-built-in-base-entity-database-property-data-type-ref-id",type:n.GenericReference,entityId:"persisted-built-in-base-entity-database-property-data-type-id",version:"1",entityType:n.DataType},OI={id:"persisted-built-in-base-entity-database-property-ref-id",type:n.GenericReference,entityId:"persisted-built-in-base-entity-database-property-id",version:"1",entityType:n.Property},PI={like:!1,inferred:!1,id:"persisted-built-in-base-entity-database-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:Dt,asType:!1,parent:OI},wI={id:"persisted-built-in-base-entity-database-property-parent-ref-id",type:n.GenericReference,entityId:S.PERSISTED_ENTITY,version:"1",entityType:n.BuiltInBaseEntity},Yn={constant:!0,hidden:!0,required:!0,id:DI.database.id,name:"Database",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,defaultValue:null,private:!1,abstract:!0,implements:null,static:!0,index:0,dataType:PI,description:"The database that the entity belongs to.",parent:wI},CI={id:"persisted-built-in-base-entity-primary-key-property-number-data-type-option-parent-ref-id",type:n.GenericReference,entityId:"persisted-built-in-base-entity-primary-key-property-data-type-id",version:"1",entityType:n.DataType},VI={like:!1,inferred:!1,id:"persisted-built-in-base-entity-primary-key-property-number-data-type-option-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ve,asType:!1,parentRelationType:Pt.OrDataTypeGroup,parent:CI},BI={id:"persisted-built-in-base-entity-primary-key-property-string-data-type-option-parent-ref-id",type:n.GenericReference,entityId:"persisted-built-in-base-entity-primary-key-property-data-type-id",version:"1",entityType:n.DataType},_I={like:!1,inferred:!1,id:"persisted-built-in-base-entity-primary-key-property-string-data-type-option-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ae,asType:!1,parentRelationType:Pt.OrDataTypeGroup,parent:BI},MI={id:"persisted-built-in-base-entity-primary-key-property-uuid-data-type-option-parent-ref-id",type:n.GenericReference,entityId:"persisted-built-in-base-entity-primary-key-property-data-type-id",version:"1",entityType:n.DataType},NI={like:!1,inferred:!1,id:"persisted-built-in-base-entity-primary-key-property-uuid-data-type-option-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:sr,asType:!1,parentRelationType:Pt.OrDataTypeGroup,parent:MI},LI={id:"persisted-built-in-base-entity-primary-key-property-ref-id",type:n.GenericReference,entityId:"persisted-built-in-base-entity-primary-key-property-id",version:"1",entityType:n.Property},jI={like:!1,inferred:!1,id:"persisted-built-in-base-entity-primary-key-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,andChildrenGroup:null,orChildrenGroup:[NI,_I,VI],isList:!1,entity:null,asType:null,implementationChooseOne:!0,parent:LI},UI={id:"persisted-built-in-base-entity-primary-key-property-parent-ref-id",type:n.GenericReference,entityId:S.PERSISTED_ENTITY,version:"1",entityType:n.BuiltInBaseEntity},Hn={constant:!1,hidden:!1,required:!0,id:DI.primaryKey.id,name:"Primary key",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,defaultValue:null,private:!1,abstract:!0,implements:null,static:!1,index:0,dataType:jI,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:UI},_t={id:S.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:S.PERSISTED_ENTITY,type:n.BuiltInBaseEntity,abstract:!0,static:!1,interactive:!0,abstractMethods:[],properties:[Yn,Hn],methods:[eu],extends:[]},$I={type:n.GenericReference,entityId:"persisted-built-in-base-entity-ref-id",version:"1",entityType:n.BuiltInBaseEntity,id:ci.SoftDeletePersistedEntity},Lw={type:n.FunctionDeclaration,id:ci.SoftDeletePersistedEntity,name:ci.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:$I,inputs:[],calls:[],implements:null,collapsed:!1,index:0,private:!1,x:0,y:0},jw=k[n.BuiltInBaseEntity][S.CRON_JOB].methods,gI={id:"cron-job-triggered-function-declaration-blueprint-parent-ref-id",type:n.GenericReference,version:"1",entityType:n.BuiltInBaseEntity,entityId:S.CRON_JOB},tu={id:jw.handler.id,name:"Scheduled job triggered",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.ActionDescriptor,description:"Executed when the scheduled job is triggered",inputs:[],error:null,outputs:[],parent:gI},GI=k[n.BuiltInBaseEntity].BUILT_IN_CRON_JOB_ENTITY,Uw={id:"cron-job-built-in-base-entity-expression-property-data-type-ref",type:n.GenericReference,entityId:"cron-job-built-in-base-entity-expression-property-data-type",version:"1",entityType:n.DataType},FI={id:"cron-job-built-in-base-entity-expression-property-ref",type:n.GenericReference,entityId:GI.properties.expression.id,version:"1",entityType:n.Property},$w={like:!1,inferred:!1,id:"cron-job-built-in-base-entity-expression-property-data-type",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ae,asType:!1,parent:FI},xI={id:"cron-job-built-in-base-entity-ref",type:n.GenericReference,entityId:S.CRON_JOB,version:"1",entityType:n.BuiltInBaseEntity},kI={constant:!1,hidden:!1,required:!0,id:GI.properties.expression.id,name:"Cron expression",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,defaultValue:null,private:!1,abstract:!0,implements:null,static:!0,index:0,dataType:$w,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:xI},mo={id:S.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:S.CRON_JOB,type:n.BuiltInBaseEntity,abstract:!0,static:!0,interactive:!1,properties:[kI],methods:[],abstractMethods:[tu],extends:[]},ZI={type:n.GenericReference,id:"execution-built-in-entity-abort-method-parent-ref-id",version:"1",entityType:n.BuiltInBaseEntity,entityId:"execution-built-in-entity-id"},iu={id:"execution-built-in-entity-abort-method-id",type:n.FunctionDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:ci.AbortExecution,description:"Aborts the execution of the entity",inputs:[],calls:[],implements:null,private:!1,collapsed:!1,index:null,x:0,y:0,parent:ZI},vo={id:S.EXECUTION,type:n.BuiltInBaseEntity,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:S.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:[iu],abstractMethods:[]},qI=[ni,Dt,_t,mo,vo],gw=k[n.Condition]["not-empty"],JI={type:n.GenericReference,id:"not-empty-condition-ref",version:"1",entityType:n.ActionDescriptor,entityId:bi.NotEmpty},SI={id:gw.inputs.leftHand.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Value",description:"The value to check if it is not empty",defaultValue:null,dataType:null,required:!1,parentRelationType:N.FixedArguments,index:0,parent:JI},mn={type:n.ActionDescriptor,id:bi.NotEmpty,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:bi.NotEmpty,description:"Checks if the value is not empty",parent:null,inputs:[SI],outputs:[],error:null},WI={[bi.NotEmpty]:mn},Kn=k[n.Condition]["more-than-or-equal"],zI={type:n.GenericReference,id:"more-than-or-equal-condition-left-hand-argument-data-type-parent-ref",version:"1",entityType:n.ValueDescriptor,entityId:Kn.inputs.leftHand.id},YI={type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,id:Kn.inputs.leftHand.dataType.id,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,like:!1,isList:!1,inferred:!1,andChildrenGroup:null,orChildrenGroup:null,asType:!1,parent:zI},HI={type:n.GenericReference,id:"more-than-or-equal-condition-left-hand-argument-parent-ref",version:"1",entityType:n.ActionDescriptor,entityId:yt.MoreThanOrEqual},KI={id:Kn.inputs.leftHand.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"First value",description:"The first value to compare",defaultValue:null,dataType:YI,required:!0,parentRelationType:N.FixedArguments,index:0,parent:HI},XI={type:n.GenericReference,id:"more-than-or-equal-condition-right-hand-argument-data-type-parent-ref",version:"1",entityType:n.ValueDescriptor,entityId:Kn.inputs.rightHand.id},QI={type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,id:Kn.inputs.rightHand.dataType.id,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,like:!1,isList:!1,inferred:!1,andChildrenGroup:null,orChildrenGroup:null,asType:!1,parent:XI},eE={type:n.GenericReference,id:"more-than-or-equal-condition-right-hand-argument-parent-ref",version:"1",entityType:n.ActionDescriptor,entityId:yt.MoreThanOrEqual},tE={id:Kn.inputs.rightHand.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Second value",description:"The second value to compare",defaultValue:null,dataType:QI,required:!0,parentRelationType:N.FixedArguments,index:1,parent:eE},Xn={type:n.ActionDescriptor,id:yt.MoreThanOrEqual,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:yt.MoreThanOrEqual,description:"Checks if the value is not empty",parent:null,inputs:[KI,tE],outputs:[],error:null},iE={[yt.MoreThanOrEqual]:Xn},rE={...WI,...iE},nE=Object.values(rE),To={type:n.ActionDescriptor,id:ir.PROJECT_PUBLICATION_COMPLETED,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:ir.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},sE={[ir.PROJECT_PUBLICATION_COMPLETED]:To},aE=Object.values(sE),ru=k[n.ValueDescriptor][za.ActionOngoingProcessOutputValue],oE={type:n.GenericReference,id:"182f767f-50e8-4394-ba5f-43e78c232733",version:"1",entityType:n.ValueDescriptor,entityId:ru.id},dE={like:!1,inferred:!1,id:ru.dataType.id,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:vo,asType:!1,isList:!1,parent:oE},Io={id:ru.id,type:n.ValueDescriptor,description:"A value that represents the ongoing process of the parent action",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Process",defaultValue:null,dataType:dE,required:!0,index:0,parent:null,parentRelationType:N.OngoingProcessExecution},lE=[Io],uE=[...vf,...V0,...vT,...TT,...qI,...nE,...aE,...lE];var ze;(function(r){r.assertEqual=i=>i;function a(i){}r.assertIs=a;function e(i){throw new Error}r.assertNever=e,r.arrayToEnum=i=>{const s={};for(const d of i)s[d]=d;return s},r.getValidEnumValues=i=>{const s=r.objectKeys(i).filter(o=>typeof i[i[o]]!="number"),d={};for(const o of s)d[o]=i[o];return r.objectValues(d)},r.objectValues=i=>r.objectKeys(i).map(function(s){return i[s]}),r.objectKeys=typeof Object.keys=="function"?i=>Object.keys(i):i=>{const s=[];for(const d in i)Object.prototype.hasOwnProperty.call(i,d)&&s.push(d);return s},r.find=(i,s)=>{for(const d of i)if(s(d))return d},r.isInteger=typeof Number.isInteger=="function"?i=>Number.isInteger(i):i=>typeof i=="number"&&isFinite(i)&&Math.floor(i)===i;function t(i,s=" | "){return i.map(d=>typeof d=="string"?`'${d}'`:d).join(s)}r.joinValues=t,r.jsonStringifyReplacer=(i,s)=>typeof s=="bigint"?s.toString():s})(ze||(ze={}));var nu;(function(r){r.mergeShapes=(a,e)=>({...a,...e})})(nu||(nu={}));const H=ze.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),dr=r=>{switch(typeof r){case"undefined":return H.undefined;case"string":return H.string;case"number":return isNaN(r)?H.nan:H.number;case"boolean":return H.boolean;case"function":return H.function;case"bigint":return H.bigint;case"symbol":return H.symbol;case"object":return Array.isArray(r)?H.array:r===null?H.null:r.then&&typeof r.then=="function"&&r.catch&&typeof r.catch=="function"?H.promise:typeof Map<"u"&&r instanceof Map?H.map:typeof Set<"u"&&r instanceof Set?H.set:typeof Date<"u"&&r instanceof Date?H.date:H.object;default:return H.unknown}},Z=ze.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"]),Gw=r=>JSON.stringify(r,null,2).replace(/"([^"]+)":/g,"$1:");class si extends Error{get errors(){return this.issues}constructor(a){super(),this.issues=[],this.addIssue=t=>{this.issues=[...this.issues,t]},this.addIssues=(t=[])=>{this.issues=[...this.issues,...t]};const e=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,e):this.__proto__=e,this.name="ZodError",this.issues=a}format(a){const e=a||function(s){return s.message},t={_errors:[]},i=s=>{for(const d of s.issues)if(d.code==="invalid_union")d.unionErrors.map(i);else if(d.code==="invalid_return_type")i(d.returnTypeError);else if(d.code==="invalid_arguments")i(d.argumentsError);else if(d.path.length===0)t._errors.push(e(d));else{let o=t,l=0;for(;l<d.path.length;){const u=d.path[l];l===d.path.length-1?(o[u]=o[u]||{_errors:[]},o[u]._errors.push(e(d))):o[u]=o[u]||{_errors:[]},o=o[u],l++}}};return i(this),t}static assert(a){if(!(a instanceof si))throw new Error(`Not a ZodError: ${a}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,ze.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(a=e=>e.message){const e={},t=[];for(const i of this.issues)i.path.length>0?(e[i.path[0]]=e[i.path[0]]||[],e[i.path[0]].push(a(i))):t.push(a(i));return{formErrors:t,fieldErrors:e}}get formErrors(){return this.flatten()}}si.create=r=>new si(r);const Qn=(r,a)=>{let e;switch(r.code){case Z.invalid_type:r.received===H.undefined?e="Required":e=`Expected ${r.expected}, received ${r.received}`;break;case Z.invalid_literal:e=`Invalid literal value, expected ${JSON.stringify(r.expected,ze.jsonStringifyReplacer)}`;break;case Z.unrecognized_keys:e=`Unrecognized key(s) in object: ${ze.joinValues(r.keys,", ")}`;break;case Z.invalid_union:e="Invalid input";break;case Z.invalid_union_discriminator:e=`Invalid discriminator value. Expected ${ze.joinValues(r.options)}`;break;case Z.invalid_enum_value:e=`Invalid enum value. Expected ${ze.joinValues(r.options)}, received '${r.received}'`;break;case Z.invalid_arguments:e="Invalid function arguments";break;case Z.invalid_return_type:e="Invalid function return type";break;case Z.invalid_date:e="Invalid date";break;case Z.invalid_string:typeof r.validation=="object"?"includes"in r.validation?(e=`Invalid input: must include "${r.validation.includes}"`,typeof r.validation.position=="number"&&(e=`${e} at one or more positions greater than or equal to ${r.validation.position}`)):"startsWith"in r.validation?e=`Invalid input: must start with "${r.validation.startsWith}"`:"endsWith"in r.validation?e=`Invalid input: must end with "${r.validation.endsWith}"`:ze.assertNever(r.validation):r.validation!=="regex"?e=`Invalid ${r.validation}`:e="Invalid";break;case Z.too_small:r.type==="array"?e=`Array must contain ${r.exact?"exactly":r.inclusive?"at least":"more than"} ${r.minimum} element(s)`:r.type==="string"?e=`String must contain ${r.exact?"exactly":r.inclusive?"at least":"over"} ${r.minimum} character(s)`:r.type==="number"?e=`Number must be ${r.exact?"exactly equal to ":r.inclusive?"greater than or equal to ":"greater than "}${r.minimum}`:r.type==="date"?e=`Date must be ${r.exact?"exactly equal to ":r.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(r.minimum))}`:e="Invalid input";break;case Z.too_big:r.type==="array"?e=`Array must contain ${r.exact?"exactly":r.inclusive?"at most":"less than"} ${r.maximum} element(s)`:r.type==="string"?e=`String must contain ${r.exact?"exactly":r.inclusive?"at most":"under"} ${r.maximum} character(s)`:r.type==="number"?e=`Number must be ${r.exact?"exactly":r.inclusive?"less than or equal to":"less than"} ${r.maximum}`:r.type==="bigint"?e=`BigInt must be ${r.exact?"exactly":r.inclusive?"less than or equal to":"less than"} ${r.maximum}`:r.type==="date"?e=`Date must be ${r.exact?"exactly":r.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(r.maximum))}`:e="Invalid input";break;case Z.custom:e="Invalid input";break;case Z.invalid_intersection_types:e="Intersection results could not be merged";break;case Z.not_multiple_of:e=`Number must be a multiple of ${r.multipleOf}`;break;case Z.not_finite:e="Number must be finite";break;default:e=a.defaultError,ze.assertNever(r)}return{message:e}};let pE=Qn;function Fw(r){pE=r}function Eo(){return pE}const Ao=r=>{const{data:a,path:e,errorMaps:t,issueData:i}=r,s=[...e,...i.path||[]],d={...i,path:s};if(i.message!==void 0)return{...i,path:s,message:i.message};let o="";const l=t.filter(u=>!!u).slice().reverse();for(const u of l)o=u(d,{data:a,defaultError:o}).message;return{...i,path:s,message:o}},xw=[];function z(r,a){const e=Eo(),t=Ao({issueData:a,data:r.data,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,e,e===Qn?void 0:Qn].filter(i=>!!i)});r.common.issues.push(t)}class $t{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(a,e){const t=[];for(const i of e){if(i.status==="aborted")return ye;i.status==="dirty"&&a.dirty(),t.push(i.value)}return{status:a.value,value:t}}static async mergeObjectAsync(a,e){const t=[];for(const i of e){const s=await i.key,d=await i.value;t.push({key:s,value:d})}return $t.mergeObjectSync(a,t)}static mergeObjectSync(a,e){const t={};for(const i of e){const{key:s,value:d}=i;if(s.status==="aborted"||d.status==="aborted")return ye;s.status==="dirty"&&a.dirty(),d.status==="dirty"&&a.dirty(),s.value!=="__proto__"&&(typeof d.value<"u"||i.alwaysSet)&&(t[s.value]=d.value)}return{status:a.value,value:t}}}const ye=Object.freeze({status:"aborted"}),es=r=>({status:"dirty",value:r}),zt=r=>({status:"valid",value:r}),su=r=>r.status==="aborted",au=r=>r.status==="dirty",vn=r=>r.status==="valid",gs=r=>typeof Promise<"u"&&r instanceof Promise;function bo(r,a,e,t){if(e==="a"&&!t)throw new TypeError("Private accessor was defined without a getter");if(typeof a=="function"?r!==a||!t:!a.has(r))throw new TypeError("Cannot read private member from an object whose class did not declare it");return e==="m"?t:e==="a"?t.call(r):t?t.value:a.get(r)}function cE(r,a,e,t,i){if(t==="m")throw new TypeError("Private method is not writable");if(t==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof a=="function"?r!==a||!i:!a.has(r))throw new TypeError("Cannot write private member to an object whose class did not declare it");return t==="a"?i.call(r,e):i?i.value=e:a.set(r,e),e}typeof SuppressedError=="function"&&SuppressedError;var ne;(function(r){r.errToObj=a=>typeof a=="string"?{message:a}:a||{},r.toString=a=>typeof a=="string"?a:a==null?void 0:a.message})(ne||(ne={}));var Gs,Fs;class ki{constructor(a,e,t,i){this._cachedPath=[],this.parent=a,this.data=e,this._path=t,this._key=i}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const fE=(r,a)=>{if(vn(a))return{success:!0,data:a.value};if(!r.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const e=new si(r.common.issues);return this._error=e,this._error}}};function Te(r){if(!r)return{};const{errorMap:a,invalid_type_error:e,required_error:t,description:i}=r;if(a&&(e||t))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return a?{errorMap:a,description:i}:{errorMap:(d,o)=>{var l,u;const{message:y}=r;return d.code==="invalid_enum_value"?{message:y??o.defaultError}:typeof o.data>"u"?{message:(l=y??t)!==null&&l!==void 0?l:o.defaultError}:d.code!=="invalid_type"?{message:o.defaultError}:{message:(u=y??e)!==null&&u!==void 0?u:o.defaultError}},description:i}}class Ge{get description(){return this._def.description}_getType(a){return dr(a.data)}_getOrReturnCtx(a,e){return e||{common:a.parent.common,data:a.data,parsedType:dr(a.data),schemaErrorMap:this._def.errorMap,path:a.path,parent:a.parent}}_processInputParams(a){return{status:new $t,ctx:{common:a.parent.common,data:a.data,parsedType:dr(a.data),schemaErrorMap:this._def.errorMap,path:a.path,parent:a.parent}}}_parseSync(a){const e=this._parse(a);if(gs(e))throw new Error("Synchronous parse encountered promise.");return e}_parseAsync(a){const e=this._parse(a);return Promise.resolve(e)}parse(a,e){const t=this.safeParse(a,e);if(t.success)return t.data;throw t.error}safeParse(a,e){var t;const i={common:{issues:[],async:(t=e==null?void 0:e.async)!==null&&t!==void 0?t:!1,contextualErrorMap:e==null?void 0:e.errorMap},path:(e==null?void 0:e.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:a,parsedType:dr(a)},s=this._parseSync({data:a,path:i.path,parent:i});return fE(i,s)}"~validate"(a){var e,t;const i={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:a,parsedType:dr(a)};if(!this["~standard"].async)try{const s=this._parseSync({data:a,path:[],parent:i});return vn(s)?{value:s.value}:{issues:i.common.issues}}catch(s){!((t=(e=s==null?void 0:s.message)===null||e===void 0?void 0:e.toLowerCase())===null||t===void 0)&&t.includes("encountered")&&(this["~standard"].async=!0),i.common={issues:[],async:!0}}return this._parseAsync({data:a,path:[],parent:i}).then(s=>vn(s)?{value:s.value}:{issues:i.common.issues})}async parseAsync(a,e){const t=await this.safeParseAsync(a,e);if(t.success)return t.data;throw t.error}async safeParseAsync(a,e){const t={common:{issues:[],contextualErrorMap:e==null?void 0:e.errorMap,async:!0},path:(e==null?void 0:e.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:a,parsedType:dr(a)},i=this._parse({data:a,path:t.path,parent:t}),s=await(gs(i)?i:Promise.resolve(i));return fE(t,s)}refine(a,e){const t=i=>typeof e=="string"||typeof e>"u"?{message:e}:typeof e=="function"?e(i):e;return this._refinement((i,s)=>{const d=a(i),o=()=>s.addIssue({code:Z.custom,...t(i)});return typeof Promise<"u"&&d instanceof Promise?d.then(l=>l?!0:(o(),!1)):d?!0:(o(),!1)})}refinement(a,e){return this._refinement((t,i)=>a(t)?!0:(i.addIssue(typeof e=="function"?e(t,i):e),!1))}_refinement(a){return new Mi({schema:this,typeName:ce.ZodEffects,effect:{type:"refinement",refinement:a}})}superRefine(a){return this._refinement(a)}constructor(a){this.spa=this.safeParseAsync,this._def=a,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:e=>this["~validate"](e)}}optional(){return qi.create(this,this._def)}nullable(){return Br.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return _i.create(this)}promise(){return ns.create(this,this._def)}or(a){return qs.create([this,a],this._def)}and(a){return Js.create(this,a,this._def)}transform(a){return new Mi({...Te(this._def),schema:this,typeName:ce.ZodEffects,effect:{type:"transform",transform:a}})}default(a){const e=typeof a=="function"?a:()=>a;return new Hs({...Te(this._def),innerType:this,defaultValue:e,typeName:ce.ZodDefault})}brand(){return new lu({typeName:ce.ZodBranded,type:this,...Te(this._def)})}catch(a){const e=typeof a=="function"?a:()=>a;return new Ks({...Te(this._def),innerType:this,catchValue:e,typeName:ce.ZodCatch})}describe(a){const e=this.constructor;return new e({...this._def,description:a})}pipe(a){return Xs.create(this,a)}readonly(){return Qs.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const kw=/^c[^\s-]{8,}$/i,Zw=/^[0-9a-z]+$/,qw=/^[0-9A-HJKMNP-TV-Z]{26}$/i,Jw=/^[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,Sw=/^[a-z0-9_-]{21}$/i,Ww=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,zw=/^[-+]?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)?)??$/,Yw=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,Hw="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let ou;const Kw=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Xw=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,Qw=/^(([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]))$/,eC=/^(([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])$/,tC=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,iC=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,yE="((\\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])))",rC=new RegExp(`^${yE}$`);function hE(r){let a="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return r.precision?a=`${a}\\.\\d{${r.precision}}`:r.precision==null&&(a=`${a}(\\.\\d+)?`),a}function nC(r){return new RegExp(`^${hE(r)}$`)}function mE(r){let a=`${yE}T${hE(r)}`;const e=[];return e.push(r.local?"Z?":"Z"),r.offset&&e.push("([+-]\\d{2}:?\\d{2})"),a=`${a}(${e.join("|")})`,new RegExp(`^${a}$`)}function sC(r,a){return!!((a==="v4"||!a)&&Kw.test(r)||(a==="v6"||!a)&&Qw.test(r))}function aC(r,a){if(!Ww.test(r))return!1;try{const[e]=r.split("."),t=e.replace(/-/g,"+").replace(/_/g,"/").padEnd(e.length+(4-e.length%4)%4,"="),i=JSON.parse(atob(t));return!(typeof i!="object"||i===null||!i.typ||!i.alg||a&&i.alg!==a)}catch{return!1}}function oC(r,a){return!!((a==="v4"||!a)&&Xw.test(r)||(a==="v6"||!a)&&eC.test(r))}class Bi extends Ge{_parse(a){if(this._def.coerce&&(a.data=String(a.data)),this._getType(a)!==H.string){const s=this._getOrReturnCtx(a);return z(s,{code:Z.invalid_type,expected:H.string,received:s.parsedType}),ye}const t=new $t;let i;for(const s of this._def.checks)if(s.kind==="min")a.data.length<s.value&&(i=this._getOrReturnCtx(a,i),z(i,{code:Z.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),t.dirty());else if(s.kind==="max")a.data.length>s.value&&(i=this._getOrReturnCtx(a,i),z(i,{code:Z.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),t.dirty());else if(s.kind==="length"){const d=a.data.length>s.value,o=a.data.length<s.value;(d||o)&&(i=this._getOrReturnCtx(a,i),d?z(i,{code:Z.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}):o&&z(i,{code:Z.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}),t.dirty())}else if(s.kind==="email")Yw.test(a.data)||(i=this._getOrReturnCtx(a,i),z(i,{validation:"email",code:Z.invalid_string,message:s.message}),t.dirty());else if(s.kind==="emoji")ou||(ou=new RegExp(Hw,"u")),ou.test(a.data)||(i=this._getOrReturnCtx(a,i),z(i,{validation:"emoji",code:Z.invalid_string,message:s.message}),t.dirty());else if(s.kind==="uuid")Jw.test(a.data)||(i=this._getOrReturnCtx(a,i),z(i,{validation:"uuid",code:Z.invalid_string,message:s.message}),t.dirty());else if(s.kind==="nanoid")Sw.test(a.data)||(i=this._getOrReturnCtx(a,i),z(i,{validation:"nanoid",code:Z.invalid_string,message:s.message}),t.dirty());else if(s.kind==="cuid")kw.test(a.data)||(i=this._getOrReturnCtx(a,i),z(i,{validation:"cuid",code:Z.invalid_string,message:s.message}),t.dirty());else if(s.kind==="cuid2")Zw.test(a.data)||(i=this._getOrReturnCtx(a,i),z(i,{validation:"cuid2",code:Z.invalid_string,message:s.message}),t.dirty());else if(s.kind==="ulid")qw.test(a.data)||(i=this._getOrReturnCtx(a,i),z(i,{validation:"ulid",code:Z.invalid_string,message:s.message}),t.dirty());else if(s.kind==="url")try{new URL(a.data)}catch{i=this._getOrReturnCtx(a,i),z(i,{validation:"url",code:Z.invalid_string,message:s.message}),t.dirty()}else s.kind==="regex"?(s.regex.lastIndex=0,s.regex.test(a.data)||(i=this._getOrReturnCtx(a,i),z(i,{validation:"regex",code:Z.invalid_string,message:s.message}),t.dirty())):s.kind==="trim"?a.data=a.data.trim():s.kind==="includes"?a.data.includes(s.value,s.position)||(i=this._getOrReturnCtx(a,i),z(i,{code:Z.invalid_string,validation:{includes:s.value,position:s.position},message:s.message}),t.dirty()):s.kind==="toLowerCase"?a.data=a.data.toLowerCase():s.kind==="toUpperCase"?a.data=a.data.toUpperCase():s.kind==="startsWith"?a.data.startsWith(s.value)||(i=this._getOrReturnCtx(a,i),z(i,{code:Z.invalid_string,validation:{startsWith:s.value},message:s.message}),t.dirty()):s.kind==="endsWith"?a.data.endsWith(s.value)||(i=this._getOrReturnCtx(a,i),z(i,{code:Z.invalid_string,validation:{endsWith:s.value},message:s.message}),t.dirty()):s.kind==="datetime"?mE(s).test(a.data)||(i=this._getOrReturnCtx(a,i),z(i,{code:Z.invalid_string,validation:"datetime",message:s.message}),t.dirty()):s.kind==="date"?rC.test(a.data)||(i=this._getOrReturnCtx(a,i),z(i,{code:Z.invalid_string,validation:"date",message:s.message}),t.dirty()):s.kind==="time"?nC(s).test(a.data)||(i=this._getOrReturnCtx(a,i),z(i,{code:Z.invalid_string,validation:"time",message:s.message}),t.dirty()):s.kind==="duration"?zw.test(a.data)||(i=this._getOrReturnCtx(a,i),z(i,{validation:"duration",code:Z.invalid_string,message:s.message}),t.dirty()):s.kind==="ip"?sC(a.data,s.version)||(i=this._getOrReturnCtx(a,i),z(i,{validation:"ip",code:Z.invalid_string,message:s.message}),t.dirty()):s.kind==="jwt"?aC(a.data,s.alg)||(i=this._getOrReturnCtx(a,i),z(i,{validation:"jwt",code:Z.invalid_string,message:s.message}),t.dirty()):s.kind==="cidr"?oC(a.data,s.version)||(i=this._getOrReturnCtx(a,i),z(i,{validation:"cidr",code:Z.invalid_string,message:s.message}),t.dirty()):s.kind==="base64"?tC.test(a.data)||(i=this._getOrReturnCtx(a,i),z(i,{validation:"base64",code:Z.invalid_string,message:s.message}),t.dirty()):s.kind==="base64url"?iC.test(a.data)||(i=this._getOrReturnCtx(a,i),z(i,{validation:"base64url",code:Z.invalid_string,message:s.message}),t.dirty()):ze.assertNever(s);return{status:t.value,value:a.data}}_regex(a,e,t){return this.refinement(i=>a.test(i),{validation:e,code:Z.invalid_string,...ne.errToObj(t)})}_addCheck(a){return new Bi({...this._def,checks:[...this._def.checks,a]})}email(a){return this._addCheck({kind:"email",...ne.errToObj(a)})}url(a){return this._addCheck({kind:"url",...ne.errToObj(a)})}emoji(a){return this._addCheck({kind:"emoji",...ne.errToObj(a)})}uuid(a){return this._addCheck({kind:"uuid",...ne.errToObj(a)})}nanoid(a){return this._addCheck({kind:"nanoid",...ne.errToObj(a)})}cuid(a){return this._addCheck({kind:"cuid",...ne.errToObj(a)})}cuid2(a){return this._addCheck({kind:"cuid2",...ne.errToObj(a)})}ulid(a){return this._addCheck({kind:"ulid",...ne.errToObj(a)})}base64(a){return this._addCheck({kind:"base64",...ne.errToObj(a)})}base64url(a){return this._addCheck({kind:"base64url",...ne.errToObj(a)})}jwt(a){return this._addCheck({kind:"jwt",...ne.errToObj(a)})}ip(a){return this._addCheck({kind:"ip",...ne.errToObj(a)})}cidr(a){return this._addCheck({kind:"cidr",...ne.errToObj(a)})}datetime(a){var e,t;return typeof a=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:a}):this._addCheck({kind:"datetime",precision:typeof(a==null?void 0:a.precision)>"u"?null:a==null?void 0:a.precision,offset:(e=a==null?void 0:a.offset)!==null&&e!==void 0?e:!1,local:(t=a==null?void 0:a.local)!==null&&t!==void 0?t:!1,...ne.errToObj(a==null?void 0:a.message)})}date(a){return this._addCheck({kind:"date",message:a})}time(a){return typeof a=="string"?this._addCheck({kind:"time",precision:null,message:a}):this._addCheck({kind:"time",precision:typeof(a==null?void 0:a.precision)>"u"?null:a==null?void 0:a.precision,...ne.errToObj(a==null?void 0:a.message)})}duration(a){return this._addCheck({kind:"duration",...ne.errToObj(a)})}regex(a,e){return this._addCheck({kind:"regex",regex:a,...ne.errToObj(e)})}includes(a,e){return this._addCheck({kind:"includes",value:a,position:e==null?void 0:e.position,...ne.errToObj(e==null?void 0:e.message)})}startsWith(a,e){return this._addCheck({kind:"startsWith",value:a,...ne.errToObj(e)})}endsWith(a,e){return this._addCheck({kind:"endsWith",value:a,...ne.errToObj(e)})}min(a,e){return this._addCheck({kind:"min",value:a,...ne.errToObj(e)})}max(a,e){return this._addCheck({kind:"max",value:a,...ne.errToObj(e)})}length(a,e){return this._addCheck({kind:"length",value:a,...ne.errToObj(e)})}nonempty(a){return this.min(1,ne.errToObj(a))}trim(){return new Bi({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Bi({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Bi({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(a=>a.kind==="datetime")}get isDate(){return!!this._def.checks.find(a=>a.kind==="date")}get isTime(){return!!this._def.checks.find(a=>a.kind==="time")}get isDuration(){return!!this._def.checks.find(a=>a.kind==="duration")}get isEmail(){return!!this._def.checks.find(a=>a.kind==="email")}get isURL(){return!!this._def.checks.find(a=>a.kind==="url")}get isEmoji(){return!!this._def.checks.find(a=>a.kind==="emoji")}get isUUID(){return!!this._def.checks.find(a=>a.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(a=>a.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(a=>a.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(a=>a.kind==="cuid2")}get isULID(){return!!this._def.checks.find(a=>a.kind==="ulid")}get isIP(){return!!this._def.checks.find(a=>a.kind==="ip")}get isCIDR(){return!!this._def.checks.find(a=>a.kind==="cidr")}get isBase64(){return!!this._def.checks.find(a=>a.kind==="base64")}get isBase64url(){return!!this._def.checks.find(a=>a.kind==="base64url")}get minLength(){let a=null;for(const e of this._def.checks)e.kind==="min"&&(a===null||e.value>a)&&(a=e.value);return a}get maxLength(){let a=null;for(const e of this._def.checks)e.kind==="max"&&(a===null||e.value<a)&&(a=e.value);return a}}Bi.create=r=>{var a;return new Bi({checks:[],typeName:ce.ZodString,coerce:(a=r==null?void 0:r.coerce)!==null&&a!==void 0?a:!1,...Te(r)})};function dC(r,a){const e=(r.toString().split(".")[1]||"").length,t=(a.toString().split(".")[1]||"").length,i=e>t?e:t,s=parseInt(r.toFixed(i).replace(".","")),d=parseInt(a.toFixed(i).replace(".",""));return s%d/Math.pow(10,i)}class wr extends Ge{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(a){if(this._def.coerce&&(a.data=Number(a.data)),this._getType(a)!==H.number){const s=this._getOrReturnCtx(a);return z(s,{code:Z.invalid_type,expected:H.number,received:s.parsedType}),ye}let t;const i=new $t;for(const s of this._def.checks)s.kind==="int"?ze.isInteger(a.data)||(t=this._getOrReturnCtx(a,t),z(t,{code:Z.invalid_type,expected:"integer",received:"float",message:s.message}),i.dirty()):s.kind==="min"?(s.inclusive?a.data<s.value:a.data<=s.value)&&(t=this._getOrReturnCtx(a,t),z(t,{code:Z.too_small,minimum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),i.dirty()):s.kind==="max"?(s.inclusive?a.data>s.value:a.data>=s.value)&&(t=this._getOrReturnCtx(a,t),z(t,{code:Z.too_big,maximum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),i.dirty()):s.kind==="multipleOf"?dC(a.data,s.value)!==0&&(t=this._getOrReturnCtx(a,t),z(t,{code:Z.not_multiple_of,multipleOf:s.value,message:s.message}),i.dirty()):s.kind==="finite"?Number.isFinite(a.data)||(t=this._getOrReturnCtx(a,t),z(t,{code:Z.not_finite,message:s.message}),i.dirty()):ze.assertNever(s);return{status:i.value,value:a.data}}gte(a,e){return this.setLimit("min",a,!0,ne.toString(e))}gt(a,e){return this.setLimit("min",a,!1,ne.toString(e))}lte(a,e){return this.setLimit("max",a,!0,ne.toString(e))}lt(a,e){return this.setLimit("max",a,!1,ne.toString(e))}setLimit(a,e,t,i){return new wr({...this._def,checks:[...this._def.checks,{kind:a,value:e,inclusive:t,message:ne.toString(i)}]})}_addCheck(a){return new wr({...this._def,checks:[...this._def.checks,a]})}int(a){return this._addCheck({kind:"int",message:ne.toString(a)})}positive(a){return this._addCheck({kind:"min",value:0,inclusive:!1,message:ne.toString(a)})}negative(a){return this._addCheck({kind:"max",value:0,inclusive:!1,message:ne.toString(a)})}nonpositive(a){return this._addCheck({kind:"max",value:0,inclusive:!0,message:ne.toString(a)})}nonnegative(a){return this._addCheck({kind:"min",value:0,inclusive:!0,message:ne.toString(a)})}multipleOf(a,e){return this._addCheck({kind:"multipleOf",value:a,message:ne.toString(e)})}finite(a){return this._addCheck({kind:"finite",message:ne.toString(a)})}safe(a){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:ne.toString(a)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:ne.toString(a)})}get minValue(){let a=null;for(const e of this._def.checks)e.kind==="min"&&(a===null||e.value>a)&&(a=e.value);return a}get maxValue(){let a=null;for(const e of this._def.checks)e.kind==="max"&&(a===null||e.value<a)&&(a=e.value);return a}get isInt(){return!!this._def.checks.find(a=>a.kind==="int"||a.kind==="multipleOf"&&ze.isInteger(a.value))}get isFinite(){let a=null,e=null;for(const t of this._def.checks){if(t.kind==="finite"||t.kind==="int"||t.kind==="multipleOf")return!0;t.kind==="min"?(e===null||t.value>e)&&(e=t.value):t.kind==="max"&&(a===null||t.value<a)&&(a=t.value)}return Number.isFinite(e)&&Number.isFinite(a)}}wr.create=r=>new wr({checks:[],typeName:ce.ZodNumber,coerce:(r==null?void 0:r.coerce)||!1,...Te(r)});class Cr extends Ge{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(a){if(this._def.coerce)try{a.data=BigInt(a.data)}catch{return this._getInvalidInput(a)}if(this._getType(a)!==H.bigint)return this._getInvalidInput(a);let t;const i=new $t;for(const s of this._def.checks)s.kind==="min"?(s.inclusive?a.data<s.value:a.data<=s.value)&&(t=this._getOrReturnCtx(a,t),z(t,{code:Z.too_small,type:"bigint",minimum:s.value,inclusive:s.inclusive,message:s.message}),i.dirty()):s.kind==="max"?(s.inclusive?a.data>s.value:a.data>=s.value)&&(t=this._getOrReturnCtx(a,t),z(t,{code:Z.too_big,type:"bigint",maximum:s.value,inclusive:s.inclusive,message:s.message}),i.dirty()):s.kind==="multipleOf"?a.data%s.value!==BigInt(0)&&(t=this._getOrReturnCtx(a,t),z(t,{code:Z.not_multiple_of,multipleOf:s.value,message:s.message}),i.dirty()):ze.assertNever(s);return{status:i.value,value:a.data}}_getInvalidInput(a){const e=this._getOrReturnCtx(a);return z(e,{code:Z.invalid_type,expected:H.bigint,received:e.parsedType}),ye}gte(a,e){return this.setLimit("min",a,!0,ne.toString(e))}gt(a,e){return this.setLimit("min",a,!1,ne.toString(e))}lte(a,e){return this.setLimit("max",a,!0,ne.toString(e))}lt(a,e){return this.setLimit("max",a,!1,ne.toString(e))}setLimit(a,e,t,i){return new Cr({...this._def,checks:[...this._def.checks,{kind:a,value:e,inclusive:t,message:ne.toString(i)}]})}_addCheck(a){return new Cr({...this._def,checks:[...this._def.checks,a]})}positive(a){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:ne.toString(a)})}negative(a){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:ne.toString(a)})}nonpositive(a){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:ne.toString(a)})}nonnegative(a){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:ne.toString(a)})}multipleOf(a,e){return this._addCheck({kind:"multipleOf",value:a,message:ne.toString(e)})}get minValue(){let a=null;for(const e of this._def.checks)e.kind==="min"&&(a===null||e.value>a)&&(a=e.value);return a}get maxValue(){let a=null;for(const e of this._def.checks)e.kind==="max"&&(a===null||e.value<a)&&(a=e.value);return a}}Cr.create=r=>{var a;return new Cr({checks:[],typeName:ce.ZodBigInt,coerce:(a=r==null?void 0:r.coerce)!==null&&a!==void 0?a:!1,...Te(r)})};class xs extends Ge{_parse(a){if(this._def.coerce&&(a.data=!!a.data),this._getType(a)!==H.boolean){const t=this._getOrReturnCtx(a);return z(t,{code:Z.invalid_type,expected:H.boolean,received:t.parsedType}),ye}return zt(a.data)}}xs.create=r=>new xs({typeName:ce.ZodBoolean,coerce:(r==null?void 0:r.coerce)||!1,...Te(r)});class Tn extends Ge{_parse(a){if(this._def.coerce&&(a.data=new Date(a.data)),this._getType(a)!==H.date){const s=this._getOrReturnCtx(a);return z(s,{code:Z.invalid_type,expected:H.date,received:s.parsedType}),ye}if(isNaN(a.data.getTime())){const s=this._getOrReturnCtx(a);return z(s,{code:Z.invalid_date}),ye}const t=new $t;let i;for(const s of this._def.checks)s.kind==="min"?a.data.getTime()<s.value&&(i=this._getOrReturnCtx(a,i),z(i,{code:Z.too_small,message:s.message,inclusive:!0,exact:!1,minimum:s.value,type:"date"}),t.dirty()):s.kind==="max"?a.data.getTime()>s.value&&(i=this._getOrReturnCtx(a,i),z(i,{code:Z.too_big,message:s.message,inclusive:!0,exact:!1,maximum:s.value,type:"date"}),t.dirty()):ze.assertNever(s);return{status:t.value,value:new Date(a.data.getTime())}}_addCheck(a){return new Tn({...this._def,checks:[...this._def.checks,a]})}min(a,e){return this._addCheck({kind:"min",value:a.getTime(),message:ne.toString(e)})}max(a,e){return this._addCheck({kind:"max",value:a.getTime(),message:ne.toString(e)})}get minDate(){let a=null;for(const e of this._def.checks)e.kind==="min"&&(a===null||e.value>a)&&(a=e.value);return a!=null?new Date(a):null}get maxDate(){let a=null;for(const e of this._def.checks)e.kind==="max"&&(a===null||e.value<a)&&(a=e.value);return a!=null?new Date(a):null}}Tn.create=r=>new Tn({checks:[],coerce:(r==null?void 0:r.coerce)||!1,typeName:ce.ZodDate,...Te(r)});class Ro extends Ge{_parse(a){if(this._getType(a)!==H.symbol){const t=this._getOrReturnCtx(a);return z(t,{code:Z.invalid_type,expected:H.symbol,received:t.parsedType}),ye}return zt(a.data)}}Ro.create=r=>new Ro({typeName:ce.ZodSymbol,...Te(r)});class ks extends Ge{_parse(a){if(this._getType(a)!==H.undefined){const t=this._getOrReturnCtx(a);return z(t,{code:Z.invalid_type,expected:H.undefined,received:t.parsedType}),ye}return zt(a.data)}}ks.create=r=>new ks({typeName:ce.ZodUndefined,...Te(r)});class Zs extends Ge{_parse(a){if(this._getType(a)!==H.null){const t=this._getOrReturnCtx(a);return z(t,{code:Z.invalid_type,expected:H.null,received:t.parsedType}),ye}return zt(a.data)}}Zs.create=r=>new Zs({typeName:ce.ZodNull,...Te(r)});class ts extends Ge{constructor(){super(...arguments),this._any=!0}_parse(a){return zt(a.data)}}ts.create=r=>new ts({typeName:ce.ZodAny,...Te(r)});class In extends Ge{constructor(){super(...arguments),this._unknown=!0}_parse(a){return zt(a.data)}}In.create=r=>new In({typeName:ce.ZodUnknown,...Te(r)});class lr extends Ge{_parse(a){const e=this._getOrReturnCtx(a);return z(e,{code:Z.invalid_type,expected:H.never,received:e.parsedType}),ye}}lr.create=r=>new lr({typeName:ce.ZodNever,...Te(r)});class Do extends Ge{_parse(a){if(this._getType(a)!==H.undefined){const t=this._getOrReturnCtx(a);return z(t,{code:Z.invalid_type,expected:H.void,received:t.parsedType}),ye}return zt(a.data)}}Do.create=r=>new Do({typeName:ce.ZodVoid,...Te(r)});class _i extends Ge{_parse(a){const{ctx:e,status:t}=this._processInputParams(a),i=this._def;if(e.parsedType!==H.array)return z(e,{code:Z.invalid_type,expected:H.array,received:e.parsedType}),ye;if(i.exactLength!==null){const d=e.data.length>i.exactLength.value,o=e.data.length<i.exactLength.value;(d||o)&&(z(e,{code:d?Z.too_big:Z.too_small,minimum:o?i.exactLength.value:void 0,maximum:d?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&&(z(e,{code:Z.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&&(z(e,{code:Z.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((d,o)=>i.type._parseAsync(new ki(e,d,e.path,o)))).then(d=>$t.mergeArray(t,d));const s=[...e.data].map((d,o)=>i.type._parseSync(new ki(e,d,e.path,o)));return $t.mergeArray(t,s)}get element(){return this._def.type}min(a,e){return new _i({...this._def,minLength:{value:a,message:ne.toString(e)}})}max(a,e){return new _i({...this._def,maxLength:{value:a,message:ne.toString(e)}})}length(a,e){return new _i({...this._def,exactLength:{value:a,message:ne.toString(e)}})}nonempty(a){return this.min(1,a)}}_i.create=(r,a)=>new _i({type:r,minLength:null,maxLength:null,exactLength:null,typeName:ce.ZodArray,...Te(a)});function is(r){if(r instanceof It){const a={};for(const e in r.shape){const t=r.shape[e];a[e]=qi.create(is(t))}return new It({...r._def,shape:()=>a})}else return r instanceof _i?new _i({...r._def,type:is(r.element)}):r instanceof qi?qi.create(is(r.unwrap())):r instanceof Br?Br.create(is(r.unwrap())):r instanceof Zi?Zi.create(r.items.map(a=>is(a))):r}class It extends Ge{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const a=this._def.shape(),e=ze.objectKeys(a);return this._cached={shape:a,keys:e}}_parse(a){if(this._getType(a)!==H.object){const u=this._getOrReturnCtx(a);return z(u,{code:Z.invalid_type,expected:H.object,received:u.parsedType}),ye}const{status:t,ctx:i}=this._processInputParams(a),{shape:s,keys:d}=this._getCached(),o=[];if(!(this._def.catchall instanceof lr&&this._def.unknownKeys==="strip"))for(const u in i.data)d.includes(u)||o.push(u);const l=[];for(const u of d){const y=s[u],c=i.data[u];l.push({key:{status:"valid",value:u},value:y._parse(new ki(i,c,i.path,u)),alwaysSet:u in i.data})}if(this._def.catchall instanceof lr){const u=this._def.unknownKeys;if(u==="passthrough")for(const y of o)l.push({key:{status:"valid",value:y},value:{status:"valid",value:i.data[y]}});else if(u==="strict")o.length>0&&(z(i,{code:Z.unrecognized_keys,keys:o}),t.dirty());else if(u!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const u=this._def.catchall;for(const y of o){const c=i.data[y];l.push({key:{status:"valid",value:y},value:u._parse(new ki(i,c,i.path,y)),alwaysSet:y in i.data})}}return i.common.async?Promise.resolve().then(async()=>{const u=[];for(const y of l){const c=await y.key,I=await y.value;u.push({key:c,value:I,alwaysSet:y.alwaysSet})}return u}).then(u=>$t.mergeObjectSync(t,u)):$t.mergeObjectSync(t,l)}get shape(){return this._def.shape()}strict(a){return ne.errToObj,new It({...this._def,unknownKeys:"strict",...a!==void 0?{errorMap:(e,t)=>{var i,s,d,o;const l=(d=(s=(i=this._def).errorMap)===null||s===void 0?void 0:s.call(i,e,t).message)!==null&&d!==void 0?d:t.defaultError;return e.code==="unrecognized_keys"?{message:(o=ne.errToObj(a).message)!==null&&o!==void 0?o:l}:{message:l}}}:{}})}strip(){return new It({...this._def,unknownKeys:"strip"})}passthrough(){return new It({...this._def,unknownKeys:"passthrough"})}extend(a){return new It({...this._def,shape:()=>({...this._def.shape(),...a})})}merge(a){return new It({unknownKeys:a._def.unknownKeys,catchall:a._def.catchall,shape:()=>({...this._def.shape(),...a._def.shape()}),typeName:ce.ZodObject})}setKey(a,e){return this.augment({[a]:e})}catchall(a){return new It({...this._def,catchall:a})}pick(a){const e={};return ze.objectKeys(a).forEach(t=>{a[t]&&this.shape[t]&&(e[t]=this.shape[t])}),new It({...this._def,shape:()=>e})}omit(a){const e={};return ze.objectKeys(this.shape).forEach(t=>{a[t]||(e[t]=this.shape[t])}),new It({...this._def,shape:()=>e})}deepPartial(){return is(this)}partial(a){const e={};return ze.objectKeys(this.shape).forEach(t=>{const i=this.shape[t];a&&!a[t]?e[t]=i:e[t]=i.optional()}),new It({...this._def,shape:()=>e})}required(a){const e={};return ze.objectKeys(this.shape).forEach(t=>{if(a&&!a[t])e[t]=this.shape[t];else{let s=this.shape[t];for(;s instanceof qi;)s=s._def.innerType;e[t]=s}}),new It({...this._def,shape:()=>e})}keyof(){return vE(ze.objectKeys(this.shape))}}It.create=(r,a)=>new It({shape:()=>r,unknownKeys:"strip",catchall:lr.create(),typeName:ce.ZodObject,...Te(a)}),It.strictCreate=(r,a)=>new It({shape:()=>r,unknownKeys:"strict",catchall:lr.create(),typeName:ce.ZodObject,...Te(a)}),It.lazycreate=(r,a)=>new It({shape:r,unknownKeys:"strip",catchall:lr.create(),typeName:ce.ZodObject,...Te(a)});class qs extends Ge{_parse(a){const{ctx:e}=this._processInputParams(a),t=this._def.options;function i(s){for(const o of s)if(o.result.status==="valid")return o.result;for(const o of s)if(o.result.status==="dirty")return e.common.issues.push(...o.ctx.common.issues),o.result;const d=s.map(o=>new si(o.ctx.common.issues));return z(e,{code:Z.invalid_union,unionErrors:d}),ye}if(e.common.async)return Promise.all(t.map(async s=>{const d={...e,common:{...e.common,issues:[]},parent:null};return{result:await s._parseAsync({data:e.data,path:e.path,parent:d}),ctx:d}})).then(i);{let s;const d=[];for(const l of t){const u={...e,common:{...e.common,issues:[]},parent:null},y=l._parseSync({data:e.data,path:e.path,parent:u});if(y.status==="valid")return y;y.status==="dirty"&&!s&&(s={result:y,ctx:u}),u.common.issues.length&&d.push(u.common.issues)}if(s)return e.common.issues.push(...s.ctx.common.issues),s.result;const o=d.map(l=>new si(l));return z(e,{code:Z.invalid_union,unionErrors:o}),ye}}get options(){return this._def.options}}qs.create=(r,a)=>new qs({options:r,typeName:ce.ZodUnion,...Te(a)});const ur=r=>r instanceof Ws?ur(r.schema):r instanceof Mi?ur(r.innerType()):r instanceof zs?[r.value]:r instanceof Vr?r.options:r instanceof Ys?ze.objectValues(r.enum):r instanceof Hs?ur(r._def.innerType):r instanceof ks?[void 0]:r instanceof Zs?[null]:r instanceof qi?[void 0,...ur(r.unwrap())]:r instanceof Br?[null,...ur(r.unwrap())]:r instanceof lu||r instanceof Qs?ur(r.unwrap()):r instanceof Ks?ur(r._def.innerType):[];class Oo extends Ge{_parse(a){const{ctx:e}=this._processInputParams(a);if(e.parsedType!==H.object)return z(e,{code:Z.invalid_type,expected:H.object,received:e.parsedType}),ye;const t=this.discriminator,i=e.data[t],s=this.optionsMap.get(i);return s?e.common.async?s._parseAsync({data:e.data,path:e.path,parent:e}):s._parseSync({data:e.data,path:e.path,parent:e}):(z(e,{code:Z.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[t]}),ye)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(a,e,t){const i=new Map;for(const s of e){const d=ur(s.shape[a]);if(!d.length)throw new Error(`A discriminator value for key \`${a}\` could not be extracted from all schema options`);for(const o of d){if(i.has(o))throw new Error(`Discriminator property ${String(a)} has duplicate value ${String(o)}`);i.set(o,s)}}return new Oo({typeName:ce.ZodDiscriminatedUnion,discriminator:a,options:e,optionsMap:i,...Te(t)})}}function du(r,a){const e=dr(r),t=dr(a);if(r===a)return{valid:!0,data:r};if(e===H.object&&t===H.object){const i=ze.objectKeys(a),s=ze.objectKeys(r).filter(o=>i.indexOf(o)!==-1),d={...r,...a};for(const o of s){const l=du(r[o],a[o]);if(!l.valid)return{valid:!1};d[o]=l.data}return{valid:!0,data:d}}else if(e===H.array&&t===H.array){if(r.length!==a.length)return{valid:!1};const i=[];for(let s=0;s<r.length;s++){const d=r[s],o=a[s],l=du(d,o);if(!l.valid)return{valid:!1};i.push(l.data)}return{valid:!0,data:i}}else return e===H.date&&t===H.date&&+r==+a?{valid:!0,data:r}:{valid:!1}}class Js extends Ge{_parse(a){const{status:e,ctx:t}=this._processInputParams(a),i=(s,d)=>{if(su(s)||su(d))return ye;const o=du(s.value,d.value);return o.valid?((au(s)||au(d))&&e.dirty(),{status:e.value,value:o.data}):(z(t,{code:Z.invalid_intersection_types}),ye)};return t.common.async?Promise.all([this._def.left._parseAsync({data:t.data,path:t.path,parent:t}),this._def.right._parseAsync({data:t.data,path:t.path,parent:t})]).then(([s,d])=>i(s,d)):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}))}}Js.create=(r,a,e)=>new Js({left:r,right:a,typeName:ce.ZodIntersection,...Te(e)});class Zi extends Ge{_parse(a){const{status:e,ctx:t}=this._processInputParams(a);if(t.parsedType!==H.array)return z(t,{code:Z.invalid_type,expected:H.array,received:t.parsedType}),ye;if(t.data.length<this._def.items.length)return z(t,{code:Z.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),ye;!this._def.rest&&t.data.length>this._def.items.length&&(z(t,{code:Z.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),e.dirty());const s=[...t.data].map((d,o)=>{const l=this._def.items[o]||this._def.rest;return l?l._parse(new ki(t,d,t.path,o)):null}).filter(d=>!!d);return t.common.async?Promise.all(s).then(d=>$t.mergeArray(e,d)):$t.mergeArray(e,s)}get items(){return this._def.items}rest(a){return new Zi({...this._def,rest:a})}}Zi.create=(r,a)=>{if(!Array.isArray(r))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Zi({items:r,typeName:ce.ZodTuple,rest:null,...Te(a)})};class Ss extends Ge{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(a){const{status:e,ctx:t}=this._processInputParams(a);if(t.parsedType!==H.object)return z(t,{code:Z.invalid_type,expected:H.object,received:t.parsedType}),ye;const i=[],s=this._def.keyType,d=this._def.valueType;for(const o in t.data)i.push({key:s._parse(new ki(t,o,t.path,o)),value:d._parse(new ki(t,t.data[o],t.path,o)),alwaysSet:o in t.data});return t.common.async?$t.mergeObjectAsync(e,i):$t.mergeObjectSync(e,i)}get element(){return this._def.valueType}static create(a,e,t){return e instanceof Ge?new Ss({keyType:a,valueType:e,typeName:ce.ZodRecord,...Te(t)}):new Ss({keyType:Bi.create(),valueType:a,typeName:ce.ZodRecord,...Te(e)})}}class Po extends Ge{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(a){const{status:e,ctx:t}=this._processInputParams(a);if(t.parsedType!==H.map)return z(t,{code:Z.invalid_type,expected:H.map,received:t.parsedType}),ye;const i=this._def.keyType,s=this._def.valueType,d=[...t.data.entries()].map(([o,l],u)=>({key:i._parse(new ki(t,o,t.path,[u,"key"])),value:s._parse(new ki(t,l,t.path,[u,"value"]))}));if(t.common.async){const o=new Map;return Promise.resolve().then(async()=>{for(const l of d){const u=await l.key,y=await l.value;if(u.status==="aborted"||y.status==="aborted")return ye;(u.status==="dirty"||y.status==="dirty")&&e.dirty(),o.set(u.value,y.value)}return{status:e.value,value:o}})}else{const o=new Map;for(const l of d){const u=l.key,y=l.value;if(u.status==="aborted"||y.status==="aborted")return ye;(u.status==="dirty"||y.status==="dirty")&&e.dirty(),o.set(u.value,y.value)}return{status:e.value,value:o}}}}Po.create=(r,a,e)=>new Po({valueType:a,keyType:r,typeName:ce.ZodMap,...Te(e)});class En extends Ge{_parse(a){const{status:e,ctx:t}=this._processInputParams(a);if(t.parsedType!==H.set)return z(t,{code:Z.invalid_type,expected:H.set,received:t.parsedType}),ye;const i=this._def;i.minSize!==null&&t.data.size<i.minSize.value&&(z(t,{code:Z.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&&(z(t,{code:Z.too_big,maximum:i.maxSize.value,type:"set",inclusive:!0,exact:!1,message:i.maxSize.message}),e.dirty());const s=this._def.valueType;function d(l){const u=new Set;for(const y of l){if(y.status==="aborted")return ye;y.status==="dirty"&&e.dirty(),u.add(y.value)}return{status:e.value,value:u}}const o=[...t.data.values()].map((l,u)=>s._parse(new ki(t,l,t.path,u)));return t.common.async?Promise.all(o).then(l=>d(l)):d(o)}min(a,e){return new En({...this._def,minSize:{value:a,message:ne.toString(e)}})}max(a,e){return new En({...this._def,maxSize:{value:a,message:ne.toString(e)}})}size(a,e){return this.min(a,e).max(a,e)}nonempty(a){return this.min(1,a)}}En.create=(r,a)=>new En({valueType:r,minSize:null,maxSize:null,typeName:ce.ZodSet,...Te(a)});class rs extends Ge{constructor(){super(...arguments),this.validate=this.implement}_parse(a){const{ctx:e}=this._processInputParams(a);if(e.parsedType!==H.function)return z(e,{code:Z.invalid_type,expected:H.function,received:e.parsedType}),ye;function t(o,l){return Ao({data:o,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,Eo(),Qn].filter(u=>!!u),issueData:{code:Z.invalid_arguments,argumentsError:l}})}function i(o,l){return Ao({data:o,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,Eo(),Qn].filter(u=>!!u),issueData:{code:Z.invalid_return_type,returnTypeError:l}})}const s={errorMap:e.common.contextualErrorMap},d=e.data;if(this._def.returns instanceof ns){const o=this;return zt(async function(...l){const u=new si([]),y=await o._def.args.parseAsync(l,s).catch(E=>{throw u.addIssue(t(l,E)),u}),c=await Reflect.apply(d,this,y);return await o._def.returns._def.type.parseAsync(c,s).catch(E=>{throw u.addIssue(i(c,E)),u})})}else{const o=this;return zt(function(...l){const u=o._def.args.safeParse(l,s);if(!u.success)throw new si([t(l,u.error)]);const y=Reflect.apply(d,this,u.data),c=o._def.returns.safeParse(y,s);if(!c.success)throw new si([i(y,c.error)]);return c.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...a){return new rs({...this._def,args:Zi.create(a).rest(In.create())})}returns(a){return new rs({...this._def,returns:a})}implement(a){return this.parse(a)}strictImplement(a){return this.parse(a)}static create(a,e,t){return new rs({args:a||Zi.create([]).rest(In.create()),returns:e||In.create(),typeName:ce.ZodFunction,...Te(t)})}}class Ws extends Ge{get schema(){return this._def.getter()}_parse(a){const{ctx:e}=this._processInputParams(a);return this._def.getter()._parse({data:e.data,path:e.path,parent:e})}}Ws.create=(r,a)=>new Ws({getter:r,typeName:ce.ZodLazy,...Te(a)});class zs extends Ge{_parse(a){if(a.data!==this._def.value){const e=this._getOrReturnCtx(a);return z(e,{received:e.data,code:Z.invalid_literal,expected:this._def.value}),ye}return{status:"valid",value:a.data}}get value(){return this._def.value}}zs.create=(r,a)=>new zs({value:r,typeName:ce.ZodLiteral,...Te(a)});function vE(r,a){return new Vr({values:r,typeName:ce.ZodEnum,...Te(a)})}class Vr extends Ge{constructor(){super(...arguments),Gs.set(this,void 0)}_parse(a){if(typeof a.data!="string"){const e=this._getOrReturnCtx(a),t=this._def.values;return z(e,{expected:ze.joinValues(t),received:e.parsedType,code:Z.invalid_type}),ye}if(bo(this,Gs,"f")||cE(this,Gs,new Set(this._def.values),"f"),!bo(this,Gs,"f").has(a.data)){const e=this._getOrReturnCtx(a),t=this._def.values;return z(e,{received:e.data,code:Z.invalid_enum_value,options:t}),ye}return zt(a.data)}get options(){return this._def.values}get enum(){const a={};for(const e of this._def.values)a[e]=e;return a}get Values(){const a={};for(const e of this._def.values)a[e]=e;return a}get Enum(){const a={};for(const e of this._def.values)a[e]=e;return a}extract(a,e=this._def){return Vr.create(a,{...this._def,...e})}exclude(a,e=this._def){return Vr.create(this.options.filter(t=>!a.includes(t)),{...this._def,...e})}}Gs=new WeakMap,Vr.create=vE;class Ys extends Ge{constructor(){super(...arguments),Fs.set(this,void 0)}_parse(a){const e=ze.getValidEnumValues(this._def.values),t=this._getOrReturnCtx(a);if(t.parsedType!==H.string&&t.parsedType!==H.number){const i=ze.objectValues(e);return z(t,{expected:ze.joinValues(i),received:t.parsedType,code:Z.invalid_type}),ye}if(bo(this,Fs,"f")||cE(this,Fs,new Set(ze.getValidEnumValues(this._def.values)),"f"),!bo(this,Fs,"f").has(a.data)){const i=ze.objectValues(e);return z(t,{received:t.data,code:Z.invalid_enum_value,options:i}),ye}return zt(a.data)}get enum(){return this._def.values}}Fs=new WeakMap,Ys.create=(r,a)=>new Ys({values:r,typeName:ce.ZodNativeEnum,...Te(a)});class ns extends Ge{unwrap(){return this._def.type}_parse(a){const{ctx:e}=this._processInputParams(a);if(e.parsedType!==H.promise&&e.common.async===!1)return z(e,{code:Z.invalid_type,expected:H.promise,received:e.parsedType}),ye;const t=e.parsedType===H.promise?e.data:Promise.resolve(e.data);return zt(t.then(i=>this._def.type.parseAsync(i,{path:e.path,errorMap:e.common.contextualErrorMap})))}}ns.create=(r,a)=>new ns({type:r,typeName:ce.ZodPromise,...Te(a)});class Mi extends Ge{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===ce.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(a){const{status:e,ctx:t}=this._processInputParams(a),i=this._def.effect||null,s={addIssue:d=>{z(t,d),d.fatal?e.abort():e.dirty()},get path(){return t.path}};if(s.addIssue=s.addIssue.bind(s),i.type==="preprocess"){const d=i.transform(t.data,s);if(t.common.async)return Promise.resolve(d).then(async o=>{if(e.value==="aborted")return ye;const l=await this._def.schema._parseAsync({data:o,path:t.path,parent:t});return l.status==="aborted"?ye:l.status==="dirty"||e.value==="dirty"?es(l.value):l});{if(e.value==="aborted")return ye;const o=this._def.schema._parseSync({data:d,path:t.path,parent:t});return o.status==="aborted"?ye:o.status==="dirty"||e.value==="dirty"?es(o.value):o}}if(i.type==="refinement"){const d=o=>{const l=i.refinement(o,s);if(t.common.async)return Promise.resolve(l);if(l instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return o};if(t.common.async===!1){const o=this._def.schema._parseSync({data:t.data,path:t.path,parent:t});return o.status==="aborted"?ye:(o.status==="dirty"&&e.dirty(),d(o.value),{status:e.value,value:o.value})}else return this._def.schema._parseAsync({data:t.data,path:t.path,parent:t}).then(o=>o.status==="aborted"?ye:(o.status==="dirty"&&e.dirty(),d(o.value).then(()=>({status:e.value,value:o.value}))))}if(i.type==="transform")if(t.common.async===!1){const d=this._def.schema._parseSync({data:t.data,path:t.path,parent:t});if(!vn(d))return d;const o=i.transform(d.value,s);if(o instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:e.value,value:o}}else return this._def.schema._parseAsync({data:t.data,path:t.path,parent:t}).then(d=>vn(d)?Promise.resolve(i.transform(d.value,s)).then(o=>({status:e.value,value:o})):d);ze.assertNever(i)}}Mi.create=(r,a,e)=>new Mi({schema:r,typeName:ce.ZodEffects,effect:a,...Te(e)}),Mi.createWithPreprocess=(r,a,e)=>new Mi({schema:a,effect:{type:"preprocess",transform:r},typeName:ce.ZodEffects,...Te(e)});class qi extends Ge{_parse(a){return this._getType(a)===H.undefined?zt(void 0):this._def.innerType._parse(a)}unwrap(){return this._def.innerType}}qi.create=(r,a)=>new qi({innerType:r,typeName:ce.ZodOptional,...Te(a)});class Br extends Ge{_parse(a){return this._getType(a)===H.null?zt(null):this._def.innerType._parse(a)}unwrap(){return this._def.innerType}}Br.create=(r,a)=>new Br({innerType:r,typeName:ce.ZodNullable,...Te(a)});class Hs extends Ge{_parse(a){const{ctx:e}=this._processInputParams(a);let t=e.data;return e.parsedType===H.undefined&&(t=this._def.defaultValue()),this._def.innerType._parse({data:t,path:e.path,parent:e})}removeDefault(){return this._def.innerType}}Hs.create=(r,a)=>new Hs({innerType:r,typeName:ce.ZodDefault,defaultValue:typeof a.default=="function"?a.default:()=>a.default,...Te(a)});class Ks extends Ge{_parse(a){const{ctx:e}=this._processInputParams(a),t={...e,common:{...e.common,issues:[]}},i=this._def.innerType._parse({data:t.data,path:t.path,parent:{...t}});return gs(i)?i.then(s=>({status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new si(t.common.issues)},input:t.data})})):{status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new si(t.common.issues)},input:t.data})}}removeCatch(){return this._def.innerType}}Ks.create=(r,a)=>new Ks({innerType:r,typeName:ce.ZodCatch,catchValue:typeof a.catch=="function"?a.catch:()=>a.catch,...Te(a)});class wo extends Ge{_parse(a){if(this._getType(a)!==H.nan){const t=this._getOrReturnCtx(a);return z(t,{code:Z.invalid_type,expected:H.nan,received:t.parsedType}),ye}return{status:"valid",value:a.data}}}wo.create=r=>new wo({typeName:ce.ZodNaN,...Te(r)});const lC=Symbol("zod_brand");class lu extends Ge{_parse(a){const{ctx:e}=this._processInputParams(a),t=e.data;return this._def.type._parse({data:t,path:e.path,parent:e})}unwrap(){return this._def.type}}class Xs extends Ge{_parse(a){const{status:e,ctx:t}=this._processInputParams(a);if(t.common.async)return(async()=>{const s=await this._def.in._parseAsync({data:t.data,path:t.path,parent:t});return s.status==="aborted"?ye:s.status==="dirty"?(e.dirty(),es(s.value)):this._def.out._parseAsync({data:s.value,path:t.path,parent:t})})();{const i=this._def.in._parseSync({data:t.data,path:t.path,parent:t});return i.status==="aborted"?ye:i.status==="dirty"?(e.dirty(),{status:"dirty",value:i.value}):this._def.out._parseSync({data:i.value,path:t.path,parent:t})}}static create(a,e){return new Xs({in:a,out:e,typeName:ce.ZodPipeline})}}class Qs extends Ge{_parse(a){const e=this._def.innerType._parse(a),t=i=>(vn(i)&&(i.value=Object.freeze(i.value)),i);return gs(e)?e.then(i=>t(i)):t(e)}unwrap(){return this._def.innerType}}Qs.create=(r,a)=>new Qs({innerType:r,typeName:ce.ZodReadonly,...Te(a)});function TE(r,a={},e){return r?ts.create().superRefine((t,i)=>{var s,d;if(!r(t)){const o=typeof a=="function"?a(t):typeof a=="string"?{message:a}:a,l=(d=(s=o.fatal)!==null&&s!==void 0?s:e)!==null&&d!==void 0?d:!0,u=typeof o=="string"?{message:o}:o;i.addIssue({code:"custom",...u,fatal:l})}}):ts.create()}const uC={object:It.lazycreate};var ce;(function(r){r.ZodString="ZodString",r.ZodNumber="ZodNumber",r.ZodNaN="ZodNaN",r.ZodBigInt="ZodBigInt",r.ZodBoolean="ZodBoolean",r.ZodDate="ZodDate",r.ZodSymbol="ZodSymbol",r.ZodUndefined="ZodUndefined",r.ZodNull="ZodNull",r.ZodAny="ZodAny",r.ZodUnknown="ZodUnknown",r.ZodNever="ZodNever",r.ZodVoid="ZodVoid",r.ZodArray="ZodArray",r.ZodObject="ZodObject",r.ZodUnion="ZodUnion",r.ZodDiscriminatedUnion="ZodDiscriminatedUnion",r.ZodIntersection="ZodIntersection",r.ZodTuple="ZodTuple",r.ZodRecord="ZodRecord",r.ZodMap="ZodMap",r.ZodSet="ZodSet",r.ZodFunction="ZodFunction",r.ZodLazy="ZodLazy",r.ZodLiteral="ZodLiteral",r.ZodEnum="ZodEnum",r.ZodEffects="ZodEffects",r.ZodNativeEnum="ZodNativeEnum",r.ZodOptional="ZodOptional",r.ZodNullable="ZodNullable",r.ZodDefault="ZodDefault",r.ZodCatch="ZodCatch",r.ZodPromise="ZodPromise",r.ZodBranded="ZodBranded",r.ZodPipeline="ZodPipeline",r.ZodReadonly="ZodReadonly"})(ce||(ce={}));const pC=(r,a={message:`Input not instance of ${r.name}`})=>TE(e=>e instanceof r,a),Co=Bi.create,uu=wr.create,cC=wo.create,fC=Cr.create,pu=xs.create,IE=Tn.create,yC=Ro.create,hC=ks.create,EE=Zs.create,mC=ts.create,Vo=In.create,vC=lr.create,TC=Do.create,IC=_i.create,AE=It.create,EC=It.strictCreate,AC=qs.create,bC=Oo.create,RC=Js.create,DC=Zi.create,bE=Ss.create,OC=Po.create,PC=En.create,wC=rs.create,CC=Ws.create,VC=zs.create,RE=Vr.create,BC=Ys.create,_C=ns.create,DE=Mi.create,MC=qi.create,NC=Br.create,LC=Mi.createWithPreprocess,jC=Xs.create;var v=Object.freeze({__proto__:null,defaultErrorMap:Qn,setErrorMap:Fw,getErrorMap:Eo,makeIssue:Ao,EMPTY_PATH:xw,addIssueToContext:z,ParseStatus:$t,INVALID:ye,DIRTY:es,OK:zt,isAborted:su,isDirty:au,isValid:vn,isAsync:gs,get util(){return ze},get objectUtil(){return nu},ZodParsedType:H,getParsedType:dr,ZodType:Ge,datetimeRegex:mE,ZodString:Bi,ZodNumber:wr,ZodBigInt:Cr,ZodBoolean:xs,ZodDate:Tn,ZodSymbol:Ro,ZodUndefined:ks,ZodNull:Zs,ZodAny:ts,ZodUnknown:In,ZodNever:lr,ZodVoid:Do,ZodArray:_i,ZodObject:It,ZodUnion:qs,ZodDiscriminatedUnion:Oo,ZodIntersection:Js,ZodTuple:Zi,ZodRecord:Ss,ZodMap:Po,ZodSet:En,ZodFunction:rs,ZodLazy:Ws,ZodLiteral:zs,ZodEnum:Vr,ZodNativeEnum:Ys,ZodPromise:ns,ZodEffects:Mi,ZodTransformer:Mi,ZodOptional:qi,ZodNullable:Br,ZodDefault:Hs,ZodCatch:Ks,ZodNaN:wo,BRAND:lC,ZodBranded:lu,ZodPipeline:Xs,ZodReadonly:Qs,custom:TE,Schema:Ge,ZodSchema:Ge,late:uC,get ZodFirstPartyTypeKind(){return ce},coerce:{string:r=>Bi.create({...r,coerce:!0}),number:r=>wr.create({...r,coerce:!0}),boolean:r=>xs.create({...r,coerce:!0}),bigint:r=>Cr.create({...r,coerce:!0}),date:r=>Tn.create({...r,coerce:!0})},any:mC,array:IC,bigint:fC,boolean:pu,date:IE,discriminatedUnion:bC,effect:DE,enum:RE,function:wC,instanceof:pC,intersection:RC,lazy:CC,literal:VC,map:OC,nan:cC,nativeEnum:BC,never:vC,null:EE,nullable:NC,number:uu,object:AE,oboolean:()=>pu().optional(),onumber:()=>uu().optional(),optional:MC,ostring:()=>Co().optional(),pipeline:jC,preprocess:LC,promise:_C,record:bE,set:PC,strictObject:EC,string:Co,symbol:yC,transformer:DE,tuple:DC,undefined:hC,union:AC,unknown:Vo,void:TC,NEVER:ye,ZodIssueCode:Z,quotelessJson:Gw,ZodError:si});function OE(r){var i,s,d;if(!(r!=null&&r.dataType))return Vo();const a=!r.required,e=r.dataType.isList||!1;let t=Vo();if(((i=r.dataType.entity)==null?void 0:i.type)===n.PrimitiveEntity)switch(r.dataType.entity.name){case L.String:t=Co();break;case L.KeyValue:t=bE(Vo());break;case L.Number:t=uu();break;case L.Boolean:t=pu();break;case L.Date:t=IE();break;case L.Enum:{const o=r.dataType.options||[];if(o.length===0)throw new Error(`Enum property ${r.name} has no options`);t=RE(o);break}case L.Null:t=EE();break;case L.UUID:t=Co().uuid();break}else if(((s=r.dataType.entity)==null?void 0:s.type)===n.DefinitionEntity)t=PE(r.dataType.entity);else throw new Error(`Unsupported data type validation: ${(d=r.dataType.entity)==null?void 0:d.type}`);return a&&(t=t.nullable()),e&&(t=t.array()),t}function PE(r){const a=AE({});for(const e of r.properties){const t=OE(e);a.shape[e.name]=t}return a}function wE(r){const a=r.rangeStart;return new Date(a.getTime()+Math.random()*(Date.now()-a.getTime()))}function CE(r){const a=r.rangeEnd;return new Date(Math.random()*a.getTime())}function VE(r){const a=r.rangeStart,e=r.rangeEnd;return new Date(a.getTime()+Math.random()*(e.getTime()-a.getTime()))}function BE(r){return r.rangeStart&&r.rangeEnd?VE(r):r.rangeStart?wE(r):r.rangeEnd?CE(r):new Date}var UC=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function _E(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var ME={},Bo={},_o={};Object.defineProperty(_o,"__esModule",{value:!0}),_o.default=gC;let Mo;const $C=new Uint8Array(16);function gC(){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($C)}var _r={},An={},No={};Object.defineProperty(No,"__esModule",{value:!0}),No.default=void 0;var GC=/^(?:[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;No.default=GC,Object.defineProperty(An,"__esModule",{value:!0}),An.default=void 0;var FC=xC(No);function xC(r){return r&&r.__esModule?r:{default:r}}function kC(r){return typeof r=="string"&&FC.default.test(r)}var ZC=kC;An.default=ZC,Object.defineProperty(_r,"__esModule",{value:!0}),_r.default=void 0,_r.unsafeStringify=NE;var qC=JC(An);function JC(r){return r&&r.__esModule?r:{default:r}}const jt=[];for(let r=0;r<256;++r)jt.push((r+256).toString(16).slice(1));function NE(r,a=0){return jt[r[a+0]]+jt[r[a+1]]+jt[r[a+2]]+jt[r[a+3]]+"-"+jt[r[a+4]]+jt[r[a+5]]+"-"+jt[r[a+6]]+jt[r[a+7]]+"-"+jt[r[a+8]]+jt[r[a+9]]+"-"+jt[r[a+10]]+jt[r[a+11]]+jt[r[a+12]]+jt[r[a+13]]+jt[r[a+14]]+jt[r[a+15]]}function SC(r,a=0){const e=NE(r,a);if(!(0,qC.default)(e))throw TypeError("Stringified UUID is invalid");return e}var WC=SC;_r.default=WC,Object.defineProperty(Bo,"__esModule",{value:!0}),Bo.default=void 0;var zC=HC(_o),YC=_r;function HC(r){return r&&r.__esModule?r:{default:r}}let LE,cu,fu=0,yu=0;function KC(r,a,e){let t=a&&e||0;const i=a||new Array(16);r=r||{};let s=r.node||LE,d=r.clockseq!==void 0?r.clockseq:cu;if(s==null||d==null){const I=r.random||(r.rng||zC.default)();s==null&&(s=LE=[I[0]|1,I[1],I[2],I[3],I[4],I[5]]),d==null&&(d=cu=(I[6]<<8|I[7])&16383)}let o=r.msecs!==void 0?r.msecs:Date.now(),l=r.nsecs!==void 0?r.nsecs:yu+1;const u=o-fu+(l-yu)/1e4;if(u<0&&r.clockseq===void 0&&(d=d+1&16383),(u<0||o>fu)&&r.nsecs===void 0&&(l=0),l>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");fu=o,yu=l,cu=d,o+=122192928e5;const y=((o&268435455)*1e4+l)%4294967296;i[t++]=y>>>24&255,i[t++]=y>>>16&255,i[t++]=y>>>8&255,i[t++]=y&255;const c=o/4294967296*1e4&268435455;i[t++]=c>>>8&255,i[t++]=c&255,i[t++]=c>>>24&15|16,i[t++]=c>>>16&255,i[t++]=d>>>8|128,i[t++]=d&255;for(let I=0;I<6;++I)i[t+I]=s[I];return a||(0,YC.unsafeStringify)(i)}var XC=KC;Bo.default=XC;var Lo={},Mr={},ea={};Object.defineProperty(ea,"__esModule",{value:!0}),ea.default=void 0;var QC=eV(An);function eV(r){return r&&r.__esModule?r:{default:r}}function tV(r){if(!(0,QC.default)(r))throw TypeError("Invalid UUID");let a;const e=new Uint8Array(16);return e[0]=(a=parseInt(r.slice(0,8),16))>>>24,e[1]=a>>>16&255,e[2]=a>>>8&255,e[3]=a&255,e[4]=(a=parseInt(r.slice(9,13),16))>>>8,e[5]=a&255,e[6]=(a=parseInt(r.slice(14,18),16))>>>8,e[7]=a&255,e[8]=(a=parseInt(r.slice(19,23),16))>>>8,e[9]=a&255,e[10]=(a=parseInt(r.slice(24,36),16))/1099511627776&255,e[11]=a/4294967296&255,e[12]=a>>>24&255,e[13]=a>>>16&255,e[14]=a>>>8&255,e[15]=a&255,e}var iV=tV;ea.default=iV,Object.defineProperty(Mr,"__esModule",{value:!0}),Mr.URL=Mr.DNS=void 0,Mr.default=oV;var rV=_r,nV=sV(ea);function sV(r){return r&&r.__esModule?r:{default:r}}function aV(r){r=unescape(encodeURIComponent(r));const a=[];for(let e=0;e<r.length;++e)a.push(r.charCodeAt(e));return a}const jE="6ba7b810-9dad-11d1-80b4-00c04fd430c8";Mr.DNS=jE;const UE="6ba7b811-9dad-11d1-80b4-00c04fd430c8";Mr.URL=UE;function oV(r,a,e){function t(i,s,d,o){var l;if(typeof i=="string"&&(i=aV(i)),typeof s=="string"&&(s=(0,nV.default)(s)),((l=s)===null||l===void 0?void 0:l.length)!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let u=new Uint8Array(16+i.length);if(u.set(s),u.set(i,s.length),u=e(u),u[6]=u[6]&15|a,u[8]=u[8]&63|128,d){o=o||0;for(let y=0;y<16;++y)d[o+y]=u[y];return d}return(0,rV.unsafeStringify)(u)}try{t.name=r}catch{}return t.DNS=jE,t.URL=UE,t}var jo={};Object.defineProperty(jo,"__esModule",{value:!0}),jo.default=void 0;function dV(r){if(typeof r=="string"){const a=unescape(encodeURIComponent(r));r=new Uint8Array(a.length);for(let e=0;e<a.length;++e)r[e]=a.charCodeAt(e)}return lV(uV(pV(r),r.length*8))}function lV(r){const a=[],e=r.length*32,t="0123456789abcdef";for(let i=0;i<e;i+=8){const s=r[i>>5]>>>i%32&255,d=parseInt(t.charAt(s>>>4&15)+t.charAt(s&15),16);a.push(d)}return a}function $E(r){return(r+64>>>9<<4)+14+1}function uV(r,a){r[a>>5]|=128<<a%32,r[$E(a)-1]=a;let e=1732584193,t=-271733879,i=-1732584194,s=271733878;for(let d=0;d<r.length;d+=16){const o=e,l=t,u=i,y=s;e=gt(e,t,i,s,r[d],7,-680876936),s=gt(s,e,t,i,r[d+1],12,-389564586),i=gt(i,s,e,t,r[d+2],17,606105819),t=gt(t,i,s,e,r[d+3],22,-1044525330),e=gt(e,t,i,s,r[d+4],7,-176418897),s=gt(s,e,t,i,r[d+5],12,1200080426),i=gt(i,s,e,t,r[d+6],17,-1473231341),t=gt(t,i,s,e,r[d+7],22,-45705983),e=gt(e,t,i,s,r[d+8],7,1770035416),s=gt(s,e,t,i,r[d+9],12,-1958414417),i=gt(i,s,e,t,r[d+10],17,-42063),t=gt(t,i,s,e,r[d+11],22,-1990404162),e=gt(e,t,i,s,r[d+12],7,1804603682),s=gt(s,e,t,i,r[d+13],12,-40341101),i=gt(i,s,e,t,r[d+14],17,-1502002290),t=gt(t,i,s,e,r[d+15],22,1236535329),e=Gt(e,t,i,s,r[d+1],5,-165796510),s=Gt(s,e,t,i,r[d+6],9,-1069501632),i=Gt(i,s,e,t,r[d+11],14,643717713),t=Gt(t,i,s,e,r[d],20,-373897302),e=Gt(e,t,i,s,r[d+5],5,-701558691),s=Gt(s,e,t,i,r[d+10],9,38016083),i=Gt(i,s,e,t,r[d+15],14,-660478335),t=Gt(t,i,s,e,r[d+4],20,-405537848),e=Gt(e,t,i,s,r[d+9],5,568446438),s=Gt(s,e,t,i,r[d+14],9,-1019803690),i=Gt(i,s,e,t,r[d+3],14,-187363961),t=Gt(t,i,s,e,r[d+8],20,1163531501),e=Gt(e,t,i,s,r[d+13],5,-1444681467),s=Gt(s,e,t,i,r[d+2],9,-51403784),i=Gt(i,s,e,t,r[d+7],14,1735328473),t=Gt(t,i,s,e,r[d+12],20,-1926607734),e=Ft(e,t,i,s,r[d+5],4,-378558),s=Ft(s,e,t,i,r[d+8],11,-2022574463),i=Ft(i,s,e,t,r[d+11],16,1839030562),t=Ft(t,i,s,e,r[d+14],23,-35309556),e=Ft(e,t,i,s,r[d+1],4,-1530992060),s=Ft(s,e,t,i,r[d+4],11,1272893353),i=Ft(i,s,e,t,r[d+7],16,-155497632),t=Ft(t,i,s,e,r[d+10],23,-1094730640),e=Ft(e,t,i,s,r[d+13],4,681279174),s=Ft(s,e,t,i,r[d],11,-358537222),i=Ft(i,s,e,t,r[d+3],16,-722521979),t=Ft(t,i,s,e,r[d+6],23,76029189),e=Ft(e,t,i,s,r[d+9],4,-640364487),s=Ft(s,e,t,i,r[d+12],11,-421815835),i=Ft(i,s,e,t,r[d+15],16,530742520),t=Ft(t,i,s,e,r[d+2],23,-995338651),e=xt(e,t,i,s,r[d],6,-198630844),s=xt(s,e,t,i,r[d+7],10,1126891415),i=xt(i,s,e,t,r[d+14],15,-1416354905),t=xt(t,i,s,e,r[d+5],21,-57434055),e=xt(e,t,i,s,r[d+12],6,1700485571),s=xt(s,e,t,i,r[d+3],10,-1894986606),i=xt(i,s,e,t,r[d+10],15,-1051523),t=xt(t,i,s,e,r[d+1],21,-2054922799),e=xt(e,t,i,s,r[d+8],6,1873313359),s=xt(s,e,t,i,r[d+15],10,-30611744),i=xt(i,s,e,t,r[d+6],15,-1560198380),t=xt(t,i,s,e,r[d+13],21,1309151649),e=xt(e,t,i,s,r[d+4],6,-145523070),s=xt(s,e,t,i,r[d+11],10,-1120210379),i=xt(i,s,e,t,r[d+2],15,718787259),t=xt(t,i,s,e,r[d+9],21,-343485551),e=Nr(e,o),t=Nr(t,l),i=Nr(i,u),s=Nr(s,y)}return[e,t,i,s]}function pV(r){if(r.length===0)return[];const a=r.length*8,e=new Uint32Array($E(a));for(let t=0;t<a;t+=8)e[t>>5]|=(r[t/8]&255)<<t%32;return e}function Nr(r,a){const e=(r&65535)+(a&65535);return(r>>16)+(a>>16)+(e>>16)<<16|e&65535}function cV(r,a){return r<<a|r>>>32-a}function Uo(r,a,e,t,i,s){return Nr(cV(Nr(Nr(a,r),Nr(t,s)),i),e)}function gt(r,a,e,t,i,s,d){return Uo(a&e|~a&t,r,a,i,s,d)}function Gt(r,a,e,t,i,s,d){return Uo(a&t|e&~t,r,a,i,s,d)}function Ft(r,a,e,t,i,s,d){return Uo(a^e^t,r,a,i,s,d)}function xt(r,a,e,t,i,s,d){return Uo(e^(a|~t),r,a,i,s,d)}var fV=dV;jo.default=fV,Object.defineProperty(Lo,"__esModule",{value:!0}),Lo.default=void 0;var yV=gE(Mr),hV=gE(jo);function gE(r){return r&&r.__esModule?r:{default:r}}var mV=(0,yV.default)("v3",48,hV.default);Lo.default=mV;var $o={},go={};Object.defineProperty(go,"__esModule",{value:!0}),go.default=void 0;var vV={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};go.default=vV,Object.defineProperty($o,"__esModule",{value:!0}),$o.default=void 0;var GE=FE(go),TV=FE(_o),IV=_r;function FE(r){return r&&r.__esModule?r:{default:r}}function EV(r,a,e){if(GE.default.randomUUID&&!a&&!r)return GE.default.randomUUID();r=r||{};const t=r.random||(r.rng||TV.default)();if(t[6]=t[6]&15|64,t[8]=t[8]&63|128,a){e=e||0;for(let i=0;i<16;++i)a[e+i]=t[i];return a}return(0,IV.unsafeStringify)(t)}var AV=EV;$o.default=AV;var Go={},Fo={};Object.defineProperty(Fo,"__esModule",{value:!0}),Fo.default=void 0;function bV(r,a,e,t){switch(r){case 0:return a&e^~a&t;case 1:return a^e^t;case 2:return a&e^a&t^e&t;case 3:return a^e^t}}function hu(r,a){return r<<a|r>>>32-a}function RV(r){const a=[1518500249,1859775393,2400959708,3395469782],e=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof r=="string"){const d=unescape(encodeURIComponent(r));r=[];for(let o=0;o<d.length;++o)r.push(d.charCodeAt(o))}else Array.isArray(r)||(r=Array.prototype.slice.call(r));r.push(128);const t=r.length/4+2,i=Math.ceil(t/16),s=new Array(i);for(let d=0;d<i;++d){const o=new Uint32Array(16);for(let l=0;l<16;++l)o[l]=r[d*64+l*4]<<24|r[d*64+l*4+1]<<16|r[d*64+l*4+2]<<8|r[d*64+l*4+3];s[d]=o}s[i-1][14]=(r.length-1)*8/Math.pow(2,32),s[i-1][14]=Math.floor(s[i-1][14]),s[i-1][15]=(r.length-1)*8&4294967295;for(let d=0;d<i;++d){const o=new Uint32Array(80);for(let E=0;E<16;++E)o[E]=s[d][E];for(let E=16;E<80;++E)o[E]=hu(o[E-3]^o[E-8]^o[E-14]^o[E-16],1);let l=e[0],u=e[1],y=e[2],c=e[3],I=e[4];for(let E=0;E<80;++E){const O=Math.floor(E/20),P=hu(l,5)+bV(O,u,y,c)+I+a[O]+o[E]>>>0;I=c,c=y,y=hu(u,30)>>>0,u=l,l=P}e[0]=e[0]+l>>>0,e[1]=e[1]+u>>>0,e[2]=e[2]+y>>>0,e[3]=e[3]+c>>>0,e[4]=e[4]+I>>>0}return[e[0]>>24&255,e[0]>>16&255,e[0]>>8&255,e[0]&255,e[1]>>24&255,e[1]>>16&255,e[1]>>8&255,e[1]&255,e[2]>>24&255,e[2]>>16&255,e[2]>>8&255,e[2]&255,e[3]>>24&255,e[3]>>16&255,e[3]>>8&255,e[3]&255,e[4]>>24&255,e[4]>>16&255,e[4]>>8&255,e[4]&255]}var DV=RV;Fo.default=DV,Object.defineProperty(Go,"__esModule",{value:!0}),Go.default=void 0;var OV=xE(Mr),PV=xE(Fo);function xE(r){return r&&r.__esModule?r:{default:r}}var wV=(0,OV.default)("v5",80,PV.default);Go.default=wV;var xo={};Object.defineProperty(xo,"__esModule",{value:!0}),xo.default=void 0;var CV="00000000-0000-0000-0000-000000000000";xo.default=CV;var ko={};Object.defineProperty(ko,"__esModule",{value:!0}),ko.default=void 0;var VV=BV(An);function BV(r){return r&&r.__esModule?r:{default:r}}function _V(r){if(!(0,VV.default)(r))throw TypeError("Invalid UUID");return parseInt(r.slice(14,15),16)}var MV=_V;ko.default=MV,function(r){Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"NIL",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(r,"parse",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(r,"stringify",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(r,"v1",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(r,"v3",{enumerable:!0,get:function(){return e.default}}),Object.defineProperty(r,"v4",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(r,"v5",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(r,"validate",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(r,"version",{enumerable:!0,get:function(){return d.default}});var a=y(Bo),e=y(Lo),t=y($o),i=y(Go),s=y(xo),d=y(ko),o=y(An),l=y(_r),u=y(ea);function y(c){return c&&c.__esModule?c:{default:c}}}(ME);function mu(r,a){if(!r||!a||!r.length||!a.length)throw new Error("Bad alphabet");this.srcAlphabet=r,this.dstAlphabet=a}mu.prototype.convert=function(r){var a,e,t,i={},s=this.srcAlphabet.length,d=this.dstAlphabet.length,o=r.length,l=typeof r=="string"?"":[];if(!this.isValid(r))throw new Error('Number "'+r+'" contains of non-alphabetic digits ('+this.srcAlphabet+")");if(this.srcAlphabet===this.dstAlphabet)return r;for(a=0;a<o;a++)i[a]=this.srcAlphabet.indexOf(r[a]);do{for(e=0,t=0,a=0;a<o;a++)e=e*s+i[a],e>=d?(i[t++]=parseInt(e/d,10),e=e%d):t>0&&(i[t++]=0);o=t,l=this.dstAlphabet.slice(e,e+1).concat(l)}while(t!==0);return l},mu.prototype.isValid=function(r){for(var a=0;a<r.length;++a)if(this.srcAlphabet.indexOf(r[a])===-1)return!1;return!0};var NV=mu,LV=NV;function ta(r,a){var e=new LV(r,a);return function(t){return e.convert(t)}}ta.BIN="01",ta.OCT="01234567",ta.DEC="0123456789",ta.HEX="0123456789abcdef";var jV=ta;const{v4:vu,validate:UV}=ME,Zo=jV,Tu={cookieBase90:"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!#$%&'()*+-./:<=>?@[]^_`{|}~",flickrBase58:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ",uuid25Base36:"0123456789abcdefghijklmnopqrstuvwxyz"},$V={consistentLength:!0};let Iu;const kE=(r,a,e)=>{const t=a(r.toLowerCase().replace(/-/g,""));return!e||!e.consistentLength?t:t.padStart(e.shortIdLength,e.paddingChar)},ZE=(r,a)=>{const t=a(r).padStart(32,"0").match(/(\w{8})(\w{4})(\w{4})(\w{4})(\w{12})/);return[t[1],t[2],t[3],t[4],t[5]].join("-")},gV=r=>Math.ceil(Math.log(2**128)/Math.log(r));var GV=(()=>{const r=(a,e)=>{const t=a||Tu.flickrBase58,i={...$V,...e};if([...new Set(Array.from(t))].length!==t.length)throw new Error("The provided Alphabet has duplicate characters resulting in unreliable results");const s=gV(t.length),d={shortIdLength:s,consistentLength:i.consistentLength,paddingChar:t[0]},o=Zo(Zo.HEX,t),l=Zo(t,Zo.HEX),u=()=>kE(vu(),o,d),c={alphabet:t,fromUUID:I=>kE(I,o,d),maxLength:s,generate:u,new:u,toUUID:I=>ZE(I,l),uuid:vu,validate:(I,E=!1)=>{if(!I||typeof I!="string")return!1;const O=i.consistentLength?I.length===s:I.length<=s,P=I.split("").every(V=>t.includes(V));return E===!1?O&&P:O&&P&&UV(ZE(I,l))}};return Object.freeze(c),c};return r.constants=Tu,r.uuid=vu,r.generate=()=>(Iu||(Iu=r(Tu.flickrBase58).generate),Iu()),r})();const qo=_E(GV);function qE(){return qo().uuid()}function JE(r){return r.rangeStart+Math.random()}function SE(r){const a=r.rangeEnd;return Math.random()*a}function WE(r){const a=r.rangeStart,e=r.rangeEnd;return Math.random()*(e-a)+a}function zE(r){return r.rangeStart&&r.rangeEnd?WE(r):r.rangeStart?JE(r):r.rangeEnd?SE(r):Math.random()}function YE(r){const a=r.rangeStart;return Math.random().toString(36).substring(a)}function HE(r){const a=r.rangeEnd;return Math.random().toString(36).substring(0,a)}function KE(r){const a=r.rangeStart,e=r.rangeEnd;return Math.random().toString(36).substring(a,e)}function XE(r){return r.rangeStart&&r.rangeEnd?KE(r):r.rangeStart?YE(r):r.rangeEnd?HE(r):Math.random().toString(36)}function QE(r){return Math.random()>=.5}function FV(r){if(!r||!r.autogeneration)return null;switch(r.autogeneration.type){case vt.CurrentDateAndTime:if(r.name===L.Date)return new Date;case vt.Random:{if(r.name===L.Date)return BE(r.autogeneration);if(r.name===L.Number)return zE(r.autogeneration);if(r.name===L.String)return XE(r.autogeneration);if(r.name===L.Boolean)return QE(r.autogeneration)}case vt.Unique:if(r.name===L.UUID)return qE();default:throw new Error(`Generating a ${r.autogeneration.type} value for a ${r.name} is not supported`)}}const fe="e7eb5382-3d99-44fd-972a-b8b1e819f6be",eA="global-user-variable-id",Eu="last-executed-timestamp-variable-id",xV={id:"alternative-relational-database-entity-identifier-property-data-type-ref-id",type:n.GenericReference,entityId:"alternative-relational-database-entity-identifier-property-id",version:"1",entityType:n.ValueDescriptor},kV={id:"alternative-relational-database-entity-identifier-property-ref-id",type:n.GenericReference,entityId:"alternative-relational-database-entity-identifier-property-id",version:"1",entityType:n.Property},ZV={like:!1,inferred:!1,id:"alternative-relational-database-entity-identifier-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ae,asType:!1,parent:kV},Jo={id:"alternative-relational-database-entity-ref-id",type:n.GenericReference,entityId:"alternative-relational-database-entity-id",version:"1",entityType:n.DefinitionEntity},qV={constant:!1,hidden:!1,required:!0,id:"alternative-relational-database-entity-identifier-property-id",name:"Identifier name",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,implements:co,static:!0,index:0,defaultValue:{id:"alternative-relational-database-entity-identifier-property-data-type-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.String,value:null,parent:xV,autogeneration:{type:vt.Unique,rangeStart:null,rangeEnd:null},valueAsTypeList:null,valueAsTypeSingle:null},dataType:ZV,description:"The name of the main database inside of the server instance where the data will be stored.",parent:Jo};n.GenericReference,n.ValueDescriptor;const JV={id:"alternative-relational-database-entity-username-property-ref-id",type:n.GenericReference,entityId:"alternative-relational-database-entity-username-property-id",version:"1",entityType:n.Property},SV={like:!1,inferred:!1,id:"alternative-relational-database-entity-username-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ae,asType:!1,parent:JV},WV={constant:!1,hidden:!1,required:!0,id:"alternative-relational-database-entity-username-property-id",name:"Username",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,implements:fo,static:!0,index:1,defaultValue:null,dataType:SV,description:"The username that will be used to connect to the database.",parent:Jo};n.GenericReference,n.ValueDescriptor;const zV={id:"alternative-relational-database-entity-password-property-ref-id",type:n.GenericReference,entityId:"alternative-relational-database-entity-password-property-id",version:"1",entityType:n.Property},YV={like:!1,inferred:!1,id:"alternative-relational-database-entity-password-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ae,asType:!1,parent:zV},HV={constant:!1,hidden:!1,required:!0,id:"alternative-relational-database-entity-password-property-id",name:"Password",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,implements:yo,static:!0,index:2,defaultValue:null,dataType:YV,description:"The password that will be used to connect to the database.",parent:Jo},KV={id:"alternative-relational-database-entity-min-size-property-data-type-ref-id",type:n.GenericReference,entityId:"alternative-relational-database-entity-min-size-property-id",version:"1",entityType:n.ValueDescriptor},XV={id:"alternative-relational-database-entity-min-size-property-ref-id",type:n.GenericReference,entityId:"alternative-relational-database-entity-min-size-property-id",version:"1",entityType:n.Property},QV={like:!1,inferred:!1,id:"alternative-relational-database-entity-min-size-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ve,asType:!1,parent:XV},eB={constant:!1,hidden:!1,required:!0,id:"alternative-relational-database-entity-min-size-property-id",name:"Minimum GB size",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,implements:ho,static:!0,index:3,defaultValue:{id:"alternative-relational-database-entity-min-size-property-data-type-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.Number,value:6,parent:KV,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},dataType:QV,description:"The minimum size of the database in GB.",parent:Jo},tB={id:"alternative-relational-database-entity-parent-ref-id",type:n.GenericReference,entityId:fe,version:"1",entityType:n.Project},Au={id:"alternative-relational-database-entity-id",type:n.DefinitionEntity,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Alternative relational Database",description:"A database that permanently stores the persisted entities attached to it.",abstract:!1,static:!0,properties:[qV,WV,HV,eB],methods:[],abstractMethods:[],extends:[],implements:[Dt],x:0,y:0,parent:tB},iB={id:"animal-prototype-database-property-ref-id",type:n.GenericReference,entityId:"animal-prototype-database-property-id",version:"1",entityType:n.Property},rB={id:"animal-prototype-database-property-data-type-default-value-parent-ref-id",type:n.GenericReference,entityId:"animal-prototype-database-property-id",version:"1",entityType:n.Property},nB={like:!1,inferred:!1,id:"animal-prototype-database-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:Dt,asType:!1,parent:iB},sB={id:"animal-prototype-database-property-parent-ref-id",type:n.GenericReference,entityId:"83eaa847-e62b-4192-84fb-3d8d6f5ea970",version:"1",entityType:n.DefinitionEntity},aB={constant:!1,hidden:!1,required:!0,id:"animal-prototype-database-property-id",name:"Database",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,implements:Yn,static:!0,index:0,defaultValue:{id:"animal-prototype-database-property-data-type-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:null,name:L.EntityTemplate,valueAsTypeList:null,valueAsTypeSingle:Au,autogeneration:null,parent:rB},dataType:nB,description:"The database that the entity belongs to.",parent:sB},oB={type:n.GenericReference,id:"291e4d4f-01d8-40a0-90dc-5f1ac6636e9b",version:"1",entityType:n.Property,entityId:"5cb617b0-92be-4dbe-a007-49093368d94f"},dB={like:!1,inferred:!1,id:"c1930577-9e79-48a6-8905-be24611015c1",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ae,asType:!1,isList:!1,parent:oB},lB={type:n.GenericReference,id:"animal-name-property-parent-ref-id",version:"1",entityType:n.DefinitionEntity,entityId:"83eaa847-e62b-4192-84fb-3d8d6f5ea970"},uB={type:n.GenericReference,id:"animal-name-default-value-parent-ref-id",version:"1",entityType:n.Property,entityId:"5cb617b0-92be-4dbe-a007-49093368d94f"},pB={type:n.LiteralValue,id:"animal-name-default-value-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:"Animal",name:L.String,valueAsTypeSingle:null,valueAsTypeList:null,autogeneration:null,parent:uB},cB={constant:!1,hidden:!1,required:!0,type:n.Property,id:"5cb617b0-92be-4dbe-a007-49093368d94f",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Name",description:"The name of the animal",defaultValue:pB,implements:Hn,static:!1,private:!1,index:0,dataType:dB,abstract:!1,parent:lB},fB={type:n.GenericReference,id:"abc565de-4c83-4936-bc48-4013bef213b8",version:"1",entityType:n.Project,entityId:fe},yB={type:n.DefinitionEntity,id:"83eaa847-e62b-4192-84fb-3d8d6f5ea970",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Animal",description:"A living creature that is not human",abstract:!1,static:!1,abstractMethods:[],properties:[aB,cB],methods:[],extends:[],implements:[_t],x:0,y:0,parent:fB},ia="base-table-entity",tA="base-table-entity-identifier-property-id";n.GenericReference,n.Property,n.GenericReference,n.Property;const hB={id:"base-table-entity-identifier-property-data-type-ref-id",type:n.GenericReference,entityId:tA,version:"1",entityType:n.Property},mB={id:"base-table-entity-identifier-property-ref-id",type:n.GenericReference,entityId:"base-table-entity-identifier-property-id",version:"1",entityType:n.Property},vB={like:!1,inferred:!1,id:"base-table-entity-identifier-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:sr,asType:!1,parent:mB},TB={id:"base-table-entity-identifier-property-parent-ref-id",type:n.GenericReference,entityId:ia,version:"1",entityType:n.DefinitionEntity};n.Property,n.LiteralValue,L.UUID,vt.Unique,n.GenericReference,n.Property;const IB={id:"base-table-entity-deleted-at-property-ref-id",type:n.GenericReference,entityId:"base-table-entity-deleted-at-property-id",version:"1",entityType:n.Property},EB={like:!1,inferred:!1,id:"base-table-entity-deleted-at-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:Gi,asType:!1,parent:IB},AB={id:"base-table-entity-deleted-at-property-parent-ref-id",type:n.GenericReference,entityId:ia,version:"1",entityType:n.DefinitionEntity},bB={constant:!1,hidden:!0,required:!0,id:"base-table-entity-deleted-at-property-id",name:"Deleted at",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!0,implements:null,static:!1,index:0,defaultValue:null,dataType:EB,description:"The date and time when the entity was deleted.",parent:AB};n.GenericReference,n.Property;const RB={id:"base-table-entity-created-at-property-ref-id",type:n.GenericReference,entityId:"base-table-entity-created-at-property-id",version:"1",entityType:n.Property},DB={like:!1,inferred:!1,id:"base-table-entity-created-at-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:Gi,asType:!1,parent:RB},OB={id:"base-table-entity-created-at-property-parent-ref-id",type:n.GenericReference,entityId:ia,version:"1",entityType:n.DefinitionEntity},PB={constant:!1,hidden:!0,required:!0,id:"base-table-entity-created-at-property-id",name:"Created at",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!0,implements:null,static:!1,index:0,defaultValue:null,dataType:DB,description:"The date and time when the entity was created.",parent:OB};n.GenericReference,n.Property;const wB={id:"base-table-entity-updated-at-property-ref-id",type:n.GenericReference,entityId:"base-table-entity-updated-at-property-id",version:"1",entityType:n.Property},CB={like:!1,inferred:!1,id:"base-table-entity-updated-at-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:Gi,asType:!1,parent:wB},VB={id:"base-table-entity-updated-at-property-parent-ref-id",type:n.GenericReference,entityId:ia,version:"1",entityType:n.DefinitionEntity},BB={constant:!1,hidden:!0,required:!0,id:"base-table-entity-updated-at-property-id",name:"Updated at",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,implements:null,abstract:!0,static:!1,index:0,defaultValue:null,dataType:CB,description:"The date and time when the entity was last updated.",parent:VB},_B={id:"base-table-entity-parent-ref-id",type:n.GenericReference,entityId:fe,version:"1",entityType:n.Project},mi={id:ia,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:"An entity that is permanently stored in the database and can be accessed at any point.",name:"Base database table format",type:n.DefinitionEntity,abstract:!0,static:!1,abstractMethods:[],implements:[],properties:[bB,PB,BB],methods:[],extends:[],x:0,y:0,parent:_B},MB={id:"default-relational-database-entity-identifier-property-data-type-ref-id",type:n.GenericReference,entityId:"default-relational-database-entity-identifier-property-id",version:"1",entityType:n.Property},NB={id:"default-relational-database-entity-identifier-property-ref-id",type:n.GenericReference,entityId:"default-relational-database-entity-identifier-property-id",version:"1",entityType:n.Property},LB={like:!1,inferred:!1,id:"default-relational-database-entity-identifier-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ae,asType:!1,parent:NB},ss={id:"default-relational-database-entity-ref-id",type:n.GenericReference,entityId:"default-relational-database-entity-id",version:"1",entityType:n.DefinitionEntity},jB={constant:!1,id:"default-relational-database-entity-identifier-property-id",hidden:!1,required:!0,name:"Identifier name",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,implements:co,static:!0,index:0,defaultValue:{id:"default-relational-database-entity-identifier-property-data-type-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.String,value:"main",parent:MB,autogeneration:{type:vt.Unique,rangeStart:null,rangeEnd:null},valueAsTypeList:null,valueAsTypeSingle:null},dataType:LB,description:"The name of the main database inside of the server instance where the data will be stored.",parent:ss};n.GenericReference,n.Property;const UB={id:"default-relational-database-entity-username-property-ref-id",type:n.GenericReference,entityId:"default-relational-database-entity-username-property-id",version:"1",entityType:n.Property},$B={id:"default-relational-database-entity-username-property-default-value-parent-ref-id",type:n.GenericReference,entityId:"default-relational-database-entity-username-property-id",version:"1",entityType:n.Property},gB={like:!1,inferred:!1,id:"default-relational-database-entity-username-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ae,asType:!1,parent:UB},GB={constant:!1,hidden:!1,required:!0,id:"default-relational-database-entity-username-property-id",name:"Username",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,implements:fo,defaultValue:{id:"default-relational-database-entity-username-property-data-type-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.String,value:"root",parent:$B,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},static:!0,index:1,dataType:gB,description:"The username that will be used to connect to the database.",parent:ss};n.GenericReference,n.Property;const FB={id:"default-relational-database-entity-password-property-ref-id",type:n.GenericReference,entityId:"default-relational-database-entity-password-property-id",version:"1",entityType:n.Property},xB={id:"default-relational-database-entity-password-property-default-value-parent-ref-id",type:n.GenericReference,entityId:"default-relational-database-entity-password-property-id",version:"1",entityType:n.Property},kB={like:!1,inferred:!1,id:"default-relational-database-entity-password-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ae,asType:!1,parent:FB},ZB={constant:!1,hidden:!1,required:!0,id:"default-relational-database-entity-password-property-id",name:"Password",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,implements:yo,static:!0,index:2,defaultValue:{id:"default-relational-database-entity-password-property-data-type-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.String,value:"password",parent:xB,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},dataType:kB,description:"The password that will be used to connect to the database.",parent:ss},qB={id:"default-relational-database-entity-min-size-property-data-type-ref-id",type:n.GenericReference,entityId:"default-relational-database-entity-min-size-property-id",version:"1",entityType:n.Property},JB={id:"default-relational-database-entity-min-size-property-ref-id",type:n.GenericReference,entityId:"default-relational-database-entity-min-size-property-id",version:"1",entityType:n.Property},SB={like:!1,inferred:!1,id:"default-relational-database-entity-min-size-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ve,asType:!1,parent:JB},WB={constant:!1,hidden:!1,required:!0,id:"default-relational-database-entity-min-size-property-id",name:"Minimum GB size",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,implements:ho,static:!0,index:3,defaultValue:{id:"default-relational-database-entity-min-size-property-data-type-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.Number,value:6,parent:qB,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},dataType:SB,description:"The minimum size of the database in GB.",parent:ss},zB={id:"default-relational-database-entity-default-property-data-type-ref-id",type:n.GenericReference,entityId:"default-relational-database-entity-default-property-id",version:"1",entityType:n.Property},YB={id:"default-relational-database-entity-default-property-ref-id",type:n.GenericReference,entityId:"default-relational-database-entity-default-property-id",version:"1",entityType:n.Property},HB={like:!1,inferred:!1,id:"default-relational-database-entity-default-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ve,asType:!1,parent:YB},KB={constant:!0,id:"default-relational-database-entity-default-property-id",hidden:!0,required:!0,name:"Default",description:"Whether this database is automatically picked by other entities as the default database.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,implements:Xl,static:!0,index:4,dataType:HB,defaultValue:{id:"default-relational-database-entity-default-property-data-type-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.Boolean,value:!0,parent:zB,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},parent:ss},XB={id:"default-relational-database-entity-autoscaling-property-data-type-ref-id",type:n.GenericReference,entityId:"default-relational-database-entity-autoscaling-property-id",version:"1",entityType:n.Property},QB={id:"default-relational-database-entity-autoscaling-property-ref-id",type:n.GenericReference,entityId:"default-relational-database-entity-autoscaling-property-id",version:"1",entityType:n.Property},e_={like:!1,inferred:!1,id:"default-relational-database-entity-autoscaling-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ve,asType:!1,parent:QB},t_={constant:!1,id:"default-relational-database-entity-autoscaling-property-id",hidden:!1,required:!0,name:"Auto-scaling",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,implements:Ql,static:!0,index:5,defaultValue:{id:"default-relational-database-entity-autoscaling-property-data-type-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.Boolean,value:!0,parent:XB,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},dataType:e_,description:"If true, this database will automatically scale up or down in memory size, based on the usage.s",parent:ss},i_={id:"default-relational-database-entity-parent-ref-id",type:n.GenericReference,entityId:fe,version:"1",entityType:n.Project},bu={id:"default-relational-database-entity-id",type:n.DefinitionEntity,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Relational Database",description:"A database that permanently stores the persisted entities attached to it.",abstract:!1,static:!0,properties:[KB,t_,jB,GB,ZB,WB],methods:[],abstractMethods:[],extends:[],implements:[Dt],x:0,y:0,parent:i_},r_={id:"user-prototype-database-property-data-type-ref-id",type:n.GenericReference,entityId:"user-prototype-database-property-id",version:"1",entityType:n.Property},n_={id:"user-prototype-database-property-ref-id",type:n.GenericReference,entityId:"user-prototype-database-property-id",version:"1",entityType:n.Property},s_={like:!1,inferred:!1,id:"user-prototype-database-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:Dt,asType:!1,parent:n_},a_={id:"user-prototype-database-property-parent-ref-id",type:n.GenericReference,entityId:"de67fc84-3719-46fd-9ab4-3fca3a3cc50d",version:"1",entityType:n.DefinitionEntity},o_={constant:!1,hidden:!1,required:!0,id:"user-prototype-database-property-id",name:"Database",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,implements:Yn,static:!0,index:0,defaultValue:{id:"user-prototype-database-property-data-type-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:null,name:L.EntityTemplate,valueAsTypeList:null,valueAsTypeSingle:bu,autogeneration:null,parent:r_},dataType:s_,description:"The database that the entity belongs to.",parent:a_},d_={type:n.GenericReference,id:"user-prototype-parent-ref-id",version:"1",entityType:n.Project,entityId:fe},l_={id:"user-prototype-primary-key-property-data-type-ref-id",type:n.GenericReference,entityId:"user-prototype-primary-key-property-id",version:"1",entityType:n.Property},u_={id:"user-prototype-primary-key-property-ref-id",type:n.GenericReference,entityId:"user-prototype-primary-key-property-id",version:"1",entityType:n.Property},p_={like:!1,inferred:!1,id:"user-prototype-primary-key-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:sr,asType:!1,parent:u_},c_={id:"user-prototype-primary-key-property-parent-ref-id",type:n.GenericReference,entityId:"de67fc84-3719-46fd-9ab4-3fca3a3cc50d",version:"1",entityType:n.DefinitionEntity},f_={constant:!1,hidden:!1,required:!0,id:"user-prototype-primary-key-property-id",name:"Identifier",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,implements:Hn,static:!1,index:1,defaultValue:{id:"user-prototype-primary-key-property-data-type-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.UUID,value:null,parent:l_,autogeneration:{type:vt.Unique,rangeStart:null,rangeEnd:null},valueAsTypeList:null,valueAsTypeSingle:null},dataType:p_,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:c_},Ru={type:n.DefinitionEntity,id:"de67fc84-3719-46fd-9ab4-3fca3a3cc50d",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"User",description:"A user of the application",implements:[_t,mi],abstract:!1,static:!1,abstractMethods:[],extends:[],properties:[o_,f_],methods:[],x:0,y:0,parent:d_},y_={type:n.GenericReference,id:"person-date-of-birth-property-data-type-parent-ref-id",version:"1",entityType:n.Property,entityId:"person-date-of-birth-property-id"},h_={like:!1,inferred:!1,id:"person-date-of-birth-property-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Gi,isList:!1,asType:!1,parent:y_},m_={type:n.GenericReference,id:"person-date-of-birth-property-parent-ref-id",version:"1",entityType:n.DefinitionEntity,entityId:"c9bc312a-10d3-48a7-9ab4-ea483a9e2416"},v_={constant:!1,hidden:!1,required:!0,type:n.Property,id:"person-date-of-birth-property-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Date of birth",description:"The date of birth of the person",implements:null,private:!1,static:!1,index:0,defaultValue:null,dataType:h_,abstract:!1,parent:m_},T_={type:n.GenericReference,id:"a2867827-2f8e-4c25-b18b-d91857d7f24e",version:"1",entityType:n.Property,entityId:"cacfec92-46c3-4fca-a1d9-fd1ba94d78c7"},I_={like:!1,inferred:!1,id:"1d49f41b-17b9-4f48-87aa-3ce43498e5a9",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ae,isList:!1,asType:!1,parent:T_},E_={type:n.GenericReference,id:"01cbe760-40a9-4f49-8e3d-194d2f57cb1e",version:"1",entityType:n.DefinitionEntity,entityId:"c9bc312a-10d3-48a7-9ab4-ea483a9e2416"},A_={constant:!1,hidden:!1,required:!0,type:n.Property,id:"cacfec92-46c3-4fca-a1d9-fd1ba94d78c7",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Name",description:"The name of the person",implements:null,private:!1,static:!1,index:0,defaultValue:null,dataType:I_,abstract:!1,parent:E_},b_={type:n.GenericReference,id:"3542b22a-3a2f-41c6-876e-24c885572498",version:"1",entityType:n.Project,entityId:fe},Yt={type:n.DefinitionEntity,id:"c9bc312a-10d3-48a7-9ab4-ea483a9e2416",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Person",description:"A entity to store more information about a person than the user entity does, to split the responsibilities and keep it the logic clean.",properties:[A_,v_],abstract:!1,static:!1,abstractMethods:[],methods:[],implements:[],extends:[Ru],x:0,y:0,parent:b_},R_={type:n.GenericReference,id:"b59c80b7-b2e9-41e9-abcd-7c5652835efc",version:"1",entityType:n.FunctionDeclaration,entityId:"36f29f96-c001-4b9a-b49c-83eff406a060"},D_={type:n.GenericReference,id:"1190b5a2-f25e-46db-884d-8a3dd1a44d94",version:"1",entityType:n.ReturnStatement,entityId:"3ebc4342-c9e8-42e7-a61c-7937081e1d2e"},O_={type:n.GenericReference,id:"36c63126-7814-496f-a6cc-48662c2aabae",version:"1",entityType:n.ArgumentDeclaration,entityId:"500dee3a-3435-4453-9699-0d053f646523"},P_={type:n.GenericReference,id:"c567e55d-ec12-4e4e-958e-f07522892b4b",version:"1",entityType:n.ReturnDeclaration,entityId:"9e070523-7e07-4100-8637-960a187f5f14"},w_={like:!1,inferred:!1,id:"3973c5a1-f0d8-49a0-a9a9-a0009bf3f0d8",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Yt,isList:!1,asType:!1,parent:P_},Du={constant:!0,isError:!1,id:"9e070523-7e07-4100-8637-960a187f5f14",type:n.ReturnDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Output Account Owner",description:null,defaultValue:null,dataType:w_,implements:null,readsValue:O_,required:!0,index:0,parent:D_},C_={type:n.GenericReference,id:"567d923c-20da-4c1e-956d-962ea30c6d0b",version:"1",entityType:n.FunctionDeclaration,entityId:"36f29f96-c001-4b9a-b49c-83eff406a060"},V_={type:n.GenericReference,id:"da85e620-59f3-42ab-88c8-b38d33c2c833",version:"1",entityType:n.FunctionDeclaration,entityId:"36f29f96-c001-4b9a-b49c-83eff406a060"},B_={type:n.ReturnStatement,id:"3ebc4342-c9e8-42e7-a61c-7937081e1d2e",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[Du],calledByError:[],calledByEntry:[C_],calledBySuccess:[],throws:null,x:0,y:0,parent:V_},__={type:n.GenericReference,id:"1c806bb7-4c25-4bad-963b-93dfbb7c8304",version:"1",entityType:n.ArgumentDeclaration,entityId:"500dee3a-3435-4453-9699-0d053f646523"},M_={like:!1,inferred:!1,id:"d90fcc18-642b-433c-8fcb-4094b9031cd5",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Yt,isList:!1,asType:!1,parent:__},iA={constant:!0,id:"500dee3a-3435-4453-9699-0d053f646523",type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"New Account Owner",description:null,defaultValue:null,dataType:M_,implements:null,required:!0,writesValues:[Du],index:0,parent:R_},N_={type:n.GenericReference,id:"83dceb60-f3c4-4085-824c-85f2003bfd27",version:"1",entityType:n.DefinitionEntity,entityId:"506946aa-30da-48e6-918f-ffd9eac58813"},rA={type:n.FunctionDeclaration,id:"36f29f96-c001-4b9a-b49c-83eff406a060",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Change owner of bank account",description:null,implements:null,inputs:[iA],calls:[B_],index:0,collapsed:!1,private:!1,x:0,y:0,parent:N_},L_={type:n.GenericReference,id:"adbaf302-ffa9-49b6-a3c6-83f9a75068e3",version:"1",entityType:n.VariableDeclaration,entityId:"8e36a476-766e-4cc2-a8a7-27a07dfb5a4b"},j_={like:!1,inferred:!1,id:"79ee04aa-1ba4-4ae9-a406-ed45e5b03f7f",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Yt,asType:!1,isList:!1,parent:L_},U_={type:n.GenericReference,id:"55e212d1-f0ec-4bb6-acbe-60f741367daf",version:"1",entityType:n.OutputMap,entityId:"dc9ddb8f-02a0-4a43-aea6-270ec7b7f8a4"},$_={type:n.GenericReference,id:"944e1171-3d9b-4559-9386-1d4974b15962",version:"1",entityType:n.FunctionDeclaration,entityId:"15ee556d-681f-47de-a31f-16d4ba73cc4e"},g_={constant:!0,required:!0,id:"8e36a476-766e-4cc2-a8a7-27a07dfb5a4b",type:n.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Output Account Owner",description:null,defaultValue:null,dataType:j_,readsValue:U_,writesValues:[],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:$_},G_={type:n.GenericReference,id:"b89ebc83-52cf-4447-a5ae-62241f713079",version:"1",entityType:n.FunctionCall,entityId:"78f6dba8-bed8-44cd-8b0f-6dcc787d1e1e"},F_={id:"dc9ddb8f-02a0-4a43-aea6-270ec7b7f8a4",type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Du,defaultValue:null,writesValues:[g_],index:0,parent:G_},x_={type:n.GenericReference,id:"c1b9e125-1aad-48b7-9687-95c57a6bc10d",version:"1",entityType:n.FunctionDeclaration,entityId:"15ee556d-681f-47de-a31f-16d4ba73cc4e"},k_={type:n.GenericReference,id:"d2deaa02-e164-4425-905c-6dee47eb4eac",version:"1",entityType:n.FunctionDeclaration,entityId:"15ee556d-681f-47de-a31f-16d4ba73cc4e"},Z_={type:n.GenericReference,id:"1109a655-ac62-4110-a933-42a72106f4f0",version:"1",entityType:n.VariableDeclaration,entityId:"8bea6986-8da2-487b-905d-2fb962db6728"},q_={like:!1,inferred:!1,id:"7d9a1307-512e-42ec-9797-2f7229796b97",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Yt,asType:!1,isList:!1,parent:Z_},J_={type:n.GenericReference,id:"bb61ebf7-57b3-4d14-905d-82ec907205b5",version:"1",entityType:n.ArgumentDeclaration,entityId:"38f6b236-98ac-47b0-ab9c-d2f9610137b9"},S_={type:n.GenericReference,id:"6b8c7bf2-9fc8-4ea4-9ec0-f41679d513b1",version:"1",entityType:n.FunctionDeclaration,entityId:"15ee556d-681f-47de-a31f-16d4ba73cc4e"},W_={type:n.GenericReference,id:"6163d1a1-7a94-49b1-95bb-aecd8d6d335c",version:"1",entityType:n.FunctionCall,entityId:"78f6dba8-bed8-44cd-8b0f-6dcc787d1e1e"},z_={type:n.GenericReference,id:"1f900f62-4bd2-4246-94aa-b8f5aad384fd",version:"1",entityType:n.VariableDeclaration,entityId:"8bea6986-8da2-487b-905d-2fb962db6728"},nA={id:"be8538be-e6f9-4b94-9314-a546003ebaa0",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:iA,name:null,description:null,readsValue:z_,defaultValue:null,index:0,parent:W_},Y_={constant:!0,required:!0,type:n.VariableDeclaration,id:"8bea6986-8da2-487b-905d-2fb962db6728",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Changed Account Owner",description:null,defaultValue:null,dataType:q_,readsValue:J_,writesValues:[nA],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:S_},H_={type:n.FunctionCall,id:"78f6dba8-bed8-44cd-8b0f-6dcc787d1e1e",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:rA,inputs:[nA],outputs:[F_],process:null,successCalls:[],errorCalls:[],calledByError:[],calledByEntry:[x_],calledBySuccess:[],parent:k_,error:null,x:0,y:0},K_={type:n.GenericReference,id:"2d47aba1-a918-46a7-8db7-78809928654a",version:"1",entityType:n.ArgumentDeclaration,entityId:"38f6b236-98ac-47b0-ab9c-d2f9610137b9"},X_={like:!1,inferred:!1,id:"5583766c-e9a5-484c-8f43-f4b0a6a1876c",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Yt,asType:!1,isList:!1,parent:K_},Q_={type:n.GenericReference,id:"3e2a81e4-55b2-49f5-94eb-39135e95c3d7",version:"1",entityType:n.FunctionDeclaration,entityId:"15ee556d-681f-47de-a31f-16d4ba73cc4e"},eM={constant:!0,id:"38f6b236-98ac-47b0-ab9c-d2f9610137b9",type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:null,name:"New Company Owner",defaultValue:null,dataType:X_,implements:null,required:!0,index:0,writesValues:[Y_],parent:Q_},tM={type:n.GenericReference,id:"30291b01-1b94-4d03-b434-dec122c2bc7d",version:"1",entityType:n.DefinitionEntity,entityId:"506946aa-30da-48e6-918f-ffd9eac58813"},iM={type:n.FunctionDeclaration,id:"15ee556d-681f-47de-a31f-16d4ba73cc4e",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:null,name:"Change Account Owner",inputs:[eM],collapsed:!0,calls:[H_],private:!1,index:0,implements:null,x:0,y:0,parent:tM},rM={type:n.GenericReference,id:"72c7ac0a-886e-4e10-b7ed-2f5a819a0233",version:"1",entityType:n.Property,entityId:"b8f4656a-2b77-43ab-af51-7c32ddede044"},nM={like:!1,inferred:!1,id:"c09dd282-73f6-4077-a467-b66db20b9fc6",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ae,isList:!1,asType:!1,parent:rM},sM={type:n.GenericReference,id:"8a950024-512c-4580-81db-a705410aeb99",version:"1",entityType:n.DefinitionEntity,entityId:"506946aa-30da-48e6-918f-ffd9eac58813"},aM={constant:!1,hidden:!1,required:!0,type:n.Property,id:"b8f4656a-2b77-43ab-af51-7c32ddede044",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Account number",description:null,private:!0,defaultValue:null,implements:Hn,static:!1,index:0,dataType:nM,abstract:!1,parent:sM},oM={type:n.GenericReference,id:"b6704b6c-c3bd-49d0-8ebc-82d03e726cbb",version:"1",entityType:n.Property,entityId:"733d06a6-b8c5-44f3-a1f7-a8c9bd9e44ea"},dM={like:!1,inferred:!1,id:"c03e0b0a-88ab-401a-8833-4806738bdc37",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Yt,isList:!1,asType:!1,parent:oM},lM={type:n.GenericReference,id:"1ef999a7-e9ed-406a-866e-e58277fc985b",version:"1",entityType:n.DefinitionEntity,entityId:"506946aa-30da-48e6-918f-ffd9eac58813"},uM={constant:!1,hidden:!1,required:!0,type:n.Property,id:"733d06a6-b8c5-44f3-a1f7-a8c9bd9e44ea",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:null,name:"Account Owner",index:1,defaultValue:null,dataType:dM,implements:null,static:!1,private:!0,abstract:!1,parent:lM},pM={type:n.GenericReference,id:"d41d7f41-98b8-4f67-be92-c349fdda5156",version:"1",entityType:n.Project,entityId:fe},as={type:n.DefinitionEntity,id:"506946aa-30da-48e6-918f-ffd9eac58813",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Bank Account",description:null,abstract:!1,static:!1,abstractMethods:[],properties:[aM,uM],methods:[rA,iM],extends:[],implements:[_t,mi],x:0,y:0,parent:pM},ra="bitcoin-api-response-id",sA="time-property-id",aA="disclaimer-property-id",oA="chart-name-property-id",dA="bpi-property-id",So="bpi-entity-id",lA="usd-property-id",uA="gbp-property-id",pA="eur-property-id",os="currency-entity-id",cA="currency-code-property-id",fA="currency-symbol-property-id",yA="currency-rate-property-id",hA="currency-description-property-id",mA="currency-rate-number-property-id",cM={type:n.GenericReference,id:"code-property-data-type-parent-ref-id",version:"1",entityType:n.Property,entityId:cA},fM={like:!1,inferred:!1,id:"code-property-data-type-id",type:n.DataType,parentRelationType:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:nr,isList:!1,asType:!1,options:["USD","GBP","EUR"],parent:cM},yM={type:n.GenericReference,id:"code-property-parent-ref-id",version:"1",entityType:n.DefinitionEntity,entityId:os},hM={constant:!1,hidden:!1,required:!0,type:n.Property,id:cA,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"code",description:null,defaultValue:null,dataType:fM,index:0,implements:null,static:!1,private:!1,abstract:!1,parent:yM},mM={type:n.GenericReference,id:"symbol-property-data-type-parent-ref-id",version:"1",entityType:n.Property,entityId:fA},vM={like:!1,inferred:!1,id:"symbol-property-data-type-id",type:n.DataType,parentRelationType:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:nr,isList:!1,asType:!1,options:["$","£","€"],parent:mM},TM={type:n.GenericReference,id:"symbol-property-parent-ref-id",version:"1",entityType:n.DefinitionEntity,entityId:os},IM={constant:!1,hidden:!1,required:!0,type:n.Property,id:fA,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"symbol",description:null,index:0,defaultValue:null,dataType:vM,implements:null,static:!1,private:!1,abstract:!1,parent:TM},EM={type:n.GenericReference,id:"rate-property-data-type-parent-ref-id",version:"1",entityType:n.Property,entityId:yA},AM={like:!1,inferred:!1,id:"rate-property-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ae,isList:!1,asType:!1,parent:EM},bM={type:n.GenericReference,id:"rate-property-parent-ref-id",version:"1",entityType:n.DefinitionEntity,entityId:os},RM={constant:!1,hidden:!1,required:!0,type:n.Property,id:yA,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"rate",description:null,index:0,defaultValue:null,dataType:AM,implements:null,static:!1,private:!1,abstract:!1,parent:bM},DM={type:n.GenericReference,id:"description-property-data-type-parent-ref-id",version:"1",entityType:n.Property,entityId:hA},OM={like:!1,inferred:!1,id:"description-property-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ae,isList:!1,asType:!1,parent:DM},PM={type:n.GenericReference,id:"description-property-parent-ref-id",version:"1",entityType:n.DefinitionEntity,entityId:os},wM={constant:!1,hidden:!1,required:!0,type:n.Property,id:hA,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"description",description:null,defaultValue:null,dataType:OM,implements:null,static:!1,index:0,private:!1,abstract:!1,parent:PM},CM={type:n.GenericReference,id:"rate-number-property-data-type-parent-ref-id",version:"1",entityType:n.Property,entityId:mA},VM={like:!1,inferred:!1,id:"rate-number-property-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,isList:!1,asType:!1,parent:CM},BM={type:n.GenericReference,id:"rate-number-property-parent-ref-id",version:"1",entityType:n.DefinitionEntity,entityId:os},_M={constant:!1,hidden:!1,required:!0,type:n.Property,id:mA,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"rate_float",description:null,defaultValue:null,dataType:VM,implements:null,static:!1,index:0,private:!1,abstract:!1,parent:BM},MM={type:n.GenericReference,id:"currency-prototype-parent-ref-id",version:"1",entityType:n.Project,entityId:fe},Wo={type:n.DefinitionEntity,id:os,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:[hM,IM,RM,wM,_M],static:!1,abstract:!1,abstractMethods:[],methods:[],extends:[],implements:[],x:0,y:0,parent:MM},NM={type:n.GenericReference,id:"usd-property-data-type-parent-ref-id",version:"1",entityType:n.Property,entityId:lA},LM={like:!1,inferred:!1,id:"usd-property-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Wo,isList:!1,asType:!1,parent:NM},jM={type:n.GenericReference,id:"usd-property-parent-ref-id",version:"1",entityType:n.DefinitionEntity,entityId:So},UM={constant:!1,hidden:!1,required:!0,id:lA,type:n.Property,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"USD",description:null,index:0,dataType:LM,defaultValue:null,implements:null,static:!1,private:!1,abstract:!1,parent:jM},$M={type:n.GenericReference,id:"gbp-property-data-type-parent-ref-id",version:"1",entityType:n.Property,entityId:uA},gM={like:!1,inferred:!1,id:"gbp-property-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Wo,isList:!1,asType:!1,parent:$M},GM={type:n.GenericReference,id:"gbp-property-parent-ref-id",version:"1",entityType:n.DefinitionEntity,entityId:So},FM={constant:!1,hidden:!1,required:!0,id:uA,type:n.Property,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"GBP",description:null,index:0,dataType:gM,defaultValue:null,implements:null,static:!1,private:!1,abstract:!1,parent:GM},xM={type:n.GenericReference,id:"eur-property-data-type-parent-ref-id",version:"1",entityType:n.Property,entityId:pA},kM={like:!1,inferred:!1,id:"eur-property-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Wo,isList:!1,asType:!1,parent:xM},ZM={type:n.GenericReference,id:"eur-property-parent-ref-id",version:"1",entityType:n.DefinitionEntity,entityId:So},qM={constant:!1,hidden:!1,required:!0,id:pA,type:n.Property,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"EUR",description:null,implements:null,static:!1,index:0,defaultValue:null,dataType:kM,private:!1,abstract:!1,parent:ZM},JM={type:n.GenericReference,id:"bpi-prototype-parent-ref-id",version:"1",entityType:n.Project,entityId:fe},vA={type:n.DefinitionEntity,id:So,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"BPI",description:"The Bitcoin Price Index",properties:[UM,FM,qM],abstract:!1,static:!1,abstractMethods:[],methods:[],extends:[],implements:[],x:0,y:0,parent:JM},SM={type:n.GenericReference,id:"time-property-data-type-parent-ref-id",version:"1",entityType:n.Property,entityId:sA},WM={like:!1,inferred:!1,id:"time-property-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Zn,isList:!1,asType:!1,parent:SM},zM={type:n.GenericReference,id:"time-property-parent-ref-id",version:"1",entityType:n.DefinitionEntity,entityId:ra},YM={constant:!1,hidden:!1,required:!0,type:n.Property,id:sA,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"time",description:null,index:0,defaultValue:null,dataType:WM,implements:null,static:!1,private:!1,abstract:!1,parent:zM},HM={type:n.GenericReference,id:"disclaimer-property-data-type-parent-ref-id",version:"1",entityType:n.Property,entityId:aA},KM={like:!1,inferred:!1,id:"disclaimer-property-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ae,isList:!1,asType:!1,parent:HM},XM={type:n.GenericReference,id:"disclaimer-property-parent-ref-id",version:"1",entityType:n.DefinitionEntity,entityId:ra},QM={constant:!1,hidden:!1,required:!0,type:n.Property,id:aA,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"disclaimer",description:null,index:0,defaultValue:null,dataType:KM,implements:null,static:!1,private:!1,abstract:!1,parent:XM},eN={type:n.GenericReference,id:"chart-name-property-data-type-parent-ref-id",version:"1",entityType:n.Property,entityId:oA},tN={like:!1,inferred:!1,id:"chart-name-property-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ae,isList:!1,asType:!1,parent:eN},iN={type:n.GenericReference,id:"chart-name-property-parent-ref-id",version:"1",entityType:n.DefinitionEntity,entityId:ra},rN={constant:!1,hidden:!1,required:!0,type:n.Property,id:oA,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"chartName",description:null,index:0,defaultValue:null,dataType:tN,implements:null,static:!1,private:!1,abstract:!1,parent:iN},nN={type:n.GenericReference,id:"bpi-property-data-type-parent-ref-id",version:"1",entityType:n.Property,entityId:dA},sN={like:!1,inferred:!1,id:"bpi-property-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:vA,isList:!1,asType:!1,parent:nN},aN={type:n.GenericReference,id:"bpi-property-parent-ref-id",version:"1",entityType:n.DefinitionEntity,entityId:ra},oN={constant:!1,hidden:!1,required:!0,type:n.Property,id:dA,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"bpi",description:null,implements:null,index:0,defaultValue:null,dataType:sN,static:!1,private:!1,abstract:!1,parent:aN},dN={type:n.GenericReference,id:"bitcoin-api-response-parent-ref-id",version:"1",entityType:n.Project,entityId:fe},TA={type:n.DefinitionEntity,id:ra,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Bitcoin API Response type",description:"The type of the data structure response from the Bitcoin API call",properties:[YM,QM,rN,oN],abstract:!1,static:!1,abstractMethods:[],methods:[],extends:[],implements:[],x:0,y:0,parent:dN},lN={type:n.GenericReference,id:"eefa0147-f873-484b-b4f3-9e6493aab183",version:"1",entityType:n.ArgumentDeclaration,entityId:"f2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a"},uN={like:!1,inferred:!1,id:"b9f35112-dcb2-4b7c-8fb9-f196b3fa37f9",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Yt,isList:!1,asType:!1,parent:lN},pN={type:n.GenericReference,id:"128770d6-5e3a-4aff-bca0-ad1f32ebefa8",version:"1",entityType:n.ReturnStatement,entityId:"e4e05975-c277-471a-b869-f0aed316045c"},cN={type:n.GenericReference,id:"0be84bf9-6421-42b9-980f-6a03f30cb809",version:"1",entityType:n.ReturnDeclaration,entityId:"a1ec31f0-25ca-42ac-a4c4-c9ec2255f55b"},fN={like:!1,inferred:!1,id:"43daa02a-237b-4b7c-a6e9-2b8c167f6e22",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Yt,isList:!1,asType:!1,parent:cN},yN={type:n.GenericReference,id:"ad380383-4a47-43da-968e-75a2d603b230",version:"1",entityType:n.ArgumentDeclaration,entityId:"f2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a"},IA={constant:!0,isError:!1,id:"a1ec31f0-25ca-42ac-a4c4-c9ec2255f55b",type:n.ReturnDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"New Company Owner",description:"The new owner of the company",implements:null,defaultValue:null,dataType:fN,readsValue:yN,required:!0,index:0,parent:pN},hN={type:n.GenericReference,id:"4f24dc27-59a1-49bf-abcc-7d72b00926e4",version:"1",entityType:n.FunctionDeclaration,entityId:"d683bfc1-a464-4810-8ec0-1dd8eaa0c3c4"},mN={constant:!0,id:"f2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a",type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"New Company Owner",description:null,implements:null,defaultValue:null,dataType:uN,writesValues:[IA],required:!0,index:0,parent:hN},vN={type:n.GenericReference,id:"5c9a02f0-d2cf-4efc-828e-467f33a74dd3",version:"1",entityType:n.DefinitionEntity,entityId:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d"},TN={type:n.GenericReference,id:"2ff8f3da-e0c5-4f0f-b688-2c051c588786",version:"1",entityType:n.FunctionDeclaration,entityId:"d683bfc1-a464-4810-8ec0-1dd8eaa0c3c4"},IN={type:n.GenericReference,id:"195ae28c-159b-42de-80b1-2ebb8be3619f",version:"1",entityType:n.FunctionDeclaration,entityId:"d683bfc1-a464-4810-8ec0-1dd8eaa0c3c4"},EN={type:n.ReturnStatement,id:"e4e05975-c277-471a-b869-f0aed316045c",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[IA],calledByError:[],calledByEntry:[TN],calledBySuccess:[],throws:null,x:0,y:0,parent:IN},AN={type:n.FunctionDeclaration,id:"d683bfc1-a464-4810-8ec0-1dd8eaa0c3c4",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Change owner of company",description:"Change the owner of the company to a new person",inputs:[mN],calls:[EN],index:0,collapsed:!1,implements:null,private:!1,x:0,y:0,parent:vN},bN={type:n.GenericReference,id:"e691026f-6db0-43ec-93cd-805ae7d713e3",version:"1",entityType:n.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},RN={type:n.GenericReference,id:"29c4e3e0-1b66-4075-b559-45b27c5cf356",version:"1",entityType:n.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},DN={type:n.GenericReference,id:"b1289358-b185-455d-8f58-7791b15cd52a",version:"1",entityType:n.ReturnStatement,entityId:"9690cd1d-ea35-4e83-823d-0c7310265fee"},ON={type:n.GenericReference,id:"d847bb49-8789-4550-bb2d-e2d551993b28",version:"1",entityType:n.VariableDeclaration,entityId:"e5a8b6d0-0e6f-4e9a-9b1e-8a2b5c7f0d5a"},PN={type:n.GenericReference,id:"06535500-c37c-4915-8398-1d4e184fa5e7",version:"1",entityType:n.ReturnDeclaration,entityId:"e7a35277-a0c4-46d5-aca2-bddd0c26e931"},wN={like:!1,inferred:!1,id:"d358dd91-35f7-4095-b728-3fb3c71dbc05",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:rr,asType:!1,isList:!1,parent:PN},Ou={constant:!0,isError:!1,id:"e7a35277-a0c4-46d5-aca2-bddd0c26e931",type:n.ReturnDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Is name registered",description:"Whether the company name is already registered",defaultValue:null,dataType:wN,implements:null,readsValue:ON,required:!0,index:0,parent:DN},CN={type:n.GenericReference,id:"gov-company-registry-return-statement-called-by-success-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:"e5a8b6d0-0e6f-4e9a-9b1e-8a2b5c7f0d5a"},EA={type:n.ReturnStatement,id:"9690cd1d-ea35-4e83-823d-0c7310265fee",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[Ou],calledByError:[],calledByEntry:[],calledBySuccess:[bN,CN],throws:null,x:0,y:0,parent:RN},VN={type:n.GenericReference,id:"b3126414-4c9b-495f-901e-59f5073c8d67",version:"1",entityType:n.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},BN={type:n.GenericReference,id:"35115c48-618b-411b-a290-d746d22fdd10",version:"1",entityType:n.VariableDeclaration,entityId:"83e12ebb-c958-4dee-b750-8ab9930f0f4e"},AA={id:"a0e7b4e5-2f5f-4d4c-8f5c-1e1f1e1a1b1a",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:_l,name:null,description:null,readsValue:BN,defaultValue:null,parent:VN,index:2},_N={type:n.GenericReference,id:"14f46eae-04a5-47d1-9c7f-28fb09b84d1d",version:"1",entityType:n.VariableDeclaration,entityId:"e5a8b6d0-0e6f-4e9a-9b1e-8a2b5c7f0d5a"},MN={like:!1,inferred:!1,id:"990bd5d1-07ea-4253-acc1-d03bedd22a38",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:rr,isList:!1,asType:!1,parent:_N},NN={type:n.GenericReference,id:"e4c3542a-8fb0-4b72-8d6e-3fdff812dd67",version:"1",entityType:n.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},LN={type:n.GenericReference,id:"825f9f60-22a8-4cc6-9055-d7333f8e92f4",version:"1",entityType:n.OutputMap,entityId:"8f30d787-9459-4d8d-98a2-b46fbc2006d5"},jN={type:n.GenericReference,id:"is-company-name-registered-var-called-by-ref",version:"1",entityType:n.Operation,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},bA={constant:!0,required:!0,type:n.VariableDeclaration,id:"e5a8b6d0-0e6f-4e9a-9b1e-8a2b5c7f0d5a",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Is name registered",description:"Whether the company name is registered with the government company registry",defaultValue:null,dataType:MN,readsValue:LN,writesValues:[Ou],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[jN],successCalls:[EA],errorCalls:[],internalCalls:[],x:0,y:0,parent:NN},UN={type:n.GenericReference,id:"1aba021e-48ef-44ac-93d0-eaecac5895da",version:"1",entityType:n.InputMap,entityId:"c3c8d6c1-3e0d-4e6c-9f9c-6b8c7d7f8e9a"},$N={type:n.GenericReference,id:"dffae7e0-0a5c-4c14-8ed2-8d680b4c4c86",version:"1",entityType:n.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},gN={type:n.InputMap,id:"c3c8d6c1-3e0d-4e6c-9f9c-6b8c7d7f8e9a",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:eo,name:null,description:null,readsValue:null,defaultValue:{id:"gov-http-request-url-argument-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:"https://api.publicapis.org/entries",name:L.String,valueAsTypeList:null,valueAsTypeSingle:null,parent:UN,autogeneration:null},index:1,parent:$N},GN={type:n.GenericReference,id:"64ae61f5-ace7-401b-926d-25f852daa60e",version:"1",entityType:n.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},FN={id:"8f30d787-9459-4d8d-98a2-b46fbc2006d5",type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:so,index:2,writesValues:[bA],parent:GN},xN={type:n.GenericReference,id:"62a1a086-caea-4270-9c9f-a1695503e745",version:"1",entityType:n.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},kN={id:"48cf7654-8f3e-4fcd-abc6-740876c310a0",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Qa,name:null,description:null,readsValue:null,index:0,defaultValue:null,parent:xN},ZN={type:n.GenericReference,id:"b0c9c79f-f525-428d-99e7-087d3237ad62",version:"1",entityType:n.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},qN={id:"2c1dc406-4b71-4023-87b2-abede3a111d2",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:null,description:null,declaration:to,index:3,readsValue:null,defaultValue:null,parent:ZN},JN={type:n.GenericReference,id:"9887d6c9-d75b-4c97-b722-e2e60945ea20",version:"1",entityType:n.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},SN={id:"3fef94b2-0278-43ae-b0c5-bc7083f0a111",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:io,name:null,description:null,readsValue:null,index:4,defaultValue:null,parent:JN},WN={type:n.GenericReference,id:"561275b6-5056-45d8-bf7d-8abaa4645593",version:"1",entityType:n.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},zN={id:"3efe20a7-4d63-411e-89ef-63e277f48d66",type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:no,index:1,writesValues:[],parent:WN},YN={type:n.GenericReference,id:"3170ccc2-13de-4bfc-802a-a643be41cd42",version:"1",entityType:n.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},HN={id:"40d34323-d7e6-440a-8016-67c05a3b66dd",type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:ro,index:0,writesValues:[],parent:YN},KN={type:n.GenericReference,id:"7432fa82-f574-4c54-a8fa-4cc4376da3d5",version:"1",entityType:n.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},XN={type:n.GenericReference,id:"8f518502-9eea-462c-8753-8bc3bf3e29a9",version:"1",entityType:n.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},QN={type:n.GenericReference,id:"123b8f18-79d9-4166-a5f6-78ec4b461680",version:"1",entityType:n.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},eL={type:n.GenericReference,id:"e691026f-6db0-43ec-93cd-805ae7d713e3",version:"1",entityType:n.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},tL={type:n.GenericReference,id:"a375eedf-4811-41aa-a998-4897c69c46b9",version:"1",entityType:n.ReturnDeclaration,entityId:"024a9b77-c1cd-4b67-b3ba-1935046b590d"},iL={like:!1,inferred:!1,id:"767cc5ed-20ec-4fd1-89b1-c8d19daa87d1",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:wt,asType:!1,isList:!1,parent:tL},rL={type:n.GenericReference,id:"e64b0c23-129d-4d74-8ab4-eec60e1e5b9b",version:"1",entityType:n.ReturnStatement,entityId:"ea444a9e-6a5b-4138-b81f-0d5618c3c6f3"},RA={constant:!0,isError:!0,id:"024a9b77-c1cd-4b67-b3ba-1935046b590d",type:n.ReturnDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Error",description:"The error that occurred during the HTTP request to the government company registry",dataType:iL,defaultValue:null,implements:null,required:!0,readsValue:null,index:0,parent:rL},nL={type:n.ReturnStatement,id:"ea444a9e-6a5b-4138-b81f-0d5618c3c6f3",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[],calledByError:[eL],calledByEntry:[],calledBySuccess:[],throws:RA,x:0,y:0,parent:QN},sL={type:n.GenericReference,id:"323814fb-9723-49ef-bbba-f882384f18e4",version:"1",entityType:n.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},aL={id:"2f63f7ba-0ff0-458a-92bc-65d1dd4df8c3",type:n.OutputMap,declaration:Ml,defaultValue:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,writesValues:[RA],index:0,parentRelationType:xn.Error,parent:sL},oL={type:n.Operation,id:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Ms,inputs:[kN,gN,AA,qN,SN],outputs:[HN,zN,FN],process:null,calledByError:[],calledByEntry:[KN],calledBySuccess:[],successCalls:[EA,bA],errorCalls:[nL],error:aL,x:0,y:0,parent:XN},dL={type:n.GenericReference,id:"597b8aa2-f6f2-4f7d-bbb9-b703d02de96a",version:"1",entityType:n.InputMap,entityId:"b0e7b4e5-2f5f-4d4c-8f5c-1e1f1e1a1b1a"},lL={type:n.GenericReference,id:"546d99b3-28c4-4186-93a0-ac53c1565e07",version:"1",entityType:n.Operation,entityId:"8f2094c0-e27e-465e-9280-112da0de9019"},uL={id:"b0e7b4e5-2f5f-4d4c-8f5c-1e1f1e1a1b1a",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Ha,name:null,description:null,readsValue:null,defaultValue:{id:"base-query-string-map-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:"?name=",name:L.String,parent:dL,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null},index:0,parent:lL},pL={type:n.GenericReference,id:"6a56fb22-82e1-47c9-bf85-41c4e5986c74",version:"1",entityType:n.Operation,entityId:"8f2094c0-e27e-465e-9280-112da0de9019"},cL={type:n.GenericReference,id:"191c6a6d-9bcb-441e-bf98-de0da96f5f3a",version:"1",entityType:n.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},fL={type:n.GenericReference,id:"d8fcbb76-dae2-40cf-847a-02364721b387",version:"1",entityType:n.VariableDeclaration,entityId:"83e12ebb-c958-4dee-b750-8ab9930f0f4e"},yL={like:!1,inferred:!1,id:"6a70c42b-024a-47c6-8a9d-af52be9c9b9a",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ae,isList:!1,asType:!1,parent:fL},hL={type:n.GenericReference,id:"2282e2c0-ed9e-4c7b-86fc-1a364fa0fdb8",version:"1",entityType:n.OutputMap,entityId:"f6c22cf8-63e4-4b2d-b649-b5ab884cf9a5"},mL={type:n.GenericReference,id:"assembled-query-string-called-by-ref",version:"1",entityType:n.Operation,entityId:"8f2094c0-e27e-465e-9280-112da0de9019"},DA={constant:!0,required:!0,type:n.VariableDeclaration,id:"83e12ebb-c958-4dee-b750-8ab9930f0f4e",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Query string",description:"The final, assembled query string that will be used in the HTTP request to the government company registry",defaultValue:null,dataType:yL,readsValue:hL,writesValues:[AA],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[mL],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:cL},vL={id:"f6c22cf8-63e4-4b2d-b649-b5ab884cf9a5",type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,writesValues:[DA],declaration:Bs,index:0,parent:pL},TL={type:n.GenericReference,id:"a1b48e7c-0301-4747-b4dd-b5af79956f7f",version:"1",entityType:n.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},IL={type:n.GenericReference,id:"487c9235-be95-4c96-b9b5-2714b374a277",version:"1",entityType:n.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},EL={type:n.GenericReference,id:"f6471f4f-b269-46fa-80ec-885e87a449c2",entityId:"a4106e8e-ec4f-4633-a636-09ae73135f69",version:"1",entityType:n.ArgumentDeclaration},AL={type:n.GenericReference,id:"62b4afb0-6c21-4b0f-abd3-cebef7b17c28",version:"1",entityType:n.Operation,entityId:"8f2094c0-e27e-465e-9280-112da0de9019"},OA={id:"08f36e2b-bad2-425c-8129-93560bec8488",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.InputMap,declaration:Ka,name:null,description:null,readsValue:EL,defaultValue:null,index:1,parent:AL},bL={type:n.Operation,id:"8f2094c0-e27e-465e-9280-112da0de9019",declaration:_s,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,inputs:[OA,uL],outputs:[vL],process:null,calledByError:[],calledByEntry:[TL],calledBySuccess:[],successCalls:[DA],errorCalls:[],error:null,x:0,y:0,parent:IL},RL={type:n.GenericReference,id:"c2e0e9b4-aa46-4974-bf8a-886b737b12fb",version:"1",entityType:n.ArgumentDeclaration,entityId:"a4106e8e-ec4f-4633-a636-09ae73135f69"},DL={like:!1,inferred:!1,id:"a4279518-3bf3-44b7-a2ac-65142ca37f1c",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ae,asType:!1,isList:!1,parent:RL},OL={type:n.GenericReference,id:"dc273f24-164b-4943-82f9-589b237141e2",version:"1",entityType:n.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},PA={constant:!0,id:"a4106e8e-ec4f-4633-a636-09ae73135f69",type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Company Name to check",description:"The name of the company to check in the government registry",dataType:DL,defaultValue:null,implements:null,required:!1,writesValues:[OA],index:0,parent:OL},PL={type:n.GenericReference,id:"2178a10c-1cc0-4dad-97c3-0941be6c9738",version:"1",entityType:n.Project,entityId:fe},wA={type:n.FunctionDeclaration,id:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Check Gov Company Registry availability",description:"Check whether the company name is already registered in the government company registry, or it is available for a new company to use.",inputs:[PA],calls:[bL,oL],implements:null,index:null,collapsed:!1,private:!1,x:0,y:0,parent:PL},wL={type:n.GenericReference,id:"4d66c53c-f0f7-496a-9955-1e6c8533c5e0",version:"1",entityType:n.Condition,entityId:"a8f4b0f2-5e5e-4e8f-9d7b-1b5b9b6e9a4b"},CL={type:n.GenericReference,id:"6fa0c8e0-d104-4b4d-a035-d4f6e0c49f09",version:"1",entityType:n.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},VL={type:n.GenericReference,id:"146408d5-5336-4877-941a-777dd5871926",version:"1",entityType:n.ArgumentDeclaration,entityId:"c6cf620c-1eee-4919-8578-1a0b6c088551"},BL={type:n.GenericReference,id:"34ae8f8c-548d-4654-984a-6f36affdaf49",version:"1",entityType:n.FunctionCall,entityId:"d2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a"},CA={id:"69b1215d-9ebf-4274-b9cb-d4a5888f5122",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.InputMap,declaration:PA,name:null,description:null,readsValue:VL,defaultValue:null,index:0,parent:BL},_L={type:n.GenericReference,id:"07540a94-dda1-40b3-8452-f209bdc87b88",version:"1",entityType:n.FunctionCall,entityId:"d2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a"},ML={type:n.GenericReference,id:"eaddf12a-a995-429e-90a0-13bf06efeb28",version:"1",entityType:n.VariableDeclaration,entityId:"faaf3bf6-917d-40d7-aee6-5164f6646c4b"},NL={like:!1,inferred:!1,id:"7fdaf943-3ffb-48e0-b766-b86cc24090cf",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:rr,asType:!1,isList:!1,parent:ML},LL={type:n.GenericReference,id:"030fb5c5-af4d-4c85-8cf0-e99edd50d2bd",version:"1",entityType:n.OutputMap,entityId:"c1ec31f0-25ca-42ac-a4c4-c9ec2255f55b"},jL={type:n.GenericReference,id:"a8b618e9-c68c-48c1-8bd6-ef47c87d699e",version:"1",entityType:n.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},UL={type:n.GenericReference,id:"is-company-name-valid-var-called-by-ref",version:"1",entityType:n.FunctionCall,entityId:"d2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a"},VA={constant:!0,required:!0,type:n.VariableDeclaration,id:"faaf3bf6-917d-40d7-aee6-5164f6646c4b",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Is name valid",description:"Whether the company name is valid",defaultValue:null,dataType:NL,readsValue:LL,writesValues:[],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[UL],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:jL},$L={id:"c1ec31f0-25ca-42ac-a4c4-c9ec2255f55b",type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Ou,defaultValue:null,writesValues:[VA],index:0,parent:_L},gL={type:n.FunctionCall,id:"d2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:wA,inputs:[CA],outputs:[$L],calledByError:[],calledByEntry:[],process:null,calledBySuccess:[wL],successCalls:[VA],errorCalls:[],error:null,x:0,y:0,parent:CL},GL={type:n.GenericReference,id:"9d0b87b4-bfed-4e02-9e84-6831c21feae2",version:"1",entityType:n.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},FL={type:n.GenericReference,id:"74345f4f-e80d-48be-adff-d12fcea25bec",version:"1",entityType:n.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},xL={type:n.GenericReference,id:"b39279ea-969a-4efb-a9ec-353bfd13db65",version:"1",entityType:n.ArgumentDeclaration,entityId:"c6cf620c-1eee-4919-8578-1a0b6c088551"},kL={type:n.GenericReference,id:"549db613-f225-4c5b-9634-7d096717f0ff",version:"1",entityType:n.Condition,entityId:"a8f4b0f2-5e5e-4e8f-9d7b-1b5b9b6e9a4b"},BA={id:"358e242c-7448-442e-ab8b-fd7fa119ea71",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.InputMap,declaration:mn.inputs[0],name:null,description:null,readsValue:xL,defaultValue:null,index:0,parent:kL},ZL={type:n.Condition,id:"a8f4b0f2-5e5e-4e8f-9d7b-1b5b9b6e9a4b",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:mn,inputs:[BA],calledByError:[],calledByEntry:[GL],calledBySuccess:[],successCalls:[gL],errorCalls:[],x:0,y:0,parent:FL},qL={type:n.GenericReference,id:"43ba1e25-f805-488f-8ae8-c58bb6215b2f",version:"1",entityType:n.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},JL={type:n.GenericReference,id:"eb091bed-507f-4a1e-93b5-7cd2fccfe002",version:"1",entityType:n.VariableDeclaration,entityId:"9c928995-0dd5-4f97-9962-56b343bc8a45"},SL={like:!1,inferred:!1,id:"d64152ea-831f-4426-9506-a39bfa170513",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:as,asType:!1,isList:!1,parent:JL},WL={type:n.GenericReference,id:"7e79c29f-f7bd-441a-a77e-c627604dae94",version:"1",entityType:n.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},zL={type:n.GenericReference,id:"8995ce5f-d5cf-4341-a8b1-5c046cc78b89",version:"1",entityType:n.ArgumentDeclaration,entityId:"7ed0f7bb-2df0-44e2-b0b3-0709dcca8071"},YL={type:n.GenericReference,id:"new-company-bank-account-var-decl-1-called-by-ref",version:"1",entityType:n.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},_A={constant:!0,required:!0,type:n.VariableDeclaration,id:"9c928995-0dd5-4f97-9962-56b343bc8a45",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"New bank account",description:"The new entity value representing the new bank account of the company",defaultValue:null,dataType:SL,readsValue:zL,writesValues:[],inputs:[],outputs:[],calledByError:[],calledByEntry:[YL],calledBySuccess:[],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:WL},HL={type:n.GenericReference,id:"9a4887bf-d50d-43e4-bdd5-a5262f65f04b",version:"1",entityType:n.ArgumentDeclaration,entityId:"7ed0f7bb-2df0-44e2-b0b3-0709dcca8071"},KL={like:!1,inferred:!1,id:"ae148c06-3143-49e9-9614-c3aca3f6fa7b",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:as,asType:!1,isList:!1,parent:HL},XL={constant:!0,id:"7ed0f7bb-2df0-44e2-b0b3-0709dcca8071",type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"New bank account",description:"The new bank account of the company",dataType:KL,implements:null,defaultValue:null,required:!0,index:1,writesValues:[_A],parent:qL},QL={type:n.GenericReference,id:"caec9cf8-3133-48d4-a390-114fa71b2933",version:"1",entityType:n.DefinitionEntity,entityId:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d"},ej={type:n.GenericReference,id:"cebcbad8-ca87-4c4b-be8a-312293d49892",version:"1",entityType:n.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},tj={type:n.GenericReference,id:"7b8ccfe5-f9cd-4776-a19b-80c689bbe3df",version:"1",entityType:n.ArgumentDeclaration,entityId:"c6cf620c-1eee-4919-8578-1a0b6c088551"},ij={like:!1,inferred:!1,id:"2a6b4703-ac8d-4d25-8abd-48a115577fec",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ae,asType:!1,isList:!1,parent:tj},rj={constant:!0,id:"c6cf620c-1eee-4919-8578-1a0b6c088551",type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"New company name",description:null,dataType:ij,implements:null,defaultValue:null,required:!0,index:0,writesValues:[BA,CA],parent:ej},nj={type:n.FunctionDeclaration,id:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Company changed event",description:"The event that is triggered when a company is changed",collapsed:!1,inputs:[rj,XL],calls:[ZL,_A],index:1,private:!1,implements:null,x:0,y:0,parent:QL},sj={type:n.GenericReference,id:"employee-manager-property-data-type-entity-ref-id",version:"1",entityType:n.DefinitionEntity,entityId:"employee-entity-id"},aj={type:n.GenericReference,id:"employee-manager-property-data-type-parent-ref-id",version:"1",entityType:n.Property,entityId:"employee-manager-property-id"},oj={like:!1,inferred:!1,id:"employee-manager-property-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:sj,isList:!1,asType:!1,parent:aj},dj={type:n.GenericReference,id:"employee-manager-property-parent-ref-id",version:"1",entityType:n.DefinitionEntity,entityId:"employee-entity-id"},lj={constant:!1,required:!0,hidden:!1,type:n.Property,id:"employee-manager-property-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Manager",description:"The manager of the employee",index:0,implements:null,private:!1,static:!1,defaultValue:null,dataType:oj,abstract:!1,parent:dj},uj={type:n.GenericReference,id:"employee-start-date-property-data-type-parent-ref-id",version:"1",entityType:n.Property,entityId:"employee-start-date-property-id"},pj={like:!1,inferred:!1,id:"employee-start-date-property-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Gi,isList:!1,asType:!1,parent:uj},cj={type:n.GenericReference,id:"employee-start-date-property-parent-ref-id",version:"1",entityType:n.DefinitionEntity,entityId:"employee-entity-id"},fj={constant:!1,hidden:!1,required:!0,type:n.Property,id:"employee-start-date-property-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Start date",description:"The date the employee started working in the company",index:0,private:!1,static:!1,defaultValue:null,implements:null,dataType:pj,abstract:!1,parent:cj},yj={type:n.GenericReference,id:"employee-department-property-ref-id",version:"1",entityType:n.Property,entityId:"employee-department-property-id"},hj={like:!1,inferred:!1,id:"employee-department-property-data-type-id",type:n.DataType,parentRelationType:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:nr,isList:!1,asType:!1,options:["Human Resources","Finance","IT","Sales","Marketing","Customer Service","Logistics","Product"],parent:yj},mj={type:n.GenericReference,id:"employee-department-property-parent-ref-id",version:"1",entityType:n.DefinitionEntity,entityId:"employee-entity-id"},vj={constant:!1,hidden:!1,required:!0,type:n.Property,id:"employee-department-property-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Department",description:"The department the employee works in, from a list of departments in the company",index:0,defaultValue:null,implements:null,static:!1,private:!1,dataType:hj,abstract:!1,parent:mj},Tj={type:n.GenericReference,id:"employee-prototype-parent-ref-id",version:"1",entityType:n.Project,entityId:fe},Di={type:n.DefinitionEntity,id:"employee-entity-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Employee",description:"A entity that represents an employee in the company",properties:[vj,fj,lj],abstract:!1,static:!1,abstractMethods:[],methods:[],implements:[],extends:[Yt],x:0,y:0,parent:Tj},Ij={type:n.GenericReference,id:"dec8fbfe-9124-41fd-9f1c-5b2f07cfd6ba",version:"1",entityType:n.Property,entityId:"4f52d044-f3dd-4bdf-927e-637c3b92e8bd"},Ej={like:!1,inferred:!1,id:"bc0b8979-6c43-4d47-a712-6742b89e3c00",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ae,isList:!1,asType:!1,parent:Ij},Aj={type:n.GenericReference,id:"4f8c0a05-466e-4672-b4c4-6bd408c0be9a",version:"1",entityType:n.DefinitionEntity,entityId:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d"},bj={constant:!1,hidden:!1,required:!0,type:n.Property,id:"4f52d044-f3dd-4bdf-927e-637c3b92e8bd",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Company Name",private:!1,static:!1,description:"The name of the company",index:0,defaultValue:null,implements:null,dataType:Ej,abstract:!1,parent:Aj},Rj={type:n.GenericReference,id:"95173fe0-a6e6-443c-94f3-f7c5cf171fcf",version:"1",entityType:n.Property,entityId:"80c86e1b-caca-4ba5-9b1f-38f72d10e4a3"},Dj={like:!1,inferred:!1,id:"ddbb6f5c-0cf4-41fb-83b3-b6c47c0e338d",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:as,isList:!1,asType:!1,parent:Rj},Oj={type:n.GenericReference,id:"6a9a0b72-a05d-4169-b3f3-5afb01e8d0df",version:"1",entityType:n.DefinitionEntity,entityId:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d"},Pu={constant:!1,hidden:!1,required:!0,type:n.Property,id:"80c86e1b-caca-4ba5-9b1f-38f72d10e4a3",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Bank account",description:"The bank account of the company",index:1,implements:null,static:!1,private:!1,defaultValue:null,dataType:Dj,abstract:!1,parent:Oj},Pj={type:n.GenericReference,id:"62892cc6-d227-4088-90d3-ae7c15ed4af4",version:"1",entityType:n.Property,entityId:"19a31727-1fba-40a5-be25-18e0f149d5cb"},wj={like:!1,inferred:!1,id:"1f7629df-dc29-4c89-8369-c6d043e97a9e",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Yt,isList:!1,asType:!1,parent:Pj},Cj={type:n.GenericReference,id:"89384206-fd5a-4f0a-849c-f777473e5773",version:"1",entityType:n.DefinitionEntity,entityId:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d"},Vj={constant:!1,hidden:!1,required:!0,type:n.Property,id:"19a31727-1fba-40a5-be25-18e0f149d5cb",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Company Owner",description:"The person that owns the company",index:2,static:!1,implements:null,defaultValue:null,dataType:wj,private:!0,abstract:!1,parent:Cj},Bj={type:n.GenericReference,id:"4d2ffb6c-5f38-436e-8339-fb9878ac2b5e",version:"1",entityType:n.Property,entityId:"f8310850-a87e-405c-b182-4f1d5fa49240"},_j={like:!1,inferred:!1,id:"ad44250b-40c2-48f7-a480-381fa938f562",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Di,isList:!0,asType:!1,parent:Bj},Mj={type:n.GenericReference,id:"aa5d4eee-6fac-4e72-bf21-9c8750024541",version:"1",entityType:n.DefinitionEntity,entityId:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d"},Nj={constant:!1,hidden:!1,required:!0,type:n.Property,id:"f8310850-a87e-405c-b182-4f1d5fa49240",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Employees",description:null,index:3,defaultValue:null,dataType:_j,implements:null,private:!0,static:!1,abstract:!1,parent:Mj},Lj={id:"company-prototype-primary-key-property-data-type-ref-id",type:n.GenericReference,entityId:"company-prototype-primary-key-property-id",version:"1",entityType:n.Property},jj={id:"company-prototype-primary-key-property-ref-id",type:n.GenericReference,entityId:"company-prototype-primary-key-property-id",version:"1",entityType:n.Property},Uj={like:!1,inferred:!1,id:"company-prototype-primary-key-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:sr,asType:!1,parent:jj},$j={id:"company-prototype-primary-key-property-parent-ref-id",type:n.GenericReference,entityId:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d",version:"1",entityType:n.DefinitionEntity},gj={constant:!1,hidden:!1,required:!0,id:"company-prototype-primary-key-property-id",name:"Identifier",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,implements:Hn,static:!1,index:4,defaultValue:{id:"company-prototype-primary-key-property-data-type-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.UUID,value:null,parent:Lj,autogeneration:{type:vt.Unique,rangeStart:null,rangeEnd:null},valueAsTypeList:null,valueAsTypeSingle:null},dataType:Uj,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:$j},Gj={type:n.GenericReference,id:"e3c03b6b-2ea0-4d99-865d-5e6a348672d0",version:"1",entityType:n.Project,entityId:fe},Oi={type:n.DefinitionEntity,id:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Company",description:null,properties:[bj,Pu,Vj,Nj,gj],static:!1,abstract:!1,abstractMethods:[],methods:[AN,nj],extends:[],implements:[_t,mi],x:0,y:0,parent:Gj},Fj={type:n.GenericReference,id:"ffcad334-138d-4b67-8fb3-5f0e6f5fefbd",version:"1",entityType:n.Project,entityId:fe},wu={type:n.FunctionDeclaration,id:"0f89260c-8c58-4639-8629-d9ea5ab40ba7",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Show popup",description:null,inputs:[],calls:[],implements:null,collapsed:!1,private:!1,index:null,x:0,y:0,parent:Fj};n.GenericReference,n.DataType;const xj={id:"cron-job-entity-expression-property-ref-id",type:n.GenericReference,entityId:"cron-job-entity-expression-property-id",version:"1",entityType:n.Property},kj={like:!1,inferred:!1,id:"cron-job-entity-expression-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ae,asType:!1,parent:xj},Zj={id:"cron-job-entity-ref-id",type:n.GenericReference,entityId:"cron-job-entity-id",version:"1",entityType:n.DefinitionEntity},qj={constant:!1,hidden:!1,required:!0,id:"cron-job-entity-expression-property-id",type:n.Property,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Cron expression",description:"The cron expression that defines when the cron job should be triggered",defaultValue:null,dataType:kj,implements:null,static:!0,private:!1,abstract:!1,index:0,parent:Zj},Jj={id:"cron-job-entity-trigger-show-popup-func-call-called-by-ref-one-id",type:n.GenericReference,entityId:"cron-job-entity-trigger-func-decl-id",version:"1",entityType:n.FunctionDeclaration},Sj={id:"cron-job-entity-trigger-show-popup-func-call-parent-ref-id",type:n.GenericReference,entityId:"cron-job-entity-trigger-func-decl-id",version:"1",entityType:n.FunctionDeclaration},Wj={id:"cron-job-entity-trigger-show-popup-func-call-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.FunctionCall,declaration:wu,inputs:[],outputs:[],process:null,successCalls:[],calledByError:[],calledByEntry:[Jj],calledBySuccess:[],errorCalls:[],error:null,x:0,y:0,parent:Sj},zj={id:"cron-job-entity-trigger-func-decl-parent-ref-id",type:n.GenericReference,entityId:"cron-job-entity-id",version:"1",entityType:n.DefinitionEntity},Yj={id:"cron-job-entity-trigger-func-decl-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.FunctionDeclaration,name:"Scheduled trigger",description:"The function that is called when the cron job is triggered",inputs:[],private:!1,implements:tu,calls:[Wj],collapsed:!1,index:0,x:0,y:0,parent:zj},Hj={id:"cron-job-entity-parent-ref-id",type:n.GenericReference,entityId:fe,version:"1",entityType:n.Project},Kj={id:"cron-job-entity-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DefinitionEntity,name:"Run at 12pm on Christmas day",description:"A cron job that runs at 12pm on Christmas day",properties:[qj],static:!0,abstract:!1,abstractMethods:[],extends:[],implements:[mo],methods:[Yj],x:0,y:0,parent:Hj},Xj={type:n.GenericReference,id:"52dbd85c-48b1-462a-8205-2437d6fb1cb4",version:"1",entityType:n.Project,entityId:fe},Qj={type:n.DefinitionEntity,id:"6f0908c2-09c6-4a8b-8f43-d2467fe6fb39",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Get bank all bank accounts",description:null,properties:[],static:!0,abstract:!1,abstractMethods:[],methods:[],extends:[],implements:[ni],x:0,y:0,parent:Xj},zo="f558fbf8-67de-4545-9804-6ae621e0b2d4",eU={id:"getCompanyByIdEndpointPathParamsVariableDataTypeRef",type:n.GenericReference,version:"1",entityType:n.ArgumentDeclaration,entityId:"getCompanyByIdEndpointPathParamsArgumentDeclaration"},tU={id:"getCompanyByIdEndpointPathParamsArgumentDeclarationRef",type:n.GenericReference,version:"1",entityType:n.ArgumentDeclaration,entityId:"getCompanyByIdEndpointPathParamsArgumentDeclaration"},iU={like:!1,inferred:!1,id:"getCompanyByIdEndpointPathParamsVariableDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!0,entity:ae,asType:!1,parent:tU},rU={id:"getCompanyByIdEndpointReachedEntityEventRef",type:n.GenericReference,version:"1",entityType:n.FunctionDeclaration,entityId:"getCompanyByIdEndpointReachedEntityEvent"},nU={id:"getCompanyByIdEndpointRequestHeadersVariableDataTypeRef",type:n.GenericReference,version:"1",entityType:n.ArgumentDeclaration,entityId:"getCompanyByIdEndpointRequestHeadersArgumentDeclaration"},sU={id:"getCompanyByIdEndpointRequestHeadersArgumentDeclarationRef",type:n.GenericReference,version:"1",entityType:n.ArgumentDeclaration,entityId:"getCompanyByIdEndpointRequestHeadersArgumentDeclaration"},aU={like:!1,inferred:!1,id:"getCompanyByIdEndpointRequestHeadersVariableDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!0,entity:wt,asType:!1,parent:sU},oU={constant:!0,id:"getCompanyByIdEndpointRequestHeadersArgumentDeclaration",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:"A set of any properties, with names and value that transmit metadata about the request.",type:n.ArgumentDeclaration,writesValues:[],name:"Request headers",defaultValue:{id:"getCompanyByIdEndpointRequestHeadersVariableDataTypeDefaultValueId",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.KeyValue,value:{},parent:nU,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},dataType:aU,implements:ql,required:!0,index:0,parent:rU},dU={id:"getCompanyByIdEndpointReachedEntityEventRefTwo",type:n.GenericReference,version:"1",entityType:n.FunctionDeclaration,entityId:"getCompanyByIdEndpointReachedEntityEvent"},lU={constant:!0,id:"getCompanyByIdEndpointPathParamsArgumentDeclaration",type:n.ArgumentDeclaration,description:"A standarized text, without spaces that is added at the end of the domain and routes the request to a specific resource within the target server. For example: /api/users/123, /api/users/123/:name, /api/users/123/:name/:age.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Path parameters",writesValues:[],defaultValue:{id:"getCompanyByIdEndpointPathParamsVariableDataTypeDefaultValueId",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.KeyValue,value:{},parent:eU,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},dataType:iU,implements:Jl,required:!0,index:1,parent:dU},uU={id:"getCompanyByIdEndpointReachedEntityEventRefThree",type:n.GenericReference,version:"1",entityType:n.FunctionDeclaration,entityId:"getCompanyByIdEndpointReachedEntityEvent"},pU={id:"getCompanyByIdEndpointRequestQueryParamsVariableDataTypeRef",type:n.GenericReference,version:"1",entityType:n.ArgumentDeclaration,entityId:"getCompanyByIdEndpointRequestQueryParamsArgumentDeclaration"},cU={id:"getCompanyByIdEndpointRequestQueryParamsArgumentDeclarationRef",type:n.GenericReference,version:"1",entityType:n.ArgumentDeclaration,entityId:"getCompanyByIdEndpointRequestQueryParamsArgumentDeclaration"},fU={like:!1,inferred:!1,id:"getCompanyByIdEndpointRequestQueryParamsVariableDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!0,asType:!1,entity:ae,parent:cU},yU={constant:!0,id:"getCompanyByIdEndpointRequestQueryParamsArgumentDeclaration",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:"A text with standarized format, without spaces that is added at the end of the URL path, after the ? character. It contains data that might be used to process the request. For example: /api/users?name=John&age=30",type:n.ArgumentDeclaration,writesValues:[],name:"Request query params",defaultValue:{id:"getCompanyByIdEndpointRequestQueryParamsVariableDataTypeDefaultValueId",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.KeyValue,value:{},parent:pU,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},dataType:fU,implements:Sl,required:!0,index:2,parent:uU},hU={id:"getCompanyByIdEndpointReachedEntityEventRefFour",type:n.GenericReference,version:"1",entityType:n.FunctionDeclaration,entityId:"getCompanyByIdEndpointReachedEntityEvent"},mU={id:"getCompanyByIdEndpointRequestBodyArgumentDeclarationRef",type:n.GenericReference,version:"1",entityType:n.ArgumentDeclaration,entityId:"getCompanyByIdEndpointRequestBodyArgumentDeclaration"},vU={like:!1,inferred:!1,id:"getCompanyByIdEndpointRequestBodyVariableDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,asType:!1,entity:wt,parent:mU},TU={constant:!0,id:"getCompanyByIdEndpointRequestBodyArgumentDeclaration",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:"The main data payload of the request.",type:n.ArgumentDeclaration,writesValues:[],name:"Request body",defaultValue:null,dataType:vU,implements:Wl,index:3,required:!0,parent:hU},IU={id:"getCompanyByIdEndpointResponseCodeReturnDeclarationRef",type:n.GenericReference,version:"1",entityType:n.ReturnDeclaration,entityId:"getCompanyByIdEndpointResponseCodeReturnDeclaration"},EU={like:!1,inferred:!1,id:"9ba575b0-6f8e-436d-a3de-3b843622aa17",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,asType:!1,isList:!1,parent:IU},AU={id:"getCompanyByIdEndpointReturnStatementRef",type:n.GenericReference,version:"1",entityType:n.ReturnStatement,entityId:"getCompanyByIdEndpointReturnStatement"},bU={constant:!0,isError:!1,id:"getCompanyByIdEndpointResponseCodeReturnDeclaration",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:"A standarized number that represents the status of the response. 200 for OK, 404 for not found, 500 for server error, etc.",type:n.ReturnDeclaration,name:"Response code",defaultValue:null,dataType:EU,implements:zl,readsValue:null,required:!0,index:0,parent:AU},RU={id:"getCompanyByIdEndpointResponseHeadersDataTypeRef",type:n.GenericReference,version:"1",entityType:n.ReturnDeclaration,entityId:"getCompanyByIdEndpointResponseHeadersReturnDeclaration"},DU={id:"getCompanyByIdEndpointResponseHeadersReturnDeclarationRef",type:n.GenericReference,version:"1",entityType:n.ReturnDeclaration,entityId:"getCompanyByIdEndpointResponseHeadersReturnDeclaration"},OU={like:!1,inferred:!1,id:"getCompanyByIdEndpointResponseHeadersDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!0,entity:wt,asType:!1,parent:DU},PU={id:"getCompanyByIdEndpointReturnStatementRefTwo",type:n.GenericReference,version:"1",entityType:n.ReturnStatement,entityId:"getCompanyByIdEndpointReturnStatement"},wU={constant:!0,isError:!1,id:"getCompanyByIdEndpointResponseHeadersReturnDeclaration",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:"A set of any properties, with names and value that transmit metadata about the response.",type:n.ReturnDeclaration,name:"Response headers",defaultValue:{id:"getCompanyByIdEndpointResponseHeadersDataTypeDefaultValueId",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.KeyValue,value:{},parent:RU,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},dataType:OU,implements:Yl,readsValue:null,required:!0,index:1,parent:PU},CU={id:"getCompanyByIdEndpointResponseBodyReturnDeclarationRef",type:n.GenericReference,version:"1",entityType:n.ReturnDeclaration,entityId:"getCompanyByIdEndpointResponseBodyReturnDeclaration"},VU={like:!1,inferred:!1,id:"getCompanyByIdEndpointResponseBodyDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,asType:!1,entity:wt,parent:CU},BU={id:"getCompanyByIdEndpointReturnStatementRefThree",type:n.GenericReference,version:"1",entityType:n.ReturnStatement,entityId:"getCompanyByIdEndpointReturnStatement"},_U={constant:!0,isError:!1,id:"getCompanyByIdEndpointResponseBodyReturnDeclaration",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:"The main data payload of the response.",type:n.ReturnDeclaration,name:"Response body",implements:Hl,defaultValue:null,dataType:VU,readsValue:null,required:!0,index:2,parent:BU},MU={id:"getCompanyByIdEndpointReturnStatementCallerRef",type:n.GenericReference,entityId:"getCompanyByIdEndpointReachedEntityEvent",version:"1",entityType:n.FunctionDeclaration},NU={id:"getCompanyByIdEndpointReachedEntityEventRefFive",type:n.GenericReference,version:"1",entityType:n.FunctionDeclaration,entityId:"getCompanyByIdEndpointReachedEntityEvent"};n.ReturnStatement;const LU={id:"endpointBuiltInBaseEntityRefFour",type:n.GenericReference,version:"1",entityType:n.BuiltInBaseEntity,entityId:zo},jU={id:"getCompanyByIdEndpointReachedEntityEvent",name:"Endpoint reached",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.FunctionDeclaration,inputs:[oU,lU,yU,TU],description:"Fired when the endpoint is reached.",calls:[],collapsed:!1,implements:Kl,index:0,private:!1,x:0,y:0,parent:LU},UU={id:"getCompanyByIdEndpointPathPropertyDataTypeRef",type:n.GenericReference,version:"1",entityType:n.Property,entityId:"getCompanyByIdEndpointPathProperty"},$U={id:"getCompanyByIdEndpointPathPropertyRef",type:n.GenericReference,version:"1",entityType:n.Property,entityId:"getCompanyByIdEndpointPathProperty"},gU={like:!1,inferred:!1,id:"getCompanyByIdEndpointPathPropertyDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ae,asType:!1,parent:$U},GU={id:"getCompanyByIdEndpointBaseEntityRefTwo",type:n.GenericReference,version:"1",entityType:n.DefinitionEntity,entityId:zo},FU={constant:!1,id:"getCompanyByIdEndpointPathProperty",hidden:!1,required:!0,name:"Path",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,static:!0,implements:kl,defaultValue:{id:"getCompanyByIdEndpointPathPropertyDataTypeDefaultValueId",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.String,value:"/company/{id}",parent:UU,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null},dataType:gU,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:GU},xU={id:"getCompanyByIdEndpointMethodPropertyDataTypeRef",type:n.GenericReference,version:"1",entityType:n.Property,entityId:"getCompanyByIdEndpointMethodProperty"},kU={id:"getCompanyByIdEndpointMethodPropertyRef",type:n.GenericReference,version:"1",entityType:n.Property,entityId:"getCompanyByIdEndpointMethodProperty"},ZU={like:!1,inferred:!1,id:"getCompanyByIdEndpointMethodPropertyDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,entity:nr,isList:!0,asType:!1,options:["GET","POST","PUT","DELETE","PATCH","OPTIONS","HEAD","TRACE","CONNECT","CUSTOM"],parent:kU},qU={id:"getCompanyByIdEndpointBaseEntityRefThree",type:n.GenericReference,version:"1",entityType:n.DefinitionEntity,entityId:zo},JU={constant:!1,hidden:!1,required:!0,id:"getCompanyByIdEndpointMethodProperty",name:"Method",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,static:!0,implements:Zl,index:0,defaultValue:{id:"getCompanyByIdEndpointMethodPropertyDataTypeDefaultValueId",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:"GET",name:L.Enum,parent:xU,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null},dataType:ZU,description:null,parent:qU},SU={type:n.GenericReference,id:"6a905153-8aa8-4424-bd7b-6415731a2725",version:"1",entityType:n.Project,entityId:fe},WU={type:n.DefinitionEntity,id:zo,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Get given company data by id",description:null,properties:[FU,JU],methods:[jU],static:!0,abstract:!1,abstractMethods:[],extends:[],implements:[ni],x:0,y:0,parent:SU},zU={id:"plant-prototype-database-property-ref-id",type:n.GenericReference,entityId:"plant-prototype-database-property-id",version:"1",entityType:n.Property},YU={id:"plant-prototype-database-property-data-type-default-value-parent-ref-id",type:n.GenericReference,entityId:"plant-prototype-database-property-id",version:"1",entityType:n.Property},HU={like:!1,inferred:!1,id:"plant-prototype-database-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:Dt,asType:!1,parent:zU},KU={id:"plant-prototype-database-property-parent-ref-id",type:n.GenericReference,entityId:"plant-entity-id",version:"1",entityType:n.DefinitionEntity},XU={constant:!1,hidden:!1,required:!0,id:"plant-prototype-database-property-id",name:"Database",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,implements:Yn,static:!0,index:0,defaultValue:{id:"plant-prototype-database-property-data-type-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:null,name:L.EntityTemplate,valueAsTypeList:null,valueAsTypeSingle:Au,autogeneration:null,parent:YU},dataType:HU,description:"The database that the entity belongs to.",parent:KU},QU={type:n.GenericReference,id:"plant-name-property-ref-id",version:"1",entityType:n.Property,entityId:"plant-name-property-id"},e2={like:!1,inferred:!1,id:"plant-name-property-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ae,asType:!1,isList:!1,parent:QU},t2={type:n.GenericReference,id:"animal-name-property-parent-ref-id",version:"1",entityType:n.DefinitionEntity,entityId:"plant-entity-id"},i2={constant:!1,hidden:!1,required:!0,type:n.Property,id:"plant-name-property-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Name",description:"The name of the plant",defaultValue:null,implements:null,static:!1,private:!1,index:0,dataType:e2,abstract:!1,parent:t2},r2={type:n.GenericReference,id:"plant-prototype-parent-ref-id",version:"1",entityType:n.Project,entityId:fe},n2={type:n.DefinitionEntity,id:"plant-entity-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Plant",description:"A living creature that is not an animal",abstract:!1,static:!1,abstractMethods:[],properties:[XU,i2],methods:[],extends:[],implements:[_t],x:0,y:0,parent:r2},s2={id:"product-prototype-database-property-ref-id",type:n.GenericReference,entityId:"product-prototype-database-property-id",version:"1",entityType:n.Property},a2={id:"product-prototype-database-property-data-type-default-value-parent-ref-id",type:n.GenericReference,entityId:"product-prototype-database-property-id",version:"1",entityType:n.Property},o2={like:!1,inferred:!1,id:"product-prototype-database-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:Dt,asType:!1,parent:s2},d2={id:"product-prototype-database-property-parent-ref-id",type:n.GenericReference,entityId:"a2d0ec83-72ce-4f54-b059-a39e018fa86c",version:"1",entityType:n.DefinitionEntity},l2={constant:!1,hidden:!1,required:!0,id:"product-prototype-database-property-id",name:"Database",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,implements:Yn,static:!0,index:0,defaultValue:{id:"product-prototype-database-property-data-type-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:null,name:L.EntityTemplate,valueAsTypeList:null,valueAsTypeSingle:bu,autogeneration:null,parent:a2},dataType:o2,description:"The database that the entity belongs to.",parent:d2},u2={type:n.GenericReference,id:"13a4045e-dcb0-4159-8d33-10a646078b5a",version:"1",entityType:n.Property,entityId:"d519c26a-15b8-40d8-ad09-13fa9342e9ba"},p2={like:!1,inferred:!1,id:"7449779e-1d4e-409c-81c6-4b611336ed18",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ae,isList:!1,asType:!1,parent:u2},c2={type:n.GenericReference,id:"0969562f-d836-406f-8b48-dd9d417fbe72",version:"1",entityType:n.DefinitionEntity,entityId:"a2d0ec83-72ce-4f54-b059-a39e018fa86c"},f2={constant:!1,hidden:!1,required:!0,type:n.Property,id:"d519c26a-15b8-40d8-ad09-13fa9342e9ba",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Name",description:"The name of the product",index:0,implements:null,static:!1,private:!1,defaultValue:null,dataType:p2,abstract:!1,parent:c2},y2={type:n.GenericReference,id:"833a5425-7bd0-41dd-9e97-e018acce9592",version:"1",entityType:n.Project,entityId:fe},h2={id:"product-prototype-primary-key-property-data-type-ref-id",type:n.GenericReference,entityId:"product-prototype-primary-key-property-id",version:"1",entityType:n.Property},m2={id:"product-prototype-primary-key-property-ref-id",type:n.GenericReference,entityId:"product-prototype-primary-key-property-id",version:"1",entityType:n.Property},v2={like:!1,inferred:!1,id:"product-prototype-primary-key-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:sr,asType:!1,parent:m2},T2={id:"product-prototype-primary-key-property-parent-ref-id",type:n.GenericReference,entityId:"a2d0ec83-72ce-4f54-b059-a39e018fa86c",version:"1",entityType:n.DefinitionEntity},I2={constant:!1,hidden:!1,required:!0,id:"product-prototype-primary-key-property-id",name:"Identifier",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,implements:null,static:!1,index:0,defaultValue:{id:"product-prototype-primary-key-property-data-type-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.UUID,value:null,parent:h2,autogeneration:{type:vt.Unique,rangeStart:null,rangeEnd:null},valueAsTypeList:null,valueAsTypeSingle:null},dataType:v2,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:T2},E2={type:n.DefinitionEntity,id:"a2d0ec83-72ce-4f54-b059-a39e018fa86c",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Product",description:"A product that can be sold",implements:[_t,mi],extends:[],abstract:!1,static:!1,abstractMethods:[],properties:[I2,l2,f2],methods:[],x:0,y:0,parent:y2},ds="project-loaded-event-id",pr="get-bitcoin-price-http-call-operation-id",MA="get-bitcoin-price-http-call-response-body-id",Yo="validate-bitcoin-price-response-operation-ids",A2={type:n.GenericReference,id:"validate-bitcoin-data-to-validate-input-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:MA},b2={type:n.GenericReference,id:"validate-bitcoin-data-to-validate-input-map-parent-ref-id",version:"1",entityType:n.Operation,entityId:Yo},NA={id:"validate-bitcoin-data-to-validate-input-map-id",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:pn.inputs[1],name:null,description:null,readsValue:A2,defaultValue:null,index:0,parent:b2},R2={type:n.GenericReference,id:"validate-bitcoin-type-to-match-input-map-default-value-parent-ref-id",version:"1",entityType:n.InputMap,entityId:"validate-bitcoin-type-to-match-input-map-id"},D2={type:n.GenericReference,id:"validate-bitcoin-type-to-match-input-map-parent-ref-id",version:"1",entityType:n.Operation,entityId:Yo},O2={id:"validate-bitcoin-type-to-match-input-map-id",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:pn.inputs[0],name:null,description:null,readsValue:null,defaultValue:{id:"validate-bitcoin-type-to-match-input-map-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.EntityTemplate,valueAsTypeList:null,valueAsTypeSingle:TA,value:null,parent:R2,autogeneration:null},index:0,parent:D2},P2={type:n.GenericReference,id:"validate-bitcoin-validated-entity-output-map-parent-ref-id",version:"1",entityType:n.Operation,entityId:Yo},w2={id:"validate-bitcoin-validated-entity-output-map-id",type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:pn.outputs[0],writesValues:[],index:0,parent:P2},C2={type:n.GenericReference,id:"validate-bitcoin-price-response-operation-parent-ref-id",version:"1",entityType:n.GlobalEvent,entityId:ds},V2={type:n.GenericReference,id:"validate-bitcoin-price-response-operation-called-by-ref-id",version:"1",entityType:n.Operation,entityId:pr},B2={type:n.Operation,id:Yo,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:pn,inputs:[O2,NA],outputs:[w2],process:null,successCalls:[],errorCalls:[],error:null,x:0,y:0,calledByError:[],calledByEntry:[],calledBySuccess:[V2],parent:C2},_2={type:n.GenericReference,id:"96edb661-3f36-406c-8921-f1679dd796a3",version:"1",entityType:n.FunctionCall,entityId:pr},M2={id:"c93e1393-9b5e-4de2-b8da-7eae647d715a",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.InputMap,declaration:Qa,name:null,description:null,readsValue:null,defaultValue:null,index:0,parent:_2},N2={type:n.GenericReference,id:"40312b28-71b8-4b01-a654-58b87191939d",version:"1",entityType:n.FunctionCall,entityId:pr},L2={type:n.GenericReference,id:"6ea96c7d-02a7-4971-82ad-2f32a0fec8b4",version:"1",entityType:n.InputMap,entityId:"9f21cbac-5a83-4983-8923-9224ffd3ba9f"},j2={id:"9f21cbac-5a83-4983-8923-9224ffd3ba9f",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.InputMap,declaration:eo,name:null,description:null,readsValue:null,defaultValue:{id:"get-bitcoin-price-http-request-url-argument-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:"https://api.coindesk.com/v1/bpi/currentprice.json",name:L.String,parent:L2,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null},index:1,parent:N2},U2={type:n.GenericReference,id:"2610bf4a-c8a2-4746-b6cc-eb15f7fa8e9c",version:"1",entityType:n.FunctionCall,entityId:pr},$2={id:"ffb3cd9d-c955-4104-bc7b-299120fe4ede",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.InputMap,declaration:to,name:null,description:null,readsValue:null,defaultValue:null,index:2,parent:U2},g2={type:n.GenericReference,id:"bfd29a6a-671a-448c-9f2f-f8c7e4ad8349",version:"1",entityType:n.FunctionCall,entityId:pr},G2={id:"412bf1f3-1a8e-4665-a95f-82117540e34e",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.InputMap,declaration:io,name:null,description:null,readsValue:null,defaultValue:null,index:3,parent:g2},F2={type:n.GenericReference,id:"616a15f3-c224-4b11-b95c-63314edef409",version:"1",entityType:n.FunctionCall,entityId:pr},x2={id:"4dd4651c-02e4-45f1-b50f-824f3bcb1648",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.OutputMap,defaultValue:null,declaration:no,writesValues:[],index:1,parent:F2},k2={type:n.GenericReference,id:"28793b68-4d7e-4826-aee1-f201a3499faf",version:"1",entityType:n.FunctionCall,entityId:pr},Z2={id:"94fe9d35-4dd4-4729-a50c-5283ccd7e661",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.OutputMap,defaultValue:null,declaration:ro,writesValues:[],index:0,parent:k2},q2={type:n.GenericReference,id:"f13e04b2-49b4-4c69-85b8-cbbafafa3524",version:"1",entityType:n.FunctionCall,entityId:pr},J2={id:MA,type:n.OutputMap,defaultValue:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:so,writesValues:[NA],index:2,parent:q2},S2={type:n.GenericReference,id:"6148d6d0-caaa-45fc-b601-ff2493dfc60f",version:"1",entityType:n.GlobalEvent,entityId:ds},W2={type:n.GenericReference,id:"b115f084-807b-44b3-ae01-b69cc342f761",version:"1",entityType:n.GlobalEvent,entityId:ds},z2={type:n.Operation,id:pr,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Ms,inputs:[M2,j2,$2,G2],outputs:[Z2,x2,J2],process:null,parent:W2,calledByError:[],calledByEntry:[S2],calledBySuccess:[],successCalls:[B2],errorCalls:[],error:null,x:0,y:0},Y2={type:n.GenericReference,id:"24e76019-3f94-475b-91ce-297f76bbc224",version:"1",entityType:n.GlobalEvent,entityId:ds},H2={type:n.GenericReference,id:"0eac8e29-cdf2-42f8-8ea7-ad76d4d79abe",version:"1",entityType:n.GlobalEvent,entityId:ds},K2={process:null,type:n.FunctionCall,id:"2d2e7593-bfbf-457c-a607-5fce18eef457",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:wu,inputs:[],outputs:[],calledByError:[],calledByEntry:[Y2],calledBySuccess:[],parent:H2,successCalls:[],errorCalls:[],error:null,x:0,y:0},X2={id:"793b5999-a9da-47fb-9665-0c17ebc6d5c9",type:n.GenericReference,version:"1",entityType:n.Project,entityId:fe},Q2={type:n.GlobalEvent,id:ds,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:ir.PROJECT_PUBLICATION_COMPLETED,description:null,collapsed:!1,implements:To,parent:X2,inputs:[],calls:[K2,z2],x:0,y:0},vi="abort-execution-func-declaration-id",na="abort-execution-func-exec-var-declaration-id",Cu="abort-execution-func-small-wait-op-id",Vu="abort-execution-func-long-wait-op-id",LA="abort-execution-func-long-wait-process-output-id",jA="abort-execution-func-exec-var-instance-write-id",UA="abort-execution-func-long-wait-return-stmt-id",$A="abort-execution-func-small-wait-return-stmt-id",e$="abort-execution-func-exec-var-instance-abort-call-id",Bu="abort-execution-func-exec-var-instance-abort-internal-call-id",_u="abort-execution-func-exec-second-wait-op-id",t$={type:n.GenericReference,id:"short-wait-return-statement-returned-hello-string-data-type-parent-ref-id",version:"1",entityType:n.ReturnDeclaration,entityId:"short-wait-return-statement-returned-hello-string-id"},i$={type:n.GenericReference,id:"short-wait-return-statement-returned-hello-string-data-type-default-value-parent-ref-id",version:"1",entityType:n.ReturnDeclaration,entityId:"short-wait-return-statement-returned-hello-string-id"},r$={like:!1,inferred:!1,id:"short-wait-return-statement-returned-hello-string-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ae,asType:!1,isList:!1,parent:t$},n$={type:n.GenericReference,id:"short-wait-return-statement-returned-hello-string-parent-ref-id",version:"1",entityType:n.ReturnStatement,entityId:$A},s$={constant:!0,isError:!1,id:"short-wait-return-statement-returned-hello-string-id",type:n.ReturnDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Return 1",description:"A random string that is returned by the function",defaultValue:{id:"short-wait-return-statement-returned-hello-string-data-type-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.String,value:"Hello 2",autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null,parent:i$},dataType:r$,implements:null,readsValue:null,required:!0,index:0,parent:n$},a$={type:n.GenericReference,id:"short-wait-return-statement-called-by-ref-id",version:"1",entityType:n.Operation,entityId:_u},o$={type:n.GenericReference,id:"short-wait-return-statement-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:vi},d$={type:n.ReturnStatement,id:$A,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[s$],calledByError:[],calledByEntry:[],calledBySuccess:[a$],throws:null,x:0,y:0,parent:o$},l$={type:n.GenericReference,id:"second-wait-argument-default-value-parent-ref-id",version:"1",entityType:n.InputMap,entityId:"second-wait-argument-map-id"},u$={type:n.GenericReference,id:"second-wait-argument-map-parent-ref-id",version:"1",entityType:n.Operation,entityId:_u},p$={id:"second-wait-argument-map-id",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:ln,name:null,description:null,readsValue:null,defaultValue:{id:"second-wait-argument-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:2e3,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null,name:L.Number,parent:l$},index:0,parent:u$},c$={type:n.GenericReference,id:"small-wait-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:vi},f$={type:n.GenericReference,id:"small-wait-called-by-ref-one-id",version:"1",entityType:n.InternalCall,entityId:Bu},y$={id:_u,type:n.Operation,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Wt,inputs:[p$],outputs:[],process:null,successCalls:[d$],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[],calledBySuccess:[f$],error:null,parent:c$},h$={type:n.GenericReference,id:"abort-exec-func-abort-call-var-instance-abort-internal-call-called-by-ref-one-id",version:"1",entityType:n.VariableInstance,entityId:jA},m$={type:n.GenericReference,id:"abort-exec-func-abort-call-var-instance-abort-internal-call-called-by-ref-two-id",version:"1",entityType:n.Operation,entityId:Cu},v$={type:n.GenericReference,id:"abort-exec-func-abort-call-var-instance-main-project-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:vi},T$={type:n.GenericReference,id:"abort-exec-func-abort-call-var-instance-declaration-ref-id-2",version:"1",entityType:n.VariableDeclaration,entityId:na},I$={type:n.GenericReference,id:"abort-exec-func-abort-call-var-instance-internal-call-ref-one-id",version:"1",entityType:n.InternalCall,entityId:Bu},E$={id:e$,type:n.VariableInstance,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:T$,defaultValue:null,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],x:0,y:0,readsValue:null,writesValues:[],internalCalls:[I$],parent:v$},gA={id:Bu,type:n.InternalCall,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,inputs:[],outputs:[],declaration:iu,process:null,calledByError:[],calledByEntry:[],calledBySuccess:[h$,m$],successCalls:[y$],errorCalls:[],error:null,index:0,parent:E$},A$={type:n.GenericReference,id:"abort-exec-func-var-write-instance-main-project-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:vi},b$={type:n.GenericReference,id:"abort-exec-func-var-write-instance-called-by-ref-one-id",version:"1",entityType:n.VariableDeclaration,entityId:na},R$={type:n.GenericReference,id:"abort-exec-func-var-write-instance-called-by-ref-two-id",version:"1",entityType:n.FunctionDeclaration,entityId:vi},D$={type:n.GenericReference,id:"abort-exec-func-abort-call-var-instance-declaration-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:na},O$={type:n.GenericReference,id:"abort-exec-func-var-write-instance-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:LA},Mu={id:jA,type:n.VariableInstance,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:D$,inputs:[],outputs:[],defaultValue:null,calledByError:[],calledByEntry:[R$],calledBySuccess:[b$],successCalls:[gA],errorCalls:[],x:0,y:0,readsValue:O$,writesValues:[],internalCalls:[],parent:A$},P$={type:n.GenericReference,id:"abort-exec-func-var-decl-datatype-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:na};n.GenericReference,n.DataType;const w$={like:!1,inferred:!1,id:"abort-exec-func-var-decl-datatype-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,entity:vo,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,asType:!1,isList:!1,parent:P$},C$={type:n.GenericReference,id:"abort-exec-func-var-decl-main-project-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:vi},V$={type:n.GenericReference,id:"abort-exec-func-var-decl-called-by-ref-one-id",version:"1",entityType:n.FunctionDeclaration,entityId:vi},B$={constant:!0,required:!0,id:na,type:n.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Execution in progress",description:"A variable that holds an ongoing execution to abort it if needed",defaultValue:null,dataType:w$,inputs:[],outputs:[],calledByError:[],calledByEntry:[V$],calledBySuccess:[],successCalls:[Mu],errorCalls:[],x:0,y:0,readsValue:null,writesValues:[],internalCalls:[],parent:C$},_$={type:n.GenericReference,id:"long-wait-return-statement-returned-hello-string-data-type-parent-ref-id",version:"1",entityType:n.ReturnDeclaration,entityId:"long-wait-return-statement-returned-hello-string-id"},M$={type:n.GenericReference,id:"long-wait-return-statement-returned-hello-string-data-type-default-value-parent-ref-id",version:"1",entityType:n.ReturnDeclaration,entityId:"long-wait-return-statement-returned-hello-string-id"},N$={like:!1,inferred:!1,id:"long-wait-return-statement-returned-hello-string-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ae,asType:!1,isList:!1,parent:_$},L$={type:n.GenericReference,id:"long-wait-return-statement-returned-hello-string-parent-ref-id",version:"1",entityType:n.ReturnStatement,entityId:UA},j$={constant:!0,isError:!1,id:"long-wait-return-statement-returned-hello-string-id",type:n.ReturnDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Return 2",description:"A random string that is returned by the function",implements:null,defaultValue:{id:"long-wait-return-statement-returned-hello-string-data-type-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.String,value:"Hello 1",autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null,parent:M$},dataType:N$,readsValue:null,required:!0,index:0,parent:L$},U$={type:n.GenericReference,id:"long-wait-return-statement-called-by-ref-id",version:"1",entityType:n.Operation,entityId:Vu},$$={type:n.GenericReference,id:"long-wait-return-statement-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:vi},g$={type:n.ReturnStatement,id:UA,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[j$],calledByError:[],calledByEntry:[],calledBySuccess:[U$],throws:null,x:0,y:0,parent:$$},G$={type:n.GenericReference,id:"long-argument-default-value-parent-ref-id",version:"1",entityType:n.InputMap,entityId:"long-argument-map-id"},GA={type:n.GenericReference,id:"long-argument-map-parent-ref-id",version:"1",entityType:n.Operation,entityId:Vu},F$={id:"long-argument-map-id",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:ln,name:null,description:null,readsValue:null,defaultValue:{id:"long-argument-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:1500,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null,name:L.Number,parent:G$},index:0,parent:GA},x$={type:n.GenericReference,id:"long-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:vi},k$={type:n.GenericReference,id:"long-called-by-ref-one-id",version:"1",entityType:n.FunctionDeclaration,entityId:vi},Z$={id:LA,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:Io,writesValues:[Mu],index:0,parent:GA},q$={id:Vu,type:n.Operation,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Wt,inputs:[F$],outputs:[],process:Z$,successCalls:[g$],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[k$],calledBySuccess:[],error:null,parent:x$},J$={type:n.GenericReference,id:"small-wait-argument-default-value-parent-ref-id",version:"1",entityType:n.InputMap,entityId:"small-wait-argument-map-id"},S$={type:n.GenericReference,id:"small-wait-argument-map-parent-ref-id",version:"1",entityType:n.Operation,entityId:Cu},W$={id:"small-wait-argument-map-id",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:ln,name:null,description:null,readsValue:null,defaultValue:{id:"small-wait-argument-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:500,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null,name:L.Number,parent:J$},index:0,parent:S$},z$={type:n.GenericReference,id:"small-wait-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:vi},Y$={type:n.GenericReference,id:"small-wait-called-by-ref-one-id",version:"1",entityType:n.FunctionDeclaration,entityId:vi},H$={id:Cu,type:n.Operation,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Wt,inputs:[W$],outputs:[],process:null,successCalls:[gA],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[Y$],calledBySuccess:[],error:null,parent:z$},K$={type:n.GenericReference,id:"abort-execution-func-decl-parent-ref-id",version:"1",entityType:n.Project,entityId:fe},FA={id:vi,type:n.FunctionDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Test aborting execution",description:"Executes a wait and then aborts the execution of that wait",inputs:[],calls:[H$,B$,Mu,q$],implements:null,private:!1,collapsed:!1,index:null,x:0,y:0,parent:K$},X$={type:n.GenericReference,id:"call-execution-abort-func-parent-ref-id",version:"1",entityType:n.Project,entityId:fe},Q$={id:"call-execution-abort-func-id",type:n.FunctionCall,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:FA,inputs:[],process:null,outputs:[],successCalls:[],errorCalls:[],error:null,calledByError:[],calledByEntry:[],calledBySuccess:[],x:0,y:0,parent:X$},Ho="manual-hello-world-loop-func-decl-id",xA="manual-hello-world-loop-func-return-statement-id",Ji="manual-hello-world-loop-id",sa="manual-hello-world-loop-body-id",Nu="manual-hello-world-loop-break-statement-id",aa="manual-hello-world-loop-current-iteration-number-output-map-id",Lu="manual-hello-world-loop-previous-iterations-results-output-map-id",ju="assembled-hello-world-text-output-id",e4="assembled-hello-world-list-output-id",oa="iteration-number-is-equal-or-greater-than-10-condition-id",Ko="join-hello-world-and-number-operation-id",Xo="append-string-to-list-operation-id",kA="hello-world-loop-output-map-id",t4={type:n.GenericReference,id:"manual-hello-world-loop-function-declaration-output-declaration-parent-ref",version:"1",entityType:n.ReturnStatement,entityId:xA},i4={type:n.GenericReference,id:"manual-hello-world-loop-function-declaration-output-declaration-data-type-parent-ref",version:"1",entityType:n.ReturnDeclaration,entityId:"manual-hello-world-loop-function-declaration-output-declaration"},r4={like:!1,inferred:!1,id:"manual-hello-world-loop-function-declaration-output-declaration-data-type",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ae,isList:!0,asType:!1,parent:i4},n4={type:n.GenericReference,id:"manual-hello-world-loop-function-declaration-output-declaration-reads-value-ref",version:"1",entityType:n.OutputMap,entityId:kA},ZA={constant:!0,isError:!1,id:"manual-hello-world-loop-function-declaration-output-declaration",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.ReturnDeclaration,name:"Results",description:null,defaultValue:null,dataType:r4,implements:null,readsValue:n4,required:!0,index:0,parent:t4},s4={type:n.GenericReference,id:"manual-hello-world-loop-function-declaration-return-statement-called-by-ref",version:"1",entityType:n.Loop,entityId:Ji},a4={type:n.GenericReference,id:"manual-hello-world-loop-function-declaration-parent-ref",version:"1",entityType:n.FunctionDeclaration,entityId:Ho},o4={type:n.ReturnStatement,id:xA,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[ZA],calledByError:[],calledByEntry:[],calledBySuccess:[s4],parent:a4,throws:null,x:0,y:0},d4={type:n.GenericReference,id:"hello-world-loop-break-statement-ref-id",version:"1",entityType:n.BreakStatement,entityId:Nu},qA={constant:!0,isError:!1,id:"hello-world-loop-break-statement-output-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.ReturnDeclaration,name:"Iteration result",description:null,defaultValue:null,dataType:null,readsValue:null,implements:null,required:!0,index:0,parent:d4},l4={type:n.GenericReference,id:"hello-world-loop-break-statement-counter-reads-value-ref-id",version:"1",entityType:n.ArgumentDeclaration,entityId:aa},u4={type:n.GenericReference,id:"hello-world-loop-break-statement-counter-ref-id",version:"1",entityType:n.BreakStatement,entityId:Nu},JA={constant:!0,isError:!1,id:"hello-world-loop-break-statement-counter-output-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.ReturnDeclaration,name:"Iteration counter",description:null,implements:null,defaultValue:null,dataType:null,readsValue:l4,required:!0,index:1,parent:u4},p4={type:n.GenericReference,id:"hello-world-loop-break-statement-called-by-ref-id",version:"1",entityType:n.Condition,entityId:oa},c4={type:n.GenericReference,id:"hello-world-loop-break-statement-parent-ref-id",version:"1",entityType:n.Loop,entityId:Ji},f4={type:n.BreakStatement,id:Nu,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[qA,JA],calledByError:[],calledByEntry:[],calledBySuccess:[p4],parent:c4,throws:null,x:0,y:0};n.GenericReference,n.InputMap;const y4={type:n.GenericReference,id:"append-string-to-list-base-string-map-parent-ref-id",version:"1",entityType:n.Operation,entityId:Xo},h4={type:n.GenericReference,id:"base-string-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:Lu},SA={id:"append-string-to-list-base-string-map-id",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Ol,name:null,description:null,readsValue:h4,defaultValue:null,index:0,parent:y4},m4={type:n.GenericReference,id:"assembly-string-map-parent-ref-id",version:"1",entityType:n.Operation,entityId:Xo},v4={id:e4,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,writesValues:[qA],declaration:Bs,index:0,parent:m4},T4={type:n.GenericReference,id:"append-string-to-list-called-by-ref-id",version:"1",entityType:n.Condition,entityId:oa},I4={type:n.GenericReference,id:"latest-string-to-add-input-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:ju},E4={type:n.GenericReference,id:"62b4afb0-6c21-4b0f-abd3-cebef7b17c28",version:"1",entityType:n.Operation,entityId:Xo},WA={id:"latest-string-to-add-input-map-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.InputMap,declaration:Pl,name:null,description:null,readsValue:I4,defaultValue:null,index:1,parent:E4},A4={type:n.GenericReference,id:"append-string-to-list-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:Ji},b4={type:n.Operation,id:Xo,declaration:Xa,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,inputs:[SA,WA],outputs:[v4],calledByError:[],process:null,calledByEntry:[],calledBySuccess:[T4],successCalls:[],errorCalls:[],error:null,x:0,y:0,parent:A4},R4={type:n.GenericReference,id:"hello-world-loop-continue-statement-ref-id",version:"1",entityType:n.ContinueStatement,entityId:"hello-world-loop-continue-statement"},D4={type:n.GenericReference,id:"hello-world-loop-continue-statement-output-data-type-ref-id",version:"1",entityType:n.ReturnDeclaration,entityId:"hello-world-loop-continue-statement-output-id"},O4={like:!1,inferred:!1,id:"hello-world-loop-continue-statement-output-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,isList:!1,asType:!1,parent:D4},P4={type:n.GenericReference,id:"hello-world-loop-continue-statement-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:ju},zA={constant:!0,isError:!1,id:"hello-world-loop-continue-statement-output-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.ReturnDeclaration,name:"Iteration result",description:null,defaultValue:null,implements:null,dataType:O4,readsValue:P4,required:!0,index:0,parent:R4},w4={type:n.GenericReference,id:"hello-world-loop-continue-statement-called-by-ref-id",version:"1",entityType:n.Condition,entityId:oa},C4={type:n.GenericReference,id:"hello-world-loop-continue-statement-parent-ref-id",version:"1",entityType:n.Loop,entityId:Ji},V4={type:n.ContinueStatement,id:"hello-world-loop-continue-statement",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[zA],calledBySuccess:[],calledByError:[w4],calledByEntry:[],parent:C4,throws:null,x:0,y:0},B4={type:n.GenericReference,id:"iteration-number-is-equal-or-greater-than-10-condition-called-by-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:sa},_4={type:n.GenericReference,id:"iteration-number-is-equal-or-greater-than-10-condition-parent-ref-id",version:"1",entityType:n.Loop,entityId:Ji},M4={type:n.GenericReference,id:"current-iteration-number-to-check-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:aa},YA={type:n.GenericReference,id:"iteration-number-is-equal-or-greater-than-10-condition-ref-two-id",version:"1",entityType:n.Condition,entityId:oa},N4={id:"current-iteration-number-to-check-map-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.InputMap,declaration:Xn.inputs[0],name:null,description:null,readsValue:M4,index:0,defaultValue:null,parent:YA},L4={type:n.GenericReference,id:"max-num-iterations-value-map-default-value-parent-ref-id",version:"1",entityType:n.InputMap,entityId:"max-num-iterations-value-map-id"},j4={id:"max-num-iterations-value-map-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.InputMap,declaration:Xn.inputs[1],name:null,description:null,readsValue:null,index:1,defaultValue:{id:"max-num-iterations-value-map-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.Number,value:10,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null,parent:L4},parent:YA},U4={type:n.Condition,id:oa,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Xn,inputs:[N4,j4],calledByError:[],calledByEntry:[B4],calledBySuccess:[],successCalls:[f4,b4],errorCalls:[V4],x:0,y:0,parent:_4},$4={type:n.GenericReference,id:"base-string-map-ref-id",version:"1",entityType:n.InputMap,entityId:"join-hello-world-and-number-base-string-map-id"},g4={type:n.GenericReference,id:"join-hello-world-and-number-base-string-map-parent-ref-id",version:"1",entityType:n.Operation,entityId:Ko},G4={id:"join-hello-world-and-number-base-string-map-id",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Ha,name:null,description:null,readsValue:null,defaultValue:{id:"join-hello-world-and-number-base-string-map-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:"Hello world ",name:L.String,parent:$4,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null},index:0,parent:g4},F4={type:n.GenericReference,id:"assembly-string-map-parent-ref-id",version:"1",entityType:n.Operation,entityId:Ko},x4={id:ju,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,writesValues:[WA,zA],declaration:Bs,index:0,parent:F4},k4={type:n.GenericReference,id:"join-hello-world-and-number-called-by-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:sa},Z4={type:n.GenericReference,id:"current-iteration-number-input-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:aa},q4={type:n.GenericReference,id:"62b4afb0-6c21-4b0f-abd3-cebef7b17c28",version:"1",entityType:n.Operation,entityId:Ko},HA={id:"current-iteration-number-input-map-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.InputMap,declaration:Ka,name:null,description:null,readsValue:Z4,defaultValue:null,index:1,parent:q4},J4={type:n.GenericReference,id:"join-hello-world-and-number-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:Ji},S4={type:n.Operation,id:Ko,declaration:_s,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,inputs:[G4,HA],outputs:[x4],process:null,calledByError:[],calledByEntry:[k4],calledBySuccess:[],successCalls:[],errorCalls:[],error:null,x:0,y:0,parent:J4},W4={id:"manual-hello-world-loop-iterations-results-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:Lu,version:"1",entityType:n.ArgumentDeclaration},z4={like:!1,inferred:!1,id:"manual-hello-world-loop-iterations-results-declaration-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!0,entity:null,asType:!1,parent:W4},Y4={id:"manual-hello-world-loop-previous-iterations-results-output-map-parent-ref-id",type:n.GenericReference,entityId:sa,version:"1",entityType:n.FunctionDeclaration},H4={constant:!0,id:Lu,type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Previous iterations results",description:"The results of the previous iterations of the loop.",required:!0,defaultValue:null,dataType:z4,implements:null,writesValues:[SA],index:1,parent:Y4},K4={id:"manual-hello-world-loop-current-iteration-number-output-map-parent-ref-id",type:n.GenericReference,entityId:sa,version:"1",entityType:n.FunctionDeclaration},X4={id:"manual-flow-loop-current-iteration-number-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:aa,version:"1",entityType:n.ArgumentDeclaration};n.DataType;const Q4={constant:!0,id:aa,type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Current iteration number",description:"The number of the current iteration of the loop. Starts at 1.",required:!0,implements:Nl,defaultValue:null,dataType:null,writesValues:[HA,JA],index:0,parent:K4},eg={id:"manual-flow-loop-body-parent-ref-id",type:n.GenericReference,entityId:Ji,version:"1",entityType:n.Loop},tg={id:sa,type:n.FunctionDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Iteration logic trigger",description:"This function is called multiple times, once for each iteration of the loop.",inputs:[Q4,H4],calls:[U4,S4],implements:oo,collapsed:!1,private:!1,index:0,x:0,y:0,parent:eg},ig={type:n.GenericReference,id:"hello-world-loop-iteration-result-inline-output-declaration-parent-ref-id",version:"1",entityType:n.Loop,entityId:Ji},KA={id:"hello-world-loop-iteration-result-inline-output-declaration-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.ValueDescriptor,name:"Iteration result",defaultValue:null,description:null,dataType:null,required:!0,parentRelationType:N.FixedReturns,index:0,parent:ig},rg={type:n.GenericReference,id:"hello-world-loop-break-statement-output-map-parent-ref-id",version:"1",entityType:n.Loop,entityId:Ji},ng={type:n.OutputMap,id:kA,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:KA,writesValues:[ZA],index:0,parent:rg},sg={id:"manual-hello-world-loop-parent-ref-id",type:n.GenericReference,entityId:Ho,version:"1",entityType:n.FunctionDeclaration},ag={id:"manual-hello-world-loop-called-by-ref-id",type:n.GenericReference,entityId:Ho,version:"1",entityType:n.FunctionDeclaration},og={id:Ji,type:n.Loop,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:ao,inputs:[],outputsDeclarations:[KA],outputs:[ng],body:tg,successCalls:[o4],errorCalls:[],process:null,error:null,calledByError:[],calledByEntry:[ag],calledBySuccess:[],x:0,y:0,parent:sg},dg={type:n.GenericReference,id:"manual-hello-world-loop-function-declaration-parent-ref-id",version:"1",entityType:n.Project,entityId:fe},XA={type:n.FunctionDeclaration,id:Ho,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Manual hello world loop",description:null,inputs:[],calls:[og],implements:null,collapsed:!1,private:!1,index:null,x:0,y:0,parent:dg},lg={type:n.GenericReference,id:"call-hello-world-loop-parent-ref-id",version:"1",entityType:n.Project,entityId:fe},ug={id:"call-hello-world-loop-id",type:n.FunctionCall,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:XA,inputs:[],outputs:[],process:null,successCalls:[],errorCalls:[],error:null,calledByError:[],calledByEntry:[],calledBySuccess:[],x:0,y:0,parent:lg},cr="company-dto-function-declaration-id",Uu="company-dto-func-declaration-argument-dcl-id",Si="company-dto-function-company-variable-id",Lr="company-dto-function-company-dto-variable-id",ls="iterate-over-employee-list-loop-id",QA="iterate-over-employee-list-loop-employee-dto-output-map-id",$u="iterate-over-employee-list-loop-body-current-employee-argument-declaration-id",Qo="iterate-over-employee-list-loop-body-map-employee-dto-function-call-id",eb="iterate-over-employee-list-continue-statement-employee-dto-output-decl-id",tb="iterate-over-employee-list-loop-body-map-employee-dto-function-call-employee-dto-output-map-id",ib="iterate-over-employee-list-continue-statement-id",ed="iterate-over-employee-list-loop-body-id",rb="company-dto-func-declaration-return-statement-id",nb="company-dto-func-declaration-return-decl-id",sb="company-dto-func-declaration-company-variable-id-output-map-id",ab="company-dto-func-declaration-company-variable-employess-output-map-id",ob="company-dto-func-declaration-company-variable-name-output-map-id",pg="company-dto-func-declaration-company-dto-variable-input-map-id",cg="company-dto-func-declaration-company-dto-variable-employess-input-map-id",fg="company-dto-func-declaration-company-dto-variable-name-input-map-id",td="company-dto-func-declaration-owner-variable-id",yg="company-dto-func-declaration-company-dto-variable-owner-input-map-id",db="company-dto-func-declaration-company-variable-owner-output-map-id",lb="company-dto-func-declaration-owner-variable-id-output-map-id",id="company-dto-func-declaration-bank-account-variable-id",hg="company-dto-func-declaration-company-dto-variable-bank-account-input-map-id",ub="company-dto-func-declaration-company-variable-bank-account-output-map-id",pb="company-dto-func-declaration-bank-account-variable-id-output-map-id",mg={type:n.GenericReference,id:"company-dto-func-company-dto-variable-owner-input-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:lb},vg={type:n.GenericReference,id:"company-dto-func-company-dto-variable-owner-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Lr},cb={id:yg,type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:null,name:"owner_id",description:null,defaultValue:null,index:5,readsValue:mg,parent:vg},Tg={type:n.GenericReference,id:"company-dto-func-company-dto-variable-bank-account-input-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:pb},Ig={type:n.GenericReference,id:"company-dto-func-company-dto-variable-bank-account-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Lr},fb={id:hg,type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:null,name:"bank_account_id",description:null,defaultValue:null,index:4,readsValue:Tg,parent:Ig},Eg={type:n.GenericReference,id:"company-dto-func-company-dto-variable-name-input-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:ob},Ag={type:n.GenericReference,id:"company-dto-func-company-dto-variable-name-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Lr},yb={id:fg,type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:null,name:"name",description:null,defaultValue:null,index:3,readsValue:Eg,parent:Ag},bg={type:n.GenericReference,id:"company-dto-func-company-dto-variable-employess-input-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:QA},Rg={type:n.GenericReference,id:"company-dto-func-company-dto-variable-employess-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Lr},hb={id:cg,type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:null,name:"employees",description:null,defaultValue:null,index:2,readsValue:bg,parent:Rg},Dg={type:n.GenericReference,id:"company-dto-func-company-dto-variable-id-output-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:sb},Og={type:n.GenericReference,id:"company-dto-func-company-dto-variable-id-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Lr},mb={id:pg,type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:null,name:"id",description:"The ID of the company",defaultValue:null,index:1,readsValue:Dg,parent:Og},Pg={type:n.GenericReference,id:"company-dto-func-returned-company-dto-data-type-parent-ref-id",version:"1",entityType:n.ReturnDeclaration,entityId:nb},wg={like:!1,inferred:!1,id:"company-dto-func-returned-company-dto-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,asType:!1,isList:!1,parent:Pg},Cg={type:n.GenericReference,id:"company-dto-func-returned-company-dto-parent-ref-id",version:"1",entityType:n.ReturnStatement,entityId:rb},Vg={type:n.GenericReference,id:"company-dto-func-returned-company-dto-reads-value-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Lr},vb={constant:!0,isError:!1,id:nb,type:n.ReturnDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Company DTO",description:"Output the company data in the format that it will be sent through an HTTP request.",defaultValue:null,implements:null,dataType:wg,readsValue:Vg,required:!0,index:0,parent:Cg},Bg={type:n.GenericReference,id:"company-dto-func-return-statement-called-by-ref-id",version:"1",entityType:n.Operation,entityId:Lr},_g={type:n.GenericReference,id:"company-dto-func-return-statement-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:cr},Tb={type:n.ReturnStatement,id:rb,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[vb],calledByError:[],calledByEntry:[],calledBySuccess:[Bg],throws:null,x:0,y:0,parent:_g},Mg={type:n.GenericReference,id:"company-dto-func-company-dto-variable-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:cr},Ng={type:n.GenericReference,id:"company-dto-func-company-dto-variable-called-by-ref-one-id",version:"1",entityType:n.VariableDeclaration,entityId:id},Lg={type:n.GenericReference,id:"company-dto-func-company-dto-variable-called-by-ref-two-id",version:"1",entityType:n.VariableDeclaration,entityId:td},jg={type:n.GenericReference,id:"company-dto-func-company-dto-variable-called-by-ref-three-id",version:"1",entityType:n.VariableDeclaration,entityId:ls},gu={constant:!0,required:!0,id:Lr,type:n.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Company DTO",dataType:null,description:"A variable holding the data of a mapped company DTO",defaultValue:null,calledByError:[],calledByEntry:[],calledBySuccess:[Ng,Lg,jg],successCalls:[Tb],errorCalls:[],readsValue:null,writesValues:[vb],inputs:[mb,yb,fb,cb,hb],outputs:[],internalCalls:[],parent:Mg,x:0,y:0},bn="employee-dto-func-declaration-id",Gu="employee-dto-func-declaration-argument-dcl-id",Ib="employee-dto-func-declaration-return-statement-id",Eb="employee-dto-func-declaration-return-decl-id",Rn="employee-dto-func-declaration-employee-variable-id",Dn="employee-dto-func-declaration-employee-dto-variable-id",rd="employee-dto-func-declaration-manager-variable-id",Ab="employee-dto-func-declaration-employee-variable-id-output-map-id",bb="employee-dto-func-declaration-employee-variable-birth-date-output-map-id",Rb="employee-dto-func-declaration-employee-variable-department-output-map-id",Db="employee-dto-func-declaration-employee-variable-manager-output-map-id",Ob="employee-dto-func-declaration-manager-variable-id-output-map-id",Ug="employee-dto-func-declaration-employee-dto-variable-input-map-id",$g="employee-dto-func-declaration-employee-dto-variable-birth-date-input-map-id",gg="employee-dto-func-declaration-employee-dto-variable-department-input-map-id",Gg="employee-dto-func-declaration-employee-dto-variable-manager-input-map-id",Fg={type:n.GenericReference,id:"employee-dto-func-employee-dto-variable-manager-input-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:Ob},xg={type:n.GenericReference,id:"employee-dto-func-employee-dto-variable-manager-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Dn},Pb={id:Gg,type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:null,name:"manager_id",description:null,defaultValue:null,index:4,readsValue:Fg,parent:xg},kg={type:n.GenericReference,id:"employee-dto-func-employee-dto-variable-department-input-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:Rb},Zg={type:n.GenericReference,id:"employee-dto-func-employee-dto-variable-department-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Dn},wb={id:gg,type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:null,name:"department_name",description:null,defaultValue:null,index:3,readsValue:kg,parent:Zg},qg={type:n.GenericReference,id:"employee-dto-func-employee-dto-variable-birth-date-input-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:bb},Jg={type:n.GenericReference,id:"employee-dto-func-employee-dto-variable-birth-date-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Dn},Cb={id:$g,type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:null,name:"birth_date",description:null,defaultValue:null,index:2,readsValue:qg,parent:Jg},Sg={type:n.GenericReference,id:"employee-dto-func-employee-dto-variable-id-output-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:Ab},Wg={type:n.GenericReference,id:"employee-dto-func-employee-dto-variable-id-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Dn},Vb={id:Ug,type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:null,name:"id",description:"The ID of the employee",defaultValue:null,index:1,readsValue:Sg,parent:Wg},zg={type:n.GenericReference,id:"employee-dto-func-returned-employee-dto-data-type-parent-ref-id",version:"1",entityType:n.ReturnDeclaration,entityId:Eb},Yg={like:!1,inferred:!1,id:"employee-dto-func-returned-employee-dto-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,asType:!1,isList:!1,parent:zg},Hg={type:n.GenericReference,id:"employee-dto-func-returned-employee-dto-parent-ref-id",version:"1",entityType:n.ReturnStatement,entityId:Ib},Kg={type:n.GenericReference,id:"employee-dto-func-returned-employee-dto-reads-value-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Dn},Bb={constant:!0,isError:!1,id:Eb,type:n.ReturnDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Employee DTO",description:"Output the employee data in the format that it will be sent through an HTTP request.",defaultValue:null,dataType:Yg,implements:null,readsValue:Kg,required:!0,index:0,parent:Hg},Xg={type:n.GenericReference,id:"employee-dto-func-return-statement-called-by-ref-id",version:"1",entityType:n.Operation,entityId:Dn},Qg={type:n.GenericReference,id:"employee-dto-func-return-statement-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:bn},_b={type:n.ReturnStatement,id:Ib,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[Bb],calledByError:[],calledByEntry:[],calledBySuccess:[Xg],throws:null,x:0,y:0,parent:Qg},eG={type:n.GenericReference,id:"employee-dto-func-employee-dto-variable-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:bn},tG={type:n.GenericReference,id:"employee-dto-func-employee-dto-variable-called-by-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:rd},iG={constant:!0,required:!0,id:Dn,type:n.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Employee DTO",dataType:null,description:"A variable holding the data of a mapped employee DTO",defaultValue:null,calledByError:[],calledByEntry:[],calledBySuccess:[tG],successCalls:[_b],errorCalls:[],readsValue:null,writesValues:[Bb],inputs:[Vb,Cb,wb,Pb],outputs:[],internalCalls:[],parent:eG,x:0,y:0},rG={type:n.GenericReference,id:"employee-dto-func-manager-variable-id-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:rd},nG={id:Ob,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:mi.properties[0],index:0,writesValues:[Pb],parent:rG},sG={type:n.GenericReference,id:"employee-dto-func-manager-variable-data-type-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:rd},aG={like:!1,inferred:!1,id:"employee-dto-func-manager-variable-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Di,asType:!1,isList:!1,parent:sG},oG={type:n.GenericReference,id:"employee-dto-func-manager-variable-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:Db},dG={type:n.GenericReference,id:"employee-dto-func-manager-variable-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:bn};n.GenericReference,n.VariableDeclaration;const Mb={constant:!0,required:!0,id:rd,type:n.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Manager",description:"A variable holding an inherited manager",defaultValue:null,dataType:aG,calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[iG],errorCalls:[],readsValue:oG,writesValues:[],inputs:[],outputs:[nG],internalCalls:[],parent:dG,x:0,y:0},lG={type:n.GenericReference,id:"employee-dto-func-employee-variable-manager-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Rn},uG={id:Db,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:Di.properties[2],index:3,writesValues:[Mb],parent:lG},pG={type:n.GenericReference,id:"employee-dto-func-employee-variable-department-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Rn},cG={id:Rb,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:Di.properties[0],index:2,writesValues:[wb],parent:pG},fG={type:n.GenericReference,id:"employee-dto-func-employee-variable-birth-date-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Rn},yG={id:bb,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:Yt.properties[1],index:1,writesValues:[Cb],parent:fG},hG={type:n.GenericReference,id:"employee-dto-func-employee-variable-id-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Rn},mG={id:Ab,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:mi.properties[0],index:0,writesValues:[Vb],parent:hG},vG={type:n.GenericReference,id:"employee-dto-func-employee-variable-data-type-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Rn},TG={like:!1,inferred:!1,id:"employee-dto-func-employee-variable-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Di,asType:!1,isList:!1,parent:vG},IG={type:n.GenericReference,id:"employee-dto-func-employee-variable-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:bn},EG={type:n.GenericReference,id:"employee-dto-func-employee-variable-reads-value-ref-id",version:"1",entityType:n.ArgumentDeclaration,entityId:Gu},AG={type:n.GenericReference,id:"employee-dto-func-employee-variable-called-by-id",version:"1",entityType:n.FunctionDeclaration,entityId:bn},Nb={constant:!0,required:!0,id:Rn,type:n.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Company employee",dataType:TG,description:"A variable holding a company employee",calledByError:[],defaultValue:null,calledByEntry:[AG],calledBySuccess:[],successCalls:[Mb],errorCalls:[],readsValue:EG,writesValues:[],inputs:[],outputs:[mG,yG,cG,uG],internalCalls:[],parent:IG,x:0,y:0},bG={type:n.GenericReference,id:"employee-dto-func-declaration-employee-input-declaration-data-type-parent-ref-id",entityId:Gu,version:"1",entityType:n.ArgumentDeclaration},RG={type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,id:"employee-dto-func-declaration-employee-input-declaration-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Di,asType:!1,isList:!1,like:!1,inferred:!1,parent:bG},DG={type:n.GenericReference,id:"employee-dto-func-declaration-employee-input-declaration-parent-ref-id",entityId:bn,version:"1",entityType:n.FunctionDeclaration},OG={constant:!0,type:n.ArgumentDeclaration,id:Gu,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:RG,index:0,writesValues:[Nb],parent:DG},PG={type:n.GenericReference,id:"employee-dto-function-declaration-parent-ref-id",version:"1",entityType:n.Project,entityId:fe},Fu={type:n.FunctionDeclaration,id:bn,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:[OG],calls:[Nb],implements:null,collapsed:!1,private:!1,x:0,y:0,parent:PG},wG={id:"iterate-over-employee-list-continue-statement-employee-dto-output-decl-data-type-parent-ref-id",type:n.GenericReference,entityId:eb,version:"1",entityType:n.ReturnDeclaration},CG={like:!1,inferred:!1,id:"iterate-over-employee-list-continue-statement-employee-dto-output-decl-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,isList:!1,asType:!1,parent:wG},VG={id:"iterate-over-employee-list-continue-statement-employee-dto-output-decl-reads-value-ref-id",type:n.GenericReference,entityId:tb,version:"1",entityType:n.OutputMap},BG={id:"iterate-over-employee-list-continue-statement-employee-dto-output-decl-parent-ref-id",type:n.GenericReference,entityId:ib,version:"1",entityType:n.ContinueStatement},Lb={constant:!0,isError:!1,id:eb,type:n.ReturnDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Employee DTO",description:"The DTO of the employee entity.",defaultValue:null,readsValue:VG,dataType:CG,implements:null,required:!0,index:0,parent:BG},_G={id:"iterate-over-employee-list-continue-statement-called-by-ref-id",type:n.GenericReference,entityId:Qo,version:"1",entityType:n.FunctionCall},MG={id:"iterate-over-employee-list-continue-statement-parent-ref-id",type:n.GenericReference,entityId:ls,version:"1",entityType:n.Loop},NG={id:ib,type:n.ContinueStatement,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,calledByError:[],calledByEntry:[],calledBySuccess:[_G],outputs:[Lb],throws:null,x:0,y:0,parent:MG},LG={id:"iterate-over-employee-list-loop-body-map-employee-dto-function-call-employee-dto-output-map-parent-ref-id",type:n.GenericReference,entityId:Qo,version:"1",entityType:n.FunctionCall},jG={id:tb,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:_b.outputs[0],writesValues:[Lb],index:0,parent:LG},UG={id:"iterate-over-employee-list-loop-body-map-employee-dto-function-call-employee-input-map-reads-value-ref-id",type:n.GenericReference,entityId:$u,version:"1",entityType:n.ArgumentDeclaration},$G={id:"iterate-over-employee-list-loop-body-map-employee-dto-function-call-employee-input-map-parent-ref-id",type:n.GenericReference,entityId:Qo,version:"1",entityType:n.FunctionCall},jb={id:"iterate-over-employee-list-loop-body-map-employee-dto-function-call-employee-input-map-id",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:null,description:null,declaration:Fu.inputs[0],readsValue:UG,index:0,defaultValue:null,parent:$G},gG={id:"iterate-over-employee-list-loop-body-map-employee-dto-function-call-called-by-ref-id",type:n.GenericReference,entityId:ed,version:"1",entityType:n.FunctionDeclaration},GG={id:"iterate-over-employee-list-loop-body-map-employee-dto-function-call-parent-ref-id",type:n.GenericReference,entityId:ed,version:"1",entityType:n.FunctionDeclaration},FG={id:Qo,type:n.FunctionCall,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Fu,inputs:[jb],process:null,outputs:[jG],calledByError:[],calledByEntry:[gG],calledBySuccess:[],successCalls:[NG],errorCalls:[],error:null,x:0,y:0,parent:GG},xG={type:n.GenericReference,id:"iterate-over-employee-list-loop-body-current-employee-argument-declaration-data-type-parent-ref-id",entityId:$u,version:"1",entityType:n.ArgumentDeclaration},kG={like:!1,inferred:!1,id:"iterate-over-employee-list-loop-body-current-employee-argument-declaration-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Di,isList:!1,asType:!1,parent:xG},ZG={id:"iterate-over-employee-list-loop-body-current-employee-argument-declaration-parent-ref-id",type:n.GenericReference,entityId:ed,version:"1",entityType:n.FunctionDeclaration},qG={constant:!0,id:$u,type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Current employee",description:"The current employee entity being processed.",defaultValue:null,dataType:kG,required:!0,implements:uo,index:0,writesValues:[jb],parent:ZG},JG={id:"iterate-over-employee-list-loop-body-parent-ref-id",type:n.GenericReference,entityId:ls,version:"1",entityType:n.Loop},SG={id:ed,type:n.FunctionDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Iteration logic trigger",description:"This function is called once for each iteration of the loop.",inputs:[qG],calls:[FG],implements:js,collapsed:!1,private:!1,index:0,x:0,y:0,parent:JG},WG={id:"iterate-over-employee-list-loop-iteration-list-input-map-parent-ref-id",type:n.GenericReference,entityId:ls,version:"1",entityType:n.Loop},zG={id:"iterate-over-employee-list-loop-iteration-list-input-map-reads-value-ref-id",type:n.GenericReference,entityId:ab,version:"1",entityType:n.OutputMap},Ub={id:"iterate-over-employee-list-loop-iteration-list-input-map-id",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:null,description:null,declaration:Or.inputs[0],defaultValue:null,readsValue:zG,index:0,parent:WG},YG={id:"iterate-over-employee-list-loop-parent-ref-id",type:n.GenericReference,entityId:cr,version:"1",entityType:n.FunctionDeclaration},HG={id:"iterate-over-employee-list-loop-employee-dto-output-map-parent-ref-id",type:n.GenericReference,entityId:ls,version:"1",entityType:n.Loop},KG={id:QA,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:Or.outputs[0],writesValues:[hb],index:0,parent:HG},XG={type:n.GenericReference,id:"iterate-over-employee-list-loop-called-by-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Si},QG={id:ls,type:n.Loop,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Or,inputs:[Ub],successCalls:[gu],errorCalls:[],outputsDeclarations:[],outputs:[KG],body:SG,process:null,calledByError:[],calledByEntry:[],calledBySuccess:[XG],error:null,x:0,y:0,parent:YG},eF={type:n.GenericReference,id:"company-dto-func-bank-account-variable-id-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:id},tF={id:pb,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:mi.properties[0],index:0,writesValues:[fb],parent:eF},iF={type:n.GenericReference,id:"company-dto-func-bank-account-variable-data-type-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:id},rF={like:!1,inferred:!1,id:"company-dto-func-bank-account-variable-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Oi,asType:!1,isList:!1,parent:iF},nF={type:n.GenericReference,id:"company-dto-func-bank-account-variable-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:ub},sF={type:n.GenericReference,id:"company-dto-func-bank-account-variable-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:cr};n.GenericReference,n.VariableDeclaration;const $b={constant:!0,required:!0,id,type:n.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Bank account",description:"A variable holding an inherited bank account",defaultValue:null,dataType:rF,calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[gu],errorCalls:[],readsValue:nF,writesValues:[],inputs:[],outputs:[tF],internalCalls:[],parent:sF,x:0,y:0},aF={type:n.GenericReference,id:"company-dto-func-owner-variable-id-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:td},oF={id:lb,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:mi.properties[0],index:0,defaultValue:null,writesValues:[cb],parent:aF},dF={type:n.GenericReference,id:"company-dto-func-owner-variable-data-type-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:td},lF={like:!1,inferred:!1,id:"company-dto-func-owner-variable-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Oi,asType:!1,isList:!1,parent:dF},uF={type:n.GenericReference,id:"company-dto-func-owner-variable-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:db},pF={type:n.GenericReference,id:"company-dto-func-owner-variable-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:cr};n.GenericReference,n.VariableDeclaration;const gb={constant:!0,required:!0,id:td,type:n.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Owner",dataType:lF,description:"A variable holding an inherited owner",defaultValue:null,calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[gu],errorCalls:[],readsValue:uF,writesValues:[],inputs:[],outputs:[oF],internalCalls:[],parent:pF,x:0,y:0},cF={type:n.GenericReference,id:"company-dto-func-company-variable-owner-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Si},fF={id:db,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:Oi.properties[2],index:4,writesValues:[gb],parent:cF},yF={type:n.GenericReference,id:"company-dto-func-company-variable-bank-account-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Si},hF={id:ub,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:Oi.properties[2],index:3,writesValues:[$b],parent:yF},mF={type:n.GenericReference,id:"company-dto-func-company-variable-name-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Si},vF={id:ob,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:Oi.properties[0],index:2,writesValues:[yb],parent:mF},TF={type:n.GenericReference,id:"company-dto-func-company-variable-employess-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Si},IF={id:ab,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:Oi.properties[3],index:1,writesValues:[Ub],parent:TF},EF={type:n.GenericReference,id:"company-dto-func-company-variable-id-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Si},AF={id:sb,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:mi.properties[0],index:0,writesValues:[mb],parent:EF},bF={type:n.GenericReference,id:"company-dto-func-company-variable-data-type-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Si},RF={like:!1,inferred:!1,id:"company-dto-func-company-variable-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Oi,asType:!1,isList:!1,parent:bF},DF={type:n.GenericReference,id:"company-dto-func-company-variable-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:cr},OF={type:n.GenericReference,id:"company-dto-func-company-variable-reads-value-ref-id",version:"1",entityType:n.ArgumentDeclaration,entityId:Uu},PF={type:n.GenericReference,id:"company-dto-func-company-variable-called-by-id",version:"1",entityType:n.FunctionDeclaration,entityId:cr},Gb={constant:!0,required:!0,id:Si,type:n.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Company",dataType:RF,description:"A variable holding a company",defaultValue:null,calledByError:[],calledByEntry:[PF],calledBySuccess:[],successCalls:[$b,gb,QG],errorCalls:[],readsValue:OF,writesValues:[],inputs:[],outputs:[AF,IF,vF,hF,fF],internalCalls:[],parent:DF,x:0,y:0},wF={type:n.GenericReference,id:"company-dto-func-declaration-company-input-declaration-data-type-parent-ref-id",entityId:Uu,version:"1",entityType:n.ArgumentDeclaration},CF={type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,id:"company-dto-func-declaration-company-input-declaration-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Oi,asType:!1,isList:!1,like:!1,inferred:!1,parent:wF},VF={type:n.GenericReference,id:"company-dto-func-declaration-company-input-declaration-parent-ref-id",entityId:cr,version:"1",entityType:n.FunctionDeclaration},BF={constant:!0,type:n.ArgumentDeclaration,id:Uu,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:CF,index:0,writesValues:[Gb],parent:VF},_F={type:n.GenericReference,id:"company-dto-function-declaration-parent-ref-id",version:"1",entityType:n.Project,entityId:fe},xu={type:n.FunctionDeclaration,id:cr,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:[BF],calls:[Gb],implements:null,index:null,collapsed:!1,private:!1,x:0,y:0,parent:_F},da="exec-in-parallel-operation-call-id",la="exec-sequentially-operation-call-id",Ht="concurrency-and-wait-function-declaration-id",Fb="concurrency-and-wait-return-statement-id",xb="concurrency-and-wait-return-declaration-id",ku="exec-in-parallel-argument-map-id",kb="exec-sequentially-argument-map-id",Zu="wait-for-2-seconds-operation-id",Zb="wait-for-2-seconds-argument-map-id",qu="map-company-dto-function-call-id",qb="map-company-dto-function-call-company-dto-output-map-id",nd="company-dto-variable-one-id",Ju="company-dto-variable-one-instance-id",Jb="company-dto-variable-two-id",MF={type:n.GenericReference,id:"returned-company-dto-data-type-parent-ref-id",version:"1",entityType:n.ReturnDeclaration,entityId:xb},NF={like:!1,inferred:!1,id:"returned-company-dto-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Oi,asType:!1,isList:!1,parent:MF},LF={type:n.GenericReference,id:"returned-company-dto-parent-ref-id",version:"1",entityType:n.ReturnStatement,entityId:Fb},jF={type:n.GenericReference,id:"returned-company-dto-reads-value-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Jb},Sb={constant:!0,isError:!1,id:xb,type:n.ReturnDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Company DTO",description:"Output the company data in the format that it will be sent through an HTTP request.",defaultValue:null,dataType:NF,implements:null,readsValue:jF,required:!0,index:0,parent:LF},UF={type:n.GenericReference,id:"concurrency-and-wait-return-statement-called-by-ref-id",version:"1",entityType:n.Operation,entityId:Zu},$F={type:n.GenericReference,id:"concurrency-and-wait-return-statement-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:Ht},gF={type:n.ReturnStatement,id:Fb,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[Sb],calledByError:[],calledByEntry:[],calledBySuccess:[UF],throws:null,x:0,y:0,parent:$F},GF={type:n.GenericReference,id:"company-dto-variable-two-called-by-ref-id",version:"1",entityType:n.VariableInstance,entityId:Ju},FF={type:n.GenericReference,id:"company-dto-variable-two-reads-value-ref-id",version:"1",entityType:n.VariableInstance,entityId:Ju},xF={type:n.GenericReference,id:"company-dto-variable-two-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:Ht},Wb={constant:!0,required:!0,id:Jb,type:n.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Company DTO",description:null,defaultValue:null,dataType:null,inputs:[],outputs:[],successCalls:[],errorCalls:[],calledByError:[],calledByEntry:[],calledBySuccess:[GF],internalCalls:[],writesValues:[Sb],readsValue:FF,x:0,y:0,parent:xF},kF={type:n.GenericReference,id:"company-dto-variable-one-instance-called-by-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:nd},ZF={type:n.GenericReference,id:"company-dto-variable-one-instance-reads-value-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:nd},qF={type:n.GenericReference,id:"company-dto-variable-one-instance-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:Ht},JF={type:n.GenericReference,id:"company-dto-variable-one-instance-declaration-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:nd},zb={id:Ju,type:n.VariableInstance,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:JF,inputs:[],outputs:[],successCalls:[Wb],errorCalls:[],defaultValue:null,calledByError:[],calledByEntry:[],calledBySuccess:[kF],internalCalls:[],writesValues:[Wb],readsValue:ZF,x:0,y:0,parent:qF},SF={type:n.GenericReference,id:"company-dto-variable-one-called-by-ref-id",version:"1",entityType:n.FunctionCall,entityId:qu},WF={type:n.GenericReference,id:"company-dto-variable-one-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:qb},zF={type:n.GenericReference,id:"company-dto-variable-one-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:Ht},Yb={constant:!0,required:!0,id:nd,type:n.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Company DTO",description:null,defaultValue:null,dataType:null,inputs:[],outputs:[],successCalls:[zb],errorCalls:[],calledByError:[],calledByEntry:[],calledBySuccess:[SF],internalCalls:[],writesValues:[zb],readsValue:WF,x:0,y:0,parent:zF},Hb={type:n.GenericReference,id:"map-company-dto-function-call-company-input-map-parent-ref-id",version:"1",entityType:n.FunctionCall,entityId:qu},YF={id:"map-company-dto-function-call-company-input-map-id",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:xu.inputs[0],name:null,description:null,defaultValue:null,index:0,readsValue:null,parent:Hb},HF={id:qb,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:Tb.outputs[0],writesValues:[Yb],index:0,parent:Hb},KF={id:"map-company-dto-function-call-called-by-ref-id",type:n.GenericReference,version:"1",entityType:n.FunctionDeclaration,entityId:Ht},XF={id:"map-company-dto-function-call-parent-ref-id",type:n.GenericReference,version:"1",entityType:n.FunctionDeclaration,entityId:Ht},QF={id:qu,type:n.FunctionCall,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:xu,successCalls:[Yb],process:null,errorCalls:[],inputs:[YF],outputs:[HF],calledByError:[],calledByEntry:[KF],calledBySuccess:[],parent:XF,x:0,y:0,error:null},ex={type:n.GenericReference,id:"last-timestamp-variable-datatype-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Eu},tx={type:n.GenericReference,id:"last-timestamp-variable-default-value-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Eu},ix={like:!1,inferred:!1,id:"last-timestamp-variable-datatype-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,entity:Gi,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,asType:!1,isList:!1,parent:ex},rx={type:n.GenericReference,id:"last-timestamp-variable-main-project-ref-id",version:"1",entityType:n.Project,entityId:fe},Su={constant:!0,required:!0,id:Eu,type:n.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Last registered current time",description:"A test variable that holds the last current date and time that was registered.",defaultValue:{id:"last-timestamp-variable-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.Date,value:null,autogeneration:{type:vt.CurrentDateAndTime,rangeStart:null,rangeEnd:null},valueAsTypeList:null,valueAsTypeSingle:null,parent:tx},dataType:ix,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],x:0,y:0,readsValue:null,writesValues:[],internalCalls:[],parent:rx},nx={type:n.GenericReference,id:"wait-for-2-seconds-argument-default-value-parent-ref-id",version:"1",entityType:n.InputMap,entityId:Zb},sx={type:n.GenericReference,id:"wait-for-2-seconds-argument-map-parent-ref-id",version:"1",entityType:n.Operation,entityId:Zu},ax={id:Zb,type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:ln,name:null,description:null,readsValue:null,defaultValue:{id:"wait-for-2-seconds-argument-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:2e3,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null,name:L.Number,parent:nx},index:0,parent:sx},ox={type:n.GenericReference,id:"wait-for-2-seconds-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:Ht},dx={type:n.GenericReference,id:"wait-for-2-seconds-called-by-ref-one-id",version:"1",entityType:n.Operation,entityId:la},lx={type:n.GenericReference,id:"wait-for-2-seconds-called-by-ref-two-id",version:"1",entityType:n.Operation,entityId:da},Kb={id:Zu,type:n.Operation,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Vi,inputs:[ax],outputs:[],process:null,successCalls:[gF],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[],calledBySuccess:[dx,lx],error:null,parent:ox},ux={type:n.GenericReference,id:"wait-for-random-amount-argument-default-value-parent-ref-id",version:"1",entityType:n.InputMap,entityId:"wait-for-random-amount-input-map-id"},px={type:n.GenericReference,id:"wait-for-random-amount-argument-map-parent-ref-id",version:"1",entityType:n.Operation,entityId:"wait-for-random-amount-id"},cx={id:"wait-for-random-amount-input-map-id",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:ln,name:null,description:null,readsValue:null,defaultValue:{id:"wait-for-random-amount-argument-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:null,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:{type:vt.Random,rangeStart:1e3,rangeEnd:4e3},name:L.Number,parent:ux},index:0,parent:px},fx={type:n.GenericReference,id:"wait-for-random-amount-parent-ref-id",version:"1",entityType:n.Project,entityId:fe},us={id:"wait-for-random-amount-id",type:n.Operation,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Vi,inputs:[cx],process:null,outputs:[],successCalls:[],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[],calledBySuccess:[],error:null,parent:fx},Wu="list-of-functions-variable-id",yx={type:n.GenericReference,id:"list-of-functions-variable-action-descriptor-dynamic-argument-parent-ref-id",version:"1",entityType:n.ActionDescriptor,entityId:"list-of-functions-variable-action-descriptor-id"},hx={id:"list-of-functions-variable-action-descriptor-dynamic-argument-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Any input value",description:"Any input value that can be passed to the action",defaultValue:null,index:0,required:!1,dataType:null,parent:yx},mx={type:n.GenericReference,id:"list-of-functions-variable-action-descriptor-dynamic-return-parent-ref-id",version:"1",entityType:n.ActionDescriptor,entityId:"list-of-functions-variable-action-descriptor-id"},vx={id:"list-of-functions-variable-action-descriptor-dynamic-return-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Any output value",description:"Any output value that can be returned to the action",defaultValue:null,index:0,required:!1,dataType:null,parent:mx},Tx={type:n.GenericReference,id:"list-of-functions-variable-data-type-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Wu},Ix={type:n.GenericReference,id:"list-of-functions-variable-action-descriptor-parent-ref-id",version:"1",entityType:n.DataType,entityId:"list-of-functions-variable-data-type-id"},Ex={id:"list-of-functions-variable-action-descriptor-id",type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Action to execute",description:"An action of any type, to be executed. It can contain any number of inputs and outputs.",inputs:[hx],error:null,outputs:[vx],parent:Ix},Ax={type:n.GenericReference,id:"list-of-functions-variable-data-type-default-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Wu},bx={like:!1,inferred:!1,id:"list-of-functions-variable-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Ex,asType:!1,isList:!0,parent:Tx},Rx={type:n.GenericReference,id:"list-of-functions-variable-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:Ht};n.GenericReference,n.InputMap;const Dx={type:n.GenericReference,id:"list-of-functions-variable-writes-value-one-ref-id",version:"1",entityType:n.InputMap,entityId:kb},Ox={type:n.GenericReference,id:"list-of-functions-variable-writes-value-two-ref-id",version:"1",entityType:n.InputMap,entityId:ku},Xb={constant:!0,required:!0,id:Wu,type:n.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"List of functions to execute",description:"A list of functions to be executed in parallel",defaultValue:{id:"list-of-functions-variable-data-type-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.ActionDescriptor,value:null,valueAsTypeSingle:null,valueAsTypeList:[us,us,us,us,us],autogeneration:null,parent:Ax},dataType:bx,parent:Rx,readsValue:null,writesValues:[Dx,Ox],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],inputs:[],outputs:[],internalCalls:[],x:0,y:0},Px={type:n.GenericReference,id:"exec-in-parallel-return-map-parent-ref-id",version:"1",entityType:n.Operation,entityId:da},wx={type:n.GenericReference,id:"exec-in-parallel-result-variable-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:Ht},Cx={type:n.GenericReference,id:"exec-in-parallel-result-variable-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:"exec-in-parallel-return-map-id"},Vx={type:n.GenericReference,id:"exec-in-parallel-result-variable-called-by-ref-id",version:"1",entityType:n.Operation,entityId:da},Qb={id:"exec-in-parallel-result-variable-id",type:n.VariableInstance,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Su,readsValue:Cx,writesValues:[],defaultValue:null,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[Vx],successCalls:[],errorCalls:[],internalCalls:[],parent:wx,x:0,y:0},Bx={id:"exec-in-parallel-return-map-id",type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:Cl,writesValues:[Qb],index:0,parent:Px},_x={type:n.GenericReference,id:"exec-in-parallel-argument-map-parent-ref-id",version:"1",entityType:n.Operation,entityId:da},Mx={id:ku,type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:wl,name:null,description:null,readsValue:Xb,defaultValue:null,index:0,parent:_x},Nx={type:n.GenericReference,id:"exec-in-parallel-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:Ht},Lx={type:n.GenericReference,id:"exec-in-parallel-called-by-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:Ht},jx={process:null,id:da,type:n.Operation,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Vi,inputs:[Mx],outputs:[Bx],successCalls:[Kb,Qb],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[Lx],calledBySuccess:[],error:null,parent:Nx},Ux={type:n.GenericReference,id:"exec-sequentially-return-map-parent-ref-id",version:"1",entityType:n.Operation,entityId:la},$x={type:n.GenericReference,id:"exec-sequentially-result-variable-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:Ht},gx={type:n.GenericReference,id:"exec-sequentially-result-variable-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:"exec-sequentially-return-map-id"},Gx={type:n.GenericReference,id:"exec-sequentially-result-variable-called-by-ref-id",version:"1",entityType:n.Operation,entityId:la},eR={id:"exec-sequentially-result-variable-id",type:n.VariableInstance,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Su,readsValue:gx,defaultValue:null,writesValues:[],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[Gx],successCalls:[],errorCalls:[],internalCalls:[],parent:$x,x:0,y:0},Fx={id:"exec-sequentially-return-map-id",type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:Bl,writesValues:[eR],index:0,parent:Ux},xx={type:n.GenericReference,id:"exec-sequentially-argument-map-parent-ref-id",version:"1",entityType:n.Operation,entityId:la},kx={id:kb,type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Vl,name:null,description:null,readsValue:Xb,defaultValue:null,index:0,parent:xx},Zx={type:n.GenericReference,id:"exec-sequentially-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:Ht},qx={type:n.GenericReference,id:"exec-sequentially-called-by-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:Ht},Jx={id:la,type:n.Operation,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:or,inputs:[kx],process:null,outputs:[Fx],successCalls:[Kb,eR],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[qx],calledBySuccess:[],error:null,parent:Zx},Sx={type:n.GenericReference,id:"concurrency-and-wait-parent-ref-id",version:"1",entityType:n.Project,entityId:fe},Wx={type:n.FunctionDeclaration,id:Ht,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:[Jx,jx,QF],implements:null,index:null,collapsed:!1,private:!1,x:0,y:0,parent:Sx},zx={type:n.GenericReference,id:"3521f2c8-a5c0-419c-8808-4fc6a73d0b78",version:"1",entityType:n.ReturnDeclaration,entityId:"e1ec31f0-25ca-42ac-a4c4-c9ec2255f55b"},Yx={like:!1,inferred:!1,id:"ce8b9a30-afe9-4d4f-879f-1677efca2c47",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Oi,isList:!1,asType:!1,parent:zx},Hx={type:n.GenericReference,id:"8ee66e38-b060-474e-a503-594063a8ec24",version:"1",entityType:n.ReturnStatement,entityId:"40a23a98-d3b2-42b1-9652-b33779ad15aa"},Kx={constant:!0,isError:!1,id:"e1ec31f0-25ca-42ac-a4c4-c9ec2255f55b",type:n.ReturnDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Created company",description:"The new company that was created",defaultValue:null,implements:null,dataType:Yx,readsValue:null,required:!0,index:0,parent:Hx},Xx={type:n.GenericReference,id:"9cb3c1e4-7250-4be6-be2a-69c2dd366d6f",version:"1",entityType:n.FunctionDeclaration,entityId:"5059c093-eda2-4efc-b7b4-aaaadd4d44de"},Qx={type:n.GenericReference,id:"c065fcdd-e054-4f95-941c-7eaa65c35d04",version:"1",entityType:n.FunctionDeclaration,entityId:"5059c093-eda2-4efc-b7b4-aaaadd4d44de"},ek={type:n.ReturnStatement,id:"40a23a98-d3b2-42b1-9652-b33779ad15aa",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[Kx],calledByError:[],calledByEntry:[Qx],calledBySuccess:[],throws:null,x:0,y:0,parent:Xx},tk={type:n.GenericReference,id:"312ef836-9e40-4d57-b177-03b7145ed074",version:"1",entityType:n.Project,entityId:fe},ik={type:n.FunctionDeclaration,id:"5059c093-eda2-4efc-b7b4-aaaadd4d44de",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Create new company",description:null,inputs:[],calls:[ek],index:null,implements:null,collapsed:!1,private:!1,x:0,y:0,parent:tk},zu="get-current-date-and-time-func-decl-id",tR="get-current-date-and-time-return-statement-id",Yu="get-current-date-and-time-return-declaration-id",rk="get-current-date-and-time-return-declaration-data-type-id",nk={type:n.GenericReference,id:"get-current-date-and-time-return-declaration-data-type-value-parent-ref-id",version:"1",entityType:n.ReturnDeclaration,entityId:Yu},sk={type:n.GenericReference,id:"get-current-date-and-time-return-declaration-data-type-parent-ref-id",version:"1",entityType:n.ReturnDeclaration,entityId:Yu},ak={type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,id:rk,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Gi,asType:!1,isList:!1,like:!1,inferred:!1,parent:sk},ok={type:n.GenericReference,id:"get-current-date-and-time-return-declaration-parent-ref-id",version:"1",entityType:n.ReturnStatement,entityId:tR};n.ReturnDeclaration,n.LiteralValue,L.Date,vt.CurrentDateAndTime;const dk={type:n.GenericReference,id:"get-current-date-and-time-return-statement-called-by-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:zu},lk={type:n.GenericReference,id:"get-current-date-and-time-return-statement-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:zu};n.ReturnStatement;const uk={type:n.GenericReference,id:"concurrency-and-wait-parent-ref-id",version:"1",entityType:n.Project,entityId:fe},pk={type:n.FunctionDeclaration,id:zu,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Get current date and time",description:"Generates and returns the current date and time at the time of the execution",inputs:[],calls:[],implements:null,index:null,collapsed:!1,private:!1,x:0,y:0,parent:uk},ck={type:n.GenericReference,id:"a2db26be-57f2-48e5-9769-cdbf0d95dc7c",version:"1",entityType:n.VariableDeclaration,entityId:"d0e9f1f3-7e9f-4e1f-8d8e-7b4b3e6c6a6a"},fk={like:!1,inferred:!1,id:"c3e9d5f0-204f-45f9-85f7-e1b56b468388",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,asType:!1,isList:!1,parent:ck},yk={type:n.GenericReference,id:"692122c5-610a-4504-90dd-f5a5202d116c",version:"1",entityType:n.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},hk={type:n.GenericReference,id:"do-math-func-return-one-called-by",version:"1",entityType:n.Operation,entityId:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e"},mk={type:n.GenericReference,id:"6dceb501-be5b-4252-afb4-3c0d08abba33",version:"1",entityType:n.OutputMap,entityId:"64752080-ee0f-4cfe-9897-a0668f2b2aca"},iR={constant:!0,required:!0,type:n.VariableDeclaration,id:"d0e9f1f3-7e9f-4e1f-8d8e-7b4b3e6c6a6a",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Result",dataType:fk,description:null,defaultValue:null,readsValue:mk,writesValues:[],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[hk],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:yk},vk={type:n.GenericReference,id:"5440f523-af38-4981-8035-89d162fe8041",version:"1",entityType:n.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},Tk={type:n.GenericReference,id:"8c482c35-e674-4713-a1dd-63c3d13b611c",version:"1",entityType:n.OutputMap,entityId:"64752080-ee0f-4cfe-9897-a0668f2b2aca"},Ik={type:n.GenericReference,id:"c0a299cd-5869-4930-8cf0-90e3ceb8a903",version:"1",entityType:n.VariableDeclaration,entityId:"46b2fe23-b417-4887-a35d-09b186679172"},Ek={like:!1,inferred:!1,id:"51c0c1df-2ee3-41df-ae52-ac512d8cf795",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,isList:!1,asType:!1,parent:Ik},Ak={type:n.GenericReference,id:"do-math-func-return-two-called-by",version:"1",entityType:n.Operation,entityId:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e"},rR={constant:!0,required:!0,type:n.VariableDeclaration,id:"46b2fe23-b417-4887-a35d-09b186679172",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Total",description:null,defaultValue:null,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[Ak],successCalls:[],errorCalls:[],dataType:Ek,readsValue:Tk,writesValues:[],internalCalls:[],parent:vk,x:0,y:0},nR="do-math-return-statement-id",Hu="do-math-return-declaration-id",bk={type:n.GenericReference,id:"do-math-func-var-to-return-one-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:"do-math-func-var-to-return-one-id"},Rk={like:!1,inferred:!1,id:"do-math-func-var-to-return-one-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,asType:!1,isList:!1,parent:bk},Dk={type:n.GenericReference,id:"do-math-func-decl-ref-two-id",version:"1",entityType:n.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},Ok={type:n.GenericReference,id:"do-math-func-var-to-return-one-map-ref-id",version:"1",entityType:n.ReturnDeclaration,entityId:Hu},Pk={constant:!0,required:!0,type:n.VariableDeclaration,id:"do-math-func-var-to-return-one-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:null,name:"Fixed result",defaultValue:null,dataType:Rk,readsValue:null,writesValues:[Ok],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:Dk},wk={type:n.GenericReference,id:"96ec244e-594b-45f7-802b-6dc3056920f6",version:"1",entityType:n.ReturnStatement,entityId:nR},Ck={type:n.GenericReference,id:"d120c0cc-9d13-4e45-90e2-4e1ee825ca46",version:"1",entityType:n.ReturnDeclaration,entityId:Hu},Vk={like:!1,inferred:!1,id:"da91aa23-9985-49ac-a8bf-9d623ba1ba8f",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,isList:!1,asType:!1,parent:Ck},Bk={constant:!0,isError:!1,id:Hu,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.ReturnDeclaration,name:"Result",description:null,implements:null,defaultValue:null,dataType:Vk,readsValue:Pk,required:!0,index:0,parent:wk},_k={type:n.GenericReference,id:"57fd93e4-93a1-484e-82eb-4dd15d2d0e24",version:"1",entityType:n.Operation,entityId:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e"},Mk={type:n.GenericReference,id:"0a86e8d5-ab21-476e-a482-b928cbf351e3",version:"1",entityType:n.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},Nk={type:n.ReturnStatement,id:nR,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[Bk],calledByError:[],calledByEntry:[],calledBySuccess:[_k],parent:Mk,throws:null,x:0,y:0},sR={type:n.GenericReference,id:"6e4d776e-6af2-4321-b630-c78110fd677c",version:"1",entityType:n.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},Lk={type:n.GenericReference,id:"5b60955b-2486-40b6-bb24-ffd97ccd8902",version:"1",entityType:n.Operation,entityId:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e"},jk={type:n.GenericReference,id:"1a49923f-bc6f-453f-a438-e74e5475c2a9",version:"1",entityType:n.Operation,entityId:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e"},Uk={type:n.GenericReference,id:"02bfde0a-b757-4072-9613-6e9c7c9a424a",version:"1",entityType:n.ArgumentDeclaration,entityId:"d8895765-f705-457e-85fa-25d130926769"},aR={id:"928953b0-0e3f-4d8c-ae5a-84620b4b8c68",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.InputMap,declaration:yl,name:null,description:null,readsValue:Uk,defaultValue:null,index:0,parent:jk},$k={id:"64752080-ee0f-4cfe-9897-a0668f2b2aca",type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:vl,writesValues:[iR,rR],index:0,parent:Lk},gk={type:n.GenericReference,id:"d235a7f6-07ff-4f35-98d2-8f42dd59cf9f",version:"1",entityType:n.Operation,entityId:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e"},Gk={id:"8827e8e9-9381-4ad7-8f61-5419c23c9136",type:n.GenericReference,version:"1",entityType:n.VariableDeclaration,entityId:"72a338d8-0183-4ca2-8760-227517854595"},oR={id:"a5525249-0eb5-472b-97bc-5e4cc0d75aee",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.InputMap,declaration:hl,name:null,description:null,readsValue:Gk,defaultValue:null,index:1,parent:gk},Fk={type:n.Operation,id:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e",declaration:Ya,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,inputs:[aR,oR],outputs:[$k],calledByError:[],calledByEntry:[sR],calledBySuccess:[],process:null,successCalls:[Nk,iR,rR],errorCalls:[],parent:sR,error:null,x:0,y:0},xk={type:n.GenericReference,id:"a2c40226-2270-4963-a865-c777ba79c551",version:"1",entityType:n.VariableDeclaration,entityId:"72a338d8-0183-4ca2-8760-227517854595"},kk={id:"f47731b3-f278-4ab5-aeb2-24519c1119fb",type:n.GenericReference,entityId:"72a338d8-0183-4ca2-8760-227517854595",version:"1",entityType:n.ArgumentDeclaration},dR={like:!1,inferred:!1,id:"a350a9e9-25ee-477f-a83d-9e98ed2451662",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,isList:!1,asType:!1,parent:kk},Zk={type:n.GenericReference,id:"5f5d8dd0-7f3b-40cd-9f84-83d976887eaf",version:"1",entityType:n.ArgumentDeclaration,entityId:"649bf0a4-6532-44aa-9818-a03d1c6564e9"},qk={type:n.GenericReference,id:"ca018d0f-a8b3-4c7e-a408-c8b372d04aff",version:"1",entityType:n.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},Jk={type:n.GenericReference,id:"do-math-func-var-called-by-ref",version:"1",entityType:n.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},lR={constant:!0,required:!0,id:"72a338d8-0183-4ca2-8760-227517854595",type:n.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Z",description:null,defaultValue:{id:"do-math-func-argument-two-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:1,name:L.Number,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null,parent:xk},dataType:dR,inputs:[],outputs:[],calledByError:[],calledByEntry:[Jk],calledBySuccess:[],successCalls:[],errorCalls:[],readsValue:Zk,writesValues:[oR],internalCalls:[],x:0,y:0,parent:qk},Sk={version:"1",entityType:n.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b",type:n.GenericReference,id:"af0cf105-4075-425f-aecc-b25d3600fcc4"},Wk={constant:!0,id:"649bf0a4-6532-44aa-9818-a03d1c6564e9",type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Z",description:"The number to add",defaultValue:null,dataType:dR,implements:null,writesValues:[lR],required:!0,index:1,parent:Sk},zk={type:n.GenericReference,id:"56953b5d-3e43-4dea-a62c-f3e868ba81bb",version:"1",entityType:n.Project,entityId:fe},Yk={id:"868defc8-5c95-48ed-942d-257e8b9b9b00",type:n.GenericReference,version:"1",entityType:n.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},Hk={type:n.GenericReference,id:"35167664-a793-49f1-9eaf-fb57eac30897",version:"1",entityType:n.VariableDeclaration,entityId:"d8895765-f705-457e-85fa-25d130926769"},Kk={id:"d47ceef6-be6f-40f1-a7b3-c73c8d8a6c6a",type:n.GenericReference,entityId:"d8895765-f705-457e-85fa-25d130926769",version:"1",entityType:n.ArgumentDeclaration},Xk={like:!1,inferred:!1,id:"55b12914-91b1-48b7-9a3e-9c5d0d2a2ec2",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,isList:!1,asType:!1,parent:Kk},Qk={constant:!0,id:"d8895765-f705-457e-85fa-25d130926769",type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"N",dataType:Xk,description:"The number to add",implements:null,defaultValue:{id:"do-math-func-argument-one-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:5,name:L.Number,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null,parent:Hk},writesValues:[aR],required:!0,index:0,parent:Yk},e9={type:n.FunctionDeclaration,id:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Do math",description:"This function does math",inputs:[Qk,Wk],calls:[Fk,lR],implements:null,index:null,collapsed:!1,private:!1,x:0,y:0,parent:zk},Kt="replace-bank-account-in-company-func-declaration-id",Ku="company-entity-to-modify-arg-declaration-id",Xu="account-number-to-create-arg-decl-id",ps="company-main-variable-id",cs="search-person-by-id-id",uR="new-bank-account-owner-arg-decl-id",pR="search-person-by-id-output-declaration-id",Qu="search-person-by-id-output-entity-map-id",ua="person-not-empty-condition-id",sd="create-new-bank-account-instance-operation-id",cR="create-new-bank-account-instance-operation-output-entity-map-id",fR="company-bank-account-output-map-id",ep="old-bank-account-var-declaration-id",yR="old-bank-account-var-instance-id",hR="company-variable-instance-id",tp="delete-bank-account-internal-call-id",pa="new-bank-account-data-variable-declaration-id",t9={type:n.GenericReference,id:"company-variable-instance-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:Kt},i9={type:n.GenericReference,id:"company-variable-instance-called-by-ref-id",version:"1",entityType:n.InternalCall,entityId:tp},r9={type:n.GenericReference,id:"company-variable-instance-declaration-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:ps},n9={type:n.GenericReference,id:"bank-account-input-map-parent-ref-id",version:"1",entityType:n.VariableInstance,entityId:hR},s9={type:n.GenericReference,id:"bank-account-input-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:cR},mR={type:n.InputMap,id:"bank-account-input-map-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,readsValue:s9,declaration:Pu,name:null,description:null,index:0,defaultValue:null,parent:n9},a9={type:n.VariableInstance,id:hR,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:r9,inputs:[mR],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[i9],successCalls:[],errorCalls:[],internalCalls:[],parent:t9,readsValue:null,writesValues:[],x:0,y:0},o9={type:n.GenericReference,id:"bank-account-variable-data-type-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:ps},d9={type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,id:"bank-account-variable-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:as,asType:!1,isList:!1,like:!1,inferred:!1,parent:o9},l9={type:n.GenericReference,id:"bank-account-variable-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:fR},u9={type:n.GenericReference,id:"bank-account-variable-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:Kt},p9={type:n.GenericReference,id:"bank-account-variable-called-by-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:ps},c9={type:n.GenericReference,id:"delete-bank-account-internal-call-called-by-ref-id",version:"1",entityType:n.Operation,entityId:sd};n.GenericReference,n.VariableInstance;const f9={type:n.GenericReference,id:"delete-bank-account-internal-call-called-by-ref-two-id",version:"1",entityType:n.VariableDeclaration,entityId:ep},y9={type:n.GenericReference,id:"old-bank-account-variable-trigger-delete-decl-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:ep},h9={type:n.GenericReference,id:"bank-account-variable-parent-ref-two-id",version:"1",entityType:n.FunctionDeclaration,entityId:Kt},m9={type:n.GenericReference,id:"old-bank-account-variable-trigger-delete-internal-call-ref-id",version:"1",entityType:n.InternalCall,entityId:tp},v9={type:n.VariableInstance,id:yR,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:y9,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],internalCalls:[m9],errorCalls:[],parent:h9,readsValue:null,writesValues:[],x:0,y:0},vR={process:null,type:n.InternalCall,id:tp,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:eu,index:0,successCalls:[a9],errorCalls:[],inputs:[],outputs:[],error:null,calledByError:[],calledByEntry:[],calledBySuccess:[c9,f9],parent:v9},TR={constant:!0,required:!0,type:n.VariableDeclaration,id:ep,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:d9,defaultValue:null,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[p9],successCalls:[vR],internalCalls:[],errorCalls:[],parent:u9,readsValue:l9,writesValues:[],x:0,y:0},T9={type:n.GenericReference,id:"company-variable-declaration-data-type-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:ps},I9={type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,id:"company-variable-declaration-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Oi,asType:!1,isList:!1,like:!1,inferred:!1,parent:T9},E9={type:n.GenericReference,id:"company-variable-declaration-reads-value-ref-id",version:"1",entityType:n.ArgumentDeclaration,entityId:Ku},A9={type:n.GenericReference,id:"company-variable-declaration-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:Kt},b9={type:n.GenericReference,id:"company-variable-declaration-called-by-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:Kt},R9={type:n.GenericReference,id:"company-bank-account-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:ps},D9={id:fR,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.OutputMap,defaultValue:null,declaration:Pu,index:0,parent:R9,writesValues:[TR]},IR={constant:!0,required:!0,type:n.VariableDeclaration,id:ps,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:I9,inputs:[],outputs:[D9],calledByError:[],calledByEntry:[b9],calledBySuccess:[],successCalls:[TR],errorCalls:[],parent:A9,internalCalls:[],readsValue:E9,writesValues:[],x:0,y:0},O9={type:n.GenericReference,id:"create-new-bank-account-account-owner-dynamic-input-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:pa},P9={id:"create-new-bank-account-account-owner-dynamic-input-map-reads-value-ref-id",type:n.GenericReference,version:"1",entityType:n.OutputMap,entityId:Qu},ER={id:"create-new-bank-account-account-owner-dynamic-input-map-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.InputMap,declaration:null,name:"Account owner",description:null,readsValue:P9,index:1,defaultValue:null,parent:O9},w9={id:"create-new-bank-account-account-number-dynamic-input-map-reads-value-ref-id",type:n.GenericReference,version:"1",entityType:n.ArgumentDeclaration,entityId:Xu},C9={type:n.GenericReference,id:"create-new-bank-account-account-number-dynamic-input-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:pa},AR={id:"create-new-bank-account-account-number-dynamic-input-map-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.InputMap,declaration:null,name:"Account number",description:null,readsValue:w9,defaultValue:null,index:0,parent:C9},bR={type:n.GenericReference,id:"create-new-bank-account-instance-operation-entity-to-create-input-map-parent-ref-id",version:"1",entityType:n.Operation,entityId:sd},V9={id:"create-new-bank-account-instance-operation-entity-to-create-input-map-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.InputMap,declaration:un.inputs[0],name:null,description:null,index:0,readsValue:null,defaultValue:{id:"create-new-bank-account-instance-operation-entity-to-create-input-map-default-value-id",type:n.LiteralValue,name:L.EntityTemplate,value:null,valueAsTypeSingle:as,valueAsTypeList:null,autogeneration:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,parent:{entityId:"create-new-bank-account-instance-operation-entity-to-create-input-map-id",entityType:n.InputMap,version:"1",id:"create-new-bank-account-instance-operation-entity-to-create-input-map-parent-ref-id",type:n.GenericReference}},parent:bR},B9={type:n.GenericReference,id:"create-new-bank-account-instance-operation-entity-data-input-map-reads-value-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:pa},RR={id:"create-new-bank-account-instance-operation-entity-data-input-map-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.InputMap,declaration:un.inputs[1],name:null,description:null,index:1,readsValue:B9,defaultValue:null,parent:bR},_9={type:n.GenericReference,id:"create-new-bank-account-instance-operation-output-entity-map-parent-ref-id",version:"1",entityType:n.Operation,entityId:sd},M9={id:cR,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.OutputMap,defaultValue:null,declaration:un.outputs[0],index:0,writesValues:[mR],parent:_9},N9={type:n.GenericReference,id:"create-new-bank-account-instance-operation-called-by-ref-id",version:"1",entityType:n.Condition,entityId:ua},L9={type:n.GenericReference,id:"create-new-bank-account-instance-operation-called-by-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:pa},j9={type:n.GenericReference,id:"create-new-bank-account-instance-operation-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:Kt},DR={process:null,id:sd,type:n.Operation,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:un,inputs:[V9,RR],error:null,outputs:[M9],successCalls:[vR],errorCalls:[],calledByError:[],calledByEntry:[],calledBySuccess:[L9,N9],parent:j9,x:0,y:0},U9={type:n.GenericReference,id:"new-bank-account-data-variable-declaration-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:Kt},$9={type:n.GenericReference,id:"create-new-bank-account-instance-operation-called-by-ref-id",version:"1",entityType:n.Condition,entityId:ua},g9={constant:!0,required:!0,id:pa,type:n.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,inputs:[AR,ER],dataType:null,name:"New bank Account's data",description:null,readsValue:null,outputs:[],writesValues:[RR],successCalls:[DR],errorCalls:[],internalCalls:[],calledByError:[],calledBySuccess:[$9],calledByEntry:[],x:0,y:0,parent:U9},G9={id:"person-not-found-thrown-error-datatype-default-value-parent-ref-id",type:n.GenericReference,entityId:"person-not-found-thrown-error-id",version:"1",entityType:n.ReturnDeclaration},F9={id:"person-not-found-thrown-error-datatype-parent-ref-id",type:n.GenericReference,entityId:"person-not-found-thrown-error-id",version:"1",entityType:n.ReturnDeclaration},x9={like:!1,inferred:!1,id:"person-not-found-thrown-error-datatype-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ae,isList:!1,asType:!1,parent:F9},k9={id:"person-not-found-thrown-error-parent-ref-id",type:n.GenericReference,entityId:"person-not-found-error-return-statement-id",version:"1",entityType:n.ReturnStatement},Z9={constant:!0,isError:!0,id:"person-not-found-thrown-error-id",type:n.ReturnDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,dataType:x9,name:"Person not found error",description:"If the person entity was not found this error is outputted",defaultValue:{id:"person-not-found-thrown-error-datatype-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:"Person not found",name:L.String,parent:G9,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null},parent:k9,implements:null,required:!0,index:0,readsValue:null},q9={id:"person-not-found-error-return-statement-called-by-ref-id",type:n.GenericReference,entityId:ua,version:"1",entityType:n.Condition},J9={id:"person-not-found-error-return-statement-parent-ref-id",type:n.GenericReference,entityId:Kt,version:"1",entityType:n.FunctionDeclaration},S9={id:"person-not-found-error-return-statement-id",type:n.ReturnStatement,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,throws:Z9,outputs:[],calledBySuccess:[],calledByError:[q9],calledByEntry:[],x:0,y:0,parent:J9},W9={type:n.GenericReference,id:"person-not-empty-condition-called-by-ref-id",version:"1",entityType:n.Search,entityId:cs},z9={type:n.GenericReference,id:"person-not-empty-condition-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:Kt},Y9={type:n.GenericReference,id:"person-entity-to-check-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:Qu},H9={type:n.GenericReference,id:"person-not-empty-condition-ref-two-id",version:"1",entityType:n.Condition,entityId:ua},OR={id:"person-entity-to-check-map-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.InputMap,declaration:mn.inputs[0],name:null,description:null,readsValue:Y9,index:0,defaultValue:null,parent:H9},K9={type:n.Condition,id:ua,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:mn,inputs:[OR],calledByError:[],calledByEntry:[],calledBySuccess:[W9],successCalls:[g9,DR],errorCalls:[S9],x:0,y:0,parent:z9},X9={type:n.GenericReference,id:"search-person-by-id-output-entity-declaration-datatype-parent-ref-id",version:"1",entityType:n.ValueDescriptor,entityId:pR},Q9={like:!1,inferred:!1,id:"search-person-by-id-output-entity-declaration-datatype-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,asType:!1,entity:Yt,parent:X9},e8={type:n.GenericReference,id:"search-person-by-id-output-entity-declaration-parent-ref-id",version:"1",entityType:n.Search,entityId:cs},PR={id:pR,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,dataType:Q9,name:"Found person",description:"The person entity that was found",parent:e8,required:!0,index:0},t8={type:n.GenericReference,id:"search-person-by-id-output-entity-map-parent-ref-id",version:"1",entityType:n.Search,entityId:cs},i8={type:n.OutputMap,id:Qu,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:PR,parent:t8,writesValues:[OR,ER],index:0},r8={id:"search-person-by-id-input-declaration-datatype-parent-ref-id",type:n.GenericReference,entityId:"search-person-by-id-input-declaration-id",version:"1",entityType:n.ArgumentDeclaration};n.DataType;const n8={type:n.GenericReference,id:"search-person-by-id-input-declaration-parent-ref-id",version:"1",entityType:n.Search,entityId:cs},wR={id:"search-person-by-id-input-declaration-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,dataType:null,defaultValue:null,name:"Person ID",description:"The unique identifier (ID) property of the person entity",parentRelationType:N.FixedArguments,index:0,required:!0,parent:n8},s8={type:n.GenericReference,id:"search-person-by-id-input-map-parent-ref-id",version:"1",entityType:n.Search,entityId:cs},a8={id:"search-person-by-id-input-map-reads-value-ref-id",type:n.GenericReference,entityId:uR,version:"1",entityType:n.ArgumentDeclaration},CR={type:n.InputMap,id:"search-person-by-id-input-map",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:wR,name:null,description:null,readsValue:a8,defaultValue:null,parent:s8,index:0},o8="SELECT * FROM Person WHERE id = your_id;",d8={type:n.GenericReference,id:"search-person-by-id-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:Kt},l8={type:n.GenericReference,id:"search-person-by-id-called-by-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:Kt},u8={type:n.Search,id:cs,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:o8,inputsDeclarations:[wR],inputs:[CR],outputsDeclarations:[PR],outputs:[i8],calledByError:[],calledByEntry:[l8],calledBySuccess:[],error:null,successCalls:[K9],errorCalls:[],parent:d8,x:0,y:0};n.GenericReference,n.DataType;const p8={id:"account-number-to-create-arg-decl-data-type-parent-ref-id",type:n.GenericReference,entityId:Xu,version:"1",entityType:n.ArgumentDeclaration},c8={like:!1,inferred:!1,id:"account-number-to-create-arg-decl-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ae,isList:!1,asType:!1,parent:p8},f8={version:"1",entityType:n.FunctionDeclaration,entityId:Kt,type:n.GenericReference,id:"account-number-to-create-arg-decl-parent-ref-id"},y8={constant:!0,id:Xu,type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Account number",description:"The account number of the new bank account entity",defaultValue:null,dataType:c8,implements:null,writesValues:[AR],required:!0,index:1,parent:f8};n.GenericReference,n.DataType;const h8={id:"new-bank-account-owner-arg-decl-data-type-parent-ref-id",type:n.GenericReference,entityId:"new-bank-account-owner-arg-decl-id",version:"1",entityType:n.ArgumentDeclaration},m8={like:!1,inferred:!1,id:"new-bank-account-owner-arg-decl-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:sr,isList:!1,asType:!1,parent:h8},v8={version:"1",entityType:n.FunctionDeclaration,entityId:Kt,type:n.GenericReference,id:"new-bank-account-owner-arg-decl-parent-ref-id"},T8={constant:!0,id:uR,type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"New account owner ID",description:"If it has changed, this is the new person entity, that owns of the bank account",defaultValue:null,dataType:m8,implements:null,writesValues:[CR],required:!1,index:1,parent:v8},I8={type:n.GenericReference,id:"replace-bank-account-in-company-parent-ref",version:"1",entityType:n.Project,entityId:fe},E8={type:n.GenericReference,id:"company-entity-to-modify-parent-ref",version:"1",entityType:n.FunctionDeclaration,entityId:Kt};n.GenericReference,n.DataType;const A8={id:"d47ceef6-be6f-40f1-a7b3-c73c8d8a6c6a",type:n.GenericReference,entityId:Ku,version:"1",entityType:n.ArgumentDeclaration},b8={like:!1,inferred:!1,id:"company-entity-to-modify-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,isList:!1,asType:!1,parent:A8},R8={constant:!0,id:Ku,type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Company",defaultValue:null,dataType:b8,implements:null,description:"The company to replace the bank account for",writesValues:[IR],required:!0,index:0,parent:E8},D8={type:n.FunctionDeclaration,id:Kt,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:[R8,y8,T8],index:null,implements:null,calls:[u8,IR],collapsed:!1,private:!1,x:0,y:0,parent:I8},O8={type:n.GenericReference,id:"e0a937bd-3a85-4037-a973-916985b9f94b",version:"1",entityType:n.Project,entityId:"7268bc97-c0e6-4d88-b37e-d3241b5f77a6"},P8={type:n.FunctionDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,id:"6bedb217-f844-4332-af72-9626b2a32511",name:"Some library main function",description:null,inputs:[],calls:[],implements:null,collapsed:!0,index:null,private:!1,parent:O8,x:0,y:0},w8={type:n.GenericReference,id:"948e6869-ae5b-4914-bea0-b9f02ad6a014",version:"1",entityType:n.Project,entityId:fe},C8={type:n.InstalledProject,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,id:"7268bc97-c0e6-4d88-b37e-d3241b5f77a6",name:"Third Party Installed Project",description:null,functions:[P8],events:[],implements:null,parent:w8,x:0,y:0},ip="global-counted-test-loop-id",VR="global-counted-test-loop-body-id",BR="global-counted-test-loop-body-current-iteration-value-argument-declaration-id",V8={type:n.GenericReference,id:"global-counted-test-loop-body-current-iteration-value-argument-declaration-data-type-parent-ref-id",entityId:BR,version:"1",entityType:n.ArgumentDeclaration},B8={like:!1,inferred:!1,id:"global-counted-test-loop-body-current-iteration-value-argument-declaration-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,isList:!1,asType:!1,parent:V8},_8={id:"global-counted-test-loop-body-current-iteration-value-argument-declaration-parent-ref-id",type:n.GenericReference,entityId:VR,version:"1",entityType:n.FunctionDeclaration},M8={constant:!0,id:BR,type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Current value",description:"The current value being processed.",defaultValue:null,dataType:B8,implements:xl,required:!0,index:0,writesValues:[],parent:_8},N8={id:"global-counted-test-loop-body-parent-ref-id",type:n.GenericReference,entityId:ip,version:"1",entityType:n.Loop},L8={id:VR,type:n.FunctionDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Iteration logic trigger",description:"This function is called once for each iteration of the loop.",inputs:[M8],calls:[],implements:po,collapsed:!1,private:!1,index:0,x:0,y:0,parent:N8},fs="random-company-employee-test-variable-id",rp="manager-global-variable-id",_R="global-user-instance-id",Wi="employee-mapped-dto-variable-id",On="employee-mapped-dto-variable-instance-id",MR="random-employee-id-output-map-id",NR="random-employee-birth-date-output-map-id",LR="random-employee-department-output-map-id",jR="random-employee-manager-output-map-id",UR="manager-global-id-output-map-id",$R="global-user-instance-id-output-map-id",j8="employee-mapped-dto-requester-id-input-map-id",gR="employee-mapped-dto-now-timestamp-input-map-id",U8="employee-mapped-dto-id-input-map-id",$8="employee-mapped-dto-birth-date-input-map-id",g8="employee-mapped-dto-department-input-map-id",G8="employee-mapped-dto-manager-input-map-id",F8={id:"global-counted-test-loop-iteration-number-input-map-parent-ref-id",type:n.GenericReference,entityId:ip,version:"1",entityType:n.Loop};n.GenericReference,n.VariableDeclaration;const x8={id:"global-counted-test-loop-iteration-number-input-map-id",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:null,description:null,declaration:Us.inputs[0],defaultValue:null,readsValue:null,index:0,parent:F8},k8={id:"global-counted-test-loop-parent-ref-id",type:n.GenericReference,entityId:fe,version:"1",entityType:n.Project},Z8={id:"global-counted-test-loop-called-by-success-ref-id",type:n.GenericReference,entityId:On,version:"1",entityType:n.VariableDeclaration},GR={id:ip,type:n.Loop,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Us,inputs:[x8],successCalls:[],errorCalls:[],outputsDeclarations:[],outputs:[],process:null,body:L8,calledByError:[],calledByEntry:[],calledBySuccess:[Z8],error:null,x:0,y:0,parent:k8},np="global-object-keys-test-loop-id",FR="global-object-keys-test-loop-body-id",xR="global-object-keys-test-loop-body-current-iteration-value-argument-declaration-id",q8={type:n.GenericReference,id:"global-object-keys-test-loop-body-current-iteration-value-argument-declaration-data-type-parent-ref-id",entityId:xR,version:"1",entityType:n.ArgumentDeclaration},J8={like:!1,inferred:!1,id:"global-object-keys-test-loop-body-current-iteration-value-argument-declaration-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,isList:!1,asType:!1,parent:q8},S8={id:"global-object-keys-test-loop-body-current-iteration-value-argument-declaration-parent-ref-id",type:n.GenericReference,entityId:FR,version:"1",entityType:n.FunctionDeclaration},W8={constant:!0,id:xR,type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Current value",description:"The current value being processed.",defaultValue:null,dataType:J8,implements:Ul,required:!0,index:0,writesValues:[],parent:S8},z8={id:"global-object-keys-test-loop-body-parent-ref-id",type:n.GenericReference,entityId:np,version:"1",entityType:n.Loop},Y8={id:FR,type:n.FunctionDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Iteration logic trigger",description:"This function is called once for each iteration of the loop.",inputs:[W8],calls:[],implements:Sn,collapsed:!1,private:!1,index:0,x:0,y:0,parent:z8},H8={id:"global-object-keys-test-loop-iteration-object-input-map-parent-ref-id",type:n.GenericReference,entityId:np,version:"1",entityType:n.Loop},K8={id:"global-object-keys-test-loop-iteration-object-input-map-reads-value-ref-id",type:n.GenericReference,entityId:Wi,version:"1",entityType:n.VariableDeclaration},kR={id:"global-object-keys-test-loop-iteration-object-input-map-id",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:null,description:null,declaration:Sn.inputs[0],defaultValue:null,readsValue:K8,index:0,parent:H8},X8={id:"global-object-keys-test-loop-parent-ref-id",type:n.GenericReference,entityId:fe,version:"1",entityType:n.Project},Q8={id:"global-object-keys-test-loop-called-by-success-ref-two-id",type:n.GenericReference,entityId:On,version:"1",entityType:n.VariableDeclaration},e6={id:"global-object-keys-test-loop-called-by-success-ref-one-id",type:n.GenericReference,entityId:Wi,version:"1",entityType:n.VariableDeclaration},sp={id:np,type:n.Loop,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Sn,inputs:[kR],successCalls:[],errorCalls:[],outputsDeclarations:[],outputs:[],process:null,body:Y8,calledByError:[],calledByEntry:[],calledBySuccess:[e6,Q8],error:null,x:0,y:0,parent:X8},ap="global-object-values-test-loop-id",ZR="global-object-values-test-loop-body-id",qR="global-object-values-test-loop-body-current-iteration-value-argument-declaration-id",t6={type:n.GenericReference,id:"global-object-values-test-loop-body-current-iteration-value-argument-declaration-data-type-parent-ref-id",entityId:qR,version:"1",entityType:n.ArgumentDeclaration},i6={like:!1,inferred:!1,id:"global-object-values-test-loop-body-current-iteration-value-argument-declaration-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,isList:!1,asType:!1,parent:t6},r6={id:"global-object-values-test-loop-body-current-iteration-value-argument-declaration-parent-ref-id",type:n.GenericReference,entityId:ZR,version:"1",entityType:n.FunctionDeclaration},n6={constant:!0,id:qR,type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Current value",description:"The current value being processed.",defaultValue:null,dataType:i6,implements:gl,required:!0,index:0,writesValues:[],parent:r6},s6={id:"global-object-values-test-loop-body-parent-ref-id",type:n.GenericReference,entityId:ap,version:"1",entityType:n.Loop},a6={id:ZR,type:n.FunctionDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Iteration logic trigger",description:"This function is called once for each iteration of the loop.",inputs:[n6],calls:[],implements:Wn,collapsed:!1,private:!1,index:0,x:0,y:0,parent:s6},o6={id:"global-object-values-test-loop-iteration-object-input-map-parent-ref-id",type:n.GenericReference,entityId:ap,version:"1",entityType:n.Loop},d6={id:"global-object-values-test-loop-iteration-object-input-map-reads-value-ref-id",type:n.GenericReference,entityId:On,version:"1",entityType:n.VariableDeclaration},JR={id:"global-object-values-test-loop-iteration-object-input-map-id",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:null,description:null,declaration:Wn.inputs[0],defaultValue:null,readsValue:d6,index:0,parent:o6},l6={id:"global-object-values-test-loop-parent-ref-id",type:n.GenericReference,entityId:fe,version:"1",entityType:n.Project},u6={id:"global-object-values-test-loop-called-by-success-ref-id",type:n.GenericReference,entityId:On,version:"1",entityType:n.VariableInstance},SR={id:ap,type:n.Loop,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Wn,inputs:[JR],successCalls:[],errorCalls:[],outputsDeclarations:[],outputs:[],process:null,body:a6,calledByError:[],calledByEntry:[],calledBySuccess:[u6],error:null,x:0,y:0,parent:l6},op="global-test-iterate-over-string-loop-id",dp="global-test-iterate-over-string-loop-body-id",ad="global-test-iterate-over-string-loop-body-current-iteration-value-argument-declaration-id",WR="global-test-iterate-over-string-loop-iteration-list-input-map-id",p6={type:n.GenericReference,id:"global-test-iterate-over-string-loop-body-current-iteration-value-argument-declaration-data-type-parent-ref-id",entityId:ad,version:"1",entityType:n.ArgumentDeclaration},c6={like:!1,inferred:!1,id:"global-test-iterate-over-string-loop-body-current-iteration-value-argument-declaration-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,isList:!1,asType:!1,parent:p6},f6={id:"global-test-iterate-over-string-loop-body-current-iteration-value-argument-declaration-parent-ref-id",type:n.GenericReference,entityId:dp,version:"1",entityType:n.FunctionDeclaration},y6={constant:!0,id:ad,type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Current character",description:"The current character value being processed.",defaultValue:null,dataType:c6,implements:Ll,required:!0,index:1,writesValues:[],parent:f6},h6={type:n.GenericReference,id:"global-test-iterate-over-string-loop-body-current-iteration-value-argument-declaration-data-type-parent-ref-id",entityId:ad,version:"1",entityType:n.ArgumentDeclaration},m6={like:!1,inferred:!1,id:"global-test-iterate-over-string-loop-body-current-iteration-value-argument-declaration-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,isList:!1,asType:!1,parent:h6},v6={id:"global-test-iterate-over-string-loop-body-current-iteration-value-argument-declaration-parent-ref-id",type:n.GenericReference,entityId:dp,version:"1",entityType:n.FunctionDeclaration},T6={constant:!0,id:ad,type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Current character",description:"The current character value being processed.",defaultValue:null,dataType:m6,implements:jl,required:!0,index:0,writesValues:[],parent:v6},I6={id:"global-test-iterate-over-string-loop-body-parent-ref-id",type:n.GenericReference,entityId:op,version:"1",entityType:n.Loop},E6={id:dp,type:n.FunctionDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Iteration logic trigger",description:"This function is called once for each iteration of the loop.",inputs:[T6,y6],calls:[],implements:lo,collapsed:!1,private:!1,index:0,x:0,y:0,parent:I6},A6={id:"global-test-iterate-over-string-loop-iteration-list-input-map-parent-ref-id",type:n.GenericReference,entityId:op,version:"1",entityType:n.Loop},b6={id:"global-test-iterate-over-string-loop-iteration-list-input-map-default-value-parent-ref-id",type:n.GenericReference,entityId:WR,version:"1",entityType:n.InputMap},R6={id:"global-test-iterate-over-string-loop-iteration-list-input-map-default-value-id",type:n.LiteralValue,name:L.String,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:"Hello",valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:{type:vt.Random,rangeStart:4,rangeEnd:5},parent:b6},D6={id:WR,type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:null,description:null,declaration:Ls.inputs[0],defaultValue:R6,readsValue:null,index:0,parent:A6},O6={id:"global-test-iterate-over-string-loop-parent-ref-id",type:n.GenericReference,entityId:fe,version:"1",entityType:n.Project},P6={id:op,type:n.Loop,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Ls,inputs:[D6],successCalls:[],errorCalls:[],outputsDeclarations:[],outputs:[],process:null,body:E6,calledByError:[],calledByEntry:[],calledBySuccess:[],error:null,x:0,y:0,parent:O6},lp="iterate-over-list-loop-id",zR="iterate-over-list-loop-body-id",YR="iterate-over-list-loop-body-current-iteration-value-argument-declaration-id",w6={type:n.GenericReference,id:"iterate-over-list-loop-body-current-iteration-value-argument-declaration-data-type-parent-ref-id",entityId:YR,version:"1",entityType:n.ArgumentDeclaration},C6={like:!1,inferred:!1,id:"iterate-over-list-loop-body-current-iteration-value-argument-declaration-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,isList:!1,asType:!1,parent:w6},V6={id:"iterate-over-list-loop-body-current-iteration-value-argument-declaration-parent-ref-id",type:n.GenericReference,entityId:zR,version:"1",entityType:n.FunctionDeclaration},B6={constant:!0,id:YR,type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Current value",description:"The current value being processed.",defaultValue:null,dataType:C6,implements:uo,required:!0,index:0,writesValues:[],parent:V6},_6={id:"iterate-over-list-loop-body-parent-ref-id",type:n.GenericReference,entityId:lp,version:"1",entityType:n.Loop},M6={id:zR,type:n.FunctionDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Iteration logic trigger",description:"This function is called once for each iteration of the loop.",inputs:[B6],calls:[],implements:js,collapsed:!1,private:!1,index:0,x:0,y:0,parent:_6},N6={id:"iterate-over-list-loop-iteration-list-input-map-parent-ref-id",type:n.GenericReference,entityId:lp,version:"1",entityType:n.Loop},L6={id:"iterate-over-list-loop-iteration-list-input-map-id",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:null,description:null,declaration:Or.inputs[0],defaultValue:null,readsValue:null,index:0,parent:N6},j6={id:"iterate-over-list-loop-parent-ref-id",type:n.GenericReference,entityId:fe,version:"1",entityType:n.Project},U6={id:lp,type:n.Loop,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Or,inputs:[L6],successCalls:[],errorCalls:[],outputsDeclarations:[],outputs:[],process:null,body:M6,calledByError:[],calledByEntry:[],calledBySuccess:[],error:null,x:0,y:0,parent:j6},$6=`SELECT
|
|
1
|
+
(function(h,n){typeof exports=="object"&&typeof module<"u"?n(exports):typeof define=="function"&&define.amd?define(["exports"],n):(h=typeof globalThis<"u"?globalThis:h||self,n(h["@elyx-code/project-logic-tree"]={}))})(this,function(h){"use strict";var qW=Object.defineProperty;var JW=(h,n,S)=>n in h?qW(h,n,{enumerable:!0,configurable:!0,writable:!0,value:S}):h[n]=S;var f=(h,n,S)=>(JW(h,typeof n!="symbol"?n+"":n,S),S);var n=(r=>(r.DefinitionEntity="definition-entity",r.BuiltInBaseEntity="built-in-base-entity",r.Project="project",r.InstalledProject="installed-project",r.GlobalEvent="global-event",r.DataType="data-type",r.FunctionCall="function-call",r.FunctionDeclaration="function-declaration",r.ActionDescriptor="action-descriptor",r.ValueDescriptor="value-descriptor",r.ArgumentDeclaration="argument-declaration",r.InputMap="input-map",r.ReturnStatement="return-statement",r.BreakStatement="break-statement",r.ContinueStatement="continue-statement",r.ReturnDeclaration="return-declaration",r.OutputMap="output-map",r.PrimitiveEntity="primitive-entity",r.LiteralValue="literal-value",r.Property="property",r.Operation="operation",r.Condition="condition",r.VariableDeclaration="variable-declaration",r.VariableInstance="variable-instance",r.Search="search",r.Loop="loop",r.InternalCall="internal-call",r.GenericReference="generic-reference",r))(n||{}),S=(r=>(r.HTTP_ENDPOINT="BUILT_IN_HTTP_ENDPOINT_ENTITY",r.RELATIONAL_DATABASE="BUILT_IN_RELATIONAL_DATABASE_ENTITY",r.PERSISTED_ENTITY="BUILT_IN_PERSISTED_ENTITY_ENTITY",r.CRON_JOB="BUILT_IN_CRON_JOB_ENTITY",r.EXECUTION="BUILT_IN_EXECUTION_ENTITY",r.KEY_VALUE_PARAM="BUILT_IN_KEY_VALUE_PARAM_ENTITY",r))(S||{}),vt=(r=>(r.CurrentDateAndTime="current-date-and-time",r.Unique="unique",r.Random="random",r))(vt||{}),L=(r=>(r.EntityTemplate="entity-template",r.ActionDescriptor="action-descriptor",r.String="string",r.Number="number",r.Boolean="boolean",r.Null="null",r.Enum="enum",r.KeyValue="key-value",r.Date="date",r.UUID="uuid",r.File="file",r.Untyped="untyped",r))(L||{}),tt=(r=>(r.Addition="addition",r.Subtraction="subtraction",r.Multiplication="multiplication",r.Division="division",r.Remainder="remainder",r.Exponentiation="exponentiation",r))(tt||{}),Ee=(r=>(r.Join="string-join",r.Split="string-split",r.DeleteLast="string-delete-last",r.DeleteFirst="string-delete-first",r.DeleteIndex="string-delete-index",r.AddIndex="string-add-index",r.ReplaceFirst="string-replace-first",r.ReplaceLast="string-replace-last",r.ReplaceIndex="string-replace-index",r.ReplaceSingleMatch="string-replace-single-match",r.ReplaceAllMatches="string-replace-all-matches",r.GetIndex="string-get-index",r.GetFirst="string-get-first",r.GetLast="string-get-last",r.Append="string-append",r.Prepend="string-prepend",r))(Ee||{}),he=(r=>(r.Join="list-join",r.Split="list-split",r.DeleteLast="list-delete-last",r.DeleteFirst="list-delete-first",r.DeleteIndex="list-delete-index",r.AddIndex="list-add-index",r.ReplaceFirst="list-replace-first",r.ReplaceLast="list-replace-last",r.ReplaceIndex="list-replace-index",r.ReplaceSingleMatch="list-replace-single-match",r.ReplaceAllMatches="list-replace-all-matches",r.GetIndex="list-get-index",r.GetFirst="list-get-first",r.GetLast="list-get-last",r.Append="list-append",r.Prepend="list-prepend",r))(he||{}),Qe=(r=>(r.Parallel="parallel",r.Sequential="sequential",r.Wait="wait",r))(Qe||{}),et=(r=>(r.CreateNewInstance="create-new-instance",r.Validate="validate",r))(et||{}),Lt=(r=>(r.HttpRequest="base-http-request",r))(Lt||{}),yt=(r=>(r.Equal="equal",r.NotEqual="not-equal",r.And="and",r.Or="or",r.LessThan="less-than",r.MoreThan="more-than",r.LessThanOrEqual="less-than-or-equal",r.MoreThanOrEqual="more-than-or-equal",r))(yt||{}),bi=(r=>(r.Empty="empty",r.NotEmpty="not-empty",r))(bi||{}),ee=(r=>(r.ManualFlow="manual-flow-loop",r.Counted="counted-loop",r.List="list-loop",r.ObjectKeys="object-keys-loop",r.ObjectValues="object-values-loop",r.String="string-loop",r))(ee||{}),N=(r=>(r.FixedArguments="fixed-arguments",r.FixedReturns="fixed-returns",r.ReturnedError="returned-error",r.OngoingProcessExecution="ongoing-process-execution",r.DynamicArgument="dynamic-argument-types",r.DynamicReturn="dynamic-return-types",r))(N||{}),Pt=(r=>(r.OrDataTypeGroup="or-data-type-group",r.AndDataTypeGroup="and-data-type-group",r))(Pt||{}),ir=(r=>(r.PROJECT_PUBLICATION_COMPLETED="GLOBAL_EVENT_PROJECT_PUBLICATION_COMPLETED",r))(ir||{}),ci=(r=>(r.DeletePersistedEntity="base-delete-persisted-entity",r.SoftDeletePersistedEntity="base-soft-delete-persisted-entity",r.AbortExecution="base-abort-execution",r))(ci||{}),xn=(r=>(r.Error="error",r.Task="task",r.Return="return",r))(xn||{});const Dr=[n.VariableDeclaration,n.VariableInstance,n.InputMap,n.ReturnDeclaration],Tt=[n.VariableDeclaration,n.VariableInstance,n.ArgumentDeclaration,n.OutputMap],af=[...Dr,...Tt,n.Property,n.ValueDescriptor],it=[n.VariableDeclaration,n.VariableInstance],Rw=[n.FunctionDeclaration,n.Condition,n.Loop,n.Operation,n.FunctionCall,n.Search,n.InternalCall,n.GlobalEvent,n.DefinitionEntity,n.ReturnStatement,n.BreakStatement,n.ContinueStatement,n.VariableDeclaration,n.VariableInstance,n.LiteralValue,n.ActionDescriptor,n.ValueDescriptor,n.Property,n.DataType,n.InstalledProject,n.ArgumentDeclaration,n.InputMap,n.OutputMap,n.ReturnDeclaration],Dw=[n.FunctionDeclaration,n.Property,n.ArgumentDeclaration,n.ReturnDeclaration],of=[n.FunctionCall,n.VariableInstance,n.InputMap,n.OutputMap,n.InternalCall],Ow=[...of,n.Condition,n.Loop,n.Operation,n.Condition],kn=[n.GlobalEvent],pl=[n.Operation,n.FunctionCall,n.Search,n.VariableDeclaration,n.VariableInstance,n.Loop],df=[...pl,n.InternalCall],Sa=[...pl,n.Condition],lt=[...Sa,n.InternalCall],at=[n.FunctionDeclaration,...kn],$i=[...lt,n.ReturnStatement,n.BreakStatement,n.ContinueStatement],cl=[...Sa,n.ReturnStatement,n.BreakStatement,n.ContinueStatement],gi=[...lt,...at],lf=[...Sa,...at],Pw=[...$i,...at],ww=[...cl,...at],ut=[...at,n.Loop],ot=[n.ReturnStatement,n.BreakStatement,n.ContinueStatement],Cw=[n.DefinitionEntity,n.BuiltInBaseEntity,n.Project,n.InstalledProject,n.GlobalEvent,n.DataType,n.FunctionCall,n.FunctionDeclaration,n.ActionDescriptor,n.ValueDescriptor,n.ArgumentDeclaration,n.InputMap,n.ReturnStatement,n.BreakStatement,n.ContinueStatement,n.ReturnDeclaration,n.OutputMap,n.PrimitiveEntity,n.LiteralValue,n.Property,n.Operation,n.Condition,n.VariableDeclaration,n.VariableInstance,n.Search,n.Loop,n.InternalCall],Wa=[n.DefinitionEntity,n.GlobalEvent,n.FunctionDeclaration,n.FunctionCall,n.VariableDeclaration,n.VariableInstance,n.Operation,n.Condition,n.ReturnStatement,n.BreakStatement,n.ContinueStatement,n.InstalledProject,n.Loop,n.Search],uf=[n.DefinitionEntity,n.FunctionDeclaration,n.ArgumentDeclaration,n.ReturnDeclaration,n.Property,n.VariableDeclaration,n.Search,n.Project,n.InstalledProject,n.ActionDescriptor,n.ValueDescriptor],fi=[n.BuiltInBaseEntity,n.PrimitiveEntity],pf=[n.DefinitionEntity,n.FunctionDeclaration,n.ArgumentDeclaration,n.ReturnDeclaration,n.Property,n.VariableDeclaration,n.GlobalEvent,n.Search,n.Project,n.InstalledProject,n.ActionDescriptor,n.ValueDescriptor,n.InputMap,n.OutputMap,n.FunctionCall,n.Operation,n.Condition,n.ReturnStatement,n.BreakStatement,n.ContinueStatement,n.VariableInstance,n.LiteralValue,n.InternalCall];var za=(r=>(r.ActionOngoingProcessOutputValue="action-ongoing-process-output-value-descriptor-id",r))(za||{});const k={[n.PrimitiveEntity]:{[L.String]:{id:"8b5fbe15-4c2b-48c0-9fd8-e5efbe3978dc",properties:{}},[L.Boolean]:{id:"f596545d-1565-4faa-9969-d95fa5edfea4",properties:{}},[L.Number]:{id:"ecb84c29-6153-4b82-86a5-fce2b5f92002",properties:{}},[L.KeyValue]:{id:"b6f3c3c4-9c3d-4f9d-9e9e-1c0f6a3c8c6b",properties:{}},[L.Enum]:{id:"9542b8b4-2642-4eee-9db9-def7963a17a0",properties:{options:{id:"00ccfcae-2104-45ef-bf6c-50ddccd74286",dataType:{id:"7dd59b70-f97b-43a7-a051-fde1842ce5d6",defaultValue:{id:"enum-options-property-data-type-default-value-id"}}}}},[L.UUID]:{id:"4a6234aa-c0f6-4731-b4dd-750388029226",properties:{}},[L.Date]:{id:"dc58f38b-d574-4956-aac6-32ce9529b937",properties:{}},[L.Null]:{id:"7d698f34-5a89-4aab-846b-07ef3843b8c4",properties:{}},[L.Untyped]:{id:"4044a018-818e-49d7-bf9a-c3dd1fff2102",properties:{}}},[n.ValueDescriptor]:{"action-ongoing-process-output-value-descriptor-id":{id:"action-ongoing-process-output-value-descriptor-id",dataType:{id:"process-output-value-data-type-id"}}},[n.BuiltInBaseEntity]:{[S.KEY_VALUE_PARAM]:{id:S.KEY_VALUE_PARAM},[S.HTTP_ENDPOINT]:{id:S.HTTP_ENDPOINT,properties:{method:{id:"http-endpoint-built-in-method-property-id"},path:{id:"http-endpoint-built-in-path-property-id"},cors:{id:"http-endpoint-built-in-cors-property-id"}},methods:{handler:{id:"http-endpoint-built-in-handler-method-id",outputs:{statusCode:{id:"http-endpoint-built-in-handler-status-code-output-id"},body:{id:"http-endpoint-built-in-handler-body-output-id"},headers:{id:"http-endpoint-built-in-handler-headers-output-id"}}}}},[S.PERSISTED_ENTITY]:{id:S.PERSISTED_ENTITY,properties:{database:{id:"persisted-built-in-base-entity-database-property-id"},primaryKey:{id:"persisted-built-in-base-entity-primary-key-property-id"}}},[S.RELATIONAL_DATABASE]:{id:S.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"}}},[S.CRON_JOB]:{id:S.CRON_JOB,properties:{expression:{id:"cron-job-built-in-base-entity-expression-property-id"}},methods:{handler:{id:"cron-job-built-in-base-entity-handler-method-id"}}}},[n.Operation]:{[Ee.Join]:{id:Ee.Join,inputs:{separator:{id:"join-strings-separator-input-id"},first:{id:"join-strings-first-string-input-id"},second:{id:"join-strings-second-string-input-id"},dynamicString:{id:"join-strings-dynamic-string-input-id"}},outputs:{result:{id:"join-strings-result-string-return-delaration-id"},error:{id:"join-strings-error-return-delaration-id"}}},[Ee.Split]:{id:Ee.Split,inputs:{stringValue:{id:"split-string-string-input-id"},indexLocation:{id:"split-string-index-input-id"}},outputs:{firstPartResult:{id:"split-string-first-part-result-string-return-delaration-id"},secondPartResult:{id:"split-string-second-part-result-string-return-delaration-id"},error:{id:"split-string-error-return-delaration-id"}}},[tt.Addition]:{id:tt.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"}}},[tt.Subtraction]:{id:tt.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"}}},[Lt.HttpRequest]:{id:Lt.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"}}},[et.Validate]:{id:et.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"}}},[Qe.Parallel]:{id:Qe.Parallel,inputs:{listOfActions:{id:"parallel-execution-list-of-actions-input-id"}},outputs:{results:{id:"parallel-execution-results-output-id",dataType:{id:"parallel-execution-results-data-type-id"}},error:{id:"parallel-execution-error-output-id"}}}},[n.Loop]:{[ee.List]:{id:ee.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"}}}},[ee.String]:{id:ee.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"}}}},[ee.ObjectKeys]:{id:ee.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"}}}},[ee.ObjectValues]:{id:ee.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"}}}},[ee.ManualFlow]:{id:ee.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"}}}},[ee.Counted]:{id:ee.Counted,inputs:{number:{id:"counted-loop-number-input-id"}},outputs:{results:{id:"counted-loop-output-id"}},body:{id:"counted-loop-body-descriptor-id",inputs:{iterationNumber:{id:"counted-loop-iteration-number-input-id"}}}}},[n.Condition]:{[yt.MoreThanOrEqual]:{id:yt.MoreThanOrEqual,inputs:{leftHand:{id:"condition-more-than-or-equal-left-hand-input-id",dataType:{id:"condition-more-than-or-equal-left-hand-data-type-id"}},rightHand:{id:"condition-more-than-or-equal-right-hand-input-id",dataType:{id:"condition-more-than-or-equal-right-hand-data-type-id"}}}},[bi.NotEmpty]:{id:bi.NotEmpty,inputs:{leftHand:{id:"condition-not-empty-input-id"}}}},[n.GlobalEvent]:{[ir.PROJECT_PUBLICATION_COMPLETED]:{id:ir.PROJECT_PUBLICATION_COMPLETED}}},yi=k[n.PrimitiveEntity],ae={type:n.PrimitiveEntity,id:yi.string.id,description:"A string of characters.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.String,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[],methods:[]},rr={type:n.PrimitiveEntity,id:yi.boolean.id,description:"A 'true' or 'false' value.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.Boolean,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[],methods:[]},ve={type:n.PrimitiveEntity,id:yi.number.id,description:"A number value.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.Number,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[],methods:[]},fl={type:n.PrimitiveEntity,id:yi.null.id,description:"An explicitly empty value.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.Null,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[],methods:[]},wt={type:n.PrimitiveEntity,id:yi.untyped.id,description:"Data of any type that isn't known in advance.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.Untyped,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[],methods:[]},cf={id:"c2f52f01-8f2e-490e-8083-72289c8189c1",type:n.GenericReference,entityId:yi.enum.properties.options.id,version:"1",entityType:n.Property},ff={id:"4e803941-2e6a-4227-b803-b8877c0d7fee",type:n.GenericReference,entityId:"00ccfcae-2104-45ef-bf6c-50ddccd74286",version:"1",entityType:n.Property},yf={like:!1,inferred:!1,id:yi.enum.properties.options.dataType.id,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!0,entity:ae,asType:!1,parent:ff},hf={id:"a2983c4c-0286-4ef1-8b5c-5a52904d3200",type:n.GenericReference,entityId:"9542b8b4-2642-4eee-9db9-def7963a17a0",version:"1",entityType:n.PrimitiveEntity},mf={constant:!1,hidden:!1,required:!0,id:yi.enum.properties.options.id,name:"Options",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,implements:null,static:!1,index:0,defaultValue:{id:yi.enum.properties.options.dataType.defaultValue.id,type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.KeyValue,autogeneration:null,value:[],valueAsTypeList:null,valueAsTypeSingle:null,parent:cf},dataType:yf,description:"Options for the enum. Each option is a text value.",parent:hf},nr={type:n.PrimitiveEntity,id:yi.enum.id,description:"A set of text options to choose from.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.Enum,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[mf],methods:[]},Gi={type:n.PrimitiveEntity,id:yi.date.id,description:"A date and time value.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.Date,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[],methods:[]},sr={type:n.PrimitiveEntity,id:yi.uuid.id,description:"A unique identifier in the form of a 36-character string.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.UUID,static:!1,abstract:!1,abstractMethods:[],extends:[ae],properties:[],methods:[]},Zn={type:n.PrimitiveEntity,id:yi[L.KeyValue].id,description:"A complex data structure with any combination of properties with names and values.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.KeyValue,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[],methods:[]},vf=[ae,rr,ve,fl,wt,nr,Gi,sr,Zn],Fi=k[n.Operation][tt.Addition],Tf={type:n.GenericReference,id:"3bd4aeb2-e3b7-4120-b289-011ebb03dba5",entityId:Fi.inputs.firstSummand.id,version:"1",entityType:n.ValueDescriptor},If={like:!1,inferred:!1,id:"number-addition-first-number-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,isList:!1,asType:!1,parent:Tf},Ef={type:n.GenericReference,id:"9f486db2-a983-4293-9eef-81d4fc8d2d3e",entityId:Fi.inputs.secondSummand.id,version:"1",entityType:n.ValueDescriptor},Af={like:!1,inferred:!1,id:"1d4abe83-3e87-4f74-99be-c1fd8c2f8d2d",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,asType:!1,isList:!1,parent:Ef},bf={type:n.GenericReference,id:"da5e9fe9-f18a-49e3-98e5-c1bf7b9b3153",entityId:Fi.outputs.result.id,version:"1",entityType:n.ValueDescriptor},Rf={like:!1,inferred:!1,id:Fi.outputs.result.dataType.id,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,asType:!1,isList:!1,parent:bf},Df={type:n.GenericReference,id:"a6c14305-d4f7-43ae-9d5e-b7dbacdc830a",entityId:tt.Addition,version:"1",entityType:n.ActionDescriptor},yl={id:Fi.inputs.firstSummand.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Summand",description:"The first number to add",defaultValue:null,dataType:If,required:!0,parentRelationType:N.FixedArguments,index:0,parent:Df},Of={type:n.GenericReference,id:"c5015128-4a65-462c-9da0-1c86e83ef897",entityId:tt.Addition,version:"1",entityType:n.ActionDescriptor},hl={id:Fi.inputs.secondSummand.id,type:n.ValueDescriptor,description:"The second number to add",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Summand",defaultValue:null,dataType:Af,required:!0,parentRelationType:N.FixedArguments,index:1,parent:Of},ml={type:n.GenericReference,id:"caac2bc7-c23c-4f01-9581-a515c2e4637f",entityId:tt.Addition,version:"1",entityType:n.ActionDescriptor},vl={parentRelationType:N.FixedReturns,id:Fi.outputs.result.id,type:n.ValueDescriptor,description:"The result number of the addition",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Result",defaultValue:null,dataType:Rf,required:!0,index:0,parent:ml},Pf={type:n.GenericReference,id:"number-addition-operation-error-parent-ref",entityId:tt.Addition,version:"1",entityType:n.ActionDescriptor},wf={parentRelationType:N.FixedReturns,id:Fi.outputs.error.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Error",description:"An error that occurred during the operation.",defaultValue:null,dataType:null,required:!0,index:1,parent:Pf},Cf={type:n.GenericReference,id:"number-addition-operation-dynamic-summand-argument-type-parent-ref",entityId:Fi.inputs.dynamicSummand.id,version:"1",entityType:n.ValueDescriptor},Vf={like:!1,inferred:!1,id:"number-addition-operation-dynamic-summand-argument-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,asType:!1,isList:!1,parent:Cf},Bf={parentRelationType:N.DynamicArgument,id:Fi.inputs.dynamicSummand.id,type:n.ValueDescriptor,description:"A number to add",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Summand",defaultValue:null,dataType:Vf,required:!0,index:2,parent:ml},Ya={id:tt.Addition,type:n.ActionDescriptor,description:"Sum numbers",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:tt.Addition,inputs:[yl,hl,Bf],error:wf,outputs:[vl],parent:null},xi=k[n.Operation][tt.Subtraction],_f={type:n.GenericReference,id:"3bd4aeb2-e3b7-4120-b289-011ebb03dba5",entityId:xi.inputs.minuend.id,version:"1",entityType:n.ValueDescriptor},Mf={like:!1,inferred:!1,id:"number-subtraction-first-number-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,isList:!1,asType:!1,parent:_f},Nf={type:n.GenericReference,id:"9f486db2-a983-4293-9eef-81d4fc8d2d3e",entityId:xi.inputs.subtrahend.id,version:"1",entityType:n.ValueDescriptor},Lf={like:!1,inferred:!1,id:"1d4abe83-3e87-4f74-99be-c1fd8c2f8d2d",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,asType:!1,isList:!1,parent:Nf},jf={type:n.GenericReference,id:"da5e9fe9-f18a-49e3-98e5-c1bf7b9b3153",entityId:xi.outputs.result.id,version:"1",entityType:n.ValueDescriptor},Uf={like:!1,inferred:!1,id:xi.outputs.result.dataType.id,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,asType:!1,isList:!1,parent:jf},Tl={type:n.GenericReference,id:"a6c14305-d4f7-43ae-9d5e-b7dbacdc830a",entityId:tt.Subtraction,version:"1",entityType:n.ActionDescriptor},$f={id:xi.inputs.minuend.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Minuend",description:"Base number to substract from",defaultValue:null,dataType:Mf,required:!0,parentRelationType:N.FixedArguments,index:0,parent:Tl},gf={type:n.GenericReference,id:"c5015128-4a65-462c-9da0-1c86e83ef897",entityId:tt.Subtraction,version:"1",entityType:n.ActionDescriptor},Gf={id:xi.inputs.subtrahend.id,type:n.ValueDescriptor,description:"The second number to substract",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Subtrahend",defaultValue:null,dataType:Lf,required:!0,parentRelationType:N.FixedArguments,index:1,parent:gf},Ff={type:n.GenericReference,id:"caac2bc7-c23c-4f01-9581-a515c2e4637f",entityId:tt.Subtraction,version:"1",entityType:n.ActionDescriptor},xf={parentRelationType:N.FixedReturns,id:xi.outputs.result.id,type:n.ValueDescriptor,description:"The result number of the subtraction",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Result",defaultValue:null,dataType:Uf,required:!0,index:0,parent:Ff},kf={type:n.GenericReference,id:"number-subtraction-operation-error-parent-ref",entityId:tt.Subtraction,version:"1",entityType:n.ActionDescriptor},Zf={parentRelationType:N.FixedReturns,id:xi.outputs.error.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Error",description:"An error that occurred during the operation.",defaultValue:null,dataType:null,required:!0,index:1,parent:kf},qf={type:n.GenericReference,id:"number-subtraction-operation-dynamic-subtrahend-argument-type-parent-ref",entityId:xi.inputs.dynamicSubtrahend.id,version:"1",entityType:n.ValueDescriptor},Jf={like:!1,inferred:!1,id:"number-subtraction-operation-dynamic-subtrahend-argument-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,asType:!1,isList:!1,parent:qf},Sf={id:xi.inputs.dynamicSubtrahend.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Subtrahend",description:"A number to substract",defaultValue:null,dataType:Jf,required:!0,parentRelationType:N.DynamicArgument,index:2,parent:Tl},Il={id:tt.Subtraction,type:n.ActionDescriptor,description:"Substract numbers",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:tt.Subtraction,inputs:[$f,Gf,Sf],error:Zf,outputs:[xf],parent:null},Wf={[tt.Addition]:Ya,[tt.Subtraction]:Il},Ri=k[n.Operation][Ee.Join],zf={type:n.GenericReference,id:"join-strings-first-string-argument-declaration",entityId:Ri.inputs.first.id,version:"1",entityType:n.ValueDescriptor},Yf={like:!1,inferred:!1,id:"join-strings-first-string-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ae,asType:!1,isList:!1,parent:zf},Hf={type:n.GenericReference,id:"join-strings-second-string-argument-declaration",entityId:Ri.inputs.second.id,version:"1",entityType:n.ValueDescriptor},Kf={like:!1,inferred:!1,id:"join-strings-second-string-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ae,asType:!1,isList:!1,parent:Hf},Xf={type:n.GenericReference,id:"join-strings-result-string-return-delaration",entityId:Ri.outputs.result.id,version:"1",entityType:n.ValueDescriptor},Qf={like:!1,inferred:!1,id:"join-strings-result-string-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ae,asType:!1,isList:!1,parent:Xf},ey={type:n.GenericReference,id:"join-strings-operation-first-string-argument-parent-ref",entityId:Ee.Join,version:"1",entityType:n.ActionDescriptor},Ha={id:Ri.inputs.first.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Text",description:"The first text to join to the second one. Its value will be at the beginning of the resulting text.",defaultValue:null,dataType:Yf,parentRelationType:N.FixedArguments,required:!0,index:1,parent:ey},ty={type:n.GenericReference,id:"join-strings-first-string-argument-declaration",entityId:Ri.inputs.first.id,version:"1",entityType:n.ValueDescriptor},iy={type:n.GenericReference,id:"join-strings-separator-string-data-type-default-value-parent-ref",entityId:Ri.inputs.separator.id,version:"1",entityType:n.ValueDescriptor},ry={type:n.LiteralValue,id:"join-strings-separator-string-data-type-default-value-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.String,value:"",valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null,parent:iy},ny={like:!1,inferred:!1,id:"join-strings-separator-string-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ae,asType:!1,isList:!1,parent:ty},sy={type:n.GenericReference,id:"join-strings-operation-separator-string-argument-parent-ref",entityId:Ee.Join,version:"1",entityType:n.ActionDescriptor},ay={id:Ri.inputs.separator.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Separator",description:"The text value that will be inserted between each of the values that are joined.",defaultValue:ry,dataType:ny,parentRelationType:N.FixedArguments,required:!1,index:0,parent:sy},oy={type:n.GenericReference,id:"join-strings-operation-second-string-argument-parent-ref",entityId:Ee.Join,version:"1",entityType:n.ActionDescriptor},Ka={id:Ri.inputs.second.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Text",description:"The second text to join to the first one. Its value will be at the end of the resulting text.",defaultValue:null,dataType:Kf,parentRelationType:N.FixedArguments,required:!0,index:2,parent:oy},dy={type:n.GenericReference,id:"join-strings-operation-result-string-return-parent-ref",entityId:Ee.Join,version:"1",entityType:n.ActionDescriptor},Bs={parentRelationType:N.FixedReturns,id:Ri.outputs.result.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Result",description:"The resulting text value.",defaultValue:null,dataType:Qf,required:!0,index:0,parent:dy},ly={type:n.GenericReference,id:"join-strings-operation-error-parent-ref",entityId:Ee.Join,version:"1",entityType:n.ActionDescriptor},uy={parentRelationType:N.FixedReturns,id:Ri.outputs.error.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Error",description:"An error that occurred during the operation.",defaultValue:null,dataType:null,required:!0,index:1,parent:ly},py={type:n.GenericReference,id:"join-strings-dynamic-string-argument-declaration",entityId:Ri.inputs.dynamicString.id,version:"1",entityType:n.ValueDescriptor},cy={like:!1,inferred:!1,id:"join-strings-dynamic-string-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ae,asType:!1,isList:!1,parent:py},fy={type:n.GenericReference,id:"join-strings-operation-dynamic-string-argument-parent-ref",entityId:Ee.Join,version:"1",entityType:n.ActionDescriptor},yy={id:Ri.inputs.dynamicString.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Text",description:"Text to join to the previous ones. Its value will be at the end of the resulting text.",defaultValue:null,dataType:cy,parentRelationType:N.DynamicArgument,required:!0,index:3,parent:fy},_s={id:Ee.Join,type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:Ee.Join,description:"Join text values together, to form a single resulting text value.",inputs:[ay,Ha,Ka,yy],outputs:[Bs],error:uy,parent:null},ar=k[n.Operation][Ee.Split],hy={type:n.GenericReference,id:"split-string-string-argument-declaration",entityId:ar.inputs.stringValue.id,version:"1",entityType:n.ValueDescriptor},my={like:!1,inferred:!1,id:"split-string-string-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ae,asType:!1,isList:!1,parent:hy},vy={type:n.GenericReference,id:"split-string-index-argument-declaration",entityId:ar.inputs.indexLocation.id,version:"1",entityType:n.ValueDescriptor},Ty={like:!1,inferred:!1,id:"split-string-index-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,asType:!1,isList:!1,parent:vy},Iy={type:n.GenericReference,id:"split-string-first-part-result-string-return-delaration",entityId:ar.outputs.firstPartResult.id,version:"1",entityType:n.ValueDescriptor},Ey={like:!1,inferred:!1,id:"split-string-first-part-result-string-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ae,asType:!1,isList:!1,parent:Iy},Ay={type:n.GenericReference,id:"split-string-second-part-result-string-return-delaration",entityId:ar.outputs.secondPartResult.id,version:"1",entityType:n.ValueDescriptor},by={like:!1,inferred:!1,id:"split-string-second-part-result-string-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ae,asType:!1,isList:!1,parent:Ay},Ry={type:n.GenericReference,id:"split-string-operation-string-argument-parent-ref",entityId:Ee.Join,version:"1",entityType:n.ActionDescriptor},Dy={id:ar.inputs.stringValue.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Text value",description:"The text value that will be split into two at the given index location.",defaultValue:null,dataType:my,parentRelationType:N.FixedArguments,required:!0,index:0,parent:Ry},Oy={type:n.GenericReference,id:"split-string-operation-index-argument-parent-ref",entityId:Ee.Join,version:"1",entityType:n.ActionDescriptor},Py={id:ar.inputs.indexLocation.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Index location",description:"The index location where the text will be split into two. The text at this index will be the beginning of the second text.",defaultValue:null,dataType:Ty,parentRelationType:N.FixedArguments,required:!0,index:1,parent:Oy},wy={type:n.GenericReference,id:"split-string-operation-second-part-result-string-return-parent-ref",entityId:Ee.Join,version:"1",entityType:n.ActionDescriptor},Vw={parentRelationType:N.FixedReturns,id:ar.outputs.secondPartResult.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Second part",description:"The secont part of the resulting text value.",defaultValue:null,dataType:by,required:!0,index:1,parent:wy},Cy={type:n.GenericReference,id:"split-string-operation-first-part-result-string-return-parent-ref",entityId:Ee.Join,version:"1",entityType:n.ActionDescriptor},Vy={parentRelationType:N.FixedReturns,id:ar.outputs.firstPartResult.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"First part",description:"The first part of the resulting text value.",defaultValue:null,dataType:Ey,required:!0,index:0,parent:Cy},By={type:n.GenericReference,id:"split-string-operation-error-parent-ref",entityId:Ee.Join,version:"1",entityType:n.ActionDescriptor},_y={parentRelationType:N.FixedReturns,id:ar.outputs.error.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Error",description:"An error that occurred during the operation.",defaultValue:null,dataType:null,required:!0,index:1,parent:By},El={id:Ee.Split,type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:Ee.Split,description:"Split a text into two, at the given index location.",inputs:[Dy,Py],outputs:[Vy],error:_y,parent:null},My={[Ee.Join]:_s,[Ee.Split]:El};var Ny=(r=>(r.FirstInputList="join-list-first-list-argument-declaration",r.SecondInputList="join-list-second-list-argument-declaration",r))(Ny||{}),Ly=(r=>(r.ResultList="join-list-result-list-return-delaration",r.Error="join-list-error-return-delaration",r))(Ly||{});const jy={type:n.GenericReference,id:"join-list-operation-first-list-argument-ref",entityId:"join-list-first-list-argument-declaration",version:"1",entityType:n.ValueDescriptor},Uy={like:!1,inferred:!1,id:"join-list-first-list-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,asType:!1,isList:!0,parent:jy},$y={type:n.GenericReference,id:"join-list-operation-second-list-argument-ref",entityId:"join-list-second-list-argument-declaration",version:"1",entityType:n.ValueDescriptor},gy={like:!1,inferred:!1,id:"join-list-second-list-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,asType:!1,isList:!0,parent:$y},Gy={type:n.GenericReference,id:"join-list-operation-result-list-return-ref",entityId:"join-list-result-list-return-delaration",version:"1",entityType:n.ValueDescriptor},Fy={like:!1,inferred:!1,id:"join-list-result-list-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ae,asType:!1,isList:!0,parent:Gy},xy={type:n.GenericReference,id:"join-list-operation-first-list-argument-parent-ref",entityId:he.Join,version:"1",entityType:n.ActionDescriptor},ky={id:"join-list-first-list-argument-declaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"First value",description:"The first list to join to the second one. Its values will be at the beginning of the resulting list.",defaultValue:null,dataType:Uy,parentRelationType:N.FixedArguments,required:!0,index:0,parent:xy},Zy={type:n.GenericReference,id:"join-list-operation-second-list-argument-parent-ref",entityId:he.Join,version:"1",entityType:n.ActionDescriptor},qy={id:"join-list-second-list-argument-declaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Second value",description:"The second list to join to the first one. Its values will be at the end of the resulting list.",defaultValue:null,dataType:gy,parentRelationType:N.FixedArguments,required:!0,index:1,parent:Zy},Jy={type:n.GenericReference,id:"join-list-operation-result-list-return-parent-ref",entityId:he.Join,version:"1",entityType:n.ActionDescriptor},Sy={parentRelationType:N.FixedReturns,id:"join-list-result-list-return-delaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Result",description:"The resulting list value.",defaultValue:null,dataType:Fy,required:!0,index:0,parent:Jy},Wy={type:n.GenericReference,id:"join-list-operation-error-parent-ref",entityId:he.Join,version:"1",entityType:n.ActionDescriptor},zy={parentRelationType:N.FixedReturns,id:"join-list-error-return-delaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Error",description:"An error that occurred during the operation.",defaultValue:null,dataType:null,required:!0,index:1,parent:Wy},Al={id:he.Join,type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:he.Join,description:"Join two lists together, to form a single resulting list value.",inputs:[ky,qy],error:zy,outputs:[Sy],parent:null};var Yy=(r=>(r.InputList="list-to-split-argument-declaration",r.SplitIndex="split-list-index-argument-declaration",r))(Yy||{}),Hy=(r=>(r.FirstOutputList="split-list-first-output-list-return-delaration",r.SecondOutputList="split-list-second-output-list-return-delaration",r.Error="split-list-error-return-delaration",r))(Hy||{});const Ky={type:n.GenericReference,id:"split-list-operation-input-list-argument-ref",entityId:"list-to-split-argument-declaration",version:"1",entityType:n.ValueDescriptor},Xy={like:!1,inferred:!1,id:"split-list-operation-input-list-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ae,asType:!1,isList:!0,parent:Ky},Qy={type:n.GenericReference,id:"split-list-operation-split-index-argument-ref",entityId:"split-list-index-argument-declaration",version:"1",entityType:n.ValueDescriptor},eh={like:!1,inferred:!1,id:"split-list-operation-split-index-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,asType:!1,isList:!1,parent:Qy},bl={type:n.GenericReference,id:"split-list-operation-first-output-list-return-ref",entityId:"split-list-first-output-list-return-delaration",version:"1",entityType:n.ValueDescriptor},th={like:!1,inferred:!1,id:"split-list-operation-first-output-list-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ae,asType:!1,isList:!0,parent:bl},ih={type:n.GenericReference,id:"split-list-operation-input-list-argument-parent-ref",entityId:he.Split,version:"1",entityType:n.ActionDescriptor},rh={id:"list-to-split-argument-declaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"List to split",description:"The list to split at the given index",defaultValue:null,dataType:Xy,parentRelationType:N.FixedArguments,required:!0,index:0,parent:ih},nh={type:n.GenericReference,id:"split-list-operation-split-index-argument-parent-ref",entityId:he.Split,version:"1",entityType:n.ActionDescriptor},sh={id:"split-list-index-argument-declaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Split location",description:"The index at which to split the list. The value at this index will be the first value of the second list.",defaultValue:null,dataType:eh,parentRelationType:N.FixedArguments,required:!0,index:1,parent:nh},ah={type:n.GenericReference,id:"split-list-operation-first-output-list-return-parent-ref",entityId:he.Split,version:"1",entityType:n.ActionDescriptor},oh={parentRelationType:N.FixedReturns,id:"split-list-first-output-list-return-delaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"First list",description:"The list of values up to the split index",defaultValue:null,dataType:th,required:!0,index:0,parent:ah},dh={like:!1,inferred:!1,id:"split-list-operation-second-output-list-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ae,asType:!1,isList:!0,parent:bl},lh={type:n.GenericReference,id:"split-list-operation-second-output-list-return-parent-ref",entityId:he.Split,version:"1",entityType:n.ActionDescriptor},uh={parentRelationType:N.FixedReturns,id:"split-list-second-output-list-return-delaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Second list",description:"The list of values up to the split index",defaultValue:null,dataType:dh,required:!0,index:0,parent:lh},ph={type:n.GenericReference,id:"split-list-operation-error-parent-ref",entityId:he.Split,version:"1",entityType:n.ActionDescriptor},ch={parentRelationType:N.FixedReturns,id:"split-list-error-return-delaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Error",description:"An error that occurred during the operation.",defaultValue:null,dataType:null,required:!0,index:1,parent:ph},Rl={id:he.Split,type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:he.Split,description:"Splits a given list at the given index, and returns two lists, one with the values up to the index, and the other with the values after the index",inputs:[rh,sh],outputs:[oh,uh],error:ch,parent:null};var fh=(r=>(r.InputList="get-last-in-list-input-list-argument-declaration",r))(fh||{}),yh=(r=>(r.OutputElement="get-last-in-list-output-element-return-delaration",r.Error="get-last-in-list-error-return-delaration",r))(yh||{});const hh={type:n.GenericReference,id:"get-last-in-list-operation-input-list-argument-ref",entityId:"get-last-in-list-input-list-argument-declaration",version:"1",entityType:n.ValueDescriptor},mh={like:!1,inferred:!1,id:"get-last-in-list-input-list-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,asType:!1,isList:!0,parent:hh},vh={type:n.GenericReference,id:"get-last-in-list-operation-output-element-return-ref",entityId:"get-last-in-list-output-element-return-delaration",version:"1",entityType:n.ValueDescriptor},Th={like:!1,inferred:!1,id:"get-last-in-list-output-element-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ae,asType:!1,isList:!0,parent:vh},Ih={type:n.GenericReference,id:"get-last-in-list-operation-input-list-argument-parent-ref",entityId:he.GetLast,version:"1",entityType:n.ActionDescriptor},Eh={id:"get-last-in-list-input-list-argument-declaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"List",description:"The list to get the last element from.",defaultValue:null,dataType:mh,parentRelationType:N.FixedArguments,required:!0,index:0,parent:Ih},Ah={type:n.GenericReference,id:"get-last-in-list-operation-output-element-return-parent-ref",entityId:he.GetLast,version:"1",entityType:n.ActionDescriptor},bh={parentRelationType:N.FixedReturns,id:"get-last-in-list-output-element-return-delaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Last element",description:"The last element of the given list.",defaultValue:null,dataType:Th,required:!0,index:0,parent:Ah},Rh={type:n.GenericReference,id:"get-last-in-list-operation-error-parent-ref",entityId:he.GetLast,version:"1",entityType:n.ActionDescriptor},Dh={parentRelationType:N.FixedReturns,id:"get-last-in-list-error-return-delaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Error",description:"An error that occurred during the operation.",defaultValue:null,dataType:null,required:!0,index:1,parent:Rh},Dl={id:he.GetLast,type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:he.GetLast,description:"Outputs the last element of a given list.",inputs:[Eh],outputs:[bh],error:Dh,parent:null};var Oh=(r=>(r.List="append-to-list-lsit-argument-declaration",r.ElementToAppend="append-to-list-element-to-append-argument-declaration",r))(Oh||{}),Ph=(r=>(r.ResultList="append-to-list-result-list-return-delaration",r.Error="append-to-list-error-return-delaration",r))(Ph||{});const wh={type:n.GenericReference,id:"append-to-list-operation-lsit-argument-ref",entityId:"append-to-list-lsit-argument-declaration",version:"1",entityType:n.ValueDescriptor},Ch={like:!1,inferred:!1,id:"append-to-list-lsit-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,asType:!1,isList:!0,parent:wh},Vh={type:n.GenericReference,id:"append-to-list-operation-second-list-argument-ref",entityId:"append-to-list-element-to-append-argument-declaration",version:"1",entityType:n.ValueDescriptor},Bh={like:!1,inferred:!1,id:"append-to-list-second-list-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,asType:!1,isList:!0,parent:Vh},_h={type:n.GenericReference,id:"append-to-list-operation-result-list-return-ref",entityId:"append-to-list-result-list-return-delaration",version:"1",entityType:n.ValueDescriptor},Mh={like:!1,inferred:!1,id:"append-to-list-result-list-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ae,asType:!1,isList:!0,parent:_h},Nh={type:n.GenericReference,id:"append-to-list-operation-lsit-argument-parent-ref",entityId:he.Append,version:"1",entityType:n.ActionDescriptor},Ol={id:"append-to-list-lsit-argument-declaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"List value",description:"The list to which the element will be appended",defaultValue:null,dataType:Ch,parentRelationType:N.FixedArguments,required:!0,index:0,parent:Nh},Lh={type:n.GenericReference,id:"append-to-list-operation-second-list-argument-parent-ref",entityId:he.Append,version:"1",entityType:n.ActionDescriptor},Pl={id:"append-to-list-element-to-append-argument-declaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Element",description:"The element that will be added at the end of the list",defaultValue:null,dataType:Bh,parentRelationType:N.FixedArguments,required:!0,index:1,parent:Lh},jh={type:n.GenericReference,id:"append-to-list-operation-result-list-return-parent-ref",entityId:he.Append,version:"1",entityType:n.ActionDescriptor},Uh={parentRelationType:N.FixedReturns,id:"append-to-list-result-list-return-delaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Result",description:"The resulting list value.",defaultValue:null,dataType:Mh,required:!0,index:0,parent:jh},$h={type:n.GenericReference,id:"append-to-list-operation-error-parent-ref",entityId:he.Append,version:"1",entityType:n.ActionDescriptor},gh={parentRelationType:N.FixedReturns,id:"append-to-list-error-return-delaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Error",description:"An error that occurred during the operation.",defaultValue:null,dataType:null,required:!0,index:1,parent:$h},Xa={id:he.Append,type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:he.Append,description:"Adds a given element to the end of a list value.",inputs:[Ol,Pl],error:gh,outputs:[Uh],parent:null},Gh={[he.Join]:Al,[he.Split]:Rl,[he.GetLast]:Dl,[he.Append]:Xa},qn=k[n.Operation][Qe.Parallel],Fh={id:"parallel-execution-list-of-functions-blueprint-dynamic-output-parent-ref",type:n.GenericReference,entityId:"parallel-execution-list-of-functions-blueprint-id",version:"1",entityType:n.ActionDescriptor},xh={id:"parallel-execution-list-of-functions-blueprint-dynamic-output-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Any output value",description:"An output value of any type, to be used in the action to be executed.",defaultValue:null,dataType:null,required:!1,index:0,parent:Fh,parentRelationType:N.DynamicArgument},kh={id:"parallel-execution-list-of-functions-blueprint-dynamic-input-parent-ref",type:n.GenericReference,entityId:"parallel-execution-list-of-functions-blueprint-id",version:"1",entityType:n.ActionDescriptor},Zh={id:"parallel-execution-list-of-functions-blueprint-dynamic-input-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Any input value",description:"An input value of any type, to be used in the action to be executed.",defaultValue:null,dataType:null,required:!1,index:0,parent:kh,parentRelationType:N.DynamicArgument},qh={id:"parallel-execution-list-of-functions-blueprint-parent-ref",type:n.GenericReference,entityId:"parallel-execution-list-of-functions-argument-data-type-id",version:"1",entityType:n.DataType},Jh={id:"parallel-execution-list-of-functions-blueprint-id",type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Action to execute",description:"An action of any type, to be executed. It can contain any number of inputs and outputs.",inputs:[Zh],outputs:[xh],error:null,parent:qh},Sh={type:n.GenericReference,id:"3bd4aeb2-e3b7-4120-b289-011ebb03dba5",entityId:qn.inputs.listOfActions.id,version:"1",entityType:n.ValueDescriptor},Wh={like:!1,inferred:!1,id:"parallel-execution-list-of-functions-argument-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Jh,asType:!1,isList:!0,parent:Sh},zh={type:n.GenericReference,id:"da5e9fe9-f18a-49e3-98e5-c1bf7b9b3153",entityId:qn.outputs.results.id,version:"1",entityType:n.ValueDescriptor},Yh={like:!1,inferred:!1,id:qn.outputs.results.dataType.id,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,asType:!1,isList:!0,parent:zh},Hh={type:n.GenericReference,id:"a6c14305-d4f7-43ae-9d5e-b7dbacdc830a",entityId:Qe.Parallel,version:"1",entityType:n.ActionDescriptor},wl={id:qn.inputs.listOfActions.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Actions to execute",description:"A value, of a list of actions to be executed in parallel",dataType:Wh,defaultValue:null,required:!0,index:0,parent:Hh,parentRelationType:N.FixedArguments},Kh={type:n.GenericReference,id:"caac2bc7-c23c-4f01-9581-a515c2e4637f",entityId:Qe.Parallel,version:"1",entityType:n.ActionDescriptor},Cl={id:qn.outputs.results.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"List of execution results",description:"Each execution result, in the same order as the input list of actions. One item on this list for each executed action.",dataType:Yh,defaultValue:null,required:!0,index:0,parent:Kh,parentRelationType:N.FixedReturns},Xh={type:n.GenericReference,id:"parallel-execution-operation-error-parent-ref",entityId:Qe.Parallel,version:"1",entityType:n.ActionDescriptor},Qh={id:qn.outputs.error.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Error",description:"An error that occurred during the operation.",defaultValue:null,dataType:null,required:!0,index:1,parent:Xh,parentRelationType:N.ReturnedError},Vi={id:Qe.Parallel,type:n.ActionDescriptor,description:"Execute a list of actions in parallel",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:Qe.Parallel,inputs:[wl],outputs:[Cl],error:Qh,parent:null};var em=(r=>(r.MillisecondsNumber="wait-milliseconds-number-argument-declaration",r))(em||{}),tm=(r=>(r.Error="wait-operation-error-return-delaration",r))(tm||{});const im={type:n.GenericReference,id:"3bd4aeb2-e3b7-4120-b289-011ebb03dba5",version:"1",entityType:n.ValueDescriptor,entityId:"wait-milliseconds-number-argument-declaration"},rm={like:!1,inferred:!1,id:"wait-milliseconds-number-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,isList:!1,asType:!1,parent:im},nm={type:n.GenericReference,id:"a6c14305-d4f7-43ae-9d5e-b7dbacdc830a",version:"1",entityType:n.ActionDescriptor,entityId:Qe.Wait},ln={id:"wait-milliseconds-number-argument-declaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Milliseconds to wait",description:"The amount of milliseconds to wait before calling the next entity",defaultValue:null,dataType:rm,required:!0,index:0,parent:nm,parentRelationType:N.FixedArguments},sm={type:n.GenericReference,id:"wait-operation-error-parent-ref",entityId:Qe.Wait,version:"1",entityType:n.ActionDescriptor},am={id:"wait-operation-error-return-delaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Error",description:"An error that occurred during the operation.",defaultValue:null,dataType:null,required:!0,index:1,parent:sm,parentRelationType:N.ReturnedError},Wt={id:Qe.Wait,type:n.ActionDescriptor,description:"Wait for the given amount of milliseconds before calling the next entity",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:Qe.Wait,inputs:[ln],outputs:[],error:am,parent:null};var om=(r=>(r.ListOfFunctions="sequential-execution-list-of-functions-argument-declaration",r))(om||{}),dm=(r=>(r.ListOfExecutionResults="sequential-execution-result-return-delaration",r.Error="sequential-execution-error-return-delaration",r))(dm||{});const lm={id:"sequential-execution-list-of-functions-blueprint-dynamic-output-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Any output value",description:"An output value of any type, to be used in the action to be executed.",defaultValue:null,dataType:null,required:!1,index:0,parent:null,parentRelationType:N.DynamicArgument},um={id:"sequential-execution-list-of-functions-blueprint-dynamic-input-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Any input value",description:"An input value of any type, to be used in the action to be executed.",defaultValue:null,dataType:null,required:!1,index:0,parent:null,parentRelationType:N.DynamicArgument},pm={id:"sequential-execution-list-of-functions-blueprint-id",type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Action to execute",description:"An action of any type, to be executed. It can contain any number of inputs and outputs.",inputs:[um],outputs:[lm],error:null,parent:null},cm={type:n.GenericReference,id:"parallel-execution-list-of-functions-argument-declaration-id",entityId:"sequential-execution-list-of-functions-argument-declaration",version:"1",entityType:n.ValueDescriptor},fm={like:!1,inferred:!1,id:"sequential-execution-list-of-functions-argument-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:pm,asType:!1,isList:!0,parent:cm},ym={type:n.GenericReference,id:"sequential-execution-list-of-execution-results-return-declaration-id",entityId:"sequential-execution-result-return-delaration",version:"1",entityType:n.ValueDescriptor},hm={like:!1,inferred:!1,id:"sequential-execution-list-of-execution-results-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,asType:!1,isList:!0,parent:ym},mm={type:n.GenericReference,id:"parallel-execution-operation-list-of-functions-argument-parent-ref",entityId:Qe.Sequential,version:"1",entityType:n.ActionDescriptor},Vl={id:"sequential-execution-list-of-functions-argument-declaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Actions to execute",description:"A value, of a list of actions to be executed in parallel",defaultValue:null,dataType:fm,required:!0,index:0,parent:mm,parentRelationType:N.FixedArguments},vm={type:n.GenericReference,id:"parallel-execution-operation-list-of-execution-results-return-parent-ref",entityId:Qe.Sequential,version:"1",entityType:n.ActionDescriptor},Bl={id:"sequential-execution-result-return-delaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"List of execution results",description:"Each execution result, in the same order as the input list of actions. One item on this list for each executed action.",defaultValue:null,dataType:hm,required:!0,index:0,parent:vm,parentRelationType:N.FixedReturns},Tm={type:n.GenericReference,id:"sequential-execution-operation-error-parent-ref",entityId:Qe.Sequential,version:"1",entityType:n.ActionDescriptor},Im={id:"sequential-execution-error-return-delaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Error",description:"An error that occurred during the operation.",defaultValue:null,dataType:null,required:!0,index:1,parent:Tm,parentRelationType:N.ReturnedError},or={id:Qe.Sequential,type:n.ActionDescriptor,description:"Execute a list of actions one after the other",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:Qe.Sequential,inputs:[Vl],outputs:[Bl],error:Im,parent:null},Em={[Qe.Parallel]:Vi,[Qe.Wait]:Wt,[Qe.Sequential]:or};var Am=(r=>(r.EntityToInstanciate="entity-to-instanciate-argument-declaration",r.NewEntityData="new-entity-data-argument-declaration",r))(Am||{}),bm=(r=>(r.Error="create-new-instance-error-return-delaration",r))(bm||{});const Rm={type:n.GenericReference,id:"new-entity-data-argument-declaration-parent-ref",entityId:et.CreateNewInstance,version:"1",entityType:n.ActionDescriptor},Dm={type:n.GenericReference,id:"new-entity-data-argument-data-type-parent-ref",entityId:"new-entity-data-argument-declaration",version:"1",entityType:n.ValueDescriptor},Om={like:!1,inferred:!1,id:"new-entity-data-argument-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,isList:!1,asType:!1,parent:Dm},Pm={id:"new-entity-data-argument-declaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Data for new entity",description:"The data to be used to create the new entity, with all the required properties",dataType:Om,required:!0,defaultValue:null,parentRelationType:N.FixedArguments,index:1,parent:Rm},wm={type:n.GenericReference,id:"entity-to-instanciate-argument-declaration-ref",version:"1",entityType:n.ValueDescriptor,entityId:"entity-to-instanciate-argument-declaration"},Cm={like:!1,inferred:!1,id:"entity-to-instanciate-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,isList:!1,asType:!0,parent:wm},Vm={type:n.GenericReference,id:"create-new-instance-operation-ref",version:"1",entityType:n.ActionDescriptor,entityId:et.CreateNewInstance},Bm={id:"entity-to-instanciate-argument-declaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Entity to create a new copy of",description:"The entity of which a new copy will to be created",defaultValue:null,dataType:Cm,required:!0,parentRelationType:N.FixedArguments,index:0,parent:Vm},_m={type:n.GenericReference,id:"create-new-instance-output-entity-declaration-parent-ref",entityId:et.CreateNewInstance,version:"1",entityType:n.ActionDescriptor},Mm={parentRelationType:N.FixedReturns,id:"create-new-instance-output-entity-declaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Created entity",description:"The entity that was created",defaultValue:null,dataType:null,parent:_m,required:!0,index:0},Nm={type:n.GenericReference,id:"create-new-instance-error-parent-ref",entityId:et.CreateNewInstance,version:"1",entityType:n.ActionDescriptor},Lm={parentRelationType:N.FixedReturns,id:"create-new-instance-error-return-delaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Error",description:"An error that occurred during the operation.",defaultValue:null,dataType:null,required:!0,index:1,parent:Nm},un={id:et.CreateNewInstance,type:n.ActionDescriptor,description:"Creates a new copy of a given entity, with the given values for each property, or default values if a value is not provided",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:et.CreateNewInstance,inputs:[Bm,Pm],outputs:[Mm],error:Lm,parent:null},Jn=k[n.Operation][et.Validate],jm={type:n.GenericReference,id:"validate-data-operation-data-to-validate-argument-declaration-ref",version:"1",entityType:n.ValueDescriptor,entityId:Jn.inputs.dataToValidate.id},Um={like:!1,inferred:!1,id:"validate-data-operation-data-to-validate-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,isList:!1,asType:!1,parent:jm},$m={type:n.GenericReference,id:"validate-data-operation-data-to-validate-argument-parent-ref",version:"1",entityType:n.ActionDescriptor,entityId:et.Validate},gm={id:Jn.inputs.dataToValidate.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Data to validate",description:"The value to validate against the given entity type",defaultValue:null,dataType:Um,required:!0,parentRelationType:N.FixedArguments,index:0,parent:$m},Gm={type:n.GenericReference,id:"validate-data-operation-entity-to-match-type-argument-declaration-ref",version:"1",entityType:n.ValueDescriptor,entityId:Jn.inputs.entityToMatch.id},Fm={like:!1,inferred:!1,id:"validate-data-operation-entity-to-match-type-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,isList:!1,asType:!0,parent:Gm},xm={type:n.GenericReference,id:"validate-data-operation-entity-to-match-type-argument-parent-ref",version:"1",entityType:n.ActionDescriptor,entityId:et.Validate},km={id:Jn.inputs.entityToMatch.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Entity to match",description:"The entity to match the data against",dataType:Fm,defaultValue:null,required:!0,index:0,parentRelationType:N.FixedArguments,parent:xm},Zm={type:n.GenericReference,id:"validate-data-operation-output-entity-declaration-parent-ref",entityId:et.Validate,version:"1",entityType:n.ActionDescriptor},qm={id:Jn.outputs.outputEntity.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,dataType:null,name:"Output value",description:"A value with the type of the entity that was validated",defaultValue:null,parent:Zm,required:!0,index:0,parentRelationType:N.FixedReturns},Jm={type:n.GenericReference,id:"wait-operation-error-parent-ref",entityId:et.Validate,version:"1",entityType:n.ActionDescriptor},Sm={id:Jn.outputs.error.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Error",description:"An error that occurred during the operation.",dataType:null,defaultValue:null,required:!0,index:1,parent:Jm,parentRelationType:N.ReturnedError},pn={id:et.Validate,type:n.ActionDescriptor,description:"Validates the given data to see if it matches the structure of a given type/entity",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:et.Validate,inputs:[km,gm],outputs:[qm],error:Sm,parent:null},Wm={[et.CreateNewInstance]:un,[et.Validate]:pn},At=k[n.Operation]["base-http-request"],zm={type:n.GenericReference,id:"d87cf943-57e1-4d19-9f05-190fa8c8ebc4",version:"1",entityType:n.ValueDescriptor,entityId:At.inputs.url.id},Ym={id:"http-request-url-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:"https://some-url.com",name:L.String,valueAsTypeSingle:null,valueAsTypeList:null,parent:zm,autogeneration:null},Hm={type:n.GenericReference,id:"aed50d73-eab5-42ce-b00e-7f5c45a9026f",entityId:At.inputs.url.id,version:"1",entityType:n.ValueDescriptor},Km={like:!1,inferred:!1,id:"0deb4ef7-d739-4ddc-a4d6-50bd6fababe3",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ae,asType:!1,isList:!1,parent:Hm},Xm={type:n.GenericReference,id:"c3145af6-3387-464a-8887-272e483c856d",entityId:At.inputs.query.id,version:"1",entityType:n.ValueDescriptor},Qm={like:!1,inferred:!1,id:"2a5ba737-6335-4cc4-a2c0-16dca4052fac",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ae,asType:!1,isList:!1,parent:Xm},e0={type:n.GenericReference,id:"075556b7-e468-48f7-8485-7159eaf389b2",version:"1",entityType:n.ValueDescriptor,entityId:At.inputs.method.id},t0={id:"http-request-method-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:"GET",name:L.Enum,valueAsTypeSingle:null,valueAsTypeList:null,parent:e0,autogeneration:null},i0={type:n.GenericReference,id:"aed647c8-a1b5-4cfc-9a3d-97887a567a80",entityId:At.inputs.method.id,version:"1",entityType:n.ValueDescriptor},r0={like:!1,inferred:!1,id:"6df7ec2b-5dbd-44af-896b-17b314e88560",type:n.DataType,parentRelationType:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:nr,isList:!1,asType:!1,options:["GET","POST","PUT","DELETE","PATCH","OPTIONS","HEAD","TRACE","CONNECT","CUSTOM"],parent:i0},n0={type:n.GenericReference,id:"77203dfa-d2f6-4804-9556-e1cce46228f3",entityId:At.inputs.headers.id,version:"1",entityType:n.ValueDescriptor},s0={like:!1,inferred:!1,id:"2c8a2a07-69c6-40ad-b5c9-f0dc4d5955ce",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:wt,asType:!1,isList:!1,parent:n0},a0={type:n.GenericReference,id:"03db68a0-7ab6-4c6a-85b6-f4b95ebb53ff",entityId:At.inputs.body.id,version:"1",entityType:n.ValueDescriptor},o0={like:!1,inferred:!1,id:"0397876c-ed54-4ee9-85a4-04fd16dad973",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:wt,asType:!1,isList:!1,parent:a0},d0={type:n.GenericReference,id:"182f767f-50e8-4394-ba5f-43e78c232733",version:"1",entityType:n.ValueDescriptor,entityId:At.outputs.code.id},l0={like:!1,inferred:!1,id:"45e6d0bc-0c0e-4059-a7a1-6bee925d73d0",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,asType:!1,isList:!1,parent:d0},u0={type:n.GenericReference,id:"2baaa53a-9aef-4bd1-b06d-967c17b7b627",version:"1",entityType:n.ValueDescriptor,entityId:At.outputs.headers.id},p0={type:n.GenericReference,id:"69f34d6c-c686-4165-b6ff-70dae8e1778b",version:"1",entityType:n.ValueDescriptor,entityId:At.outputs.headers.id},c0={like:!1,inferred:!1,id:"dac63bfa-640d-4f4e-ba0f-86c2401bcfbe",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:wt,isList:!1,asType:!1,parent:p0},f0={type:n.GenericReference,id:"744334e0-5135-4214-85d0-809437cb620b",version:"1",entityType:n.ValueDescriptor,entityId:At.outputs.body.id},y0={type:n.GenericReference,id:"0e0e20df-1a46-432c-ba01-fd96508a6a61",version:"1",entityType:n.ValueDescriptor,entityId:At.outputs.body.id},h0={like:!1,inferred:!1,id:"05fc1a5d-151a-479a-9c4e-4063f3456177",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:wt,isList:!1,asType:!1,parent:y0},m0={type:n.GenericReference,id:"26911792-f707-4bf1-b6f7-03d04a84232c",version:"1",entityType:n.ActionDescriptor,entityId:Lt.HttpRequest},Qa={id:At.inputs.method.id,type:n.ValueDescriptor,description:"A single word that represents the type of request you want to make. For example: GET, POST, PUT, DELETE, PATCH, OPTIONS, HEAD, TRACE, CONNECT, CUSTOM",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Method",defaultValue:t0,dataType:r0,required:!1,index:0,parentRelationType:N.FixedArguments,parent:m0},v0={type:n.GenericReference,id:"eee0c501-0ae6-4448-b914-aada76d63163",version:"1",entityType:n.ActionDescriptor,entityId:Lt.HttpRequest},eo={id:At.inputs.url.id,type:n.ValueDescriptor,description:"The base domain, or address where the request is being sent to. For example: https://some-url.com",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"URL",dataType:Km,defaultValue:Ym,required:!1,index:1,parentRelationType:N.FixedArguments,parent:v0},T0={type:n.GenericReference,id:"670091a4-21b1-4223-ad4c-b6dada0aec49",version:"1",entityType:n.ActionDescriptor,entityId:Lt.HttpRequest},_l={id:At.inputs.query.id,type:n.ValueDescriptor,description:"A text with standarized format, without spaces that is added at the end of the URL path, after the ? character. It contains data that might be used to process the request. For example: /api/users?name=John&age=30",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Query Params",defaultValue:null,dataType:Qm,required:!1,index:2,parentRelationType:N.FixedArguments,parent:T0},I0={type:n.GenericReference,id:"85aad3eb-22fe-45f9-b68c-1dc7061f41e0",version:"1",entityType:n.ActionDescriptor,entityId:Lt.HttpRequest},to={id:At.inputs.headers.id,type:n.ValueDescriptor,description:"A set of any properties, with names and values that represent metadata about the request, such as the server, date, content type, and more, that you want to send alongside your request data.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Headers",defaultValue:null,dataType:s0,required:!1,index:3,parent:I0,parentRelationType:N.FixedArguments},E0={type:n.GenericReference,id:"c3e2a4af-9b84-4574-8b30-5044ffc51776",version:"1",entityType:n.ActionDescriptor,entityId:Lt.HttpRequest},io={id:At.inputs.body.id,type:n.ValueDescriptor,description:"The main data payload of the request. This is the data that you want to send to the server. It could be anything, but it is usually a KeyValue data structure or a text value.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Body",dataType:o0,defaultValue:null,required:!1,index:4,parentRelationType:N.FixedArguments,parent:E0},A0={type:n.GenericReference,id:"92e04dc7-2145-4a31-908e-03810f7235e8",version:"1",entityType:n.ActionDescriptor,entityId:Lt.HttpRequest},ro={id:At.outputs.code.id,type:n.ValueDescriptor,description:'A standardized status code of the response. It is a 3-digit number that represents the response status. For example, 200 means "OK", 404 means "Not Found", and 500 means "Internal Server Error".',version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Code",defaultValue:null,dataType:l0,required:!0,index:0,parentRelationType:N.FixedReturns,parent:A0},b0={type:n.GenericReference,id:"86aca556-bbf1-4679-9909-31db61b288e2",version:"1",entityType:n.ActionDescriptor,entityId:Lt.HttpRequest},no={parentRelationType:N.FixedReturns,id:At.outputs.headers.id,type:n.ValueDescriptor,description:"A set of any properties, with names and value that the server sent back to you. It represents metadata about the response, such as the server, date, content type, and more.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Headers",defaultValue:{id:"http-response-headers-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:{},name:L.KeyValue,parent:u0,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null},dataType:c0,required:!0,index:1,parent:b0},R0={type:n.GenericReference,id:"ccf3d1be-04e4-4d03-99fd-5bc1e1919f90",version:"1",entityType:n.ActionDescriptor,entityId:Lt.HttpRequest},so={id:At.outputs.body.id,type:n.ValueDescriptor,description:"The main data payload of the response. This is the data that the server sent back to you. It could be anything, but it is usually a KeyValue data structure or a text value.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Body",parentRelationType:N.FixedReturns,dataType:h0,defaultValue:{id:"http-response-body-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:{},name:L.KeyValue,parent:f0,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null},required:!0,index:2,parent:R0},D0={type:n.GenericReference,id:"21487ffc-82b9-473d-bc19-6e7d7c480ed7",version:"1",entityType:n.ActionDescriptor,entityId:Lt.HttpRequest},O0={type:n.GenericReference,id:"ad69861b-32f7-4461-b7f7-aa84a82578d9",version:"1",entityType:n.ValueDescriptor,entityId:At.outputs.error.id},P0={like:!1,inferred:!1,id:"5da68b15-57bc-40c1-b79f-a9075e0f22c1",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:wt,isList:!1,asType:!1,parent:O0},Ml={parentRelationType:N.ReturnedError,id:At.outputs.error.id,type:n.ValueDescriptor,description:"Http request error, if any. Contains a payload describing what went wrong.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Error",defaultValue:null,dataType:P0,required:!0,index:0,parent:D0},Ms={type:n.ActionDescriptor,id:Lt.HttpRequest,name:Lt.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:[Qa,eo,_l,to,io],outputs:[ro,no,so],error:Ml,parent:null},w0={[Lt.HttpRequest]:Ms},C0={...My,...Wf,...Gh,...Em,...Wm,...w0},V0=Object.values(C0),Bw=k[n.Loop]["manual-flow-loop"],B0={id:"manual-flow-loop-dynamic-return-declaration-parent-ref-id",type:n.GenericReference,entityId:ee.ManualFlow,version:"1",entityType:n.ActionDescriptor},_0={id:Bw.outputs.results.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Ouput value",description:"An output value of the loop",defaultValue:null,required:!1,dataType:null,index:0,parent:B0,parentRelationType:N.DynamicReturn},ao={id:ee.ManualFlow,type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:ee.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:[_0],error:null,parent:null},Ns=k[n.Loop]["manual-flow-loop"],M0={id:"manual-flow-loop-current-iteration-number-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"manual-flow-loop-current-iteration-number-declaration-id",version:"1",entityType:n.ValueDescriptor},N0={like:!1,inferred:!1,id:"manual-flow-loop-current-iteration-number-declaration-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,entity:ve,asType:!1,parent:M0},L0={id:"manual-flow-loop-current-iteration-number-declaration-parent-ref-id",type:n.GenericReference,entityId:Ns.body.id,version:"1",entityType:n.ActionDescriptor},Nl={id:Ns.body.inputs.iterationNumber.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Current iteration number",description:"The number of the current iteration of the manual flow loop. Keeps track of the number of iterations that have been executed.",defaultValue:null,dataType:N0,required:!0,index:0,parentRelationType:N.FixedArguments,parent:L0},j0={id:"manual-flow-loop-body-any-dynamic-argument-parent-ref-id",type:n.GenericReference,entityId:Ns.body.id,version:"1",entityType:n.ActionDescriptor},U0={id:"manual-flow-loop-body-any-dynamic-argument-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Any value",description:"Values inputed to the loop's body as an aggregation of the respective values outputed.",defaultValue:null,dataType:null,required:!1,index:1,parentRelationType:N.DynamicArgument,parent:j0},$0={id:"manual-flow-loop-body-any-dynamic-return-parent-ref-id",type:n.GenericReference,entityId:Ns.body.id,version:"1",entityType:n.ActionDescriptor},g0={id:"manual-flow-loop-body-any-dynamic-return-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Any value",description:"Values outputed by the loop's body.",defaultValue:null,dataType:null,required:!1,index:0,parentRelationType:N.DynamicReturn,parent:$0},oo={id:Ns.body.id,type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Iteration logic trigger",description:"Describes the body of the manual flow loop.",inputs:[Nl,U0],outputs:[g0],error:null,parent:null},G0=k[n.Loop]["string-loop"],F0={id:"iterate-over-string-loop-string-argument-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"iterate-over-string-loop-string-argument-declaration-id",version:"1",entityType:n.ValueDescriptor},x0={like:!1,inferred:!1,id:"iterate-over-string-loop-string-argument-declaration-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,entity:ae,asType:!1,parent:F0},k0={id:"iterate-over-string-loop-string-argument-declaration-parent-ref-id",type:n.GenericReference,entityId:ee.String,version:"1",entityType:n.ActionDescriptor},Z0={id:G0.inputs.string.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Texts",description:"The text to iterate over the characters of",defaultValue:null,required:!0,dataType:x0,index:0,parent:k0,parentRelationType:N.FixedArguments},q0={id:"iterate-over-string-loop-dynamic-return-declaration-parent-ref-id",type:n.GenericReference,entityId:ee.String,version:"1",entityType:n.ActionDescriptor},J0={id:G0.outputs.results.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Ouput value",description:"An output value of the loop",defaultValue:null,required:!1,dataType:null,index:0,parent:q0,parentRelationType:N.DynamicReturn},Ls={id:ee.String,type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:ee.String,description:"Iterates over a string of entities",inputs:[Z0],outputs:[J0],error:null,parent:null},cn=k[n.Loop]["string-loop"],S0={id:"iterate-over-string-loop-body-current-value-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"iterate-over-string-loop-body-current-value-declaration-id",version:"1",entityType:n.ValueDescriptor},W0={like:!1,inferred:!1,id:"iterate-over-string-loop-body-current-value-declaration-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,entity:ae,asType:!1,parent:S0},z0={id:"iterate-over-string-loop-body-current-value-declaration-parent-ref-id",type:n.GenericReference,entityId:cn.body.id,version:"1",entityType:n.ActionDescriptor},Ll={id:cn.body.inputs.currentValue.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Current value",description:"The current value in the string that is being iterated over. This value is passed to the child actions.",defaultValue:null,dataType:W0,required:!0,index:1,parentRelationType:N.FixedArguments,parent:z0},Y0={id:"iterate-over-string-loop-body-current-iteration-number-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"iterate-over-string-loop-body-current-iteration-number-declaration-id",version:"1",entityType:n.ValueDescriptor},H0={like:!1,inferred:!1,id:"iterate-over-string-loop-body-current-iteration-number-declaration-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,entity:ve,asType:!1,parent:Y0},K0={id:"iterate-over-string-loop-body-current-iteration-number-declaration-parent-ref-id",type:n.GenericReference,entityId:cn.body.id,version:"1",entityType:n.ActionDescriptor},jl={id:cn.body.inputs.iterationNumber.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Current iteration number",description:"The number of the current iteration of the string loop. Keeps track of the number of iterations that have been executed.",defaultValue:null,dataType:H0,required:!0,index:0,parentRelationType:N.FixedArguments,parent:K0},X0={id:"iterate-over-string-loop-body-any-dynamic-argument-parent-ref-id",type:n.GenericReference,entityId:cn.body.id,version:"1",entityType:n.ActionDescriptor},Q0={id:"iterate-over-string-loop-body-any-dynamic-argument-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Any value",description:"Values inputed to the loop's body as an aggregation of the respective values outputed.",defaultValue:null,dataType:null,required:!1,index:2,parentRelationType:N.DynamicArgument,parent:X0},ev={id:"iterate-over-string-loop-body-any-dynamic-return-parent-ref-id",type:n.GenericReference,entityId:cn.body.id,version:"1",entityType:n.ActionDescriptor},tv={id:"iterate-over-string-loop-body-any-dynamic-return-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Any value",description:"Values outputed by the loop's body.",defaultValue:null,dataType:null,required:!1,index:0,parentRelationType:N.DynamicReturn,parent:ev},lo={id:cn.body.id,type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Iteration logic trigger",description:"Describes the body of the string loop.",inputs:[jl,Ll,Q0],outputs:[tv],error:null,parent:null},iv=k[n.Loop]["list-loop"],rv={id:"iterate-over-list-loop-list-argument-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"iterate-over-list-loop-list-argument-declaration-id",version:"1",entityType:n.ValueDescriptor},nv={like:!1,inferred:!1,id:"iterate-over-list-loop-list-argument-declaration-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!0,entity:null,asType:!1,parent:rv},sv={id:"iterate-over-list-loop-list-argument-declaration-parent-ref-id",type:n.GenericReference,entityId:ee.List,version:"1",entityType:n.ActionDescriptor},av={id:iv.inputs.list.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"List",description:"The list to iterate over",required:!0,defaultValue:null,dataType:nv,index:0,parent:sv,parentRelationType:N.FixedArguments},ov={id:"iterate-over-list-loop-dynamic-return-declaration-parent-ref-id",type:n.GenericReference,entityId:ee.List,version:"1",entityType:n.ActionDescriptor},dv={id:iv.outputs.results.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Ouput value",description:"An output value of the loop",required:!1,defaultValue:null,dataType:null,index:0,parent:ov,parentRelationType:N.DynamicReturn},Or={id:ee.List,type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:ee.List,description:"Iterates over a list of entities",inputs:[av],outputs:[dv],error:null,parent:null},fn=k[n.Loop]["list-loop"],lv={id:"iterate-over-list-loop-body-current-value-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"iterate-over-list-loop-body-current-value-declaration-id",version:"1",entityType:n.ValueDescriptor},uv={like:!1,inferred:!1,id:"iterate-over-list-loop-body-current-value-declaration-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,entity:null,asType:!1,parent:lv},pv={id:"iterate-over-list-loop-body-current-value-declaration-parent-ref-id",type:n.GenericReference,entityId:fn.body.id,version:"1",entityType:n.ActionDescriptor},uo={id:fn.body.inputs.currentValue.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Current value",description:"The current value in the list that is being iterated over. This value is passed to the child actions.",defaultValue:null,dataType:uv,required:!0,index:1,parentRelationType:N.FixedArguments,parent:pv},cv={id:"iterate-over-list-loop-body-current-iteration-number-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"iterate-over-list-loop-body-current-iteration-number-declaration-id",version:"1",entityType:n.ValueDescriptor},fv={like:!1,inferred:!1,id:"iterate-over-list-loop-body-current-iteration-number-declaration-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,entity:ve,asType:!1,parent:cv},yv={id:"iterate-over-list-loop-body-current-iteration-number-declaration-parent-ref-id",type:n.GenericReference,entityId:fn.body.id,version:"1",entityType:n.ActionDescriptor},hv={id:fn.body.inputs.iterationNumber.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Current iteration number",description:"The number of the current iteration of the list loop. Keeps track of the number of iterations that have been executed.",defaultValue:null,dataType:fv,required:!0,index:0,parentRelationType:N.FixedArguments,parent:yv},mv={id:"iterate-over-list-loop-body-any-dynamic-argument-parent-ref-id",type:n.GenericReference,entityId:fn.body.id,version:"1",entityType:n.ActionDescriptor},vv={id:"iterate-over-list-loop-body-any-dynamic-argument-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Any value",description:"Values inputed to the loop's body as an aggregation of the respective values outputed.",defaultValue:null,dataType:null,required:!1,index:2,parentRelationType:N.DynamicArgument,parent:mv},Tv={id:"iterate-over-list-loop-body-any-dynamic-return-parent-ref-id",type:n.GenericReference,entityId:fn.body.id,version:"1",entityType:n.ActionDescriptor},Iv={id:"iterate-over-list-loop-body-any-dynamic-return-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Any value",description:"Values outputed by the loop's body.",defaultValue:null,dataType:null,required:!1,index:0,parentRelationType:N.DynamicReturn,parent:Tv},js={id:fn.body.id,type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Iteration logic trigger",description:"Describes the body of the list loop.",inputs:[hv,uo,vv],outputs:[Iv],error:null,parent:null},Ev=k[n.Loop]["object-keys-loop"],Av={id:"iterate-over-object-keys-loop-object-argument-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"iterate-over-object-keys-loop-object-argument-declaration-id",version:"1",entityType:n.ValueDescriptor},bv={like:!1,inferred:!1,id:"iterate-over-object-keys-loop-object-argument-declaration-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,entity:wt,asType:!1,parent:Av},Rv={id:"iterate-over-object-keys-loop-object-argument-declaration-parent-ref-id",type:n.GenericReference,entityId:ee.ObjectKeys,version:"1",entityType:n.ActionDescriptor},Dv={id:Ev.inputs.object.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Object",description:"The object to iterate over",required:!0,defaultValue:null,dataType:bv,index:0,parent:Rv,parentRelationType:N.FixedArguments},Ov={id:"iterate-over-object-keys-loop-dynamic-return-declaration-parent-ref-id",type:n.GenericReference,entityId:ee.ObjectKeys,version:"1",entityType:n.ActionDescriptor},Pv={id:Ev.outputs.results.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Ouput value",description:"An output value of the loop",defaultValue:null,required:!1,dataType:null,index:0,parent:Ov,parentRelationType:N.DynamicReturn},Sn={id:ee.ObjectKeys,type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:ee.ObjectKeys,description:"Iterates over a object of entities",inputs:[Dv],outputs:[Pv],error:null,parent:null},yn=k[n.Loop]["object-keys-loop"],wv={id:"iterate-over-object-keys-loop-body-current-value-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"iterate-over-object-keys-loop-body-current-value-declaration-id",version:"1",entityType:n.ValueDescriptor},Cv={like:!1,inferred:!1,id:"iterate-over-object-keys-loop-body-current-value-declaration-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,entity:ae,asType:!1,parent:wv},Vv={id:"iterate-over-object-keys-loop-body-current-value-declaration-parent-ref-id",type:n.GenericReference,entityId:yn.body.id,version:"1",entityType:n.ActionDescriptor},Ul={id:yn.body.inputs.currentValue.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Current value",description:"The current value in the object-keys that is being iterated over. This value is passed to the child actions.",defaultValue:null,dataType:Cv,required:!0,index:1,parentRelationType:N.FixedArguments,parent:Vv},Bv={id:"iterate-over-object-keys-loop-body-current-iteration-number-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"iterate-over-object-keys-loop-body-current-iteration-number-declaration-id",version:"1",entityType:n.ValueDescriptor},_v={like:!1,inferred:!1,id:"iterate-over-object-keys-loop-body-current-iteration-number-declaration-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,entity:ve,asType:!1,parent:Bv},Mv={id:"iterate-over-object-keys-loop-body-current-iteration-number-declaration-parent-ref-id",type:n.GenericReference,entityId:yn.body.id,version:"1",entityType:n.ActionDescriptor},Nv={id:yn.body.inputs.iterationNumber.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Current iteration number",description:"The number of the current iteration of the object-keys loop. Keeps track of the number of iterations that have been executed.",defaultValue:null,dataType:_v,required:!0,index:0,parentRelationType:N.FixedArguments,parent:Mv},Lv={id:"iterate-over-object-keys-loop-body-any-dynamic-argument-parent-ref-id",type:n.GenericReference,entityId:yn.body.id,version:"1",entityType:n.ActionDescriptor},jv={id:"iterate-over-object-keys-loop-body-any-dynamic-argument-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Any value",description:"Values inputed to the loop's body as an aggregation of the respective values outputed.",defaultValue:null,dataType:null,required:!1,index:2,parentRelationType:N.DynamicArgument,parent:Lv},Uv={id:"iterate-over-object-keys-loop-body-any-dynamic-return-parent-ref-id",type:n.GenericReference,entityId:yn.body.id,version:"1",entityType:n.ActionDescriptor},$v={id:"iterate-over-object-keys-loop-body-any-dynamic-return-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Any value",description:"Values outputed by the loop's body.",defaultValue:null,dataType:null,required:!1,index:0,parentRelationType:N.DynamicReturn,parent:Uv},$l={id:yn.body.id,type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Iteration logic trigger",description:"Describes the body of the object-keys loop.",inputs:[Nv,Ul,jv],outputs:[$v],error:null,parent:null},gv=k[n.Loop]["object-values-loop"],Gv={id:"iterate-over-object-values-loop-object-argument-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"iterate-over-object-values-loop-object-argument-declaration-id",version:"1",entityType:n.ValueDescriptor},Fv={like:!1,inferred:!1,id:"iterate-over-object-values-loop-object-argument-declaration-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,entity:wt,asType:!1,parent:Gv},xv={id:"iterate-over-object-values-loop-object-argument-declaration-parent-ref-id",type:n.GenericReference,entityId:ee.ObjectValues,version:"1",entityType:n.ActionDescriptor},kv={id:gv.inputs.object.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Object",description:"The object to iterate over",required:!0,defaultValue:null,dataType:Fv,index:0,parent:xv,parentRelationType:N.FixedArguments},Zv={id:"iterate-over-object-values-loop-dynamic-return-declaration-parent-ref-id",type:n.GenericReference,entityId:ee.ObjectValues,version:"1",entityType:n.ActionDescriptor},qv={id:gv.outputs.results.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Ouput value",description:"An output value of the loop",defaultValue:null,required:!1,dataType:null,index:0,parent:Zv,parentRelationType:N.DynamicReturn},Wn={id:ee.ObjectValues,type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:ee.ObjectValues,description:"Iterates over a object of entities",inputs:[kv],outputs:[qv],error:null,parent:null},hn=k[n.Loop]["object-values-loop"],Jv={id:"iterate-over-object-values-loop-body-current-value-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"iterate-over-object-values-loop-body-current-value-declaration-id",version:"1",entityType:n.ValueDescriptor},Sv={id:"iterate-over-object-values-loop-body-current-value-declaration-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:null,entity:null,asType:null,like:!1,inferred:!1,parent:Jv},Wv={id:"iterate-over-object-values-loop-body-current-value-declaration-parent-ref-id",type:n.GenericReference,entityId:hn.body.id,version:"1",entityType:n.ActionDescriptor},gl={id:hn.body.inputs.currentValue.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Current value",description:"The current value in the object-values that is being iterated over. This value is passed to the child actions.",defaultValue:null,dataType:Sv,required:!0,index:1,parentRelationType:N.FixedArguments,parent:Wv},zv={id:"iterate-over-object-values-loop-body-current-iteration-number-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"iterate-over-object-values-loop-body-current-iteration-number-declaration-id",version:"1",entityType:n.ValueDescriptor},Yv={like:!1,inferred:!1,id:"iterate-over-object-values-loop-body-current-iteration-number-declaration-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,entity:ve,asType:!1,parent:zv},Hv={id:"iterate-over-object-values-loop-body-current-iteration-number-declaration-parent-ref-id",type:n.GenericReference,entityId:hn.body.id,version:"1",entityType:n.ActionDescriptor},Kv={id:hn.body.inputs.iterationNumber.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Current iteration number",description:"The number of the current iteration of the object-values loop. Keeps track of the number of iterations that have been executed.",defaultValue:null,dataType:Yv,required:!0,index:0,parentRelationType:N.FixedArguments,parent:Hv},Xv={id:"iterate-over-object-values-loop-body-any-dynamic-argument-parent-ref-id",type:n.GenericReference,entityId:hn.body.id,version:"1",entityType:n.ActionDescriptor},Qv={id:"iterate-over-object-values-loop-body-any-dynamic-argument-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Any value",description:"Values inputed to the loop's body as an aggregation of the respective values outputed.",defaultValue:null,dataType:null,required:!1,index:2,parentRelationType:N.DynamicArgument,parent:Xv},eT={id:"iterate-over-object-values-loop-body-any-dynamic-return-parent-ref-id",type:n.GenericReference,entityId:hn.body.id,version:"1",entityType:n.ActionDescriptor},tT={id:"iterate-over-object-values-loop-body-any-dynamic-return-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Any value",description:"Values outputed by the loop's body.",defaultValue:null,dataType:null,required:!1,index:0,parentRelationType:N.DynamicReturn,parent:eT},Gl={id:hn.body.id,type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Iteration logic trigger",description:"Describes the body of the object-values loop.",inputs:[Kv,gl,Qv],outputs:[tT],error:null,parent:null},Fl=k[n.Loop]["counted-loop"],iT={id:"counted-loop-string-argument-declaration-data-type-default-value-parent-ref-id",type:n.GenericReference,entityId:Fl.inputs.number.id,version:"1",entityType:n.ValueDescriptor},rT={id:"counted-loop-string-argument-declaration-data-type-default-value-id",type:n.LiteralValue,name:L.Number,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:5,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null,parent:iT},nT={id:"counted-loop-string-argument-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"counted-loop-string-argument-declaration-id",version:"1",entityType:n.ValueDescriptor},sT={like:!1,inferred:!1,id:"counted-loop-string-argument-declaration-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,entity:ve,asType:!1,parent:nT},aT={id:"counted-loop-string-argument-declaration-parent-ref-id",type:n.GenericReference,entityId:ee.Counted,version:"1",entityType:n.ActionDescriptor},oT={id:Fl.inputs.number.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Number of iterations",description:"The number of iterations to perform",required:!0,dataType:sT,defaultValue:rT,index:0,parent:aT,parentRelationType:N.FixedArguments},dT={id:"counted-loop-dynamic-return-declaration-parent-ref-id",type:n.GenericReference,entityId:ee.Counted,version:"1",entityType:n.ActionDescriptor},lT={id:Fl.outputs.results.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Ouput value",description:"An output value of the loop",defaultValue:null,required:!1,dataType:null,index:0,parent:dT,parentRelationType:N.DynamicReturn},Us={id:ee.Counted,type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:ee.Counted,description:"Iterates a given number of times",inputs:[oT],outputs:[lT],error:null,parent:null},$s=k[n.Loop]["counted-loop"],uT={id:"counted-loop-body-current-iteration-number-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"counted-loop-body-current-iteration-number-declaration-id",version:"1",entityType:n.ValueDescriptor},pT={like:!1,inferred:!1,id:"counted-loop-body-current-iteration-number-declaration-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,entity:ve,asType:!1,parent:uT},cT={id:"counted-loop-body-current-iteration-number-declaration-parent-ref-id",type:n.GenericReference,entityId:$s.body.id,version:"1",entityType:n.ActionDescriptor},xl={id:$s.body.inputs.iterationNumber.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Current iteration number",description:"The number of the current iteration of the string loop. Keeps track of the number of iterations that have been executed.",defaultValue:null,dataType:pT,required:!0,index:0,parentRelationType:N.FixedArguments,parent:cT},fT={id:"counted-loop-body-any-dynamic-argument-parent-ref-id",type:n.GenericReference,entityId:$s.body.id,version:"1",entityType:n.ActionDescriptor},yT={id:"counted-loop-body-any-dynamic-argument-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Any value",description:"Values inputed to the loop's body as an aggregation of the respective values outputed.",defaultValue:null,dataType:null,required:!1,index:1,parentRelationType:N.DynamicArgument,parent:fT},hT={id:"counted-loop-body-any-dynamic-return-parent-ref-id",type:n.GenericReference,entityId:$s.body.id,version:"1",entityType:n.ActionDescriptor},mT={id:"counted-loop-body-any-dynamic-return-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Any value",description:"Values outputed by the loop's body.",defaultValue:null,dataType:null,required:!1,index:0,parentRelationType:N.DynamicReturn,parent:hT},po={id:$s.body.id,type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Iteration logic trigger",description:"Describes the body of the string loop.",inputs:[xl,yT],outputs:[mT],error:null,parent:null},vT=[ao,Or,Ls,Sn,Wn,Us],TT=[oo,js,lo,$l,Gl,po],Pr=k[n.BuiltInBaseEntity][S.HTTP_ENDPOINT].properties,hi=k[n.BuiltInBaseEntity][S.HTTP_ENDPOINT].methods,IT={id:"endpointBuiltInCorsPropertyDataTypeRef",type:n.GenericReference,version:"1",entityType:n.ValueDescriptor,entityId:Pr.cors.id},ET={id:"endpointBuiltInCorsPropertyRef",type:n.GenericReference,version:"1",entityType:n.Property,entityId:Pr.cors.id},AT={like:!1,inferred:!1,id:"endpointBuiltInCorsPropertyDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!0,entity:ae,asType:!1,parent:ET},bT={id:"endpointBuiltInBaseEntityRef",type:n.GenericReference,version:"1",entityType:n.BuiltInBaseEntity,entityId:S.HTTP_ENDPOINT},RT={constant:!0,hidden:!0,required:!0,id:Pr.cors.id,name:"Allowed origins",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!0,implements:null,static:!0,index:0,dataType:AT,defaultValue:{id:"endpointBuiltInCorsPropertyDataTypeDefaultValueId",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.KeyValue,value:["*"],parent:IT,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},description:"The origins that are allowed to access this endpoint, use * for all origins, or http://example.com/* to be as specific as you need.",parent:bT},DT={id:"endpointBuiltInPathPropertyDataTypeRef",type:n.GenericReference,version:"1",entityType:n.ValueDescriptor,entityId:Pr.path.id},OT={id:"endpointBuiltInPathPropertyRef",type:n.GenericReference,version:"1",entityType:n.Property,entityId:Pr.path.id},PT={like:!1,inferred:!1,id:"endpointBuiltInPathPropertyDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ae,asType:!1,parent:OT},wT={id:"endpointBuiltInBaseEntityRefTwo",type:n.GenericReference,version:"1",entityType:n.BuiltInBaseEntity,entityId:S.HTTP_ENDPOINT},kl={constant:!0,id:Pr.path.id,hidden:!1,required:!0,name:"Path",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!0,implements:null,static:!0,index:1,dataType:PT,defaultValue:{id:"endpointBuiltInPathPropertyDataTypeDefaultValueId",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.String,value:"/",parent:DT,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},description:"Path to the endpoint, for example /api/users, or /api/users/{id}, or /api/users/{id}/:name. The path can contain parameters, which are defined by curly braces, and will be passed to the endpoint event as variables with the same name.",parent:wT},CT={id:"endpointBuiltInMethodPropertyDataTypeRef",type:n.GenericReference,version:"1",entityType:n.ValueDescriptor,entityId:Pr.method.id},VT={id:"endpointBuiltInMethodPropertyRef",type:n.GenericReference,version:"1",entityType:n.Property,entityId:"endpointBuiltInMethodProperty"},BT={like:!1,inferred:!1,id:"endpointBuiltInMethodPropertyDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,entity:nr,isList:!1,asType:!1,options:["GET","POST","PUT","DELETE","PATCH","OPTIONS","HEAD","TRACE","CONNECT","CUSTOM"],parent:VT},_T={id:"endpointBuiltInBaseEntityRefThree",type:n.GenericReference,version:"1",entityType:n.BuiltInBaseEntity,entityId:S.HTTP_ENDPOINT},Zl={constant:!0,hidden:!1,required:!0,id:Pr.method.id,name:"Method",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,index:2,implements:null,defaultValue:{id:"endpointBuiltInMethodPropertyDataTypeDefaultValueId",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:"GET",name:L.Enum,parent:CT,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},abstract:!0,static:!0,dataType:BT,description:"The HTTP method that this endpoint will respond to, for example GET, POST, PUT, DELETE, etc.",parent:_T},MT={id:"endpointRequestHeadersVariableDataTypeRef",type:n.GenericReference,version:"1",entityType:n.ValueDescriptor,entityId:"endpointRequestHeadersArgumentDeclaration"},NT={id:"endpointRequestHeadersArgumentDeclarationRef",type:n.GenericReference,version:"1",entityType:n.ArgumentDeclaration,entityId:"endpointRequestHeadersArgumentDeclaration"},LT={like:!1,inferred:!1,id:"endpointRequestHeadersVariableDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!0,entity:wt,asType:!1,parent:NT},jT={id:"endpointRequestBodyArgumentDeclarationRef",type:n.GenericReference,version:"1",entityType:n.ArgumentDeclaration,entityId:"endpointRequestBodyArgumentDeclaration"},UT={like:!1,inferred:!1,id:"endpointRequestBodyVariableDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,asType:!1,entity:wt,parent:jT},$T={id:"endpointRequestQueryParamsVariableDataTypeRef",type:n.GenericReference,version:"1",entityType:n.ValueDescriptor,entityId:"endpointRequestQueryParamsArgumentDeclaration"},gT={id:"endpointRequestQueryParamsArgumentDeclarationRef",type:n.GenericReference,version:"1",entityType:n.ArgumentDeclaration,entityId:"endpointRequestQueryParamsArgumentDeclaration"},GT={like:!1,inferred:!1,id:"endpointRequestQueryParamsVariableDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!0,asType:!1,entity:Zn,parent:gT},FT={id:"endpointPathParamsVariableDataTypeRef",type:n.GenericReference,version:"1",entityType:n.ValueDescriptor,entityId:"endpointPathParamsArgumentDeclaration"},xT={id:"endpointPathParamsArgumentDeclarationRef",type:n.GenericReference,version:"1",entityType:n.ArgumentDeclaration,entityId:"endpointPathParamsArgumentDeclaration"},kT={like:!1,inferred:!1,id:"endpointPathParamsVariableDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!0,entity:Zn,asType:!1,parent:xT},ZT={id:"endpointReachedTriggerActionDescriptorRef",type:n.GenericReference,version:"1",entityType:n.ActionDescriptor,entityId:hi.handler.id},ql={id:"endpointRequestHeadersArgumentDeclaration",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:"A set of any properties, with names and value that transmit metadata about the request.",type:n.ValueDescriptor,name:"Request headers",dataType:LT,defaultValue:{id:"endpointRequestHeadersVariableDataTypeDefaultValueId",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.KeyValue,value:{},parent:MT,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},required:!0,index:0,parentRelationType:N.FixedArguments,parent:ZT},qT={id:"endpointReachedTriggerActionDescriptorRefTwo",type:n.GenericReference,version:"1",entityType:n.ActionDescriptor,entityId:hi.handler.id},Jl={id:"endpointPathParamsArgumentDeclaration",type:n.ValueDescriptor,description:"A standarized text, without spaces that is added at the end of the domain and routes the request to a specific resource within the target server. For example: /api/users/123, /api/users/123/:name, /api/users/123/:name/:age.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Path parameters",dataType:kT,defaultValue:{id:"endpointPathParamsVariableDataTypeDefaultValueId",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.KeyValue,value:[],parent:FT,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},required:!0,index:1,parentRelationType:N.FixedArguments,parent:qT},JT={id:"endpointReachedTriggerActionDescriptorRefThree",type:n.GenericReference,version:"1",entityType:n.ActionDescriptor,entityId:hi.handler.id},Sl={id:"endpointRequestQueryParamsArgumentDeclaration",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:"A text with standarized format, without spaces that is added at the end of the URL path, after the ? character. It contains data that might be used to process the request. For example: /api/users?name=John&age=30",type:n.ValueDescriptor,name:"Request query params",dataType:GT,defaultValue:{id:"endpointRequestQueryParamsVariableDataTypeDefaultValueId",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.KeyValue,value:[],parent:$T,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},required:!0,index:2,parentRelationType:N.FixedArguments,parent:JT},ST={id:"endpointReachedTriggerActionDescriptorRefFour",type:n.GenericReference,version:"1",entityType:n.ActionDescriptor,entityId:hi.handler.id},Wl={id:"endpointRequestBodyArgumentDeclaration",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:"The main data payload of the request.",type:n.ValueDescriptor,name:"Request body",dataType:UT,defaultValue:null,index:3,required:!0,parentRelationType:N.FixedArguments,parent:ST},WT={id:"endpointResponseCodeReturnDeclarationRef",type:n.GenericReference,version:"1",entityType:n.ReturnDeclaration,entityId:hi.handler.outputs.statusCode.id},zT={like:!1,inferred:!1,id:"9ba575b0-6f8e-436d-a3de-3b843622aa17",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,asType:!1,isList:!1,parent:WT},YT={id:"endpointReturnStatementRef",type:n.GenericReference,version:"1",entityType:n.ActionDescriptor,entityId:"endpointReturnStatement"},HT={id:"endpointResponseCodeReturnDeclarationDefaultValueParentRef",type:n.GenericReference,version:"1",entityType:n.ValueDescriptor,entityId:hi.handler.outputs.statusCode.id},zl={id:hi.handler.outputs.statusCode.id,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:"A standarized number that represents the status of the response. 200 for OK, 404 for not found, 500 for server error, etc.",type:n.ValueDescriptor,name:"Response code",dataType:zT,defaultValue:{id:"endpointResponseCodeDataTypeDefaultValueId",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.Number,value:200,parent:HT,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},required:!0,index:0,parentRelationType:N.FixedReturns,parent:YT},KT={id:"endpointResponseHeadersDataTypeRef",type:n.GenericReference,version:"1",entityType:n.ValueDescriptor,entityId:hi.handler.outputs.headers.id},XT={id:"endpointResponseHeadersReturnDeclarationRef",type:n.GenericReference,version:"1",entityType:n.ReturnDeclaration,entityId:hi.handler.outputs.headers.id},QT={like:!1,inferred:!1,id:"endpointResponseHeadersDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!0,entity:wt,asType:!1,parent:XT},eI={id:"endpointReturnStatementRefTwo",type:n.GenericReference,version:"1",entityType:n.ActionDescriptor,entityId:"endpointReturnStatement"},Yl={id:hi.handler.outputs.headers.id,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:"A set of any properties, with names and value that transmit metadata about the response.",type:n.ValueDescriptor,name:"Response headers",dataType:QT,defaultValue:{id:"endpointResponseHeadersDataTypeDefaultValueId",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.KeyValue,value:{},parent:KT,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},required:!1,index:1,parentRelationType:N.FixedReturns,parent:eI},tI={id:"endpointResponseBodyReturnDeclarationRef",type:n.GenericReference,version:"1",entityType:n.ReturnDeclaration,entityId:hi.handler.outputs.body.id},iI={like:!1,inferred:!1,id:"endpointResponseBodyDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,asType:!1,entity:wt,parent:tI},rI={id:"endpointReturnStatementRefThree",type:n.GenericReference,version:"1",entityType:n.ActionDescriptor,entityId:"endpointReturnStatement"},Hl={id:hi.handler.outputs.body.id,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:"The main data payload of the response.",type:n.ValueDescriptor,name:"Response body",dataType:iI,defaultValue:null,required:!1,index:2,parentRelationType:N.FixedReturns,parent:rI},nI={id:"endpointBuiltInBaseEntityRefFour",type:n.GenericReference,version:"1",entityType:n.BuiltInBaseEntity,entityId:S.HTTP_ENDPOINT},Kl={id:hi.handler.id,type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Endpoint reached",description:"Fired when the endpoint is reached.",inputs:[ql,Jl,Sl,Wl],outputs:[zl,Yl,Hl],error:null,parent:nI},ni={id:S.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:S.HTTP_ENDPOINT,type:n.BuiltInBaseEntity,interactive:!1,abstract:!0,static:!0,properties:[RT,kl,Zl],abstractMethods:[Kl],extends:[],methods:[]},Bt=k[n.BuiltInBaseEntity].BUILT_IN_RELATIONAL_DATABASE_ENTITY,sI={id:"relational-database-built-in-base-entity-identifier-property-data-type-ref-id",type:n.GenericReference,entityId:Bt.properties.identifier.id,version:"1",entityType:n.Property},aI={id:"relational-database-built-in-base-entity-identifier-property-ref-id",type:n.GenericReference,entityId:Bt.properties.identifier.id,version:"1",entityType:n.Property},oI={like:!1,inferred:!1,id:"relational-database-built-in-base-entity-identifier-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ae,asType:!1,parent:aI},zn={id:"relational-database-built-in-base-entity-ref-id",type:n.GenericReference,entityId:S.PERSISTED_ENTITY,version:"1",entityType:n.BuiltInBaseEntity},co={constant:!0,id:Bt.properties.identifier.id,hidden:!1,required:!0,name:"Identifier name",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!0,static:!0,implements:null,index:0,defaultValue:{id:"relational-database-built-in-base-entity-identifier-property-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.String,value:null,parent:sI,autogeneration:{type:vt.Unique,rangeStart:null,rangeEnd:null},valueAsTypeList:null,valueAsTypeSingle:null},dataType:oI,description:"The name of the main database inside of the server instance where the data will be stored.",parent:zn},_w={id:"relational-database-built-in-base-entity-username-property-data-type-ref-id",type:n.GenericReference,entityId:"relational-database-built-in-base-entity-username-property-data-type-idd",version:"1",entityType:n.Property},dI={id:"relational-database-built-in-base-entity-username-property-ref-id",type:n.GenericReference,entityId:Bt.properties.username.id,version:"1",entityType:n.Property},lI={like:!1,inferred:!1,id:"relational-database-built-in-base-entity-username-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ae,asType:!1,parent:dI},fo={constant:!0,hidden:!1,required:!0,id:Bt.properties.username.id,name:"Username",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!0,static:!0,implements:null,index:1,defaultValue:{id:"relational-database-built-in-base-entity-username-property-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.String,value:"postgres",parent:{id:"relational-database-built-in-base-entity-username-property-data-type-default-value-parent-ref-id",type:n.GenericReference,entityId:Bt.properties.username.id,version:"1",entityType:n.Property},autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},dataType:lI,description:"The username that will be used to connect to the database.",parent:zn},Mw={id:"relational-database-built-in-base-entity-password-property-data-type-ref-id",type:n.GenericReference,entityId:"relational-database-built-in-base-entity-password-property-data-type-id",version:"1",entityType:n.Property},uI={id:"relational-database-built-in-base-entity-password-property-ref-id",type:n.GenericReference,entityId:Bt.properties.password.id,version:"1",entityType:n.Property},pI={like:!1,inferred:!1,id:"relational-database-built-in-base-entity-password-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ae,asType:!1,parent:uI},cI={id:"relational-database-built-in-base-entity-password-property-default-value-parent-ref-id",type:n.GenericReference,entityId:Bt.properties.password.id,version:"1",entityType:n.Property},yo={constant:!0,hidden:!1,required:!0,id:Bt.properties.password.id,name:"Password",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!0,static:!0,implements:null,index:2,defaultValue:{id:"relational-database-built-in-base-entity-password-property-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.String,value:"123456789",parent:cI,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},dataType:pI,description:"The password that will be used to connect to the database.",parent:zn},fI={id:"relational-database-built-in-base-entity-min-size-property-data-type-ref-id",type:n.GenericReference,entityId:Bt.properties.minSize.id,version:"1",entityType:n.Property},yI={id:"relational-database-built-in-base-entity-min-size-property-ref-id",type:n.GenericReference,entityId:Bt.properties.minSize.id,version:"1",entityType:n.Property},hI={like:!1,inferred:!1,id:"relational-database-built-in-base-entity-min-size-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ve,asType:!1,parent:yI},ho={constant:!0,hidden:!0,required:!0,id:Bt.properties.minSize.id,name:"Minimum GB size",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!0,static:!0,implements:null,index:3,defaultValue:{id:"relational-database-built-in-base-entity-min-size-property-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.Number,value:6,parent:fI,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},dataType:hI,description:"The minimum size of the database in GB.",parent:zn},mI={id:"relational-database-built-in-base-entity-default-property-data-type-ref-id",type:n.GenericReference,entityId:Bt.properties.default.id,version:"1",entityType:n.Property},vI={id:"relational-database-built-in-base-entity-default-property-ref-id",type:n.GenericReference,entityId:Bt.properties.default.id,version:"1",entityType:n.Property},TI={like:!1,inferred:!1,id:"relational-database-built-in-base-entity-default-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:rr,asType:!1,parent:vI},Xl={constant:!0,hidden:!0,required:!0,id:Bt.properties.default.id,name:"Default",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!0,static:!0,implements:null,index:4,defaultValue:{id:"relational-database-built-in-base-entity-default-property-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.Boolean,value:!1,parent:mI,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},dataType:TI,description:"If true, this database will be the default database for the server instance and all the new entities.",parent:zn},II={id:"relational-database-built-in-base-entity-autoscaling-property-ref-id",type:n.GenericReference,entityId:Bt.properties.autoscaling.id,version:"1",entityType:n.Property},EI={id:"relational-database-built-in-base-entity-autoscaling-property-data-type-ref-id",type:n.GenericReference,entityId:Bt.properties.autoscaling.id,version:"1",entityType:n.Property},AI={like:!1,inferred:!1,id:"relational-database-built-in-base-entity-autoscaling-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:rr,asType:!1,parent:II},bI={id:"relational-database-built-in-base-entity-autoscaling-property-parent-ref-id",type:n.GenericReference,entityId:S.PERSISTED_ENTITY,version:"1",entityType:n.BuiltInBaseEntity},Ql={constant:!0,hidden:!0,required:!0,id:Bt.properties.autoscaling.id,name:"Auto-scaling",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!0,static:!0,implements:null,index:4,defaultValue:{id:"relational-database-built-in-base-entity-autoscaling-property-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.Boolean,value:!1,parent:EI,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},dataType:AI,description:"If true, this database will automatically scale up or down in memory size, based on the usage.",parent:bI},Dt={id:S.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:S.RELATIONAL_DATABASE,type:n.BuiltInBaseEntity,abstract:!0,static:!0,interactive:!1,properties:[co,fo,yo,ho,Xl,Ql],abstractMethods:[],methods:[],extends:[]},RI={type:n.GenericReference,entityId:"persisted-built-in-base-entity-ref-id",version:"1",entityType:n.BuiltInBaseEntity,id:ci.DeletePersistedEntity},eu={type:n.FunctionDeclaration,id:ci.DeletePersistedEntity,name:ci.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:RI,inputs:[],calls:[],implements:null,collapsed:!1,index:0,private:!1,x:0,y:0},DI=k[n.BuiltInBaseEntity][S.PERSISTED_ENTITY].properties,Nw={id:"persisted-built-in-base-entity-database-property-data-type-ref-id",type:n.GenericReference,entityId:"persisted-built-in-base-entity-database-property-data-type-id",version:"1",entityType:n.DataType},OI={id:"persisted-built-in-base-entity-database-property-ref-id",type:n.GenericReference,entityId:"persisted-built-in-base-entity-database-property-id",version:"1",entityType:n.Property},PI={like:!1,inferred:!1,id:"persisted-built-in-base-entity-database-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:Dt,asType:!0,parent:OI},wI={id:"persisted-built-in-base-entity-database-property-parent-ref-id",type:n.GenericReference,entityId:S.PERSISTED_ENTITY,version:"1",entityType:n.BuiltInBaseEntity},Yn={constant:!0,hidden:!0,required:!0,id:DI.database.id,name:"Database",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,defaultValue:null,private:!1,abstract:!0,implements:null,static:!0,index:0,dataType:PI,description:"The database that the entity belongs to.",parent:wI},CI={id:"persisted-built-in-base-entity-primary-key-property-number-data-type-option-parent-ref-id",type:n.GenericReference,entityId:"persisted-built-in-base-entity-primary-key-property-data-type-id",version:"1",entityType:n.DataType},VI={like:!1,inferred:!1,id:"persisted-built-in-base-entity-primary-key-property-number-data-type-option-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ve,asType:!1,parentRelationType:Pt.OrDataTypeGroup,parent:CI},BI={id:"persisted-built-in-base-entity-primary-key-property-string-data-type-option-parent-ref-id",type:n.GenericReference,entityId:"persisted-built-in-base-entity-primary-key-property-data-type-id",version:"1",entityType:n.DataType},_I={like:!1,inferred:!1,id:"persisted-built-in-base-entity-primary-key-property-string-data-type-option-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ae,asType:!1,parentRelationType:Pt.OrDataTypeGroup,parent:BI},MI={id:"persisted-built-in-base-entity-primary-key-property-uuid-data-type-option-parent-ref-id",type:n.GenericReference,entityId:"persisted-built-in-base-entity-primary-key-property-data-type-id",version:"1",entityType:n.DataType},NI={like:!1,inferred:!1,id:"persisted-built-in-base-entity-primary-key-property-uuid-data-type-option-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:sr,asType:!1,parentRelationType:Pt.OrDataTypeGroup,parent:MI},LI={id:"persisted-built-in-base-entity-primary-key-property-ref-id",type:n.GenericReference,entityId:"persisted-built-in-base-entity-primary-key-property-id",version:"1",entityType:n.Property},jI={like:!1,inferred:!1,id:"persisted-built-in-base-entity-primary-key-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,andChildrenGroup:null,orChildrenGroup:[NI,_I,VI],isList:!1,entity:null,asType:null,implementationChooseOne:!0,parent:LI},UI={id:"persisted-built-in-base-entity-primary-key-property-parent-ref-id",type:n.GenericReference,entityId:S.PERSISTED_ENTITY,version:"1",entityType:n.BuiltInBaseEntity},Hn={constant:!1,hidden:!1,required:!0,id:DI.primaryKey.id,name:"Primary key",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,defaultValue:null,private:!1,abstract:!0,implements:null,static:!1,index:0,dataType:jI,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:UI},_t={id:S.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:S.PERSISTED_ENTITY,type:n.BuiltInBaseEntity,abstract:!0,static:!1,interactive:!0,abstractMethods:[],properties:[Yn,Hn],methods:[eu],extends:[]},$I={type:n.GenericReference,entityId:"persisted-built-in-base-entity-ref-id",version:"1",entityType:n.BuiltInBaseEntity,id:ci.SoftDeletePersistedEntity},Lw={type:n.FunctionDeclaration,id:ci.SoftDeletePersistedEntity,name:ci.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:$I,inputs:[],calls:[],implements:null,collapsed:!1,index:0,private:!1,x:0,y:0},jw=k[n.BuiltInBaseEntity][S.CRON_JOB].methods,gI={id:"cron-job-triggered-function-declaration-blueprint-parent-ref-id",type:n.GenericReference,version:"1",entityType:n.BuiltInBaseEntity,entityId:S.CRON_JOB},tu={id:jw.handler.id,name:"Scheduled job triggered",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.ActionDescriptor,description:"Executed when the scheduled job is triggered",inputs:[],error:null,outputs:[],parent:gI},GI=k[n.BuiltInBaseEntity].BUILT_IN_CRON_JOB_ENTITY,Uw={id:"cron-job-built-in-base-entity-expression-property-data-type-ref",type:n.GenericReference,entityId:"cron-job-built-in-base-entity-expression-property-data-type",version:"1",entityType:n.DataType},FI={id:"cron-job-built-in-base-entity-expression-property-ref",type:n.GenericReference,entityId:GI.properties.expression.id,version:"1",entityType:n.Property},$w={like:!1,inferred:!1,id:"cron-job-built-in-base-entity-expression-property-data-type",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ae,asType:!1,parent:FI},xI={id:"cron-job-built-in-base-entity-ref",type:n.GenericReference,entityId:S.CRON_JOB,version:"1",entityType:n.BuiltInBaseEntity},kI={constant:!1,hidden:!1,required:!0,id:GI.properties.expression.id,name:"Cron expression",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,defaultValue:null,private:!1,abstract:!0,implements:null,static:!0,index:0,dataType:$w,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:xI},mo={id:S.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:S.CRON_JOB,type:n.BuiltInBaseEntity,abstract:!0,static:!0,interactive:!1,properties:[kI],methods:[],abstractMethods:[tu],extends:[]},ZI={type:n.GenericReference,id:"execution-built-in-entity-abort-method-parent-ref-id",version:"1",entityType:n.BuiltInBaseEntity,entityId:"execution-built-in-entity-id"},iu={id:"execution-built-in-entity-abort-method-id",type:n.FunctionDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:ci.AbortExecution,description:"Aborts the execution of the entity",inputs:[],calls:[],implements:null,private:!1,collapsed:!1,index:null,x:0,y:0,parent:ZI},vo={id:S.EXECUTION,type:n.BuiltInBaseEntity,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:S.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:[iu],abstractMethods:[]},qI=[ni,Dt,_t,mo,vo],gw=k[n.Condition]["not-empty"],JI={type:n.GenericReference,id:"not-empty-condition-ref",version:"1",entityType:n.ActionDescriptor,entityId:bi.NotEmpty},SI={id:gw.inputs.leftHand.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Value",description:"The value to check if it is not empty",defaultValue:null,dataType:null,required:!1,parentRelationType:N.FixedArguments,index:0,parent:JI},mn={type:n.ActionDescriptor,id:bi.NotEmpty,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:bi.NotEmpty,description:"Checks if the value is not empty",parent:null,inputs:[SI],outputs:[],error:null},WI={[bi.NotEmpty]:mn},Kn=k[n.Condition]["more-than-or-equal"],zI={type:n.GenericReference,id:"more-than-or-equal-condition-left-hand-argument-data-type-parent-ref",version:"1",entityType:n.ValueDescriptor,entityId:Kn.inputs.leftHand.id},YI={type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,id:Kn.inputs.leftHand.dataType.id,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,like:!1,isList:!1,inferred:!1,andChildrenGroup:null,orChildrenGroup:null,asType:!1,parent:zI},HI={type:n.GenericReference,id:"more-than-or-equal-condition-left-hand-argument-parent-ref",version:"1",entityType:n.ActionDescriptor,entityId:yt.MoreThanOrEqual},KI={id:Kn.inputs.leftHand.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"First value",description:"The first value to compare",defaultValue:null,dataType:YI,required:!0,parentRelationType:N.FixedArguments,index:0,parent:HI},XI={type:n.GenericReference,id:"more-than-or-equal-condition-right-hand-argument-data-type-parent-ref",version:"1",entityType:n.ValueDescriptor,entityId:Kn.inputs.rightHand.id},QI={type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,id:Kn.inputs.rightHand.dataType.id,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,like:!1,isList:!1,inferred:!1,andChildrenGroup:null,orChildrenGroup:null,asType:!1,parent:XI},eE={type:n.GenericReference,id:"more-than-or-equal-condition-right-hand-argument-parent-ref",version:"1",entityType:n.ActionDescriptor,entityId:yt.MoreThanOrEqual},tE={id:Kn.inputs.rightHand.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Second value",description:"The second value to compare",defaultValue:null,dataType:QI,required:!0,parentRelationType:N.FixedArguments,index:1,parent:eE},Xn={type:n.ActionDescriptor,id:yt.MoreThanOrEqual,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:yt.MoreThanOrEqual,description:"Checks if the value is not empty",parent:null,inputs:[KI,tE],outputs:[],error:null},iE={[yt.MoreThanOrEqual]:Xn},rE={...WI,...iE},nE=Object.values(rE),To={type:n.ActionDescriptor,id:ir.PROJECT_PUBLICATION_COMPLETED,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:ir.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},sE={[ir.PROJECT_PUBLICATION_COMPLETED]:To},aE=Object.values(sE),ru=k[n.ValueDescriptor][za.ActionOngoingProcessOutputValue],oE={type:n.GenericReference,id:"182f767f-50e8-4394-ba5f-43e78c232733",version:"1",entityType:n.ValueDescriptor,entityId:ru.id},dE={like:!1,inferred:!1,id:ru.dataType.id,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:vo,asType:!1,isList:!1,parent:oE},Io={id:ru.id,type:n.ValueDescriptor,description:"A value that represents the ongoing process of the parent action",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Process",defaultValue:null,dataType:dE,required:!0,index:0,parent:null,parentRelationType:N.OngoingProcessExecution},lE=[Io],uE=[...vf,...V0,...vT,...TT,...qI,...nE,...aE,...lE];var ze;(function(r){r.assertEqual=i=>i;function a(i){}r.assertIs=a;function e(i){throw new Error}r.assertNever=e,r.arrayToEnum=i=>{const s={};for(const d of i)s[d]=d;return s},r.getValidEnumValues=i=>{const s=r.objectKeys(i).filter(o=>typeof i[i[o]]!="number"),d={};for(const o of s)d[o]=i[o];return r.objectValues(d)},r.objectValues=i=>r.objectKeys(i).map(function(s){return i[s]}),r.objectKeys=typeof Object.keys=="function"?i=>Object.keys(i):i=>{const s=[];for(const d in i)Object.prototype.hasOwnProperty.call(i,d)&&s.push(d);return s},r.find=(i,s)=>{for(const d of i)if(s(d))return d},r.isInteger=typeof Number.isInteger=="function"?i=>Number.isInteger(i):i=>typeof i=="number"&&isFinite(i)&&Math.floor(i)===i;function t(i,s=" | "){return i.map(d=>typeof d=="string"?`'${d}'`:d).join(s)}r.joinValues=t,r.jsonStringifyReplacer=(i,s)=>typeof s=="bigint"?s.toString():s})(ze||(ze={}));var nu;(function(r){r.mergeShapes=(a,e)=>({...a,...e})})(nu||(nu={}));const H=ze.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),dr=r=>{switch(typeof r){case"undefined":return H.undefined;case"string":return H.string;case"number":return isNaN(r)?H.nan:H.number;case"boolean":return H.boolean;case"function":return H.function;case"bigint":return H.bigint;case"symbol":return H.symbol;case"object":return Array.isArray(r)?H.array:r===null?H.null:r.then&&typeof r.then=="function"&&r.catch&&typeof r.catch=="function"?H.promise:typeof Map<"u"&&r instanceof Map?H.map:typeof Set<"u"&&r instanceof Set?H.set:typeof Date<"u"&&r instanceof Date?H.date:H.object;default:return H.unknown}},Z=ze.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"]),Gw=r=>JSON.stringify(r,null,2).replace(/"([^"]+)":/g,"$1:");class si extends Error{get errors(){return this.issues}constructor(a){super(),this.issues=[],this.addIssue=t=>{this.issues=[...this.issues,t]},this.addIssues=(t=[])=>{this.issues=[...this.issues,...t]};const e=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,e):this.__proto__=e,this.name="ZodError",this.issues=a}format(a){const e=a||function(s){return s.message},t={_errors:[]},i=s=>{for(const d of s.issues)if(d.code==="invalid_union")d.unionErrors.map(i);else if(d.code==="invalid_return_type")i(d.returnTypeError);else if(d.code==="invalid_arguments")i(d.argumentsError);else if(d.path.length===0)t._errors.push(e(d));else{let o=t,l=0;for(;l<d.path.length;){const u=d.path[l];l===d.path.length-1?(o[u]=o[u]||{_errors:[]},o[u]._errors.push(e(d))):o[u]=o[u]||{_errors:[]},o=o[u],l++}}};return i(this),t}static assert(a){if(!(a instanceof si))throw new Error(`Not a ZodError: ${a}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,ze.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(a=e=>e.message){const e={},t=[];for(const i of this.issues)i.path.length>0?(e[i.path[0]]=e[i.path[0]]||[],e[i.path[0]].push(a(i))):t.push(a(i));return{formErrors:t,fieldErrors:e}}get formErrors(){return this.flatten()}}si.create=r=>new si(r);const Qn=(r,a)=>{let e;switch(r.code){case Z.invalid_type:r.received===H.undefined?e="Required":e=`Expected ${r.expected}, received ${r.received}`;break;case Z.invalid_literal:e=`Invalid literal value, expected ${JSON.stringify(r.expected,ze.jsonStringifyReplacer)}`;break;case Z.unrecognized_keys:e=`Unrecognized key(s) in object: ${ze.joinValues(r.keys,", ")}`;break;case Z.invalid_union:e="Invalid input";break;case Z.invalid_union_discriminator:e=`Invalid discriminator value. Expected ${ze.joinValues(r.options)}`;break;case Z.invalid_enum_value:e=`Invalid enum value. Expected ${ze.joinValues(r.options)}, received '${r.received}'`;break;case Z.invalid_arguments:e="Invalid function arguments";break;case Z.invalid_return_type:e="Invalid function return type";break;case Z.invalid_date:e="Invalid date";break;case Z.invalid_string:typeof r.validation=="object"?"includes"in r.validation?(e=`Invalid input: must include "${r.validation.includes}"`,typeof r.validation.position=="number"&&(e=`${e} at one or more positions greater than or equal to ${r.validation.position}`)):"startsWith"in r.validation?e=`Invalid input: must start with "${r.validation.startsWith}"`:"endsWith"in r.validation?e=`Invalid input: must end with "${r.validation.endsWith}"`:ze.assertNever(r.validation):r.validation!=="regex"?e=`Invalid ${r.validation}`:e="Invalid";break;case Z.too_small:r.type==="array"?e=`Array must contain ${r.exact?"exactly":r.inclusive?"at least":"more than"} ${r.minimum} element(s)`:r.type==="string"?e=`String must contain ${r.exact?"exactly":r.inclusive?"at least":"over"} ${r.minimum} character(s)`:r.type==="number"?e=`Number must be ${r.exact?"exactly equal to ":r.inclusive?"greater than or equal to ":"greater than "}${r.minimum}`:r.type==="date"?e=`Date must be ${r.exact?"exactly equal to ":r.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(r.minimum))}`:e="Invalid input";break;case Z.too_big:r.type==="array"?e=`Array must contain ${r.exact?"exactly":r.inclusive?"at most":"less than"} ${r.maximum} element(s)`:r.type==="string"?e=`String must contain ${r.exact?"exactly":r.inclusive?"at most":"under"} ${r.maximum} character(s)`:r.type==="number"?e=`Number must be ${r.exact?"exactly":r.inclusive?"less than or equal to":"less than"} ${r.maximum}`:r.type==="bigint"?e=`BigInt must be ${r.exact?"exactly":r.inclusive?"less than or equal to":"less than"} ${r.maximum}`:r.type==="date"?e=`Date must be ${r.exact?"exactly":r.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(r.maximum))}`:e="Invalid input";break;case Z.custom:e="Invalid input";break;case Z.invalid_intersection_types:e="Intersection results could not be merged";break;case Z.not_multiple_of:e=`Number must be a multiple of ${r.multipleOf}`;break;case Z.not_finite:e="Number must be finite";break;default:e=a.defaultError,ze.assertNever(r)}return{message:e}};let pE=Qn;function Fw(r){pE=r}function Eo(){return pE}const Ao=r=>{const{data:a,path:e,errorMaps:t,issueData:i}=r,s=[...e,...i.path||[]],d={...i,path:s};if(i.message!==void 0)return{...i,path:s,message:i.message};let o="";const l=t.filter(u=>!!u).slice().reverse();for(const u of l)o=u(d,{data:a,defaultError:o}).message;return{...i,path:s,message:o}},xw=[];function z(r,a){const e=Eo(),t=Ao({issueData:a,data:r.data,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,e,e===Qn?void 0:Qn].filter(i=>!!i)});r.common.issues.push(t)}class $t{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(a,e){const t=[];for(const i of e){if(i.status==="aborted")return ye;i.status==="dirty"&&a.dirty(),t.push(i.value)}return{status:a.value,value:t}}static async mergeObjectAsync(a,e){const t=[];for(const i of e){const s=await i.key,d=await i.value;t.push({key:s,value:d})}return $t.mergeObjectSync(a,t)}static mergeObjectSync(a,e){const t={};for(const i of e){const{key:s,value:d}=i;if(s.status==="aborted"||d.status==="aborted")return ye;s.status==="dirty"&&a.dirty(),d.status==="dirty"&&a.dirty(),s.value!=="__proto__"&&(typeof d.value<"u"||i.alwaysSet)&&(t[s.value]=d.value)}return{status:a.value,value:t}}}const ye=Object.freeze({status:"aborted"}),es=r=>({status:"dirty",value:r}),zt=r=>({status:"valid",value:r}),su=r=>r.status==="aborted",au=r=>r.status==="dirty",vn=r=>r.status==="valid",gs=r=>typeof Promise<"u"&&r instanceof Promise;function bo(r,a,e,t){if(e==="a"&&!t)throw new TypeError("Private accessor was defined without a getter");if(typeof a=="function"?r!==a||!t:!a.has(r))throw new TypeError("Cannot read private member from an object whose class did not declare it");return e==="m"?t:e==="a"?t.call(r):t?t.value:a.get(r)}function cE(r,a,e,t,i){if(t==="m")throw new TypeError("Private method is not writable");if(t==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof a=="function"?r!==a||!i:!a.has(r))throw new TypeError("Cannot write private member to an object whose class did not declare it");return t==="a"?i.call(r,e):i?i.value=e:a.set(r,e),e}typeof SuppressedError=="function"&&SuppressedError;var ne;(function(r){r.errToObj=a=>typeof a=="string"?{message:a}:a||{},r.toString=a=>typeof a=="string"?a:a==null?void 0:a.message})(ne||(ne={}));var Gs,Fs;class ki{constructor(a,e,t,i){this._cachedPath=[],this.parent=a,this.data=e,this._path=t,this._key=i}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const fE=(r,a)=>{if(vn(a))return{success:!0,data:a.value};if(!r.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const e=new si(r.common.issues);return this._error=e,this._error}}};function Te(r){if(!r)return{};const{errorMap:a,invalid_type_error:e,required_error:t,description:i}=r;if(a&&(e||t))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return a?{errorMap:a,description:i}:{errorMap:(d,o)=>{var l,u;const{message:y}=r;return d.code==="invalid_enum_value"?{message:y??o.defaultError}:typeof o.data>"u"?{message:(l=y??t)!==null&&l!==void 0?l:o.defaultError}:d.code!=="invalid_type"?{message:o.defaultError}:{message:(u=y??e)!==null&&u!==void 0?u:o.defaultError}},description:i}}class Ge{get description(){return this._def.description}_getType(a){return dr(a.data)}_getOrReturnCtx(a,e){return e||{common:a.parent.common,data:a.data,parsedType:dr(a.data),schemaErrorMap:this._def.errorMap,path:a.path,parent:a.parent}}_processInputParams(a){return{status:new $t,ctx:{common:a.parent.common,data:a.data,parsedType:dr(a.data),schemaErrorMap:this._def.errorMap,path:a.path,parent:a.parent}}}_parseSync(a){const e=this._parse(a);if(gs(e))throw new Error("Synchronous parse encountered promise.");return e}_parseAsync(a){const e=this._parse(a);return Promise.resolve(e)}parse(a,e){const t=this.safeParse(a,e);if(t.success)return t.data;throw t.error}safeParse(a,e){var t;const i={common:{issues:[],async:(t=e==null?void 0:e.async)!==null&&t!==void 0?t:!1,contextualErrorMap:e==null?void 0:e.errorMap},path:(e==null?void 0:e.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:a,parsedType:dr(a)},s=this._parseSync({data:a,path:i.path,parent:i});return fE(i,s)}"~validate"(a){var e,t;const i={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:a,parsedType:dr(a)};if(!this["~standard"].async)try{const s=this._parseSync({data:a,path:[],parent:i});return vn(s)?{value:s.value}:{issues:i.common.issues}}catch(s){!((t=(e=s==null?void 0:s.message)===null||e===void 0?void 0:e.toLowerCase())===null||t===void 0)&&t.includes("encountered")&&(this["~standard"].async=!0),i.common={issues:[],async:!0}}return this._parseAsync({data:a,path:[],parent:i}).then(s=>vn(s)?{value:s.value}:{issues:i.common.issues})}async parseAsync(a,e){const t=await this.safeParseAsync(a,e);if(t.success)return t.data;throw t.error}async safeParseAsync(a,e){const t={common:{issues:[],contextualErrorMap:e==null?void 0:e.errorMap,async:!0},path:(e==null?void 0:e.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:a,parsedType:dr(a)},i=this._parse({data:a,path:t.path,parent:t}),s=await(gs(i)?i:Promise.resolve(i));return fE(t,s)}refine(a,e){const t=i=>typeof e=="string"||typeof e>"u"?{message:e}:typeof e=="function"?e(i):e;return this._refinement((i,s)=>{const d=a(i),o=()=>s.addIssue({code:Z.custom,...t(i)});return typeof Promise<"u"&&d instanceof Promise?d.then(l=>l?!0:(o(),!1)):d?!0:(o(),!1)})}refinement(a,e){return this._refinement((t,i)=>a(t)?!0:(i.addIssue(typeof e=="function"?e(t,i):e),!1))}_refinement(a){return new Mi({schema:this,typeName:ce.ZodEffects,effect:{type:"refinement",refinement:a}})}superRefine(a){return this._refinement(a)}constructor(a){this.spa=this.safeParseAsync,this._def=a,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:e=>this["~validate"](e)}}optional(){return qi.create(this,this._def)}nullable(){return Br.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return _i.create(this)}promise(){return ns.create(this,this._def)}or(a){return qs.create([this,a],this._def)}and(a){return Js.create(this,a,this._def)}transform(a){return new Mi({...Te(this._def),schema:this,typeName:ce.ZodEffects,effect:{type:"transform",transform:a}})}default(a){const e=typeof a=="function"?a:()=>a;return new Hs({...Te(this._def),innerType:this,defaultValue:e,typeName:ce.ZodDefault})}brand(){return new lu({typeName:ce.ZodBranded,type:this,...Te(this._def)})}catch(a){const e=typeof a=="function"?a:()=>a;return new Ks({...Te(this._def),innerType:this,catchValue:e,typeName:ce.ZodCatch})}describe(a){const e=this.constructor;return new e({...this._def,description:a})}pipe(a){return Xs.create(this,a)}readonly(){return Qs.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const kw=/^c[^\s-]{8,}$/i,Zw=/^[0-9a-z]+$/,qw=/^[0-9A-HJKMNP-TV-Z]{26}$/i,Jw=/^[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,Sw=/^[a-z0-9_-]{21}$/i,Ww=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,zw=/^[-+]?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)?)??$/,Yw=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,Hw="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let ou;const Kw=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Xw=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,Qw=/^(([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]))$/,eC=/^(([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])$/,tC=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,iC=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,yE="((\\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])))",rC=new RegExp(`^${yE}$`);function hE(r){let a="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return r.precision?a=`${a}\\.\\d{${r.precision}}`:r.precision==null&&(a=`${a}(\\.\\d+)?`),a}function nC(r){return new RegExp(`^${hE(r)}$`)}function mE(r){let a=`${yE}T${hE(r)}`;const e=[];return e.push(r.local?"Z?":"Z"),r.offset&&e.push("([+-]\\d{2}:?\\d{2})"),a=`${a}(${e.join("|")})`,new RegExp(`^${a}$`)}function sC(r,a){return!!((a==="v4"||!a)&&Kw.test(r)||(a==="v6"||!a)&&Qw.test(r))}function aC(r,a){if(!Ww.test(r))return!1;try{const[e]=r.split("."),t=e.replace(/-/g,"+").replace(/_/g,"/").padEnd(e.length+(4-e.length%4)%4,"="),i=JSON.parse(atob(t));return!(typeof i!="object"||i===null||!i.typ||!i.alg||a&&i.alg!==a)}catch{return!1}}function oC(r,a){return!!((a==="v4"||!a)&&Xw.test(r)||(a==="v6"||!a)&&eC.test(r))}class Bi extends Ge{_parse(a){if(this._def.coerce&&(a.data=String(a.data)),this._getType(a)!==H.string){const s=this._getOrReturnCtx(a);return z(s,{code:Z.invalid_type,expected:H.string,received:s.parsedType}),ye}const t=new $t;let i;for(const s of this._def.checks)if(s.kind==="min")a.data.length<s.value&&(i=this._getOrReturnCtx(a,i),z(i,{code:Z.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),t.dirty());else if(s.kind==="max")a.data.length>s.value&&(i=this._getOrReturnCtx(a,i),z(i,{code:Z.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),t.dirty());else if(s.kind==="length"){const d=a.data.length>s.value,o=a.data.length<s.value;(d||o)&&(i=this._getOrReturnCtx(a,i),d?z(i,{code:Z.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}):o&&z(i,{code:Z.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}),t.dirty())}else if(s.kind==="email")Yw.test(a.data)||(i=this._getOrReturnCtx(a,i),z(i,{validation:"email",code:Z.invalid_string,message:s.message}),t.dirty());else if(s.kind==="emoji")ou||(ou=new RegExp(Hw,"u")),ou.test(a.data)||(i=this._getOrReturnCtx(a,i),z(i,{validation:"emoji",code:Z.invalid_string,message:s.message}),t.dirty());else if(s.kind==="uuid")Jw.test(a.data)||(i=this._getOrReturnCtx(a,i),z(i,{validation:"uuid",code:Z.invalid_string,message:s.message}),t.dirty());else if(s.kind==="nanoid")Sw.test(a.data)||(i=this._getOrReturnCtx(a,i),z(i,{validation:"nanoid",code:Z.invalid_string,message:s.message}),t.dirty());else if(s.kind==="cuid")kw.test(a.data)||(i=this._getOrReturnCtx(a,i),z(i,{validation:"cuid",code:Z.invalid_string,message:s.message}),t.dirty());else if(s.kind==="cuid2")Zw.test(a.data)||(i=this._getOrReturnCtx(a,i),z(i,{validation:"cuid2",code:Z.invalid_string,message:s.message}),t.dirty());else if(s.kind==="ulid")qw.test(a.data)||(i=this._getOrReturnCtx(a,i),z(i,{validation:"ulid",code:Z.invalid_string,message:s.message}),t.dirty());else if(s.kind==="url")try{new URL(a.data)}catch{i=this._getOrReturnCtx(a,i),z(i,{validation:"url",code:Z.invalid_string,message:s.message}),t.dirty()}else s.kind==="regex"?(s.regex.lastIndex=0,s.regex.test(a.data)||(i=this._getOrReturnCtx(a,i),z(i,{validation:"regex",code:Z.invalid_string,message:s.message}),t.dirty())):s.kind==="trim"?a.data=a.data.trim():s.kind==="includes"?a.data.includes(s.value,s.position)||(i=this._getOrReturnCtx(a,i),z(i,{code:Z.invalid_string,validation:{includes:s.value,position:s.position},message:s.message}),t.dirty()):s.kind==="toLowerCase"?a.data=a.data.toLowerCase():s.kind==="toUpperCase"?a.data=a.data.toUpperCase():s.kind==="startsWith"?a.data.startsWith(s.value)||(i=this._getOrReturnCtx(a,i),z(i,{code:Z.invalid_string,validation:{startsWith:s.value},message:s.message}),t.dirty()):s.kind==="endsWith"?a.data.endsWith(s.value)||(i=this._getOrReturnCtx(a,i),z(i,{code:Z.invalid_string,validation:{endsWith:s.value},message:s.message}),t.dirty()):s.kind==="datetime"?mE(s).test(a.data)||(i=this._getOrReturnCtx(a,i),z(i,{code:Z.invalid_string,validation:"datetime",message:s.message}),t.dirty()):s.kind==="date"?rC.test(a.data)||(i=this._getOrReturnCtx(a,i),z(i,{code:Z.invalid_string,validation:"date",message:s.message}),t.dirty()):s.kind==="time"?nC(s).test(a.data)||(i=this._getOrReturnCtx(a,i),z(i,{code:Z.invalid_string,validation:"time",message:s.message}),t.dirty()):s.kind==="duration"?zw.test(a.data)||(i=this._getOrReturnCtx(a,i),z(i,{validation:"duration",code:Z.invalid_string,message:s.message}),t.dirty()):s.kind==="ip"?sC(a.data,s.version)||(i=this._getOrReturnCtx(a,i),z(i,{validation:"ip",code:Z.invalid_string,message:s.message}),t.dirty()):s.kind==="jwt"?aC(a.data,s.alg)||(i=this._getOrReturnCtx(a,i),z(i,{validation:"jwt",code:Z.invalid_string,message:s.message}),t.dirty()):s.kind==="cidr"?oC(a.data,s.version)||(i=this._getOrReturnCtx(a,i),z(i,{validation:"cidr",code:Z.invalid_string,message:s.message}),t.dirty()):s.kind==="base64"?tC.test(a.data)||(i=this._getOrReturnCtx(a,i),z(i,{validation:"base64",code:Z.invalid_string,message:s.message}),t.dirty()):s.kind==="base64url"?iC.test(a.data)||(i=this._getOrReturnCtx(a,i),z(i,{validation:"base64url",code:Z.invalid_string,message:s.message}),t.dirty()):ze.assertNever(s);return{status:t.value,value:a.data}}_regex(a,e,t){return this.refinement(i=>a.test(i),{validation:e,code:Z.invalid_string,...ne.errToObj(t)})}_addCheck(a){return new Bi({...this._def,checks:[...this._def.checks,a]})}email(a){return this._addCheck({kind:"email",...ne.errToObj(a)})}url(a){return this._addCheck({kind:"url",...ne.errToObj(a)})}emoji(a){return this._addCheck({kind:"emoji",...ne.errToObj(a)})}uuid(a){return this._addCheck({kind:"uuid",...ne.errToObj(a)})}nanoid(a){return this._addCheck({kind:"nanoid",...ne.errToObj(a)})}cuid(a){return this._addCheck({kind:"cuid",...ne.errToObj(a)})}cuid2(a){return this._addCheck({kind:"cuid2",...ne.errToObj(a)})}ulid(a){return this._addCheck({kind:"ulid",...ne.errToObj(a)})}base64(a){return this._addCheck({kind:"base64",...ne.errToObj(a)})}base64url(a){return this._addCheck({kind:"base64url",...ne.errToObj(a)})}jwt(a){return this._addCheck({kind:"jwt",...ne.errToObj(a)})}ip(a){return this._addCheck({kind:"ip",...ne.errToObj(a)})}cidr(a){return this._addCheck({kind:"cidr",...ne.errToObj(a)})}datetime(a){var e,t;return typeof a=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:a}):this._addCheck({kind:"datetime",precision:typeof(a==null?void 0:a.precision)>"u"?null:a==null?void 0:a.precision,offset:(e=a==null?void 0:a.offset)!==null&&e!==void 0?e:!1,local:(t=a==null?void 0:a.local)!==null&&t!==void 0?t:!1,...ne.errToObj(a==null?void 0:a.message)})}date(a){return this._addCheck({kind:"date",message:a})}time(a){return typeof a=="string"?this._addCheck({kind:"time",precision:null,message:a}):this._addCheck({kind:"time",precision:typeof(a==null?void 0:a.precision)>"u"?null:a==null?void 0:a.precision,...ne.errToObj(a==null?void 0:a.message)})}duration(a){return this._addCheck({kind:"duration",...ne.errToObj(a)})}regex(a,e){return this._addCheck({kind:"regex",regex:a,...ne.errToObj(e)})}includes(a,e){return this._addCheck({kind:"includes",value:a,position:e==null?void 0:e.position,...ne.errToObj(e==null?void 0:e.message)})}startsWith(a,e){return this._addCheck({kind:"startsWith",value:a,...ne.errToObj(e)})}endsWith(a,e){return this._addCheck({kind:"endsWith",value:a,...ne.errToObj(e)})}min(a,e){return this._addCheck({kind:"min",value:a,...ne.errToObj(e)})}max(a,e){return this._addCheck({kind:"max",value:a,...ne.errToObj(e)})}length(a,e){return this._addCheck({kind:"length",value:a,...ne.errToObj(e)})}nonempty(a){return this.min(1,ne.errToObj(a))}trim(){return new Bi({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Bi({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Bi({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(a=>a.kind==="datetime")}get isDate(){return!!this._def.checks.find(a=>a.kind==="date")}get isTime(){return!!this._def.checks.find(a=>a.kind==="time")}get isDuration(){return!!this._def.checks.find(a=>a.kind==="duration")}get isEmail(){return!!this._def.checks.find(a=>a.kind==="email")}get isURL(){return!!this._def.checks.find(a=>a.kind==="url")}get isEmoji(){return!!this._def.checks.find(a=>a.kind==="emoji")}get isUUID(){return!!this._def.checks.find(a=>a.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(a=>a.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(a=>a.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(a=>a.kind==="cuid2")}get isULID(){return!!this._def.checks.find(a=>a.kind==="ulid")}get isIP(){return!!this._def.checks.find(a=>a.kind==="ip")}get isCIDR(){return!!this._def.checks.find(a=>a.kind==="cidr")}get isBase64(){return!!this._def.checks.find(a=>a.kind==="base64")}get isBase64url(){return!!this._def.checks.find(a=>a.kind==="base64url")}get minLength(){let a=null;for(const e of this._def.checks)e.kind==="min"&&(a===null||e.value>a)&&(a=e.value);return a}get maxLength(){let a=null;for(const e of this._def.checks)e.kind==="max"&&(a===null||e.value<a)&&(a=e.value);return a}}Bi.create=r=>{var a;return new Bi({checks:[],typeName:ce.ZodString,coerce:(a=r==null?void 0:r.coerce)!==null&&a!==void 0?a:!1,...Te(r)})};function dC(r,a){const e=(r.toString().split(".")[1]||"").length,t=(a.toString().split(".")[1]||"").length,i=e>t?e:t,s=parseInt(r.toFixed(i).replace(".","")),d=parseInt(a.toFixed(i).replace(".",""));return s%d/Math.pow(10,i)}class wr extends Ge{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(a){if(this._def.coerce&&(a.data=Number(a.data)),this._getType(a)!==H.number){const s=this._getOrReturnCtx(a);return z(s,{code:Z.invalid_type,expected:H.number,received:s.parsedType}),ye}let t;const i=new $t;for(const s of this._def.checks)s.kind==="int"?ze.isInteger(a.data)||(t=this._getOrReturnCtx(a,t),z(t,{code:Z.invalid_type,expected:"integer",received:"float",message:s.message}),i.dirty()):s.kind==="min"?(s.inclusive?a.data<s.value:a.data<=s.value)&&(t=this._getOrReturnCtx(a,t),z(t,{code:Z.too_small,minimum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),i.dirty()):s.kind==="max"?(s.inclusive?a.data>s.value:a.data>=s.value)&&(t=this._getOrReturnCtx(a,t),z(t,{code:Z.too_big,maximum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),i.dirty()):s.kind==="multipleOf"?dC(a.data,s.value)!==0&&(t=this._getOrReturnCtx(a,t),z(t,{code:Z.not_multiple_of,multipleOf:s.value,message:s.message}),i.dirty()):s.kind==="finite"?Number.isFinite(a.data)||(t=this._getOrReturnCtx(a,t),z(t,{code:Z.not_finite,message:s.message}),i.dirty()):ze.assertNever(s);return{status:i.value,value:a.data}}gte(a,e){return this.setLimit("min",a,!0,ne.toString(e))}gt(a,e){return this.setLimit("min",a,!1,ne.toString(e))}lte(a,e){return this.setLimit("max",a,!0,ne.toString(e))}lt(a,e){return this.setLimit("max",a,!1,ne.toString(e))}setLimit(a,e,t,i){return new wr({...this._def,checks:[...this._def.checks,{kind:a,value:e,inclusive:t,message:ne.toString(i)}]})}_addCheck(a){return new wr({...this._def,checks:[...this._def.checks,a]})}int(a){return this._addCheck({kind:"int",message:ne.toString(a)})}positive(a){return this._addCheck({kind:"min",value:0,inclusive:!1,message:ne.toString(a)})}negative(a){return this._addCheck({kind:"max",value:0,inclusive:!1,message:ne.toString(a)})}nonpositive(a){return this._addCheck({kind:"max",value:0,inclusive:!0,message:ne.toString(a)})}nonnegative(a){return this._addCheck({kind:"min",value:0,inclusive:!0,message:ne.toString(a)})}multipleOf(a,e){return this._addCheck({kind:"multipleOf",value:a,message:ne.toString(e)})}finite(a){return this._addCheck({kind:"finite",message:ne.toString(a)})}safe(a){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:ne.toString(a)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:ne.toString(a)})}get minValue(){let a=null;for(const e of this._def.checks)e.kind==="min"&&(a===null||e.value>a)&&(a=e.value);return a}get maxValue(){let a=null;for(const e of this._def.checks)e.kind==="max"&&(a===null||e.value<a)&&(a=e.value);return a}get isInt(){return!!this._def.checks.find(a=>a.kind==="int"||a.kind==="multipleOf"&&ze.isInteger(a.value))}get isFinite(){let a=null,e=null;for(const t of this._def.checks){if(t.kind==="finite"||t.kind==="int"||t.kind==="multipleOf")return!0;t.kind==="min"?(e===null||t.value>e)&&(e=t.value):t.kind==="max"&&(a===null||t.value<a)&&(a=t.value)}return Number.isFinite(e)&&Number.isFinite(a)}}wr.create=r=>new wr({checks:[],typeName:ce.ZodNumber,coerce:(r==null?void 0:r.coerce)||!1,...Te(r)});class Cr extends Ge{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(a){if(this._def.coerce)try{a.data=BigInt(a.data)}catch{return this._getInvalidInput(a)}if(this._getType(a)!==H.bigint)return this._getInvalidInput(a);let t;const i=new $t;for(const s of this._def.checks)s.kind==="min"?(s.inclusive?a.data<s.value:a.data<=s.value)&&(t=this._getOrReturnCtx(a,t),z(t,{code:Z.too_small,type:"bigint",minimum:s.value,inclusive:s.inclusive,message:s.message}),i.dirty()):s.kind==="max"?(s.inclusive?a.data>s.value:a.data>=s.value)&&(t=this._getOrReturnCtx(a,t),z(t,{code:Z.too_big,type:"bigint",maximum:s.value,inclusive:s.inclusive,message:s.message}),i.dirty()):s.kind==="multipleOf"?a.data%s.value!==BigInt(0)&&(t=this._getOrReturnCtx(a,t),z(t,{code:Z.not_multiple_of,multipleOf:s.value,message:s.message}),i.dirty()):ze.assertNever(s);return{status:i.value,value:a.data}}_getInvalidInput(a){const e=this._getOrReturnCtx(a);return z(e,{code:Z.invalid_type,expected:H.bigint,received:e.parsedType}),ye}gte(a,e){return this.setLimit("min",a,!0,ne.toString(e))}gt(a,e){return this.setLimit("min",a,!1,ne.toString(e))}lte(a,e){return this.setLimit("max",a,!0,ne.toString(e))}lt(a,e){return this.setLimit("max",a,!1,ne.toString(e))}setLimit(a,e,t,i){return new Cr({...this._def,checks:[...this._def.checks,{kind:a,value:e,inclusive:t,message:ne.toString(i)}]})}_addCheck(a){return new Cr({...this._def,checks:[...this._def.checks,a]})}positive(a){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:ne.toString(a)})}negative(a){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:ne.toString(a)})}nonpositive(a){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:ne.toString(a)})}nonnegative(a){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:ne.toString(a)})}multipleOf(a,e){return this._addCheck({kind:"multipleOf",value:a,message:ne.toString(e)})}get minValue(){let a=null;for(const e of this._def.checks)e.kind==="min"&&(a===null||e.value>a)&&(a=e.value);return a}get maxValue(){let a=null;for(const e of this._def.checks)e.kind==="max"&&(a===null||e.value<a)&&(a=e.value);return a}}Cr.create=r=>{var a;return new Cr({checks:[],typeName:ce.ZodBigInt,coerce:(a=r==null?void 0:r.coerce)!==null&&a!==void 0?a:!1,...Te(r)})};class xs extends Ge{_parse(a){if(this._def.coerce&&(a.data=!!a.data),this._getType(a)!==H.boolean){const t=this._getOrReturnCtx(a);return z(t,{code:Z.invalid_type,expected:H.boolean,received:t.parsedType}),ye}return zt(a.data)}}xs.create=r=>new xs({typeName:ce.ZodBoolean,coerce:(r==null?void 0:r.coerce)||!1,...Te(r)});class Tn extends Ge{_parse(a){if(this._def.coerce&&(a.data=new Date(a.data)),this._getType(a)!==H.date){const s=this._getOrReturnCtx(a);return z(s,{code:Z.invalid_type,expected:H.date,received:s.parsedType}),ye}if(isNaN(a.data.getTime())){const s=this._getOrReturnCtx(a);return z(s,{code:Z.invalid_date}),ye}const t=new $t;let i;for(const s of this._def.checks)s.kind==="min"?a.data.getTime()<s.value&&(i=this._getOrReturnCtx(a,i),z(i,{code:Z.too_small,message:s.message,inclusive:!0,exact:!1,minimum:s.value,type:"date"}),t.dirty()):s.kind==="max"?a.data.getTime()>s.value&&(i=this._getOrReturnCtx(a,i),z(i,{code:Z.too_big,message:s.message,inclusive:!0,exact:!1,maximum:s.value,type:"date"}),t.dirty()):ze.assertNever(s);return{status:t.value,value:new Date(a.data.getTime())}}_addCheck(a){return new Tn({...this._def,checks:[...this._def.checks,a]})}min(a,e){return this._addCheck({kind:"min",value:a.getTime(),message:ne.toString(e)})}max(a,e){return this._addCheck({kind:"max",value:a.getTime(),message:ne.toString(e)})}get minDate(){let a=null;for(const e of this._def.checks)e.kind==="min"&&(a===null||e.value>a)&&(a=e.value);return a!=null?new Date(a):null}get maxDate(){let a=null;for(const e of this._def.checks)e.kind==="max"&&(a===null||e.value<a)&&(a=e.value);return a!=null?new Date(a):null}}Tn.create=r=>new Tn({checks:[],coerce:(r==null?void 0:r.coerce)||!1,typeName:ce.ZodDate,...Te(r)});class Ro extends Ge{_parse(a){if(this._getType(a)!==H.symbol){const t=this._getOrReturnCtx(a);return z(t,{code:Z.invalid_type,expected:H.symbol,received:t.parsedType}),ye}return zt(a.data)}}Ro.create=r=>new Ro({typeName:ce.ZodSymbol,...Te(r)});class ks extends Ge{_parse(a){if(this._getType(a)!==H.undefined){const t=this._getOrReturnCtx(a);return z(t,{code:Z.invalid_type,expected:H.undefined,received:t.parsedType}),ye}return zt(a.data)}}ks.create=r=>new ks({typeName:ce.ZodUndefined,...Te(r)});class Zs extends Ge{_parse(a){if(this._getType(a)!==H.null){const t=this._getOrReturnCtx(a);return z(t,{code:Z.invalid_type,expected:H.null,received:t.parsedType}),ye}return zt(a.data)}}Zs.create=r=>new Zs({typeName:ce.ZodNull,...Te(r)});class ts extends Ge{constructor(){super(...arguments),this._any=!0}_parse(a){return zt(a.data)}}ts.create=r=>new ts({typeName:ce.ZodAny,...Te(r)});class In extends Ge{constructor(){super(...arguments),this._unknown=!0}_parse(a){return zt(a.data)}}In.create=r=>new In({typeName:ce.ZodUnknown,...Te(r)});class lr extends Ge{_parse(a){const e=this._getOrReturnCtx(a);return z(e,{code:Z.invalid_type,expected:H.never,received:e.parsedType}),ye}}lr.create=r=>new lr({typeName:ce.ZodNever,...Te(r)});class Do extends Ge{_parse(a){if(this._getType(a)!==H.undefined){const t=this._getOrReturnCtx(a);return z(t,{code:Z.invalid_type,expected:H.void,received:t.parsedType}),ye}return zt(a.data)}}Do.create=r=>new Do({typeName:ce.ZodVoid,...Te(r)});class _i extends Ge{_parse(a){const{ctx:e,status:t}=this._processInputParams(a),i=this._def;if(e.parsedType!==H.array)return z(e,{code:Z.invalid_type,expected:H.array,received:e.parsedType}),ye;if(i.exactLength!==null){const d=e.data.length>i.exactLength.value,o=e.data.length<i.exactLength.value;(d||o)&&(z(e,{code:d?Z.too_big:Z.too_small,minimum:o?i.exactLength.value:void 0,maximum:d?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&&(z(e,{code:Z.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&&(z(e,{code:Z.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((d,o)=>i.type._parseAsync(new ki(e,d,e.path,o)))).then(d=>$t.mergeArray(t,d));const s=[...e.data].map((d,o)=>i.type._parseSync(new ki(e,d,e.path,o)));return $t.mergeArray(t,s)}get element(){return this._def.type}min(a,e){return new _i({...this._def,minLength:{value:a,message:ne.toString(e)}})}max(a,e){return new _i({...this._def,maxLength:{value:a,message:ne.toString(e)}})}length(a,e){return new _i({...this._def,exactLength:{value:a,message:ne.toString(e)}})}nonempty(a){return this.min(1,a)}}_i.create=(r,a)=>new _i({type:r,minLength:null,maxLength:null,exactLength:null,typeName:ce.ZodArray,...Te(a)});function is(r){if(r instanceof It){const a={};for(const e in r.shape){const t=r.shape[e];a[e]=qi.create(is(t))}return new It({...r._def,shape:()=>a})}else return r instanceof _i?new _i({...r._def,type:is(r.element)}):r instanceof qi?qi.create(is(r.unwrap())):r instanceof Br?Br.create(is(r.unwrap())):r instanceof Zi?Zi.create(r.items.map(a=>is(a))):r}class It extends Ge{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const a=this._def.shape(),e=ze.objectKeys(a);return this._cached={shape:a,keys:e}}_parse(a){if(this._getType(a)!==H.object){const u=this._getOrReturnCtx(a);return z(u,{code:Z.invalid_type,expected:H.object,received:u.parsedType}),ye}const{status:t,ctx:i}=this._processInputParams(a),{shape:s,keys:d}=this._getCached(),o=[];if(!(this._def.catchall instanceof lr&&this._def.unknownKeys==="strip"))for(const u in i.data)d.includes(u)||o.push(u);const l=[];for(const u of d){const y=s[u],c=i.data[u];l.push({key:{status:"valid",value:u},value:y._parse(new ki(i,c,i.path,u)),alwaysSet:u in i.data})}if(this._def.catchall instanceof lr){const u=this._def.unknownKeys;if(u==="passthrough")for(const y of o)l.push({key:{status:"valid",value:y},value:{status:"valid",value:i.data[y]}});else if(u==="strict")o.length>0&&(z(i,{code:Z.unrecognized_keys,keys:o}),t.dirty());else if(u!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const u=this._def.catchall;for(const y of o){const c=i.data[y];l.push({key:{status:"valid",value:y},value:u._parse(new ki(i,c,i.path,y)),alwaysSet:y in i.data})}}return i.common.async?Promise.resolve().then(async()=>{const u=[];for(const y of l){const c=await y.key,I=await y.value;u.push({key:c,value:I,alwaysSet:y.alwaysSet})}return u}).then(u=>$t.mergeObjectSync(t,u)):$t.mergeObjectSync(t,l)}get shape(){return this._def.shape()}strict(a){return ne.errToObj,new It({...this._def,unknownKeys:"strict",...a!==void 0?{errorMap:(e,t)=>{var i,s,d,o;const l=(d=(s=(i=this._def).errorMap)===null||s===void 0?void 0:s.call(i,e,t).message)!==null&&d!==void 0?d:t.defaultError;return e.code==="unrecognized_keys"?{message:(o=ne.errToObj(a).message)!==null&&o!==void 0?o:l}:{message:l}}}:{}})}strip(){return new It({...this._def,unknownKeys:"strip"})}passthrough(){return new It({...this._def,unknownKeys:"passthrough"})}extend(a){return new It({...this._def,shape:()=>({...this._def.shape(),...a})})}merge(a){return new It({unknownKeys:a._def.unknownKeys,catchall:a._def.catchall,shape:()=>({...this._def.shape(),...a._def.shape()}),typeName:ce.ZodObject})}setKey(a,e){return this.augment({[a]:e})}catchall(a){return new It({...this._def,catchall:a})}pick(a){const e={};return ze.objectKeys(a).forEach(t=>{a[t]&&this.shape[t]&&(e[t]=this.shape[t])}),new It({...this._def,shape:()=>e})}omit(a){const e={};return ze.objectKeys(this.shape).forEach(t=>{a[t]||(e[t]=this.shape[t])}),new It({...this._def,shape:()=>e})}deepPartial(){return is(this)}partial(a){const e={};return ze.objectKeys(this.shape).forEach(t=>{const i=this.shape[t];a&&!a[t]?e[t]=i:e[t]=i.optional()}),new It({...this._def,shape:()=>e})}required(a){const e={};return ze.objectKeys(this.shape).forEach(t=>{if(a&&!a[t])e[t]=this.shape[t];else{let s=this.shape[t];for(;s instanceof qi;)s=s._def.innerType;e[t]=s}}),new It({...this._def,shape:()=>e})}keyof(){return vE(ze.objectKeys(this.shape))}}It.create=(r,a)=>new It({shape:()=>r,unknownKeys:"strip",catchall:lr.create(),typeName:ce.ZodObject,...Te(a)}),It.strictCreate=(r,a)=>new It({shape:()=>r,unknownKeys:"strict",catchall:lr.create(),typeName:ce.ZodObject,...Te(a)}),It.lazycreate=(r,a)=>new It({shape:r,unknownKeys:"strip",catchall:lr.create(),typeName:ce.ZodObject,...Te(a)});class qs extends Ge{_parse(a){const{ctx:e}=this._processInputParams(a),t=this._def.options;function i(s){for(const o of s)if(o.result.status==="valid")return o.result;for(const o of s)if(o.result.status==="dirty")return e.common.issues.push(...o.ctx.common.issues),o.result;const d=s.map(o=>new si(o.ctx.common.issues));return z(e,{code:Z.invalid_union,unionErrors:d}),ye}if(e.common.async)return Promise.all(t.map(async s=>{const d={...e,common:{...e.common,issues:[]},parent:null};return{result:await s._parseAsync({data:e.data,path:e.path,parent:d}),ctx:d}})).then(i);{let s;const d=[];for(const l of t){const u={...e,common:{...e.common,issues:[]},parent:null},y=l._parseSync({data:e.data,path:e.path,parent:u});if(y.status==="valid")return y;y.status==="dirty"&&!s&&(s={result:y,ctx:u}),u.common.issues.length&&d.push(u.common.issues)}if(s)return e.common.issues.push(...s.ctx.common.issues),s.result;const o=d.map(l=>new si(l));return z(e,{code:Z.invalid_union,unionErrors:o}),ye}}get options(){return this._def.options}}qs.create=(r,a)=>new qs({options:r,typeName:ce.ZodUnion,...Te(a)});const ur=r=>r instanceof Ws?ur(r.schema):r instanceof Mi?ur(r.innerType()):r instanceof zs?[r.value]:r instanceof Vr?r.options:r instanceof Ys?ze.objectValues(r.enum):r instanceof Hs?ur(r._def.innerType):r instanceof ks?[void 0]:r instanceof Zs?[null]:r instanceof qi?[void 0,...ur(r.unwrap())]:r instanceof Br?[null,...ur(r.unwrap())]:r instanceof lu||r instanceof Qs?ur(r.unwrap()):r instanceof Ks?ur(r._def.innerType):[];class Oo extends Ge{_parse(a){const{ctx:e}=this._processInputParams(a);if(e.parsedType!==H.object)return z(e,{code:Z.invalid_type,expected:H.object,received:e.parsedType}),ye;const t=this.discriminator,i=e.data[t],s=this.optionsMap.get(i);return s?e.common.async?s._parseAsync({data:e.data,path:e.path,parent:e}):s._parseSync({data:e.data,path:e.path,parent:e}):(z(e,{code:Z.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[t]}),ye)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(a,e,t){const i=new Map;for(const s of e){const d=ur(s.shape[a]);if(!d.length)throw new Error(`A discriminator value for key \`${a}\` could not be extracted from all schema options`);for(const o of d){if(i.has(o))throw new Error(`Discriminator property ${String(a)} has duplicate value ${String(o)}`);i.set(o,s)}}return new Oo({typeName:ce.ZodDiscriminatedUnion,discriminator:a,options:e,optionsMap:i,...Te(t)})}}function du(r,a){const e=dr(r),t=dr(a);if(r===a)return{valid:!0,data:r};if(e===H.object&&t===H.object){const i=ze.objectKeys(a),s=ze.objectKeys(r).filter(o=>i.indexOf(o)!==-1),d={...r,...a};for(const o of s){const l=du(r[o],a[o]);if(!l.valid)return{valid:!1};d[o]=l.data}return{valid:!0,data:d}}else if(e===H.array&&t===H.array){if(r.length!==a.length)return{valid:!1};const i=[];for(let s=0;s<r.length;s++){const d=r[s],o=a[s],l=du(d,o);if(!l.valid)return{valid:!1};i.push(l.data)}return{valid:!0,data:i}}else return e===H.date&&t===H.date&&+r==+a?{valid:!0,data:r}:{valid:!1}}class Js extends Ge{_parse(a){const{status:e,ctx:t}=this._processInputParams(a),i=(s,d)=>{if(su(s)||su(d))return ye;const o=du(s.value,d.value);return o.valid?((au(s)||au(d))&&e.dirty(),{status:e.value,value:o.data}):(z(t,{code:Z.invalid_intersection_types}),ye)};return t.common.async?Promise.all([this._def.left._parseAsync({data:t.data,path:t.path,parent:t}),this._def.right._parseAsync({data:t.data,path:t.path,parent:t})]).then(([s,d])=>i(s,d)):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}))}}Js.create=(r,a,e)=>new Js({left:r,right:a,typeName:ce.ZodIntersection,...Te(e)});class Zi extends Ge{_parse(a){const{status:e,ctx:t}=this._processInputParams(a);if(t.parsedType!==H.array)return z(t,{code:Z.invalid_type,expected:H.array,received:t.parsedType}),ye;if(t.data.length<this._def.items.length)return z(t,{code:Z.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),ye;!this._def.rest&&t.data.length>this._def.items.length&&(z(t,{code:Z.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),e.dirty());const s=[...t.data].map((d,o)=>{const l=this._def.items[o]||this._def.rest;return l?l._parse(new ki(t,d,t.path,o)):null}).filter(d=>!!d);return t.common.async?Promise.all(s).then(d=>$t.mergeArray(e,d)):$t.mergeArray(e,s)}get items(){return this._def.items}rest(a){return new Zi({...this._def,rest:a})}}Zi.create=(r,a)=>{if(!Array.isArray(r))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Zi({items:r,typeName:ce.ZodTuple,rest:null,...Te(a)})};class Ss extends Ge{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(a){const{status:e,ctx:t}=this._processInputParams(a);if(t.parsedType!==H.object)return z(t,{code:Z.invalid_type,expected:H.object,received:t.parsedType}),ye;const i=[],s=this._def.keyType,d=this._def.valueType;for(const o in t.data)i.push({key:s._parse(new ki(t,o,t.path,o)),value:d._parse(new ki(t,t.data[o],t.path,o)),alwaysSet:o in t.data});return t.common.async?$t.mergeObjectAsync(e,i):$t.mergeObjectSync(e,i)}get element(){return this._def.valueType}static create(a,e,t){return e instanceof Ge?new Ss({keyType:a,valueType:e,typeName:ce.ZodRecord,...Te(t)}):new Ss({keyType:Bi.create(),valueType:a,typeName:ce.ZodRecord,...Te(e)})}}class Po extends Ge{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(a){const{status:e,ctx:t}=this._processInputParams(a);if(t.parsedType!==H.map)return z(t,{code:Z.invalid_type,expected:H.map,received:t.parsedType}),ye;const i=this._def.keyType,s=this._def.valueType,d=[...t.data.entries()].map(([o,l],u)=>({key:i._parse(new ki(t,o,t.path,[u,"key"])),value:s._parse(new ki(t,l,t.path,[u,"value"]))}));if(t.common.async){const o=new Map;return Promise.resolve().then(async()=>{for(const l of d){const u=await l.key,y=await l.value;if(u.status==="aborted"||y.status==="aborted")return ye;(u.status==="dirty"||y.status==="dirty")&&e.dirty(),o.set(u.value,y.value)}return{status:e.value,value:o}})}else{const o=new Map;for(const l of d){const u=l.key,y=l.value;if(u.status==="aborted"||y.status==="aborted")return ye;(u.status==="dirty"||y.status==="dirty")&&e.dirty(),o.set(u.value,y.value)}return{status:e.value,value:o}}}}Po.create=(r,a,e)=>new Po({valueType:a,keyType:r,typeName:ce.ZodMap,...Te(e)});class En extends Ge{_parse(a){const{status:e,ctx:t}=this._processInputParams(a);if(t.parsedType!==H.set)return z(t,{code:Z.invalid_type,expected:H.set,received:t.parsedType}),ye;const i=this._def;i.minSize!==null&&t.data.size<i.minSize.value&&(z(t,{code:Z.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&&(z(t,{code:Z.too_big,maximum:i.maxSize.value,type:"set",inclusive:!0,exact:!1,message:i.maxSize.message}),e.dirty());const s=this._def.valueType;function d(l){const u=new Set;for(const y of l){if(y.status==="aborted")return ye;y.status==="dirty"&&e.dirty(),u.add(y.value)}return{status:e.value,value:u}}const o=[...t.data.values()].map((l,u)=>s._parse(new ki(t,l,t.path,u)));return t.common.async?Promise.all(o).then(l=>d(l)):d(o)}min(a,e){return new En({...this._def,minSize:{value:a,message:ne.toString(e)}})}max(a,e){return new En({...this._def,maxSize:{value:a,message:ne.toString(e)}})}size(a,e){return this.min(a,e).max(a,e)}nonempty(a){return this.min(1,a)}}En.create=(r,a)=>new En({valueType:r,minSize:null,maxSize:null,typeName:ce.ZodSet,...Te(a)});class rs extends Ge{constructor(){super(...arguments),this.validate=this.implement}_parse(a){const{ctx:e}=this._processInputParams(a);if(e.parsedType!==H.function)return z(e,{code:Z.invalid_type,expected:H.function,received:e.parsedType}),ye;function t(o,l){return Ao({data:o,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,Eo(),Qn].filter(u=>!!u),issueData:{code:Z.invalid_arguments,argumentsError:l}})}function i(o,l){return Ao({data:o,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,Eo(),Qn].filter(u=>!!u),issueData:{code:Z.invalid_return_type,returnTypeError:l}})}const s={errorMap:e.common.contextualErrorMap},d=e.data;if(this._def.returns instanceof ns){const o=this;return zt(async function(...l){const u=new si([]),y=await o._def.args.parseAsync(l,s).catch(E=>{throw u.addIssue(t(l,E)),u}),c=await Reflect.apply(d,this,y);return await o._def.returns._def.type.parseAsync(c,s).catch(E=>{throw u.addIssue(i(c,E)),u})})}else{const o=this;return zt(function(...l){const u=o._def.args.safeParse(l,s);if(!u.success)throw new si([t(l,u.error)]);const y=Reflect.apply(d,this,u.data),c=o._def.returns.safeParse(y,s);if(!c.success)throw new si([i(y,c.error)]);return c.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...a){return new rs({...this._def,args:Zi.create(a).rest(In.create())})}returns(a){return new rs({...this._def,returns:a})}implement(a){return this.parse(a)}strictImplement(a){return this.parse(a)}static create(a,e,t){return new rs({args:a||Zi.create([]).rest(In.create()),returns:e||In.create(),typeName:ce.ZodFunction,...Te(t)})}}class Ws extends Ge{get schema(){return this._def.getter()}_parse(a){const{ctx:e}=this._processInputParams(a);return this._def.getter()._parse({data:e.data,path:e.path,parent:e})}}Ws.create=(r,a)=>new Ws({getter:r,typeName:ce.ZodLazy,...Te(a)});class zs extends Ge{_parse(a){if(a.data!==this._def.value){const e=this._getOrReturnCtx(a);return z(e,{received:e.data,code:Z.invalid_literal,expected:this._def.value}),ye}return{status:"valid",value:a.data}}get value(){return this._def.value}}zs.create=(r,a)=>new zs({value:r,typeName:ce.ZodLiteral,...Te(a)});function vE(r,a){return new Vr({values:r,typeName:ce.ZodEnum,...Te(a)})}class Vr extends Ge{constructor(){super(...arguments),Gs.set(this,void 0)}_parse(a){if(typeof a.data!="string"){const e=this._getOrReturnCtx(a),t=this._def.values;return z(e,{expected:ze.joinValues(t),received:e.parsedType,code:Z.invalid_type}),ye}if(bo(this,Gs,"f")||cE(this,Gs,new Set(this._def.values),"f"),!bo(this,Gs,"f").has(a.data)){const e=this._getOrReturnCtx(a),t=this._def.values;return z(e,{received:e.data,code:Z.invalid_enum_value,options:t}),ye}return zt(a.data)}get options(){return this._def.values}get enum(){const a={};for(const e of this._def.values)a[e]=e;return a}get Values(){const a={};for(const e of this._def.values)a[e]=e;return a}get Enum(){const a={};for(const e of this._def.values)a[e]=e;return a}extract(a,e=this._def){return Vr.create(a,{...this._def,...e})}exclude(a,e=this._def){return Vr.create(this.options.filter(t=>!a.includes(t)),{...this._def,...e})}}Gs=new WeakMap,Vr.create=vE;class Ys extends Ge{constructor(){super(...arguments),Fs.set(this,void 0)}_parse(a){const e=ze.getValidEnumValues(this._def.values),t=this._getOrReturnCtx(a);if(t.parsedType!==H.string&&t.parsedType!==H.number){const i=ze.objectValues(e);return z(t,{expected:ze.joinValues(i),received:t.parsedType,code:Z.invalid_type}),ye}if(bo(this,Fs,"f")||cE(this,Fs,new Set(ze.getValidEnumValues(this._def.values)),"f"),!bo(this,Fs,"f").has(a.data)){const i=ze.objectValues(e);return z(t,{received:t.data,code:Z.invalid_enum_value,options:i}),ye}return zt(a.data)}get enum(){return this._def.values}}Fs=new WeakMap,Ys.create=(r,a)=>new Ys({values:r,typeName:ce.ZodNativeEnum,...Te(a)});class ns extends Ge{unwrap(){return this._def.type}_parse(a){const{ctx:e}=this._processInputParams(a);if(e.parsedType!==H.promise&&e.common.async===!1)return z(e,{code:Z.invalid_type,expected:H.promise,received:e.parsedType}),ye;const t=e.parsedType===H.promise?e.data:Promise.resolve(e.data);return zt(t.then(i=>this._def.type.parseAsync(i,{path:e.path,errorMap:e.common.contextualErrorMap})))}}ns.create=(r,a)=>new ns({type:r,typeName:ce.ZodPromise,...Te(a)});class Mi extends Ge{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===ce.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(a){const{status:e,ctx:t}=this._processInputParams(a),i=this._def.effect||null,s={addIssue:d=>{z(t,d),d.fatal?e.abort():e.dirty()},get path(){return t.path}};if(s.addIssue=s.addIssue.bind(s),i.type==="preprocess"){const d=i.transform(t.data,s);if(t.common.async)return Promise.resolve(d).then(async o=>{if(e.value==="aborted")return ye;const l=await this._def.schema._parseAsync({data:o,path:t.path,parent:t});return l.status==="aborted"?ye:l.status==="dirty"||e.value==="dirty"?es(l.value):l});{if(e.value==="aborted")return ye;const o=this._def.schema._parseSync({data:d,path:t.path,parent:t});return o.status==="aborted"?ye:o.status==="dirty"||e.value==="dirty"?es(o.value):o}}if(i.type==="refinement"){const d=o=>{const l=i.refinement(o,s);if(t.common.async)return Promise.resolve(l);if(l instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return o};if(t.common.async===!1){const o=this._def.schema._parseSync({data:t.data,path:t.path,parent:t});return o.status==="aborted"?ye:(o.status==="dirty"&&e.dirty(),d(o.value),{status:e.value,value:o.value})}else return this._def.schema._parseAsync({data:t.data,path:t.path,parent:t}).then(o=>o.status==="aborted"?ye:(o.status==="dirty"&&e.dirty(),d(o.value).then(()=>({status:e.value,value:o.value}))))}if(i.type==="transform")if(t.common.async===!1){const d=this._def.schema._parseSync({data:t.data,path:t.path,parent:t});if(!vn(d))return d;const o=i.transform(d.value,s);if(o instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:e.value,value:o}}else return this._def.schema._parseAsync({data:t.data,path:t.path,parent:t}).then(d=>vn(d)?Promise.resolve(i.transform(d.value,s)).then(o=>({status:e.value,value:o})):d);ze.assertNever(i)}}Mi.create=(r,a,e)=>new Mi({schema:r,typeName:ce.ZodEffects,effect:a,...Te(e)}),Mi.createWithPreprocess=(r,a,e)=>new Mi({schema:a,effect:{type:"preprocess",transform:r},typeName:ce.ZodEffects,...Te(e)});class qi extends Ge{_parse(a){return this._getType(a)===H.undefined?zt(void 0):this._def.innerType._parse(a)}unwrap(){return this._def.innerType}}qi.create=(r,a)=>new qi({innerType:r,typeName:ce.ZodOptional,...Te(a)});class Br extends Ge{_parse(a){return this._getType(a)===H.null?zt(null):this._def.innerType._parse(a)}unwrap(){return this._def.innerType}}Br.create=(r,a)=>new Br({innerType:r,typeName:ce.ZodNullable,...Te(a)});class Hs extends Ge{_parse(a){const{ctx:e}=this._processInputParams(a);let t=e.data;return e.parsedType===H.undefined&&(t=this._def.defaultValue()),this._def.innerType._parse({data:t,path:e.path,parent:e})}removeDefault(){return this._def.innerType}}Hs.create=(r,a)=>new Hs({innerType:r,typeName:ce.ZodDefault,defaultValue:typeof a.default=="function"?a.default:()=>a.default,...Te(a)});class Ks extends Ge{_parse(a){const{ctx:e}=this._processInputParams(a),t={...e,common:{...e.common,issues:[]}},i=this._def.innerType._parse({data:t.data,path:t.path,parent:{...t}});return gs(i)?i.then(s=>({status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new si(t.common.issues)},input:t.data})})):{status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new si(t.common.issues)},input:t.data})}}removeCatch(){return this._def.innerType}}Ks.create=(r,a)=>new Ks({innerType:r,typeName:ce.ZodCatch,catchValue:typeof a.catch=="function"?a.catch:()=>a.catch,...Te(a)});class wo extends Ge{_parse(a){if(this._getType(a)!==H.nan){const t=this._getOrReturnCtx(a);return z(t,{code:Z.invalid_type,expected:H.nan,received:t.parsedType}),ye}return{status:"valid",value:a.data}}}wo.create=r=>new wo({typeName:ce.ZodNaN,...Te(r)});const lC=Symbol("zod_brand");class lu extends Ge{_parse(a){const{ctx:e}=this._processInputParams(a),t=e.data;return this._def.type._parse({data:t,path:e.path,parent:e})}unwrap(){return this._def.type}}class Xs extends Ge{_parse(a){const{status:e,ctx:t}=this._processInputParams(a);if(t.common.async)return(async()=>{const s=await this._def.in._parseAsync({data:t.data,path:t.path,parent:t});return s.status==="aborted"?ye:s.status==="dirty"?(e.dirty(),es(s.value)):this._def.out._parseAsync({data:s.value,path:t.path,parent:t})})();{const i=this._def.in._parseSync({data:t.data,path:t.path,parent:t});return i.status==="aborted"?ye:i.status==="dirty"?(e.dirty(),{status:"dirty",value:i.value}):this._def.out._parseSync({data:i.value,path:t.path,parent:t})}}static create(a,e){return new Xs({in:a,out:e,typeName:ce.ZodPipeline})}}class Qs extends Ge{_parse(a){const e=this._def.innerType._parse(a),t=i=>(vn(i)&&(i.value=Object.freeze(i.value)),i);return gs(e)?e.then(i=>t(i)):t(e)}unwrap(){return this._def.innerType}}Qs.create=(r,a)=>new Qs({innerType:r,typeName:ce.ZodReadonly,...Te(a)});function TE(r,a={},e){return r?ts.create().superRefine((t,i)=>{var s,d;if(!r(t)){const o=typeof a=="function"?a(t):typeof a=="string"?{message:a}:a,l=(d=(s=o.fatal)!==null&&s!==void 0?s:e)!==null&&d!==void 0?d:!0,u=typeof o=="string"?{message:o}:o;i.addIssue({code:"custom",...u,fatal:l})}}):ts.create()}const uC={object:It.lazycreate};var ce;(function(r){r.ZodString="ZodString",r.ZodNumber="ZodNumber",r.ZodNaN="ZodNaN",r.ZodBigInt="ZodBigInt",r.ZodBoolean="ZodBoolean",r.ZodDate="ZodDate",r.ZodSymbol="ZodSymbol",r.ZodUndefined="ZodUndefined",r.ZodNull="ZodNull",r.ZodAny="ZodAny",r.ZodUnknown="ZodUnknown",r.ZodNever="ZodNever",r.ZodVoid="ZodVoid",r.ZodArray="ZodArray",r.ZodObject="ZodObject",r.ZodUnion="ZodUnion",r.ZodDiscriminatedUnion="ZodDiscriminatedUnion",r.ZodIntersection="ZodIntersection",r.ZodTuple="ZodTuple",r.ZodRecord="ZodRecord",r.ZodMap="ZodMap",r.ZodSet="ZodSet",r.ZodFunction="ZodFunction",r.ZodLazy="ZodLazy",r.ZodLiteral="ZodLiteral",r.ZodEnum="ZodEnum",r.ZodEffects="ZodEffects",r.ZodNativeEnum="ZodNativeEnum",r.ZodOptional="ZodOptional",r.ZodNullable="ZodNullable",r.ZodDefault="ZodDefault",r.ZodCatch="ZodCatch",r.ZodPromise="ZodPromise",r.ZodBranded="ZodBranded",r.ZodPipeline="ZodPipeline",r.ZodReadonly="ZodReadonly"})(ce||(ce={}));const pC=(r,a={message:`Input not instance of ${r.name}`})=>TE(e=>e instanceof r,a),Co=Bi.create,uu=wr.create,cC=wo.create,fC=Cr.create,pu=xs.create,IE=Tn.create,yC=Ro.create,hC=ks.create,EE=Zs.create,mC=ts.create,Vo=In.create,vC=lr.create,TC=Do.create,IC=_i.create,AE=It.create,EC=It.strictCreate,AC=qs.create,bC=Oo.create,RC=Js.create,DC=Zi.create,bE=Ss.create,OC=Po.create,PC=En.create,wC=rs.create,CC=Ws.create,VC=zs.create,RE=Vr.create,BC=Ys.create,_C=ns.create,DE=Mi.create,MC=qi.create,NC=Br.create,LC=Mi.createWithPreprocess,jC=Xs.create;var v=Object.freeze({__proto__:null,defaultErrorMap:Qn,setErrorMap:Fw,getErrorMap:Eo,makeIssue:Ao,EMPTY_PATH:xw,addIssueToContext:z,ParseStatus:$t,INVALID:ye,DIRTY:es,OK:zt,isAborted:su,isDirty:au,isValid:vn,isAsync:gs,get util(){return ze},get objectUtil(){return nu},ZodParsedType:H,getParsedType:dr,ZodType:Ge,datetimeRegex:mE,ZodString:Bi,ZodNumber:wr,ZodBigInt:Cr,ZodBoolean:xs,ZodDate:Tn,ZodSymbol:Ro,ZodUndefined:ks,ZodNull:Zs,ZodAny:ts,ZodUnknown:In,ZodNever:lr,ZodVoid:Do,ZodArray:_i,ZodObject:It,ZodUnion:qs,ZodDiscriminatedUnion:Oo,ZodIntersection:Js,ZodTuple:Zi,ZodRecord:Ss,ZodMap:Po,ZodSet:En,ZodFunction:rs,ZodLazy:Ws,ZodLiteral:zs,ZodEnum:Vr,ZodNativeEnum:Ys,ZodPromise:ns,ZodEffects:Mi,ZodTransformer:Mi,ZodOptional:qi,ZodNullable:Br,ZodDefault:Hs,ZodCatch:Ks,ZodNaN:wo,BRAND:lC,ZodBranded:lu,ZodPipeline:Xs,ZodReadonly:Qs,custom:TE,Schema:Ge,ZodSchema:Ge,late:uC,get ZodFirstPartyTypeKind(){return ce},coerce:{string:r=>Bi.create({...r,coerce:!0}),number:r=>wr.create({...r,coerce:!0}),boolean:r=>xs.create({...r,coerce:!0}),bigint:r=>Cr.create({...r,coerce:!0}),date:r=>Tn.create({...r,coerce:!0})},any:mC,array:IC,bigint:fC,boolean:pu,date:IE,discriminatedUnion:bC,effect:DE,enum:RE,function:wC,instanceof:pC,intersection:RC,lazy:CC,literal:VC,map:OC,nan:cC,nativeEnum:BC,never:vC,null:EE,nullable:NC,number:uu,object:AE,oboolean:()=>pu().optional(),onumber:()=>uu().optional(),optional:MC,ostring:()=>Co().optional(),pipeline:jC,preprocess:LC,promise:_C,record:bE,set:PC,strictObject:EC,string:Co,symbol:yC,transformer:DE,tuple:DC,undefined:hC,union:AC,unknown:Vo,void:TC,NEVER:ye,ZodIssueCode:Z,quotelessJson:Gw,ZodError:si});function OE(r){var i,s,d;if(!(r!=null&&r.dataType))return Vo();const a=!r.required,e=r.dataType.isList||!1;let t=Vo();if(((i=r.dataType.entity)==null?void 0:i.type)===n.PrimitiveEntity)switch(r.dataType.entity.name){case L.String:t=Co();break;case L.KeyValue:t=bE(Vo());break;case L.Number:t=uu();break;case L.Boolean:t=pu();break;case L.Date:t=IE();break;case L.Enum:{const o=r.dataType.options||[];if(o.length===0)throw new Error(`Enum property ${r.name} has no options`);t=RE(o);break}case L.Null:t=EE();break;case L.UUID:t=Co().uuid();break}else if(((s=r.dataType.entity)==null?void 0:s.type)===n.DefinitionEntity)t=PE(r.dataType.entity);else throw new Error(`Unsupported data type validation: ${(d=r.dataType.entity)==null?void 0:d.type}`);return a&&(t=t.nullable()),e&&(t=t.array()),t}function PE(r){const a=AE({});for(const e of r.properties){const t=OE(e);a.shape[e.name]=t}return a}function wE(r){const a=r.rangeStart;return new Date(a.getTime()+Math.random()*(Date.now()-a.getTime()))}function CE(r){const a=r.rangeEnd;return new Date(Math.random()*a.getTime())}function VE(r){const a=r.rangeStart,e=r.rangeEnd;return new Date(a.getTime()+Math.random()*(e.getTime()-a.getTime()))}function BE(r){return r.rangeStart&&r.rangeEnd?VE(r):r.rangeStart?wE(r):r.rangeEnd?CE(r):new Date}var UC=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function _E(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var ME={},Bo={},_o={};Object.defineProperty(_o,"__esModule",{value:!0}),_o.default=gC;let Mo;const $C=new Uint8Array(16);function gC(){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($C)}var _r={},An={},No={};Object.defineProperty(No,"__esModule",{value:!0}),No.default=void 0;var GC=/^(?:[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;No.default=GC,Object.defineProperty(An,"__esModule",{value:!0}),An.default=void 0;var FC=xC(No);function xC(r){return r&&r.__esModule?r:{default:r}}function kC(r){return typeof r=="string"&&FC.default.test(r)}var ZC=kC;An.default=ZC,Object.defineProperty(_r,"__esModule",{value:!0}),_r.default=void 0,_r.unsafeStringify=NE;var qC=JC(An);function JC(r){return r&&r.__esModule?r:{default:r}}const jt=[];for(let r=0;r<256;++r)jt.push((r+256).toString(16).slice(1));function NE(r,a=0){return jt[r[a+0]]+jt[r[a+1]]+jt[r[a+2]]+jt[r[a+3]]+"-"+jt[r[a+4]]+jt[r[a+5]]+"-"+jt[r[a+6]]+jt[r[a+7]]+"-"+jt[r[a+8]]+jt[r[a+9]]+"-"+jt[r[a+10]]+jt[r[a+11]]+jt[r[a+12]]+jt[r[a+13]]+jt[r[a+14]]+jt[r[a+15]]}function SC(r,a=0){const e=NE(r,a);if(!(0,qC.default)(e))throw TypeError("Stringified UUID is invalid");return e}var WC=SC;_r.default=WC,Object.defineProperty(Bo,"__esModule",{value:!0}),Bo.default=void 0;var zC=HC(_o),YC=_r;function HC(r){return r&&r.__esModule?r:{default:r}}let LE,cu,fu=0,yu=0;function KC(r,a,e){let t=a&&e||0;const i=a||new Array(16);r=r||{};let s=r.node||LE,d=r.clockseq!==void 0?r.clockseq:cu;if(s==null||d==null){const I=r.random||(r.rng||zC.default)();s==null&&(s=LE=[I[0]|1,I[1],I[2],I[3],I[4],I[5]]),d==null&&(d=cu=(I[6]<<8|I[7])&16383)}let o=r.msecs!==void 0?r.msecs:Date.now(),l=r.nsecs!==void 0?r.nsecs:yu+1;const u=o-fu+(l-yu)/1e4;if(u<0&&r.clockseq===void 0&&(d=d+1&16383),(u<0||o>fu)&&r.nsecs===void 0&&(l=0),l>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");fu=o,yu=l,cu=d,o+=122192928e5;const y=((o&268435455)*1e4+l)%4294967296;i[t++]=y>>>24&255,i[t++]=y>>>16&255,i[t++]=y>>>8&255,i[t++]=y&255;const c=o/4294967296*1e4&268435455;i[t++]=c>>>8&255,i[t++]=c&255,i[t++]=c>>>24&15|16,i[t++]=c>>>16&255,i[t++]=d>>>8|128,i[t++]=d&255;for(let I=0;I<6;++I)i[t+I]=s[I];return a||(0,YC.unsafeStringify)(i)}var XC=KC;Bo.default=XC;var Lo={},Mr={},ea={};Object.defineProperty(ea,"__esModule",{value:!0}),ea.default=void 0;var QC=eV(An);function eV(r){return r&&r.__esModule?r:{default:r}}function tV(r){if(!(0,QC.default)(r))throw TypeError("Invalid UUID");let a;const e=new Uint8Array(16);return e[0]=(a=parseInt(r.slice(0,8),16))>>>24,e[1]=a>>>16&255,e[2]=a>>>8&255,e[3]=a&255,e[4]=(a=parseInt(r.slice(9,13),16))>>>8,e[5]=a&255,e[6]=(a=parseInt(r.slice(14,18),16))>>>8,e[7]=a&255,e[8]=(a=parseInt(r.slice(19,23),16))>>>8,e[9]=a&255,e[10]=(a=parseInt(r.slice(24,36),16))/1099511627776&255,e[11]=a/4294967296&255,e[12]=a>>>24&255,e[13]=a>>>16&255,e[14]=a>>>8&255,e[15]=a&255,e}var iV=tV;ea.default=iV,Object.defineProperty(Mr,"__esModule",{value:!0}),Mr.URL=Mr.DNS=void 0,Mr.default=oV;var rV=_r,nV=sV(ea);function sV(r){return r&&r.__esModule?r:{default:r}}function aV(r){r=unescape(encodeURIComponent(r));const a=[];for(let e=0;e<r.length;++e)a.push(r.charCodeAt(e));return a}const jE="6ba7b810-9dad-11d1-80b4-00c04fd430c8";Mr.DNS=jE;const UE="6ba7b811-9dad-11d1-80b4-00c04fd430c8";Mr.URL=UE;function oV(r,a,e){function t(i,s,d,o){var l;if(typeof i=="string"&&(i=aV(i)),typeof s=="string"&&(s=(0,nV.default)(s)),((l=s)===null||l===void 0?void 0:l.length)!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let u=new Uint8Array(16+i.length);if(u.set(s),u.set(i,s.length),u=e(u),u[6]=u[6]&15|a,u[8]=u[8]&63|128,d){o=o||0;for(let y=0;y<16;++y)d[o+y]=u[y];return d}return(0,rV.unsafeStringify)(u)}try{t.name=r}catch{}return t.DNS=jE,t.URL=UE,t}var jo={};Object.defineProperty(jo,"__esModule",{value:!0}),jo.default=void 0;function dV(r){if(typeof r=="string"){const a=unescape(encodeURIComponent(r));r=new Uint8Array(a.length);for(let e=0;e<a.length;++e)r[e]=a.charCodeAt(e)}return lV(uV(pV(r),r.length*8))}function lV(r){const a=[],e=r.length*32,t="0123456789abcdef";for(let i=0;i<e;i+=8){const s=r[i>>5]>>>i%32&255,d=parseInt(t.charAt(s>>>4&15)+t.charAt(s&15),16);a.push(d)}return a}function $E(r){return(r+64>>>9<<4)+14+1}function uV(r,a){r[a>>5]|=128<<a%32,r[$E(a)-1]=a;let e=1732584193,t=-271733879,i=-1732584194,s=271733878;for(let d=0;d<r.length;d+=16){const o=e,l=t,u=i,y=s;e=gt(e,t,i,s,r[d],7,-680876936),s=gt(s,e,t,i,r[d+1],12,-389564586),i=gt(i,s,e,t,r[d+2],17,606105819),t=gt(t,i,s,e,r[d+3],22,-1044525330),e=gt(e,t,i,s,r[d+4],7,-176418897),s=gt(s,e,t,i,r[d+5],12,1200080426),i=gt(i,s,e,t,r[d+6],17,-1473231341),t=gt(t,i,s,e,r[d+7],22,-45705983),e=gt(e,t,i,s,r[d+8],7,1770035416),s=gt(s,e,t,i,r[d+9],12,-1958414417),i=gt(i,s,e,t,r[d+10],17,-42063),t=gt(t,i,s,e,r[d+11],22,-1990404162),e=gt(e,t,i,s,r[d+12],7,1804603682),s=gt(s,e,t,i,r[d+13],12,-40341101),i=gt(i,s,e,t,r[d+14],17,-1502002290),t=gt(t,i,s,e,r[d+15],22,1236535329),e=Gt(e,t,i,s,r[d+1],5,-165796510),s=Gt(s,e,t,i,r[d+6],9,-1069501632),i=Gt(i,s,e,t,r[d+11],14,643717713),t=Gt(t,i,s,e,r[d],20,-373897302),e=Gt(e,t,i,s,r[d+5],5,-701558691),s=Gt(s,e,t,i,r[d+10],9,38016083),i=Gt(i,s,e,t,r[d+15],14,-660478335),t=Gt(t,i,s,e,r[d+4],20,-405537848),e=Gt(e,t,i,s,r[d+9],5,568446438),s=Gt(s,e,t,i,r[d+14],9,-1019803690),i=Gt(i,s,e,t,r[d+3],14,-187363961),t=Gt(t,i,s,e,r[d+8],20,1163531501),e=Gt(e,t,i,s,r[d+13],5,-1444681467),s=Gt(s,e,t,i,r[d+2],9,-51403784),i=Gt(i,s,e,t,r[d+7],14,1735328473),t=Gt(t,i,s,e,r[d+12],20,-1926607734),e=Ft(e,t,i,s,r[d+5],4,-378558),s=Ft(s,e,t,i,r[d+8],11,-2022574463),i=Ft(i,s,e,t,r[d+11],16,1839030562),t=Ft(t,i,s,e,r[d+14],23,-35309556),e=Ft(e,t,i,s,r[d+1],4,-1530992060),s=Ft(s,e,t,i,r[d+4],11,1272893353),i=Ft(i,s,e,t,r[d+7],16,-155497632),t=Ft(t,i,s,e,r[d+10],23,-1094730640),e=Ft(e,t,i,s,r[d+13],4,681279174),s=Ft(s,e,t,i,r[d],11,-358537222),i=Ft(i,s,e,t,r[d+3],16,-722521979),t=Ft(t,i,s,e,r[d+6],23,76029189),e=Ft(e,t,i,s,r[d+9],4,-640364487),s=Ft(s,e,t,i,r[d+12],11,-421815835),i=Ft(i,s,e,t,r[d+15],16,530742520),t=Ft(t,i,s,e,r[d+2],23,-995338651),e=xt(e,t,i,s,r[d],6,-198630844),s=xt(s,e,t,i,r[d+7],10,1126891415),i=xt(i,s,e,t,r[d+14],15,-1416354905),t=xt(t,i,s,e,r[d+5],21,-57434055),e=xt(e,t,i,s,r[d+12],6,1700485571),s=xt(s,e,t,i,r[d+3],10,-1894986606),i=xt(i,s,e,t,r[d+10],15,-1051523),t=xt(t,i,s,e,r[d+1],21,-2054922799),e=xt(e,t,i,s,r[d+8],6,1873313359),s=xt(s,e,t,i,r[d+15],10,-30611744),i=xt(i,s,e,t,r[d+6],15,-1560198380),t=xt(t,i,s,e,r[d+13],21,1309151649),e=xt(e,t,i,s,r[d+4],6,-145523070),s=xt(s,e,t,i,r[d+11],10,-1120210379),i=xt(i,s,e,t,r[d+2],15,718787259),t=xt(t,i,s,e,r[d+9],21,-343485551),e=Nr(e,o),t=Nr(t,l),i=Nr(i,u),s=Nr(s,y)}return[e,t,i,s]}function pV(r){if(r.length===0)return[];const a=r.length*8,e=new Uint32Array($E(a));for(let t=0;t<a;t+=8)e[t>>5]|=(r[t/8]&255)<<t%32;return e}function Nr(r,a){const e=(r&65535)+(a&65535);return(r>>16)+(a>>16)+(e>>16)<<16|e&65535}function cV(r,a){return r<<a|r>>>32-a}function Uo(r,a,e,t,i,s){return Nr(cV(Nr(Nr(a,r),Nr(t,s)),i),e)}function gt(r,a,e,t,i,s,d){return Uo(a&e|~a&t,r,a,i,s,d)}function Gt(r,a,e,t,i,s,d){return Uo(a&t|e&~t,r,a,i,s,d)}function Ft(r,a,e,t,i,s,d){return Uo(a^e^t,r,a,i,s,d)}function xt(r,a,e,t,i,s,d){return Uo(e^(a|~t),r,a,i,s,d)}var fV=dV;jo.default=fV,Object.defineProperty(Lo,"__esModule",{value:!0}),Lo.default=void 0;var yV=gE(Mr),hV=gE(jo);function gE(r){return r&&r.__esModule?r:{default:r}}var mV=(0,yV.default)("v3",48,hV.default);Lo.default=mV;var $o={},go={};Object.defineProperty(go,"__esModule",{value:!0}),go.default=void 0;var vV={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};go.default=vV,Object.defineProperty($o,"__esModule",{value:!0}),$o.default=void 0;var GE=FE(go),TV=FE(_o),IV=_r;function FE(r){return r&&r.__esModule?r:{default:r}}function EV(r,a,e){if(GE.default.randomUUID&&!a&&!r)return GE.default.randomUUID();r=r||{};const t=r.random||(r.rng||TV.default)();if(t[6]=t[6]&15|64,t[8]=t[8]&63|128,a){e=e||0;for(let i=0;i<16;++i)a[e+i]=t[i];return a}return(0,IV.unsafeStringify)(t)}var AV=EV;$o.default=AV;var Go={},Fo={};Object.defineProperty(Fo,"__esModule",{value:!0}),Fo.default=void 0;function bV(r,a,e,t){switch(r){case 0:return a&e^~a&t;case 1:return a^e^t;case 2:return a&e^a&t^e&t;case 3:return a^e^t}}function hu(r,a){return r<<a|r>>>32-a}function RV(r){const a=[1518500249,1859775393,2400959708,3395469782],e=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof r=="string"){const d=unescape(encodeURIComponent(r));r=[];for(let o=0;o<d.length;++o)r.push(d.charCodeAt(o))}else Array.isArray(r)||(r=Array.prototype.slice.call(r));r.push(128);const t=r.length/4+2,i=Math.ceil(t/16),s=new Array(i);for(let d=0;d<i;++d){const o=new Uint32Array(16);for(let l=0;l<16;++l)o[l]=r[d*64+l*4]<<24|r[d*64+l*4+1]<<16|r[d*64+l*4+2]<<8|r[d*64+l*4+3];s[d]=o}s[i-1][14]=(r.length-1)*8/Math.pow(2,32),s[i-1][14]=Math.floor(s[i-1][14]),s[i-1][15]=(r.length-1)*8&4294967295;for(let d=0;d<i;++d){const o=new Uint32Array(80);for(let E=0;E<16;++E)o[E]=s[d][E];for(let E=16;E<80;++E)o[E]=hu(o[E-3]^o[E-8]^o[E-14]^o[E-16],1);let l=e[0],u=e[1],y=e[2],c=e[3],I=e[4];for(let E=0;E<80;++E){const O=Math.floor(E/20),P=hu(l,5)+bV(O,u,y,c)+I+a[O]+o[E]>>>0;I=c,c=y,y=hu(u,30)>>>0,u=l,l=P}e[0]=e[0]+l>>>0,e[1]=e[1]+u>>>0,e[2]=e[2]+y>>>0,e[3]=e[3]+c>>>0,e[4]=e[4]+I>>>0}return[e[0]>>24&255,e[0]>>16&255,e[0]>>8&255,e[0]&255,e[1]>>24&255,e[1]>>16&255,e[1]>>8&255,e[1]&255,e[2]>>24&255,e[2]>>16&255,e[2]>>8&255,e[2]&255,e[3]>>24&255,e[3]>>16&255,e[3]>>8&255,e[3]&255,e[4]>>24&255,e[4]>>16&255,e[4]>>8&255,e[4]&255]}var DV=RV;Fo.default=DV,Object.defineProperty(Go,"__esModule",{value:!0}),Go.default=void 0;var OV=xE(Mr),PV=xE(Fo);function xE(r){return r&&r.__esModule?r:{default:r}}var wV=(0,OV.default)("v5",80,PV.default);Go.default=wV;var xo={};Object.defineProperty(xo,"__esModule",{value:!0}),xo.default=void 0;var CV="00000000-0000-0000-0000-000000000000";xo.default=CV;var ko={};Object.defineProperty(ko,"__esModule",{value:!0}),ko.default=void 0;var VV=BV(An);function BV(r){return r&&r.__esModule?r:{default:r}}function _V(r){if(!(0,VV.default)(r))throw TypeError("Invalid UUID");return parseInt(r.slice(14,15),16)}var MV=_V;ko.default=MV,function(r){Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"NIL",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(r,"parse",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(r,"stringify",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(r,"v1",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(r,"v3",{enumerable:!0,get:function(){return e.default}}),Object.defineProperty(r,"v4",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(r,"v5",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(r,"validate",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(r,"version",{enumerable:!0,get:function(){return d.default}});var a=y(Bo),e=y(Lo),t=y($o),i=y(Go),s=y(xo),d=y(ko),o=y(An),l=y(_r),u=y(ea);function y(c){return c&&c.__esModule?c:{default:c}}}(ME);function mu(r,a){if(!r||!a||!r.length||!a.length)throw new Error("Bad alphabet");this.srcAlphabet=r,this.dstAlphabet=a}mu.prototype.convert=function(r){var a,e,t,i={},s=this.srcAlphabet.length,d=this.dstAlphabet.length,o=r.length,l=typeof r=="string"?"":[];if(!this.isValid(r))throw new Error('Number "'+r+'" contains of non-alphabetic digits ('+this.srcAlphabet+")");if(this.srcAlphabet===this.dstAlphabet)return r;for(a=0;a<o;a++)i[a]=this.srcAlphabet.indexOf(r[a]);do{for(e=0,t=0,a=0;a<o;a++)e=e*s+i[a],e>=d?(i[t++]=parseInt(e/d,10),e=e%d):t>0&&(i[t++]=0);o=t,l=this.dstAlphabet.slice(e,e+1).concat(l)}while(t!==0);return l},mu.prototype.isValid=function(r){for(var a=0;a<r.length;++a)if(this.srcAlphabet.indexOf(r[a])===-1)return!1;return!0};var NV=mu,LV=NV;function ta(r,a){var e=new LV(r,a);return function(t){return e.convert(t)}}ta.BIN="01",ta.OCT="01234567",ta.DEC="0123456789",ta.HEX="0123456789abcdef";var jV=ta;const{v4:vu,validate:UV}=ME,Zo=jV,Tu={cookieBase90:"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!#$%&'()*+-./:<=>?@[]^_`{|}~",flickrBase58:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ",uuid25Base36:"0123456789abcdefghijklmnopqrstuvwxyz"},$V={consistentLength:!0};let Iu;const kE=(r,a,e)=>{const t=a(r.toLowerCase().replace(/-/g,""));return!e||!e.consistentLength?t:t.padStart(e.shortIdLength,e.paddingChar)},ZE=(r,a)=>{const t=a(r).padStart(32,"0").match(/(\w{8})(\w{4})(\w{4})(\w{4})(\w{12})/);return[t[1],t[2],t[3],t[4],t[5]].join("-")},gV=r=>Math.ceil(Math.log(2**128)/Math.log(r));var GV=(()=>{const r=(a,e)=>{const t=a||Tu.flickrBase58,i={...$V,...e};if([...new Set(Array.from(t))].length!==t.length)throw new Error("The provided Alphabet has duplicate characters resulting in unreliable results");const s=gV(t.length),d={shortIdLength:s,consistentLength:i.consistentLength,paddingChar:t[0]},o=Zo(Zo.HEX,t),l=Zo(t,Zo.HEX),u=()=>kE(vu(),o,d),c={alphabet:t,fromUUID:I=>kE(I,o,d),maxLength:s,generate:u,new:u,toUUID:I=>ZE(I,l),uuid:vu,validate:(I,E=!1)=>{if(!I||typeof I!="string")return!1;const O=i.consistentLength?I.length===s:I.length<=s,P=I.split("").every(V=>t.includes(V));return E===!1?O&&P:O&&P&&UV(ZE(I,l))}};return Object.freeze(c),c};return r.constants=Tu,r.uuid=vu,r.generate=()=>(Iu||(Iu=r(Tu.flickrBase58).generate),Iu()),r})();const qo=_E(GV);function qE(){return qo().uuid()}function JE(r){return r.rangeStart+Math.random()}function SE(r){const a=r.rangeEnd;return Math.random()*a}function WE(r){const a=r.rangeStart,e=r.rangeEnd;return Math.random()*(e-a)+a}function zE(r){return r.rangeStart&&r.rangeEnd?WE(r):r.rangeStart?JE(r):r.rangeEnd?SE(r):Math.random()}function YE(r){const a=r.rangeStart;return Math.random().toString(36).substring(a)}function HE(r){const a=r.rangeEnd;return Math.random().toString(36).substring(0,a)}function KE(r){const a=r.rangeStart,e=r.rangeEnd;return Math.random().toString(36).substring(a,e)}function XE(r){return r.rangeStart&&r.rangeEnd?KE(r):r.rangeStart?YE(r):r.rangeEnd?HE(r):Math.random().toString(36)}function QE(r){return Math.random()>=.5}function FV(r){if(!r||!r.autogeneration)return null;switch(r.autogeneration.type){case vt.CurrentDateAndTime:if(r.name===L.Date)return new Date;case vt.Random:{if(r.name===L.Date)return BE(r.autogeneration);if(r.name===L.Number)return zE(r.autogeneration);if(r.name===L.String)return XE(r.autogeneration);if(r.name===L.Boolean)return QE(r.autogeneration)}case vt.Unique:if(r.name===L.UUID)return qE();default:throw new Error(`Generating a ${r.autogeneration.type} value for a ${r.name} is not supported`)}}const fe="e7eb5382-3d99-44fd-972a-b8b1e819f6be",eA="global-user-variable-id",Eu="last-executed-timestamp-variable-id",xV={id:"alternative-relational-database-entity-identifier-property-data-type-ref-id",type:n.GenericReference,entityId:"alternative-relational-database-entity-identifier-property-id",version:"1",entityType:n.ValueDescriptor},kV={id:"alternative-relational-database-entity-identifier-property-ref-id",type:n.GenericReference,entityId:"alternative-relational-database-entity-identifier-property-id",version:"1",entityType:n.Property},ZV={like:!1,inferred:!1,id:"alternative-relational-database-entity-identifier-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ae,asType:!1,parent:kV},Jo={id:"alternative-relational-database-entity-ref-id",type:n.GenericReference,entityId:"alternative-relational-database-entity-id",version:"1",entityType:n.DefinitionEntity},qV={constant:!1,hidden:!1,required:!0,id:"alternative-relational-database-entity-identifier-property-id",name:"Identifier name",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,implements:co,static:!0,index:0,defaultValue:{id:"alternative-relational-database-entity-identifier-property-data-type-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.String,value:null,parent:xV,autogeneration:{type:vt.Unique,rangeStart:null,rangeEnd:null},valueAsTypeList:null,valueAsTypeSingle:null},dataType:ZV,description:"The name of the main database inside of the server instance where the data will be stored.",parent:Jo};n.GenericReference,n.ValueDescriptor;const JV={id:"alternative-relational-database-entity-username-property-ref-id",type:n.GenericReference,entityId:"alternative-relational-database-entity-username-property-id",version:"1",entityType:n.Property},SV={like:!1,inferred:!1,id:"alternative-relational-database-entity-username-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ae,asType:!1,parent:JV},WV={constant:!1,hidden:!1,required:!0,id:"alternative-relational-database-entity-username-property-id",name:"Username",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,implements:fo,static:!0,index:1,defaultValue:null,dataType:SV,description:"The username that will be used to connect to the database.",parent:Jo};n.GenericReference,n.ValueDescriptor;const zV={id:"alternative-relational-database-entity-password-property-ref-id",type:n.GenericReference,entityId:"alternative-relational-database-entity-password-property-id",version:"1",entityType:n.Property},YV={like:!1,inferred:!1,id:"alternative-relational-database-entity-password-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ae,asType:!1,parent:zV},HV={constant:!1,hidden:!1,required:!0,id:"alternative-relational-database-entity-password-property-id",name:"Password",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,implements:yo,static:!0,index:2,defaultValue:null,dataType:YV,description:"The password that will be used to connect to the database.",parent:Jo},KV={id:"alternative-relational-database-entity-min-size-property-data-type-ref-id",type:n.GenericReference,entityId:"alternative-relational-database-entity-min-size-property-id",version:"1",entityType:n.ValueDescriptor},XV={id:"alternative-relational-database-entity-min-size-property-ref-id",type:n.GenericReference,entityId:"alternative-relational-database-entity-min-size-property-id",version:"1",entityType:n.Property},QV={like:!1,inferred:!1,id:"alternative-relational-database-entity-min-size-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ve,asType:!1,parent:XV},eB={constant:!1,hidden:!1,required:!0,id:"alternative-relational-database-entity-min-size-property-id",name:"Minimum GB size",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,implements:ho,static:!0,index:3,defaultValue:{id:"alternative-relational-database-entity-min-size-property-data-type-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.Number,value:6,parent:KV,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},dataType:QV,description:"The minimum size of the database in GB.",parent:Jo},tB={id:"alternative-relational-database-entity-parent-ref-id",type:n.GenericReference,entityId:fe,version:"1",entityType:n.Project},Au={id:"alternative-relational-database-entity-id",type:n.DefinitionEntity,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Alternative relational Database",description:"A database that permanently stores the persisted entities attached to it.",abstract:!1,static:!0,properties:[qV,WV,HV,eB],methods:[],abstractMethods:[],extends:[],implements:[Dt],x:0,y:0,parent:tB},iB={id:"animal-prototype-database-property-ref-id",type:n.GenericReference,entityId:"animal-prototype-database-property-id",version:"1",entityType:n.Property},rB={id:"animal-prototype-database-property-data-type-default-value-parent-ref-id",type:n.GenericReference,entityId:"animal-prototype-database-property-id",version:"1",entityType:n.Property},nB={like:!1,inferred:!1,id:"animal-prototype-database-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:Dt,asType:!1,parent:iB},sB={id:"animal-prototype-database-property-parent-ref-id",type:n.GenericReference,entityId:"83eaa847-e62b-4192-84fb-3d8d6f5ea970",version:"1",entityType:n.DefinitionEntity},aB={constant:!1,hidden:!1,required:!0,id:"animal-prototype-database-property-id",name:"Database",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,implements:Yn,static:!0,index:0,defaultValue:{id:"animal-prototype-database-property-data-type-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:null,name:L.EntityTemplate,valueAsTypeList:null,valueAsTypeSingle:Au,autogeneration:null,parent:rB},dataType:nB,description:"The database that the entity belongs to.",parent:sB},oB={type:n.GenericReference,id:"291e4d4f-01d8-40a0-90dc-5f1ac6636e9b",version:"1",entityType:n.Property,entityId:"5cb617b0-92be-4dbe-a007-49093368d94f"},dB={like:!1,inferred:!1,id:"c1930577-9e79-48a6-8905-be24611015c1",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ae,asType:!1,isList:!1,parent:oB},lB={type:n.GenericReference,id:"animal-name-property-parent-ref-id",version:"1",entityType:n.DefinitionEntity,entityId:"83eaa847-e62b-4192-84fb-3d8d6f5ea970"},uB={type:n.GenericReference,id:"animal-name-default-value-parent-ref-id",version:"1",entityType:n.Property,entityId:"5cb617b0-92be-4dbe-a007-49093368d94f"},pB={type:n.LiteralValue,id:"animal-name-default-value-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:"Animal",name:L.String,valueAsTypeSingle:null,valueAsTypeList:null,autogeneration:null,parent:uB},cB={constant:!1,hidden:!1,required:!0,type:n.Property,id:"5cb617b0-92be-4dbe-a007-49093368d94f",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Name",description:"The name of the animal",defaultValue:pB,implements:Hn,static:!1,private:!1,index:0,dataType:dB,abstract:!1,parent:lB},fB={type:n.GenericReference,id:"abc565de-4c83-4936-bc48-4013bef213b8",version:"1",entityType:n.Project,entityId:fe},yB={type:n.DefinitionEntity,id:"83eaa847-e62b-4192-84fb-3d8d6f5ea970",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Animal",description:"A living creature that is not human",abstract:!1,static:!1,abstractMethods:[],properties:[aB,cB],methods:[],extends:[],implements:[_t],x:0,y:0,parent:fB},ia="base-table-entity",tA="base-table-entity-identifier-property-id";n.GenericReference,n.Property,n.GenericReference,n.Property;const hB={id:"base-table-entity-identifier-property-data-type-ref-id",type:n.GenericReference,entityId:tA,version:"1",entityType:n.Property},mB={id:"base-table-entity-identifier-property-ref-id",type:n.GenericReference,entityId:"base-table-entity-identifier-property-id",version:"1",entityType:n.Property},vB={like:!1,inferred:!1,id:"base-table-entity-identifier-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:sr,asType:!1,parent:mB},TB={id:"base-table-entity-identifier-property-parent-ref-id",type:n.GenericReference,entityId:ia,version:"1",entityType:n.DefinitionEntity};n.Property,n.LiteralValue,L.UUID,vt.Unique,n.GenericReference,n.Property;const IB={id:"base-table-entity-deleted-at-property-ref-id",type:n.GenericReference,entityId:"base-table-entity-deleted-at-property-id",version:"1",entityType:n.Property},EB={like:!1,inferred:!1,id:"base-table-entity-deleted-at-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:Gi,asType:!1,parent:IB},AB={id:"base-table-entity-deleted-at-property-parent-ref-id",type:n.GenericReference,entityId:ia,version:"1",entityType:n.DefinitionEntity},bB={constant:!1,hidden:!0,required:!0,id:"base-table-entity-deleted-at-property-id",name:"Deleted at",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!0,implements:null,static:!1,index:0,defaultValue:null,dataType:EB,description:"The date and time when the entity was deleted.",parent:AB};n.GenericReference,n.Property;const RB={id:"base-table-entity-created-at-property-ref-id",type:n.GenericReference,entityId:"base-table-entity-created-at-property-id",version:"1",entityType:n.Property},DB={like:!1,inferred:!1,id:"base-table-entity-created-at-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:Gi,asType:!1,parent:RB},OB={id:"base-table-entity-created-at-property-parent-ref-id",type:n.GenericReference,entityId:ia,version:"1",entityType:n.DefinitionEntity},PB={constant:!1,hidden:!0,required:!0,id:"base-table-entity-created-at-property-id",name:"Created at",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!0,implements:null,static:!1,index:0,defaultValue:null,dataType:DB,description:"The date and time when the entity was created.",parent:OB};n.GenericReference,n.Property;const wB={id:"base-table-entity-updated-at-property-ref-id",type:n.GenericReference,entityId:"base-table-entity-updated-at-property-id",version:"1",entityType:n.Property},CB={like:!1,inferred:!1,id:"base-table-entity-updated-at-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:Gi,asType:!1,parent:wB},VB={id:"base-table-entity-updated-at-property-parent-ref-id",type:n.GenericReference,entityId:ia,version:"1",entityType:n.DefinitionEntity},BB={constant:!1,hidden:!0,required:!0,id:"base-table-entity-updated-at-property-id",name:"Updated at",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,implements:null,abstract:!0,static:!1,index:0,defaultValue:null,dataType:CB,description:"The date and time when the entity was last updated.",parent:VB},_B={id:"base-table-entity-parent-ref-id",type:n.GenericReference,entityId:fe,version:"1",entityType:n.Project},mi={id:ia,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:"An entity that is permanently stored in the database and can be accessed at any point.",name:"Base database table format",type:n.DefinitionEntity,abstract:!0,static:!1,abstractMethods:[],implements:[],properties:[bB,PB,BB],methods:[],extends:[],x:0,y:0,parent:_B},MB={id:"default-relational-database-entity-identifier-property-data-type-ref-id",type:n.GenericReference,entityId:"default-relational-database-entity-identifier-property-id",version:"1",entityType:n.Property},NB={id:"default-relational-database-entity-identifier-property-ref-id",type:n.GenericReference,entityId:"default-relational-database-entity-identifier-property-id",version:"1",entityType:n.Property},LB={like:!1,inferred:!1,id:"default-relational-database-entity-identifier-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ae,asType:!1,parent:NB},ss={id:"default-relational-database-entity-ref-id",type:n.GenericReference,entityId:"default-relational-database-entity-id",version:"1",entityType:n.DefinitionEntity},jB={constant:!1,id:"default-relational-database-entity-identifier-property-id",hidden:!1,required:!0,name:"Identifier name",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,implements:co,static:!0,index:0,defaultValue:{id:"default-relational-database-entity-identifier-property-data-type-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.String,value:"main",parent:MB,autogeneration:{type:vt.Unique,rangeStart:null,rangeEnd:null},valueAsTypeList:null,valueAsTypeSingle:null},dataType:LB,description:"The name of the main database inside of the server instance where the data will be stored.",parent:ss};n.GenericReference,n.Property;const UB={id:"default-relational-database-entity-username-property-ref-id",type:n.GenericReference,entityId:"default-relational-database-entity-username-property-id",version:"1",entityType:n.Property},$B={id:"default-relational-database-entity-username-property-default-value-parent-ref-id",type:n.GenericReference,entityId:"default-relational-database-entity-username-property-id",version:"1",entityType:n.Property},gB={like:!1,inferred:!1,id:"default-relational-database-entity-username-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ae,asType:!1,parent:UB},GB={constant:!1,hidden:!1,required:!0,id:"default-relational-database-entity-username-property-id",name:"Username",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,implements:fo,defaultValue:{id:"default-relational-database-entity-username-property-data-type-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.String,value:"root",parent:$B,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},static:!0,index:1,dataType:gB,description:"The username that will be used to connect to the database.",parent:ss};n.GenericReference,n.Property;const FB={id:"default-relational-database-entity-password-property-ref-id",type:n.GenericReference,entityId:"default-relational-database-entity-password-property-id",version:"1",entityType:n.Property},xB={id:"default-relational-database-entity-password-property-default-value-parent-ref-id",type:n.GenericReference,entityId:"default-relational-database-entity-password-property-id",version:"1",entityType:n.Property},kB={like:!1,inferred:!1,id:"default-relational-database-entity-password-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ae,asType:!1,parent:FB},ZB={constant:!1,hidden:!1,required:!0,id:"default-relational-database-entity-password-property-id",name:"Password",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,implements:yo,static:!0,index:2,defaultValue:{id:"default-relational-database-entity-password-property-data-type-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.String,value:"password",parent:xB,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},dataType:kB,description:"The password that will be used to connect to the database.",parent:ss},qB={id:"default-relational-database-entity-min-size-property-data-type-ref-id",type:n.GenericReference,entityId:"default-relational-database-entity-min-size-property-id",version:"1",entityType:n.Property},JB={id:"default-relational-database-entity-min-size-property-ref-id",type:n.GenericReference,entityId:"default-relational-database-entity-min-size-property-id",version:"1",entityType:n.Property},SB={like:!1,inferred:!1,id:"default-relational-database-entity-min-size-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ve,asType:!1,parent:JB},WB={constant:!1,hidden:!1,required:!0,id:"default-relational-database-entity-min-size-property-id",name:"Minimum GB size",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,implements:ho,static:!0,index:3,defaultValue:{id:"default-relational-database-entity-min-size-property-data-type-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.Number,value:6,parent:qB,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},dataType:SB,description:"The minimum size of the database in GB.",parent:ss},zB={id:"default-relational-database-entity-default-property-data-type-ref-id",type:n.GenericReference,entityId:"default-relational-database-entity-default-property-id",version:"1",entityType:n.Property},YB={id:"default-relational-database-entity-default-property-ref-id",type:n.GenericReference,entityId:"default-relational-database-entity-default-property-id",version:"1",entityType:n.Property},HB={like:!1,inferred:!1,id:"default-relational-database-entity-default-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ve,asType:!1,parent:YB},KB={constant:!0,id:"default-relational-database-entity-default-property-id",hidden:!0,required:!0,name:"Default",description:"Whether this database is automatically picked by other entities as the default database.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,implements:Xl,static:!0,index:4,dataType:HB,defaultValue:{id:"default-relational-database-entity-default-property-data-type-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.Boolean,value:!0,parent:zB,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},parent:ss},XB={id:"default-relational-database-entity-autoscaling-property-data-type-ref-id",type:n.GenericReference,entityId:"default-relational-database-entity-autoscaling-property-id",version:"1",entityType:n.Property},QB={id:"default-relational-database-entity-autoscaling-property-ref-id",type:n.GenericReference,entityId:"default-relational-database-entity-autoscaling-property-id",version:"1",entityType:n.Property},e_={like:!1,inferred:!1,id:"default-relational-database-entity-autoscaling-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ve,asType:!1,parent:QB},t_={constant:!1,id:"default-relational-database-entity-autoscaling-property-id",hidden:!1,required:!0,name:"Auto-scaling",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,implements:Ql,static:!0,index:5,defaultValue:{id:"default-relational-database-entity-autoscaling-property-data-type-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.Boolean,value:!0,parent:XB,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},dataType:e_,description:"If true, this database will automatically scale up or down in memory size, based on the usage.s",parent:ss},i_={id:"default-relational-database-entity-parent-ref-id",type:n.GenericReference,entityId:fe,version:"1",entityType:n.Project},bu={id:"default-relational-database-entity-id",type:n.DefinitionEntity,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Relational Database",description:"A database that permanently stores the persisted entities attached to it.",abstract:!1,static:!0,properties:[KB,t_,jB,GB,ZB,WB],methods:[],abstractMethods:[],extends:[],implements:[Dt],x:0,y:0,parent:i_},r_={id:"user-prototype-database-property-data-type-ref-id",type:n.GenericReference,entityId:"user-prototype-database-property-id",version:"1",entityType:n.Property},n_={id:"user-prototype-database-property-ref-id",type:n.GenericReference,entityId:"user-prototype-database-property-id",version:"1",entityType:n.Property},s_={like:!1,inferred:!1,id:"user-prototype-database-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:Dt,asType:!1,parent:n_},a_={id:"user-prototype-database-property-parent-ref-id",type:n.GenericReference,entityId:"de67fc84-3719-46fd-9ab4-3fca3a3cc50d",version:"1",entityType:n.DefinitionEntity},o_={constant:!1,hidden:!1,required:!0,id:"user-prototype-database-property-id",name:"Database",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,implements:Yn,static:!0,index:0,defaultValue:{id:"user-prototype-database-property-data-type-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:null,name:L.EntityTemplate,valueAsTypeList:null,valueAsTypeSingle:bu,autogeneration:null,parent:r_},dataType:s_,description:"The database that the entity belongs to.",parent:a_},d_={type:n.GenericReference,id:"user-prototype-parent-ref-id",version:"1",entityType:n.Project,entityId:fe},l_={id:"user-prototype-primary-key-property-data-type-ref-id",type:n.GenericReference,entityId:"user-prototype-primary-key-property-id",version:"1",entityType:n.Property},u_={id:"user-prototype-primary-key-property-ref-id",type:n.GenericReference,entityId:"user-prototype-primary-key-property-id",version:"1",entityType:n.Property},p_={like:!1,inferred:!1,id:"user-prototype-primary-key-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:sr,asType:!1,parent:u_},c_={id:"user-prototype-primary-key-property-parent-ref-id",type:n.GenericReference,entityId:"de67fc84-3719-46fd-9ab4-3fca3a3cc50d",version:"1",entityType:n.DefinitionEntity},f_={constant:!1,hidden:!1,required:!0,id:"user-prototype-primary-key-property-id",name:"Identifier",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,implements:Hn,static:!1,index:1,defaultValue:{id:"user-prototype-primary-key-property-data-type-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.UUID,value:null,parent:l_,autogeneration:{type:vt.Unique,rangeStart:null,rangeEnd:null},valueAsTypeList:null,valueAsTypeSingle:null},dataType:p_,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:c_},Ru={type:n.DefinitionEntity,id:"de67fc84-3719-46fd-9ab4-3fca3a3cc50d",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"User",description:"A user of the application",implements:[_t,mi],abstract:!1,static:!1,abstractMethods:[],extends:[],properties:[o_,f_],methods:[],x:0,y:0,parent:d_},y_={type:n.GenericReference,id:"person-date-of-birth-property-data-type-parent-ref-id",version:"1",entityType:n.Property,entityId:"person-date-of-birth-property-id"},h_={like:!1,inferred:!1,id:"person-date-of-birth-property-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Gi,isList:!1,asType:!1,parent:y_},m_={type:n.GenericReference,id:"person-date-of-birth-property-parent-ref-id",version:"1",entityType:n.DefinitionEntity,entityId:"c9bc312a-10d3-48a7-9ab4-ea483a9e2416"},v_={constant:!1,hidden:!1,required:!0,type:n.Property,id:"person-date-of-birth-property-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Date of birth",description:"The date of birth of the person",implements:null,private:!1,static:!1,index:0,defaultValue:null,dataType:h_,abstract:!1,parent:m_},T_={type:n.GenericReference,id:"a2867827-2f8e-4c25-b18b-d91857d7f24e",version:"1",entityType:n.Property,entityId:"cacfec92-46c3-4fca-a1d9-fd1ba94d78c7"},I_={like:!1,inferred:!1,id:"1d49f41b-17b9-4f48-87aa-3ce43498e5a9",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ae,isList:!1,asType:!1,parent:T_},E_={type:n.GenericReference,id:"01cbe760-40a9-4f49-8e3d-194d2f57cb1e",version:"1",entityType:n.DefinitionEntity,entityId:"c9bc312a-10d3-48a7-9ab4-ea483a9e2416"},A_={constant:!1,hidden:!1,required:!0,type:n.Property,id:"cacfec92-46c3-4fca-a1d9-fd1ba94d78c7",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Name",description:"The name of the person",implements:null,private:!1,static:!1,index:0,defaultValue:null,dataType:I_,abstract:!1,parent:E_},b_={type:n.GenericReference,id:"3542b22a-3a2f-41c6-876e-24c885572498",version:"1",entityType:n.Project,entityId:fe},Yt={type:n.DefinitionEntity,id:"c9bc312a-10d3-48a7-9ab4-ea483a9e2416",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Person",description:"A entity to store more information about a person than the user entity does, to split the responsibilities and keep it the logic clean.",properties:[A_,v_],abstract:!1,static:!1,abstractMethods:[],methods:[],implements:[],extends:[Ru],x:0,y:0,parent:b_},R_={type:n.GenericReference,id:"b59c80b7-b2e9-41e9-abcd-7c5652835efc",version:"1",entityType:n.FunctionDeclaration,entityId:"36f29f96-c001-4b9a-b49c-83eff406a060"},D_={type:n.GenericReference,id:"1190b5a2-f25e-46db-884d-8a3dd1a44d94",version:"1",entityType:n.ReturnStatement,entityId:"3ebc4342-c9e8-42e7-a61c-7937081e1d2e"},O_={type:n.GenericReference,id:"36c63126-7814-496f-a6cc-48662c2aabae",version:"1",entityType:n.ArgumentDeclaration,entityId:"500dee3a-3435-4453-9699-0d053f646523"},P_={type:n.GenericReference,id:"c567e55d-ec12-4e4e-958e-f07522892b4b",version:"1",entityType:n.ReturnDeclaration,entityId:"9e070523-7e07-4100-8637-960a187f5f14"},w_={like:!1,inferred:!1,id:"3973c5a1-f0d8-49a0-a9a9-a0009bf3f0d8",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Yt,isList:!1,asType:!1,parent:P_},Du={constant:!0,isError:!1,id:"9e070523-7e07-4100-8637-960a187f5f14",type:n.ReturnDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Output Account Owner",description:null,defaultValue:null,dataType:w_,implements:null,readsValue:O_,required:!0,index:0,parent:D_},C_={type:n.GenericReference,id:"567d923c-20da-4c1e-956d-962ea30c6d0b",version:"1",entityType:n.FunctionDeclaration,entityId:"36f29f96-c001-4b9a-b49c-83eff406a060"},V_={type:n.GenericReference,id:"da85e620-59f3-42ab-88c8-b38d33c2c833",version:"1",entityType:n.FunctionDeclaration,entityId:"36f29f96-c001-4b9a-b49c-83eff406a060"},B_={type:n.ReturnStatement,id:"3ebc4342-c9e8-42e7-a61c-7937081e1d2e",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[Du],calledByError:[],calledByEntry:[C_],calledBySuccess:[],throws:null,x:0,y:0,parent:V_},__={type:n.GenericReference,id:"1c806bb7-4c25-4bad-963b-93dfbb7c8304",version:"1",entityType:n.ArgumentDeclaration,entityId:"500dee3a-3435-4453-9699-0d053f646523"},M_={like:!1,inferred:!1,id:"d90fcc18-642b-433c-8fcb-4094b9031cd5",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Yt,isList:!1,asType:!1,parent:__},iA={constant:!0,id:"500dee3a-3435-4453-9699-0d053f646523",type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"New Account Owner",description:null,defaultValue:null,dataType:M_,implements:null,required:!0,writesValues:[Du],index:0,parent:R_},N_={type:n.GenericReference,id:"83dceb60-f3c4-4085-824c-85f2003bfd27",version:"1",entityType:n.DefinitionEntity,entityId:"506946aa-30da-48e6-918f-ffd9eac58813"},rA={type:n.FunctionDeclaration,id:"36f29f96-c001-4b9a-b49c-83eff406a060",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Change owner of bank account",description:null,implements:null,inputs:[iA],calls:[B_],index:0,collapsed:!1,private:!1,x:0,y:0,parent:N_},L_={type:n.GenericReference,id:"adbaf302-ffa9-49b6-a3c6-83f9a75068e3",version:"1",entityType:n.VariableDeclaration,entityId:"8e36a476-766e-4cc2-a8a7-27a07dfb5a4b"},j_={like:!1,inferred:!1,id:"79ee04aa-1ba4-4ae9-a406-ed45e5b03f7f",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Yt,asType:!1,isList:!1,parent:L_},U_={type:n.GenericReference,id:"55e212d1-f0ec-4bb6-acbe-60f741367daf",version:"1",entityType:n.OutputMap,entityId:"dc9ddb8f-02a0-4a43-aea6-270ec7b7f8a4"},$_={type:n.GenericReference,id:"944e1171-3d9b-4559-9386-1d4974b15962",version:"1",entityType:n.FunctionDeclaration,entityId:"15ee556d-681f-47de-a31f-16d4ba73cc4e"},g_={constant:!0,required:!0,id:"8e36a476-766e-4cc2-a8a7-27a07dfb5a4b",type:n.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Output Account Owner",description:null,defaultValue:null,dataType:j_,readsValue:U_,writesValues:[],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:$_},G_={type:n.GenericReference,id:"b89ebc83-52cf-4447-a5ae-62241f713079",version:"1",entityType:n.FunctionCall,entityId:"78f6dba8-bed8-44cd-8b0f-6dcc787d1e1e"},F_={id:"dc9ddb8f-02a0-4a43-aea6-270ec7b7f8a4",type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Du,defaultValue:null,writesValues:[g_],index:0,parent:G_},x_={type:n.GenericReference,id:"c1b9e125-1aad-48b7-9687-95c57a6bc10d",version:"1",entityType:n.FunctionDeclaration,entityId:"15ee556d-681f-47de-a31f-16d4ba73cc4e"},k_={type:n.GenericReference,id:"d2deaa02-e164-4425-905c-6dee47eb4eac",version:"1",entityType:n.FunctionDeclaration,entityId:"15ee556d-681f-47de-a31f-16d4ba73cc4e"},Z_={type:n.GenericReference,id:"1109a655-ac62-4110-a933-42a72106f4f0",version:"1",entityType:n.VariableDeclaration,entityId:"8bea6986-8da2-487b-905d-2fb962db6728"},q_={like:!1,inferred:!1,id:"7d9a1307-512e-42ec-9797-2f7229796b97",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Yt,asType:!1,isList:!1,parent:Z_},J_={type:n.GenericReference,id:"bb61ebf7-57b3-4d14-905d-82ec907205b5",version:"1",entityType:n.ArgumentDeclaration,entityId:"38f6b236-98ac-47b0-ab9c-d2f9610137b9"},S_={type:n.GenericReference,id:"6b8c7bf2-9fc8-4ea4-9ec0-f41679d513b1",version:"1",entityType:n.FunctionDeclaration,entityId:"15ee556d-681f-47de-a31f-16d4ba73cc4e"},W_={type:n.GenericReference,id:"6163d1a1-7a94-49b1-95bb-aecd8d6d335c",version:"1",entityType:n.FunctionCall,entityId:"78f6dba8-bed8-44cd-8b0f-6dcc787d1e1e"},z_={type:n.GenericReference,id:"1f900f62-4bd2-4246-94aa-b8f5aad384fd",version:"1",entityType:n.VariableDeclaration,entityId:"8bea6986-8da2-487b-905d-2fb962db6728"},nA={id:"be8538be-e6f9-4b94-9314-a546003ebaa0",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:iA,name:null,description:null,readsValue:z_,defaultValue:null,index:0,parent:W_},Y_={constant:!0,required:!0,type:n.VariableDeclaration,id:"8bea6986-8da2-487b-905d-2fb962db6728",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Changed Account Owner",description:null,defaultValue:null,dataType:q_,readsValue:J_,writesValues:[nA],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:S_},H_={type:n.FunctionCall,id:"78f6dba8-bed8-44cd-8b0f-6dcc787d1e1e",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:rA,inputs:[nA],outputs:[F_],process:null,successCalls:[],errorCalls:[],calledByError:[],calledByEntry:[x_],calledBySuccess:[],parent:k_,error:null,x:0,y:0},K_={type:n.GenericReference,id:"2d47aba1-a918-46a7-8db7-78809928654a",version:"1",entityType:n.ArgumentDeclaration,entityId:"38f6b236-98ac-47b0-ab9c-d2f9610137b9"},X_={like:!1,inferred:!1,id:"5583766c-e9a5-484c-8f43-f4b0a6a1876c",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Yt,asType:!1,isList:!1,parent:K_},Q_={type:n.GenericReference,id:"3e2a81e4-55b2-49f5-94eb-39135e95c3d7",version:"1",entityType:n.FunctionDeclaration,entityId:"15ee556d-681f-47de-a31f-16d4ba73cc4e"},eM={constant:!0,id:"38f6b236-98ac-47b0-ab9c-d2f9610137b9",type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:null,name:"New Company Owner",defaultValue:null,dataType:X_,implements:null,required:!0,index:0,writesValues:[Y_],parent:Q_},tM={type:n.GenericReference,id:"30291b01-1b94-4d03-b434-dec122c2bc7d",version:"1",entityType:n.DefinitionEntity,entityId:"506946aa-30da-48e6-918f-ffd9eac58813"},iM={type:n.FunctionDeclaration,id:"15ee556d-681f-47de-a31f-16d4ba73cc4e",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:null,name:"Change Account Owner",inputs:[eM],collapsed:!0,calls:[H_],private:!1,index:0,implements:null,x:0,y:0,parent:tM},rM={type:n.GenericReference,id:"72c7ac0a-886e-4e10-b7ed-2f5a819a0233",version:"1",entityType:n.Property,entityId:"b8f4656a-2b77-43ab-af51-7c32ddede044"},nM={like:!1,inferred:!1,id:"c09dd282-73f6-4077-a467-b66db20b9fc6",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ae,isList:!1,asType:!1,parent:rM},sM={type:n.GenericReference,id:"8a950024-512c-4580-81db-a705410aeb99",version:"1",entityType:n.DefinitionEntity,entityId:"506946aa-30da-48e6-918f-ffd9eac58813"},aM={constant:!1,hidden:!1,required:!0,type:n.Property,id:"b8f4656a-2b77-43ab-af51-7c32ddede044",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Account number",description:null,private:!0,defaultValue:null,implements:Hn,static:!1,index:0,dataType:nM,abstract:!1,parent:sM},oM={type:n.GenericReference,id:"b6704b6c-c3bd-49d0-8ebc-82d03e726cbb",version:"1",entityType:n.Property,entityId:"733d06a6-b8c5-44f3-a1f7-a8c9bd9e44ea"},dM={like:!1,inferred:!1,id:"c03e0b0a-88ab-401a-8833-4806738bdc37",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Yt,isList:!1,asType:!1,parent:oM},lM={type:n.GenericReference,id:"1ef999a7-e9ed-406a-866e-e58277fc985b",version:"1",entityType:n.DefinitionEntity,entityId:"506946aa-30da-48e6-918f-ffd9eac58813"},uM={constant:!1,hidden:!1,required:!0,type:n.Property,id:"733d06a6-b8c5-44f3-a1f7-a8c9bd9e44ea",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:null,name:"Account Owner",index:1,defaultValue:null,dataType:dM,implements:null,static:!1,private:!0,abstract:!1,parent:lM},pM={type:n.GenericReference,id:"d41d7f41-98b8-4f67-be92-c349fdda5156",version:"1",entityType:n.Project,entityId:fe},as={type:n.DefinitionEntity,id:"506946aa-30da-48e6-918f-ffd9eac58813",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Bank Account",description:null,abstract:!1,static:!1,abstractMethods:[],properties:[aM,uM],methods:[rA,iM],extends:[],implements:[_t,mi],x:0,y:0,parent:pM},ra="bitcoin-api-response-id",sA="time-property-id",aA="disclaimer-property-id",oA="chart-name-property-id",dA="bpi-property-id",So="bpi-entity-id",lA="usd-property-id",uA="gbp-property-id",pA="eur-property-id",os="currency-entity-id",cA="currency-code-property-id",fA="currency-symbol-property-id",yA="currency-rate-property-id",hA="currency-description-property-id",mA="currency-rate-number-property-id",cM={type:n.GenericReference,id:"code-property-data-type-parent-ref-id",version:"1",entityType:n.Property,entityId:cA},fM={like:!1,inferred:!1,id:"code-property-data-type-id",type:n.DataType,parentRelationType:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:nr,isList:!1,asType:!1,options:["USD","GBP","EUR"],parent:cM},yM={type:n.GenericReference,id:"code-property-parent-ref-id",version:"1",entityType:n.DefinitionEntity,entityId:os},hM={constant:!1,hidden:!1,required:!0,type:n.Property,id:cA,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"code",description:null,defaultValue:null,dataType:fM,index:0,implements:null,static:!1,private:!1,abstract:!1,parent:yM},mM={type:n.GenericReference,id:"symbol-property-data-type-parent-ref-id",version:"1",entityType:n.Property,entityId:fA},vM={like:!1,inferred:!1,id:"symbol-property-data-type-id",type:n.DataType,parentRelationType:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:nr,isList:!1,asType:!1,options:["$","£","€"],parent:mM},TM={type:n.GenericReference,id:"symbol-property-parent-ref-id",version:"1",entityType:n.DefinitionEntity,entityId:os},IM={constant:!1,hidden:!1,required:!0,type:n.Property,id:fA,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"symbol",description:null,index:0,defaultValue:null,dataType:vM,implements:null,static:!1,private:!1,abstract:!1,parent:TM},EM={type:n.GenericReference,id:"rate-property-data-type-parent-ref-id",version:"1",entityType:n.Property,entityId:yA},AM={like:!1,inferred:!1,id:"rate-property-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ae,isList:!1,asType:!1,parent:EM},bM={type:n.GenericReference,id:"rate-property-parent-ref-id",version:"1",entityType:n.DefinitionEntity,entityId:os},RM={constant:!1,hidden:!1,required:!0,type:n.Property,id:yA,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"rate",description:null,index:0,defaultValue:null,dataType:AM,implements:null,static:!1,private:!1,abstract:!1,parent:bM},DM={type:n.GenericReference,id:"description-property-data-type-parent-ref-id",version:"1",entityType:n.Property,entityId:hA},OM={like:!1,inferred:!1,id:"description-property-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ae,isList:!1,asType:!1,parent:DM},PM={type:n.GenericReference,id:"description-property-parent-ref-id",version:"1",entityType:n.DefinitionEntity,entityId:os},wM={constant:!1,hidden:!1,required:!0,type:n.Property,id:hA,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"description",description:null,defaultValue:null,dataType:OM,implements:null,static:!1,index:0,private:!1,abstract:!1,parent:PM},CM={type:n.GenericReference,id:"rate-number-property-data-type-parent-ref-id",version:"1",entityType:n.Property,entityId:mA},VM={like:!1,inferred:!1,id:"rate-number-property-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,isList:!1,asType:!1,parent:CM},BM={type:n.GenericReference,id:"rate-number-property-parent-ref-id",version:"1",entityType:n.DefinitionEntity,entityId:os},_M={constant:!1,hidden:!1,required:!0,type:n.Property,id:mA,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"rate_float",description:null,defaultValue:null,dataType:VM,implements:null,static:!1,index:0,private:!1,abstract:!1,parent:BM},MM={type:n.GenericReference,id:"currency-prototype-parent-ref-id",version:"1",entityType:n.Project,entityId:fe},Wo={type:n.DefinitionEntity,id:os,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:[hM,IM,RM,wM,_M],static:!1,abstract:!1,abstractMethods:[],methods:[],extends:[],implements:[],x:0,y:0,parent:MM},NM={type:n.GenericReference,id:"usd-property-data-type-parent-ref-id",version:"1",entityType:n.Property,entityId:lA},LM={like:!1,inferred:!1,id:"usd-property-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Wo,isList:!1,asType:!1,parent:NM},jM={type:n.GenericReference,id:"usd-property-parent-ref-id",version:"1",entityType:n.DefinitionEntity,entityId:So},UM={constant:!1,hidden:!1,required:!0,id:lA,type:n.Property,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"USD",description:null,index:0,dataType:LM,defaultValue:null,implements:null,static:!1,private:!1,abstract:!1,parent:jM},$M={type:n.GenericReference,id:"gbp-property-data-type-parent-ref-id",version:"1",entityType:n.Property,entityId:uA},gM={like:!1,inferred:!1,id:"gbp-property-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Wo,isList:!1,asType:!1,parent:$M},GM={type:n.GenericReference,id:"gbp-property-parent-ref-id",version:"1",entityType:n.DefinitionEntity,entityId:So},FM={constant:!1,hidden:!1,required:!0,id:uA,type:n.Property,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"GBP",description:null,index:0,dataType:gM,defaultValue:null,implements:null,static:!1,private:!1,abstract:!1,parent:GM},xM={type:n.GenericReference,id:"eur-property-data-type-parent-ref-id",version:"1",entityType:n.Property,entityId:pA},kM={like:!1,inferred:!1,id:"eur-property-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Wo,isList:!1,asType:!1,parent:xM},ZM={type:n.GenericReference,id:"eur-property-parent-ref-id",version:"1",entityType:n.DefinitionEntity,entityId:So},qM={constant:!1,hidden:!1,required:!0,id:pA,type:n.Property,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"EUR",description:null,implements:null,static:!1,index:0,defaultValue:null,dataType:kM,private:!1,abstract:!1,parent:ZM},JM={type:n.GenericReference,id:"bpi-prototype-parent-ref-id",version:"1",entityType:n.Project,entityId:fe},vA={type:n.DefinitionEntity,id:So,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"BPI",description:"The Bitcoin Price Index",properties:[UM,FM,qM],abstract:!1,static:!1,abstractMethods:[],methods:[],extends:[],implements:[],x:0,y:0,parent:JM},SM={type:n.GenericReference,id:"time-property-data-type-parent-ref-id",version:"1",entityType:n.Property,entityId:sA},WM={like:!1,inferred:!1,id:"time-property-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Zn,isList:!1,asType:!1,parent:SM},zM={type:n.GenericReference,id:"time-property-parent-ref-id",version:"1",entityType:n.DefinitionEntity,entityId:ra},YM={constant:!1,hidden:!1,required:!0,type:n.Property,id:sA,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"time",description:null,index:0,defaultValue:null,dataType:WM,implements:null,static:!1,private:!1,abstract:!1,parent:zM},HM={type:n.GenericReference,id:"disclaimer-property-data-type-parent-ref-id",version:"1",entityType:n.Property,entityId:aA},KM={like:!1,inferred:!1,id:"disclaimer-property-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ae,isList:!1,asType:!1,parent:HM},XM={type:n.GenericReference,id:"disclaimer-property-parent-ref-id",version:"1",entityType:n.DefinitionEntity,entityId:ra},QM={constant:!1,hidden:!1,required:!0,type:n.Property,id:aA,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"disclaimer",description:null,index:0,defaultValue:null,dataType:KM,implements:null,static:!1,private:!1,abstract:!1,parent:XM},eN={type:n.GenericReference,id:"chart-name-property-data-type-parent-ref-id",version:"1",entityType:n.Property,entityId:oA},tN={like:!1,inferred:!1,id:"chart-name-property-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ae,isList:!1,asType:!1,parent:eN},iN={type:n.GenericReference,id:"chart-name-property-parent-ref-id",version:"1",entityType:n.DefinitionEntity,entityId:ra},rN={constant:!1,hidden:!1,required:!0,type:n.Property,id:oA,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"chartName",description:null,index:0,defaultValue:null,dataType:tN,implements:null,static:!1,private:!1,abstract:!1,parent:iN},nN={type:n.GenericReference,id:"bpi-property-data-type-parent-ref-id",version:"1",entityType:n.Property,entityId:dA},sN={like:!1,inferred:!1,id:"bpi-property-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:vA,isList:!1,asType:!1,parent:nN},aN={type:n.GenericReference,id:"bpi-property-parent-ref-id",version:"1",entityType:n.DefinitionEntity,entityId:ra},oN={constant:!1,hidden:!1,required:!0,type:n.Property,id:dA,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"bpi",description:null,implements:null,index:0,defaultValue:null,dataType:sN,static:!1,private:!1,abstract:!1,parent:aN},dN={type:n.GenericReference,id:"bitcoin-api-response-parent-ref-id",version:"1",entityType:n.Project,entityId:fe},TA={type:n.DefinitionEntity,id:ra,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Bitcoin API Response type",description:"The type of the data structure response from the Bitcoin API call",properties:[YM,QM,rN,oN],abstract:!1,static:!1,abstractMethods:[],methods:[],extends:[],implements:[],x:0,y:0,parent:dN},lN={type:n.GenericReference,id:"eefa0147-f873-484b-b4f3-9e6493aab183",version:"1",entityType:n.ArgumentDeclaration,entityId:"f2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a"},uN={like:!1,inferred:!1,id:"b9f35112-dcb2-4b7c-8fb9-f196b3fa37f9",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Yt,isList:!1,asType:!1,parent:lN},pN={type:n.GenericReference,id:"128770d6-5e3a-4aff-bca0-ad1f32ebefa8",version:"1",entityType:n.ReturnStatement,entityId:"e4e05975-c277-471a-b869-f0aed316045c"},cN={type:n.GenericReference,id:"0be84bf9-6421-42b9-980f-6a03f30cb809",version:"1",entityType:n.ReturnDeclaration,entityId:"a1ec31f0-25ca-42ac-a4c4-c9ec2255f55b"},fN={like:!1,inferred:!1,id:"43daa02a-237b-4b7c-a6e9-2b8c167f6e22",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Yt,isList:!1,asType:!1,parent:cN},yN={type:n.GenericReference,id:"ad380383-4a47-43da-968e-75a2d603b230",version:"1",entityType:n.ArgumentDeclaration,entityId:"f2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a"},IA={constant:!0,isError:!1,id:"a1ec31f0-25ca-42ac-a4c4-c9ec2255f55b",type:n.ReturnDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"New Company Owner",description:"The new owner of the company",implements:null,defaultValue:null,dataType:fN,readsValue:yN,required:!0,index:0,parent:pN},hN={type:n.GenericReference,id:"4f24dc27-59a1-49bf-abcc-7d72b00926e4",version:"1",entityType:n.FunctionDeclaration,entityId:"d683bfc1-a464-4810-8ec0-1dd8eaa0c3c4"},mN={constant:!0,id:"f2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a",type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"New Company Owner",description:null,implements:null,defaultValue:null,dataType:uN,writesValues:[IA],required:!0,index:0,parent:hN},vN={type:n.GenericReference,id:"5c9a02f0-d2cf-4efc-828e-467f33a74dd3",version:"1",entityType:n.DefinitionEntity,entityId:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d"},TN={type:n.GenericReference,id:"2ff8f3da-e0c5-4f0f-b688-2c051c588786",version:"1",entityType:n.FunctionDeclaration,entityId:"d683bfc1-a464-4810-8ec0-1dd8eaa0c3c4"},IN={type:n.GenericReference,id:"195ae28c-159b-42de-80b1-2ebb8be3619f",version:"1",entityType:n.FunctionDeclaration,entityId:"d683bfc1-a464-4810-8ec0-1dd8eaa0c3c4"},EN={type:n.ReturnStatement,id:"e4e05975-c277-471a-b869-f0aed316045c",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[IA],calledByError:[],calledByEntry:[TN],calledBySuccess:[],throws:null,x:0,y:0,parent:IN},AN={type:n.FunctionDeclaration,id:"d683bfc1-a464-4810-8ec0-1dd8eaa0c3c4",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Change owner of company",description:"Change the owner of the company to a new person",inputs:[mN],calls:[EN],index:0,collapsed:!1,implements:null,private:!1,x:0,y:0,parent:vN},bN={type:n.GenericReference,id:"e691026f-6db0-43ec-93cd-805ae7d713e3",version:"1",entityType:n.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},RN={type:n.GenericReference,id:"29c4e3e0-1b66-4075-b559-45b27c5cf356",version:"1",entityType:n.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},DN={type:n.GenericReference,id:"b1289358-b185-455d-8f58-7791b15cd52a",version:"1",entityType:n.ReturnStatement,entityId:"9690cd1d-ea35-4e83-823d-0c7310265fee"},ON={type:n.GenericReference,id:"d847bb49-8789-4550-bb2d-e2d551993b28",version:"1",entityType:n.VariableDeclaration,entityId:"e5a8b6d0-0e6f-4e9a-9b1e-8a2b5c7f0d5a"},PN={type:n.GenericReference,id:"06535500-c37c-4915-8398-1d4e184fa5e7",version:"1",entityType:n.ReturnDeclaration,entityId:"e7a35277-a0c4-46d5-aca2-bddd0c26e931"},wN={like:!1,inferred:!1,id:"d358dd91-35f7-4095-b728-3fb3c71dbc05",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:rr,asType:!1,isList:!1,parent:PN},Ou={constant:!0,isError:!1,id:"e7a35277-a0c4-46d5-aca2-bddd0c26e931",type:n.ReturnDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Is name registered",description:"Whether the company name is already registered",defaultValue:null,dataType:wN,implements:null,readsValue:ON,required:!0,index:0,parent:DN},CN={type:n.GenericReference,id:"gov-company-registry-return-statement-called-by-success-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:"e5a8b6d0-0e6f-4e9a-9b1e-8a2b5c7f0d5a"},EA={type:n.ReturnStatement,id:"9690cd1d-ea35-4e83-823d-0c7310265fee",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[Ou],calledByError:[],calledByEntry:[],calledBySuccess:[bN,CN],throws:null,x:0,y:0,parent:RN},VN={type:n.GenericReference,id:"b3126414-4c9b-495f-901e-59f5073c8d67",version:"1",entityType:n.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},BN={type:n.GenericReference,id:"35115c48-618b-411b-a290-d746d22fdd10",version:"1",entityType:n.VariableDeclaration,entityId:"83e12ebb-c958-4dee-b750-8ab9930f0f4e"},AA={id:"a0e7b4e5-2f5f-4d4c-8f5c-1e1f1e1a1b1a",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:_l,name:null,description:null,readsValue:BN,defaultValue:null,parent:VN,index:2},_N={type:n.GenericReference,id:"14f46eae-04a5-47d1-9c7f-28fb09b84d1d",version:"1",entityType:n.VariableDeclaration,entityId:"e5a8b6d0-0e6f-4e9a-9b1e-8a2b5c7f0d5a"},MN={like:!1,inferred:!1,id:"990bd5d1-07ea-4253-acc1-d03bedd22a38",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:rr,isList:!1,asType:!1,parent:_N},NN={type:n.GenericReference,id:"e4c3542a-8fb0-4b72-8d6e-3fdff812dd67",version:"1",entityType:n.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},LN={type:n.GenericReference,id:"825f9f60-22a8-4cc6-9055-d7333f8e92f4",version:"1",entityType:n.OutputMap,entityId:"8f30d787-9459-4d8d-98a2-b46fbc2006d5"},jN={type:n.GenericReference,id:"is-company-name-registered-var-called-by-ref",version:"1",entityType:n.Operation,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},bA={constant:!0,required:!0,type:n.VariableDeclaration,id:"e5a8b6d0-0e6f-4e9a-9b1e-8a2b5c7f0d5a",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Is name registered",description:"Whether the company name is registered with the government company registry",defaultValue:null,dataType:MN,readsValue:LN,writesValues:[Ou],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[jN],successCalls:[EA],errorCalls:[],internalCalls:[],x:0,y:0,parent:NN},UN={type:n.GenericReference,id:"1aba021e-48ef-44ac-93d0-eaecac5895da",version:"1",entityType:n.InputMap,entityId:"c3c8d6c1-3e0d-4e6c-9f9c-6b8c7d7f8e9a"},$N={type:n.GenericReference,id:"dffae7e0-0a5c-4c14-8ed2-8d680b4c4c86",version:"1",entityType:n.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},gN={type:n.InputMap,id:"c3c8d6c1-3e0d-4e6c-9f9c-6b8c7d7f8e9a",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:eo,name:null,description:null,readsValue:null,defaultValue:{id:"gov-http-request-url-argument-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:"https://api.publicapis.org/entries",name:L.String,valueAsTypeList:null,valueAsTypeSingle:null,parent:UN,autogeneration:null},index:1,parent:$N},GN={type:n.GenericReference,id:"64ae61f5-ace7-401b-926d-25f852daa60e",version:"1",entityType:n.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},FN={id:"8f30d787-9459-4d8d-98a2-b46fbc2006d5",type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:so,index:2,writesValues:[bA],parent:GN},xN={type:n.GenericReference,id:"62a1a086-caea-4270-9c9f-a1695503e745",version:"1",entityType:n.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},kN={id:"48cf7654-8f3e-4fcd-abc6-740876c310a0",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Qa,name:null,description:null,readsValue:null,index:0,defaultValue:null,parent:xN},ZN={type:n.GenericReference,id:"b0c9c79f-f525-428d-99e7-087d3237ad62",version:"1",entityType:n.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},qN={id:"2c1dc406-4b71-4023-87b2-abede3a111d2",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:null,description:null,declaration:to,index:3,readsValue:null,defaultValue:null,parent:ZN},JN={type:n.GenericReference,id:"9887d6c9-d75b-4c97-b722-e2e60945ea20",version:"1",entityType:n.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},SN={id:"3fef94b2-0278-43ae-b0c5-bc7083f0a111",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:io,name:null,description:null,readsValue:null,index:4,defaultValue:null,parent:JN},WN={type:n.GenericReference,id:"561275b6-5056-45d8-bf7d-8abaa4645593",version:"1",entityType:n.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},zN={id:"3efe20a7-4d63-411e-89ef-63e277f48d66",type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:no,index:1,writesValues:[],parent:WN},YN={type:n.GenericReference,id:"3170ccc2-13de-4bfc-802a-a643be41cd42",version:"1",entityType:n.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},HN={id:"40d34323-d7e6-440a-8016-67c05a3b66dd",type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:ro,index:0,writesValues:[],parent:YN},KN={type:n.GenericReference,id:"7432fa82-f574-4c54-a8fa-4cc4376da3d5",version:"1",entityType:n.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},XN={type:n.GenericReference,id:"8f518502-9eea-462c-8753-8bc3bf3e29a9",version:"1",entityType:n.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},QN={type:n.GenericReference,id:"123b8f18-79d9-4166-a5f6-78ec4b461680",version:"1",entityType:n.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},eL={type:n.GenericReference,id:"e691026f-6db0-43ec-93cd-805ae7d713e3",version:"1",entityType:n.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},tL={type:n.GenericReference,id:"a375eedf-4811-41aa-a998-4897c69c46b9",version:"1",entityType:n.ReturnDeclaration,entityId:"024a9b77-c1cd-4b67-b3ba-1935046b590d"},iL={like:!1,inferred:!1,id:"767cc5ed-20ec-4fd1-89b1-c8d19daa87d1",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:wt,asType:!1,isList:!1,parent:tL},rL={type:n.GenericReference,id:"e64b0c23-129d-4d74-8ab4-eec60e1e5b9b",version:"1",entityType:n.ReturnStatement,entityId:"ea444a9e-6a5b-4138-b81f-0d5618c3c6f3"},RA={constant:!0,isError:!0,id:"024a9b77-c1cd-4b67-b3ba-1935046b590d",type:n.ReturnDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Error",description:"The error that occurred during the HTTP request to the government company registry",dataType:iL,defaultValue:null,implements:null,required:!0,readsValue:null,index:0,parent:rL},nL={type:n.ReturnStatement,id:"ea444a9e-6a5b-4138-b81f-0d5618c3c6f3",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[],calledByError:[eL],calledByEntry:[],calledBySuccess:[],throws:RA,x:0,y:0,parent:QN},sL={type:n.GenericReference,id:"323814fb-9723-49ef-bbba-f882384f18e4",version:"1",entityType:n.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},aL={id:"2f63f7ba-0ff0-458a-92bc-65d1dd4df8c3",type:n.OutputMap,declaration:Ml,defaultValue:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,writesValues:[RA],index:0,parentRelationType:xn.Error,parent:sL},oL={type:n.Operation,id:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Ms,inputs:[kN,gN,AA,qN,SN],outputs:[HN,zN,FN],process:null,calledByError:[],calledByEntry:[KN],calledBySuccess:[],successCalls:[EA,bA],errorCalls:[nL],error:aL,x:0,y:0,parent:XN},dL={type:n.GenericReference,id:"597b8aa2-f6f2-4f7d-bbb9-b703d02de96a",version:"1",entityType:n.InputMap,entityId:"b0e7b4e5-2f5f-4d4c-8f5c-1e1f1e1a1b1a"},lL={type:n.GenericReference,id:"546d99b3-28c4-4186-93a0-ac53c1565e07",version:"1",entityType:n.Operation,entityId:"8f2094c0-e27e-465e-9280-112da0de9019"},uL={id:"b0e7b4e5-2f5f-4d4c-8f5c-1e1f1e1a1b1a",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Ha,name:null,description:null,readsValue:null,defaultValue:{id:"base-query-string-map-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:"?name=",name:L.String,parent:dL,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null},index:0,parent:lL},pL={type:n.GenericReference,id:"6a56fb22-82e1-47c9-bf85-41c4e5986c74",version:"1",entityType:n.Operation,entityId:"8f2094c0-e27e-465e-9280-112da0de9019"},cL={type:n.GenericReference,id:"191c6a6d-9bcb-441e-bf98-de0da96f5f3a",version:"1",entityType:n.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},fL={type:n.GenericReference,id:"d8fcbb76-dae2-40cf-847a-02364721b387",version:"1",entityType:n.VariableDeclaration,entityId:"83e12ebb-c958-4dee-b750-8ab9930f0f4e"},yL={like:!1,inferred:!1,id:"6a70c42b-024a-47c6-8a9d-af52be9c9b9a",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ae,isList:!1,asType:!1,parent:fL},hL={type:n.GenericReference,id:"2282e2c0-ed9e-4c7b-86fc-1a364fa0fdb8",version:"1",entityType:n.OutputMap,entityId:"f6c22cf8-63e4-4b2d-b649-b5ab884cf9a5"},mL={type:n.GenericReference,id:"assembled-query-string-called-by-ref",version:"1",entityType:n.Operation,entityId:"8f2094c0-e27e-465e-9280-112da0de9019"},DA={constant:!0,required:!0,type:n.VariableDeclaration,id:"83e12ebb-c958-4dee-b750-8ab9930f0f4e",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Query string",description:"The final, assembled query string that will be used in the HTTP request to the government company registry",defaultValue:null,dataType:yL,readsValue:hL,writesValues:[AA],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[mL],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:cL},vL={id:"f6c22cf8-63e4-4b2d-b649-b5ab884cf9a5",type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,writesValues:[DA],declaration:Bs,index:0,parent:pL},TL={type:n.GenericReference,id:"a1b48e7c-0301-4747-b4dd-b5af79956f7f",version:"1",entityType:n.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},IL={type:n.GenericReference,id:"487c9235-be95-4c96-b9b5-2714b374a277",version:"1",entityType:n.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},EL={type:n.GenericReference,id:"f6471f4f-b269-46fa-80ec-885e87a449c2",entityId:"a4106e8e-ec4f-4633-a636-09ae73135f69",version:"1",entityType:n.ArgumentDeclaration},AL={type:n.GenericReference,id:"62b4afb0-6c21-4b0f-abd3-cebef7b17c28",version:"1",entityType:n.Operation,entityId:"8f2094c0-e27e-465e-9280-112da0de9019"},OA={id:"08f36e2b-bad2-425c-8129-93560bec8488",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.InputMap,declaration:Ka,name:null,description:null,readsValue:EL,defaultValue:null,index:1,parent:AL},bL={type:n.Operation,id:"8f2094c0-e27e-465e-9280-112da0de9019",declaration:_s,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,inputs:[OA,uL],outputs:[vL],process:null,calledByError:[],calledByEntry:[TL],calledBySuccess:[],successCalls:[DA],errorCalls:[],error:null,x:0,y:0,parent:IL},RL={type:n.GenericReference,id:"c2e0e9b4-aa46-4974-bf8a-886b737b12fb",version:"1",entityType:n.ArgumentDeclaration,entityId:"a4106e8e-ec4f-4633-a636-09ae73135f69"},DL={like:!1,inferred:!1,id:"a4279518-3bf3-44b7-a2ac-65142ca37f1c",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ae,asType:!1,isList:!1,parent:RL},OL={type:n.GenericReference,id:"dc273f24-164b-4943-82f9-589b237141e2",version:"1",entityType:n.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},PA={constant:!0,id:"a4106e8e-ec4f-4633-a636-09ae73135f69",type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Company Name to check",description:"The name of the company to check in the government registry",dataType:DL,defaultValue:null,implements:null,required:!1,writesValues:[OA],index:0,parent:OL},PL={type:n.GenericReference,id:"2178a10c-1cc0-4dad-97c3-0941be6c9738",version:"1",entityType:n.Project,entityId:fe},wA={type:n.FunctionDeclaration,id:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Check Gov Company Registry availability",description:"Check whether the company name is already registered in the government company registry, or it is available for a new company to use.",inputs:[PA],calls:[bL,oL],implements:null,index:null,collapsed:!1,private:!1,x:0,y:0,parent:PL},wL={type:n.GenericReference,id:"4d66c53c-f0f7-496a-9955-1e6c8533c5e0",version:"1",entityType:n.Condition,entityId:"a8f4b0f2-5e5e-4e8f-9d7b-1b5b9b6e9a4b"},CL={type:n.GenericReference,id:"6fa0c8e0-d104-4b4d-a035-d4f6e0c49f09",version:"1",entityType:n.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},VL={type:n.GenericReference,id:"146408d5-5336-4877-941a-777dd5871926",version:"1",entityType:n.ArgumentDeclaration,entityId:"c6cf620c-1eee-4919-8578-1a0b6c088551"},BL={type:n.GenericReference,id:"34ae8f8c-548d-4654-984a-6f36affdaf49",version:"1",entityType:n.FunctionCall,entityId:"d2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a"},CA={id:"69b1215d-9ebf-4274-b9cb-d4a5888f5122",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.InputMap,declaration:PA,name:null,description:null,readsValue:VL,defaultValue:null,index:0,parent:BL},_L={type:n.GenericReference,id:"07540a94-dda1-40b3-8452-f209bdc87b88",version:"1",entityType:n.FunctionCall,entityId:"d2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a"},ML={type:n.GenericReference,id:"eaddf12a-a995-429e-90a0-13bf06efeb28",version:"1",entityType:n.VariableDeclaration,entityId:"faaf3bf6-917d-40d7-aee6-5164f6646c4b"},NL={like:!1,inferred:!1,id:"7fdaf943-3ffb-48e0-b766-b86cc24090cf",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:rr,asType:!1,isList:!1,parent:ML},LL={type:n.GenericReference,id:"030fb5c5-af4d-4c85-8cf0-e99edd50d2bd",version:"1",entityType:n.OutputMap,entityId:"c1ec31f0-25ca-42ac-a4c4-c9ec2255f55b"},jL={type:n.GenericReference,id:"a8b618e9-c68c-48c1-8bd6-ef47c87d699e",version:"1",entityType:n.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},UL={type:n.GenericReference,id:"is-company-name-valid-var-called-by-ref",version:"1",entityType:n.FunctionCall,entityId:"d2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a"},VA={constant:!0,required:!0,type:n.VariableDeclaration,id:"faaf3bf6-917d-40d7-aee6-5164f6646c4b",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Is name valid",description:"Whether the company name is valid",defaultValue:null,dataType:NL,readsValue:LL,writesValues:[],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[UL],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:jL},$L={id:"c1ec31f0-25ca-42ac-a4c4-c9ec2255f55b",type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Ou,defaultValue:null,writesValues:[VA],index:0,parent:_L},gL={type:n.FunctionCall,id:"d2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:wA,inputs:[CA],outputs:[$L],calledByError:[],calledByEntry:[],process:null,calledBySuccess:[wL],successCalls:[VA],errorCalls:[],error:null,x:0,y:0,parent:CL},GL={type:n.GenericReference,id:"9d0b87b4-bfed-4e02-9e84-6831c21feae2",version:"1",entityType:n.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},FL={type:n.GenericReference,id:"74345f4f-e80d-48be-adff-d12fcea25bec",version:"1",entityType:n.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},xL={type:n.GenericReference,id:"b39279ea-969a-4efb-a9ec-353bfd13db65",version:"1",entityType:n.ArgumentDeclaration,entityId:"c6cf620c-1eee-4919-8578-1a0b6c088551"},kL={type:n.GenericReference,id:"549db613-f225-4c5b-9634-7d096717f0ff",version:"1",entityType:n.Condition,entityId:"a8f4b0f2-5e5e-4e8f-9d7b-1b5b9b6e9a4b"},BA={id:"358e242c-7448-442e-ab8b-fd7fa119ea71",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.InputMap,declaration:mn.inputs[0],name:null,description:null,readsValue:xL,defaultValue:null,index:0,parent:kL},ZL={type:n.Condition,id:"a8f4b0f2-5e5e-4e8f-9d7b-1b5b9b6e9a4b",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:mn,inputs:[BA],calledByError:[],calledByEntry:[GL],calledBySuccess:[],successCalls:[gL],errorCalls:[],x:0,y:0,parent:FL},qL={type:n.GenericReference,id:"43ba1e25-f805-488f-8ae8-c58bb6215b2f",version:"1",entityType:n.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},JL={type:n.GenericReference,id:"eb091bed-507f-4a1e-93b5-7cd2fccfe002",version:"1",entityType:n.VariableDeclaration,entityId:"9c928995-0dd5-4f97-9962-56b343bc8a45"},SL={like:!1,inferred:!1,id:"d64152ea-831f-4426-9506-a39bfa170513",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:as,asType:!1,isList:!1,parent:JL},WL={type:n.GenericReference,id:"7e79c29f-f7bd-441a-a77e-c627604dae94",version:"1",entityType:n.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},zL={type:n.GenericReference,id:"8995ce5f-d5cf-4341-a8b1-5c046cc78b89",version:"1",entityType:n.ArgumentDeclaration,entityId:"7ed0f7bb-2df0-44e2-b0b3-0709dcca8071"},YL={type:n.GenericReference,id:"new-company-bank-account-var-decl-1-called-by-ref",version:"1",entityType:n.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},_A={constant:!0,required:!0,type:n.VariableDeclaration,id:"9c928995-0dd5-4f97-9962-56b343bc8a45",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"New bank account",description:"The new entity value representing the new bank account of the company",defaultValue:null,dataType:SL,readsValue:zL,writesValues:[],inputs:[],outputs:[],calledByError:[],calledByEntry:[YL],calledBySuccess:[],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:WL},HL={type:n.GenericReference,id:"9a4887bf-d50d-43e4-bdd5-a5262f65f04b",version:"1",entityType:n.ArgumentDeclaration,entityId:"7ed0f7bb-2df0-44e2-b0b3-0709dcca8071"},KL={like:!1,inferred:!1,id:"ae148c06-3143-49e9-9614-c3aca3f6fa7b",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:as,asType:!1,isList:!1,parent:HL},XL={constant:!0,id:"7ed0f7bb-2df0-44e2-b0b3-0709dcca8071",type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"New bank account",description:"The new bank account of the company",dataType:KL,implements:null,defaultValue:null,required:!0,index:1,writesValues:[_A],parent:qL},QL={type:n.GenericReference,id:"caec9cf8-3133-48d4-a390-114fa71b2933",version:"1",entityType:n.DefinitionEntity,entityId:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d"},ej={type:n.GenericReference,id:"cebcbad8-ca87-4c4b-be8a-312293d49892",version:"1",entityType:n.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},tj={type:n.GenericReference,id:"7b8ccfe5-f9cd-4776-a19b-80c689bbe3df",version:"1",entityType:n.ArgumentDeclaration,entityId:"c6cf620c-1eee-4919-8578-1a0b6c088551"},ij={like:!1,inferred:!1,id:"2a6b4703-ac8d-4d25-8abd-48a115577fec",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ae,asType:!1,isList:!1,parent:tj},rj={constant:!0,id:"c6cf620c-1eee-4919-8578-1a0b6c088551",type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"New company name",description:null,dataType:ij,implements:null,defaultValue:null,required:!0,index:0,writesValues:[BA,CA],parent:ej},nj={type:n.FunctionDeclaration,id:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Company changed event",description:"The event that is triggered when a company is changed",collapsed:!1,inputs:[rj,XL],calls:[ZL,_A],index:1,private:!1,implements:null,x:0,y:0,parent:QL},sj={type:n.GenericReference,id:"employee-manager-property-data-type-entity-ref-id",version:"1",entityType:n.DefinitionEntity,entityId:"employee-entity-id"},aj={type:n.GenericReference,id:"employee-manager-property-data-type-parent-ref-id",version:"1",entityType:n.Property,entityId:"employee-manager-property-id"},oj={like:!1,inferred:!1,id:"employee-manager-property-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:sj,isList:!1,asType:!1,parent:aj},dj={type:n.GenericReference,id:"employee-manager-property-parent-ref-id",version:"1",entityType:n.DefinitionEntity,entityId:"employee-entity-id"},lj={constant:!1,required:!0,hidden:!1,type:n.Property,id:"employee-manager-property-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Manager",description:"The manager of the employee",index:0,implements:null,private:!1,static:!1,defaultValue:null,dataType:oj,abstract:!1,parent:dj},uj={type:n.GenericReference,id:"employee-start-date-property-data-type-parent-ref-id",version:"1",entityType:n.Property,entityId:"employee-start-date-property-id"},pj={like:!1,inferred:!1,id:"employee-start-date-property-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Gi,isList:!1,asType:!1,parent:uj},cj={type:n.GenericReference,id:"employee-start-date-property-parent-ref-id",version:"1",entityType:n.DefinitionEntity,entityId:"employee-entity-id"},fj={constant:!1,hidden:!1,required:!0,type:n.Property,id:"employee-start-date-property-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Start date",description:"The date the employee started working in the company",index:0,private:!1,static:!1,defaultValue:null,implements:null,dataType:pj,abstract:!1,parent:cj},yj={type:n.GenericReference,id:"employee-department-property-ref-id",version:"1",entityType:n.Property,entityId:"employee-department-property-id"},hj={like:!1,inferred:!1,id:"employee-department-property-data-type-id",type:n.DataType,parentRelationType:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:nr,isList:!1,asType:!1,options:["Human Resources","Finance","IT","Sales","Marketing","Customer Service","Logistics","Product"],parent:yj},mj={type:n.GenericReference,id:"employee-department-property-parent-ref-id",version:"1",entityType:n.DefinitionEntity,entityId:"employee-entity-id"},vj={constant:!1,hidden:!1,required:!0,type:n.Property,id:"employee-department-property-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Department",description:"The department the employee works in, from a list of departments in the company",index:0,defaultValue:null,implements:null,static:!1,private:!1,dataType:hj,abstract:!1,parent:mj},Tj={type:n.GenericReference,id:"employee-prototype-parent-ref-id",version:"1",entityType:n.Project,entityId:fe},Di={type:n.DefinitionEntity,id:"employee-entity-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Employee",description:"A entity that represents an employee in the company",properties:[vj,fj,lj],abstract:!1,static:!1,abstractMethods:[],methods:[],implements:[],extends:[Yt],x:0,y:0,parent:Tj},Ij={type:n.GenericReference,id:"dec8fbfe-9124-41fd-9f1c-5b2f07cfd6ba",version:"1",entityType:n.Property,entityId:"4f52d044-f3dd-4bdf-927e-637c3b92e8bd"},Ej={like:!1,inferred:!1,id:"bc0b8979-6c43-4d47-a712-6742b89e3c00",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ae,isList:!1,asType:!1,parent:Ij},Aj={type:n.GenericReference,id:"4f8c0a05-466e-4672-b4c4-6bd408c0be9a",version:"1",entityType:n.DefinitionEntity,entityId:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d"},bj={constant:!1,hidden:!1,required:!0,type:n.Property,id:"4f52d044-f3dd-4bdf-927e-637c3b92e8bd",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Company Name",private:!1,static:!1,description:"The name of the company",index:0,defaultValue:null,implements:null,dataType:Ej,abstract:!1,parent:Aj},Rj={type:n.GenericReference,id:"95173fe0-a6e6-443c-94f3-f7c5cf171fcf",version:"1",entityType:n.Property,entityId:"80c86e1b-caca-4ba5-9b1f-38f72d10e4a3"},Dj={like:!1,inferred:!1,id:"ddbb6f5c-0cf4-41fb-83b3-b6c47c0e338d",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:as,isList:!1,asType:!1,parent:Rj},Oj={type:n.GenericReference,id:"6a9a0b72-a05d-4169-b3f3-5afb01e8d0df",version:"1",entityType:n.DefinitionEntity,entityId:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d"},Pu={constant:!1,hidden:!1,required:!0,type:n.Property,id:"80c86e1b-caca-4ba5-9b1f-38f72d10e4a3",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Bank account",description:"The bank account of the company",index:1,implements:null,static:!1,private:!1,defaultValue:null,dataType:Dj,abstract:!1,parent:Oj},Pj={type:n.GenericReference,id:"62892cc6-d227-4088-90d3-ae7c15ed4af4",version:"1",entityType:n.Property,entityId:"19a31727-1fba-40a5-be25-18e0f149d5cb"},wj={like:!1,inferred:!1,id:"1f7629df-dc29-4c89-8369-c6d043e97a9e",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Yt,isList:!1,asType:!1,parent:Pj},Cj={type:n.GenericReference,id:"89384206-fd5a-4f0a-849c-f777473e5773",version:"1",entityType:n.DefinitionEntity,entityId:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d"},Vj={constant:!1,hidden:!1,required:!0,type:n.Property,id:"19a31727-1fba-40a5-be25-18e0f149d5cb",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Company Owner",description:"The person that owns the company",index:2,static:!1,implements:null,defaultValue:null,dataType:wj,private:!0,abstract:!1,parent:Cj},Bj={type:n.GenericReference,id:"4d2ffb6c-5f38-436e-8339-fb9878ac2b5e",version:"1",entityType:n.Property,entityId:"f8310850-a87e-405c-b182-4f1d5fa49240"},_j={like:!1,inferred:!1,id:"ad44250b-40c2-48f7-a480-381fa938f562",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Di,isList:!0,asType:!1,parent:Bj},Mj={type:n.GenericReference,id:"aa5d4eee-6fac-4e72-bf21-9c8750024541",version:"1",entityType:n.DefinitionEntity,entityId:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d"},Nj={constant:!1,hidden:!1,required:!0,type:n.Property,id:"f8310850-a87e-405c-b182-4f1d5fa49240",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Employees",description:null,index:3,defaultValue:null,dataType:_j,implements:null,private:!0,static:!1,abstract:!1,parent:Mj},Lj={id:"company-prototype-primary-key-property-data-type-ref-id",type:n.GenericReference,entityId:"company-prototype-primary-key-property-id",version:"1",entityType:n.Property},jj={id:"company-prototype-primary-key-property-ref-id",type:n.GenericReference,entityId:"company-prototype-primary-key-property-id",version:"1",entityType:n.Property},Uj={like:!1,inferred:!1,id:"company-prototype-primary-key-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:sr,asType:!1,parent:jj},$j={id:"company-prototype-primary-key-property-parent-ref-id",type:n.GenericReference,entityId:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d",version:"1",entityType:n.DefinitionEntity},gj={constant:!1,hidden:!1,required:!0,id:"company-prototype-primary-key-property-id",name:"Identifier",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,implements:Hn,static:!1,index:4,defaultValue:{id:"company-prototype-primary-key-property-data-type-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.UUID,value:null,parent:Lj,autogeneration:{type:vt.Unique,rangeStart:null,rangeEnd:null},valueAsTypeList:null,valueAsTypeSingle:null},dataType:Uj,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:$j},Gj={type:n.GenericReference,id:"e3c03b6b-2ea0-4d99-865d-5e6a348672d0",version:"1",entityType:n.Project,entityId:fe},Oi={type:n.DefinitionEntity,id:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Company",description:null,properties:[bj,Pu,Vj,Nj,gj],static:!1,abstract:!1,abstractMethods:[],methods:[AN,nj],extends:[],implements:[_t,mi],x:0,y:0,parent:Gj},Fj={type:n.GenericReference,id:"ffcad334-138d-4b67-8fb3-5f0e6f5fefbd",version:"1",entityType:n.Project,entityId:fe},wu={type:n.FunctionDeclaration,id:"0f89260c-8c58-4639-8629-d9ea5ab40ba7",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Show popup",description:null,inputs:[],calls:[],implements:null,collapsed:!1,private:!1,index:null,x:0,y:0,parent:Fj};n.GenericReference,n.DataType;const xj={id:"cron-job-entity-expression-property-ref-id",type:n.GenericReference,entityId:"cron-job-entity-expression-property-id",version:"1",entityType:n.Property},kj={like:!1,inferred:!1,id:"cron-job-entity-expression-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ae,asType:!1,parent:xj},Zj={id:"cron-job-entity-ref-id",type:n.GenericReference,entityId:"cron-job-entity-id",version:"1",entityType:n.DefinitionEntity},qj={constant:!1,hidden:!1,required:!0,id:"cron-job-entity-expression-property-id",type:n.Property,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Cron expression",description:"The cron expression that defines when the cron job should be triggered",defaultValue:null,dataType:kj,implements:null,static:!0,private:!1,abstract:!1,index:0,parent:Zj},Jj={id:"cron-job-entity-trigger-show-popup-func-call-called-by-ref-one-id",type:n.GenericReference,entityId:"cron-job-entity-trigger-func-decl-id",version:"1",entityType:n.FunctionDeclaration},Sj={id:"cron-job-entity-trigger-show-popup-func-call-parent-ref-id",type:n.GenericReference,entityId:"cron-job-entity-trigger-func-decl-id",version:"1",entityType:n.FunctionDeclaration},Wj={id:"cron-job-entity-trigger-show-popup-func-call-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.FunctionCall,declaration:wu,inputs:[],outputs:[],process:null,successCalls:[],calledByError:[],calledByEntry:[Jj],calledBySuccess:[],errorCalls:[],error:null,x:0,y:0,parent:Sj},zj={id:"cron-job-entity-trigger-func-decl-parent-ref-id",type:n.GenericReference,entityId:"cron-job-entity-id",version:"1",entityType:n.DefinitionEntity},Yj={id:"cron-job-entity-trigger-func-decl-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.FunctionDeclaration,name:"Scheduled trigger",description:"The function that is called when the cron job is triggered",inputs:[],private:!1,implements:tu,calls:[Wj],collapsed:!1,index:0,x:0,y:0,parent:zj},Hj={id:"cron-job-entity-parent-ref-id",type:n.GenericReference,entityId:fe,version:"1",entityType:n.Project},Kj={id:"cron-job-entity-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DefinitionEntity,name:"Run at 12pm on Christmas day",description:"A cron job that runs at 12pm on Christmas day",properties:[qj],static:!0,abstract:!1,abstractMethods:[],extends:[],implements:[mo],methods:[Yj],x:0,y:0,parent:Hj},Xj={type:n.GenericReference,id:"52dbd85c-48b1-462a-8205-2437d6fb1cb4",version:"1",entityType:n.Project,entityId:fe},Qj={type:n.DefinitionEntity,id:"6f0908c2-09c6-4a8b-8f43-d2467fe6fb39",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Get bank all bank accounts",description:null,properties:[],static:!0,abstract:!1,abstractMethods:[],methods:[],extends:[],implements:[ni],x:0,y:0,parent:Xj},zo="f558fbf8-67de-4545-9804-6ae621e0b2d4",eU={id:"getCompanyByIdEndpointPathParamsVariableDataTypeRef",type:n.GenericReference,version:"1",entityType:n.ArgumentDeclaration,entityId:"getCompanyByIdEndpointPathParamsArgumentDeclaration"},tU={id:"getCompanyByIdEndpointPathParamsArgumentDeclarationRef",type:n.GenericReference,version:"1",entityType:n.ArgumentDeclaration,entityId:"getCompanyByIdEndpointPathParamsArgumentDeclaration"},iU={like:!1,inferred:!1,id:"getCompanyByIdEndpointPathParamsVariableDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!0,entity:ae,asType:!1,parent:tU},rU={id:"getCompanyByIdEndpointReachedEntityEventRef",type:n.GenericReference,version:"1",entityType:n.FunctionDeclaration,entityId:"getCompanyByIdEndpointReachedEntityEvent"},nU={id:"getCompanyByIdEndpointRequestHeadersVariableDataTypeRef",type:n.GenericReference,version:"1",entityType:n.ArgumentDeclaration,entityId:"getCompanyByIdEndpointRequestHeadersArgumentDeclaration"},sU={id:"getCompanyByIdEndpointRequestHeadersArgumentDeclarationRef",type:n.GenericReference,version:"1",entityType:n.ArgumentDeclaration,entityId:"getCompanyByIdEndpointRequestHeadersArgumentDeclaration"},aU={like:!1,inferred:!1,id:"getCompanyByIdEndpointRequestHeadersVariableDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!0,entity:wt,asType:!1,parent:sU},oU={constant:!0,id:"getCompanyByIdEndpointRequestHeadersArgumentDeclaration",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:"A set of any properties, with names and value that transmit metadata about the request.",type:n.ArgumentDeclaration,writesValues:[],name:"Request headers",defaultValue:{id:"getCompanyByIdEndpointRequestHeadersVariableDataTypeDefaultValueId",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.KeyValue,value:{},parent:nU,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},dataType:aU,implements:ql,required:!0,index:0,parent:rU},dU={id:"getCompanyByIdEndpointReachedEntityEventRefTwo",type:n.GenericReference,version:"1",entityType:n.FunctionDeclaration,entityId:"getCompanyByIdEndpointReachedEntityEvent"},lU={constant:!0,id:"getCompanyByIdEndpointPathParamsArgumentDeclaration",type:n.ArgumentDeclaration,description:"A standarized text, without spaces that is added at the end of the domain and routes the request to a specific resource within the target server. For example: /api/users/123, /api/users/123/:name, /api/users/123/:name/:age.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Path parameters",writesValues:[],defaultValue:{id:"getCompanyByIdEndpointPathParamsVariableDataTypeDefaultValueId",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.KeyValue,value:{},parent:eU,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},dataType:iU,implements:Jl,required:!0,index:1,parent:dU},uU={id:"getCompanyByIdEndpointReachedEntityEventRefThree",type:n.GenericReference,version:"1",entityType:n.FunctionDeclaration,entityId:"getCompanyByIdEndpointReachedEntityEvent"},pU={id:"getCompanyByIdEndpointRequestQueryParamsVariableDataTypeRef",type:n.GenericReference,version:"1",entityType:n.ArgumentDeclaration,entityId:"getCompanyByIdEndpointRequestQueryParamsArgumentDeclaration"},cU={id:"getCompanyByIdEndpointRequestQueryParamsArgumentDeclarationRef",type:n.GenericReference,version:"1",entityType:n.ArgumentDeclaration,entityId:"getCompanyByIdEndpointRequestQueryParamsArgumentDeclaration"},fU={like:!1,inferred:!1,id:"getCompanyByIdEndpointRequestQueryParamsVariableDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!0,asType:!1,entity:ae,parent:cU},yU={constant:!0,id:"getCompanyByIdEndpointRequestQueryParamsArgumentDeclaration",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:"A text with standarized format, without spaces that is added at the end of the URL path, after the ? character. It contains data that might be used to process the request. For example: /api/users?name=John&age=30",type:n.ArgumentDeclaration,writesValues:[],name:"Request query params",defaultValue:{id:"getCompanyByIdEndpointRequestQueryParamsVariableDataTypeDefaultValueId",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.KeyValue,value:{},parent:pU,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},dataType:fU,implements:Sl,required:!0,index:2,parent:uU},hU={id:"getCompanyByIdEndpointReachedEntityEventRefFour",type:n.GenericReference,version:"1",entityType:n.FunctionDeclaration,entityId:"getCompanyByIdEndpointReachedEntityEvent"},mU={id:"getCompanyByIdEndpointRequestBodyArgumentDeclarationRef",type:n.GenericReference,version:"1",entityType:n.ArgumentDeclaration,entityId:"getCompanyByIdEndpointRequestBodyArgumentDeclaration"},vU={like:!1,inferred:!1,id:"getCompanyByIdEndpointRequestBodyVariableDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,asType:!1,entity:wt,parent:mU},TU={constant:!0,id:"getCompanyByIdEndpointRequestBodyArgumentDeclaration",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:"The main data payload of the request.",type:n.ArgumentDeclaration,writesValues:[],name:"Request body",defaultValue:null,dataType:vU,implements:Wl,index:3,required:!0,parent:hU},IU={id:"getCompanyByIdEndpointResponseCodeReturnDeclarationRef",type:n.GenericReference,version:"1",entityType:n.ReturnDeclaration,entityId:"getCompanyByIdEndpointResponseCodeReturnDeclaration"},EU={like:!1,inferred:!1,id:"9ba575b0-6f8e-436d-a3de-3b843622aa17",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,asType:!1,isList:!1,parent:IU},AU={id:"getCompanyByIdEndpointReturnStatementRef",type:n.GenericReference,version:"1",entityType:n.ReturnStatement,entityId:"getCompanyByIdEndpointReturnStatement"},bU={constant:!0,isError:!1,id:"getCompanyByIdEndpointResponseCodeReturnDeclaration",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:"A standarized number that represents the status of the response. 200 for OK, 404 for not found, 500 for server error, etc.",type:n.ReturnDeclaration,name:"Response code",defaultValue:null,dataType:EU,implements:zl,readsValue:null,required:!0,index:0,parent:AU},RU={id:"getCompanyByIdEndpointResponseHeadersDataTypeRef",type:n.GenericReference,version:"1",entityType:n.ReturnDeclaration,entityId:"getCompanyByIdEndpointResponseHeadersReturnDeclaration"},DU={id:"getCompanyByIdEndpointResponseHeadersReturnDeclarationRef",type:n.GenericReference,version:"1",entityType:n.ReturnDeclaration,entityId:"getCompanyByIdEndpointResponseHeadersReturnDeclaration"},OU={like:!1,inferred:!1,id:"getCompanyByIdEndpointResponseHeadersDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!0,entity:wt,asType:!1,parent:DU},PU={id:"getCompanyByIdEndpointReturnStatementRefTwo",type:n.GenericReference,version:"1",entityType:n.ReturnStatement,entityId:"getCompanyByIdEndpointReturnStatement"},wU={constant:!0,isError:!1,id:"getCompanyByIdEndpointResponseHeadersReturnDeclaration",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:"A set of any properties, with names and value that transmit metadata about the response.",type:n.ReturnDeclaration,name:"Response headers",defaultValue:{id:"getCompanyByIdEndpointResponseHeadersDataTypeDefaultValueId",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.KeyValue,value:{},parent:RU,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},dataType:OU,implements:Yl,readsValue:null,required:!0,index:1,parent:PU},CU={id:"getCompanyByIdEndpointResponseBodyReturnDeclarationRef",type:n.GenericReference,version:"1",entityType:n.ReturnDeclaration,entityId:"getCompanyByIdEndpointResponseBodyReturnDeclaration"},VU={like:!1,inferred:!1,id:"getCompanyByIdEndpointResponseBodyDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,asType:!1,entity:wt,parent:CU},BU={id:"getCompanyByIdEndpointReturnStatementRefThree",type:n.GenericReference,version:"1",entityType:n.ReturnStatement,entityId:"getCompanyByIdEndpointReturnStatement"},_U={constant:!0,isError:!1,id:"getCompanyByIdEndpointResponseBodyReturnDeclaration",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:"The main data payload of the response.",type:n.ReturnDeclaration,name:"Response body",implements:Hl,defaultValue:null,dataType:VU,readsValue:null,required:!0,index:2,parent:BU},MU={id:"getCompanyByIdEndpointReturnStatementCallerRef",type:n.GenericReference,entityId:"getCompanyByIdEndpointReachedEntityEvent",version:"1",entityType:n.FunctionDeclaration},NU={id:"getCompanyByIdEndpointReachedEntityEventRefFive",type:n.GenericReference,version:"1",entityType:n.FunctionDeclaration,entityId:"getCompanyByIdEndpointReachedEntityEvent"};n.ReturnStatement;const LU={id:"endpointBuiltInBaseEntityRefFour",type:n.GenericReference,version:"1",entityType:n.BuiltInBaseEntity,entityId:zo},jU={id:"getCompanyByIdEndpointReachedEntityEvent",name:"Endpoint reached",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.FunctionDeclaration,inputs:[oU,lU,yU,TU],description:"Fired when the endpoint is reached.",calls:[],collapsed:!1,implements:Kl,index:0,private:!1,x:0,y:0,parent:LU},UU={id:"getCompanyByIdEndpointPathPropertyDataTypeRef",type:n.GenericReference,version:"1",entityType:n.Property,entityId:"getCompanyByIdEndpointPathProperty"},$U={id:"getCompanyByIdEndpointPathPropertyRef",type:n.GenericReference,version:"1",entityType:n.Property,entityId:"getCompanyByIdEndpointPathProperty"},gU={like:!1,inferred:!1,id:"getCompanyByIdEndpointPathPropertyDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ae,asType:!1,parent:$U},GU={id:"getCompanyByIdEndpointBaseEntityRefTwo",type:n.GenericReference,version:"1",entityType:n.DefinitionEntity,entityId:zo},FU={constant:!1,id:"getCompanyByIdEndpointPathProperty",hidden:!1,required:!0,name:"Path",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,static:!0,implements:kl,defaultValue:{id:"getCompanyByIdEndpointPathPropertyDataTypeDefaultValueId",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.String,value:"/company/{id}",parent:UU,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null},dataType:gU,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:GU},xU={id:"getCompanyByIdEndpointMethodPropertyDataTypeRef",type:n.GenericReference,version:"1",entityType:n.Property,entityId:"getCompanyByIdEndpointMethodProperty"},kU={id:"getCompanyByIdEndpointMethodPropertyRef",type:n.GenericReference,version:"1",entityType:n.Property,entityId:"getCompanyByIdEndpointMethodProperty"},ZU={like:!1,inferred:!1,id:"getCompanyByIdEndpointMethodPropertyDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,entity:nr,isList:!0,asType:!1,options:["GET","POST","PUT","DELETE","PATCH","OPTIONS","HEAD","TRACE","CONNECT","CUSTOM"],parent:kU},qU={id:"getCompanyByIdEndpointBaseEntityRefThree",type:n.GenericReference,version:"1",entityType:n.DefinitionEntity,entityId:zo},JU={constant:!1,hidden:!1,required:!0,id:"getCompanyByIdEndpointMethodProperty",name:"Method",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,static:!0,implements:Zl,index:0,defaultValue:{id:"getCompanyByIdEndpointMethodPropertyDataTypeDefaultValueId",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:"GET",name:L.Enum,parent:xU,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null},dataType:ZU,description:null,parent:qU},SU={type:n.GenericReference,id:"6a905153-8aa8-4424-bd7b-6415731a2725",version:"1",entityType:n.Project,entityId:fe},WU={type:n.DefinitionEntity,id:zo,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Get given company data by id",description:null,properties:[FU,JU],methods:[jU],static:!0,abstract:!1,abstractMethods:[],extends:[],implements:[ni],x:0,y:0,parent:SU},zU={id:"plant-prototype-database-property-ref-id",type:n.GenericReference,entityId:"plant-prototype-database-property-id",version:"1",entityType:n.Property},YU={id:"plant-prototype-database-property-data-type-default-value-parent-ref-id",type:n.GenericReference,entityId:"plant-prototype-database-property-id",version:"1",entityType:n.Property},HU={like:!1,inferred:!1,id:"plant-prototype-database-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:Dt,asType:!1,parent:zU},KU={id:"plant-prototype-database-property-parent-ref-id",type:n.GenericReference,entityId:"plant-entity-id",version:"1",entityType:n.DefinitionEntity},XU={constant:!1,hidden:!1,required:!0,id:"plant-prototype-database-property-id",name:"Database",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,implements:Yn,static:!0,index:0,defaultValue:{id:"plant-prototype-database-property-data-type-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:null,name:L.EntityTemplate,valueAsTypeList:null,valueAsTypeSingle:Au,autogeneration:null,parent:YU},dataType:HU,description:"The database that the entity belongs to.",parent:KU},QU={type:n.GenericReference,id:"plant-name-property-ref-id",version:"1",entityType:n.Property,entityId:"plant-name-property-id"},e2={like:!1,inferred:!1,id:"plant-name-property-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ae,asType:!1,isList:!1,parent:QU},t2={type:n.GenericReference,id:"animal-name-property-parent-ref-id",version:"1",entityType:n.DefinitionEntity,entityId:"plant-entity-id"},i2={constant:!1,hidden:!1,required:!0,type:n.Property,id:"plant-name-property-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Name",description:"The name of the plant",defaultValue:null,implements:null,static:!1,private:!1,index:0,dataType:e2,abstract:!1,parent:t2},r2={type:n.GenericReference,id:"plant-prototype-parent-ref-id",version:"1",entityType:n.Project,entityId:fe},n2={type:n.DefinitionEntity,id:"plant-entity-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Plant",description:"A living creature that is not an animal",abstract:!1,static:!1,abstractMethods:[],properties:[XU,i2],methods:[],extends:[],implements:[_t],x:0,y:0,parent:r2},s2={id:"product-prototype-database-property-ref-id",type:n.GenericReference,entityId:"product-prototype-database-property-id",version:"1",entityType:n.Property},a2={id:"product-prototype-database-property-data-type-default-value-parent-ref-id",type:n.GenericReference,entityId:"product-prototype-database-property-id",version:"1",entityType:n.Property},o2={like:!1,inferred:!1,id:"product-prototype-database-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:Dt,asType:!1,parent:s2},d2={id:"product-prototype-database-property-parent-ref-id",type:n.GenericReference,entityId:"a2d0ec83-72ce-4f54-b059-a39e018fa86c",version:"1",entityType:n.DefinitionEntity},l2={constant:!1,hidden:!1,required:!0,id:"product-prototype-database-property-id",name:"Database",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,implements:Yn,static:!0,index:0,defaultValue:{id:"product-prototype-database-property-data-type-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:null,name:L.EntityTemplate,valueAsTypeList:null,valueAsTypeSingle:bu,autogeneration:null,parent:a2},dataType:o2,description:"The database that the entity belongs to.",parent:d2},u2={type:n.GenericReference,id:"13a4045e-dcb0-4159-8d33-10a646078b5a",version:"1",entityType:n.Property,entityId:"d519c26a-15b8-40d8-ad09-13fa9342e9ba"},p2={like:!1,inferred:!1,id:"7449779e-1d4e-409c-81c6-4b611336ed18",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ae,isList:!1,asType:!1,parent:u2},c2={type:n.GenericReference,id:"0969562f-d836-406f-8b48-dd9d417fbe72",version:"1",entityType:n.DefinitionEntity,entityId:"a2d0ec83-72ce-4f54-b059-a39e018fa86c"},f2={constant:!1,hidden:!1,required:!0,type:n.Property,id:"d519c26a-15b8-40d8-ad09-13fa9342e9ba",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Name",description:"The name of the product",index:0,implements:null,static:!1,private:!1,defaultValue:null,dataType:p2,abstract:!1,parent:c2},y2={type:n.GenericReference,id:"833a5425-7bd0-41dd-9e97-e018acce9592",version:"1",entityType:n.Project,entityId:fe},h2={id:"product-prototype-primary-key-property-data-type-ref-id",type:n.GenericReference,entityId:"product-prototype-primary-key-property-id",version:"1",entityType:n.Property},m2={id:"product-prototype-primary-key-property-ref-id",type:n.GenericReference,entityId:"product-prototype-primary-key-property-id",version:"1",entityType:n.Property},v2={like:!1,inferred:!1,id:"product-prototype-primary-key-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:sr,asType:!1,parent:m2},T2={id:"product-prototype-primary-key-property-parent-ref-id",type:n.GenericReference,entityId:"a2d0ec83-72ce-4f54-b059-a39e018fa86c",version:"1",entityType:n.DefinitionEntity},I2={constant:!1,hidden:!1,required:!0,id:"product-prototype-primary-key-property-id",name:"Identifier",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,implements:null,static:!1,index:0,defaultValue:{id:"product-prototype-primary-key-property-data-type-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.UUID,value:null,parent:h2,autogeneration:{type:vt.Unique,rangeStart:null,rangeEnd:null},valueAsTypeList:null,valueAsTypeSingle:null},dataType:v2,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:T2},E2={type:n.DefinitionEntity,id:"a2d0ec83-72ce-4f54-b059-a39e018fa86c",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Product",description:"A product that can be sold",implements:[_t,mi],extends:[],abstract:!1,static:!1,abstractMethods:[],properties:[I2,l2,f2],methods:[],x:0,y:0,parent:y2},ds="project-loaded-event-id",pr="get-bitcoin-price-http-call-operation-id",MA="get-bitcoin-price-http-call-response-body-id",Yo="validate-bitcoin-price-response-operation-ids",A2={type:n.GenericReference,id:"validate-bitcoin-data-to-validate-input-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:MA},b2={type:n.GenericReference,id:"validate-bitcoin-data-to-validate-input-map-parent-ref-id",version:"1",entityType:n.Operation,entityId:Yo},NA={id:"validate-bitcoin-data-to-validate-input-map-id",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:pn.inputs[1],name:null,description:null,readsValue:A2,defaultValue:null,index:0,parent:b2},R2={type:n.GenericReference,id:"validate-bitcoin-type-to-match-input-map-default-value-parent-ref-id",version:"1",entityType:n.InputMap,entityId:"validate-bitcoin-type-to-match-input-map-id"},D2={type:n.GenericReference,id:"validate-bitcoin-type-to-match-input-map-parent-ref-id",version:"1",entityType:n.Operation,entityId:Yo},O2={id:"validate-bitcoin-type-to-match-input-map-id",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:pn.inputs[0],name:null,description:null,readsValue:null,defaultValue:{id:"validate-bitcoin-type-to-match-input-map-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.EntityTemplate,valueAsTypeList:null,valueAsTypeSingle:TA,value:null,parent:R2,autogeneration:null},index:0,parent:D2},P2={type:n.GenericReference,id:"validate-bitcoin-validated-entity-output-map-parent-ref-id",version:"1",entityType:n.Operation,entityId:Yo},w2={id:"validate-bitcoin-validated-entity-output-map-id",type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:pn.outputs[0],writesValues:[],index:0,parent:P2},C2={type:n.GenericReference,id:"validate-bitcoin-price-response-operation-parent-ref-id",version:"1",entityType:n.GlobalEvent,entityId:ds},V2={type:n.GenericReference,id:"validate-bitcoin-price-response-operation-called-by-ref-id",version:"1",entityType:n.Operation,entityId:pr},B2={type:n.Operation,id:Yo,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:pn,inputs:[O2,NA],outputs:[w2],process:null,successCalls:[],errorCalls:[],error:null,x:0,y:0,calledByError:[],calledByEntry:[],calledBySuccess:[V2],parent:C2},_2={type:n.GenericReference,id:"96edb661-3f36-406c-8921-f1679dd796a3",version:"1",entityType:n.FunctionCall,entityId:pr},M2={id:"c93e1393-9b5e-4de2-b8da-7eae647d715a",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.InputMap,declaration:Qa,name:null,description:null,readsValue:null,defaultValue:null,index:0,parent:_2},N2={type:n.GenericReference,id:"40312b28-71b8-4b01-a654-58b87191939d",version:"1",entityType:n.FunctionCall,entityId:pr},L2={type:n.GenericReference,id:"6ea96c7d-02a7-4971-82ad-2f32a0fec8b4",version:"1",entityType:n.InputMap,entityId:"9f21cbac-5a83-4983-8923-9224ffd3ba9f"},j2={id:"9f21cbac-5a83-4983-8923-9224ffd3ba9f",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.InputMap,declaration:eo,name:null,description:null,readsValue:null,defaultValue:{id:"get-bitcoin-price-http-request-url-argument-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:"https://api.coindesk.com/v1/bpi/currentprice.json",name:L.String,parent:L2,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null},index:1,parent:N2},U2={type:n.GenericReference,id:"2610bf4a-c8a2-4746-b6cc-eb15f7fa8e9c",version:"1",entityType:n.FunctionCall,entityId:pr},$2={id:"ffb3cd9d-c955-4104-bc7b-299120fe4ede",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.InputMap,declaration:to,name:null,description:null,readsValue:null,defaultValue:null,index:2,parent:U2},g2={type:n.GenericReference,id:"bfd29a6a-671a-448c-9f2f-f8c7e4ad8349",version:"1",entityType:n.FunctionCall,entityId:pr},G2={id:"412bf1f3-1a8e-4665-a95f-82117540e34e",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.InputMap,declaration:io,name:null,description:null,readsValue:null,defaultValue:null,index:3,parent:g2},F2={type:n.GenericReference,id:"616a15f3-c224-4b11-b95c-63314edef409",version:"1",entityType:n.FunctionCall,entityId:pr},x2={id:"4dd4651c-02e4-45f1-b50f-824f3bcb1648",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.OutputMap,defaultValue:null,declaration:no,writesValues:[],index:1,parent:F2},k2={type:n.GenericReference,id:"28793b68-4d7e-4826-aee1-f201a3499faf",version:"1",entityType:n.FunctionCall,entityId:pr},Z2={id:"94fe9d35-4dd4-4729-a50c-5283ccd7e661",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.OutputMap,defaultValue:null,declaration:ro,writesValues:[],index:0,parent:k2},q2={type:n.GenericReference,id:"f13e04b2-49b4-4c69-85b8-cbbafafa3524",version:"1",entityType:n.FunctionCall,entityId:pr},J2={id:MA,type:n.OutputMap,defaultValue:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:so,writesValues:[NA],index:2,parent:q2},S2={type:n.GenericReference,id:"6148d6d0-caaa-45fc-b601-ff2493dfc60f",version:"1",entityType:n.GlobalEvent,entityId:ds},W2={type:n.GenericReference,id:"b115f084-807b-44b3-ae01-b69cc342f761",version:"1",entityType:n.GlobalEvent,entityId:ds},z2={type:n.Operation,id:pr,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Ms,inputs:[M2,j2,$2,G2],outputs:[Z2,x2,J2],process:null,parent:W2,calledByError:[],calledByEntry:[S2],calledBySuccess:[],successCalls:[B2],errorCalls:[],error:null,x:0,y:0},Y2={type:n.GenericReference,id:"24e76019-3f94-475b-91ce-297f76bbc224",version:"1",entityType:n.GlobalEvent,entityId:ds},H2={type:n.GenericReference,id:"0eac8e29-cdf2-42f8-8ea7-ad76d4d79abe",version:"1",entityType:n.GlobalEvent,entityId:ds},K2={process:null,type:n.FunctionCall,id:"2d2e7593-bfbf-457c-a607-5fce18eef457",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:wu,inputs:[],outputs:[],calledByError:[],calledByEntry:[Y2],calledBySuccess:[],parent:H2,successCalls:[],errorCalls:[],error:null,x:0,y:0},X2={id:"793b5999-a9da-47fb-9665-0c17ebc6d5c9",type:n.GenericReference,version:"1",entityType:n.Project,entityId:fe},Q2={type:n.GlobalEvent,id:ds,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:ir.PROJECT_PUBLICATION_COMPLETED,description:null,collapsed:!1,implements:To,parent:X2,inputs:[],calls:[K2,z2],x:0,y:0},vi="abort-execution-func-declaration-id",na="abort-execution-func-exec-var-declaration-id",Cu="abort-execution-func-small-wait-op-id",Vu="abort-execution-func-long-wait-op-id",LA="abort-execution-func-long-wait-process-output-id",jA="abort-execution-func-exec-var-instance-write-id",UA="abort-execution-func-long-wait-return-stmt-id",$A="abort-execution-func-small-wait-return-stmt-id",e$="abort-execution-func-exec-var-instance-abort-call-id",Bu="abort-execution-func-exec-var-instance-abort-internal-call-id",_u="abort-execution-func-exec-second-wait-op-id",t$={type:n.GenericReference,id:"short-wait-return-statement-returned-hello-string-data-type-parent-ref-id",version:"1",entityType:n.ReturnDeclaration,entityId:"short-wait-return-statement-returned-hello-string-id"},i$={type:n.GenericReference,id:"short-wait-return-statement-returned-hello-string-data-type-default-value-parent-ref-id",version:"1",entityType:n.ReturnDeclaration,entityId:"short-wait-return-statement-returned-hello-string-id"},r$={like:!1,inferred:!1,id:"short-wait-return-statement-returned-hello-string-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ae,asType:!1,isList:!1,parent:t$},n$={type:n.GenericReference,id:"short-wait-return-statement-returned-hello-string-parent-ref-id",version:"1",entityType:n.ReturnStatement,entityId:$A},s$={constant:!0,isError:!1,id:"short-wait-return-statement-returned-hello-string-id",type:n.ReturnDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Return 1",description:"A random string that is returned by the function",defaultValue:{id:"short-wait-return-statement-returned-hello-string-data-type-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.String,value:"Hello 2",autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null,parent:i$},dataType:r$,implements:null,readsValue:null,required:!0,index:0,parent:n$},a$={type:n.GenericReference,id:"short-wait-return-statement-called-by-ref-id",version:"1",entityType:n.Operation,entityId:_u},o$={type:n.GenericReference,id:"short-wait-return-statement-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:vi},d$={type:n.ReturnStatement,id:$A,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[s$],calledByError:[],calledByEntry:[],calledBySuccess:[a$],throws:null,x:0,y:0,parent:o$},l$={type:n.GenericReference,id:"second-wait-argument-default-value-parent-ref-id",version:"1",entityType:n.InputMap,entityId:"second-wait-argument-map-id"},u$={type:n.GenericReference,id:"second-wait-argument-map-parent-ref-id",version:"1",entityType:n.Operation,entityId:_u},p$={id:"second-wait-argument-map-id",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:ln,name:null,description:null,readsValue:null,defaultValue:{id:"second-wait-argument-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:2e3,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null,name:L.Number,parent:l$},index:0,parent:u$},c$={type:n.GenericReference,id:"small-wait-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:vi},f$={type:n.GenericReference,id:"small-wait-called-by-ref-one-id",version:"1",entityType:n.InternalCall,entityId:Bu},y$={id:_u,type:n.Operation,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Wt,inputs:[p$],outputs:[],process:null,successCalls:[d$],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[],calledBySuccess:[f$],error:null,parent:c$},h$={type:n.GenericReference,id:"abort-exec-func-abort-call-var-instance-abort-internal-call-called-by-ref-one-id",version:"1",entityType:n.VariableInstance,entityId:jA},m$={type:n.GenericReference,id:"abort-exec-func-abort-call-var-instance-abort-internal-call-called-by-ref-two-id",version:"1",entityType:n.Operation,entityId:Cu},v$={type:n.GenericReference,id:"abort-exec-func-abort-call-var-instance-main-project-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:vi},T$={type:n.GenericReference,id:"abort-exec-func-abort-call-var-instance-declaration-ref-id-2",version:"1",entityType:n.VariableDeclaration,entityId:na},I$={type:n.GenericReference,id:"abort-exec-func-abort-call-var-instance-internal-call-ref-one-id",version:"1",entityType:n.InternalCall,entityId:Bu},E$={id:e$,type:n.VariableInstance,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:T$,defaultValue:null,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],x:0,y:0,readsValue:null,writesValues:[],internalCalls:[I$],parent:v$},gA={id:Bu,type:n.InternalCall,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,inputs:[],outputs:[],declaration:iu,process:null,calledByError:[],calledByEntry:[],calledBySuccess:[h$,m$],successCalls:[y$],errorCalls:[],error:null,index:0,parent:E$},A$={type:n.GenericReference,id:"abort-exec-func-var-write-instance-main-project-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:vi},b$={type:n.GenericReference,id:"abort-exec-func-var-write-instance-called-by-ref-one-id",version:"1",entityType:n.VariableDeclaration,entityId:na},R$={type:n.GenericReference,id:"abort-exec-func-var-write-instance-called-by-ref-two-id",version:"1",entityType:n.FunctionDeclaration,entityId:vi},D$={type:n.GenericReference,id:"abort-exec-func-abort-call-var-instance-declaration-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:na},O$={type:n.GenericReference,id:"abort-exec-func-var-write-instance-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:LA},Mu={id:jA,type:n.VariableInstance,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:D$,inputs:[],outputs:[],defaultValue:null,calledByError:[],calledByEntry:[R$],calledBySuccess:[b$],successCalls:[gA],errorCalls:[],x:0,y:0,readsValue:O$,writesValues:[],internalCalls:[],parent:A$},P$={type:n.GenericReference,id:"abort-exec-func-var-decl-datatype-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:na};n.GenericReference,n.DataType;const w$={like:!1,inferred:!1,id:"abort-exec-func-var-decl-datatype-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,entity:vo,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,asType:!1,isList:!1,parent:P$},C$={type:n.GenericReference,id:"abort-exec-func-var-decl-main-project-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:vi},V$={type:n.GenericReference,id:"abort-exec-func-var-decl-called-by-ref-one-id",version:"1",entityType:n.FunctionDeclaration,entityId:vi},B$={constant:!0,required:!0,id:na,type:n.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Execution in progress",description:"A variable that holds an ongoing execution to abort it if needed",defaultValue:null,dataType:w$,inputs:[],outputs:[],calledByError:[],calledByEntry:[V$],calledBySuccess:[],successCalls:[Mu],errorCalls:[],x:0,y:0,readsValue:null,writesValues:[],internalCalls:[],parent:C$},_$={type:n.GenericReference,id:"long-wait-return-statement-returned-hello-string-data-type-parent-ref-id",version:"1",entityType:n.ReturnDeclaration,entityId:"long-wait-return-statement-returned-hello-string-id"},M$={type:n.GenericReference,id:"long-wait-return-statement-returned-hello-string-data-type-default-value-parent-ref-id",version:"1",entityType:n.ReturnDeclaration,entityId:"long-wait-return-statement-returned-hello-string-id"},N$={like:!1,inferred:!1,id:"long-wait-return-statement-returned-hello-string-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ae,asType:!1,isList:!1,parent:_$},L$={type:n.GenericReference,id:"long-wait-return-statement-returned-hello-string-parent-ref-id",version:"1",entityType:n.ReturnStatement,entityId:UA},j$={constant:!0,isError:!1,id:"long-wait-return-statement-returned-hello-string-id",type:n.ReturnDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Return 2",description:"A random string that is returned by the function",implements:null,defaultValue:{id:"long-wait-return-statement-returned-hello-string-data-type-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.String,value:"Hello 1",autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null,parent:M$},dataType:N$,readsValue:null,required:!0,index:0,parent:L$},U$={type:n.GenericReference,id:"long-wait-return-statement-called-by-ref-id",version:"1",entityType:n.Operation,entityId:Vu},$$={type:n.GenericReference,id:"long-wait-return-statement-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:vi},g$={type:n.ReturnStatement,id:UA,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[j$],calledByError:[],calledByEntry:[],calledBySuccess:[U$],throws:null,x:0,y:0,parent:$$},G$={type:n.GenericReference,id:"long-argument-default-value-parent-ref-id",version:"1",entityType:n.InputMap,entityId:"long-argument-map-id"},GA={type:n.GenericReference,id:"long-argument-map-parent-ref-id",version:"1",entityType:n.Operation,entityId:Vu},F$={id:"long-argument-map-id",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:ln,name:null,description:null,readsValue:null,defaultValue:{id:"long-argument-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:1500,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null,name:L.Number,parent:G$},index:0,parent:GA},x$={type:n.GenericReference,id:"long-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:vi},k$={type:n.GenericReference,id:"long-called-by-ref-one-id",version:"1",entityType:n.FunctionDeclaration,entityId:vi},Z$={id:LA,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:Io,writesValues:[Mu],index:0,parent:GA},q$={id:Vu,type:n.Operation,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Wt,inputs:[F$],outputs:[],process:Z$,successCalls:[g$],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[k$],calledBySuccess:[],error:null,parent:x$},J$={type:n.GenericReference,id:"small-wait-argument-default-value-parent-ref-id",version:"1",entityType:n.InputMap,entityId:"small-wait-argument-map-id"},S$={type:n.GenericReference,id:"small-wait-argument-map-parent-ref-id",version:"1",entityType:n.Operation,entityId:Cu},W$={id:"small-wait-argument-map-id",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:ln,name:null,description:null,readsValue:null,defaultValue:{id:"small-wait-argument-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:500,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null,name:L.Number,parent:J$},index:0,parent:S$},z$={type:n.GenericReference,id:"small-wait-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:vi},Y$={type:n.GenericReference,id:"small-wait-called-by-ref-one-id",version:"1",entityType:n.FunctionDeclaration,entityId:vi},H$={id:Cu,type:n.Operation,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Wt,inputs:[W$],outputs:[],process:null,successCalls:[gA],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[Y$],calledBySuccess:[],error:null,parent:z$},K$={type:n.GenericReference,id:"abort-execution-func-decl-parent-ref-id",version:"1",entityType:n.Project,entityId:fe},FA={id:vi,type:n.FunctionDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Test aborting execution",description:"Executes a wait and then aborts the execution of that wait",inputs:[],calls:[H$,B$,Mu,q$],implements:null,private:!1,collapsed:!1,index:null,x:0,y:0,parent:K$},X$={type:n.GenericReference,id:"call-execution-abort-func-parent-ref-id",version:"1",entityType:n.Project,entityId:fe},Q$={id:"call-execution-abort-func-id",type:n.FunctionCall,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:FA,inputs:[],process:null,outputs:[],successCalls:[],errorCalls:[],error:null,calledByError:[],calledByEntry:[],calledBySuccess:[],x:0,y:0,parent:X$},Ho="manual-hello-world-loop-func-decl-id",xA="manual-hello-world-loop-func-return-statement-id",Ji="manual-hello-world-loop-id",sa="manual-hello-world-loop-body-id",Nu="manual-hello-world-loop-break-statement-id",aa="manual-hello-world-loop-current-iteration-number-output-map-id",Lu="manual-hello-world-loop-previous-iterations-results-output-map-id",ju="assembled-hello-world-text-output-id",e4="assembled-hello-world-list-output-id",oa="iteration-number-is-equal-or-greater-than-10-condition-id",Ko="join-hello-world-and-number-operation-id",Xo="append-string-to-list-operation-id",kA="hello-world-loop-output-map-id",t4={type:n.GenericReference,id:"manual-hello-world-loop-function-declaration-output-declaration-parent-ref",version:"1",entityType:n.ReturnStatement,entityId:xA},i4={type:n.GenericReference,id:"manual-hello-world-loop-function-declaration-output-declaration-data-type-parent-ref",version:"1",entityType:n.ReturnDeclaration,entityId:"manual-hello-world-loop-function-declaration-output-declaration"},r4={like:!1,inferred:!1,id:"manual-hello-world-loop-function-declaration-output-declaration-data-type",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ae,isList:!0,asType:!1,parent:i4},n4={type:n.GenericReference,id:"manual-hello-world-loop-function-declaration-output-declaration-reads-value-ref",version:"1",entityType:n.OutputMap,entityId:kA},ZA={constant:!0,isError:!1,id:"manual-hello-world-loop-function-declaration-output-declaration",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.ReturnDeclaration,name:"Results",description:null,defaultValue:null,dataType:r4,implements:null,readsValue:n4,required:!0,index:0,parent:t4},s4={type:n.GenericReference,id:"manual-hello-world-loop-function-declaration-return-statement-called-by-ref",version:"1",entityType:n.Loop,entityId:Ji},a4={type:n.GenericReference,id:"manual-hello-world-loop-function-declaration-parent-ref",version:"1",entityType:n.FunctionDeclaration,entityId:Ho},o4={type:n.ReturnStatement,id:xA,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[ZA],calledByError:[],calledByEntry:[],calledBySuccess:[s4],parent:a4,throws:null,x:0,y:0},d4={type:n.GenericReference,id:"hello-world-loop-break-statement-ref-id",version:"1",entityType:n.BreakStatement,entityId:Nu},qA={constant:!0,isError:!1,id:"hello-world-loop-break-statement-output-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.ReturnDeclaration,name:"Iteration result",description:null,defaultValue:null,dataType:null,readsValue:null,implements:null,required:!0,index:0,parent:d4},l4={type:n.GenericReference,id:"hello-world-loop-break-statement-counter-reads-value-ref-id",version:"1",entityType:n.ArgumentDeclaration,entityId:aa},u4={type:n.GenericReference,id:"hello-world-loop-break-statement-counter-ref-id",version:"1",entityType:n.BreakStatement,entityId:Nu},JA={constant:!0,isError:!1,id:"hello-world-loop-break-statement-counter-output-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.ReturnDeclaration,name:"Iteration counter",description:null,implements:null,defaultValue:null,dataType:null,readsValue:l4,required:!0,index:1,parent:u4},p4={type:n.GenericReference,id:"hello-world-loop-break-statement-called-by-ref-id",version:"1",entityType:n.Condition,entityId:oa},c4={type:n.GenericReference,id:"hello-world-loop-break-statement-parent-ref-id",version:"1",entityType:n.Loop,entityId:Ji},f4={type:n.BreakStatement,id:Nu,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[qA,JA],calledByError:[],calledByEntry:[],calledBySuccess:[p4],parent:c4,throws:null,x:0,y:0};n.GenericReference,n.InputMap;const y4={type:n.GenericReference,id:"append-string-to-list-base-string-map-parent-ref-id",version:"1",entityType:n.Operation,entityId:Xo},h4={type:n.GenericReference,id:"base-string-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:Lu},SA={id:"append-string-to-list-base-string-map-id",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Ol,name:null,description:null,readsValue:h4,defaultValue:null,index:0,parent:y4},m4={type:n.GenericReference,id:"assembly-string-map-parent-ref-id",version:"1",entityType:n.Operation,entityId:Xo},v4={id:e4,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,writesValues:[qA],declaration:Bs,index:0,parent:m4},T4={type:n.GenericReference,id:"append-string-to-list-called-by-ref-id",version:"1",entityType:n.Condition,entityId:oa},I4={type:n.GenericReference,id:"latest-string-to-add-input-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:ju},E4={type:n.GenericReference,id:"62b4afb0-6c21-4b0f-abd3-cebef7b17c28",version:"1",entityType:n.Operation,entityId:Xo},WA={id:"latest-string-to-add-input-map-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.InputMap,declaration:Pl,name:null,description:null,readsValue:I4,defaultValue:null,index:1,parent:E4},A4={type:n.GenericReference,id:"append-string-to-list-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:Ji},b4={type:n.Operation,id:Xo,declaration:Xa,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,inputs:[SA,WA],outputs:[v4],calledByError:[],process:null,calledByEntry:[],calledBySuccess:[T4],successCalls:[],errorCalls:[],error:null,x:0,y:0,parent:A4},R4={type:n.GenericReference,id:"hello-world-loop-continue-statement-ref-id",version:"1",entityType:n.ContinueStatement,entityId:"hello-world-loop-continue-statement"},D4={type:n.GenericReference,id:"hello-world-loop-continue-statement-output-data-type-ref-id",version:"1",entityType:n.ReturnDeclaration,entityId:"hello-world-loop-continue-statement-output-id"},O4={like:!1,inferred:!1,id:"hello-world-loop-continue-statement-output-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,isList:!1,asType:!1,parent:D4},P4={type:n.GenericReference,id:"hello-world-loop-continue-statement-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:ju},zA={constant:!0,isError:!1,id:"hello-world-loop-continue-statement-output-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.ReturnDeclaration,name:"Iteration result",description:null,defaultValue:null,implements:null,dataType:O4,readsValue:P4,required:!0,index:0,parent:R4},w4={type:n.GenericReference,id:"hello-world-loop-continue-statement-called-by-ref-id",version:"1",entityType:n.Condition,entityId:oa},C4={type:n.GenericReference,id:"hello-world-loop-continue-statement-parent-ref-id",version:"1",entityType:n.Loop,entityId:Ji},V4={type:n.ContinueStatement,id:"hello-world-loop-continue-statement",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[zA],calledBySuccess:[],calledByError:[w4],calledByEntry:[],parent:C4,throws:null,x:0,y:0},B4={type:n.GenericReference,id:"iteration-number-is-equal-or-greater-than-10-condition-called-by-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:sa},_4={type:n.GenericReference,id:"iteration-number-is-equal-or-greater-than-10-condition-parent-ref-id",version:"1",entityType:n.Loop,entityId:Ji},M4={type:n.GenericReference,id:"current-iteration-number-to-check-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:aa},YA={type:n.GenericReference,id:"iteration-number-is-equal-or-greater-than-10-condition-ref-two-id",version:"1",entityType:n.Condition,entityId:oa},N4={id:"current-iteration-number-to-check-map-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.InputMap,declaration:Xn.inputs[0],name:null,description:null,readsValue:M4,index:0,defaultValue:null,parent:YA},L4={type:n.GenericReference,id:"max-num-iterations-value-map-default-value-parent-ref-id",version:"1",entityType:n.InputMap,entityId:"max-num-iterations-value-map-id"},j4={id:"max-num-iterations-value-map-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.InputMap,declaration:Xn.inputs[1],name:null,description:null,readsValue:null,index:1,defaultValue:{id:"max-num-iterations-value-map-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.Number,value:10,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null,parent:L4},parent:YA},U4={type:n.Condition,id:oa,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Xn,inputs:[N4,j4],calledByError:[],calledByEntry:[B4],calledBySuccess:[],successCalls:[f4,b4],errorCalls:[V4],x:0,y:0,parent:_4},$4={type:n.GenericReference,id:"base-string-map-ref-id",version:"1",entityType:n.InputMap,entityId:"join-hello-world-and-number-base-string-map-id"},g4={type:n.GenericReference,id:"join-hello-world-and-number-base-string-map-parent-ref-id",version:"1",entityType:n.Operation,entityId:Ko},G4={id:"join-hello-world-and-number-base-string-map-id",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Ha,name:null,description:null,readsValue:null,defaultValue:{id:"join-hello-world-and-number-base-string-map-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:"Hello world ",name:L.String,parent:$4,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null},index:0,parent:g4},F4={type:n.GenericReference,id:"assembly-string-map-parent-ref-id",version:"1",entityType:n.Operation,entityId:Ko},x4={id:ju,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,writesValues:[WA,zA],declaration:Bs,index:0,parent:F4},k4={type:n.GenericReference,id:"join-hello-world-and-number-called-by-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:sa},Z4={type:n.GenericReference,id:"current-iteration-number-input-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:aa},q4={type:n.GenericReference,id:"62b4afb0-6c21-4b0f-abd3-cebef7b17c28",version:"1",entityType:n.Operation,entityId:Ko},HA={id:"current-iteration-number-input-map-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.InputMap,declaration:Ka,name:null,description:null,readsValue:Z4,defaultValue:null,index:1,parent:q4},J4={type:n.GenericReference,id:"join-hello-world-and-number-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:Ji},S4={type:n.Operation,id:Ko,declaration:_s,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,inputs:[G4,HA],outputs:[x4],process:null,calledByError:[],calledByEntry:[k4],calledBySuccess:[],successCalls:[],errorCalls:[],error:null,x:0,y:0,parent:J4},W4={id:"manual-hello-world-loop-iterations-results-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:Lu,version:"1",entityType:n.ArgumentDeclaration},z4={like:!1,inferred:!1,id:"manual-hello-world-loop-iterations-results-declaration-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!0,entity:null,asType:!1,parent:W4},Y4={id:"manual-hello-world-loop-previous-iterations-results-output-map-parent-ref-id",type:n.GenericReference,entityId:sa,version:"1",entityType:n.FunctionDeclaration},H4={constant:!0,id:Lu,type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Previous iterations results",description:"The results of the previous iterations of the loop.",required:!0,defaultValue:null,dataType:z4,implements:null,writesValues:[SA],index:1,parent:Y4},K4={id:"manual-hello-world-loop-current-iteration-number-output-map-parent-ref-id",type:n.GenericReference,entityId:sa,version:"1",entityType:n.FunctionDeclaration},X4={id:"manual-flow-loop-current-iteration-number-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:aa,version:"1",entityType:n.ArgumentDeclaration};n.DataType;const Q4={constant:!0,id:aa,type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Current iteration number",description:"The number of the current iteration of the loop. Starts at 1.",required:!0,implements:Nl,defaultValue:null,dataType:null,writesValues:[HA,JA],index:0,parent:K4},eg={id:"manual-flow-loop-body-parent-ref-id",type:n.GenericReference,entityId:Ji,version:"1",entityType:n.Loop},tg={id:sa,type:n.FunctionDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Iteration logic trigger",description:"This function is called multiple times, once for each iteration of the loop.",inputs:[Q4,H4],calls:[U4,S4],implements:oo,collapsed:!1,private:!1,index:0,x:0,y:0,parent:eg},ig={type:n.GenericReference,id:"hello-world-loop-iteration-result-inline-output-declaration-parent-ref-id",version:"1",entityType:n.Loop,entityId:Ji},KA={id:"hello-world-loop-iteration-result-inline-output-declaration-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.ValueDescriptor,name:"Iteration result",defaultValue:null,description:null,dataType:null,required:!0,parentRelationType:N.FixedReturns,index:0,parent:ig},rg={type:n.GenericReference,id:"hello-world-loop-break-statement-output-map-parent-ref-id",version:"1",entityType:n.Loop,entityId:Ji},ng={type:n.OutputMap,id:kA,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:KA,writesValues:[ZA],index:0,parent:rg},sg={id:"manual-hello-world-loop-parent-ref-id",type:n.GenericReference,entityId:Ho,version:"1",entityType:n.FunctionDeclaration},ag={id:"manual-hello-world-loop-called-by-ref-id",type:n.GenericReference,entityId:Ho,version:"1",entityType:n.FunctionDeclaration},og={id:Ji,type:n.Loop,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:ao,inputs:[],outputsDeclarations:[KA],outputs:[ng],body:tg,successCalls:[o4],errorCalls:[],process:null,error:null,calledByError:[],calledByEntry:[ag],calledBySuccess:[],x:0,y:0,parent:sg},dg={type:n.GenericReference,id:"manual-hello-world-loop-function-declaration-parent-ref-id",version:"1",entityType:n.Project,entityId:fe},XA={type:n.FunctionDeclaration,id:Ho,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Manual hello world loop",description:null,inputs:[],calls:[og],implements:null,collapsed:!1,private:!1,index:null,x:0,y:0,parent:dg},lg={type:n.GenericReference,id:"call-hello-world-loop-parent-ref-id",version:"1",entityType:n.Project,entityId:fe},ug={id:"call-hello-world-loop-id",type:n.FunctionCall,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:XA,inputs:[],outputs:[],process:null,successCalls:[],errorCalls:[],error:null,calledByError:[],calledByEntry:[],calledBySuccess:[],x:0,y:0,parent:lg},cr="company-dto-function-declaration-id",Uu="company-dto-func-declaration-argument-dcl-id",Si="company-dto-function-company-variable-id",Lr="company-dto-function-company-dto-variable-id",ls="iterate-over-employee-list-loop-id",QA="iterate-over-employee-list-loop-employee-dto-output-map-id",$u="iterate-over-employee-list-loop-body-current-employee-argument-declaration-id",Qo="iterate-over-employee-list-loop-body-map-employee-dto-function-call-id",eb="iterate-over-employee-list-continue-statement-employee-dto-output-decl-id",tb="iterate-over-employee-list-loop-body-map-employee-dto-function-call-employee-dto-output-map-id",ib="iterate-over-employee-list-continue-statement-id",ed="iterate-over-employee-list-loop-body-id",rb="company-dto-func-declaration-return-statement-id",nb="company-dto-func-declaration-return-decl-id",sb="company-dto-func-declaration-company-variable-id-output-map-id",ab="company-dto-func-declaration-company-variable-employess-output-map-id",ob="company-dto-func-declaration-company-variable-name-output-map-id",pg="company-dto-func-declaration-company-dto-variable-input-map-id",cg="company-dto-func-declaration-company-dto-variable-employess-input-map-id",fg="company-dto-func-declaration-company-dto-variable-name-input-map-id",td="company-dto-func-declaration-owner-variable-id",yg="company-dto-func-declaration-company-dto-variable-owner-input-map-id",db="company-dto-func-declaration-company-variable-owner-output-map-id",lb="company-dto-func-declaration-owner-variable-id-output-map-id",id="company-dto-func-declaration-bank-account-variable-id",hg="company-dto-func-declaration-company-dto-variable-bank-account-input-map-id",ub="company-dto-func-declaration-company-variable-bank-account-output-map-id",pb="company-dto-func-declaration-bank-account-variable-id-output-map-id",mg={type:n.GenericReference,id:"company-dto-func-company-dto-variable-owner-input-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:lb},vg={type:n.GenericReference,id:"company-dto-func-company-dto-variable-owner-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Lr},cb={id:yg,type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:null,name:"owner_id",description:null,defaultValue:null,index:5,readsValue:mg,parent:vg},Tg={type:n.GenericReference,id:"company-dto-func-company-dto-variable-bank-account-input-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:pb},Ig={type:n.GenericReference,id:"company-dto-func-company-dto-variable-bank-account-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Lr},fb={id:hg,type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:null,name:"bank_account_id",description:null,defaultValue:null,index:4,readsValue:Tg,parent:Ig},Eg={type:n.GenericReference,id:"company-dto-func-company-dto-variable-name-input-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:ob},Ag={type:n.GenericReference,id:"company-dto-func-company-dto-variable-name-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Lr},yb={id:fg,type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:null,name:"name",description:null,defaultValue:null,index:3,readsValue:Eg,parent:Ag},bg={type:n.GenericReference,id:"company-dto-func-company-dto-variable-employess-input-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:QA},Rg={type:n.GenericReference,id:"company-dto-func-company-dto-variable-employess-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Lr},hb={id:cg,type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:null,name:"employees",description:null,defaultValue:null,index:2,readsValue:bg,parent:Rg},Dg={type:n.GenericReference,id:"company-dto-func-company-dto-variable-id-output-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:sb},Og={type:n.GenericReference,id:"company-dto-func-company-dto-variable-id-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Lr},mb={id:pg,type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:null,name:"id",description:"The ID of the company",defaultValue:null,index:1,readsValue:Dg,parent:Og},Pg={type:n.GenericReference,id:"company-dto-func-returned-company-dto-data-type-parent-ref-id",version:"1",entityType:n.ReturnDeclaration,entityId:nb},wg={like:!1,inferred:!1,id:"company-dto-func-returned-company-dto-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,asType:!1,isList:!1,parent:Pg},Cg={type:n.GenericReference,id:"company-dto-func-returned-company-dto-parent-ref-id",version:"1",entityType:n.ReturnStatement,entityId:rb},Vg={type:n.GenericReference,id:"company-dto-func-returned-company-dto-reads-value-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Lr},vb={constant:!0,isError:!1,id:nb,type:n.ReturnDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Company DTO",description:"Output the company data in the format that it will be sent through an HTTP request.",defaultValue:null,implements:null,dataType:wg,readsValue:Vg,required:!0,index:0,parent:Cg},Bg={type:n.GenericReference,id:"company-dto-func-return-statement-called-by-ref-id",version:"1",entityType:n.Operation,entityId:Lr},_g={type:n.GenericReference,id:"company-dto-func-return-statement-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:cr},Tb={type:n.ReturnStatement,id:rb,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[vb],calledByError:[],calledByEntry:[],calledBySuccess:[Bg],throws:null,x:0,y:0,parent:_g},Mg={type:n.GenericReference,id:"company-dto-func-company-dto-variable-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:cr},Ng={type:n.GenericReference,id:"company-dto-func-company-dto-variable-called-by-ref-one-id",version:"1",entityType:n.VariableDeclaration,entityId:id},Lg={type:n.GenericReference,id:"company-dto-func-company-dto-variable-called-by-ref-two-id",version:"1",entityType:n.VariableDeclaration,entityId:td},jg={type:n.GenericReference,id:"company-dto-func-company-dto-variable-called-by-ref-three-id",version:"1",entityType:n.VariableDeclaration,entityId:ls},gu={constant:!0,required:!0,id:Lr,type:n.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Company DTO",dataType:null,description:"A variable holding the data of a mapped company DTO",defaultValue:null,calledByError:[],calledByEntry:[],calledBySuccess:[Ng,Lg,jg],successCalls:[Tb],errorCalls:[],readsValue:null,writesValues:[vb],inputs:[mb,yb,fb,cb,hb],outputs:[],internalCalls:[],parent:Mg,x:0,y:0},bn="employee-dto-func-declaration-id",Gu="employee-dto-func-declaration-argument-dcl-id",Ib="employee-dto-func-declaration-return-statement-id",Eb="employee-dto-func-declaration-return-decl-id",Rn="employee-dto-func-declaration-employee-variable-id",Dn="employee-dto-func-declaration-employee-dto-variable-id",rd="employee-dto-func-declaration-manager-variable-id",Ab="employee-dto-func-declaration-employee-variable-id-output-map-id",bb="employee-dto-func-declaration-employee-variable-birth-date-output-map-id",Rb="employee-dto-func-declaration-employee-variable-department-output-map-id",Db="employee-dto-func-declaration-employee-variable-manager-output-map-id",Ob="employee-dto-func-declaration-manager-variable-id-output-map-id",Ug="employee-dto-func-declaration-employee-dto-variable-input-map-id",$g="employee-dto-func-declaration-employee-dto-variable-birth-date-input-map-id",gg="employee-dto-func-declaration-employee-dto-variable-department-input-map-id",Gg="employee-dto-func-declaration-employee-dto-variable-manager-input-map-id",Fg={type:n.GenericReference,id:"employee-dto-func-employee-dto-variable-manager-input-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:Ob},xg={type:n.GenericReference,id:"employee-dto-func-employee-dto-variable-manager-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Dn},Pb={id:Gg,type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:null,name:"manager_id",description:null,defaultValue:null,index:4,readsValue:Fg,parent:xg},kg={type:n.GenericReference,id:"employee-dto-func-employee-dto-variable-department-input-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:Rb},Zg={type:n.GenericReference,id:"employee-dto-func-employee-dto-variable-department-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Dn},wb={id:gg,type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:null,name:"department_name",description:null,defaultValue:null,index:3,readsValue:kg,parent:Zg},qg={type:n.GenericReference,id:"employee-dto-func-employee-dto-variable-birth-date-input-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:bb},Jg={type:n.GenericReference,id:"employee-dto-func-employee-dto-variable-birth-date-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Dn},Cb={id:$g,type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:null,name:"birth_date",description:null,defaultValue:null,index:2,readsValue:qg,parent:Jg},Sg={type:n.GenericReference,id:"employee-dto-func-employee-dto-variable-id-output-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:Ab},Wg={type:n.GenericReference,id:"employee-dto-func-employee-dto-variable-id-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Dn},Vb={id:Ug,type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:null,name:"id",description:"The ID of the employee",defaultValue:null,index:1,readsValue:Sg,parent:Wg},zg={type:n.GenericReference,id:"employee-dto-func-returned-employee-dto-data-type-parent-ref-id",version:"1",entityType:n.ReturnDeclaration,entityId:Eb},Yg={like:!1,inferred:!1,id:"employee-dto-func-returned-employee-dto-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,asType:!1,isList:!1,parent:zg},Hg={type:n.GenericReference,id:"employee-dto-func-returned-employee-dto-parent-ref-id",version:"1",entityType:n.ReturnStatement,entityId:Ib},Kg={type:n.GenericReference,id:"employee-dto-func-returned-employee-dto-reads-value-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Dn},Bb={constant:!0,isError:!1,id:Eb,type:n.ReturnDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Employee DTO",description:"Output the employee data in the format that it will be sent through an HTTP request.",defaultValue:null,dataType:Yg,implements:null,readsValue:Kg,required:!0,index:0,parent:Hg},Xg={type:n.GenericReference,id:"employee-dto-func-return-statement-called-by-ref-id",version:"1",entityType:n.Operation,entityId:Dn},Qg={type:n.GenericReference,id:"employee-dto-func-return-statement-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:bn},_b={type:n.ReturnStatement,id:Ib,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[Bb],calledByError:[],calledByEntry:[],calledBySuccess:[Xg],throws:null,x:0,y:0,parent:Qg},eG={type:n.GenericReference,id:"employee-dto-func-employee-dto-variable-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:bn},tG={type:n.GenericReference,id:"employee-dto-func-employee-dto-variable-called-by-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:rd},iG={constant:!0,required:!0,id:Dn,type:n.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Employee DTO",dataType:null,description:"A variable holding the data of a mapped employee DTO",defaultValue:null,calledByError:[],calledByEntry:[],calledBySuccess:[tG],successCalls:[_b],errorCalls:[],readsValue:null,writesValues:[Bb],inputs:[Vb,Cb,wb,Pb],outputs:[],internalCalls:[],parent:eG,x:0,y:0},rG={type:n.GenericReference,id:"employee-dto-func-manager-variable-id-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:rd},nG={id:Ob,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:mi.properties[0],index:0,writesValues:[Pb],parent:rG},sG={type:n.GenericReference,id:"employee-dto-func-manager-variable-data-type-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:rd},aG={like:!1,inferred:!1,id:"employee-dto-func-manager-variable-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Di,asType:!1,isList:!1,parent:sG},oG={type:n.GenericReference,id:"employee-dto-func-manager-variable-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:Db},dG={type:n.GenericReference,id:"employee-dto-func-manager-variable-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:bn};n.GenericReference,n.VariableDeclaration;const Mb={constant:!0,required:!0,id:rd,type:n.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Manager",description:"A variable holding an inherited manager",defaultValue:null,dataType:aG,calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[iG],errorCalls:[],readsValue:oG,writesValues:[],inputs:[],outputs:[nG],internalCalls:[],parent:dG,x:0,y:0},lG={type:n.GenericReference,id:"employee-dto-func-employee-variable-manager-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Rn},uG={id:Db,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:Di.properties[2],index:3,writesValues:[Mb],parent:lG},pG={type:n.GenericReference,id:"employee-dto-func-employee-variable-department-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Rn},cG={id:Rb,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:Di.properties[0],index:2,writesValues:[wb],parent:pG},fG={type:n.GenericReference,id:"employee-dto-func-employee-variable-birth-date-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Rn},yG={id:bb,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:Yt.properties[1],index:1,writesValues:[Cb],parent:fG},hG={type:n.GenericReference,id:"employee-dto-func-employee-variable-id-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Rn},mG={id:Ab,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:mi.properties[0],index:0,writesValues:[Vb],parent:hG},vG={type:n.GenericReference,id:"employee-dto-func-employee-variable-data-type-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Rn},TG={like:!1,inferred:!1,id:"employee-dto-func-employee-variable-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Di,asType:!1,isList:!1,parent:vG},IG={type:n.GenericReference,id:"employee-dto-func-employee-variable-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:bn},EG={type:n.GenericReference,id:"employee-dto-func-employee-variable-reads-value-ref-id",version:"1",entityType:n.ArgumentDeclaration,entityId:Gu},AG={type:n.GenericReference,id:"employee-dto-func-employee-variable-called-by-id",version:"1",entityType:n.FunctionDeclaration,entityId:bn},Nb={constant:!0,required:!0,id:Rn,type:n.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Company employee",dataType:TG,description:"A variable holding a company employee",calledByError:[],defaultValue:null,calledByEntry:[AG],calledBySuccess:[],successCalls:[Mb],errorCalls:[],readsValue:EG,writesValues:[],inputs:[],outputs:[mG,yG,cG,uG],internalCalls:[],parent:IG,x:0,y:0},bG={type:n.GenericReference,id:"employee-dto-func-declaration-employee-input-declaration-data-type-parent-ref-id",entityId:Gu,version:"1",entityType:n.ArgumentDeclaration},RG={type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,id:"employee-dto-func-declaration-employee-input-declaration-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Di,asType:!1,isList:!1,like:!1,inferred:!1,parent:bG},DG={type:n.GenericReference,id:"employee-dto-func-declaration-employee-input-declaration-parent-ref-id",entityId:bn,version:"1",entityType:n.FunctionDeclaration},OG={constant:!0,type:n.ArgumentDeclaration,id:Gu,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:RG,index:0,writesValues:[Nb],parent:DG},PG={type:n.GenericReference,id:"employee-dto-function-declaration-parent-ref-id",version:"1",entityType:n.Project,entityId:fe},Fu={type:n.FunctionDeclaration,id:bn,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:[OG],calls:[Nb],implements:null,collapsed:!1,private:!1,x:0,y:0,parent:PG},wG={id:"iterate-over-employee-list-continue-statement-employee-dto-output-decl-data-type-parent-ref-id",type:n.GenericReference,entityId:eb,version:"1",entityType:n.ReturnDeclaration},CG={like:!1,inferred:!1,id:"iterate-over-employee-list-continue-statement-employee-dto-output-decl-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,isList:!1,asType:!1,parent:wG},VG={id:"iterate-over-employee-list-continue-statement-employee-dto-output-decl-reads-value-ref-id",type:n.GenericReference,entityId:tb,version:"1",entityType:n.OutputMap},BG={id:"iterate-over-employee-list-continue-statement-employee-dto-output-decl-parent-ref-id",type:n.GenericReference,entityId:ib,version:"1",entityType:n.ContinueStatement},Lb={constant:!0,isError:!1,id:eb,type:n.ReturnDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Employee DTO",description:"The DTO of the employee entity.",defaultValue:null,readsValue:VG,dataType:CG,implements:null,required:!0,index:0,parent:BG},_G={id:"iterate-over-employee-list-continue-statement-called-by-ref-id",type:n.GenericReference,entityId:Qo,version:"1",entityType:n.FunctionCall},MG={id:"iterate-over-employee-list-continue-statement-parent-ref-id",type:n.GenericReference,entityId:ls,version:"1",entityType:n.Loop},NG={id:ib,type:n.ContinueStatement,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,calledByError:[],calledByEntry:[],calledBySuccess:[_G],outputs:[Lb],throws:null,x:0,y:0,parent:MG},LG={id:"iterate-over-employee-list-loop-body-map-employee-dto-function-call-employee-dto-output-map-parent-ref-id",type:n.GenericReference,entityId:Qo,version:"1",entityType:n.FunctionCall},jG={id:tb,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:_b.outputs[0],writesValues:[Lb],index:0,parent:LG},UG={id:"iterate-over-employee-list-loop-body-map-employee-dto-function-call-employee-input-map-reads-value-ref-id",type:n.GenericReference,entityId:$u,version:"1",entityType:n.ArgumentDeclaration},$G={id:"iterate-over-employee-list-loop-body-map-employee-dto-function-call-employee-input-map-parent-ref-id",type:n.GenericReference,entityId:Qo,version:"1",entityType:n.FunctionCall},jb={id:"iterate-over-employee-list-loop-body-map-employee-dto-function-call-employee-input-map-id",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:null,description:null,declaration:Fu.inputs[0],readsValue:UG,index:0,defaultValue:null,parent:$G},gG={id:"iterate-over-employee-list-loop-body-map-employee-dto-function-call-called-by-ref-id",type:n.GenericReference,entityId:ed,version:"1",entityType:n.FunctionDeclaration},GG={id:"iterate-over-employee-list-loop-body-map-employee-dto-function-call-parent-ref-id",type:n.GenericReference,entityId:ed,version:"1",entityType:n.FunctionDeclaration},FG={id:Qo,type:n.FunctionCall,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Fu,inputs:[jb],process:null,outputs:[jG],calledByError:[],calledByEntry:[gG],calledBySuccess:[],successCalls:[NG],errorCalls:[],error:null,x:0,y:0,parent:GG},xG={type:n.GenericReference,id:"iterate-over-employee-list-loop-body-current-employee-argument-declaration-data-type-parent-ref-id",entityId:$u,version:"1",entityType:n.ArgumentDeclaration},kG={like:!1,inferred:!1,id:"iterate-over-employee-list-loop-body-current-employee-argument-declaration-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Di,isList:!1,asType:!1,parent:xG},ZG={id:"iterate-over-employee-list-loop-body-current-employee-argument-declaration-parent-ref-id",type:n.GenericReference,entityId:ed,version:"1",entityType:n.FunctionDeclaration},qG={constant:!0,id:$u,type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Current employee",description:"The current employee entity being processed.",defaultValue:null,dataType:kG,required:!0,implements:uo,index:0,writesValues:[jb],parent:ZG},JG={id:"iterate-over-employee-list-loop-body-parent-ref-id",type:n.GenericReference,entityId:ls,version:"1",entityType:n.Loop},SG={id:ed,type:n.FunctionDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Iteration logic trigger",description:"This function is called once for each iteration of the loop.",inputs:[qG],calls:[FG],implements:js,collapsed:!1,private:!1,index:0,x:0,y:0,parent:JG},WG={id:"iterate-over-employee-list-loop-iteration-list-input-map-parent-ref-id",type:n.GenericReference,entityId:ls,version:"1",entityType:n.Loop},zG={id:"iterate-over-employee-list-loop-iteration-list-input-map-reads-value-ref-id",type:n.GenericReference,entityId:ab,version:"1",entityType:n.OutputMap},Ub={id:"iterate-over-employee-list-loop-iteration-list-input-map-id",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:null,description:null,declaration:Or.inputs[0],defaultValue:null,readsValue:zG,index:0,parent:WG},YG={id:"iterate-over-employee-list-loop-parent-ref-id",type:n.GenericReference,entityId:cr,version:"1",entityType:n.FunctionDeclaration},HG={id:"iterate-over-employee-list-loop-employee-dto-output-map-parent-ref-id",type:n.GenericReference,entityId:ls,version:"1",entityType:n.Loop},KG={id:QA,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:Or.outputs[0],writesValues:[hb],index:0,parent:HG},XG={type:n.GenericReference,id:"iterate-over-employee-list-loop-called-by-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Si},QG={id:ls,type:n.Loop,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Or,inputs:[Ub],successCalls:[gu],errorCalls:[],outputsDeclarations:[],outputs:[KG],body:SG,process:null,calledByError:[],calledByEntry:[],calledBySuccess:[XG],error:null,x:0,y:0,parent:YG},eF={type:n.GenericReference,id:"company-dto-func-bank-account-variable-id-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:id},tF={id:pb,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:mi.properties[0],index:0,writesValues:[fb],parent:eF},iF={type:n.GenericReference,id:"company-dto-func-bank-account-variable-data-type-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:id},rF={like:!1,inferred:!1,id:"company-dto-func-bank-account-variable-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Oi,asType:!1,isList:!1,parent:iF},nF={type:n.GenericReference,id:"company-dto-func-bank-account-variable-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:ub},sF={type:n.GenericReference,id:"company-dto-func-bank-account-variable-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:cr};n.GenericReference,n.VariableDeclaration;const $b={constant:!0,required:!0,id,type:n.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Bank account",description:"A variable holding an inherited bank account",defaultValue:null,dataType:rF,calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[gu],errorCalls:[],readsValue:nF,writesValues:[],inputs:[],outputs:[tF],internalCalls:[],parent:sF,x:0,y:0},aF={type:n.GenericReference,id:"company-dto-func-owner-variable-id-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:td},oF={id:lb,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:mi.properties[0],index:0,defaultValue:null,writesValues:[cb],parent:aF},dF={type:n.GenericReference,id:"company-dto-func-owner-variable-data-type-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:td},lF={like:!1,inferred:!1,id:"company-dto-func-owner-variable-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Oi,asType:!1,isList:!1,parent:dF},uF={type:n.GenericReference,id:"company-dto-func-owner-variable-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:db},pF={type:n.GenericReference,id:"company-dto-func-owner-variable-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:cr};n.GenericReference,n.VariableDeclaration;const gb={constant:!0,required:!0,id:td,type:n.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Owner",dataType:lF,description:"A variable holding an inherited owner",defaultValue:null,calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[gu],errorCalls:[],readsValue:uF,writesValues:[],inputs:[],outputs:[oF],internalCalls:[],parent:pF,x:0,y:0},cF={type:n.GenericReference,id:"company-dto-func-company-variable-owner-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Si},fF={id:db,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:Oi.properties[2],index:4,writesValues:[gb],parent:cF},yF={type:n.GenericReference,id:"company-dto-func-company-variable-bank-account-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Si},hF={id:ub,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:Oi.properties[2],index:3,writesValues:[$b],parent:yF},mF={type:n.GenericReference,id:"company-dto-func-company-variable-name-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Si},vF={id:ob,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:Oi.properties[0],index:2,writesValues:[yb],parent:mF},TF={type:n.GenericReference,id:"company-dto-func-company-variable-employess-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Si},IF={id:ab,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:Oi.properties[3],index:1,writesValues:[Ub],parent:TF},EF={type:n.GenericReference,id:"company-dto-func-company-variable-id-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Si},AF={id:sb,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:mi.properties[0],index:0,writesValues:[mb],parent:EF},bF={type:n.GenericReference,id:"company-dto-func-company-variable-data-type-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Si},RF={like:!1,inferred:!1,id:"company-dto-func-company-variable-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Oi,asType:!1,isList:!1,parent:bF},DF={type:n.GenericReference,id:"company-dto-func-company-variable-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:cr},OF={type:n.GenericReference,id:"company-dto-func-company-variable-reads-value-ref-id",version:"1",entityType:n.ArgumentDeclaration,entityId:Uu},PF={type:n.GenericReference,id:"company-dto-func-company-variable-called-by-id",version:"1",entityType:n.FunctionDeclaration,entityId:cr},Gb={constant:!0,required:!0,id:Si,type:n.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Company",dataType:RF,description:"A variable holding a company",defaultValue:null,calledByError:[],calledByEntry:[PF],calledBySuccess:[],successCalls:[$b,gb,QG],errorCalls:[],readsValue:OF,writesValues:[],inputs:[],outputs:[AF,IF,vF,hF,fF],internalCalls:[],parent:DF,x:0,y:0},wF={type:n.GenericReference,id:"company-dto-func-declaration-company-input-declaration-data-type-parent-ref-id",entityId:Uu,version:"1",entityType:n.ArgumentDeclaration},CF={type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,id:"company-dto-func-declaration-company-input-declaration-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Oi,asType:!1,isList:!1,like:!1,inferred:!1,parent:wF},VF={type:n.GenericReference,id:"company-dto-func-declaration-company-input-declaration-parent-ref-id",entityId:cr,version:"1",entityType:n.FunctionDeclaration},BF={constant:!0,type:n.ArgumentDeclaration,id:Uu,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:CF,index:0,writesValues:[Gb],parent:VF},_F={type:n.GenericReference,id:"company-dto-function-declaration-parent-ref-id",version:"1",entityType:n.Project,entityId:fe},xu={type:n.FunctionDeclaration,id:cr,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:[BF],calls:[Gb],implements:null,index:null,collapsed:!1,private:!1,x:0,y:0,parent:_F},da="exec-in-parallel-operation-call-id",la="exec-sequentially-operation-call-id",Ht="concurrency-and-wait-function-declaration-id",Fb="concurrency-and-wait-return-statement-id",xb="concurrency-and-wait-return-declaration-id",ku="exec-in-parallel-argument-map-id",kb="exec-sequentially-argument-map-id",Zu="wait-for-2-seconds-operation-id",Zb="wait-for-2-seconds-argument-map-id",qu="map-company-dto-function-call-id",qb="map-company-dto-function-call-company-dto-output-map-id",nd="company-dto-variable-one-id",Ju="company-dto-variable-one-instance-id",Jb="company-dto-variable-two-id",MF={type:n.GenericReference,id:"returned-company-dto-data-type-parent-ref-id",version:"1",entityType:n.ReturnDeclaration,entityId:xb},NF={like:!1,inferred:!1,id:"returned-company-dto-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Oi,asType:!1,isList:!1,parent:MF},LF={type:n.GenericReference,id:"returned-company-dto-parent-ref-id",version:"1",entityType:n.ReturnStatement,entityId:Fb},jF={type:n.GenericReference,id:"returned-company-dto-reads-value-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Jb},Sb={constant:!0,isError:!1,id:xb,type:n.ReturnDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Company DTO",description:"Output the company data in the format that it will be sent through an HTTP request.",defaultValue:null,dataType:NF,implements:null,readsValue:jF,required:!0,index:0,parent:LF},UF={type:n.GenericReference,id:"concurrency-and-wait-return-statement-called-by-ref-id",version:"1",entityType:n.Operation,entityId:Zu},$F={type:n.GenericReference,id:"concurrency-and-wait-return-statement-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:Ht},gF={type:n.ReturnStatement,id:Fb,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[Sb],calledByError:[],calledByEntry:[],calledBySuccess:[UF],throws:null,x:0,y:0,parent:$F},GF={type:n.GenericReference,id:"company-dto-variable-two-called-by-ref-id",version:"1",entityType:n.VariableInstance,entityId:Ju},FF={type:n.GenericReference,id:"company-dto-variable-two-reads-value-ref-id",version:"1",entityType:n.VariableInstance,entityId:Ju},xF={type:n.GenericReference,id:"company-dto-variable-two-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:Ht},Wb={constant:!0,required:!0,id:Jb,type:n.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Company DTO",description:null,defaultValue:null,dataType:null,inputs:[],outputs:[],successCalls:[],errorCalls:[],calledByError:[],calledByEntry:[],calledBySuccess:[GF],internalCalls:[],writesValues:[Sb],readsValue:FF,x:0,y:0,parent:xF},kF={type:n.GenericReference,id:"company-dto-variable-one-instance-called-by-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:nd},ZF={type:n.GenericReference,id:"company-dto-variable-one-instance-reads-value-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:nd},qF={type:n.GenericReference,id:"company-dto-variable-one-instance-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:Ht},JF={type:n.GenericReference,id:"company-dto-variable-one-instance-declaration-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:nd},zb={id:Ju,type:n.VariableInstance,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:JF,inputs:[],outputs:[],successCalls:[Wb],errorCalls:[],defaultValue:null,calledByError:[],calledByEntry:[],calledBySuccess:[kF],internalCalls:[],writesValues:[Wb],readsValue:ZF,x:0,y:0,parent:qF},SF={type:n.GenericReference,id:"company-dto-variable-one-called-by-ref-id",version:"1",entityType:n.FunctionCall,entityId:qu},WF={type:n.GenericReference,id:"company-dto-variable-one-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:qb},zF={type:n.GenericReference,id:"company-dto-variable-one-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:Ht},Yb={constant:!0,required:!0,id:nd,type:n.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Company DTO",description:null,defaultValue:null,dataType:null,inputs:[],outputs:[],successCalls:[zb],errorCalls:[],calledByError:[],calledByEntry:[],calledBySuccess:[SF],internalCalls:[],writesValues:[zb],readsValue:WF,x:0,y:0,parent:zF},Hb={type:n.GenericReference,id:"map-company-dto-function-call-company-input-map-parent-ref-id",version:"1",entityType:n.FunctionCall,entityId:qu},YF={id:"map-company-dto-function-call-company-input-map-id",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:xu.inputs[0],name:null,description:null,defaultValue:null,index:0,readsValue:null,parent:Hb},HF={id:qb,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:Tb.outputs[0],writesValues:[Yb],index:0,parent:Hb},KF={id:"map-company-dto-function-call-called-by-ref-id",type:n.GenericReference,version:"1",entityType:n.FunctionDeclaration,entityId:Ht},XF={id:"map-company-dto-function-call-parent-ref-id",type:n.GenericReference,version:"1",entityType:n.FunctionDeclaration,entityId:Ht},QF={id:qu,type:n.FunctionCall,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:xu,successCalls:[Yb],process:null,errorCalls:[],inputs:[YF],outputs:[HF],calledByError:[],calledByEntry:[KF],calledBySuccess:[],parent:XF,x:0,y:0,error:null},ex={type:n.GenericReference,id:"last-timestamp-variable-datatype-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Eu},tx={type:n.GenericReference,id:"last-timestamp-variable-default-value-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Eu},ix={like:!1,inferred:!1,id:"last-timestamp-variable-datatype-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,entity:Gi,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,asType:!1,isList:!1,parent:ex},rx={type:n.GenericReference,id:"last-timestamp-variable-main-project-ref-id",version:"1",entityType:n.Project,entityId:fe},Su={constant:!0,required:!0,id:Eu,type:n.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Last registered current time",description:"A test variable that holds the last current date and time that was registered.",defaultValue:{id:"last-timestamp-variable-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.Date,value:null,autogeneration:{type:vt.CurrentDateAndTime,rangeStart:null,rangeEnd:null},valueAsTypeList:null,valueAsTypeSingle:null,parent:tx},dataType:ix,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],x:0,y:0,readsValue:null,writesValues:[],internalCalls:[],parent:rx},nx={type:n.GenericReference,id:"wait-for-2-seconds-argument-default-value-parent-ref-id",version:"1",entityType:n.InputMap,entityId:Zb},sx={type:n.GenericReference,id:"wait-for-2-seconds-argument-map-parent-ref-id",version:"1",entityType:n.Operation,entityId:Zu},ax={id:Zb,type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:ln,name:null,description:null,readsValue:null,defaultValue:{id:"wait-for-2-seconds-argument-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:2e3,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null,name:L.Number,parent:nx},index:0,parent:sx},ox={type:n.GenericReference,id:"wait-for-2-seconds-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:Ht},dx={type:n.GenericReference,id:"wait-for-2-seconds-called-by-ref-one-id",version:"1",entityType:n.Operation,entityId:la},lx={type:n.GenericReference,id:"wait-for-2-seconds-called-by-ref-two-id",version:"1",entityType:n.Operation,entityId:da},Kb={id:Zu,type:n.Operation,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Vi,inputs:[ax],outputs:[],process:null,successCalls:[gF],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[],calledBySuccess:[dx,lx],error:null,parent:ox},ux={type:n.GenericReference,id:"wait-for-random-amount-argument-default-value-parent-ref-id",version:"1",entityType:n.InputMap,entityId:"wait-for-random-amount-input-map-id"},px={type:n.GenericReference,id:"wait-for-random-amount-argument-map-parent-ref-id",version:"1",entityType:n.Operation,entityId:"wait-for-random-amount-id"},cx={id:"wait-for-random-amount-input-map-id",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:ln,name:null,description:null,readsValue:null,defaultValue:{id:"wait-for-random-amount-argument-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:null,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:{type:vt.Random,rangeStart:1e3,rangeEnd:4e3},name:L.Number,parent:ux},index:0,parent:px},fx={type:n.GenericReference,id:"wait-for-random-amount-parent-ref-id",version:"1",entityType:n.Project,entityId:fe},us={id:"wait-for-random-amount-id",type:n.Operation,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Vi,inputs:[cx],process:null,outputs:[],successCalls:[],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[],calledBySuccess:[],error:null,parent:fx},Wu="list-of-functions-variable-id",yx={type:n.GenericReference,id:"list-of-functions-variable-action-descriptor-dynamic-argument-parent-ref-id",version:"1",entityType:n.ActionDescriptor,entityId:"list-of-functions-variable-action-descriptor-id"},hx={id:"list-of-functions-variable-action-descriptor-dynamic-argument-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Any input value",description:"Any input value that can be passed to the action",defaultValue:null,index:0,required:!1,dataType:null,parent:yx},mx={type:n.GenericReference,id:"list-of-functions-variable-action-descriptor-dynamic-return-parent-ref-id",version:"1",entityType:n.ActionDescriptor,entityId:"list-of-functions-variable-action-descriptor-id"},vx={id:"list-of-functions-variable-action-descriptor-dynamic-return-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Any output value",description:"Any output value that can be returned to the action",defaultValue:null,index:0,required:!1,dataType:null,parent:mx},Tx={type:n.GenericReference,id:"list-of-functions-variable-data-type-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Wu},Ix={type:n.GenericReference,id:"list-of-functions-variable-action-descriptor-parent-ref-id",version:"1",entityType:n.DataType,entityId:"list-of-functions-variable-data-type-id"},Ex={id:"list-of-functions-variable-action-descriptor-id",type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Action to execute",description:"An action of any type, to be executed. It can contain any number of inputs and outputs.",inputs:[hx],error:null,outputs:[vx],parent:Ix},Ax={type:n.GenericReference,id:"list-of-functions-variable-data-type-default-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Wu},bx={like:!1,inferred:!1,id:"list-of-functions-variable-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Ex,asType:!1,isList:!0,parent:Tx},Rx={type:n.GenericReference,id:"list-of-functions-variable-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:Ht};n.GenericReference,n.InputMap;const Dx={type:n.GenericReference,id:"list-of-functions-variable-writes-value-one-ref-id",version:"1",entityType:n.InputMap,entityId:kb},Ox={type:n.GenericReference,id:"list-of-functions-variable-writes-value-two-ref-id",version:"1",entityType:n.InputMap,entityId:ku},Xb={constant:!0,required:!0,id:Wu,type:n.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"List of functions to execute",description:"A list of functions to be executed in parallel",defaultValue:{id:"list-of-functions-variable-data-type-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.ActionDescriptor,value:null,valueAsTypeSingle:null,valueAsTypeList:[us,us,us,us,us],autogeneration:null,parent:Ax},dataType:bx,parent:Rx,readsValue:null,writesValues:[Dx,Ox],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],inputs:[],outputs:[],internalCalls:[],x:0,y:0},Px={type:n.GenericReference,id:"exec-in-parallel-return-map-parent-ref-id",version:"1",entityType:n.Operation,entityId:da},wx={type:n.GenericReference,id:"exec-in-parallel-result-variable-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:Ht},Cx={type:n.GenericReference,id:"exec-in-parallel-result-variable-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:"exec-in-parallel-return-map-id"},Vx={type:n.GenericReference,id:"exec-in-parallel-result-variable-called-by-ref-id",version:"1",entityType:n.Operation,entityId:da},Qb={id:"exec-in-parallel-result-variable-id",type:n.VariableInstance,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Su,readsValue:Cx,writesValues:[],defaultValue:null,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[Vx],successCalls:[],errorCalls:[],internalCalls:[],parent:wx,x:0,y:0},Bx={id:"exec-in-parallel-return-map-id",type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:Cl,writesValues:[Qb],index:0,parent:Px},_x={type:n.GenericReference,id:"exec-in-parallel-argument-map-parent-ref-id",version:"1",entityType:n.Operation,entityId:da},Mx={id:ku,type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:wl,name:null,description:null,readsValue:Xb,defaultValue:null,index:0,parent:_x},Nx={type:n.GenericReference,id:"exec-in-parallel-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:Ht},Lx={type:n.GenericReference,id:"exec-in-parallel-called-by-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:Ht},jx={process:null,id:da,type:n.Operation,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Vi,inputs:[Mx],outputs:[Bx],successCalls:[Kb,Qb],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[Lx],calledBySuccess:[],error:null,parent:Nx},Ux={type:n.GenericReference,id:"exec-sequentially-return-map-parent-ref-id",version:"1",entityType:n.Operation,entityId:la},$x={type:n.GenericReference,id:"exec-sequentially-result-variable-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:Ht},gx={type:n.GenericReference,id:"exec-sequentially-result-variable-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:"exec-sequentially-return-map-id"},Gx={type:n.GenericReference,id:"exec-sequentially-result-variable-called-by-ref-id",version:"1",entityType:n.Operation,entityId:la},eR={id:"exec-sequentially-result-variable-id",type:n.VariableInstance,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Su,readsValue:gx,defaultValue:null,writesValues:[],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[Gx],successCalls:[],errorCalls:[],internalCalls:[],parent:$x,x:0,y:0},Fx={id:"exec-sequentially-return-map-id",type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:Bl,writesValues:[eR],index:0,parent:Ux},xx={type:n.GenericReference,id:"exec-sequentially-argument-map-parent-ref-id",version:"1",entityType:n.Operation,entityId:la},kx={id:kb,type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Vl,name:null,description:null,readsValue:Xb,defaultValue:null,index:0,parent:xx},Zx={type:n.GenericReference,id:"exec-sequentially-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:Ht},qx={type:n.GenericReference,id:"exec-sequentially-called-by-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:Ht},Jx={id:la,type:n.Operation,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:or,inputs:[kx],process:null,outputs:[Fx],successCalls:[Kb,eR],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[qx],calledBySuccess:[],error:null,parent:Zx},Sx={type:n.GenericReference,id:"concurrency-and-wait-parent-ref-id",version:"1",entityType:n.Project,entityId:fe},Wx={type:n.FunctionDeclaration,id:Ht,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:[Jx,jx,QF],implements:null,index:null,collapsed:!1,private:!1,x:0,y:0,parent:Sx},zx={type:n.GenericReference,id:"3521f2c8-a5c0-419c-8808-4fc6a73d0b78",version:"1",entityType:n.ReturnDeclaration,entityId:"e1ec31f0-25ca-42ac-a4c4-c9ec2255f55b"},Yx={like:!1,inferred:!1,id:"ce8b9a30-afe9-4d4f-879f-1677efca2c47",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Oi,isList:!1,asType:!1,parent:zx},Hx={type:n.GenericReference,id:"8ee66e38-b060-474e-a503-594063a8ec24",version:"1",entityType:n.ReturnStatement,entityId:"40a23a98-d3b2-42b1-9652-b33779ad15aa"},Kx={constant:!0,isError:!1,id:"e1ec31f0-25ca-42ac-a4c4-c9ec2255f55b",type:n.ReturnDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Created company",description:"The new company that was created",defaultValue:null,implements:null,dataType:Yx,readsValue:null,required:!0,index:0,parent:Hx},Xx={type:n.GenericReference,id:"9cb3c1e4-7250-4be6-be2a-69c2dd366d6f",version:"1",entityType:n.FunctionDeclaration,entityId:"5059c093-eda2-4efc-b7b4-aaaadd4d44de"},Qx={type:n.GenericReference,id:"c065fcdd-e054-4f95-941c-7eaa65c35d04",version:"1",entityType:n.FunctionDeclaration,entityId:"5059c093-eda2-4efc-b7b4-aaaadd4d44de"},ek={type:n.ReturnStatement,id:"40a23a98-d3b2-42b1-9652-b33779ad15aa",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[Kx],calledByError:[],calledByEntry:[Qx],calledBySuccess:[],throws:null,x:0,y:0,parent:Xx},tk={type:n.GenericReference,id:"312ef836-9e40-4d57-b177-03b7145ed074",version:"1",entityType:n.Project,entityId:fe},ik={type:n.FunctionDeclaration,id:"5059c093-eda2-4efc-b7b4-aaaadd4d44de",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Create new company",description:null,inputs:[],calls:[ek],index:null,implements:null,collapsed:!1,private:!1,x:0,y:0,parent:tk},zu="get-current-date-and-time-func-decl-id",tR="get-current-date-and-time-return-statement-id",Yu="get-current-date-and-time-return-declaration-id",rk="get-current-date-and-time-return-declaration-data-type-id",nk={type:n.GenericReference,id:"get-current-date-and-time-return-declaration-data-type-value-parent-ref-id",version:"1",entityType:n.ReturnDeclaration,entityId:Yu},sk={type:n.GenericReference,id:"get-current-date-and-time-return-declaration-data-type-parent-ref-id",version:"1",entityType:n.ReturnDeclaration,entityId:Yu},ak={type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,id:rk,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Gi,asType:!1,isList:!1,like:!1,inferred:!1,parent:sk},ok={type:n.GenericReference,id:"get-current-date-and-time-return-declaration-parent-ref-id",version:"1",entityType:n.ReturnStatement,entityId:tR};n.ReturnDeclaration,n.LiteralValue,L.Date,vt.CurrentDateAndTime;const dk={type:n.GenericReference,id:"get-current-date-and-time-return-statement-called-by-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:zu},lk={type:n.GenericReference,id:"get-current-date-and-time-return-statement-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:zu};n.ReturnStatement;const uk={type:n.GenericReference,id:"concurrency-and-wait-parent-ref-id",version:"1",entityType:n.Project,entityId:fe},pk={type:n.FunctionDeclaration,id:zu,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Get current date and time",description:"Generates and returns the current date and time at the time of the execution",inputs:[],calls:[],implements:null,index:null,collapsed:!1,private:!1,x:0,y:0,parent:uk},ck={type:n.GenericReference,id:"a2db26be-57f2-48e5-9769-cdbf0d95dc7c",version:"1",entityType:n.VariableDeclaration,entityId:"d0e9f1f3-7e9f-4e1f-8d8e-7b4b3e6c6a6a"},fk={like:!1,inferred:!1,id:"c3e9d5f0-204f-45f9-85f7-e1b56b468388",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,asType:!1,isList:!1,parent:ck},yk={type:n.GenericReference,id:"692122c5-610a-4504-90dd-f5a5202d116c",version:"1",entityType:n.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},hk={type:n.GenericReference,id:"do-math-func-return-one-called-by",version:"1",entityType:n.Operation,entityId:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e"},mk={type:n.GenericReference,id:"6dceb501-be5b-4252-afb4-3c0d08abba33",version:"1",entityType:n.OutputMap,entityId:"64752080-ee0f-4cfe-9897-a0668f2b2aca"},iR={constant:!0,required:!0,type:n.VariableDeclaration,id:"d0e9f1f3-7e9f-4e1f-8d8e-7b4b3e6c6a6a",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Result",dataType:fk,description:null,defaultValue:null,readsValue:mk,writesValues:[],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[hk],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:yk},vk={type:n.GenericReference,id:"5440f523-af38-4981-8035-89d162fe8041",version:"1",entityType:n.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},Tk={type:n.GenericReference,id:"8c482c35-e674-4713-a1dd-63c3d13b611c",version:"1",entityType:n.OutputMap,entityId:"64752080-ee0f-4cfe-9897-a0668f2b2aca"},Ik={type:n.GenericReference,id:"c0a299cd-5869-4930-8cf0-90e3ceb8a903",version:"1",entityType:n.VariableDeclaration,entityId:"46b2fe23-b417-4887-a35d-09b186679172"},Ek={like:!1,inferred:!1,id:"51c0c1df-2ee3-41df-ae52-ac512d8cf795",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,isList:!1,asType:!1,parent:Ik},Ak={type:n.GenericReference,id:"do-math-func-return-two-called-by",version:"1",entityType:n.Operation,entityId:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e"},rR={constant:!0,required:!0,type:n.VariableDeclaration,id:"46b2fe23-b417-4887-a35d-09b186679172",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Total",description:null,defaultValue:null,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[Ak],successCalls:[],errorCalls:[],dataType:Ek,readsValue:Tk,writesValues:[],internalCalls:[],parent:vk,x:0,y:0},nR="do-math-return-statement-id",Hu="do-math-return-declaration-id",bk={type:n.GenericReference,id:"do-math-func-var-to-return-one-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:"do-math-func-var-to-return-one-id"},Rk={like:!1,inferred:!1,id:"do-math-func-var-to-return-one-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,asType:!1,isList:!1,parent:bk},Dk={type:n.GenericReference,id:"do-math-func-decl-ref-two-id",version:"1",entityType:n.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},Ok={type:n.GenericReference,id:"do-math-func-var-to-return-one-map-ref-id",version:"1",entityType:n.ReturnDeclaration,entityId:Hu},Pk={constant:!0,required:!0,type:n.VariableDeclaration,id:"do-math-func-var-to-return-one-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:null,name:"Fixed result",defaultValue:null,dataType:Rk,readsValue:null,writesValues:[Ok],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:Dk},wk={type:n.GenericReference,id:"96ec244e-594b-45f7-802b-6dc3056920f6",version:"1",entityType:n.ReturnStatement,entityId:nR},Ck={type:n.GenericReference,id:"d120c0cc-9d13-4e45-90e2-4e1ee825ca46",version:"1",entityType:n.ReturnDeclaration,entityId:Hu},Vk={like:!1,inferred:!1,id:"da91aa23-9985-49ac-a8bf-9d623ba1ba8f",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,isList:!1,asType:!1,parent:Ck},Bk={constant:!0,isError:!1,id:Hu,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.ReturnDeclaration,name:"Result",description:null,implements:null,defaultValue:null,dataType:Vk,readsValue:Pk,required:!0,index:0,parent:wk},_k={type:n.GenericReference,id:"57fd93e4-93a1-484e-82eb-4dd15d2d0e24",version:"1",entityType:n.Operation,entityId:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e"},Mk={type:n.GenericReference,id:"0a86e8d5-ab21-476e-a482-b928cbf351e3",version:"1",entityType:n.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},Nk={type:n.ReturnStatement,id:nR,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[Bk],calledByError:[],calledByEntry:[],calledBySuccess:[_k],parent:Mk,throws:null,x:0,y:0},sR={type:n.GenericReference,id:"6e4d776e-6af2-4321-b630-c78110fd677c",version:"1",entityType:n.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},Lk={type:n.GenericReference,id:"5b60955b-2486-40b6-bb24-ffd97ccd8902",version:"1",entityType:n.Operation,entityId:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e"},jk={type:n.GenericReference,id:"1a49923f-bc6f-453f-a438-e74e5475c2a9",version:"1",entityType:n.Operation,entityId:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e"},Uk={type:n.GenericReference,id:"02bfde0a-b757-4072-9613-6e9c7c9a424a",version:"1",entityType:n.ArgumentDeclaration,entityId:"d8895765-f705-457e-85fa-25d130926769"},aR={id:"928953b0-0e3f-4d8c-ae5a-84620b4b8c68",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.InputMap,declaration:yl,name:null,description:null,readsValue:Uk,defaultValue:null,index:0,parent:jk},$k={id:"64752080-ee0f-4cfe-9897-a0668f2b2aca",type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:vl,writesValues:[iR,rR],index:0,parent:Lk},gk={type:n.GenericReference,id:"d235a7f6-07ff-4f35-98d2-8f42dd59cf9f",version:"1",entityType:n.Operation,entityId:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e"},Gk={id:"8827e8e9-9381-4ad7-8f61-5419c23c9136",type:n.GenericReference,version:"1",entityType:n.VariableDeclaration,entityId:"72a338d8-0183-4ca2-8760-227517854595"},oR={id:"a5525249-0eb5-472b-97bc-5e4cc0d75aee",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.InputMap,declaration:hl,name:null,description:null,readsValue:Gk,defaultValue:null,index:1,parent:gk},Fk={type:n.Operation,id:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e",declaration:Ya,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,inputs:[aR,oR],outputs:[$k],calledByError:[],calledByEntry:[sR],calledBySuccess:[],process:null,successCalls:[Nk,iR,rR],errorCalls:[],parent:sR,error:null,x:0,y:0},xk={type:n.GenericReference,id:"a2c40226-2270-4963-a865-c777ba79c551",version:"1",entityType:n.VariableDeclaration,entityId:"72a338d8-0183-4ca2-8760-227517854595"},kk={id:"f47731b3-f278-4ab5-aeb2-24519c1119fb",type:n.GenericReference,entityId:"72a338d8-0183-4ca2-8760-227517854595",version:"1",entityType:n.ArgumentDeclaration},dR={like:!1,inferred:!1,id:"a350a9e9-25ee-477f-a83d-9e98ed2451662",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,isList:!1,asType:!1,parent:kk},Zk={type:n.GenericReference,id:"5f5d8dd0-7f3b-40cd-9f84-83d976887eaf",version:"1",entityType:n.ArgumentDeclaration,entityId:"649bf0a4-6532-44aa-9818-a03d1c6564e9"},qk={type:n.GenericReference,id:"ca018d0f-a8b3-4c7e-a408-c8b372d04aff",version:"1",entityType:n.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},Jk={type:n.GenericReference,id:"do-math-func-var-called-by-ref",version:"1",entityType:n.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},lR={constant:!0,required:!0,id:"72a338d8-0183-4ca2-8760-227517854595",type:n.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Z",description:null,defaultValue:{id:"do-math-func-argument-two-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:1,name:L.Number,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null,parent:xk},dataType:dR,inputs:[],outputs:[],calledByError:[],calledByEntry:[Jk],calledBySuccess:[],successCalls:[],errorCalls:[],readsValue:Zk,writesValues:[oR],internalCalls:[],x:0,y:0,parent:qk},Sk={version:"1",entityType:n.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b",type:n.GenericReference,id:"af0cf105-4075-425f-aecc-b25d3600fcc4"},Wk={constant:!0,id:"649bf0a4-6532-44aa-9818-a03d1c6564e9",type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Z",description:"The number to add",defaultValue:null,dataType:dR,implements:null,writesValues:[lR],required:!0,index:1,parent:Sk},zk={type:n.GenericReference,id:"56953b5d-3e43-4dea-a62c-f3e868ba81bb",version:"1",entityType:n.Project,entityId:fe},Yk={id:"868defc8-5c95-48ed-942d-257e8b9b9b00",type:n.GenericReference,version:"1",entityType:n.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},Hk={type:n.GenericReference,id:"35167664-a793-49f1-9eaf-fb57eac30897",version:"1",entityType:n.VariableDeclaration,entityId:"d8895765-f705-457e-85fa-25d130926769"},Kk={id:"d47ceef6-be6f-40f1-a7b3-c73c8d8a6c6a",type:n.GenericReference,entityId:"d8895765-f705-457e-85fa-25d130926769",version:"1",entityType:n.ArgumentDeclaration},Xk={like:!1,inferred:!1,id:"55b12914-91b1-48b7-9a3e-9c5d0d2a2ec2",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,isList:!1,asType:!1,parent:Kk},Qk={constant:!0,id:"d8895765-f705-457e-85fa-25d130926769",type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"N",dataType:Xk,description:"The number to add",implements:null,defaultValue:{id:"do-math-func-argument-one-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:5,name:L.Number,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null,parent:Hk},writesValues:[aR],required:!0,index:0,parent:Yk},e9={type:n.FunctionDeclaration,id:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Do math",description:"This function does math",inputs:[Qk,Wk],calls:[Fk,lR],implements:null,index:null,collapsed:!1,private:!1,x:0,y:0,parent:zk},Kt="replace-bank-account-in-company-func-declaration-id",Ku="company-entity-to-modify-arg-declaration-id",Xu="account-number-to-create-arg-decl-id",ps="company-main-variable-id",cs="search-person-by-id-id",uR="new-bank-account-owner-arg-decl-id",pR="search-person-by-id-output-declaration-id",Qu="search-person-by-id-output-entity-map-id",ua="person-not-empty-condition-id",sd="create-new-bank-account-instance-operation-id",cR="create-new-bank-account-instance-operation-output-entity-map-id",fR="company-bank-account-output-map-id",ep="old-bank-account-var-declaration-id",yR="old-bank-account-var-instance-id",hR="company-variable-instance-id",tp="delete-bank-account-internal-call-id",pa="new-bank-account-data-variable-declaration-id",t9={type:n.GenericReference,id:"company-variable-instance-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:Kt},i9={type:n.GenericReference,id:"company-variable-instance-called-by-ref-id",version:"1",entityType:n.InternalCall,entityId:tp},r9={type:n.GenericReference,id:"company-variable-instance-declaration-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:ps},n9={type:n.GenericReference,id:"bank-account-input-map-parent-ref-id",version:"1",entityType:n.VariableInstance,entityId:hR},s9={type:n.GenericReference,id:"bank-account-input-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:cR},mR={type:n.InputMap,id:"bank-account-input-map-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,readsValue:s9,declaration:Pu,name:null,description:null,index:0,defaultValue:null,parent:n9},a9={type:n.VariableInstance,id:hR,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:r9,inputs:[mR],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[i9],successCalls:[],errorCalls:[],internalCalls:[],parent:t9,readsValue:null,writesValues:[],x:0,y:0},o9={type:n.GenericReference,id:"bank-account-variable-data-type-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:ps},d9={type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,id:"bank-account-variable-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:as,asType:!1,isList:!1,like:!1,inferred:!1,parent:o9},l9={type:n.GenericReference,id:"bank-account-variable-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:fR},u9={type:n.GenericReference,id:"bank-account-variable-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:Kt},p9={type:n.GenericReference,id:"bank-account-variable-called-by-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:ps},c9={type:n.GenericReference,id:"delete-bank-account-internal-call-called-by-ref-id",version:"1",entityType:n.Operation,entityId:sd};n.GenericReference,n.VariableInstance;const f9={type:n.GenericReference,id:"delete-bank-account-internal-call-called-by-ref-two-id",version:"1",entityType:n.VariableDeclaration,entityId:ep},y9={type:n.GenericReference,id:"old-bank-account-variable-trigger-delete-decl-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:ep},h9={type:n.GenericReference,id:"bank-account-variable-parent-ref-two-id",version:"1",entityType:n.FunctionDeclaration,entityId:Kt},m9={type:n.GenericReference,id:"old-bank-account-variable-trigger-delete-internal-call-ref-id",version:"1",entityType:n.InternalCall,entityId:tp},v9={type:n.VariableInstance,id:yR,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:y9,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],internalCalls:[m9],errorCalls:[],parent:h9,readsValue:null,writesValues:[],x:0,y:0},vR={process:null,type:n.InternalCall,id:tp,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:eu,index:0,successCalls:[a9],errorCalls:[],inputs:[],outputs:[],error:null,calledByError:[],calledByEntry:[],calledBySuccess:[c9,f9],parent:v9},TR={constant:!0,required:!0,type:n.VariableDeclaration,id:ep,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:d9,defaultValue:null,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[p9],successCalls:[vR],internalCalls:[],errorCalls:[],parent:u9,readsValue:l9,writesValues:[],x:0,y:0},T9={type:n.GenericReference,id:"company-variable-declaration-data-type-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:ps},I9={type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,id:"company-variable-declaration-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Oi,asType:!1,isList:!1,like:!1,inferred:!1,parent:T9},E9={type:n.GenericReference,id:"company-variable-declaration-reads-value-ref-id",version:"1",entityType:n.ArgumentDeclaration,entityId:Ku},A9={type:n.GenericReference,id:"company-variable-declaration-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:Kt},b9={type:n.GenericReference,id:"company-variable-declaration-called-by-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:Kt},R9={type:n.GenericReference,id:"company-bank-account-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:ps},D9={id:fR,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.OutputMap,defaultValue:null,declaration:Pu,index:0,parent:R9,writesValues:[TR]},IR={constant:!0,required:!0,type:n.VariableDeclaration,id:ps,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:I9,inputs:[],outputs:[D9],calledByError:[],calledByEntry:[b9],calledBySuccess:[],successCalls:[TR],errorCalls:[],parent:A9,internalCalls:[],readsValue:E9,writesValues:[],x:0,y:0},O9={type:n.GenericReference,id:"create-new-bank-account-account-owner-dynamic-input-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:pa},P9={id:"create-new-bank-account-account-owner-dynamic-input-map-reads-value-ref-id",type:n.GenericReference,version:"1",entityType:n.OutputMap,entityId:Qu},ER={id:"create-new-bank-account-account-owner-dynamic-input-map-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.InputMap,declaration:null,name:"Account owner",description:null,readsValue:P9,index:1,defaultValue:null,parent:O9},w9={id:"create-new-bank-account-account-number-dynamic-input-map-reads-value-ref-id",type:n.GenericReference,version:"1",entityType:n.ArgumentDeclaration,entityId:Xu},C9={type:n.GenericReference,id:"create-new-bank-account-account-number-dynamic-input-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:pa},AR={id:"create-new-bank-account-account-number-dynamic-input-map-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.InputMap,declaration:null,name:"Account number",description:null,readsValue:w9,defaultValue:null,index:0,parent:C9},bR={type:n.GenericReference,id:"create-new-bank-account-instance-operation-entity-to-create-input-map-parent-ref-id",version:"1",entityType:n.Operation,entityId:sd},V9={id:"create-new-bank-account-instance-operation-entity-to-create-input-map-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.InputMap,declaration:un.inputs[0],name:null,description:null,index:0,readsValue:null,defaultValue:{id:"create-new-bank-account-instance-operation-entity-to-create-input-map-default-value-id",type:n.LiteralValue,name:L.EntityTemplate,value:null,valueAsTypeSingle:as,valueAsTypeList:null,autogeneration:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,parent:{entityId:"create-new-bank-account-instance-operation-entity-to-create-input-map-id",entityType:n.InputMap,version:"1",id:"create-new-bank-account-instance-operation-entity-to-create-input-map-parent-ref-id",type:n.GenericReference}},parent:bR},B9={type:n.GenericReference,id:"create-new-bank-account-instance-operation-entity-data-input-map-reads-value-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:pa},RR={id:"create-new-bank-account-instance-operation-entity-data-input-map-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.InputMap,declaration:un.inputs[1],name:null,description:null,index:1,readsValue:B9,defaultValue:null,parent:bR},_9={type:n.GenericReference,id:"create-new-bank-account-instance-operation-output-entity-map-parent-ref-id",version:"1",entityType:n.Operation,entityId:sd},M9={id:cR,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.OutputMap,defaultValue:null,declaration:un.outputs[0],index:0,writesValues:[mR],parent:_9},N9={type:n.GenericReference,id:"create-new-bank-account-instance-operation-called-by-ref-id",version:"1",entityType:n.Condition,entityId:ua},L9={type:n.GenericReference,id:"create-new-bank-account-instance-operation-called-by-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:pa},j9={type:n.GenericReference,id:"create-new-bank-account-instance-operation-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:Kt},DR={process:null,id:sd,type:n.Operation,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:un,inputs:[V9,RR],error:null,outputs:[M9],successCalls:[vR],errorCalls:[],calledByError:[],calledByEntry:[],calledBySuccess:[L9,N9],parent:j9,x:0,y:0},U9={type:n.GenericReference,id:"new-bank-account-data-variable-declaration-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:Kt},$9={type:n.GenericReference,id:"create-new-bank-account-instance-operation-called-by-ref-id",version:"1",entityType:n.Condition,entityId:ua},g9={constant:!0,required:!0,id:pa,type:n.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,inputs:[AR,ER],dataType:null,name:"New bank Account's data",description:null,readsValue:null,outputs:[],writesValues:[RR],successCalls:[DR],errorCalls:[],internalCalls:[],calledByError:[],calledBySuccess:[$9],calledByEntry:[],x:0,y:0,parent:U9},G9={id:"person-not-found-thrown-error-datatype-default-value-parent-ref-id",type:n.GenericReference,entityId:"person-not-found-thrown-error-id",version:"1",entityType:n.ReturnDeclaration},F9={id:"person-not-found-thrown-error-datatype-parent-ref-id",type:n.GenericReference,entityId:"person-not-found-thrown-error-id",version:"1",entityType:n.ReturnDeclaration},x9={like:!1,inferred:!1,id:"person-not-found-thrown-error-datatype-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ae,isList:!1,asType:!1,parent:F9},k9={id:"person-not-found-thrown-error-parent-ref-id",type:n.GenericReference,entityId:"person-not-found-error-return-statement-id",version:"1",entityType:n.ReturnStatement},Z9={constant:!0,isError:!0,id:"person-not-found-thrown-error-id",type:n.ReturnDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,dataType:x9,name:"Person not found error",description:"If the person entity was not found this error is outputted",defaultValue:{id:"person-not-found-thrown-error-datatype-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:"Person not found",name:L.String,parent:G9,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null},parent:k9,implements:null,required:!0,index:0,readsValue:null},q9={id:"person-not-found-error-return-statement-called-by-ref-id",type:n.GenericReference,entityId:ua,version:"1",entityType:n.Condition},J9={id:"person-not-found-error-return-statement-parent-ref-id",type:n.GenericReference,entityId:Kt,version:"1",entityType:n.FunctionDeclaration},S9={id:"person-not-found-error-return-statement-id",type:n.ReturnStatement,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,throws:Z9,outputs:[],calledBySuccess:[],calledByError:[q9],calledByEntry:[],x:0,y:0,parent:J9},W9={type:n.GenericReference,id:"person-not-empty-condition-called-by-ref-id",version:"1",entityType:n.Search,entityId:cs},z9={type:n.GenericReference,id:"person-not-empty-condition-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:Kt},Y9={type:n.GenericReference,id:"person-entity-to-check-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:Qu},H9={type:n.GenericReference,id:"person-not-empty-condition-ref-two-id",version:"1",entityType:n.Condition,entityId:ua},OR={id:"person-entity-to-check-map-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.InputMap,declaration:mn.inputs[0],name:null,description:null,readsValue:Y9,index:0,defaultValue:null,parent:H9},K9={type:n.Condition,id:ua,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:mn,inputs:[OR],calledByError:[],calledByEntry:[],calledBySuccess:[W9],successCalls:[g9,DR],errorCalls:[S9],x:0,y:0,parent:z9},X9={type:n.GenericReference,id:"search-person-by-id-output-entity-declaration-datatype-parent-ref-id",version:"1",entityType:n.ValueDescriptor,entityId:pR},Q9={like:!1,inferred:!1,id:"search-person-by-id-output-entity-declaration-datatype-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,asType:!1,entity:Yt,parent:X9},e8={type:n.GenericReference,id:"search-person-by-id-output-entity-declaration-parent-ref-id",version:"1",entityType:n.Search,entityId:cs},PR={id:pR,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,dataType:Q9,name:"Found person",description:"The person entity that was found",parent:e8,required:!0,index:0},t8={type:n.GenericReference,id:"search-person-by-id-output-entity-map-parent-ref-id",version:"1",entityType:n.Search,entityId:cs},i8={type:n.OutputMap,id:Qu,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:PR,parent:t8,writesValues:[OR,ER],index:0},r8={id:"search-person-by-id-input-declaration-datatype-parent-ref-id",type:n.GenericReference,entityId:"search-person-by-id-input-declaration-id",version:"1",entityType:n.ArgumentDeclaration};n.DataType;const n8={type:n.GenericReference,id:"search-person-by-id-input-declaration-parent-ref-id",version:"1",entityType:n.Search,entityId:cs},wR={id:"search-person-by-id-input-declaration-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,dataType:null,defaultValue:null,name:"Person ID",description:"The unique identifier (ID) property of the person entity",parentRelationType:N.FixedArguments,index:0,required:!0,parent:n8},s8={type:n.GenericReference,id:"search-person-by-id-input-map-parent-ref-id",version:"1",entityType:n.Search,entityId:cs},a8={id:"search-person-by-id-input-map-reads-value-ref-id",type:n.GenericReference,entityId:uR,version:"1",entityType:n.ArgumentDeclaration},CR={type:n.InputMap,id:"search-person-by-id-input-map",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:wR,name:null,description:null,readsValue:a8,defaultValue:null,parent:s8,index:0},o8="SELECT * FROM Person WHERE id = your_id;",d8={type:n.GenericReference,id:"search-person-by-id-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:Kt},l8={type:n.GenericReference,id:"search-person-by-id-called-by-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:Kt},u8={type:n.Search,id:cs,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:o8,inputsDeclarations:[wR],inputs:[CR],outputsDeclarations:[PR],outputs:[i8],calledByError:[],calledByEntry:[l8],calledBySuccess:[],error:null,successCalls:[K9],errorCalls:[],parent:d8,x:0,y:0};n.GenericReference,n.DataType;const p8={id:"account-number-to-create-arg-decl-data-type-parent-ref-id",type:n.GenericReference,entityId:Xu,version:"1",entityType:n.ArgumentDeclaration},c8={like:!1,inferred:!1,id:"account-number-to-create-arg-decl-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ae,isList:!1,asType:!1,parent:p8},f8={version:"1",entityType:n.FunctionDeclaration,entityId:Kt,type:n.GenericReference,id:"account-number-to-create-arg-decl-parent-ref-id"},y8={constant:!0,id:Xu,type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Account number",description:"The account number of the new bank account entity",defaultValue:null,dataType:c8,implements:null,writesValues:[AR],required:!0,index:1,parent:f8};n.GenericReference,n.DataType;const h8={id:"new-bank-account-owner-arg-decl-data-type-parent-ref-id",type:n.GenericReference,entityId:"new-bank-account-owner-arg-decl-id",version:"1",entityType:n.ArgumentDeclaration},m8={like:!1,inferred:!1,id:"new-bank-account-owner-arg-decl-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:sr,isList:!1,asType:!1,parent:h8},v8={version:"1",entityType:n.FunctionDeclaration,entityId:Kt,type:n.GenericReference,id:"new-bank-account-owner-arg-decl-parent-ref-id"},T8={constant:!0,id:uR,type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"New account owner ID",description:"If it has changed, this is the new person entity, that owns of the bank account",defaultValue:null,dataType:m8,implements:null,writesValues:[CR],required:!1,index:1,parent:v8},I8={type:n.GenericReference,id:"replace-bank-account-in-company-parent-ref",version:"1",entityType:n.Project,entityId:fe},E8={type:n.GenericReference,id:"company-entity-to-modify-parent-ref",version:"1",entityType:n.FunctionDeclaration,entityId:Kt};n.GenericReference,n.DataType;const A8={id:"d47ceef6-be6f-40f1-a7b3-c73c8d8a6c6a",type:n.GenericReference,entityId:Ku,version:"1",entityType:n.ArgumentDeclaration},b8={like:!1,inferred:!1,id:"company-entity-to-modify-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,isList:!1,asType:!1,parent:A8},R8={constant:!0,id:Ku,type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Company",defaultValue:null,dataType:b8,implements:null,description:"The company to replace the bank account for",writesValues:[IR],required:!0,index:0,parent:E8},D8={type:n.FunctionDeclaration,id:Kt,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:[R8,y8,T8],index:null,implements:null,calls:[u8,IR],collapsed:!1,private:!1,x:0,y:0,parent:I8},O8={type:n.GenericReference,id:"e0a937bd-3a85-4037-a973-916985b9f94b",version:"1",entityType:n.Project,entityId:"7268bc97-c0e6-4d88-b37e-d3241b5f77a6"},P8={type:n.FunctionDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,id:"6bedb217-f844-4332-af72-9626b2a32511",name:"Some library main function",description:null,inputs:[],calls:[],implements:null,collapsed:!0,index:null,private:!1,parent:O8,x:0,y:0},w8={type:n.GenericReference,id:"948e6869-ae5b-4914-bea0-b9f02ad6a014",version:"1",entityType:n.Project,entityId:fe},C8={type:n.InstalledProject,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,id:"7268bc97-c0e6-4d88-b37e-d3241b5f77a6",name:"Third Party Installed Project",description:null,functions:[P8],events:[],implements:null,parent:w8,x:0,y:0},ip="global-counted-test-loop-id",VR="global-counted-test-loop-body-id",BR="global-counted-test-loop-body-current-iteration-value-argument-declaration-id",V8={type:n.GenericReference,id:"global-counted-test-loop-body-current-iteration-value-argument-declaration-data-type-parent-ref-id",entityId:BR,version:"1",entityType:n.ArgumentDeclaration},B8={like:!1,inferred:!1,id:"global-counted-test-loop-body-current-iteration-value-argument-declaration-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,isList:!1,asType:!1,parent:V8},_8={id:"global-counted-test-loop-body-current-iteration-value-argument-declaration-parent-ref-id",type:n.GenericReference,entityId:VR,version:"1",entityType:n.FunctionDeclaration},M8={constant:!0,id:BR,type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Current value",description:"The current value being processed.",defaultValue:null,dataType:B8,implements:xl,required:!0,index:0,writesValues:[],parent:_8},N8={id:"global-counted-test-loop-body-parent-ref-id",type:n.GenericReference,entityId:ip,version:"1",entityType:n.Loop},L8={id:VR,type:n.FunctionDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Iteration logic trigger",description:"This function is called once for each iteration of the loop.",inputs:[M8],calls:[],implements:po,collapsed:!1,private:!1,index:0,x:0,y:0,parent:N8},fs="random-company-employee-test-variable-id",rp="manager-global-variable-id",_R="global-user-instance-id",Wi="employee-mapped-dto-variable-id",On="employee-mapped-dto-variable-instance-id",MR="random-employee-id-output-map-id",NR="random-employee-birth-date-output-map-id",LR="random-employee-department-output-map-id",jR="random-employee-manager-output-map-id",UR="manager-global-id-output-map-id",$R="global-user-instance-id-output-map-id",j8="employee-mapped-dto-requester-id-input-map-id",gR="employee-mapped-dto-now-timestamp-input-map-id",U8="employee-mapped-dto-id-input-map-id",$8="employee-mapped-dto-birth-date-input-map-id",g8="employee-mapped-dto-department-input-map-id",G8="employee-mapped-dto-manager-input-map-id",F8={id:"global-counted-test-loop-iteration-number-input-map-parent-ref-id",type:n.GenericReference,entityId:ip,version:"1",entityType:n.Loop};n.GenericReference,n.VariableDeclaration;const x8={id:"global-counted-test-loop-iteration-number-input-map-id",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:null,description:null,declaration:Us.inputs[0],defaultValue:null,readsValue:null,index:0,parent:F8},k8={id:"global-counted-test-loop-parent-ref-id",type:n.GenericReference,entityId:fe,version:"1",entityType:n.Project},Z8={id:"global-counted-test-loop-called-by-success-ref-id",type:n.GenericReference,entityId:On,version:"1",entityType:n.VariableDeclaration},GR={id:ip,type:n.Loop,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Us,inputs:[x8],successCalls:[],errorCalls:[],outputsDeclarations:[],outputs:[],process:null,body:L8,calledByError:[],calledByEntry:[],calledBySuccess:[Z8],error:null,x:0,y:0,parent:k8},np="global-object-keys-test-loop-id",FR="global-object-keys-test-loop-body-id",xR="global-object-keys-test-loop-body-current-iteration-value-argument-declaration-id",q8={type:n.GenericReference,id:"global-object-keys-test-loop-body-current-iteration-value-argument-declaration-data-type-parent-ref-id",entityId:xR,version:"1",entityType:n.ArgumentDeclaration},J8={like:!1,inferred:!1,id:"global-object-keys-test-loop-body-current-iteration-value-argument-declaration-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,isList:!1,asType:!1,parent:q8},S8={id:"global-object-keys-test-loop-body-current-iteration-value-argument-declaration-parent-ref-id",type:n.GenericReference,entityId:FR,version:"1",entityType:n.FunctionDeclaration},W8={constant:!0,id:xR,type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Current value",description:"The current value being processed.",defaultValue:null,dataType:J8,implements:Ul,required:!0,index:0,writesValues:[],parent:S8},z8={id:"global-object-keys-test-loop-body-parent-ref-id",type:n.GenericReference,entityId:np,version:"1",entityType:n.Loop},Y8={id:FR,type:n.FunctionDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Iteration logic trigger",description:"This function is called once for each iteration of the loop.",inputs:[W8],calls:[],implements:Sn,collapsed:!1,private:!1,index:0,x:0,y:0,parent:z8},H8={id:"global-object-keys-test-loop-iteration-object-input-map-parent-ref-id",type:n.GenericReference,entityId:np,version:"1",entityType:n.Loop},K8={id:"global-object-keys-test-loop-iteration-object-input-map-reads-value-ref-id",type:n.GenericReference,entityId:Wi,version:"1",entityType:n.VariableDeclaration},kR={id:"global-object-keys-test-loop-iteration-object-input-map-id",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:null,description:null,declaration:Sn.inputs[0],defaultValue:null,readsValue:K8,index:0,parent:H8},X8={id:"global-object-keys-test-loop-parent-ref-id",type:n.GenericReference,entityId:fe,version:"1",entityType:n.Project},Q8={id:"global-object-keys-test-loop-called-by-success-ref-two-id",type:n.GenericReference,entityId:On,version:"1",entityType:n.VariableDeclaration},e6={id:"global-object-keys-test-loop-called-by-success-ref-one-id",type:n.GenericReference,entityId:Wi,version:"1",entityType:n.VariableDeclaration},sp={id:np,type:n.Loop,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Sn,inputs:[kR],successCalls:[],errorCalls:[],outputsDeclarations:[],outputs:[],process:null,body:Y8,calledByError:[],calledByEntry:[],calledBySuccess:[e6,Q8],error:null,x:0,y:0,parent:X8},ap="global-object-values-test-loop-id",ZR="global-object-values-test-loop-body-id",qR="global-object-values-test-loop-body-current-iteration-value-argument-declaration-id",t6={type:n.GenericReference,id:"global-object-values-test-loop-body-current-iteration-value-argument-declaration-data-type-parent-ref-id",entityId:qR,version:"1",entityType:n.ArgumentDeclaration},i6={like:!1,inferred:!1,id:"global-object-values-test-loop-body-current-iteration-value-argument-declaration-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,isList:!1,asType:!1,parent:t6},r6={id:"global-object-values-test-loop-body-current-iteration-value-argument-declaration-parent-ref-id",type:n.GenericReference,entityId:ZR,version:"1",entityType:n.FunctionDeclaration},n6={constant:!0,id:qR,type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Current value",description:"The current value being processed.",defaultValue:null,dataType:i6,implements:gl,required:!0,index:0,writesValues:[],parent:r6},s6={id:"global-object-values-test-loop-body-parent-ref-id",type:n.GenericReference,entityId:ap,version:"1",entityType:n.Loop},a6={id:ZR,type:n.FunctionDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Iteration logic trigger",description:"This function is called once for each iteration of the loop.",inputs:[n6],calls:[],implements:Wn,collapsed:!1,private:!1,index:0,x:0,y:0,parent:s6},o6={id:"global-object-values-test-loop-iteration-object-input-map-parent-ref-id",type:n.GenericReference,entityId:ap,version:"1",entityType:n.Loop},d6={id:"global-object-values-test-loop-iteration-object-input-map-reads-value-ref-id",type:n.GenericReference,entityId:On,version:"1",entityType:n.VariableDeclaration},JR={id:"global-object-values-test-loop-iteration-object-input-map-id",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:null,description:null,declaration:Wn.inputs[0],defaultValue:null,readsValue:d6,index:0,parent:o6},l6={id:"global-object-values-test-loop-parent-ref-id",type:n.GenericReference,entityId:fe,version:"1",entityType:n.Project},u6={id:"global-object-values-test-loop-called-by-success-ref-id",type:n.GenericReference,entityId:On,version:"1",entityType:n.VariableInstance},SR={id:ap,type:n.Loop,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Wn,inputs:[JR],successCalls:[],errorCalls:[],outputsDeclarations:[],outputs:[],process:null,body:a6,calledByError:[],calledByEntry:[],calledBySuccess:[u6],error:null,x:0,y:0,parent:l6},op="global-test-iterate-over-string-loop-id",dp="global-test-iterate-over-string-loop-body-id",ad="global-test-iterate-over-string-loop-body-current-iteration-value-argument-declaration-id",WR="global-test-iterate-over-string-loop-iteration-list-input-map-id",p6={type:n.GenericReference,id:"global-test-iterate-over-string-loop-body-current-iteration-value-argument-declaration-data-type-parent-ref-id",entityId:ad,version:"1",entityType:n.ArgumentDeclaration},c6={like:!1,inferred:!1,id:"global-test-iterate-over-string-loop-body-current-iteration-value-argument-declaration-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,isList:!1,asType:!1,parent:p6},f6={id:"global-test-iterate-over-string-loop-body-current-iteration-value-argument-declaration-parent-ref-id",type:n.GenericReference,entityId:dp,version:"1",entityType:n.FunctionDeclaration},y6={constant:!0,id:ad,type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Current character",description:"The current character value being processed.",defaultValue:null,dataType:c6,implements:Ll,required:!0,index:1,writesValues:[],parent:f6},h6={type:n.GenericReference,id:"global-test-iterate-over-string-loop-body-current-iteration-value-argument-declaration-data-type-parent-ref-id",entityId:ad,version:"1",entityType:n.ArgumentDeclaration},m6={like:!1,inferred:!1,id:"global-test-iterate-over-string-loop-body-current-iteration-value-argument-declaration-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,isList:!1,asType:!1,parent:h6},v6={id:"global-test-iterate-over-string-loop-body-current-iteration-value-argument-declaration-parent-ref-id",type:n.GenericReference,entityId:dp,version:"1",entityType:n.FunctionDeclaration},T6={constant:!0,id:ad,type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Current character",description:"The current character value being processed.",defaultValue:null,dataType:m6,implements:jl,required:!0,index:0,writesValues:[],parent:v6},I6={id:"global-test-iterate-over-string-loop-body-parent-ref-id",type:n.GenericReference,entityId:op,version:"1",entityType:n.Loop},E6={id:dp,type:n.FunctionDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Iteration logic trigger",description:"This function is called once for each iteration of the loop.",inputs:[T6,y6],calls:[],implements:lo,collapsed:!1,private:!1,index:0,x:0,y:0,parent:I6},A6={id:"global-test-iterate-over-string-loop-iteration-list-input-map-parent-ref-id",type:n.GenericReference,entityId:op,version:"1",entityType:n.Loop},b6={id:"global-test-iterate-over-string-loop-iteration-list-input-map-default-value-parent-ref-id",type:n.GenericReference,entityId:WR,version:"1",entityType:n.InputMap},R6={id:"global-test-iterate-over-string-loop-iteration-list-input-map-default-value-id",type:n.LiteralValue,name:L.String,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:"Hello",valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:{type:vt.Random,rangeStart:4,rangeEnd:5},parent:b6},D6={id:WR,type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:null,description:null,declaration:Ls.inputs[0],defaultValue:R6,readsValue:null,index:0,parent:A6},O6={id:"global-test-iterate-over-string-loop-parent-ref-id",type:n.GenericReference,entityId:fe,version:"1",entityType:n.Project},P6={id:op,type:n.Loop,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Ls,inputs:[D6],successCalls:[],errorCalls:[],outputsDeclarations:[],outputs:[],process:null,body:E6,calledByError:[],calledByEntry:[],calledBySuccess:[],error:null,x:0,y:0,parent:O6},lp="iterate-over-list-loop-id",zR="iterate-over-list-loop-body-id",YR="iterate-over-list-loop-body-current-iteration-value-argument-declaration-id",w6={type:n.GenericReference,id:"iterate-over-list-loop-body-current-iteration-value-argument-declaration-data-type-parent-ref-id",entityId:YR,version:"1",entityType:n.ArgumentDeclaration},C6={like:!1,inferred:!1,id:"iterate-over-list-loop-body-current-iteration-value-argument-declaration-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,isList:!1,asType:!1,parent:w6},V6={id:"iterate-over-list-loop-body-current-iteration-value-argument-declaration-parent-ref-id",type:n.GenericReference,entityId:zR,version:"1",entityType:n.FunctionDeclaration},B6={constant:!0,id:YR,type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Current value",description:"The current value being processed.",defaultValue:null,dataType:C6,implements:uo,required:!0,index:0,writesValues:[],parent:V6},_6={id:"iterate-over-list-loop-body-parent-ref-id",type:n.GenericReference,entityId:lp,version:"1",entityType:n.Loop},M6={id:zR,type:n.FunctionDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Iteration logic trigger",description:"This function is called once for each iteration of the loop.",inputs:[B6],calls:[],implements:js,collapsed:!1,private:!1,index:0,x:0,y:0,parent:_6},N6={id:"iterate-over-list-loop-iteration-list-input-map-parent-ref-id",type:n.GenericReference,entityId:lp,version:"1",entityType:n.Loop},L6={id:"iterate-over-list-loop-iteration-list-input-map-id",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:null,description:null,declaration:Or.inputs[0],defaultValue:null,readsValue:null,index:0,parent:N6},j6={id:"iterate-over-list-loop-parent-ref-id",type:n.GenericReference,entityId:fe,version:"1",entityType:n.Project},U6={id:lp,type:n.Loop,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Or,inputs:[L6],successCalls:[],errorCalls:[],outputsDeclarations:[],outputs:[],process:null,body:M6,calledByError:[],calledByEntry:[],calledBySuccess:[],error:null,x:0,y:0,parent:j6},$6=`SELECT
|
|
2
2
|
Employee.identifier AS EmployeeID,
|
|
3
3
|
Employee.startDate AS startDate,
|
|
4
4
|
User.identifier AS userID,
|
|
@@ -108,7 +108,7 @@ If an entity is called by another, they must be in the same scope, which means t
|
|
|
108
108
|
Specifically for variables, their scope is also calculated from their value readers and value writters.
|
|
109
109
|
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}}subscribeDependents(e){return e.forEach(t=>{this.detachedDependents[t.entity.id]||(this.detachedDependents[t.entity.id]=t)}),this}syncDependents(e=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"sync-dependents"))){const t=[],i=[],s=[],d=[];return Object.values(this.detachedDependents).forEach(o=>{const l=o.entity.afterAllChildrenInitialized(e);t.push(...l.updated),i.push(...l.added),s.push(...l.removed),d.push(...l.affected)}),e==null||e.attemptAutoclose("sync-dependents",this.id),{updated:p(t),added:p(i),removed:p(s),affected:p(d),self:this}}onDetachedDependencyRemoved(e,t,i){const s=[],d=[],o=[],l=[];if(t==="parent"){const{updated:u,added:y,removed:c}=this.remove({ignoreUpstream:!1},i);s.push(...u),d.push(...y),o.push(...c)}return{updated:p(s),added:p(d),removed:p(o),affected:p(l),self:this}}onDetachedDependencyRestored(e,t,i){const s=[],d=[],o=[],l=[];if(t==="parent"){const{updated:u,added:y,removed:c}=this.restore({},i);s.push(...u),d.push(...y),o.push(...c)}return{updated:p(s),added:p(d),removed:p(o),affected:p(l),self:this}}subscribeToDependencies(){var e,t,i,s;return(e=this.parent)==null||e.subscribeDependents([{entity:this,field:"parent"}]),(s=(i=(t=this.dataType)==null?void 0:t.entity)==null?void 0:i.subscribeDependents)==null||s.call(i,[{entity:this,field:"data-type-entity"}]),this}increaseVersion(e){if(e&&!T(e).isValid())throw new Error(`The shared timestamp '${e}' is not a valid ISO 8601 date string.`);return e&&T(e).isSame(T(this.createdAt))?this:(this.previousVersion=this.version,this.version=m.UUID.uuid(),this.createdAt=T(e).toISOString()||T().toISOString(),this)}captureVersion(){var t;const e=((t=this.knownVersions)==null?void 0:t.get(this.version))||new Ve(this,this.project);return e.metaSync(this.toMeta(),null),this.knownVersions=this.knownVersions?this.knownVersions.set(this.version,e):new Map([[this.version,e]]),e.inputs=this.inputs,e.outputs=this.outputs,e.internalCalls=this.internalCalls,e.successCalls=this.successCalls,e.errorCalls=this.errorCalls,e.writesValues=this.writesValues,e.readsValue=this.readsValue,e.defaultValue=this.defaultValue,e.dataType=this.dataType,e.calledBySuccess=this.calledBySuccess,e.calledByError=this.calledByError,e.calledByEntry=this.calledByEntry,e.parent=this.parent,this}recursiveCaptureUpstreamVersions(e){const t=[],i=[],s=[],d=[];if(this.parent){this.parent.increaseVersion(e);const o=this.parent.recursiveCaptureUpstreamVersions(e);t.push(this.parent,...o.updated),i.push(...o.added),s.push(...o.removed)}return{updated:p(t),added:p(i),removed:p(s),affected:p(d),self:this}}async restoreVersion(e){var l;const t=[],i=[],s=[],d=[];if(this.version===e)return{updated:p(t),added:p(i),removed:p(s),affected:p(d),self:this};if(!this.knownVersions){const u=new Map;for(const[y,c]of this.knownVersions||new Map){if(u.set(y,c),c.activeVersion=!1,c.knownVersions)for(const[I,E]of c.knownVersions)u.set(I,E);c.knownVersions=null}}let o=(l=this.knownVersions)==null?void 0:l.get(e);if(!o){const u=await this.APILoadVersion({},e);if(!u)throw new Error(`Version with id '${e}' for entity with id '${this.id}' not found.`);o=new Ve(u,this.project)}return this.metaSync(o.toShallowJSON(),null),this.inputs=o.inputs,this.outputs=o.outputs,this.internalCalls=o.internalCalls,this.successCalls=o.successCalls,this.errorCalls=o.errorCalls,this.writesValues=o.writesValues,this.readsValue=o.readsValue,this.defaultValue=o.defaultValue,this.dataType=o.dataType,this.calledBySuccess=o.calledBySuccess,this.calledByError=o.calledByError,this.calledByEntry=o.calledByEntry,this.parent=o.parent,{updated:p(t),added:p(i),removed:p(s),affected:p(d),self:this}}hydrateAncestors(){const e=[],t=[],i=[],s=[];if(this.initialData.parent){const d=_(this.initialData.parent),o=this.project.get(d);if(o)this.setParent(o,null),e.push(o);else throw new Error(`${this.type} with id '${this.id}' has a 'parent' reference '${d}' that isn't found in the project`)}else throw new Error(`${this.type} with id '${this.id}' must have a 'parent'`);if(this.initialData.readsValue){const d=_(this.initialData.readsValue),o=this.project.get(d);o&&(this.setValueWriter(o,null),e.push(o))}return this.initialData.calledByEntry.forEach(d=>{const o=_(d),l=this.project.get(o);l&&(this.addEntryCaller(l,null),l.addCall(this,null),e.push(l))}),this.initialData.calledBySuccess.forEach(d=>{const o=_(d),l=this.project.get(o);l&&(this.addSuccessCaller(l,null),l.addSuccessCall(this,null),e.push(l))}),this.initialData.calledByError.forEach(d=>{const o=_(d),l=this.project.get(o);l&&(this.addErrorCaller(l,null),l.addErrorCall(this,null),e.push(l))}),Rr.hydrateReadsValue(this),{updated:p(e),added:p(t),removed:p(i),affected:p(s),self:this}}afterAllChildrenInitialized(e=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"after-all-children-initialized"))){const t=[],i=[],s=[],d=[];this.initialized=!0;const{added:o,updated:l,removed:u,affected:y}=this.generateUnusedInputs(e);i.push(...o),t.push(...l),s.push(...u),d.push(...y);const{added:c,updated:I,removed:E,affected:O}=this.generateUnusedOutputs(e);i.push(...c),t.push(...I),s.push(...E),d.push(...O);const{added:P,updated:V,removed:M,affected:g}=this.generateUnusedInternalCalls(e);if(i.push(...P),t.push(...V),s.push(...M),d.push(...g),!this.dataType||this.dataType.inferred){const{added:B,updated:G,removed:q,affected:W}=this.inferDataTypeAndSyncInstancesInputsAndOutputs(e);i.push(...B),t.push(...G),s.push(...q),d.push(...W)}return this.captureVersion(),e==null||e.attemptAutoclose("after-all-children-initialized",this.id),{updated:p(t),added:p(i),removed:p(s),affected:p(d),self:this}}addSelfToProject(e=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"add-self-to-project"))){const t=[this],i=[],s=[],d=[];return this.parent===this.project&&this.project.addVariableDeclaration(this),this.readsValue&&(this.readsValue.addValueReader(this,e),t.push(this.readsValue)),this.writesValues.forEach(o=>{o.setValueWriter(this,e),t.push(o)}),this.successCalls.forEach(o=>{o.addSuccessCaller(this,e),t.push(o)}),this.errorCalls.forEach(o=>{o.addErrorCaller(this,e),t.push(o)}),this.calledBySuccess.forEach(o=>{o.addSuccessCall(this,e),t.push(o)}),this.calledByError.forEach(o=>{o.addErrorCall(this,e),t.push(o)}),this.calledByEntry.forEach(o=>{o.addCall(this,e),t.push(o)}),this.subscribe(),this.subscribeToDependencies(),e==null||e.attemptAutoclose("add-self-to-project",this.id),{updated:p(t),added:p(i),removed:p(s),affected:p(d),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,t=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"remove-input"))){const i=this.inputs.findIndex(s=>s.id===e.id);return i>-1&&(this.inputs.splice(i,1),t&&(t==null||t.add(this,b.Affected))),t==null||t.attemptAutoclose("remove-input",this.id),this}addInput(e,t=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"add-input"))){return this.inputs.includes(e)?(t==null||t.attemptAutoclose("add-input",this.id),this):(this.inputs.push(e),t==null||t.add(this,b.Affected),t==null||t.attemptAutoclose("add-input",this.id),this)}addOutput(e,t=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"add-output"))){return this.outputs.includes(e)?(t==null||t.attemptAutoclose("add-output",this.id),this):(this.outputs.push(e),t==null||t.add(this,b.Affected),t==null||t.attemptAutoclose("add-output",this.id),this)}removeOutput(e,t=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"remove-output"))){const i=this.outputs.findIndex(s=>s.id===e.id);return i>-1&&(this.outputs.splice(i,1),t&&(t==null||t.add(this,b.Affected))),t==null||t.attemptAutoclose("remove-output",this.id),this}addSuccessCaller(e,t=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"add-success-caller")),i=!1){return this.calledBySuccess.find(s=>s.id===e.id)||(this.calledBySuccess.push(e),t==null||t.add(this,b.Updated),i&&K(this,t)),t==null||t.attemptAutoclose("add-success-caller",this.id),this}addErrorCaller(e,t=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"add-error-caller")),i=!1){return this.calledByError.find(s=>s.id===e.id)||(this.calledByError.push(e),t==null||t.add(this,b.Updated),i&&K(this,t)),t==null||t.attemptAutoclose("add-error-caller",this.id),this}addEntryCaller(e,t=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"add-entry-caller")),i=!1){return this.calledByEntry.find(s=>s.id===e.id)||(this.calledByEntry.push(e),t==null||t.add(this,b.Updated),i&&K(this,t)),t==null||t.attemptAutoclose("add-entry-caller",this.id),this}addErrorCall(e,t=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"add-error-call")),i=!1){return this.errorCalls.find(s=>s.id===e.id)||(this.errorCalls.push(e),i&&K(this,t),t==null||t.add(this,b.Affected)),t==null||t.attemptAutoclose("add-error-call",this.id),this}addSuccessCall(e,t=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"add-success-call")),i=!1){return this.successCalls.find(s=>s.id===e.id)||(this.successCalls.push(e),i&&K(this,t),t==null||t.add(this,b.Affected)),t==null||t.attemptAutoclose("add-success-call",this.id),this}removeCall(e,t=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"remove-call")),i=!1){const s=this.successCalls.findIndex(o=>o.id===e.id);s>-1&&(this.successCalls.splice(s,1),t==null||t.add(this,b.Affected));const d=this.errorCalls.findIndex(o=>o.id===e.id);return d>-1&&(this.errorCalls.splice(d,1),t==null||t.add(this,b.Affected)),i&&K(this,t),t==null||t.attemptAutoclose("remove-call",this.id),this}removeCaller(e,t=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"remove-caller")),i=!1){return this.calledBySuccess=this.calledBySuccess.filter(s=>s.id!==e.id?(t&&(t==null||t.add(this,b.Updated),t==null||t.add(s,b.Affected)),!0):!1),this.calledByError=this.calledByError.filter(s=>s.id!==e.id?(t&&(t==null||t.add(this,b.Updated),t==null||t.add(s,b.Affected)),!0):!1),this.calledByEntry=this.calledByEntry.filter(s=>s.id!==e.id?(t&&(t==null||t.add(this,b.Updated),t==null||t.add(s,b.Affected)),!0):!1),i&&K(this,t),t==null||t.attemptAutoclose("remove-caller",this.id),this}addValueReader(e,t=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"add-value-reader"))){return this.writesValues.includes(e)?(t==null||t.attemptAutoclose("add-value-reader",this.id),this):(this.writesValues.push(e),t==null||t.add(this,b.Affected),this)}removeValueReader(e,t=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"remove-value-reader"))){return this.writesValues.includes(e)?(this.writesValues=this.writesValues.filter(i=>i.id!==e.id),t==null||t.add(this,b.Affected),this):(t==null||t.attemptAutoclose("remove-value-reader",this.id),this)}setParent(e,t=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"set-parent"))){var i;return((i=this.parent)==null?void 0:i.id)!==(e==null?void 0:e.id)&&(this.parent=e,t&&(t==null||t.add(this,b.Updated),t==null||t.attemptAutoclose("set-parent",this.id))),this}initChildren(e=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"init-children"))){return this.initialized||this.startedInitialization?this:(this.startedInitialization=!0,this.initialData.defaultValue&&(this.defaultValue=C(this.initialData.defaultValue,this.project),this.defaultValue.setParent(this,null),this.defaultValue.initChildren(e)),this.initialData.dataType&&(this.dataType=C(this.initialData.dataType,this.project),this.dataType.setParent(this,null),this.dataType.initChildren(e)),xa.initWritesValues(this,this.parent),Rr.initReadsValue(this),this.successCalls=this.initialData.successCalls.map(t=>{const i=C(t,this.project);if(i.addSuccessCaller(this),[n.BreakStatement,n.ContinueStatement].includes(i.type))i.setParent(this.parent.parent,null),i.initChildren(e);else if(i.type===n.ReturnStatement){const s=Et(this,this.project);i.setParent(s,null),i.initChildren(e)}else i.type!==n.InternalCall&&(i.setParent(this.parent,null),i.initChildren(e));return i}),this.errorCalls=this.initialData.errorCalls.map(t=>{const i=C(t,this.project);if(i.addErrorCaller(this),[n.BreakStatement,n.ContinueStatement].includes(i.type))i.setParent(this.parent.parent,null),i.initChildren(e);else if(i.type===n.ReturnStatement){const s=Et(this,this.project);i.setParent(s,null),i.initChildren(e)}else i.type!==n.InternalCall&&(i.setParent(this.parent,null),i.initChildren(e));return i}),this.initialData.inputs.forEach(t=>{const i=C(t,this.project);return i.setParent(this,null),i.initChildren(e),this.addInput(i,null),i}),this.initialData.outputs.forEach(t=>{const i=C(t,this.project);return i.setParent(this,null),i.initChildren(e),this.addOutput(i,null),i}),this.initialData.internalCalls.forEach(t=>{if(t.type===n.GenericReference){const s=this.project.findSubscribedInstanceFromReference(t);if(!s)return;s.setParent(this,null),s.initChildren(e),this.addInternalCall(s);return}const i=C(t,this.project);return i.setParent(this,null),i.initChildren(e),this.addInternalCall(i),i}),this.subscribeToDependencies(),this.afterAllChildrenInitialized(e),e==null||e.attemptAutoclose("init-children",this.id),this)}setValueWriter(e,t=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"set-value-writer"))){return this.readsValue!==e&&(this.readsValue=e,t==null||t.add(this,b.Updated)),t==null||t.attemptAutoclose("set-value-writer",this.id),this}removeValueWriter(e=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"remove-value-writer"))){return this.readsValue&&(this.readsValue=null,e==null||e.add(this,b.Updated)),e==null||e.attemptAutoclose("remove-value-writer",this.id),this}subscribe(){return this.activeVersion=!0,this.project.subscribeInstance(this),this}unsubscribe(){return this.project.unsubscribeInstance(this),this}getMasterInputWithValueWritterFromAllInstances(e){return p([...this.inputs,...this.variableInstances.flatMap(s=>s.inputs)]).find(s=>x(s,this.project)===x(e,this.project)&&!!s.readsValue)||e}inferDataTypeAndSyncInstancesInputsAndOutputs(e=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"infer-data-type-and-sync-instances-inputs-and-outputs"))){var M,g,B,G;const t=[],i=[],s=[],d=[];if(!this.dataType){const q=C({id:m.UUID.uuid(),version:m.UUID.uuid(),createdAt:(e==null?void 0:e.timestamp)||T().toISOString(),author:m.sessionAuthor,previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,implementationChooseOne:!1,options:null,isList:!1,andChildrenGroup:null,orChildrenGroup:null,asType:!1,entity:null,like:!0,inferred:!0,parent:this.toReference()},this.project);this.setDataType(q),q.setParent(this,e),q.initChildren(e),e==null||e.add(q,b.Added),q.metaSync({inferred:!0,like:!0},e)}if(this.readsValue){const q=(M=this.readsValue.getDataType(e))==null?void 0:M.clone(e);if(q){const W=(g=this.dataType)==null?void 0:g.merge(q,e);this.dataType&&(W==null?void 0:W.self.id)!==this.dataType.id&&this.dataType.remove({ignoreUpstream:!1},e),q.id!==((B=W==null?void 0:W.self)==null?void 0:B.id)&&q.remove({ignoreUpstream:!1},e),W!=null&&W.self&&(W.self.metaSync({inferred:!0,like:!0},e),e==null||e.add(W.self,b.Added),this.setDataType(W.self))}return e==null||e.attemptAutoclose("infer-data-type-and-sync-instances-inputs-and-outputs",this.id),{updated:p(i),added:p(t),removed:p(s),affected:p(d),self:this}}const o=p([...this.inputs,...this.variableInstances.flatMap(q=>q.inputs)]),l=[];if(o.forEach(q=>{l.find(X=>x(X,this.project)===x(q,this.project))||l.push(q)}),!l.length)return e==null||e.attemptAutoclose("infer-data-type-and-sync-instances-inputs-and-outputs",this.id),{updated:p(i),added:p(t),removed:p(s),affected:p(d),self:this};if((G=this.dataType)==null||G.inferFromInputs(l,e),!this.dataType)return e==null||e.attemptAutoclose("infer-data-type-and-sync-instances-inputs-and-outputs",this.id),{updated:p(i),added:p(t),removed:p(s),affected:p(d),self:this};const{updated:u,added:y,removed:c,affected:I}=this.generateUnusedInputs(e);t.push(...y),i.push(...u),s.push(...c),d.push(...I);const{updated:E,added:O,removed:P,affected:V}=this.generateUnusedOutputs(e);return t.push(...O),i.push(...E),s.push(...P),d.push(...V),this.variableInstances.forEach(q=>{const{updated:W,added:X,removed:pe,affected:Ie}=q.generateUnusedInputs(e);t.push(...X),i.push(...W),s.push(...pe),d.push(...Ie);const{updated:Q,added:de,removed:ri,affected:tr}=q.generateUnusedOutputs(e);t.push(...de),i.push(...Q),s.push(...ri),d.push(...tr)}),e==null||e.attemptAutoclose("infer-data-type-and-sync-instances-inputs-and-outputs",this.id),{updated:p(i),added:p(t),removed:p(s),affected:p(d),self:this}}metaSync(e,t=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"meta-sync"))){const i=ct(this,e),s=this.toMeta();return this.name=e.name!==void 0?e.name:s.name,this.description=e.description!==void 0?e.description:s.description,this.x=e.x||s.x,this.y=e.y||s.y,this.constant=e.constant!==void 0?e.constant:s.constant,this.required=e.required!==void 0?e.required:s.required,super.metaSync(e),e.deleted===!0&&!s.deleted?t==null||t.add(this,b.Removed):e.deleted===!1&&s.deleted?t==null||t.add(this,b.Added):i&&(t==null||t.add(this,b.Updated)),t==null||t.attemptAutoclose("meta-sync",this.id),this}async APILoad(e=U,...t){return await Ve.repository.APILoad(this.id,...t),this}async APICreate(e=U,...t){return await Ve.repository.APICreate(this.toShallowJSON(),...t),this}async APIUpdate(e=U,...t){return await Ve.repository.APIUpdate(this.toShallowJSON(),...t),this}async APIDelete(e=U,...t){return await Ve.repository.APIDelete(this.toShallowJSON(),...t),this}async APIClone(e=U,...t){return await Ve.repository.APIClone(this.id,...t),this}async APILoadVersion(e=U,t,...i){return await Ve.repository.APILoadVersion(this.id,t,...i)}remove({ignoreUpstream:e}={ignoreUpstream:!1},t=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"remove-entity"))){const i=[],s=[],d=[],o=[];if(t!=null&&t.hasRemoved(this.id))return t==null||t.attemptAutoclose("remove-entity",this.id),{added:[],updated:[],removed:[],affected:[],self:this};if(s.push(this),this.unsubscribe(),this.project.subscribeDeletedInstance(this),this.metaSync({deleted:!0},t),Object.values(this.detachedDependents).forEach(l=>{const{updated:u,removed:y,added:c}=l.entity.onDetachedDependencyRemoved(this,l.field,t);i.push(...u),s.push(...y),d.push(...c)}),this.defaultValue){const{updated:l,removed:u}=this.defaultValue.remove({ignoreUpstream:!0},t);i.push(...l),s.push(...u)}if(this.readsValue&&(i.push(this.readsValue),this.readsValue.removeValueReader(this,t)),this.writesValues.forEach(l=>{i.push(l),l.setValueWriter(null,t)}),this.inputs.forEach(l=>{const{updated:u,removed:y}=l.remove({ignoreUpstream:!0},t);i.push(...u),s.push(...y)}),this.outputs.forEach(l=>{const{updated:u,removed:y}=l.remove({ignoreUpstream:!0},t);i.push(...u),s.push(...y)}),this.successCalls.forEach(l=>{i.push(l),l.removeCaller(this,t)}),this.errorCalls.forEach(l=>{i.push(l),l.removeCaller(this,t)}),this.internalCalls.forEach(l=>{const{updated:u,removed:y}=l.remove({ignoreUpstream:!0},t);i.push(...u),s.push(...y)}),this.dataType){const{updated:l,removed:u}=this.dataType.remove({ignoreUpstream:!0},t);i.push(...l),s.push(...u)}return e||this.calledBy.forEach(l=>{i.push(l),l.removeCall(this,t)}),t==null||t.attemptAutoclose("remove-entity",this.id),{added:p(d),updated:p(i),removed:p(s),affected:p(o),self:this}}restore({}={},e=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"restore-entity"))){const t=[],i=[],s=[],d=[];if(e!=null&&e.hasAdded(this.id))return e==null||e.attemptAutoclose("restore-entity",this.id),{added:[],updated:[],removed:[],affected:[],self:this};if(this.subscribe(),this.project.unsubscribeDeletedInstance(this),this.metaSync({deleted:!1},e),Object.values(this.detachedDependents).forEach(o=>{const{updated:l,removed:u,added:y}=o.entity.onDetachedDependencyRestored(this,o.field,e);i.push(...l),s.push(...u),t.push(...y)}),this.defaultValue){const{updated:o}=this.defaultValue.restore({},e);i.push(...o)}if(this.readsValue&&(i.push(this.readsValue),this.readsValue.addValueReader(this,e)),this.writesValues.forEach(o=>{i.push(o),o.setValueWriter(this,e)}),this.inputs.forEach(o=>{const{updated:l}=o.restore({},e);i.push(...l)}),this.outputs.forEach(o=>{const{updated:l}=o.restore({},e);i.push(...l)}),this.successCalls.forEach(o=>{i.push(o),o.addSuccessCaller(this,e)}),this.errorCalls.forEach(o=>{i.push(o),o.addErrorCaller(this,e)}),this.internalCalls.forEach(o=>{const{updated:l}=o.restore({},e);i.push(...l)}),this.dataType){const{updated:o}=this.dataType.restore({},e);i.push(...o)}return this.calledBySuccess.forEach(o=>{i.push(o),o.addSuccessCall(this,e)}),this.calledByError.forEach(o=>{i.push(o),o.addErrorCall(this,e)}),this.calledByEntry.forEach(o=>{i.push(o),o.addCall(this,e)}),e==null||e.attemptAutoclose("restore-entity",this.id),{added:p(t),updated:p(i),removed:p(s),affected:p(d),self:this}}toFlat(e=new Set){var i,s,d;return e.has(this.id)?[]:(e.add(this.id),[this,...((i=this.defaultValue)==null?void 0:i.toFlat(e))||[],...((s=this.dataType)==null?void 0:s.toFlat(e))||[],...((d=this.readsValue)==null?void 0:d.toFlat(e))||[],...this.writesValues.flatMap(o=>o.toFlat(e)),...this.successCalls.flatMap(o=>o.toFlat(e)),...this.errorCalls.flatMap(o=>o.toFlat(e)),...this.inputs.flatMap(o=>o.toFlat(e)),...this.outputs.flatMap(o=>o.toFlat(e)),...this.internalCalls.flatMap(o=>o.toFlat(e)),...this.calledBy.flatMap(o=>o.toFlat(e))])}toFlatIds(e=new Set){var i,s;return e.has(this.id)?[]:(e.add(this.id),[this.id,...((i=this.defaultValue)==null?void 0:i.toFlatIds(e))||[],...((s=this.dataType)==null?void 0:s.toFlatIds(e))||[],...this.writesValues.flatMap(d=>d.toFlatIds(e)),...this.successCalls.flatMap(d=>d.toFlatIds(e)),...this.errorCalls.flatMap(d=>d.toFlatIds(e)),...this.inputs.flatMap(d=>d.toFlatIds(e)),...this.outputs.flatMap(d=>d.toFlatIds(e)),...this.internalCalls.flatMap(d=>d.toFlatIds(e))])}toMeta(){return{id:this.id,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,description:this.description,required:this.required,constant:this.constant,x:this.x,y:this.y,type:this.type,name:this.name}}toJSON(e=new Set){var t,i,s;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:((s=this.readsValue)==null?void 0:s.toReference())||null,writesValues:this.writesValues.map(d=>d.toJSON(e)),inputs:this.inputs.map(d=>d.toJSON(e)),outputs:this.outputs.map(d=>d.toJSON(e)),successCalls:this.successCalls.map(d=>d.toJSON(e)),errorCalls:this.errorCalls.map(d=>d.toJSON(e)),internalCalls:this.internalCalls.map(d=>d.toJSON(e)),calledBySuccess:this.calledBySuccess.map(d=>d.toReference()),calledByError:this.calledByError.map(d=>d.toReference()),calledByEntry:this.calledByEntry.map(d=>d.toReference()),parent:this.parent.toReference(),x:this.x,y:this.y})}toJSONClone(e=J){var i,s,d,o,l,u,y,c;let t;return(i=e.seenEntityMaps)!=null&&i.has(this.id)?t=e.seenEntityMaps.get(this.id):(t=e.newId||ht(this,this.project,e.uuidStrategy),e.seenEntityMaps&&e.seenEntityMaps.set(this.id,t)),(s=e.seenEntities)!=null&&s.has(t)||(d=e.seenEntities)!=null&&d.has(this.id)?this.toReference({seenEntityMaps:e.seenEntityMaps}):((o=e.seenEntities)==null||o.add(t),(l=e.seenEntities)==null||l.add(this.id),{id:t,version:m.UUID.uuid(),createdAt:e.timestamp||T().toISOString(),previousVersion:null,author:this.author,deleted:this.deleted,type:this.type,name:this.name,description:this.description,defaultValue:((u=this.defaultValue)==null?void 0:u.toJSONClone({...e,newId:null}))||null,dataType:((y=this.dataType)==null?void 0:y.toJSONClone({...e,newId:null}))||null,readsValue:((c=this.readsValue)==null?void 0:c.toReference({seenEntityMaps:e.seenEntityMaps}))||null,writesValues:this.writesValues.map(I=>I.toJSONClone({...e,newId:null})),inputs:this.inputs.map(I=>I.toJSONClone({...e,newId:null})),outputs:this.outputs.map(I=>I.toJSONClone({...e,newId:null})),successCalls:this.successCalls.map(I=>I.toJSONClone({...e,newId:null})),errorCalls:this.errorCalls.map(I=>I.toJSONClone({...e,newId:null})),internalCalls:this.internalCalls.map(I=>this.calledBy.length||this.readsValue?I.toJSONClone({...e,newId:null}):I.toReference({seenEntityMaps:e.seenEntityMaps})),calledBySuccess:this.calledBySuccess.map(I=>I.toReference({seenEntityMaps:e.seenEntityMaps})),calledByError:this.calledByError.map(I=>I.toReference({seenEntityMaps:e.seenEntityMaps})),calledByEntry:this.calledByEntry.map(I=>I.toReference({seenEntityMaps:e.seenEntityMaps})),parent:this.parent.toReference({seenEntityMaps:e.seenEntityMaps}),x:this.x,y:this.y})}toReference(e=J){var i;let t=this.id;return(i=e.seenEntityMaps)!=null&&i.has(this.id)&&(t=e.seenEntityMaps.get(this.id)),{id:t+"--"+m.UUID.uuid()+"--ref",type:n.GenericReference,entityId:t,version:this.version,entityType:this.type}}toShallowJSON(e=J){var i,s,d,o;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:((s=this.defaultValue)==null?void 0:s.toReference(e))||null,dataType:((d=this.dataType)==null?void 0:d.toReference(e))||null,readsValue:((o=this.readsValue)==null?void 0:o.toReference(e))||null,writesValues:this.writesValues.map(l=>l.toReference(e)),inputs:this.inputs.map(l=>l.toReference(e)),outputs:this.outputs.map(l=>l.toReference(e)),successCalls:this.successCalls.map(l=>l.toReference(e)),errorCalls:this.errorCalls.map(l=>l.toReference(e)),calledBySuccess:this.calledBySuccess.map(l=>l.toReference(e)),calledByError:this.calledByError.map(l=>l.toReference(e)),calledByEntry:this.calledByEntry.map(l=>l.toReference(e)),internalCalls:this.internalCalls.map(l=>l.toReference(e)),parent:this.parent.toReference(e)}}toFlatJSON(e=new Set){var i,s;return e.has(this.id)?[]:(e.add(this.id),[this.toShallowJSON(),...((i=this.defaultValue)==null?void 0:i.toFlatJSON(e))||[],...((s=this.dataType)==null?void 0:s.toFlatJSON(e))||[],...this.writesValues.flatMap(d=>d.toFlatJSON(e)),...this.successCalls.flatMap(d=>d.toFlatJSON(e)),...this.errorCalls.flatMap(d=>d.toFlatJSON(e)),...this.inputs.flatMap(d=>d.toFlatJSON(e)),...this.outputs.flatMap(d=>d.toFlatJSON(e)),...this.internalCalls.flatMap(d=>d.toFlatJSON(e))])}toGenerationTarget(){const e=this.parent.type===n.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,s;return e.has(this.id)?[]:(e.add(this.id),[this.toGenerationTarget(),...((i=this.defaultValue)==null?void 0:i.toFlatGenerationTarget(e))||[],...((s=this.dataType)==null?void 0:s.toFlatGenerationTarget(e))||[],...this.writesValues.flatMap(d=>d.toFlatGenerationTarget(e)),...this.successCalls.flatMap(d=>d.toFlatGenerationTarget(e)),...this.errorCalls.flatMap(d=>d.toFlatGenerationTarget(e)),...this.inputs.flatMap(d=>d.toFlatGenerationTarget(e)),...this.outputs.flatMap(d=>d.toFlatGenerationTarget(e)),...this.internalCalls.flatMap(d=>d.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=A1(this);return this.errors=e,{success:!0,error:null,data:this.toJSON()}}getErrors(){var t,i,s;return[...this.errors,...((t=this.defaultValue)==null?void 0:t.getErrors())||[],...((i=this.dataType)==null?void 0:i.getErrors())||[],...this.inputs.flatMap(d=>d.getErrors()),...this.internalCalls.flatMap(d=>d.getErrors()),...this.outputs.flatMap(d=>d.getErrors()),...((s=this.readsValue)==null?void 0:s.getErrors())||[]]}getShallowErrors(){return this.errors}getDefaultValue(){return this.defaultValue||null}setDefaultValue(e){return this.defaultValue=e,this}clone(e=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"clone-entity")),t=null,i=null,s=!0){var P,V,M,g,B;let d=mt(t,this);const o=this.toJSON(),l=i||m.UUID.uuid();o.inputs=[],o.id=l,o.version=m.UUID.uuid(),o.createdAt=(e==null?void 0:e.timestamp)||T().toISOString(),o.author=(e==null?void 0:e.author)||"1",o.previousVersion=null,o.deleted=!1;const u=nt(o,d);t?u.setParent(t,null):u.setParent(this.parent,null),s&&u.subscribe(),u.initChildren(e),e==null||e.add(u,b.Added);const y=(P=this.dataType)==null?void 0:P.clone(e,u,m.UUID.uuid(),s);u.dataType=y||null;const c=(V=this.defaultValue)==null?void 0:V.clone(e,u,m.UUID.uuid(),s);u.defaultValue=c||null;const I=(M=this.inputs)==null?void 0:M.map(G=>G.clone(e,u,m.UUID.uuid(),s));u.inputs=I;const E=(g=this.outputs)==null?void 0:g.map(G=>G.clone(e,u,m.UUID.uuid(),s));u.outputs=E;const O=(B=this.internalCalls)==null?void 0:B.map(G=>G.clone(e,u,m.UUID.uuid(),s));return u.internalCalls=O,e==null||e.attemptAutoclose("clone-entity",this.id),u}addInternalCall(e){return this.internalCalls.find(t=>t===e)||this.internalCalls.push(e),this}createInstance(e=this.project,t=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"create-instance")),i={}){const s={id:i.id||m.UUID.uuid(),version:i.version||m.UUID.uuid(),createdAt:(t==null?void 0:t.timestamp)||T().toISOString(),author:m.sessionAuthor,previousVersion:null,deleted:!1,type:n.VariableInstance,parent:e.toReference(),defaultValue:i.defaultValue||null,successCalls:i.successCalls||[],errorCalls:i.errorCalls||[],inputs:i.inputs||[],outputs:i.outputs||[],writesValues:i.writesValues||[],internalCalls:i.internalCalls||[],readsValue:i.readsValue||null,calledByEntry:i.calledByEntry||[],calledBySuccess:i.calledBySuccess||[],calledByError:i.calledByError||[],declaration:this.toJSON(),x:0,y:0},d=C(s,this.project);return d.setParent(e,null),d.initChildren(null),t==null||t.add(d,b.Added),e===this.project&&this.project.addVariableInstance(d),t==null||t.attemptAutoclose("create-instance",this.id),d}generateUnusedInputs(e=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"generate-unused-inputs"))){const t=[],i=[],s=[],d=[];if(this.dataType)if(this.dataType.entity){if([n.DefinitionEntity,n.PrimitiveEntity,n.BuiltInBaseEntity].includes(this.dataType.entity.type)){const o=[...this.dataType.entity.properties];o.filter(c=>!c.getDataType(e)).forEach(c=>{const I=this.inputs.find(P=>x(P,this.project)===x(c,this.project));if(!I)return;const E=this.getMasterInputWithValueWritterFromAllInstances(I);if(!E)return;const O=Hi(E);c.setDataType(O),I.setDeclaration(c)}),o.filter(c=>!this.inputs.find(I=>{var E;return((E=I.declaration)==null?void 0:E.id)===c.id})).forEach(c=>{const I={id:m.UUID.uuid(),version:m.UUID.uuid(),createdAt:(e==null?void 0:e.timestamp)||T().toISOString(),author:m.sessionAuthor,previousVersion:null,deleted:!1,type:n.InputMap,parent:this.toReference(),name:null,description:null,declaration:c,defaultValue:null,index:c.index,readsValue:null},E=C(I,this.project);return E.setParent(this,e),E.initChildren(e),e==null||e.add(E,b.Added),E.suggestion=!0,this.addInput(E,e),E}),this.inputs.filter(c=>!c.declaration).forEach(c=>{const I=o.find(E=>x(E,this.project)===x(c,this.project));I&&c.setDeclaration(I)})}}else return e==null||e.attemptAutoclose("generate-unused-inputs",this.id),{added:[],updated:[],removed:[],affected:[],self:this};else return e==null||e.attemptAutoclose("generate-unused-inputs",this.id),{added:[],updated:[],removed:[],affected:[],self:this};return e==null||e.attemptAutoclose("generate-unused-inputs",this.id),{added:p(t),updated:p(i),removed:p(s),affected:p(d),self:this}}generateUnusedOutputs(e=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"generate-unused-outputs"))){const t=[],i=[],s=[],d=[];if(this.dataType)if(this.dataType.entity)[n.DefinitionEntity,n.PrimitiveEntity,n.BuiltInBaseEntity].includes(this.dataType.entity.type)&&[...this.dataType.entity.properties].filter(u=>!this.outputs.find(y=>y.declaration===u)).map(u=>{const y={id:m.UUID.uuid(),version:m.UUID.uuid(),createdAt:(e==null?void 0:e.timestamp)||T().toISOString(),author:m.sessionAuthor,previousVersion:null,deleted:!1,type:n.OutputMap,defaultValue:null,parent:this.toReference(),declaration:u,index:u.index,writesValues:[]},c=C(y,this.project);return c.setParent(this,e),c.initChildren(e),e==null||e.add(c,b.Added),c.suggestion=!0,this.addOutput(c,e),c});else return e==null||e.attemptAutoclose("generate-unused-outputs",this.id),{added:[],updated:[],removed:[],affected:[],self:this};else return e==null||e.attemptAutoclose("generate-unused-outputs",this.id),{added:[],updated:[],removed:[],affected:[],self:this};return e==null||e.attemptAutoclose("generate-unused-outputs",this.id),{added:p(t),updated:p(i),removed:p(s),affected:p(d),self:this}}generateUnusedInternalCalls(e=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"generate-unused-internal-calls"))){const t=[],i=[],s=[],d=[];if(this.dataType)if(this.dataType.entity)[n.DefinitionEntity,n.PrimitiveEntity,n.BuiltInBaseEntity].includes(this.dataType.entity.type)&&[...this.dataType.entity.getAllInteractiveMethods()].filter(u=>!this.internalCalls.find(c=>{var E,O,P,V,M;return(((E=c.declaration)==null?void 0:E.id)||((P=(O=c.initialData)==null?void 0:O.declaration)==null?void 0:P.entityId)||((M=(V=c.initialData)==null?void 0:V.declaration)==null?void 0:M.id))===u.id})).map(u=>{const y=u.createInternalCall(e,this);return e==null||e.add(y,b.Added),y.suggestion=!0,this.addInternalCall(y),y});else return e==null||e.attemptAutoclose("generate-unused-internal-calls",this.id),{added:[],updated:[],removed:[],affected:[],self:this};else return e==null||e.attemptAutoclose("generate-unused-internal-calls",this.id),{added:[],updated:[],removed:[],affected:[],self:this};return e==null||e.attemptAutoclose("generate-unused-internal-calls",this.id),{added:p(t),updated:p(i),removed:p(s),affected:p(d),self:this}}setDataType(e){return this.dataType=e,this}removeDataType(){return this.dataType=null,this}getDataType(e=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"get-data-type"))){return(!this.dataType||this.dataType.inferred)&&this.inferDataTypeAndSyncInstancesInputsAndOutputs(e),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)}};f(Ve,"repository",{APICreate:async(e,...t)=>e,APIUpdate:async(e,...t)=>e,APIDelete:async(e,...t)=>e,APIClone:async(e,...t)=>{},APILoad:async(e,...t)=>null,APILoadVersion:async(e,t,...i)=>null}),f(Ve,"type",n.VariableDeclaration),f(Ve,"USER_MANAGED_PARENT_TYPES",[...ut,n.Project]),f(Ve,"PARENT_TYPES",[...Ve.USER_MANAGED_PARENT_TYPES]),f(Ve,"MUTABLE_BASE_PROPERTIES",["name","description","constant","required"]),f(Ve,"INMUTABLE_BASE_PROPERTIES",["id","type","version","createdAt","author","previousVersion"]),f(Ve,"BASE_PROPERTIES",[...Ve.MUTABLE_BASE_PROPERTIES,...Ve.INMUTABLE_BASE_PROPERTIES]),f(Ve,"MUTABLE_META_PROPERTIES",[...Ve.MUTABLE_BASE_PROPERTIES,"x","y"]),f(Ve,"INMUTABLE_META_PROPERTIES",[...Ve.INMUTABLE_BASE_PROPERTIES]),f(Ve,"META_PROPERTIES",[...Ve.MUTABLE_META_PROPERTIES,...Ve.INMUTABLE_META_PROPERTIES]),f(Ve,"MUTABLE_UPSTREAM_PROPERTIES",["calledBySuccess","calledByError","calledByEntry","readsValue"]),f(Ve,"INMUTABLE_UPSTREAM_PROPERTIES",["parent","dataType"]),f(Ve,"UPSTREAM_PROPERTIES",[...Ve.MUTABLE_UPSTREAM_PROPERTIES,...Ve.INMUTABLE_UPSTREAM_PROPERTIES]),f(Ve,"MUTABLE_DOWNSTREAM_PROPERTIES",["writesValues","inputs","outputs","successCalls","errorCalls","internalCalls"]),f(Ve,"INMUTABLE_DOWNSTREAM_PROPERTIES",[]),f(Ve,"DOWNSTREAM_PROPERTIES",[...Ve.MUTABLE_DOWNSTREAM_PROPERTIES,...Ve.INMUTABLE_DOWNSTREAM_PROPERTIES]),f(Ve,"PROPERTIES",[...Ve.META_PROPERTIES,...Ve.UPSTREAM_PROPERTIES,...Ve.DOWNSTREAM_PROPERTIES]);let Yr=Ve;function D1(r){var d;const a=J5(),e=r.toJSON();a.safeParse(e).success,r.inputsDeclarations.forEach(o=>o.validate()),r.inputs.forEach(o=>o.validate()),r.outputsDeclarations.forEach(o=>o.validate()),r.outputs.forEach(o=>o.validate()),(d=r.error)==null||d.validate();const s=[...Ar(r)];if(r.id==="search-person-by-id-id"){const o=le({id:`${r.id}--${F.PropertyImplementsNonAbstact}`,message:`Property "${x(r,r.project)}" with id "${r.id}" implements a non-abstract property "${x(r,r.project)}" with id "${r.id}".`,issue:null,severity:D.Error,code:F.PropertyImplementsNonAbstact,entity:r});s.push(o.error)}return Ke(r.errors,s)}const SJ=Object.freeze(Object.defineProperty({__proto__:null,validate:D1},Symbol.toStringTag,{value:"Module"}));var O1=(r=>(r.Parent="parent",r))(O1||{});const We=class We extends dt{constructor(e,t){super(e);f(this,"initialData");f(this,"id");f(this,"name");f(this,"description",null);f(this,"x");f(this,"y");f(this,"query","");f(this,"type",n.Search);f(this,"successCalls",[]);f(this,"errorCalls",[]);f(this,"inputsDeclarations",[]);f(this,"inputs",[]);f(this,"outputsDeclarations",[]);f(this,"outputs",[]);f(this,"calledBySuccess",[]);f(this,"calledByError",[]);f(this,"calledByEntry",[]);f(this,"error",null);f(this,"parent");f(this,"errors",[]);f(this,"project");f(this,"detachedDependents",{});f(this,"knownVersions",null);f(this,"activeVersion",!1);f(this,"initialized",!1);f(this,"startedInitialization",!1);this.initialData=e,this.project=t,this.id=e.id,this.x=e.x,this.y=e.y,this.name=e.name,this.query=e.query,this.description=e.description}static new(e=null){return{id:m.UUID.uuid(),version:m.UUID.uuid(),createdAt:(e==null?void 0:e.timestamp)||T().toISOString(),author:(e==null?void 0:e.author)||m.sessionAuthor,previousVersion:null,deleted:!1,type:n.Search,name:"",description:"",inputsDeclarations:[],outputsDeclarations:[],inputs:[],outputs:[],query:"",error:null,parent:null,calledByEntry:[],calledBySuccess:[],calledByError:[],errorCalls:[],successCalls:[],x:0,y:0}}static fromGenerationTarget(e,t){let i=t;if(e.parent){const y=_(e.parent);i=t.get(y)}const s=e.calledByEntry.map(y=>{const c=_(y);return t.get(c)}),d=e.calledBySuccess.map(y=>{const c=_(y);return t.get(c)}),o=e.calledByError.map(y=>{const c=_(y);return t.get(c)}),l={id:e.id,version:m.UUID.uuid(),createdAt:T().toISOString(),author:m.sessionAuthor,previousVersion:null,deleted:!1,type:n.Search,name:e.name,description:e.description,query:e.query,calledByEntry:s,calledBySuccess:d,calledByError:o,errorCalls:[],successCalls:[],inputsDeclarations:[],inputs:[],outputsDeclarations:[],outputs:[],error:null,x:0,y:0,parent:i},u=C(l,t);return u.setParent(i,null),u.initChildren(null),u}static validateGenerationTarget(e,t){let i=JSON.parse(JSON.stringify(e));const s=[],d=bt(i,{parent:{list:!1,types:[...ut,n.Project],optional:!0}},t);return i=d.modifiedData,s.push(...d.errors,...pt(i)),{errors:s,modifiedData:i}}get resultsAsList(){const e=this.outputsDeclarations[0];if(e){const t=e.getDataType(null);return t?t.isList===!0:!0}return!0}validateGeneratedUpdate(e){const t=[];return e.parent&&t.push(new w({id:`${this.id}--${R.InvalidParentUpdate}`,code:R.InvalidParentUpdate,severity:D.Error,message:`Entity of type '${this.type}' with id '${this.id}' cannot have the 'parent' property updated. The 'parent' on a callable entity, is its scope. It scope is auto-calculated implicitly by the its caller.
|
|
110
110
|
If an entity is called by another, they must be in the same scope, which means they have the same parent.
|
|
111
|
-
You shouldn't have to manually update a 'parent' property. The equivalent result is to change its callers, the value writters of its inputs, or the value readers of its outputs.`,issue:null})),{errors:t,modifiedData:e}}subscribeDependents(e){return e.forEach(t=>{this.detachedDependents[t.entity.id]||(this.detachedDependents[t.entity.id]=t)}),this}syncDependents(e=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"sync-dependents"))){const t=[],i=[],s=[],d=[];return Object.values(this.detachedDependents).forEach(o=>{const l=o.entity.afterAllChildrenInitialized(e);t.push(...l.updated),i.push(...l.added),s.push(...l.removed),d.push(...l.affected)}),e==null||e.attemptAutoclose("sync-dependents",this.id),{updated:p(t),added:p(i),removed:p(s),affected:p(d),self:this}}onDetachedDependencyRemoved(e,t,i){const s=[],d=[],o=[],l=[];if(t==="parent"){const{updated:u,added:y,removed:c}=this.remove({ignoreUpstream:!1},i);s.push(...u),d.push(...y),o.push(...c)}return{updated:p(s),added:p(d),removed:p(o),affected:p(l),self:this}}onDetachedDependencyRestored(e,t,i){const s=[],d=[],o=[],l=[];if(t==="parent"){const{updated:u,added:y,removed:c}=this.restore({},i);s.push(...u),d.push(...y),o.push(...c)}return{updated:p(s),added:p(d),removed:p(o),affected:p(l),self:this}}subscribeToDependencies(){var e;return(e=this.parent)==null||e.subscribeDependents([{entity:this,field:"parent"}]),this}increaseVersion(e){if(e&&!T(e).isValid())throw new Error(`The shared timestamp '${e}' is not a valid ISO 8601 date string.`);return e&&T(e).isSame(T(this.createdAt))?this:(this.previousVersion=this.version,this.version=m.UUID.uuid(),this.createdAt=T(e).toISOString()||T().toISOString(),this)}captureVersion(){var t;const e=((t=this.knownVersions)==null?void 0:t.get(this.version))||new We(this,this.project);return e.metaSync(this.toMeta(),null),this.knownVersions=this.knownVersions?this.knownVersions.set(this.version,e):new Map([[this.version,e]]),e.inputs=this.inputs,e.outputs=this.outputs,e.error=this.error,e.inputsDeclarations=this.inputsDeclarations,e.outputsDeclarations=this.outputsDeclarations,e.successCalls=this.successCalls,e.errorCalls=this.errorCalls,e.calledByEntry=this.calledByEntry,e.calledBySuccess=this.calledBySuccess,e.calledByError=this.calledByError,e.parent=this.parent,this}recursiveCaptureUpstreamVersions(e){const t=[],i=[],s=[],d=[];if(this.parent){this.parent.increaseVersion(e);const o=this.parent.recursiveCaptureUpstreamVersions(e);t.push(this.parent,...o.updated),i.push(...o.added),s.push(...o.removed)}return{updated:p(t),added:p(i),removed:p(s),affected:p(d),self:this}}async restoreVersion(e){var l;const t=[],i=[],s=[],d=[];if(this.version===e)return{updated:p(t),added:p(i),removed:p(s),affected:p(d),self:this};if(!this.knownVersions){const u=new Map;for(const[y,c]of this.knownVersions||new Map){if(u.set(y,c),c.activeVersion=!1,c.knownVersions)for(const[I,E]of c.knownVersions)u.set(I,E);c.knownVersions=null}}let o=(l=this.knownVersions)==null?void 0:l.get(e);if(!o){const u=await this.APILoadVersion({},e);if(!u)throw new Error(`Version with id '${e}' for entity with id '${this.id}' not found.`);o=new We(u,this.project)}return this.metaSync(o.toShallowJSON(),null),this.inputs=o.inputs,this.outputs=o.outputs,this.error=o.error,this.inputsDeclarations=o.inputsDeclarations,this.outputsDeclarations=o.outputsDeclarations,this.successCalls=o.successCalls,this.errorCalls=o.errorCalls,this.calledByEntry=o.calledByEntry,this.calledBySuccess=o.calledBySuccess,this.calledByError=o.calledByError,this.parent=o.parent,{updated:p(t),added:p(i),removed:p(s),affected:p(d),self:this}}hydrateAncestors(){const e=[],t=[],i=[],s=[];if(this.initialData.parent){const d=_(this.initialData.parent),o=this.project.get(d);if(o)this.setParent(o,null),e.push(o);else throw new Error(`${this.type} with id '${this.id}' has a 'parent' reference '${d}' that isn't found in the project`)}else throw new Error(`${this.type} with id '${this.id}' must have a 'parent'`);return this.initialData.calledByEntry.forEach(d=>{const o=_(d),l=this.project.get(o);l&&(this.addEntryCaller(l,null),l.addCall(this,null),e.push(l))}),this.initialData.calledBySuccess.forEach(d=>{const o=_(d),l=this.project.get(o);l&&(this.addSuccessCaller(l,null),l.addSuccessCall(this,null),e.push(l))}),this.initialData.calledByError.forEach(d=>{const o=_(d),l=this.project.get(o);l&&(this.addErrorCaller(l,null),l.addErrorCall(this,null),e.push(l))}),{updated:p(e),added:p(t),removed:p(i),affected:p(s),self:this}}afterAllChildrenInitialized(e=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"after-all-children-initialized"))){const t=[],i=[],s=[],d=[];this.initialized=!0;const{updated:o,added:l,removed:u}=this.syncInputMaps(e);return t.push(...o),i.push(...l),s.push(...u),this.captureVersion(),e==null||e.attemptAutoclose("after-all-children-initialized",this.id),{updated:p(t),added:p(i),removed:p(s),affected:p(d),self:this}}addSelfToProject(e=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"add-self-to-project"))){const t=[this],i=[],s=[],d=[];return this.parent===this.project&&this.project.addSearch(this),this.successCalls.forEach(o=>{o.addSuccessCaller(this,e),t.push(o)}),this.errorCalls.forEach(o=>{o.addErrorCaller(this,e),t.push(o)}),this.calledByEntry.forEach(o=>{o.addCall(this,e),t.push(o)}),this.calledBySuccess.forEach(o=>{o.addSuccessCall(this,e),t.push(o)}),this.calledByError.forEach(o=>{o.addErrorCall(this,e),t.push(o)}),this.subscribe(),this.subscribeToDependencies(),e==null||e.attemptAutoclose("add-self-to-project",this.id),{updated:p(t),added:p(i),removed:p(s),affected:p(d),self:this}}get calledBy(){return[...this.calledByEntry,...this.calledBySuccess,...this.calledByError]}removeInput(e,t=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"remove-input"))){const i=this.inputs.findIndex(d=>d.id===e.id);i>-1&&(this.inputs.splice(i,1),t==null||t.add(this,b.Affected));const s=this.inputsDeclarations.findIndex(d=>{var o;return d.id===((o=e.declaration)==null?void 0:o.id)});return s>-1&&(this.inputsDeclarations.splice(s,1),t==null||t.add(this,b.Affected)),t==null||t.attemptAutoclose("remove-input",this.id),this}addInput(e,t=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"add-input"))){return this.inputs.includes(e)?(t==null||t.attemptAutoclose("add-input",this.id),this):(this.inputs.push(e),t==null||t.add(this,b.Affected),t==null||t.attemptAutoclose("add-input",this.id),this)}addInputDeclaration(e,t=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"add-input-declaration"))){return this.inputsDeclarations.includes(e)?(t==null||t.attemptAutoclose("add-input-declaration",this.id),this):(this.inputsDeclarations.push(e),this.syncInputMaps(t),t==null||t.attemptAutoclose("add-input-declaration",this.id),this)}removeInputDeclaration(e,t=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"remove-input-declaration"))){const i=this.inputsDeclarations.findIndex(s=>s.id===e.id);return i>-1&&(this.inputsDeclarations.splice(i,1),t==null||t.add(this,b.Affected)),t==null||t.attemptAutoclose("remove-input-declaration",this.id),this}addOutputDeclaration(e,t=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"add-output-declaration"))){return this.outputsDeclarations.includes(e)?(t==null||t.attemptAutoclose("add-output-declaration",this.id),this):(this.outputsDeclarations.push(e),t==null||t.add(this,b.Affected),t==null||t.attemptAutoclose("add-output-declaration",this.id),this)}removeOutputDeclaration(e,t=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"remove-output-declaration"))){const i=this.outputsDeclarations.findIndex(s=>s.id===e.id);return i>-1&&(this.outputsDeclarations.splice(i,1),t==null||t.add(this,b.Affected)),t==null||t.attemptAutoclose("remove-output-declaration",this.id),this}addOutput(e,t=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"add-output"))){return this.outputs.includes(e)?(t==null||t.attemptAutoclose("add-output",this.id),this):(this.outputs.push(e),t==null||t.add(this,b.Affected),t==null||t.attemptAutoclose("add-output",this.id),this)}removeOutput(e,t=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"remove-output"))){const i=this.outputs.findIndex(s=>s.id===e.id);return i>-1&&(this.outputs.splice(i,1),t&&(t==null||t.add(this,b.Affected))),t==null||t.attemptAutoclose("remove-output",this.id),this}addSuccessCaller(e,t=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"add-success-caller")),i=!1){return this.calledBySuccess.find(s=>s.id===e.id)||(this.calledBySuccess.push(e),t==null||t.add(this,b.Updated),i&&K(this,t)),t==null||t.attemptAutoclose("add-success-caller",this.id),this}addErrorCaller(e,t=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"add-error-caller")),i=!1){return this.calledByError.find(s=>s.id===e.id)||(this.calledByError.push(e),t==null||t.add(this,b.Updated),i&&K(this,t)),t==null||t.attemptAutoclose("add-error-caller",this.id),this}addEntryCaller(e,t=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"add-entry-caller")),i=!1){return this.calledByEntry.find(s=>s.id===e.id)||(this.calledByEntry.push(e),t==null||t.add(this,b.Updated),i&&K(this,t)),t==null||t.attemptAutoclose("add-entry-caller",this.id),this}addErrorCall(e,t=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"add-error-call")),i=!1){return this.errorCalls.find(s=>s.id===e.id)||(this.errorCalls.push(e),i&&K(this,t),t==null||t.add(this,b.Affected)),t==null||t.attemptAutoclose("add-error-call",this.id),this}addSuccessCall(e,t=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"add-success-call")),i=!1){return this.successCalls.find(s=>s.id===e.id)||(this.successCalls.push(e),i&&K(this,t),t==null||t.add(this,b.Affected)),t==null||t.attemptAutoclose("add-success-call",this.id),this}removeCall(e,t=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"remove-call")),i=!1){const s=this.successCalls.findIndex(o=>o.id===e.id);s>-1&&(this.successCalls.splice(s,1),t==null||t.add(this,b.Affected));const d=this.errorCalls.findIndex(o=>o.id===e.id);return d>-1&&(this.errorCalls.splice(d,1),t==null||t.add(this,b.Affected)),i&&K(this,t),t==null||t.attemptAutoclose("remove-call",this.id),this}removeCaller(e,t=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"remove-caller")),i=!1){return this.calledBySuccess=this.calledBySuccess.filter(s=>s.id!==e.id?(t&&(t==null||t.add(this,b.Updated),t==null||t.add(s,b.Affected)),!0):!1),this.calledByError=this.calledByError.filter(s=>s.id!==e.id?(t&&(t==null||t.add(this,b.Updated),t==null||t.add(s,b.Affected)),!0):!1),this.calledByEntry=this.calledByEntry.filter(s=>s.id!==e.id?(t&&(t==null||t.add(this,b.Updated),t==null||t.add(s,b.Affected)),!0):!1),i&&K(this,t),t==null||t.attemptAutoclose("remove-caller",this.id),this}setParent(e,t=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"set-parent"))){var i;return((i=this.parent)==null?void 0:i.id)!==(e==null?void 0:e.id)&&(this.parent=e,t&&(t==null||t.add(this,b.Updated),t==null||t.attemptAutoclose("set-parent",this.id))),this}initChildren(e=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"init-children"))){return this.initialized||this.startedInitialization?this:(this.startedInitialization=!0,this.successCalls=this.initialData.successCalls.map(t=>{const i=C(t,this.project);if([n.BreakStatement,n.ContinueStatement].includes(i.type))i.setParent(this.parent.parent,null),i.initChildren(e);else if(i.type===n.ReturnStatement){const s=Et(this,this.project);i.setParent(s,null),i.initChildren(e)}else i.type!==n.InternalCall&&(i.setParent(this.parent,null),i.initChildren(e));return i}),this.errorCalls=this.initialData.errorCalls.map(t=>{const i=C(t,this.project);if(i.addErrorCaller(this),[n.BreakStatement,n.ContinueStatement].includes(i.type))i.setParent(this.parent.parent,null),i.initChildren(e);else if(i.type===n.ReturnStatement){const s=Et(this,this.project);i.setParent(s,null),i.initChildren(e)}else i.type!==n.InternalCall&&(i.setParent(this.parent,null),i.initChildren(e));return i}),this.inputsDeclarations=this.initialData.inputsDeclarations.map(t=>{const i=C(t,this.project);return i.setParent(this,null),i.initChildren(e),i}),this.inputs=this.initialData.inputs.map(t=>{const i=C(t,this.project);return i.setParent(this,null),i.initChildren(e),i}),this.outputsDeclarations=this.initialData.outputsDeclarations.map(t=>{const i=C(t,this.project);return i.setParent(this,null),i.initChildren(e),i}),this.outputs=this.initialData.outputs.map(t=>{const i=C(t,this.project);return i.setParent(this,null),i.initChildren(e),i}),this.initialData.error&&(this.error=C(this.initialData.error,this.project),this.error.setParent(this,null),this.error.initChildren(e)),this.subscribeToDependencies(),this.afterAllChildrenInitialized(e),e==null||e.attemptAutoclose("init-children",this.id),this)}subscribe(){return this.activeVersion=!0,this.project.subscribeInstance(this),this}unsubscribe(){return this.project.unsubscribeInstance(this),this}metaSync(e,t=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"meta-sync"))){const i=ct(this,e),s=this.toMeta();return this.x=e.x||s.x,this.y=e.y||s.y,this.name=e.name!==void 0?e.name:s.name,this.description=e.description!==void 0?e.description:s.description,e.query!==void 0&&(this.query=e.query),super.metaSync(e),e.deleted===!0&&!s.deleted?t==null||t.add(this,b.Removed):e.deleted===!1&&s.deleted?t==null||t.add(this,b.Added):i&&(t==null||t.add(this,b.Updated)),t==null||t.attemptAutoclose("meta-sync",this.id),this}async APILoad(e=U,...t){return await We.repository.APILoad(this.id,...t),this}async APICreate(e=U,...t){return await We.repository.APICreate(this.toShallowJSON(),...t),this}async APIUpdate(e=U,...t){return await We.repository.APIUpdate(this.toShallowJSON(),...t),this}async APIDelete(e=U,...t){return await We.repository.APIDelete(this.toShallowJSON(),...t),this}async APIClone(e=U,...t){return await We.repository.APIClone(this.id,...t),this}async APILoadVersion(e=U,t,...i){return await We.repository.APILoadVersion(this.id,t,...i)}remove({ignoreUpstream:e}={ignoreUpstream:!1},t=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"remove-entity"))){const i=[],s=[],d=[],o=[];if(t!=null&&t.hasRemoved(this.id))return t==null||t.attemptAutoclose("remove-entity",this.id),{added:[],updated:[],removed:[],affected:[],self:this};if(s.push(this),this.unsubscribe(),this.project.subscribeDeletedInstance(this),this.metaSync({deleted:!0},t),Object.values(this.detachedDependents).forEach(l=>{const{updated:u,removed:y,added:c}=l.entity.onDetachedDependencyRemoved(this,l.field,t);i.push(...u),s.push(...y),d.push(...c)}),this.inputs.forEach(l=>{const{updated:u,removed:y}=l.remove({ignoreUpstream:!0},t);i.push(...u),s.push(...y)}),this.inputsDeclarations.forEach(l=>{const{updated:u,removed:y}=l.remove({ignoreUpstream:!0},t);i.push(...u),s.push(...y)}),this.outputs.forEach(l=>{const{updated:u,removed:y}=l.remove({ignoreUpstream:!0},t);i.push(...u),s.push(...y)}),this.outputsDeclarations.forEach(l=>{const{updated:u,removed:y}=l.remove({ignoreUpstream:!0},t);i.push(...u),s.push(...y)}),this.error){const{updated:l,removed:u}=this.error.remove({ignoreUpstream:!0},t);i.push(...l),s.push(...u)}return this.successCalls.forEach(l=>{i.push(l),l.removeCaller(this,t)}),this.errorCalls.forEach(l=>{i.push(l),l.removeCaller(this,t)}),e||this.calledBy.forEach(l=>{i.push(l),l.removeCall(this,t)}),t==null||t.attemptAutoclose("remove-entity",this.id),{added:p(d),updated:p(i),removed:p(s),affected:p(o),self:this}}restore({}={},e=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"restore-entity"))){const t=[],i=[],s=[],d=[];return e!=null&&e.hasAdded(this.id)?(e==null||e.attemptAutoclose("restore-entity",this.id),{added:[],updated:[],removed:[],affected:[],self:this}):(this.subscribe(),this.project.unsubscribeDeletedInstance(this),this.metaSync({deleted:!1},e),Object.values(this.detachedDependents).forEach(o=>{const{updated:l,removed:u,added:y}=o.entity.onDetachedDependencyRestored(this,o.field,e);i.push(...l),s.push(...u),t.push(...y)}),this.inputsDeclarations.forEach(o=>{const{updated:l}=o.restore({},e);i.push(...l)}),this.inputs.forEach(o=>{const{updated:l}=o.restore({},e);i.push(...l)}),this.outputsDeclarations.forEach(o=>{const{updated:l}=o.restore({},e);i.push(...l)}),this.outputs.forEach(o=>{const{updated:l}=o.restore({},e);i.push(...l)}),this.successCalls.forEach(o=>{i.push(o),o.addSuccessCaller(this,e)}),this.errorCalls.forEach(o=>{i.push(o),o.addErrorCaller(this,e)}),this.calledBySuccess.forEach(o=>{i.push(o),o.addSuccessCall(this,e)}),this.calledByError.forEach(o=>{i.push(o),o.addErrorCall(this,e)}),this.calledByEntry.forEach(o=>{i.push(o),o.addCall(this,e)}),e==null||e.attemptAutoclose("restore-entity",this.id),{added:p(t),updated:p(i),removed:p(s),affected:p(d),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.inputsDeclarations.flatMap(i=>i.toFlat(e)),...this.outputs.flatMap(i=>i.toFlat(e)),...this.outputsDeclarations.flatMap(i=>i.toFlat(e)),...this.calledBy.flatMap(i=>i.toFlat(e)),...this.error?this.error.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.inputsDeclarations.flatMap(i=>i.toFlatIds(e)),...this.outputs.flatMap(i=>i.toFlatIds(e)),...this.outputsDeclarations.flatMap(i=>i.toFlatIds(e)),...this.calledBy.flatMap(i=>i.toFlatIds(e)),...this.error?this.error.toFlatIds(e):[]])}toMeta(){return{id:this.id,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,description:this.description,query:this.query,x:this.x,y:this.y,type:this.type,name:this.name}}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,query:this.query,description:this.description,x:this.x,y:this.y,successCalls:this.successCalls.map(i=>i.toJSON()),errorCalls:this.errorCalls.map(i=>i.toJSON()),calledBySuccess:this.calledBySuccess.map(i=>i.toReference()),calledByError:this.calledByError.map(i=>i.toReference()),calledByEntry:this.calledByEntry.map(i=>i.toReference()),inputsDeclarations:this.inputsDeclarations.map(i=>i.toJSON()),inputs:this.inputs.map(i=>i.toJSON()),outputsDeclarations:this.outputsDeclarations.map(i=>i.toJSON()),outputs:this.outputs.map(i=>i.toJSON()),error:((t=this.error)==null?void 0:t.toJSON())||null,parent:this.parent.toReference()})}toJSONClone(e=J){var i,s,d,o,l,u;let t;return(i=e.seenEntityMaps)!=null&&i.has(this.id)?t=e.seenEntityMaps.get(this.id):(t=e.newId||ht(this,this.project,e.uuidStrategy),e.seenEntityMaps&&e.seenEntityMaps.set(this.id,t)),(s=e.seenEntities)!=null&&s.has(t)||(d=e.seenEntities)!=null&&d.has(this.id)?this.toReference({seenEntityMaps:e.seenEntityMaps}):((o=e.seenEntities)==null||o.add(t),(l=e.seenEntities)==null||l.add(this.id),{id:t,version:m.UUID.uuid(),createdAt:e.timestamp||T().toISOString(),author:m.sessionAuthor,previousVersion:null,deleted:!1,type:n.Search,name:this.name,query:this.query,description:this.description,x:this.x,y:this.y,successCalls:this.successCalls.map(y=>y.toJSONClone({...e,newId:null})),errorCalls:this.errorCalls.map(y=>y.toJSONClone({...e,newId:null})),calledBySuccess:this.calledBySuccess.map(y=>y.toReference({seenEntityMaps:e.seenEntityMaps})),calledByError:this.calledByError.map(y=>y.toReference({seenEntityMaps:e.seenEntityMaps})),calledByEntry:this.calledByEntry.map(y=>y.toReference({seenEntityMaps:e.seenEntityMaps})),inputsDeclarations:this.inputsDeclarations.map(y=>y.toJSONClone({...e,newId:null})),inputs:this.inputs.map(y=>y.toJSONClone({...e,newId:null})),outputsDeclarations:this.outputsDeclarations.map(y=>y.toJSONClone({...e,newId:null})),outputs:this.outputs.map(y=>y.toJSONClone({...e,newId:null})),error:((u=this.error)==null?void 0:u.toJSONClone({...e,newId:null}))||null,parent:this.parent.toReference({seenEntityMaps:e.seenEntityMaps})})}toReference(e=J){var i;let t=this.id;return(i=e.seenEntityMaps)!=null&&i.has(this.id)&&(t=e.seenEntityMaps.get(this.id)),{id:t+"--"+m.UUID.uuid()+"--ref",type:n.GenericReference,entityId:t,version:this.version,entityType:this.type}}toShallowJSON(e=J){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,query:this.query,x:this.x,y:this.y,inputs:this.inputs.map(s=>s.toReference(e)),inputsDeclarations:this.inputsDeclarations.map(s=>s.toReference(e)),outputs:this.outputs.map(s=>s.toReference(e)),outputsDeclarations:this.outputsDeclarations.map(s=>s.toReference(e)),successCalls:this.successCalls.map(s=>s.toReference(e)),errorCalls:this.errorCalls.map(s=>s.toReference(e)),calledBySuccess:this.calledBySuccess.map(s=>s.toReference(e)),calledByError:this.calledByError.map(s=>s.toReference(e)),calledByEntry:this.calledByEntry.map(s=>s.toReference(e)),error:this.error?this.error.toReference(e):null,parent:this.parent.toReference(e)}}toFlatJSON(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.toShallowJSON(),...this.successCalls.flatMap(i=>i.toFlatJSON(e)),...this.errorCalls.flatMap(i=>i.toFlatJSON(e)),...this.inputs.flatMap(i=>i.toFlatJSON(e)),...this.inputsDeclarations.flatMap(i=>i.toFlatJSON(e)),...this.outputs.flatMap(i=>i.toFlatJSON(e)),...this.outputsDeclarations.flatMap(i=>i.toFlatJSON(e)),...this.calledBy.flatMap(i=>i.toFlatJSON(e)),...this.error?this.error.toFlatJSON(e):[]])}toGenerationTarget(){const e=this.parent.type===n.Project?void 0:this.parent.id;return{id:this.id,name:this.name,description:this.description,type:this.type,query:this.query,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.successCalls.flatMap(i=>i.toFlatGenerationTarget(e)),...this.errorCalls.flatMap(i=>i.toFlatGenerationTarget(e)),...this.inputs.flatMap(i=>i.toFlatGenerationTarget(e)),...this.inputsDeclarations.flatMap(i=>i.toFlatGenerationTarget(e)),...this.outputs.flatMap(i=>i.toFlatGenerationTarget(e)),...this.outputsDeclarations.flatMap(i=>i.toFlatGenerationTarget(e)),...this.error?this.error.toFlatGenerationTarget(e):[]])}clearErrors(){var e;return this.errors=[],this.inputsDeclarations.forEach(t=>t.clearErrors()),this.inputs.forEach(t=>t.clearErrors()),this.outputs.forEach(t=>t.clearErrors()),this.successCalls.forEach(t=>t.clearErrors()),this.errorCalls.forEach(t=>t.clearErrors()),(e=this.error)==null||e.clearErrors(),this}validate(){const e=D1(this);return this.errors=e,{success:!0,error:null,data:this.toJSON()}}getErrors(){return[...this.errors,...this.inputsDeclarations.flatMap(t=>t.getErrors()),...this.inputs.flatMap(t=>t.getErrors()),...this.outputsDeclarations.flatMap(t=>t.getErrors()),...this.outputs.flatMap(t=>t.getErrors()),...this.error?this.error.getErrors():[]]}getShallowErrors(){return this.errors}clone(e=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"clone-entity")),t=null,i=null,s=!0){var V,M,g,B;let d=mt(t,this);const o=this.toJSON(),l=i||m.UUID.uuid();o.inputs=[];const u=l.split("-id"),y=u[u.length-1||0]||l;o.id=l,o.version=m.UUID.uuid(),o.createdAt=(e==null?void 0:e.timestamp)||T().toISOString(),o.author=(e==null?void 0:e.author)||"1",o.previousVersion=null,o.deleted=!1;const c=nt(o,d);t?c.setParent(t,null):c.setParent(this.parent,null),s&&c.subscribe(),c.initChildren(e),e==null||e.add(c,b.Added);const I=(V=this.inputsDeclarations)==null?void 0:V.map((G,q)=>G.clone(e,this,y+"-input-declaration-"+q+"-id",s));c.inputsDeclarations=I;const E=(M=this.outputsDeclarations)==null?void 0:M.map((G,q)=>G.clone(e,this,y+"-output-declaration-"+q+"-id",s));c.outputsDeclarations=E;const O=(g=this.inputs)==null?void 0:g.map((G,q)=>G.clone(e,c,y+"-input-map-"+q+"-id",s));c.inputs=O;const P=(B=this.outputs)==null?void 0:B.map((G,q)=>G.clone(e,c,y+"-output-map-"+q+"-id",s));return c.outputs=P,this.error&&(c.error=this.error.clone(e,c,y+"-error-map-id",s)),e==null||e.attemptAutoclose("clone-entity",this.id),c}syncInputMaps(e=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"sync-input-maps"))){const t=[],i=[],s=[],d=[];return this.inputsDeclarations.forEach(o=>{if(!this.inputs.find(u=>{var y;return((y=u.declaration)==null?void 0:y.id)===o.id})){const u={id:m.UUID.uuid(),version:m.UUID.uuid(),createdAt:(e==null?void 0:e.timestamp)||T().toISOString(),author:m.sessionAuthor,previousVersion:null,deleted:!1,type:n.InputMap,declaration:o.toJSON(),readsValue:null,defaultValue:null,index:this.inputs.length,name:null,description:null,parent:this.toReference()},y=C(u,this.project);y.setParent(this,e),y.initChildren(e),e==null||e.add(y,b.Added),y.addSelfToProject(e),t.push(this),i.push(y)}}),this.inputs.forEach(o=>{if(!this.inputsDeclarations.find(u=>{var y;return u.id===((y=o.declaration)==null?void 0:y.id)})){const{updated:u,removed:y}=o.remove({ignoreUpstream:!1},e);u.push(...u),s.push(...y)}}),e==null||e.attemptAutoclose("sync-input-maps",this.id),{updated:p(t),added:p(i),removed:p(s),affected:p(d),self:this}}};f(We,"repository",{APICreate:async(e,...t)=>e,APIUpdate:async(e,...t)=>e,APIDelete:async(e,...t)=>e,APIClone:async(e,...t)=>{},APILoad:async(e,...t)=>null,APILoadVersion:async(e,t,...i)=>null}),f(We,"type",n.Search),f(We,"USER_MANAGED_PARENT_TYPES",[...ut,n.Project]),f(We,"PARENT_TYPES",[...We.USER_MANAGED_PARENT_TYPES]),f(We,"MUTABLE_BASE_PROPERTIES",["name","description","query"]),f(We,"INMUTABLE_BASE_PROPERTIES",["id","type","version","createdAt","author","previousVersion"]),f(We,"BASE_PROPERTIES",[...We.MUTABLE_BASE_PROPERTIES,...We.INMUTABLE_BASE_PROPERTIES]),f(We,"MUTABLE_META_PROPERTIES",[...We.MUTABLE_BASE_PROPERTIES,"x","y"]),f(We,"INMUTABLE_META_PROPERTIES",[...We.INMUTABLE_BASE_PROPERTIES]),f(We,"META_PROPERTIES",[...We.MUTABLE_META_PROPERTIES,...We.INMUTABLE_META_PROPERTIES]),f(We,"MUTABLE_UPSTREAM_PROPERTIES",["calledBySuccess","calledByError","calledByEntry"]),f(We,"INMUTABLE_UPSTREAM_PROPERTIES",["parent"]),f(We,"UPSTREAM_PROPERTIES",[...We.MUTABLE_UPSTREAM_PROPERTIES,...We.INMUTABLE_UPSTREAM_PROPERTIES]),f(We,"MUTABLE_DOWNSTREAM_PROPERTIES",["successCalls","errorCalls","inputsDeclarations","inputs","outputsDeclarations","outputs","error"]),f(We,"INMUTABLE_DOWNSTREAM_PROPERTIES",[]),f(We,"DOWNSTREAM_PROPERTIES",[...We.MUTABLE_DOWNSTREAM_PROPERTIES,...We.INMUTABLE_DOWNSTREAM_PROPERTIES]),f(We,"PROPERTIES",[...ei.META_PROPERTIES,...ei.UPSTREAM_PROPERTIES,...ei.DOWNSTREAM_PROPERTIES]);let Hr=We;function P1(r){const a=UZ(),e=r.toJSON();a.safeParse(e).success,r.functions.forEach(s=>s.validate()),r.events.forEach(s=>s.validate());const i=[];return Ke(r.errors,i)}const WJ=Object.freeze(Object.defineProperty({__proto__:null,validate:P1},Symbol.toStringTag,{value:"Module"})),Ze=class Ze extends dt{constructor(e,t){super(e);f(this,"initialData");f(this,"id");f(this,"name");f(this,"description",null);f(this,"x");f(this,"y");f(this,"type",n.InstalledProject);f(this,"implements");f(this,"functions",[]);f(this,"events",[]);f(this,"parent");f(this,"errors",[]);f(this,"project");f(this,"detachedDependents",{});f(this,"knownVersions",null);f(this,"activeVersion",!1);f(this,"initialized",!1);f(this,"startedInitialization",!1);this.initialData=e,this.project=t,this.id=e.id,this.name=e.name,this.description=e.description,this.x=e.x,this.y=e.y,this.implements=e.implements}static new(e=null){return{id:m.UUID.uuid(),version:m.UUID.uuid(),createdAt:(e==null?void 0:e.timestamp)||T().toISOString(),author:(e==null?void 0:e.author)||m.sessionAuthor,previousVersion:null,deleted:!1,type:n.InstalledProject,name:"",description:"",implements:null,functions:[],events:[],x:0,y:0,parent:null}}static fromGenerationTarget(e,t){const i=t,s={id:e.id,version:m.UUID.uuid(),createdAt:T().toISOString(),author:m.sessionAuthor,previousVersion:null,deleted:!1,name:e.name,type:n.InstalledProject,description:e.description,functions:[],events:[],implements:{entityId:e.implements,version:m.UUID.uuid(),entityType:n.Project,type:n.GenericReference,id:m.UUID.uuid()},x:0,y:0,parent:i},d=C(s,t);return d.setParent(i,null),d.initChildren(null),d}static validateGenerationTarget(e,t){let i=JSON.parse(JSON.stringify(e));const s=[];return s.push(...pt(i)),{errors:s,modifiedData:i}}validateGeneratedUpdate(e){const t=[];return e.parent&&t.push(new w({id:`${this.id}--${R.InvalidParentUpdate}`,code:R.InvalidParentUpdate,severity:D.Error,message:`Entity of type '${this.type}' with id '${this.id}' cannot have the 'parent' property updated. The 'parent' on an installed project, must be the root project as it is a globally declared entity.`,issue:null})),{errors:t,modifiedData:e}}subscribeDependents(e){return e.forEach(t=>{this.detachedDependents[t.entity.id]||(this.detachedDependents[t.entity.id]=t)}),this}syncDependents(e=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"sync-dependents"))){const t=[],i=[],s=[],d=[];return Object.values(this.detachedDependents).forEach(o=>{const l=o.entity.afterAllChildrenInitialized(e);t.push(...l.updated),i.push(...l.added),s.push(...l.removed),d.push(...l.affected)}),e==null||e.attemptAutoclose("sync-dependents",this.id),{updated:p(t),added:p(i),removed:p(s),affected:p(d),self:this}}onDetachedDependencyRemoved(e,t,i){const s=[],d=[],o=[],l=[];return{updated:p(s),added:p(d),removed:p(o),affected:p(l),self:this}}onDetachedDependencyRestored(e,t,i){const s=[],d=[],o=[],l=[];return{updated:p(s),added:p(d),removed:p(o),affected:p(l),self:this}}subscribeToDependencies(){return this}increaseVersion(e){if(e&&!T(e).isValid())throw new Error(`The shared timestamp '${e}' is not a valid ISO 8601 date string.`);return e&&T(e).isSame(T(this.createdAt))?this:(this.previousVersion=this.version,this.version=m.UUID.uuid(),this.createdAt=T(e).toISOString()||T().toISOString(),this)}captureVersion(){var t;const e=((t=this.knownVersions)==null?void 0:t.get(this.version))||new Ze(this,this.project);return e.metaSync(this.toMeta(),null),this.knownVersions=this.knownVersions?this.knownVersions.set(this.version,e):new Map([[this.version,e]]),e.functions=this.functions,e.events=this.events,e.parent=this.parent,this}recursiveCaptureUpstreamVersions(e){const t=[],i=[],s=[],d=[];if(this.parent){this.parent.increaseVersion(e);const o=this.parent.recursiveCaptureUpstreamVersions(e);t.push(this.parent,...o.updated),i.push(...o.added),s.push(...o.removed)}return{updated:p(t),added:p(i),removed:p(s),affected:p(d),self:this}}async restoreVersion(e){var l;const t=[],i=[],s=[],d=[];if(this.version===e)return{updated:p(t),added:p(i),removed:p(s),affected:p(d),self:this};if(!this.knownVersions){const u=new Map;for(const[y,c]of this.knownVersions||new Map){if(u.set(y,c),c.activeVersion=!1,c.knownVersions)for(const[I,E]of c.knownVersions)u.set(I,E);c.knownVersions=null}}let o=(l=this.knownVersions)==null?void 0:l.get(e);if(!o){const u=await this.APILoadVersion({},e);if(!u)throw new Error(`Version with id '${e}' for entity with id '${this.id}' not found.`);o=new Ze(u,this.project)}return this.metaSync(o.toShallowJSON(),null),this.functions=o.functions,this.events=o.events,this.parent=o.parent,{updated:p(t),added:p(i),removed:p(s),affected:p(d),self:this}}hydrateAncestors(){const e=[],t=[],i=[],s=[];if(this.initialData.parent){const d=_(this.initialData.parent),o=this.project.get(d);if(o)this.setParent(o,null),e.push(o);else throw new Error(`${this.type} with id '${this.id}' has a 'parent' reference '${d}' that isn't found in the project`)}else throw new Error(`${this.type} with id '${this.id}' must have a 'parent'`);return{updated:p(e),added:p(t),removed:p(i),affected:p(s),self:this}}afterAllChildrenInitialized(e=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"after-all-children-initialized"))){const t=[],i=[],s=[],d=[];return this.initialized=!0,this.captureVersion(),e==null||e.attemptAutoclose("after-all-children-initialized",this.id),{updated:p(t),added:p(i),removed:p(s),affected:p(d),self:this}}addSelfToProject(e=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"add-self-to-project"))){const t=[this],i=[],s=[],d=[];return this.project.addInstalledProject(this),this.subscribe(),this.subscribeToDependencies(),e==null||e.attemptAutoclose("add-self-to-project",this.id),{updated:p(t),added:p(i),removed:p(s),affected:p(d),self:this}}setParent(e,t=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"set-parent"))){var i;return((i=this.parent)==null?void 0:i.id)!==(e==null?void 0:e.id)&&(this.parent=e,t&&(t==null||t.add(this,b.Updated),t==null||t.attemptAutoclose("set-parent",this.id))),this}initChildren(e=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"init-children"))){return this.initialized||this.startedInitialization?this:(this.startedInitialization=!0,this.functions=this.initialData.functions.map(t=>{const i=C(t,this.project);return i.setParent(this,null),i.initChildren(e),i}),this.events=this.initialData.events.map(t=>{const i=C(t,this.project);return i.setParent(this,null),i.initChildren(e),i}),this.subscribeToDependencies(),this.afterAllChildrenInitialized(e),e==null||e.attemptAutoclose("init-children",this.id),this)}subscribe(){return this.activeVersion=!0,this.project.subscribeInstance(this),this}unsubscribe(){return this.project.unsubscribeInstance(this),this}metaSync(e,t=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"meta-sync"))){const i=ct(this,e),s=this.toMeta();return this.x=e.x||s.x,this.y=e.y||s.y,super.metaSync(e),e.deleted===!0&&!s.deleted?t==null||t.add(this,b.Removed):e.deleted===!1&&s.deleted?t==null||t.add(this,b.Added):i&&(t==null||t.add(this,b.Updated)),t==null||t.attemptAutoclose("meta-sync",this.id),this}async APILoad(e=U,...t){return await Ze.repository.APILoad(this.id,...t),this}async APICreate(e=U,...t){return await Ze.repository.APICreate(this.toShallowJSON(),...t),this}async APIUpdate(e=U,...t){return await Ze.repository.APIUpdate(this.toShallowJSON(),...t),this}async APIDelete(e=U,...t){return await Ze.repository.APIDelete(this.toShallowJSON(),...t),this}async APIClone(e=U,...t){return await Ze.repository.APIClone(this.id,...t),this}async APILoadVersion(e=U,t,...i){return await Ze.repository.APILoadVersion(this.id,t,...i)}remove({ignoreUpstream:e}={ignoreUpstream:!1},t=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"remove-entity"))){const i=[],s=[],d=[],o=[];return t!=null&&t.hasRemoved(this.id)?(t==null||t.attemptAutoclose("remove-entity",this.id),{added:[],updated:[],removed:[],affected:[],self:this}):(s.push(this),this.unsubscribe(),this.project.subscribeDeletedInstance(this),this.metaSync({deleted:!0},t),Object.values(this.detachedDependents).forEach(l=>{const{updated:u,removed:y,added:c}=l.entity.onDetachedDependencyRemoved(this,l.field,t);i.push(...u),s.push(...y),d.push(...c)}),this.functions.forEach(l=>{const{updated:u,removed:y}=l.remove({ignoreUpstream:!1},t);i.push(...u),s.push(...y)}),this.events.forEach(l=>{const{updated:u,removed:y}=l.remove({ignoreUpstream:!1},t);i.push(...u),s.push(...y)}),t==null||t.attemptAutoclose("remove-entity",this.id),{added:[],updated:[],removed:[],affected:p(o),self:this})}restore({}={},e=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"restore-entity"))){const t=[],i=[],s=[],d=[];return e!=null&&e.hasAdded(this.id)?(e==null||e.attemptAutoclose("restore-entity",this.id),{added:[],updated:[],removed:[],affected:[],self:this}):(this.subscribe(),this.project.unsubscribeDeletedInstance(this),this.metaSync({deleted:!1},e),Object.values(this.detachedDependents).forEach(o=>{const{updated:l,removed:u,added:y,affected:c}=o.entity.onDetachedDependencyRestored(this,o.field,e);t.push(...l),i.push(...u),s.push(...y),d.push(...c)}),this.functions.forEach(o=>{const{updated:l,removed:u,added:y,affected:c}=o.restore({},e);t.push(...l),i.push(...u),s.push(...y),d.push(...c)}),this.events.forEach(o=>{const{updated:l,removed:u,added:y,affected:c}=o.restore({},e);t.push(...l),i.push(...u),s.push(...y),d.push(...c)}),e==null||e.attemptAutoclose("restore-entity",this.id),{added:[],updated:[],removed:[],affected:[],self:this})}toFlat(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this,...this.functions.flatMap(i=>i.toFlat(e)),...this.events.flatMap(i=>i.toFlat(e))])}toFlatIds(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.id,...this.functions.flatMap(i=>i.toFlatIds(e)),...this.events.flatMap(i=>i.toFlatIds(e))])}toMeta(){return{id:this.id,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,description:this.description,x:this.x,y:this.y,type:this.type,name:this.name}}toJSON(e=new Set){return e.has(this.id)?this.toReference():(e.add(this.id),{id:this.id,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,type:this.type,name:this.name,description:this.description,implements:this.implements,functions:this.functions.map(t=>t.toJSON(e)),events:this.events.map(t=>t.toJSON(e)),parent:this.parent.toReference(),x:this.x,y:this.y})}toJSONClone(e=J){var i,s,d,o,l;let t;return(i=e.seenEntityMaps)!=null&&i.has(this.id)?t=e.seenEntityMaps.get(this.id):(t=e.newId||ht(this,this.project,e.uuidStrategy),e.seenEntityMaps&&e.seenEntityMaps.set(this.id,t)),(s=e.seenEntities)!=null&&s.has(t)||(d=e.seenEntities)!=null&&d.has(this.id)?this.toReference({seenEntityMaps:e.seenEntityMaps}):((o=e.seenEntities)==null||o.add(t),(l=e.seenEntities)==null||l.add(this.id),{id:t,version:m.UUID.uuid(),createdAt:e.timestamp||T().toISOString(),previousVersion:null,author:this.author,deleted:this.deleted,type:this.type,name:this.name,description:this.description,implements:this.implements,functions:this.functions.map(u=>u.toJSONClone({...e,newId:null})),events:this.events.map(u=>u.toJSONClone({...e,newId:null})),parent:this.parent.toReference({seenEntityMaps:e.seenEntityMaps}),x:this.x,y:this.y})}toReference(e=J){var i;let t=this.id;return(i=e.seenEntityMaps)!=null&&i.has(this.id)&&(t=e.seenEntityMaps.get(this.id)),{id:t+"--"+m.UUID.uuid()+"--ref",type:n.GenericReference,entityId:t,version:this.version,entityType:this.type}}toShallowJSON(e=J){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,x:this.x,y:this.y,implements:this.implements,functions:this.functions.map(s=>s.toReference(e)),events:this.events.map(s=>s.toReference(e)),parent:this.parent.toReference(e)}}toFlatJSON(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.toShallowJSON(),...this.functions.flatMap(i=>i.toFlatJSON(e)),...this.events.flatMap(i=>i.toFlatJSON(e))])}toGenerationTarget(){return{id:this.id,name:this.name,description:this.description,type:this.type,implements:this.implements.id}}toFlatGenerationTarget(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.toGenerationTarget(),...this.functions.flatMap(i=>i.toFlatGenerationTarget(e)),...this.events.flatMap(i=>i.toFlatGenerationTarget(e))])}clearErrors(){return this.errors=[],this.functions.forEach(e=>e.clearErrors()),this.events.forEach(e=>e.clearErrors()),this}validate(){const e=P1(this);return this.errors=e,{success:!0,error:null,data:this.toJSON()}}getErrors(){return[...this.errors,...this.functions.flatMap(t=>t.getErrors()),...this.events.flatMap(t=>t.getErrors())]}getShallowErrors(){return this.errors}clone(e=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"clone-entity")),t=null,i=null,s=!0){var O,P;let d=mt(t,this);const o=this.toJSON(),l=i||m.UUID.uuid();o.functions=[],o.events=[];const u=l.split("-id"),y=u[u.length-1||0]||l;o.id=l,o.version=m.UUID.uuid(),o.createdAt=(e==null?void 0:e.timestamp)||T().toISOString(),o.author=(e==null?void 0:e.author)||"1",o.previousVersion=null,o.deleted=!1;const c=nt(o,d);t&&c.setParent(t,null),s&&c.subscribe(),c.initChildren(e),e==null||e.add(c,b.Added);const I=(O=this.functions)==null?void 0:O.map((V,M)=>V.clone(e,c,y+"-exported-function-declaration-"+M+"-id",s));c.functions=I;const E=(P=this.events)==null?void 0:P.map((V,M)=>V.clone(e,c,y+"-exported-event-"+M+"-id",s));return c.events=E,e==null||e.attemptAutoclose("clone-entity",this.id),c}};f(Ze,"repository",{APICreate:async(e,...t)=>e,APIUpdate:async(e,...t)=>e,APIDelete:async(e,...t)=>e,APIClone:async(e,...t)=>{},APILoad:async(e,...t)=>null,APILoadVersion:async(e,t,...i)=>null}),f(Ze,"type",n.InstalledProject),f(Ze,"USER_MANAGED_PARENT_TYPES",[n.Project]),f(Ze,"PARENT_TYPES",[...Ze.USER_MANAGED_PARENT_TYPES]),f(Ze,"MUTABLE_BASE_PROPERTIES",[]),f(Ze,"INMUTABLE_BASE_PROPERTIES",["id","version","name","description","type","createdAt","author","previousVersion"]),f(Ze,"BASE_PROPERTIES",[...Ze.MUTABLE_BASE_PROPERTIES,...Ze.INMUTABLE_BASE_PROPERTIES]),f(Ze,"MUTABLE_META_PROPERTIES",["x","y"]),f(Ze,"INMUTABLE_META_PROPERTIES",[...Ze.INMUTABLE_BASE_PROPERTIES]),f(Ze,"META_PROPERTIES",[...Ze.MUTABLE_META_PROPERTIES,...Ze.INMUTABLE_META_PROPERTIES]),f(Ze,"MUTABLE_UPSTREAM_PROPERTIES",[]),f(Ze,"INMUTABLE_UPSTREAM_PROPERTIES",["implements","parent"]),f(Ze,"UPSTREAM_PROPERTIES",[...Ze.MUTABLE_UPSTREAM_PROPERTIES,...Ze.INMUTABLE_UPSTREAM_PROPERTIES]),f(Ze,"MUTABLE_DOWNSTREAM_PROPERTIES",["functions","events"]),f(Ze,"INMUTABLE_DOWNSTREAM_PROPERTIES",[]),f(Ze,"DOWNSTREAM_PROPERTIES",[...Ze.MUTABLE_DOWNSTREAM_PROPERTIES,...Ze.INMUTABLE_DOWNSTREAM_PROPERTIES]),f(Ze,"PROPERTIES",[...Ze.META_PROPERTIES,...Ze.UPSTREAM_PROPERTIES,...Ze.DOWNSTREAM_PROPERTIES]);let Kr=Ze;function w1(r){var o;const a=Y5(),e=r.toJSON();a.safeParse(e).success,r.inputs.forEach(l=>l.validate()),r.outputs.forEach(l=>l.validate()),(o=r.error)==null||o.validate();const i=Ar(r),s=C1(r),d=[...i,...s];return Ke(r.errors,d)}function C1(r){const a=[],e=jd(r.parent,null),t=e==null?void 0:e.entity;if(!t)a.push(le({id:`${r.id}--${$.InternalCallParentMissingDataType}`,code:$.InternalCallParentMissingDataType,severity:D.Error,message:`Entity of type "${r.type}" with id "${r.id}", belongs to a variable whose data type entity doesn't contain its declaration method (function-declaration) its id "${r.declaration}".`,issue:null,entity:r}).error);else if(![n.DefinitionEntity,n.BuiltInBaseEntity,n.PrimitiveEntity].includes(t.type))a.push(le({id:`${r.id}--${$.InternalCallParentDeclarationEntityInvalidType}`,code:$.InternalCallParentDeclarationEntityInvalidType,severity:D.Error,message:`Entity of type "${r.type}" with id "${r.id}", belongs to a variable whose data type 'entity' is not a definition entity, built-in base entity or primitive entity.
|
|
111
|
+
You shouldn't have to manually update a 'parent' property. The equivalent result is to change its callers, the value writters of its inputs, or the value readers of its outputs.`,issue:null})),{errors:t,modifiedData:e}}subscribeDependents(e){return e.forEach(t=>{this.detachedDependents[t.entity.id]||(this.detachedDependents[t.entity.id]=t)}),this}syncDependents(e=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"sync-dependents"))){const t=[],i=[],s=[],d=[];return Object.values(this.detachedDependents).forEach(o=>{const l=o.entity.afterAllChildrenInitialized(e);t.push(...l.updated),i.push(...l.added),s.push(...l.removed),d.push(...l.affected)}),e==null||e.attemptAutoclose("sync-dependents",this.id),{updated:p(t),added:p(i),removed:p(s),affected:p(d),self:this}}onDetachedDependencyRemoved(e,t,i){const s=[],d=[],o=[],l=[];if(t==="parent"){const{updated:u,added:y,removed:c}=this.remove({ignoreUpstream:!1},i);s.push(...u),d.push(...y),o.push(...c)}return{updated:p(s),added:p(d),removed:p(o),affected:p(l),self:this}}onDetachedDependencyRestored(e,t,i){const s=[],d=[],o=[],l=[];if(t==="parent"){const{updated:u,added:y,removed:c}=this.restore({},i);s.push(...u),d.push(...y),o.push(...c)}return{updated:p(s),added:p(d),removed:p(o),affected:p(l),self:this}}subscribeToDependencies(){var e;return(e=this.parent)==null||e.subscribeDependents([{entity:this,field:"parent"}]),this}increaseVersion(e){if(e&&!T(e).isValid())throw new Error(`The shared timestamp '${e}' is not a valid ISO 8601 date string.`);return e&&T(e).isSame(T(this.createdAt))?this:(this.previousVersion=this.version,this.version=m.UUID.uuid(),this.createdAt=T(e).toISOString()||T().toISOString(),this)}captureVersion(){var t;const e=((t=this.knownVersions)==null?void 0:t.get(this.version))||new We(this,this.project);return e.metaSync(this.toMeta(),null),this.knownVersions=this.knownVersions?this.knownVersions.set(this.version,e):new Map([[this.version,e]]),e.inputs=this.inputs,e.outputs=this.outputs,e.error=this.error,e.inputsDeclarations=this.inputsDeclarations,e.outputsDeclarations=this.outputsDeclarations,e.successCalls=this.successCalls,e.errorCalls=this.errorCalls,e.calledByEntry=this.calledByEntry,e.calledBySuccess=this.calledBySuccess,e.calledByError=this.calledByError,e.parent=this.parent,this}recursiveCaptureUpstreamVersions(e){const t=[],i=[],s=[],d=[];if(this.parent){this.parent.increaseVersion(e);const o=this.parent.recursiveCaptureUpstreamVersions(e);t.push(this.parent,...o.updated),i.push(...o.added),s.push(...o.removed)}return{updated:p(t),added:p(i),removed:p(s),affected:p(d),self:this}}async restoreVersion(e){var l;const t=[],i=[],s=[],d=[];if(this.version===e)return{updated:p(t),added:p(i),removed:p(s),affected:p(d),self:this};if(!this.knownVersions){const u=new Map;for(const[y,c]of this.knownVersions||new Map){if(u.set(y,c),c.activeVersion=!1,c.knownVersions)for(const[I,E]of c.knownVersions)u.set(I,E);c.knownVersions=null}}let o=(l=this.knownVersions)==null?void 0:l.get(e);if(!o){const u=await this.APILoadVersion({},e);if(!u)throw new Error(`Version with id '${e}' for entity with id '${this.id}' not found.`);o=new We(u,this.project)}return this.metaSync(o.toShallowJSON(),null),this.inputs=o.inputs,this.outputs=o.outputs,this.error=o.error,this.inputsDeclarations=o.inputsDeclarations,this.outputsDeclarations=o.outputsDeclarations,this.successCalls=o.successCalls,this.errorCalls=o.errorCalls,this.calledByEntry=o.calledByEntry,this.calledBySuccess=o.calledBySuccess,this.calledByError=o.calledByError,this.parent=o.parent,{updated:p(t),added:p(i),removed:p(s),affected:p(d),self:this}}hydrateAncestors(){const e=[],t=[],i=[],s=[];if(this.initialData.parent){const d=_(this.initialData.parent),o=this.project.get(d);if(o)this.setParent(o,null),e.push(o);else throw new Error(`${this.type} with id '${this.id}' has a 'parent' reference '${d}' that isn't found in the project`)}else throw new Error(`${this.type} with id '${this.id}' must have a 'parent'`);return this.initialData.calledByEntry.forEach(d=>{const o=_(d),l=this.project.get(o);l&&(this.addEntryCaller(l,null),l.addCall(this,null),e.push(l))}),this.initialData.calledBySuccess.forEach(d=>{const o=_(d),l=this.project.get(o);l&&(this.addSuccessCaller(l,null),l.addSuccessCall(this,null),e.push(l))}),this.initialData.calledByError.forEach(d=>{const o=_(d),l=this.project.get(o);l&&(this.addErrorCaller(l,null),l.addErrorCall(this,null),e.push(l))}),{updated:p(e),added:p(t),removed:p(i),affected:p(s),self:this}}afterAllChildrenInitialized(e=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"after-all-children-initialized"))){const t=[],i=[],s=[],d=[];this.initialized=!0;const{updated:o,added:l,removed:u}=this.syncInputMaps(e);return t.push(...o),i.push(...l),s.push(...u),this.captureVersion(),e==null||e.attemptAutoclose("after-all-children-initialized",this.id),{updated:p(t),added:p(i),removed:p(s),affected:p(d),self:this}}addSelfToProject(e=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"add-self-to-project"))){const t=[this],i=[],s=[],d=[];return this.parent===this.project&&this.project.addSearch(this),this.successCalls.forEach(o=>{o.addSuccessCaller(this,e),t.push(o)}),this.errorCalls.forEach(o=>{o.addErrorCaller(this,e),t.push(o)}),this.calledByEntry.forEach(o=>{o.addCall(this,e),t.push(o)}),this.calledBySuccess.forEach(o=>{o.addSuccessCall(this,e),t.push(o)}),this.calledByError.forEach(o=>{o.addErrorCall(this,e),t.push(o)}),this.subscribe(),this.subscribeToDependencies(),e==null||e.attemptAutoclose("add-self-to-project",this.id),{updated:p(t),added:p(i),removed:p(s),affected:p(d),self:this}}get calledBy(){return[...this.calledByEntry,...this.calledBySuccess,...this.calledByError]}removeInput(e,t=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"remove-input"))){const i=this.inputs.findIndex(d=>d.id===e.id);i>-1&&(this.inputs.splice(i,1),t==null||t.add(this,b.Affected));const s=this.inputsDeclarations.findIndex(d=>{var o;return d.id===((o=e.declaration)==null?void 0:o.id)});return s>-1&&(this.inputsDeclarations.splice(s,1),t==null||t.add(this,b.Affected)),t==null||t.attemptAutoclose("remove-input",this.id),this}addInput(e,t=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"add-input"))){return this.inputs.includes(e)?(t==null||t.attemptAutoclose("add-input",this.id),this):(this.inputs.push(e),t==null||t.add(this,b.Affected),t==null||t.attemptAutoclose("add-input",this.id),this)}addInputDeclaration(e,t=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"add-input-declaration"))){return this.inputsDeclarations.includes(e)?(t==null||t.attemptAutoclose("add-input-declaration",this.id),this):(this.inputsDeclarations.push(e),t==null||t.attemptAutoclose("add-input-declaration",this.id),this)}removeInputDeclaration(e,t=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"remove-input-declaration"))){const i=this.inputsDeclarations.findIndex(s=>s.id===e.id);return i>-1&&(this.inputsDeclarations.splice(i,1),t==null||t.add(this,b.Affected)),t==null||t.attemptAutoclose("remove-input-declaration",this.id),this}addOutputDeclaration(e,t=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"add-output-declaration"))){return this.outputsDeclarations.includes(e)?(t==null||t.attemptAutoclose("add-output-declaration",this.id),this):(this.outputsDeclarations.push(e),t==null||t.add(this,b.Affected),t==null||t.attemptAutoclose("add-output-declaration",this.id),this)}removeOutputDeclaration(e,t=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"remove-output-declaration"))){const i=this.outputsDeclarations.findIndex(s=>s.id===e.id);return i>-1&&(this.outputsDeclarations.splice(i,1),t==null||t.add(this,b.Affected)),t==null||t.attemptAutoclose("remove-output-declaration",this.id),this}addOutput(e,t=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"add-output"))){return this.outputs.includes(e)?(t==null||t.attemptAutoclose("add-output",this.id),this):(this.outputs.push(e),t==null||t.add(this,b.Affected),t==null||t.attemptAutoclose("add-output",this.id),this)}removeOutput(e,t=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"remove-output"))){const i=this.outputs.findIndex(s=>s.id===e.id);return i>-1&&(this.outputs.splice(i,1),t&&(t==null||t.add(this,b.Affected))),t==null||t.attemptAutoclose("remove-output",this.id),this}addSuccessCaller(e,t=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"add-success-caller")),i=!1){return this.calledBySuccess.find(s=>s.id===e.id)||(this.calledBySuccess.push(e),t==null||t.add(this,b.Updated),i&&K(this,t)),t==null||t.attemptAutoclose("add-success-caller",this.id),this}addErrorCaller(e,t=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"add-error-caller")),i=!1){return this.calledByError.find(s=>s.id===e.id)||(this.calledByError.push(e),t==null||t.add(this,b.Updated),i&&K(this,t)),t==null||t.attemptAutoclose("add-error-caller",this.id),this}addEntryCaller(e,t=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"add-entry-caller")),i=!1){return this.calledByEntry.find(s=>s.id===e.id)||(this.calledByEntry.push(e),t==null||t.add(this,b.Updated),i&&K(this,t)),t==null||t.attemptAutoclose("add-entry-caller",this.id),this}addErrorCall(e,t=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"add-error-call")),i=!1){return this.errorCalls.find(s=>s.id===e.id)||(this.errorCalls.push(e),i&&K(this,t),t==null||t.add(this,b.Affected)),t==null||t.attemptAutoclose("add-error-call",this.id),this}addSuccessCall(e,t=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"add-success-call")),i=!1){return this.successCalls.find(s=>s.id===e.id)||(this.successCalls.push(e),i&&K(this,t),t==null||t.add(this,b.Affected)),t==null||t.attemptAutoclose("add-success-call",this.id),this}removeCall(e,t=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"remove-call")),i=!1){const s=this.successCalls.findIndex(o=>o.id===e.id);s>-1&&(this.successCalls.splice(s,1),t==null||t.add(this,b.Affected));const d=this.errorCalls.findIndex(o=>o.id===e.id);return d>-1&&(this.errorCalls.splice(d,1),t==null||t.add(this,b.Affected)),i&&K(this,t),t==null||t.attemptAutoclose("remove-call",this.id),this}removeCaller(e,t=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"remove-caller")),i=!1){return this.calledBySuccess=this.calledBySuccess.filter(s=>s.id!==e.id?(t&&(t==null||t.add(this,b.Updated),t==null||t.add(s,b.Affected)),!0):!1),this.calledByError=this.calledByError.filter(s=>s.id!==e.id?(t&&(t==null||t.add(this,b.Updated),t==null||t.add(s,b.Affected)),!0):!1),this.calledByEntry=this.calledByEntry.filter(s=>s.id!==e.id?(t&&(t==null||t.add(this,b.Updated),t==null||t.add(s,b.Affected)),!0):!1),i&&K(this,t),t==null||t.attemptAutoclose("remove-caller",this.id),this}setParent(e,t=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"set-parent"))){var i;return((i=this.parent)==null?void 0:i.id)!==(e==null?void 0:e.id)&&(this.parent=e,t&&(t==null||t.add(this,b.Updated),t==null||t.attemptAutoclose("set-parent",this.id))),this}initChildren(e=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"init-children"))){return this.initialized||this.startedInitialization?this:(this.startedInitialization=!0,this.successCalls=this.initialData.successCalls.map(t=>{const i=C(t,this.project);if([n.BreakStatement,n.ContinueStatement].includes(i.type))i.setParent(this.parent.parent,null),i.initChildren(e);else if(i.type===n.ReturnStatement){const s=Et(this,this.project);i.setParent(s,null),i.initChildren(e)}else i.type!==n.InternalCall&&(i.setParent(this.parent,null),i.initChildren(e));return i}),this.errorCalls=this.initialData.errorCalls.map(t=>{const i=C(t,this.project);if(i.addErrorCaller(this),[n.BreakStatement,n.ContinueStatement].includes(i.type))i.setParent(this.parent.parent,null),i.initChildren(e);else if(i.type===n.ReturnStatement){const s=Et(this,this.project);i.setParent(s,null),i.initChildren(e)}else i.type!==n.InternalCall&&(i.setParent(this.parent,null),i.initChildren(e));return i}),this.inputsDeclarations=this.initialData.inputsDeclarations.map(t=>{const i=C(t,this.project);return i.setParent(this,null),i.initChildren(e),i}),this.inputs=this.initialData.inputs.map(t=>{const i=C(t,this.project);return i.setParent(this,null),i.initChildren(e),i}),this.outputsDeclarations=this.initialData.outputsDeclarations.map(t=>{const i=C(t,this.project);return i.setParent(this,null),i.initChildren(e),i}),this.outputs=this.initialData.outputs.map(t=>{const i=C(t,this.project);return i.setParent(this,null),i.initChildren(e),i}),this.initialData.error&&(this.error=C(this.initialData.error,this.project),this.error.setParent(this,null),this.error.initChildren(e)),this.subscribeToDependencies(),this.afterAllChildrenInitialized(e),e==null||e.attemptAutoclose("init-children",this.id),this)}subscribe(){return this.activeVersion=!0,this.project.subscribeInstance(this),this}unsubscribe(){return this.project.unsubscribeInstance(this),this}metaSync(e,t=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"meta-sync"))){const i=ct(this,e),s=this.toMeta();return this.x=e.x||s.x,this.y=e.y||s.y,this.name=e.name!==void 0?e.name:s.name,this.description=e.description!==void 0?e.description:s.description,e.query!==void 0&&(this.query=e.query),super.metaSync(e),e.deleted===!0&&!s.deleted?t==null||t.add(this,b.Removed):e.deleted===!1&&s.deleted?t==null||t.add(this,b.Added):i&&(t==null||t.add(this,b.Updated)),t==null||t.attemptAutoclose("meta-sync",this.id),this}async APILoad(e=U,...t){return await We.repository.APILoad(this.id,...t),this}async APICreate(e=U,...t){return await We.repository.APICreate(this.toShallowJSON(),...t),this}async APIUpdate(e=U,...t){return await We.repository.APIUpdate(this.toShallowJSON(),...t),this}async APIDelete(e=U,...t){return await We.repository.APIDelete(this.toShallowJSON(),...t),this}async APIClone(e=U,...t){return await We.repository.APIClone(this.id,...t),this}async APILoadVersion(e=U,t,...i){return await We.repository.APILoadVersion(this.id,t,...i)}remove({ignoreUpstream:e}={ignoreUpstream:!1},t=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"remove-entity"))){const i=[],s=[],d=[],o=[];if(t!=null&&t.hasRemoved(this.id))return t==null||t.attemptAutoclose("remove-entity",this.id),{added:[],updated:[],removed:[],affected:[],self:this};if(s.push(this),this.unsubscribe(),this.project.subscribeDeletedInstance(this),this.metaSync({deleted:!0},t),Object.values(this.detachedDependents).forEach(l=>{const{updated:u,removed:y,added:c}=l.entity.onDetachedDependencyRemoved(this,l.field,t);i.push(...u),s.push(...y),d.push(...c)}),this.inputs.forEach(l=>{const{updated:u,removed:y}=l.remove({ignoreUpstream:!0},t);i.push(...u),s.push(...y)}),this.inputsDeclarations.forEach(l=>{const{updated:u,removed:y}=l.remove({ignoreUpstream:!0},t);i.push(...u),s.push(...y)}),this.outputs.forEach(l=>{const{updated:u,removed:y}=l.remove({ignoreUpstream:!0},t);i.push(...u),s.push(...y)}),this.outputsDeclarations.forEach(l=>{const{updated:u,removed:y}=l.remove({ignoreUpstream:!0},t);i.push(...u),s.push(...y)}),this.error){const{updated:l,removed:u}=this.error.remove({ignoreUpstream:!0},t);i.push(...l),s.push(...u)}return this.successCalls.forEach(l=>{i.push(l),l.removeCaller(this,t)}),this.errorCalls.forEach(l=>{i.push(l),l.removeCaller(this,t)}),e||this.calledBy.forEach(l=>{i.push(l),l.removeCall(this,t)}),t==null||t.attemptAutoclose("remove-entity",this.id),{added:p(d),updated:p(i),removed:p(s),affected:p(o),self:this}}restore({}={},e=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"restore-entity"))){const t=[],i=[],s=[],d=[];return e!=null&&e.hasAdded(this.id)?(e==null||e.attemptAutoclose("restore-entity",this.id),{added:[],updated:[],removed:[],affected:[],self:this}):(this.subscribe(),this.project.unsubscribeDeletedInstance(this),this.metaSync({deleted:!1},e),Object.values(this.detachedDependents).forEach(o=>{const{updated:l,removed:u,added:y}=o.entity.onDetachedDependencyRestored(this,o.field,e);i.push(...l),s.push(...u),t.push(...y)}),this.inputsDeclarations.forEach(o=>{const{updated:l}=o.restore({},e);i.push(...l)}),this.inputs.forEach(o=>{const{updated:l}=o.restore({},e);i.push(...l)}),this.outputsDeclarations.forEach(o=>{const{updated:l}=o.restore({},e);i.push(...l)}),this.outputs.forEach(o=>{const{updated:l}=o.restore({},e);i.push(...l)}),this.successCalls.forEach(o=>{i.push(o),o.addSuccessCaller(this,e)}),this.errorCalls.forEach(o=>{i.push(o),o.addErrorCaller(this,e)}),this.calledBySuccess.forEach(o=>{i.push(o),o.addSuccessCall(this,e)}),this.calledByError.forEach(o=>{i.push(o),o.addErrorCall(this,e)}),this.calledByEntry.forEach(o=>{i.push(o),o.addCall(this,e)}),e==null||e.attemptAutoclose("restore-entity",this.id),{added:p(t),updated:p(i),removed:p(s),affected:p(d),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.inputsDeclarations.flatMap(i=>i.toFlat(e)),...this.outputs.flatMap(i=>i.toFlat(e)),...this.outputsDeclarations.flatMap(i=>i.toFlat(e)),...this.calledBy.flatMap(i=>i.toFlat(e)),...this.error?this.error.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.inputsDeclarations.flatMap(i=>i.toFlatIds(e)),...this.outputs.flatMap(i=>i.toFlatIds(e)),...this.outputsDeclarations.flatMap(i=>i.toFlatIds(e)),...this.calledBy.flatMap(i=>i.toFlatIds(e)),...this.error?this.error.toFlatIds(e):[]])}toMeta(){return{id:this.id,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,description:this.description,query:this.query,x:this.x,y:this.y,type:this.type,name:this.name}}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,query:this.query,description:this.description,x:this.x,y:this.y,successCalls:this.successCalls.map(i=>i.toJSON()),errorCalls:this.errorCalls.map(i=>i.toJSON()),calledBySuccess:this.calledBySuccess.map(i=>i.toReference()),calledByError:this.calledByError.map(i=>i.toReference()),calledByEntry:this.calledByEntry.map(i=>i.toReference()),inputsDeclarations:this.inputsDeclarations.map(i=>i.toJSON()),inputs:this.inputs.map(i=>i.toJSON()),outputsDeclarations:this.outputsDeclarations.map(i=>i.toJSON()),outputs:this.outputs.map(i=>i.toJSON()),error:((t=this.error)==null?void 0:t.toJSON())||null,parent:this.parent.toReference()})}toJSONClone(e=J){var i,s,d,o,l,u;let t;return(i=e.seenEntityMaps)!=null&&i.has(this.id)?t=e.seenEntityMaps.get(this.id):(t=e.newId||ht(this,this.project,e.uuidStrategy),e.seenEntityMaps&&e.seenEntityMaps.set(this.id,t)),(s=e.seenEntities)!=null&&s.has(t)||(d=e.seenEntities)!=null&&d.has(this.id)?this.toReference({seenEntityMaps:e.seenEntityMaps}):((o=e.seenEntities)==null||o.add(t),(l=e.seenEntities)==null||l.add(this.id),{id:t,version:m.UUID.uuid(),createdAt:e.timestamp||T().toISOString(),author:m.sessionAuthor,previousVersion:null,deleted:!1,type:n.Search,name:this.name,query:this.query,description:this.description,x:this.x,y:this.y,successCalls:this.successCalls.map(y=>y.toJSONClone({...e,newId:null})),errorCalls:this.errorCalls.map(y=>y.toJSONClone({...e,newId:null})),calledBySuccess:this.calledBySuccess.map(y=>y.toReference({seenEntityMaps:e.seenEntityMaps})),calledByError:this.calledByError.map(y=>y.toReference({seenEntityMaps:e.seenEntityMaps})),calledByEntry:this.calledByEntry.map(y=>y.toReference({seenEntityMaps:e.seenEntityMaps})),inputsDeclarations:this.inputsDeclarations.map(y=>y.toJSONClone({...e,newId:null})),inputs:this.inputs.map(y=>y.toJSONClone({...e,newId:null})),outputsDeclarations:this.outputsDeclarations.map(y=>y.toJSONClone({...e,newId:null})),outputs:this.outputs.map(y=>y.toJSONClone({...e,newId:null})),error:((u=this.error)==null?void 0:u.toJSONClone({...e,newId:null}))||null,parent:this.parent.toReference({seenEntityMaps:e.seenEntityMaps})})}toReference(e=J){var i;let t=this.id;return(i=e.seenEntityMaps)!=null&&i.has(this.id)&&(t=e.seenEntityMaps.get(this.id)),{id:t+"--"+m.UUID.uuid()+"--ref",type:n.GenericReference,entityId:t,version:this.version,entityType:this.type}}toShallowJSON(e=J){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,query:this.query,x:this.x,y:this.y,inputs:this.inputs.map(s=>s.toReference(e)),inputsDeclarations:this.inputsDeclarations.map(s=>s.toReference(e)),outputs:this.outputs.map(s=>s.toReference(e)),outputsDeclarations:this.outputsDeclarations.map(s=>s.toReference(e)),successCalls:this.successCalls.map(s=>s.toReference(e)),errorCalls:this.errorCalls.map(s=>s.toReference(e)),calledBySuccess:this.calledBySuccess.map(s=>s.toReference(e)),calledByError:this.calledByError.map(s=>s.toReference(e)),calledByEntry:this.calledByEntry.map(s=>s.toReference(e)),error:this.error?this.error.toReference(e):null,parent:this.parent.toReference(e)}}toFlatJSON(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.toShallowJSON(),...this.successCalls.flatMap(i=>i.toFlatJSON(e)),...this.errorCalls.flatMap(i=>i.toFlatJSON(e)),...this.inputs.flatMap(i=>i.toFlatJSON(e)),...this.inputsDeclarations.flatMap(i=>i.toFlatJSON(e)),...this.outputs.flatMap(i=>i.toFlatJSON(e)),...this.outputsDeclarations.flatMap(i=>i.toFlatJSON(e)),...this.calledBy.flatMap(i=>i.toFlatJSON(e)),...this.error?this.error.toFlatJSON(e):[]])}toGenerationTarget(){const e=this.parent.type===n.Project?void 0:this.parent.id;return{id:this.id,name:this.name,description:this.description,type:this.type,query:this.query,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.successCalls.flatMap(i=>i.toFlatGenerationTarget(e)),...this.errorCalls.flatMap(i=>i.toFlatGenerationTarget(e)),...this.inputs.flatMap(i=>i.toFlatGenerationTarget(e)),...this.inputsDeclarations.flatMap(i=>i.toFlatGenerationTarget(e)),...this.outputs.flatMap(i=>i.toFlatGenerationTarget(e)),...this.outputsDeclarations.flatMap(i=>i.toFlatGenerationTarget(e)),...this.error?this.error.toFlatGenerationTarget(e):[]])}clearErrors(){var e;return this.errors=[],this.inputsDeclarations.forEach(t=>t.clearErrors()),this.inputs.forEach(t=>t.clearErrors()),this.outputs.forEach(t=>t.clearErrors()),this.successCalls.forEach(t=>t.clearErrors()),this.errorCalls.forEach(t=>t.clearErrors()),(e=this.error)==null||e.clearErrors(),this}validate(){const e=D1(this);return this.errors=e,{success:!0,error:null,data:this.toJSON()}}getErrors(){return[...this.errors,...this.inputsDeclarations.flatMap(t=>t.getErrors()),...this.inputs.flatMap(t=>t.getErrors()),...this.outputsDeclarations.flatMap(t=>t.getErrors()),...this.outputs.flatMap(t=>t.getErrors()),...this.error?this.error.getErrors():[]]}getShallowErrors(){return this.errors}clone(e=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"clone-entity")),t=null,i=null,s=!0){var V,M,g,B;let d=mt(t,this);const o=this.toJSON(),l=i||m.UUID.uuid();o.inputs=[];const u=l.split("-id"),y=u[u.length-1||0]||l;o.id=l,o.version=m.UUID.uuid(),o.createdAt=(e==null?void 0:e.timestamp)||T().toISOString(),o.author=(e==null?void 0:e.author)||"1",o.previousVersion=null,o.deleted=!1;const c=nt(o,d);t?c.setParent(t,null):c.setParent(this.parent,null),s&&c.subscribe(),c.initChildren(e),e==null||e.add(c,b.Added);const I=(V=this.inputsDeclarations)==null?void 0:V.map((G,q)=>G.clone(e,this,y+"-input-declaration-"+q+"-id",s));c.inputsDeclarations=I;const E=(M=this.outputsDeclarations)==null?void 0:M.map((G,q)=>G.clone(e,this,y+"-output-declaration-"+q+"-id",s));c.outputsDeclarations=E;const O=(g=this.inputs)==null?void 0:g.map((G,q)=>G.clone(e,c,y+"-input-map-"+q+"-id",s));c.inputs=O;const P=(B=this.outputs)==null?void 0:B.map((G,q)=>G.clone(e,c,y+"-output-map-"+q+"-id",s));return c.outputs=P,this.error&&(c.error=this.error.clone(e,c,y+"-error-map-id",s)),e==null||e.attemptAutoclose("clone-entity",this.id),c}syncInputMaps(e=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"sync-input-maps"))){const t=[],i=[],s=[],d=[];return this.inputsDeclarations.forEach(o=>{if(!this.inputs.find(u=>{var y;return((y=u.declaration)==null?void 0:y.id)===o.id})){const u={id:m.UUID.uuid(),version:m.UUID.uuid(),createdAt:(e==null?void 0:e.timestamp)||T().toISOString(),author:m.sessionAuthor,previousVersion:null,deleted:!1,type:n.InputMap,declaration:o.toJSON(),readsValue:null,defaultValue:null,index:this.inputs.length,name:null,description:null,parent:this.toReference()},y=C(u,this.project);y.setParent(this,e),y.initChildren(e),e==null||e.add(y,b.Added),y.addSelfToProject(e),t.push(this),i.push(y)}}),this.inputs.forEach(o=>{if(o.declaration){if(!this.inputsDeclarations.find(u=>{var y;return u.id===((y=o.declaration)==null?void 0:y.id)})){const{updated:u,removed:y}=o.remove({ignoreUpstream:!1},e);u.push(...u),s.push(...y)}}else{const{updated:l,removed:u}=o.remove({ignoreUpstream:!1},e);t.push(...l),s.push(...u)}}),e==null||e.attemptAutoclose("sync-input-maps",this.id),{updated:p(t),added:p(i),removed:p(s),affected:p(d),self:this}}};f(We,"repository",{APICreate:async(e,...t)=>e,APIUpdate:async(e,...t)=>e,APIDelete:async(e,...t)=>e,APIClone:async(e,...t)=>{},APILoad:async(e,...t)=>null,APILoadVersion:async(e,t,...i)=>null}),f(We,"type",n.Search),f(We,"USER_MANAGED_PARENT_TYPES",[...ut,n.Project]),f(We,"PARENT_TYPES",[...We.USER_MANAGED_PARENT_TYPES]),f(We,"MUTABLE_BASE_PROPERTIES",["name","description","query"]),f(We,"INMUTABLE_BASE_PROPERTIES",["id","type","version","createdAt","author","previousVersion"]),f(We,"BASE_PROPERTIES",[...We.MUTABLE_BASE_PROPERTIES,...We.INMUTABLE_BASE_PROPERTIES]),f(We,"MUTABLE_META_PROPERTIES",[...We.MUTABLE_BASE_PROPERTIES,"x","y"]),f(We,"INMUTABLE_META_PROPERTIES",[...We.INMUTABLE_BASE_PROPERTIES]),f(We,"META_PROPERTIES",[...We.MUTABLE_META_PROPERTIES,...We.INMUTABLE_META_PROPERTIES]),f(We,"MUTABLE_UPSTREAM_PROPERTIES",["calledBySuccess","calledByError","calledByEntry"]),f(We,"INMUTABLE_UPSTREAM_PROPERTIES",["parent"]),f(We,"UPSTREAM_PROPERTIES",[...We.MUTABLE_UPSTREAM_PROPERTIES,...We.INMUTABLE_UPSTREAM_PROPERTIES]),f(We,"MUTABLE_DOWNSTREAM_PROPERTIES",["successCalls","errorCalls","inputsDeclarations","inputs","outputsDeclarations","outputs","error"]),f(We,"INMUTABLE_DOWNSTREAM_PROPERTIES",[]),f(We,"DOWNSTREAM_PROPERTIES",[...We.MUTABLE_DOWNSTREAM_PROPERTIES,...We.INMUTABLE_DOWNSTREAM_PROPERTIES]),f(We,"PROPERTIES",[...ei.META_PROPERTIES,...ei.UPSTREAM_PROPERTIES,...ei.DOWNSTREAM_PROPERTIES]);let Hr=We;function P1(r){const a=UZ(),e=r.toJSON();a.safeParse(e).success,r.functions.forEach(s=>s.validate()),r.events.forEach(s=>s.validate());const i=[];return Ke(r.errors,i)}const WJ=Object.freeze(Object.defineProperty({__proto__:null,validate:P1},Symbol.toStringTag,{value:"Module"})),Ze=class Ze extends dt{constructor(e,t){super(e);f(this,"initialData");f(this,"id");f(this,"name");f(this,"description",null);f(this,"x");f(this,"y");f(this,"type",n.InstalledProject);f(this,"implements");f(this,"functions",[]);f(this,"events",[]);f(this,"parent");f(this,"errors",[]);f(this,"project");f(this,"detachedDependents",{});f(this,"knownVersions",null);f(this,"activeVersion",!1);f(this,"initialized",!1);f(this,"startedInitialization",!1);this.initialData=e,this.project=t,this.id=e.id,this.name=e.name,this.description=e.description,this.x=e.x,this.y=e.y,this.implements=e.implements}static new(e=null){return{id:m.UUID.uuid(),version:m.UUID.uuid(),createdAt:(e==null?void 0:e.timestamp)||T().toISOString(),author:(e==null?void 0:e.author)||m.sessionAuthor,previousVersion:null,deleted:!1,type:n.InstalledProject,name:"",description:"",implements:null,functions:[],events:[],x:0,y:0,parent:null}}static fromGenerationTarget(e,t){const i=t,s={id:e.id,version:m.UUID.uuid(),createdAt:T().toISOString(),author:m.sessionAuthor,previousVersion:null,deleted:!1,name:e.name,type:n.InstalledProject,description:e.description,functions:[],events:[],implements:{entityId:e.implements,version:m.UUID.uuid(),entityType:n.Project,type:n.GenericReference,id:m.UUID.uuid()},x:0,y:0,parent:i},d=C(s,t);return d.setParent(i,null),d.initChildren(null),d}static validateGenerationTarget(e,t){let i=JSON.parse(JSON.stringify(e));const s=[];return s.push(...pt(i)),{errors:s,modifiedData:i}}validateGeneratedUpdate(e){const t=[];return e.parent&&t.push(new w({id:`${this.id}--${R.InvalidParentUpdate}`,code:R.InvalidParentUpdate,severity:D.Error,message:`Entity of type '${this.type}' with id '${this.id}' cannot have the 'parent' property updated. The 'parent' on an installed project, must be the root project as it is a globally declared entity.`,issue:null})),{errors:t,modifiedData:e}}subscribeDependents(e){return e.forEach(t=>{this.detachedDependents[t.entity.id]||(this.detachedDependents[t.entity.id]=t)}),this}syncDependents(e=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"sync-dependents"))){const t=[],i=[],s=[],d=[];return Object.values(this.detachedDependents).forEach(o=>{const l=o.entity.afterAllChildrenInitialized(e);t.push(...l.updated),i.push(...l.added),s.push(...l.removed),d.push(...l.affected)}),e==null||e.attemptAutoclose("sync-dependents",this.id),{updated:p(t),added:p(i),removed:p(s),affected:p(d),self:this}}onDetachedDependencyRemoved(e,t,i){const s=[],d=[],o=[],l=[];return{updated:p(s),added:p(d),removed:p(o),affected:p(l),self:this}}onDetachedDependencyRestored(e,t,i){const s=[],d=[],o=[],l=[];return{updated:p(s),added:p(d),removed:p(o),affected:p(l),self:this}}subscribeToDependencies(){return this}increaseVersion(e){if(e&&!T(e).isValid())throw new Error(`The shared timestamp '${e}' is not a valid ISO 8601 date string.`);return e&&T(e).isSame(T(this.createdAt))?this:(this.previousVersion=this.version,this.version=m.UUID.uuid(),this.createdAt=T(e).toISOString()||T().toISOString(),this)}captureVersion(){var t;const e=((t=this.knownVersions)==null?void 0:t.get(this.version))||new Ze(this,this.project);return e.metaSync(this.toMeta(),null),this.knownVersions=this.knownVersions?this.knownVersions.set(this.version,e):new Map([[this.version,e]]),e.functions=this.functions,e.events=this.events,e.parent=this.parent,this}recursiveCaptureUpstreamVersions(e){const t=[],i=[],s=[],d=[];if(this.parent){this.parent.increaseVersion(e);const o=this.parent.recursiveCaptureUpstreamVersions(e);t.push(this.parent,...o.updated),i.push(...o.added),s.push(...o.removed)}return{updated:p(t),added:p(i),removed:p(s),affected:p(d),self:this}}async restoreVersion(e){var l;const t=[],i=[],s=[],d=[];if(this.version===e)return{updated:p(t),added:p(i),removed:p(s),affected:p(d),self:this};if(!this.knownVersions){const u=new Map;for(const[y,c]of this.knownVersions||new Map){if(u.set(y,c),c.activeVersion=!1,c.knownVersions)for(const[I,E]of c.knownVersions)u.set(I,E);c.knownVersions=null}}let o=(l=this.knownVersions)==null?void 0:l.get(e);if(!o){const u=await this.APILoadVersion({},e);if(!u)throw new Error(`Version with id '${e}' for entity with id '${this.id}' not found.`);o=new Ze(u,this.project)}return this.metaSync(o.toShallowJSON(),null),this.functions=o.functions,this.events=o.events,this.parent=o.parent,{updated:p(t),added:p(i),removed:p(s),affected:p(d),self:this}}hydrateAncestors(){const e=[],t=[],i=[],s=[];if(this.initialData.parent){const d=_(this.initialData.parent),o=this.project.get(d);if(o)this.setParent(o,null),e.push(o);else throw new Error(`${this.type} with id '${this.id}' has a 'parent' reference '${d}' that isn't found in the project`)}else throw new Error(`${this.type} with id '${this.id}' must have a 'parent'`);return{updated:p(e),added:p(t),removed:p(i),affected:p(s),self:this}}afterAllChildrenInitialized(e=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"after-all-children-initialized"))){const t=[],i=[],s=[],d=[];return this.initialized=!0,this.captureVersion(),e==null||e.attemptAutoclose("after-all-children-initialized",this.id),{updated:p(t),added:p(i),removed:p(s),affected:p(d),self:this}}addSelfToProject(e=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"add-self-to-project"))){const t=[this],i=[],s=[],d=[];return this.project.addInstalledProject(this),this.subscribe(),this.subscribeToDependencies(),e==null||e.attemptAutoclose("add-self-to-project",this.id),{updated:p(t),added:p(i),removed:p(s),affected:p(d),self:this}}setParent(e,t=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"set-parent"))){var i;return((i=this.parent)==null?void 0:i.id)!==(e==null?void 0:e.id)&&(this.parent=e,t&&(t==null||t.add(this,b.Updated),t==null||t.attemptAutoclose("set-parent",this.id))),this}initChildren(e=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"init-children"))){return this.initialized||this.startedInitialization?this:(this.startedInitialization=!0,this.functions=this.initialData.functions.map(t=>{const i=C(t,this.project);return i.setParent(this,null),i.initChildren(e),i}),this.events=this.initialData.events.map(t=>{const i=C(t,this.project);return i.setParent(this,null),i.initChildren(e),i}),this.subscribeToDependencies(),this.afterAllChildrenInitialized(e),e==null||e.attemptAutoclose("init-children",this.id),this)}subscribe(){return this.activeVersion=!0,this.project.subscribeInstance(this),this}unsubscribe(){return this.project.unsubscribeInstance(this),this}metaSync(e,t=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"meta-sync"))){const i=ct(this,e),s=this.toMeta();return this.x=e.x||s.x,this.y=e.y||s.y,super.metaSync(e),e.deleted===!0&&!s.deleted?t==null||t.add(this,b.Removed):e.deleted===!1&&s.deleted?t==null||t.add(this,b.Added):i&&(t==null||t.add(this,b.Updated)),t==null||t.attemptAutoclose("meta-sync",this.id),this}async APILoad(e=U,...t){return await Ze.repository.APILoad(this.id,...t),this}async APICreate(e=U,...t){return await Ze.repository.APICreate(this.toShallowJSON(),...t),this}async APIUpdate(e=U,...t){return await Ze.repository.APIUpdate(this.toShallowJSON(),...t),this}async APIDelete(e=U,...t){return await Ze.repository.APIDelete(this.toShallowJSON(),...t),this}async APIClone(e=U,...t){return await Ze.repository.APIClone(this.id,...t),this}async APILoadVersion(e=U,t,...i){return await Ze.repository.APILoadVersion(this.id,t,...i)}remove({ignoreUpstream:e}={ignoreUpstream:!1},t=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"remove-entity"))){const i=[],s=[],d=[],o=[];return t!=null&&t.hasRemoved(this.id)?(t==null||t.attemptAutoclose("remove-entity",this.id),{added:[],updated:[],removed:[],affected:[],self:this}):(s.push(this),this.unsubscribe(),this.project.subscribeDeletedInstance(this),this.metaSync({deleted:!0},t),Object.values(this.detachedDependents).forEach(l=>{const{updated:u,removed:y,added:c}=l.entity.onDetachedDependencyRemoved(this,l.field,t);i.push(...u),s.push(...y),d.push(...c)}),this.functions.forEach(l=>{const{updated:u,removed:y}=l.remove({ignoreUpstream:!1},t);i.push(...u),s.push(...y)}),this.events.forEach(l=>{const{updated:u,removed:y}=l.remove({ignoreUpstream:!1},t);i.push(...u),s.push(...y)}),t==null||t.attemptAutoclose("remove-entity",this.id),{added:[],updated:[],removed:[],affected:p(o),self:this})}restore({}={},e=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"restore-entity"))){const t=[],i=[],s=[],d=[];return e!=null&&e.hasAdded(this.id)?(e==null||e.attemptAutoclose("restore-entity",this.id),{added:[],updated:[],removed:[],affected:[],self:this}):(this.subscribe(),this.project.unsubscribeDeletedInstance(this),this.metaSync({deleted:!1},e),Object.values(this.detachedDependents).forEach(o=>{const{updated:l,removed:u,added:y,affected:c}=o.entity.onDetachedDependencyRestored(this,o.field,e);t.push(...l),i.push(...u),s.push(...y),d.push(...c)}),this.functions.forEach(o=>{const{updated:l,removed:u,added:y,affected:c}=o.restore({},e);t.push(...l),i.push(...u),s.push(...y),d.push(...c)}),this.events.forEach(o=>{const{updated:l,removed:u,added:y,affected:c}=o.restore({},e);t.push(...l),i.push(...u),s.push(...y),d.push(...c)}),e==null||e.attemptAutoclose("restore-entity",this.id),{added:[],updated:[],removed:[],affected:[],self:this})}toFlat(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this,...this.functions.flatMap(i=>i.toFlat(e)),...this.events.flatMap(i=>i.toFlat(e))])}toFlatIds(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.id,...this.functions.flatMap(i=>i.toFlatIds(e)),...this.events.flatMap(i=>i.toFlatIds(e))])}toMeta(){return{id:this.id,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,description:this.description,x:this.x,y:this.y,type:this.type,name:this.name}}toJSON(e=new Set){return e.has(this.id)?this.toReference():(e.add(this.id),{id:this.id,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,type:this.type,name:this.name,description:this.description,implements:this.implements,functions:this.functions.map(t=>t.toJSON(e)),events:this.events.map(t=>t.toJSON(e)),parent:this.parent.toReference(),x:this.x,y:this.y})}toJSONClone(e=J){var i,s,d,o,l;let t;return(i=e.seenEntityMaps)!=null&&i.has(this.id)?t=e.seenEntityMaps.get(this.id):(t=e.newId||ht(this,this.project,e.uuidStrategy),e.seenEntityMaps&&e.seenEntityMaps.set(this.id,t)),(s=e.seenEntities)!=null&&s.has(t)||(d=e.seenEntities)!=null&&d.has(this.id)?this.toReference({seenEntityMaps:e.seenEntityMaps}):((o=e.seenEntities)==null||o.add(t),(l=e.seenEntities)==null||l.add(this.id),{id:t,version:m.UUID.uuid(),createdAt:e.timestamp||T().toISOString(),previousVersion:null,author:this.author,deleted:this.deleted,type:this.type,name:this.name,description:this.description,implements:this.implements,functions:this.functions.map(u=>u.toJSONClone({...e,newId:null})),events:this.events.map(u=>u.toJSONClone({...e,newId:null})),parent:this.parent.toReference({seenEntityMaps:e.seenEntityMaps}),x:this.x,y:this.y})}toReference(e=J){var i;let t=this.id;return(i=e.seenEntityMaps)!=null&&i.has(this.id)&&(t=e.seenEntityMaps.get(this.id)),{id:t+"--"+m.UUID.uuid()+"--ref",type:n.GenericReference,entityId:t,version:this.version,entityType:this.type}}toShallowJSON(e=J){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,x:this.x,y:this.y,implements:this.implements,functions:this.functions.map(s=>s.toReference(e)),events:this.events.map(s=>s.toReference(e)),parent:this.parent.toReference(e)}}toFlatJSON(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.toShallowJSON(),...this.functions.flatMap(i=>i.toFlatJSON(e)),...this.events.flatMap(i=>i.toFlatJSON(e))])}toGenerationTarget(){return{id:this.id,name:this.name,description:this.description,type:this.type,implements:this.implements.id}}toFlatGenerationTarget(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.toGenerationTarget(),...this.functions.flatMap(i=>i.toFlatGenerationTarget(e)),...this.events.flatMap(i=>i.toFlatGenerationTarget(e))])}clearErrors(){return this.errors=[],this.functions.forEach(e=>e.clearErrors()),this.events.forEach(e=>e.clearErrors()),this}validate(){const e=P1(this);return this.errors=e,{success:!0,error:null,data:this.toJSON()}}getErrors(){return[...this.errors,...this.functions.flatMap(t=>t.getErrors()),...this.events.flatMap(t=>t.getErrors())]}getShallowErrors(){return this.errors}clone(e=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"clone-entity")),t=null,i=null,s=!0){var O,P;let d=mt(t,this);const o=this.toJSON(),l=i||m.UUID.uuid();o.functions=[],o.events=[];const u=l.split("-id"),y=u[u.length-1||0]||l;o.id=l,o.version=m.UUID.uuid(),o.createdAt=(e==null?void 0:e.timestamp)||T().toISOString(),o.author=(e==null?void 0:e.author)||"1",o.previousVersion=null,o.deleted=!1;const c=nt(o,d);t&&c.setParent(t,null),s&&c.subscribe(),c.initChildren(e),e==null||e.add(c,b.Added);const I=(O=this.functions)==null?void 0:O.map((V,M)=>V.clone(e,c,y+"-exported-function-declaration-"+M+"-id",s));c.functions=I;const E=(P=this.events)==null?void 0:P.map((V,M)=>V.clone(e,c,y+"-exported-event-"+M+"-id",s));return c.events=E,e==null||e.attemptAutoclose("clone-entity",this.id),c}};f(Ze,"repository",{APICreate:async(e,...t)=>e,APIUpdate:async(e,...t)=>e,APIDelete:async(e,...t)=>e,APIClone:async(e,...t)=>{},APILoad:async(e,...t)=>null,APILoadVersion:async(e,t,...i)=>null}),f(Ze,"type",n.InstalledProject),f(Ze,"USER_MANAGED_PARENT_TYPES",[n.Project]),f(Ze,"PARENT_TYPES",[...Ze.USER_MANAGED_PARENT_TYPES]),f(Ze,"MUTABLE_BASE_PROPERTIES",[]),f(Ze,"INMUTABLE_BASE_PROPERTIES",["id","version","name","description","type","createdAt","author","previousVersion"]),f(Ze,"BASE_PROPERTIES",[...Ze.MUTABLE_BASE_PROPERTIES,...Ze.INMUTABLE_BASE_PROPERTIES]),f(Ze,"MUTABLE_META_PROPERTIES",["x","y"]),f(Ze,"INMUTABLE_META_PROPERTIES",[...Ze.INMUTABLE_BASE_PROPERTIES]),f(Ze,"META_PROPERTIES",[...Ze.MUTABLE_META_PROPERTIES,...Ze.INMUTABLE_META_PROPERTIES]),f(Ze,"MUTABLE_UPSTREAM_PROPERTIES",[]),f(Ze,"INMUTABLE_UPSTREAM_PROPERTIES",["implements","parent"]),f(Ze,"UPSTREAM_PROPERTIES",[...Ze.MUTABLE_UPSTREAM_PROPERTIES,...Ze.INMUTABLE_UPSTREAM_PROPERTIES]),f(Ze,"MUTABLE_DOWNSTREAM_PROPERTIES",["functions","events"]),f(Ze,"INMUTABLE_DOWNSTREAM_PROPERTIES",[]),f(Ze,"DOWNSTREAM_PROPERTIES",[...Ze.MUTABLE_DOWNSTREAM_PROPERTIES,...Ze.INMUTABLE_DOWNSTREAM_PROPERTIES]),f(Ze,"PROPERTIES",[...Ze.META_PROPERTIES,...Ze.UPSTREAM_PROPERTIES,...Ze.DOWNSTREAM_PROPERTIES]);let Kr=Ze;function w1(r){var o;const a=Y5(),e=r.toJSON();a.safeParse(e).success,r.inputs.forEach(l=>l.validate()),r.outputs.forEach(l=>l.validate()),(o=r.error)==null||o.validate();const i=Ar(r),s=C1(r),d=[...i,...s];return Ke(r.errors,d)}function C1(r){const a=[],e=jd(r.parent,null),t=e==null?void 0:e.entity;if(!t)a.push(le({id:`${r.id}--${$.InternalCallParentMissingDataType}`,code:$.InternalCallParentMissingDataType,severity:D.Error,message:`Entity of type "${r.type}" with id "${r.id}", belongs to a variable whose data type entity doesn't contain its declaration method (function-declaration) its id "${r.declaration}".`,issue:null,entity:r}).error);else if(![n.DefinitionEntity,n.BuiltInBaseEntity,n.PrimitiveEntity].includes(t.type))a.push(le({id:`${r.id}--${$.InternalCallParentDeclarationEntityInvalidType}`,code:$.InternalCallParentDeclarationEntityInvalidType,severity:D.Error,message:`Entity of type "${r.type}" with id "${r.id}", belongs to a variable whose data type 'entity' is not a definition entity, built-in base entity or primitive entity.
|
|
112
112
|
This variable's data-type has an 'entity' field that references an entity with id '${t.id}' and of type '${t.type}'.`,issue:null,entity:r}).error);else{const i=Ua(t),s=[];[n.DefinitionEntity,n.BuiltInBaseEntity,n.PrimitiveEntity].includes(t.type)&&s.push(...t.getAllInteractiveMethods());let d="";i?t.methods.length?d=`
|
|
113
113
|
All 'function-declaration' entities attached as methods to the parent data-type 'entity' field, available to be called as 'internal-calls' in this variable are:
|
|
114
114
|
- ${t.methods.map(u=>u.id).join(`
|
|
@@ -199,7 +199,7 @@ You can update the existing 'literal-value' with the 'update' action, for exampl
|
|
|
199
199
|
}
|
|
200
200
|
}\`\`\`
|
|
201
201
|
Or 'delete' and then 'post' actions to replace it.`,issue:null})):e.push(new w({id:`${r.id}--${r.parent}--${R.InvalidParentReference}`,code:R.InvalidParentReference,severity:D.Error,message:`Entity of type "${r.type}" with id "${r.id}", has a parent reference that isn't pointing to an entity of type 'input-map' or 'data-type'.`,issue:null})):e.push(new w({id:`${r.id}--${r.parent}--${R.ReferencedEntityNotFound}`,code:R.ReferencedEntityNotFound,severity:D.Error,message:`Entity of type "${r.type}" with id "${r.id}", is referencing an entity with id "${r.parent}" that isn't yet found in the project. Perhaps it should be created first. Or perhaps the ID is incorrect.`,issue:null}))}else e.push(new w({id:`${r.id}--${$.InvalidObjectStructure}`,code:$.InvalidObjectStructure,severity:D.Error,message:`Entity of type "${r.type}" with id "${r.id}" is missing a 'parent' reference. The 'parent' of a literal value entity must be a reference to an entity of type 'input-map' or 'data-type'.`,issue:null}));else return e.push(new w({id:`${r.id}--${$.InvalidObjectStructure}`,code:$.InvalidObjectStructure,severity:D.Error,message:`Entity of type "${r.type}" with id "${r.id}" is missing a 'parent' reference. The 'parent' of a literal value entity must be a reference to an entity of type 'input-map' or 'data-type'.`,issue:null})),e;if(r.valueAsTypeSingle){const s=[],d=[],o=r.valueAsTypeSingle;Array.isArray(o)?o.forEach(l=>{typeof l=="string"?d.push(l):s.push(l)}):typeof o=="string"?d.push(o):s.push(o),s.forEach(l=>{const u=xd(l);e.push(...u),u.length===0&&d.push(l.entityId)}),d.forEach(l=>{const u=a.get(l);u?[n.DefinitionEntity,n.BuiltInBaseEntity].includes(u.type)||e.push(new w({id:`${r.id}--${l}--${R.InvalidImplementsReference}`,code:R.InvalidImplementsReference,severity:D.Error,message:`Entity of type "${r.type}" with id "${r.id}", has an 'valueAsTypeSingle' reference that isn't pointing to an entity of type 'definition-entity', 'function-declaration' or 'operation'.`,issue:null})):e.push(new w({id:`${r.id}--${l}--${R.ReferencedEntityNotFound}`,code:R.ReferencedEntityNotFound,severity:D.Error,message:`Entity of type "${r.type}" with id "${r.id}", is referencing an entity with id "${l}" that isn't yet found in the project. Perhaps it should be created first. Or perhaps the ID is incorrect.`,issue:null}))})}return e}var $1=(r=>(r.ValueAsTypeSingle="value-as-type-single",r.ValueAsTypeList="value-as-type-list",r))($1||{});const Le=class Le extends dt{constructor(e,t){super(e);f(this,"initialData");f(this,"type",n.LiteralValue);f(this,"id");f(this,"name");f(this,"autogeneration",null);f(this,"value",null);f(this,"valueAsTypeSingle",null);f(this,"valueAsTypeList",null);f(this,"errors",[]);f(this,"parent");f(this,"standaloneParent");f(this,"project");f(this,"detachedDependents",{});f(this,"knownVersions",null);f(this,"activeVersion",!1);f(this,"initialized",!1);f(this,"startedInitialization",!1);f(this,"standalone",!1);this.initialData=e,this.project=t,this.id=e.id,this.name=e.name,this.autogeneration=e.autogeneration,this.value=e.value}static new(e=null){return{id:m.UUID.uuid(),version:m.UUID.uuid(),createdAt:(e==null?void 0:e.timestamp)||T().toISOString(),author:(e==null?void 0:e.author)||m.sessionAuthor,previousVersion:null,deleted:!1,type:n.LiteralValue,name:"",autogeneration:null,value:null,valueAsTypeSingle:null,valueAsTypeList:null,parent:null}}static fromGenerationTarget(e,t){const i=_(e.parent),s=t.get(i);let d=null,o=null;e.valueAsTypeList?Array.isArray(e.valueAsTypeList)&&(o=e.valueAsTypeList.map(y=>t.get(y)||t.getBuiltIn(y))):e.valueAsTypeSingle&&(d=t.get(e.valueAsTypeSingle)||t.getBuiltIn(e.valueAsTypeSingle));const l={id:e.id,version:m.UUID.uuid(),createdAt:T().toISOString(),author:m.sessionAuthor,previousVersion:null,deleted:!1,type:n.LiteralValue,name:e.name,autogeneration:e.autogeneration,valueAsTypeSingle:d,valueAsTypeList:o,value:e.value||null,parent:s},u=C(l,t);return u.setParent(s,null),u.initChildren(null),u}static validateGenerationTarget(e,t){let i=JSON.parse(JSON.stringify(e));const s=[],d=rS(i,t);return s.push(...d,...pt(i)),{errors:s,modifiedData:i}}get valueAsType(){return this.valueAsTypeSingle?this.valueAsTypeSingle:this.valueAsTypeList?this.valueAsTypeList:null}get isFinal(){var e;return!!(this.parent.type===n.Property&&(this.parent.constant||(e=this.parent.implements)!=null&&e.constant)||this.parent.type===n.Property&&this.parent.parent.type===n.DefinitionEntity&&!Ua(this.parent.parent))}validateGeneratedUpdate(e){const t=[];return e.parent&&t.push(new w({id:`${this.id}--${R.InvalidParentUpdate}`,code:R.InvalidParentUpdate,severity:D.Error,message:`Entity of type '${this.type}' with id '${this.id}' cannot have the 'parent' property updated, as it would mean moving the '${this.type}' entity to another parent entity.
|
|
202
|
-
This is likely an incorrect strategy, either the '${this.type}' entity doesn't need to be updated or it should be deleted and a new one created in the desired parent.`,issue:null})),{errors:t,modifiedData:e}}subscribeDependents(e){return e.forEach(t=>{this.detachedDependents[t.entity.id]||(this.detachedDependents[t.entity.id]=t)}),this}syncDependents(e=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"sync-dependents"))){const t=[],i=[],s=[],d=[];return Object.values(this.detachedDependents).forEach(o=>{const l=o.entity.afterAllChildrenInitialized(e);t.push(...l.updated),i.push(...l.added),s.push(...l.removed),d.push(...l.affected)}),e==null||e.attemptAutoclose("sync-dependents",this.id),{updated:p(t),added:p(i),removed:p(s),affected:p(d),self:this}}onDetachedDependencyRemoved(e,t,i){const s=[],d=[],o=[],l=[];return t==="value-as-type-single"&&(this.valueAsTypeSingle=null,i==null||i.add(this,b.Updated)),t==="value-as-type-list"&&(this.valueAsTypeList=(this.valueAsTypeList||[]).filter(u=>u.id!==e.id),i==null||i.add(this,b.Updated)),{updated:p(s),added:p(d),removed:p(o),affected:p(l),self:this}}onDetachedDependencyRestored(e,t,i){const s=[],d=[],o=[],l=[];return t==="value-as-type-single"&&(this.valueAsTypeSingle=e,i==null||i.add(this,b.Updated)),t==="value-as-type-list"&&(this.valueAsTypeList=[...Array.isArray(this.valueAsTypeList||[])?this.valueAsTypeList:[],e],i==null||i.add(this,b.Updated)),{updated:p(s),added:p(d),removed:p(o),affected:p(l),self:this}}subscribeToDependencies(){return!this.valueAsTypeSingle&&!this.valueAsTypeList?this:(this.valueAsTypeList&&Array.isArray(this.valueAsTypeList)?this.valueAsTypeList.forEach(e=>e.subscribeDependents([{entity:this,field:"value-as-type-list"}])):this.valueAsTypeSingle&&this.valueAsTypeSingle.subscribeDependents([{entity:this,field:"value-as-type-single"}]),this)}increaseVersion(e){if(e&&!T(e).isValid())throw new Error(`The shared timestamp '${e}' is not a valid ISO 8601 date string.`);return e&&T(e).isSame(T(this.createdAt))?this:(this.previousVersion=this.version,this.version=m.UUID.uuid(),this.createdAt=T(e).toISOString()||T().toISOString(),this)}captureVersion(){var t;const e=((t=this.knownVersions)==null?void 0:t.get(this.version))||new Le(this,this.project);return e.metaSync(this.toMeta(),null),this.knownVersions=this.knownVersions?this.knownVersions.set(this.version,e):new Map([[this.version,e]]),e.valueAsTypeSingle=this.valueAsTypeSingle,e.parent=this.parent,this}recursiveCaptureUpstreamVersions(e){const t=[],i=[],s=[],d=[];if(this.parent){this.parent.increaseVersion(e);const o=this.parent.recursiveCaptureUpstreamVersions(e);t.push(this.parent,...o.updated),i.push(...o.added),s.push(...o.removed)}return{updated:p(t),added:p(i),removed:p(s),affected:p(d),self:this}}async restoreVersion(e){var l;const t=[],i=[],s=[],d=[];if(this.version===e)return{updated:p(t),added:p(i),removed:p(s),affected:p(d),self:this};if(!this.knownVersions){const u=new Map;for(const[y,c]of this.knownVersions||new Map){if(u.set(y,c),c.activeVersion=!1,c.knownVersions)for(const[I,E]of c.knownVersions)u.set(I,E);c.knownVersions=null}}let o=(l=this.knownVersions)==null?void 0:l.get(e);if(!o){const u=await this.APILoadVersion({},e);if(!u)throw new Error(`Version with id '${e}' for entity with id '${this.id}' not found.`);o=new Le(u,this.project)}return this.metaSync(o.toShallowJSON(),null),this.valueAsTypeSingle=o.valueAsTypeSingle,this.parent=o.parent,{updated:p(t),added:p(i),removed:p(s),affected:p(d),self:this}}hydrateAncestors(){const e=[],t=[],i=[],s=[];if(this.initialData.parent&&this.initialData.standaloneParent)throw new Error(`Entity with id '${this.id}' cannot have both 'parent' and 'standaloneParent' properties set.`);if(this.initialData.parent){const d=_(this.initialData.parent),o=this.project.get(d);if(o)this.setParent(o,null),e.push(o);else throw new Error(`${this.type} with id '${this.id}' has a 'parent' reference '${d}' that isn't found in the project`)}else if(this.initialData.standaloneParent){const d=_(this.initialData.standaloneParent),o=this.project.get(d);if(o)this.setStandaloneParent(o);else throw new Error(`${this.type} with id '${this.id}' has a 'standaloneParent' reference '${d}' that isn't found in the project`)}else throw new Error(`${this.type} with id '${this.id}' must have a 'parent'`);if(this.initialData.valueAsTypeList&&Array.isArray(this.initialData.valueAsTypeList))this.valueAsTypeList=this.valueAsTypeList||[],this.initialData.valueAsTypeList.forEach(d=>{const o=_(d),l=this.project.get(o);l&&this.valueAsTypeList.push(l)});else if(this.initialData.valueAsTypeSingle){const d=_(this.initialData.valueAsTypeSingle),o=this.project.get(d);o&&(this.valueAsTypeSingle=o)}return{updated:p(e),added:p(t),removed:p(i),affected:p(s),self:this}}afterAllChildrenInitialized(e=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"after-all-children-initialized"))){const t=[],i=[],s=[],d=[];return this.initialized=!0,this.captureVersion(),e==null||e.attemptAutoclose("after-all-children-initialized",this.id),{updated:p(t),added:p(i),removed:p(s),affected:p(d),self:this}}addSelfToProject(e=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"add-self-to-project"))){var o,l;const t=[this],i=[],s=[],d=[];return((o=this.parent)==null?void 0:o.type)===n.DataType?this.parent.setEntity(this):(l=this.parent)==null||l.setDefaultValue(this),t.push(this.parent),this.subscribe(),this.subscribeToDependencies(),e==null||e.attemptAutoclose("add-self-to-project",this.id),{updated:p(t),added:p(i),removed:p(s),affected:p(d),self:this}}setParent(e,t=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"set-parent"))){var i;return((i=this.parent)==null?void 0:i.id)!==(e==null?void 0:e.id)&&(this.parent=e,t&&(t==null||t.add(this,b.Updated),t==null||t.attemptAutoclose("set-parent",this.id))),this}setStandaloneParent(e){return this.standaloneParent=e,this}setValueAsTypeSingle(e,t=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"set-value-as-type-single"))){return this.valueAsTypeSingle!==e&&(this.valueAsTypeSingle=e,t==null||t.add(this,b.Updated)),t==null||t.attemptAutoclose("set-value-as-type-single",this.id),this}setValueAsTypeList(e,t=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"set-value-as-type-list"))){var i,s;return!e&&this.valueAsTypeList?(this.valueAsTypeList=null,t==null||t.add(this,b.Updated)):e&&!this.valueAsTypeList?(this.valueAsTypeList=e,t==null||t.add(this,b.Updated)):e&&this.valueAsTypeList&&((i=this.valueAsTypeList)==null?void 0:i.length)!==e.length?(this.valueAsTypeList=e,t==null||t.add(this,b.Updated)):e&&this.valueAsTypeList&&((s=this.valueAsTypeList)!=null&&s.every((d,o)=>d!==e[o]))&&(this.valueAsTypeList=e,t==null||t.add(this,b.Updated)),t==null||t.attemptAutoclose("set-value-as-type-list",this.id),this}setValueAsType(e,t=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"set-value-as-type"))){return e?(Array.isArray(e)?this.setValueAsTypeList(e,t):this.setValueAsTypeSingle(e,t),t==null||t.attemptAutoclose("set-value-as-type",this.id),this):(this.setValueAsTypeSingle(null,t),this.setValueAsTypeList(null,t),this)}initChildren(e=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"init-children"))){if(this.initialized||this.startedInitialization)return this;if(this.startedInitialization=!0,this.standalone){if(this.initialData.valueAsTypeList&&Array.isArray(this.initialData.valueAsTypeList))this.valueAsTypeList=this.initialData.valueAsTypeList.map(t=>{if(t.type===n.GenericReference){const s=this.project.findSubscribedBuiltInInstanceFromReference(t);if(!s)throw new Error(`Standalone entity of type '${this.type}' with id '${this.id}' has a reference to an entity of type '${t.entityType}' with id '${t.entityId}' that is not part of the project state.`);return s}const i=this.project.get(t.id);if(!i)throw new Error(`Standalone entity of type '${this.type}' with id '${this.id}' has a reference to an entity of type '${t.type}' with id '${t.id}' that is not part of the project state.`);return i});else if(this.initialData.valueAsTypeSingle){if(this.initialData.valueAsTypeSingle.type===n.GenericReference){const i=this.project.findSubscribedBuiltInInstanceFromReference(this.initialData.valueAsTypeSingle);if(!i)throw new Error(`Standalone entity of type '${this.type}' with id '${this.id}' has a reference to an entity of type '${this.initialData.valueAsTypeSingle.entityType}' with id '${this.initialData.valueAsTypeSingle.entityId}' that is not part of the project state.`);return this.valueAsTypeSingle=i,this}const t=this.project.get(this.initialData.valueAsTypeSingle.id);if(!t)throw new Error(`Standalone entity of type '${this.type}' with id '${this.id}' has a reference to an entity of type '${this.initialData.valueAsTypeSingle.type}' with id '${this.initialData.valueAsTypeSingle.id}' that is not part of the project state.`);this.valueAsTypeSingle=t}return this}if(this.initialData.valueAsTypeList&&Array.isArray(this.initialData.valueAsTypeList))this.valueAsTypeList=this.initialData.valueAsTypeList.map(t=>{if(t.type===n.GenericReference){const s=this.project.findSubscribedBuiltInInstanceFromReference(t);if(!s)throw new Error(`Standalone entity of type '${this.type}' with id '${this.id}' has a reference to an entity of type '${t.entityType}' with id '${t.entityId}' that is not part of the project state.`);return s}const i=this.project.get(t.id);if(!i)throw new Error(`Standalone entity of type '${this.type}' with id '${this.id}' has a reference to an entity of type '${t.type}' with id '${t.id}' that is not part of the project state.`);return i});else if(this.initialData.valueAsTypeSingle){if(this.initialData.valueAsTypeSingle.type===n.GenericReference){const i=_(this.initialData.valueAsTypeSingle),s=i?this.project.get(i):null;if(!s)throw new Error(`Standalone entity of type '${this.type}' with id '${this.id}' has a reference to an entity of type '${this.initialData.valueAsTypeSingle.entityType}' with id '${this.initialData.valueAsTypeSingle.entityId}' that is not part of the project state.`);return this.valueAsTypeSingle=s,this}const t=this.project.get(this.initialData.valueAsTypeSingle.id);if(!t)throw new Error(`Standalone entity of type '${this.type}' with id '${this.id}' has a reference to an entity of type '${this.initialData.valueAsTypeSingle.type}' with id '${this.initialData.valueAsTypeSingle.id}' that is not part of the project state.`);this.valueAsTypeSingle=t}return this.subscribeToDependencies(),this.afterAllChildrenInitialized(e),e==null||e.attemptAutoclose("init-children",this.id),this}subscribe(){return this.activeVersion=!0,this.project.subscribeInstance(this),this}unsubscribe(){return this.project.unsubscribeInstance(this),this}metaSync(e,t=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"meta-sync"))){const i=ct(this,e),s=this.toMeta();return this.name=e.name!==void 0?e.name:s.name,this.autogeneration=e.autogeneration!==void 0?e.autogeneration:s.autogeneration,this.value=e.value!==void 0?e.value:s.value,super.metaSync(e),e.deleted===!0&&!s.deleted?t==null||t.add(this,b.Removed):e.deleted===!1&&s.deleted?t==null||t.add(this,b.Added):i&&(t==null||t.add(this,b.Updated)),t==null||t.attemptAutoclose("meta-sync",this.id),this}async APILoad(e=U,...t){return await Le.repository.APILoad(this.id,...t),this}async APICreate(e=U,...t){return await Le.repository.APICreate(this.toShallowJSON(),...t),this}async APIUpdate(e=U,...t){return await Le.repository.APIUpdate(this.toShallowJSON(),...t),this}async APIDelete(e=U,...t){return await Le.repository.APIDelete(this.toShallowJSON(),...t),this}async APIClone(e=U,...t){return await Le.repository.APIClone(this.id,...t),this}async APILoadVersion(e=U,t,...i){return await Le.repository.APILoadVersion(this.id,t,...i)}remove({ignoreUpstream:e}={ignoreUpstream:!1},t=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"remove-entity"))){const i=[],s=[],d=[],o=[];return t!=null&&t.hasRemoved(this.id)?(t==null||t.attemptAutoclose("remove-entity",this.id),{added:[],updated:[],removed:[],affected:[],self:this}):(s.push(this),this.unsubscribe(),this.project.subscribeDeletedInstance(this),this.metaSync({deleted:!0},t),Object.values(this.detachedDependents).forEach(l=>{const{updated:u,removed:y,added:c}=l.entity.onDetachedDependencyRemoved(this,l.field,t);i.push(...u),s.push(...y),d.push(...c)}),t==null||t.attemptAutoclose("remove-entity",this.id),{added:p(d),updated:p(i),removed:p(s),affected:p(o),self:this})}restore({}={},e=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"restore-entity"))){const t=[],i=[],s=[],d=[];return e!=null&&e.hasAdded(this.id)?(e==null||e.attemptAutoclose("restore-entity",this.id),{added:[],updated:[],removed:[],affected:[],self:this}):(this.subscribe(),this.project.unsubscribeDeletedInstance(this),this.metaSync({deleted:!1},e),Object.values(this.detachedDependents).forEach(o=>{const{updated:l,removed:u,added:y}=o.entity.onDetachedDependencyRestored(this,o.field,e);i.push(...l),s.push(...u),t.push(...y)}),e==null||e.attemptAutoclose("restore-entity",this.id),{added:p(t),updated:p(i),removed:p(s),affected:p(d),self:this})}toFlat(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this,...this.valueAsTypeSingle?this.valueAsTypeSingle.toFlat(e):[],...this.valueAsTypeList&&Array.isArray(this.valueAsTypeList)?this.valueAsTypeList.flatMap(i=>i.toFlat(e)):[]])}toFlatIds(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.id,...this.valueAsTypeSingle?this.valueAsTypeSingle.toFlatIds(e):[],...this.valueAsTypeList&&Array.isArray(this.valueAsTypeList)?this.valueAsTypeList.flatMap(i=>i.toFlatIds(e)):[]])}toMeta(){return{id:this.id,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,value:this.value,autogeneration:this.autogeneration,type:this.type,name:this.name}}toJSON(e=new Set){var t,i,s;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,autogeneration:this.autogeneration,value:this.value,valueAsTypeSingle:((t=this.valueAsTypeSingle)==null?void 0:t.toJSON(e))||null,valueAsTypeList:Array.isArray(this.valueAsTypeSingle)?this.valueAsTypeSingle.map(d=>d.toJSON(e)):null,parent:(i=this.parent)==null?void 0:i.toReference(),standaloneParent:(s=this.standaloneParent)==null?void 0:s.toReference()})}toJSONClone(e=J){var i,s,d,o,l,u,y;let t;return(i=e.seenEntityMaps)!=null&&i.has(this.id)?t=e.seenEntityMaps.get(this.id):(t=e.newId||ht(this,this.project,e.uuidStrategy),e.seenEntityMaps&&e.seenEntityMaps.set(this.id,t)),(s=e.seenEntities)!=null&&s.has(t)||(d=e.seenEntities)!=null&&d.has(this.id)?this.toReference({seenEntityMaps:e.seenEntityMaps}):((o=e.seenEntities)==null||o.add(t),(l=e.seenEntities)==null||l.add(this.id),{id:t,version:m.UUID.uuid(),createdAt:e.timestamp||T().toISOString(),previousVersion:null,author:this.author,deleted:this.deleted,type:this.type,name:this.name,autogeneration:this.autogeneration,value:this.value,valueAsTypeSingle:this.valueAsTypeSingle?this.project.getBuiltIn(this.valueAsTypeSingle.id)?this.valueAsTypeSingle.toJSON():this.valueAsTypeSingle.toJSONClone({...e,newId:null}):null,valueAsTypeList:this.valueAsTypeSingle&&Array.isArray(this.valueAsTypeSingle)?this.valueAsTypeSingle.map(c=>this.project.getBuiltIn(c.id)?c.toJSON():c.toJSONClone({...e,newId:null})):null,parent:(u=this.parent)==null?void 0:u.toReference({seenEntityMaps:e.seenEntityMaps}),standaloneParent:(y=this.standaloneParent)==null?void 0:y.toReference({seenEntityMaps:e.seenEntityMaps})})}toReference(e=J){var i;let t=this.id;return(i=e.seenEntityMaps)!=null&&i.has(this.id)&&(t=e.seenEntityMaps.get(this.id)),{id:t+"--"+m.UUID.uuid()+"--ref",type:n.GenericReference,entityId:t,version:this.version,entityType:this.type}}toShallowJSON(e=J){var i,s,d,o;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,valueAsTypeSingle:((s=this.valueAsTypeSingle)==null?void 0:s.toReference(e))||null,valueAsTypeList:Array.isArray(this.valueAsTypeSingle)?this.valueAsTypeSingle.map(l=>l.toReference(e)):null,value:this.value,autogeneration:this.autogeneration,parent:(d=this.parent)==null?void 0:d.toReference(e),standaloneParent:(o=this.standaloneParent)==null?void 0:o.toReference(e)}}toFlatJSON(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.toShallowJSON(),...this.valueAsTypeSingle?this.valueAsTypeSingle.toFlatJSON(e):[],...this.valueAsTypeList&&Array.isArray(this.valueAsTypeList)?this.valueAsTypeList.flatMap(i=>i.toFlatJSON(e)):[]])}toGenerationTarget(){var e,t,i;return{id:this.id,type:this.type,name:this.name,valueAsTypeSingle:((e=this.valueAsTypeSingle)==null?void 0:e.id)||null,valueAsTypeList:Array.isArray(this.valueAsTypeSingle)?this.valueAsTypeSingle.map(s=>s.id):null,value:this.value,autogeneration:this.autogeneration,parent:(t=this.parent)==null?void 0:t.id,standaloneParent:(i=this.standaloneParent)==null?void 0:i.id}}toFlatGenerationTarget(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.toGenerationTarget(),...this.valueAsTypeSingle?this.valueAsTypeSingle.toFlatGenerationTarget(e):[],...this.valueAsTypeList&&Array.isArray(this.valueAsTypeList)?this.valueAsTypeList.flatMap(i=>i.toFlatGenerationTarget(e)):[]])}clearErrors(){return this.errors=[],this}validate(){const e=U1(this);return this.errors=e,{success:!0,error:null,data:this.toJSON()}}getErrors(){return[...this.errors]}getShallowErrors(){return this.errors}clone(e=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"clone-entity")),t=null,i=null,s=!0){let d=mt(t,this);const o=this.toJSON(),l=i||m.UUID.uuid();o.id=l,o.version=m.UUID.uuid(),o.createdAt=(e==null?void 0:e.timestamp)||T().toISOString(),o.author=(e==null?void 0:e.author)||"1",o.previousVersion=null,o.deleted=!1;const u=nt(o,d);return u.initChildren(e),t&&u.setParent(t,null),e==null||e.add(u,b.Added),s&&u.subscribe(),e==null||e.attemptAutoclose("clone-entity",this.id),u}merge(e,t=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"merge-literal-value"))){const i=[],s=[],d=[],o=[];return this.valueAsTypeSingle!==(e==null?void 0:e.valueAsTypeSingle)&&(this.setValueAsType(e.valueAsTypeSingle,t),i.push(this)),this.value!==e.value&&(this.metaSync({value:e.value},t),i.push(this)),this.autogeneration!==e.autogeneration&&(this.metaSync({autogeneration:e.autogeneration},t),i.push(this)),this.name!==e.name&&(this.metaSync({name:e.name},t),i.push(this)),t==null||t.attemptAutoclose("merge-literal-value",this.id),{updated:p(i),added:p(s),removed:p(d),affected:p(o),self:this}}};f(Le,"repository",{APICreate:async(e,...t)=>e,APIUpdate:async(e,...t)=>e,APIDelete:async(e,...t)=>e,APIClone:async(e,...t)=>{},APILoad:async(e,...t)=>null,APILoadVersion:async(e,t,...i)=>null}),f(Le,"type",n.LiteralValue),f(Le,"USER_MANAGED_PARENT_TYPES",[n.DataType,n.InputMap,n.Property,n.ArgumentDeclaration,n.ReturnDeclaration,n.VariableDeclaration,n.VariableInstance,n.ValueDescriptor,n.OutputMap]),f(Le,"PARENT_TYPES",[...Le.USER_MANAGED_PARENT_TYPES]),f(Le,"MUTABLE_BASE_PROPERTIES",["name","autogeneration","value"]),f(Le,"INMUTABLE_BASE_PROPERTIES",["id","type","version","createdAt","author","previousVersion"]),f(Le,"BASE_PROPERTIES",[...Le.MUTABLE_BASE_PROPERTIES,...Le.INMUTABLE_BASE_PROPERTIES]),f(Le,"MUTABLE_META_PROPERTIES",[...Le.MUTABLE_BASE_PROPERTIES]),f(Le,"INMUTABLE_META_PROPERTIES",[...Le.INMUTABLE_BASE_PROPERTIES]),f(Le,"META_PROPERTIES",[...Le.MUTABLE_META_PROPERTIES,...Le.INMUTABLE_META_PROPERTIES]),f(Le,"MUTABLE_UPSTREAM_PROPERTIES",[]),f(Le,"INMUTABLE_UPSTREAM_PROPERTIES",["parent"]),f(Le,"UPSTREAM_PROPERTIES",[...Le.MUTABLE_UPSTREAM_PROPERTIES,...Le.INMUTABLE_UPSTREAM_PROPERTIES]),f(Le,"MUTABLE_DOWNSTREAM_PROPERTIES",["valueAsTypeSingle","valueAsTypeList"]),f(Le,"INMUTABLE_DOWNSTREAM_PROPERTIES",[]),f(Le,"DOWNSTREAM_PROPERTIES",[...Le.MUTABLE_DOWNSTREAM_PROPERTIES,...Le.INMUTABLE_DOWNSTREAM_PROPERTIES]),f(Le,"PROPERTIES",[...Le.META_PROPERTIES,...Le.UPSTREAM_PROPERTIES,...Le.DOWNSTREAM_PROPERTIES]);let Qr=Le;function g1(r){var s;const a=S3(),e=r.toJSON();a.safeParse(e).success,(s=r.dataType)==null||s.validate();const i=[];return Ke(r.errors,i)}const nS=Object.freeze(Object.defineProperty({__proto__:null,validate:g1},Symbol.toStringTag,{value:"Module"}));var G1=(r=>(r.DataTypeEntity="data-type-entity",r))(G1||{});const je=class je extends dt{constructor(e,t){super(e);f(this,"initialData");f(this,"id");f(this,"name");f(this,"description",null);f(this,"index");f(this,"required");f(this,"parentRelationType");f(this,"type",n.ValueDescriptor);f(this,"defaultValue",null);f(this,"dataType",null);f(this,"project");f(this,"errors",[]);f(this,"parent");f(this,"detachedDependents",{});f(this,"knownVersions",null);f(this,"activeVersion",!1);f(this,"initialized",!1);f(this,"startedInitialization",!1);f(this,"codeNativeValueValidation",null);this.initialData=e,this.project=t,this.id=e.id,this.name=e.name,this.description=e.description,this.index=e.index,this.required=e.required,this.parentRelationType=e.parentRelationType}static new(e=null){return{id:m.UUID.uuid(),version:m.UUID.uuid(),createdAt:(e==null?void 0:e.timestamp)||T().toISOString(),author:(e==null?void 0:e.author)||m.sessionAuthor,previousVersion:null,deleted:!1,type:n.ValueDescriptor,name:"",description:"",dataType:null,index:0,required:!1,parentRelationType:N.FixedArguments,defaultValue:null,parent:null}}static fromGenerationTarget(e,t){const i=e.parent?_(e.parent):null,s=i?t.get(i):null,d=e.parentRelationType===N.FixedArguments?s==null?void 0:s.inputs.length:s==null?void 0:s.outputs.length,o={id:e.id,version:m.UUID.uuid(),createdAt:T().toISOString(),author:m.sessionAuthor,previousVersion:null,deleted:!1,name:e.name,type:n.ValueDescriptor,index:d||0,description:e.description,required:e.required,defaultValue:null,parentRelationType:e.parentRelationType,dataType:null,parent:s},l=C(o,t);return s&&l.setParent(s,null),l.initChildren(null),l}static validateGenerationTarget(e,t){let i=JSON.parse(JSON.stringify(e));const s=[],d=bt(i,{parent:{list:!1,types:[n.ActionDescriptor]}},t);i=d.modifiedData,s.push(...d.errors,...pt(i));const o=i.parent&&t.get(i.parent),l=o&&an(o);return l&&l.type===n.ActionDescriptor&&s.push(new w({id:`${e.id}--${R.BuiltInEntityParent}`,code:R.BuiltInEntityParent,severity:D.Error,message:`Entity of type "${e.type}" with id "${e.id}", has a parent that is a built-in entity "${l.name}" of type '${l.type}' with id '${l.id}'.
|
|
202
|
+
This is likely an incorrect strategy, either the '${this.type}' entity doesn't need to be updated or it should be deleted and a new one created in the desired parent.`,issue:null})),{errors:t,modifiedData:e}}subscribeDependents(e){return e.forEach(t=>{this.detachedDependents[t.entity.id]||(this.detachedDependents[t.entity.id]=t)}),this}syncDependents(e=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"sync-dependents"))){const t=[],i=[],s=[],d=[];return Object.values(this.detachedDependents).forEach(o=>{const l=o.entity.afterAllChildrenInitialized(e);t.push(...l.updated),i.push(...l.added),s.push(...l.removed),d.push(...l.affected)}),e==null||e.attemptAutoclose("sync-dependents",this.id),{updated:p(t),added:p(i),removed:p(s),affected:p(d),self:this}}onDetachedDependencyRemoved(e,t,i){const s=[],d=[],o=[],l=[];return t==="value-as-type-single"&&(this.valueAsTypeSingle=null,i==null||i.add(this,b.Updated)),t==="value-as-type-list"&&(this.valueAsTypeList=(this.valueAsTypeList||[]).filter(u=>u.id!==e.id),i==null||i.add(this,b.Updated)),{updated:p(s),added:p(d),removed:p(o),affected:p(l),self:this}}onDetachedDependencyRestored(e,t,i){const s=[],d=[],o=[],l=[];return t==="value-as-type-single"&&(this.valueAsTypeSingle=e,i==null||i.add(this,b.Updated)),t==="value-as-type-list"&&(this.valueAsTypeList=[...Array.isArray(this.valueAsTypeList||[])?this.valueAsTypeList:[],e],i==null||i.add(this,b.Updated)),{updated:p(s),added:p(d),removed:p(o),affected:p(l),self:this}}subscribeToDependencies(){return!this.valueAsTypeSingle&&!this.valueAsTypeList?this:(this.valueAsTypeList&&Array.isArray(this.valueAsTypeList)?this.valueAsTypeList.forEach(e=>{e.type!==n.BuiltInBaseEntity&&e.subscribeDependents([{entity:this,field:"value-as-type-list"}])}):this.valueAsTypeSingle&&this.valueAsTypeSingle.type!==n.BuiltInBaseEntity&&this.valueAsTypeSingle.subscribeDependents([{entity:this,field:"value-as-type-single"}]),this)}increaseVersion(e){if(e&&!T(e).isValid())throw new Error(`The shared timestamp '${e}' is not a valid ISO 8601 date string.`);return e&&T(e).isSame(T(this.createdAt))?this:(this.previousVersion=this.version,this.version=m.UUID.uuid(),this.createdAt=T(e).toISOString()||T().toISOString(),this)}captureVersion(){var t;const e=((t=this.knownVersions)==null?void 0:t.get(this.version))||new Le(this,this.project);return e.metaSync(this.toMeta(),null),this.knownVersions=this.knownVersions?this.knownVersions.set(this.version,e):new Map([[this.version,e]]),e.valueAsTypeSingle=this.valueAsTypeSingle,e.parent=this.parent,this}recursiveCaptureUpstreamVersions(e){const t=[],i=[],s=[],d=[];if(this.parent){this.parent.increaseVersion(e);const o=this.parent.recursiveCaptureUpstreamVersions(e);t.push(this.parent,...o.updated),i.push(...o.added),s.push(...o.removed)}return{updated:p(t),added:p(i),removed:p(s),affected:p(d),self:this}}async restoreVersion(e){var l;const t=[],i=[],s=[],d=[];if(this.version===e)return{updated:p(t),added:p(i),removed:p(s),affected:p(d),self:this};if(!this.knownVersions){const u=new Map;for(const[y,c]of this.knownVersions||new Map){if(u.set(y,c),c.activeVersion=!1,c.knownVersions)for(const[I,E]of c.knownVersions)u.set(I,E);c.knownVersions=null}}let o=(l=this.knownVersions)==null?void 0:l.get(e);if(!o){const u=await this.APILoadVersion({},e);if(!u)throw new Error(`Version with id '${e}' for entity with id '${this.id}' not found.`);o=new Le(u,this.project)}return this.metaSync(o.toShallowJSON(),null),this.valueAsTypeSingle=o.valueAsTypeSingle,this.parent=o.parent,{updated:p(t),added:p(i),removed:p(s),affected:p(d),self:this}}hydrateAncestors(){const e=[],t=[],i=[],s=[];if(this.initialData.parent&&this.initialData.standaloneParent)throw new Error(`Entity with id '${this.id}' cannot have both 'parent' and 'standaloneParent' properties set.`);if(this.initialData.parent){const d=_(this.initialData.parent),o=this.project.get(d);if(o)this.setParent(o,null),e.push(o);else throw new Error(`${this.type} with id '${this.id}' has a 'parent' reference '${d}' that isn't found in the project`)}else if(this.initialData.standaloneParent){const d=_(this.initialData.standaloneParent),o=this.project.get(d);if(o)this.setStandaloneParent(o);else throw new Error(`${this.type} with id '${this.id}' has a 'standaloneParent' reference '${d}' that isn't found in the project`)}else throw new Error(`${this.type} with id '${this.id}' must have a 'parent'`);if(this.initialData.valueAsTypeList&&Array.isArray(this.initialData.valueAsTypeList))this.valueAsTypeList=this.valueAsTypeList||[],this.initialData.valueAsTypeList.forEach(d=>{const o=_(d),l=this.project.get(o);l&&this.valueAsTypeList.push(l)});else if(this.initialData.valueAsTypeSingle){const d=_(this.initialData.valueAsTypeSingle),o=this.project.get(d);o&&(this.valueAsTypeSingle=o)}return{updated:p(e),added:p(t),removed:p(i),affected:p(s),self:this}}afterAllChildrenInitialized(e=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"after-all-children-initialized"))){const t=[],i=[],s=[],d=[];return this.initialized=!0,this.captureVersion(),e==null||e.attemptAutoclose("after-all-children-initialized",this.id),{updated:p(t),added:p(i),removed:p(s),affected:p(d),self:this}}addSelfToProject(e=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"add-self-to-project"))){var o,l;const t=[this],i=[],s=[],d=[];return((o=this.parent)==null?void 0:o.type)===n.DataType?this.parent.setEntity(this):(l=this.parent)==null||l.setDefaultValue(this),t.push(this.parent),this.subscribe(),this.subscribeToDependencies(),e==null||e.attemptAutoclose("add-self-to-project",this.id),{updated:p(t),added:p(i),removed:p(s),affected:p(d),self:this}}setParent(e,t=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"set-parent"))){var i;return((i=this.parent)==null?void 0:i.id)!==(e==null?void 0:e.id)&&(this.parent=e,t&&(t==null||t.add(this,b.Updated),t==null||t.attemptAutoclose("set-parent",this.id))),this}setStandaloneParent(e){return this.standaloneParent=e,this}setValueAsTypeSingle(e,t=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"set-value-as-type-single"))){return this.valueAsTypeSingle!==e&&(this.valueAsTypeSingle=e,t==null||t.add(this,b.Updated)),t==null||t.attemptAutoclose("set-value-as-type-single",this.id),this}setValueAsTypeList(e,t=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"set-value-as-type-list"))){var i,s;return!e&&this.valueAsTypeList?(this.valueAsTypeList=null,t==null||t.add(this,b.Updated)):e&&!this.valueAsTypeList?(this.valueAsTypeList=e,t==null||t.add(this,b.Updated)):e&&this.valueAsTypeList&&((i=this.valueAsTypeList)==null?void 0:i.length)!==e.length?(this.valueAsTypeList=e,t==null||t.add(this,b.Updated)):e&&this.valueAsTypeList&&((s=this.valueAsTypeList)!=null&&s.every((d,o)=>d!==e[o]))&&(this.valueAsTypeList=e,t==null||t.add(this,b.Updated)),t==null||t.attemptAutoclose("set-value-as-type-list",this.id),this}setValueAsType(e,t=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"set-value-as-type"))){return e?(Array.isArray(e)?this.setValueAsTypeList(e,t):this.setValueAsTypeSingle(e,t),t==null||t.attemptAutoclose("set-value-as-type",this.id),this):(this.setValueAsTypeSingle(null,t),this.setValueAsTypeList(null,t),this)}initChildren(e=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"init-children"))){if(this.initialized||this.startedInitialization)return this;if(this.startedInitialization=!0,this.standalone){if(this.initialData.valueAsTypeList&&Array.isArray(this.initialData.valueAsTypeList))this.valueAsTypeList=this.initialData.valueAsTypeList.map(t=>{if(t.type===n.GenericReference){const s=this.project.findSubscribedBuiltInInstanceFromReference(t);if(!s)throw new Error(`Standalone entity of type '${this.type}' with id '${this.id}' has a reference to an entity of type '${t.entityType}' with id '${t.entityId}' that is not part of the project state.`);return s}const i=this.project.get(t.id);if(!i)throw new Error(`Standalone entity of type '${this.type}' with id '${this.id}' has a reference to an entity of type '${t.type}' with id '${t.id}' that is not part of the project state.`);return i});else if(this.initialData.valueAsTypeSingle){if(this.initialData.valueAsTypeSingle.type===n.GenericReference){const i=this.project.findSubscribedBuiltInInstanceFromReference(this.initialData.valueAsTypeSingle);if(!i)throw new Error(`Standalone entity of type '${this.type}' with id '${this.id}' has a reference to an entity of type '${this.initialData.valueAsTypeSingle.entityType}' with id '${this.initialData.valueAsTypeSingle.entityId}' that is not part of the project state.`);return this.valueAsTypeSingle=i,this}const t=this.project.get(this.initialData.valueAsTypeSingle.id);if(!t)throw new Error(`Standalone entity of type '${this.type}' with id '${this.id}' has a reference to an entity of type '${this.initialData.valueAsTypeSingle.type}' with id '${this.initialData.valueAsTypeSingle.id}' that is not part of the project state.`);this.valueAsTypeSingle=t}return this}if(this.initialData.valueAsTypeList&&Array.isArray(this.initialData.valueAsTypeList))this.valueAsTypeList=this.initialData.valueAsTypeList.map(t=>{if(t.type===n.GenericReference){const s=this.project.findSubscribedBuiltInInstanceFromReference(t);if(!s)throw new Error(`Standalone entity of type '${this.type}' with id '${this.id}' has a reference to an entity of type '${t.entityType}' with id '${t.entityId}' that is not part of the project state.`);return s}const i=this.project.get(t.id);if(!i)throw new Error(`Standalone entity of type '${this.type}' with id '${this.id}' has a reference to an entity of type '${t.type}' with id '${t.id}' that is not part of the project state.`);return i});else if(this.initialData.valueAsTypeSingle){if(this.initialData.valueAsTypeSingle.type===n.GenericReference){const i=_(this.initialData.valueAsTypeSingle),s=i?this.project.get(i):null;if(!s)throw new Error(`Standalone entity of type '${this.type}' with id '${this.id}' has a reference to an entity of type '${this.initialData.valueAsTypeSingle.entityType}' with id '${this.initialData.valueAsTypeSingle.entityId}' that is not part of the project state.`);return this.valueAsTypeSingle=s,this}const t=this.project.get(this.initialData.valueAsTypeSingle.id);if(!t)throw new Error(`Standalone entity of type '${this.type}' with id '${this.id}' has a reference to an entity of type '${this.initialData.valueAsTypeSingle.type}' with id '${this.initialData.valueAsTypeSingle.id}' that is not part of the project state.`);this.valueAsTypeSingle=t}return this.subscribeToDependencies(),this.afterAllChildrenInitialized(e),e==null||e.attemptAutoclose("init-children",this.id),this}subscribe(){return this.activeVersion=!0,this.project.subscribeInstance(this),this}unsubscribe(){return this.project.unsubscribeInstance(this),this}metaSync(e,t=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"meta-sync"))){const i=ct(this,e),s=this.toMeta();return this.name=e.name!==void 0?e.name:s.name,this.autogeneration=e.autogeneration!==void 0?e.autogeneration:s.autogeneration,this.value=e.value!==void 0?e.value:s.value,super.metaSync(e),e.deleted===!0&&!s.deleted?t==null||t.add(this,b.Removed):e.deleted===!1&&s.deleted?t==null||t.add(this,b.Added):i&&(t==null||t.add(this,b.Updated)),t==null||t.attemptAutoclose("meta-sync",this.id),this}async APILoad(e=U,...t){return await Le.repository.APILoad(this.id,...t),this}async APICreate(e=U,...t){return await Le.repository.APICreate(this.toShallowJSON(),...t),this}async APIUpdate(e=U,...t){return await Le.repository.APIUpdate(this.toShallowJSON(),...t),this}async APIDelete(e=U,...t){return await Le.repository.APIDelete(this.toShallowJSON(),...t),this}async APIClone(e=U,...t){return await Le.repository.APIClone(this.id,...t),this}async APILoadVersion(e=U,t,...i){return await Le.repository.APILoadVersion(this.id,t,...i)}remove({ignoreUpstream:e}={ignoreUpstream:!1},t=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"remove-entity"))){const i=[],s=[],d=[],o=[];return t!=null&&t.hasRemoved(this.id)?(t==null||t.attemptAutoclose("remove-entity",this.id),{added:[],updated:[],removed:[],affected:[],self:this}):(s.push(this),this.unsubscribe(),this.project.subscribeDeletedInstance(this),this.metaSync({deleted:!0},t),Object.values(this.detachedDependents).forEach(l=>{const{updated:u,removed:y,added:c}=l.entity.onDetachedDependencyRemoved(this,l.field,t);i.push(...u),s.push(...y),d.push(...c)}),t==null||t.attemptAutoclose("remove-entity",this.id),{added:p(d),updated:p(i),removed:p(s),affected:p(o),self:this})}restore({}={},e=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"restore-entity"))){const t=[],i=[],s=[],d=[];return e!=null&&e.hasAdded(this.id)?(e==null||e.attemptAutoclose("restore-entity",this.id),{added:[],updated:[],removed:[],affected:[],self:this}):(this.subscribe(),this.project.unsubscribeDeletedInstance(this),this.metaSync({deleted:!1},e),Object.values(this.detachedDependents).forEach(o=>{const{updated:l,removed:u,added:y}=o.entity.onDetachedDependencyRestored(this,o.field,e);i.push(...l),s.push(...u),t.push(...y)}),e==null||e.attemptAutoclose("restore-entity",this.id),{added:p(t),updated:p(i),removed:p(s),affected:p(d),self:this})}toFlat(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this,...this.valueAsTypeSingle?this.valueAsTypeSingle.toFlat(e):[],...this.valueAsTypeList&&Array.isArray(this.valueAsTypeList)?this.valueAsTypeList.flatMap(i=>i.toFlat(e)):[]])}toFlatIds(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.id,...this.valueAsTypeSingle?this.valueAsTypeSingle.toFlatIds(e):[],...this.valueAsTypeList&&Array.isArray(this.valueAsTypeList)?this.valueAsTypeList.flatMap(i=>i.toFlatIds(e)):[]])}toMeta(){return{id:this.id,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,value:this.value,autogeneration:this.autogeneration,type:this.type,name:this.name}}toJSON(e=new Set){var t,i,s;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,autogeneration:this.autogeneration,value:this.value,valueAsTypeSingle:((t=this.valueAsTypeSingle)==null?void 0:t.toJSON(e))||null,valueAsTypeList:Array.isArray(this.valueAsTypeSingle)?this.valueAsTypeSingle.map(d=>d.toJSON(e)):null,parent:(i=this.parent)==null?void 0:i.toReference(),standaloneParent:(s=this.standaloneParent)==null?void 0:s.toReference()})}toJSONClone(e=J){var i,s,d,o,l,u,y;let t;return(i=e.seenEntityMaps)!=null&&i.has(this.id)?t=e.seenEntityMaps.get(this.id):(t=e.newId||ht(this,this.project,e.uuidStrategy),e.seenEntityMaps&&e.seenEntityMaps.set(this.id,t)),(s=e.seenEntities)!=null&&s.has(t)||(d=e.seenEntities)!=null&&d.has(this.id)?this.toReference({seenEntityMaps:e.seenEntityMaps}):((o=e.seenEntities)==null||o.add(t),(l=e.seenEntities)==null||l.add(this.id),{id:t,version:m.UUID.uuid(),createdAt:e.timestamp||T().toISOString(),previousVersion:null,author:this.author,deleted:this.deleted,type:this.type,name:this.name,autogeneration:this.autogeneration,value:this.value,valueAsTypeSingle:this.valueAsTypeSingle?this.project.getBuiltIn(this.valueAsTypeSingle.id)?this.valueAsTypeSingle.toJSON():this.valueAsTypeSingle.toJSONClone({...e,newId:null}):null,valueAsTypeList:this.valueAsTypeSingle&&Array.isArray(this.valueAsTypeSingle)?this.valueAsTypeSingle.map(c=>this.project.getBuiltIn(c.id)?c.toJSON():c.toJSONClone({...e,newId:null})):null,parent:(u=this.parent)==null?void 0:u.toReference({seenEntityMaps:e.seenEntityMaps}),standaloneParent:(y=this.standaloneParent)==null?void 0:y.toReference({seenEntityMaps:e.seenEntityMaps})})}toReference(e=J){var i;let t=this.id;return(i=e.seenEntityMaps)!=null&&i.has(this.id)&&(t=e.seenEntityMaps.get(this.id)),{id:t+"--"+m.UUID.uuid()+"--ref",type:n.GenericReference,entityId:t,version:this.version,entityType:this.type}}toShallowJSON(e=J){var i,s,d,o;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,valueAsTypeSingle:((s=this.valueAsTypeSingle)==null?void 0:s.toReference(e))||null,valueAsTypeList:Array.isArray(this.valueAsTypeSingle)?this.valueAsTypeSingle.map(l=>l.toReference(e)):null,value:this.value,autogeneration:this.autogeneration,parent:(d=this.parent)==null?void 0:d.toReference(e),standaloneParent:(o=this.standaloneParent)==null?void 0:o.toReference(e)}}toFlatJSON(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.toShallowJSON(),...this.valueAsTypeSingle?this.valueAsTypeSingle.toFlatJSON(e):[],...this.valueAsTypeList&&Array.isArray(this.valueAsTypeList)?this.valueAsTypeList.flatMap(i=>i.toFlatJSON(e)):[]])}toGenerationTarget(){var e,t,i;return{id:this.id,type:this.type,name:this.name,valueAsTypeSingle:((e=this.valueAsTypeSingle)==null?void 0:e.id)||null,valueAsTypeList:Array.isArray(this.valueAsTypeSingle)?this.valueAsTypeSingle.map(s=>s.id):null,value:this.value,autogeneration:this.autogeneration,parent:(t=this.parent)==null?void 0:t.id,standaloneParent:(i=this.standaloneParent)==null?void 0:i.id}}toFlatGenerationTarget(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.toGenerationTarget(),...this.valueAsTypeSingle?this.valueAsTypeSingle.toFlatGenerationTarget(e):[],...this.valueAsTypeList&&Array.isArray(this.valueAsTypeList)?this.valueAsTypeList.flatMap(i=>i.toFlatGenerationTarget(e)):[]])}clearErrors(){return this.errors=[],this}validate(){const e=U1(this);return this.errors=e,{success:!0,error:null,data:this.toJSON()}}getErrors(){return[...this.errors]}getShallowErrors(){return this.errors}clone(e=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"clone-entity")),t=null,i=null,s=!0){let d=mt(t,this);const o=this.toJSON(),l=i||m.UUID.uuid();o.id=l,o.version=m.UUID.uuid(),o.createdAt=(e==null?void 0:e.timestamp)||T().toISOString(),o.author=(e==null?void 0:e.author)||"1",o.previousVersion=null,o.deleted=!1;const u=nt(o,d);return u.initChildren(e),t&&u.setParent(t,null),e==null||e.add(u,b.Added),s&&u.subscribe(),e==null||e.attemptAutoclose("clone-entity",this.id),u}merge(e,t=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"merge-literal-value"))){const i=[],s=[],d=[],o=[];return this.valueAsTypeSingle!==(e==null?void 0:e.valueAsTypeSingle)&&(this.setValueAsType(e.valueAsTypeSingle,t),i.push(this)),this.value!==e.value&&(this.metaSync({value:e.value},t),i.push(this)),this.autogeneration!==e.autogeneration&&(this.metaSync({autogeneration:e.autogeneration},t),i.push(this)),this.name!==e.name&&(this.metaSync({name:e.name},t),i.push(this)),t==null||t.attemptAutoclose("merge-literal-value",this.id),{updated:p(i),added:p(s),removed:p(d),affected:p(o),self:this}}};f(Le,"repository",{APICreate:async(e,...t)=>e,APIUpdate:async(e,...t)=>e,APIDelete:async(e,...t)=>e,APIClone:async(e,...t)=>{},APILoad:async(e,...t)=>null,APILoadVersion:async(e,t,...i)=>null}),f(Le,"type",n.LiteralValue),f(Le,"USER_MANAGED_PARENT_TYPES",[n.DataType,n.InputMap,n.Property,n.ArgumentDeclaration,n.ReturnDeclaration,n.VariableDeclaration,n.VariableInstance,n.ValueDescriptor,n.OutputMap]),f(Le,"PARENT_TYPES",[...Le.USER_MANAGED_PARENT_TYPES]),f(Le,"MUTABLE_BASE_PROPERTIES",["name","autogeneration","value"]),f(Le,"INMUTABLE_BASE_PROPERTIES",["id","type","version","createdAt","author","previousVersion"]),f(Le,"BASE_PROPERTIES",[...Le.MUTABLE_BASE_PROPERTIES,...Le.INMUTABLE_BASE_PROPERTIES]),f(Le,"MUTABLE_META_PROPERTIES",[...Le.MUTABLE_BASE_PROPERTIES]),f(Le,"INMUTABLE_META_PROPERTIES",[...Le.INMUTABLE_BASE_PROPERTIES]),f(Le,"META_PROPERTIES",[...Le.MUTABLE_META_PROPERTIES,...Le.INMUTABLE_META_PROPERTIES]),f(Le,"MUTABLE_UPSTREAM_PROPERTIES",[]),f(Le,"INMUTABLE_UPSTREAM_PROPERTIES",["parent"]),f(Le,"UPSTREAM_PROPERTIES",[...Le.MUTABLE_UPSTREAM_PROPERTIES,...Le.INMUTABLE_UPSTREAM_PROPERTIES]),f(Le,"MUTABLE_DOWNSTREAM_PROPERTIES",["valueAsTypeSingle","valueAsTypeList"]),f(Le,"INMUTABLE_DOWNSTREAM_PROPERTIES",[]),f(Le,"DOWNSTREAM_PROPERTIES",[...Le.MUTABLE_DOWNSTREAM_PROPERTIES,...Le.INMUTABLE_DOWNSTREAM_PROPERTIES]),f(Le,"PROPERTIES",[...Le.META_PROPERTIES,...Le.UPSTREAM_PROPERTIES,...Le.DOWNSTREAM_PROPERTIES]);let Qr=Le;function g1(r){var s;const a=S3(),e=r.toJSON();a.safeParse(e).success,(s=r.dataType)==null||s.validate();const i=[];return Ke(r.errors,i)}const nS=Object.freeze(Object.defineProperty({__proto__:null,validate:g1},Symbol.toStringTag,{value:"Module"}));var G1=(r=>(r.DataTypeEntity="data-type-entity",r))(G1||{});const je=class je extends dt{constructor(e,t){super(e);f(this,"initialData");f(this,"id");f(this,"name");f(this,"description",null);f(this,"index");f(this,"required");f(this,"parentRelationType");f(this,"type",n.ValueDescriptor);f(this,"defaultValue",null);f(this,"dataType",null);f(this,"project");f(this,"errors",[]);f(this,"parent");f(this,"detachedDependents",{});f(this,"knownVersions",null);f(this,"activeVersion",!1);f(this,"initialized",!1);f(this,"startedInitialization",!1);f(this,"codeNativeValueValidation",null);this.initialData=e,this.project=t,this.id=e.id,this.name=e.name,this.description=e.description,this.index=e.index,this.required=e.required,this.parentRelationType=e.parentRelationType}static new(e=null){return{id:m.UUID.uuid(),version:m.UUID.uuid(),createdAt:(e==null?void 0:e.timestamp)||T().toISOString(),author:(e==null?void 0:e.author)||m.sessionAuthor,previousVersion:null,deleted:!1,type:n.ValueDescriptor,name:"",description:"",dataType:null,index:0,required:!1,parentRelationType:N.FixedArguments,defaultValue:null,parent:null}}static fromGenerationTarget(e,t){const i=e.parent?_(e.parent):null,s=i?t.get(i):null,d=e.parentRelationType===N.FixedArguments?s==null?void 0:s.inputs.length:s==null?void 0:s.outputs.length,o={id:e.id,version:m.UUID.uuid(),createdAt:T().toISOString(),author:m.sessionAuthor,previousVersion:null,deleted:!1,name:e.name,type:n.ValueDescriptor,index:d||0,description:e.description,required:e.required,defaultValue:null,parentRelationType:e.parentRelationType,dataType:null,parent:s},l=C(o,t);return s&&l.setParent(s,null),l.initChildren(null),l}static validateGenerationTarget(e,t){let i=JSON.parse(JSON.stringify(e));const s=[],d=bt(i,{parent:{list:!1,types:[n.ActionDescriptor]}},t);i=d.modifiedData,s.push(...d.errors,...pt(i));const o=i.parent&&t.get(i.parent),l=o&&an(o);return l&&l.type===n.ActionDescriptor&&s.push(new w({id:`${e.id}--${R.BuiltInEntityParent}`,code:R.BuiltInEntityParent,severity:D.Error,message:`Entity of type "${e.type}" with id "${e.id}", has a parent that is a built-in entity "${l.name}" of type '${l.type}' with id '${l.id}'.
|
|
203
203
|
You can't modify system entities that are built-in.`,issue:null})),o&&o.type===n.ActionDescriptor&&(!i.parentRelationType||!(i.parentRelationType===N.FixedArguments||i.parentRelationType===N.FixedReturns||i.parentRelationType===N.ReturnedError||i.parentRelationType===N.DynamicArgument||i.parentRelationType===N.DynamicReturn)?s.push(new w({id:`${e.id}--${R.InvalidParentRelationType}`,code:R.InvalidParentRelationType,severity:D.Error,message:`The entity with id '${e.id}' and type '${e.type}', must have a 'parentRelationType' property set to either '${N.FixedArguments}', '${N.FixedReturns}', or '${N.ReturnedError}' when being added as a child to an entity of type 'action-descriptor'.`,issue:null})):i.parentRelationType===N.ReturnedError&&o.error&&s.push(new w({id:`${e.id}--${R.NewEntityWouldOverriteExisting}`,code:R.NewEntityWouldOverriteExisting,severity:D.Error,message:`The entity with id '${e.id}' and type '${e.type}', is being added as an error value-descriptor to an entity of type 'action-descriptor' with id '${o.id}', which already has an error value descriptor with id '${o.error.id}'.
|
|
204
204
|
An action descriptor can only have one error value descriptor child.
|
|
205
205
|
Either remove the existing error value descriptor or update it with the 'update' action.
|