@contember/binding-common 2.0.0-alpha.25 → 2.0.0-alpha.27

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.
@@ -33,8 +33,7 @@ class Environment {
33
33
  const { parent, ...options } = this.options;
34
34
  return new Environment({
35
35
  ...options,
36
- node: SubTree,
37
- parent: this
36
+ node: SubTree
38
37
  });
39
38
  }
40
39
  withSubTreeChild(node) {
@@ -1 +1 @@
1
- {"version":3,"file":"Environment.cjs","sources":["../../../../../packages/binding-common/src/environment/Environment.ts"],"sourcesContent":["import { BindingError } from '../BindingError'\nimport type { Filter } from '../treeParameters'\nimport equal from 'fast-deep-equal/es6/index.js'\nimport { Schema, SchemaColumn, SchemaEntity, SchemaRelation } from '../schema'\n\nclass Environment<Node extends Environment.AnyNode | undefined = Environment.AnyNode | undefined> {\n\tprivate constructor(\n\t\tprivate readonly options: Environment.Options<Node>,\n\t) {\n\t}\n\n\tpublic static create() {\n\t\treturn new Environment({\n\t\t\tdimensions: {},\n\t\t\tvariables: {},\n\t\t\tparameters: {},\n\t\t\textensions: new Map(),\n\t\t})\n\t}\n\n\tpublic getSubTree(): Environment.SubTreeNode {\n\t\tfor (let env: Environment = this; env.options.node; env = env.getParent()) {\n\t\t\tconst node = env.options.node\n\t\t\tif (node.type === 'subtree-entity' || node.type === 'subtree-entity-list') {\n\t\t\t\treturn node\n\t\t\t}\n\t\t}\n\t\tthrow new BindingError('Not in a SubTree')\n\t}\n\n\tpublic getSubTreeNode(): Node & Environment.AnyNode {\n\t\tif (!this.options.node) {\n\t\t\tthrow new BindingError()\n\t\t}\n\t\treturn this.options.node\n\t}\n\n\tpublic withSubTree<Node extends Environment.SubTreeNode>(SubTree: Node): Environment<Node> {\n\t\tconst { parent, ...options } = this.options\n\t\treturn new Environment({\n\t\t\t...options,\n\t\t\tnode: SubTree,\n\t\t\tparent: this,\n\t\t})\n\t}\n\n\tpublic withSubTreeChild<Node extends Environment.InnerNode>(node: Node): Environment<Node> {\n\t\tif (!this.options.node) {\n\t\t\tthrow new BindingError(`Cannot call withSubTreeChild without previous call of withSubTree`)\n\t\t}\n\t\tif (this.options.node.entity.fields.get(node.field.name) !== node.field) {\n\t\t\tthrow new BindingError()\n\t\t}\n\t\treturn new Environment({\n\t\t\t...this.options,\n\t\t\tnode,\n\t\t\tparent: this,\n\t\t})\n\t}\n\n\n\tpublic hasVariable(key: string): boolean {\n\t\treturn key in this.options.variables\n\t}\n\n\tpublic getVariable<V extends Environment.Value = Environment.Value>(key: string): V {\n\t\tif (!(key in this.options.variables)) {\n\t\t\tthrow new BindingError(`Variable ${key} not found`)\n\t\t}\n\t\treturn this.options.variables[key] as V\n\t}\n\n\tpublic getVariableOrElse<F, V extends Environment.Value = Environment.Value>(key: string, fallback: F): V | F {\n\t\treturn (this.options.variables[key] as V) ?? fallback\n\t}\n\n\t/** @deprecated use getVariable or getParameter */\n\tpublic getValue<V extends Environment.Value = Environment.Value>(key: string): V {\n\t\tconsole.warn('Environment.getValue() is deprecated, use Environment.getVariable() or Environment.getParameter() instead.')\n\t\treturn this.getVariableOrElse(key, undefined) ?? this.getParameterOrElse(key, undefined) as V\n\t}\n\n\t/** @deprecated use getVariableOrElse or getParameterOrElse */\n\tpublic getValueOrElse<F, V extends Environment.Value = Environment.Value>(key: string, fallback: F): V | F {\n\t\tconsole.warn('Environment.getValueOrElse() is deprecated, use Environment.getVariableOrElse() or Environment.getParameterOrElse() instead.')\n\t\treturn this.getVariableOrElse(key, undefined) ?? this.getParameterOrElse(key, fallback) as any\n\t}\n\n\t/** @deprecated */\n\tpublic hasName(key: string): boolean {\n\t\tconsole.warn('Environment.hasName() is deprecated, use Environment.hasVariable() or Environment.hasParameter() instead.')\n\t\treturn key in this.options.variables || key in this.options.parameters\n\t}\n\n\tpublic withVariables(variables: Environment.ValuesMapWithFactory | undefined): Environment {\n\t\tif (variables === undefined) {\n\t\t\treturn this\n\t\t}\n\t\tconst newVariables = { ...this.options.variables }\n\t\tfor (const [newName, newValue] of Object.entries(variables)) {\n\t\t\tif (newName === 'labelMiddleware') {\n\t\t\t\tthrow new BindingError('You cannot pass labelMiddleware to withVariables method. Use withLabelMiddleware instead.')\n\t\t\t}\n\t\t\tconst resolvedValue = typeof newValue === 'function' ? newValue(this) : newValue\n\t\t\tif (resolvedValue === undefined) {\n\t\t\t\tdelete newVariables[newName]\n\t\t\t} else {\n\t\t\t\tnewVariables[newName] = resolvedValue\n\t\t\t}\n\t\t}\n\t\treturn new Environment({\n\t\t\t...this.options,\n\t\t\tvariables: newVariables,\n\t\t\tparent: this,\n\t\t})\n\t}\n\n\tpublic getAllVariables() {\n\t\treturn this.options.variables\n\t}\n\n\tpublic hasParameter(key: string): boolean {\n\t\treturn key in this.options.parameters\n\t}\n\n\tpublic getParameter<F>(key: string): string | number {\n\t\tif (!(key in this.options.parameters)) {\n\t\t\tthrow new BindingError(`Parameter ${key} not found`)\n\t\t}\n\t\treturn this.options.parameters[key] as string | number\n\t}\n\n\tpublic getParameterOrElse<F>(key: string, fallback: F): string | number | F {\n\t\treturn this.options.parameters[key] ?? fallback\n\t}\n\n\tpublic getAllParameters() {\n\t\treturn this.options.parameters\n\t}\n\n\tpublic withParameters(parameters: Environment.Parameters): Environment {\n\t\treturn new Environment({ ...this.options, parameters })\n\t}\n\n\tpublic hasDimension(dimensionName: string): boolean {\n\t\treturn dimensionName in this.options.dimensions\n\t}\n\n\tpublic getDimension<F>(dimensionName: string): string[] {\n\t\tif (!(dimensionName in this.options.dimensions)) {\n\t\t\tthrow new BindingError(`Dimension ${dimensionName} does not exist.`)\n\t\t}\n\t\treturn this.options.dimensions[dimensionName]\n\t}\n\n\tpublic getDimensionOrElse<F>(dimensionName: string, fallback: F): string[] | F {\n\t\treturn this.options.dimensions[dimensionName] ?? fallback\n\t}\n\n\tpublic getAllDimensions(): Environment.SelectedDimensions {\n\t\treturn this.options.dimensions\n\t}\n\n\tpublic withDimensions(dimensions: Environment.SelectedDimensions): Environment {\n\t\tconst newDimensions = {\n\t\t\t...this.options.dimensions,\n\t\t\t...dimensions,\n\t\t}\n\t\tif (equal(newDimensions, this.options.dimensions)) {\n\t\t\treturn this\n\t\t}\n\t\treturn new Environment({ ...this.options, dimensions: newDimensions })\n\t}\n\n\thasSchema(): boolean {\n\t\treturn this.options.schema !== undefined\n\t}\n\n\tpublic getSchema(): Schema {\n\t\tif (!this.options.schema) {\n\t\t\tthrow new BindingError('Schema is not set')\n\t\t}\n\t\treturn this.options.schema\n\t}\n\n\tpublic withSchema(schema: Schema): Environment {\n\t\treturn new Environment({ ...this.options, schema })\n\t}\n\n\tpublic getParent(): Environment {\n\t\tif (!this.options.parent) {\n\t\t\tthrow new BindingError('There is no parent environment')\n\t\t}\n\t\treturn this.options.parent\n\t}\n\n\tpublic withExtension<S, R>(extension: Environment.Extension<S, R>, state: S): Environment {\n\t\treturn new Environment({\n\t\t\t...this.options,\n\t\t\textensions: new Map([...this.options.extensions, [extension, state] as [Environment.Extension<unknown, unknown>, unknown]]),\n\t\t})\n\t}\n\n\tpublic getExtension<S, R>(extension: Environment.Extension<S, R>): R {\n\t\tconst state = this.options.extensions.get(extension as Environment.Extension<unknown, unknown>)\n\t\treturn extension.create(state as S, this)\n\t}\n\n\tpublic merge(other: Environment): Environment {\n\t\tif (other === this) {\n\t\t\treturn this\n\t\t}\n\t\tif (!equal(this.options.node, other.options.node)) {\n\t\t\tthrow new BindingError(`Cannot merge two environments with different tree position.`)\n\t\t}\n\t\tif (this.options.parameters !== other.options.parameters) {\n\t\t\tthrow new BindingError(`Cannot merge two environments with different parameters.`)\n\t\t}\n\t\tif (this.options.dimensions !== other.options.dimensions) {\n\t\t\tthrow new BindingError(`Cannot merge two environments with different dimensions.`)\n\t\t}\n\t\tif (this.options.extensions !== other.options.extensions) {\n\t\t\t// todo: deep compare?\n\t\t\tthrow new BindingError(`Cannot merge two environments with different extensions.`)\n\t\t}\n\n\t\tif (equal(this.options.variables, other.options.variables) && this.options.parent === other.options.parent) {\n\t\t\treturn this\n\t\t}\n\t\tfor (const key in other.options.variables) {\n\t\t\tif (key in this.options.variables && !equal(this.options.variables[key], other.options.variables[key])) {\n\t\t\t\tthrow new BindingError(`Cannot merge two environments with different value of variable ${key}:\\n`\n\t\t\t\t\t+ JSON.stringify(this.options.variables[key]) + '\\n'\n\t\t\t\t\t+ JSON.stringify(other.options.variables[key]))\n\t\t\t}\n\t\t}\n\n\t\treturn new Environment({\n\t\t\t...this.options,\n\t\t\tparent: this.options.parent && other.options.parent ? this.options.parent.merge(other.options.parent) : undefined,\n\t\t\tvariables: { ...this.options.variables, ...other.options.variables },\n\t\t})\n\t}\n}\n\nnamespace Environment {\n\texport type Name = string\n\n\texport type ReactElementLike = {\n\t\ttype: any\n\t\tprops: any\n\t}\n\n\texport type Value = string | number | boolean | undefined | Filter | ReactElementLike\n\n\texport type ResolvedValue = Value\n\n\texport interface Options<Node extends AnyNode | undefined> {\n\t\tnode?: Node\n\t\tschema?: Schema\n\t\tdimensions: SelectedDimensions\n\t\tparameters: Parameters\n\t\tvariables: CustomVariables\n\t\tparent?: Environment\n\t\textensions: Map<Extension<unknown, unknown>, unknown>\n\t}\n\n\texport type SubTreeNode =\n\t\t| SubTreeEntityNode\n\t\t| SubTreeEntityListNode\n\n\texport type InnerNode =\n\t\t| EntityNode\n\t\t| EntityListNode\n\t\t| ColumnNode\n\n\texport type AnyNode =\n\t\t| SubTreeNode\n\t\t| InnerNode\n\n\texport interface SubTreeEntityNode {\n\t\ttype: 'subtree-entity'\n\t\tentity: SchemaEntity\n\t\texpectedCardinality: 'zero' | 'one' | 'zero-or-one'\n\t\tfilter: Filter\n\t}\n\n\texport interface SubTreeEntityListNode {\n\t\ttype: 'subtree-entity-list'\n\t\tentity: SchemaEntity\n\t\texpectedCardinality: 'zero-to-many' | 'zero'\n\t\tfilter: Filter\n\t}\n\n\texport interface EntityNode {\n\t\ttype: 'entity'\n\t\tentity: SchemaEntity\n\t\tfield: SchemaRelation\n\t}\n\n\texport interface EntityListNode {\n\t\ttype: 'entity-list'\n\t\tentity: SchemaEntity\n\t\tfield: SchemaRelation\n\t}\n\n\texport interface ColumnNode {\n\t\ttype: 'column'\n\t\tentity: SchemaEntity\n\t\tfield: SchemaColumn\n\t}\n\n\texport interface SelectedDimensions {\n\t\t[key: string]: string[]\n\t}\n\n\texport type Parameters = {\n\t\t[K in string]?: string | number\n\t}\n\n\texport interface CustomVariables {\n\t\t[key: string]: Value\n\t}\n\n\texport interface ValuesMapWithFactory {\n\t\t[key: string]:\n\t\t\t| ((environment: Environment) => Value)\n\t\t\t| Value\n\t}\n\n\texport type Extension<State, Result> = {\n\t\tcreate: (state: State | undefined, environment: Environment) => Result\n\t}\n\n\texport const createExtension = <S, R>(create: Extension<S, R>['create'], otherMethods?: Omit<Extension<S, R>, 'create'>): Extension<S, R> => {\n\t\treturn {\n\t\t\tcreate,\n\t\t\t...otherMethods,\n\t\t}\n\t}\n\n\t/** @deprecated */\n\texport type DeltaFactory = ValuesMapWithFactory\n}\n\nexport { Environment }\n"],"names":["BindingError","Environment"],"mappings":";;;;AAKA,MAAM,YAA4F;AAAA,EACzF,YACU,SAChB;AADgB,SAAA,UAAA;AAAA,EAElB;AAAA,EAEA,OAAc,SAAS;AACtB,WAAO,IAAI,YAAY;AAAA,MACtB,YAAY,CAAC;AAAA,MACb,WAAW,CAAC;AAAA,MACZ,YAAY,CAAC;AAAA,MACb,gCAAgB,IAAI;AAAA,IAAA,CACpB;AAAA,EACF;AAAA,EAEO,aAAsC;AACnC,aAAA,MAAmB,MAAM,IAAI,QAAQ,MAAM,MAAM,IAAI,aAAa;AACpE,YAAA,OAAO,IAAI,QAAQ;AACzB,UAAI,KAAK,SAAS,oBAAoB,KAAK,SAAS,uBAAuB;AACnE,eAAA;AAAA,MACR;AAAA,IACD;AACM,UAAA,IAAIA,aAAAA,aAAa,kBAAkB;AAAA,EAC1C;AAAA,EAEO,iBAA6C;AAC/C,QAAA,CAAC,KAAK,QAAQ,MAAM;AACvB,YAAM,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M,QAAQ,SAAS,KAAK,QAAQ,OAAO,MAAM,MAAM,QAAQ,MAAM,IAAI;AAAA,MACxG,WAAW,EAAE,GAAG,KAAK,QAAQ,WAAW,GAAG,MAAM,QAAQ,UAAU;AAAA,IAAA,CACnE;AAAA,EACF;AACD;AAAA,CAEA,CAAUC,iBAAV;AAyFcA,eAAA,kBAAkB,CAAO,QAAmC,iBAAoE;AACrI,WAAA;AAAA,MACN;AAAA,MACA,GAAG;AAAA,IAAA;AAAA,EACJ;AACD,GA9FS,gBAAA,cAAA,CAAA,EAAA;;"}
1
+ {"version":3,"file":"Environment.cjs","sources":["../../../../../packages/binding-common/src/environment/Environment.ts"],"sourcesContent":["import { BindingError } from '../BindingError'\nimport type { Filter } from '../treeParameters'\nimport equal from 'fast-deep-equal/es6/index.js'\nimport { Schema, SchemaColumn, SchemaEntity, SchemaRelation } from '../schema'\n\nclass Environment<Node extends Environment.AnyNode | undefined = Environment.AnyNode | undefined> {\n\tprivate constructor(\n\t\tprivate readonly options: Environment.Options<Node>,\n\t) {\n\t}\n\n\tpublic static create() {\n\t\treturn new Environment({\n\t\t\tdimensions: {},\n\t\t\tvariables: {},\n\t\t\tparameters: {},\n\t\t\textensions: new Map(),\n\t\t})\n\t}\n\n\tpublic getSubTree(): Environment.SubTreeNode {\n\t\tfor (let env: Environment = this; env.options.node; env = env.getParent()) {\n\t\t\tconst node = env.options.node\n\t\t\tif (node.type === 'subtree-entity' || node.type === 'subtree-entity-list') {\n\t\t\t\treturn node\n\t\t\t}\n\t\t}\n\t\tthrow new BindingError('Not in a SubTree')\n\t}\n\n\tpublic getSubTreeNode(): Node & Environment.AnyNode {\n\t\tif (!this.options.node) {\n\t\t\tthrow new BindingError()\n\t\t}\n\t\treturn this.options.node\n\t}\n\n\tpublic withSubTree<Node extends Environment.SubTreeNode>(SubTree: Node): Environment<Node> {\n\t\tconst { parent, ...options } = this.options\n\t\treturn new Environment({\n\t\t\t...options,\n\t\t\tnode: SubTree,\n\t\t})\n\t}\n\n\tpublic withSubTreeChild<Node extends Environment.InnerNode>(node: Node): Environment<Node> {\n\t\tif (!this.options.node) {\n\t\t\tthrow new BindingError(`Cannot call withSubTreeChild without previous call of withSubTree`)\n\t\t}\n\t\tif (this.options.node.entity.fields.get(node.field.name) !== node.field) {\n\t\t\tthrow new BindingError()\n\t\t}\n\t\treturn new Environment({\n\t\t\t...this.options,\n\t\t\tnode,\n\t\t\tparent: this,\n\t\t})\n\t}\n\n\n\tpublic hasVariable(key: string): boolean {\n\t\treturn key in this.options.variables\n\t}\n\n\tpublic getVariable<V extends Environment.Value = Environment.Value>(key: string): V {\n\t\tif (!(key in this.options.variables)) {\n\t\t\tthrow new BindingError(`Variable ${key} not found`)\n\t\t}\n\t\treturn this.options.variables[key] as V\n\t}\n\n\tpublic getVariableOrElse<F, V extends Environment.Value = Environment.Value>(key: string, fallback: F): V | F {\n\t\treturn (this.options.variables[key] as V) ?? fallback\n\t}\n\n\t/** @deprecated use getVariable or getParameter */\n\tpublic getValue<V extends Environment.Value = Environment.Value>(key: string): V {\n\t\tconsole.warn('Environment.getValue() is deprecated, use Environment.getVariable() or Environment.getParameter() instead.')\n\t\treturn this.getVariableOrElse(key, undefined) ?? this.getParameterOrElse(key, undefined) as V\n\t}\n\n\t/** @deprecated use getVariableOrElse or getParameterOrElse */\n\tpublic getValueOrElse<F, V extends Environment.Value = Environment.Value>(key: string, fallback: F): V | F {\n\t\tconsole.warn('Environment.getValueOrElse() is deprecated, use Environment.getVariableOrElse() or Environment.getParameterOrElse() instead.')\n\t\treturn this.getVariableOrElse(key, undefined) ?? this.getParameterOrElse(key, fallback) as any\n\t}\n\n\t/** @deprecated */\n\tpublic hasName(key: string): boolean {\n\t\tconsole.warn('Environment.hasName() is deprecated, use Environment.hasVariable() or Environment.hasParameter() instead.')\n\t\treturn key in this.options.variables || key in this.options.parameters\n\t}\n\n\tpublic withVariables(variables: Environment.ValuesMapWithFactory | undefined): Environment {\n\t\tif (variables === undefined) {\n\t\t\treturn this\n\t\t}\n\t\tconst newVariables = { ...this.options.variables }\n\t\tfor (const [newName, newValue] of Object.entries(variables)) {\n\t\t\tif (newName === 'labelMiddleware') {\n\t\t\t\tthrow new BindingError('You cannot pass labelMiddleware to withVariables method. Use withLabelMiddleware instead.')\n\t\t\t}\n\t\t\tconst resolvedValue = typeof newValue === 'function' ? newValue(this) : newValue\n\t\t\tif (resolvedValue === undefined) {\n\t\t\t\tdelete newVariables[newName]\n\t\t\t} else {\n\t\t\t\tnewVariables[newName] = resolvedValue\n\t\t\t}\n\t\t}\n\t\treturn new Environment({\n\t\t\t...this.options,\n\t\t\tvariables: newVariables,\n\t\t\tparent: this,\n\t\t})\n\t}\n\n\tpublic getAllVariables() {\n\t\treturn this.options.variables\n\t}\n\n\tpublic hasParameter(key: string): boolean {\n\t\treturn key in this.options.parameters\n\t}\n\n\tpublic getParameter<F>(key: string): string | number {\n\t\tif (!(key in this.options.parameters)) {\n\t\t\tthrow new BindingError(`Parameter ${key} not found`)\n\t\t}\n\t\treturn this.options.parameters[key] as string | number\n\t}\n\n\tpublic getParameterOrElse<F>(key: string, fallback: F): string | number | F {\n\t\treturn this.options.parameters[key] ?? fallback\n\t}\n\n\tpublic getAllParameters() {\n\t\treturn this.options.parameters\n\t}\n\n\tpublic withParameters(parameters: Environment.Parameters): Environment {\n\t\treturn new Environment({ ...this.options, parameters })\n\t}\n\n\tpublic hasDimension(dimensionName: string): boolean {\n\t\treturn dimensionName in this.options.dimensions\n\t}\n\n\tpublic getDimension<F>(dimensionName: string): string[] {\n\t\tif (!(dimensionName in this.options.dimensions)) {\n\t\t\tthrow new BindingError(`Dimension ${dimensionName} does not exist.`)\n\t\t}\n\t\treturn this.options.dimensions[dimensionName]\n\t}\n\n\tpublic getDimensionOrElse<F>(dimensionName: string, fallback: F): string[] | F {\n\t\treturn this.options.dimensions[dimensionName] ?? fallback\n\t}\n\n\tpublic getAllDimensions(): Environment.SelectedDimensions {\n\t\treturn this.options.dimensions\n\t}\n\n\tpublic withDimensions(dimensions: Environment.SelectedDimensions): Environment {\n\t\tconst newDimensions = {\n\t\t\t...this.options.dimensions,\n\t\t\t...dimensions,\n\t\t}\n\t\tif (equal(newDimensions, this.options.dimensions)) {\n\t\t\treturn this\n\t\t}\n\t\treturn new Environment({ ...this.options, dimensions: newDimensions })\n\t}\n\n\thasSchema(): boolean {\n\t\treturn this.options.schema !== undefined\n\t}\n\n\tpublic getSchema(): Schema {\n\t\tif (!this.options.schema) {\n\t\t\tthrow new BindingError('Schema is not set')\n\t\t}\n\t\treturn this.options.schema\n\t}\n\n\tpublic withSchema(schema: Schema): Environment {\n\t\treturn new Environment({ ...this.options, schema })\n\t}\n\n\tpublic getParent(): Environment {\n\t\tif (!this.options.parent) {\n\t\t\tthrow new BindingError('There is no parent environment')\n\t\t}\n\t\treturn this.options.parent\n\t}\n\n\tpublic withExtension<S, R>(extension: Environment.Extension<S, R>, state: S): Environment {\n\t\treturn new Environment({\n\t\t\t...this.options,\n\t\t\textensions: new Map([...this.options.extensions, [extension, state] as [Environment.Extension<unknown, unknown>, unknown]]),\n\t\t})\n\t}\n\n\tpublic getExtension<S, R>(extension: Environment.Extension<S, R>): R {\n\t\tconst state = this.options.extensions.get(extension as Environment.Extension<unknown, unknown>)\n\t\treturn extension.create(state as S, this)\n\t}\n\n\tpublic merge(other: Environment): Environment {\n\t\tif (other === this) {\n\t\t\treturn this\n\t\t}\n\t\tif (!equal(this.options.node, other.options.node)) {\n\t\t\tthrow new BindingError(`Cannot merge two environments with different tree position.`)\n\t\t}\n\t\tif (this.options.parameters !== other.options.parameters) {\n\t\t\tthrow new BindingError(`Cannot merge two environments with different parameters.`)\n\t\t}\n\t\tif (this.options.dimensions !== other.options.dimensions) {\n\t\t\tthrow new BindingError(`Cannot merge two environments with different dimensions.`)\n\t\t}\n\t\tif (this.options.extensions !== other.options.extensions) {\n\t\t\t// todo: deep compare?\n\t\t\tthrow new BindingError(`Cannot merge two environments with different extensions.`)\n\t\t}\n\n\t\tif (equal(this.options.variables, other.options.variables) && this.options.parent === other.options.parent) {\n\t\t\treturn this\n\t\t}\n\t\tfor (const key in other.options.variables) {\n\t\t\tif (key in this.options.variables && !equal(this.options.variables[key], other.options.variables[key])) {\n\t\t\t\tthrow new BindingError(`Cannot merge two environments with different value of variable ${key}:\\n`\n\t\t\t\t\t+ JSON.stringify(this.options.variables[key]) + '\\n'\n\t\t\t\t\t+ JSON.stringify(other.options.variables[key]))\n\t\t\t}\n\t\t}\n\n\t\treturn new Environment({\n\t\t\t...this.options,\n\t\t\tparent: this.options.parent && other.options.parent ? this.options.parent.merge(other.options.parent) : undefined,\n\t\t\tvariables: { ...this.options.variables, ...other.options.variables },\n\t\t})\n\t}\n}\n\nnamespace Environment {\n\texport type Name = string\n\n\texport type ReactElementLike = {\n\t\ttype: any\n\t\tprops: any\n\t}\n\n\texport type Value = string | number | boolean | undefined | Filter | ReactElementLike\n\n\texport type ResolvedValue = Value\n\n\texport interface Options<Node extends AnyNode | undefined> {\n\t\tnode?: Node\n\t\tschema?: Schema\n\t\tdimensions: SelectedDimensions\n\t\tparameters: Parameters\n\t\tvariables: CustomVariables\n\t\tparent?: Environment\n\t\textensions: Map<Extension<unknown, unknown>, unknown>\n\t}\n\n\texport type SubTreeNode =\n\t\t| SubTreeEntityNode\n\t\t| SubTreeEntityListNode\n\n\texport type InnerNode =\n\t\t| EntityNode\n\t\t| EntityListNode\n\t\t| ColumnNode\n\n\texport type AnyNode =\n\t\t| SubTreeNode\n\t\t| InnerNode\n\n\texport interface SubTreeEntityNode {\n\t\ttype: 'subtree-entity'\n\t\tentity: SchemaEntity\n\t\texpectedCardinality: 'zero' | 'one' | 'zero-or-one'\n\t\tfilter: Filter\n\t}\n\n\texport interface SubTreeEntityListNode {\n\t\ttype: 'subtree-entity-list'\n\t\tentity: SchemaEntity\n\t\texpectedCardinality: 'zero-to-many' | 'zero'\n\t\tfilter: Filter\n\t}\n\n\texport interface EntityNode {\n\t\ttype: 'entity'\n\t\tentity: SchemaEntity\n\t\tfield: SchemaRelation\n\t}\n\n\texport interface EntityListNode {\n\t\ttype: 'entity-list'\n\t\tentity: SchemaEntity\n\t\tfield: SchemaRelation\n\t}\n\n\texport interface ColumnNode {\n\t\ttype: 'column'\n\t\tentity: SchemaEntity\n\t\tfield: SchemaColumn\n\t}\n\n\texport interface SelectedDimensions {\n\t\t[key: string]: string[]\n\t}\n\n\texport type Parameters = {\n\t\t[K in string]?: string | number\n\t}\n\n\texport interface CustomVariables {\n\t\t[key: string]: Value\n\t}\n\n\texport interface ValuesMapWithFactory {\n\t\t[key: string]:\n\t\t\t| ((environment: Environment) => Value)\n\t\t\t| Value\n\t}\n\n\texport type Extension<State, Result> = {\n\t\tcreate: (state: State | undefined, environment: Environment) => Result\n\t}\n\n\texport const createExtension = <S, R>(create: Extension<S, R>['create'], otherMethods?: Omit<Extension<S, R>, 'create'>): Extension<S, R> => {\n\t\treturn {\n\t\t\tcreate,\n\t\t\t...otherMethods,\n\t\t}\n\t}\n\n\t/** @deprecated */\n\texport type DeltaFactory = ValuesMapWithFactory\n}\n\nexport { Environment }\n"],"names":["BindingError","Environment"],"mappings":";;;;AAKA,MAAM,YAA4F;AAAA,EACzF,YACU,SAChB;AADgB,SAAA,UAAA;AAAA,EAElB;AAAA,EAEA,OAAc,SAAS;AACtB,WAAO,IAAI,YAAY;AAAA,MACtB,YAAY,CAAC;AAAA,MACb,WAAW,CAAC;AAAA,MACZ,YAAY,CAAC;AAAA,MACb,gCAAgB,IAAI;AAAA,IAAA,CACpB;AAAA,EACF;AAAA,EAEO,aAAsC;AACnC,aAAA,MAAmB,MAAM,IAAI,QAAQ,MAAM,MAAM,IAAI,aAAa;AACpE,YAAA,OAAO,IAAI,QAAQ;AACzB,UAAI,KAAK,SAAS,oBAAoB,KAAK,SAAS,uBAAuB;AACnE,eAAA;AAAA,MACR;AAAA,IACD;AACM,UAAA,IAAIA,aAAAA,aAAa,kBAAkB;AAAA,EAC1C;AAAA,EAEO,iBAA6C;AAC/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AQ,KAAK,QAAQ,UAAU,MAAM,QAAQ,SAAS,KAAK,QAAQ,OAAO,MAAM,MAAM,QAAQ,MAAM,IAAI;AAAA,MACxG,WAAW,EAAE,GAAG,KAAK,QAAQ,WAAW,GAAG,MAAM,QAAQ,UAAU;AAAA,IAAA,CACnE;AAAA,EACF;AACD;AAAA,CAEA,CAAUC,iBAAV;AAyFcA,eAAA,kBAAkB,CAAO,QAAmC,iBAAoE;AACrI,WAAA;AAAA,MACN;AAAA,MACA,GAAG;AAAA,IAAA;AAAA,EACJ;AACD,GA9FS,gBAAA,cAAA,CAAA,EAAA;;"}
@@ -31,8 +31,7 @@ class Environment {
31
31
  const { parent, ...options } = this.options;
32
32
  return new Environment({
33
33
  ...options,
34
- node: SubTree,
35
- parent: this
34
+ node: SubTree
36
35
  });
37
36
  }
38
37
  withSubTreeChild(node) {
@@ -1 +1 @@
1
- {"version":3,"file":"Environment.js","sources":["../../../../../packages/binding-common/src/environment/Environment.ts"],"sourcesContent":["import { BindingError } from '../BindingError'\nimport type { Filter } from '../treeParameters'\nimport equal from 'fast-deep-equal/es6/index.js'\nimport { Schema, SchemaColumn, SchemaEntity, SchemaRelation } from '../schema'\n\nclass Environment<Node extends Environment.AnyNode | undefined = Environment.AnyNode | undefined> {\n\tprivate constructor(\n\t\tprivate readonly options: Environment.Options<Node>,\n\t) {\n\t}\n\n\tpublic static create() {\n\t\treturn new Environment({\n\t\t\tdimensions: {},\n\t\t\tvariables: {},\n\t\t\tparameters: {},\n\t\t\textensions: new Map(),\n\t\t})\n\t}\n\n\tpublic getSubTree(): Environment.SubTreeNode {\n\t\tfor (let env: Environment = this; env.options.node; env = env.getParent()) {\n\t\t\tconst node = env.options.node\n\t\t\tif (node.type === 'subtree-entity' || node.type === 'subtree-entity-list') {\n\t\t\t\treturn node\n\t\t\t}\n\t\t}\n\t\tthrow new BindingError('Not in a SubTree')\n\t}\n\n\tpublic getSubTreeNode(): Node & Environment.AnyNode {\n\t\tif (!this.options.node) {\n\t\t\tthrow new BindingError()\n\t\t}\n\t\treturn this.options.node\n\t}\n\n\tpublic withSubTree<Node extends Environment.SubTreeNode>(SubTree: Node): Environment<Node> {\n\t\tconst { parent, ...options } = this.options\n\t\treturn new Environment({\n\t\t\t...options,\n\t\t\tnode: SubTree,\n\t\t\tparent: this,\n\t\t})\n\t}\n\n\tpublic withSubTreeChild<Node extends Environment.InnerNode>(node: Node): Environment<Node> {\n\t\tif (!this.options.node) {\n\t\t\tthrow new BindingError(`Cannot call withSubTreeChild without previous call of withSubTree`)\n\t\t}\n\t\tif (this.options.node.entity.fields.get(node.field.name) !== node.field) {\n\t\t\tthrow new BindingError()\n\t\t}\n\t\treturn new Environment({\n\t\t\t...this.options,\n\t\t\tnode,\n\t\t\tparent: this,\n\t\t})\n\t}\n\n\n\tpublic hasVariable(key: string): boolean {\n\t\treturn key in this.options.variables\n\t}\n\n\tpublic getVariable<V extends Environment.Value = Environment.Value>(key: string): V {\n\t\tif (!(key in this.options.variables)) {\n\t\t\tthrow new BindingError(`Variable ${key} not found`)\n\t\t}\n\t\treturn this.options.variables[key] as V\n\t}\n\n\tpublic getVariableOrElse<F, V extends Environment.Value = Environment.Value>(key: string, fallback: F): V | F {\n\t\treturn (this.options.variables[key] as V) ?? fallback\n\t}\n\n\t/** @deprecated use getVariable or getParameter */\n\tpublic getValue<V extends Environment.Value = Environment.Value>(key: string): V {\n\t\tconsole.warn('Environment.getValue() is deprecated, use Environment.getVariable() or Environment.getParameter() instead.')\n\t\treturn this.getVariableOrElse(key, undefined) ?? this.getParameterOrElse(key, undefined) as V\n\t}\n\n\t/** @deprecated use getVariableOrElse or getParameterOrElse */\n\tpublic getValueOrElse<F, V extends Environment.Value = Environment.Value>(key: string, fallback: F): V | F {\n\t\tconsole.warn('Environment.getValueOrElse() is deprecated, use Environment.getVariableOrElse() or Environment.getParameterOrElse() instead.')\n\t\treturn this.getVariableOrElse(key, undefined) ?? this.getParameterOrElse(key, fallback) as any\n\t}\n\n\t/** @deprecated */\n\tpublic hasName(key: string): boolean {\n\t\tconsole.warn('Environment.hasName() is deprecated, use Environment.hasVariable() or Environment.hasParameter() instead.')\n\t\treturn key in this.options.variables || key in this.options.parameters\n\t}\n\n\tpublic withVariables(variables: Environment.ValuesMapWithFactory | undefined): Environment {\n\t\tif (variables === undefined) {\n\t\t\treturn this\n\t\t}\n\t\tconst newVariables = { ...this.options.variables }\n\t\tfor (const [newName, newValue] of Object.entries(variables)) {\n\t\t\tif (newName === 'labelMiddleware') {\n\t\t\t\tthrow new BindingError('You cannot pass labelMiddleware to withVariables method. Use withLabelMiddleware instead.')\n\t\t\t}\n\t\t\tconst resolvedValue = typeof newValue === 'function' ? newValue(this) : newValue\n\t\t\tif (resolvedValue === undefined) {\n\t\t\t\tdelete newVariables[newName]\n\t\t\t} else {\n\t\t\t\tnewVariables[newName] = resolvedValue\n\t\t\t}\n\t\t}\n\t\treturn new Environment({\n\t\t\t...this.options,\n\t\t\tvariables: newVariables,\n\t\t\tparent: this,\n\t\t})\n\t}\n\n\tpublic getAllVariables() {\n\t\treturn this.options.variables\n\t}\n\n\tpublic hasParameter(key: string): boolean {\n\t\treturn key in this.options.parameters\n\t}\n\n\tpublic getParameter<F>(key: string): string | number {\n\t\tif (!(key in this.options.parameters)) {\n\t\t\tthrow new BindingError(`Parameter ${key} not found`)\n\t\t}\n\t\treturn this.options.parameters[key] as string | number\n\t}\n\n\tpublic getParameterOrElse<F>(key: string, fallback: F): string | number | F {\n\t\treturn this.options.parameters[key] ?? fallback\n\t}\n\n\tpublic getAllParameters() {\n\t\treturn this.options.parameters\n\t}\n\n\tpublic withParameters(parameters: Environment.Parameters): Environment {\n\t\treturn new Environment({ ...this.options, parameters })\n\t}\n\n\tpublic hasDimension(dimensionName: string): boolean {\n\t\treturn dimensionName in this.options.dimensions\n\t}\n\n\tpublic getDimension<F>(dimensionName: string): string[] {\n\t\tif (!(dimensionName in this.options.dimensions)) {\n\t\t\tthrow new BindingError(`Dimension ${dimensionName} does not exist.`)\n\t\t}\n\t\treturn this.options.dimensions[dimensionName]\n\t}\n\n\tpublic getDimensionOrElse<F>(dimensionName: string, fallback: F): string[] | F {\n\t\treturn this.options.dimensions[dimensionName] ?? fallback\n\t}\n\n\tpublic getAllDimensions(): Environment.SelectedDimensions {\n\t\treturn this.options.dimensions\n\t}\n\n\tpublic withDimensions(dimensions: Environment.SelectedDimensions): Environment {\n\t\tconst newDimensions = {\n\t\t\t...this.options.dimensions,\n\t\t\t...dimensions,\n\t\t}\n\t\tif (equal(newDimensions, this.options.dimensions)) {\n\t\t\treturn this\n\t\t}\n\t\treturn new Environment({ ...this.options, dimensions: newDimensions })\n\t}\n\n\thasSchema(): boolean {\n\t\treturn this.options.schema !== undefined\n\t}\n\n\tpublic getSchema(): Schema {\n\t\tif (!this.options.schema) {\n\t\t\tthrow new BindingError('Schema is not set')\n\t\t}\n\t\treturn this.options.schema\n\t}\n\n\tpublic withSchema(schema: Schema): Environment {\n\t\treturn new Environment({ ...this.options, schema })\n\t}\n\n\tpublic getParent(): Environment {\n\t\tif (!this.options.parent) {\n\t\t\tthrow new BindingError('There is no parent environment')\n\t\t}\n\t\treturn this.options.parent\n\t}\n\n\tpublic withExtension<S, R>(extension: Environment.Extension<S, R>, state: S): Environment {\n\t\treturn new Environment({\n\t\t\t...this.options,\n\t\t\textensions: new Map([...this.options.extensions, [extension, state] as [Environment.Extension<unknown, unknown>, unknown]]),\n\t\t})\n\t}\n\n\tpublic getExtension<S, R>(extension: Environment.Extension<S, R>): R {\n\t\tconst state = this.options.extensions.get(extension as Environment.Extension<unknown, unknown>)\n\t\treturn extension.create(state as S, this)\n\t}\n\n\tpublic merge(other: Environment): Environment {\n\t\tif (other === this) {\n\t\t\treturn this\n\t\t}\n\t\tif (!equal(this.options.node, other.options.node)) {\n\t\t\tthrow new BindingError(`Cannot merge two environments with different tree position.`)\n\t\t}\n\t\tif (this.options.parameters !== other.options.parameters) {\n\t\t\tthrow new BindingError(`Cannot merge two environments with different parameters.`)\n\t\t}\n\t\tif (this.options.dimensions !== other.options.dimensions) {\n\t\t\tthrow new BindingError(`Cannot merge two environments with different dimensions.`)\n\t\t}\n\t\tif (this.options.extensions !== other.options.extensions) {\n\t\t\t// todo: deep compare?\n\t\t\tthrow new BindingError(`Cannot merge two environments with different extensions.`)\n\t\t}\n\n\t\tif (equal(this.options.variables, other.options.variables) && this.options.parent === other.options.parent) {\n\t\t\treturn this\n\t\t}\n\t\tfor (const key in other.options.variables) {\n\t\t\tif (key in this.options.variables && !equal(this.options.variables[key], other.options.variables[key])) {\n\t\t\t\tthrow new BindingError(`Cannot merge two environments with different value of variable ${key}:\\n`\n\t\t\t\t\t+ JSON.stringify(this.options.variables[key]) + '\\n'\n\t\t\t\t\t+ JSON.stringify(other.options.variables[key]))\n\t\t\t}\n\t\t}\n\n\t\treturn new Environment({\n\t\t\t...this.options,\n\t\t\tparent: this.options.parent && other.options.parent ? this.options.parent.merge(other.options.parent) : undefined,\n\t\t\tvariables: { ...this.options.variables, ...other.options.variables },\n\t\t})\n\t}\n}\n\nnamespace Environment {\n\texport type Name = string\n\n\texport type ReactElementLike = {\n\t\ttype: any\n\t\tprops: any\n\t}\n\n\texport type Value = string | number | boolean | undefined | Filter | ReactElementLike\n\n\texport type ResolvedValue = Value\n\n\texport interface Options<Node extends AnyNode | undefined> {\n\t\tnode?: Node\n\t\tschema?: Schema\n\t\tdimensions: SelectedDimensions\n\t\tparameters: Parameters\n\t\tvariables: CustomVariables\n\t\tparent?: Environment\n\t\textensions: Map<Extension<unknown, unknown>, unknown>\n\t}\n\n\texport type SubTreeNode =\n\t\t| SubTreeEntityNode\n\t\t| SubTreeEntityListNode\n\n\texport type InnerNode =\n\t\t| EntityNode\n\t\t| EntityListNode\n\t\t| ColumnNode\n\n\texport type AnyNode =\n\t\t| SubTreeNode\n\t\t| InnerNode\n\n\texport interface SubTreeEntityNode {\n\t\ttype: 'subtree-entity'\n\t\tentity: SchemaEntity\n\t\texpectedCardinality: 'zero' | 'one' | 'zero-or-one'\n\t\tfilter: Filter\n\t}\n\n\texport interface SubTreeEntityListNode {\n\t\ttype: 'subtree-entity-list'\n\t\tentity: SchemaEntity\n\t\texpectedCardinality: 'zero-to-many' | 'zero'\n\t\tfilter: Filter\n\t}\n\n\texport interface EntityNode {\n\t\ttype: 'entity'\n\t\tentity: SchemaEntity\n\t\tfield: SchemaRelation\n\t}\n\n\texport interface EntityListNode {\n\t\ttype: 'entity-list'\n\t\tentity: SchemaEntity\n\t\tfield: SchemaRelation\n\t}\n\n\texport interface ColumnNode {\n\t\ttype: 'column'\n\t\tentity: SchemaEntity\n\t\tfield: SchemaColumn\n\t}\n\n\texport interface SelectedDimensions {\n\t\t[key: string]: string[]\n\t}\n\n\texport type Parameters = {\n\t\t[K in string]?: string | number\n\t}\n\n\texport interface CustomVariables {\n\t\t[key: string]: Value\n\t}\n\n\texport interface ValuesMapWithFactory {\n\t\t[key: string]:\n\t\t\t| ((environment: Environment) => Value)\n\t\t\t| Value\n\t}\n\n\texport type Extension<State, Result> = {\n\t\tcreate: (state: State | undefined, environment: Environment) => Result\n\t}\n\n\texport const createExtension = <S, R>(create: Extension<S, R>['create'], otherMethods?: Omit<Extension<S, R>, 'create'>): Extension<S, R> => {\n\t\treturn {\n\t\t\tcreate,\n\t\t\t...otherMethods,\n\t\t}\n\t}\n\n\t/** @deprecated */\n\texport type DeltaFactory = ValuesMapWithFactory\n}\n\nexport { Environment }\n"],"names":["Environment"],"mappings":";;AAKA,MAAM,YAA4F;AAAA,EACzF,YACU,SAChB;AADgB,SAAA,UAAA;AAAA,EAElB;AAAA,EAEA,OAAc,SAAS;AACtB,WAAO,IAAI,YAAY;AAAA,MACtB,YAAY,CAAC;AAAA,MACb,WAAW,CAAC;AAAA,MACZ,YAAY,CAAC;AAAA,MACb,gCAAgB,IAAI;AAAA,IAAA,CACpB;AAAA,EACF;AAAA,EAEO,aAAsC;AACnC,aAAA,MAAmB,MAAM,IAAI,QAAQ,MAAM,MAAM,IAAI,aAAa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AAU,MAAM,QAAQ,UAAU,GAAG,CAAC,CAAC;AAAA,MAChD;AAAA,IACD;AAEA,WAAO,IAAI,YAAY;AAAA,MACtB,GAAG,KAAK;AAAA,MACR,QAAQ,KAAK,QAAQ,UAAU,MAAM,QAAQ,SAAS,KAAK,QAAQ,OAAO,MAAM,MAAM,QAAQ,MAAM,IAAI;AAAA,MACxG,WAAW,EAAE,GAAG,KAAK,QAAQ,WAAW,GAAG,MAAM,QAAQ,UAAU;AAAA,IAAA,CACnE;AAAA,EACF;AACD;AAAA,CAEA,CAAUA,iBAAV;AAyFcA,eAAA,kBAAkB,CAAO,QAAmC,iBAAoE;AACrI,WAAA;AAAA,MACN;AAAA,MACA,GAAG;AAAA,IAAA;AAAA,EACJ;AACD,GA9FS,gBAAA,cAAA,CAAA,EAAA;"}
1
+ {"version":3,"file":"Environment.js","sources":["../../../../../packages/binding-common/src/environment/Environment.ts"],"sourcesContent":["import { BindingError } from '../BindingError'\nimport type { Filter } from '../treeParameters'\nimport equal from 'fast-deep-equal/es6/index.js'\nimport { Schema, SchemaColumn, SchemaEntity, SchemaRelation } from '../schema'\n\nclass Environment<Node extends Environment.AnyNode | undefined = Environment.AnyNode | undefined> {\n\tprivate constructor(\n\t\tprivate readonly options: Environment.Options<Node>,\n\t) {\n\t}\n\n\tpublic static create() {\n\t\treturn new Environment({\n\t\t\tdimensions: {},\n\t\t\tvariables: {},\n\t\t\tparameters: {},\n\t\t\textensions: new Map(),\n\t\t})\n\t}\n\n\tpublic getSubTree(): Environment.SubTreeNode {\n\t\tfor (let env: Environment = this; env.options.node; env = env.getParent()) {\n\t\t\tconst node = env.options.node\n\t\t\tif (node.type === 'subtree-entity' || node.type === 'subtree-entity-list') {\n\t\t\t\treturn node\n\t\t\t}\n\t\t}\n\t\tthrow new BindingError('Not in a SubTree')\n\t}\n\n\tpublic getSubTreeNode(): Node & Environment.AnyNode {\n\t\tif (!this.options.node) {\n\t\t\tthrow new BindingError()\n\t\t}\n\t\treturn this.options.node\n\t}\n\n\tpublic withSubTree<Node extends Environment.SubTreeNode>(SubTree: Node): Environment<Node> {\n\t\tconst { parent, ...options } = this.options\n\t\treturn new Environment({\n\t\t\t...options,\n\t\t\tnode: SubTree,\n\t\t})\n\t}\n\n\tpublic withSubTreeChild<Node extends Environment.InnerNode>(node: Node): Environment<Node> {\n\t\tif (!this.options.node) {\n\t\t\tthrow new BindingError(`Cannot call withSubTreeChild without previous call of withSubTree`)\n\t\t}\n\t\tif (this.options.node.entity.fields.get(node.field.name) !== node.field) {\n\t\t\tthrow new BindingError()\n\t\t}\n\t\treturn new Environment({\n\t\t\t...this.options,\n\t\t\tnode,\n\t\t\tparent: this,\n\t\t})\n\t}\n\n\n\tpublic hasVariable(key: string): boolean {\n\t\treturn key in this.options.variables\n\t}\n\n\tpublic getVariable<V extends Environment.Value = Environment.Value>(key: string): V {\n\t\tif (!(key in this.options.variables)) {\n\t\t\tthrow new BindingError(`Variable ${key} not found`)\n\t\t}\n\t\treturn this.options.variables[key] as V\n\t}\n\n\tpublic getVariableOrElse<F, V extends Environment.Value = Environment.Value>(key: string, fallback: F): V | F {\n\t\treturn (this.options.variables[key] as V) ?? fallback\n\t}\n\n\t/** @deprecated use getVariable or getParameter */\n\tpublic getValue<V extends Environment.Value = Environment.Value>(key: string): V {\n\t\tconsole.warn('Environment.getValue() is deprecated, use Environment.getVariable() or Environment.getParameter() instead.')\n\t\treturn this.getVariableOrElse(key, undefined) ?? this.getParameterOrElse(key, undefined) as V\n\t}\n\n\t/** @deprecated use getVariableOrElse or getParameterOrElse */\n\tpublic getValueOrElse<F, V extends Environment.Value = Environment.Value>(key: string, fallback: F): V | F {\n\t\tconsole.warn('Environment.getValueOrElse() is deprecated, use Environment.getVariableOrElse() or Environment.getParameterOrElse() instead.')\n\t\treturn this.getVariableOrElse(key, undefined) ?? this.getParameterOrElse(key, fallback) as any\n\t}\n\n\t/** @deprecated */\n\tpublic hasName(key: string): boolean {\n\t\tconsole.warn('Environment.hasName() is deprecated, use Environment.hasVariable() or Environment.hasParameter() instead.')\n\t\treturn key in this.options.variables || key in this.options.parameters\n\t}\n\n\tpublic withVariables(variables: Environment.ValuesMapWithFactory | undefined): Environment {\n\t\tif (variables === undefined) {\n\t\t\treturn this\n\t\t}\n\t\tconst newVariables = { ...this.options.variables }\n\t\tfor (const [newName, newValue] of Object.entries(variables)) {\n\t\t\tif (newName === 'labelMiddleware') {\n\t\t\t\tthrow new BindingError('You cannot pass labelMiddleware to withVariables method. Use withLabelMiddleware instead.')\n\t\t\t}\n\t\t\tconst resolvedValue = typeof newValue === 'function' ? newValue(this) : newValue\n\t\t\tif (resolvedValue === undefined) {\n\t\t\t\tdelete newVariables[newName]\n\t\t\t} else {\n\t\t\t\tnewVariables[newName] = resolvedValue\n\t\t\t}\n\t\t}\n\t\treturn new Environment({\n\t\t\t...this.options,\n\t\t\tvariables: newVariables,\n\t\t\tparent: this,\n\t\t})\n\t}\n\n\tpublic getAllVariables() {\n\t\treturn this.options.variables\n\t}\n\n\tpublic hasParameter(key: string): boolean {\n\t\treturn key in this.options.parameters\n\t}\n\n\tpublic getParameter<F>(key: string): string | number {\n\t\tif (!(key in this.options.parameters)) {\n\t\t\tthrow new BindingError(`Parameter ${key} not found`)\n\t\t}\n\t\treturn this.options.parameters[key] as string | number\n\t}\n\n\tpublic getParameterOrElse<F>(key: string, fallback: F): string | number | F {\n\t\treturn this.options.parameters[key] ?? fallback\n\t}\n\n\tpublic getAllParameters() {\n\t\treturn this.options.parameters\n\t}\n\n\tpublic withParameters(parameters: Environment.Parameters): Environment {\n\t\treturn new Environment({ ...this.options, parameters })\n\t}\n\n\tpublic hasDimension(dimensionName: string): boolean {\n\t\treturn dimensionName in this.options.dimensions\n\t}\n\n\tpublic getDimension<F>(dimensionName: string): string[] {\n\t\tif (!(dimensionName in this.options.dimensions)) {\n\t\t\tthrow new BindingError(`Dimension ${dimensionName} does not exist.`)\n\t\t}\n\t\treturn this.options.dimensions[dimensionName]\n\t}\n\n\tpublic getDimensionOrElse<F>(dimensionName: string, fallback: F): string[] | F {\n\t\treturn this.options.dimensions[dimensionName] ?? fallback\n\t}\n\n\tpublic getAllDimensions(): Environment.SelectedDimensions {\n\t\treturn this.options.dimensions\n\t}\n\n\tpublic withDimensions(dimensions: Environment.SelectedDimensions): Environment {\n\t\tconst newDimensions = {\n\t\t\t...this.options.dimensions,\n\t\t\t...dimensions,\n\t\t}\n\t\tif (equal(newDimensions, this.options.dimensions)) {\n\t\t\treturn this\n\t\t}\n\t\treturn new Environment({ ...this.options, dimensions: newDimensions })\n\t}\n\n\thasSchema(): boolean {\n\t\treturn this.options.schema !== undefined\n\t}\n\n\tpublic getSchema(): Schema {\n\t\tif (!this.options.schema) {\n\t\t\tthrow new BindingError('Schema is not set')\n\t\t}\n\t\treturn this.options.schema\n\t}\n\n\tpublic withSchema(schema: Schema): Environment {\n\t\treturn new Environment({ ...this.options, schema })\n\t}\n\n\tpublic getParent(): Environment {\n\t\tif (!this.options.parent) {\n\t\t\tthrow new BindingError('There is no parent environment')\n\t\t}\n\t\treturn this.options.parent\n\t}\n\n\tpublic withExtension<S, R>(extension: Environment.Extension<S, R>, state: S): Environment {\n\t\treturn new Environment({\n\t\t\t...this.options,\n\t\t\textensions: new Map([...this.options.extensions, [extension, state] as [Environment.Extension<unknown, unknown>, unknown]]),\n\t\t})\n\t}\n\n\tpublic getExtension<S, R>(extension: Environment.Extension<S, R>): R {\n\t\tconst state = this.options.extensions.get(extension as Environment.Extension<unknown, unknown>)\n\t\treturn extension.create(state as S, this)\n\t}\n\n\tpublic merge(other: Environment): Environment {\n\t\tif (other === this) {\n\t\t\treturn this\n\t\t}\n\t\tif (!equal(this.options.node, other.options.node)) {\n\t\t\tthrow new BindingError(`Cannot merge two environments with different tree position.`)\n\t\t}\n\t\tif (this.options.parameters !== other.options.parameters) {\n\t\t\tthrow new BindingError(`Cannot merge two environments with different parameters.`)\n\t\t}\n\t\tif (this.options.dimensions !== other.options.dimensions) {\n\t\t\tthrow new BindingError(`Cannot merge two environments with different dimensions.`)\n\t\t}\n\t\tif (this.options.extensions !== other.options.extensions) {\n\t\t\t// todo: deep compare?\n\t\t\tthrow new BindingError(`Cannot merge two environments with different extensions.`)\n\t\t}\n\n\t\tif (equal(this.options.variables, other.options.variables) && this.options.parent === other.options.parent) {\n\t\t\treturn this\n\t\t}\n\t\tfor (const key in other.options.variables) {\n\t\t\tif (key in this.options.variables && !equal(this.options.variables[key], other.options.variables[key])) {\n\t\t\t\tthrow new BindingError(`Cannot merge two environments with different value of variable ${key}:\\n`\n\t\t\t\t\t+ JSON.stringify(this.options.variables[key]) + '\\n'\n\t\t\t\t\t+ JSON.stringify(other.options.variables[key]))\n\t\t\t}\n\t\t}\n\n\t\treturn new Environment({\n\t\t\t...this.options,\n\t\t\tparent: this.options.parent && other.options.parent ? this.options.parent.merge(other.options.parent) : undefined,\n\t\t\tvariables: { ...this.options.variables, ...other.options.variables },\n\t\t})\n\t}\n}\n\nnamespace Environment {\n\texport type Name = string\n\n\texport type ReactElementLike = {\n\t\ttype: any\n\t\tprops: any\n\t}\n\n\texport type Value = string | number | boolean | undefined | Filter | ReactElementLike\n\n\texport type ResolvedValue = Value\n\n\texport interface Options<Node extends AnyNode | undefined> {\n\t\tnode?: Node\n\t\tschema?: Schema\n\t\tdimensions: SelectedDimensions\n\t\tparameters: Parameters\n\t\tvariables: CustomVariables\n\t\tparent?: Environment\n\t\textensions: Map<Extension<unknown, unknown>, unknown>\n\t}\n\n\texport type SubTreeNode =\n\t\t| SubTreeEntityNode\n\t\t| SubTreeEntityListNode\n\n\texport type InnerNode =\n\t\t| EntityNode\n\t\t| EntityListNode\n\t\t| ColumnNode\n\n\texport type AnyNode =\n\t\t| SubTreeNode\n\t\t| InnerNode\n\n\texport interface SubTreeEntityNode {\n\t\ttype: 'subtree-entity'\n\t\tentity: SchemaEntity\n\t\texpectedCardinality: 'zero' | 'one' | 'zero-or-one'\n\t\tfilter: Filter\n\t}\n\n\texport interface SubTreeEntityListNode {\n\t\ttype: 'subtree-entity-list'\n\t\tentity: SchemaEntity\n\t\texpectedCardinality: 'zero-to-many' | 'zero'\n\t\tfilter: Filter\n\t}\n\n\texport interface EntityNode {\n\t\ttype: 'entity'\n\t\tentity: SchemaEntity\n\t\tfield: SchemaRelation\n\t}\n\n\texport interface EntityListNode {\n\t\ttype: 'entity-list'\n\t\tentity: SchemaEntity\n\t\tfield: SchemaRelation\n\t}\n\n\texport interface ColumnNode {\n\t\ttype: 'column'\n\t\tentity: SchemaEntity\n\t\tfield: SchemaColumn\n\t}\n\n\texport interface SelectedDimensions {\n\t\t[key: string]: string[]\n\t}\n\n\texport type Parameters = {\n\t\t[K in string]?: string | number\n\t}\n\n\texport interface CustomVariables {\n\t\t[key: string]: Value\n\t}\n\n\texport interface ValuesMapWithFactory {\n\t\t[key: string]:\n\t\t\t| ((environment: Environment) => Value)\n\t\t\t| Value\n\t}\n\n\texport type Extension<State, Result> = {\n\t\tcreate: (state: State | undefined, environment: Environment) => Result\n\t}\n\n\texport const createExtension = <S, R>(create: Extension<S, R>['create'], otherMethods?: Omit<Extension<S, R>, 'create'>): Extension<S, R> => {\n\t\treturn {\n\t\t\tcreate,\n\t\t\t...otherMethods,\n\t\t}\n\t}\n\n\t/** @deprecated */\n\texport type DeltaFactory = ValuesMapWithFactory\n}\n\nexport { Environment }\n"],"names":["Environment"],"mappings":";;AAKA,MAAM,YAA4F;AAAA,EACzF,YACU,SAChB;AADgB,SAAA,UAAA;AAAA,EAElB;AAAA,EAEA,OAAc,SAAS;AACtB,WAAO,IAAI,YAAY;AAAA,MACtB,YAAY,CAAC;AAAA,MACb,WAAW,CAAC;AAAA,MACZ,YAAY,CAAC;AAAA,MACb,gCAAgB,IAAI;AAAA,IAAA,CACpB;AAAA,EACF;AAAA,EAEO,aAAsC;AACnC,aAAA,MAAmB,MAAM,IAAI,QAAQ,MAAM,MAAM,IAAI,aAAa;AACpE,YAAA,OAAO,IAAI,QAAQ;AACzB,UAAI,KAAK,SAAS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AO,IAAI,YAAY;AAAA,MACtB,GAAG,KAAK;AAAA,MACR,QAAQ,KAAK,QAAQ,UAAU,MAAM,QAAQ,SAAS,KAAK,QAAQ,OAAO,MAAM,MAAM,QAAQ,MAAM,IAAI;AAAA,MACxG,WAAW,EAAE,GAAG,KAAK,QAAQ,WAAW,GAAG,MAAM,QAAQ,UAAU;AAAA,IAAA,CACnE;AAAA,EACF;AACD;AAAA,CAEA,CAAUA,iBAAV;AAyFcA,eAAA,kBAAkB,CAAO,QAAmC,iBAAoE;AACrI,WAAA;AAAA,MACN;AAAA,MACA,GAAG;AAAA,IAAA;AAAA,EACJ;AACD,GA9FS,gBAAA,cAAA,CAAA,EAAA;"}
@@ -33,8 +33,7 @@ class Environment {
33
33
  const { parent, ...options } = this.options;
34
34
  return new Environment({
35
35
  ...options,
36
- node: SubTree,
37
- parent: this
36
+ node: SubTree
38
37
  });
39
38
  }
40
39
  withSubTreeChild(node) {
@@ -1 +1 @@
1
- {"version":3,"file":"Environment.cjs","sources":["../../../../../packages/binding-common/src/environment/Environment.ts"],"sourcesContent":["import { BindingError } from '../BindingError'\nimport type { Filter } from '../treeParameters'\nimport equal from 'fast-deep-equal/es6/index.js'\nimport { Schema, SchemaColumn, SchemaEntity, SchemaRelation } from '../schema'\n\nclass Environment<Node extends Environment.AnyNode | undefined = Environment.AnyNode | undefined> {\n\tprivate constructor(\n\t\tprivate readonly options: Environment.Options<Node>,\n\t) {\n\t}\n\n\tpublic static create() {\n\t\treturn new Environment({\n\t\t\tdimensions: {},\n\t\t\tvariables: {},\n\t\t\tparameters: {},\n\t\t\textensions: new Map(),\n\t\t})\n\t}\n\n\tpublic getSubTree(): Environment.SubTreeNode {\n\t\tfor (let env: Environment = this; env.options.node; env = env.getParent()) {\n\t\t\tconst node = env.options.node\n\t\t\tif (node.type === 'subtree-entity' || node.type === 'subtree-entity-list') {\n\t\t\t\treturn node\n\t\t\t}\n\t\t}\n\t\tthrow new BindingError('Not in a SubTree')\n\t}\n\n\tpublic getSubTreeNode(): Node & Environment.AnyNode {\n\t\tif (!this.options.node) {\n\t\t\tthrow new BindingError()\n\t\t}\n\t\treturn this.options.node\n\t}\n\n\tpublic withSubTree<Node extends Environment.SubTreeNode>(SubTree: Node): Environment<Node> {\n\t\tconst { parent, ...options } = this.options\n\t\treturn new Environment({\n\t\t\t...options,\n\t\t\tnode: SubTree,\n\t\t\tparent: this,\n\t\t})\n\t}\n\n\tpublic withSubTreeChild<Node extends Environment.InnerNode>(node: Node): Environment<Node> {\n\t\tif (!this.options.node) {\n\t\t\tthrow new BindingError(`Cannot call withSubTreeChild without previous call of withSubTree`)\n\t\t}\n\t\tif (this.options.node.entity.fields.get(node.field.name) !== node.field) {\n\t\t\tthrow new BindingError()\n\t\t}\n\t\treturn new Environment({\n\t\t\t...this.options,\n\t\t\tnode,\n\t\t\tparent: this,\n\t\t})\n\t}\n\n\n\tpublic hasVariable(key: string): boolean {\n\t\treturn key in this.options.variables\n\t}\n\n\tpublic getVariable<V extends Environment.Value = Environment.Value>(key: string): V {\n\t\tif (!(key in this.options.variables)) {\n\t\t\tthrow new BindingError(`Variable ${key} not found`)\n\t\t}\n\t\treturn this.options.variables[key] as V\n\t}\n\n\tpublic getVariableOrElse<F, V extends Environment.Value = Environment.Value>(key: string, fallback: F): V | F {\n\t\treturn (this.options.variables[key] as V) ?? fallback\n\t}\n\n\t/** @deprecated use getVariable or getParameter */\n\tpublic getValue<V extends Environment.Value = Environment.Value>(key: string): V {\n\t\tconsole.warn('Environment.getValue() is deprecated, use Environment.getVariable() or Environment.getParameter() instead.')\n\t\treturn this.getVariableOrElse(key, undefined) ?? this.getParameterOrElse(key, undefined) as V\n\t}\n\n\t/** @deprecated use getVariableOrElse or getParameterOrElse */\n\tpublic getValueOrElse<F, V extends Environment.Value = Environment.Value>(key: string, fallback: F): V | F {\n\t\tconsole.warn('Environment.getValueOrElse() is deprecated, use Environment.getVariableOrElse() or Environment.getParameterOrElse() instead.')\n\t\treturn this.getVariableOrElse(key, undefined) ?? this.getParameterOrElse(key, fallback) as any\n\t}\n\n\t/** @deprecated */\n\tpublic hasName(key: string): boolean {\n\t\tconsole.warn('Environment.hasName() is deprecated, use Environment.hasVariable() or Environment.hasParameter() instead.')\n\t\treturn key in this.options.variables || key in this.options.parameters\n\t}\n\n\tpublic withVariables(variables: Environment.ValuesMapWithFactory | undefined): Environment {\n\t\tif (variables === undefined) {\n\t\t\treturn this\n\t\t}\n\t\tconst newVariables = { ...this.options.variables }\n\t\tfor (const [newName, newValue] of Object.entries(variables)) {\n\t\t\tif (newName === 'labelMiddleware') {\n\t\t\t\tthrow new BindingError('You cannot pass labelMiddleware to withVariables method. Use withLabelMiddleware instead.')\n\t\t\t}\n\t\t\tconst resolvedValue = typeof newValue === 'function' ? newValue(this) : newValue\n\t\t\tif (resolvedValue === undefined) {\n\t\t\t\tdelete newVariables[newName]\n\t\t\t} else {\n\t\t\t\tnewVariables[newName] = resolvedValue\n\t\t\t}\n\t\t}\n\t\treturn new Environment({\n\t\t\t...this.options,\n\t\t\tvariables: newVariables,\n\t\t\tparent: this,\n\t\t})\n\t}\n\n\tpublic getAllVariables() {\n\t\treturn this.options.variables\n\t}\n\n\tpublic hasParameter(key: string): boolean {\n\t\treturn key in this.options.parameters\n\t}\n\n\tpublic getParameter<F>(key: string): string | number {\n\t\tif (!(key in this.options.parameters)) {\n\t\t\tthrow new BindingError(`Parameter ${key} not found`)\n\t\t}\n\t\treturn this.options.parameters[key] as string | number\n\t}\n\n\tpublic getParameterOrElse<F>(key: string, fallback: F): string | number | F {\n\t\treturn this.options.parameters[key] ?? fallback\n\t}\n\n\tpublic getAllParameters() {\n\t\treturn this.options.parameters\n\t}\n\n\tpublic withParameters(parameters: Environment.Parameters): Environment {\n\t\treturn new Environment({ ...this.options, parameters })\n\t}\n\n\tpublic hasDimension(dimensionName: string): boolean {\n\t\treturn dimensionName in this.options.dimensions\n\t}\n\n\tpublic getDimension<F>(dimensionName: string): string[] {\n\t\tif (!(dimensionName in this.options.dimensions)) {\n\t\t\tthrow new BindingError(`Dimension ${dimensionName} does not exist.`)\n\t\t}\n\t\treturn this.options.dimensions[dimensionName]\n\t}\n\n\tpublic getDimensionOrElse<F>(dimensionName: string, fallback: F): string[] | F {\n\t\treturn this.options.dimensions[dimensionName] ?? fallback\n\t}\n\n\tpublic getAllDimensions(): Environment.SelectedDimensions {\n\t\treturn this.options.dimensions\n\t}\n\n\tpublic withDimensions(dimensions: Environment.SelectedDimensions): Environment {\n\t\tconst newDimensions = {\n\t\t\t...this.options.dimensions,\n\t\t\t...dimensions,\n\t\t}\n\t\tif (equal(newDimensions, this.options.dimensions)) {\n\t\t\treturn this\n\t\t}\n\t\treturn new Environment({ ...this.options, dimensions: newDimensions })\n\t}\n\n\thasSchema(): boolean {\n\t\treturn this.options.schema !== undefined\n\t}\n\n\tpublic getSchema(): Schema {\n\t\tif (!this.options.schema) {\n\t\t\tthrow new BindingError('Schema is not set')\n\t\t}\n\t\treturn this.options.schema\n\t}\n\n\tpublic withSchema(schema: Schema): Environment {\n\t\treturn new Environment({ ...this.options, schema })\n\t}\n\n\tpublic getParent(): Environment {\n\t\tif (!this.options.parent) {\n\t\t\tthrow new BindingError('There is no parent environment')\n\t\t}\n\t\treturn this.options.parent\n\t}\n\n\tpublic withExtension<S, R>(extension: Environment.Extension<S, R>, state: S): Environment {\n\t\treturn new Environment({\n\t\t\t...this.options,\n\t\t\textensions: new Map([...this.options.extensions, [extension, state] as [Environment.Extension<unknown, unknown>, unknown]]),\n\t\t})\n\t}\n\n\tpublic getExtension<S, R>(extension: Environment.Extension<S, R>): R {\n\t\tconst state = this.options.extensions.get(extension as Environment.Extension<unknown, unknown>)\n\t\treturn extension.create(state as S, this)\n\t}\n\n\tpublic merge(other: Environment): Environment {\n\t\tif (other === this) {\n\t\t\treturn this\n\t\t}\n\t\tif (!equal(this.options.node, other.options.node)) {\n\t\t\tthrow new BindingError(`Cannot merge two environments with different tree position.`)\n\t\t}\n\t\tif (this.options.parameters !== other.options.parameters) {\n\t\t\tthrow new BindingError(`Cannot merge two environments with different parameters.`)\n\t\t}\n\t\tif (this.options.dimensions !== other.options.dimensions) {\n\t\t\tthrow new BindingError(`Cannot merge two environments with different dimensions.`)\n\t\t}\n\t\tif (this.options.extensions !== other.options.extensions) {\n\t\t\t// todo: deep compare?\n\t\t\tthrow new BindingError(`Cannot merge two environments with different extensions.`)\n\t\t}\n\n\t\tif (equal(this.options.variables, other.options.variables) && this.options.parent === other.options.parent) {\n\t\t\treturn this\n\t\t}\n\t\tfor (const key in other.options.variables) {\n\t\t\tif (key in this.options.variables && !equal(this.options.variables[key], other.options.variables[key])) {\n\t\t\t\tthrow new BindingError(`Cannot merge two environments with different value of variable ${key}:\\n`\n\t\t\t\t\t+ JSON.stringify(this.options.variables[key]) + '\\n'\n\t\t\t\t\t+ JSON.stringify(other.options.variables[key]))\n\t\t\t}\n\t\t}\n\n\t\treturn new Environment({\n\t\t\t...this.options,\n\t\t\tparent: this.options.parent && other.options.parent ? this.options.parent.merge(other.options.parent) : undefined,\n\t\t\tvariables: { ...this.options.variables, ...other.options.variables },\n\t\t})\n\t}\n}\n\nnamespace Environment {\n\texport type Name = string\n\n\texport type ReactElementLike = {\n\t\ttype: any\n\t\tprops: any\n\t}\n\n\texport type Value = string | number | boolean | undefined | Filter | ReactElementLike\n\n\texport type ResolvedValue = Value\n\n\texport interface Options<Node extends AnyNode | undefined> {\n\t\tnode?: Node\n\t\tschema?: Schema\n\t\tdimensions: SelectedDimensions\n\t\tparameters: Parameters\n\t\tvariables: CustomVariables\n\t\tparent?: Environment\n\t\textensions: Map<Extension<unknown, unknown>, unknown>\n\t}\n\n\texport type SubTreeNode =\n\t\t| SubTreeEntityNode\n\t\t| SubTreeEntityListNode\n\n\texport type InnerNode =\n\t\t| EntityNode\n\t\t| EntityListNode\n\t\t| ColumnNode\n\n\texport type AnyNode =\n\t\t| SubTreeNode\n\t\t| InnerNode\n\n\texport interface SubTreeEntityNode {\n\t\ttype: 'subtree-entity'\n\t\tentity: SchemaEntity\n\t\texpectedCardinality: 'zero' | 'one' | 'zero-or-one'\n\t\tfilter: Filter\n\t}\n\n\texport interface SubTreeEntityListNode {\n\t\ttype: 'subtree-entity-list'\n\t\tentity: SchemaEntity\n\t\texpectedCardinality: 'zero-to-many' | 'zero'\n\t\tfilter: Filter\n\t}\n\n\texport interface EntityNode {\n\t\ttype: 'entity'\n\t\tentity: SchemaEntity\n\t\tfield: SchemaRelation\n\t}\n\n\texport interface EntityListNode {\n\t\ttype: 'entity-list'\n\t\tentity: SchemaEntity\n\t\tfield: SchemaRelation\n\t}\n\n\texport interface ColumnNode {\n\t\ttype: 'column'\n\t\tentity: SchemaEntity\n\t\tfield: SchemaColumn\n\t}\n\n\texport interface SelectedDimensions {\n\t\t[key: string]: string[]\n\t}\n\n\texport type Parameters = {\n\t\t[K in string]?: string | number\n\t}\n\n\texport interface CustomVariables {\n\t\t[key: string]: Value\n\t}\n\n\texport interface ValuesMapWithFactory {\n\t\t[key: string]:\n\t\t\t| ((environment: Environment) => Value)\n\t\t\t| Value\n\t}\n\n\texport type Extension<State, Result> = {\n\t\tcreate: (state: State | undefined, environment: Environment) => Result\n\t}\n\n\texport const createExtension = <S, R>(create: Extension<S, R>['create'], otherMethods?: Omit<Extension<S, R>, 'create'>): Extension<S, R> => {\n\t\treturn {\n\t\t\tcreate,\n\t\t\t...otherMethods,\n\t\t}\n\t}\n\n\t/** @deprecated */\n\texport type DeltaFactory = ValuesMapWithFactory\n}\n\nexport { Environment }\n"],"names":["BindingError","Environment"],"mappings":";;;;AAKA,MAAM,YAA4F;AAAA,EACzF,YACU,SAChB;AADgB,SAAA,UAAA;AAAA,EAElB;AAAA,EAEA,OAAc,SAAS;AACtB,WAAO,IAAI,YAAY;AAAA,MACtB,YAAY,CAAC;AAAA,MACb,WAAW,CAAC;AAAA,MACZ,YAAY,CAAC;AAAA,MACb,gCAAgB,IAAI;AAAA,IAAA,CACpB;AAAA,EACF;AAAA,EAEO,aAAsC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AAQ,UAAU,GAAG,CAAC,GAAG;AACjG,cAAA,IAAIA,aAAa,aAAA,kEAAkE,GAAG;AAAA,IACzF,KAAK,UAAU,KAAK,QAAQ,UAAU,GAAG,CAAC,IAAI,OAC9C,KAAK,UAAU,MAAM,QAAQ,UAAU,GAAG,CAAC,CAAC;AAAA,MAChD;AAAA,IACD;AAEA,WAAO,IAAI,YAAY;AAAA,MACtB,GAAG,KAAK;AAAA,MACR,QAAQ,KAAK,QAAQ,UAAU,MAAM,QAAQ,SAAS,KAAK,QAAQ,OAAO,MAAM,MAAM,QAAQ,MAAM,IAAI;AAAA,MACxG,WAAW,EAAE,GAAG,KAAK,QAAQ,WAAW,GAAG,MAAM,QAAQ,UAAU;AAAA,IAAA,CACnE;AAAA,EACF;AACD;AAAA,CAEA,CAAUC,iBAAV;AAyFcA,eAAA,kBAAkB,CAAO,QAAmC,iBAAoE;AACrI,WAAA;AAAA,MACN;AAAA,MACA,GAAG;AAAA,IAAA;AAAA,EACJ;AACD,GA9FS,gBAAA,cAAA,CAAA,EAAA;;"}
1
+ {"version":3,"file":"Environment.cjs","sources":["../../../../../packages/binding-common/src/environment/Environment.ts"],"sourcesContent":["import { BindingError } from '../BindingError'\nimport type { Filter } from '../treeParameters'\nimport equal from 'fast-deep-equal/es6/index.js'\nimport { Schema, SchemaColumn, SchemaEntity, SchemaRelation } from '../schema'\n\nclass Environment<Node extends Environment.AnyNode | undefined = Environment.AnyNode | undefined> {\n\tprivate constructor(\n\t\tprivate readonly options: Environment.Options<Node>,\n\t) {\n\t}\n\n\tpublic static create() {\n\t\treturn new Environment({\n\t\t\tdimensions: {},\n\t\t\tvariables: {},\n\t\t\tparameters: {},\n\t\t\textensions: new Map(),\n\t\t})\n\t}\n\n\tpublic getSubTree(): Environment.SubTreeNode {\n\t\tfor (let env: Environment = this; env.options.node; env = env.getParent()) {\n\t\t\tconst node = env.options.node\n\t\t\tif (node.type === 'subtree-entity' || node.type === 'subtree-entity-list') {\n\t\t\t\treturn node\n\t\t\t}\n\t\t}\n\t\tthrow new BindingError('Not in a SubTree')\n\t}\n\n\tpublic getSubTreeNode(): Node & Environment.AnyNode {\n\t\tif (!this.options.node) {\n\t\t\tthrow new BindingError()\n\t\t}\n\t\treturn this.options.node\n\t}\n\n\tpublic withSubTree<Node extends Environment.SubTreeNode>(SubTree: Node): Environment<Node> {\n\t\tconst { parent, ...options } = this.options\n\t\treturn new Environment({\n\t\t\t...options,\n\t\t\tnode: SubTree,\n\t\t})\n\t}\n\n\tpublic withSubTreeChild<Node extends Environment.InnerNode>(node: Node): Environment<Node> {\n\t\tif (!this.options.node) {\n\t\t\tthrow new BindingError(`Cannot call withSubTreeChild without previous call of withSubTree`)\n\t\t}\n\t\tif (this.options.node.entity.fields.get(node.field.name) !== node.field) {\n\t\t\tthrow new BindingError()\n\t\t}\n\t\treturn new Environment({\n\t\t\t...this.options,\n\t\t\tnode,\n\t\t\tparent: this,\n\t\t})\n\t}\n\n\n\tpublic hasVariable(key: string): boolean {\n\t\treturn key in this.options.variables\n\t}\n\n\tpublic getVariable<V extends Environment.Value = Environment.Value>(key: string): V {\n\t\tif (!(key in this.options.variables)) {\n\t\t\tthrow new BindingError(`Variable ${key} not found`)\n\t\t}\n\t\treturn this.options.variables[key] as V\n\t}\n\n\tpublic getVariableOrElse<F, V extends Environment.Value = Environment.Value>(key: string, fallback: F): V | F {\n\t\treturn (this.options.variables[key] as V) ?? fallback\n\t}\n\n\t/** @deprecated use getVariable or getParameter */\n\tpublic getValue<V extends Environment.Value = Environment.Value>(key: string): V {\n\t\tconsole.warn('Environment.getValue() is deprecated, use Environment.getVariable() or Environment.getParameter() instead.')\n\t\treturn this.getVariableOrElse(key, undefined) ?? this.getParameterOrElse(key, undefined) as V\n\t}\n\n\t/** @deprecated use getVariableOrElse or getParameterOrElse */\n\tpublic getValueOrElse<F, V extends Environment.Value = Environment.Value>(key: string, fallback: F): V | F {\n\t\tconsole.warn('Environment.getValueOrElse() is deprecated, use Environment.getVariableOrElse() or Environment.getParameterOrElse() instead.')\n\t\treturn this.getVariableOrElse(key, undefined) ?? this.getParameterOrElse(key, fallback) as any\n\t}\n\n\t/** @deprecated */\n\tpublic hasName(key: string): boolean {\n\t\tconsole.warn('Environment.hasName() is deprecated, use Environment.hasVariable() or Environment.hasParameter() instead.')\n\t\treturn key in this.options.variables || key in this.options.parameters\n\t}\n\n\tpublic withVariables(variables: Environment.ValuesMapWithFactory | undefined): Environment {\n\t\tif (variables === undefined) {\n\t\t\treturn this\n\t\t}\n\t\tconst newVariables = { ...this.options.variables }\n\t\tfor (const [newName, newValue] of Object.entries(variables)) {\n\t\t\tif (newName === 'labelMiddleware') {\n\t\t\t\tthrow new BindingError('You cannot pass labelMiddleware to withVariables method. Use withLabelMiddleware instead.')\n\t\t\t}\n\t\t\tconst resolvedValue = typeof newValue === 'function' ? newValue(this) : newValue\n\t\t\tif (resolvedValue === undefined) {\n\t\t\t\tdelete newVariables[newName]\n\t\t\t} else {\n\t\t\t\tnewVariables[newName] = resolvedValue\n\t\t\t}\n\t\t}\n\t\treturn new Environment({\n\t\t\t...this.options,\n\t\t\tvariables: newVariables,\n\t\t\tparent: this,\n\t\t})\n\t}\n\n\tpublic getAllVariables() {\n\t\treturn this.options.variables\n\t}\n\n\tpublic hasParameter(key: string): boolean {\n\t\treturn key in this.options.parameters\n\t}\n\n\tpublic getParameter<F>(key: string): string | number {\n\t\tif (!(key in this.options.parameters)) {\n\t\t\tthrow new BindingError(`Parameter ${key} not found`)\n\t\t}\n\t\treturn this.options.parameters[key] as string | number\n\t}\n\n\tpublic getParameterOrElse<F>(key: string, fallback: F): string | number | F {\n\t\treturn this.options.parameters[key] ?? fallback\n\t}\n\n\tpublic getAllParameters() {\n\t\treturn this.options.parameters\n\t}\n\n\tpublic withParameters(parameters: Environment.Parameters): Environment {\n\t\treturn new Environment({ ...this.options, parameters })\n\t}\n\n\tpublic hasDimension(dimensionName: string): boolean {\n\t\treturn dimensionName in this.options.dimensions\n\t}\n\n\tpublic getDimension<F>(dimensionName: string): string[] {\n\t\tif (!(dimensionName in this.options.dimensions)) {\n\t\t\tthrow new BindingError(`Dimension ${dimensionName} does not exist.`)\n\t\t}\n\t\treturn this.options.dimensions[dimensionName]\n\t}\n\n\tpublic getDimensionOrElse<F>(dimensionName: string, fallback: F): string[] | F {\n\t\treturn this.options.dimensions[dimensionName] ?? fallback\n\t}\n\n\tpublic getAllDimensions(): Environment.SelectedDimensions {\n\t\treturn this.options.dimensions\n\t}\n\n\tpublic withDimensions(dimensions: Environment.SelectedDimensions): Environment {\n\t\tconst newDimensions = {\n\t\t\t...this.options.dimensions,\n\t\t\t...dimensions,\n\t\t}\n\t\tif (equal(newDimensions, this.options.dimensions)) {\n\t\t\treturn this\n\t\t}\n\t\treturn new Environment({ ...this.options, dimensions: newDimensions })\n\t}\n\n\thasSchema(): boolean {\n\t\treturn this.options.schema !== undefined\n\t}\n\n\tpublic getSchema(): Schema {\n\t\tif (!this.options.schema) {\n\t\t\tthrow new BindingError('Schema is not set')\n\t\t}\n\t\treturn this.options.schema\n\t}\n\n\tpublic withSchema(schema: Schema): Environment {\n\t\treturn new Environment({ ...this.options, schema })\n\t}\n\n\tpublic getParent(): Environment {\n\t\tif (!this.options.parent) {\n\t\t\tthrow new BindingError('There is no parent environment')\n\t\t}\n\t\treturn this.options.parent\n\t}\n\n\tpublic withExtension<S, R>(extension: Environment.Extension<S, R>, state: S): Environment {\n\t\treturn new Environment({\n\t\t\t...this.options,\n\t\t\textensions: new Map([...this.options.extensions, [extension, state] as [Environment.Extension<unknown, unknown>, unknown]]),\n\t\t})\n\t}\n\n\tpublic getExtension<S, R>(extension: Environment.Extension<S, R>): R {\n\t\tconst state = this.options.extensions.get(extension as Environment.Extension<unknown, unknown>)\n\t\treturn extension.create(state as S, this)\n\t}\n\n\tpublic merge(other: Environment): Environment {\n\t\tif (other === this) {\n\t\t\treturn this\n\t\t}\n\t\tif (!equal(this.options.node, other.options.node)) {\n\t\t\tthrow new BindingError(`Cannot merge two environments with different tree position.`)\n\t\t}\n\t\tif (this.options.parameters !== other.options.parameters) {\n\t\t\tthrow new BindingError(`Cannot merge two environments with different parameters.`)\n\t\t}\n\t\tif (this.options.dimensions !== other.options.dimensions) {\n\t\t\tthrow new BindingError(`Cannot merge two environments with different dimensions.`)\n\t\t}\n\t\tif (this.options.extensions !== other.options.extensions) {\n\t\t\t// todo: deep compare?\n\t\t\tthrow new BindingError(`Cannot merge two environments with different extensions.`)\n\t\t}\n\n\t\tif (equal(this.options.variables, other.options.variables) && this.options.parent === other.options.parent) {\n\t\t\treturn this\n\t\t}\n\t\tfor (const key in other.options.variables) {\n\t\t\tif (key in this.options.variables && !equal(this.options.variables[key], other.options.variables[key])) {\n\t\t\t\tthrow new BindingError(`Cannot merge two environments with different value of variable ${key}:\\n`\n\t\t\t\t\t+ JSON.stringify(this.options.variables[key]) + '\\n'\n\t\t\t\t\t+ JSON.stringify(other.options.variables[key]))\n\t\t\t}\n\t\t}\n\n\t\treturn new Environment({\n\t\t\t...this.options,\n\t\t\tparent: this.options.parent && other.options.parent ? this.options.parent.merge(other.options.parent) : undefined,\n\t\t\tvariables: { ...this.options.variables, ...other.options.variables },\n\t\t})\n\t}\n}\n\nnamespace Environment {\n\texport type Name = string\n\n\texport type ReactElementLike = {\n\t\ttype: any\n\t\tprops: any\n\t}\n\n\texport type Value = string | number | boolean | undefined | Filter | ReactElementLike\n\n\texport type ResolvedValue = Value\n\n\texport interface Options<Node extends AnyNode | undefined> {\n\t\tnode?: Node\n\t\tschema?: Schema\n\t\tdimensions: SelectedDimensions\n\t\tparameters: Parameters\n\t\tvariables: CustomVariables\n\t\tparent?: Environment\n\t\textensions: Map<Extension<unknown, unknown>, unknown>\n\t}\n\n\texport type SubTreeNode =\n\t\t| SubTreeEntityNode\n\t\t| SubTreeEntityListNode\n\n\texport type InnerNode =\n\t\t| EntityNode\n\t\t| EntityListNode\n\t\t| ColumnNode\n\n\texport type AnyNode =\n\t\t| SubTreeNode\n\t\t| InnerNode\n\n\texport interface SubTreeEntityNode {\n\t\ttype: 'subtree-entity'\n\t\tentity: SchemaEntity\n\t\texpectedCardinality: 'zero' | 'one' | 'zero-or-one'\n\t\tfilter: Filter\n\t}\n\n\texport interface SubTreeEntityListNode {\n\t\ttype: 'subtree-entity-list'\n\t\tentity: SchemaEntity\n\t\texpectedCardinality: 'zero-to-many' | 'zero'\n\t\tfilter: Filter\n\t}\n\n\texport interface EntityNode {\n\t\ttype: 'entity'\n\t\tentity: SchemaEntity\n\t\tfield: SchemaRelation\n\t}\n\n\texport interface EntityListNode {\n\t\ttype: 'entity-list'\n\t\tentity: SchemaEntity\n\t\tfield: SchemaRelation\n\t}\n\n\texport interface ColumnNode {\n\t\ttype: 'column'\n\t\tentity: SchemaEntity\n\t\tfield: SchemaColumn\n\t}\n\n\texport interface SelectedDimensions {\n\t\t[key: string]: string[]\n\t}\n\n\texport type Parameters = {\n\t\t[K in string]?: string | number\n\t}\n\n\texport interface CustomVariables {\n\t\t[key: string]: Value\n\t}\n\n\texport interface ValuesMapWithFactory {\n\t\t[key: string]:\n\t\t\t| ((environment: Environment) => Value)\n\t\t\t| Value\n\t}\n\n\texport type Extension<State, Result> = {\n\t\tcreate: (state: State | undefined, environment: Environment) => Result\n\t}\n\n\texport const createExtension = <S, R>(create: Extension<S, R>['create'], otherMethods?: Omit<Extension<S, R>, 'create'>): Extension<S, R> => {\n\t\treturn {\n\t\t\tcreate,\n\t\t\t...otherMethods,\n\t\t}\n\t}\n\n\t/** @deprecated */\n\texport type DeltaFactory = ValuesMapWithFactory\n}\n\nexport { Environment }\n"],"names":["BindingError","Environment"],"mappings":";;;;AAKA,MAAM,YAA4F;AAAA,EACzF,YACU,SAChB;AADgB,SAAA,UAAA;AAAA,EAElB;AAAA,EAEA,OAAc,SAAS;AACtB,WAAO,IAAI,YAAY;AAAA,MACtB,YAAY,CAAC;AAAA,MACb,WAAW,CAAC;AAAA,MACZ,YAAY,CAAC;AAAA,MACb,gCAAgB,IAAI;A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,UAAU,GAAG,GAAG,MAAM,QAAQ,UAAU,GAAG,CAAC,GAAG;AACjG,cAAA,IAAIA,aAAa,aAAA,kEAAkE,GAAG;AAAA,IACzF,KAAK,UAAU,KAAK,QAAQ,UAAU,GAAG,CAAC,IAAI,OAC9C,KAAK,UAAU,MAAM,QAAQ,UAAU,GAAG,CAAC,CAAC;AAAA,MAChD;AAAA,IACD;AAEA,WAAO,IAAI,YAAY;AAAA,MACtB,GAAG,KAAK;AAAA,MACR,QAAQ,KAAK,QAAQ,UAAU,MAAM,QAAQ,SAAS,KAAK,QAAQ,OAAO,MAAM,MAAM,QAAQ,MAAM,IAAI;AAAA,MACxG,WAAW,EAAE,GAAG,KAAK,QAAQ,WAAW,GAAG,MAAM,QAAQ,UAAU;AAAA,IAAA,CACnE;AAAA,EACF;AACD;AAAA,CAEA,CAAUC,iBAAV;AAyFcA,eAAA,kBAAkB,CAAO,QAAmC,iBAAoE;AACrI,WAAA;AAAA,MACN;AAAA,MACA,GAAG;AAAA,IAAA;AAAA,EACJ;AACD,GA9FS,gBAAA,cAAA,CAAA,EAAA;;"}
@@ -31,8 +31,7 @@ class Environment {
31
31
  const { parent, ...options } = this.options;
32
32
  return new Environment({
33
33
  ...options,
34
- node: SubTree,
35
- parent: this
34
+ node: SubTree
36
35
  });
37
36
  }
38
37
  withSubTreeChild(node) {
@@ -1 +1 @@
1
- {"version":3,"file":"Environment.js","sources":["../../../../../packages/binding-common/src/environment/Environment.ts"],"sourcesContent":["import { BindingError } from '../BindingError'\nimport type { Filter } from '../treeParameters'\nimport equal from 'fast-deep-equal/es6/index.js'\nimport { Schema, SchemaColumn, SchemaEntity, SchemaRelation } from '../schema'\n\nclass Environment<Node extends Environment.AnyNode | undefined = Environment.AnyNode | undefined> {\n\tprivate constructor(\n\t\tprivate readonly options: Environment.Options<Node>,\n\t) {\n\t}\n\n\tpublic static create() {\n\t\treturn new Environment({\n\t\t\tdimensions: {},\n\t\t\tvariables: {},\n\t\t\tparameters: {},\n\t\t\textensions: new Map(),\n\t\t})\n\t}\n\n\tpublic getSubTree(): Environment.SubTreeNode {\n\t\tfor (let env: Environment = this; env.options.node; env = env.getParent()) {\n\t\t\tconst node = env.options.node\n\t\t\tif (node.type === 'subtree-entity' || node.type === 'subtree-entity-list') {\n\t\t\t\treturn node\n\t\t\t}\n\t\t}\n\t\tthrow new BindingError('Not in a SubTree')\n\t}\n\n\tpublic getSubTreeNode(): Node & Environment.AnyNode {\n\t\tif (!this.options.node) {\n\t\t\tthrow new BindingError()\n\t\t}\n\t\treturn this.options.node\n\t}\n\n\tpublic withSubTree<Node extends Environment.SubTreeNode>(SubTree: Node): Environment<Node> {\n\t\tconst { parent, ...options } = this.options\n\t\treturn new Environment({\n\t\t\t...options,\n\t\t\tnode: SubTree,\n\t\t\tparent: this,\n\t\t})\n\t}\n\n\tpublic withSubTreeChild<Node extends Environment.InnerNode>(node: Node): Environment<Node> {\n\t\tif (!this.options.node) {\n\t\t\tthrow new BindingError(`Cannot call withSubTreeChild without previous call of withSubTree`)\n\t\t}\n\t\tif (this.options.node.entity.fields.get(node.field.name) !== node.field) {\n\t\t\tthrow new BindingError()\n\t\t}\n\t\treturn new Environment({\n\t\t\t...this.options,\n\t\t\tnode,\n\t\t\tparent: this,\n\t\t})\n\t}\n\n\n\tpublic hasVariable(key: string): boolean {\n\t\treturn key in this.options.variables\n\t}\n\n\tpublic getVariable<V extends Environment.Value = Environment.Value>(key: string): V {\n\t\tif (!(key in this.options.variables)) {\n\t\t\tthrow new BindingError(`Variable ${key} not found`)\n\t\t}\n\t\treturn this.options.variables[key] as V\n\t}\n\n\tpublic getVariableOrElse<F, V extends Environment.Value = Environment.Value>(key: string, fallback: F): V | F {\n\t\treturn (this.options.variables[key] as V) ?? fallback\n\t}\n\n\t/** @deprecated use getVariable or getParameter */\n\tpublic getValue<V extends Environment.Value = Environment.Value>(key: string): V {\n\t\tconsole.warn('Environment.getValue() is deprecated, use Environment.getVariable() or Environment.getParameter() instead.')\n\t\treturn this.getVariableOrElse(key, undefined) ?? this.getParameterOrElse(key, undefined) as V\n\t}\n\n\t/** @deprecated use getVariableOrElse or getParameterOrElse */\n\tpublic getValueOrElse<F, V extends Environment.Value = Environment.Value>(key: string, fallback: F): V | F {\n\t\tconsole.warn('Environment.getValueOrElse() is deprecated, use Environment.getVariableOrElse() or Environment.getParameterOrElse() instead.')\n\t\treturn this.getVariableOrElse(key, undefined) ?? this.getParameterOrElse(key, fallback) as any\n\t}\n\n\t/** @deprecated */\n\tpublic hasName(key: string): boolean {\n\t\tconsole.warn('Environment.hasName() is deprecated, use Environment.hasVariable() or Environment.hasParameter() instead.')\n\t\treturn key in this.options.variables || key in this.options.parameters\n\t}\n\n\tpublic withVariables(variables: Environment.ValuesMapWithFactory | undefined): Environment {\n\t\tif (variables === undefined) {\n\t\t\treturn this\n\t\t}\n\t\tconst newVariables = { ...this.options.variables }\n\t\tfor (const [newName, newValue] of Object.entries(variables)) {\n\t\t\tif (newName === 'labelMiddleware') {\n\t\t\t\tthrow new BindingError('You cannot pass labelMiddleware to withVariables method. Use withLabelMiddleware instead.')\n\t\t\t}\n\t\t\tconst resolvedValue = typeof newValue === 'function' ? newValue(this) : newValue\n\t\t\tif (resolvedValue === undefined) {\n\t\t\t\tdelete newVariables[newName]\n\t\t\t} else {\n\t\t\t\tnewVariables[newName] = resolvedValue\n\t\t\t}\n\t\t}\n\t\treturn new Environment({\n\t\t\t...this.options,\n\t\t\tvariables: newVariables,\n\t\t\tparent: this,\n\t\t})\n\t}\n\n\tpublic getAllVariables() {\n\t\treturn this.options.variables\n\t}\n\n\tpublic hasParameter(key: string): boolean {\n\t\treturn key in this.options.parameters\n\t}\n\n\tpublic getParameter<F>(key: string): string | number {\n\t\tif (!(key in this.options.parameters)) {\n\t\t\tthrow new BindingError(`Parameter ${key} not found`)\n\t\t}\n\t\treturn this.options.parameters[key] as string | number\n\t}\n\n\tpublic getParameterOrElse<F>(key: string, fallback: F): string | number | F {\n\t\treturn this.options.parameters[key] ?? fallback\n\t}\n\n\tpublic getAllParameters() {\n\t\treturn this.options.parameters\n\t}\n\n\tpublic withParameters(parameters: Environment.Parameters): Environment {\n\t\treturn new Environment({ ...this.options, parameters })\n\t}\n\n\tpublic hasDimension(dimensionName: string): boolean {\n\t\treturn dimensionName in this.options.dimensions\n\t}\n\n\tpublic getDimension<F>(dimensionName: string): string[] {\n\t\tif (!(dimensionName in this.options.dimensions)) {\n\t\t\tthrow new BindingError(`Dimension ${dimensionName} does not exist.`)\n\t\t}\n\t\treturn this.options.dimensions[dimensionName]\n\t}\n\n\tpublic getDimensionOrElse<F>(dimensionName: string, fallback: F): string[] | F {\n\t\treturn this.options.dimensions[dimensionName] ?? fallback\n\t}\n\n\tpublic getAllDimensions(): Environment.SelectedDimensions {\n\t\treturn this.options.dimensions\n\t}\n\n\tpublic withDimensions(dimensions: Environment.SelectedDimensions): Environment {\n\t\tconst newDimensions = {\n\t\t\t...this.options.dimensions,\n\t\t\t...dimensions,\n\t\t}\n\t\tif (equal(newDimensions, this.options.dimensions)) {\n\t\t\treturn this\n\t\t}\n\t\treturn new Environment({ ...this.options, dimensions: newDimensions })\n\t}\n\n\thasSchema(): boolean {\n\t\treturn this.options.schema !== undefined\n\t}\n\n\tpublic getSchema(): Schema {\n\t\tif (!this.options.schema) {\n\t\t\tthrow new BindingError('Schema is not set')\n\t\t}\n\t\treturn this.options.schema\n\t}\n\n\tpublic withSchema(schema: Schema): Environment {\n\t\treturn new Environment({ ...this.options, schema })\n\t}\n\n\tpublic getParent(): Environment {\n\t\tif (!this.options.parent) {\n\t\t\tthrow new BindingError('There is no parent environment')\n\t\t}\n\t\treturn this.options.parent\n\t}\n\n\tpublic withExtension<S, R>(extension: Environment.Extension<S, R>, state: S): Environment {\n\t\treturn new Environment({\n\t\t\t...this.options,\n\t\t\textensions: new Map([...this.options.extensions, [extension, state] as [Environment.Extension<unknown, unknown>, unknown]]),\n\t\t})\n\t}\n\n\tpublic getExtension<S, R>(extension: Environment.Extension<S, R>): R {\n\t\tconst state = this.options.extensions.get(extension as Environment.Extension<unknown, unknown>)\n\t\treturn extension.create(state as S, this)\n\t}\n\n\tpublic merge(other: Environment): Environment {\n\t\tif (other === this) {\n\t\t\treturn this\n\t\t}\n\t\tif (!equal(this.options.node, other.options.node)) {\n\t\t\tthrow new BindingError(`Cannot merge two environments with different tree position.`)\n\t\t}\n\t\tif (this.options.parameters !== other.options.parameters) {\n\t\t\tthrow new BindingError(`Cannot merge two environments with different parameters.`)\n\t\t}\n\t\tif (this.options.dimensions !== other.options.dimensions) {\n\t\t\tthrow new BindingError(`Cannot merge two environments with different dimensions.`)\n\t\t}\n\t\tif (this.options.extensions !== other.options.extensions) {\n\t\t\t// todo: deep compare?\n\t\t\tthrow new BindingError(`Cannot merge two environments with different extensions.`)\n\t\t}\n\n\t\tif (equal(this.options.variables, other.options.variables) && this.options.parent === other.options.parent) {\n\t\t\treturn this\n\t\t}\n\t\tfor (const key in other.options.variables) {\n\t\t\tif (key in this.options.variables && !equal(this.options.variables[key], other.options.variables[key])) {\n\t\t\t\tthrow new BindingError(`Cannot merge two environments with different value of variable ${key}:\\n`\n\t\t\t\t\t+ JSON.stringify(this.options.variables[key]) + '\\n'\n\t\t\t\t\t+ JSON.stringify(other.options.variables[key]))\n\t\t\t}\n\t\t}\n\n\t\treturn new Environment({\n\t\t\t...this.options,\n\t\t\tparent: this.options.parent && other.options.parent ? this.options.parent.merge(other.options.parent) : undefined,\n\t\t\tvariables: { ...this.options.variables, ...other.options.variables },\n\t\t})\n\t}\n}\n\nnamespace Environment {\n\texport type Name = string\n\n\texport type ReactElementLike = {\n\t\ttype: any\n\t\tprops: any\n\t}\n\n\texport type Value = string | number | boolean | undefined | Filter | ReactElementLike\n\n\texport type ResolvedValue = Value\n\n\texport interface Options<Node extends AnyNode | undefined> {\n\t\tnode?: Node\n\t\tschema?: Schema\n\t\tdimensions: SelectedDimensions\n\t\tparameters: Parameters\n\t\tvariables: CustomVariables\n\t\tparent?: Environment\n\t\textensions: Map<Extension<unknown, unknown>, unknown>\n\t}\n\n\texport type SubTreeNode =\n\t\t| SubTreeEntityNode\n\t\t| SubTreeEntityListNode\n\n\texport type InnerNode =\n\t\t| EntityNode\n\t\t| EntityListNode\n\t\t| ColumnNode\n\n\texport type AnyNode =\n\t\t| SubTreeNode\n\t\t| InnerNode\n\n\texport interface SubTreeEntityNode {\n\t\ttype: 'subtree-entity'\n\t\tentity: SchemaEntity\n\t\texpectedCardinality: 'zero' | 'one' | 'zero-or-one'\n\t\tfilter: Filter\n\t}\n\n\texport interface SubTreeEntityListNode {\n\t\ttype: 'subtree-entity-list'\n\t\tentity: SchemaEntity\n\t\texpectedCardinality: 'zero-to-many' | 'zero'\n\t\tfilter: Filter\n\t}\n\n\texport interface EntityNode {\n\t\ttype: 'entity'\n\t\tentity: SchemaEntity\n\t\tfield: SchemaRelation\n\t}\n\n\texport interface EntityListNode {\n\t\ttype: 'entity-list'\n\t\tentity: SchemaEntity\n\t\tfield: SchemaRelation\n\t}\n\n\texport interface ColumnNode {\n\t\ttype: 'column'\n\t\tentity: SchemaEntity\n\t\tfield: SchemaColumn\n\t}\n\n\texport interface SelectedDimensions {\n\t\t[key: string]: string[]\n\t}\n\n\texport type Parameters = {\n\t\t[K in string]?: string | number\n\t}\n\n\texport interface CustomVariables {\n\t\t[key: string]: Value\n\t}\n\n\texport interface ValuesMapWithFactory {\n\t\t[key: string]:\n\t\t\t| ((environment: Environment) => Value)\n\t\t\t| Value\n\t}\n\n\texport type Extension<State, Result> = {\n\t\tcreate: (state: State | undefined, environment: Environment) => Result\n\t}\n\n\texport const createExtension = <S, R>(create: Extension<S, R>['create'], otherMethods?: Omit<Extension<S, R>, 'create'>): Extension<S, R> => {\n\t\treturn {\n\t\t\tcreate,\n\t\t\t...otherMethods,\n\t\t}\n\t}\n\n\t/** @deprecated */\n\texport type DeltaFactory = ValuesMapWithFactory\n}\n\nexport { Environment }\n"],"names":["Environment"],"mappings":";;AAKA,MAAM,YAA4F;A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AAQ,QAAQ;AACpG,aAAA;AAAA,IACR;AACW,eAAA,OAAO,MAAM,QAAQ,WAAW;AAC1C,UAAI,OAAO,KAAK,QAAQ,aAAa,CAAC,MAAM,KAAK,QAAQ,UAAU,GAAG,GAAG,MAAM,QAAQ,UAAU,GAAG,CAAC,GAAG;AACjG,cAAA,IAAI,aAAa,kEAAkE,GAAG;AAAA,IACzF,KAAK,UAAU,KAAK,QAAQ,UAAU,GAAG,CAAC,IAAI,OAC9C,KAAK,UAAU,MAAM,QAAQ,UAAU,GAAG,CAAC,CAAC;AAAA,MAChD;AAAA,IACD;AAEA,WAAO,IAAI,YAAY;AAAA,MACtB,GAAG,KAAK;AAAA,MACR,QAAQ,KAAK,QAAQ,UAAU,MAAM,QAAQ,SAAS,KAAK,QAAQ,OAAO,MAAM,MAAM,QAAQ,MAAM,IAAI;AAAA,MACxG,WAAW,EAAE,GAAG,KAAK,QAAQ,WAAW,GAAG,MAAM,QAAQ,UAAU;AAAA,IAAA,CACnE;AAAA,EACF;AACD;AAAA,CAEA,CAAUA,iBAAV;AAyFcA,eAAA,kBAAkB,CAAO,QAAmC,iBAAoE;AACrI,WAAA;AAAA,MACN;AAAA,MACA,GAAG;AAAA,IAAA;AAAA,EACJ;AACD,GA9FS,gBAAA,cAAA,CAAA,EAAA;"}
1
+ {"version":3,"file":"Environment.js","sources":["../../../../../packages/binding-common/src/environment/Environment.ts"],"sourcesContent":["import { BindingError } from '../BindingError'\nimport type { Filter } from '../treeParameters'\nimport equal from 'fast-deep-equal/es6/index.js'\nimport { Schema, SchemaColumn, SchemaEntity, SchemaRelation } from '../schema'\n\nclass Environment<Node extends Environment.AnyNode | undefined = Environment.AnyNode | undefined> {\n\tprivate constructor(\n\t\tprivate readonly options: Environment.Options<Node>,\n\t) {\n\t}\n\n\tpublic static create() {\n\t\treturn new Environment({\n\t\t\tdimensions: {},\n\t\t\tvariables: {},\n\t\t\tparameters: {},\n\t\t\textensions: new Map(),\n\t\t})\n\t}\n\n\tpublic getSubTree(): Environment.SubTreeNode {\n\t\tfor (let env: Environment = this; env.options.node; env = env.getParent()) {\n\t\t\tconst node = env.options.node\n\t\t\tif (node.type === 'subtree-entity' || node.type === 'subtree-entity-list') {\n\t\t\t\treturn node\n\t\t\t}\n\t\t}\n\t\tthrow new BindingError('Not in a SubTree')\n\t}\n\n\tpublic getSubTreeNode(): Node & Environment.AnyNode {\n\t\tif (!this.options.node) {\n\t\t\tthrow new BindingError()\n\t\t}\n\t\treturn this.options.node\n\t}\n\n\tpublic withSubTree<Node extends Environment.SubTreeNode>(SubTree: Node): Environment<Node> {\n\t\tconst { parent, ...options } = this.options\n\t\treturn new Environment({\n\t\t\t...options,\n\t\t\tnode: SubTree,\n\t\t})\n\t}\n\n\tpublic withSubTreeChild<Node extends Environment.InnerNode>(node: Node): Environment<Node> {\n\t\tif (!this.options.node) {\n\t\t\tthrow new BindingError(`Cannot call withSubTreeChild without previous call of withSubTree`)\n\t\t}\n\t\tif (this.options.node.entity.fields.get(node.field.name) !== node.field) {\n\t\t\tthrow new BindingError()\n\t\t}\n\t\treturn new Environment({\n\t\t\t...this.options,\n\t\t\tnode,\n\t\t\tparent: this,\n\t\t})\n\t}\n\n\n\tpublic hasVariable(key: string): boolean {\n\t\treturn key in this.options.variables\n\t}\n\n\tpublic getVariable<V extends Environment.Value = Environment.Value>(key: string): V {\n\t\tif (!(key in this.options.variables)) {\n\t\t\tthrow new BindingError(`Variable ${key} not found`)\n\t\t}\n\t\treturn this.options.variables[key] as V\n\t}\n\n\tpublic getVariableOrElse<F, V extends Environment.Value = Environment.Value>(key: string, fallback: F): V | F {\n\t\treturn (this.options.variables[key] as V) ?? fallback\n\t}\n\n\t/** @deprecated use getVariable or getParameter */\n\tpublic getValue<V extends Environment.Value = Environment.Value>(key: string): V {\n\t\tconsole.warn('Environment.getValue() is deprecated, use Environment.getVariable() or Environment.getParameter() instead.')\n\t\treturn this.getVariableOrElse(key, undefined) ?? this.getParameterOrElse(key, undefined) as V\n\t}\n\n\t/** @deprecated use getVariableOrElse or getParameterOrElse */\n\tpublic getValueOrElse<F, V extends Environment.Value = Environment.Value>(key: string, fallback: F): V | F {\n\t\tconsole.warn('Environment.getValueOrElse() is deprecated, use Environment.getVariableOrElse() or Environment.getParameterOrElse() instead.')\n\t\treturn this.getVariableOrElse(key, undefined) ?? this.getParameterOrElse(key, fallback) as any\n\t}\n\n\t/** @deprecated */\n\tpublic hasName(key: string): boolean {\n\t\tconsole.warn('Environment.hasName() is deprecated, use Environment.hasVariable() or Environment.hasParameter() instead.')\n\t\treturn key in this.options.variables || key in this.options.parameters\n\t}\n\n\tpublic withVariables(variables: Environment.ValuesMapWithFactory | undefined): Environment {\n\t\tif (variables === undefined) {\n\t\t\treturn this\n\t\t}\n\t\tconst newVariables = { ...this.options.variables }\n\t\tfor (const [newName, newValue] of Object.entries(variables)) {\n\t\t\tif (newName === 'labelMiddleware') {\n\t\t\t\tthrow new BindingError('You cannot pass labelMiddleware to withVariables method. Use withLabelMiddleware instead.')\n\t\t\t}\n\t\t\tconst resolvedValue = typeof newValue === 'function' ? newValue(this) : newValue\n\t\t\tif (resolvedValue === undefined) {\n\t\t\t\tdelete newVariables[newName]\n\t\t\t} else {\n\t\t\t\tnewVariables[newName] = resolvedValue\n\t\t\t}\n\t\t}\n\t\treturn new Environment({\n\t\t\t...this.options,\n\t\t\tvariables: newVariables,\n\t\t\tparent: this,\n\t\t})\n\t}\n\n\tpublic getAllVariables() {\n\t\treturn this.options.variables\n\t}\n\n\tpublic hasParameter(key: string): boolean {\n\t\treturn key in this.options.parameters\n\t}\n\n\tpublic getParameter<F>(key: string): string | number {\n\t\tif (!(key in this.options.parameters)) {\n\t\t\tthrow new BindingError(`Parameter ${key} not found`)\n\t\t}\n\t\treturn this.options.parameters[key] as string | number\n\t}\n\n\tpublic getParameterOrElse<F>(key: string, fallback: F): string | number | F {\n\t\treturn this.options.parameters[key] ?? fallback\n\t}\n\n\tpublic getAllParameters() {\n\t\treturn this.options.parameters\n\t}\n\n\tpublic withParameters(parameters: Environment.Parameters): Environment {\n\t\treturn new Environment({ ...this.options, parameters })\n\t}\n\n\tpublic hasDimension(dimensionName: string): boolean {\n\t\treturn dimensionName in this.options.dimensions\n\t}\n\n\tpublic getDimension<F>(dimensionName: string): string[] {\n\t\tif (!(dimensionName in this.options.dimensions)) {\n\t\t\tthrow new BindingError(`Dimension ${dimensionName} does not exist.`)\n\t\t}\n\t\treturn this.options.dimensions[dimensionName]\n\t}\n\n\tpublic getDimensionOrElse<F>(dimensionName: string, fallback: F): string[] | F {\n\t\treturn this.options.dimensions[dimensionName] ?? fallback\n\t}\n\n\tpublic getAllDimensions(): Environment.SelectedDimensions {\n\t\treturn this.options.dimensions\n\t}\n\n\tpublic withDimensions(dimensions: Environment.SelectedDimensions): Environment {\n\t\tconst newDimensions = {\n\t\t\t...this.options.dimensions,\n\t\t\t...dimensions,\n\t\t}\n\t\tif (equal(newDimensions, this.options.dimensions)) {\n\t\t\treturn this\n\t\t}\n\t\treturn new Environment({ ...this.options, dimensions: newDimensions })\n\t}\n\n\thasSchema(): boolean {\n\t\treturn this.options.schema !== undefined\n\t}\n\n\tpublic getSchema(): Schema {\n\t\tif (!this.options.schema) {\n\t\t\tthrow new BindingError('Schema is not set')\n\t\t}\n\t\treturn this.options.schema\n\t}\n\n\tpublic withSchema(schema: Schema): Environment {\n\t\treturn new Environment({ ...this.options, schema })\n\t}\n\n\tpublic getParent(): Environment {\n\t\tif (!this.options.parent) {\n\t\t\tthrow new BindingError('There is no parent environment')\n\t\t}\n\t\treturn this.options.parent\n\t}\n\n\tpublic withExtension<S, R>(extension: Environment.Extension<S, R>, state: S): Environment {\n\t\treturn new Environment({\n\t\t\t...this.options,\n\t\t\textensions: new Map([...this.options.extensions, [extension, state] as [Environment.Extension<unknown, unknown>, unknown]]),\n\t\t})\n\t}\n\n\tpublic getExtension<S, R>(extension: Environment.Extension<S, R>): R {\n\t\tconst state = this.options.extensions.get(extension as Environment.Extension<unknown, unknown>)\n\t\treturn extension.create(state as S, this)\n\t}\n\n\tpublic merge(other: Environment): Environment {\n\t\tif (other === this) {\n\t\t\treturn this\n\t\t}\n\t\tif (!equal(this.options.node, other.options.node)) {\n\t\t\tthrow new BindingError(`Cannot merge two environments with different tree position.`)\n\t\t}\n\t\tif (this.options.parameters !== other.options.parameters) {\n\t\t\tthrow new BindingError(`Cannot merge two environments with different parameters.`)\n\t\t}\n\t\tif (this.options.dimensions !== other.options.dimensions) {\n\t\t\tthrow new BindingError(`Cannot merge two environments with different dimensions.`)\n\t\t}\n\t\tif (this.options.extensions !== other.options.extensions) {\n\t\t\t// todo: deep compare?\n\t\t\tthrow new BindingError(`Cannot merge two environments with different extensions.`)\n\t\t}\n\n\t\tif (equal(this.options.variables, other.options.variables) && this.options.parent === other.options.parent) {\n\t\t\treturn this\n\t\t}\n\t\tfor (const key in other.options.variables) {\n\t\t\tif (key in this.options.variables && !equal(this.options.variables[key], other.options.variables[key])) {\n\t\t\t\tthrow new BindingError(`Cannot merge two environments with different value of variable ${key}:\\n`\n\t\t\t\t\t+ JSON.stringify(this.options.variables[key]) + '\\n'\n\t\t\t\t\t+ JSON.stringify(other.options.variables[key]))\n\t\t\t}\n\t\t}\n\n\t\treturn new Environment({\n\t\t\t...this.options,\n\t\t\tparent: this.options.parent && other.options.parent ? this.options.parent.merge(other.options.parent) : undefined,\n\t\t\tvariables: { ...this.options.variables, ...other.options.variables },\n\t\t})\n\t}\n}\n\nnamespace Environment {\n\texport type Name = string\n\n\texport type ReactElementLike = {\n\t\ttype: any\n\t\tprops: any\n\t}\n\n\texport type Value = string | number | boolean | undefined | Filter | ReactElementLike\n\n\texport type ResolvedValue = Value\n\n\texport interface Options<Node extends AnyNode | undefined> {\n\t\tnode?: Node\n\t\tschema?: Schema\n\t\tdimensions: SelectedDimensions\n\t\tparameters: Parameters\n\t\tvariables: CustomVariables\n\t\tparent?: Environment\n\t\textensions: Map<Extension<unknown, unknown>, unknown>\n\t}\n\n\texport type SubTreeNode =\n\t\t| SubTreeEntityNode\n\t\t| SubTreeEntityListNode\n\n\texport type InnerNode =\n\t\t| EntityNode\n\t\t| EntityListNode\n\t\t| ColumnNode\n\n\texport type AnyNode =\n\t\t| SubTreeNode\n\t\t| InnerNode\n\n\texport interface SubTreeEntityNode {\n\t\ttype: 'subtree-entity'\n\t\tentity: SchemaEntity\n\t\texpectedCardinality: 'zero' | 'one' | 'zero-or-one'\n\t\tfilter: Filter\n\t}\n\n\texport interface SubTreeEntityListNode {\n\t\ttype: 'subtree-entity-list'\n\t\tentity: SchemaEntity\n\t\texpectedCardinality: 'zero-to-many' | 'zero'\n\t\tfilter: Filter\n\t}\n\n\texport interface EntityNode {\n\t\ttype: 'entity'\n\t\tentity: SchemaEntity\n\t\tfield: SchemaRelation\n\t}\n\n\texport interface EntityListNode {\n\t\ttype: 'entity-list'\n\t\tentity: SchemaEntity\n\t\tfield: SchemaRelation\n\t}\n\n\texport interface ColumnNode {\n\t\ttype: 'column'\n\t\tentity: SchemaEntity\n\t\tfield: SchemaColumn\n\t}\n\n\texport interface SelectedDimensions {\n\t\t[key: string]: string[]\n\t}\n\n\texport type Parameters = {\n\t\t[K in string]?: string | number\n\t}\n\n\texport interface CustomVariables {\n\t\t[key: string]: Value\n\t}\n\n\texport interface ValuesMapWithFactory {\n\t\t[key: string]:\n\t\t\t| ((environment: Environment) => Value)\n\t\t\t| Value\n\t}\n\n\texport type Extension<State, Result> = {\n\t\tcreate: (state: State | undefined, environment: Environment) => Result\n\t}\n\n\texport const createExtension = <S, R>(create: Extension<S, R>['create'], otherMethods?: Omit<Extension<S, R>, 'create'>): Extension<S, R> => {\n\t\treturn {\n\t\t\tcreate,\n\t\t\t...otherMethods,\n\t\t}\n\t}\n\n\t/** @deprecated */\n\texport type DeltaFactory = ValuesMapWithFactory\n}\n\nexport { Environment }\n"],"names":["Environment"],"mappings":";;AAKA,MAAM,YAA4F;AAAA,EACzF,YACU,SAChB;AADgB,SAAA,UAAA;AAAA,EAElB;AAA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,MAAM,GAAG,KAAK,CAAA;KACpB;IAED,UAAiB,oBAAoB;QACpC,CAAC,GAAG,EAAE,MAAM,GACT,CAAC,CAAC,WAAW,EAAE,WAAW,KAAK,KAAK,CAAC,GACrC,KAAK,CAAA;KACR;IAED,KAAY,SAAS,CAAC,KAAK,EAAE,MAAM,IAAI;QACtC,MAAM,EAAE,CAAC,KAAK,EAAE,KAAK,GAAG,SAAS,EAAE,WAAW,EAAE,WAAW,KAAK,MAAM,CAAA;KACtE,CAAA;IAEM,MAAM,eAAe,GAAI,CAAC,EAAE,CAAC,UAAU,SAAS,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC,iBAAiB,IAAI,CAAC,SAAS,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,QAAQ,CAAC,KAAG,SAAS,CAAC,CAAC,EAAE,CAAC,CAKvI,CAAA;IAED,kBAAkB;IAClB,KAAY,YAAY,GAAG,oBAAoB,CAAA;CAC/C;AAED,OAAO,EAAE,WAAW,EAAE,CAAA"}
@@ -1 +1 @@
1
- {"fileNames":["../../../../node_modules/typescript/lib/lib.es5.d.ts","../../../../node_modules/typescript/lib/lib.es2015.d.ts","../../../../node_modules/typescript/lib/lib.es2016.d.ts","../../../../node_modules/typescript/lib/lib.es2017.d.ts","../../../../node_modules/typescript/lib/lib.es2018.d.ts","../../../../node_modules/typescript/lib/lib.es2019.d.ts","../../../../node_modules/typescript/lib/lib.es2020.d.ts","../../../../node_modules/typescript/lib/lib.es2021.d.ts","../../../../node_modules/typescript/lib/lib.es2022.d.ts","../../../../node_modules/typescript/lib/lib.es2023.d.ts","../../../../node_modules/typescript/lib/lib.esnext.d.ts","../../../../node_modules/typescript/lib/lib.dom.d.ts","../../../../node_modules/typescript/lib/lib.dom.iterable.d.ts","../../../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../../node_modules/typescript/lib/lib.es2016.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2017.date.d.ts","../../../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../../node_modules/typescript/lib/lib.es2019.array.d.ts","../../../../node_modules/typescript/lib/lib.es2019.object.d.ts","../../../../node_modules/typescript/lib/lib.es2019.string.d.ts","../../../../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../../node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../../node_modules/typescript/lib/lib.es2020.date.d.ts","../../../../node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../../node_modules/typescript/lib/lib.es2020.string.d.ts","../../../../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../../node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2020.number.d.ts","../../../../node_modules/typescript/lib/lib.es2021.promise.d.ts","../../../../node_modules/typescript/lib/lib.es2021.string.d.ts","../../../../node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../../../node_modules/typescript/lib/lib.es2021.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2022.array.d.ts","../../../../node_modules/typescript/lib/lib.es2022.error.d.ts","../../../../node_modules/typescript/lib/lib.es2022.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2022.object.d.ts","../../../../node_modules/typescript/lib/lib.es2022.sharedmemory.d.ts","../../../../node_modules/typescript/lib/lib.es2022.string.d.ts","../../../../node_modules/typescript/lib/lib.es2022.regexp.d.ts","../../../../node_modules/typescript/lib/lib.es2023.array.d.ts","../../../../node_modules/typescript/lib/lib.es2023.collection.d.ts","../../../../node_modules/typescript/lib/lib.es2023.intl.d.ts","../../../../node_modules/typescript/lib/lib.esnext.array.d.ts","../../../../node_modules/typescript/lib/lib.esnext.collection.d.ts","../../../../node_modules/typescript/lib/lib.esnext.intl.d.ts","../../../../node_modules/typescript/lib/lib.esnext.disposable.d.ts","../../../../node_modules/typescript/lib/lib.esnext.string.d.ts","../../../../node_modules/typescript/lib/lib.esnext.promise.d.ts","../../../../node_modules/typescript/lib/lib.esnext.decorators.d.ts","../../../../node_modules/typescript/lib/lib.esnext.object.d.ts","../../../../node_modules/typescript/lib/lib.esnext.regexp.d.ts","../../../../node_modules/typescript/lib/lib.esnext.iterator.d.ts","../../../../node_modules/typescript/lib/lib.decorators.d.ts","../../../../node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../../../node_modules/@types/react/global.d.ts","../../../../node_modules/csstype/index.d.ts","../../../../node_modules/@types/prop-types/index.d.ts","../../../../node_modules/@types/react/index.d.ts","../../../../node_modules/@types/react/jsx-runtime.d.ts","../../src/BindingError.ts","../../src/DataBindingExtendAborted.ts","../../src/treeParameters/primitives/Alias.ts","../../src/treeParameters/primitives/EntityId.ts","../../src/treeParameters/primitives/EntityName.ts","../../src/treeParameters/primitives/EntityRealmKey.ts","../../src/treeParameters/primitives/ExpectedEntityCount.ts","../../src/treeParameters/primitives/ExpectedQualifiedEntityMutation.ts","../../src/treeParameters/primitives/ExpectedRelationMutation.ts","../../src/treeParameters/primitives/FieldName.ts","../../../../node_modules/fast-deep-equal/es6/index.d.ts","../../src/schema/SchemaColumnType.ts","../../src/schema/SchemaEnums.ts","../../src/schema/SchemaColumn.ts","../../src/schema/SchemaRelationOrderBy.ts","../../src/schema/SchemaRelation.ts","../../src/schema/RawSchemaEntity.ts","../../src/schema/RawSchemaEnum.ts","../../src/schema/RawSchema.ts","../../src/schema/SchemaField.ts","../../src/schema/SchemaFields.ts","../../src/schema/SchemaUniqueConstraint.ts","../../src/schema/SchemaEntity.ts","../../src/schema/SchemaEntities.ts","../../src/schema/SchemaStore.ts","../../src/schema/Schema.ts","../../../graphql-builder/dist/types/nodes/GraphQlFragmentSpread.d.ts","../../../graphql-builder/dist/types/nodes/GraphQlInlineFragment.d.ts","../../../schema/dist/types/schema/value.d.ts","../../../schema/dist/types/schema/input.d.ts","../../../schema/dist/types/schema/json.d.ts","../../../schema/dist/types/schema/acl.d.ts","../../../schema/dist/types/schema/actions.d.ts","../../../schema/dist/types/schema/actionsPayload.d.ts","../../../schema/dist/types/schema/model.d.ts","../../../schema/dist/types/schema/result.d.ts","../../../schema/dist/types/schema/settings.d.ts","../../../schema/dist/types/schema/validation.d.ts","../../../schema/dist/types/schema/index.d.ts","../../../schema/dist/types/ProjectRole.d.ts","../../../schema/dist/types/index.d.ts","../../../graphql-builder/dist/types/nodes/GraphQlField.d.ts","../../../graphql-builder/dist/types/nodes/GraphQlFragment.d.ts","../../../graphql-builder/dist/types/nodes/index.d.ts","../../../graphql-builder/dist/types/GraphQlQueryPrinter.d.ts","../../../graphql-builder/dist/types/index.d.ts","../../../client/dist/types/GenerateUploadUrlMutationBuilder.d.ts","../../../graphql-client/dist/types/GraphQlClientRequestOptions.d.ts","../../../graphql-client/dist/types/GraphQlClient.d.ts","../../../graphql-client/dist/types/GraphQlClientError.d.ts","../../../graphql-client/dist/types/index.d.ts","../../../client-content/dist/types/types/Schema.d.ts","../../../client-content/dist/types/types/Input.d.ts","../../../client-content/dist/types/types/Result.d.ts","../../../client-content/dist/types/types/index.d.ts","../../../client-content/dist/types/nodes/ContentEntitySelection.d.ts","../../../client-content/dist/types/nodes/ContentOperation.d.ts","../../../client-content/dist/types/nodes/TypedEntitySelection.d.ts","../../../client-content/dist/types/nodes/index.d.ts","../../../client-content/dist/types/ContentClient.d.ts","../../../client-content/dist/types/ContentQueryBuilder.d.ts","../../../client-content/dist/types/TypedContentQueryBuilder.d.ts","../../../client-content/dist/types/utils/mutationFragments.d.ts","../../../client-content/dist/types/index.d.ts","../../../client/dist/types/index.d.ts","../../src/schema/SchemaPreprocessor.ts","../../src/schema/SchemaLoader.ts","../../src/schema/index.ts","../../src/environment/Environment.ts","../../src/consts.ts","../../src/utils/assertNever.ts","../../src/treeParameters/TreeParameterMerger.ts","../../src/markers/MarkerMerger.ts","../../../../node_modules/chevrotain/lib/chevrotain.d.ts","../../src/queryLanguage/ParserResults.ts","../../../utilities/dist/types/assert-types/assertNever.d.ts","../../../utilities/dist/types/assert-types/index.d.ts","../../../utilities/dist/types/deprecate/types.d.ts","../../../utilities/dist/types/deprecate/deprecate.d.ts","../../../utilities/dist/types/deprecate/index.d.ts","../../../utilities/dist/types/dom/dataAttribute.d.ts","../../../utilities/dist/types/dom/svgSizeProps.d.ts","../../../utilities/dist/types/dom/index.d.ts","../../../utilities/dist/types/structures/BijectiveIndexedMap.d.ts","../../../utilities/dist/types/structures/LRUCache.d.ts","../../../utilities/dist/types/structures/WeakIdCache.d.ts","../../../utilities/dist/types/structures/index.d.ts","../../../utilities/dist/types/index.d.ts","../../src/queryLanguage/CacheStore.ts","../../src/queryLanguage/QueryLanguageError.ts","../../src/queryLanguage/tokenList.ts","../../src/queryLanguage/Parser.ts","../../src/environment/VariableFieldValue.ts","../../src/environment/VariableInputTransformer.ts","../../src/queryLanguage/QueryLanguage.ts","../../src/queryLanguage/MarkerFactory.ts","../../src/queryLanguage/index.ts","../../../../node_modules/@types/js-levenshtein/index.d.ts","../../src/utils/TreeNodeUtils.ts","../../src/utils/whereToFilter.ts","../../src/environment/TreeNodeEnvironmentFactory.ts","../../src/environment/index.ts","../../src/treeParameters/primitives/Json.ts","../../src/treeParameters/primitives/FieldValue.ts","../../src/treeParameters/primitives/Filter.ts","../../src/treeParameters/primitives/Limit.ts","../../src/treeParameters/primitives/Offset.ts","../../src/treeParameters/primitives/OrderBy.ts","../../src/treeParameters/primitives/PlaceholderName.ts","../../src/treeParameters/primitives/RemovalType.ts","../../src/treeParameters/primitives/Scalar.ts","../../src/treeParameters/primitives/UniqueWhere.ts","../../src/treeParameters/primitives/SetOnCreate.ts","../../src/treeParameters/primitives/TreeRootId.ts","../../src/treeParameters/primitives/index.ts","../../src/treeParameters/helpers/wrapFilterInHasOnes.ts","../../src/treeParameters/helpers/index.ts","../../src/treeParameters/EventListenersStore.ts","../../src/types/ErrorAccessor.ts","../../src/types/Errorable.ts","../../src/types/PersistErrorOptions.ts","../../src/types/PersistSuccessOptions.ts","../../src/utils/generateEnumerabilityPreventingEntropy.ts","../../src/RuntimeId.ts","../../src/types/EntityListAccessor.ts","../../src/types/FieldAccessor.ts","../../src/types/EntityAccessor.ts","../../src/types/GetEntityByKey.ts","../../src/types/GetEntityListSubTree.ts","../../src/types/GetEntitySubTree.ts","../../src/types/BatchUpdatesOptions.ts","../../src/types/AsyncBatchUpdatesOptions.ts","../../src/types/ExtendTree.ts","../../src/types/QueryRequestResponse.ts","../../src/types/DataBindingTransactionResult.ts","../../src/types/PersistResult.ts","../../src/types/Persist.ts","../../src/types/BindingOperations.ts","../../src/types/TreeRootAccessor.ts","../../src/types/index.ts","../../src/treeParameters/Normalized.ts","../../src/treeParameters/Sugared.ts","../../src/treeParameters/defaults.ts","../../src/treeParameters/index.ts","../../src/utils/Hashing.ts","../../src/markers/PlaceholderParametersGenerator.ts","../../src/markers/PlaceholderGenerator.ts","../../src/markers/FieldMarker.ts","../../src/markers/EntityFieldPlaceholders.ts","../../src/markers/EntityFieldMarkersContainer.ts","../../src/markers/HasManyRelationMarker.ts","../../src/markers/HasOneRelationMarker.ts","../../src/markers/EntityFieldMarkers.ts","../../src/markers/EntityListSubTreeMarker.ts","../../src/markers/EntitySubTreeMarker.ts","../../src/markers/SubTreeMarkers.ts","../../src/markers/EntityFieldsWithHoistablesMarker.ts","../../src/markers/MarkerTreeRoot.ts","../../src/markers/MeaningfulMarker.ts","../../src/markers/MarkerComparator.ts","../../src/markers/index.ts","../../src/LocalizedBindingError.ts","../../src/utils/createQueryBuilder.ts","../../../../node_modules/@types/uuid/index.d.ts","../../src/index.ts","../../../../node_modules/vite/types/hmrPayload.d.ts","../../../../node_modules/vite/types/customEvent.d.ts","../../../../node_modules/vite/types/hot.d.ts","../../../../node_modules/vite/types/importGlob.d.ts","../../../../node_modules/vite/types/importMeta.d.ts","../../../../node_modules/vite/client.d.ts"],"fileIdsList":[[75,76,77],[78],[249],[245],[246],[247,248],[79],[79,80,240],[79,202,223],[79,80,90,147,223],[79,148,176,178,179,223],[79,80,148,172,223],[79,148,172,173,180],[79,80,81,147,149,150,176,178,179,181,203,219,223,240,241,242,243],[79,223,227,230,231],[79,228,232],[79,223],[79,223,229,235],[79,181,223,226,229],[79,223,226],[79,80,181,223,226,229],[79,149,150,240,241],[79,80,149,150,151,181,223,240],[79,223,235],[79,227,230,231,233,234],[79,181,223,224,225],[79,181,223],[79,223,233,234],[79,152,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239],[79,167,171,181],[79,150,151,152,174,181,223,240],[79,80,144,153,154,168,169,170,181,223],[79,151,154,170,171,173,181,223],[79,169,170,171,174,175],[79,153],[79,96,97],[79,93,95,223],[79,92],[79,80,92,93,95,99,102,104,223],[79,91,92,223],[79,102,223],[79,100,101,223],[79,93,95],[79,99,223],[79,98,105,144,145],[79,92,96,97,98,100,103,104],[79,94,223],[79,92,103],[79,91,92,93,94,95,98,99,100,101,102,103,104,105,145,146],[79,194,197,219],[79,194,219],[79,80,144,223],[79,195],[79,179,223],[79,151,194,196,197,220,221,222],[79,181,182],[79,144],[79,191],[79,82,83,84,85,86,87,88,89,182,183,184,185,186,187,188,189,190,191,192,193],[79,144,210],[79,207,208,209],[79,181,210,211,212,213,216,240],[79,144,213],[79,181,198,199,200,201,204,205,210,211,223,240],[79,181,198,199,200,201,203,206,210,211,223,240],[79,198],[79,147,198,199,206,210,223],[79,206],[79,181,204,223],[79,181,206,223],[79,200,201,215],[79,211],[79,198,214,223],[79,217],[79,198,199,200,201,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218],[79,80,147,177,181],[79,80],[79,143,147],[130,138],[120,134,138],[134,138,140],[134,138,139,140,141,142],[120,125,134],[125],[134,135],[135,136,137],[120,131],[120],[131,132,133],[120,126,130,143],[120,123],[123,124],[106,107,120],[121],[106,107,121,122],[127],[127,128,129],[118,119],[109,110],[110],[108,109,110,111,112,113,114,115,116,117],[108],[109],[155],[157],[157,158],[160,161],[156,159,162,166],[163,164,165]],"fileInfos":[{"version":"44e584d4f6444f58791784f1d530875970993129442a847597db702a073ca68c","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"9a68c0c07ae2fa71b44384a839b7b8d81662a236d4b9ac30916718f7510b1b2d","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","impliedFormat":1},{"version":"feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569","impliedFormat":1},{"version":"5514e54f17d6d74ecefedc73c504eadffdeda79c7ea205cf9febead32d45c4bc","impliedFormat":1},{"version":"27bdc30a0e32783366a5abeda841bc22757c1797de8681bbe81fbc735eeb1c10","impliedFormat":1},{"version":"abee51ebffafd50c07d76be5848a34abfe4d791b5745ef1e5648718722fab924","impliedFormat":1},{"version":"9e8ca8ed051c2697578c023d9c29d6df689a083561feba5c14aedee895853999","affectsGlobalScope":true,"impliedFormat":1},{"version":"69e65d976bf166ce4a9e6f6c18f94d2424bf116e90837ace179610dbccad9b42","affectsGlobalScope":true,"impliedFormat":1},{"version":"6920e1448680767498a0b77c6a00a8e77d14d62c3da8967b171f1ddffa3c18e4","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"45d8ccb3dfd57355eb29749919142d4321a0aa4df6acdfc54e30433d7176600a","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"93495ff27b8746f55d19fcbcdbaccc99fd95f19d057aed1bd2c0cafe1335fbf0","affectsGlobalScope":true,"impliedFormat":1},{"version":"6fc23bb8c3965964be8c597310a2878b53a0306edb71d4b5a4dfe760186bcc01","affectsGlobalScope":true,"impliedFormat":1},{"version":"ea011c76963fb15ef1cdd7ce6a6808b46322c527de2077b6cfdf23ae6f5f9ec7","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"4738f2420687fd85629c9efb470793bb753709c2379e5f85bc1815d875ceadcd","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"9fc46429fbe091ac5ad2608c657201eb68b6f1b8341bd6d670047d32ed0a88fa","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"1a94697425a99354df73d9c8291e2ecd4dddd370aed4023c2d6dee6cccb32666","affectsGlobalScope":true,"impliedFormat":1},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true,"impliedFormat":1},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true,"impliedFormat":1},{"version":"bf14a426dbbf1022d11bd08d6b8e709a2e9d246f0c6c1032f3b2edb9a902adbe","affectsGlobalScope":true,"impliedFormat":1},{"version":"e3f9fc0ec0b96a9e642f11eda09c0be83a61c7b336977f8b9fdb1e9788e925fe","affectsGlobalScope":true,"impliedFormat":1},{"version":"59fb2c069260b4ba00b5643b907ef5d5341b167e7d1dbf58dfd895658bda2867","affectsGlobalScope":true,"impliedFormat":1},{"version":"479553e3779be7d4f68e9f40cdb82d038e5ef7592010100410723ceced22a0f7","affectsGlobalScope":true,"impliedFormat":1},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true,"impliedFormat":1},{"version":"af3dd424cf267428f30ccfc376f47a2c0114546b55c44d8c0f1d57d841e28d74","affectsGlobalScope":true,"impliedFormat":1},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true,"impliedFormat":1},{"version":"d3d7b04b45033f57351c8434f60b6be1ea71a2dfec2d0a0c3c83badbb0e3e693","affectsGlobalScope":true,"impliedFormat":1},{"version":"956d27abdea9652e8368ce029bb1e0b9174e9678a273529f426df4b3d90abd60","affectsGlobalScope":true,"impliedFormat":1},{"version":"4fa6ed14e98aa80b91f61b9805c653ee82af3502dc21c9da5268d3857772ca05","affectsGlobalScope":true,"impliedFormat":1},{"version":"e6633e05da3ff36e6da2ec170d0d03ccf33de50ca4dc6f5aeecb572cedd162fb","affectsGlobalScope":true,"impliedFormat":1},{"version":"15c1c3d7b2e46e0025417ed6d5f03f419e57e6751f87925ca19dc88297053fe6","affectsGlobalScope":true,"impliedFormat":1},{"version":"8444af78980e3b20b49324f4a16ba35024fef3ee069a0eb67616ea6ca821c47a","affectsGlobalScope":true,"impliedFormat":1},{"version":"caccc56c72713969e1cfe5c3d44e5bab151544d9d2b373d7dbe5a1e4166652be","affectsGlobalScope":true,"impliedFormat":1},{"version":"3287d9d085fbd618c3971944b65b4be57859f5415f495b33a6adc994edd2f004","affectsGlobalScope":true,"impliedFormat":1},{"version":"b4b67b1a91182421f5df999988c690f14d813b9850b40acd06ed44691f6727ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"9d540251809289a05349b70ab5f4b7b99f922af66ab3c39ba56a475dcf95d5ff","affectsGlobalScope":true,"impliedFormat":1},{"version":"436aaf437562f276ec2ddbee2f2cdedac7664c1e4c1d2c36839ddd582eeb3d0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e3c06ea092138bf9fa5e874a1fdbc9d54805d074bee1de31b99a11e2fec239d","affectsGlobalScope":true,"impliedFormat":1},{"version":"0b11f3ca66aa33124202c80b70cd203219c3d4460cfc165e0707aa9ec710fc53","affectsGlobalScope":true,"impliedFormat":1},{"version":"6a3f5a0129cc80cf439ab71164334d649b47059a4f5afca90282362407d0c87f","affectsGlobalScope":true,"impliedFormat":1},{"version":"811c71eee4aa0ac5f7adf713323a5c41b0cf6c4e17367a34fbce379e12bbf0a4","affectsGlobalScope":true,"impliedFormat":1},{"version":"51ad4c928303041605b4d7ae32e0c1ee387d43a24cd6f1ebf4a2699e1076d4fa","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a6282c8827e4b9a95f4bf4f5c205673ada31b982f50572d27103df8ceb8013c","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac77cb3e8c6d3565793eb90a8373ee8033146315a3dbead3bde8db5eaf5e5ec6","affectsGlobalScope":true,"impliedFormat":1},{"version":"d4b1d2c51d058fc21ec2629fff7a76249dec2e36e12960ea056e3ef89174080f","affectsGlobalScope":true,"impliedFormat":1},{"version":"2fef54945a13095fdb9b84f705f2b5994597640c46afeb2ce78352fab4cb3279","affectsGlobalScope":true,"impliedFormat":1},{"version":"56e4ed5aab5f5920980066a9409bfaf53e6d21d3f8d020c17e4de584d29600ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"61d6a2092f48af66dbfb220e31eea8b10bc02b6932d6e529005fd2d7b3281290","affectsGlobalScope":true,"impliedFormat":1},{"version":"33358442698bb565130f52ba79bfd3d4d484ac85fe33f3cb1759c54d18201393","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"36a2e4c9a67439aca5f91bb304611d5ae6e20d420503e96c230cf8fcdc948d94","affectsGlobalScope":true,"impliedFormat":1},{"version":"8a8eb4ebffd85e589a1cc7c178e291626c359543403d58c9cd22b81fab5b1fb9","impliedFormat":1},{"version":"247a952efd811d780e5630f8cfd76f495196f5fa74f6f0fee39ac8ba4a3c9800","impliedFormat":1},{"version":"df1e7a3a604dfc0f434c4583e8103c171cd5c7684f8e841a0a2ac15fabb3bc24","affectsGlobalScope":true,"impliedFormat":1},{"version":"42c169fb8c2d42f4f668c624a9a11e719d5d07dacbebb63cbcf7ef365b0a75b3","impliedFormat":1},{"version":"785a606316887e6d5d6e1e98b2c0d98f9c1e1f2453041a9eb134988f0f34a86b","signature":"3b89cad1dbac2d3f8c27f2d91d15694b4e79b7b881f969e4714895c11875cb18"},{"version":"007e9b7dcca627e5162082a32c9ecc63e1739f67c217c74be5233e63e6020b5f","signature":"8071013baf5e634d2100b635c006e1b8fceda6a275996f267209dea86afadacd"},{"version":"7fb66def08276dd730d99cfcd672f8ff515320eaad4e2db621c298ec57d11f8a","signature":"4f375f610dc446c8059ae63382bdd9b73144e7f6d8ab6a52b9f967391f69614c"},{"version":"ce8772c81513cb7d60df8e288ea3db3874d7126012416e80207feb3123dbf014","signature":"c5fc60b33ff1e9ba39acb4798721819510a604e730954d89b2532ec25b397684"},{"version":"6bc92be2c7cce9b518dd49569e24a3a88266c16854ce37554d614f659538d8b7","signature":"0415e15a2fd767472855a4b8b49f291586bf72cc1b6cdbf1813fc89ca15c1466"},{"version":"d07d31793bf03a020e2febf220493a3c9617172bf2e5c51a34d680cdf8c77d41","signature":"ae8946800b816a805d3028773363bf9bfa9bae06d35ec510ac7ec64c7d9dc4bb"},{"version":"32d189c2888206558470408d4e4909f4bb7b1932d6643db44d812f546ccaf9d1","signature":"59104d5583b62b3bebd8e3f67f76c493c19c0ef67a54ec1bb76bdb0a38d54907"},{"version":"9d2eea979c533ca04261c7fe67b06ec9784091c1e7a21b42473f9a8eccc2ea95","signature":"fb8cfb0f79ab59f6f516099579812b0afbbeaad920ff8bcdc203d353c0f3ed7b"},{"version":"961e2fdd5950ed25bd2ac747f1fefc66d19c410fd951eb458e6a52e8f89e7722","signature":"4fc5d257b5c5ad748217f85127b478b7decaf21119a7f1c386f12bc48ac78fbd"},{"version":"7a852ad2196a8f97b7650a1054c59f2c0df029d52a455c71928723fc4a7154ac","signature":"523f4bf97ced9bea71b5e0c1907d60f4b22fc0ee194ee8dea232bbb56dc7aa43"},{"version":"d979def17dea97ee491c975f3d3cb31957b7970a791c1d5a3854ea6cd4cce91e","impliedFormat":1},{"version":"4496c0001b9b7297071150ae21b4651c73c4ecdede75db3aa9aceb5c28f64a8a","signature":"baf6ff91c2f3220a67b4e12c355635ab7a4a226238f453b2a8addafa9824ceca"},{"version":"3c92089bdb8d1c7da36389dc79954b74418cbab8c4a9bb2141bd62d89333930c","signature":"25f94b2056812c44fb7d5776394914997371576f0543657193c25d93d6bfb58c"},{"version":"88ff0296c59438e18b3ad48768226c51cdf4f3ab62283697a24dc49277af6a40","signature":"e78828390806b5c451404f43a1792dce05e890e5d23c20e4c019d0320a595232"},{"version":"4e93ebd45c694f6d3cca8cf551a9d4b3599440f76e4329c4383f45c0cacce36a","signature":"2426426230361aa9515139601137c65f8c6f81ae03d90978e3a1920b364f7c4c"},{"version":"a462bde077e37737d253976ec083a0298f576f1d103311c4d391ce090ec8e3f5","signature":"cdd800bf88b78d9969f558af6895e1e87b667af400a0da0f8a396d876a20cf42"},{"version":"e85f518d29773f545c0b8cf4b91137cc0b2912aa1dc96814a4b904aeecbf8e29","signature":"728b7bac9f044738fe4c3c6f6355f04220f0bc02e72993767e484d3024096560"},{"version":"38f07f7efd587cd411d1a21b502303599a5677a0988ec9b73e2d96db53570c9d","signature":"f203f19c867e8cd7ef537ef57f37d1700b3d736537d0cc0d9590e1fa6d1e2bb2"},{"version":"9b3fadb2fe21ee900958f085491ab8e3353d4ca05aefa170422636c100d85889","signature":"5308dc6569f2ae3d964b01e7ab1ab7861c893f561c0ba79fc73efcc2746f94f3"},{"version":"3e92f0bbbbbf229f902354159fde7eadddf2ce3bef3353c94d924d0e1e75eab0","signature":"53dfa882ad9d481969edf721ad032e6d1dc71d8afa6a8fab401788845af6fa65"},{"version":"1083a63b89c6bc0d9f8a473e097698e3f1023074b144aee88fd8720d7bcfc5d4","signature":"df4e4a809b147b76b5362e3a2177f1633e14873f41a983e5a2fefd129c2ae119"},{"version":"f0dbe7427976a4d5e8e08ae3e5d5f4c0bc72f049404075d306ba9566d34ec8d9","signature":"bcbb5574d92bbb6e57d485740c1cddb26211cf8a7703174628eb4854abf1f4d7"},{"version":"163e9953c64a6c08e3aaf05881aeaaa25b58dff1cb15c52b56832398889bd3d6","signature":"882400098e7eef335e01abafbb2d0003fffa4ce1e02c62ef6f173fe2bfeab65a"},{"version":"88a07cd4c01dd39f5933fb91553a7cced90c136469a38d9ff54929efce6eeaf1","signature":"47e62cf6cfd81a9e11bc04c472203dcf1bfb2a6676f152f2d67ff538bceb93fb"},{"version":"f5a04e48380a22441638e95943c1c36280cc1673fab208e7135240152f28be36","signature":"6c9d2b64785264d6e91587223c61db55713d519b16dd76113d8b08f42d8aac61"},{"version":"5fc5016de79df57d0e60bd5831a4cf4552e50653f5dc3e8ec313621e7bbf6bde","signature":"556be16b388ad51c8491d66ae5a27ae854cc3d4c036def9109dddf0e3bc97e50"},"34e5c5b2be8aa1b3f75ccd21529ae8b9163f510dbdabae4caae3fec3010cc33b","45fb3525f5c652416e54f91bd8378464d41e22b0ccc108de7db918cf8e92ffd3","3ae62be455efcb1874e7fd1f30f2bb83144757d2f349ceb0c6523bb9f7f7a860","8e86b98b3e0df46d3f83c303661824d1965ddd63e674fc0b6849f7869f5b86f0","b1296831e111197bd9ebd73f0d15ad0fe2e11fcc51a6302edb23ffd93794db36","5610e8177b34fa50394973f3faba06fd5268b1264a2f4f7daaa71fee1194a94d","ec0b1ad8de385d526b4e16c7ab8da4b84c1fb15a680d4c82b0e0b5f70e9f80c5","462c0b72a4911d6356ebbfed5dedd9682edf2bd60bcf6ea025539f1cd8c64bf4","5c3f0890ecc492ada4fa62824b8db132adbf9757e918cdc7421a586474b7cb16","f42116e2e8ad600dc90bdf8ceade9dcf593c35812d8aaba9c03a3f1dbb87330e","0f9bf85206211db137cc12ffeb6c442d5d05a7686859860204f148618832a3cb","dff2fee737ebe5174f549c9f28e114c0cabac4b5fe4e364654465ba528979ba4","ad1f130d5fb49665e218d5366db67ead55593335a2c02733ae5f8466a99def53","466df547af9cf3861658b08baf3ecbd41c0eaad2101378fadfa54ab24db103e6","92404f0f42ffd8d939cf6fb1a911235e931981f94dcab0e85f9ae5faf876ea3c","e2402a646d4471b0985495b6bfca6c9c731d335195bf206e8c982d8ca362692f","08d34fcbf615950f6d3dd6858437159f0c0af08d5af645ec415ebfeaeacf3bd0","13ce162c8088b92a985e41a2ddf61cbb191101c280214a74dd9e8d2fd3c9c905","d2689735d2498972d6f02fbaff989b1fa500b5a140af7e7c08a15fbc36c1d3d3","4b47e095287cc1351b5fa9c5112d1d2d255bd8916ce76347225837b244e97ed5","a73c550517e6e3e8c89f5e7283c576e828723ca6d8765351e04fa80d139e6ba0","063a16a89e56dc3a27c4c353ff81f80e4a5074817db8f8989f6d4553df2f3850","8ef2193f6663c97e78c2a1b304b315620665bde3d5ec88cb9e6cdebbeab88291","4d023a0827a63ad5e6b498f92830d79e40e6fd487ed6b7c6fc2528eb9b3c0937","e17fbde86ef68adc663fff12c63cce11175482b3f108afd90fa3c11754afe6c6","af8e795fed72274bbd8d655d04588bbd88871dbd603dff6461362cb5207d2284","33491243e9e60504ee3d733817b089c90d639dc3f1238a3d6417083e9dd5b683","f289c5204b0819632486cefeec845a20a7a9c769180fb6bede63b0d7f24839d2","feaceef383869ce3addd7d620c89fa6ff1d5753f7b451cffb1e926998df2b5e4","4f4d0e8aeb309bbb646dd57615ca9375fa2821df08120fe318124647d91de80a","06c1e22ce1921cfd383c800f9e191972c5dfaca8996cca54d85c4b4cb41db49d","0b42a31c12bc794fe3b4efafc5af85e9bd2d094f086157dfdc98ea4f0a13016a","6c7327831239ec38e57c18eb15c5b191aa258ada0528de8dc93092efcba20896","3c4de8d194c64b484827151ff14582884166268c345cbb13f9c19e4be3912f54","62ca877d3c090576b3ca1cd3e576c931eaedefc3af1b5ef405e41fd22c8b2955","5e8c7ad4619cc15007aa5bc3f4e1a30cb01540c14beaa609fb8d17d21acaceba","016e695348eb662b9adead21973e3da689bbff9c65811491644e2ed594fca800","1702404293385fb18761a3cf716b3c2888c6fa95d3ef96bc8e4e8f5a6e679689","8ed57aaf9593ac2424ef286cd48dadfe4867523dad64689d550d15df72c80a0a",{"version":"28ba36e722743e2fb731c2cc0e793067f33812687bb2777f8112d1c492d1b872","signature":"4795f48243e3f12a19561c8c5296e7f2892bc3fcbec77e90f811c836042d1ed8"},{"version":"fcc20e443b765f8a329b83cef775f799d3852ffa5dafba9fa2cf1202dc38c72a","signature":"9c019ccda878d72c06b62d95c74b38134a7089c9f5e4e02f9955f26a0fc86c6e"},{"version":"96ca7fae902bf9a0b6040dd88eb83ec917a3f07b2e427ba7701c446f11ee6dbc","signature":"a8041f2147221598f9fc3c07271cc863420534bd17897e259b1a274cf0c17c37"},{"version":"74dd0a2df203765e81a1157cb1aa2594c1552ea9f48a2ed8780b5d41a114dad9","signature":"3d882826c2565ed06ed356336468bed703202f9733ff1ac7101180e79c94c04c"},{"version":"e030324cb97c6a3727a740a1ac23ddcd3299bfd65e1c95746814c54fe4e59014","signature":"80cdef588a8ce69225209e217152117f9ceadb4a4777dbf8669ff2777fe9b454"},{"version":"b5c8957cab537964395ca922890816b52a18ef5737740f7969062a79015b5fa5","signature":"a95c25e1f9146dd90f7cb36c7e306a25a67bdef1eaae7319a60d2f9d3ff66804"},{"version":"c355683f720e250dd48ff8791594e6c8dbfdc342161292aa77ae80371c499624","signature":"2e82e0799bb145051965f68b2c5b7c5cb5472d90b6b11dfd919c52b989910ff9"},{"version":"866b6fd877ee85ca8bb15e31dfdde5c8031c5d1bdc13f0dc8d271702b583237c","signature":"5c8a6edd8cdb2e624a415c3563ca45872f0aa0d96586595bcda36b4dce797fe0"},{"version":"8d9f9b0d58822eb76d0b355bfecfa4d8e2e2609a2ea4abd92f9e7fa04e1fdfea","impliedFormat":1},{"version":"54a95303cf332ef0bbef1c79f35da5e4e3dbdd818dc00de63f92b638d2af0e78","signature":"bbc9edde5980e807d9966750fbe36f05b739d3f7a1e53ab9d850ed937b86c07c"},"a95c25e1f9146dd90f7cb36c7e306a25a67bdef1eaae7319a60d2f9d3ff66804","3436aa850e6d85c1ca81028e1ac6a9ba3ca0cbc27efe797fe99aea0a99a49881","624e76b41eb76400df5e0cbacc5f7091e6bd0518e0f9f4ac4a047794b2c189f9","f14113b17b6a1863dd58e49e0bc504f21d51da969bc1fc4af1a07b3684f0de25","1762533296e00297d454534bdb27ddae5f6b69fef679295094cb0afb4e9a526a","1c84b348bb07619f2123fddd01c20184c6212540909bd98fdc450f7d4e234717","dfe644b96a0786c3ed103bffe7331349022c647802d40030067cf71c9ce79bb5","893bdae1d9648d1f4da2ddad5647a63282aef8d30df09eacb14fdb68e2349a1d","0a52d67559b7ef5541d532dc78fbbfb69d028a4adf1c3501424e355e53e66257","fed47bc1ca2d6c672b7ce3be63f206bd0ad5e67c18c2650eb9d79d842e9d208a","cd7e9d427302a244cce2881eceae5fbaccf62a7a6064f161a699fe39bad1d998","fb6bb88e6e41f878eaf58a6c141e0379f208f85f6f922512b3b25efffe70380b","e31346a3e386e227daee4cd99ac59dc7bd0e324541ea401bdf8b623a7e20bf56",{"version":"69d7713ce3de8a3aaedb45ec25406c71115233a7b12aa30c71037cef7333828a","signature":"ea8482cc20ebe4d4ef1156f713e5ed60f83b99e310d7edb6651c043db14cd8a6"},{"version":"b7d1474d2fc1a885ad2e4e7ace89452dd79cf85e6c135ab20fe1dcc20ca5017c","signature":"b6890f830e835c28b15a1d17004db17f6a592ee9f56b8aba95e94927203950f0"},{"version":"09c2d7427703207fdb60e046f34236cdf16e02baf28130d98071fc7aab9321c9","signature":"4530bbafa939be7beaf0b51c33aaf1dc82e5d4f1cc2512103939b45415b6899a"},{"version":"a6da670d0d83945c62fca819844785c286248d8459f8636dca0d3ed0e117659d","signature":"7d45c7409c354acf67517ef46e3e42bf5599f69dd20e2c27b1897696b303e9c2"},{"version":"50a70666d8d659c57dc769ac7118b07a5f3b8fafb3ca30a07a4f63dd01e1b7e6","signature":"bb2685d458f95d2fdff3eaf45aec789effef9086a474f8a94e337372813b7879"},{"version":"61f274376f6e202130a66cc03fe1158f8e74e6913aafce01bc04b68bf0025b63","signature":"8bbb10dc113bd3ca30bceccd7b514a6d49ac6fd4aa58fc1d1ec1dd0d22874e18"},{"version":"faa31890d240cf4ce9c7d04894a626de038c7637e5fbabec9a672274b6846723","signature":"14d24d75d8c944b4e4de0afe58dc6cd8172ef37f6195af7574618956d39b1f49"},{"version":"055c81ba3e0387ecb6ad2f04701ad823940b3bd527e025af2e9af0d773b33301","signature":"8753944b63f6c310afaa9d07879704b35455d45494d4fa1356e0c0e22f8f180c"},{"version":"5196698722162d043a623a07e22d608c91c064f7cdee0653c23dd85f683befa1","signature":"c7136145a5e2d6bbfe4e2b92c0f1b3d2e687c2609c19bea0e11c0aab7534de01"},{"version":"a8d630427635fa316e57fa4949132acde9cf23aa067220bffea30612497824cc","impliedFormat":1},{"version":"1d0337c4bcafa62e9affdf99b674f2f380edb4c44c6f0fbc4bcc85ec09b2f4e0","signature":"07606808f139cdf0b92313b56644505bfd853e73da7dbd6a28d0110bf9395437"},{"version":"2ee0310d55c9c059f961bb328b971dfbd36aba9d77777952f640ec60738e4ac6","signature":"04b98d2fbf095999a1fb17d211da5ffce679f822199742bb73f90a34a3ec5998"},{"version":"5cdc5ca8e3b24a11767808daeb5db01b86e74ab6ed35e61f30b4c5196089840f","signature":"fcc7872b6032588c50c585e897ceb7e0002185fdc24276e672320ad08b67b984"},{"version":"3c261ad3eb75a746c5ef2c17304d622e28dcb7f423be0dc5104d080003980a20","signature":"5514f9d40d706531e48ed966234d02fbb53957c850fa45425d4200e620bd5960"},{"version":"e57b0cf4b708b64f9e7fdb6a24157c118de976fc148f8e220fe606c7ff19a706","signature":"ad6fccef98f7c1922c97d493012a7de1120ff90d291a9867c4d7529771e44f05"},{"version":"c73012a67ae127abe42100bb3b714a960f74fc9141aab2996e9a427813c93458","signature":"bd6b7f4bd62af5eca5876f74c9b1830b5380ca719c2261a0149ea385f8de416f"},{"version":"36870dd1ccb8343b71dcf9278837e8cf38dd0eaf530893ccf5841492f94ddf33","signature":"38dd234d61d9863a4f6e3ffd19c50a02cc3ccd742a7783826a47cbb04fce4de8"},{"version":"d4bd52ac8ef16096dac69d163cf3107f18f3062cfa0b531c5723e24793c40ef1","signature":"3350f2a0fbc92917e62068fc5a5df0e76990b69695c79299753cf92bf8b76984"},{"version":"f32cec95813f9ad02c546ab193d043583794ca7d5fd58a2b784db796b30fb901","signature":"692068a2fdfd2f62138b54bd5f854a0451f19c53697096c4a1644506712283f6"},{"version":"7f064e3ba47d4cbe23395783c9bbd12c3ea3bb94cf21fcfb054dff1609a2f7ee","signature":"9a9a41e807a60d89317a7be6fe7c6ac96eb5bb32c530b543bd4618badb65a8ec"},{"version":"864288ed5efa3d01a002c526474aabd0744f494c70661e60d649ae73dc3eda67","signature":"c12ab6b360266f86e606a50ef28bed97c0c13acb8a9c7be4c37dda67f46a938f"},{"version":"6d8ad15627d86390db914948ddaf1ad6387bd689a1b35efaa0e124873d48b01a","signature":"82012981d19b1d4d8af74a45b1cccde2f47a23dddb5d45b1a32eb74b279c741b"},{"version":"a84f4a9740d6da0c4371bf80d6d4e95b514897bd1e0dbad20098c1eb7a203c62","signature":"f2efbaaf976486e7b7d4dc715fc96d23875fd3527ab6d3ae3f392642cc012ba3"},{"version":"3cc0c920bef72f9a843a01e32917eb44315be8312a2ba25f8f4825f87066d9bc","signature":"39378d141f8c339cf85cc59fe81834ab9021de01c6424e70a11052e94daa58e7"},{"version":"c8b4c8decf022520f7a3e71727563387218afbef391372773ea78fb2ca4d6157","signature":"661365dddb8fd571f6b73346cc879381c131f826f85217c216a142b25aa05620"},{"version":"82e586f2155abae299784a683a632517e6af1aaa741bb0b3db7c28f873b479cf","signature":"f51cc25c36f059fb909bd32e35402a16a3538d9d04956fe86a63aac92ada567a"},{"version":"45a93205e36f6b3595dd864d914ca883a9d37fbda13f1330d38b1a41f90e9305","signature":"74ecd3132a5eccc98a96254fd9a673ae0577493bb89e68e8dcb4a4587dcd27b4"},{"version":"36d27b9c35d428dd06cb0dacbbf60e61beb460062c46d7493d6d4323e56a53ea","signature":"c5588f5af1a79fdb751f2f4952e4d5382debc0673b965a41de3dfae378b856df"},{"version":"a18bbbfbf6aea41d65d7fa9e205d83ed70f1168686ec025d6a88c69103f85c74","signature":"a6fe4b83212a3c05e0995d32ab46ada7ddee3ad705d862156d033e71a8a7de16"},{"version":"033b86fb1026cc2b740ca02aa3dcc7e4749837e88e94b76b58d1df54d66dc711","signature":"68ed88262c1144732c0347a3b73756ee8e7a14129f643927c7d7475f74b2dbf8"},{"version":"7257c94aab3daf942fbee9e11e869fa5c2363fd3d9ffebf0996ed780efa7c5cb","signature":"83d47ad39f96f384c4ea7695abc0f002015cf8f535a767a6848d6445a9f2adec"},{"version":"69da2092769b35daff52a6009d933afb2e66ef6b51cf2b76b79ad32770be05bb","signature":"9fa8a1c9549e040154187bd3e1b431e38498a6940ebe334d2b27e525fb9b02b3"},{"version":"105aeda0c35d28d675f90a43f970d9097c25fcfc9e382cdebafff1207f01a3cc","signature":"6cbdc375ec2e18765abe5d748141506b29340f4e4ff0e5ce2e37af9d9355baba"},{"version":"f6d479d37f12f72cae19d68ff8a64741d0a441d8660ec5484bc5da7e497d1f47","signature":"81c490a9e2f1bdbfe4b2ea2260a4f00a766dc7bd0b7bf7c89a03af9f452d8474"},{"version":"1f9ae81e86fca2125704699bc532ebc83e1fdd073be560c034800d6bf22b5e5c","signature":"86c657932f52ab103b37ced85ed22f7101852becaee053e5f764abe53c8dec83"},{"version":"a17161cc083cbef91b6f15ffbb6f26a431e62977c354bed53f6aaf78138a6357","signature":"c179b2e68cbe73ad639f20e67246bce84c35dbe4d23ac7cc967449b9f2b3d7fe"},{"version":"f2695898a00639522b8212bf23db52891f9c1f976785460d88ba1590c04ae4cd","signature":"b6d1d9c10162900de546c1a9643aa3a2a299e046d19c065d3f4d69991288b913"},{"version":"071a954dfe682a7804c363eb4d947562a22a0210f4407db98cfdeda6a7821add","signature":"657589753139fae790243de79f0049961d6a604b6f306ff257b6f1c7419504e9"},{"version":"a3d214bc4ed90c4affc361d9fb40084025e7124a53ebda232ab5f76e062ad56f","signature":"cb1c1d9343793cffcc2b21c4fc801015f0bc5bc80257b4d3793581f4d297fb9f"},{"version":"a43917394061fb9d5e07af971ca156fe186468af0481240a7b51cf7d4aed4346","signature":"801bbab7056e29582d0ab806481e8a8baeaac7a47bdf656f9d0560527cdce258"},{"version":"ad69dfa12a05b225c6aa630df3746ac0edc2e9b88cd727cc9832976fcbb1c800","signature":"2a82bec8d92c0c9e13f8507bbacebe5428ae0fce3a48b9634bce6cf942c0bb0d"},{"version":"f3c687f88773d104ce170416019bea5ff6e58656939218fbc77c000620ccc336","signature":"21f46169942246675c1e557283af4fb89163737ab7a2737cfeaa0bf46c2c8237"},{"version":"bb16f160ca0512d42320b3aa54595d3919efb74a6f472e2e2a543e378175587e","signature":"d687400beacbb0138a153625aebb6cc061e5335b50a6206b33b7fd71e0c50f88"},{"version":"12c70c6adf62bc1883625255f9a9525eac532651b746173630de371713b207c4","signature":"978700cc62125b4c10be8db21e7cfb4d3fb9102f07679d390bf68252cb94f9b2"},{"version":"30889215a16e4b5194d007dc6b47711089939cd864d8e51799fc551de5c768ad","signature":"1d41678749d09eb543d3aead40fa42e4f6e730cc22903ce9d01a3ecb41e82633"},{"version":"d71a34ac539f18811b4dcde369a7810acff9d202d0f6f81d63f7136fe03966dc","signature":"310c07f5eba9c620968a4b9c90c73108fc4c11600c5b316c54b2be56e81940a5"},{"version":"c12d9e0097ebcd5137b3447c38adf8e0401089867106b7cd411c84cfb50eb816","signature":"1d8d46bd430df012b16b4e048d6a18d8a1862736d2d5b763e42a43f3a15eaf9f"},{"version":"c921dc1e77b39dc790540454b3ceef95951dbb63253e6472c28ce8077995ad24","signature":"6852ed190c8ab742071a493aff7c8c13725457c37241e95351db194756d2ee44"},{"version":"1e446181d3ea2fa1e8f36534fae560d94a1fa1107c4f32a61c259fae801f0c7d","signature":"a60d6dc03894482436b67e811b14627c350abb79bb3bde92aa8dc676744f5f63"},{"version":"5ef89eccc4cebda64fe817cdd302c8b915cc5d8ed08704d5baf436e23b93e4ce","signature":"291339b78580b8e3713d4f9aae3c43accd72f76d722c1f218db0cf4610dd5c56"},{"version":"82ea3d1eb14252dbb07828739949119aa53374757e7cb0addddab193ef6f3bc3","signature":"7f6335a6cd33fb4250b9fbc8533fb61bfd4265a7dcc05d28d6b8f8fcf5b9855c"},{"version":"da2dc186d666e070d4a0ece334dde3d0eb6fe09860e03f0bf46b732cf4f24961","signature":"7880216f3a2a0d364aa7ad959b0044c1db783403957fdb518c82d74e8bc612fa"},{"version":"71b706c7681f3878612b0166463568f70fa481aa07455c4e17d7aeb5b156e3aa","signature":"b06ac1e63dfcc9f02259165d754bc449ff11506bd30754356873f5b1268cdbe4"},{"version":"f85de9c7b0502d317387cdcbea37d46c36b44714e548e38c496b53819e745d3e","signature":"4648722f51e6e8a33977faa24b400a597c60cd51f8b9290063d3d47835d45680"},{"version":"152e0e1ada90c721922049da640817879b982bde9c9383104674e8da1802bbae","signature":"ec7e115f7840b3e06a9e84b2a0fd96817d951cdc9af213f09d6c5dd5ff7a4b71"},{"version":"b80fd7b3c7d7c4b698358a6a16bede4385c16af1b9e63b93b442b54da08885c5","signature":"0baa07d0844ce4b8ffdd6a64e19f60ad382f2a9683aec9cc51a1ddf32207286e"},{"version":"94b30200319f6bc560256262388378002e04f857537f2b4e20a6946f9bb5004a","signature":"7ec274932ce8decc3265833519e9bbde06122770b8ddb4cfbfd7f0db04000832"},{"version":"7986436e799bf98c452a02fe8e8fe3111325799f9840d4ace59958bec1efde46","signature":"b8cac2c16342775cd57d9f08143e7dfc585bdb0e8c2b714ce3db860282847d24"},{"version":"f5066813f9ad2146c3a98a6e74dd522f3564fb8e9e2110daec520d8ad0f16271","signature":"b52aa2e0ed6144d386d518123489821ca5c75504704ed816160c0e0b33143034"},{"version":"2438b496659babaf642c12b67bba38d52d5c0fab243df2dedc27081069a01251","signature":"d633069c5a26f29d06890aa40935bae0235bec8acd6ba4ef0fd04c9487f4291d"},{"version":"fbaa840a4a0e5c3b3aee86a11cf026b99e18ab1aeaf4e1227f46cbd5f2f828c3","signature":"5fc220c4b02dc64bfc3883296e6a56a305930d769754e0f57b4061270c862f60"},{"version":"9d7fa46c7c284782aecf5ec1f75b4e4eb0c9ea2e7e579afd07fc639f52672efc","signature":"d0dc311661a7af65c96071e8e544e9af58526b3890fdce8dc9a68b6a0535899f"},{"version":"71ddff355e0ce727fefca7e45bff074ad956bab7659b1f5e9957025208a1ce2b","signature":"c084b437ac1da0ded4157d7cabcbda15efed7a4140e120cadb8e3d60d6606d97"},{"version":"6f480ca2c4d844871a90a7e337da72661e036751a97c22d45dfd87284c457290","signature":"82ac1305f15ac871fdc1ea62fbf0fa682845ac999ce20eac278f14fd889b3c40"},{"version":"c799b2ed03a24a4a7c59592d4c3a8fe38025cf4d4842678d2db429bd17f0947b","signature":"9b3e2b9b29dfaeecd4ca0b82f2916e18ee9fb497c68d531fd7778cc445de3541"},{"version":"efd9f7aeba137c0a286d5e68dbfb8a6d4b97772852bdd7dc858c881a80512d52","signature":"87cbaff27514f99c7e51b79632783dbf79913e492dc9a3dee608fc1a04f0044a"},{"version":"6b1ba7ab1576d5caa535bb99034794ec68e4c2e141b088838aa1a98e97635599","signature":"63e17799d3f8f9abaffe17efdc52dd13e460aa961dde160fdbf66e083fe44bf6"},{"version":"aac08f566d0e362d4c18bebe92383e475c28c130ad62c15d5fc98ad28efb6146","signature":"b0d18e18b4ae7d4fd2ff2b740ef5871da547181d639738005148f4cf8bb1913c"},{"version":"180c7f2fb8004f10563b2ed51bb913632e8579d87b07b9b71b829dc301757d7b","signature":"a90443082cf87a9a5f8479bc824f88bd5a1b8ca702952d8726dcf159ac265226"},{"version":"c8f0467b3c604521c699ebb894be357aec2a3ffdd8aca56f92659076f688213a","signature":"71f8464e638628c9a2456dc55815fdc89cca4526d3ed0cdbfe76c4d17ac9deb9"},{"version":"64951bcb6d3af877bdd45731ed55230c2383b08c61e364ffad7a84930ddd4bbd","signature":"088a8626cc6be46835e464981878f3e8145aa034be1705d39602778f34bf11e9"},{"version":"40cc03b58d3f20712fc0336b7ce384f6f3fec7477d470aba08203e016b29cd9f","signature":"e74c5155662dea1a1a20b7b77803d308508e4d146ca591e22df9eaabd515b8bc"},{"version":"e52e272191c6137aa633ee570fdc8af5a2c97c0b9fbb0530a35baebdd210e243","signature":"68383a05d0e8b02ff1cd4fb8f5e6509b0f783b7c17944789e90fdf24d068574d"},{"version":"619e7e978228b6b974b3e927d4e8e5ad06ee35de2102c001444d17fc4a7521f4","signature":"3f20fb238766dbba64da0ece03c323fa2dacc69c81b2b6655c7415bd1d6b2f16"},{"version":"34f6143ff4deea59838558f18e46b7ea812d7619da0a75564a5c56602e545198","signature":"8fd5393cde0e4674a43debed6b0816b468b5f7d7016c02e431898f02019a6725"},{"version":"f874ea4d0091b0a44362a5f74d26caab2e66dec306c2bf7e8965f5106e784c3b","impliedFormat":1},{"version":"b66b05e5080eab9db8b4de304ca98ad2c571634805913447c697c949f54272a0","signature":"c8b4573375c024fc9735f73081ac5557cd7d667ace932079c4496182fd6c8396"},{"version":"282f98006ed7fa9bb2cd9bdbe2524595cfc4bcd58a0bb3232e4519f2138df811","impliedFormat":1},{"version":"6222e987b58abfe92597e1273ad7233626285bc2d78409d4a7b113d81a83496b","impliedFormat":1},{"version":"cbe726263ae9a7bf32352380f7e8ab66ee25b3457137e316929269c19e18a2be","impliedFormat":1},{"version":"7f698624bbbb060ece7c0e51b7236520ebada74b747d7523c7df376453ed6fea","impliedFormat":1},{"version":"4025a454b1ca489b179ee8c684bdd70ff8c1967e382076ade53e7e4653e1daec","affectsGlobalScope":true,"impliedFormat":1},{"version":"984c09345059b76fc4221c2c54e53511f4c27a0794dfd6e9f81dc60f0b564e05","affectsGlobalScope":true,"impliedFormat":99}],"root":[[80,89],[91,105],[145,152],154,[168,176],[178,242],244],"options":{"allowSyntheticDefaultImports":true,"composite":true,"declaration":true,"declarationMap":true,"emitDeclarationOnly":true,"esModuleInterop":true,"experimentalDecorators":true,"jsx":4,"module":99,"noEmitOnError":true,"noImplicitOverride":true,"outDir":"./","skipLibCheck":true,"sourceMap":true,"strict":true,"target":7,"useDefineForClassFields":true},"referencedMap":[[78,1],[79,2],[250,3],[246,4],[247,5],[249,6],[80,7],[81,7],[241,8],[203,9],[149,7],[148,10],[180,11],[172,7],[173,12],[181,13],[244,14],[232,15],[229,16],[228,17],[236,18],[233,19],[234,19],[227,20],[230,21],[231,19],[239,22],[152,23],[237,24],[238,25],[226,26],[225,27],[235,28],[240,29],[168,30],[175,31],[171,32],[154,17],[174,33],[169,7],[176,34],[170,35],[98,36],[96,37],[97,38],[105,39],[93,40],[91,7],[103,41],[102,42],[92,7],[99,43],[100,44],[146,45],[145,46],[95,47],[94,7],[104,48],[101,17],[147,49],[197,7],[220,50],[221,51],[151,52],[222,7],[196,53],[195,54],[223,55],[82,7],[83,7],[84,7],[85,7],[86,7],[87,7],[88,7],[89,7],[183,56],[184,57],[182,7],[185,7],[186,7],[187,57],[188,7],[189,7],[190,7],[192,58],[193,7],[191,57],[194,59],[211,60],[210,61],[217,62],[214,63],[206,64],[204,65],[198,57],[199,66],[212,27],[205,67],[207,68],[208,69],[209,70],[216,71],[200,72],[215,73],[201,72],[213,17],[218,74],[219,75],[224,7],[178,76],[150,77],[242,78],[202,7],[179,57],[139,79],[140,80],[141,81],[143,82],[135,83],[136,84],[137,85],[138,86],[132,87],[133,88],[131,88],[134,89],[142,84],[126,84],[144,90],[124,91],[125,92],[121,93],[122,94],[107,94],[123,95],[128,96],[130,97],[120,98],[111,99],[112,100],[113,99],[118,101],[109,102],[114,103],[115,102],[117,100],[156,104],[158,105],[159,106],[162,107],[167,108],[166,109]],"latestChangedDtsFile":"./index.d.ts","version":"5.6.3"}
1
+ {"fileNames":["../../../../node_modules/typescript/lib/lib.es5.d.ts","../../../../node_modules/typescript/lib/lib.es2015.d.ts","../../../../node_modules/typescript/lib/lib.es2016.d.ts","../../../../node_modules/typescript/lib/lib.es2017.d.ts","../../../../node_modules/typescript/lib/lib.es2018.d.ts","../../../../node_modules/typescript/lib/lib.es2019.d.ts","../../../../node_modules/typescript/lib/lib.es2020.d.ts","../../../../node_modules/typescript/lib/lib.es2021.d.ts","../../../../node_modules/typescript/lib/lib.es2022.d.ts","../../../../node_modules/typescript/lib/lib.es2023.d.ts","../../../../node_modules/typescript/lib/lib.esnext.d.ts","../../../../node_modules/typescript/lib/lib.dom.d.ts","../../../../node_modules/typescript/lib/lib.dom.iterable.d.ts","../../../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../../node_modules/typescript/lib/lib.es2016.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2017.date.d.ts","../../../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../../node_modules/typescript/lib/lib.es2019.array.d.ts","../../../../node_modules/typescript/lib/lib.es2019.object.d.ts","../../../../node_modules/typescript/lib/lib.es2019.string.d.ts","../../../../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../../node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../../node_modules/typescript/lib/lib.es2020.date.d.ts","../../../../node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../../node_modules/typescript/lib/lib.es2020.string.d.ts","../../../../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../../node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2020.number.d.ts","../../../../node_modules/typescript/lib/lib.es2021.promise.d.ts","../../../../node_modules/typescript/lib/lib.es2021.string.d.ts","../../../../node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../../../node_modules/typescript/lib/lib.es2021.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2022.array.d.ts","../../../../node_modules/typescript/lib/lib.es2022.error.d.ts","../../../../node_modules/typescript/lib/lib.es2022.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2022.object.d.ts","../../../../node_modules/typescript/lib/lib.es2022.sharedmemory.d.ts","../../../../node_modules/typescript/lib/lib.es2022.string.d.ts","../../../../node_modules/typescript/lib/lib.es2022.regexp.d.ts","../../../../node_modules/typescript/lib/lib.es2023.array.d.ts","../../../../node_modules/typescript/lib/lib.es2023.collection.d.ts","../../../../node_modules/typescript/lib/lib.es2023.intl.d.ts","../../../../node_modules/typescript/lib/lib.esnext.array.d.ts","../../../../node_modules/typescript/lib/lib.esnext.collection.d.ts","../../../../node_modules/typescript/lib/lib.esnext.intl.d.ts","../../../../node_modules/typescript/lib/lib.esnext.disposable.d.ts","../../../../node_modules/typescript/lib/lib.esnext.string.d.ts","../../../../node_modules/typescript/lib/lib.esnext.promise.d.ts","../../../../node_modules/typescript/lib/lib.esnext.decorators.d.ts","../../../../node_modules/typescript/lib/lib.esnext.object.d.ts","../../../../node_modules/typescript/lib/lib.esnext.regexp.d.ts","../../../../node_modules/typescript/lib/lib.esnext.iterator.d.ts","../../../../node_modules/typescript/lib/lib.decorators.d.ts","../../../../node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../../../node_modules/@types/react/global.d.ts","../../../../node_modules/csstype/index.d.ts","../../../../node_modules/@types/prop-types/index.d.ts","../../../../node_modules/@types/react/index.d.ts","../../../../node_modules/@types/react/jsx-runtime.d.ts","../../src/BindingError.ts","../../src/DataBindingExtendAborted.ts","../../src/treeParameters/primitives/Alias.ts","../../src/treeParameters/primitives/EntityId.ts","../../src/treeParameters/primitives/EntityName.ts","../../src/treeParameters/primitives/EntityRealmKey.ts","../../src/treeParameters/primitives/ExpectedEntityCount.ts","../../src/treeParameters/primitives/ExpectedQualifiedEntityMutation.ts","../../src/treeParameters/primitives/ExpectedRelationMutation.ts","../../src/treeParameters/primitives/FieldName.ts","../../../../node_modules/fast-deep-equal/es6/index.d.ts","../../src/schema/SchemaColumnType.ts","../../src/schema/SchemaEnums.ts","../../src/schema/SchemaColumn.ts","../../src/schema/SchemaRelationOrderBy.ts","../../src/schema/SchemaRelation.ts","../../src/schema/RawSchemaEntity.ts","../../src/schema/RawSchemaEnum.ts","../../src/schema/RawSchema.ts","../../src/schema/SchemaField.ts","../../src/schema/SchemaFields.ts","../../src/schema/SchemaUniqueConstraint.ts","../../src/schema/SchemaEntity.ts","../../src/schema/SchemaEntities.ts","../../src/schema/SchemaStore.ts","../../src/schema/Schema.ts","../../../graphql-builder/dist/types/nodes/GraphQlFragmentSpread.d.ts","../../../graphql-builder/dist/types/nodes/GraphQlInlineFragment.d.ts","../../../schema/dist/types/schema/value.d.ts","../../../schema/dist/types/schema/input.d.ts","../../../schema/dist/types/schema/json.d.ts","../../../schema/dist/types/schema/acl.d.ts","../../../schema/dist/types/schema/actions.d.ts","../../../schema/dist/types/schema/actionsPayload.d.ts","../../../schema/dist/types/schema/model.d.ts","../../../schema/dist/types/schema/result.d.ts","../../../schema/dist/types/schema/settings.d.ts","../../../schema/dist/types/schema/validation.d.ts","../../../schema/dist/types/schema/index.d.ts","../../../schema/dist/types/ProjectRole.d.ts","../../../schema/dist/types/index.d.ts","../../../graphql-builder/dist/types/nodes/GraphQlField.d.ts","../../../graphql-builder/dist/types/nodes/GraphQlFragment.d.ts","../../../graphql-builder/dist/types/nodes/index.d.ts","../../../graphql-builder/dist/types/GraphQlQueryPrinter.d.ts","../../../graphql-builder/dist/types/index.d.ts","../../../client/dist/types/GenerateUploadUrlMutationBuilder.d.ts","../../../graphql-client/dist/types/GraphQlClientRequestOptions.d.ts","../../../graphql-client/dist/types/GraphQlClient.d.ts","../../../graphql-client/dist/types/GraphQlClientError.d.ts","../../../graphql-client/dist/types/index.d.ts","../../../client-content/dist/types/types/Schema.d.ts","../../../client-content/dist/types/types/Input.d.ts","../../../client-content/dist/types/types/Result.d.ts","../../../client-content/dist/types/types/index.d.ts","../../../client-content/dist/types/nodes/ContentEntitySelection.d.ts","../../../client-content/dist/types/nodes/ContentOperation.d.ts","../../../client-content/dist/types/nodes/TypedEntitySelection.d.ts","../../../client-content/dist/types/nodes/index.d.ts","../../../client-content/dist/types/ContentClient.d.ts","../../../client-content/dist/types/ContentQueryBuilder.d.ts","../../../client-content/dist/types/TypedContentQueryBuilder.d.ts","../../../client-content/dist/types/utils/mutationFragments.d.ts","../../../client-content/dist/types/index.d.ts","../../../client/dist/types/index.d.ts","../../src/schema/SchemaPreprocessor.ts","../../src/schema/SchemaLoader.ts","../../src/schema/index.ts","../../src/environment/Environment.ts","../../src/consts.ts","../../src/utils/assertNever.ts","../../src/treeParameters/TreeParameterMerger.ts","../../src/markers/MarkerMerger.ts","../../../../node_modules/chevrotain/lib/chevrotain.d.ts","../../src/queryLanguage/ParserResults.ts","../../../utilities/dist/types/assert-types/assertNever.d.ts","../../../utilities/dist/types/assert-types/index.d.ts","../../../utilities/dist/types/deprecate/types.d.ts","../../../utilities/dist/types/deprecate/deprecate.d.ts","../../../utilities/dist/types/deprecate/index.d.ts","../../../utilities/dist/types/dom/dataAttribute.d.ts","../../../utilities/dist/types/dom/svgSizeProps.d.ts","../../../utilities/dist/types/dom/index.d.ts","../../../utilities/dist/types/structures/BijectiveIndexedMap.d.ts","../../../utilities/dist/types/structures/LRUCache.d.ts","../../../utilities/dist/types/structures/WeakIdCache.d.ts","../../../utilities/dist/types/structures/index.d.ts","../../../utilities/dist/types/index.d.ts","../../src/queryLanguage/CacheStore.ts","../../src/queryLanguage/QueryLanguageError.ts","../../src/queryLanguage/tokenList.ts","../../src/queryLanguage/Parser.ts","../../src/environment/VariableFieldValue.ts","../../src/environment/VariableInputTransformer.ts","../../src/queryLanguage/QueryLanguage.ts","../../src/queryLanguage/MarkerFactory.ts","../../src/queryLanguage/index.ts","../../../../node_modules/@types/js-levenshtein/index.d.ts","../../src/utils/TreeNodeUtils.ts","../../src/utils/whereToFilter.ts","../../src/environment/TreeNodeEnvironmentFactory.ts","../../src/environment/index.ts","../../src/treeParameters/primitives/Json.ts","../../src/treeParameters/primitives/FieldValue.ts","../../src/treeParameters/primitives/Filter.ts","../../src/treeParameters/primitives/Limit.ts","../../src/treeParameters/primitives/Offset.ts","../../src/treeParameters/primitives/OrderBy.ts","../../src/treeParameters/primitives/PlaceholderName.ts","../../src/treeParameters/primitives/RemovalType.ts","../../src/treeParameters/primitives/Scalar.ts","../../src/treeParameters/primitives/UniqueWhere.ts","../../src/treeParameters/primitives/SetOnCreate.ts","../../src/treeParameters/primitives/TreeRootId.ts","../../src/treeParameters/primitives/index.ts","../../src/treeParameters/helpers/wrapFilterInHasOnes.ts","../../src/treeParameters/helpers/index.ts","../../src/treeParameters/EventListenersStore.ts","../../src/types/ErrorAccessor.ts","../../src/types/Errorable.ts","../../src/types/PersistErrorOptions.ts","../../src/types/PersistSuccessOptions.ts","../../src/utils/generateEnumerabilityPreventingEntropy.ts","../../src/RuntimeId.ts","../../src/types/EntityListAccessor.ts","../../src/types/FieldAccessor.ts","../../src/types/EntityAccessor.ts","../../src/types/GetEntityByKey.ts","../../src/types/GetEntityListSubTree.ts","../../src/types/GetEntitySubTree.ts","../../src/types/BatchUpdatesOptions.ts","../../src/types/AsyncBatchUpdatesOptions.ts","../../src/types/ExtendTree.ts","../../src/types/QueryRequestResponse.ts","../../src/types/DataBindingTransactionResult.ts","../../src/types/PersistResult.ts","../../src/types/Persist.ts","../../src/types/BindingOperations.ts","../../src/types/TreeRootAccessor.ts","../../src/types/index.ts","../../src/treeParameters/Normalized.ts","../../src/treeParameters/Sugared.ts","../../src/treeParameters/defaults.ts","../../src/treeParameters/index.ts","../../src/utils/Hashing.ts","../../src/markers/PlaceholderParametersGenerator.ts","../../src/markers/PlaceholderGenerator.ts","../../src/markers/FieldMarker.ts","../../src/markers/EntityFieldPlaceholders.ts","../../src/markers/EntityFieldMarkersContainer.ts","../../src/markers/HasManyRelationMarker.ts","../../src/markers/HasOneRelationMarker.ts","../../src/markers/EntityFieldMarkers.ts","../../src/markers/EntityListSubTreeMarker.ts","../../src/markers/EntitySubTreeMarker.ts","../../src/markers/SubTreeMarkers.ts","../../src/markers/EntityFieldsWithHoistablesMarker.ts","../../src/markers/MarkerTreeRoot.ts","../../src/markers/MeaningfulMarker.ts","../../src/markers/MarkerComparator.ts","../../src/markers/index.ts","../../src/LocalizedBindingError.ts","../../src/utils/createQueryBuilder.ts","../../../../node_modules/@types/uuid/index.d.ts","../../src/index.ts","../../../../node_modules/vite/types/hmrPayload.d.ts","../../../../node_modules/vite/types/customEvent.d.ts","../../../../node_modules/vite/types/hot.d.ts","../../../../node_modules/vite/types/importGlob.d.ts","../../../../node_modules/vite/types/importMeta.d.ts","../../../../node_modules/vite/client.d.ts"],"fileIdsList":[[75,76,77],[78],[249],[245],[246],[247,248],[79],[79,80,240],[79,202,223],[79,80,90,147,223],[79,148,176,178,179,223],[79,80,148,172,223],[79,148,172,173,180],[79,80,81,147,149,150,176,178,179,181,203,219,223,240,241,242,243],[79,223,227,230,231],[79,228,232],[79,223],[79,223,229,235],[79,181,223,226,229],[79,223,226],[79,80,181,223,226,229],[79,149,150,240,241],[79,80,149,150,151,181,223,240],[79,223,235],[79,227,230,231,233,234],[79,181,223,224,225],[79,181,223],[79,223,233,234],[79,152,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239],[79,167,171,181],[79,150,151,152,174,181,223,240],[79,80,144,153,154,168,169,170,181,223],[79,151,154,170,171,173,181,223],[79,169,170,171,174,175],[79,153],[79,96,97],[79,93,95,223],[79,92],[79,80,92,93,95,99,102,104,223],[79,91,92,223],[79,102,223],[79,100,101,223],[79,93,95],[79,99,223],[79,98,105,144,145],[79,92,96,97,98,100,103,104],[79,94,223],[79,92,103],[79,91,92,93,94,95,98,99,100,101,102,103,104,105,145,146],[79,194,197,219],[79,194,219],[79,80,144,223],[79,195],[79,179,223],[79,151,194,196,197,220,221,222],[79,181,182],[79,144],[79,191],[79,82,83,84,85,86,87,88,89,182,183,184,185,186,187,188,189,190,191,192,193],[79,144,210],[79,207,208,209],[79,181,210,211,212,213,216,240],[79,144,213],[79,181,198,199,200,201,204,205,210,211,223,240],[79,181,198,199,200,201,203,206,210,211,223,240],[79,198],[79,147,198,199,206,210,223],[79,206],[79,181,204,223],[79,181,206,223],[79,200,201,215],[79,211],[79,198,214,223],[79,217],[79,198,199,200,201,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218],[79,80,147,177,181],[79,80],[79,143,147],[130,138],[120,134,138],[134,138,140],[134,138,139,140,141,142],[120,125,134],[125],[134,135],[135,136,137],[120,131],[120],[131,132,133],[120,126,130,143],[120,123],[123,124],[106,107,120],[121],[106,107,121,122],[127],[127,128,129],[118,119],[109,110],[110],[108,109,110,111,112,113,114,115,116,117],[108],[109],[155],[157],[157,158],[160,161],[156,159,162,166],[163,164,165]],"fileInfos":[{"version":"44e584d4f6444f58791784f1d530875970993129442a847597db702a073ca68c","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"9a68c0c07ae2fa71b44384a839b7b8d81662a236d4b9ac30916718f7510b1b2d","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","impliedFormat":1},{"version":"feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569","impliedFormat":1},{"version":"5514e54f17d6d74ecefedc73c504eadffdeda79c7ea205cf9febead32d45c4bc","impliedFormat":1},{"version":"27bdc30a0e32783366a5abeda841bc22757c1797de8681bbe81fbc735eeb1c10","impliedFormat":1},{"version":"abee51ebffafd50c07d76be5848a34abfe4d791b5745ef1e5648718722fab924","impliedFormat":1},{"version":"9e8ca8ed051c2697578c023d9c29d6df689a083561feba5c14aedee895853999","affectsGlobalScope":true,"impliedFormat":1},{"version":"69e65d976bf166ce4a9e6f6c18f94d2424bf116e90837ace179610dbccad9b42","affectsGlobalScope":true,"impliedFormat":1},{"version":"6920e1448680767498a0b77c6a00a8e77d14d62c3da8967b171f1ddffa3c18e4","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"45d8ccb3dfd57355eb29749919142d4321a0aa4df6acdfc54e30433d7176600a","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"93495ff27b8746f55d19fcbcdbaccc99fd95f19d057aed1bd2c0cafe1335fbf0","affectsGlobalScope":true,"impliedFormat":1},{"version":"6fc23bb8c3965964be8c597310a2878b53a0306edb71d4b5a4dfe760186bcc01","affectsGlobalScope":true,"impliedFormat":1},{"version":"ea011c76963fb15ef1cdd7ce6a6808b46322c527de2077b6cfdf23ae6f5f9ec7","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"4738f2420687fd85629c9efb470793bb753709c2379e5f85bc1815d875ceadcd","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"9fc46429fbe091ac5ad2608c657201eb68b6f1b8341bd6d670047d32ed0a88fa","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"1a94697425a99354df73d9c8291e2ecd4dddd370aed4023c2d6dee6cccb32666","affectsGlobalScope":true,"impliedFormat":1},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true,"impliedFormat":1},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true,"impliedFormat":1},{"version":"bf14a426dbbf1022d11bd08d6b8e709a2e9d246f0c6c1032f3b2edb9a902adbe","affectsGlobalScope":true,"impliedFormat":1},{"version":"e3f9fc0ec0b96a9e642f11eda09c0be83a61c7b336977f8b9fdb1e9788e925fe","affectsGlobalScope":true,"impliedFormat":1},{"version":"59fb2c069260b4ba00b5643b907ef5d5341b167e7d1dbf58dfd895658bda2867","affectsGlobalScope":true,"impliedFormat":1},{"version":"479553e3779be7d4f68e9f40cdb82d038e5ef7592010100410723ceced22a0f7","affectsGlobalScope":true,"impliedFormat":1},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true,"impliedFormat":1},{"version":"af3dd424cf267428f30ccfc376f47a2c0114546b55c44d8c0f1d57d841e28d74","affectsGlobalScope":true,"impliedFormat":1},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true,"impliedFormat":1},{"version":"d3d7b04b45033f57351c8434f60b6be1ea71a2dfec2d0a0c3c83badbb0e3e693","affectsGlobalScope":true,"impliedFormat":1},{"version":"956d27abdea9652e8368ce029bb1e0b9174e9678a273529f426df4b3d90abd60","affectsGlobalScope":true,"impliedFormat":1},{"version":"4fa6ed14e98aa80b91f61b9805c653ee82af3502dc21c9da5268d3857772ca05","affectsGlobalScope":true,"impliedFormat":1},{"version":"e6633e05da3ff36e6da2ec170d0d03ccf33de50ca4dc6f5aeecb572cedd162fb","affectsGlobalScope":true,"impliedFormat":1},{"version":"15c1c3d7b2e46e0025417ed6d5f03f419e57e6751f87925ca19dc88297053fe6","affectsGlobalScope":true,"impliedFormat":1},{"version":"8444af78980e3b20b49324f4a16ba35024fef3ee069a0eb67616ea6ca821c47a","affectsGlobalScope":true,"impliedFormat":1},{"version":"caccc56c72713969e1cfe5c3d44e5bab151544d9d2b373d7dbe5a1e4166652be","affectsGlobalScope":true,"impliedFormat":1},{"version":"3287d9d085fbd618c3971944b65b4be57859f5415f495b33a6adc994edd2f004","affectsGlobalScope":true,"impliedFormat":1},{"version":"b4b67b1a91182421f5df999988c690f14d813b9850b40acd06ed44691f6727ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"9d540251809289a05349b70ab5f4b7b99f922af66ab3c39ba56a475dcf95d5ff","affectsGlobalScope":true,"impliedFormat":1},{"version":"436aaf437562f276ec2ddbee2f2cdedac7664c1e4c1d2c36839ddd582eeb3d0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e3c06ea092138bf9fa5e874a1fdbc9d54805d074bee1de31b99a11e2fec239d","affectsGlobalScope":true,"impliedFormat":1},{"version":"0b11f3ca66aa33124202c80b70cd203219c3d4460cfc165e0707aa9ec710fc53","affectsGlobalScope":true,"impliedFormat":1},{"version":"6a3f5a0129cc80cf439ab71164334d649b47059a4f5afca90282362407d0c87f","affectsGlobalScope":true,"impliedFormat":1},{"version":"811c71eee4aa0ac5f7adf713323a5c41b0cf6c4e17367a34fbce379e12bbf0a4","affectsGlobalScope":true,"impliedFormat":1},{"version":"51ad4c928303041605b4d7ae32e0c1ee387d43a24cd6f1ebf4a2699e1076d4fa","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a6282c8827e4b9a95f4bf4f5c205673ada31b982f50572d27103df8ceb8013c","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac77cb3e8c6d3565793eb90a8373ee8033146315a3dbead3bde8db5eaf5e5ec6","affectsGlobalScope":true,"impliedFormat":1},{"version":"d4b1d2c51d058fc21ec2629fff7a76249dec2e36e12960ea056e3ef89174080f","affectsGlobalScope":true,"impliedFormat":1},{"version":"2fef54945a13095fdb9b84f705f2b5994597640c46afeb2ce78352fab4cb3279","affectsGlobalScope":true,"impliedFormat":1},{"version":"56e4ed5aab5f5920980066a9409bfaf53e6d21d3f8d020c17e4de584d29600ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"61d6a2092f48af66dbfb220e31eea8b10bc02b6932d6e529005fd2d7b3281290","affectsGlobalScope":true,"impliedFormat":1},{"version":"33358442698bb565130f52ba79bfd3d4d484ac85fe33f3cb1759c54d18201393","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"36a2e4c9a67439aca5f91bb304611d5ae6e20d420503e96c230cf8fcdc948d94","affectsGlobalScope":true,"impliedFormat":1},{"version":"8a8eb4ebffd85e589a1cc7c178e291626c359543403d58c9cd22b81fab5b1fb9","impliedFormat":1},{"version":"247a952efd811d780e5630f8cfd76f495196f5fa74f6f0fee39ac8ba4a3c9800","impliedFormat":1},{"version":"df1e7a3a604dfc0f434c4583e8103c171cd5c7684f8e841a0a2ac15fabb3bc24","affectsGlobalScope":true,"impliedFormat":1},{"version":"42c169fb8c2d42f4f668c624a9a11e719d5d07dacbebb63cbcf7ef365b0a75b3","impliedFormat":1},{"version":"785a606316887e6d5d6e1e98b2c0d98f9c1e1f2453041a9eb134988f0f34a86b","signature":"3b89cad1dbac2d3f8c27f2d91d15694b4e79b7b881f969e4714895c11875cb18"},{"version":"007e9b7dcca627e5162082a32c9ecc63e1739f67c217c74be5233e63e6020b5f","signature":"8071013baf5e634d2100b635c006e1b8fceda6a275996f267209dea86afadacd"},{"version":"7fb66def08276dd730d99cfcd672f8ff515320eaad4e2db621c298ec57d11f8a","signature":"4f375f610dc446c8059ae63382bdd9b73144e7f6d8ab6a52b9f967391f69614c"},{"version":"ce8772c81513cb7d60df8e288ea3db3874d7126012416e80207feb3123dbf014","signature":"c5fc60b33ff1e9ba39acb4798721819510a604e730954d89b2532ec25b397684"},{"version":"6bc92be2c7cce9b518dd49569e24a3a88266c16854ce37554d614f659538d8b7","signature":"0415e15a2fd767472855a4b8b49f291586bf72cc1b6cdbf1813fc89ca15c1466"},{"version":"d07d31793bf03a020e2febf220493a3c9617172bf2e5c51a34d680cdf8c77d41","signature":"ae8946800b816a805d3028773363bf9bfa9bae06d35ec510ac7ec64c7d9dc4bb"},{"version":"32d189c2888206558470408d4e4909f4bb7b1932d6643db44d812f546ccaf9d1","signature":"59104d5583b62b3bebd8e3f67f76c493c19c0ef67a54ec1bb76bdb0a38d54907"},{"version":"9d2eea979c533ca04261c7fe67b06ec9784091c1e7a21b42473f9a8eccc2ea95","signature":"fb8cfb0f79ab59f6f516099579812b0afbbeaad920ff8bcdc203d353c0f3ed7b"},{"version":"961e2fdd5950ed25bd2ac747f1fefc66d19c410fd951eb458e6a52e8f89e7722","signature":"4fc5d257b5c5ad748217f85127b478b7decaf21119a7f1c386f12bc48ac78fbd"},{"version":"7a852ad2196a8f97b7650a1054c59f2c0df029d52a455c71928723fc4a7154ac","signature":"523f4bf97ced9bea71b5e0c1907d60f4b22fc0ee194ee8dea232bbb56dc7aa43"},{"version":"d979def17dea97ee491c975f3d3cb31957b7970a791c1d5a3854ea6cd4cce91e","impliedFormat":1},{"version":"4496c0001b9b7297071150ae21b4651c73c4ecdede75db3aa9aceb5c28f64a8a","signature":"baf6ff91c2f3220a67b4e12c355635ab7a4a226238f453b2a8addafa9824ceca"},{"version":"3c92089bdb8d1c7da36389dc79954b74418cbab8c4a9bb2141bd62d89333930c","signature":"25f94b2056812c44fb7d5776394914997371576f0543657193c25d93d6bfb58c"},{"version":"88ff0296c59438e18b3ad48768226c51cdf4f3ab62283697a24dc49277af6a40","signature":"e78828390806b5c451404f43a1792dce05e890e5d23c20e4c019d0320a595232"},{"version":"4e93ebd45c694f6d3cca8cf551a9d4b3599440f76e4329c4383f45c0cacce36a","signature":"2426426230361aa9515139601137c65f8c6f81ae03d90978e3a1920b364f7c4c"},{"version":"a462bde077e37737d253976ec083a0298f576f1d103311c4d391ce090ec8e3f5","signature":"cdd800bf88b78d9969f558af6895e1e87b667af400a0da0f8a396d876a20cf42"},{"version":"e85f518d29773f545c0b8cf4b91137cc0b2912aa1dc96814a4b904aeecbf8e29","signature":"728b7bac9f044738fe4c3c6f6355f04220f0bc02e72993767e484d3024096560"},{"version":"38f07f7efd587cd411d1a21b502303599a5677a0988ec9b73e2d96db53570c9d","signature":"f203f19c867e8cd7ef537ef57f37d1700b3d736537d0cc0d9590e1fa6d1e2bb2"},{"version":"9b3fadb2fe21ee900958f085491ab8e3353d4ca05aefa170422636c100d85889","signature":"5308dc6569f2ae3d964b01e7ab1ab7861c893f561c0ba79fc73efcc2746f94f3"},{"version":"3e92f0bbbbbf229f902354159fde7eadddf2ce3bef3353c94d924d0e1e75eab0","signature":"53dfa882ad9d481969edf721ad032e6d1dc71d8afa6a8fab401788845af6fa65"},{"version":"1083a63b89c6bc0d9f8a473e097698e3f1023074b144aee88fd8720d7bcfc5d4","signature":"df4e4a809b147b76b5362e3a2177f1633e14873f41a983e5a2fefd129c2ae119"},{"version":"f0dbe7427976a4d5e8e08ae3e5d5f4c0bc72f049404075d306ba9566d34ec8d9","signature":"bcbb5574d92bbb6e57d485740c1cddb26211cf8a7703174628eb4854abf1f4d7"},{"version":"163e9953c64a6c08e3aaf05881aeaaa25b58dff1cb15c52b56832398889bd3d6","signature":"882400098e7eef335e01abafbb2d0003fffa4ce1e02c62ef6f173fe2bfeab65a"},{"version":"88a07cd4c01dd39f5933fb91553a7cced90c136469a38d9ff54929efce6eeaf1","signature":"47e62cf6cfd81a9e11bc04c472203dcf1bfb2a6676f152f2d67ff538bceb93fb"},{"version":"f5a04e48380a22441638e95943c1c36280cc1673fab208e7135240152f28be36","signature":"6c9d2b64785264d6e91587223c61db55713d519b16dd76113d8b08f42d8aac61"},{"version":"5fc5016de79df57d0e60bd5831a4cf4552e50653f5dc3e8ec313621e7bbf6bde","signature":"556be16b388ad51c8491d66ae5a27ae854cc3d4c036def9109dddf0e3bc97e50"},"34e5c5b2be8aa1b3f75ccd21529ae8b9163f510dbdabae4caae3fec3010cc33b","45fb3525f5c652416e54f91bd8378464d41e22b0ccc108de7db918cf8e92ffd3","3ae62be455efcb1874e7fd1f30f2bb83144757d2f349ceb0c6523bb9f7f7a860","8e86b98b3e0df46d3f83c303661824d1965ddd63e674fc0b6849f7869f5b86f0","b1296831e111197bd9ebd73f0d15ad0fe2e11fcc51a6302edb23ffd93794db36","5610e8177b34fa50394973f3faba06fd5268b1264a2f4f7daaa71fee1194a94d","ec0b1ad8de385d526b4e16c7ab8da4b84c1fb15a680d4c82b0e0b5f70e9f80c5","462c0b72a4911d6356ebbfed5dedd9682edf2bd60bcf6ea025539f1cd8c64bf4","5c3f0890ecc492ada4fa62824b8db132adbf9757e918cdc7421a586474b7cb16","f42116e2e8ad600dc90bdf8ceade9dcf593c35812d8aaba9c03a3f1dbb87330e","0f9bf85206211db137cc12ffeb6c442d5d05a7686859860204f148618832a3cb","dff2fee737ebe5174f549c9f28e114c0cabac4b5fe4e364654465ba528979ba4","ad1f130d5fb49665e218d5366db67ead55593335a2c02733ae5f8466a99def53","466df547af9cf3861658b08baf3ecbd41c0eaad2101378fadfa54ab24db103e6","92404f0f42ffd8d939cf6fb1a911235e931981f94dcab0e85f9ae5faf876ea3c","e2402a646d4471b0985495b6bfca6c9c731d335195bf206e8c982d8ca362692f","08d34fcbf615950f6d3dd6858437159f0c0af08d5af645ec415ebfeaeacf3bd0","13ce162c8088b92a985e41a2ddf61cbb191101c280214a74dd9e8d2fd3c9c905","d2689735d2498972d6f02fbaff989b1fa500b5a140af7e7c08a15fbc36c1d3d3","4b47e095287cc1351b5fa9c5112d1d2d255bd8916ce76347225837b244e97ed5","a73c550517e6e3e8c89f5e7283c576e828723ca6d8765351e04fa80d139e6ba0","063a16a89e56dc3a27c4c353ff81f80e4a5074817db8f8989f6d4553df2f3850","8ef2193f6663c97e78c2a1b304b315620665bde3d5ec88cb9e6cdebbeab88291","4d023a0827a63ad5e6b498f92830d79e40e6fd487ed6b7c6fc2528eb9b3c0937","e17fbde86ef68adc663fff12c63cce11175482b3f108afd90fa3c11754afe6c6","af8e795fed72274bbd8d655d04588bbd88871dbd603dff6461362cb5207d2284","33491243e9e60504ee3d733817b089c90d639dc3f1238a3d6417083e9dd5b683","f289c5204b0819632486cefeec845a20a7a9c769180fb6bede63b0d7f24839d2","feaceef383869ce3addd7d620c89fa6ff1d5753f7b451cffb1e926998df2b5e4","4f4d0e8aeb309bbb646dd57615ca9375fa2821df08120fe318124647d91de80a","06c1e22ce1921cfd383c800f9e191972c5dfaca8996cca54d85c4b4cb41db49d","0b42a31c12bc794fe3b4efafc5af85e9bd2d094f086157dfdc98ea4f0a13016a","6c7327831239ec38e57c18eb15c5b191aa258ada0528de8dc93092efcba20896","3c4de8d194c64b484827151ff14582884166268c345cbb13f9c19e4be3912f54","62ca877d3c090576b3ca1cd3e576c931eaedefc3af1b5ef405e41fd22c8b2955","5e8c7ad4619cc15007aa5bc3f4e1a30cb01540c14beaa609fb8d17d21acaceba","016e695348eb662b9adead21973e3da689bbff9c65811491644e2ed594fca800","1702404293385fb18761a3cf716b3c2888c6fa95d3ef96bc8e4e8f5a6e679689","8ed57aaf9593ac2424ef286cd48dadfe4867523dad64689d550d15df72c80a0a",{"version":"28ba36e722743e2fb731c2cc0e793067f33812687bb2777f8112d1c492d1b872","signature":"4795f48243e3f12a19561c8c5296e7f2892bc3fcbec77e90f811c836042d1ed8"},{"version":"fcc20e443b765f8a329b83cef775f799d3852ffa5dafba9fa2cf1202dc38c72a","signature":"9c019ccda878d72c06b62d95c74b38134a7089c9f5e4e02f9955f26a0fc86c6e"},{"version":"96ca7fae902bf9a0b6040dd88eb83ec917a3f07b2e427ba7701c446f11ee6dbc","signature":"a8041f2147221598f9fc3c07271cc863420534bd17897e259b1a274cf0c17c37"},{"version":"077a5a3bece4ead94262170f04424115fb68ed03862476e056c6d2e286783983","signature":"3d882826c2565ed06ed356336468bed703202f9733ff1ac7101180e79c94c04c"},{"version":"e030324cb97c6a3727a740a1ac23ddcd3299bfd65e1c95746814c54fe4e59014","signature":"80cdef588a8ce69225209e217152117f9ceadb4a4777dbf8669ff2777fe9b454"},{"version":"b5c8957cab537964395ca922890816b52a18ef5737740f7969062a79015b5fa5","signature":"a95c25e1f9146dd90f7cb36c7e306a25a67bdef1eaae7319a60d2f9d3ff66804"},{"version":"c355683f720e250dd48ff8791594e6c8dbfdc342161292aa77ae80371c499624","signature":"2e82e0799bb145051965f68b2c5b7c5cb5472d90b6b11dfd919c52b989910ff9"},{"version":"866b6fd877ee85ca8bb15e31dfdde5c8031c5d1bdc13f0dc8d271702b583237c","signature":"5c8a6edd8cdb2e624a415c3563ca45872f0aa0d96586595bcda36b4dce797fe0"},{"version":"8d9f9b0d58822eb76d0b355bfecfa4d8e2e2609a2ea4abd92f9e7fa04e1fdfea","impliedFormat":1},{"version":"54a95303cf332ef0bbef1c79f35da5e4e3dbdd818dc00de63f92b638d2af0e78","signature":"bbc9edde5980e807d9966750fbe36f05b739d3f7a1e53ab9d850ed937b86c07c"},"a95c25e1f9146dd90f7cb36c7e306a25a67bdef1eaae7319a60d2f9d3ff66804","3436aa850e6d85c1ca81028e1ac6a9ba3ca0cbc27efe797fe99aea0a99a49881","624e76b41eb76400df5e0cbacc5f7091e6bd0518e0f9f4ac4a047794b2c189f9","f14113b17b6a1863dd58e49e0bc504f21d51da969bc1fc4af1a07b3684f0de25","1762533296e00297d454534bdb27ddae5f6b69fef679295094cb0afb4e9a526a","1c84b348bb07619f2123fddd01c20184c6212540909bd98fdc450f7d4e234717","dfe644b96a0786c3ed103bffe7331349022c647802d40030067cf71c9ce79bb5","893bdae1d9648d1f4da2ddad5647a63282aef8d30df09eacb14fdb68e2349a1d","0a52d67559b7ef5541d532dc78fbbfb69d028a4adf1c3501424e355e53e66257","fed47bc1ca2d6c672b7ce3be63f206bd0ad5e67c18c2650eb9d79d842e9d208a","cd7e9d427302a244cce2881eceae5fbaccf62a7a6064f161a699fe39bad1d998","fb6bb88e6e41f878eaf58a6c141e0379f208f85f6f922512b3b25efffe70380b","e31346a3e386e227daee4cd99ac59dc7bd0e324541ea401bdf8b623a7e20bf56",{"version":"69d7713ce3de8a3aaedb45ec25406c71115233a7b12aa30c71037cef7333828a","signature":"ea8482cc20ebe4d4ef1156f713e5ed60f83b99e310d7edb6651c043db14cd8a6"},{"version":"b7d1474d2fc1a885ad2e4e7ace89452dd79cf85e6c135ab20fe1dcc20ca5017c","signature":"b6890f830e835c28b15a1d17004db17f6a592ee9f56b8aba95e94927203950f0"},{"version":"09c2d7427703207fdb60e046f34236cdf16e02baf28130d98071fc7aab9321c9","signature":"4530bbafa939be7beaf0b51c33aaf1dc82e5d4f1cc2512103939b45415b6899a"},{"version":"a6da670d0d83945c62fca819844785c286248d8459f8636dca0d3ed0e117659d","signature":"7d45c7409c354acf67517ef46e3e42bf5599f69dd20e2c27b1897696b303e9c2"},{"version":"50a70666d8d659c57dc769ac7118b07a5f3b8fafb3ca30a07a4f63dd01e1b7e6","signature":"bb2685d458f95d2fdff3eaf45aec789effef9086a474f8a94e337372813b7879"},{"version":"61f274376f6e202130a66cc03fe1158f8e74e6913aafce01bc04b68bf0025b63","signature":"8bbb10dc113bd3ca30bceccd7b514a6d49ac6fd4aa58fc1d1ec1dd0d22874e18"},{"version":"faa31890d240cf4ce9c7d04894a626de038c7637e5fbabec9a672274b6846723","signature":"14d24d75d8c944b4e4de0afe58dc6cd8172ef37f6195af7574618956d39b1f49"},{"version":"055c81ba3e0387ecb6ad2f04701ad823940b3bd527e025af2e9af0d773b33301","signature":"8753944b63f6c310afaa9d07879704b35455d45494d4fa1356e0c0e22f8f180c"},{"version":"5196698722162d043a623a07e22d608c91c064f7cdee0653c23dd85f683befa1","signature":"c7136145a5e2d6bbfe4e2b92c0f1b3d2e687c2609c19bea0e11c0aab7534de01"},{"version":"a8d630427635fa316e57fa4949132acde9cf23aa067220bffea30612497824cc","impliedFormat":1},{"version":"1d0337c4bcafa62e9affdf99b674f2f380edb4c44c6f0fbc4bcc85ec09b2f4e0","signature":"07606808f139cdf0b92313b56644505bfd853e73da7dbd6a28d0110bf9395437"},{"version":"2ee0310d55c9c059f961bb328b971dfbd36aba9d77777952f640ec60738e4ac6","signature":"04b98d2fbf095999a1fb17d211da5ffce679f822199742bb73f90a34a3ec5998"},{"version":"5cdc5ca8e3b24a11767808daeb5db01b86e74ab6ed35e61f30b4c5196089840f","signature":"fcc7872b6032588c50c585e897ceb7e0002185fdc24276e672320ad08b67b984"},{"version":"3c261ad3eb75a746c5ef2c17304d622e28dcb7f423be0dc5104d080003980a20","signature":"5514f9d40d706531e48ed966234d02fbb53957c850fa45425d4200e620bd5960"},{"version":"e57b0cf4b708b64f9e7fdb6a24157c118de976fc148f8e220fe606c7ff19a706","signature":"ad6fccef98f7c1922c97d493012a7de1120ff90d291a9867c4d7529771e44f05"},{"version":"c73012a67ae127abe42100bb3b714a960f74fc9141aab2996e9a427813c93458","signature":"bd6b7f4bd62af5eca5876f74c9b1830b5380ca719c2261a0149ea385f8de416f"},{"version":"36870dd1ccb8343b71dcf9278837e8cf38dd0eaf530893ccf5841492f94ddf33","signature":"38dd234d61d9863a4f6e3ffd19c50a02cc3ccd742a7783826a47cbb04fce4de8"},{"version":"d4bd52ac8ef16096dac69d163cf3107f18f3062cfa0b531c5723e24793c40ef1","signature":"3350f2a0fbc92917e62068fc5a5df0e76990b69695c79299753cf92bf8b76984"},{"version":"f32cec95813f9ad02c546ab193d043583794ca7d5fd58a2b784db796b30fb901","signature":"692068a2fdfd2f62138b54bd5f854a0451f19c53697096c4a1644506712283f6"},{"version":"7f064e3ba47d4cbe23395783c9bbd12c3ea3bb94cf21fcfb054dff1609a2f7ee","signature":"9a9a41e807a60d89317a7be6fe7c6ac96eb5bb32c530b543bd4618badb65a8ec"},{"version":"864288ed5efa3d01a002c526474aabd0744f494c70661e60d649ae73dc3eda67","signature":"c12ab6b360266f86e606a50ef28bed97c0c13acb8a9c7be4c37dda67f46a938f"},{"version":"6d8ad15627d86390db914948ddaf1ad6387bd689a1b35efaa0e124873d48b01a","signature":"82012981d19b1d4d8af74a45b1cccde2f47a23dddb5d45b1a32eb74b279c741b"},{"version":"a84f4a9740d6da0c4371bf80d6d4e95b514897bd1e0dbad20098c1eb7a203c62","signature":"f2efbaaf976486e7b7d4dc715fc96d23875fd3527ab6d3ae3f392642cc012ba3"},{"version":"3cc0c920bef72f9a843a01e32917eb44315be8312a2ba25f8f4825f87066d9bc","signature":"39378d141f8c339cf85cc59fe81834ab9021de01c6424e70a11052e94daa58e7"},{"version":"c8b4c8decf022520f7a3e71727563387218afbef391372773ea78fb2ca4d6157","signature":"661365dddb8fd571f6b73346cc879381c131f826f85217c216a142b25aa05620"},{"version":"82e586f2155abae299784a683a632517e6af1aaa741bb0b3db7c28f873b479cf","signature":"f51cc25c36f059fb909bd32e35402a16a3538d9d04956fe86a63aac92ada567a"},{"version":"45a93205e36f6b3595dd864d914ca883a9d37fbda13f1330d38b1a41f90e9305","signature":"74ecd3132a5eccc98a96254fd9a673ae0577493bb89e68e8dcb4a4587dcd27b4"},{"version":"36d27b9c35d428dd06cb0dacbbf60e61beb460062c46d7493d6d4323e56a53ea","signature":"c5588f5af1a79fdb751f2f4952e4d5382debc0673b965a41de3dfae378b856df"},{"version":"a18bbbfbf6aea41d65d7fa9e205d83ed70f1168686ec025d6a88c69103f85c74","signature":"a6fe4b83212a3c05e0995d32ab46ada7ddee3ad705d862156d033e71a8a7de16"},{"version":"033b86fb1026cc2b740ca02aa3dcc7e4749837e88e94b76b58d1df54d66dc711","signature":"68ed88262c1144732c0347a3b73756ee8e7a14129f643927c7d7475f74b2dbf8"},{"version":"7257c94aab3daf942fbee9e11e869fa5c2363fd3d9ffebf0996ed780efa7c5cb","signature":"83d47ad39f96f384c4ea7695abc0f002015cf8f535a767a6848d6445a9f2adec"},{"version":"69da2092769b35daff52a6009d933afb2e66ef6b51cf2b76b79ad32770be05bb","signature":"9fa8a1c9549e040154187bd3e1b431e38498a6940ebe334d2b27e525fb9b02b3"},{"version":"105aeda0c35d28d675f90a43f970d9097c25fcfc9e382cdebafff1207f01a3cc","signature":"6cbdc375ec2e18765abe5d748141506b29340f4e4ff0e5ce2e37af9d9355baba"},{"version":"f6d479d37f12f72cae19d68ff8a64741d0a441d8660ec5484bc5da7e497d1f47","signature":"81c490a9e2f1bdbfe4b2ea2260a4f00a766dc7bd0b7bf7c89a03af9f452d8474"},{"version":"1f9ae81e86fca2125704699bc532ebc83e1fdd073be560c034800d6bf22b5e5c","signature":"86c657932f52ab103b37ced85ed22f7101852becaee053e5f764abe53c8dec83"},{"version":"a17161cc083cbef91b6f15ffbb6f26a431e62977c354bed53f6aaf78138a6357","signature":"c179b2e68cbe73ad639f20e67246bce84c35dbe4d23ac7cc967449b9f2b3d7fe"},{"version":"f2695898a00639522b8212bf23db52891f9c1f976785460d88ba1590c04ae4cd","signature":"b6d1d9c10162900de546c1a9643aa3a2a299e046d19c065d3f4d69991288b913"},{"version":"071a954dfe682a7804c363eb4d947562a22a0210f4407db98cfdeda6a7821add","signature":"657589753139fae790243de79f0049961d6a604b6f306ff257b6f1c7419504e9"},{"version":"a3d214bc4ed90c4affc361d9fb40084025e7124a53ebda232ab5f76e062ad56f","signature":"cb1c1d9343793cffcc2b21c4fc801015f0bc5bc80257b4d3793581f4d297fb9f"},{"version":"a43917394061fb9d5e07af971ca156fe186468af0481240a7b51cf7d4aed4346","signature":"801bbab7056e29582d0ab806481e8a8baeaac7a47bdf656f9d0560527cdce258"},{"version":"ad69dfa12a05b225c6aa630df3746ac0edc2e9b88cd727cc9832976fcbb1c800","signature":"2a82bec8d92c0c9e13f8507bbacebe5428ae0fce3a48b9634bce6cf942c0bb0d"},{"version":"f3c687f88773d104ce170416019bea5ff6e58656939218fbc77c000620ccc336","signature":"21f46169942246675c1e557283af4fb89163737ab7a2737cfeaa0bf46c2c8237"},{"version":"bb16f160ca0512d42320b3aa54595d3919efb74a6f472e2e2a543e378175587e","signature":"d687400beacbb0138a153625aebb6cc061e5335b50a6206b33b7fd71e0c50f88"},{"version":"12c70c6adf62bc1883625255f9a9525eac532651b746173630de371713b207c4","signature":"978700cc62125b4c10be8db21e7cfb4d3fb9102f07679d390bf68252cb94f9b2"},{"version":"30889215a16e4b5194d007dc6b47711089939cd864d8e51799fc551de5c768ad","signature":"1d41678749d09eb543d3aead40fa42e4f6e730cc22903ce9d01a3ecb41e82633"},{"version":"d71a34ac539f18811b4dcde369a7810acff9d202d0f6f81d63f7136fe03966dc","signature":"310c07f5eba9c620968a4b9c90c73108fc4c11600c5b316c54b2be56e81940a5"},{"version":"c12d9e0097ebcd5137b3447c38adf8e0401089867106b7cd411c84cfb50eb816","signature":"1d8d46bd430df012b16b4e048d6a18d8a1862736d2d5b763e42a43f3a15eaf9f"},{"version":"c921dc1e77b39dc790540454b3ceef95951dbb63253e6472c28ce8077995ad24","signature":"6852ed190c8ab742071a493aff7c8c13725457c37241e95351db194756d2ee44"},{"version":"1e446181d3ea2fa1e8f36534fae560d94a1fa1107c4f32a61c259fae801f0c7d","signature":"a60d6dc03894482436b67e811b14627c350abb79bb3bde92aa8dc676744f5f63"},{"version":"5ef89eccc4cebda64fe817cdd302c8b915cc5d8ed08704d5baf436e23b93e4ce","signature":"291339b78580b8e3713d4f9aae3c43accd72f76d722c1f218db0cf4610dd5c56"},{"version":"82ea3d1eb14252dbb07828739949119aa53374757e7cb0addddab193ef6f3bc3","signature":"7f6335a6cd33fb4250b9fbc8533fb61bfd4265a7dcc05d28d6b8f8fcf5b9855c"},{"version":"da2dc186d666e070d4a0ece334dde3d0eb6fe09860e03f0bf46b732cf4f24961","signature":"7880216f3a2a0d364aa7ad959b0044c1db783403957fdb518c82d74e8bc612fa"},{"version":"71b706c7681f3878612b0166463568f70fa481aa07455c4e17d7aeb5b156e3aa","signature":"b06ac1e63dfcc9f02259165d754bc449ff11506bd30754356873f5b1268cdbe4"},{"version":"f85de9c7b0502d317387cdcbea37d46c36b44714e548e38c496b53819e745d3e","signature":"4648722f51e6e8a33977faa24b400a597c60cd51f8b9290063d3d47835d45680"},{"version":"152e0e1ada90c721922049da640817879b982bde9c9383104674e8da1802bbae","signature":"ec7e115f7840b3e06a9e84b2a0fd96817d951cdc9af213f09d6c5dd5ff7a4b71"},{"version":"b80fd7b3c7d7c4b698358a6a16bede4385c16af1b9e63b93b442b54da08885c5","signature":"0baa07d0844ce4b8ffdd6a64e19f60ad382f2a9683aec9cc51a1ddf32207286e"},{"version":"94b30200319f6bc560256262388378002e04f857537f2b4e20a6946f9bb5004a","signature":"7ec274932ce8decc3265833519e9bbde06122770b8ddb4cfbfd7f0db04000832"},{"version":"7986436e799bf98c452a02fe8e8fe3111325799f9840d4ace59958bec1efde46","signature":"b8cac2c16342775cd57d9f08143e7dfc585bdb0e8c2b714ce3db860282847d24"},{"version":"f5066813f9ad2146c3a98a6e74dd522f3564fb8e9e2110daec520d8ad0f16271","signature":"b52aa2e0ed6144d386d518123489821ca5c75504704ed816160c0e0b33143034"},{"version":"2438b496659babaf642c12b67bba38d52d5c0fab243df2dedc27081069a01251","signature":"d633069c5a26f29d06890aa40935bae0235bec8acd6ba4ef0fd04c9487f4291d"},{"version":"fbaa840a4a0e5c3b3aee86a11cf026b99e18ab1aeaf4e1227f46cbd5f2f828c3","signature":"5fc220c4b02dc64bfc3883296e6a56a305930d769754e0f57b4061270c862f60"},{"version":"9d7fa46c7c284782aecf5ec1f75b4e4eb0c9ea2e7e579afd07fc639f52672efc","signature":"d0dc311661a7af65c96071e8e544e9af58526b3890fdce8dc9a68b6a0535899f"},{"version":"71ddff355e0ce727fefca7e45bff074ad956bab7659b1f5e9957025208a1ce2b","signature":"c084b437ac1da0ded4157d7cabcbda15efed7a4140e120cadb8e3d60d6606d97"},{"version":"6f480ca2c4d844871a90a7e337da72661e036751a97c22d45dfd87284c457290","signature":"82ac1305f15ac871fdc1ea62fbf0fa682845ac999ce20eac278f14fd889b3c40"},{"version":"c799b2ed03a24a4a7c59592d4c3a8fe38025cf4d4842678d2db429bd17f0947b","signature":"9b3e2b9b29dfaeecd4ca0b82f2916e18ee9fb497c68d531fd7778cc445de3541"},{"version":"efd9f7aeba137c0a286d5e68dbfb8a6d4b97772852bdd7dc858c881a80512d52","signature":"87cbaff27514f99c7e51b79632783dbf79913e492dc9a3dee608fc1a04f0044a"},{"version":"6b1ba7ab1576d5caa535bb99034794ec68e4c2e141b088838aa1a98e97635599","signature":"63e17799d3f8f9abaffe17efdc52dd13e460aa961dde160fdbf66e083fe44bf6"},{"version":"aac08f566d0e362d4c18bebe92383e475c28c130ad62c15d5fc98ad28efb6146","signature":"b0d18e18b4ae7d4fd2ff2b740ef5871da547181d639738005148f4cf8bb1913c"},{"version":"180c7f2fb8004f10563b2ed51bb913632e8579d87b07b9b71b829dc301757d7b","signature":"a90443082cf87a9a5f8479bc824f88bd5a1b8ca702952d8726dcf159ac265226"},{"version":"c8f0467b3c604521c699ebb894be357aec2a3ffdd8aca56f92659076f688213a","signature":"71f8464e638628c9a2456dc55815fdc89cca4526d3ed0cdbfe76c4d17ac9deb9"},{"version":"64951bcb6d3af877bdd45731ed55230c2383b08c61e364ffad7a84930ddd4bbd","signature":"088a8626cc6be46835e464981878f3e8145aa034be1705d39602778f34bf11e9"},{"version":"40cc03b58d3f20712fc0336b7ce384f6f3fec7477d470aba08203e016b29cd9f","signature":"e74c5155662dea1a1a20b7b77803d308508e4d146ca591e22df9eaabd515b8bc"},{"version":"e52e272191c6137aa633ee570fdc8af5a2c97c0b9fbb0530a35baebdd210e243","signature":"68383a05d0e8b02ff1cd4fb8f5e6509b0f783b7c17944789e90fdf24d068574d"},{"version":"619e7e978228b6b974b3e927d4e8e5ad06ee35de2102c001444d17fc4a7521f4","signature":"3f20fb238766dbba64da0ece03c323fa2dacc69c81b2b6655c7415bd1d6b2f16"},{"version":"34f6143ff4deea59838558f18e46b7ea812d7619da0a75564a5c56602e545198","signature":"8fd5393cde0e4674a43debed6b0816b468b5f7d7016c02e431898f02019a6725"},{"version":"f874ea4d0091b0a44362a5f74d26caab2e66dec306c2bf7e8965f5106e784c3b","impliedFormat":1},{"version":"b66b05e5080eab9db8b4de304ca98ad2c571634805913447c697c949f54272a0","signature":"c8b4573375c024fc9735f73081ac5557cd7d667ace932079c4496182fd6c8396"},{"version":"282f98006ed7fa9bb2cd9bdbe2524595cfc4bcd58a0bb3232e4519f2138df811","impliedFormat":1},{"version":"6222e987b58abfe92597e1273ad7233626285bc2d78409d4a7b113d81a83496b","impliedFormat":1},{"version":"cbe726263ae9a7bf32352380f7e8ab66ee25b3457137e316929269c19e18a2be","impliedFormat":1},{"version":"7f698624bbbb060ece7c0e51b7236520ebada74b747d7523c7df376453ed6fea","impliedFormat":1},{"version":"4025a454b1ca489b179ee8c684bdd70ff8c1967e382076ade53e7e4653e1daec","affectsGlobalScope":true,"impliedFormat":1},{"version":"984c09345059b76fc4221c2c54e53511f4c27a0794dfd6e9f81dc60f0b564e05","affectsGlobalScope":true,"impliedFormat":99}],"root":[[80,89],[91,105],[145,152],154,[168,176],[178,242],244],"options":{"allowSyntheticDefaultImports":true,"composite":true,"declaration":true,"declarationMap":true,"emitDeclarationOnly":true,"esModuleInterop":true,"experimentalDecorators":true,"jsx":4,"module":99,"noEmitOnError":true,"noImplicitOverride":true,"outDir":"./","skipLibCheck":true,"sourceMap":true,"strict":true,"target":7,"useDefineForClassFields":true},"referencedMap":[[78,1],[79,2],[250,3],[246,4],[247,5],[249,6],[80,7],[81,7],[241,8],[203,9],[149,7],[148,10],[180,11],[172,7],[173,12],[181,13],[244,14],[232,15],[229,16],[228,17],[236,18],[233,19],[234,19],[227,20],[230,21],[231,19],[239,22],[152,23],[237,24],[238,25],[226,26],[225,27],[235,28],[240,29],[168,30],[175,31],[171,32],[154,17],[174,33],[169,7],[176,34],[170,35],[98,36],[96,37],[97,38],[105,39],[93,40],[91,7],[103,41],[102,42],[92,7],[99,43],[100,44],[146,45],[145,46],[95,47],[94,7],[104,48],[101,17],[147,49],[197,7],[220,50],[221,51],[151,52],[222,7],[196,53],[195,54],[223,55],[82,7],[83,7],[84,7],[85,7],[86,7],[87,7],[88,7],[89,7],[183,56],[184,57],[182,7],[185,7],[186,7],[187,57],[188,7],[189,7],[190,7],[192,58],[193,7],[191,57],[194,59],[211,60],[210,61],[217,62],[214,63],[206,64],[204,65],[198,57],[199,66],[212,27],[205,67],[207,68],[208,69],[209,70],[216,71],[200,72],[215,73],[201,72],[213,17],[218,74],[219,75],[224,7],[178,76],[150,77],[242,78],[202,7],[179,57],[139,79],[140,80],[141,81],[143,82],[135,83],[136,84],[137,85],[138,86],[132,87],[133,88],[131,88],[134,89],[142,84],[126,84],[144,90],[124,91],[125,92],[121,93],[122,94],[107,94],[123,95],[128,96],[130,97],[120,98],[111,99],[112,100],[113,99],[118,101],[109,102],[114,103],[115,102],[117,100],[156,104],[158,105],[159,106],[162,107],[167,108],[166,109]],"latestChangedDtsFile":"./index.d.ts","version":"5.6.3"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@contember/binding-common",
3
3
  "license": "Apache-2.0",
4
- "version": "2.0.0-alpha.25",
4
+ "version": "2.0.0-alpha.27",
5
5
  "type": "module",
6
6
  "sideEffects": false,
7
7
  "main": "./dist/production/index.js",
@@ -29,9 +29,9 @@
29
29
  "ae:test": "api-extractor run"
30
30
  },
31
31
  "dependencies": {
32
- "@contember/client": "2.0.0-alpha.25",
33
- "@contember/client-content": "2.0.0-alpha.25",
34
- "@contember/utilities": "2.0.0-alpha.25",
32
+ "@contember/client": "2.0.0-alpha.27",
33
+ "@contember/client-content": "2.0.0-alpha.27",
34
+ "@contember/utilities": "2.0.0-alpha.27",
35
35
  "chevrotain": "6.5.0",
36
36
  "fast-deep-equal": "^3.1.3",
37
37
  "js-levenshtein": "1.1.6",
@@ -40,7 +40,6 @@ class Environment<Node extends Environment.AnyNode | undefined = Environment.Any
40
40
  return new Environment({
41
41
  ...options,
42
42
  node: SubTree,
43
- parent: this,
44
43
  })
45
44
  }
46
45