@elyx-code/project-logic-tree 0.0.6394 → 0.0.6395

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -2609,6 +2609,190 @@ export declare const DEFAULT_PROJECT_STATIC_PARENT_CONTEXT: IProjectStaticParent
2609
2609
 
2610
2610
  export declare const DEFAULT_UUID_MODULE: IUUIDModule;
2611
2611
 
2612
+ export declare class DefaultEditorContext extends ExtensionContextBase<ExtensionContextType.Editor> implements IEditorContext {
2613
+ private readonly _editor;
2614
+ readonly id: string;
2615
+ constructor(extensionsRegistry: ExtensionsRegistry, _editor: IEditor, id?: string);
2616
+ get ready(): boolean;
2617
+ get hasLoadedLogic(): boolean;
2618
+ get destroyed(): boolean;
2619
+ get logicLoadingPromise(): Promise<void> | null;
2620
+ get logic(): ProjectState | null;
2621
+ get branch(): IActiveBranchHeadResult | null;
2622
+ get projectId(): EntityId;
2623
+ get sessionId(): string | null;
2624
+ get userAuthorId(): string;
2625
+ get peerConnections(): Record<string, IChannelConnections>;
2626
+ get test(): ITest | null;
2627
+ get localTestValues(): EfimeralValueStore;
2628
+ get resolvedValues(): EfimeralValueStore;
2629
+ get persistedExecutionResults(): EfimeralValueStore;
2630
+ get publication(): PublicationRun | null;
2631
+ get execution(): Execution | null;
2632
+ get project(): ProjectState;
2633
+ get lastExecutionResults(): EfimeralValueStore;
2634
+ get undoableStackValueIndex(): number;
2635
+ set undoableStackValueIndex(value: number);
2636
+ get PROJECT_NOTIFICATIONS_CHANNEL(): string;
2637
+ getAccessToken(): Promise<string | null>;
2638
+ removeValueByOwnerId(entityId: EntityId): void;
2639
+ removeValue(dynamicValue: IDynamicValue): void;
2640
+ undo(): Promise<void>;
2641
+ redo(): Promise<void>;
2642
+ initTest(entryPoint: TestableEntityState, autoExecute: boolean): Promise<ITest>;
2643
+ removeTest(): Promise<ITest>;
2644
+ copyEntities(entities: CanvasEntityState[]): Promise<ChangeSet>;
2645
+ resolveInitialChildrenPositions(parent: CanvasEntityState | null, children: CanvasEntityState[], changeSet: ChangeSet | null): CanvasEntityState[];
2646
+ publish(): Promise<void>;
2647
+ loadActivePublication(publicationId: string): Promise<IPublication>;
2648
+ requestActiveDynamicValue(valueOwner: EntityWithValueState): IDynamicValue | null;
2649
+ }
2650
+
2651
+ export declare type DefaultExtensionContext = DefaultEditorContext | DefaultProjectLogicContext;
2652
+
2653
+ export declare class DefaultProjectLogicContext extends ExtensionContextBase<ExtensionContextType.Logic> implements IProjectLogicContext {
2654
+ private readonly _project;
2655
+ constructor(extensionsRegistry: ExtensionsRegistry, _project: ProjectState);
2656
+ readonly id: EntityId;
2657
+ get type(): EntityType.Project;
2658
+ get name(): string | null;
2659
+ get description(): string | null;
2660
+ get version(): string;
2661
+ get createdAt(): string;
2662
+ get previousVersion(): string | null;
2663
+ get author(): string;
2664
+ get deleted(): boolean;
2665
+ get entities(): DefinitionEntityState[];
2666
+ get projects(): InstalledProjectState[];
2667
+ get functions(): FunctionDeclarationState[];
2668
+ get events(): GlobalEventState[];
2669
+ get variableDeclarations(): VariableDeclarationState[];
2670
+ get variableInstances(): VariableInstanceState[];
2671
+ get conditions(): ConditionState[];
2672
+ get operations(): OperationState[];
2673
+ get functionCalls(): FunctionCallState[];
2674
+ get loops(): LoopState[];
2675
+ get searches(): SearchState[];
2676
+ get primitives(): PrimitiveEntityState[];
2677
+ get builtInBaseEntities(): BuiltInBaseEntityState[];
2678
+ get operationDeclarations(): ActionDescriptorState[];
2679
+ get globalEventActionDescriptors(): ActionDescriptorState[];
2680
+ get loopDeclarations(): ActionDescriptorState[];
2681
+ get loopDeclarationsBodies(): ActionDescriptorState[];
2682
+ get conditionDeclarations(): ActionDescriptorState[];
2683
+ get valueDescriptors(): ValueDescriptorState[];
2684
+ get dataTypes(): DataTypeState[];
2685
+ get errors(): EntityError[];
2686
+ get history(): ChangeSet[];
2687
+ get undoableStackValueIndex(): number;
2688
+ get knownVersions(): Map<string, EntityState> | null;
2689
+ get activeVersion(): boolean;
2690
+ get initialized(): boolean;
2691
+ get startedInitialization(): boolean;
2692
+ closePendingChangeSets(): Promise<void>;
2693
+ closeChangeSet(changeSet: ChangeSet): Promise<void>;
2694
+ toLatestChangeSet(author: string, timestamp: string, // ISO 8601 format
2695
+ self: UserManagedEntityState | null, autoclose?: boolean, autoCloseActionName?: string): ChangeSet;
2696
+ addChangeSet(changeSet: ChangeSet): ChangeSet;
2697
+ discardChangeSet(changeSet: ChangeSet | null): ProjectState;
2698
+ subscribeDependents(dependencies: {
2699
+ entity: UserManagedEntityState;
2700
+ field: string;
2701
+ }[]): UserManagedEntityState;
2702
+ unsubscribeDependents(dependencies: {
2703
+ entity: UserManagedEntityState;
2704
+ field: string;
2705
+ }[]): UserManagedEntityState;
2706
+ syncDependents(changeSet?: ChangeSet | null): IChangeSet<UserManagedEntityState>;
2707
+ onDetachedDependencyRemoved(_dependency: UserManagedEntityState, _field: string, _changeSet: ChangeSet | null): IChangeSet<UserManagedEntityState>;
2708
+ onDetachedDependencyRestored(_dependency: UserManagedEntityState, _field: string, _changeSet: ChangeSet | null): IChangeSet<UserManagedEntityState>;
2709
+ increaseVersion(sharedTimestamp: null | string): UserManagedEntityState;
2710
+ captureVersion(): ProjectState;
2711
+ restoreVersion(versionId: EntityVersion): Promise<IChangeSet<ProjectState>>;
2712
+ updateWithShallowTransfer(transfer: IProjectShallowTransfer, changeSet?: ChangeSet | null): ProjectState;
2713
+ hydrateAncestors(): IChangeSet<ProjectState>;
2714
+ afterAllChildrenInitialized(changeSet?: ChangeSet | null): IChangeSet<ProjectState>;
2715
+ addSelfToProject(_changeSet: ChangeSet | null): IChangeSet<ProjectState>;
2716
+ get instancesList(): EntityState[];
2717
+ isOperationDeclaration(entity: ActionDescriptorState): boolean;
2718
+ isGlobalEventActionDescriptor(entity: ActionDescriptorState): boolean;
2719
+ isLoopDeclaration(entity: ActionDescriptorState): boolean;
2720
+ isConditionDeclaration(entity: ActionDescriptorState): boolean;
2721
+ findSubscribedBuiltInInstance(entity: Element_2 | ElementTransfer): EntityState | null;
2722
+ get(entityId: EntityId): EntityState | null;
2723
+ getDeleted(entityId: EntityId): EntityState | null;
2724
+ getManaged(entityId: EntityId): EntityState | null;
2725
+ getBuiltIn(entityId: EntityId): EntityState | null;
2726
+ findSubscribedInstanceFromReference(entity: Reference): EntityState | null;
2727
+ findSubscribedBuiltInInstanceFromReference(entity: Reference): EntityState | null;
2728
+ metaSync(data: Partial<IProject_meta | IProject | IProjectTransfer | IProjectShallowTransfer>, changeSet?: ChangeSet | null): ProjectState;
2729
+ getAllBuiltInIds(): EntityId[];
2730
+ getAllBuiltIn(): EntityState[];
2731
+ toFlat(seenEntities?: Set<EntityId>): EntityState[];
2732
+ toFlatIds(seenEntities?: Set<EntityId>): EntityId[];
2733
+ toMeta(): IProject_meta;
2734
+ toJSON(seenEntities?: Set<EntityId>): IProjectTransfer | IProjectReference;
2735
+ toJSONClone(options?: IEntityJSONCloneOptions): IProjectTransfer;
2736
+ toReference(options?: IEntityRecursionOptions): IProjectReference;
2737
+ toShallowJSON(options?: IEntityRecursionOptions): IProjectShallowTransfer;
2738
+ toFlatJSON(seenEntities?: Set<EntityId>): ElementShallowTransfer[];
2739
+ toGenerationTarget(): IProjectGenerationTarget;
2740
+ toFlatGenerationTarget(seenEntities?: Set<EntityId>): ElementGenerationTarget[];
2741
+ clearErrors(): ProjectState;
2742
+ validate(): {
2743
+ success: boolean;
2744
+ error: ZodError | null;
2745
+ data: IProjectTransfer | null;
2746
+ };
2747
+ validateChildren(): void;
2748
+ getErrors(): EntityError[];
2749
+ getShallowErrors(): EntityError[];
2750
+ getDefinitionEntity(id: EntityId): DefinitionEntityState | null;
2751
+ addDefinitionEntity(entity: DefinitionEntityState): DefinitionEntityState;
2752
+ addFunctionDeclaration(func: FunctionDeclarationState): FunctionDeclarationState;
2753
+ addFunctionCall(func: FunctionCallState): FunctionCallState;
2754
+ addVariableDeclaration(variable: VariableDeclarationState): VariableDeclarationState;
2755
+ addVariableInstance(variable: VariableInstanceState): VariableInstanceState;
2756
+ addInstalledProject(project: InstalledProjectState): ProjectState;
2757
+ addGlobalEvent(event: GlobalEventState): ProjectState;
2758
+ addCondition(condition: ConditionState): ProjectState;
2759
+ addOperation(operation: OperationState): ProjectState;
2760
+ addLoop(loop: LoopState): ProjectState;
2761
+ addSearch(search: SearchState): ProjectState;
2762
+ removeDefinitionEntity(entity: IDefinitionEntity): DefinitionEntityState | null;
2763
+ removeCondition(condition: ICondition): ConditionState | null;
2764
+ removeOperation(operation: IOperation): OperationState | null;
2765
+ removeLoop(loop: ILoop): LoopState | null;
2766
+ removeSearch(search: ISearch): SearchState | null;
2767
+ removeFunctionCall(funcCall: IFunctionCall): FunctionCallState | null;
2768
+ removeVariableInstance(variable: IVariableInstance): VariableInstanceState | null;
2769
+ removeVariableDeclaration(variable: IVariableDeclaration): VariableDeclarationState | null;
2770
+ removeFunctionDeclaration(func: IFunctionDeclaration): FunctionDeclarationState | null;
2771
+ removeInstalledProject(project: IInstalledProject): InstalledProjectState | null;
2772
+ removeGlobalEvent(event: IGlobalEvent): GlobalEventState | null;
2773
+ removeTopLevelVariableDeclaration(variable: VariableDeclarationState): VariableDeclarationState | null;
2774
+ getEntryPoints(): EntryPointEntityState[];
2775
+ getTerminationStatements(): TerminationState[];
2776
+ getFunctionDeclaration(id: EntityId): FunctionDeclarationState | null;
2777
+ getConditions(): ConditionState[];
2778
+ getOperations(): OperationState[];
2779
+ getVariables(): VariableState[];
2780
+ getVariableInstances(): VariableInstanceState[];
2781
+ getVariableDeclarations(): VariableDeclarationState[];
2782
+ getLoops(): LoopState[];
2783
+ getSearches(): SearchState[];
2784
+ getBuiltInPersistedEntity(): BuiltInBaseEntityState | null;
2785
+ requestActiveDynamicValue(valueOwner: EntityWithValueState): IDynamicValue | null;
2786
+ undo(): IProjectVersionTransitionConfig;
2787
+ redo(): IProjectVersionTransitionConfig;
2788
+ applyExternalChangeSet(request: PersistChangeSetEntityActionRequestPayload): ChangeSet;
2789
+ toFullProjectTransfer(): {
2790
+ order: EntityId[];
2791
+ size: number;
2792
+ record: Record<EntityId, UserManagedElementShallowTransfer>;
2793
+ };
2794
+ }
2795
+
2612
2796
  export declare enum DefinitionEntityDependencyField {
2613
2797
  Extends = "extends",
2614
2798
  Implements = "implements"
@@ -2937,45 +3121,6 @@ export declare enum DynamicValueTypes {
2937
3121
 
2938
3122
  export declare const EDITABLE_PERSISTANCE_REPOSITORY_DEFAULTS: IEditableEntityPersistanceRepository;
2939
3123
 
2940
- export declare class EditorContext extends ExtensionContextBase<ExtensionContextType.Editor> implements IEditorContext {
2941
- private readonly _editor;
2942
- readonly id: string;
2943
- constructor(extensionsRegistry: ExtensionsRegistry, _editor: IEditor, id?: string);
2944
- get ready(): boolean;
2945
- get hasLoadedLogic(): boolean;
2946
- get destroyed(): boolean;
2947
- get logicLoadingPromise(): Promise<void> | null;
2948
- get logic(): ProjectState | null;
2949
- get branch(): IActiveBranchHeadResult | null;
2950
- get projectId(): EntityId;
2951
- get sessionId(): string | null;
2952
- get userAuthorId(): string;
2953
- get peerConnections(): Record<string, IChannelConnections>;
2954
- get test(): ITest | null;
2955
- get localTestValues(): EfimeralValueStore;
2956
- get resolvedValues(): EfimeralValueStore;
2957
- get persistedExecutionResults(): EfimeralValueStore;
2958
- get publication(): PublicationRun | null;
2959
- get execution(): Execution | null;
2960
- get project(): ProjectState;
2961
- get lastExecutionResults(): EfimeralValueStore;
2962
- get undoableStackValueIndex(): number;
2963
- set undoableStackValueIndex(value: number);
2964
- get PROJECT_NOTIFICATIONS_CHANNEL(): string;
2965
- getAccessToken(): Promise<string | null>;
2966
- removeValueByOwnerId(entityId: EntityId): void;
2967
- removeValue(dynamicValue: IDynamicValue): void;
2968
- undo(): Promise<void>;
2969
- redo(): Promise<void>;
2970
- initTest(entryPoint: TestableEntityState, autoExecute: boolean): Promise<ITest>;
2971
- removeTest(): Promise<ITest>;
2972
- copyEntities(entities: CanvasEntityState[]): Promise<ChangeSet>;
2973
- resolveInitialChildrenPositions(parent: CanvasEntityState | null, children: CanvasEntityState[], changeSet: ChangeSet | null): CanvasEntityState[];
2974
- publish(): Promise<void>;
2975
- loadActivePublication(publicationId: string): Promise<IPublication>;
2976
- requestActiveDynamicValue(valueOwner: EntityWithValueState): IDynamicValue | null;
2977
- }
2978
-
2979
3124
  export declare class EfimeralValueStore implements IValueStoreClient {
2980
3125
  initialized: boolean;
2981
3126
  id: string;
@@ -3589,8 +3734,6 @@ export declare class ExplicitInfrastructureResource extends InfrastructureResour
3589
3734
  resolveDeterministicResourceId(): string;
3590
3735
  }
3591
3736
 
3592
- export declare type ExtensionContext = EditorContext | ProjectLogicContext;
3593
-
3594
3737
  export declare class ExtensionContextBase<CT = ExtensionContextType> implements IExtensionContextBase {
3595
3738
  readonly extensionsRegistry: ExtensionsRegistry;
3596
3739
  readonly contextType: CT;
@@ -3655,7 +3798,7 @@ export declare enum ExtensionPermissions {
3655
3798
  UpdateGUIGlobalTheme = "update:gui:global:theme"
3656
3799
  }
3657
3800
 
3658
- export declare class ExtensionsRegistry<TEditorContext extends Omit<IEditorContext, '_editor'> = IEditorContext, TProjectLogicContext extends ProjectLogicContext = ProjectLogicContext> implements Omit<IEventsBus, 'destroy'> {
3801
+ export declare class ExtensionsRegistry<TEditorContext extends Omit<IEditorContext, '_editor'> = IEditorContext, TProjectLogicContext extends DefaultProjectLogicContext = DefaultProjectLogicContext> implements Omit<IEventsBus, 'destroy'> {
3659
3802
  private events;
3660
3803
  private extensionsRegistry;
3661
3804
  onResolveEditorContextCallback: () => TEditorContext | null;
@@ -9568,7 +9711,7 @@ export declare interface IEditor extends IUndoableInterface, IValueResolutionCon
9568
9711
  initRegistry(): Promise<ExtensionsRegistry<any>>;
9569
9712
  }
9570
9713
 
9571
- declare interface IEditorContext extends ExtensionContextBase<ExtensionContextType.Editor>, Omit<IEditor, 'onLogicLoadingComplete' | 'onLogicLoadingCompleteCallback' | 'onProjectHeadLoaded' | 'onProjectHeadLoadedCallback' | 'onProjectSetupError' | 'onProjectSetupErrorCallback' | 'onRenderedCallback' | 'handleIncommingWebsocketMessage' | 'handleNotificationChannelsMessage' | 'handlePersistChangeSetMessage' | 'getLogic' | 'injectLocalImplementationOfSearchExecution' | 'setup' | 'destroy' | 'requestModule' | 'socket' | 'events' | 'initRegistry' | 'extensionsRegistry' | 'on' | 'emit' | 'off' | 'contextType'> {
9714
+ export declare interface IEditorContext extends ExtensionContextBase<ExtensionContextType.Editor>, Omit<IEditor, 'onLogicLoadingComplete' | 'onLogicLoadingCompleteCallback' | 'onProjectHeadLoaded' | 'onProjectHeadLoadedCallback' | 'onProjectSetupError' | 'onProjectSetupErrorCallback' | 'onRenderedCallback' | 'handleIncommingWebsocketMessage' | 'handleNotificationChannelsMessage' | 'handlePersistChangeSetMessage' | 'getLogic' | 'injectLocalImplementationOfSearchExecution' | 'setup' | 'destroy' | 'requestModule' | 'socket' | 'events' | 'initRegistry' | 'extensionsRegistry' | 'on' | 'emit' | 'off' | 'contextType'> {
9572
9715
  }
9573
9716
 
9574
9717
  export declare interface IEntityActionRequestPayload<P extends {
@@ -9646,13 +9789,15 @@ export declare interface IExecutionResult {
9646
9789
  results: IDynamicValue[];
9647
9790
  }
9648
9791
 
9792
+ export declare type IExtensionContext = IEditorContext | IProjectLogicContext;
9793
+
9649
9794
  declare interface IExtensionContextBase extends Omit<IEventsBus, 'destroy'> {
9650
9795
  extensionsRegistry: ExtensionsRegistry;
9651
9796
  }
9652
9797
 
9653
9798
  export declare interface IExtensionModuleCore {
9654
9799
  /** Called once on editor startup */
9655
- init?(contexts: ExtensionContext[]): Promise<void> | void;
9800
+ init?(contexts: DefaultExtensionContext[]): Promise<void> | void;
9656
9801
  /** Cleanup hook */
9657
9802
  destroy?(): Promise<void> | void;
9658
9803
  }
@@ -10792,6 +10937,9 @@ export declare interface IProjectInstanceParentContext extends IProjectStaticPar
10792
10937
  events: Events;
10793
10938
  }
10794
10939
 
10940
+ export declare interface IProjectLogicContext extends ExtensionContextBase<ExtensionContextType.Logic>, IProject {
10941
+ }
10942
+
10795
10943
  export declare interface IProjectReference extends IGenericReference {
10796
10944
  entityType: EntityType.Project;
10797
10945
  }
@@ -12872,149 +13020,6 @@ export declare type ProjectDomain = string;
12872
13020
 
12873
13021
  export declare type ProjectFetchResult = null | IProjectFetchResult;
12874
13022
 
12875
- export declare class ProjectLogicContext extends ExtensionContextBase implements IProject {
12876
- private readonly _project;
12877
- constructor(extensionsRegistry: ExtensionsRegistry, _project: ProjectState);
12878
- readonly id: EntityId;
12879
- get type(): EntityType.Project;
12880
- get name(): string | null;
12881
- get description(): string | null;
12882
- get version(): string;
12883
- get createdAt(): string;
12884
- get previousVersion(): string | null;
12885
- get author(): string;
12886
- get deleted(): boolean;
12887
- get entities(): DefinitionEntityState[];
12888
- get projects(): InstalledProjectState[];
12889
- get functions(): FunctionDeclarationState[];
12890
- get events(): GlobalEventState[];
12891
- get variableDeclarations(): VariableDeclarationState[];
12892
- get variableInstances(): VariableInstanceState[];
12893
- get conditions(): ConditionState[];
12894
- get operations(): OperationState[];
12895
- get functionCalls(): FunctionCallState[];
12896
- get loops(): LoopState[];
12897
- get searches(): SearchState[];
12898
- get primitives(): PrimitiveEntityState[];
12899
- get builtInBaseEntities(): BuiltInBaseEntityState[];
12900
- get operationDeclarations(): ActionDescriptorState[];
12901
- get globalEventActionDescriptors(): ActionDescriptorState[];
12902
- get loopDeclarations(): ActionDescriptorState[];
12903
- get loopDeclarationsBodies(): ActionDescriptorState[];
12904
- get conditionDeclarations(): ActionDescriptorState[];
12905
- get valueDescriptors(): ValueDescriptorState[];
12906
- get dataTypes(): DataTypeState[];
12907
- get errors(): EntityError[];
12908
- get history(): ChangeSet[];
12909
- get undoableStackValueIndex(): number;
12910
- get knownVersions(): Map<string, EntityState> | null;
12911
- get activeVersion(): boolean;
12912
- get initialized(): boolean;
12913
- get startedInitialization(): boolean;
12914
- closePendingChangeSets(): Promise<void>;
12915
- closeChangeSet(changeSet: ChangeSet): Promise<void>;
12916
- toLatestChangeSet(author: string, timestamp: string, // ISO 8601 format
12917
- self: UserManagedEntityState | null, autoclose?: boolean, autoCloseActionName?: string): ChangeSet;
12918
- addChangeSet(changeSet: ChangeSet): ChangeSet;
12919
- discardChangeSet(changeSet: ChangeSet | null): ProjectState;
12920
- subscribeDependents(dependencies: {
12921
- entity: UserManagedEntityState;
12922
- field: string;
12923
- }[]): UserManagedEntityState;
12924
- unsubscribeDependents(dependencies: {
12925
- entity: UserManagedEntityState;
12926
- field: string;
12927
- }[]): UserManagedEntityState;
12928
- syncDependents(changeSet?: ChangeSet | null): IChangeSet<UserManagedEntityState>;
12929
- onDetachedDependencyRemoved(_dependency: UserManagedEntityState, _field: string, _changeSet: ChangeSet | null): IChangeSet<UserManagedEntityState>;
12930
- onDetachedDependencyRestored(_dependency: UserManagedEntityState, _field: string, _changeSet: ChangeSet | null): IChangeSet<UserManagedEntityState>;
12931
- increaseVersion(sharedTimestamp: null | string): UserManagedEntityState;
12932
- captureVersion(): ProjectState;
12933
- restoreVersion(versionId: EntityVersion): Promise<IChangeSet<ProjectState>>;
12934
- updateWithShallowTransfer(transfer: IProjectShallowTransfer, changeSet?: ChangeSet | null): ProjectState;
12935
- hydrateAncestors(): IChangeSet<ProjectState>;
12936
- afterAllChildrenInitialized(changeSet?: ChangeSet | null): IChangeSet<ProjectState>;
12937
- addSelfToProject(_changeSet: ChangeSet | null): IChangeSet<ProjectState>;
12938
- get instancesList(): EntityState[];
12939
- isOperationDeclaration(entity: ActionDescriptorState): boolean;
12940
- isGlobalEventActionDescriptor(entity: ActionDescriptorState): boolean;
12941
- isLoopDeclaration(entity: ActionDescriptorState): boolean;
12942
- isConditionDeclaration(entity: ActionDescriptorState): boolean;
12943
- findSubscribedBuiltInInstance(entity: Element_2 | ElementTransfer): EntityState | null;
12944
- get(entityId: EntityId): EntityState | null;
12945
- getDeleted(entityId: EntityId): EntityState | null;
12946
- getManaged(entityId: EntityId): EntityState | null;
12947
- getBuiltIn(entityId: EntityId): EntityState | null;
12948
- findSubscribedInstanceFromReference(entity: Reference): EntityState | null;
12949
- findSubscribedBuiltInInstanceFromReference(entity: Reference): EntityState | null;
12950
- metaSync(data: Partial<IProject_meta | IProject | IProjectTransfer | IProjectShallowTransfer>, changeSet?: ChangeSet | null): ProjectState;
12951
- getAllBuiltInIds(): EntityId[];
12952
- getAllBuiltIn(): EntityState[];
12953
- toFlat(seenEntities?: Set<EntityId>): EntityState[];
12954
- toFlatIds(seenEntities?: Set<EntityId>): EntityId[];
12955
- toMeta(): IProject_meta;
12956
- toJSON(seenEntities?: Set<EntityId>): IProjectTransfer | IProjectReference;
12957
- toJSONClone(options?: IEntityJSONCloneOptions): IProjectTransfer;
12958
- toReference(options?: IEntityRecursionOptions): IProjectReference;
12959
- toShallowJSON(options?: IEntityRecursionOptions): IProjectShallowTransfer;
12960
- toFlatJSON(seenEntities?: Set<EntityId>): ElementShallowTransfer[];
12961
- toGenerationTarget(): IProjectGenerationTarget;
12962
- toFlatGenerationTarget(seenEntities?: Set<EntityId>): ElementGenerationTarget[];
12963
- clearErrors(): ProjectState;
12964
- validate(): {
12965
- success: boolean;
12966
- error: ZodError | null;
12967
- data: IProjectTransfer | null;
12968
- };
12969
- validateChildren(): void;
12970
- getErrors(): EntityError[];
12971
- getShallowErrors(): EntityError[];
12972
- getDefinitionEntity(id: EntityId): DefinitionEntityState | null;
12973
- addDefinitionEntity(entity: DefinitionEntityState): DefinitionEntityState;
12974
- addFunctionDeclaration(func: FunctionDeclarationState): FunctionDeclarationState;
12975
- addFunctionCall(func: FunctionCallState): FunctionCallState;
12976
- addVariableDeclaration(variable: VariableDeclarationState): VariableDeclarationState;
12977
- addVariableInstance(variable: VariableInstanceState): VariableInstanceState;
12978
- addInstalledProject(project: InstalledProjectState): ProjectState;
12979
- addGlobalEvent(event: GlobalEventState): ProjectState;
12980
- addCondition(condition: ConditionState): ProjectState;
12981
- addOperation(operation: OperationState): ProjectState;
12982
- addLoop(loop: LoopState): ProjectState;
12983
- addSearch(search: SearchState): ProjectState;
12984
- removeDefinitionEntity(entity: IDefinitionEntity): DefinitionEntityState | null;
12985
- removeCondition(condition: ICondition): ConditionState | null;
12986
- removeOperation(operation: IOperation): OperationState | null;
12987
- removeLoop(loop: ILoop): LoopState | null;
12988
- removeSearch(search: ISearch): SearchState | null;
12989
- removeFunctionCall(funcCall: IFunctionCall): FunctionCallState | null;
12990
- removeVariableInstance(variable: IVariableInstance): VariableInstanceState | null;
12991
- removeVariableDeclaration(variable: IVariableDeclaration): VariableDeclarationState | null;
12992
- removeFunctionDeclaration(func: IFunctionDeclaration): FunctionDeclarationState | null;
12993
- removeInstalledProject(project: IInstalledProject): InstalledProjectState | null;
12994
- removeGlobalEvent(event: IGlobalEvent): GlobalEventState | null;
12995
- removeTopLevelVariableDeclaration(variable: VariableDeclarationState): VariableDeclarationState | null;
12996
- getEntryPoints(): EntryPointEntityState[];
12997
- getTerminationStatements(): TerminationState[];
12998
- getFunctionDeclaration(id: EntityId): FunctionDeclarationState | null;
12999
- getConditions(): ConditionState[];
13000
- getOperations(): OperationState[];
13001
- getVariables(): VariableState[];
13002
- getVariableInstances(): VariableInstanceState[];
13003
- getVariableDeclarations(): VariableDeclarationState[];
13004
- getLoops(): LoopState[];
13005
- getSearches(): SearchState[];
13006
- getBuiltInPersistedEntity(): BuiltInBaseEntityState | null;
13007
- requestActiveDynamicValue(valueOwner: EntityWithValueState): IDynamicValue | null;
13008
- undo(): IProjectVersionTransitionConfig;
13009
- redo(): IProjectVersionTransitionConfig;
13010
- applyExternalChangeSet(request: PersistChangeSetEntityActionRequestPayload): ChangeSet;
13011
- toFullProjectTransfer(): {
13012
- order: EntityId[];
13013
- size: number;
13014
- record: Record<EntityId, UserManagedElementShallowTransfer>;
13015
- };
13016
- }
13017
-
13018
13023
  export declare type ProjectPayloadUnion = ProjectState | ProjectTypesUnion;
13019
13024
 
13020
13025
  export declare const projectPublicationCompletedGlobalEvent: IActionDescriptorTransfer;
@@ -14795,7 +14800,7 @@ export declare type TestableEntityState = ExecutableEntityState;
14795
14800
 
14796
14801
  export declare function toCamelCase(str: string): string;
14797
14802
 
14798
- export declare function toEditorContext(extensionsRegistry: ExtensionsRegistry, editor: IEditor): EditorContext;
14803
+ export declare function toEditorContext(extensionsRegistry: ExtensionsRegistry, editor: IEditor): DefaultEditorContext;
14799
14804
 
14800
14805
  export declare function toEntityState(entity: string | EntityState | IGenericReference | Element_2 | ElementTransfer | ElementShallowTransfer | ElementGenerationTarget, project: ProjectState): EntityState | null;
14801
14806
 
@@ -14805,7 +14810,7 @@ export declare function toLowerCaseKebabCase(str: string): string;
14805
14810
 
14806
14811
  export declare function toPascalCase(str: string): string;
14807
14812
 
14808
- export declare function toProjectLogicContext(extensionsRegistry: ExtensionsRegistry, project: ProjectState): ProjectLogicContext;
14813
+ export declare function toProjectLogicContext(extensionsRegistry: ExtensionsRegistry, project: ProjectState): DefaultProjectLogicContext;
14809
14814
 
14810
14815
  export declare function transitionProjectVersion(from: ChangeSet | 'initial', to: ChangeSet | 'initial', project: ProjectState): IProjectVersionTransitionConfig;
14811
14816
 
package/dist/index.js CHANGED
@@ -111694,6 +111694,8 @@ export {
111694
111694
  x4 as DataTypeDependencyField,
111695
111695
  Ti as DataTypeParentChildRelation,
111696
111696
  Cs as DataTypeState,
111697
+ wP as DefaultEditorContext,
111698
+ AP as DefaultProjectLogicContext,
111697
111699
  jI as DefinitionEntityDependencyField,
111698
111700
  wa as DefinitionEntityState,
111699
111701
  be as DynamicValueTypes,
@@ -111716,7 +111718,6 @@ export {
111716
111718
  Yd as EVENT_TYPES,
111717
111719
  l_t as EXECUTABLE_TYPES,
111718
111720
  X9e as EXECUTION_OPERATIONS,
111719
- wP as EditorContext,
111720
111721
  oy as EfimeralValueStore,
111721
111722
  JRt as EndpointEntity,
111722
111723
  dr as EntityError,
@@ -111796,7 +111797,6 @@ export {
111796
111797
  SRt as PersistedEntity,
111797
111798
  ds as PrimitiveEntityState,
111798
111799
  X as PrimitiveTypes,
111799
- AP as ProjectLogicContext,
111800
111800
  P as ProjectState,
111801
111801
  Lr as ProjectStateEvents,
111802
111802
  hRt as PropertyDependencyField,
@@ -406,4 +406,4 @@ ${hm}`,issue:null})),{errors:a,modifiedData:i}}onProjectInitialized(i,a=this.pro
406
406
  You can inspect the existing 'entity' field with the 'describe_entity' action. Like so:
407
407
  ${Yn({describe_entity:T.entity.id})}
408
408
  Alternatively you can update the parent data-type entity with 'update' action to remove the existing value of the field.`,issue:null}))}return{errors:p,modifiedData:l}}get interactive(){return this.implements.length?this.implements.every(i=>i.interactive):!0}get allMethods(){return R([...this.ownDeclaredMethods,...this.allBaseMethodsFromOriginalParents])}get allProperties(){return R([...this.ownDeclaredProperties,...this.allBasePropertiesFromOriginalParents])}get allBaseMethodsFromOriginalParents(){return R([...this.extends.flatMap(i=>i.allMethods,[]),...this.implements.flatMap(i=>i.allMethods,[])])}get allBasePropertiesFromOriginalParents(){return R([...this.extends.flatMap(i=>i.allProperties,[]),...this.implements.flatMap(i=>i.allProperties,[])])}get allBasePropertiesFromExtendedAndImplementedEntities(){return R([...this.extends.reduce((i,a)=>[...[...a.ownDeclaredProperties,...a.allBasePropertiesFromExtendedAndImplementedEntities].filter(p=>!p.abstract),...i],[]),...this.implements.reduce((i,a)=>[...[...a.ownDeclaredProperties,...a.allBasePropertiesFromExtendedAndImplementedEntities].filter(p=>!p.abstract),...i],[])])}get allBaseMethodsFromExtendedAndImplementedEntities(){return R([...this.extends.reduce((i,a)=>a.type!==f.DefinitionEntity?[]:[...[...a.ownDeclaredMethods,...a.allBaseMethodsFromExtendedAndImplementedEntities].filter(p=>p.type!==f.ActionDescriptor),...i],[]),...this.implements.reduce((i,a)=>a.type!==f.DefinitionEntity?a.abstractMethods:[...[...a.ownDeclaredMethods,...a.allBaseMethodsFromExtendedAndImplementedEntities].filter(p=>p.type!==f.ActionDescriptor),...i],[])])}get extendedPropertiesFromOriginalParents(){return R(this.extends.reduce((i,a)=>{const l=[...a.ownDeclaredProperties,...a.extendedPropertiesFromOriginalParents].filter(p=>!p.abstract);return[...i,...l]},[]))}get implementedPropertiesFromOriginalParents(){return R([...this.extends.reduce((i,a)=>{const l=a.implementedPropertiesFromOriginalParents,p=[...a.ownDeclaredProperties].filter(e=>!!e.abstract&&!l.find(y=>y.name===e.name));return[...l,...p,...i]},[]),...this.implements.reduce((i,a)=>{const l=a.implementedPropertiesFromOriginalParents,p=[...a.ownDeclaredProperties].filter(e=>!!e.abstract&&!l.find(y=>y.name===e.name));return[...l,...p,...i]},[])].filter(i=>!!i.abstract))}get extendedMethodsFromOriginalParents(){return R(this.extends.reduce((i,a)=>{if(a.type!==f.DefinitionEntity)return[];const l=[...a.ownDeclaredMethods,...a.extendedMethodsFromOriginalParents].filter(p=>p.type!==f.ActionDescriptor);return[...i,...l]},[]))}get implementedMethodsFromOriginalParents(){return R([...this.extends.reduce((i,a)=>{const l=a.type===f.DefinitionEntity?a.methods:[],p=[...a.abstractMethods].filter(e=>!l.find(y=>y.name===e.name));return[...l,...p,...i]},[]),...this.implements.reduce((i,a)=>[...a.abstractMethods,...i],[])].filter(i=>i.type===f.ActionDescriptor))}get extendedProperties(){return this.properties.filter(i=>i.isExtendedProperty)}get ownDeclaredProperties(){return this.properties.filter(i=>!i.isExtendedProperty)}get extendedMethods(){return this.methods.filter(i=>i.isExtendedMethod)}get ownDeclaredMethods(){return this.methods.filter(i=>!i.isExtendedMethod)}validateGeneratedUpdate(i){const a=[];return i.parent&&a.push(new ee({id:`${this.id}--${k.InvalidParentUpdate}`,code:k.InvalidParentUpdate,severity:q.Error,message:`Entity of type '${this.type}' with id '${this.id}' cannot have the 'parent' property updated. The 'parent' on an '${this.type}', must be the root project as it is a globally declared entity.`,issue:null})),{errors:a,modifiedData:i}}subscribeDependents(i){return i.forEach(a=>{this.detachedDependents[a.entity.id]||(this.detachedDependents[a.entity.id]=a)}),this}unsubscribeDependents(i){return i.forEach(a=>{this.detachedDependents[a.entity.id]&&delete this.detachedDependents[a.entity.id]}),this}syncDependents(i=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"sync-dependents"))){const a=[],l=[],p=[],e=[];return Object.values(this.detachedDependents).forEach(y=>{const v=y.entity.afterAllChildrenInitialized(i);a.push(...v.updated),l.push(...v.added),p.push(...v.removed),e.push(...v.affected)}),i==null||i.attemptAutoclose("sync-dependents",this.id),{updated:R(a),added:R(l),removed:R(p),affected:R(e),self:this}}onDetachedDependencyRemoved(i,a,l){const p=[],e=[],y=[],v=[];return a==="implements"&&this.removeImplementation(i),a==="extends"&&this.removeExtension(i),{updated:R(p),added:R(e),removed:R(y),affected:R(v),self:this}}onDetachedDependencyRestored(i,a,l){const p=[],e=[],y=[],v=[];return a==="implements"&&this.addImplementation(i),a==="extends"&&this.addExtension(i),{updated:R(p),added:R(e),removed:R(y),affected:R(v),self:this}}unsubscribeFromDependencies(){return this.implements.forEach(i=>{os.includes(i.type)||i.unsubscribeDependents([{entity:this,field:"implements"}])}),this}subscribeToDependencies(){return this.implements.forEach(i=>{os.includes(i.type)||i.subscribeDependents([{entity:this,field:"implements"}])}),this.extends.forEach(i=>{os.includes(i.type)||i.subscribeDependents([{entity:this,field:"extends"}])}),this}increaseVersion(i){if(i&&!L(i).isValid())throw new Error(`The shared timestamp '${i}' is not a valid ISO 8601 date string.`);return i&&L(i).isSame(L(this.createdAt))?this:(this.previousVersion=this.version,this.version=N.UUID.uuid(),this.createdAt=L(i).toISOString()||L().toISOString(),this)}captureVersion(){var a;const i=((a=this.knownVersions)==null?void 0:a.get(this.version))||new qt(this,this.project);return i.metaSync(this.toMeta(),null),this.knownVersions=this.knownVersions?this.knownVersions.set(this.version,i):new Map([[this.version,i]]),i.properties=[...this.properties],i.methods=[...this.methods],i.abstractMethods=[...this.abstractMethods],i.extends=[...this.extends],i.implements=[...this.implements],i.parent=this.parent,this}recursiveCaptureUpstreamVersions(i){const a=[],l=[],p=[],e=[];if(this.parent){this.parent.increaseVersion(i);const y=this.parent.recursiveCaptureUpstreamVersions(i);a.push(this.parent,...y.updated),l.push(...y.added),p.push(...y.removed)}return{updated:R(a),added:R(l),removed:R(p),affected:R(e),self:this}}async restoreVersion(i){var v;const a=[],l=[],p=[],e=[];if(this.version===i)return{updated:R(a),added:R(l),removed:R(p),affected:R(e),self:this};if(!this.knownVersions){const T=new Map;for(const[w,A]of this.knownVersions||new Map){if(T.set(w,A),A.activeVersion=!1,A.knownVersions)for(const[P,V]of A.knownVersions)T.set(P,V);A.knownVersions=null}}let y=(v=this.knownVersions)==null?void 0:v.get(i);if(!y){const T=await this.APILoadVersion({},i);if(!T)throw new Error(`Version with id '${i}' for entity with id '${this.id}' not found.`);y=new qt(T,this.project)}return this.metaSync(y.toShallowJSON(),null),this.previousVersion=y.previousVersion,this.version=y.version,this.createdAt=y.createdAt,this.author=y.author,this.deleted=y.deleted,this.properties=y.properties,this.methods=y.methods,this.abstractMethods=y.abstractMethods,this.extends=y.extends,this.implements=y.implements,this.parent=y.parent,{updated:R(a),added:R(l),removed:R(p),affected:R(e),self:this}}updateWithShallowTransfer(i,a=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"update-with-shallow-transfer"))){if(this.metaSync(i,a),this.version=i.version,this.createdAt=i.createdAt,this.author=i.author,this.deleted=i.deleted,this.previousVersion=i.previousVersion,this.unsubscribeFromDependencies(),i.parent){const l=Z(i.parent),p=this.project.get(l),e=this.parent;if(e&&e.id!==(p==null?void 0:p.id)&&this.removeFromParent(a),p)this.setParent(p,a);else throw a==null||a.attemptAutoclose("update-with-shallow-transfer",this.id),new Error(`${this.type} with id '${this.id}' has a 'parent' reference '${l}' that isn't found in the project`)}else throw a==null||a.attemptAutoclose("update-with-shallow-transfer",this.id),new Error(`${this.type} with id '${this.id}' must have a 'parent'`);return i.extends.forEach(l=>{const p=Z(l),e=this.project.get(p);e&&this.addExtension(e)}),i.implements.forEach(l=>{const p=Z(l),e=this.project.get(p);e&&this.addImplementation(e)}),this.captureVersion(),this.subscribeToDependencies(),a==null||a.attemptAutoclose("update-with-shallow-transfer",this.id),this}hydrateAncestors(){const i=[],a=[],l=[],p=[];if(this.initialData.parent){const e=Z(this.initialData.parent),y=this.project.get(e);if(y)this.setParent(y,null),i.push(y);else throw new Error(`${this.type} with id '${this.id}' has a 'parent' reference '${e}' that isn't found in the project`)}else throw new Error(`${this.type} with id '${this.id}' must have a 'parent'`);return this.initialData.extends.forEach(e=>{const y=Z(e),v=this.project.get(y);v&&(this.addExtension(v),v.type!==f.BuiltInBaseEntity&&i.push(v))}),this.initialData.implements.forEach(e=>{const y=Z(e),v=this.project.get(y);v&&(this.addImplementation(v),v.type!==f.BuiltInBaseEntity&&i.push(v))}),{updated:R(i),added:R(a),removed:R(l),affected:R(p),self:this}}afterAllChildrenInitialized(i=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"after-all-children-initialized"))){const a=[],l=[],p=[],e=[];this.initialized=!0;const{updated:y,added:v,removed:T,affected:w}=this.syncImplementationProperties(i);a.push(...y),l.push(...v),p.push(...T),e.push(...w);const{updated:A,added:P,removed:V,affected:U}=this.addExtendedProperties(i);a.push(...A),l.push(...P),p.push(...V),e.push(...U);const{updated:G,added:K,removed:J}=this.removeUnrecognizedProperties(i);a.push(...G),l.push(...K),p.push(...J);const{updated:ie,added:X,removed:ce,affected:re}=this.syncImplementationMethods(i);a.push(...ie),l.push(...X),p.push(...ce),e.push(...re);const{updated:he,added:Y,removed:H,affected:pe}=this.addExtendedMethods(i);a.push(...he),l.push(...Y),p.push(...H),e.push(...pe);const{updated:z,added:oe,removed:we}=this.removeUnrecognizedMethods(i);return a.push(...z),l.push(...oe),p.push(...we),this.addSuggestions(),this.captureVersion(),i==null||i.attemptAutoclose("after-all-children-initialized",this.id),{updated:R(a),added:R(l),removed:R(p),affected:R(e),self:this}}addSelfToProject(i=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"add-self-to-project"))){const a=[this],l=[],p=[],e=[];if(this.parent.type===f.DataType){const y=this.parent;y.entity=this,a.push(y)}else this.project.addDefinitionEntity(this);return this.subscribe(),this.subscribeToDependencies(),i==null||i.attemptAutoclose("add-self-to-project",this.id),{updated:R(a),added:R(l),removed:R(p),affected:R(e),self:this}}setParent(i,a=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"set-parent"))){var l;return((l=this.parent)==null?void 0:l.id)!==(i==null?void 0:i.id)&&(this.parent=i,a&&(a==null||a.add(this,S.Updated))),a==null||a.attemptAutoclose("set-parent",this.id),this}addExtension(i){return this.extends.includes(i)||this.extends.push(i),this}removeExtension(i){return this.extends=this.extends.filter(a=>a.id!==i.id),this}addImplementation(i){return this.implements.includes(i)||this.implements.push(i),this}removeImplementation(i){return this.implements=this.implements.filter(a=>a.id!==i.id),this}removeProperty(i){return this.properties=this.properties.filter(a=>a.id!==i.id),this}addMethod(i){return this.methods.includes(i)||(this.methods.push(i),this.suggestedMethods=this.suggestedMethods.filter(a=>a.name!==i.name)),this}removeMethod(i){return this.methods=this.methods.filter(a=>a.id!==i.id),this}addProperty(i){return this.properties.includes(i)||(this.properties.push(i),this.suggestedProperties=this.suggestedProperties.filter(a=>a.name!==i.name)),this}addSuggestedProperty(i){return this.suggestedProperties.includes(i)||this.suggestedProperties.push(i),this}addSuggestedMethod(i){return this.suggestedMethods.includes(i)||this.suggestedMethods.push(i),this}removeSuggestedProperty(i){return this.suggestedProperties=this.suggestedProperties.filter(a=>a.id!==i.id),this}removeSuggestedMethod(i){return this.suggestedMethods=this.suggestedMethods.filter(a=>a.id!==i.id),this}addAbstractMethod(i){return this.abstractMethods.includes(i)||this.abstractMethods.push(i),this}removeAbstractMethod(i){return this.abstractMethods=this.abstractMethods.filter(a=>a.id!==i.id),this}initChildren(i=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"init-children"))){return this.initialized||this.startedInitialization?this:(this.startedInitialization=!0,this.properties=this.initialData.properties.map(a=>{const l=te(a,this.project);return l.setParent(this,null),l.initChildren(i),l}),this.methods=this.initialData.methods.map(a=>{const l=te(a,this.project);return l.setParent(this,null),l.initChildren(i),l}),this.abstractMethods=this.initialData.abstractMethods.map(a=>{const l=te(a,this.project);return l.setParent(this,null),l.initChildren(i),l}),this.extends=this.initialData.extends.map(a=>te(a,this.project)),this.implements=this.initialData.implements.map(a=>te(a,this.project)),this.subscribeToDependencies(),this.afterAllChildrenInitialized(i),i==null||i.attemptAutoclose("init-children",this.id),this)}removeUnrecognizedProperties(i=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"remove-unrecognized-properties"))){const a=[],l=[],p=[],e=[];let y=[...this.properties];y=y.filter(T=>T.parent.id===this.id),y=y.filter(T=>!T.isExtendedProperty);const v=this.implementedPropertiesFromOriginalParents;return y=y.filter(T=>this.interactive&&!T.implements?!1:!v.find(w=>{var A;return w.id===((A=T.implements)==null?void 0:A.id)})),y.forEach(T=>{const w=T.remove({ignoreUpstream:!1},i);p.push(...w.removed),a.push(...w.updated)}),i==null||i.attemptAutoclose("remove-unrecognized-properties",this.id),{updated:R(a),added:R(l),removed:R(p),affected:R(e),self:this}}removeUnrecognizedMethods(i=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"remove-unrecognized-methods"))){const a=[],l=[],p=[],e=[];let y=[...this.methods];y=y.filter(T=>T.parent.id===this.id),y=y.filter(T=>!T.isExtendedMethod);const v=this.implementedMethodsFromOriginalParents;return y=y.filter(T=>this.interactive&&!T.implements?!1:!v.find(w=>{var A;return w.id===((A=T.implements)==null?void 0:A.id)})),y.forEach(T=>{const w=T.remove({ignoreUpstream:!1},i);p.push(...w.removed),a.push(...w.updated)}),i==null||i.attemptAutoclose("remove-unrecognized-methods",this.id),{updated:R(a),added:R(l),removed:R(p),affected:R(e),self:this}}syncImplementationMethods(i=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"sync-implementation-methods"))){const a=[],l=[],p=[],e=[],y=this.methods,v=this.implementedMethodsFromOriginalParents,T=[...this.allBaseMethodsFromExtendedAndImplementedEntities,...y];return v.filter(A=>!T.find(V=>{var U;return((U=V.implements)==null?void 0:U.id)===A.id})).forEach(A=>{if(this.methods.find(G=>{var K;return((K=G.implements)==null?void 0:K.id)===A.id}))return;const V=this.methods.find(G=>{var ce,re;if(G.name===A.name&&!G.implements)return!0;const K=vs(this,Be.CRON_JOB),J=vs(this,Be.HTTP_ENDPOINT),ie=((ce=G.implements)==null?void 0:ce.id)===Te["built-in-base-entity"].BUILT_IN_HTTP_ENDPOINT_ENTITY.methods.handler.id,X=((re=G.implements)==null?void 0:re.id)===Te["built-in-base-entity"].BUILT_IN_CRON_JOB_ENTITY.methods.handler.id;return!!(K&&!X&&!J&&ie||J&&!ie&&!K&&X)});if(V&&V.type===f.FunctionDeclaration){V.setImplements(A,i),V.metaSync({name:A.name},i),i==null||i.add(V,S.Updated),i==null||i.add(this,S.Updated);return}const U=A.implementAsFunctionDeclaration(i,this);l.push(U),i==null||i.add(U,S.Added),this.addMethod(U)}),i==null||i.attemptAutoclose("sync-implementation-methods",this.id),{updated:R(a),added:R(l),removed:R(p),affected:R(e),self:this}}syncImplementationProperties(i=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"sync-implementation-properties"))){const a=[],l=[],p=[],e=[],y=this.properties,v=this.implementedPropertiesFromOriginalParents,T=[...this.allBasePropertiesFromExtendedAndImplementedEntities,...y];return v.filter(A=>!T.find(V=>{var U;return((U=V.implements)==null?void 0:U.id)===A.id})).forEach(A=>{if(this.properties.find(G=>{var K;return((K=G.implements)==null?void 0:K.id)===A.id}))return;const V=this.properties.find(G=>G.name===A.name&&!!G.abstract&&!G.implements);if(V){V.setImplements(A,i),V.metaSync({abstract:!1},i),V.afterAllChildrenInitialized(i);return}const U=A.implement(this,i,N.UUID.uuid());l.push(U),i==null||i.add(U,S.Added)}),i==null||i.attemptAutoclose("sync-implementation-properties",this.id),{updated:R(a),added:R(l),removed:R(p),affected:R(e),self:this}}addExtendedMethods(i=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"add-extended-methods"))){const a=[],l=[],p=[],e=[],y=this.methods,T=this.extendedMethodsFromOriginalParents.filter(A=>A.type===f.FunctionDeclaration),w=new Set(y.filter(A=>{var P;return!!((P=A.extends)!=null&&P.id)}).map(A=>A.extends.id));return T.forEach(A=>{if(w.has(A.id))return;w.add(A.id);const P=A.clone(i,this,N.UUID.uuid());P.setExtends(A,i),P.initChildren(i),l.push(P),i==null||i.add(P,S.Added),this.addMethod(P)}),i==null||i.attemptAutoclose("add-extended-methods",this.id),{updated:R(a),added:R(l),removed:R(p),affected:R(e),self:this}}addExtendedProperties(i=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"add-extended-properties"))){const a=[],l=[],p=[],e=[],y=this.properties,v=this.extendedPropertiesFromOriginalParents,T=v.filter(A=>v.find(V=>{var U;return((U=V.implements)==null?void 0:U.id)===A.id})?!1:!A.abstract),w=new Set(y.filter(A=>{var P;return!!((P=A.extends)!=null&&P.id)}).map(A=>A.extends.id));return T.forEach(A=>{if(w.has(A.id))return;w.add(A.id);const P=A.clone(i,this,N.UUID.uuid());P.setExtends(A,i),P.initChildren(i),l.push(P),i==null||i.add(P,S.Added),this.addProperty(P)}),i==null||i.attemptAutoclose("add-extended-properties",this.id),{updated:R(a),added:R(l),removed:R(p),affected:R(e),self:this}}addSuggestions(){return this.implements.forEach(i=>{VS(this,i).forEach(p=>{const e=p.toJSON();e.id=`_suggestion--parent--${this.id}--${p.id}`;const y=te(e,this.project);y.suggestion=!0,y.setParent(this,null),y.initChildren(null),this.addSuggestedProperty(y)}),LS(this,i).forEach(p=>{const e=`_suggestion--parent--${this.id}--${p.id}`,y=p.implementAsFunctionDeclaration(null,this,e),v=te(y,this.project);if(v.suggestion=!0,v.setParent(this,null),v.initChildren(null),this.methods=this.methods.filter(T=>T.id!==e),v.inputs.forEach(T=>{T.suggestion=!0}),v.returnStatements.length){const T=v.returnStatements[0];T.suggestion=!0,T.outputs.forEach(w=>{w.suggestion=!0})}this.addSuggestedMethod(v)})}),this}subscribe(){return this.activeVersion=!0,this.project.subscribeInstance(this),this}unsubscribe(){return this.project.unsubscribeInstance(this),this}metaSync(i,a=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"meta-sync"))){const l=Ur(this,i),p=this.toMeta();return this.name=i.name!==void 0?i.name:p.name,this.codeName=i.codeName!==void 0?i.codeName:p.codeName,this.description=i.description!==void 0?i.description:p.description,this.x=i.x||p.x,this.y=i.y||p.y,this.static=i.static!==void 0?i.static:this.static,this.abstract=i.abstract!==void 0?i.abstract:this.abstract,super.metaSync(i),i.deleted===!0&&!p.deleted?a==null||a.add(this,S.Removed):i.deleted===!1&&p.deleted?a==null||a.add(this,S.Added):l&&(a==null||a.add(this,S.Updated)),a==null||a.attemptAutoclose("meta-sync",this.id),this}async APILoad(i=Ee,...a){return await qt.repository.APILoad(this.id,...a),this}async APICreate(i=Ee,...a){return await qt.repository.APICreate(this.toShallowJSON(),...a),this}async APIUpdate(i=Ee,...a){return await qt.repository.APIUpdate(this.toShallowJSON(),...a),this}async APIDelete(i=Ee,...a){return await qt.repository.APIDelete(this.toShallowJSON(),...a),this}async APIClone(i=Ee,...a){return await qt.repository.APIClone(this.id,...a),this}async APILoadVersion(i=Ee,a,...l){return await qt.repository.APILoadVersion(this.id,a,...l)}removeFromParent(i=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"remove-from-parent"))){const a=[],l=[],p=[],e=[];if(this.parent.type===f.Project)this.parent.removeDefinitionEntity(this);else if(this.parent.type===f.DataType&&this.parent.entity&&this.parent.entity.id===this.id){const y=this.parent.setEntity(null,i);a.push(y)}return i==null||i.attemptAutoclose("remove-from-parent",this.id),{added:R(p),updated:R(a),removed:R(l),affected:R(e),self:this}}remove({ignoreUpstream:i}={ignoreUpstream:!1},a=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"remove-entity"))){const l=[],p=[],e=[],y=[];if(a!=null&&a.hasRemoved(this.id))return a==null||a.attemptAutoclose("remove-entity",this.id),{added:[],updated:[],removed:[],affected:[],self:this};if(p.push(this),this.unsubscribe(),this.unsubscribeFromDependencies(),this.project.subscribeDeletedInstance(this),this.metaSync({deleted:!0},a),Object.values(this.detachedDependents).forEach(v=>{const{updated:T,removed:w,added:A}=v.entity.onDetachedDependencyRemoved(this,v.field,a);l.push(...T),p.push(...w),e.push(...A)}),this.properties.forEach(v=>{const{updated:T,removed:w}=v.remove({ignoreUpstream:!0},a);l.push(...T),p.push(...w)}),this.methods.forEach(v=>{const{updated:T,removed:w}=v.remove({ignoreUpstream:!0},a);l.push(...T),p.push(...w)}),this.abstractMethods.forEach(v=>{const{updated:T,removed:w}=v.remove({ignoreUpstream:!0},a);l.push(...T),p.push(...w)}),this.suggestedProperties.forEach(v=>{const{updated:T,removed:w}=v.remove({ignoreUpstream:!0},a);l.push(...T),p.push(...w)}),this.suggestedMethods.forEach(v=>{const{updated:T,removed:w}=v.remove({ignoreUpstream:!0},a);l.push(...T),p.push(...w)}),!i){const v=this.removeFromParent(a);e.push(...v.added),l.push(...v.updated),p.push(...v.removed),y.push(...v.affected)}return a==null||a.attemptAutoclose("remove-entity",this.id),{added:R(e),updated:R(l),removed:R(p),affected:R(y),self:this}}restore({}={},i=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"restore-entity"))){const a=[],l=[],p=[],e=[];return i!=null&&i.hasAdded(this.id)?(i==null||i.attemptAutoclose("restore-entity",this.id),{added:[],updated:[],removed:[],affected:[],self:this}):(this.subscribe(),this.project.unsubscribeDeletedInstance(this),this.metaSync({deleted:!1},i),Object.values(this.detachedDependents).forEach(y=>{const{updated:v,removed:T,added:w}=y.entity.onDetachedDependencyRestored(this,y.field,i);l.push(...v),p.push(...T),a.push(...w)}),this.properties.forEach(y=>{const{updated:v}=y.restore({},i);l.push(...v)}),this.methods.forEach(y=>{const{updated:v}=y.restore({},i);l.push(...v)}),this.abstractMethods.forEach(y=>{const{updated:v}=y.restore({},i);l.push(...v)}),this.suggestedProperties.forEach(y=>{const{updated:v}=y.restore({},i);l.push(...v)}),this.suggestedMethods.forEach(y=>{const{updated:v}=y.restore({},i);l.push(...v)}),i==null||i.attemptAutoclose("restore-entity",this.id),{added:R(a),updated:R(l),removed:R(p),affected:R(e),self:this})}toFlat(i=new Set){return i.has(this.id)?[]:(i.add(this.id),[this,...this.extends.flatMap(l=>l.toFlat(i)),...this.implements.flatMap(l=>l.toFlat(i)),...this.properties.flatMap(l=>l.toFlat(i)),...this.methods.flatMap(l=>l.toFlat(i)),...this.abstractMethods.flatMap(l=>l.toFlat(i)),...this.parent.toFlat(i)])}toFlatIds(i=new Set){return i.has(this.id)?[]:(i.add(this.id),[this.id,...this.extends.flatMap(l=>l.toFlatIds(i)),...this.implements.flatMap(l=>l.toFlatIds(i)),...this.properties.flatMap(l=>l.toFlatIds(i)),...this.methods.flatMap(l=>l.toFlatIds(i)),...this.abstractMethods.flatMap(l=>l.toFlatIds(i)),...this.parent.toFlatIds(i)])}toMeta(){return{id:this.id,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,codeName:this.codeName,description:this.description,static:this.static,abstract:this.abstract,x:this.x,y:this.y,type:this.type,name:this.name}}toJSON(i=new Set){return i.has(this.id)?this.toReference():(i.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,codeName:this.codeName,description:this.description,x:this.x,y:this.y,static:this.static,abstract:this.abstract,properties:this.properties.map(a=>a.toJSON(i)),methods:this.methods.map(a=>a.toJSON(i)),abstractMethods:this.abstractMethods.map(a=>a.toJSON(i)),implements:this.implements.map(a=>a.toJSON(i)),extends:this.extends.map(a=>a.toJSON(i)),parent:this.parent.toReference()})}toJSONClone(i=Ke){var l,p,e,y,v;let a;return(l=i.seenEntityMaps)!=null&&l.has(this.id)?a=i.seenEntityMaps.get(this.id):(a=i.newId||Gr(this,this.project,i.uuidStrategy),i.seenEntityMaps&&i.seenEntityMaps.set(this.id,a)),(p=i.seenEntities)!=null&&p.has(a)||(e=i.seenEntities)!=null&&e.has(this.id)?this.toReference({seenEntityMaps:i.seenEntityMaps}):((y=i.seenEntities)==null||y.add(a),(v=i.seenEntities)==null||v.add(this.id),{id:a,version:N.UUID.uuid(),createdAt:i.timestamp||L().toISOString(),author:N.sessionAuthor,previousVersion:null,deleted:!1,type:this.type,name:this.name,codeName:this.codeName,description:this.description,x:this.x,y:this.y,static:this.static,abstract:this.abstract,properties:this.properties.map(T=>T.toJSONClone({...i,newId:null})),methods:this.methods.map(T=>T.toJSONClone({...i,newId:null})),abstractMethods:this.abstractMethods.map(T=>T.toJSONClone({...i,newId:null})),implements:this.implements.map(T=>T.type===f.BuiltInBaseEntity?T.toJSON():T.toJSONClone({...i,newId:null})),extends:this.extends.map(T=>T.type===f.BuiltInBaseEntity?T.toJSON():T.toJSONClone({...i,newId:null})),parent:this.parent.toReference({seenEntityMaps:i.seenEntityMaps})})}toReference(i=Ke){var l;let a=this.id;return(l=i.seenEntityMaps)!=null&&l.has(this.id)&&(a=i.seenEntityMaps.get(this.id)),{id:a+"--"+N.UUID.uuid()+"--ref",type:f.GenericReference,entityId:a,version:this.version,entityType:this.type}}toShallowJSON(i=Ke){var l;let a=this.id;return(l=i.seenEntityMaps)!=null&&l.has(this.id)&&(a=i.seenEntityMaps.get(this.id)),{id:a,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,name:this.name,codeName:this.codeName,description:this.description,type:this.type,x:this.x,y:this.y,static:this.static,abstract:this.abstract,properties:this.properties.map(p=>p.toReference(i)),methods:this.methods.map(p=>p.toReference(i)),abstractMethods:this.abstractMethods.map(p=>p.toReference(i)),implements:this.implements.map(p=>p.toReference(i)),extends:this.extends.map(p=>p.toReference(i)),parent:this.parent.toReference(i)}}toFlatJSON(i=new Set){return i.has(this.id)?[]:(i.add(this.id),[this.toShallowJSON(),...this.properties.flatMap(l=>l.toFlatJSON(i)),...this.methods.flatMap(l=>l.toFlatJSON(i)),...this.abstractMethods.flatMap(l=>l.toFlatJSON(i)),...this.implements.flatMap(l=>l.toFlatJSON(i)),...this.extends.flatMap(l=>l.toFlatJSON(i)),...this.parent.toFlatJSON(i)])}toGenerationTarget(){const i=this.parent.type===f.Project?void 0:this.parent.id;return{id:this.id,name:this.name,description:this.description,type:this.type,static:this.static,abstract:this.abstract,extends:this.extends.map(a=>a.id),implements:this.implements.map(a=>a.id),parent:i}}toFlatGenerationTarget(i=new Set){return i.has(this.id)?[]:(i.add(this.id),[this.toGenerationTarget(),...this.properties.flatMap(l=>l.toFlatGenerationTarget(i)),...this.methods.flatMap(l=>l.toFlatGenerationTarget(i)),...this.abstractMethods.flatMap(l=>l.toFlatGenerationTarget(i)),...this.implements.filter(l=>l.type===f.DefinitionEntity).flatMap(l=>l.toFlatGenerationTarget(i)),...this.implements.filter(l=>l.type===f.DefinitionEntity).flatMap(l=>l.toFlatGenerationTarget(i)),...this.parent.toFlatGenerationTarget(i)])}clearErrors(){return this.errors=[],this.properties.forEach(i=>i.clearErrors()),this.methods.forEach(i=>i.clearErrors()),this.abstractMethods.forEach(i=>i.clearErrors()),this}validate(){return this.errors=NS(this),{success:!0,error:null,data:null}}getErrors(){return[...this.errors,...this.properties.flatMap(a=>a.getErrors()),...this.methods.flatMap(a=>a.getErrors()),...this.abstractMethods.flatMap(a=>a.getErrors())]}getShallowErrors(){return this.errors}clone(i=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"clone-entity")),a=null,l=null,p=!0){var G,K,J;let e=Fr(a,this);const y=this.toJSON(),v=l||N.UUID.uuid();y.properties=[],y.methods=[],y.abstractMethods=[];const T=v.split("-id"),w=T[T.length-1||0]||v;y.id=v,y.version=N.UUID.uuid(),y.createdAt=(i==null?void 0:i.timestamp)||L().toISOString(),y.author=(i==null?void 0:i.author)||"1",y.previousVersion=null,y.deleted=!1;const A=or(y,e);a&&A.setParent(a,null),p&&A.subscribe(),A.initChildren(i),i==null||i.add(A,S.Added);const P=(G=this.properties)==null?void 0:G.map(ie=>ie.clone(i,A,N.UUID.uuid(),p));A.properties=P;const V=(K=this.methods)==null?void 0:K.map((ie,X)=>ie.clone(i,A,w+"-method-"+X+"-id",p));A.methods=V;const U=(J=this.abstractMethods)==null?void 0:J.map((ie,X)=>ie.clone(i,A,w+"-abstract-method-"+X+"-id",p));return A.abstractMethods=U,i==null||i.attemptAutoclose("clone-entity",this.id),A}getFunctionDeclaration(i){return this.methods.find(a=>a.id===i)}implement(i,a=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"implement-definition-entity")),l){const p=Tm(this,i,a,l);return a==null||a.attemptAutoclose("implement-definition-entity",this.id),p}getAllInteractiveMethods(){const i=this.implements.filter(l=>l.type===f.DefinitionEntity||l.type===f.BuiltInBaseEntity&&l.interactive);return R([...this.methods,...this.extends.flatMap(l=>l.getAllInteractiveMethods()),...i.flatMap(l=>l.getAllInteractiveMethods())])}inferFromInputs(i,a=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"infer-definition-entity-from-inputs"))){const l=[],p=[],e=[],y=[];if(this.parent.type!==f.DataType||!this.parent.inferred)return a==null||a.attemptAutoclose("infer-definition-entity-from-inputs",this.id),{added:[],updated:[],removed:[],affected:[],self:this};const v=[];i.forEach(A=>{v.find(V=>ne(V,this.project)===ne(A,this.project))||v.push(A)});const T=this.properties.filter(A=>!A.dataType);v.forEach(A=>{var ie,X,ce;const P=T.find(re=>ne(re,this.project)===ne(A,this.project));if(!P)return;const U=Ci(A.parent).getMasterInputWithValueWritterFromAllInstances(A),G=hn(U,a),K=G==null?void 0:G.clone(a,P,N.UUID.uuid(),!0);K&&((ie=P.dataType)==null||ie.merge(K,a),K.id!==((X=P.dataType)==null?void 0:X.id)&&K.remove({ignoreUpstream:!1},a),P.dataType&&(P.dataType.metaSync({inferred:!0,like:!0},a),P.setDataType(P.dataType,a),a==null||a.add(P,S.Affected)));let J=null;if(A.declaration&&P.id!==((ce=A.declaration)==null?void 0:ce.id)&&(J=A.declaration),A.setDeclaration(P,a),a==null||a.add(A,S.Updated),J){const{updated:re,removed:he}=J.remove({ignoreUpstream:!1},a);p.push(...re),e.push(...he)}});const w=[];return v.forEach(A=>{if(!A.declaration){w.push(A);return}}),w.length===0?(a==null||a.attemptAutoclose("infer-definition-entity-from-inputs",this.id),{added:[],updated:[],removed:[],affected:[],self:this}):(w.forEach(A=>{var X,ce,re,he;const P=this.properties.find(Y=>ne(Y,this.project)===ne(A,this.project));if(P){if(A.setDeclaration(P,a),!P.getDataType(a)){const H=Ci(A.parent).getMasterInputWithValueWritterFromAllInstances(A),pe=hn(H),z=pe==null?void 0:pe.clone(a,P,N.UUID.uuid(),!0);z&&((X=P.dataType)==null||X.merge(z,a),z.id!==((ce=P.dataType)==null?void 0:ce.id)&&z.remove({ignoreUpstream:!1},a),P.dataType&&(P.dataType.metaSync({inferred:!0,like:!0},a),P.setDataType(P.dataType,a),a==null||a.add(P,S.Affected)))}return}const V=Xn.new(a);V.parent=this.toReference(),V.index=A.index,V.name=ne(A,this.project),V.codeName=A.codeName,V.description=A.description;const U=te(V,this.project);U.hydrateAncestors(),a==null||a.add(U,S.Added),U.setParent(this,a),U.initChildren(a);const K=Ci(A.parent).getMasterInputWithValueWritterFromAllInstances(A),J=hn(K),ie=J==null?void 0:J.clone(a,U,N.UUID.uuid(),!0);return ie&&((re=U.dataType)==null||re.merge(ie,a),ie.id!==((he=U.dataType)==null?void 0:he.id)&&ie.remove({ignoreUpstream:!1},a),U.dataType&&(U.dataType.metaSync({inferred:!0,like:!0},a),U.setDataType(U.dataType,a),a==null||a.add(U,S.Affected))),this.addProperty(U),A.setDeclaration(U,a),a==null||a.add(A,S.Updated),U}),a==null||a.attemptAutoclose("infer-definition-entity-from-inputs",this.id),{added:R(l),updated:R(p),removed:R(e),affected:R(y),self:this})}getRawDefaultValue(){const i={};return this.properties.forEach(a=>{var p;if(!Kw(a))return;const l=jr(a.name);i[l]=((p=a.getDefaultValue())==null?void 0:p.value)||null}),i}getActiveRawDefaultValue(){const i={};return this.properties.forEach(a=>{var e;if(!Kw(a))return;const l=jr(a.name),p=(e=this.project.requestActiveDynamicValue(a))==null?void 0:e.value;i[l]=(p==null?void 0:p.value)||null}),i}};g(qt,"repository",{APICreate:async(i,...a)=>i,APIUpdate:async(i,...a)=>i,APIDelete:async(i,...a)=>i,APIClone:async(i,...a)=>{},APILoad:async(i,...a)=>null,APILoadVersion:async(i,a,...l)=>null}),g(qt,"type",f.DefinitionEntity),g(qt,"USER_MANAGED_PARENT_TYPES",[f.Project,f.DataType]),g(qt,"PARENT_TYPES",[...qt.USER_MANAGED_PARENT_TYPES]),g(qt,"MUTABLE_BASE_PROPERTIES",["name","codeName","description","static","abstract"]),g(qt,"INMUTABLE_BASE_PROPERTIES",["id","type","version","createdAt","author","previousVersion"]),g(qt,"BASE_PROPERTIES",[...qt.MUTABLE_BASE_PROPERTIES,...qt.INMUTABLE_BASE_PROPERTIES]),g(qt,"MUTABLE_META_PROPERTIES",[...qt.MUTABLE_BASE_PROPERTIES,"x","y"]),g(qt,"INMUTABLE_META_PROPERTIES",[...qt.INMUTABLE_BASE_PROPERTIES]),g(qt,"META_PROPERTIES",[...qt.MUTABLE_META_PROPERTIES,...qt.INMUTABLE_META_PROPERTIES]),g(qt,"MUTABLE_UPSTREAM_PROPERTIES",["extends","implements"]),g(qt,"INMUTABLE_UPSTREAM_PROPERTIES",["parent"]),g(qt,"UPSTREAM_PROPERTIES",[...qt.MUTABLE_UPSTREAM_PROPERTIES,...qt.INMUTABLE_UPSTREAM_PROPERTIES]),g(qt,"MUTABLE_DOWNSTREAM_PROPERTIES",["properties","methods","abstractMethods"]),g(qt,"INMUTABLE_DOWNSTREAM_PROPERTIES",[]),g(qt,"DOWNSTREAM_PROPERTIES",[...qt.MUTABLE_DOWNSTREAM_PROPERTIES,...qt.INMUTABLE_DOWNSTREAM_PROPERTIES]),g(qt,"PROPERTIES",[...qt.META_PROPERTIES,...qt.UPSTREAM_PROPERTIES,...qt.DOWNSTREAM_PROPERTIES]);let Qn=qt;function DAe(d){const u=ohe(),i=d.toJSON();u.safeParse(i).success;const l=[];return vr(d.errors,l)}const uf=class uf extends Nr{constructor(i,a){super(i);g(this,"initialData");g(this,"id");g(this,"version");g(this,"name");g(this,"description",null);g(this,"type",f.BuiltInBaseEntity);g(this,"abstract",!1);g(this,"static");g(this,"properties",[]);g(this,"methods",[]);g(this,"abstractMethods",[]);g(this,"extends",[]);g(this,"interactive",!1);g(this,"errors",[]);g(this,"project");this.initialData=this.initialData||i,this.project=this.project||a,this.id=this.id||i.id,this.version=this.version||i.version,this.name=this.name||i.name,this.static=this.static||i.static,this.interactive=this.interactive||i.interactive,this.abstract=i.abstract,this.properties=this.initialData.properties.map(l=>{const p=te(l,this.project);return p.setParent(this,null),p.initChildren(null),p}),this.methods=this.initialData.methods.map(l=>{const p=te(l,this.project);return p.setParent(this,null),p.initChildren(null),p}),this.abstractMethods=this.initialData.abstractMethods.map(l=>{const p=te(l,this.project);return p.setParent(this,null),p.initChildren(null),p}),this.extends=this.initialData.extends.map(l=>te(l,this.project))}get allMethods(){return R([...this.ownDeclaredMethods,...this.allBaseMethodsFromOriginalParents])}get allProperties(){return R([...this.ownDeclaredProperties,...this.allBasePropertiesFromOriginalParents])}get allBaseMethodsFromOriginalParents(){return R([...this.extends.flatMap(i=>i.allMethods,[])])}get allBasePropertiesFromOriginalParents(){return R([...this.extends.flatMap(i=>i.allProperties,[])])}get allBasePropertiesFromExtendedAndImplementedEntities(){return R(this.extends.reduce((i,a)=>{const l=[...a.ownDeclaredProperties,...a.allBasePropertiesFromExtendedAndImplementedEntities].filter(p=>!p.abstract);return[...i,...l]},[]))}get extendedPropertiesFromOriginalParents(){return R(this.extends.reduce((i,a)=>{const l=[...a.ownDeclaredProperties,...a.extendedPropertiesFromOriginalParents].filter(p=>!p.abstract);return[...i,...l]},[]))}get implementedPropertiesFromOriginalParents(){return R([...this.extends.reduce((i,a)=>{const l=a.implementedPropertiesFromOriginalParents,p=[...a.ownDeclaredProperties].filter(e=>!!e.abstract&&!l.find(y=>y.name===e.name));return[...l,...p,...i]},[])])}get extendedProperties(){return this.properties.filter(i=>i.isExtendedProperty)}get ownDeclaredMethods(){return this.methods.filter(i=>!i.isExtendedMethod)}get ownDeclaredProperties(){return this.properties.filter(i=>!i.isExtendedProperty)}subscribe(){return this.project.subscribeInstance(this),this}unsubscribe(){return this.project.unsubscribeInstance(this),this}async APILoad(i=Ee,...a){return await uf.repository.APILoad(this.id,...a),this}toFlat(i=new Set){return i.has(this.id)?[]:(i.add(this.id),[this,...this.properties.flatMap(l=>l.toFlat(i)),...this.methods.flatMap(l=>l.toFlat(i)),...this.abstractMethods.flatMap(l=>l.toFlat(i)),...this.extends.flatMap(l=>l.toFlat(i))])}toFlatIds(i=new Set){return i.has(this.id)?[]:(i.add(this.id),[this.id,...this.properties.flatMap(l=>l.toFlatIds(i)),...this.methods.flatMap(l=>l.toFlatIds(i)),...this.abstractMethods.flatMap(l=>l.toFlatIds(i)),...this.extends.flatMap(l=>l.toFlatIds(i))])}toMeta(){return{id:this.id,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,description:this.description,interactive:this.interactive,abstract:this.abstract,static:this.static,type:this.type,name:this.name}}toJSON(i=new Set){return i.has(this.id)?this.toReference():(i.add(this.id),{id:this.id,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,type:this.type,name:this.name,description:this.description,abstract:this.abstract,static:this.static,interactive:this.interactive,properties:this.properties.map(a=>a.toJSON(i)),methods:this.methods.map(a=>a.toJSON(i)),abstractMethods:this.abstractMethods.map(a=>a.toJSON(i)),extends:this.extends.map(a=>a.toJSON(i))})}toReference(i=Ke){return{id:this.id+"--"+N.UUID.uuid()+"--ref",type:f.GenericReference,entityId:this.id,version:this.version,entityType:this.type}}toShallowJSON(i=Ke){return{id:this.id,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,type:this.type,name:this.name,description:this.description,abstract:this.abstract,static:this.static,interactive:this.interactive,properties:this.properties.map(a=>a.toReference()),methods:this.methods.map(a=>a.toReference()),abstractMethods:this.abstractMethods.map(a=>a.toReference()),extends:this.extends.map(a=>a.toReference())}}toFlatJSON(i=new Set){return i.has(this.id)?[]:(i.add(this.id),[this.toShallowJSON(),...this.properties.flatMap(l=>l.toFlatJSON(i)),...this.methods.flatMap(l=>l.toFlatJSON(i)),...this.abstractMethods.flatMap(l=>l.toFlatJSON(i))])}toGenerationTarget(){return{id:this.id,type:this.type,name:this.name,description:this.description,static:this.static,abstract:this.abstract,interactive:this.interactive,extends:this.extends.map(i=>i.id)}}toFlatGenerationTarget(i=new Set){return i.has(this.id)?[]:(i.add(this.id),[this.toGenerationTarget(),...this.properties.flatMap(l=>l.toFlatGenerationTarget(i)),...this.methods.flatMap(l=>l.toFlatGenerationTarget(i)),...this.abstractMethods.flatMap(l=>l.toFlatGenerationTarget(i))])}clearErrors(){return this.errors=[],this.properties.forEach(i=>i.clearErrors()),this.methods.forEach(i=>i.clearErrors()),this.abstractMethods.forEach(i=>i.clearErrors()),this}validate(){const i=DAe(this);return this.errors=i,{success:!0,error:null,data:this.toJSON()}}getErrors(){return[...this.errors,...this.properties.flatMap(a=>a.getErrors()),...this.methods.flatMap(a=>a.getErrors()),...this.abstractMethods.flatMap(a=>a.getErrors())]}getShallowErrors(){return this.errors}implement(i,a=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),null,!0,"implement-built-in-base-entity")),l){const p=Tm(this,i,a,l);return a==null||a.attemptAutoclose("implement-built-in-base-entity",this.id),p}getAllInteractiveMethods(){const i=[];return this.interactive&&(i.push(...this.methods),this.extends.filter(l=>l.type===f.BuiltInBaseEntity&&l.interactive||l.type===f.PrimitiveEntity).forEach(l=>{l instanceof uf&&i.push(...l.getAllInteractiveMethods())})),R(i)}};g(uf,"repository",{APILoad:async(i,...a)=>null});let ea=uf;function OAe(d){const u=rhe(),i=d.toJSON();u.safeParse(i).success;const l=[];return vr(d.errors,l)}const Fm=class Fm extends Nr{constructor(i,a){super(i);g(this,"initialData");g(this,"id");g(this,"name");g(this,"description",null);g(this,"type",f.PrimitiveEntity);g(this,"static");g(this,"abstract");g(this,"properties",[]);g(this,"methods",[]);g(this,"abstractMethods",[]);g(this,"extends",[]);g(this,"errors",[]);g(this,"project");this.initialData=i,this.project=a,this.id=i.id,this.name=i.name,this.static=i.static,this.abstract=i.abstract,this.properties=this.initialData.properties.map(l=>{const p=te(l,this.project);return p.setParent(this,null),p.initChildren(null),p}),this.methods=this.initialData.methods.map(l=>{const p=te(l,this.project);return p.parent=this,p}),this.abstractMethods=this.initialData.abstractMethods.map(l=>{const p=te(l,this.project);return p.parent=this,p})}get allMethods(){return R([...this.ownDeclaredMethods,...this.allBaseMethodsFromOriginalParents])}get allProperties(){return R([...this.ownDeclaredProperties,...this.allBasePropertiesFromOriginalParents])}get allBaseMethodsFromOriginalParents(){return R([...this.extends.flatMap(i=>i.allMethods,[])])}get allBasePropertiesFromOriginalParents(){return R([...this.extends.flatMap(i=>i.allProperties,[])])}get allBasePropertiesFromExtendedAndImplementedEntities(){return R(this.extends.reduce((i,a)=>{const l=[...a.ownDeclaredProperties,...a.allBasePropertiesFromExtendedAndImplementedEntities].filter(p=>!p.abstract);return[...i,...l]},[]))}get extendedPropertiesFromOriginalParents(){return R(this.extends.reduce((i,a)=>{const l=[...a.ownDeclaredProperties,...a.extendedPropertiesFromOriginalParents].filter(p=>!p.abstract);return[...i,...l]},[]))}get implementedPropertiesFromOriginalParents(){return R([...this.extends.reduce((i,a)=>{const l=a.implementedPropertiesFromOriginalParents,p=[...a.ownDeclaredProperties].filter(e=>!!e.abstract&&!l.find(y=>y.name===e.name));return[...l,...p,...i]},[])])}get extendedProperties(){return this.properties.filter(i=>i.isExtendedProperty)}get ownDeclaredMethods(){return this.methods.filter(i=>!i.isExtendedMethod)}get ownDeclaredProperties(){return this.properties.filter(i=>!i.isExtendedProperty)}subscribe(){return this.project.subscribeInstance(this),this}unsubscribe(){return this.project.unsubscribeInstance(this),this}async APILoad(i=Ee,...a){return await Fm.repository.APILoad(this.id,...a),this}toFlat(i=new Set){return i.has(this.id)?[]:(i.add(this.id),[this,...this.properties.flatMap(l=>l.toFlat(i)),...this.methods.flatMap(l=>l.toFlat(i)),...this.abstractMethods.flatMap(l=>l.toFlat(i))])}toFlatIds(i=new Set){return i.has(this.id)?[]:(i.add(this.id),[this.id,...this.properties.flatMap(l=>l.toFlatIds(i)),...this.methods.flatMap(l=>l.toFlatIds(i)),...this.abstractMethods.flatMap(l=>l.toFlatIds(i))])}toMeta(){return{id:this.id,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,description:this.description,static:this.static,abstract:this.abstract,type:this.type,name:this.name}}toJSON(i=new Set){return i.has(this.id)?this.toReference():(i.add(this.id),{id:this.id,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,type:this.type,name:this.name,description:this.description,static:this.static,abstract:this.abstract,properties:this.properties.map(a=>a.toJSON(i)),methods:this.methods.map(a=>a.toJSON(i)),abstractMethods:this.abstractMethods.map(a=>a.toJSON(i)),extends:this.extends.map(a=>a.toJSON(i))})}toReference(i=Ke){return{id:this.id+"--"+N.UUID.uuid()+"--ref",type:f.GenericReference,entityId:this.id,version:this.version,entityType:this.type}}toShallowJSON(i=Ke){return{id:this.id,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,type:this.type,name:this.name,description:this.description,abstract:this.abstract,static:this.static,properties:this.properties.map(a=>a.toReference()),methods:this.methods.map(a=>a.toReference()),abstractMethods:this.abstractMethods.map(a=>a.toReference()),extends:this.extends.map(a=>a.toReference())}}toFlatJSON(i=new Set){return i.has(this.id)?[]:(i.add(this.id),[this.toShallowJSON(),...this.properties.flatMap(l=>l.toFlatJSON(i)),...this.methods.flatMap(l=>l.toFlatJSON(i)),...this.abstractMethods.flatMap(l=>l.toFlatJSON(i))])}toGenerationTarget(){return{id:this.id,type:this.type,name:this.name,description:this.description,static:this.static,abstract:this.abstract,extends:this.extends.map(i=>i.id)}}toFlatGenerationTarget(i=new Set){return i.has(this.id)?[]:(i.add(this.id),[this.toGenerationTarget(),...this.properties.flatMap(l=>l.toFlatGenerationTarget(i)),...this.methods.flatMap(l=>l.toFlatGenerationTarget(i)),...this.abstractMethods.flatMap(l=>l.toFlatGenerationTarget(i))])}clearErrors(){return this.errors=[],this.properties.forEach(i=>i.clearErrors()),this.methods.forEach(i=>i.clearErrors()),this.abstractMethods.forEach(i=>i.clearErrors()),this}validate(){const i=OAe(this);return this.errors=i,{success:!0,error:null,data:this.toJSON()}}getErrors(){return[...this.errors,...this.properties.flatMap(a=>a.getErrors()),...this.methods.flatMap(a=>a.getErrors()),...this.abstractMethods.flatMap(a=>a.getErrors())]}getShallowErrors(){return this.errors}getAllInteractiveMethods(){const i=[];return i.push(...this.methods),this.extends.filter(l=>l.type===f.BuiltInBaseEntity&&l.interactive||l.type===f.PrimitiveEntity).forEach(l=>{l instanceof ea&&i.push(...l.getAllInteractiveMethods())}),R(i)}};g(Fm,"repository",{APILoad:async(i,...a)=>null});let Qi=Fm;function or(d,u){if(!d)throw new Error("Entity is null");const i=u.get(d.id);switch(d.type){case f.LiteralValue:return i||new Fi(d,u);case f.DefinitionEntity:return i||new Qn(d,u);case f.PrimitiveEntity:return i||new Qi(d,u);case f.FunctionDeclaration:return i||new ro(d,u);case f.GlobalEvent:return i||new no(d,u);case f.DataType:return i||new fs(d,u);case f.Property:return i||new Xn(d,u);case f.FunctionCall:return i||new To(d,u);case f.Condition:return i||new ao(d,u);case f.Operation:return i||new io(d,u);case f.VariableDeclaration:return i||new lo(d,u);case f.VariableInstance:return i||new oo(d,u);case f.OutputMap:return i||new yn(d,u);case f.ReturnDeclaration:return i||new Xi(d,u);case f.ArgumentDeclaration:return i||new Va(d,u);case f.InputMap:return i||new Hn(d,u);case f.Project:return i||new N(d);case f.InstalledProject:return i||new co(d,u);case f.ActionDescriptor:return i||new wt(d,u);case f.ReturnStatement:return i||new so(d,u);case f.Loop:return i||new ji(d,u);case f.Search:return i||new uo(d,u);case f.ValueDescriptor:return i||new mn(d,u);case f.BuiltInBaseEntity:return i||new ea(d,u);case f.InternalCall:return i||new po(d,u);case f.ContinueStatement:return i||new Oi(d,u);case f.BreakStatement:return i||new fo(d,u);case f.GenericReference:return u.get(d.entityId);default:throw new Error("Invalid entity type: "+d.type)}}function te(d,u){if(!d)throw new Error("Entity is null");const i=or(d,u);return i.subscribe(),i}function CAe(d,u){if(!d)throw new Error("Entity is null");switch(d.type){case f.LiteralValue:return Fi.fromGenerationTarget(d,u);case f.DefinitionEntity:return Qn.fromGenerationTarget(d,u);case f.FunctionDeclaration:return ro.fromGenerationTarget(d,u);case f.GlobalEvent:return no.fromGenerationTarget(d,u);case f.DataType:return fs.fromGenerationTarget(d,u);case f.Property:return Xn.fromGenerationTarget(d,u);case f.FunctionCall:return To.fromGenerationTarget(d,u);case f.Condition:return ao.fromGenerationTarget(d,u);case f.Operation:return io.fromGenerationTarget(d,u);case f.VariableDeclaration:return lo.fromGenerationTarget(d,u);case f.VariableInstance:return oo.fromGenerationTarget(d,u);case f.OutputMap:return yn.fromGenerationTarget(d,u);case f.ReturnDeclaration:return Xi.fromGenerationTarget(d,u);case f.ArgumentDeclaration:return Va.fromGenerationTarget(d,u);case f.InputMap:return Hn.fromGenerationTarget(d,u);case f.InstalledProject:return co.fromGenerationTarget(d,u);case f.ReturnStatement:return so.fromGenerationTarget(d,u);case f.Loop:return ji.fromGenerationTarget(d,u);case f.Search:return uo.fromGenerationTarget(d,u);case f.ActionDescriptor:return wt.fromGenerationTarget(d,u);case f.ValueDescriptor:return mn.fromGenerationTarget(d,u);case f.InternalCall:return po.fromGenerationTarget(d,u);case f.ContinueStatement:return Oi.fromGenerationTarget(d,u);case f.BreakStatement:return fo.fromGenerationTarget(d,u);default:throw new Error("Invalid entity type: "+d.type)}}const Ke={seenEntityMaps:new Map,seenEntities:new Set,timestamp:L().toISOString()};class BS{constructor(){g(this,"initialData")}}const Ee={cascade:!1},US={APILoad:async(d,...u)=>null},$Ae={APICreate:async(d,...u)=>d,APIUpdate:async(d,...u)=>d,APIDelete:async(d,...u)=>d,APIClone:async(d,...u)=>{},APILoadVersion:async(d,u,...i)=>null,...US};class PAe{}class NAe extends BS{}class VAe{}class LAe{}class MAe{}class Xw{}class BAe extends Xw{}class UAe extends Xw{}class jAe{}class of{static initReadsValue(u){if(u.initialData.readsValue&&u.initialData.readsValue.type!==f.GenericReference)u.readsValue=te(u.initialData.readsValue,u.project);else if(u.initialData.readsValue&&u.initialData.readsValue.type===f.GenericReference){const i=Ki(u.initialData.readsValue,u.project);i&&(u.readsValue=i)}if(u.readsValue){if(mt.includes(u.readsValue.type)){let i=u.parent;Mr.includes(i.type)||(i=i.parent);const a=u.type===f.InputMap&&u.parent.type===f.Loop;a&&(i=u.parent.parent),u.readsValue.setParent(i,null),u.readsValue.initChildren(null),i&&i.type!==f.Project&&!a&&i.detachedChildren.includes(u)?i.replaceDetachedChild(u,u.readsValue):i&&i.type!==f.Project&&!a&&i.subscribeDetachedChild(u.readsValue)}u.readsValue.addValueReader(u,null)}return u.readsValue}}class lf{static initWritesValues(u,i){const a=u.initialData.writesValues.reduce((p,e)=>{if(e.type===f.GenericReference||u.writesValues.some(v=>v.id===e.id))return p;const y=te(e,u.project);return y.setValueWriter(u,null),mt.includes(y.type)&&(y.setParent(i,null),y.initChildren(null)),[...p,y]},[]),l=[...u.writesValues];return u.writesValues=R([...l,...a]),u.writesValues}}class xAe{}var Vr=(d=>(d.PROJECT_INITIALIZED="project-initialized",d.CHANGE_SET_CLOSED="change-set-closed",d.EXPLICIT_DEFINITION_ENTITY_ADDED="explicit-definition-entity-added",d.EXPLICIT_DEFINITION_ENTITY_REMOVED="explicit-definition-entity-removed",d.EXPLICIT_DEFINITION_ENTITY_UPDATED="explicit-definition-entity-updated",d.PERSISTED_DEFINITION_ENTITY_ADDED="persisted-definition-entity-added",d.PERSISTED_DEFINITION_ENTITY_REMOVED="persisted-definition-entity-removed",d.PERSISTED_DEFINITION_ENTITY_UPDATED="persisted-definition-entity-updated",d.RELATIONAL_DATABASE_DEFINITION_ENTITY_ADDED="relational-database-definition-entity-added",d.RELATIONAL_DATABASE_DEFINITION_ENTITY_REMOVED="relational-database-definition-entity-removed",d.RELATIONAL_DATABASE_DEFINITION_ENTITY_UPDATED="relational-database-definition-entity-updated",d))(Vr||{});const Qw={...rw,events:new Sp},jS={requestActiveDynamicValue:d=>null,...Qw},pt=class pt extends Nr{constructor(i,a={...jS,events:new Sp}){super(i);g(this,"initialData");g(this,"id");g(this,"type",f.Project);g(this,"name",null);g(this,"description",null);g(this,"x");g(this,"y");g(this,"entities",[]);g(this,"projects",[]);g(this,"functions",[]);g(this,"events",[]);g(this,"variableDeclarations",[]);g(this,"variableInstances",[]);g(this,"conditions",[]);g(this,"operations",[]);g(this,"functionCalls",[]);g(this,"loops",[]);g(this,"searches",[]);g(this,"primitives",[]);g(this,"builtInBaseEntities",[]);g(this,"operationDeclarations",[]);g(this,"globalEventActionDescriptors",[]);g(this,"loopDeclarations",[]);g(this,"loopDeclarationsBodies",[]);g(this,"conditionDeclarations",[]);g(this,"valueDescriptors",[]);g(this,"dataTypes",[]);g(this,"project");g(this,"instances",{});g(this,"builtInInstances",{});g(this,"deletedInstances",{});g(this,"errors",[]);g(this,"references",[]);g(this,"history",[]);g(this,"undoableStackValueIndex",-1);g(this,"detachedDependents",{});g(this,"knownVersions",null);g(this,"activeVersion",!1);g(this,"initialized",!1);g(this,"startedInitialization",!1);g(this,"onCloseChangeSetCallback",null);g(this,"onAddChangeSetCallback",null);g(this,"onDiscardChangeSetCallback",null);if(this.parentContext=a,this.initialData=i,this.id=i.id,this.name=i.name,this.description=i.description,this.x=0,this.y=0,this.instances[this.id]=this,!pt.UUID)throw new Error("UUID module is already initialized. Please inject a valid UUID module.")}static get UUID(){return this.parentContext.requestModule("uuid")}static new(i=null){return{id:pt.UUID.uuid(),version:pt.UUID.uuid(),createdAt:(i==null?void 0:i.timestamp)||L().toISOString(),author:(i==null?void 0:i.author)||pt.sessionAuthor,previousVersion:null,deleted:!1,type:f.Project,name:"",description:"",entities:[],functions:[],events:[],projects:[],variableDeclarations:[],variableInstances:[],conditions:[],operations:[],functionCalls:[],loops:[],searches:[]}}static validateGenerationTarget(i,a){let l=JSON.parse(JSON.stringify(i));const p=[];return p.push(...Br(l)),{errors:p,modifiedData:l}}get off(){return this.parentContext.events.off}get on(){return this.parentContext.events.on}get emit(){return this.parentContext.events.emit}async closePendingChangeSets(){const i=this.history.find(a=>a.dirty&&!a.open);i&&await this.closeChangeSet(i)}async onCloseChangeSet(i){this.onCloseChangeSetCallback=i,await this.closePendingChangeSets()}onAddChangeSet(i){this.onAddChangeSetCallback=i}onDiscardChangeSet(i){this.onDiscardChangeSetCallback=i}async closeChangeSet(i){const a=this.history.findIndex(e=>e.id===i.id),l=this.history.slice(0,a),p=l[l.length-1];if(!(p!=null&&p.dirty)&&this.onCloseChangeSetCallback){(await this.onCloseChangeSetCallback(i)).success&&(i.dirty=!1,this.emit("change-set-closed",i),this.closePendingChangeSets());return}}toLatestChangeSet(i,a,l,p=!1,e="here-this"){if(!this.history.length)return new F(this,i,a,l,p,e);const y=this.history[this.history.length-1];return y.open?y:this.addChangeSet(new F(this,i,a,l,p,e))}addChangeSet(i){var p,e;if(!this.history.length)return this.undoableStackValueIndex=iA(this.undoableStackValueIndex,this.history,i),(p=this.onAddChangeSetCallback)==null||p.call(this,i,this.undoableStackValueIndex),i;const a=this.history.find(y=>y.id===(i==null?void 0:i.id));if(a)return a;const l=this.history.find(y=>y.open);if(l)throw ke.warn("Previous still open: ",l),ke.warn("New change set: ",i),new Error(`There is already an open change-set with id '${l.id}'.`);return this.undoableStackValueIndex=iA(this.undoableStackValueIndex,this.history,i),(e=this.onAddChangeSetCallback)==null||e.call(this,i,this.undoableStackValueIndex),i}discardChangeSet(i){var l;const a=this.history.findIndex(p=>p.id===(i==null?void 0:i.id));return a!==-1&&(this.history.splice(a,1),this.undoableStackValueIndex=this.undoableStackValueIndex-1,(l=this.onDiscardChangeSetCallback)==null||l.call(this,i)),this}validateGeneratedUpdate(i){return{errors:[],modifiedData:i}}subscribeDependents(i){return i.forEach(a=>{this.detachedDependents[a.entity.id]||(this.detachedDependents[a.entity.id]=a)}),this}unsubscribeDependents(i){return i.forEach(a=>{this.detachedDependents[a.entity.id]&&delete this.detachedDependents[a.entity.id]}),this}syncDependents(i=this.project.addChangeSet(new F(this.project,pt.sessionAuthor,L().toISOString(),this,!0,"sync-dependents"))){const a=[],l=[],p=[],e=[];return Object.values(this.detachedDependents).forEach(y=>{const v=y.entity.afterAllChildrenInitialized(i);a.push(...v.updated),l.push(...v.added),p.push(...v.removed),e.push(...v.affected)}),i==null||i.attemptAutoclose("sync-dependents",this.id),{updated:R(a),added:R(l),removed:R(p),affected:R(e),self:this}}onDetachedDependencyRemoved(i,a,l){const p=[],e=[],y=[],v=[];return{updated:R(p),added:R(e),removed:R(y),affected:R(v),self:this}}onDetachedDependencyRestored(i,a,l){const p=[],e=[],y=[],v=[];return{updated:R(p),added:R(e),removed:R(y),affected:R(v),self:this}}unsubscribeFromDependencies(){return this}subscribeToDependencies(){return this}increaseVersion(i){if(i&&!L(i).isValid())throw new Error(`The shared timestamp '${i}' is not a valid ISO 8601 date string.`);return i&&L(i).isSame(L(this.createdAt))?this:(this.previousVersion=this.version,this.version=pt.UUID.uuid(),this.createdAt=L(i).toISOString()||L().toISOString(),this)}captureVersion(){var a;const i=((a=this.knownVersions)==null?void 0:a.get(this.version))||new pt(this);return i.metaSync(this.toMeta(),null),this.knownVersions=this.knownVersions?this.knownVersions.set(this.version,i):new Map([[this.version,i]]),i.entities=[...this.entities],i.projects=[...this.projects],i.functions=[...this.functions],i.events=[...this.events],i.variableDeclarations=[...this.variableDeclarations],i.variableInstances=[...this.variableInstances],i.conditions=[...this.conditions],i.operations=[...this.operations],i.functionCalls=[...this.functionCalls],i.loops=[...this.loops],i.searches=[...this.searches],this}recursiveCaptureUpstreamVersions(i){const a=[],l=[],p=[],e=[];return{updated:R(a),added:R(l),removed:R(p),affected:R(e),self:this}}async restoreVersion(i){var v;const a=[],l=[],p=[],e=[];if(this.version===i)return{updated:R(a),added:R(l),removed:R(p),affected:R(e),self:this};if(!this.knownVersions){const T=new Map;for(const[w,A]of this.knownVersions||new Map){if(T.set(w,A),A.activeVersion=!1,A.knownVersions)for(const[P,V]of A.knownVersions)T.set(P,V);A.knownVersions=null}}let y=(v=this.knownVersions)==null?void 0:v.get(i);if(!y){const T=await this.APILoadVersion({},i);if(!T)throw new Error(`Version with id '${i}' for entity with id '${this.id}' not found.`);y=new pt(T)}return this.metaSync(y.toShallowJSON(),null),this.previousVersion=y.previousVersion,this.version=y.version,this.createdAt=y.createdAt,this.author=y.author,this.deleted=y.deleted,this.entities=y.entities,this.projects=y.projects,this.functions=y.functions,this.events=y.events,this.variableDeclarations=y.variableDeclarations,this.variableInstances=y.variableInstances,this.conditions=y.conditions,this.operations=y.operations,this.functionCalls=y.functionCalls,this.loops=y.loops,this.searches=y.searches,{updated:R(a),added:R(l),removed:R(p),affected:R(e),self:this}}updateWithShallowTransfer(i,a=this.project.addChangeSet(new F(this.project,pt.sessionAuthor,L().toISOString(),this,!0,"update-with-shallow-transfer"))){return this.metaSync(i,a),this.version=i.version,this.createdAt=i.createdAt,this.author=i.author,this.deleted=i.deleted,this.previousVersion=i.previousVersion,this.captureVersion(),this.subscribeToDependencies(),a==null||a.attemptAutoclose("update-with-shallow-transfer",this.id),this}hydrateAncestors(){const i=[],a=[],l=[],p=[];return{updated:R(i),added:R(a),removed:R(l),affected:R(p),self:this}}afterAllChildrenInitialized(i=null){const a=[],l=[],p=[],e=[];return this.initialized||(this.initialized=!0,this.emit("project-initialized",this,i)),this.validate(),this.captureVersion(),{updated:R(a),added:R(l),removed:R(p),affected:R(e),self:this}}addSelfToProject(i){const a=[],l=[],p=[],e=[];return this.subscribe(),this.subscribeToDependencies(),{updated:R(a),added:R(l),removed:R(p),affected:R(e),self:this}}get instancesList(){return Object.values(this.instances)}isOperationDeclaration(i){return this.operationDeclarations.includes(i)}isGlobalEventActionDescriptor(i){return this.globalEventActionDescriptors.includes(i)}isLoopDeclaration(i){return this.loopDeclarations.includes(i)}isConditionDeclaration(i){return this.conditionDeclarations.includes(i)}initChildren(i=this.project.addChangeSet(new F(this.project,pt.sessionAuthor,L().toISOString(),this,!0,"init-children"))){return this.initialized||this.startedInitialization?this:(this.startedInitialization=!0,this.entities=this.initialData.entities.map(a=>{const l=te(a,this);return l.setParent(this,null),l.initChildren(i),l}),this.projects=this.initialData.projects.map(a=>{const l=te(a,this);return l.setParent(this,null),l.initChildren(i),l}),this.variableDeclarations=this.initialData.variableDeclarations.map(a=>{const l=te(a,this);return l.setParent(this,null),l.initChildren(i),l}),this.variableInstances=this.initialData.variableInstances.map(a=>{const l=te(a,this);return l.setParent(this,null),l.initChildren(i),l}),this.conditions=this.initialData.conditions.map(a=>{const l=te(a,this);return l.setParent(this,null),l.initChildren(i),l}),this.operations=this.initialData.operations.map(a=>{const l=te(a,this);return l.setParent(this,null),l.initChildren(i),l}),this.functions=this.initialData.functions.map(a=>{const l=te(a,this);return l.setParent(this,null),l.initChildren(i),l}),this.events=this.initialData.events.map(a=>{const l=te(a,this);return l.setParent(this,null),l.initChildren(i),l}),this.functionCalls=this.initialData.functionCalls.map(a=>{const l=te(a,this);return l.setParent(this,null),l.initChildren(i),l}),this.loops=this.initialData.loops.map(a=>{const l=te(a,this);return l.setParent(this,null),l.initChildren(i),l}),this.searches=this.initialData.searches.map(a=>{const l=te(a,this);return l.setParent(this,null),l.initChildren(i),l}),this.attachOrphanReferences(),this.subscribeToDependencies(),this.afterAllChildrenInitialized(i),i==null||i.attemptAutoclose("init-children",this.id),this)}subscribeInstance(i){return(!this.instances[i.id]||this.instances[i.id]!==i)&&(this.instances[i.id]=i),this}subscribeDeletedInstance(i){return(!this.deletedInstances[i.id]||this.deletedInstances[i.id]!==i)&&(this.deletedInstances[i.id]=i),this}subscribeBuiltInInstance(i){return(!this.builtInInstances[i.id]||this.builtInInstances[i.id]!==i)&&(this.builtInInstances[i.id]=i),this}subscribe(){return this}unsubscribe(){return this}unsubscribeInstance(i){return delete this.instances[i.id],this}unsubscribeDeletedInstance(i){return delete this.deletedInstances[i.id],this}findSubscribedBuiltInInstance(i){return this.builtInInstances[i.id]||null}get(i){return this.instances[i]||this.builtInInstances[i]||null}getDeleted(i){return this.deletedInstances[i]||null}getManaged(i){return this.getBuiltIn(i)?null:this.instances[i]||null}getBuiltIn(i){return this.builtInInstances[i]||null}findSubscribedInstanceFromReference(i){return this.instances[i.entityId]||null}findSubscribedBuiltInInstanceFromReference(i){return this.builtInInstances[i.entityId]||null}metaSync(i,a=this.project.addChangeSet(new F(this.project,pt.sessionAuthor,L().toISOString(),this,!0,"meta-sync"))){const l=Ur(this,i),p=this.toMeta();return this.name=i.name!==void 0?i.name:p.name,this.description=i.description!==void 0?i.description:p.description,this.x=i.x||p.x,this.y=i.y||p.y,super.metaSync(i),i.deleted===!0&&!p.deleted?a==null||a.add(this,S.Removed):i.deleted===!1&&p.deleted?a==null||a.add(this,S.Added):l&&(a==null||a.add(this,S.Updated)),a==null||a.attemptAutoclose("meta-sync",this.id),this}async APILoad(i=Ee,...a){return await pt.repository.APILoad(this.id,...a),this}async APICreate(i=Ee,...a){return await pt.repository.APICreate(this.toShallowJSON(),...a),this}async APIUpdate(i=Ee,...a){return await pt.repository.APIUpdate(this.toShallowJSON(),...a),this}async APIDelete(i=Ee,...a){return await pt.repository.APIDelete(this.toShallowJSON(),...a),this}async APIClone(i=Ee,...a){return await pt.repository.APIClone(this.id,...a),this}async APILoadVersion(i=Ee,a,...l){return await pt.repository.APILoadVersion(this.id,a,...l)}remove({ignoreUpstream:i}={ignoreUpstream:!1},a=this.project.addChangeSet(new F(this.project,pt.sessionAuthor,L().toISOString(),this,!0,"remove-entity"))){return{added:[],updated:[],removed:[],affected:[],self:this}}restore({}={},i=this.project.addChangeSet(new F(this.project,pt.sessionAuthor,L().toISOString(),this,!0,"restore-entity"))){return{added:[],updated:[],removed:[],affected:[],self:this}}getAllBuiltInIds(){const i=new Set;return[...this.primitives.flatMap(a=>a.toFlatIds(i)),...this.builtInBaseEntities.flatMap(a=>a.toFlatIds(i)),...this.operationDeclarations.flatMap(a=>a.toFlatIds(i)),...this.globalEventActionDescriptors.flatMap(a=>a.toFlatIds(i)),...this.loopDeclarations.flatMap(a=>a.toFlatIds(i)),...this.conditionDeclarations.flatMap(a=>a.toFlatIds(i)),...this.valueDescriptors.flatMap(a=>a.toFlatIds(i)),...this.dataTypes.flatMap(a=>a.toFlatIds(i))]}getAllBuiltIn(){const i=new Set;return[...this.primitives.flatMap(a=>a.toFlat(i)),...this.builtInBaseEntities.flatMap(a=>a.toFlat(i)),...this.operationDeclarations.flatMap(a=>a.toFlat(i)),...this.globalEventActionDescriptors.flatMap(a=>a.toFlat(i)),...this.loopDeclarations.flatMap(a=>a.toFlat(i)),...this.conditionDeclarations.flatMap(a=>a.toFlat(i)),...this.valueDescriptors.flatMap(a=>a.toFlat(i)),...this.dataTypes.flatMap(a=>a.toFlat(i))]}toFlat(i=new Set){return i.has(this.id)?[]:(i.add(this.id),[this,...this.entities.flatMap(l=>l.toFlat(i)),...this.functions.flatMap(l=>l.toFlat(i)),...this.events.flatMap(l=>l.toFlat(i)),...this.projects.flatMap(l=>l.toFlat(i)),...this.variableDeclarations.flatMap(l=>l.toFlat(i)),...this.variableInstances.flatMap(l=>l.toFlat(i)),...this.conditions.flatMap(l=>l.toFlat(i)),...this.operations.flatMap(l=>l.toFlat(i)),...this.functionCalls.flatMap(l=>l.toFlat(i)),...this.loops.flatMap(l=>l.toFlat(i)),...this.searches.flatMap(l=>l.toFlat(i))])}toFlatIds(i=new Set){return i.has(this.id)?[]:(i.add(this.id),[this.id,...this.entities.flatMap(l=>l.toFlatIds(i)),...this.functions.flatMap(l=>l.toFlatIds(i)),...this.events.flatMap(l=>l.toFlatIds(i)),...this.projects.flatMap(l=>l.toFlatIds(i)),...this.variableDeclarations.flatMap(l=>l.toFlatIds(i)),...this.variableInstances.flatMap(l=>l.toFlatIds(i)),...this.conditions.flatMap(l=>l.toFlatIds(i)),...this.operations.flatMap(l=>l.toFlatIds(i)),...this.functionCalls.flatMap(l=>l.toFlatIds(i)),...this.loops.flatMap(l=>l.toFlatIds(i)),...this.searches.flatMap(l=>l.toFlatIds(i))])}toMeta(){return{id:this.id,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,description:this.description,type:this.type,name:this.name}}toJSON(i=new Set){return i.has(this.id)?this.toReference():(i.add(this.id),{id:this.id,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,type:this.type,name:this.name,description:this.description,entities:this.entities.map(a=>a.toJSON(i)),variableDeclarations:this.variableDeclarations.map(a=>a.toJSON(i)),variableInstances:this.variableInstances.map(a=>a.toJSON(i)),conditions:this.conditions.map(a=>a.toJSON(i)),operations:this.operations.map(a=>a.toJSON(i)),loops:this.loops.map(a=>a.toJSON(i)),searches:this.searches.map(a=>a.toJSON(i)),functions:this.functions.map(a=>a.toJSON(i)),events:this.events.map(a=>a.toJSON(i)),projects:this.projects.map(a=>a.toJSON(i)),functionCalls:this.functionCalls.map(a=>a.toJSON(i))})}toJSONClone(i={uuidStrategy:"uuid"}){const a=new Map,l=new Set,p=this.getAllBuiltInIds();return Object.keys(this.instances).forEach(e=>{if(p.includes(e)){a.set(e,e);return}a.set(e,pt.UUID.uuid())}),l.add(this.id),{id:a.get(this.id),version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,type:this.type,name:this.name,description:this.description,entities:this.entities.map(e=>e.toJSONClone({...i,seenEntityMaps:a,seenEntities:l,newId:null})),projects:this.projects.map(e=>e.toJSONClone({...i,seenEntityMaps:a,seenEntities:l,newId:null})),variableDeclarations:this.variableDeclarations.map(e=>e.toJSONClone({...i,seenEntityMaps:a,seenEntities:l,newId:null})),variableInstances:this.variableInstances.map(e=>e.toJSONClone({...i,seenEntityMaps:a,seenEntities:l,newId:null})),conditions:this.conditions.map(e=>e.toJSONClone({...i,seenEntityMaps:a,seenEntities:l,newId:null})),operations:this.operations.map(e=>e.toJSONClone({...i,seenEntityMaps:a,seenEntities:l,newId:null})),functions:this.functions.map(e=>e.toJSONClone({...i,seenEntityMaps:a,seenEntities:l,newId:null})),events:this.events.map(e=>e.toJSONClone({...i,seenEntityMaps:a,seenEntities:l,newId:null})),functionCalls:this.functionCalls.map(e=>e.toJSONClone({...i,seenEntityMaps:a,seenEntities:l,newId:null})),loops:this.loops.map(e=>e.toJSONClone({...i,seenEntityMaps:a,seenEntities:l,newId:null})),searches:this.searches.map(e=>e.toJSONClone({...i,seenEntityMaps:a,seenEntities:l,newId:null}))}}toReference(i=Ke){var l;let a=this.id;return(l=i.seenEntityMaps)!=null&&l.has(this.id)&&(a=i.seenEntityMaps.get(this.id)),{id:a+"--"+pt.UUID.uuid()+"--ref",type:f.GenericReference,entityId:a,version:this.version,entityType:this.type}}toShallowJSON(i=Ke){var l;let a=this.id;return(l=i.seenEntityMaps)!=null&&l.has(this.id)&&(a=i.seenEntityMaps.get(this.id)),{id:a,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,type:this.type,name:this.name,description:this.description,entities:this.entities.map(p=>p.toReference(i)),functions:this.functions.map(p=>p.toReference(i)),events:this.events.map(p=>p.toReference(i)),projects:this.projects.map(p=>p.toReference(i)),variableDeclarations:this.variableDeclarations.map(p=>p.toReference(i)),variableInstances:this.variableInstances.map(p=>p.toReference(i)),conditions:this.conditions.map(p=>p.toReference(i)),operations:this.operations.map(p=>p.toReference(i)),functionCalls:this.functionCalls.map(p=>p.toReference(i)),loops:this.loops.map(p=>p.toReference(i)),searches:this.searches.map(p=>p.toReference(i))}}toFlatJSON(i=new Set){return i.has(this.id)?[]:(i.add(this.id),[this.toShallowJSON(),...this.entities.flatMap(l=>l.toFlatJSON(i)),...this.functions.flatMap(l=>l.toFlatJSON(i)),...this.events.flatMap(l=>l.toFlatJSON(i)),...this.projects.flatMap(l=>l.toFlatJSON(i)),...this.variableDeclarations.flatMap(l=>l.toFlatJSON(i)),...this.variableInstances.flatMap(l=>l.toFlatJSON(i)),...this.conditions.flatMap(l=>l.toFlatJSON(i)),...this.operations.flatMap(l=>l.toFlatJSON(i)),...this.functionCalls.flatMap(l=>l.toFlatJSON(i)),...this.loops.flatMap(l=>l.toFlatJSON(i)),...this.searches.flatMap(l=>l.toFlatJSON(i))])}toGenerationTarget(){return{id:this.id,type:this.type,name:this.name,description:this.description}}toFlatGenerationTarget(i=new Set){return i.has(this.id)?[]:(i.add(this.id),[...this.entities.flatMap(l=>l.toFlatGenerationTarget(i)),...this.functions.flatMap(l=>l.toFlatGenerationTarget(i)),...this.events.flatMap(l=>l.toFlatGenerationTarget(i)),...this.projects.flatMap(l=>l.toFlatGenerationTarget(i)),...this.variableDeclarations.flatMap(l=>l.toFlatGenerationTarget(i)),...this.variableInstances.flatMap(l=>l.toFlatGenerationTarget(i)),...this.conditions.flatMap(l=>l.toFlatGenerationTarget(i)),...this.operations.flatMap(l=>l.toFlatGenerationTarget(i)),...this.functionCalls.flatMap(l=>l.toFlatGenerationTarget(i)),...this.loops.flatMap(l=>l.toFlatGenerationTarget(i)),...this.searches.flatMap(l=>l.toFlatGenerationTarget(i))])}clearErrors(){return this.errors=[],this.entities.forEach(i=>i.clearErrors()),this.projects.forEach(i=>i.clearErrors()),this.functions.forEach(i=>i.clearErrors()),this.events.forEach(i=>i.clearErrors()),this.variableDeclarations.forEach(i=>i.clearErrors()),this.variableInstances.forEach(i=>i.clearErrors()),this.conditions.forEach(i=>i.clearErrors()),this.operations.forEach(i=>i.clearErrors()),this.functionCalls.forEach(i=>i.clearErrors()),this.loops.forEach(i=>i.clearErrors()),this.searches.forEach(i=>i.clearErrors()),this}validate(){const i=Ome(),a=this.toJSON();return i.safeParse(a),this.validateChildren(),{success:!0,error:null,data:a}}validateChildren(){this.entities.forEach(i=>i.validate()),this.projects.forEach(i=>i.validate()),this.functions.forEach(i=>i.validate()),this.events.forEach(i=>i.validate()),this.variableDeclarations.forEach(i=>i.validate()),this.variableInstances.forEach(i=>i.validate()),this.conditions.forEach(i=>i.validate()),this.operations.forEach(i=>i.validate()),this.functionCalls.forEach(i=>i.validate()),this.loops.forEach(i=>i.validate()),this.searches.forEach(i=>i.validate())}getErrors(){return[...this.errors,...this.entities.flatMap(a=>a.getErrors()),...this.projects.flatMap(a=>a.getErrors()),...this.functions.flatMap(a=>a.getErrors()),...this.events.flatMap(a=>a.getErrors()),...this.variableDeclarations.flatMap(a=>a.getErrors()),...this.variableInstances.flatMap(a=>a.getErrors()),...this.conditions.flatMap(a=>a.getErrors()),...this.operations.flatMap(a=>a.getErrors()),...this.functionCalls.flatMap(a=>a.getErrors()),...this.loops.flatMap(a=>a.getErrors()),...this.searches.flatMap(a=>a.getErrors())]}getShallowErrors(){return this.errors}clone(){return this}getDefinitionEntity(i){return this.entities.find(a=>a.id===i)||null}addDefinitionEntity(i){return this.entities.includes(i)||this.entities.push(i),i}addFunctionDeclaration(i){return this.functions.includes(i)||this.functions.push(i),i}addFunctionCall(i){return this.functionCalls.includes(i)||this.functionCalls.push(i),i}addVariableDeclaration(i){return this.variableDeclarations.includes(i)||this.variableDeclarations.push(i),i}addVariableInstance(i){return this.variableInstances.includes(i)||this.variableInstances.push(i),i}addInstalledProject(i){return this.projects.includes(i)||this.projects.push(i),this}addGlobalEvent(i){return this.events.includes(i)||this.events.push(i),this}addCondition(i){return this.conditions.includes(i)||this.conditions.push(i),this}addOperation(i){return this.operations.includes(i)||this.operations.push(i),this}addLoop(i){return this.loops.includes(i)||this.loops.push(i),this}addSearch(i){return this.searches.includes(i)||this.searches.push(i),this}removeDefinitionEntity(i){const a=this.entities.findIndex(l=>l.id===i.id);if(a>-1){const l=this.entities[a];return this.entities.splice(a,1),l}return null}removeCondition(i){const a=this.conditions.findIndex(l=>l.id===i.id);if(a>-1){const l=this.conditions[a];return this.conditions.splice(a,1),l}return null}removeOperation(i){const a=this.operations.findIndex(l=>l.id===i.id);if(a>-1){const l=this.operations[a];return this.operations.splice(a,1),l}return null}removeLoop(i){const a=this.loops.findIndex(l=>l.id===i.id);if(a>-1){const l=this.loops[a];return this.loops.splice(a,1),l}return null}removeSearch(i){const a=this.searches.findIndex(l=>l.id===i.id);if(a>-1){const l=this.searches[a];return this.searches.splice(a,1),l}return null}removeFunctionCall(i){const a=this.functionCalls.findIndex(l=>l.id===i.id);if(a>-1){const l=this.functionCalls[a];return this.functionCalls.splice(a,1),l}return null}removeVariableInstance(i){const a=this.variableInstances.findIndex(l=>l.id===i.id);if(a>-1){const l=this.variableInstances[a];return this.variableInstances.splice(a,1),l}return null}removeVariableDeclaration(i){const a=this.variableDeclarations.findIndex(l=>l.id===i.id);if(a>-1){const l=this.variableDeclarations[a];return this.variableDeclarations.splice(a,1),l}return null}removeFunctionDeclaration(i){const a=this.functions.findIndex(l=>l.id===i.id);if(a>-1){const l=this.functions[a];return this.functions.splice(a,1),l}return null}removeInstalledProject(i){const a=this.projects.findIndex(l=>l.id===i.id);if(a>-1){const l=this.projects[a];return this.projects.splice(a,1),l}return null}removeGlobalEvent(i){const a=this.events.findIndex(l=>l.id===i.id);if(a>-1){const l=this.events[a];return this.events.splice(a,1),l}return null}removeTopLevelVariableDeclaration(i){if(i.type!==f.VariableDeclaration)return null;const a=this.variableDeclarations.findIndex(l=>l.id===i.id);if(a>-1){const l=this.variableDeclarations[a];return this.variableDeclarations.splice(a,1),l}return null}getEntryPoints(){return[...this.functions,...this.events,...this.entities.flatMap(a=>a.methods)]}getTerminationStatements(){return[...this.getEntryPoints().reduce((a,l)=>{const p=_t(l);return[...a,...p.filter(e=>e.type===f.ReturnStatement||e.type===f.ContinueStatement||e.type===f.BreakStatement)]},[])]}getFunctionDeclaration(i){return this.functions.find(a=>a.id===i)||null}getConditions(){return[...this.conditions,...this.getEntryPoints().reduce((a,l)=>{const p=_t(l);return[...a,...p.filter(e=>e.type===f.Condition)]},[]),...this.functionCalls.reduce((a,l)=>{const p=_t(l);return[...a,...p.filter(e=>e.type===f.Condition)]},[]),...this.operations.reduce((a,l)=>{const p=_t(l);return[...a,...p.filter(e=>e.type===f.Condition)]},[]),...this.loops.reduce((a,l)=>{const p=_t(l);return[...a,...p.filter(e=>e.type===f.Condition)]},[]),...this.searches.reduce((a,l)=>{const p=_t(l);return[...a,...p.filter(e=>e.type===f.Condition)]},[])]}getOperations(){return[...this.operations,...this.getEntryPoints().reduce((a,l)=>{const p=_t(l);return[...a,...p.filter(e=>e.type===f.Operation)]},[]),...this.functionCalls.reduce((a,l)=>{const p=_t(l);return[...a,...p.filter(e=>e.type===f.Operation)]},[]),...this.conditions.reduce((a,l)=>{const p=_t(l);return[...a,...p.filter(e=>e.type===f.Operation)]},[]),...this.loops.reduce((a,l)=>{const p=_t(l);return[...a,...p.filter(e=>e.type===f.Operation)]},[]),...this.searches.reduce((a,l)=>{const p=_t(l);return[...a,...p.filter(e=>e.type===f.Operation)]},[])]}getFunctionCalls(){return[...this.functionCalls,...this.getEntryPoints().reduce((a,l)=>{const p=_t(l);return[...a,...p.filter(e=>e.type===f.FunctionCall)]},[]),...this.conditions.reduce((a,l)=>{const p=_t(l);return[...a,...p.filter(e=>e.type===f.FunctionCall)]},[]),...this.operations.reduce((a,l)=>{const p=_t(l);return[...a,...p.filter(e=>e.type===f.FunctionCall)]},[]),...this.loops.reduce((a,l)=>{const p=_t(l);return[...a,...p.filter(e=>e.type===f.FunctionCall)]},[]),...this.searches.reduce((a,l)=>{const p=_t(l);return[...a,...p.filter(e=>e.type===f.FunctionCall)]},[])]}getVariables(){return[...this.variableDeclarations,...this.getEntryPoints().reduce((a,l)=>{const p=yr(l);return[...a,...p]},[]),...this.functionCalls.reduce((a,l)=>{const p=yr(l);return[...a,...p]},[]),...this.conditions.reduce((a,l)=>{const p=yr(l);return[...a,...p]},[]),...this.operations.reduce((a,l)=>{const p=yr(l);return[...a,...p]},[]),...this.loops.reduce((a,l)=>{const p=yr(l);return[...a,...p]},[]),...this.searches.reduce((a,l)=>{const p=yr(l);return[...a,...p]},[])]}getVariableInstances(){return[...this.variableInstances,...this.entities.reduce((a,l)=>[...a,...l.methods.flatMap(p=>{const y=_t(p).filter(v=>v.type===f.VariableInstance);return[...a,...y]})],[]),...this.getEntryPoints().reduce((a,l)=>{const e=yr(l).filter(y=>y.type===f.VariableInstance);return[...a,...e]},[]),...this.functionCalls.reduce((a,l)=>{const e=yr(l).filter(y=>y.type===f.VariableInstance);return[...a,...e]},[]),...this.conditions.reduce((a,l)=>{const e=yr(l).filter(y=>y.type===f.VariableInstance);return[...a,...e]},[]),...this.operations.reduce((a,l)=>{const e=yr(l).filter(y=>y.type===f.VariableInstance);return[...a,...e]},[]),...this.loops.reduce((a,l)=>{const e=yr(l).filter(y=>y.type===f.VariableInstance);return[...a,...e]},[]),...this.searches.reduce((a,l)=>{const e=yr(l).filter(y=>y.type===f.VariableInstance);return[...a,...e]},[])]}getVariableDeclarations(){return R([...this.variableDeclarations,...this.entities.reduce((a,l)=>[...a,...l.methods.flatMap(p=>{const y=_t(p).filter(v=>v.type===f.VariableDeclaration);return[...a,...y]})],[]),...this.getEntryPoints().reduce((a,l)=>{const e=yr(l).filter(y=>y.type===f.VariableDeclaration);return[...a,...e]},[]),...this.functionCalls.reduce((a,l)=>{const e=yr(l).filter(y=>y.type===f.VariableDeclaration);return[...a,...e]},[]),...this.conditions.reduce((a,l)=>{const e=yr(l).filter(y=>y.type===f.VariableDeclaration);return[...a,...e]},[]),...this.operations.reduce((a,l)=>{const e=yr(l).filter(y=>y.type===f.VariableDeclaration);return[...a,...e]},[]),...this.loops.reduce((a,l)=>{const e=yr(l).filter(y=>y.type===f.VariableDeclaration);return[...a,...e]},[]),...this.searches.reduce((a,l)=>{const e=yr(l).filter(y=>y.type===f.VariableDeclaration);return[...a,...e]},[])])}getLoops(){return[...this.loops,...this.getEntryPoints().reduce((a,l)=>{const p=_t(l);return[...a,...p.filter(e=>e.type===f.Loop)]},[]),...this.functionCalls.reduce((a,l)=>{const p=_t(l);return[...a,...p.filter(e=>e.type===f.Loop)]},[]),...this.conditions.reduce((a,l)=>{const p=_t(l);return[...a,...p.filter(e=>e.type===f.Loop)]},[]),...this.operations.reduce((a,l)=>{const p=_t(l);return[...a,...p.filter(e=>e.type===f.Loop)]},[]),...this.searches.reduce((a,l)=>{const p=_t(l);return[...a,...p.filter(e=>e.type===f.Loop)]},[])]}getSearches(){return[...this.searches,...this.getEntryPoints().reduce((a,l)=>{const p=_t(l);return[...a,...p.filter(e=>e.type===f.Search)]},[]),...this.functionCalls.reduce((a,l)=>{const p=_t(l);return[...a,...p.filter(e=>e.type===f.Search)]},[]),...this.conditions.reduce((a,l)=>{const p=_t(l);return[...a,...p.filter(e=>e.type===f.Search)]},[]),...this.operations.reduce((a,l)=>{const p=_t(l);return[...a,...p.filter(e=>e.type===f.Search)]},[]),...this.loops.reduce((a,l)=>{const p=_t(l);return[...a,...p.filter(e=>e.type===f.Search)]},[])]}attachOrphanReferences(){const i=this.getVariableInstances(),a=this.getVariableDeclarations();return i.forEach(l=>{if(!l.declaration){const p=l.initialData,e=p.declaration.entityId||p.declaration.id,y=a.find(v=>v.id===e);y&&l.setDeclaration(y)}}),this}getBuiltInPersistedEntity(){return this.builtInBaseEntities.find(i=>i.name===Be.PERSISTED_ENTITY)||null}requestActiveDynamicValue(i){var l,p;const a=(p=(l=this.parentContext).requestActiveDynamicValue)==null?void 0:p.call(l,i);if(!a){const e=i.getDefaultValue();return e?{value:e,type:be.DefaultValue,inheritanceLink:null,valueOwner:i}:null}return a||null}requestModule(i){if(this.parentContext.requestModule){const a=this.parentContext.requestModule(i);return!a&&i==="uuid"?Wu:a||null}return i==="uuid"?Wu:null}undo(){ke.log("Undoing, from: ",this.undoableStackValueIndex),this.undoableStackValueIndex=this.undoableStackValueIndex-1,ke.log("To: ",this.undoableStackValueIndex);const i=this.history[this.undoableStackValueIndex+1],a=this.history[this.undoableStackValueIndex];return ke.log("Current change set: ",i==null?void 0:i.toJSON()),ke.log("Change set to restore: ",a==null?void 0:a.toJSON()),tA(i||"initial",a||"initial",this)}redo(){ke.log("Undoing, from: ",this.undoableStackValueIndex),this.undoableStackValueIndex=this.undoableStackValueIndex+1,ke.log("To: ",this.undoableStackValueIndex);const i=this.history[this.undoableStackValueIndex-1],a=this.history[this.undoableStackValueIndex];return ke.log("Current change set: ",i==null?void 0:i.toJSON()),ke.log("Change set to restore: ",a.toJSON()),tA(i||"initial",a||"initial",this)}applyExternalChangeSet(i){const a=i.payload,l=this.addChangeSet(new F(this,i.userAuthor,i.emittedAt,this)),p=a.updated[this.id];if(!p)throw new Error("Project root not found in change set transfer. Cannot apply changes.");const e={...a.added,...a.updated,...a.removed},y=[...Object.keys(a.added),...Object.keys(a.updated),...Object.keys(a.removed)];y.forEach(T=>{var w;if(!e[T]){ke.warn(`Entity '${T}' not found in change set transfer. Cannot apply changes.`);const A=(w=this.get(T))==null?void 0:w.toShallowJSON();throw A?ke.warn("Entity in project: ",A):ke.warn("Entity not in project"),new Error(`Entity '${T}' not found in change set transfer. Cannot apply changes.`)}});const v=new zn(p);return v.flatRecord=e,v.order=y,v.orderEntities(),ke.log("All entities: ",v.order.map((T,w)=>`${w+1}: ${e[T].type} - ${T}`).join(`,
409
- `)),ke.log("Persisting new additions"),v.visit(async(T,w)=>{if(a.added[T.id]){ke.log("Adding: ",T.id);try{const A=te(T,this);if(A.hydrateAncestors(),A.addSelfToProject(l),l.add(A,S.Added),!this.get(T.id))throw new Error(`Entity ${T.id} was not added to the project`)}catch(A){ke.error("Error: ",A),ke.error("Errored entity: ",T)}}}),ke.log("Persisting updates"),v.visit(async(T,w)=>{if(a.updated[T.id]){ke.log("Updating: ",T.id);try{const A=this.get(T.id);A?(A.updateWithShallowTransfer(T,l),l.add(A,S.Updated)):ke.warn(`Active version of ${T.id} not found when applying external changes`)}catch(A){ke.error("Error: ",A),ke.error("Errored entity: ",T)}}}),ke.log("Persisting removals"),v.visit(async(T,w)=>{if(a.removed[T.id]){ke.log("Removing: ",T.id);try{const A=this.get(T.id);A&&A.remove({ignoreUpstream:!1},l)}catch(A){ke.error("Error: ",A),ke.error("Errored entity: ",T)}}}),l}toFullProjectTransfer(){const i=new zn(this),a={};return i.visit(l=>{const p=l.toShallowJSON();a[l.id]=p}),{order:i.order,size:i.order.length,record:a}}};g(pt,"parentContext",Qw),g(pt,"sessionAuthor","1"),g(pt,"repository",{APICreate:async(i,...a)=>i,APIUpdate:async(i,...a)=>i,APIDelete:async(i,...a)=>i,APIClone:async(i,...a)=>{},APILoad:async(i,...a)=>null,APILoadVersion:async(i,a,...l)=>null}),g(pt,"type",f.Project),g(pt,"USER_MANAGED_PARENT_TYPES",[]),g(pt,"PARENT_TYPES",[...pt.USER_MANAGED_PARENT_TYPES]),g(pt,"MUTABLE_BASE_PROPERTIES",["name","description"]),g(pt,"INMUTABLE_BASE_PROPERTIES",["id","type","version","createdAt","author","previousVersion"]),g(pt,"BASE_PROPERTIES",[...pt.MUTABLE_BASE_PROPERTIES,...pt.INMUTABLE_BASE_PROPERTIES]),g(pt,"MUTABLE_META_PROPERTIES",[...pt.MUTABLE_BASE_PROPERTIES,"x","y"]),g(pt,"INMUTABLE_META_PROPERTIES",[...pt.INMUTABLE_BASE_PROPERTIES]),g(pt,"META_PROPERTIES",[...pt.MUTABLE_META_PROPERTIES,...pt.INMUTABLE_META_PROPERTIES]),g(pt,"MUTABLE_UPSTREAM_PROPERTIES",[]),g(pt,"INMUTABLE_UPSTREAM_PROPERTIES",["primitives","builtInBaseEntities","operationDeclarations","globalEventActionDescriptors","loopDeclarations","builtInInstances"]),g(pt,"UPSTREAM_PROPERTIES",[...pt.MUTABLE_UPSTREAM_PROPERTIES,...pt.INMUTABLE_UPSTREAM_PROPERTIES]),g(pt,"MUTABLE_DOWNSTREAM_PROPERTIES",["entities","projects","functions","events","variableDeclarations","variableInstances","conditions","operations","functionCalls","loops","searches"]),g(pt,"INMUTABLE_DOWNSTREAM_PROPERTIES",[]),g(pt,"DOWNSTREAM_PROPERTIES",[...pt.MUTABLE_DOWNSTREAM_PROPERTIES,...pt.INMUTABLE_DOWNSTREAM_PROPERTIES]),g(pt,"PROPERTIES",[...pt.META_PROPERTIES,...pt.UPSTREAM_PROPERTIES,...pt.DOWNSTREAM_PROPERTIES]);let N=pt;class xS extends wt{constructor(i){super(un,i);g(this,"id",sr.Parallel);g(this,"name",sr.Parallel);g(this,"description","Programmatically execute a list of actions one after the other");g(this,"version","1");g(this,"autoexecutable",!0);g(this,"initialData",un);g(this,"type",f.ActionDescriptor);g(this,"inputs",[]);g(this,"outputs",[]);g(this,"error",null);g(this,"project");this.project=i,this.inputs=un.inputs.map(a=>{const l=te(a,this.project);return l.setParent(this,null),l.initChildren(null),l}),this.outputs=un.outputs.map(a=>{const l=te(a,this.project);return l.setParent(this,null),l.initChildren(null),l}),this.error=un.error?te(un.error,this.project):null}}class FS extends wt{constructor(i){super(qi,i);g(this,"id",qi.id);g(this,"name",qi.name);g(this,"description",qi.description);g(this,"version",qi.version);g(this,"autoexecutable",!1);g(this,"initialData",qi);g(this,"type",f.ActionDescriptor);g(this,"inputs",[]);g(this,"outputs",[]);g(this,"error",null);g(this,"project");this.project=i,this.inputs=qi.inputs.map(a=>{const l=te(a,this.project);return l.setParent(this,null),l.initChildren(null),l}),this.outputs=qi.outputs.map(a=>{const l=te(a,this.project);return l.setParent(this,null),l.initChildren(null),l}),this.error=qi.error?te(qi.error,this.project):null}}class GS extends wt{constructor(i){super(ba,i);g(this,"id",sr.Sequential);g(this,"name",sr.Sequential);g(this,"description","Programmatically execute a list of actions one after the other");g(this,"version","1");g(this,"autoexecutable",!0);g(this,"initialData",ba);g(this,"type",f.ActionDescriptor);g(this,"inputs",[]);g(this,"outputs",[]);g(this,"error",null);g(this,"project");this.project=i,this.inputs=ba.inputs.map(a=>{const l=te(a,this.project);return l.setParent(this,null),l.initChildren(null),l}),this.outputs=ba.outputs.map(a=>{const l=te(a,this.project);return l.setParent(this,null),l.initChildren(null),l}),this.error=ba.error?te(ba.error,this.project):null}}class FAe extends wt{constructor(u){super(Xu,u)}}class GAe extends wt{constructor(u){super(So,u)}}class SAe extends wt{constructor(i){super(Ko,i);g(this,"autoexecutable",!0)}getEntityToMatchInputMap(i){return i.inputs.find(a=>{var l;return((l=a.declaration)==null?void 0:l.id)===Te.operation[cr.Validate].inputs.entityToMatch.id})||null}getDataToValidateInputMap(i){return i.inputs.find(a=>{var l;return((l=a.declaration)==null?void 0:l.id)===Te.operation[cr.Validate].inputs.dataToValidate.id})||null}getOutputDataOutputMap(i){return i.outputs.find(a=>{var l;return((l=a.declaration)==null?void 0:l.id)===Te.operation[cr.Validate].outputs.outputEntity.id})||null}getEntityToMatch(i,a=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"get-entity-to-match-validate-data"))){var e;const l=((e=this.project.requestActiveDynamicValue(i))==null?void 0:e.value)||null,p=l==null?void 0:l.valueAsTypeSingle;return a==null||a.attemptAutoclose("get-entity-to-match-validate-data",this.id),p}syncOperationInstance(i,a=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"sync-operation-instance-validate-data"))){const l=[],p=[],e=[],y=[],v=this.getEntityToMatchInputMap(i);if(v){const{added:A,updated:P,removed:V,affected:U}=this.syncEntityToMatchInputMapDataType(v,a);l.push(...P),p.push(...A),e.push(...V),y.push(...U)}const T=this.getDataToValidateInputMap(i);if(T){const{added:A,updated:P,removed:V,affected:U}=this.syncDataToValidateInputMapDataType(T,a);l.push(...P),p.push(...A),e.push(...V),y.push(...U)}const w=this.getOutputDataOutputMap(i);if(w){const{added:A,updated:P,removed:V,affected:U}=this.syncOutputDataOutputMapDataType(w,a);l.push(...P),p.push(...A),e.push(...V),y.push(...U)}return a==null||a.attemptAutoclose("sync-operation-instance-validate-data",this.id),{updated:R(l),added:R(p),removed:R(e),affected:R(y),self:i}}syncEntityToMatchInputMapDataType(i,a=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"sync-entity-to-match-input-map-data-type"))){var w,A,P,V,U,G,K,J,ie,X,ce,re,he,Y,H,pe;const l=[],p=[],e=[],y=[];if(((w=i.declaration)==null?void 0:w.id)!==Te.operation[cr.Validate].inputs.entityToMatch.id)return a==null||a.attemptAutoclose("sync-entity-to-match-input-map-data-type",this.id),{updated:[],added:[],removed:[],affected:[],self:null};const v=((A=this.project.requestActiveDynamicValue(i))==null?void 0:A.value)||null,T=v==null?void 0:v.valueAsTypeSingle;if(!i.dataType){const z={id:N.UUID.uuid(),version:N.UUID.uuid(),createdAt:(a==null?void 0:a.timestamp)||new Date().toISOString(),author:(a==null?void 0:a.author)||N.sessionAuthor,previousVersion:null,deleted:!1,type:f.DataType,parentRelationType:null,options:((P=i.declaration.dataType)==null?void 0:P.options)||null,implementationChooseOne:((V=i.declaration.dataType)==null?void 0:V.implementationChooseOne)||!1,staticEntities:((U=i.declaration.dataType)==null?void 0:U.staticEntities)??null,interactiveEntities:((G=i.declaration.dataType)==null?void 0:G.interactiveEntities)??null,actionEntities:((K=i.declaration.dataType)==null?void 0:K.actionEntities)??null,isList:((J=i.declaration.dataType)==null?void 0:J.isList)||!1,andChildrenGroup:null,orChildrenGroup:null,asType:!0,entity:(T==null?void 0:T.toJSON())||null,like:!0,inferred:!0,parent:i.toReference()},oe=te(z,i.project);oe.hydrateAncestors(),oe.setParent(i,a),oe.initChildren(a),oe.setEntity(T,a),a==null||a.add(oe,S.Added),l.push(oe),i.setDataType(oe,a)}return(H=i.dataType)==null||H.metaSync({inferred:!0,like:!1,asType:!0,options:((ie=i.declaration.dataType)==null?void 0:ie.options)||null,implementationChooseOne:((X=i.declaration.dataType)==null?void 0:X.implementationChooseOne)||!1,staticEntities:((ce=i.declaration.dataType)==null?void 0:ce.staticEntities)??null,interactiveEntities:((re=i.declaration.dataType)==null?void 0:re.interactiveEntities)??null,actionEntities:((he=i.declaration.dataType)==null?void 0:he.actionEntities)??null,isList:((Y=i.declaration.dataType)==null?void 0:Y.isList)||!1},a),(pe=i.dataType)==null||pe.setEntity(T,a),i.dataType&&p.push(i.dataType),a==null||a.attemptAutoclose("sync-entity-to-match-input-map-data-type",this.id),{updated:R(p),added:R(l),removed:R(e),affected:R(y),self:i.dataType}}syncDataToValidateInputMapDataType(i,a=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"sync-data-to-validate-input-map-data-type"))){var A,P,V;const l=[],p=[],e=[],y=[];if(((A=i.declaration)==null?void 0:A.id)!==Te.operation[cr.Validate].inputs.dataToValidate.id)return a==null||a.attemptAutoclose("sync-data-to-validate-input-map-data-type",this.id),{updated:[],added:[],removed:[],affected:[],self:null};const v=this.getEntityToMatchInputMap(i.parent);if(!v)return a==null||a.attemptAutoclose("sync-data-to-validate-input-map-data-type",this.id),{updated:[],added:[],removed:[],affected:[],self:null};if(!this.getEntityToMatch(v,a))return a==null||a.attemptAutoclose("sync-data-to-validate-input-map-data-type",this.id),{updated:[],added:[],removed:[],affected:[],self:null};if(!i.dataType){const U={id:N.UUID.uuid(),version:N.UUID.uuid(),createdAt:(a==null?void 0:a.timestamp)||new Date().toISOString(),author:(a==null?void 0:a.author)||N.sessionAuthor,previousVersion:null,deleted:!1,type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,isList:!1,andChildrenGroup:null,orChildrenGroup:null,staticEntities:null,interactiveEntities:null,actionEntities:null,asType:!1,entity:null,like:!0,inferred:!0,parent:i.toReference()},G=te(U,i.project);G.setParent(i,a),G.initChildren(a),a==null||a.add(G,S.Added),l.push(G),i.setDataType(G,a)}(P=i.dataType)==null||P.metaSync({inferred:!0,like:!0,asType:!1},a);const w=this.getEntityToMatch(v,a);return(V=i.dataType)==null||V.setEntity(w,a),i.dataType&&p.push(i.dataType),a==null||a.attemptAutoclose("sync-data-to-validate-input-map-data-type",this.id),{updated:R(p),added:R(l),removed:R(e),affected:R(y),self:i.dataType}}syncOutputDataOutputMapDataType(i,a=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"sync-output-data-output-map-data-type"))){var P,V,U,G;const l=[],p=[],e=[],y=[];if(((P=i.declaration)==null?void 0:P.id)!==Te.operation[cr.Validate].outputs.outputEntity.id)return a==null||a.attemptAutoclose("sync-output-data-output-map-data-type",this.id),{updated:[],added:[],removed:[],affected:[],self:null};const v=this.getEntityToMatchInputMap(i.parent);if(!v)return a==null||a.attemptAutoclose("sync-output-data-output-map-data-type",this.id),{updated:[],added:[],removed:[],affected:[],self:null};if(!this.getEntityToMatch(v,a))return a==null||a.attemptAutoclose("sync-output-data-output-map-data-type",this.id),{updated:[],added:[],removed:[],affected:[],self:null};const w=((V=this.project.requestActiveDynamicValue(v))==null?void 0:V.value)||null,A=(w==null?void 0:w.valueAsTypeSingle)||null;if(!i.dataType){const K={id:N.UUID.uuid(),version:N.UUID.uuid(),createdAt:(a==null?void 0:a.timestamp)||new Date().toISOString(),author:(a==null?void 0:a.author)||N.sessionAuthor,previousVersion:null,deleted:!1,type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,isList:!1,andChildrenGroup:null,orChildrenGroup:null,asType:!1,entity:(A==null?void 0:A.toJSON())||null,like:!0,inferred:!0,parent:i.toReference()},J=te(K,i.project);J.hydrateAncestors(),J.setParent(i,a),J.initChildren(a),J.setEntity(A,a),a==null||a.add(J,S.Added),l.push(J),i.setDataType(J,a)}return(U=i.dataType)==null||U.metaSync({inferred:!0,like:!0,asType:!1},a),(G=i.dataType)==null||G.setEntity(A,a),i.dataType&&p.push(i.dataType),a==null||a.attemptAutoclose("sync-output-data-output-map-data-type",this.id),{updated:R(p),added:R(l),removed:R(e),affected:R(y),self:i.dataType}}inferInputMapDataType(i,a=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"infer-input-map-data-type-validate-data"))){var p,e,y;if(((p=i.declaration)==null?void 0:p.id)===Te.operation[cr.Validate].inputs.entityToMatch.id){const{added:v,updated:T,removed:w,affected:A}=this.syncEntityToMatchInputMapDataType(i,a);return a==null||a.attemptAutoclose("infer-input-map-data-type",this.id),{updated:R(T),added:R(v),removed:R(w),affected:R(A),self:i.dataType}}if(((e=i.declaration)==null?void 0:e.id)===Te.operation[cr.Validate].inputs.dataToValidate.id){const{added:v,updated:T,removed:w,affected:A}=this.syncDataToValidateInputMapDataType(i,a);return a==null||a.attemptAutoclose("infer-input-map-data-type",this.id),{updated:R(T),added:R(v),removed:R(w),affected:R(A),self:i.dataType}}const l=(y=i.declaration)==null?void 0:y.getDataType(a);if(l&&l.isResolved)return a==null||a.attemptAutoclose("infer-input-map-data-type-validate-data",this.id),{updated:[],added:[],removed:[],affected:[],self:l};if(i.readsValue){const v=hn(i.readsValue,a);return a==null||a.attemptAutoclose("infer-input-map-data-type-validate-data",this.id),{updated:[],added:[],removed:[],affected:[],self:v}}return a==null||a.attemptAutoclose("infer-input-map-data-type-validate-data",this.id),{updated:[],added:[],removed:[],affected:[],self:null}}inferOutputMapDataType(i,a=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"infer-output-map-data-type-validate-data"))){var l;if(((l=i.declaration)==null?void 0:l.id)===Te.operation[cr.Validate].outputs.outputEntity.id){const{added:p,updated:e,removed:y,affected:v}=this.syncOutputDataOutputMapDataType(i,a);return a==null||a.attemptAutoclose("infer-output-map-data-type-validate-data",this.id),{updated:R(e),added:R(p),removed:R(y),affected:R(v),self:i.dataType}}return{updated:[],added:[],removed:[],affected:[],self:null}}}class KAe extends wt{constructor(u){super(Fv,u)}}class kAe extends wt{constructor(u){super(Sv,u)}}class qAe extends wt{constructor(u){super(Kv,u)}}class JAe extends wt{constructor(u){super(nh,u)}}class ZAe extends wt{constructor(u){super(rh,u)}}class HAe extends wt{constructor(u){super(zu,u)}}function WAe(d){const u=[new GS(d),new xS(d),new FS(d),new FAe(d),new GAe(d),new SAe(d),new JAe(d),new KAe(d),new qAe(d),new kAe(d),new ZAe(d),new HAe(d),new wt(xv,d),new wt(jv,d),new wt(Xv,d),new wt(Qv,d),new wt(eE,d),new wt(tE,d),new wt(rE,d),new wt(iE,d),new wt(sE,d),new wt(nE,d),new wt(aE,d),new wt(oE,d)];return u.forEach(i=>{i.initChildren(null),d.subscribeBuiltInInstance(i)}),d.operationDeclarations=u,u}class SS extends ea{constructor(i){super(Ri,i);g(this,"initialData");g(this,"id",Be.PERSISTED_ENTITY);g(this,"version","1");g(this,"name",Be.PERSISTED_ENTITY);g(this,"description",Ri.description);g(this,"type",f.BuiltInBaseEntity);g(this,"abstract",Ri.abstract);g(this,"static",Ri.static);g(this,"properties",[]);g(this,"methods",[]);g(this,"abstractMethods",[]);g(this,"extends",[]);g(this,"errors",[]);g(this,"project");this.initialData=Ri,this.project=i,this.id=Ri.id,this.version=Ri.version,this.name=Ri.name,this.static=Ri.static,this.abstract=Ri.abstract,this.properties=this.initialData.properties.map(a=>{const l=te(a,this.project);return l.setParent(this,null),l.initChildren(null),l}),this.methods=this.initialData.methods.map(a=>{const l=te(a,this.project);return l.parent=this,l}),this.abstractMethods=this.initialData.abstractMethods.map(a=>{const l=te(a,this.project);return l.parent=this,l}),this.extends=this.initialData.extends.map(a=>te(a,this.project))}}var KS=(d=>(d.StatusCodeMustBeNumber="status-code-must-be-number",d.StatusCodeMustBeBetween100And599="status-code-must-be-between-100-and-599",d))(KS||{});function kS(d,u){const i=[];if(typeof u!="number"){const a=new lr({id:d.id+"--status-code-must-be-number",message:`Entity of type ${d.type} with id "${d.id}" has an invalid value "${u}". The value must be a number.`,issue:null,severity:q.Error,code:"status-code-must-be-number",entity:d});return i.push(a),{errors:i,override:u}}if(u<100){const a=new lr({id:d.id+"--status-code-must-be-between-100-and-599",message:`Entity of type ${d.type} with id "${d.id}" has an invalid value "${u}". The value must be a number between 100 and 599.`,issue:null,severity:q.Error,code:"status-code-must-be-between-100-and-599",entity:d});i.push(a)}if(u>599){const a=new lr({id:d.id+"--status-code-must-be-between-100-and-599",message:`Entity of type ${d.type} with id "${d.id}" has an invalid value "${u}". The value must be a number between 100 and 599.`,issue:null,severity:q.Error,code:"status-code-must-be-between-100-and-599",entity:d});i.push(a)}return{errors:i,override:u}}class qS extends ea{constructor(i){super(ls,i);g(this,"initialData");g(this,"id",Be.PERSISTED_ENTITY);g(this,"version","1");g(this,"name",Be.PERSISTED_ENTITY);g(this,"description",ls.description);g(this,"type",f.BuiltInBaseEntity);g(this,"abstract",ls.abstract);g(this,"static",ls.static);g(this,"properties",[]);g(this,"methods",[]);g(this,"abstractMethods",[]);g(this,"extends",[]);g(this,"errors",[]);g(this,"project");this.initialData=ls,this.project=i,this.id=ls.id,this.version=ls.version,this.name=ls.name,this.static=ls.static,this.abstract=ls.abstract,this.properties=this.initialData.properties.map(e=>{const y=te(e,this.project);return y.setParent(this,null),y.initChildren(null),y}),this.methods=this.initialData.methods.map(e=>{const y=te(e,this.project);return y.parent=this,y}),this.abstractMethods=this.initialData.abstractMethods.map(e=>{const y=te(e,this.project);return y.parent=this,y}),this.extends=this.initialData.extends.map(e=>te(e,this.project));const a=this.properties.find(e=>e.id===Te["built-in-base-entity"].BUILT_IN_HTTP_ENDPOINT_ENTITY.properties.path.id);if(!a)throw new Error("Path property not found in endpoint entity");a._codeNativeValueValidation=(e,y)=>y5(e,y);const l=this.abstractMethods.find(e=>e.id===Te["built-in-base-entity"].BUILT_IN_HTTP_ENDPOINT_ENTITY.methods.handler.id);if(!l)throw new Error("Handler method not found in endpoint entity");const p=l.outputs.find(e=>e.id===Te["built-in-base-entity"].BUILT_IN_HTTP_ENDPOINT_ENTITY.methods.handler.outputs.statusCode.id);if(!p)throw new Error("Status code output not found in handler method");p.codeNativeValueValidation=(e,y)=>kS(e,y)}}const YAe="test_primitive_entities_export";class zAe extends ea{constructor(i){super(Ei,i);g(this,"initialData");g(this,"id",Be.PERSISTED_ENTITY);g(this,"version","1");g(this,"name",Be.PERSISTED_ENTITY);g(this,"description",Ei.description);g(this,"type",f.BuiltInBaseEntity);g(this,"abstract",Ei.abstract);g(this,"static",Ei.static);g(this,"properties",[]);g(this,"methods",[]);g(this,"abstractMethods",[]);g(this,"extends",[]);g(this,"errors",[]);g(this,"project");this.initialData=Ei,this.project=i,this.id=Ei.id,this.version=Ei.version,this.name=Ei.name,this.static=Ei.static,this.abstract=Ei.abstract,this.properties=this.initialData.properties.map(l=>{const p=te(l,this.project);return p.setParent(this,null),p.initChildren(null),p}),this.methods=this.initialData.methods.map(l=>{const p=te(l,this.project);return p.parent=this,p}),this.abstractMethods=this.initialData.abstractMethods.map(l=>{const p=te(l,this.project);return p.parent=this,p}),this.extends=this.initialData.extends.map(l=>te(l,this.project));const a=this.properties.find(l=>l.id===Te["built-in-base-entity"].BUILT_IN_RELATIONAL_DATABASE_ENTITY.properties.identifier.id);if(!a)throw new Error("Path property not found in endpoint entity");a._codeNativeValueValidation=(l,p)=>m5(l,p)}}function XAe(d){const u=[new SS(d),new qS(d),new zAe(d),new ea(gh,d)];return u.forEach(i=>{d.subscribeBuiltInInstance(i)}),d.builtInBaseEntities=u,u}function QAe(d){const u=[new Qi(Ye,d),new Qi(Ea,d),new Qi(vt,d),new Qi(Nv,d),new Qi(vi,d),new Qi(Ta,d),new Qi(Ln,d),new Qi(Ia,d),new Qi(Ql,d)];return u.forEach(i=>{d.subscribeBuiltInInstance(i)}),d.primitives=u,u}function ebe(d){const u=[new wt(Oh,d)];return u.forEach(i=>{i.initChildren(null),d.subscribeBuiltInInstance(i)}),d.globalEventActionDescriptors=u,u}function tbe(d){const u=[new wt(rc,d),new wt(Ja,d),new wt(ec,d),new wt(rd,d),new wt(id,d),new wt(vh,d)];u.forEach(a=>{a.initChildren(null),d.subscribeBuiltInInstance(a)}),d.loopDeclarations=u;const i=[new wt(Ah,d),new wt(tc,d),new wt(Th,d),new wt(pE,d),new wt(hE,d),new wt(Eh,d)];return i.forEach(a=>{a.initChildren(null),d.subscribeBuiltInInstance(a)}),d.loopDeclarationsBodies=i,u}function rbe(d){const u=[new mn(Ch,d),new mn(ME,d)];return u.forEach(i=>{i.initChildren(null),d.subscribeBuiltInInstance(i)}),d.valueDescriptors=u,u}function ibe(d){const u=[new wt(Xo,d),new wt(NE,d),new wt(ld,d)];return u.forEach(i=>{i.initChildren(null),d.subscribeBuiltInInstance(i)}),d.conditionDeclarations=u,u}const _l={},Um={},df={empty:!1,enrich:!0,mock:!1,ignoreCache:!1,onFetch:async()=>null,manuallyInit:!1};function JS(d,u={enrich:!0,shallowErrors:!1},i){const a={enrich:!0,shallowErrors:!1,...u},{enrich:l,shallowErrors:p}=a,e=d.project,y=d.record,v=new zn(e),T=new Set;y[e.id]=e,T.add(e.id);const w=L().toISOString();Object.values(y).forEach(V=>{!V||v.allBuiltInEntityIds.includes(V.id)||T.add(V.id)}),v.order=Array.from(T),v.flatRecord=y,v.orderEntities();const A=jm(d.project,i);A.instances[e.id]=A;const P=l?A.addChangeSet(new F(A,N.sessionAuthor,w,A,!0,"project-init-from-fetch-result")):null;return v.visit(V=>{if(V.id===A.id)return;const U=te(V,A);try{U.hydrateAncestors(),U.addSelfToProject(null);const G=Xd(V);Object.keys(G.downstream).forEach(K=>{const J=A.get(K);J&&J.hydrateAncestors()})}catch(G){if(p)ke.error("Error hydrating ancestors: ",G);else throw G}}),l?(v.visit(V=>{if(V.id===A.id)return;const U=A.get(V.id);U&&U.afterAllChildrenInitialized(P)}),A.afterAllChildrenInitialized(P)):xm(A,w).forEach(U=>{U.remove({ignoreUpstream:!0},null)}),A.instancesList.forEach(V=>{V.previousVersion=null}),P==null||P.attemptAutoclose("project-init-from-fetch-result",A.id),A}async function sbe(d,u=df){const i={...df,...u};if(i.empty)return{data:{project:{id:d.id,type:f.Project,version:N.UUID.uuid(),createdAt:L().toISOString(),author:N.sessionAuthor,previousVersion:null,deleted:!1,name:null,description:null,projects:[],entities:[],operations:[],functions:[],variableDeclarations:[],variableInstances:[],functionCalls:[],conditions:[],loops:[],searches:[],events:[]},record:{}}};if(i.mock){const l={...ZT};return l.id=d.id,{data:{project:l,record:{}}}}return ke.log("Fetching project from external API"),new Promise(async l=>{try{if(i.onFetch){const p=await i.onFetch(d.id);if(p){l({data:p});return}}else l({data:null})}catch(p){ke.error("Error fetching project: ",p),l({data:null})}})}function jm(d,u){const i=new N(d,u);return QAe(i),XAe(i),WAe(i),ebe(i),tbe(i),rbe(i),ibe(i),Array.from(new Set([...i.getAllBuiltInIds(),...zs()])).forEach(l=>{if(!i.builtInInstances[l]&&i.instances[l])i.builtInInstances[l]=i.instances[l],delete i.instances[l];else if(!i.builtInInstances[l])throw new Error(`Built in entity was not properly initialized: ${l}`)}),i.instances[i.id]=i,i}function xm(d,u){return d.instancesList.filter(a=>L(a.createdAt).isAfter(L(u)||!!a.previousVersion))}function nbe(d,{enrich:u}={enrich:!0},i){const a=new Map,l=new Map,p=Array.from(new Set([...d.getAllBuiltInIds(),...zs()]));Object.keys(d.instances).forEach(A=>{if(p.includes(A)){a.set(A,A),l.set(A,A);return}const P=d.get(A);if(!Vm(P,{...d.instances,...d.builtInInstances}).every(K=>!p.includes(K))){a.set(A,A),l.set(A,A);return}const G=N.UUID.uuid();a.set(A,G),l.set(G,A)});const e=L().toISOString(),y=d.toShallowJSON({seenEntityMaps:a});y.previousVersion=null,y.createdAt=e,y.version=N.UUID.uuid();const v=jm(y,i);v.instances[v.id]=v;const T=u?v.addChangeSet(new F(v,N.sessionAuthor,e,v,!0,"project-clone")):null,w=new zn(d);return w.visit(A=>{const P=A.toShallowJSON({seenEntityMaps:a});P.previousVersion=null,P.createdAt=e,P.version=N.UUID.uuid();const V=Xd(P,P5(w.flatRecord,a));if(Object.keys(V.upstream).length){let G=!1;if(Object.keys(V.upstream).forEach(K=>{if(!G&&(!v.get(K)||v.getDeleted(K))){G=!0;return}}),G)return}const U=te(P,v);U.hydrateAncestors(),U.addSelfToProject(T),T==null||T.add(U,S.Added)}),u?(w.visit(A=>{if(A.id===v.id)return;const P=v.get(a.get(A.id));P&&P.afterAllChildrenInitialized(T)}),v.afterAllChildrenInitialized(T)):xm(v,e).forEach(P=>{P.remove({ignoreUpstream:!0},null)}),v.instancesList.forEach(A=>{A.previousVersion=null}),T==null||T.attemptAutoclose("project-clone",v.id),v}function ZS(d,{enrich:u}={enrich:!0},i){const a=jm(d,i),l=L().toISOString(),p=u?a.addChangeSet(new F(a,N.sessionAuthor,l,a,!0,"project-init")):null;p&&(p.type=eA.Automatic);const e=new zn(d);return e.visit(y=>{const v=te(y,a);v.hydrateAncestors(),v.addSelfToProject(p)}),u?(e.visit(y=>{if(y.id===a.id)return;const v=a.get(y.id);v&&v.afterAllChildrenInitialized(p)}),a.afterAllChildrenInitialized(p)):(xm(a,l).forEach(T=>{T.remove({ignoreUpstream:!0},null)}),new zn(a).visit(T=>{T.initialized=!0,T.captureVersion()})),a.initialized=!0,p==null||p.attemptAutoclose("project-init",a.id),a}async function abe(d,u=df,i){const a={...df,...u};if(d.id&&_l[d.id]&&!a.ignoreCache)return _l[d.id];if(d.id&&Um[d.id]&&!a.ignoreCache)return await Um[d.id],_l[d.id];const l=sbe(d,a);d.id&&(Um[d.id]=l);const p=await l;if(p.data){let e;return a.mock?e=ZS(ZT,{enrich:!!a.enrich},i):p.data instanceof N?e=p.data:e=JS(p.data,{enrich:!!a.enrich},i),_l[d.id]=e,d.id&&delete Um[d.id],e}return null}function obe(d){return _l[d.id]&&delete _l[d.id],null}O.AI_VALUE_CONNECTION_GENERATION_ACTION_EXPLANATION=gw,O.ALL_BUILT_IN_BASE_ENTITIES=G2,O.ALL_BUILT_IN_CONDITION_ENTITIES=iM,O.ALL_BUILT_IN_GLOBAL_EVENT_ENTITIES=nM,O.ALL_BUILT_IN_LOOP_BODY_ENTITIES=hL,O.ALL_BUILT_IN_LOOP_ENTITIES=fL,O.ALL_BUILT_IN_OPERATION_ENTITIES=_N,O.ALL_BUILT_IN_PRIMITIVE_ENTITIES=Og,O.ALL_BUILT_IN_TOP_LEVEL_ENTITIES=cM,O.ALL_BUILT_IN_VALUE_DESCRIPTORS=uM,O.ALL_CONNECTION_DISABLED_REASONS=tIe,O.ALL_OTHER_DISABLED_REASONS=iIe,O.ALL_TESTING_DISABLED_REASONS=rIe,O.ActionDescriptorState=wt,O.ActionInputMapState=Hve,O.ActionOutputMapState=zve,O.AppendToListOperationInputIds=BO,O.AppendToListOperationOutputIds=UO,O.Area=Ai,O.ArgumentDeclarationDependencyField=IG,O.ArgumentDeclarationState=Va,O.BREAK_AND_CONTINUE_STATEMENTS_RETURN_DECLARATIONS_EXPLANATION=bw,O.BUILT_INT_OPERATIONS_IMPLEMENTATIONS__PREFIX=ot,O.BUILT_IN_BASE_ENTITY_IDS=Te,O.BUILT_IN_ENTITY_TYPES=os,O.BUILT_IN_FUNCTION_IMPLEMENTATIONS__PREFIX=Kp,O.BaseCanvasDraggableState=VAe,O.BaseEntityNames=Be,O.BaseRegisteredExtension=st,O.BaseState=NAe,O.BaseValueDescriptorIds=Xl,O.BreakStatementDependencyField=RG,O.BreakStatementState=fo,O.BuiltInBaseEntityState=ea,O.BuiltInFunctionIds=ki,O.BuiltInFunctionImplementationAbortExecutionModule=KG,O.BuiltInFunctionImplementationDeletePersistedEntityModule=kG,O.BuiltInFunctionImplementationSavePersistedEntityModule=qG,O.CACHED_PROJECTS_BY_ID=_l,O.CALLABLE_ENTITIES_EXPLANATION=vIe,O.CALLABLE_TYPES=Gs,O.CALLER_ENTITIES_EXPLANATION=Q6,O.CALLER_TYPES=Ss,O.CALLS_UPDATE_EXPLANATION=mo,O.CANVAS_BASE_X=G6,O.CANVAS_BASE_Y=S6,O.CANVAS_CARD_HEADER_CENTER_HEIGHT=Yd,O.CANVAS_CARD_WIDTH=j6,O.CANVAS_COMPLEX_CARD_HEIGHT=WTe,O.CANVAS_HORIZONTAL_BUFFER_BETWEEN_CARDS=uw,O.CANVAS_SIMPLE_CARD_HEIGHT=lw,O.CANVAS_SIZE=ow,O.CANVAS_VERTICAL_BUFFER_BETWEEN_CARDS=um,O.CARD_FOOTER_HEIGHT=dm,O.CARD_PROPERTIES_SECTION_PADDING=Ma,O.CARD_PROPERTIES_SECTION_SINGLE_PADDING=dw,O.CHILDREN_TYPES=bJ,O.COMPARISON_CONDITIONS=tM,O.CONDITIONS=rM,O.CUSTOM_ENTITY_OPERATIONS=s$,O.CallableEntityClass=MAe,O.CallerEntityClass=Xw,O.CanvasEntityConnectionDisabledReason=cw,O.CanvasEntityOtherDisabledReason=fw,O.CanvasEntityTestingDisabledReason=pw,O.ChangeSet=F,O.ChangeSetChangeCaptureType=eA,O.ChangeSetEntityChangeType=S,O.ChildEntityBaseClass=LAe,O.CommonStringValidationErrorCodes=h5,O.ComparisonOperatorTypes=_r,O.ConditionDependencyField=G3,O.ConditionState=ao,O.ContinueStatementDependencyField=B3,O.ContinueStatementState=Oi,O.CreateNewInputIds=NC,O.CreateNewOutputIds=VC,O.DEFAULT_BASE_EXTENSIONS_CONTEXT=rw,O.DEFAULT_EXECUTION_INSTANCE_PARENT_CONTEXT=B6,O.DEFAULT_MODULE_IDS=it,O.DEFAULT_PROJECT_INSTANCE_PARENT_CONTEXT=jS,O.DEFAULT_PROJECT_STATIC_PARENT_CONTEXT=Qw,O.DEFAULT_UUID_MODULE=Wu,O.DRAGGABLE_CALLABLE_TYPES=Pv,O.DRAGGABLE_CALLER_TYPES=Tg,O.DRAGGABLE_ELEMENT_TYPES=th,O.DRAGGABLE_EXECUTABLE_TYPES=IJ,O.DRAGGABLE_PASS_THROUGH_CALLABLE_TYPES=eh,O.DRAGGABLE_PASS_THROUGH_CALLABLE_TYPES_WITH_OUTPUTS=$v,O.DataTypeCompatibilityTypes=Zs,O.DataTypeDependencyField=sA,O.DataTypeParentChildRelation=mi,O.DataTypeState=fs,O.DefinitionEntityDependencyField=Bm,O.DefinitionEntityState=Qn,O.DynamicValueTypes=be,O.EDITABLE_PERSISTANCE_REPOSITORY_DEFAULTS=$Ae,O.ENTITIES_WITH_VALLUES_EXPLANATION=hm,O.ENTITY_PERSISTANCE_OPTIONS_DEFAULTS=Ee,O.ENTITY_RECUSION_OPTIONS_DEFAULTS=Ke,O.ENTITY_TYPES=AJ,O.ENTITY_WITH_CODE_NAMES_TYPES=Ag,O.ENTITY_WITH_DECLARATION_TYPES=EJ,O.ENTITY_WITH_LOGIC_SCOPE_TYPES=Mr,O.ENTITY_WITH_NAMES_TYPES=Ig,O.ENTITY_WITH_PARENT_TYPES=mJ,O.ENTITY_WITH_USER_MANAGED_DECLARATION_TYPES=vg,O.ENTITY_WITH_USER_MANAGED_SINGLE_IMPLEMENTS_TYPES=vJ,O.ENTITY_WITH_VALUE_TYPES=Cv,O.ENTRY_POINT_ENTITIES_EXPLANATION=Wp,O.ENTRY_POINT_TYPES=pr,O.ERROR_PROPERTY_HEIGHT=lm,O.EVENT_TYPES=Fo,O.EXECUTABLE_TYPES=TJ,O.EXECUTION_OPERATIONS=PC,O.EditorContext=UA,O.EfimeralValueStore=Mp,O.EndpointEntity=qS,O.EntityError=lr,O.EntityErrorSeverity=q,O.EntityGenerationError=ee,O.EntityGenerationErrorCode=k,O.EntityInstanceErrorCode=le,O.EntityOperations=cr,O.EntityType=f,O.EntityWithLogicScopeClass=xAe,O.EntityWithValueClass=jAe,O.EntryPointEntityClass=BAe,O.Execution=Ws,O.ExecutionOperations=sr,O.ExecutionState=iw,O.ExecutionTerminationType=se,O.ExplicitInfrastructureResource=vw,O.ExtensionContextBase=MA,O.ExtensionContextType=ue,O.ExtensionPermissions=rt,O.ExtensionsRegistry=M6,O.ExtentionPriority=Xe,O.FunctionCallDependencyField=u5,O.FunctionCallState=To,O.FunctionDeclarationDependencyField=O3,O.FunctionDeclarationState=ro,O.GET_PROJECT_OPTIONS_DEFAULTS=df,O.GLOBAL_EVENT_DECLARATIONS=sM,O.GetLastInListOperationInputIds=RO,O.GetLastInListOperationOutputIds=_O,O.GlobalEventNames=va,O.GlobalEventState=no,O.HTTPOperations=yi,O.HTTPStatucCodeValidationErrorCodes=KS,O.HTTP_OPERATIONS=j$,O.ImplicitGlobalInfrastructureResource=Ew,O.InfrastructureResource=mw,O.InfrastructureResourceStatus=W6,O.InputMapDependencyField=mG,O.InputMapState=Hn,O.InstalledProjectState=co,O.InternalCallDependencyField=hG,O.InternalCallState=po,O.JoinListOperationInputIds=kD,O.JoinListOperationOutputIds=qD,O.LIST_OPERATIONS=YO,O.ListOperations=Ze,O.LiteralValueDependencyField=bG,O.LiteralValueState=Fi,O.Logger=ke,O.LoopDependencyField=x3,O.LoopState=ji,O.LoopTypes=ze,O.MAIN_VALUE_PROPERTY_HEADER_HEIGHT=om,O.MAIN_VALUE_SUB_PROPERTY_HEIGHT=YTe,O.NESTED_PROPERTY_HEIGHT=x6,O.NON_INTERACTIVE_BASE_ENTITIES_EXPLANATION=vo,O.NUMBER_OPERATIONS=sD,O.NumberOperations=Jt,O.OPERATION_DECLARATIONS=RN,O.OperationDependencyField=P3,O.OperationState=io,O.OutputMapDependencyField=EG,O.OutputMapParentChildRelation=zl,O.OutputMapState=yn,O.PARENT_AUTO_CALCULATION_FROM_CALLER_EXPLANATION=ym,O.PASS_THROUGH_CALLABLE_ENTITIES_EXPLANATION=yo,O.PASS_THROUGH_CALLABLE_TYPES=mr,O.PASS_THROUGH_CALLABLE_TYPES_WITH_OUTPUTS=Eg,O.PLACEHOLDER_VALUE_STORE_CLIENT=DG,O.PROPERTY_HEIGHT=am,O.PROPERTY_NOT_VALUE_READER_WRITTER_EXPLANATION=_w,O.PUBLISHING_DISABLED_REASONS=Y6,O.ParallelExecutionOperation=xS,O.PassThroughCallableEntityClass=UAe,O.PersistedEntity=SS,O.PrimitiveEntityState=Qi,O.PrimitiveTypes=Q,O.ProjectLogicContext=BA,O.ProjectState=N,O.ProjectStateEvents=Vr,O.PropertyDependencyField=PS,O.PropertyState=Xn,O.PublicationRun=lIe,O.PublicationStep=H6,O.RANDOMNESS_OPERATIONS=wN,O.READABLE_ENTITY_TYPES=sw,O.READ_ONLY_ENTITY_PERSISTANCE_REPOSITORY=US,O.RETURN_STATEMENT_RETURN_DECLARATIONS_EXPLANATION=EIe,O.RandomnessOperations=Oe,O.ReturnDeclarationDependencyField=V3,O.ReturnDeclarationState=Xi,O.ReturnStatementDependencyField=nA,O.ReturnStatementState=so,O.SQLAST=jve,O.STANDALONE_CONDITIONS=J2,O.STATIC_PROPERTY_HEIGHT=F6,O.STRING_OPERATIONS=KD,O.ScopeCompatibilityType=Pm,O.SearchDependencyField=iG,O.SearchNodeImplementationModule=JG,O.SearchState=uo,O.SequentialExecutionOperation=GS,O.SequentialExecutionOperationInputIds=EC,O.SequentialExecutionOperationOutputIds=TC,O.SharedEntityErrorCode=ae,O.SharedStateFunctionality=BS,O.SplitListOperationInputIds=aO,O.SplitListOperationOutputIds=oO,O.StandaloneOperatorTypes=zr,O.StringOperations=Ge,O.TERMINATION_TYPES=Ar,O.Traverser=zn,O.USER_MANAGED_ENTITY_TYPES=bg,O.UUIDModule=ZG,O.UserManagedEntityStateTemplate=PAe,O.VALUE_READING_ENTITIES_EXPLANATION=Rw,O.VALUE_READING_TYPES=Vn,O.VALUE_WRITING_ENTITIES_EXPLANATION=e5,O.VALUE_WRITING_TYPES=qr,O.VARIABLE_DATA_TYPE_INFERRANCE_EXPLANATION=ww,O.VARIABLE_TYPES=mt,O.ValueAutogenerationType=kr,O.ValueDescriptorDependencyField=gG,O.ValueDescriptorParentChildRelation=de,O.ValueDescriptorState=mn,O.ValueReadingEntityClass=of,O.ValueWritingEntityClass=lf,O.VariableDeclarationDependencyField=q3,O.VariableDeclarationState=lo,O.VariableInputMapState=Zve,O.VariableInstanceDependencyField=oA,O.VariableInstanceState=oo,O.VariableOutputMapState=Yve,O.WaitOperation=FS,O.WaitOperationInputIds=cC,O.WaitOperationOutputIds=pC,O.actionDescriptorValidation=Zme,O.addDisabledReasons=nIe,O.afterLiteralValueAsTypeChangeSideEffects=GG,O.afterLiteralValueAsTypeDeleteSideEffects=FG,O.afterLiteralValueChangeSideEffects=jG,O.afterLiteralValueDeleteSideEffects=UG,O.aggregateVariableInputsNextValues=Bp,O.aggregateVariableInputsValues=Fy,O.appendToListOperation=nh,O.appendToListOperationElementToAppendArgument=qv,O.appendToListOperationElementToAppendArgumentParentRef=qO,O.appendToListOperationElementToAppendArgumentRef=FO,O.appendToListOperationError=WO,O.appendToListOperationErrorParentRef=HO,O.appendToListOperationListArgument=kv,O.appendToListOperationListArgumentParentRef=kO,O.appendToListOperationListArgumentRef=jO,O.appendToListOperationListDataType=xO,O.appendToListOperationResultListDataType=KO,O.appendToListOperationResultListReturn=ZO,O.appendToListOperationResultListReturnParentRef=JO,O.appendToListOperationResultListReturnRef=SO,O.appendToListOperationSecondListDataType=GO,O.applyNewScope=We,O.argumentDeclarationValidation=Xve,O.asGenerationActionExample=Yn,O.assembleAndAddLiteralValueFromDataType=vn,O.assembleStandaloneLiteralValueFromDataType=dt,O.booleanPrototype=Ea,O.breakStatementValidation=tEe,O.calculateCardSize=k6,O.calculateMethodCardSize=K6,O.calculateNewParentBasedOnCallers=zp,O.capitalizeFirstLetter=Ti,O.changeSetJSONRecordToUniqueIds=Bme,O.checkAreDataTypesCompatible=Hs,O.checkAreDefinitionEntitiesCompatibleAsDataType=lG,O.checkArePropertiesCompatibleAsDataType=oG,O.checkExtendsBaseEntity=Nm,O.checkHasBaseEntity=vs,O.checkHasMetadataChanged=Ur,O.checkImplementationsOverlap=Ua,O.checkImplementsBaseEntity=QIe,O.checkIsBranchDependentButNotDirectlyOnBranch=Rl,O.checkIsBranchDependentOnBranch=Vw,O.checkIsBuiltIn=Sw,O.checkIsCallableEntityReachable=nf,O.checkIsCanvasEntity=zIe,O.checkIsDefEntityInlineDeclaredForSearchOutputType=RA,O.checkIsDetachedBranch=pS,O.checkIsDetachedBranchShallow=Fw,O.checkIsEmptyValue=xy,O.checkIsGlobalVariable=WIe,O.checkIsGloballyDeclared=xw,O.checkIsLiteralValueEmpty=$A,O.checkIsMethod=Gw,O.checkIsNestedScope=$m,O.checkIsRequiredValue=La,O.checkScopeCompatibility=Xs,O.checkShouldInputOrOutputBePartOfFinalVariableObjectValue=af,O.checkShouldPropertyBePartOfFinalVariableObjectValue=Kw,O.cloneProject=nbe,O.conditionValidation=Hme,O.continueStatementValidation=Kme,O.convertToAbstract=$Ie,O.convertToNonAbstract=PIe,O.convertToNonStatic=VIe,O.convertToStatic=NIe,O.countedLoopActionDescriptor=rc,O.countedLoopActionDescriptorDynamicReturnDeclaration=nL,O.countedLoopActionDescriptorDynamicReturnDeclarationParentRef=sL,O.countedLoopActionDescriptorStringArgumentDeclaration=iL,O.countedLoopActionDescriptorStringArgumentDeclarationDataType=tL,O.countedLoopActionDescriptorStringArgumentDeclarationDataTypeDefaultValue=QV,O.countedLoopActionDescriptorStringArgumentDeclarationDataTypeDefaultValueParentRef=XV,O.countedLoopActionDescriptorStringArgumentDeclarationDataTypeParentRef=eL,O.countedLoopActionDescriptorStringArgumentDeclarationParentRef=rL,O.countedLoopBodyActionDescriptor=Ah,O.countedLoopBodyActionDescriptorAnyDynamicArgument=uL,O.countedLoopBodyActionDescriptorAnyDynamicArgumentParentRef=dL,O.countedLoopBodyActionDescriptorAnyDynamicReturn=pL,O.countedLoopBodyActionDescriptorAnyDynamicReturnParentRef=cL,O.countedLoopBodyActionDescriptorIterationNumberArgumentDeclaration=mE,O.countedLoopBodyActionDescriptorIterationNumberArgumentDeclarationDataType=oL,O.countedLoopBodyActionDescriptorIterationNumberArgumentDeclarationDataTypeParentRef=aL,O.countedLoopBodyActionDescriptorIterationNumberArgumentDeclarationParentRef=lL,O.createDefinitionEntityFromJSONObject=Im,O.createEntityError=ft,O.createNestedDataTypeForEntity=f5,O.createNewInstanceOperation=So,O.createNewInstanceOperationEntityToInstanciateArgument=GC,O.createNewInstanceOperationEntityToInstanciateArgumentRef=jC,O.createNewInstanceOperationEntityToInstanciateDataType=xC,O.createNewInstanceOperationError=qC,O.createNewInstanceOperationErrorParentRef=kC,O.createNewInstanceOperationNewEntityDataArgument=UC,O.createNewInstanceOperationNewEntityDataArgumentDataType=BC,O.createNewInstanceOperationNewEntityDataArgumentDataTypeParentRef=MC,O.createNewInstanceOperationNewEntityDataArgumentParentRef=LC,O.createNewInstanceOperationOutputEntityDeclaration=KC,O.createNewInstanceOperationOutputEntityDeclarationParentRef=SC,O.createNewInstanceOperationRef=FC,O.createSemanticId=gS,O.createStateFromGenerationTargetType=CAe,O.createStateFromType=or,O.createStateFromTypeAndSubscribe=te,O.cronJobBuiltInBaseEntity=gh,O.cronJobBuiltInBaseEntityExpressionProperty=x2,O.cronJobBuiltInBaseEntityExpressionPropertyDataTypeRef=CJ,O.cronJobBuiltInBaseEntityExpressionPropertyRef=U2,O.cronJobBuiltInBaseEntityRef=j2,O.cronJobTriggeredFunctionDeclarationBlueprint=$E,O.cronJobTriggeredFunctionDeclarationBlueprintParentRef=M2,O.dataTypeCompatibilityToErrorExplanation=l5,O.dataTypeValidation=Ume,O.datePrototype=Ln,O.dateValueAutogenerationSchema=MI,O.definitionEntityToZodSchema=rT,O.definitionEntityValidation=_Ae,O.deletePersistedEntityMethod=CE,O.deletePersistedEntityMethodParentRef=T2,O.deleteRootProject=obe,O.emitSideEffects=D3,O.emptyCondition=NE,O.emptyConditionArgument=q2,O.emptyConditionRef=k2,O.endpointBuiltInBaseEntity=ls,O.endpointBuiltInBaseEntityRef=EL,O.endpointBuiltInBaseEntityRefFour=e2,O.endpointBuiltInBaseEntityRefThree=DL,O.endpointBuiltInBaseEntityRefTwo=wL,O.endpointBuiltInCorsProperty=TL,O.endpointBuiltInCorsPropertyDataType=vL,O.endpointBuiltInCorsPropertyDataTypeRef=yL,O.endpointBuiltInCorsPropertyRef=mL,O.endpointBuiltInMethodProperty=EE,O.endpointBuiltInMethodPropertyDataType=gL,O.endpointBuiltInMethodPropertyDataTypeRef=RL,O.endpointBuiltInMethodPropertyRef=_L,O.endpointBuiltInPathProperty=vE,O.endpointBuiltInPathPropertyDataType=bL,O.endpointBuiltInPathPropertyDataTypeRef=IL,O.endpointBuiltInPathPropertyRef=AL,O.endpointPathParamsArgumentDeclaration=IE,O.endpointPathParamsArgumentDeclarationRef=UL,O.endpointPathParamsVariableDataType=jL,O.endpointPathParamsVariableDataTypeRef=BL,O.endpointReachedTriggerActionDescriptor=gE,O.endpointReachedTriggerActionDescriptorRef=xL,O.endpointReachedTriggerActionDescriptorRefFour=SL,O.endpointReachedTriggerActionDescriptorRefThree=GL,O.endpointReachedTriggerActionDescriptorRefTwo=FL,O.endpointRequestBodyArgumentDeclaration=bE,O.endpointRequestBodyArgumentDeclarationRef=PL,O.endpointRequestBodyVariableDataType=NL,O.endpointRequestHeadersArgumentDeclaration=TE,O.endpointRequestHeadersArgumentDeclarationRef=CL,O.endpointRequestHeadersVariableDataType=$L,O.endpointRequestHeadersVariableDataTypeRef=OL,O.endpointRequestQueryParamsArgumentDeclaration=AE,O.endpointRequestQueryParamsArgumentDeclarationRef=LL,O.endpointRequestQueryParamsVariableDataType=ML,O.endpointRequestQueryParamsVariableDataTypeRef=VL,O.endpointResponseBodyDataType=XL,O.endpointResponseBodyReturnDeclaration=_E,O.endpointResponseBodyReturnDeclarationRef=zL,O.endpointResponseCodeDataType=kL,O.endpointResponseCodeReturnDeclaration=wE,O.endpointResponseCodeReturnDeclarationDefaultValueParentRef=JL,O.endpointResponseCodeReturnDeclarationRef=KL,O.endpointResponseHeadersDataType=WL,O.endpointResponseHeadersDataTypeRef=ZL,O.endpointResponseHeadersReturnDeclaration=RE,O.endpointResponseHeadersReturnDeclarationRef=HL,O.endpointReturnStatementRef=qL,O.endpointReturnStatementRefThree=QL,O.endpointReturnStatementRefTwo=YL,O.enerateRandomIntegerOperationError=X$,O.enerateRandomIntegerOperationErrorParentRef=z$,O.enrichFromKnownEntities=Xp,O.enumOptionsProperty=Dg,O.enumOptionsPropertyDataType=_g,O.enumOptionsPropertyDataTypeRef=wg,O.enumOptionsPropertyRef=Rg,O.enumPrototype=Ta,O.enumPrototypeRef=gg,O.errorCodeToMessage=Zp,O.executionBuiltInBaseEntity=Dh,O.executionBuiltInEntityAbortMethod=PE,O.executionBuiltInEntityAbortMethodParentRef=F2,O.filterOutDuplicateEntities=R,O.filterOutDuplicateErrors=GU,O.findEntityFromKeys=$w,O.findReferenceToSelfInList=$5,O.findReferencesToSelfInProject=SIe,O.flattenActionDescriptor=N5,O.flattenArgumentDeclaration=V5,O.flattenBreakStatement=L5,O.flattenBuiltInBaseEntity=M5,O.flattenCalls=Ys,O.flattenCanvasAncestorsUntil=zd,O.flattenCondition=B5,O.flattenContinueStatement=U5,O.flattenDataType=x5,O.flattenDefinitionEntity=j5,O.flattenDefinitionEntityExtensionAndImplementationTypes=tu,O.flattenDefinitionEntityExtensionTypes=ef,O.flattenDefinitionEntityExtensions=Bw,O.flattenDefinitionEntityImplementations=Uw,O.flattenDefinitionEntityImplementionTypes=Qp,O.flattenDerivedCanvasEntities=ms,O.flattenDetachedBranch=hS,O.flattenElementCalls=_t,O.flattenElementCallsOnTheSameScope=GIe,O.flattenEntity=ve,O.flattenFunctionCall=F5,O.flattenFunctionDeclaration=G5,O.flattenGlobalEvent=S5,O.flattenInputMap=K5,O.flattenInstalledProject=k5,O.flattenInternalCall=q5,O.flattenLiteralValue=J5,O.flattenLoop=Z5,O.flattenOperation=H5,O.flattenOutputMap=W5,O.flattenPrimitiveEntity=Y5,O.flattenProject=z5,O.flattenProjectElements=C5,O.flattenProperty=X5,O.flattenRelatedCallableElementsOnTheRight=uS,O.flattenRelatedCanvasElementsOnTheLeft=cS,O.flattenRelatedCanvasElementsOnTheRight=Om,O.flattenReturnDeclaration=Q5,O.flattenReturnStatement=eS,O.flattenSearch=tS,O.flattenValueDescriptor=rS,O.flattenVariableDeclaration=iS,O.flattenVariableInstance=sS,O.flattenVariableReads=O5,O.flattenVariableWrites=D5,O.flattenVariables=yr,O.fromChangeSetToRecordChangeSet=nAe,O.fromLiteralValueTypeToPrimitiveType=bA,O.fromPublishingDisabledCodeToReadable=cIe,O.fromZodParseToEntityGenerationErrors=Tw,O.functionCallValidation=DIe,O.functionDeclarationValidation=Mme,O.generate=Mh,O.generateActionExample=TIe,O.generateExecutionDataType=kve,O.generateHexadecimalTokenOperation=oE,O.generateHexadecimalTokenOperationError=bN,O.generateHexadecimalTokenOperationErrorParentRef=AN,O.generateHexadecimalTokenOperationResultStringDataType=EN,O.generateHexadecimalTokenOperationResultStringDataTypeParentRef=vN,O.generateHexadecimalTokenOperationResultStringOutput=IN,O.generateHexadecimalTokenOperationResultStringOutputParentRef=TN,O.generateIdFromStrategy=Gr,O.generateIdentifierOperation=sE,O.generateIdentifierOperationAlphabetInput=XP,O.generateIdentifierOperationAlphabetInputParentRef=WP,O.generateIdentifierOperationAlphabetInputType=zP,O.generateIdentifierOperationAlphabetInputTypeParentRef=YP,O.generateIdentifierOperationError=sN,O.generateIdentifierOperationErrorParentRef=iN,O.generateIdentifierOperationLengthInput=HP,O.generateIdentifierOperationLengthInputParentRef=qP,O.generateIdentifierOperationLengthInputType=ZP,O.generateIdentifierOperationLengthInputTypeParentRef=JP,O.generateIdentifierOperationResultStringDataType=tN,O.generateIdentifierOperationResultStringDataTypeParentRef=eN,O.generateIdentifierOperationResultStringOutput=rN,O.generateIdentifierOperationResultStringOutputParentRef=QP,O.generateMutablePropertiesExplanation=cm,O.generatePlaceholderValueStore=iEe,O.generateRandomAlphanumericOperation=iE,O.generateRandomAlphanumericOperationError=kP,O.generateRandomAlphanumericOperationErrorParentRef=KP,O.generateRandomAlphanumericOperationLengthInput=jP,O.generateRandomAlphanumericOperationLengthInputParentRef=MP,O.generateRandomAlphanumericOperationLengthInputType=UP,O.generateRandomAlphanumericOperationLengthInputTypeParentRef=BP,O.generateRandomAlphanumericOperationResultStringDataType=FP,O.generateRandomAlphanumericOperationResultStringDataTypeParentRef=xP,O.generateRandomAlphanumericOperationResultStringOutput=SP,O.generateRandomAlphanumericOperationResultStringOutputParentRef=GP,O.generateRandomBase62Operation=tE,O.generateRandomBase62OperationError=RP,O.generateRandomBase62OperationErrorParentRef=wP,O.generateRandomBase62OperationLengthInput=EP,O.generateRandomBase62OperationLengthInputParentRef=yP,O.generateRandomBase62OperationLengthInputType=vP,O.generateRandomBase62OperationLengthInputTypeParentRef=mP,O.generateRandomBase62OperationResultStringDataType=IP,O.generateRandomBase62OperationResultStringDataTypeParentRef=TP,O.generateRandomBase62OperationResultStringOutput=bP,O.generateRandomBase62OperationResultStringOutputParentRef=AP,O.generateRandomBase64Operation=rE,O.generateRandomBase64OperationError=LP,O.generateRandomBase64OperationErrorParentRef=VP,O.generateRandomBase64OperationLengthInput=OP,O.generateRandomBase64OperationLengthInputParentRef=_P,O.generateRandomBase64OperationLengthInputType=DP,O.generateRandomBase64OperationLengthInputTypeParentRef=gP,O.generateRandomBase64OperationResultStringDataType=$P,O.generateRandomBase64OperationResultStringDataTypeParentRef=CP,O.generateRandomBase64OperationResultStringOutput=NP,O.generateRandomBase64OperationResultStringOutputParentRef=PP,O.generateRandomBoolean=VM,O.generateRandomDate=wM,O.generateRandomDateAfter=IM,O.generateRandomDateBefore=AM,O.generateRandomDateBetweenRange=bM,O.generateRandomFloatOperation=Qv,O.generateRandomFloatOperationError=sP,O.generateRandomFloatOperationErrorParentRef=iP,O.generateRandomFloatOperationResultNumberDataType=eP,O.generateRandomFloatOperationResultNumberDataTypeParentRef=Q$,O.generateRandomFloatOperationResultNumberOutput=rP,O.generateRandomFloatOperationResultNumberOutputParentRef=tP,O.generateRandomHexadecimalOperation=eE,O.generateRandomHexadecimalOperationError=hP,O.generateRandomHexadecimalOperationErrorParentRef=fP,O.generateRandomHexadecimalOperationLengthInput=lP,O.generateRandomHexadecimalOperationLengthInputParentRef=nP,O.generateRandomHexadecimalOperationLengthInputType=oP,O.generateRandomHexadecimalOperationLengthInputTypeParentRef=aP,O.generateRandomHexadecimalOperationResultStringDataType=uP,O.generateRandomHexadecimalOperationResultStringDataTypeParentRef=dP,O.generateRandomHexadecimalOperationResultStringOutput=pP,O.generateRandomHexadecimalOperationResultStringOutputParentRef=cP,O.generateRandomIntegerOperation=Xv,O.generateRandomIntegerOperationMaxValueInput=J$,O.generateRandomIntegerOperationMaxValueInputParentRef=K$,O.generateRandomIntegerOperationMaxValueInputType=q$,O.generateRandomIntegerOperationMaxValueInputTypeParentRef=k$,O.generateRandomIntegerOperationMinValueInput=Y$,O.generateRandomIntegerOperationMinValueInputParentRef=Z$,O.generateRandomIntegerOperationMinValueInputType=W$,O.generateRandomIntegerOperationMinValueInputTypeParentRef=H$,O.generateRandomIntegerOperationResultNumberDataType=F$,O.generateRandomIntegerOperationResultNumberDataTypeParentRef=x$,O.generateRandomIntegerOperationResultNumberOutput=S$,O.generateRandomIntegerOperationResultNumberOutputParentRef=G$,O.generateRandomNumber=OM,O.generateRandomNumberAfter=_M,O.generateRandomNumberBefore=gM,O.generateRandomNumberBetweenRange=DM,O.generateRandomText=NM,O.generateRandomTextAfter=CM,O.generateRandomTextBefore=$M,O.generateRandomTextBetweenRange=PM,O.generateRandomUUIDv4Operation=nE,O.generateRandomUUIDv4OperationError=uN,O.generateRandomUUIDv4OperationErrorParentRef=dN,O.generateRandomUUIDv4OperationResultStringDataType=aN,O.generateRandomUUIDv4OperationResultStringDataTypeParentRef=nN,O.generateRandomUUIDv4OperationResultStringOutput=lN,O.generateRandomUUIDv4OperationResultStringOutputParentRef=oN,O.generateShortIdentifierOperation=aE,O.generateShortIdentifierOperationError=mN,O.generateShortIdentifierOperationErrorParentRef=yN,O.generateShortIdentifierOperationResultStringDataType=pN,O.generateShortIdentifierOperationResultStringDataTypeParentRef=cN,O.generateShortIdentifierOperationResultStringOutput=hN,O.generateShortIdentifierOperationResultStringOutputParentRef=fN,O.generateStandaloneIfDefault=sEe,O.generateUniqueUUID=RM,O.getAllActionDescriptorsForConditions=Em,O.getAllActionDescriptorsForGlobalEvents=mm,O.getAllActionDescriptorsForLoops=vm,O.getAllActionDescriptorsForOperations=wIe,O.getAllBuiltInEntityIds=zs,O.getAllGloballyDeclaredFunctionDeclarationsExplanation=n5,O.getAllVariablesInScope=lAe,O.getBaseBuiltInEntities=Pi,O.getBaseSchemaBasedOnType=z6,O.getBuiltInEntityOwner=Ao,O.getCallableEntitiesDerivedFromInternalCalls=dS,O.getCallableEntitiesDerivedFromWrites=eu,O.getCallableEntityReferenceSchema=Ii,O.getCallableEntityTypeSchema=A3,O.getCalledBy=Vs,O.getCallerEntityReferenceSchema=Zye,O.getCallerEntityTypeSchema=Jye,O.getCalls=wm,O.getCanvasEntitiesDerivedFromInternalCalls=lS,O.getCanvasEntitiesDerivedFromWrites=Qd,O.getCanvasEntityDerivedFromValueReadingEntity=gm,O.getCanvasEntityDerivedFromValueReadingEntityFromTransfer=oS,O.getCanvasEntityReferenceSchema=ume,O.getCanvasEntityTypeSchema=dme,O.getChildrenEntityWithValues=MIe,O.getColumnProperties=ru,O.getCommonAncestor=Lw,O.getCommonChildren=Am,O.getDatabaseEntities=tAe,O.getDatabaseEntity=iAe,O.getDeclaration=Ci,O.getDeclarationOutputedError=oAe,O.getDeepestScope=mS,O.getDefaultRelationalDatabaseEntityOrFirst=ES,O.getDraggableCallableEntityReferenceSchema=w3,O.getDraggableCallableEntityTypeSchema=b3,O.getDraggableCallerEntityReferenceSchema=Wye,O.getDraggableCallerEntityTypeSchema=Hye,O.getDraggableExecutableEntityReferenceSchema=Qye,O.getDraggableExecutableEntityTypeSchema=Xye,O.getDraggablePassThroughCallableEntityReferenceSchema=Ry,O.getDraggablePassThroughCallableEntityTypeSchema=wy,O.getDraggablePlayableEntityReferenceSchema=sme,O.getDraggablePlayableEntityTypeSchema=ime,O.getEntitiesCreatedSinceInitialization=xm,O.getEntitiesToPropagateValuesTo=En,O.getEntityArgumentDeclarations=Mw,O.getEntityInputMaps=nS,O.getEntityOutputMaps=JIe,O.getEntityReferenceSchema=lme,O.getEntityReturnDeclarations=aS,O.getEntityTypeSchema=ome,O.getEntityWithLogicScopeReferenceSchema=Pa,O.getEntityWithLogicScopeTypeSchema=eme,O.getEntityWithValueReferenceSchema=I3,O.getEntityWithValueTypeSchema=qye,O.getEntryPointEntityReferenceSchema=ci,O.getEntryPointEntityTypeSchema=to,O.getEventEntityReferenceSchema=Ay,O.getEventEntityTypeSchema=Iy,O.getEventNameFromDefinition=uIe,O.getExecutableEntityReferenceSchema=zye,O.getExecutableEntityTypeSchema=Yye,O.getExtendedBuiltInEntity=ZIe,O.getExtendedDefinitionEntity=Cm,O.getFirstNonLoopScopeOwner=Wr,O.getGenerationTargetSchemaBasedOnType=X6,O.getHTTPAPINameFromProjectId=J6,O.getHeadIfPartOfDetachedBranch=fS,O.getHighestScope=yS,O.getImplementedBuiltInEntity=HIe,O.getIsInteractive=tf,O.getLastInListOperation=Kv,O.getLastInListOperationError=MO,O.getLastInListOperationErrorParentRef=LO,O.getLastInListOperationInputListArgument=PO,O.getLastInListOperationInputListArgumentParentRef=$O,O.getLastInListOperationInputListArgumentRef=gO,O.getLastInListOperationInputListDataType=DO,O.getLastInListOperationOutputElementDataType=CO,O.getLastInListOperationOutputElementReturn=VO,O.getLastInListOperationOutputElementReturnParentRef=NO,O.getLastInListOperationOutputElementReturnRef=OO,O.getLinkedEntitiesFromArgumentDeclaration=FIe,O.getLiteralValueNameFromDataType=ml,O.getLowestPersistedEntityImplementation=jw,O.getOnlyRelevantErrorsForPublication=gIe,O.getParentCallableEntity=v5,O.getParentCallerEntity=T5,O.getParentCanvasEntities=$i,O.getParentCanvasEntity=Er,O.getParentCanvasEntityFromTransfer=bm,O.getParentEntryPoint=LIe,O.getParentPassthroughCallableEntity=E5,O.getPassThroughCallableEntityReferenceSchema=Dr,O.getPassThroughCallableEntityTypeSchema=by,O.getPeristedEntities=eAe,O.getPlayableEntityReferenceSchema=rme,O.getPlayableEntityTypeSchema=tme,O.getProject=abe,O.getPrototypeByType=rf,O.getRecordOrderForTraversal=CIe,O.getRecusriveParentsIds=Vm,O.getReferenceEntityId=Z,O.getReferencedEntitiesStateOrErrors=fm,O.getReferencedEntityStateOrErrors=Iw,O.getReferencedIds=Xd,O.getRelatedCallableElementsOnTheRight=Dm,O.getRelatedCanvasElementsOnTheLeft=Io,O.getRelatedCanvasElementsOnTheLeftFromTransfer=KIe,O.getRelatedCanvasElementsOnTheRight=bn,O.getRelationalDBInstanceNameFromEntityId=Z6,O.getRootEntryPointScopeOwner=sf,O.getScopeOwner=Si,O.getStateClassFromType=sAe,O.getStepNameFromDefinition=dIe,O.getTerminationReferenceSchema=ame,O.getTerminationTypeSchema=nme,O.getTopLevelParentEntityId=TS,O.getTouchedCanvasEntitiesFromChangeSet=aAe,O.getUsedArgFromDeclaration=kIe,O.getUsedReturnFromDeclaration=qIe,O.getValueReadingEntityReferenceSchema=T3,O.getValueReadingEntityTypeSchema=$a,O.getValueWritingEntityReferenceSchema=kye,O.getValueWritingEntityTypeSchema=Lc,O.getVariableFromInputMapping=A5,O.getVariableFromReturnVariablePointer=R5,O.getVariableReferenceSchema=eo,O.getVariableTypeSchema=ul,O.getVariablesFromArgumentDeclarations=_m,O.getVariablesFromInputMaps=b5,O.getVariablesFromOutputMapping=_5,O.getVariablesFromOutputMaps=g5,O.getVariablesFromReturnDeclarations=w5,O.getVariablesInSameOrHigherScope=CA,O.getWrites=Rm,O.globalEventValidation=kme,O.groupCallsBasedOnParallelizableExecution=UIe,O.handleAfterEntityImplementationSideEffects=p5,O.handleBeforeEntityImplementationSideEffects=c5,O.handleLiteralValueChange=nEe,O.handleLiteralValueDelete=xG,O.handleValueAsTypeChange=aEe,O.handleValueAsTypeDelete=SG,O.httpRequestBodyArgument=dh,O.httpRequestBodyArgumentRef=v$,O.httpRequestBodyDataType=E$,O.httpRequestHeadersArgument=lh,O.httpRequestHeadersArgumentRef=y$,O.httpRequestHeadersDataType=m$,O.httpRequestMethodArgument=ah,O.httpRequestMethodArgumentRef=f$,O.httpRequestMethodDataType=h$,O.httpRequestMethodDataTypeRef=c$,O.httpRequestOperation=Xu,O.httpRequestOperationErrorValueDescriptor=zv,O.httpRequestOperationErrorValueDescriptorDatatype=U$,O.httpRequestOperationErrorValueDescriptorRef=B$,O.httpRequestOperationRef=N$,O.httpRequestOperationRefEight=L$,O.httpRequestOperationRefFive=$$,O.httpRequestOperationRefFour=C$,O.httpRequestOperationRefNine=M$,O.httpRequestOperationRefSeven=V$,O.httpRequestOperationRefSix=P$,O.httpRequestOperationRefThree=O$,O.httpRequestOperationRefTwo=D$,O.httpRequestQueryParamsArgument=Yv,O.httpRequestQueryParamsArgumentRef=d$,O.httpRequestQueryParamsDataType=u$,O.httpRequestVariableURLArgument=oh,O.httpRequestVariableURLArgumentRef=o$,O.httpRequestVariableURLDataType=l$,O.httpRequestVariableURLDataTypeRef=n$,O.httpResponseBodyReturnDataType=g$,O.httpResponseBodyReturnDataTypeRef=R$,O.httpResponseBodyReturnReturn=ph,O.httpResponseBodyReturnReturnRef=_$,O.httpResponseCodeDataType=I$,O.httpResponseCodeReturn=uh,O.httpResponseCodeReturnRef=T$,O.httpResponseHeadersDataType=w$,O.httpResponseHeadersDataTypeRef=A$,O.httpResponseHeadersReturn=ch,O.httpResponseHeadersReturnRef=b$,O.httpStatusCodeValueValidation=kS,O.hydrateOrDiscardLiteralValue=OG,O.implement=Tm,O.inferArgumentDeclarationDataType=dG,O.inferDataType=hn,O.inferInputMapDataType=gA,O.inferOutputMapDataType=OA,O.inferPropertyDataType=pG,O.inferReturnDeclarationDataType=DA,O.inferValueDescriptorDataType=fG,O.inferVariableDeclarationDataType=cG,O.inferVariableInstanceDataType=uG,O.initBaseProjectEntity=jm,O.initProject=ZS,O.initProjectFromFetchResult=JS,O.inputMapValidation=qve,O.installedProjectValidation=Sve,O.internalCallValidation=Kve,O.isPromise=Cw,O.isUUID=DS,O.iterateOverListActionDescriptorListArgumentDeclaration=rV,O.iterateOverListActionDescriptorListArgumentDeclarationDataType=eV,O.iterateOverListActionDescriptorListArgumentDeclarationDataTypeParentRef=QN,O.iterateOverListActionDescriptorListArgumentDeclarationParentRef=tV,O.iterateOverListLoopActionDescriptor=Ja,O.iterateOverListLoopActionDescriptorDynamicReturnDeclaration=sV,O.iterateOverListLoopActionDescriptorDynamicReturnDeclarationParentRef=iV,O.iterateOverListLoopBodyActionDescriptor=tc,O.iterateOverListLoopBodyActionDescriptorAnyDynamicArgument=fV,O.iterateOverListLoopBodyActionDescriptorAnyDynamicArgumentParentRef=pV,O.iterateOverListLoopBodyActionDescriptorAnyDynamicReturn=yV,O.iterateOverListLoopBodyActionDescriptorAnyDynamicReturnParentRef=hV,O.iterateOverListLoopBodyActionDescriptorCurrentValueArgumentDeclaration=Ih,O.iterateOverListLoopBodyActionDescriptorCurrentValueArgumentDeclarationDataType=aV,O.iterateOverListLoopBodyActionDescriptorCurrentValueArgumentDeclarationDataTypeParentRef=nV,O.iterateOverListLoopBodyActionDescriptorCurrentValueArgumentDeclarationParentRef=oV,O.iterateOverListLoopBodyActionDescriptorIterationNumberArgumentDeclaration=cV,O.iterateOverListLoopBodyActionDescriptorIterationNumberArgumentDeclarationDataType=dV,O.iterateOverListLoopBodyActionDescriptorIterationNumberArgumentDeclarationDataTypeParentRef=lV,O.iterateOverListLoopBodyActionDescriptorIterationNumberArgumentDeclarationParentRef=uV,O.iterateOverObjectKeysActionDescriptorObjectArgumentDeclaration=IV,O.iterateOverObjectKeysActionDescriptorObjectArgumentDeclarationDataType=EV,O.iterateOverObjectKeysActionDescriptorObjectArgumentDeclarationDataTypeParentRef=vV,O.iterateOverObjectKeysActionDescriptorObjectArgumentDeclarationParentRef=TV,O.iterateOverObjectKeysLoopActionDescriptor=rd,O.iterateOverObjectKeysLoopActionDescriptorDynamicReturnDeclaration=bV,O.iterateOverObjectKeysLoopActionDescriptorDynamicReturnDeclarationParentRef=AV,O.iterateOverObjectKeysLoopBodyActionDescriptor=pE,O.iterateOverObjectKeysLoopBodyActionDescriptorAnyDynamicArgument=PV,O.iterateOverObjectKeysLoopBodyActionDescriptorAnyDynamicArgumentParentRef=$V,O.iterateOverObjectKeysLoopBodyActionDescriptorAnyDynamicReturn=VV,O.iterateOverObjectKeysLoopBodyActionDescriptorAnyDynamicReturnParentRef=NV,O.iterateOverObjectKeysLoopBodyActionDescriptorCurrentValueArgumentDeclaration=cE,O.iterateOverObjectKeysLoopBodyActionDescriptorCurrentValueArgumentDeclarationDataType=RV,O.iterateOverObjectKeysLoopBodyActionDescriptorCurrentValueArgumentDeclarationDataTypeParentRef=wV,O.iterateOverObjectKeysLoopBodyActionDescriptorCurrentValueArgumentDeclarationParentRef=_V,O.iterateOverObjectKeysLoopBodyActionDescriptorIterationNumberArgumentDeclaration=CV,O.iterateOverObjectKeysLoopBodyActionDescriptorIterationNumberArgumentDeclarationDataType=DV,O.iterateOverObjectKeysLoopBodyActionDescriptorIterationNumberArgumentDeclarationDataTypeParentRef=gV,O.iterateOverObjectKeysLoopBodyActionDescriptorIterationNumberArgumentDeclarationParentRef=OV,O.iterateOverObjectValuesActionDescriptorObjectArgumentDeclaration=jV,O.iterateOverObjectValuesActionDescriptorObjectArgumentDeclarationDataType=BV,O.iterateOverObjectValuesActionDescriptorObjectArgumentDeclarationDataTypeParentRef=MV,O.iterateOverObjectValuesActionDescriptorObjectArgumentDeclarationParentRef=UV,O.iterateOverObjectValuesLoopActionDescriptor=id,O.iterateOverObjectValuesLoopActionDescriptorDynamicReturnDeclaration=FV,O.iterateOverObjectValuesLoopActionDescriptorDynamicReturnDeclarationParentRef=xV,O.iterateOverObjectValuesLoopBodyActionDescriptor=hE,O.iterateOverObjectValuesLoopBodyActionDescriptorAnyDynamicArgument=WV,O.iterateOverObjectValuesLoopBodyActionDescriptorAnyDynamicArgumentParentRef=HV,O.iterateOverObjectValuesLoopBodyActionDescriptorAnyDynamicReturn=zV,O.iterateOverObjectValuesLoopBodyActionDescriptorAnyDynamicReturnParentRef=YV,O.iterateOverObjectValuesLoopBodyActionDescriptorCurrentValueArgumentDeclaration=fE,O.iterateOverObjectValuesLoopBodyActionDescriptorCurrentValueArgumentDeclarationDataType=SV,O.iterateOverObjectValuesLoopBodyActionDescriptorCurrentValueArgumentDeclarationDataTypeParentRef=GV,O.iterateOverObjectValuesLoopBodyActionDescriptorCurrentValueArgumentDeclarationParentRef=KV,O.iterateOverObjectValuesLoopBodyActionDescriptorIterationNumberArgumentDeclaration=ZV,O.iterateOverObjectValuesLoopBodyActionDescriptorIterationNumberArgumentDeclarationDataType=qV,O.iterateOverObjectValuesLoopBodyActionDescriptorIterationNumberArgumentDeclarationDataTypeParentRef=kV,O.iterateOverObjectValuesLoopBodyActionDescriptorIterationNumberArgumentDeclarationParentRef=JV,O.iterateOverStringActionDescriptorDynamicReturnDeclaration=GN,O.iterateOverStringActionDescriptorDynamicReturnDeclarationParentRef=FN,O.iterateOverStringActionDescriptorStringArgumentDeclaration=xN,O.iterateOverStringActionDescriptorStringArgumentDeclarationDataType=UN,O.iterateOverStringActionDescriptorStringArgumentDeclarationDataTypeParentRef=BN,O.iterateOverStringActionDescriptorStringArgumentDeclarationParentRef=jN,O.iterateOverStringLoopActionDescriptor=ec,O.iterateOverStringLoopBodyActionDescriptor=Th,O.iterateOverStringLoopBodyActionDescriptorAnyDynamicArgument=WN,O.iterateOverStringLoopBodyActionDescriptorAnyDynamicArgumentParentRef=HN,O.iterateOverStringLoopBodyActionDescriptorAnyDynamicReturn=zN,O.iterateOverStringLoopBodyActionDescriptorAnyDynamicReturnParentRef=YN,O.iterateOverStringLoopBodyActionDescriptorCurrentValueArgumentDeclaration=dE,O.iterateOverStringLoopBodyActionDescriptorCurrentValueArgumentDeclarationDataType=KN,O.iterateOverStringLoopBodyActionDescriptorCurrentValueArgumentDeclarationDataTypeParentRef=SN,O.iterateOverStringLoopBodyActionDescriptorCurrentValueArgumentDeclarationParentRef=kN,O.iterateOverStringLoopBodyActionDescriptorIterationNumberArgumentDeclaration=uE,O.iterateOverStringLoopBodyActionDescriptorIterationNumberArgumentDeclarationDataType=JN,O.iterateOverStringLoopBodyActionDescriptorIterationNumberArgumentDeclarationDataTypeParentRef=qN,O.iterateOverStringLoopBodyActionDescriptorIterationNumberArgumentDeclarationParentRef=ZN,O.joinListOperation=Fv,O.joinListOperationError=nO,O.joinListOperationErrorParentRef=sO,O.joinListOperationFirstListArgument=QD,O.joinListOperationFirstListArgumentParentRef=XD,O.joinListOperationFirstListArgumentRef=JD,O.joinListOperationFirstListDataType=ZD,O.joinListOperationResultListDataType=zD,O.joinListOperationResultListReturn=iO,O.joinListOperationResultListReturnParentRef=rO,O.joinListOperationResultListReturnRef=YD,O.joinListOperationSecondListArgument=tO,O.joinListOperationSecondListArgumentParentRef=eO,O.joinListOperationSecondListArgumentRef=HD,O.joinListOperationSecondListDataType=WD,O.joinListWithLastSeparator=at,O.joinStringsOperation=zu,O.joinStringsOperationDynamicStringArgument=_D,O.joinStringsOperationDynamicStringArgumentParentRef=RD,O.joinStringsOperationDynamicStringArgumentRef=bD,O.joinStringsOperationDynamicStringDataType=wD,O.joinStringsOperationError=AD,O.joinStringsOperationErrorParentRef=ID,O.joinStringsOperationFirstStringArgument=ih,O.joinStringsOperationFirstStringArgumentParentRef=cD,O.joinStringsOperationFirstStringArgumentRef=nD,O.joinStringsOperationFirstStringDataType=aD,O.joinStringsOperationResultStringDataType=uD,O.joinStringsOperationResultStringReturn=Yu,O.joinStringsOperationResultStringReturnParentRef=TD,O.joinStringsOperationResultStringReturnRef=dD,O.joinStringsOperationSecondStringArgument=sh,O.joinStringsOperationSecondStringArgumentParentRef=ED,O.joinStringsOperationSecondStringArgumentRef=oD,O.joinStringsOperationSecondStringDataType=lD,O.joinStringsOperationSeparatorStringArgument=vD,O.joinStringsOperationSeparatorStringArgumentParentRef=mD,O.joinStringsOperationSeparatorStringArgumentRef=pD,O.joinStringsOperationSeparatorStringDataType=yD,O.joinStringsOperationSeparatorStringDataTypeDefaultValue=hD,O.joinStringsOperationSeparatorStringDataTypeDefaultValueParentRef=fD,O.keyValuePrototype=Ql,O.literalValueValidation=Qve,O.loopValidation=Jme,O.lowercaseFirstLetter=_d,O.manualFlowActionDescriptorDeclarationArgumentDeclaration=lE,O.manualFlowActionDescriptorDeclarationArgumentDeclarationDataType=CN,O.manualFlowActionDescriptorDeclarationArgumentDeclarationDataTypeParentRef=ON,O.manualFlowActionDescriptorDeclarationArgumentDeclarationParentRef=$N,O.manualFlowLoopActionDescriptor=vh,O.manualFlowLoopActionDescriptorDynamicReturnDeclaration=DN,O.manualFlowLoopActionDescriptorDynamicReturnDeclarationParentRef=gN,O.manualFlowLoopBodyActionDescriptor=Eh,O.manualFlowLoopBodyActionDescriptorAnyDynamicArgument=NN,O.manualFlowLoopBodyActionDescriptorAnyDynamicArgumentParentRef=PN,O.manualFlowLoopBodyActionDescriptorAnyDynamicReturn=LN,O.manualFlowLoopBodyActionDescriptorAnyDynamicReturnParentRef=VN,O.mapActionDescriptorToTypeItRepresents=XIe,O.mapRecord=P5,O.mergeArraysOfStringsWithoutDuplicates=sIe,O.mergeEntityErrorsList=spe,O.mergeListOfEntities=YIe,O.methodDefaultValue=p$,O.mockClientProject=ZT,O.moreThanOrEqualCondition=ld,O.moreThanOrEqualConditionLeftHandArgument=Y2,O.moreThanOrEqualConditionLeftHandArgumentDataType=H2,O.moreThanOrEqualConditionLeftHandArgumentDataTypeParentRef=Z2,O.moreThanOrEqualConditionLeftHandArgumentParentRef=W2,O.moreThanOrEqualConditionRightHandArgument=eM,O.moreThanOrEqualConditionRightHandArgumentDataType=X2,O.moreThanOrEqualConditionRightHandArgumentDataTypeParentRef=z2,O.moreThanOrEqualConditionRightHandArgumentParentRef=Q2,O.noSpacesOrDashesValueValidation=m5,O.noSpacesValueValidation=y5,O.notEmptyCondition=Xo,O.notEmptyConditionArgument=K2,O.notEmptyConditionRef=S2,O.nullPrototype=Nv,O.numberAdditionOperation=rh,O.numberAdditionOperationDynamicSummandArgument=Gg,O.numberAdditionOperationDynamicSummandArgumentType=Fg,O.numberAdditionOperationDynamicSummandArgumentTypeParentRef=xg,O.numberAdditionOperationError=jg,O.numberAdditionOperationErrorParentRef=Ug,O.numberAdditionOperationFirstNumberArgument=Vv,O.numberAdditionOperationFirstNumberArgumentRef=Cg,O.numberAdditionOperationFirstNumberDataType=$g,O.numberAdditionOperationRef=Mg,O.numberAdditionOperationRefThree=Mv,O.numberAdditionOperationRefTwo=Bg,O.numberAdditionOperationResultNumberDataType=Lg,O.numberAdditionOperationResultNumberReturn=Bv,O.numberAdditionOperationResultNumberReturnRef=Vg,O.numberAdditionOperationSecondNumberArgument=Lv,O.numberAdditionOperationSecondNumberArgumentRef=Pg,O.numberAdditionOperationSecondNumberDataType=Ng,O.numberPrototype=vt,O.numberSubtractionOperation=jv,O.numberSubtractionOperationDynamicSubtrahendArgument=iD,O.numberSubtractionOperationDynamicSubtrahendArgumentType=rD,O.numberSubtractionOperationDynamicSubtrahendArgumentTypeParentRef=tD,O.numberSubtractionOperationError=eD,O.numberSubtractionOperationErrorParentRef=Qg,O.numberSubtractionOperationFirstNumberArgument=Hg,O.numberSubtractionOperationFirstNumberArgumentRef=Sg,O.numberSubtractionOperationFirstNumberDataType=Kg,O.numberSubtractionOperationRef=Uv,O.numberSubtractionOperationRefThree=zg,O.numberSubtractionOperationRefTwo=Wg,O.numberSubtractionOperationResultNumberDataType=Zg,O.numberSubtractionOperationResultNumberReturn=Xg,O.numberSubtractionOperationResultNumberReturnRef=Jg,O.numberSubtractionOperationSecondNumberArgument=Yg,O.numberSubtractionOperationSecondNumberArgumentRef=kg,O.numberSubtractionOperationSecondNumberDataType=qg,O.numberValueAutogenerationSchema=LI,O.operationValidation=Fme,O.orderEntitiesForTraversal=OIe,O.outputMapValidation=Wve,O.parallelExecutionOperation=un,O.parallelExecutionOperationError=uC,O.parallelExecutionOperationErrorParentRef=dC,O.parallelExecutionOperationListOfExecutionResultsDataType=aC,O.parallelExecutionOperationListOfExecutionResultsReturn=Zv,O.parallelExecutionOperationListOfExecutionResultsReturnRef=nC,O.parallelExecutionOperationListOfFunctionsArgument=Jv,O.parallelExecutionOperationListOfFunctionsArgumentDatatype=sC,O.parallelExecutionOperationListOfFunctionsArgumentRef=iC,O.parallelExecutionOperationListOfFunctionsBlueprint=rC,O.parallelExecutionOperationListOfFunctionsBlueprintDynamicInput=eC,O.parallelExecutionOperationListOfFunctionsBlueprintDynamicInputParentRef=QO,O.parallelExecutionOperationListOfFunctionsBlueprintDynamicOutput=XO,O.parallelExecutionOperationListOfFunctionsBlueprintDynamicOutputParentRef=zO,O.parallelExecutionOperationListOfFunctionsBlueprintParentRef=tC,O.parallelExecutionOperationRef=oC,O.parallelExecutionOperationRefThree=lC,O.persistedBuiltInBaseEntity=Ri,O.persistedBuiltInBaseEntityDatabaseProperty=nd,O.persistedBuiltInBaseEntityDatabasePropertyDataType=R2,O.persistedBuiltInBaseEntityDatabasePropertyDataTypeRef=DJ,O.persistedBuiltInBaseEntityDatabasePropertyParentRef=_2,O.persistedBuiltInBaseEntityDatabasePropertyRef=w2,O.persistedBuiltInBaseEntityPrimaryKeyProperty=ad,O.persistedBuiltInBaseEntityPrimaryKeyPropertyDataType=V2,O.persistedBuiltInBaseEntityPrimaryKeyPropertyNumberDataTypeOption=D2,O.persistedBuiltInBaseEntityPrimaryKeyPropertyNumberDataTypeOptionParentRef=g2,O.persistedBuiltInBaseEntityPrimaryKeyPropertyParentRef=L2,O.persistedBuiltInBaseEntityPrimaryKeyPropertyRef=N2,O.persistedBuiltInBaseEntityPrimaryKeyPropertyStringDataTypeOption=C2,O.persistedBuiltInBaseEntityPrimaryKeyPropertyStringDataTypeOptionParentRef=O2,O.persistedBuiltInBaseEntityPrimaryKeyPropertyUUIDDataTypeOption=P2,O.persistedBuiltInBaseEntityPrimaryKeyPropertyUUIDDataTypeOptionParentRef=$2,O.printEntity=Nw,O.processOutputGlobalValueDescriptorDataType=oM,O.processOutputGlobalValueDescriptorReturn=Ch,O.processOutputGlobalValueDescriptorReturnRef=aM,O.projectPublicationCompletedGlobalEvent=Oh,O.propagateNewInputOrOutputMapValueAsTypeToParentVariable=Gp,O.propagateNewInputOrOutputMapValueToParentVariable=Fp,O.propagateNewStaticPropertyValueAsTypeToVariables=Tl,O.propagateNewStaticPropertyValueToVariables=El,O.propertyToZodSchema=TM,O.propertyValidation=fAe,O.readValueFromWritter=Jd,O.rebaseStack=iA,O.relationalDatabaseBuiltInBaseEntity=Ei,O.relationalDatabaseBuiltInBaseEntityAutoscalingProperty=OE,O.relationalDatabaseBuiltInBaseEntityAutoscalingPropertyDataType=v2,O.relationalDatabaseBuiltInBaseEntityAutoscalingPropertyDataTypeRef=m2,O.relationalDatabaseBuiltInBaseEntityAutoscalingPropertyParentRef=E2,O.relationalDatabaseBuiltInBaseEntityAutoscalingPropertyRef=y2,O.relationalDatabaseBuiltInBaseEntityDefaultProperty=DE,O.relationalDatabaseBuiltInBaseEntityDefaultPropertyDataType=h2,O.relationalDatabaseBuiltInBaseEntityDefaultPropertyDataTypeRef=p2,O.relationalDatabaseBuiltInBaseEntityDefaultPropertyRef=f2,O.relationalDatabaseBuiltInBaseEntityIdentifierProperty=bh,O.relationalDatabaseBuiltInBaseEntityIdentifierPropertyDataType=i2,O.relationalDatabaseBuiltInBaseEntityIdentifierPropertyDataTypeRef=t2,O.relationalDatabaseBuiltInBaseEntityIdentifierPropertyRef=r2,O.relationalDatabaseBuiltInBaseEntityMinSizeProperty=_h,O.relationalDatabaseBuiltInBaseEntityMinSizePropertyDataType=c2,O.relationalDatabaseBuiltInBaseEntityMinSizePropertyDataTypeRef=d2,O.relationalDatabaseBuiltInBaseEntityMinSizePropertyRef=u2,O.relationalDatabaseBuiltInBaseEntityPasswordProperty=Rh,O.relationalDatabaseBuiltInBaseEntityPasswordPropertyDataType=o2,O.relationalDatabaseBuiltInBaseEntityPasswordPropertyDataTypeRef=gJ,O.relationalDatabaseBuiltInBaseEntityPasswordPropertyDefaultValueParentRef=l2,O.relationalDatabaseBuiltInBaseEntityPasswordPropertyRef=a2,O.relationalDatabaseBuiltInBaseEntityRef=sd,O.relationalDatabaseBuiltInBaseEntityUsernameProperty=wh,O.relationalDatabaseBuiltInBaseEntityUsernamePropertyDataType=n2,O.relationalDatabaseBuiltInBaseEntityUsernamePropertyDataTypeRef=_J,O.relationalDatabaseBuiltInBaseEntityUsernamePropertyRef=s2,O.removeDisabledReasons=aIe,O.resolveActionDescriptorName=_S,O.resolveArgumentDeclarationValue=NA,O.resolveBaseEntityName=AS,O.resolveBuiltInBaseEntityDataTypeLabel=bS,O.resolveCardSubheader=ZTe,O.resolveClonedEntityProject=Fr,O.resolveConditionOperatorLabel=Mm,O.resolveDataType=jy,O.resolveDataTypeEntityOrNestedChildrenFromLiteralValue=Pw,O.resolveDataTypeLabel=su,O.resolveDatatypeIconName=JTe,O.resolveDefinitionEntityDataTypeLabel=uAe,O.resolveDefinitionEntitySubheader=nw,O.resolveEntityCodeName=Yw,O.resolveEntityDataTypeLabel=dAe,O.resolveEntityName=ne,O.resolveEntitySubheader=HTe,O.resolveFirstCallsSecond=jIe,O.resolveFirstWritesSecond=xIe,O.resolveFunctionDeclarationCardSubheader=aw,O.resolveInputMapNextStandaloneValue=jp,O.resolveInputMapNextValue=Sy,O.resolveInputMapNextValueAsPropertyOfAnObject=NG,O.resolveInputMapStandaloneValue=xp,O.resolveInputMapValue=LG,O.resolveInputMapValueAsPropertyOfAnObject=VG,O.resolveMethodCardSubheader=U6,O.resolveNextValue=Ky,O.resolveOutputMapValue=LA,O.resolvePersistedDefinitionEntityDatabaseEntity=vS,O.resolvePrimaryKeyProperty=rAe,O.resolvePrimitiveEntityForSearchLiteralValueType=wA,O.resolvePrimitiveEntityName=RS,O.resolvePropertyValue=MG,O.resolvePublicationStepStatusFromType=fIe,O.resolveResourceNameFromType=pIe,O.resolveReturnDeclarationValue=VA,O.resolveSearchName=wS,O.resolveValue=vl,O.resolveValueDescriptorValue=BG,O.resolveVarDeclarationAggregateObjectValue=$G,O.resolveVarDeclarationNextAggregateObjectValue=CG,O.resolveVarDeclarationNextValue=Up,O.resolveVarDeclarationValue=PA,O.resolveVarInstanceNextValue=Gy,O.resolveVarInstanceValue=PG,O.resolveVariableScope=Jve,O.returnDeclarationValidation=Gme,O.returnStatementValidation=Sme,O.savePersistedEntityMethod=A2,O.savePersistedEntityMethodParentRef=I2,O.searchStatementErrorGlobalValueDescriptor=ME,O.searchStatementErrorGlobalValueDescriptorDataType=dM,O.searchStatementErrorGlobalValueDescriptorRef=lM,O.searchStatementState=xve,O.searchStatementUtils=Gve,O.searchValidation=zme,O.sequentialExecutionOperation=ba,O.sequentialExecutionOperationError=$C,O.sequentialExecutionOperationErrorParentRef=CC,O.sequentialExecutionOperationListOfExecutionResultsDataType=gC,O.sequentialExecutionOperationListOfExecutionResultsReturn=Wv,O.sequentialExecutionOperationListOfExecutionResultsReturnParentRef=OC,O.sequentialExecutionOperationListOfExecutionResultsReturnRef=_C,O.sequentialExecutionOperationListOfFunctionsArgument=Hv,O.sequentialExecutionOperationListOfFunctionsArgumentDatatype=RC,O.sequentialExecutionOperationListOfFunctionsArgumentParentRef=DC,O.sequentialExecutionOperationListOfFunctionsArgumentRef=wC,O.sequentialExecutionOperationListOfFunctionsBlueprint=bC,O.sequentialExecutionOperationListOfFunctionsBlueprintDynamicInput=AC,O.sequentialExecutionOperationListOfFunctionsBlueprintDynamicOutput=IC,O.sortCallsBasedOnExecutionDependencies=I5,O.sortChildrenEntitiesBasedOnExecutionDependencies=BIe,O.splitListOperation=Sv,O.splitListOperationError=wO,O.splitListOperationErrorParentRef=bO,O.splitListOperationFirstOutputListDataType=pO,O.splitListOperationFirstOutputListReturn=EO,O.splitListOperationFirstOutputListReturnParentRef=vO,O.splitListOperationFirstOutputListReturnRef=Gv,O.splitListOperationInputListArgument=hO,O.splitListOperationInputListArgumentParentRef=fO,O.splitListOperationInputListArgumentRef=lO,O.splitListOperationInputListDataType=dO,O.splitListOperationSecondOutputListDataType=TO,O.splitListOperationSecondOutputListReturn=AO,O.splitListOperationSecondOutputListReturnParentRef=IO,O.splitListOperationSplitIndexArgument=mO,O.splitListOperationSplitIndexArgumentParentRef=yO,O.splitListOperationSplitIndexArgumentRef=uO,O.splitListOperationSplitIndexDataType=cO,O.splitStringOperation=xv,O.splitStringOperationError=SD,O.splitStringOperationErrorParentRef=GD,O.splitStringOperationFirstPartResultStringDataType=PD,O.splitStringOperationFirstPartResultStringReturn=FD,O.splitStringOperationFirstPartResultStringReturnParentRef=xD,O.splitStringOperationFirstPartResultStringReturnRef=$D,O.splitStringOperationIndexArgument=UD,O.splitStringOperationIndexArgumentParentRef=BD,O.splitStringOperationIndexArgumentRef=OD,O.splitStringOperationIndexDataType=CD,O.splitStringOperationSecondPartResultStringDataType=VD,O.splitStringOperationSecondPartResultStringReturn=wJ,O.splitStringOperationSecondPartResultStringReturnParentRef=jD,O.splitStringOperationSecondPartResultStringReturnRef=ND,O.splitStringOperationStringArgument=MD,O.splitStringOperationStringArgumentParentRef=LD,O.splitStringOperationStringArgumentRef=gD,O.splitStringOperationStringDataType=DD,O.stringPrototype=Ye,O.stringValueAutogenerationSchema=VI,O.suggestNewIdForEntity=zw,O.syncSearchEntityOutput=_A,O.test_primitive_entities_export=YAe,O.toCamelCase=jr,O.toEditorContext=cEe,O.toEntityState=Ki,O.toKebabCase=IS,O.toLowerCaseKebabCase=Lm,O.toPascalCase=iu,O.toProjectLogicContext=uEe,O.transitionProjectVersion=tA,O.translateLogicErrorCode=zTe,O.translateLogicErrorCodeShort=XTe,O.translateLogicErrorCodeShortWithEntityName=QTe,O.translateLogicErrorCodeWithEntityName=eIe,O.traverseChangeSet=rA,O.untypedDataPrototype=vi,O.updateErrorsList=vr,O.urlDefaultValue=a$,O.uuidPrototype=Ia,O.validateArgumentDeclarationName=Hw,O.validateCalledByErrorIdInAction=AIe,O.validateCalledByIdInAction=IIe,O.validateCallers=s5,O.validateConditionEntityDeclaration=RIe,O.validateDataOperation=Ko,O.validateDataOperationDataToValidateArgument=WC,O.validateDataOperationDataToValidateArgumentParentRef=HC,O.validateDataOperationDataToValidateArgumentRef=JC,O.validateDataOperationDataToValidateDataType=ZC,O.validateDataOperationEntityToMatchTypeArgument=QC,O.validateDataOperationEntityToMatchTypeArgumentParentRef=XC,O.validateDataOperationEntityToMatchTypeArgumentRef=YC,O.validateDataOperationEntityToMatchTypeDataType=zC,O.validateDataOperationError=i$,O.validateDataOperationErrorParentRef=r$,O.validateDataOperationOutputEntityDeclaration=t$,O.validateDataOperationOutputEntityDeclarationParentRef=e$,O.validateDefinitionEntityName=kw,O.validateEntryCaller=i5,O.validateErrorCaller=r5,O.validateFunctionCallDeclaration=a5,O.validateFunctionDeclarationName=qw,O.validateGeneratedEntityParentIsNotBuiltInEntity=mIe,O.validateGeneration=hIe,O.validateGenerationTarget=Br,O.validateGenerationUpdate=yIe,O.validateLoopEntityDeclaration=_Ie,O.validateMissingValue=Eo,O.validateName=cAe,O.validateOperationEntityDeclaration=o5,O.validatePropertyName=Zw,O.validateReachability=Ba,O.validateReadsValueInActionPayload=bIe,O.validateReferenceObject=pm,O.validateReferenceToOne=Aw,O.validateReferences=ni,O.validateReturnDeclarationName=Ww,O.validateSuccessCaller=t5,O.validateValueReaderGenerationUpdate=Yp,O.validateValueWritter=Dw,O.validateVariableDeclarationName=Jw,O.validateVariableInternalCallUse=Ow,O.valueAutogenerationCurrentDateAndTimeSchema=i3,O.valueAutogenerationGenericSchema=uy,O.valueAutogenerationOptions=BI,O.valueAutogenerationOptionsSchema=r3,O.valueAutogenerationRandomBooleanSchema=NI,O.valueAutogenerationRandomDateBetweenSchema=p3,O.valueAutogenerationRandomDateFromSchema=u3,O.valueAutogenerationRandomDateSchema=fy,O.valueAutogenerationRandomDateUntilSchema=c3,O.valueAutogenerationRandomNumberBetweenSchema=a3,O.valueAutogenerationRandomNumberFromSchema=s3,O.valueAutogenerationRandomNumberSchema=cy,O.valueAutogenerationRandomNumberUntilSchema=n3,O.valueAutogenerationRandomSchema=$c,O.valueAutogenerationRandomTextBetweenSchema=d3,O.valueAutogenerationRandomTextFromSchema=o3,O.valueAutogenerationRandomTextSchema=py,O.valueAutogenerationRandomTextUntilSchema=l3,O.valueAutogenerationRangeValueTypesSchema=Cc,O.valueAutogenerationUniqueSchema=PI,O.valueDescriptorValidation=rEe,O.variableDeclarationValidation=Wme,O.variableInstanceValidation=Yme,O.waitOperation=qi,O.waitOperationMillisecondsNumberArgument=Go,O.waitOperationMillisecondsNumberArgumentRef=fC,O.waitOperationMillisecondsNumberDataType=hC,O.waitOperationOperationError=vC,O.waitOperationOperationErrorParentRef=mC,O.waitOperationRef=yC,Object.defineProperty(O,Symbol.toStringTag,{value:"Module"})});
409
+ `)),ke.log("Persisting new additions"),v.visit(async(T,w)=>{if(a.added[T.id]){ke.log("Adding: ",T.id);try{const A=te(T,this);if(A.hydrateAncestors(),A.addSelfToProject(l),l.add(A,S.Added),!this.get(T.id))throw new Error(`Entity ${T.id} was not added to the project`)}catch(A){ke.error("Error: ",A),ke.error("Errored entity: ",T)}}}),ke.log("Persisting updates"),v.visit(async(T,w)=>{if(a.updated[T.id]){ke.log("Updating: ",T.id);try{const A=this.get(T.id);A?(A.updateWithShallowTransfer(T,l),l.add(A,S.Updated)):ke.warn(`Active version of ${T.id} not found when applying external changes`)}catch(A){ke.error("Error: ",A),ke.error("Errored entity: ",T)}}}),ke.log("Persisting removals"),v.visit(async(T,w)=>{if(a.removed[T.id]){ke.log("Removing: ",T.id);try{const A=this.get(T.id);A&&A.remove({ignoreUpstream:!1},l)}catch(A){ke.error("Error: ",A),ke.error("Errored entity: ",T)}}}),l}toFullProjectTransfer(){const i=new zn(this),a={};return i.visit(l=>{const p=l.toShallowJSON();a[l.id]=p}),{order:i.order,size:i.order.length,record:a}}};g(pt,"parentContext",Qw),g(pt,"sessionAuthor","1"),g(pt,"repository",{APICreate:async(i,...a)=>i,APIUpdate:async(i,...a)=>i,APIDelete:async(i,...a)=>i,APIClone:async(i,...a)=>{},APILoad:async(i,...a)=>null,APILoadVersion:async(i,a,...l)=>null}),g(pt,"type",f.Project),g(pt,"USER_MANAGED_PARENT_TYPES",[]),g(pt,"PARENT_TYPES",[...pt.USER_MANAGED_PARENT_TYPES]),g(pt,"MUTABLE_BASE_PROPERTIES",["name","description"]),g(pt,"INMUTABLE_BASE_PROPERTIES",["id","type","version","createdAt","author","previousVersion"]),g(pt,"BASE_PROPERTIES",[...pt.MUTABLE_BASE_PROPERTIES,...pt.INMUTABLE_BASE_PROPERTIES]),g(pt,"MUTABLE_META_PROPERTIES",[...pt.MUTABLE_BASE_PROPERTIES,"x","y"]),g(pt,"INMUTABLE_META_PROPERTIES",[...pt.INMUTABLE_BASE_PROPERTIES]),g(pt,"META_PROPERTIES",[...pt.MUTABLE_META_PROPERTIES,...pt.INMUTABLE_META_PROPERTIES]),g(pt,"MUTABLE_UPSTREAM_PROPERTIES",[]),g(pt,"INMUTABLE_UPSTREAM_PROPERTIES",["primitives","builtInBaseEntities","operationDeclarations","globalEventActionDescriptors","loopDeclarations","builtInInstances"]),g(pt,"UPSTREAM_PROPERTIES",[...pt.MUTABLE_UPSTREAM_PROPERTIES,...pt.INMUTABLE_UPSTREAM_PROPERTIES]),g(pt,"MUTABLE_DOWNSTREAM_PROPERTIES",["entities","projects","functions","events","variableDeclarations","variableInstances","conditions","operations","functionCalls","loops","searches"]),g(pt,"INMUTABLE_DOWNSTREAM_PROPERTIES",[]),g(pt,"DOWNSTREAM_PROPERTIES",[...pt.MUTABLE_DOWNSTREAM_PROPERTIES,...pt.INMUTABLE_DOWNSTREAM_PROPERTIES]),g(pt,"PROPERTIES",[...pt.META_PROPERTIES,...pt.UPSTREAM_PROPERTIES,...pt.DOWNSTREAM_PROPERTIES]);let N=pt;class xS extends wt{constructor(i){super(un,i);g(this,"id",sr.Parallel);g(this,"name",sr.Parallel);g(this,"description","Programmatically execute a list of actions one after the other");g(this,"version","1");g(this,"autoexecutable",!0);g(this,"initialData",un);g(this,"type",f.ActionDescriptor);g(this,"inputs",[]);g(this,"outputs",[]);g(this,"error",null);g(this,"project");this.project=i,this.inputs=un.inputs.map(a=>{const l=te(a,this.project);return l.setParent(this,null),l.initChildren(null),l}),this.outputs=un.outputs.map(a=>{const l=te(a,this.project);return l.setParent(this,null),l.initChildren(null),l}),this.error=un.error?te(un.error,this.project):null}}class FS extends wt{constructor(i){super(qi,i);g(this,"id",qi.id);g(this,"name",qi.name);g(this,"description",qi.description);g(this,"version",qi.version);g(this,"autoexecutable",!1);g(this,"initialData",qi);g(this,"type",f.ActionDescriptor);g(this,"inputs",[]);g(this,"outputs",[]);g(this,"error",null);g(this,"project");this.project=i,this.inputs=qi.inputs.map(a=>{const l=te(a,this.project);return l.setParent(this,null),l.initChildren(null),l}),this.outputs=qi.outputs.map(a=>{const l=te(a,this.project);return l.setParent(this,null),l.initChildren(null),l}),this.error=qi.error?te(qi.error,this.project):null}}class GS extends wt{constructor(i){super(ba,i);g(this,"id",sr.Sequential);g(this,"name",sr.Sequential);g(this,"description","Programmatically execute a list of actions one after the other");g(this,"version","1");g(this,"autoexecutable",!0);g(this,"initialData",ba);g(this,"type",f.ActionDescriptor);g(this,"inputs",[]);g(this,"outputs",[]);g(this,"error",null);g(this,"project");this.project=i,this.inputs=ba.inputs.map(a=>{const l=te(a,this.project);return l.setParent(this,null),l.initChildren(null),l}),this.outputs=ba.outputs.map(a=>{const l=te(a,this.project);return l.setParent(this,null),l.initChildren(null),l}),this.error=ba.error?te(ba.error,this.project):null}}class FAe extends wt{constructor(u){super(Xu,u)}}class GAe extends wt{constructor(u){super(So,u)}}class SAe extends wt{constructor(i){super(Ko,i);g(this,"autoexecutable",!0)}getEntityToMatchInputMap(i){return i.inputs.find(a=>{var l;return((l=a.declaration)==null?void 0:l.id)===Te.operation[cr.Validate].inputs.entityToMatch.id})||null}getDataToValidateInputMap(i){return i.inputs.find(a=>{var l;return((l=a.declaration)==null?void 0:l.id)===Te.operation[cr.Validate].inputs.dataToValidate.id})||null}getOutputDataOutputMap(i){return i.outputs.find(a=>{var l;return((l=a.declaration)==null?void 0:l.id)===Te.operation[cr.Validate].outputs.outputEntity.id})||null}getEntityToMatch(i,a=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"get-entity-to-match-validate-data"))){var e;const l=((e=this.project.requestActiveDynamicValue(i))==null?void 0:e.value)||null,p=l==null?void 0:l.valueAsTypeSingle;return a==null||a.attemptAutoclose("get-entity-to-match-validate-data",this.id),p}syncOperationInstance(i,a=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"sync-operation-instance-validate-data"))){const l=[],p=[],e=[],y=[],v=this.getEntityToMatchInputMap(i);if(v){const{added:A,updated:P,removed:V,affected:U}=this.syncEntityToMatchInputMapDataType(v,a);l.push(...P),p.push(...A),e.push(...V),y.push(...U)}const T=this.getDataToValidateInputMap(i);if(T){const{added:A,updated:P,removed:V,affected:U}=this.syncDataToValidateInputMapDataType(T,a);l.push(...P),p.push(...A),e.push(...V),y.push(...U)}const w=this.getOutputDataOutputMap(i);if(w){const{added:A,updated:P,removed:V,affected:U}=this.syncOutputDataOutputMapDataType(w,a);l.push(...P),p.push(...A),e.push(...V),y.push(...U)}return a==null||a.attemptAutoclose("sync-operation-instance-validate-data",this.id),{updated:R(l),added:R(p),removed:R(e),affected:R(y),self:i}}syncEntityToMatchInputMapDataType(i,a=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"sync-entity-to-match-input-map-data-type"))){var w,A,P,V,U,G,K,J,ie,X,ce,re,he,Y,H,pe;const l=[],p=[],e=[],y=[];if(((w=i.declaration)==null?void 0:w.id)!==Te.operation[cr.Validate].inputs.entityToMatch.id)return a==null||a.attemptAutoclose("sync-entity-to-match-input-map-data-type",this.id),{updated:[],added:[],removed:[],affected:[],self:null};const v=((A=this.project.requestActiveDynamicValue(i))==null?void 0:A.value)||null,T=v==null?void 0:v.valueAsTypeSingle;if(!i.dataType){const z={id:N.UUID.uuid(),version:N.UUID.uuid(),createdAt:(a==null?void 0:a.timestamp)||new Date().toISOString(),author:(a==null?void 0:a.author)||N.sessionAuthor,previousVersion:null,deleted:!1,type:f.DataType,parentRelationType:null,options:((P=i.declaration.dataType)==null?void 0:P.options)||null,implementationChooseOne:((V=i.declaration.dataType)==null?void 0:V.implementationChooseOne)||!1,staticEntities:((U=i.declaration.dataType)==null?void 0:U.staticEntities)??null,interactiveEntities:((G=i.declaration.dataType)==null?void 0:G.interactiveEntities)??null,actionEntities:((K=i.declaration.dataType)==null?void 0:K.actionEntities)??null,isList:((J=i.declaration.dataType)==null?void 0:J.isList)||!1,andChildrenGroup:null,orChildrenGroup:null,asType:!0,entity:(T==null?void 0:T.toJSON())||null,like:!0,inferred:!0,parent:i.toReference()},oe=te(z,i.project);oe.hydrateAncestors(),oe.setParent(i,a),oe.initChildren(a),oe.setEntity(T,a),a==null||a.add(oe,S.Added),l.push(oe),i.setDataType(oe,a)}return(H=i.dataType)==null||H.metaSync({inferred:!0,like:!1,asType:!0,options:((ie=i.declaration.dataType)==null?void 0:ie.options)||null,implementationChooseOne:((X=i.declaration.dataType)==null?void 0:X.implementationChooseOne)||!1,staticEntities:((ce=i.declaration.dataType)==null?void 0:ce.staticEntities)??null,interactiveEntities:((re=i.declaration.dataType)==null?void 0:re.interactiveEntities)??null,actionEntities:((he=i.declaration.dataType)==null?void 0:he.actionEntities)??null,isList:((Y=i.declaration.dataType)==null?void 0:Y.isList)||!1},a),(pe=i.dataType)==null||pe.setEntity(T,a),i.dataType&&p.push(i.dataType),a==null||a.attemptAutoclose("sync-entity-to-match-input-map-data-type",this.id),{updated:R(p),added:R(l),removed:R(e),affected:R(y),self:i.dataType}}syncDataToValidateInputMapDataType(i,a=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"sync-data-to-validate-input-map-data-type"))){var A,P,V;const l=[],p=[],e=[],y=[];if(((A=i.declaration)==null?void 0:A.id)!==Te.operation[cr.Validate].inputs.dataToValidate.id)return a==null||a.attemptAutoclose("sync-data-to-validate-input-map-data-type",this.id),{updated:[],added:[],removed:[],affected:[],self:null};const v=this.getEntityToMatchInputMap(i.parent);if(!v)return a==null||a.attemptAutoclose("sync-data-to-validate-input-map-data-type",this.id),{updated:[],added:[],removed:[],affected:[],self:null};if(!this.getEntityToMatch(v,a))return a==null||a.attemptAutoclose("sync-data-to-validate-input-map-data-type",this.id),{updated:[],added:[],removed:[],affected:[],self:null};if(!i.dataType){const U={id:N.UUID.uuid(),version:N.UUID.uuid(),createdAt:(a==null?void 0:a.timestamp)||new Date().toISOString(),author:(a==null?void 0:a.author)||N.sessionAuthor,previousVersion:null,deleted:!1,type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,isList:!1,andChildrenGroup:null,orChildrenGroup:null,staticEntities:null,interactiveEntities:null,actionEntities:null,asType:!1,entity:null,like:!0,inferred:!0,parent:i.toReference()},G=te(U,i.project);G.setParent(i,a),G.initChildren(a),a==null||a.add(G,S.Added),l.push(G),i.setDataType(G,a)}(P=i.dataType)==null||P.metaSync({inferred:!0,like:!0,asType:!1},a);const w=this.getEntityToMatch(v,a);return(V=i.dataType)==null||V.setEntity(w,a),i.dataType&&p.push(i.dataType),a==null||a.attemptAutoclose("sync-data-to-validate-input-map-data-type",this.id),{updated:R(p),added:R(l),removed:R(e),affected:R(y),self:i.dataType}}syncOutputDataOutputMapDataType(i,a=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"sync-output-data-output-map-data-type"))){var P,V,U,G;const l=[],p=[],e=[],y=[];if(((P=i.declaration)==null?void 0:P.id)!==Te.operation[cr.Validate].outputs.outputEntity.id)return a==null||a.attemptAutoclose("sync-output-data-output-map-data-type",this.id),{updated:[],added:[],removed:[],affected:[],self:null};const v=this.getEntityToMatchInputMap(i.parent);if(!v)return a==null||a.attemptAutoclose("sync-output-data-output-map-data-type",this.id),{updated:[],added:[],removed:[],affected:[],self:null};if(!this.getEntityToMatch(v,a))return a==null||a.attemptAutoclose("sync-output-data-output-map-data-type",this.id),{updated:[],added:[],removed:[],affected:[],self:null};const w=((V=this.project.requestActiveDynamicValue(v))==null?void 0:V.value)||null,A=(w==null?void 0:w.valueAsTypeSingle)||null;if(!i.dataType){const K={id:N.UUID.uuid(),version:N.UUID.uuid(),createdAt:(a==null?void 0:a.timestamp)||new Date().toISOString(),author:(a==null?void 0:a.author)||N.sessionAuthor,previousVersion:null,deleted:!1,type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,isList:!1,andChildrenGroup:null,orChildrenGroup:null,asType:!1,entity:(A==null?void 0:A.toJSON())||null,like:!0,inferred:!0,parent:i.toReference()},J=te(K,i.project);J.hydrateAncestors(),J.setParent(i,a),J.initChildren(a),J.setEntity(A,a),a==null||a.add(J,S.Added),l.push(J),i.setDataType(J,a)}return(U=i.dataType)==null||U.metaSync({inferred:!0,like:!0,asType:!1},a),(G=i.dataType)==null||G.setEntity(A,a),i.dataType&&p.push(i.dataType),a==null||a.attemptAutoclose("sync-output-data-output-map-data-type",this.id),{updated:R(p),added:R(l),removed:R(e),affected:R(y),self:i.dataType}}inferInputMapDataType(i,a=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"infer-input-map-data-type-validate-data"))){var p,e,y;if(((p=i.declaration)==null?void 0:p.id)===Te.operation[cr.Validate].inputs.entityToMatch.id){const{added:v,updated:T,removed:w,affected:A}=this.syncEntityToMatchInputMapDataType(i,a);return a==null||a.attemptAutoclose("infer-input-map-data-type",this.id),{updated:R(T),added:R(v),removed:R(w),affected:R(A),self:i.dataType}}if(((e=i.declaration)==null?void 0:e.id)===Te.operation[cr.Validate].inputs.dataToValidate.id){const{added:v,updated:T,removed:w,affected:A}=this.syncDataToValidateInputMapDataType(i,a);return a==null||a.attemptAutoclose("infer-input-map-data-type",this.id),{updated:R(T),added:R(v),removed:R(w),affected:R(A),self:i.dataType}}const l=(y=i.declaration)==null?void 0:y.getDataType(a);if(l&&l.isResolved)return a==null||a.attemptAutoclose("infer-input-map-data-type-validate-data",this.id),{updated:[],added:[],removed:[],affected:[],self:l};if(i.readsValue){const v=hn(i.readsValue,a);return a==null||a.attemptAutoclose("infer-input-map-data-type-validate-data",this.id),{updated:[],added:[],removed:[],affected:[],self:v}}return a==null||a.attemptAutoclose("infer-input-map-data-type-validate-data",this.id),{updated:[],added:[],removed:[],affected:[],self:null}}inferOutputMapDataType(i,a=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"infer-output-map-data-type-validate-data"))){var l;if(((l=i.declaration)==null?void 0:l.id)===Te.operation[cr.Validate].outputs.outputEntity.id){const{added:p,updated:e,removed:y,affected:v}=this.syncOutputDataOutputMapDataType(i,a);return a==null||a.attemptAutoclose("infer-output-map-data-type-validate-data",this.id),{updated:R(e),added:R(p),removed:R(y),affected:R(v),self:i.dataType}}return{updated:[],added:[],removed:[],affected:[],self:null}}}class KAe extends wt{constructor(u){super(Fv,u)}}class kAe extends wt{constructor(u){super(Sv,u)}}class qAe extends wt{constructor(u){super(Kv,u)}}class JAe extends wt{constructor(u){super(nh,u)}}class ZAe extends wt{constructor(u){super(rh,u)}}class HAe extends wt{constructor(u){super(zu,u)}}function WAe(d){const u=[new GS(d),new xS(d),new FS(d),new FAe(d),new GAe(d),new SAe(d),new JAe(d),new KAe(d),new qAe(d),new kAe(d),new ZAe(d),new HAe(d),new wt(xv,d),new wt(jv,d),new wt(Xv,d),new wt(Qv,d),new wt(eE,d),new wt(tE,d),new wt(rE,d),new wt(iE,d),new wt(sE,d),new wt(nE,d),new wt(aE,d),new wt(oE,d)];return u.forEach(i=>{i.initChildren(null),d.subscribeBuiltInInstance(i)}),d.operationDeclarations=u,u}class SS extends ea{constructor(i){super(Ri,i);g(this,"initialData");g(this,"id",Be.PERSISTED_ENTITY);g(this,"version","1");g(this,"name",Be.PERSISTED_ENTITY);g(this,"description",Ri.description);g(this,"type",f.BuiltInBaseEntity);g(this,"abstract",Ri.abstract);g(this,"static",Ri.static);g(this,"properties",[]);g(this,"methods",[]);g(this,"abstractMethods",[]);g(this,"extends",[]);g(this,"errors",[]);g(this,"project");this.initialData=Ri,this.project=i,this.id=Ri.id,this.version=Ri.version,this.name=Ri.name,this.static=Ri.static,this.abstract=Ri.abstract,this.properties=this.initialData.properties.map(a=>{const l=te(a,this.project);return l.setParent(this,null),l.initChildren(null),l}),this.methods=this.initialData.methods.map(a=>{const l=te(a,this.project);return l.parent=this,l}),this.abstractMethods=this.initialData.abstractMethods.map(a=>{const l=te(a,this.project);return l.parent=this,l}),this.extends=this.initialData.extends.map(a=>te(a,this.project))}}var KS=(d=>(d.StatusCodeMustBeNumber="status-code-must-be-number",d.StatusCodeMustBeBetween100And599="status-code-must-be-between-100-and-599",d))(KS||{});function kS(d,u){const i=[];if(typeof u!="number"){const a=new lr({id:d.id+"--status-code-must-be-number",message:`Entity of type ${d.type} with id "${d.id}" has an invalid value "${u}". The value must be a number.`,issue:null,severity:q.Error,code:"status-code-must-be-number",entity:d});return i.push(a),{errors:i,override:u}}if(u<100){const a=new lr({id:d.id+"--status-code-must-be-between-100-and-599",message:`Entity of type ${d.type} with id "${d.id}" has an invalid value "${u}". The value must be a number between 100 and 599.`,issue:null,severity:q.Error,code:"status-code-must-be-between-100-and-599",entity:d});i.push(a)}if(u>599){const a=new lr({id:d.id+"--status-code-must-be-between-100-and-599",message:`Entity of type ${d.type} with id "${d.id}" has an invalid value "${u}". The value must be a number between 100 and 599.`,issue:null,severity:q.Error,code:"status-code-must-be-between-100-and-599",entity:d});i.push(a)}return{errors:i,override:u}}class qS extends ea{constructor(i){super(ls,i);g(this,"initialData");g(this,"id",Be.PERSISTED_ENTITY);g(this,"version","1");g(this,"name",Be.PERSISTED_ENTITY);g(this,"description",ls.description);g(this,"type",f.BuiltInBaseEntity);g(this,"abstract",ls.abstract);g(this,"static",ls.static);g(this,"properties",[]);g(this,"methods",[]);g(this,"abstractMethods",[]);g(this,"extends",[]);g(this,"errors",[]);g(this,"project");this.initialData=ls,this.project=i,this.id=ls.id,this.version=ls.version,this.name=ls.name,this.static=ls.static,this.abstract=ls.abstract,this.properties=this.initialData.properties.map(e=>{const y=te(e,this.project);return y.setParent(this,null),y.initChildren(null),y}),this.methods=this.initialData.methods.map(e=>{const y=te(e,this.project);return y.parent=this,y}),this.abstractMethods=this.initialData.abstractMethods.map(e=>{const y=te(e,this.project);return y.parent=this,y}),this.extends=this.initialData.extends.map(e=>te(e,this.project));const a=this.properties.find(e=>e.id===Te["built-in-base-entity"].BUILT_IN_HTTP_ENDPOINT_ENTITY.properties.path.id);if(!a)throw new Error("Path property not found in endpoint entity");a._codeNativeValueValidation=(e,y)=>y5(e,y);const l=this.abstractMethods.find(e=>e.id===Te["built-in-base-entity"].BUILT_IN_HTTP_ENDPOINT_ENTITY.methods.handler.id);if(!l)throw new Error("Handler method not found in endpoint entity");const p=l.outputs.find(e=>e.id===Te["built-in-base-entity"].BUILT_IN_HTTP_ENDPOINT_ENTITY.methods.handler.outputs.statusCode.id);if(!p)throw new Error("Status code output not found in handler method");p.codeNativeValueValidation=(e,y)=>kS(e,y)}}const YAe="test_primitive_entities_export";class zAe extends ea{constructor(i){super(Ei,i);g(this,"initialData");g(this,"id",Be.PERSISTED_ENTITY);g(this,"version","1");g(this,"name",Be.PERSISTED_ENTITY);g(this,"description",Ei.description);g(this,"type",f.BuiltInBaseEntity);g(this,"abstract",Ei.abstract);g(this,"static",Ei.static);g(this,"properties",[]);g(this,"methods",[]);g(this,"abstractMethods",[]);g(this,"extends",[]);g(this,"errors",[]);g(this,"project");this.initialData=Ei,this.project=i,this.id=Ei.id,this.version=Ei.version,this.name=Ei.name,this.static=Ei.static,this.abstract=Ei.abstract,this.properties=this.initialData.properties.map(l=>{const p=te(l,this.project);return p.setParent(this,null),p.initChildren(null),p}),this.methods=this.initialData.methods.map(l=>{const p=te(l,this.project);return p.parent=this,p}),this.abstractMethods=this.initialData.abstractMethods.map(l=>{const p=te(l,this.project);return p.parent=this,p}),this.extends=this.initialData.extends.map(l=>te(l,this.project));const a=this.properties.find(l=>l.id===Te["built-in-base-entity"].BUILT_IN_RELATIONAL_DATABASE_ENTITY.properties.identifier.id);if(!a)throw new Error("Path property not found in endpoint entity");a._codeNativeValueValidation=(l,p)=>m5(l,p)}}function XAe(d){const u=[new SS(d),new qS(d),new zAe(d),new ea(gh,d)];return u.forEach(i=>{d.subscribeBuiltInInstance(i)}),d.builtInBaseEntities=u,u}function QAe(d){const u=[new Qi(Ye,d),new Qi(Ea,d),new Qi(vt,d),new Qi(Nv,d),new Qi(vi,d),new Qi(Ta,d),new Qi(Ln,d),new Qi(Ia,d),new Qi(Ql,d)];return u.forEach(i=>{d.subscribeBuiltInInstance(i)}),d.primitives=u,u}function ebe(d){const u=[new wt(Oh,d)];return u.forEach(i=>{i.initChildren(null),d.subscribeBuiltInInstance(i)}),d.globalEventActionDescriptors=u,u}function tbe(d){const u=[new wt(rc,d),new wt(Ja,d),new wt(ec,d),new wt(rd,d),new wt(id,d),new wt(vh,d)];u.forEach(a=>{a.initChildren(null),d.subscribeBuiltInInstance(a)}),d.loopDeclarations=u;const i=[new wt(Ah,d),new wt(tc,d),new wt(Th,d),new wt(pE,d),new wt(hE,d),new wt(Eh,d)];return i.forEach(a=>{a.initChildren(null),d.subscribeBuiltInInstance(a)}),d.loopDeclarationsBodies=i,u}function rbe(d){const u=[new mn(Ch,d),new mn(ME,d)];return u.forEach(i=>{i.initChildren(null),d.subscribeBuiltInInstance(i)}),d.valueDescriptors=u,u}function ibe(d){const u=[new wt(Xo,d),new wt(NE,d),new wt(ld,d)];return u.forEach(i=>{i.initChildren(null),d.subscribeBuiltInInstance(i)}),d.conditionDeclarations=u,u}const _l={},Um={},df={empty:!1,enrich:!0,mock:!1,ignoreCache:!1,onFetch:async()=>null,manuallyInit:!1};function JS(d,u={enrich:!0,shallowErrors:!1},i){const a={enrich:!0,shallowErrors:!1,...u},{enrich:l,shallowErrors:p}=a,e=d.project,y=d.record,v=new zn(e),T=new Set;y[e.id]=e,T.add(e.id);const w=L().toISOString();Object.values(y).forEach(V=>{!V||v.allBuiltInEntityIds.includes(V.id)||T.add(V.id)}),v.order=Array.from(T),v.flatRecord=y,v.orderEntities();const A=jm(d.project,i);A.instances[e.id]=A;const P=l?A.addChangeSet(new F(A,N.sessionAuthor,w,A,!0,"project-init-from-fetch-result")):null;return v.visit(V=>{if(V.id===A.id)return;const U=te(V,A);try{U.hydrateAncestors(),U.addSelfToProject(null);const G=Xd(V);Object.keys(G.downstream).forEach(K=>{const J=A.get(K);J&&J.hydrateAncestors()})}catch(G){if(p)ke.error("Error hydrating ancestors: ",G);else throw G}}),l?(v.visit(V=>{if(V.id===A.id)return;const U=A.get(V.id);U&&U.afterAllChildrenInitialized(P)}),A.afterAllChildrenInitialized(P)):xm(A,w).forEach(U=>{U.remove({ignoreUpstream:!0},null)}),A.instancesList.forEach(V=>{V.previousVersion=null}),P==null||P.attemptAutoclose("project-init-from-fetch-result",A.id),A}async function sbe(d,u=df){const i={...df,...u};if(i.empty)return{data:{project:{id:d.id,type:f.Project,version:N.UUID.uuid(),createdAt:L().toISOString(),author:N.sessionAuthor,previousVersion:null,deleted:!1,name:null,description:null,projects:[],entities:[],operations:[],functions:[],variableDeclarations:[],variableInstances:[],functionCalls:[],conditions:[],loops:[],searches:[],events:[]},record:{}}};if(i.mock){const l={...ZT};return l.id=d.id,{data:{project:l,record:{}}}}return ke.log("Fetching project from external API"),new Promise(async l=>{try{if(i.onFetch){const p=await i.onFetch(d.id);if(p){l({data:p});return}}else l({data:null})}catch(p){ke.error("Error fetching project: ",p),l({data:null})}})}function jm(d,u){const i=new N(d,u);return QAe(i),XAe(i),WAe(i),ebe(i),tbe(i),rbe(i),ibe(i),Array.from(new Set([...i.getAllBuiltInIds(),...zs()])).forEach(l=>{if(!i.builtInInstances[l]&&i.instances[l])i.builtInInstances[l]=i.instances[l],delete i.instances[l];else if(!i.builtInInstances[l])throw new Error(`Built in entity was not properly initialized: ${l}`)}),i.instances[i.id]=i,i}function xm(d,u){return d.instancesList.filter(a=>L(a.createdAt).isAfter(L(u)||!!a.previousVersion))}function nbe(d,{enrich:u}={enrich:!0},i){const a=new Map,l=new Map,p=Array.from(new Set([...d.getAllBuiltInIds(),...zs()]));Object.keys(d.instances).forEach(A=>{if(p.includes(A)){a.set(A,A),l.set(A,A);return}const P=d.get(A);if(!Vm(P,{...d.instances,...d.builtInInstances}).every(K=>!p.includes(K))){a.set(A,A),l.set(A,A);return}const G=N.UUID.uuid();a.set(A,G),l.set(G,A)});const e=L().toISOString(),y=d.toShallowJSON({seenEntityMaps:a});y.previousVersion=null,y.createdAt=e,y.version=N.UUID.uuid();const v=jm(y,i);v.instances[v.id]=v;const T=u?v.addChangeSet(new F(v,N.sessionAuthor,e,v,!0,"project-clone")):null,w=new zn(d);return w.visit(A=>{const P=A.toShallowJSON({seenEntityMaps:a});P.previousVersion=null,P.createdAt=e,P.version=N.UUID.uuid();const V=Xd(P,P5(w.flatRecord,a));if(Object.keys(V.upstream).length){let G=!1;if(Object.keys(V.upstream).forEach(K=>{if(!G&&(!v.get(K)||v.getDeleted(K))){G=!0;return}}),G)return}const U=te(P,v);U.hydrateAncestors(),U.addSelfToProject(T),T==null||T.add(U,S.Added)}),u?(w.visit(A=>{if(A.id===v.id)return;const P=v.get(a.get(A.id));P&&P.afterAllChildrenInitialized(T)}),v.afterAllChildrenInitialized(T)):xm(v,e).forEach(P=>{P.remove({ignoreUpstream:!0},null)}),v.instancesList.forEach(A=>{A.previousVersion=null}),T==null||T.attemptAutoclose("project-clone",v.id),v}function ZS(d,{enrich:u}={enrich:!0},i){const a=jm(d,i),l=L().toISOString(),p=u?a.addChangeSet(new F(a,N.sessionAuthor,l,a,!0,"project-init")):null;p&&(p.type=eA.Automatic);const e=new zn(d);return e.visit(y=>{const v=te(y,a);v.hydrateAncestors(),v.addSelfToProject(p)}),u?(e.visit(y=>{if(y.id===a.id)return;const v=a.get(y.id);v&&v.afterAllChildrenInitialized(p)}),a.afterAllChildrenInitialized(p)):(xm(a,l).forEach(T=>{T.remove({ignoreUpstream:!0},null)}),new zn(a).visit(T=>{T.initialized=!0,T.captureVersion()})),a.initialized=!0,p==null||p.attemptAutoclose("project-init",a.id),a}async function abe(d,u=df,i){const a={...df,...u};if(d.id&&_l[d.id]&&!a.ignoreCache)return _l[d.id];if(d.id&&Um[d.id]&&!a.ignoreCache)return await Um[d.id],_l[d.id];const l=sbe(d,a);d.id&&(Um[d.id]=l);const p=await l;if(p.data){let e;return a.mock?e=ZS(ZT,{enrich:!!a.enrich},i):p.data instanceof N?e=p.data:e=JS(p.data,{enrich:!!a.enrich},i),_l[d.id]=e,d.id&&delete Um[d.id],e}return null}function obe(d){return _l[d.id]&&delete _l[d.id],null}O.AI_VALUE_CONNECTION_GENERATION_ACTION_EXPLANATION=gw,O.ALL_BUILT_IN_BASE_ENTITIES=G2,O.ALL_BUILT_IN_CONDITION_ENTITIES=iM,O.ALL_BUILT_IN_GLOBAL_EVENT_ENTITIES=nM,O.ALL_BUILT_IN_LOOP_BODY_ENTITIES=hL,O.ALL_BUILT_IN_LOOP_ENTITIES=fL,O.ALL_BUILT_IN_OPERATION_ENTITIES=_N,O.ALL_BUILT_IN_PRIMITIVE_ENTITIES=Og,O.ALL_BUILT_IN_TOP_LEVEL_ENTITIES=cM,O.ALL_BUILT_IN_VALUE_DESCRIPTORS=uM,O.ALL_CONNECTION_DISABLED_REASONS=tIe,O.ALL_OTHER_DISABLED_REASONS=iIe,O.ALL_TESTING_DISABLED_REASONS=rIe,O.ActionDescriptorState=wt,O.ActionInputMapState=Hve,O.ActionOutputMapState=zve,O.AppendToListOperationInputIds=BO,O.AppendToListOperationOutputIds=UO,O.Area=Ai,O.ArgumentDeclarationDependencyField=IG,O.ArgumentDeclarationState=Va,O.BREAK_AND_CONTINUE_STATEMENTS_RETURN_DECLARATIONS_EXPLANATION=bw,O.BUILT_INT_OPERATIONS_IMPLEMENTATIONS__PREFIX=ot,O.BUILT_IN_BASE_ENTITY_IDS=Te,O.BUILT_IN_ENTITY_TYPES=os,O.BUILT_IN_FUNCTION_IMPLEMENTATIONS__PREFIX=Kp,O.BaseCanvasDraggableState=VAe,O.BaseEntityNames=Be,O.BaseRegisteredExtension=st,O.BaseState=NAe,O.BaseValueDescriptorIds=Xl,O.BreakStatementDependencyField=RG,O.BreakStatementState=fo,O.BuiltInBaseEntityState=ea,O.BuiltInFunctionIds=ki,O.BuiltInFunctionImplementationAbortExecutionModule=KG,O.BuiltInFunctionImplementationDeletePersistedEntityModule=kG,O.BuiltInFunctionImplementationSavePersistedEntityModule=qG,O.CACHED_PROJECTS_BY_ID=_l,O.CALLABLE_ENTITIES_EXPLANATION=vIe,O.CALLABLE_TYPES=Gs,O.CALLER_ENTITIES_EXPLANATION=Q6,O.CALLER_TYPES=Ss,O.CALLS_UPDATE_EXPLANATION=mo,O.CANVAS_BASE_X=G6,O.CANVAS_BASE_Y=S6,O.CANVAS_CARD_HEADER_CENTER_HEIGHT=Yd,O.CANVAS_CARD_WIDTH=j6,O.CANVAS_COMPLEX_CARD_HEIGHT=WTe,O.CANVAS_HORIZONTAL_BUFFER_BETWEEN_CARDS=uw,O.CANVAS_SIMPLE_CARD_HEIGHT=lw,O.CANVAS_SIZE=ow,O.CANVAS_VERTICAL_BUFFER_BETWEEN_CARDS=um,O.CARD_FOOTER_HEIGHT=dm,O.CARD_PROPERTIES_SECTION_PADDING=Ma,O.CARD_PROPERTIES_SECTION_SINGLE_PADDING=dw,O.CHILDREN_TYPES=bJ,O.COMPARISON_CONDITIONS=tM,O.CONDITIONS=rM,O.CUSTOM_ENTITY_OPERATIONS=s$,O.CallableEntityClass=MAe,O.CallerEntityClass=Xw,O.CanvasEntityConnectionDisabledReason=cw,O.CanvasEntityOtherDisabledReason=fw,O.CanvasEntityTestingDisabledReason=pw,O.ChangeSet=F,O.ChangeSetChangeCaptureType=eA,O.ChangeSetEntityChangeType=S,O.ChildEntityBaseClass=LAe,O.CommonStringValidationErrorCodes=h5,O.ComparisonOperatorTypes=_r,O.ConditionDependencyField=G3,O.ConditionState=ao,O.ContinueStatementDependencyField=B3,O.ContinueStatementState=Oi,O.CreateNewInputIds=NC,O.CreateNewOutputIds=VC,O.DEFAULT_BASE_EXTENSIONS_CONTEXT=rw,O.DEFAULT_EXECUTION_INSTANCE_PARENT_CONTEXT=B6,O.DEFAULT_MODULE_IDS=it,O.DEFAULT_PROJECT_INSTANCE_PARENT_CONTEXT=jS,O.DEFAULT_PROJECT_STATIC_PARENT_CONTEXT=Qw,O.DEFAULT_UUID_MODULE=Wu,O.DRAGGABLE_CALLABLE_TYPES=Pv,O.DRAGGABLE_CALLER_TYPES=Tg,O.DRAGGABLE_ELEMENT_TYPES=th,O.DRAGGABLE_EXECUTABLE_TYPES=IJ,O.DRAGGABLE_PASS_THROUGH_CALLABLE_TYPES=eh,O.DRAGGABLE_PASS_THROUGH_CALLABLE_TYPES_WITH_OUTPUTS=$v,O.DataTypeCompatibilityTypes=Zs,O.DataTypeDependencyField=sA,O.DataTypeParentChildRelation=mi,O.DataTypeState=fs,O.DefaultEditorContext=UA,O.DefaultProjectLogicContext=BA,O.DefinitionEntityDependencyField=Bm,O.DefinitionEntityState=Qn,O.DynamicValueTypes=be,O.EDITABLE_PERSISTANCE_REPOSITORY_DEFAULTS=$Ae,O.ENTITIES_WITH_VALLUES_EXPLANATION=hm,O.ENTITY_PERSISTANCE_OPTIONS_DEFAULTS=Ee,O.ENTITY_RECUSION_OPTIONS_DEFAULTS=Ke,O.ENTITY_TYPES=AJ,O.ENTITY_WITH_CODE_NAMES_TYPES=Ag,O.ENTITY_WITH_DECLARATION_TYPES=EJ,O.ENTITY_WITH_LOGIC_SCOPE_TYPES=Mr,O.ENTITY_WITH_NAMES_TYPES=Ig,O.ENTITY_WITH_PARENT_TYPES=mJ,O.ENTITY_WITH_USER_MANAGED_DECLARATION_TYPES=vg,O.ENTITY_WITH_USER_MANAGED_SINGLE_IMPLEMENTS_TYPES=vJ,O.ENTITY_WITH_VALUE_TYPES=Cv,O.ENTRY_POINT_ENTITIES_EXPLANATION=Wp,O.ENTRY_POINT_TYPES=pr,O.ERROR_PROPERTY_HEIGHT=lm,O.EVENT_TYPES=Fo,O.EXECUTABLE_TYPES=TJ,O.EXECUTION_OPERATIONS=PC,O.EfimeralValueStore=Mp,O.EndpointEntity=qS,O.EntityError=lr,O.EntityErrorSeverity=q,O.EntityGenerationError=ee,O.EntityGenerationErrorCode=k,O.EntityInstanceErrorCode=le,O.EntityOperations=cr,O.EntityType=f,O.EntityWithLogicScopeClass=xAe,O.EntityWithValueClass=jAe,O.EntryPointEntityClass=BAe,O.Execution=Ws,O.ExecutionOperations=sr,O.ExecutionState=iw,O.ExecutionTerminationType=se,O.ExplicitInfrastructureResource=vw,O.ExtensionContextBase=MA,O.ExtensionContextType=ue,O.ExtensionPermissions=rt,O.ExtensionsRegistry=M6,O.ExtentionPriority=Xe,O.FunctionCallDependencyField=u5,O.FunctionCallState=To,O.FunctionDeclarationDependencyField=O3,O.FunctionDeclarationState=ro,O.GET_PROJECT_OPTIONS_DEFAULTS=df,O.GLOBAL_EVENT_DECLARATIONS=sM,O.GetLastInListOperationInputIds=RO,O.GetLastInListOperationOutputIds=_O,O.GlobalEventNames=va,O.GlobalEventState=no,O.HTTPOperations=yi,O.HTTPStatucCodeValidationErrorCodes=KS,O.HTTP_OPERATIONS=j$,O.ImplicitGlobalInfrastructureResource=Ew,O.InfrastructureResource=mw,O.InfrastructureResourceStatus=W6,O.InputMapDependencyField=mG,O.InputMapState=Hn,O.InstalledProjectState=co,O.InternalCallDependencyField=hG,O.InternalCallState=po,O.JoinListOperationInputIds=kD,O.JoinListOperationOutputIds=qD,O.LIST_OPERATIONS=YO,O.ListOperations=Ze,O.LiteralValueDependencyField=bG,O.LiteralValueState=Fi,O.Logger=ke,O.LoopDependencyField=x3,O.LoopState=ji,O.LoopTypes=ze,O.MAIN_VALUE_PROPERTY_HEADER_HEIGHT=om,O.MAIN_VALUE_SUB_PROPERTY_HEIGHT=YTe,O.NESTED_PROPERTY_HEIGHT=x6,O.NON_INTERACTIVE_BASE_ENTITIES_EXPLANATION=vo,O.NUMBER_OPERATIONS=sD,O.NumberOperations=Jt,O.OPERATION_DECLARATIONS=RN,O.OperationDependencyField=P3,O.OperationState=io,O.OutputMapDependencyField=EG,O.OutputMapParentChildRelation=zl,O.OutputMapState=yn,O.PARENT_AUTO_CALCULATION_FROM_CALLER_EXPLANATION=ym,O.PASS_THROUGH_CALLABLE_ENTITIES_EXPLANATION=yo,O.PASS_THROUGH_CALLABLE_TYPES=mr,O.PASS_THROUGH_CALLABLE_TYPES_WITH_OUTPUTS=Eg,O.PLACEHOLDER_VALUE_STORE_CLIENT=DG,O.PROPERTY_HEIGHT=am,O.PROPERTY_NOT_VALUE_READER_WRITTER_EXPLANATION=_w,O.PUBLISHING_DISABLED_REASONS=Y6,O.ParallelExecutionOperation=xS,O.PassThroughCallableEntityClass=UAe,O.PersistedEntity=SS,O.PrimitiveEntityState=Qi,O.PrimitiveTypes=Q,O.ProjectState=N,O.ProjectStateEvents=Vr,O.PropertyDependencyField=PS,O.PropertyState=Xn,O.PublicationRun=lIe,O.PublicationStep=H6,O.RANDOMNESS_OPERATIONS=wN,O.READABLE_ENTITY_TYPES=sw,O.READ_ONLY_ENTITY_PERSISTANCE_REPOSITORY=US,O.RETURN_STATEMENT_RETURN_DECLARATIONS_EXPLANATION=EIe,O.RandomnessOperations=Oe,O.ReturnDeclarationDependencyField=V3,O.ReturnDeclarationState=Xi,O.ReturnStatementDependencyField=nA,O.ReturnStatementState=so,O.SQLAST=jve,O.STANDALONE_CONDITIONS=J2,O.STATIC_PROPERTY_HEIGHT=F6,O.STRING_OPERATIONS=KD,O.ScopeCompatibilityType=Pm,O.SearchDependencyField=iG,O.SearchNodeImplementationModule=JG,O.SearchState=uo,O.SequentialExecutionOperation=GS,O.SequentialExecutionOperationInputIds=EC,O.SequentialExecutionOperationOutputIds=TC,O.SharedEntityErrorCode=ae,O.SharedStateFunctionality=BS,O.SplitListOperationInputIds=aO,O.SplitListOperationOutputIds=oO,O.StandaloneOperatorTypes=zr,O.StringOperations=Ge,O.TERMINATION_TYPES=Ar,O.Traverser=zn,O.USER_MANAGED_ENTITY_TYPES=bg,O.UUIDModule=ZG,O.UserManagedEntityStateTemplate=PAe,O.VALUE_READING_ENTITIES_EXPLANATION=Rw,O.VALUE_READING_TYPES=Vn,O.VALUE_WRITING_ENTITIES_EXPLANATION=e5,O.VALUE_WRITING_TYPES=qr,O.VARIABLE_DATA_TYPE_INFERRANCE_EXPLANATION=ww,O.VARIABLE_TYPES=mt,O.ValueAutogenerationType=kr,O.ValueDescriptorDependencyField=gG,O.ValueDescriptorParentChildRelation=de,O.ValueDescriptorState=mn,O.ValueReadingEntityClass=of,O.ValueWritingEntityClass=lf,O.VariableDeclarationDependencyField=q3,O.VariableDeclarationState=lo,O.VariableInputMapState=Zve,O.VariableInstanceDependencyField=oA,O.VariableInstanceState=oo,O.VariableOutputMapState=Yve,O.WaitOperation=FS,O.WaitOperationInputIds=cC,O.WaitOperationOutputIds=pC,O.actionDescriptorValidation=Zme,O.addDisabledReasons=nIe,O.afterLiteralValueAsTypeChangeSideEffects=GG,O.afterLiteralValueAsTypeDeleteSideEffects=FG,O.afterLiteralValueChangeSideEffects=jG,O.afterLiteralValueDeleteSideEffects=UG,O.aggregateVariableInputsNextValues=Bp,O.aggregateVariableInputsValues=Fy,O.appendToListOperation=nh,O.appendToListOperationElementToAppendArgument=qv,O.appendToListOperationElementToAppendArgumentParentRef=qO,O.appendToListOperationElementToAppendArgumentRef=FO,O.appendToListOperationError=WO,O.appendToListOperationErrorParentRef=HO,O.appendToListOperationListArgument=kv,O.appendToListOperationListArgumentParentRef=kO,O.appendToListOperationListArgumentRef=jO,O.appendToListOperationListDataType=xO,O.appendToListOperationResultListDataType=KO,O.appendToListOperationResultListReturn=ZO,O.appendToListOperationResultListReturnParentRef=JO,O.appendToListOperationResultListReturnRef=SO,O.appendToListOperationSecondListDataType=GO,O.applyNewScope=We,O.argumentDeclarationValidation=Xve,O.asGenerationActionExample=Yn,O.assembleAndAddLiteralValueFromDataType=vn,O.assembleStandaloneLiteralValueFromDataType=dt,O.booleanPrototype=Ea,O.breakStatementValidation=tEe,O.calculateCardSize=k6,O.calculateMethodCardSize=K6,O.calculateNewParentBasedOnCallers=zp,O.capitalizeFirstLetter=Ti,O.changeSetJSONRecordToUniqueIds=Bme,O.checkAreDataTypesCompatible=Hs,O.checkAreDefinitionEntitiesCompatibleAsDataType=lG,O.checkArePropertiesCompatibleAsDataType=oG,O.checkExtendsBaseEntity=Nm,O.checkHasBaseEntity=vs,O.checkHasMetadataChanged=Ur,O.checkImplementationsOverlap=Ua,O.checkImplementsBaseEntity=QIe,O.checkIsBranchDependentButNotDirectlyOnBranch=Rl,O.checkIsBranchDependentOnBranch=Vw,O.checkIsBuiltIn=Sw,O.checkIsCallableEntityReachable=nf,O.checkIsCanvasEntity=zIe,O.checkIsDefEntityInlineDeclaredForSearchOutputType=RA,O.checkIsDetachedBranch=pS,O.checkIsDetachedBranchShallow=Fw,O.checkIsEmptyValue=xy,O.checkIsGlobalVariable=WIe,O.checkIsGloballyDeclared=xw,O.checkIsLiteralValueEmpty=$A,O.checkIsMethod=Gw,O.checkIsNestedScope=$m,O.checkIsRequiredValue=La,O.checkScopeCompatibility=Xs,O.checkShouldInputOrOutputBePartOfFinalVariableObjectValue=af,O.checkShouldPropertyBePartOfFinalVariableObjectValue=Kw,O.cloneProject=nbe,O.conditionValidation=Hme,O.continueStatementValidation=Kme,O.convertToAbstract=$Ie,O.convertToNonAbstract=PIe,O.convertToNonStatic=VIe,O.convertToStatic=NIe,O.countedLoopActionDescriptor=rc,O.countedLoopActionDescriptorDynamicReturnDeclaration=nL,O.countedLoopActionDescriptorDynamicReturnDeclarationParentRef=sL,O.countedLoopActionDescriptorStringArgumentDeclaration=iL,O.countedLoopActionDescriptorStringArgumentDeclarationDataType=tL,O.countedLoopActionDescriptorStringArgumentDeclarationDataTypeDefaultValue=QV,O.countedLoopActionDescriptorStringArgumentDeclarationDataTypeDefaultValueParentRef=XV,O.countedLoopActionDescriptorStringArgumentDeclarationDataTypeParentRef=eL,O.countedLoopActionDescriptorStringArgumentDeclarationParentRef=rL,O.countedLoopBodyActionDescriptor=Ah,O.countedLoopBodyActionDescriptorAnyDynamicArgument=uL,O.countedLoopBodyActionDescriptorAnyDynamicArgumentParentRef=dL,O.countedLoopBodyActionDescriptorAnyDynamicReturn=pL,O.countedLoopBodyActionDescriptorAnyDynamicReturnParentRef=cL,O.countedLoopBodyActionDescriptorIterationNumberArgumentDeclaration=mE,O.countedLoopBodyActionDescriptorIterationNumberArgumentDeclarationDataType=oL,O.countedLoopBodyActionDescriptorIterationNumberArgumentDeclarationDataTypeParentRef=aL,O.countedLoopBodyActionDescriptorIterationNumberArgumentDeclarationParentRef=lL,O.createDefinitionEntityFromJSONObject=Im,O.createEntityError=ft,O.createNestedDataTypeForEntity=f5,O.createNewInstanceOperation=So,O.createNewInstanceOperationEntityToInstanciateArgument=GC,O.createNewInstanceOperationEntityToInstanciateArgumentRef=jC,O.createNewInstanceOperationEntityToInstanciateDataType=xC,O.createNewInstanceOperationError=qC,O.createNewInstanceOperationErrorParentRef=kC,O.createNewInstanceOperationNewEntityDataArgument=UC,O.createNewInstanceOperationNewEntityDataArgumentDataType=BC,O.createNewInstanceOperationNewEntityDataArgumentDataTypeParentRef=MC,O.createNewInstanceOperationNewEntityDataArgumentParentRef=LC,O.createNewInstanceOperationOutputEntityDeclaration=KC,O.createNewInstanceOperationOutputEntityDeclarationParentRef=SC,O.createNewInstanceOperationRef=FC,O.createSemanticId=gS,O.createStateFromGenerationTargetType=CAe,O.createStateFromType=or,O.createStateFromTypeAndSubscribe=te,O.cronJobBuiltInBaseEntity=gh,O.cronJobBuiltInBaseEntityExpressionProperty=x2,O.cronJobBuiltInBaseEntityExpressionPropertyDataTypeRef=CJ,O.cronJobBuiltInBaseEntityExpressionPropertyRef=U2,O.cronJobBuiltInBaseEntityRef=j2,O.cronJobTriggeredFunctionDeclarationBlueprint=$E,O.cronJobTriggeredFunctionDeclarationBlueprintParentRef=M2,O.dataTypeCompatibilityToErrorExplanation=l5,O.dataTypeValidation=Ume,O.datePrototype=Ln,O.dateValueAutogenerationSchema=MI,O.definitionEntityToZodSchema=rT,O.definitionEntityValidation=_Ae,O.deletePersistedEntityMethod=CE,O.deletePersistedEntityMethodParentRef=T2,O.deleteRootProject=obe,O.emitSideEffects=D3,O.emptyCondition=NE,O.emptyConditionArgument=q2,O.emptyConditionRef=k2,O.endpointBuiltInBaseEntity=ls,O.endpointBuiltInBaseEntityRef=EL,O.endpointBuiltInBaseEntityRefFour=e2,O.endpointBuiltInBaseEntityRefThree=DL,O.endpointBuiltInBaseEntityRefTwo=wL,O.endpointBuiltInCorsProperty=TL,O.endpointBuiltInCorsPropertyDataType=vL,O.endpointBuiltInCorsPropertyDataTypeRef=yL,O.endpointBuiltInCorsPropertyRef=mL,O.endpointBuiltInMethodProperty=EE,O.endpointBuiltInMethodPropertyDataType=gL,O.endpointBuiltInMethodPropertyDataTypeRef=RL,O.endpointBuiltInMethodPropertyRef=_L,O.endpointBuiltInPathProperty=vE,O.endpointBuiltInPathPropertyDataType=bL,O.endpointBuiltInPathPropertyDataTypeRef=IL,O.endpointBuiltInPathPropertyRef=AL,O.endpointPathParamsArgumentDeclaration=IE,O.endpointPathParamsArgumentDeclarationRef=UL,O.endpointPathParamsVariableDataType=jL,O.endpointPathParamsVariableDataTypeRef=BL,O.endpointReachedTriggerActionDescriptor=gE,O.endpointReachedTriggerActionDescriptorRef=xL,O.endpointReachedTriggerActionDescriptorRefFour=SL,O.endpointReachedTriggerActionDescriptorRefThree=GL,O.endpointReachedTriggerActionDescriptorRefTwo=FL,O.endpointRequestBodyArgumentDeclaration=bE,O.endpointRequestBodyArgumentDeclarationRef=PL,O.endpointRequestBodyVariableDataType=NL,O.endpointRequestHeadersArgumentDeclaration=TE,O.endpointRequestHeadersArgumentDeclarationRef=CL,O.endpointRequestHeadersVariableDataType=$L,O.endpointRequestHeadersVariableDataTypeRef=OL,O.endpointRequestQueryParamsArgumentDeclaration=AE,O.endpointRequestQueryParamsArgumentDeclarationRef=LL,O.endpointRequestQueryParamsVariableDataType=ML,O.endpointRequestQueryParamsVariableDataTypeRef=VL,O.endpointResponseBodyDataType=XL,O.endpointResponseBodyReturnDeclaration=_E,O.endpointResponseBodyReturnDeclarationRef=zL,O.endpointResponseCodeDataType=kL,O.endpointResponseCodeReturnDeclaration=wE,O.endpointResponseCodeReturnDeclarationDefaultValueParentRef=JL,O.endpointResponseCodeReturnDeclarationRef=KL,O.endpointResponseHeadersDataType=WL,O.endpointResponseHeadersDataTypeRef=ZL,O.endpointResponseHeadersReturnDeclaration=RE,O.endpointResponseHeadersReturnDeclarationRef=HL,O.endpointReturnStatementRef=qL,O.endpointReturnStatementRefThree=QL,O.endpointReturnStatementRefTwo=YL,O.enerateRandomIntegerOperationError=X$,O.enerateRandomIntegerOperationErrorParentRef=z$,O.enrichFromKnownEntities=Xp,O.enumOptionsProperty=Dg,O.enumOptionsPropertyDataType=_g,O.enumOptionsPropertyDataTypeRef=wg,O.enumOptionsPropertyRef=Rg,O.enumPrototype=Ta,O.enumPrototypeRef=gg,O.errorCodeToMessage=Zp,O.executionBuiltInBaseEntity=Dh,O.executionBuiltInEntityAbortMethod=PE,O.executionBuiltInEntityAbortMethodParentRef=F2,O.filterOutDuplicateEntities=R,O.filterOutDuplicateErrors=GU,O.findEntityFromKeys=$w,O.findReferenceToSelfInList=$5,O.findReferencesToSelfInProject=SIe,O.flattenActionDescriptor=N5,O.flattenArgumentDeclaration=V5,O.flattenBreakStatement=L5,O.flattenBuiltInBaseEntity=M5,O.flattenCalls=Ys,O.flattenCanvasAncestorsUntil=zd,O.flattenCondition=B5,O.flattenContinueStatement=U5,O.flattenDataType=x5,O.flattenDefinitionEntity=j5,O.flattenDefinitionEntityExtensionAndImplementationTypes=tu,O.flattenDefinitionEntityExtensionTypes=ef,O.flattenDefinitionEntityExtensions=Bw,O.flattenDefinitionEntityImplementations=Uw,O.flattenDefinitionEntityImplementionTypes=Qp,O.flattenDerivedCanvasEntities=ms,O.flattenDetachedBranch=hS,O.flattenElementCalls=_t,O.flattenElementCallsOnTheSameScope=GIe,O.flattenEntity=ve,O.flattenFunctionCall=F5,O.flattenFunctionDeclaration=G5,O.flattenGlobalEvent=S5,O.flattenInputMap=K5,O.flattenInstalledProject=k5,O.flattenInternalCall=q5,O.flattenLiteralValue=J5,O.flattenLoop=Z5,O.flattenOperation=H5,O.flattenOutputMap=W5,O.flattenPrimitiveEntity=Y5,O.flattenProject=z5,O.flattenProjectElements=C5,O.flattenProperty=X5,O.flattenRelatedCallableElementsOnTheRight=uS,O.flattenRelatedCanvasElementsOnTheLeft=cS,O.flattenRelatedCanvasElementsOnTheRight=Om,O.flattenReturnDeclaration=Q5,O.flattenReturnStatement=eS,O.flattenSearch=tS,O.flattenValueDescriptor=rS,O.flattenVariableDeclaration=iS,O.flattenVariableInstance=sS,O.flattenVariableReads=O5,O.flattenVariableWrites=D5,O.flattenVariables=yr,O.fromChangeSetToRecordChangeSet=nAe,O.fromLiteralValueTypeToPrimitiveType=bA,O.fromPublishingDisabledCodeToReadable=cIe,O.fromZodParseToEntityGenerationErrors=Tw,O.functionCallValidation=DIe,O.functionDeclarationValidation=Mme,O.generate=Mh,O.generateActionExample=TIe,O.generateExecutionDataType=kve,O.generateHexadecimalTokenOperation=oE,O.generateHexadecimalTokenOperationError=bN,O.generateHexadecimalTokenOperationErrorParentRef=AN,O.generateHexadecimalTokenOperationResultStringDataType=EN,O.generateHexadecimalTokenOperationResultStringDataTypeParentRef=vN,O.generateHexadecimalTokenOperationResultStringOutput=IN,O.generateHexadecimalTokenOperationResultStringOutputParentRef=TN,O.generateIdFromStrategy=Gr,O.generateIdentifierOperation=sE,O.generateIdentifierOperationAlphabetInput=XP,O.generateIdentifierOperationAlphabetInputParentRef=WP,O.generateIdentifierOperationAlphabetInputType=zP,O.generateIdentifierOperationAlphabetInputTypeParentRef=YP,O.generateIdentifierOperationError=sN,O.generateIdentifierOperationErrorParentRef=iN,O.generateIdentifierOperationLengthInput=HP,O.generateIdentifierOperationLengthInputParentRef=qP,O.generateIdentifierOperationLengthInputType=ZP,O.generateIdentifierOperationLengthInputTypeParentRef=JP,O.generateIdentifierOperationResultStringDataType=tN,O.generateIdentifierOperationResultStringDataTypeParentRef=eN,O.generateIdentifierOperationResultStringOutput=rN,O.generateIdentifierOperationResultStringOutputParentRef=QP,O.generateMutablePropertiesExplanation=cm,O.generatePlaceholderValueStore=iEe,O.generateRandomAlphanumericOperation=iE,O.generateRandomAlphanumericOperationError=kP,O.generateRandomAlphanumericOperationErrorParentRef=KP,O.generateRandomAlphanumericOperationLengthInput=jP,O.generateRandomAlphanumericOperationLengthInputParentRef=MP,O.generateRandomAlphanumericOperationLengthInputType=UP,O.generateRandomAlphanumericOperationLengthInputTypeParentRef=BP,O.generateRandomAlphanumericOperationResultStringDataType=FP,O.generateRandomAlphanumericOperationResultStringDataTypeParentRef=xP,O.generateRandomAlphanumericOperationResultStringOutput=SP,O.generateRandomAlphanumericOperationResultStringOutputParentRef=GP,O.generateRandomBase62Operation=tE,O.generateRandomBase62OperationError=RP,O.generateRandomBase62OperationErrorParentRef=wP,O.generateRandomBase62OperationLengthInput=EP,O.generateRandomBase62OperationLengthInputParentRef=yP,O.generateRandomBase62OperationLengthInputType=vP,O.generateRandomBase62OperationLengthInputTypeParentRef=mP,O.generateRandomBase62OperationResultStringDataType=IP,O.generateRandomBase62OperationResultStringDataTypeParentRef=TP,O.generateRandomBase62OperationResultStringOutput=bP,O.generateRandomBase62OperationResultStringOutputParentRef=AP,O.generateRandomBase64Operation=rE,O.generateRandomBase64OperationError=LP,O.generateRandomBase64OperationErrorParentRef=VP,O.generateRandomBase64OperationLengthInput=OP,O.generateRandomBase64OperationLengthInputParentRef=_P,O.generateRandomBase64OperationLengthInputType=DP,O.generateRandomBase64OperationLengthInputTypeParentRef=gP,O.generateRandomBase64OperationResultStringDataType=$P,O.generateRandomBase64OperationResultStringDataTypeParentRef=CP,O.generateRandomBase64OperationResultStringOutput=NP,O.generateRandomBase64OperationResultStringOutputParentRef=PP,O.generateRandomBoolean=VM,O.generateRandomDate=wM,O.generateRandomDateAfter=IM,O.generateRandomDateBefore=AM,O.generateRandomDateBetweenRange=bM,O.generateRandomFloatOperation=Qv,O.generateRandomFloatOperationError=sP,O.generateRandomFloatOperationErrorParentRef=iP,O.generateRandomFloatOperationResultNumberDataType=eP,O.generateRandomFloatOperationResultNumberDataTypeParentRef=Q$,O.generateRandomFloatOperationResultNumberOutput=rP,O.generateRandomFloatOperationResultNumberOutputParentRef=tP,O.generateRandomHexadecimalOperation=eE,O.generateRandomHexadecimalOperationError=hP,O.generateRandomHexadecimalOperationErrorParentRef=fP,O.generateRandomHexadecimalOperationLengthInput=lP,O.generateRandomHexadecimalOperationLengthInputParentRef=nP,O.generateRandomHexadecimalOperationLengthInputType=oP,O.generateRandomHexadecimalOperationLengthInputTypeParentRef=aP,O.generateRandomHexadecimalOperationResultStringDataType=uP,O.generateRandomHexadecimalOperationResultStringDataTypeParentRef=dP,O.generateRandomHexadecimalOperationResultStringOutput=pP,O.generateRandomHexadecimalOperationResultStringOutputParentRef=cP,O.generateRandomIntegerOperation=Xv,O.generateRandomIntegerOperationMaxValueInput=J$,O.generateRandomIntegerOperationMaxValueInputParentRef=K$,O.generateRandomIntegerOperationMaxValueInputType=q$,O.generateRandomIntegerOperationMaxValueInputTypeParentRef=k$,O.generateRandomIntegerOperationMinValueInput=Y$,O.generateRandomIntegerOperationMinValueInputParentRef=Z$,O.generateRandomIntegerOperationMinValueInputType=W$,O.generateRandomIntegerOperationMinValueInputTypeParentRef=H$,O.generateRandomIntegerOperationResultNumberDataType=F$,O.generateRandomIntegerOperationResultNumberDataTypeParentRef=x$,O.generateRandomIntegerOperationResultNumberOutput=S$,O.generateRandomIntegerOperationResultNumberOutputParentRef=G$,O.generateRandomNumber=OM,O.generateRandomNumberAfter=_M,O.generateRandomNumberBefore=gM,O.generateRandomNumberBetweenRange=DM,O.generateRandomText=NM,O.generateRandomTextAfter=CM,O.generateRandomTextBefore=$M,O.generateRandomTextBetweenRange=PM,O.generateRandomUUIDv4Operation=nE,O.generateRandomUUIDv4OperationError=uN,O.generateRandomUUIDv4OperationErrorParentRef=dN,O.generateRandomUUIDv4OperationResultStringDataType=aN,O.generateRandomUUIDv4OperationResultStringDataTypeParentRef=nN,O.generateRandomUUIDv4OperationResultStringOutput=lN,O.generateRandomUUIDv4OperationResultStringOutputParentRef=oN,O.generateShortIdentifierOperation=aE,O.generateShortIdentifierOperationError=mN,O.generateShortIdentifierOperationErrorParentRef=yN,O.generateShortIdentifierOperationResultStringDataType=pN,O.generateShortIdentifierOperationResultStringDataTypeParentRef=cN,O.generateShortIdentifierOperationResultStringOutput=hN,O.generateShortIdentifierOperationResultStringOutputParentRef=fN,O.generateStandaloneIfDefault=sEe,O.generateUniqueUUID=RM,O.getAllActionDescriptorsForConditions=Em,O.getAllActionDescriptorsForGlobalEvents=mm,O.getAllActionDescriptorsForLoops=vm,O.getAllActionDescriptorsForOperations=wIe,O.getAllBuiltInEntityIds=zs,O.getAllGloballyDeclaredFunctionDeclarationsExplanation=n5,O.getAllVariablesInScope=lAe,O.getBaseBuiltInEntities=Pi,O.getBaseSchemaBasedOnType=z6,O.getBuiltInEntityOwner=Ao,O.getCallableEntitiesDerivedFromInternalCalls=dS,O.getCallableEntitiesDerivedFromWrites=eu,O.getCallableEntityReferenceSchema=Ii,O.getCallableEntityTypeSchema=A3,O.getCalledBy=Vs,O.getCallerEntityReferenceSchema=Zye,O.getCallerEntityTypeSchema=Jye,O.getCalls=wm,O.getCanvasEntitiesDerivedFromInternalCalls=lS,O.getCanvasEntitiesDerivedFromWrites=Qd,O.getCanvasEntityDerivedFromValueReadingEntity=gm,O.getCanvasEntityDerivedFromValueReadingEntityFromTransfer=oS,O.getCanvasEntityReferenceSchema=ume,O.getCanvasEntityTypeSchema=dme,O.getChildrenEntityWithValues=MIe,O.getColumnProperties=ru,O.getCommonAncestor=Lw,O.getCommonChildren=Am,O.getDatabaseEntities=tAe,O.getDatabaseEntity=iAe,O.getDeclaration=Ci,O.getDeclarationOutputedError=oAe,O.getDeepestScope=mS,O.getDefaultRelationalDatabaseEntityOrFirst=ES,O.getDraggableCallableEntityReferenceSchema=w3,O.getDraggableCallableEntityTypeSchema=b3,O.getDraggableCallerEntityReferenceSchema=Wye,O.getDraggableCallerEntityTypeSchema=Hye,O.getDraggableExecutableEntityReferenceSchema=Qye,O.getDraggableExecutableEntityTypeSchema=Xye,O.getDraggablePassThroughCallableEntityReferenceSchema=Ry,O.getDraggablePassThroughCallableEntityTypeSchema=wy,O.getDraggablePlayableEntityReferenceSchema=sme,O.getDraggablePlayableEntityTypeSchema=ime,O.getEntitiesCreatedSinceInitialization=xm,O.getEntitiesToPropagateValuesTo=En,O.getEntityArgumentDeclarations=Mw,O.getEntityInputMaps=nS,O.getEntityOutputMaps=JIe,O.getEntityReferenceSchema=lme,O.getEntityReturnDeclarations=aS,O.getEntityTypeSchema=ome,O.getEntityWithLogicScopeReferenceSchema=Pa,O.getEntityWithLogicScopeTypeSchema=eme,O.getEntityWithValueReferenceSchema=I3,O.getEntityWithValueTypeSchema=qye,O.getEntryPointEntityReferenceSchema=ci,O.getEntryPointEntityTypeSchema=to,O.getEventEntityReferenceSchema=Ay,O.getEventEntityTypeSchema=Iy,O.getEventNameFromDefinition=uIe,O.getExecutableEntityReferenceSchema=zye,O.getExecutableEntityTypeSchema=Yye,O.getExtendedBuiltInEntity=ZIe,O.getExtendedDefinitionEntity=Cm,O.getFirstNonLoopScopeOwner=Wr,O.getGenerationTargetSchemaBasedOnType=X6,O.getHTTPAPINameFromProjectId=J6,O.getHeadIfPartOfDetachedBranch=fS,O.getHighestScope=yS,O.getImplementedBuiltInEntity=HIe,O.getIsInteractive=tf,O.getLastInListOperation=Kv,O.getLastInListOperationError=MO,O.getLastInListOperationErrorParentRef=LO,O.getLastInListOperationInputListArgument=PO,O.getLastInListOperationInputListArgumentParentRef=$O,O.getLastInListOperationInputListArgumentRef=gO,O.getLastInListOperationInputListDataType=DO,O.getLastInListOperationOutputElementDataType=CO,O.getLastInListOperationOutputElementReturn=VO,O.getLastInListOperationOutputElementReturnParentRef=NO,O.getLastInListOperationOutputElementReturnRef=OO,O.getLinkedEntitiesFromArgumentDeclaration=FIe,O.getLiteralValueNameFromDataType=ml,O.getLowestPersistedEntityImplementation=jw,O.getOnlyRelevantErrorsForPublication=gIe,O.getParentCallableEntity=v5,O.getParentCallerEntity=T5,O.getParentCanvasEntities=$i,O.getParentCanvasEntity=Er,O.getParentCanvasEntityFromTransfer=bm,O.getParentEntryPoint=LIe,O.getParentPassthroughCallableEntity=E5,O.getPassThroughCallableEntityReferenceSchema=Dr,O.getPassThroughCallableEntityTypeSchema=by,O.getPeristedEntities=eAe,O.getPlayableEntityReferenceSchema=rme,O.getPlayableEntityTypeSchema=tme,O.getProject=abe,O.getPrototypeByType=rf,O.getRecordOrderForTraversal=CIe,O.getRecusriveParentsIds=Vm,O.getReferenceEntityId=Z,O.getReferencedEntitiesStateOrErrors=fm,O.getReferencedEntityStateOrErrors=Iw,O.getReferencedIds=Xd,O.getRelatedCallableElementsOnTheRight=Dm,O.getRelatedCanvasElementsOnTheLeft=Io,O.getRelatedCanvasElementsOnTheLeftFromTransfer=KIe,O.getRelatedCanvasElementsOnTheRight=bn,O.getRelationalDBInstanceNameFromEntityId=Z6,O.getRootEntryPointScopeOwner=sf,O.getScopeOwner=Si,O.getStateClassFromType=sAe,O.getStepNameFromDefinition=dIe,O.getTerminationReferenceSchema=ame,O.getTerminationTypeSchema=nme,O.getTopLevelParentEntityId=TS,O.getTouchedCanvasEntitiesFromChangeSet=aAe,O.getUsedArgFromDeclaration=kIe,O.getUsedReturnFromDeclaration=qIe,O.getValueReadingEntityReferenceSchema=T3,O.getValueReadingEntityTypeSchema=$a,O.getValueWritingEntityReferenceSchema=kye,O.getValueWritingEntityTypeSchema=Lc,O.getVariableFromInputMapping=A5,O.getVariableFromReturnVariablePointer=R5,O.getVariableReferenceSchema=eo,O.getVariableTypeSchema=ul,O.getVariablesFromArgumentDeclarations=_m,O.getVariablesFromInputMaps=b5,O.getVariablesFromOutputMapping=_5,O.getVariablesFromOutputMaps=g5,O.getVariablesFromReturnDeclarations=w5,O.getVariablesInSameOrHigherScope=CA,O.getWrites=Rm,O.globalEventValidation=kme,O.groupCallsBasedOnParallelizableExecution=UIe,O.handleAfterEntityImplementationSideEffects=p5,O.handleBeforeEntityImplementationSideEffects=c5,O.handleLiteralValueChange=nEe,O.handleLiteralValueDelete=xG,O.handleValueAsTypeChange=aEe,O.handleValueAsTypeDelete=SG,O.httpRequestBodyArgument=dh,O.httpRequestBodyArgumentRef=v$,O.httpRequestBodyDataType=E$,O.httpRequestHeadersArgument=lh,O.httpRequestHeadersArgumentRef=y$,O.httpRequestHeadersDataType=m$,O.httpRequestMethodArgument=ah,O.httpRequestMethodArgumentRef=f$,O.httpRequestMethodDataType=h$,O.httpRequestMethodDataTypeRef=c$,O.httpRequestOperation=Xu,O.httpRequestOperationErrorValueDescriptor=zv,O.httpRequestOperationErrorValueDescriptorDatatype=U$,O.httpRequestOperationErrorValueDescriptorRef=B$,O.httpRequestOperationRef=N$,O.httpRequestOperationRefEight=L$,O.httpRequestOperationRefFive=$$,O.httpRequestOperationRefFour=C$,O.httpRequestOperationRefNine=M$,O.httpRequestOperationRefSeven=V$,O.httpRequestOperationRefSix=P$,O.httpRequestOperationRefThree=O$,O.httpRequestOperationRefTwo=D$,O.httpRequestQueryParamsArgument=Yv,O.httpRequestQueryParamsArgumentRef=d$,O.httpRequestQueryParamsDataType=u$,O.httpRequestVariableURLArgument=oh,O.httpRequestVariableURLArgumentRef=o$,O.httpRequestVariableURLDataType=l$,O.httpRequestVariableURLDataTypeRef=n$,O.httpResponseBodyReturnDataType=g$,O.httpResponseBodyReturnDataTypeRef=R$,O.httpResponseBodyReturnReturn=ph,O.httpResponseBodyReturnReturnRef=_$,O.httpResponseCodeDataType=I$,O.httpResponseCodeReturn=uh,O.httpResponseCodeReturnRef=T$,O.httpResponseHeadersDataType=w$,O.httpResponseHeadersDataTypeRef=A$,O.httpResponseHeadersReturn=ch,O.httpResponseHeadersReturnRef=b$,O.httpStatusCodeValueValidation=kS,O.hydrateOrDiscardLiteralValue=OG,O.implement=Tm,O.inferArgumentDeclarationDataType=dG,O.inferDataType=hn,O.inferInputMapDataType=gA,O.inferOutputMapDataType=OA,O.inferPropertyDataType=pG,O.inferReturnDeclarationDataType=DA,O.inferValueDescriptorDataType=fG,O.inferVariableDeclarationDataType=cG,O.inferVariableInstanceDataType=uG,O.initBaseProjectEntity=jm,O.initProject=ZS,O.initProjectFromFetchResult=JS,O.inputMapValidation=qve,O.installedProjectValidation=Sve,O.internalCallValidation=Kve,O.isPromise=Cw,O.isUUID=DS,O.iterateOverListActionDescriptorListArgumentDeclaration=rV,O.iterateOverListActionDescriptorListArgumentDeclarationDataType=eV,O.iterateOverListActionDescriptorListArgumentDeclarationDataTypeParentRef=QN,O.iterateOverListActionDescriptorListArgumentDeclarationParentRef=tV,O.iterateOverListLoopActionDescriptor=Ja,O.iterateOverListLoopActionDescriptorDynamicReturnDeclaration=sV,O.iterateOverListLoopActionDescriptorDynamicReturnDeclarationParentRef=iV,O.iterateOverListLoopBodyActionDescriptor=tc,O.iterateOverListLoopBodyActionDescriptorAnyDynamicArgument=fV,O.iterateOverListLoopBodyActionDescriptorAnyDynamicArgumentParentRef=pV,O.iterateOverListLoopBodyActionDescriptorAnyDynamicReturn=yV,O.iterateOverListLoopBodyActionDescriptorAnyDynamicReturnParentRef=hV,O.iterateOverListLoopBodyActionDescriptorCurrentValueArgumentDeclaration=Ih,O.iterateOverListLoopBodyActionDescriptorCurrentValueArgumentDeclarationDataType=aV,O.iterateOverListLoopBodyActionDescriptorCurrentValueArgumentDeclarationDataTypeParentRef=nV,O.iterateOverListLoopBodyActionDescriptorCurrentValueArgumentDeclarationParentRef=oV,O.iterateOverListLoopBodyActionDescriptorIterationNumberArgumentDeclaration=cV,O.iterateOverListLoopBodyActionDescriptorIterationNumberArgumentDeclarationDataType=dV,O.iterateOverListLoopBodyActionDescriptorIterationNumberArgumentDeclarationDataTypeParentRef=lV,O.iterateOverListLoopBodyActionDescriptorIterationNumberArgumentDeclarationParentRef=uV,O.iterateOverObjectKeysActionDescriptorObjectArgumentDeclaration=IV,O.iterateOverObjectKeysActionDescriptorObjectArgumentDeclarationDataType=EV,O.iterateOverObjectKeysActionDescriptorObjectArgumentDeclarationDataTypeParentRef=vV,O.iterateOverObjectKeysActionDescriptorObjectArgumentDeclarationParentRef=TV,O.iterateOverObjectKeysLoopActionDescriptor=rd,O.iterateOverObjectKeysLoopActionDescriptorDynamicReturnDeclaration=bV,O.iterateOverObjectKeysLoopActionDescriptorDynamicReturnDeclarationParentRef=AV,O.iterateOverObjectKeysLoopBodyActionDescriptor=pE,O.iterateOverObjectKeysLoopBodyActionDescriptorAnyDynamicArgument=PV,O.iterateOverObjectKeysLoopBodyActionDescriptorAnyDynamicArgumentParentRef=$V,O.iterateOverObjectKeysLoopBodyActionDescriptorAnyDynamicReturn=VV,O.iterateOverObjectKeysLoopBodyActionDescriptorAnyDynamicReturnParentRef=NV,O.iterateOverObjectKeysLoopBodyActionDescriptorCurrentValueArgumentDeclaration=cE,O.iterateOverObjectKeysLoopBodyActionDescriptorCurrentValueArgumentDeclarationDataType=RV,O.iterateOverObjectKeysLoopBodyActionDescriptorCurrentValueArgumentDeclarationDataTypeParentRef=wV,O.iterateOverObjectKeysLoopBodyActionDescriptorCurrentValueArgumentDeclarationParentRef=_V,O.iterateOverObjectKeysLoopBodyActionDescriptorIterationNumberArgumentDeclaration=CV,O.iterateOverObjectKeysLoopBodyActionDescriptorIterationNumberArgumentDeclarationDataType=DV,O.iterateOverObjectKeysLoopBodyActionDescriptorIterationNumberArgumentDeclarationDataTypeParentRef=gV,O.iterateOverObjectKeysLoopBodyActionDescriptorIterationNumberArgumentDeclarationParentRef=OV,O.iterateOverObjectValuesActionDescriptorObjectArgumentDeclaration=jV,O.iterateOverObjectValuesActionDescriptorObjectArgumentDeclarationDataType=BV,O.iterateOverObjectValuesActionDescriptorObjectArgumentDeclarationDataTypeParentRef=MV,O.iterateOverObjectValuesActionDescriptorObjectArgumentDeclarationParentRef=UV,O.iterateOverObjectValuesLoopActionDescriptor=id,O.iterateOverObjectValuesLoopActionDescriptorDynamicReturnDeclaration=FV,O.iterateOverObjectValuesLoopActionDescriptorDynamicReturnDeclarationParentRef=xV,O.iterateOverObjectValuesLoopBodyActionDescriptor=hE,O.iterateOverObjectValuesLoopBodyActionDescriptorAnyDynamicArgument=WV,O.iterateOverObjectValuesLoopBodyActionDescriptorAnyDynamicArgumentParentRef=HV,O.iterateOverObjectValuesLoopBodyActionDescriptorAnyDynamicReturn=zV,O.iterateOverObjectValuesLoopBodyActionDescriptorAnyDynamicReturnParentRef=YV,O.iterateOverObjectValuesLoopBodyActionDescriptorCurrentValueArgumentDeclaration=fE,O.iterateOverObjectValuesLoopBodyActionDescriptorCurrentValueArgumentDeclarationDataType=SV,O.iterateOverObjectValuesLoopBodyActionDescriptorCurrentValueArgumentDeclarationDataTypeParentRef=GV,O.iterateOverObjectValuesLoopBodyActionDescriptorCurrentValueArgumentDeclarationParentRef=KV,O.iterateOverObjectValuesLoopBodyActionDescriptorIterationNumberArgumentDeclaration=ZV,O.iterateOverObjectValuesLoopBodyActionDescriptorIterationNumberArgumentDeclarationDataType=qV,O.iterateOverObjectValuesLoopBodyActionDescriptorIterationNumberArgumentDeclarationDataTypeParentRef=kV,O.iterateOverObjectValuesLoopBodyActionDescriptorIterationNumberArgumentDeclarationParentRef=JV,O.iterateOverStringActionDescriptorDynamicReturnDeclaration=GN,O.iterateOverStringActionDescriptorDynamicReturnDeclarationParentRef=FN,O.iterateOverStringActionDescriptorStringArgumentDeclaration=xN,O.iterateOverStringActionDescriptorStringArgumentDeclarationDataType=UN,O.iterateOverStringActionDescriptorStringArgumentDeclarationDataTypeParentRef=BN,O.iterateOverStringActionDescriptorStringArgumentDeclarationParentRef=jN,O.iterateOverStringLoopActionDescriptor=ec,O.iterateOverStringLoopBodyActionDescriptor=Th,O.iterateOverStringLoopBodyActionDescriptorAnyDynamicArgument=WN,O.iterateOverStringLoopBodyActionDescriptorAnyDynamicArgumentParentRef=HN,O.iterateOverStringLoopBodyActionDescriptorAnyDynamicReturn=zN,O.iterateOverStringLoopBodyActionDescriptorAnyDynamicReturnParentRef=YN,O.iterateOverStringLoopBodyActionDescriptorCurrentValueArgumentDeclaration=dE,O.iterateOverStringLoopBodyActionDescriptorCurrentValueArgumentDeclarationDataType=KN,O.iterateOverStringLoopBodyActionDescriptorCurrentValueArgumentDeclarationDataTypeParentRef=SN,O.iterateOverStringLoopBodyActionDescriptorCurrentValueArgumentDeclarationParentRef=kN,O.iterateOverStringLoopBodyActionDescriptorIterationNumberArgumentDeclaration=uE,O.iterateOverStringLoopBodyActionDescriptorIterationNumberArgumentDeclarationDataType=JN,O.iterateOverStringLoopBodyActionDescriptorIterationNumberArgumentDeclarationDataTypeParentRef=qN,O.iterateOverStringLoopBodyActionDescriptorIterationNumberArgumentDeclarationParentRef=ZN,O.joinListOperation=Fv,O.joinListOperationError=nO,O.joinListOperationErrorParentRef=sO,O.joinListOperationFirstListArgument=QD,O.joinListOperationFirstListArgumentParentRef=XD,O.joinListOperationFirstListArgumentRef=JD,O.joinListOperationFirstListDataType=ZD,O.joinListOperationResultListDataType=zD,O.joinListOperationResultListReturn=iO,O.joinListOperationResultListReturnParentRef=rO,O.joinListOperationResultListReturnRef=YD,O.joinListOperationSecondListArgument=tO,O.joinListOperationSecondListArgumentParentRef=eO,O.joinListOperationSecondListArgumentRef=HD,O.joinListOperationSecondListDataType=WD,O.joinListWithLastSeparator=at,O.joinStringsOperation=zu,O.joinStringsOperationDynamicStringArgument=_D,O.joinStringsOperationDynamicStringArgumentParentRef=RD,O.joinStringsOperationDynamicStringArgumentRef=bD,O.joinStringsOperationDynamicStringDataType=wD,O.joinStringsOperationError=AD,O.joinStringsOperationErrorParentRef=ID,O.joinStringsOperationFirstStringArgument=ih,O.joinStringsOperationFirstStringArgumentParentRef=cD,O.joinStringsOperationFirstStringArgumentRef=nD,O.joinStringsOperationFirstStringDataType=aD,O.joinStringsOperationResultStringDataType=uD,O.joinStringsOperationResultStringReturn=Yu,O.joinStringsOperationResultStringReturnParentRef=TD,O.joinStringsOperationResultStringReturnRef=dD,O.joinStringsOperationSecondStringArgument=sh,O.joinStringsOperationSecondStringArgumentParentRef=ED,O.joinStringsOperationSecondStringArgumentRef=oD,O.joinStringsOperationSecondStringDataType=lD,O.joinStringsOperationSeparatorStringArgument=vD,O.joinStringsOperationSeparatorStringArgumentParentRef=mD,O.joinStringsOperationSeparatorStringArgumentRef=pD,O.joinStringsOperationSeparatorStringDataType=yD,O.joinStringsOperationSeparatorStringDataTypeDefaultValue=hD,O.joinStringsOperationSeparatorStringDataTypeDefaultValueParentRef=fD,O.keyValuePrototype=Ql,O.literalValueValidation=Qve,O.loopValidation=Jme,O.lowercaseFirstLetter=_d,O.manualFlowActionDescriptorDeclarationArgumentDeclaration=lE,O.manualFlowActionDescriptorDeclarationArgumentDeclarationDataType=CN,O.manualFlowActionDescriptorDeclarationArgumentDeclarationDataTypeParentRef=ON,O.manualFlowActionDescriptorDeclarationArgumentDeclarationParentRef=$N,O.manualFlowLoopActionDescriptor=vh,O.manualFlowLoopActionDescriptorDynamicReturnDeclaration=DN,O.manualFlowLoopActionDescriptorDynamicReturnDeclarationParentRef=gN,O.manualFlowLoopBodyActionDescriptor=Eh,O.manualFlowLoopBodyActionDescriptorAnyDynamicArgument=NN,O.manualFlowLoopBodyActionDescriptorAnyDynamicArgumentParentRef=PN,O.manualFlowLoopBodyActionDescriptorAnyDynamicReturn=LN,O.manualFlowLoopBodyActionDescriptorAnyDynamicReturnParentRef=VN,O.mapActionDescriptorToTypeItRepresents=XIe,O.mapRecord=P5,O.mergeArraysOfStringsWithoutDuplicates=sIe,O.mergeEntityErrorsList=spe,O.mergeListOfEntities=YIe,O.methodDefaultValue=p$,O.mockClientProject=ZT,O.moreThanOrEqualCondition=ld,O.moreThanOrEqualConditionLeftHandArgument=Y2,O.moreThanOrEqualConditionLeftHandArgumentDataType=H2,O.moreThanOrEqualConditionLeftHandArgumentDataTypeParentRef=Z2,O.moreThanOrEqualConditionLeftHandArgumentParentRef=W2,O.moreThanOrEqualConditionRightHandArgument=eM,O.moreThanOrEqualConditionRightHandArgumentDataType=X2,O.moreThanOrEqualConditionRightHandArgumentDataTypeParentRef=z2,O.moreThanOrEqualConditionRightHandArgumentParentRef=Q2,O.noSpacesOrDashesValueValidation=m5,O.noSpacesValueValidation=y5,O.notEmptyCondition=Xo,O.notEmptyConditionArgument=K2,O.notEmptyConditionRef=S2,O.nullPrototype=Nv,O.numberAdditionOperation=rh,O.numberAdditionOperationDynamicSummandArgument=Gg,O.numberAdditionOperationDynamicSummandArgumentType=Fg,O.numberAdditionOperationDynamicSummandArgumentTypeParentRef=xg,O.numberAdditionOperationError=jg,O.numberAdditionOperationErrorParentRef=Ug,O.numberAdditionOperationFirstNumberArgument=Vv,O.numberAdditionOperationFirstNumberArgumentRef=Cg,O.numberAdditionOperationFirstNumberDataType=$g,O.numberAdditionOperationRef=Mg,O.numberAdditionOperationRefThree=Mv,O.numberAdditionOperationRefTwo=Bg,O.numberAdditionOperationResultNumberDataType=Lg,O.numberAdditionOperationResultNumberReturn=Bv,O.numberAdditionOperationResultNumberReturnRef=Vg,O.numberAdditionOperationSecondNumberArgument=Lv,O.numberAdditionOperationSecondNumberArgumentRef=Pg,O.numberAdditionOperationSecondNumberDataType=Ng,O.numberPrototype=vt,O.numberSubtractionOperation=jv,O.numberSubtractionOperationDynamicSubtrahendArgument=iD,O.numberSubtractionOperationDynamicSubtrahendArgumentType=rD,O.numberSubtractionOperationDynamicSubtrahendArgumentTypeParentRef=tD,O.numberSubtractionOperationError=eD,O.numberSubtractionOperationErrorParentRef=Qg,O.numberSubtractionOperationFirstNumberArgument=Hg,O.numberSubtractionOperationFirstNumberArgumentRef=Sg,O.numberSubtractionOperationFirstNumberDataType=Kg,O.numberSubtractionOperationRef=Uv,O.numberSubtractionOperationRefThree=zg,O.numberSubtractionOperationRefTwo=Wg,O.numberSubtractionOperationResultNumberDataType=Zg,O.numberSubtractionOperationResultNumberReturn=Xg,O.numberSubtractionOperationResultNumberReturnRef=Jg,O.numberSubtractionOperationSecondNumberArgument=Yg,O.numberSubtractionOperationSecondNumberArgumentRef=kg,O.numberSubtractionOperationSecondNumberDataType=qg,O.numberValueAutogenerationSchema=LI,O.operationValidation=Fme,O.orderEntitiesForTraversal=OIe,O.outputMapValidation=Wve,O.parallelExecutionOperation=un,O.parallelExecutionOperationError=uC,O.parallelExecutionOperationErrorParentRef=dC,O.parallelExecutionOperationListOfExecutionResultsDataType=aC,O.parallelExecutionOperationListOfExecutionResultsReturn=Zv,O.parallelExecutionOperationListOfExecutionResultsReturnRef=nC,O.parallelExecutionOperationListOfFunctionsArgument=Jv,O.parallelExecutionOperationListOfFunctionsArgumentDatatype=sC,O.parallelExecutionOperationListOfFunctionsArgumentRef=iC,O.parallelExecutionOperationListOfFunctionsBlueprint=rC,O.parallelExecutionOperationListOfFunctionsBlueprintDynamicInput=eC,O.parallelExecutionOperationListOfFunctionsBlueprintDynamicInputParentRef=QO,O.parallelExecutionOperationListOfFunctionsBlueprintDynamicOutput=XO,O.parallelExecutionOperationListOfFunctionsBlueprintDynamicOutputParentRef=zO,O.parallelExecutionOperationListOfFunctionsBlueprintParentRef=tC,O.parallelExecutionOperationRef=oC,O.parallelExecutionOperationRefThree=lC,O.persistedBuiltInBaseEntity=Ri,O.persistedBuiltInBaseEntityDatabaseProperty=nd,O.persistedBuiltInBaseEntityDatabasePropertyDataType=R2,O.persistedBuiltInBaseEntityDatabasePropertyDataTypeRef=DJ,O.persistedBuiltInBaseEntityDatabasePropertyParentRef=_2,O.persistedBuiltInBaseEntityDatabasePropertyRef=w2,O.persistedBuiltInBaseEntityPrimaryKeyProperty=ad,O.persistedBuiltInBaseEntityPrimaryKeyPropertyDataType=V2,O.persistedBuiltInBaseEntityPrimaryKeyPropertyNumberDataTypeOption=D2,O.persistedBuiltInBaseEntityPrimaryKeyPropertyNumberDataTypeOptionParentRef=g2,O.persistedBuiltInBaseEntityPrimaryKeyPropertyParentRef=L2,O.persistedBuiltInBaseEntityPrimaryKeyPropertyRef=N2,O.persistedBuiltInBaseEntityPrimaryKeyPropertyStringDataTypeOption=C2,O.persistedBuiltInBaseEntityPrimaryKeyPropertyStringDataTypeOptionParentRef=O2,O.persistedBuiltInBaseEntityPrimaryKeyPropertyUUIDDataTypeOption=P2,O.persistedBuiltInBaseEntityPrimaryKeyPropertyUUIDDataTypeOptionParentRef=$2,O.printEntity=Nw,O.processOutputGlobalValueDescriptorDataType=oM,O.processOutputGlobalValueDescriptorReturn=Ch,O.processOutputGlobalValueDescriptorReturnRef=aM,O.projectPublicationCompletedGlobalEvent=Oh,O.propagateNewInputOrOutputMapValueAsTypeToParentVariable=Gp,O.propagateNewInputOrOutputMapValueToParentVariable=Fp,O.propagateNewStaticPropertyValueAsTypeToVariables=Tl,O.propagateNewStaticPropertyValueToVariables=El,O.propertyToZodSchema=TM,O.propertyValidation=fAe,O.readValueFromWritter=Jd,O.rebaseStack=iA,O.relationalDatabaseBuiltInBaseEntity=Ei,O.relationalDatabaseBuiltInBaseEntityAutoscalingProperty=OE,O.relationalDatabaseBuiltInBaseEntityAutoscalingPropertyDataType=v2,O.relationalDatabaseBuiltInBaseEntityAutoscalingPropertyDataTypeRef=m2,O.relationalDatabaseBuiltInBaseEntityAutoscalingPropertyParentRef=E2,O.relationalDatabaseBuiltInBaseEntityAutoscalingPropertyRef=y2,O.relationalDatabaseBuiltInBaseEntityDefaultProperty=DE,O.relationalDatabaseBuiltInBaseEntityDefaultPropertyDataType=h2,O.relationalDatabaseBuiltInBaseEntityDefaultPropertyDataTypeRef=p2,O.relationalDatabaseBuiltInBaseEntityDefaultPropertyRef=f2,O.relationalDatabaseBuiltInBaseEntityIdentifierProperty=bh,O.relationalDatabaseBuiltInBaseEntityIdentifierPropertyDataType=i2,O.relationalDatabaseBuiltInBaseEntityIdentifierPropertyDataTypeRef=t2,O.relationalDatabaseBuiltInBaseEntityIdentifierPropertyRef=r2,O.relationalDatabaseBuiltInBaseEntityMinSizeProperty=_h,O.relationalDatabaseBuiltInBaseEntityMinSizePropertyDataType=c2,O.relationalDatabaseBuiltInBaseEntityMinSizePropertyDataTypeRef=d2,O.relationalDatabaseBuiltInBaseEntityMinSizePropertyRef=u2,O.relationalDatabaseBuiltInBaseEntityPasswordProperty=Rh,O.relationalDatabaseBuiltInBaseEntityPasswordPropertyDataType=o2,O.relationalDatabaseBuiltInBaseEntityPasswordPropertyDataTypeRef=gJ,O.relationalDatabaseBuiltInBaseEntityPasswordPropertyDefaultValueParentRef=l2,O.relationalDatabaseBuiltInBaseEntityPasswordPropertyRef=a2,O.relationalDatabaseBuiltInBaseEntityRef=sd,O.relationalDatabaseBuiltInBaseEntityUsernameProperty=wh,O.relationalDatabaseBuiltInBaseEntityUsernamePropertyDataType=n2,O.relationalDatabaseBuiltInBaseEntityUsernamePropertyDataTypeRef=_J,O.relationalDatabaseBuiltInBaseEntityUsernamePropertyRef=s2,O.removeDisabledReasons=aIe,O.resolveActionDescriptorName=_S,O.resolveArgumentDeclarationValue=NA,O.resolveBaseEntityName=AS,O.resolveBuiltInBaseEntityDataTypeLabel=bS,O.resolveCardSubheader=ZTe,O.resolveClonedEntityProject=Fr,O.resolveConditionOperatorLabel=Mm,O.resolveDataType=jy,O.resolveDataTypeEntityOrNestedChildrenFromLiteralValue=Pw,O.resolveDataTypeLabel=su,O.resolveDatatypeIconName=JTe,O.resolveDefinitionEntityDataTypeLabel=uAe,O.resolveDefinitionEntitySubheader=nw,O.resolveEntityCodeName=Yw,O.resolveEntityDataTypeLabel=dAe,O.resolveEntityName=ne,O.resolveEntitySubheader=HTe,O.resolveFirstCallsSecond=jIe,O.resolveFirstWritesSecond=xIe,O.resolveFunctionDeclarationCardSubheader=aw,O.resolveInputMapNextStandaloneValue=jp,O.resolveInputMapNextValue=Sy,O.resolveInputMapNextValueAsPropertyOfAnObject=NG,O.resolveInputMapStandaloneValue=xp,O.resolveInputMapValue=LG,O.resolveInputMapValueAsPropertyOfAnObject=VG,O.resolveMethodCardSubheader=U6,O.resolveNextValue=Ky,O.resolveOutputMapValue=LA,O.resolvePersistedDefinitionEntityDatabaseEntity=vS,O.resolvePrimaryKeyProperty=rAe,O.resolvePrimitiveEntityForSearchLiteralValueType=wA,O.resolvePrimitiveEntityName=RS,O.resolvePropertyValue=MG,O.resolvePublicationStepStatusFromType=fIe,O.resolveResourceNameFromType=pIe,O.resolveReturnDeclarationValue=VA,O.resolveSearchName=wS,O.resolveValue=vl,O.resolveValueDescriptorValue=BG,O.resolveVarDeclarationAggregateObjectValue=$G,O.resolveVarDeclarationNextAggregateObjectValue=CG,O.resolveVarDeclarationNextValue=Up,O.resolveVarDeclarationValue=PA,O.resolveVarInstanceNextValue=Gy,O.resolveVarInstanceValue=PG,O.resolveVariableScope=Jve,O.returnDeclarationValidation=Gme,O.returnStatementValidation=Sme,O.savePersistedEntityMethod=A2,O.savePersistedEntityMethodParentRef=I2,O.searchStatementErrorGlobalValueDescriptor=ME,O.searchStatementErrorGlobalValueDescriptorDataType=dM,O.searchStatementErrorGlobalValueDescriptorRef=lM,O.searchStatementState=xve,O.searchStatementUtils=Gve,O.searchValidation=zme,O.sequentialExecutionOperation=ba,O.sequentialExecutionOperationError=$C,O.sequentialExecutionOperationErrorParentRef=CC,O.sequentialExecutionOperationListOfExecutionResultsDataType=gC,O.sequentialExecutionOperationListOfExecutionResultsReturn=Wv,O.sequentialExecutionOperationListOfExecutionResultsReturnParentRef=OC,O.sequentialExecutionOperationListOfExecutionResultsReturnRef=_C,O.sequentialExecutionOperationListOfFunctionsArgument=Hv,O.sequentialExecutionOperationListOfFunctionsArgumentDatatype=RC,O.sequentialExecutionOperationListOfFunctionsArgumentParentRef=DC,O.sequentialExecutionOperationListOfFunctionsArgumentRef=wC,O.sequentialExecutionOperationListOfFunctionsBlueprint=bC,O.sequentialExecutionOperationListOfFunctionsBlueprintDynamicInput=AC,O.sequentialExecutionOperationListOfFunctionsBlueprintDynamicOutput=IC,O.sortCallsBasedOnExecutionDependencies=I5,O.sortChildrenEntitiesBasedOnExecutionDependencies=BIe,O.splitListOperation=Sv,O.splitListOperationError=wO,O.splitListOperationErrorParentRef=bO,O.splitListOperationFirstOutputListDataType=pO,O.splitListOperationFirstOutputListReturn=EO,O.splitListOperationFirstOutputListReturnParentRef=vO,O.splitListOperationFirstOutputListReturnRef=Gv,O.splitListOperationInputListArgument=hO,O.splitListOperationInputListArgumentParentRef=fO,O.splitListOperationInputListArgumentRef=lO,O.splitListOperationInputListDataType=dO,O.splitListOperationSecondOutputListDataType=TO,O.splitListOperationSecondOutputListReturn=AO,O.splitListOperationSecondOutputListReturnParentRef=IO,O.splitListOperationSplitIndexArgument=mO,O.splitListOperationSplitIndexArgumentParentRef=yO,O.splitListOperationSplitIndexArgumentRef=uO,O.splitListOperationSplitIndexDataType=cO,O.splitStringOperation=xv,O.splitStringOperationError=SD,O.splitStringOperationErrorParentRef=GD,O.splitStringOperationFirstPartResultStringDataType=PD,O.splitStringOperationFirstPartResultStringReturn=FD,O.splitStringOperationFirstPartResultStringReturnParentRef=xD,O.splitStringOperationFirstPartResultStringReturnRef=$D,O.splitStringOperationIndexArgument=UD,O.splitStringOperationIndexArgumentParentRef=BD,O.splitStringOperationIndexArgumentRef=OD,O.splitStringOperationIndexDataType=CD,O.splitStringOperationSecondPartResultStringDataType=VD,O.splitStringOperationSecondPartResultStringReturn=wJ,O.splitStringOperationSecondPartResultStringReturnParentRef=jD,O.splitStringOperationSecondPartResultStringReturnRef=ND,O.splitStringOperationStringArgument=MD,O.splitStringOperationStringArgumentParentRef=LD,O.splitStringOperationStringArgumentRef=gD,O.splitStringOperationStringDataType=DD,O.stringPrototype=Ye,O.stringValueAutogenerationSchema=VI,O.suggestNewIdForEntity=zw,O.syncSearchEntityOutput=_A,O.test_primitive_entities_export=YAe,O.toCamelCase=jr,O.toEditorContext=cEe,O.toEntityState=Ki,O.toKebabCase=IS,O.toLowerCaseKebabCase=Lm,O.toPascalCase=iu,O.toProjectLogicContext=uEe,O.transitionProjectVersion=tA,O.translateLogicErrorCode=zTe,O.translateLogicErrorCodeShort=XTe,O.translateLogicErrorCodeShortWithEntityName=QTe,O.translateLogicErrorCodeWithEntityName=eIe,O.traverseChangeSet=rA,O.untypedDataPrototype=vi,O.updateErrorsList=vr,O.urlDefaultValue=a$,O.uuidPrototype=Ia,O.validateArgumentDeclarationName=Hw,O.validateCalledByErrorIdInAction=AIe,O.validateCalledByIdInAction=IIe,O.validateCallers=s5,O.validateConditionEntityDeclaration=RIe,O.validateDataOperation=Ko,O.validateDataOperationDataToValidateArgument=WC,O.validateDataOperationDataToValidateArgumentParentRef=HC,O.validateDataOperationDataToValidateArgumentRef=JC,O.validateDataOperationDataToValidateDataType=ZC,O.validateDataOperationEntityToMatchTypeArgument=QC,O.validateDataOperationEntityToMatchTypeArgumentParentRef=XC,O.validateDataOperationEntityToMatchTypeArgumentRef=YC,O.validateDataOperationEntityToMatchTypeDataType=zC,O.validateDataOperationError=i$,O.validateDataOperationErrorParentRef=r$,O.validateDataOperationOutputEntityDeclaration=t$,O.validateDataOperationOutputEntityDeclarationParentRef=e$,O.validateDefinitionEntityName=kw,O.validateEntryCaller=i5,O.validateErrorCaller=r5,O.validateFunctionCallDeclaration=a5,O.validateFunctionDeclarationName=qw,O.validateGeneratedEntityParentIsNotBuiltInEntity=mIe,O.validateGeneration=hIe,O.validateGenerationTarget=Br,O.validateGenerationUpdate=yIe,O.validateLoopEntityDeclaration=_Ie,O.validateMissingValue=Eo,O.validateName=cAe,O.validateOperationEntityDeclaration=o5,O.validatePropertyName=Zw,O.validateReachability=Ba,O.validateReadsValueInActionPayload=bIe,O.validateReferenceObject=pm,O.validateReferenceToOne=Aw,O.validateReferences=ni,O.validateReturnDeclarationName=Ww,O.validateSuccessCaller=t5,O.validateValueReaderGenerationUpdate=Yp,O.validateValueWritter=Dw,O.validateVariableDeclarationName=Jw,O.validateVariableInternalCallUse=Ow,O.valueAutogenerationCurrentDateAndTimeSchema=i3,O.valueAutogenerationGenericSchema=uy,O.valueAutogenerationOptions=BI,O.valueAutogenerationOptionsSchema=r3,O.valueAutogenerationRandomBooleanSchema=NI,O.valueAutogenerationRandomDateBetweenSchema=p3,O.valueAutogenerationRandomDateFromSchema=u3,O.valueAutogenerationRandomDateSchema=fy,O.valueAutogenerationRandomDateUntilSchema=c3,O.valueAutogenerationRandomNumberBetweenSchema=a3,O.valueAutogenerationRandomNumberFromSchema=s3,O.valueAutogenerationRandomNumberSchema=cy,O.valueAutogenerationRandomNumberUntilSchema=n3,O.valueAutogenerationRandomSchema=$c,O.valueAutogenerationRandomTextBetweenSchema=d3,O.valueAutogenerationRandomTextFromSchema=o3,O.valueAutogenerationRandomTextSchema=py,O.valueAutogenerationRandomTextUntilSchema=l3,O.valueAutogenerationRangeValueTypesSchema=Cc,O.valueAutogenerationUniqueSchema=PI,O.valueDescriptorValidation=rEe,O.variableDeclarationValidation=Wme,O.variableInstanceValidation=Yme,O.waitOperation=qi,O.waitOperationMillisecondsNumberArgument=Go,O.waitOperationMillisecondsNumberArgumentRef=fC,O.waitOperationMillisecondsNumberDataType=hC,O.waitOperationOperationError=vC,O.waitOperationOperationErrorParentRef=mC,O.waitOperationRef=yC,Object.defineProperty(O,Symbol.toStringTag,{value:"Module"})});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elyx-code/project-logic-tree",
3
- "version": "0.0.6394",
3
+ "version": "0.0.6395",
4
4
  "author": "Sergio Herrero",
5
5
  "license": "UNLICENSED",
6
6
  "description": "An installable module which contains the type definitions and ephemeral state management for a projects' logic tree data structure",