@contember/binding-legacy 2.0.0-alpha.30 → 2.0.0-alpha.32

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.
@@ -92,13 +92,16 @@ ${error.message}
92
92
  disconnectEntity(listState, childEntity, options) {
93
93
  this.eventManager.syncOperation(() => {
94
94
  const persistedEntityIds = this.treeStore.getEntityListPersistedIds(listState);
95
+ if (!listState.children.has(childEntity.id)) {
96
+ throw new bindingCommon.BindingError(
97
+ `Entity list doesn't include an entity with id '${childEntity.id}' and so it cannot remove it.`
98
+ );
99
+ }
95
100
  for (const state of StateIterator.StateIterator.eachSiblingRealmChild(this.treeStore, listState)) {
96
101
  const disconnectedChildIdValue = childEntity.id;
97
102
  const disconnectedChildRealm = state.children.get(disconnectedChildIdValue);
98
103
  if (disconnectedChildRealm === void 0) {
99
- throw new bindingCommon.BindingError(
100
- `Entity list doesn't include an entity with id '${disconnectedChildIdValue}' and so it cannot remove it.`
101
- );
104
+ continue;
102
105
  }
103
106
  this.treeStore.disposeOfRealm(disconnectedChildRealm);
104
107
  state.children.delete(disconnectedChildIdValue);
@@ -1 +1 @@
1
- {"version":3,"file":"ListOperations.cjs","sources":["../../../../../../packages/binding-legacy/src/core/operations/ListOperations.ts"],"sourcesContent":["import { validate as uuidValidate } from 'uuid'\nimport type { BatchUpdatesOptions, EntityAccessor, EntityListAccessor, ErrorAccessor } from '@contember/binding-common'\nimport {\n\tBindingError,\n\tEntityId,\n\tEventListenersStore,\n\tLocalizedBindingError,\n\tMarkerComparator,\n\tRuntimeId,\n\tUnpersistedEntityDummyId,\n} from '@contember/binding-common'\nimport type { AccessorErrorManager } from '../AccessorErrorManager'\nimport { EventManager } from '../EventManager'\nimport { RealmKeyGenerator } from '../RealmKeyGenerator'\nimport { EntityListState, getEntityMarker, StateIterator } from '../state'\nimport type { StateInitializer } from '../StateInitializer'\nimport type { TreeStore } from '../TreeStore'\nimport { OperationsHelpers } from './OperationsHelpers'\nimport { ErrorLocator } from '../exceptions/ErrorLocator'\n\nexport class ListOperations {\n\tpublic constructor(\n\t\tprivate readonly accessorErrorManager: AccessorErrorManager,\n\t\tprivate readonly batchUpdatesOptions: BatchUpdatesOptions,\n\t\tprivate readonly eventManager: EventManager,\n\t\tprivate readonly stateInitializer: StateInitializer,\n\t\tprivate readonly treeStore: TreeStore,\n\t) {}\n\n\tpublic addError(listState: EntityListState, error: ErrorAccessor.Error): () => void {\n\t\treturn this.accessorErrorManager.addError(listState, error)\n\t}\n\n\tpublic addEventListener<Type extends keyof EntityListAccessor.RuntimeEntityListEventListenerMap>(\n\t\tstate: EntityListState,\n\t\tevent: { type: Type; key?: string },\n\t\tlistener: EntityListAccessor.EntityListEventListenerMap[Type],\n\t) {\n\t\tif (state.eventListeners === undefined) {\n\t\t\tstate.eventListeners = new EventListenersStore()\n\t\t}\n\t\treturn state.eventListeners.add(event, listener)\n\t}\n\n\tpublic addChildEventListener<Type extends keyof EntityAccessor.EntityEventListenerMap>(\n\t\tstate: EntityListState,\n\t\tevent: { type: Type; key?: string },\n\t\tlistener: EntityAccessor.EntityEventListenerMap[Type],\n\t) {\n\t\tif (state.childEventListeners === undefined) {\n\t\t\tstate.childEventListeners = new EventListenersStore()\n\t\t}\n\t\treturn state.childEventListeners.add(event, listener)\n\t}\n\n\tpublic batchUpdates(state: EntityListState, performUpdates: EntityListAccessor.BatchUpdatesHandler) {\n\t\tthis.eventManager.syncOperation(() => {\n\t\t\tperformUpdates(state.getAccessor, this.batchUpdatesOptions)\n\t\t})\n\t}\n\n\tpublic connectEntity(outerState: EntityListState, entityToConnect: EntityAccessor) {\n\t\tthis.eventManager.syncOperation(() => {\n\t\t\tconst persistedEntityIds = this.treeStore.getEntityListPersistedIds(outerState)\n\t\t\tconst stateToConnect = OperationsHelpers.resolveAndPrepareEntityToConnect(this.treeStore, entityToConnect)\n\t\t\tconst idToConnect = stateToConnect.entity.id\n\n\t\t\t// TODO disable this at the top-level.\n\t\t\tfor (const state of StateIterator.eachSiblingRealmChild(this.treeStore, outerState)) {\n\t\t\t\tif (state.entityName !== stateToConnect.entity.entityName) {\n\t\t\t\t\tthrow new BindingError(\n\t\t\t\t\t\t`EntityListAccessor.connectEntity: Attempting to connect at an entity of type ` +\n\t\t\t\t\t\t\t`'${stateToConnect.entity.entityName}' but '${state.entityName}' is expected.\\n\\n` +\n\t\t\t\t\t\t\t`Entity located at: ${ErrorLocator.locateInternalState(outerState)}.`,\n\t\t\t\t\t)\n\t\t\t\t}\n\n\t\t\t\ttry {\n\t\t\t\t\tMarkerComparator.assertEntityMarkersSubsetOf(\n\t\t\t\t\t\tstate.blueprint.marker.fields,\n\t\t\t\t\t\tgetEntityMarker(stateToConnect).fields,\n\t\t\t\t\t)\n\t\t\t\t} catch (error) {\n\t\t\t\t\tif (error instanceof LocalizedBindingError) {\n\t\t\t\t\t\tthrow new BindingError(\n\t\t\t\t\t\t\t`Entity list: cannot connect entity with key '${entityToConnect.key}' because its fields are ` +\n\t\t\t\t\t\t\t\t`incompatible with entities found on this list. Make sure both trees are equivalent.\\n\\n` +\n\t\t\t\t\t\t\t\t`${error.message}\\n\\n` +\n\t\t\t\t\t\t\t\t(error.markerPath.length > 1\n\t\t\t\t\t\t\t\t\t? `Incompatibility found at: ${ErrorLocator.locateMarkerPath(error.markerPath)}.\\n\\n`\n\t\t\t\t\t\t\t\t\t: '') +\n\t\t\t\t\t\t\t\t`Entity list located at: ${ErrorLocator.locateInternalState(state)}.`,\n\t\t\t\t\t\t)\n\t\t\t\t\t}\n\t\t\t\t\tthrow error\n\t\t\t\t}\n\n\t\t\t\tif (state.children.has(idToConnect.value)) {\n\t\t\t\t\tcontinue\n\t\t\t\t}\n\n\t\t\t\tthis.stateInitializer.initializeEntityRealm(idToConnect, state.entityName, {\n\t\t\t\t\ttype: 'listEntity',\n\t\t\t\t\tparent: state,\n\t\t\t\t}, stateToConnect)\n\n\t\t\t\tstate.plannedRemovals?.delete(idToConnect.value)\n\n\t\t\t\tlet changesDelta = 0\n\n\t\t\t\tif (persistedEntityIds.has(idToConnect.value)) {\n\t\t\t\t\t// It was removed from the list but now we're adding it back.\n\t\t\t\t\tchangesDelta--\n\t\t\t\t} else if (idToConnect.existsOnServer) {\n\t\t\t\t\t// ignoring unpersisted entities\n\t\t\t\t\tchangesDelta++\n\t\t\t\t}\n\t\t\t\tif (stateToConnect.type === 'entityRealm') {\n\t\t\t\t\tchangesDelta += stateToConnect.unpersistedChangesCount\n\t\t\t\t}\n\n\t\t\t\tthis.eventManager.registerJustUpdated(state, changesDelta)\n\t\t\t}\n\t\t})\n\t}\n\n\tpublic disconnectEntity(listState: EntityListState, childEntity: EntityAccessor, options: {noPersist?: boolean}) {\n\t\tthis.eventManager.syncOperation(() => {\n\t\t\t// TODO disable this at the top-level.\n\t\t\tconst persistedEntityIds = this.treeStore.getEntityListPersistedIds(listState)\n\t\t\tfor (const state of StateIterator.eachSiblingRealmChild(this.treeStore, listState)) {\n\t\t\t\tconst disconnectedChildIdValue = childEntity.id\n\t\t\t\tconst disconnectedChildRealm = state.children.get(disconnectedChildIdValue)\n\n\t\t\t\tif (disconnectedChildRealm === undefined) {\n\t\t\t\t\tthrow new BindingError(\n\t\t\t\t\t\t`Entity list doesn't include an entity with id '${disconnectedChildIdValue}' and so it cannot remove it.`,\n\t\t\t\t\t)\n\t\t\t\t}\n\n\t\t\t\tthis.treeStore.disposeOfRealm(disconnectedChildRealm)\n\t\t\t\tstate.children.delete(disconnectedChildIdValue)\n\n\t\t\t\tlet changesDelta = 0\n\n\t\t\t\tif (persistedEntityIds.has(disconnectedChildIdValue)) {\n\t\t\t\t\tchangesDelta++\n\n\t\t\t\t\tif (state.plannedRemovals === undefined) {\n\t\t\t\t\t\tstate.plannedRemovals = new Map()\n\t\t\t\t\t}\n\t\t\t\t\tif (!options.noPersist) {\n\t\t\t\t\t\tstate.plannedRemovals.set(disconnectedChildIdValue, 'disconnect')\n\t\t\t\t\t}\n\t\t\t\t} else if (disconnectedChildRealm.entity.id.existsOnServer) {\n\t\t\t\t\t// Disconnecting unpersisted entities doesn't constitute a change.\n\n\t\t\t\t\t// It wasn't on the list, then it was, and now we're removing it again.\n\t\t\t\t\tchangesDelta--\n\t\t\t\t}\n\n\t\t\t\tif (disconnectedChildRealm.type === 'entityRealm') {\n\t\t\t\t\t// Undoing whatever changes this child had caused.\n\t\t\t\t\tchangesDelta -= disconnectedChildRealm.unpersistedChangesCount\n\t\t\t\t}\n\n\t\t\t\tthis.eventManager.registerJustUpdated(state, changesDelta)\n\t\t\t}\n\t\t})\n\t}\n\n\tpublic createNewEntity(outerState: EntityListState, initialize: EntityAccessor.BatchUpdatesHandler | undefined): RuntimeId {\n\t\treturn this.eventManager.syncOperation((): RuntimeId => {\n\t\t\t// All siblings need to have the same id.\n\t\t\tconst id = new UnpersistedEntityDummyId()\n\n\t\t\tfor (const state of StateIterator.eachSiblingRealmChild(this.treeStore, outerState)) {\n\t\t\t\tconst newEntity = this.stateInitializer.initializeEntityRealm(id, state.entityName, {\n\t\t\t\t\ttype: 'listEntity',\n\t\t\t\t\tparent: state,\n\t\t\t\t})\n\n\t\t\t\tthis.stateInitializer.runImmediateUserInitialization(newEntity, initialize)\n\n\t\t\t\t// The act of creating the entity doesn't constitute a change unless there's something inside to persist.\n\t\t\t\t// TODO forceCreate\n\t\t\t\t// TODO defaultValue\n\t\t\t\tthis.eventManager.registerJustUpdated(state, EventManager.NO_CHANGES_DIFFERENCE)\n\t\t\t}\n\t\t\treturn id\n\t\t})\n\t}\n\n\tpublic getChildEntityById(state: EntityListState, id: EntityId) {\n\t\tconst realm = state.children.get(id)\n\t\tif (realm === undefined) {\n\t\t\tconst isRuntimeId = typeof id === 'number' || uuidValidate(id) || UnpersistedEntityDummyId.matchesDummyId(id)\n\t\t\tif (isRuntimeId) {\n\t\t\t\tthrow new BindingError(`EntityList: cannot retrieve an entity with id '${id}' as it is not on the list.`)\n\t\t\t}\n\t\t\tconst looksLikeKey = typeof id === 'string' && (this.treeStore.entityRealmStore.has(id) || RealmKeyGenerator.vaguelyAppearsToBeAKey(id))\n\t\t\tthrow new BindingError(\n\t\t\t\t`EntityList: cannot retrieve an entity with id '${id}' because it's not a valid id.` +\n\t\t\t\t\t(looksLikeKey\n\t\t\t\t\t\t? `\\nThe supplied value appears to be an entity *key*, not an *id*. List accessors are indexed by ids ` +\n\t\t\t\t\t\t `and you can use \\`EntityAccessor.id\\` to obtain one. Keys, on the other hand, are globally unique and ` +\n\t\t\t\t\t\t `you can use \\`getEntityByKey\\` to get its EntityAccessor.`\n\t\t\t\t\t\t: ''),\n\t\t\t)\n\t\t}\n\t\treturn realm.getAccessor()\n\t}\n}\n"],"names":["EventListenersStore","OperationsHelpers","StateIterator","BindingError","ErrorLocator","MarkerComparator","getEntityMarker","LocalizedBindingError","UnpersistedEntityDummyId","EventManager","uuidValidate","RealmKeyGenerator"],"mappings":";;;;;;;;;;AAoBO,MAAM,eAAe;AAAA,EACpB,YACW,sBACA,qBACA,cACA,kBACA,WAChB;AALgB,SAAA,uBAAA;AACA,SAAA,sBAAA;AACA,SAAA,eAAA;AACA,SAAA,mBAAA;AACA,SAAA,YAAA;AAAA,EACf;AAAA,EAEI,SAAS,WAA4B,OAAwC;AACnF,WAAO,KAAK,qBAAqB,SAAS,WAAW,KAAK;AAAA,EAC3D;AAAA,EAEO,iBACN,OACA,OACA,UACC;AACG,QAAA,MAAM,mBAAmB,QAAW;AACjC,YAAA,iBAAiB,IAAIA,cAAAA;IAC5B;AACA,WAAO,MAAM,eAAe,IAAI,OAAO,QAAQ;AAAA,EAChD;AAAA,EAEO,sBACN,OACA,OACA,UACC;AACG,QAAA,MAAM,wBAAwB,QAAW;AACtC,YAAA,sBAAsB,IAAIA,cAAAA;IACjC;AACA,WAAO,MAAM,oBAAoB,IAAI,OAAO,QAAQ;AAAA,EACrD;AAAA,EAEO,aAAa,OAAwB,gBAAwD;AAC9F,SAAA,aAAa,cAAc,MAAM;AACtB,qBAAA,MAAM,aAAa,KAAK,mBAAmB;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Y,KAAK,iBAAiB,sBAAsB,IAAI,MAAM,YAAY;AAAA,UACnF,MAAM;AAAA,UACN,QAAQ;AAAA,QAAA,CACR;AAEI,aAAA,iBAAiB,+BAA+B,WAAW,UAAU;AAK1E,aAAK,aAAa,oBAAoB,OAAOO,aAAA,aAAa,qBAAqB;AAAA,MAChF;AACO,aAAA;AAAA,IAAA,CACP;AAAA,EACF;AAAA,EAEO,mBAAmB,OAAwB,IAAc;AAC/D,UAAM,QAAQ,MAAM,SAAS,IAAI,EAAE;AACnC,QAAI,UAAU,QAAW;AAClB,YAAA,cAAc,OAAO,OAAO,YAAYC,KAAAA,SAAa,EAAE,KAAKF,cAAyB,yBAAA,eAAe,EAAE;AAC5G,UAAI,aAAa;AAChB,cAAM,IAAIL,cAAA,aAAa,kDAAkD,EAAE,6BAA6B;AAAA,MACzG;AACA,YAAM,eAAe,OAAO,OAAO,aAAa,KAAK,UAAU,iBAAiB,IAAI,EAAE,KAAKQ,kBAAAA,kBAAkB,uBAAuB,EAAE;AACtI,YAAM,IAAIR,cAAA;AAAA,QACT,kDAAkD,EAAE,oCAClD,eACE;AAAA,oQAGA;AAAA,MAAA;AAAA,IAEN;AACA,WAAO,MAAM;EACd;AACD;;"}
1
+ {"version":3,"file":"ListOperations.cjs","sources":["../../../../../../packages/binding-legacy/src/core/operations/ListOperations.ts"],"sourcesContent":["import { validate as uuidValidate } from 'uuid'\nimport type { BatchUpdatesOptions, EntityAccessor, EntityListAccessor, ErrorAccessor } from '@contember/binding-common'\nimport {\n\tBindingError,\n\tEntityId,\n\tEventListenersStore,\n\tLocalizedBindingError,\n\tMarkerComparator,\n\tRuntimeId,\n\tUnpersistedEntityDummyId,\n} from '@contember/binding-common'\nimport type { AccessorErrorManager } from '../AccessorErrorManager'\nimport { EventManager } from '../EventManager'\nimport { RealmKeyGenerator } from '../RealmKeyGenerator'\nimport { EntityListState, getEntityMarker, StateIterator } from '../state'\nimport type { StateInitializer } from '../StateInitializer'\nimport type { TreeStore } from '../TreeStore'\nimport { OperationsHelpers } from './OperationsHelpers'\nimport { ErrorLocator } from '../exceptions/ErrorLocator'\n\nexport class ListOperations {\n\tpublic constructor(\n\t\tprivate readonly accessorErrorManager: AccessorErrorManager,\n\t\tprivate readonly batchUpdatesOptions: BatchUpdatesOptions,\n\t\tprivate readonly eventManager: EventManager,\n\t\tprivate readonly stateInitializer: StateInitializer,\n\t\tprivate readonly treeStore: TreeStore,\n\t) {}\n\n\tpublic addError(listState: EntityListState, error: ErrorAccessor.Error): () => void {\n\t\treturn this.accessorErrorManager.addError(listState, error)\n\t}\n\n\tpublic addEventListener<Type extends keyof EntityListAccessor.RuntimeEntityListEventListenerMap>(\n\t\tstate: EntityListState,\n\t\tevent: { type: Type; key?: string },\n\t\tlistener: EntityListAccessor.EntityListEventListenerMap[Type],\n\t) {\n\t\tif (state.eventListeners === undefined) {\n\t\t\tstate.eventListeners = new EventListenersStore()\n\t\t}\n\t\treturn state.eventListeners.add(event, listener)\n\t}\n\n\tpublic addChildEventListener<Type extends keyof EntityAccessor.EntityEventListenerMap>(\n\t\tstate: EntityListState,\n\t\tevent: { type: Type; key?: string },\n\t\tlistener: EntityAccessor.EntityEventListenerMap[Type],\n\t) {\n\t\tif (state.childEventListeners === undefined) {\n\t\t\tstate.childEventListeners = new EventListenersStore()\n\t\t}\n\t\treturn state.childEventListeners.add(event, listener)\n\t}\n\n\tpublic batchUpdates(state: EntityListState, performUpdates: EntityListAccessor.BatchUpdatesHandler) {\n\t\tthis.eventManager.syncOperation(() => {\n\t\t\tperformUpdates(state.getAccessor, this.batchUpdatesOptions)\n\t\t})\n\t}\n\n\tpublic connectEntity(outerState: EntityListState, entityToConnect: EntityAccessor) {\n\t\tthis.eventManager.syncOperation(() => {\n\t\t\tconst persistedEntityIds = this.treeStore.getEntityListPersistedIds(outerState)\n\t\t\tconst stateToConnect = OperationsHelpers.resolveAndPrepareEntityToConnect(this.treeStore, entityToConnect)\n\t\t\tconst idToConnect = stateToConnect.entity.id\n\n\t\t\t// TODO disable this at the top-level.\n\t\t\tfor (const state of StateIterator.eachSiblingRealmChild(this.treeStore, outerState)) {\n\t\t\t\tif (state.entityName !== stateToConnect.entity.entityName) {\n\t\t\t\t\tthrow new BindingError(\n\t\t\t\t\t\t`EntityListAccessor.connectEntity: Attempting to connect at an entity of type ` +\n\t\t\t\t\t\t\t`'${stateToConnect.entity.entityName}' but '${state.entityName}' is expected.\\n\\n` +\n\t\t\t\t\t\t\t`Entity located at: ${ErrorLocator.locateInternalState(outerState)}.`,\n\t\t\t\t\t)\n\t\t\t\t}\n\n\t\t\t\ttry {\n\t\t\t\t\tMarkerComparator.assertEntityMarkersSubsetOf(\n\t\t\t\t\t\tstate.blueprint.marker.fields,\n\t\t\t\t\t\tgetEntityMarker(stateToConnect).fields,\n\t\t\t\t\t)\n\t\t\t\t} catch (error) {\n\t\t\t\t\tif (error instanceof LocalizedBindingError) {\n\t\t\t\t\t\tthrow new BindingError(\n\t\t\t\t\t\t\t`Entity list: cannot connect entity with key '${entityToConnect.key}' because its fields are ` +\n\t\t\t\t\t\t\t\t`incompatible with entities found on this list. Make sure both trees are equivalent.\\n\\n` +\n\t\t\t\t\t\t\t\t`${error.message}\\n\\n` +\n\t\t\t\t\t\t\t\t(error.markerPath.length > 1\n\t\t\t\t\t\t\t\t\t? `Incompatibility found at: ${ErrorLocator.locateMarkerPath(error.markerPath)}.\\n\\n`\n\t\t\t\t\t\t\t\t\t: '') +\n\t\t\t\t\t\t\t\t`Entity list located at: ${ErrorLocator.locateInternalState(state)}.`,\n\t\t\t\t\t\t)\n\t\t\t\t\t}\n\t\t\t\t\tthrow error\n\t\t\t\t}\n\n\t\t\t\tif (state.children.has(idToConnect.value)) {\n\t\t\t\t\tcontinue\n\t\t\t\t}\n\n\t\t\t\tthis.stateInitializer.initializeEntityRealm(idToConnect, state.entityName, {\n\t\t\t\t\ttype: 'listEntity',\n\t\t\t\t\tparent: state,\n\t\t\t\t}, stateToConnect)\n\n\t\t\t\tstate.plannedRemovals?.delete(idToConnect.value)\n\n\t\t\t\tlet changesDelta = 0\n\n\t\t\t\tif (persistedEntityIds.has(idToConnect.value)) {\n\t\t\t\t\t// It was removed from the list but now we're adding it back.\n\t\t\t\t\tchangesDelta--\n\t\t\t\t} else if (idToConnect.existsOnServer) {\n\t\t\t\t\t// ignoring unpersisted entities\n\t\t\t\t\tchangesDelta++\n\t\t\t\t}\n\t\t\t\tif (stateToConnect.type === 'entityRealm') {\n\t\t\t\t\tchangesDelta += stateToConnect.unpersistedChangesCount\n\t\t\t\t}\n\n\t\t\t\tthis.eventManager.registerJustUpdated(state, changesDelta)\n\t\t\t}\n\t\t})\n\t}\n\n\tpublic disconnectEntity(listState: EntityListState, childEntity: EntityAccessor, options: {noPersist?: boolean}) {\n\t\tthis.eventManager.syncOperation(() => {\n\t\t\t// TODO disable this at the top-level.\n\t\t\tconst persistedEntityIds = this.treeStore.getEntityListPersistedIds(listState)\n\n\t\t\tif (!listState.children.has(childEntity.id)) {\n\t\t\t\tthrow new BindingError(\n\t\t\t\t\t`Entity list doesn't include an entity with id '${childEntity.id}' and so it cannot remove it.`,\n\t\t\t\t)\n\t\t\t}\n\n\t\t\tfor (const state of StateIterator.eachSiblingRealmChild(this.treeStore, listState)) {\n\t\t\t\tconst disconnectedChildIdValue = childEntity.id\n\t\t\t\tconst disconnectedChildRealm = state.children.get(disconnectedChildIdValue)\n\n\t\t\t\tif (disconnectedChildRealm === undefined) {\n\t\t\t\t\tcontinue\n\t\t\t\t}\n\n\t\t\t\tthis.treeStore.disposeOfRealm(disconnectedChildRealm)\n\t\t\t\tstate.children.delete(disconnectedChildIdValue)\n\n\t\t\t\tlet changesDelta = 0\n\n\t\t\t\tif (persistedEntityIds.has(disconnectedChildIdValue)) {\n\t\t\t\t\tchangesDelta++\n\n\t\t\t\t\tif (state.plannedRemovals === undefined) {\n\t\t\t\t\t\tstate.plannedRemovals = new Map()\n\t\t\t\t\t}\n\t\t\t\t\tif (!options.noPersist) {\n\t\t\t\t\t\tstate.plannedRemovals.set(disconnectedChildIdValue, 'disconnect')\n\t\t\t\t\t}\n\t\t\t\t} else if (disconnectedChildRealm.entity.id.existsOnServer) {\n\t\t\t\t\t// Disconnecting unpersisted entities doesn't constitute a change.\n\n\t\t\t\t\t// It wasn't on the list, then it was, and now we're removing it again.\n\t\t\t\t\tchangesDelta--\n\t\t\t\t}\n\n\t\t\t\tif (disconnectedChildRealm.type === 'entityRealm') {\n\t\t\t\t\t// Undoing whatever changes this child had caused.\n\t\t\t\t\tchangesDelta -= disconnectedChildRealm.unpersistedChangesCount\n\t\t\t\t}\n\n\t\t\t\tthis.eventManager.registerJustUpdated(state, changesDelta)\n\t\t\t}\n\t\t})\n\t}\n\n\tpublic createNewEntity(outerState: EntityListState, initialize: EntityAccessor.BatchUpdatesHandler | undefined): RuntimeId {\n\t\treturn this.eventManager.syncOperation((): RuntimeId => {\n\t\t\t// All siblings need to have the same id.\n\t\t\tconst id = new UnpersistedEntityDummyId()\n\n\t\t\tfor (const state of StateIterator.eachSiblingRealmChild(this.treeStore, outerState)) {\n\t\t\t\tconst newEntity = this.stateInitializer.initializeEntityRealm(id, state.entityName, {\n\t\t\t\t\ttype: 'listEntity',\n\t\t\t\t\tparent: state,\n\t\t\t\t})\n\n\t\t\t\tthis.stateInitializer.runImmediateUserInitialization(newEntity, initialize)\n\n\t\t\t\t// The act of creating the entity doesn't constitute a change unless there's something inside to persist.\n\t\t\t\t// TODO forceCreate\n\t\t\t\t// TODO defaultValue\n\t\t\t\tthis.eventManager.registerJustUpdated(state, EventManager.NO_CHANGES_DIFFERENCE)\n\t\t\t}\n\t\t\treturn id\n\t\t})\n\t}\n\n\tpublic getChildEntityById(state: EntityListState, id: EntityId) {\n\t\tconst realm = state.children.get(id)\n\t\tif (realm === undefined) {\n\t\t\tconst isRuntimeId = typeof id === 'number' || uuidValidate(id) || UnpersistedEntityDummyId.matchesDummyId(id)\n\t\t\tif (isRuntimeId) {\n\t\t\t\tthrow new BindingError(`EntityList: cannot retrieve an entity with id '${id}' as it is not on the list.`)\n\t\t\t}\n\t\t\tconst looksLikeKey = typeof id === 'string' && (this.treeStore.entityRealmStore.has(id) || RealmKeyGenerator.vaguelyAppearsToBeAKey(id))\n\t\t\tthrow new BindingError(\n\t\t\t\t`EntityList: cannot retrieve an entity with id '${id}' because it's not a valid id.` +\n\t\t\t\t\t(looksLikeKey\n\t\t\t\t\t\t? `\\nThe supplied value appears to be an entity *key*, not an *id*. List accessors are indexed by ids ` +\n\t\t\t\t\t\t `and you can use \\`EntityAccessor.id\\` to obtain one. Keys, on the other hand, are globally unique and ` +\n\t\t\t\t\t\t `you can use \\`getEntityByKey\\` to get its EntityAccessor.`\n\t\t\t\t\t\t: ''),\n\t\t\t)\n\t\t}\n\t\treturn realm.getAccessor()\n\t}\n}\n"],"names":["EventListenersStore","OperationsHelpers","StateIterator","BindingError","ErrorLocator","MarkerComparator","getEntityMarker","LocalizedBindingError","UnpersistedEntityDummyId","EventManager","uuidValidate","RealmKeyGenerator"],"mappings":";;;;;;;;;;AAoBO,MAAM,eAAe;AAAA,EACpB,YACW,sBACA,qBACA,cACA,kBACA,WAChB;AALgB,SAAA,uBAAA;AACA,SAAA,sBAAA;AACA,SAAA,eAAA;AACA,SAAA,mBAAA;AACA,SAAA,YAAA;AAAA,EACf;AAAA,EAEI,SAAS,WAA4B,OAAwC;AACnF,WAAO,KAAK,qBAAqB,SAAS,WAAW,KAAK;AAAA,EAC3D;AAAA,EAEO,iBACN,OACA,OACA,UACC;AACG,QAAA,MAAM,mBAAmB,QAAW;AACjC,YAAA,iBAAiB,IAAIA,cAAAA;IAC5B;AACA,WAAO,MAAM,eAAe,IAAI,OAAO,QAAQ;AAAA,EAChD;AAAA,EAEO,sBACN,OACA,OACA,UACC;AACG,QAAA,MAAM,wBAAwB,QAAW;AACtC,YAAA,sBAAsB,IAAIA,cAAAA;IACjC;AACA,WAAO,MAAM,oBAAoB,IAAI,OAAO,QAAQ;AAAA,EACrD;AAAA,EAE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BAAgB,YAA6B,YAAuE;AACnH,WAAA,KAAK,aAAa,cAAc,MAAiB;AAEjD,YAAA,KAAK,IAAIM,cAAAA;AAEf,iBAAW,SAASN,4BAAc,sBAAsB,KAAK,WAAW,UAAU,GAAG;AACpF,cAAM,YAAY,KAAK,iBAAiB,sBAAsB,IAAI,MAAM,YAAY;AAAA,UACnF,MAAM;AAAA,UACN,QAAQ;AAAA,QAAA,CACR;AAEI,aAAA,iBAAiB,+BAA+B,WAAW,UAAU;AAK1E,aAAK,aAAa,oBAAoB,OAAOO,aAAA,aAAa,qBAAqB;AAAA,MAChF;AACO,aAAA;AAAA,IAAA,CACP;AAAA,EACF;AAAA,EAEO,mBAAmB,OAAwB,IAAc;AAC/D,UAAM,QAAQ,MAAM,SAAS,IAAI,EAAE;AACnC,QAAI,UAAU,QAAW;AAClB,YAAA,cAAc,OAAO,OAAO,YAAYC,KAAAA,SAAa,EAAE,KAAKF,cAAyB,yBAAA,eAAe,EAAE;AAC5G,UAAI,aAAa;AAChB,cAAM,IAAIL,cAAA,aAAa,kDAAkD,EAAE,6BAA6B;AAAA,MACzG;AACA,YAAM,eAAe,OAAO,OAAO,aAAa,KAAK,UAAU,iBAAiB,IAAI,EAAE,KAAKQ,kBAAAA,kBAAkB,uBAAuB,EAAE;AACtI,YAAM,IAAIR,cAAA;AAAA,QACT,kDAAkD,EAAE,oCAClD,eACE;AAAA,oQAGA;AAAA,MAAA;AAAA,IAEN;AACA,WAAO,MAAM;EACd;AACD;;"}
@@ -90,13 +90,16 @@ ${error.message}
90
90
  disconnectEntity(listState, childEntity, options) {
91
91
  this.eventManager.syncOperation(() => {
92
92
  const persistedEntityIds = this.treeStore.getEntityListPersistedIds(listState);
93
+ if (!listState.children.has(childEntity.id)) {
94
+ throw new BindingError(
95
+ `Entity list doesn't include an entity with id '${childEntity.id}' and so it cannot remove it.`
96
+ );
97
+ }
93
98
  for (const state of StateIterator.eachSiblingRealmChild(this.treeStore, listState)) {
94
99
  const disconnectedChildIdValue = childEntity.id;
95
100
  const disconnectedChildRealm = state.children.get(disconnectedChildIdValue);
96
101
  if (disconnectedChildRealm === void 0) {
97
- throw new BindingError(
98
- `Entity list doesn't include an entity with id '${disconnectedChildIdValue}' and so it cannot remove it.`
99
- );
102
+ continue;
100
103
  }
101
104
  this.treeStore.disposeOfRealm(disconnectedChildRealm);
102
105
  state.children.delete(disconnectedChildIdValue);
@@ -1 +1 @@
1
- {"version":3,"file":"ListOperations.js","sources":["../../../../../../packages/binding-legacy/src/core/operations/ListOperations.ts"],"sourcesContent":["import { validate as uuidValidate } from 'uuid'\nimport type { BatchUpdatesOptions, EntityAccessor, EntityListAccessor, ErrorAccessor } from '@contember/binding-common'\nimport {\n\tBindingError,\n\tEntityId,\n\tEventListenersStore,\n\tLocalizedBindingError,\n\tMarkerComparator,\n\tRuntimeId,\n\tUnpersistedEntityDummyId,\n} from '@contember/binding-common'\nimport type { AccessorErrorManager } from '../AccessorErrorManager'\nimport { EventManager } from '../EventManager'\nimport { RealmKeyGenerator } from '../RealmKeyGenerator'\nimport { EntityListState, getEntityMarker, StateIterator } from '../state'\nimport type { StateInitializer } from '../StateInitializer'\nimport type { TreeStore } from '../TreeStore'\nimport { OperationsHelpers } from './OperationsHelpers'\nimport { ErrorLocator } from '../exceptions/ErrorLocator'\n\nexport class ListOperations {\n\tpublic constructor(\n\t\tprivate readonly accessorErrorManager: AccessorErrorManager,\n\t\tprivate readonly batchUpdatesOptions: BatchUpdatesOptions,\n\t\tprivate readonly eventManager: EventManager,\n\t\tprivate readonly stateInitializer: StateInitializer,\n\t\tprivate readonly treeStore: TreeStore,\n\t) {}\n\n\tpublic addError(listState: EntityListState, error: ErrorAccessor.Error): () => void {\n\t\treturn this.accessorErrorManager.addError(listState, error)\n\t}\n\n\tpublic addEventListener<Type extends keyof EntityListAccessor.RuntimeEntityListEventListenerMap>(\n\t\tstate: EntityListState,\n\t\tevent: { type: Type; key?: string },\n\t\tlistener: EntityListAccessor.EntityListEventListenerMap[Type],\n\t) {\n\t\tif (state.eventListeners === undefined) {\n\t\t\tstate.eventListeners = new EventListenersStore()\n\t\t}\n\t\treturn state.eventListeners.add(event, listener)\n\t}\n\n\tpublic addChildEventListener<Type extends keyof EntityAccessor.EntityEventListenerMap>(\n\t\tstate: EntityListState,\n\t\tevent: { type: Type; key?: string },\n\t\tlistener: EntityAccessor.EntityEventListenerMap[Type],\n\t) {\n\t\tif (state.childEventListeners === undefined) {\n\t\t\tstate.childEventListeners = new EventListenersStore()\n\t\t}\n\t\treturn state.childEventListeners.add(event, listener)\n\t}\n\n\tpublic batchUpdates(state: EntityListState, performUpdates: EntityListAccessor.BatchUpdatesHandler) {\n\t\tthis.eventManager.syncOperation(() => {\n\t\t\tperformUpdates(state.getAccessor, this.batchUpdatesOptions)\n\t\t})\n\t}\n\n\tpublic connectEntity(outerState: EntityListState, entityToConnect: EntityAccessor) {\n\t\tthis.eventManager.syncOperation(() => {\n\t\t\tconst persistedEntityIds = this.treeStore.getEntityListPersistedIds(outerState)\n\t\t\tconst stateToConnect = OperationsHelpers.resolveAndPrepareEntityToConnect(this.treeStore, entityToConnect)\n\t\t\tconst idToConnect = stateToConnect.entity.id\n\n\t\t\t// TODO disable this at the top-level.\n\t\t\tfor (const state of StateIterator.eachSiblingRealmChild(this.treeStore, outerState)) {\n\t\t\t\tif (state.entityName !== stateToConnect.entity.entityName) {\n\t\t\t\t\tthrow new BindingError(\n\t\t\t\t\t\t`EntityListAccessor.connectEntity: Attempting to connect at an entity of type ` +\n\t\t\t\t\t\t\t`'${stateToConnect.entity.entityName}' but '${state.entityName}' is expected.\\n\\n` +\n\t\t\t\t\t\t\t`Entity located at: ${ErrorLocator.locateInternalState(outerState)}.`,\n\t\t\t\t\t)\n\t\t\t\t}\n\n\t\t\t\ttry {\n\t\t\t\t\tMarkerComparator.assertEntityMarkersSubsetOf(\n\t\t\t\t\t\tstate.blueprint.marker.fields,\n\t\t\t\t\t\tgetEntityMarker(stateToConnect).fields,\n\t\t\t\t\t)\n\t\t\t\t} catch (error) {\n\t\t\t\t\tif (error instanceof LocalizedBindingError) {\n\t\t\t\t\t\tthrow new BindingError(\n\t\t\t\t\t\t\t`Entity list: cannot connect entity with key '${entityToConnect.key}' because its fields are ` +\n\t\t\t\t\t\t\t\t`incompatible with entities found on this list. Make sure both trees are equivalent.\\n\\n` +\n\t\t\t\t\t\t\t\t`${error.message}\\n\\n` +\n\t\t\t\t\t\t\t\t(error.markerPath.length > 1\n\t\t\t\t\t\t\t\t\t? `Incompatibility found at: ${ErrorLocator.locateMarkerPath(error.markerPath)}.\\n\\n`\n\t\t\t\t\t\t\t\t\t: '') +\n\t\t\t\t\t\t\t\t`Entity list located at: ${ErrorLocator.locateInternalState(state)}.`,\n\t\t\t\t\t\t)\n\t\t\t\t\t}\n\t\t\t\t\tthrow error\n\t\t\t\t}\n\n\t\t\t\tif (state.children.has(idToConnect.value)) {\n\t\t\t\t\tcontinue\n\t\t\t\t}\n\n\t\t\t\tthis.stateInitializer.initializeEntityRealm(idToConnect, state.entityName, {\n\t\t\t\t\ttype: 'listEntity',\n\t\t\t\t\tparent: state,\n\t\t\t\t}, stateToConnect)\n\n\t\t\t\tstate.plannedRemovals?.delete(idToConnect.value)\n\n\t\t\t\tlet changesDelta = 0\n\n\t\t\t\tif (persistedEntityIds.has(idToConnect.value)) {\n\t\t\t\t\t// It was removed from the list but now we're adding it back.\n\t\t\t\t\tchangesDelta--\n\t\t\t\t} else if (idToConnect.existsOnServer) {\n\t\t\t\t\t// ignoring unpersisted entities\n\t\t\t\t\tchangesDelta++\n\t\t\t\t}\n\t\t\t\tif (stateToConnect.type === 'entityRealm') {\n\t\t\t\t\tchangesDelta += stateToConnect.unpersistedChangesCount\n\t\t\t\t}\n\n\t\t\t\tthis.eventManager.registerJustUpdated(state, changesDelta)\n\t\t\t}\n\t\t})\n\t}\n\n\tpublic disconnectEntity(listState: EntityListState, childEntity: EntityAccessor, options: {noPersist?: boolean}) {\n\t\tthis.eventManager.syncOperation(() => {\n\t\t\t// TODO disable this at the top-level.\n\t\t\tconst persistedEntityIds = this.treeStore.getEntityListPersistedIds(listState)\n\t\t\tfor (const state of StateIterator.eachSiblingRealmChild(this.treeStore, listState)) {\n\t\t\t\tconst disconnectedChildIdValue = childEntity.id\n\t\t\t\tconst disconnectedChildRealm = state.children.get(disconnectedChildIdValue)\n\n\t\t\t\tif (disconnectedChildRealm === undefined) {\n\t\t\t\t\tthrow new BindingError(\n\t\t\t\t\t\t`Entity list doesn't include an entity with id '${disconnectedChildIdValue}' and so it cannot remove it.`,\n\t\t\t\t\t)\n\t\t\t\t}\n\n\t\t\t\tthis.treeStore.disposeOfRealm(disconnectedChildRealm)\n\t\t\t\tstate.children.delete(disconnectedChildIdValue)\n\n\t\t\t\tlet changesDelta = 0\n\n\t\t\t\tif (persistedEntityIds.has(disconnectedChildIdValue)) {\n\t\t\t\t\tchangesDelta++\n\n\t\t\t\t\tif (state.plannedRemovals === undefined) {\n\t\t\t\t\t\tstate.plannedRemovals = new Map()\n\t\t\t\t\t}\n\t\t\t\t\tif (!options.noPersist) {\n\t\t\t\t\t\tstate.plannedRemovals.set(disconnectedChildIdValue, 'disconnect')\n\t\t\t\t\t}\n\t\t\t\t} else if (disconnectedChildRealm.entity.id.existsOnServer) {\n\t\t\t\t\t// Disconnecting unpersisted entities doesn't constitute a change.\n\n\t\t\t\t\t// It wasn't on the list, then it was, and now we're removing it again.\n\t\t\t\t\tchangesDelta--\n\t\t\t\t}\n\n\t\t\t\tif (disconnectedChildRealm.type === 'entityRealm') {\n\t\t\t\t\t// Undoing whatever changes this child had caused.\n\t\t\t\t\tchangesDelta -= disconnectedChildRealm.unpersistedChangesCount\n\t\t\t\t}\n\n\t\t\t\tthis.eventManager.registerJustUpdated(state, changesDelta)\n\t\t\t}\n\t\t})\n\t}\n\n\tpublic createNewEntity(outerState: EntityListState, initialize: EntityAccessor.BatchUpdatesHandler | undefined): RuntimeId {\n\t\treturn this.eventManager.syncOperation((): RuntimeId => {\n\t\t\t// All siblings need to have the same id.\n\t\t\tconst id = new UnpersistedEntityDummyId()\n\n\t\t\tfor (const state of StateIterator.eachSiblingRealmChild(this.treeStore, outerState)) {\n\t\t\t\tconst newEntity = this.stateInitializer.initializeEntityRealm(id, state.entityName, {\n\t\t\t\t\ttype: 'listEntity',\n\t\t\t\t\tparent: state,\n\t\t\t\t})\n\n\t\t\t\tthis.stateInitializer.runImmediateUserInitialization(newEntity, initialize)\n\n\t\t\t\t// The act of creating the entity doesn't constitute a change unless there's something inside to persist.\n\t\t\t\t// TODO forceCreate\n\t\t\t\t// TODO defaultValue\n\t\t\t\tthis.eventManager.registerJustUpdated(state, EventManager.NO_CHANGES_DIFFERENCE)\n\t\t\t}\n\t\t\treturn id\n\t\t})\n\t}\n\n\tpublic getChildEntityById(state: EntityListState, id: EntityId) {\n\t\tconst realm = state.children.get(id)\n\t\tif (realm === undefined) {\n\t\t\tconst isRuntimeId = typeof id === 'number' || uuidValidate(id) || UnpersistedEntityDummyId.matchesDummyId(id)\n\t\t\tif (isRuntimeId) {\n\t\t\t\tthrow new BindingError(`EntityList: cannot retrieve an entity with id '${id}' as it is not on the list.`)\n\t\t\t}\n\t\t\tconst looksLikeKey = typeof id === 'string' && (this.treeStore.entityRealmStore.has(id) || RealmKeyGenerator.vaguelyAppearsToBeAKey(id))\n\t\t\tthrow new BindingError(\n\t\t\t\t`EntityList: cannot retrieve an entity with id '${id}' because it's not a valid id.` +\n\t\t\t\t\t(looksLikeKey\n\t\t\t\t\t\t? `\\nThe supplied value appears to be an entity *key*, not an *id*. List accessors are indexed by ids ` +\n\t\t\t\t\t\t `and you can use \\`EntityAccessor.id\\` to obtain one. Keys, on the other hand, are globally unique and ` +\n\t\t\t\t\t\t `you can use \\`getEntityByKey\\` to get its EntityAccessor.`\n\t\t\t\t\t\t: ''),\n\t\t\t)\n\t\t}\n\t\treturn realm.getAccessor()\n\t}\n}\n"],"names":["uuidValidate"],"mappings":";;;;;;;;AAoBO,MAAM,eAAe;AA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N;AACA,WAAO,MAAM;EACd;AACD;"}
1
+ {"version":3,"file":"ListOperations.js","sources":["../../../../../../packages/binding-legacy/src/core/operations/ListOperations.ts"],"sourcesContent":["import { validate as uuidValidate } from 'uuid'\nimport type { BatchUpdatesOptions, EntityAccessor, EntityListAccessor, ErrorAccessor } from '@contember/binding-common'\nimport {\n\tBindingError,\n\tEntityId,\n\tEventListenersStore,\n\tLocalizedBindingError,\n\tMarkerComparator,\n\tRuntimeId,\n\tUnpersistedEntityDummyId,\n} from '@contember/binding-common'\nimport type { AccessorErrorManager } from '../AccessorErrorManager'\nimport { EventManager } from '../EventManager'\nimport { RealmKeyGenerator } from '../RealmKeyGenerator'\nimport { EntityListState, getEntityMarker, StateIterator } from '../state'\nimport type { StateInitializer } from '../StateInitializer'\nimport type { TreeStore } from '../TreeStore'\nimport { OperationsHelpers } from './OperationsHelpers'\nimport { ErrorLocator } from '../exceptions/ErrorLocator'\n\nexport class ListOperations {\n\tpublic constructor(\n\t\tprivate readonly accessorErrorManager: AccessorErrorManager,\n\t\tprivate readonly batchUpdatesOptions: BatchUpdatesOptions,\n\t\tprivate readonly eventManager: EventManager,\n\t\tprivate readonly stateInitializer: StateInitializer,\n\t\tprivate readonly treeStore: TreeStore,\n\t) {}\n\n\tpublic addError(listState: EntityListState, error: ErrorAccessor.Error): () => void {\n\t\treturn this.accessorErrorManager.addError(listState, error)\n\t}\n\n\tpublic addEventListener<Type extends keyof EntityListAccessor.RuntimeEntityListEventListenerMap>(\n\t\tstate: EntityListState,\n\t\tevent: { type: Type; key?: string },\n\t\tlistener: EntityListAccessor.EntityListEventListenerMap[Type],\n\t) {\n\t\tif (state.eventListeners === undefined) {\n\t\t\tstate.eventListeners = new EventListenersStore()\n\t\t}\n\t\treturn state.eventListeners.add(event, listener)\n\t}\n\n\tpublic addChildEventListener<Type extends keyof EntityAccessor.EntityEventListenerMap>(\n\t\tstate: EntityListState,\n\t\tevent: { type: Type; key?: string },\n\t\tlistener: EntityAccessor.EntityEventListenerMap[Type],\n\t) {\n\t\tif (state.childEventListeners === undefined) {\n\t\t\tstate.childEventListeners = new EventListenersStore()\n\t\t}\n\t\treturn state.childEventListeners.add(event, listener)\n\t}\n\n\tpublic batchUpdates(state: EntityListState, performUpdates: EntityListAccessor.BatchUpdatesHandler) {\n\t\tthis.eventManager.syncOperation(() => {\n\t\t\tperformUpdates(state.getAccessor, this.batchUpdatesOptions)\n\t\t})\n\t}\n\n\tpublic connectEntity(outerState: EntityListState, entityToConnect: EntityAccessor) {\n\t\tthis.eventManager.syncOperation(() => {\n\t\t\tconst persistedEntityIds = this.treeStore.getEntityListPersistedIds(outerState)\n\t\t\tconst stateToConnect = OperationsHelpers.resolveAndPrepareEntityToConnect(this.treeStore, entityToConnect)\n\t\t\tconst idToConnect = stateToConnect.entity.id\n\n\t\t\t// TODO disable this at the top-level.\n\t\t\tfor (const state of StateIterator.eachSiblingRealmChild(this.treeStore, outerState)) {\n\t\t\t\tif (state.entityName !== stateToConnect.entity.entityName) {\n\t\t\t\t\tthrow new BindingError(\n\t\t\t\t\t\t`EntityListAccessor.connectEntity: Attempting to connect at an entity of type ` +\n\t\t\t\t\t\t\t`'${stateToConnect.entity.entityName}' but '${state.entityName}' is expected.\\n\\n` +\n\t\t\t\t\t\t\t`Entity located at: ${ErrorLocator.locateInternalState(outerState)}.`,\n\t\t\t\t\t)\n\t\t\t\t}\n\n\t\t\t\ttry {\n\t\t\t\t\tMarkerComparator.assertEntityMarkersSubsetOf(\n\t\t\t\t\t\tstate.blueprint.marker.fields,\n\t\t\t\t\t\tgetEntityMarker(stateToConnect).fields,\n\t\t\t\t\t)\n\t\t\t\t} catch (error) {\n\t\t\t\t\tif (error instanceof LocalizedBindingError) {\n\t\t\t\t\t\tthrow new BindingError(\n\t\t\t\t\t\t\t`Entity list: cannot connect entity with key '${entityToConnect.key}' because its fields are ` +\n\t\t\t\t\t\t\t\t`incompatible with entities found on this list. Make sure both trees are equivalent.\\n\\n` +\n\t\t\t\t\t\t\t\t`${error.message}\\n\\n` +\n\t\t\t\t\t\t\t\t(error.markerPath.length > 1\n\t\t\t\t\t\t\t\t\t? `Incompatibility found at: ${ErrorLocator.locateMarkerPath(error.markerPath)}.\\n\\n`\n\t\t\t\t\t\t\t\t\t: '') +\n\t\t\t\t\t\t\t\t`Entity list located at: ${ErrorLocator.locateInternalState(state)}.`,\n\t\t\t\t\t\t)\n\t\t\t\t\t}\n\t\t\t\t\tthrow error\n\t\t\t\t}\n\n\t\t\t\tif (state.children.has(idToConnect.value)) {\n\t\t\t\t\tcontinue\n\t\t\t\t}\n\n\t\t\t\tthis.stateInitializer.initializeEntityRealm(idToConnect, state.entityName, {\n\t\t\t\t\ttype: 'listEntity',\n\t\t\t\t\tparent: state,\n\t\t\t\t}, stateToConnect)\n\n\t\t\t\tstate.plannedRemovals?.delete(idToConnect.value)\n\n\t\t\t\tlet changesDelta = 0\n\n\t\t\t\tif (persistedEntityIds.has(idToConnect.value)) {\n\t\t\t\t\t// It was removed from the list but now we're adding it back.\n\t\t\t\t\tchangesDelta--\n\t\t\t\t} else if (idToConnect.existsOnServer) {\n\t\t\t\t\t// ignoring unpersisted entities\n\t\t\t\t\tchangesDelta++\n\t\t\t\t}\n\t\t\t\tif (stateToConnect.type === 'entityRealm') {\n\t\t\t\t\tchangesDelta += stateToConnect.unpersistedChangesCount\n\t\t\t\t}\n\n\t\t\t\tthis.eventManager.registerJustUpdated(state, changesDelta)\n\t\t\t}\n\t\t})\n\t}\n\n\tpublic disconnectEntity(listState: EntityListState, childEntity: EntityAccessor, options: {noPersist?: boolean}) {\n\t\tthis.eventManager.syncOperation(() => {\n\t\t\t// TODO disable this at the top-level.\n\t\t\tconst persistedEntityIds = this.treeStore.getEntityListPersistedIds(listState)\n\n\t\t\tif (!listState.children.has(childEntity.id)) {\n\t\t\t\tthrow new BindingError(\n\t\t\t\t\t`Entity list doesn't include an entity with id '${childEntity.id}' and so it cannot remove it.`,\n\t\t\t\t)\n\t\t\t}\n\n\t\t\tfor (const state of StateIterator.eachSiblingRealmChild(this.treeStore, listState)) {\n\t\t\t\tconst disconnectedChildIdValue = childEntity.id\n\t\t\t\tconst disconnectedChildRealm = state.children.get(disconnectedChildIdValue)\n\n\t\t\t\tif (disconnectedChildRealm === undefined) {\n\t\t\t\t\tcontinue\n\t\t\t\t}\n\n\t\t\t\tthis.treeStore.disposeOfRealm(disconnectedChildRealm)\n\t\t\t\tstate.children.delete(disconnectedChildIdValue)\n\n\t\t\t\tlet changesDelta = 0\n\n\t\t\t\tif (persistedEntityIds.has(disconnectedChildIdValue)) {\n\t\t\t\t\tchangesDelta++\n\n\t\t\t\t\tif (state.plannedRemovals === undefined) {\n\t\t\t\t\t\tstate.plannedRemovals = new Map()\n\t\t\t\t\t}\n\t\t\t\t\tif (!options.noPersist) {\n\t\t\t\t\t\tstate.plannedRemovals.set(disconnectedChildIdValue, 'disconnect')\n\t\t\t\t\t}\n\t\t\t\t} else if (disconnectedChildRealm.entity.id.existsOnServer) {\n\t\t\t\t\t// Disconnecting unpersisted entities doesn't constitute a change.\n\n\t\t\t\t\t// It wasn't on the list, then it was, and now we're removing it again.\n\t\t\t\t\tchangesDelta--\n\t\t\t\t}\n\n\t\t\t\tif (disconnectedChildRealm.type === 'entityRealm') {\n\t\t\t\t\t// Undoing whatever changes this child had caused.\n\t\t\t\t\tchangesDelta -= disconnectedChildRealm.unpersistedChangesCount\n\t\t\t\t}\n\n\t\t\t\tthis.eventManager.registerJustUpdated(state, changesDelta)\n\t\t\t}\n\t\t})\n\t}\n\n\tpublic createNewEntity(outerState: EntityListState, initialize: EntityAccessor.BatchUpdatesHandler | undefined): RuntimeId {\n\t\treturn this.eventManager.syncOperation((): RuntimeId => {\n\t\t\t// All siblings need to have the same id.\n\t\t\tconst id = new UnpersistedEntityDummyId()\n\n\t\t\tfor (const state of StateIterator.eachSiblingRealmChild(this.treeStore, outerState)) {\n\t\t\t\tconst newEntity = this.stateInitializer.initializeEntityRealm(id, state.entityName, {\n\t\t\t\t\ttype: 'listEntity',\n\t\t\t\t\tparent: state,\n\t\t\t\t})\n\n\t\t\t\tthis.stateInitializer.runImmediateUserInitialization(newEntity, initialize)\n\n\t\t\t\t// The act of creating the entity doesn't constitute a change unless there's something inside to persist.\n\t\t\t\t// TODO forceCreate\n\t\t\t\t// TODO defaultValue\n\t\t\t\tthis.eventManager.registerJustUpdated(state, EventManager.NO_CHANGES_DIFFERENCE)\n\t\t\t}\n\t\t\treturn id\n\t\t})\n\t}\n\n\tpublic getChildEntityById(state: EntityListState, id: EntityId) {\n\t\tconst realm = state.children.get(id)\n\t\tif (realm === undefined) {\n\t\t\tconst isRuntimeId = typeof id === 'number' || uuidValidate(id) || UnpersistedEntityDummyId.matchesDummyId(id)\n\t\t\tif (isRuntimeId) {\n\t\t\t\tthrow new BindingError(`EntityList: cannot retrieve an entity with id '${id}' as it is not on the list.`)\n\t\t\t}\n\t\t\tconst looksLikeKey = typeof id === 'string' && (this.treeStore.entityRealmStore.has(id) || RealmKeyGenerator.vaguelyAppearsToBeAKey(id))\n\t\t\tthrow new BindingError(\n\t\t\t\t`EntityList: cannot retrieve an entity with id '${id}' because it's not a valid id.` +\n\t\t\t\t\t(looksLikeKey\n\t\t\t\t\t\t? `\\nThe supplied value appears to be an entity *key*, not an *id*. List accessors are indexed by ids ` +\n\t\t\t\t\t\t `and you can use \\`EntityAccessor.id\\` to obtain one. Keys, on the other hand, are globally unique and ` +\n\t\t\t\t\t\t `you can use \\`getEntityByKey\\` to get its EntityAccessor.`\n\t\t\t\t\t\t: ''),\n\t\t\t)\n\t\t}\n\t\treturn realm.getAccessor()\n\t}\n}\n"],"names":["uuidValidate"],"mappings":";;;;;;;;AAoBO,MAAM,eAAe;AAAA,EACpB,YACW,sBACA,qBACA,cACA,kBACA,WAChB;AALgB,SAAA,uBAAA;AACA,SAAA,sBAAA;AACA,SAAA,eAAA;AACA,SAAA,mBAAA;AACA,SAAA,YAAA;AAAA,EACf;AAAA,EAEI,SAAS,WAA4B,OAAwC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Manager.syncOperation(() => {
94
94
  const persistedEntityIds = this.treeStore.getEntityListPersistedIds(listState);
95
+ if (!listState.children.has(childEntity.id)) {
96
+ throw new bindingCommon.BindingError(
97
+ `Entity list doesn't include an entity with id '${childEntity.id}' and so it cannot remove it.`
98
+ );
99
+ }
95
100
  for (const state of StateIterator.StateIterator.eachSiblingRealmChild(this.treeStore, listState)) {
96
101
  const disconnectedChildIdValue = childEntity.id;
97
102
  const disconnectedChildRealm = state.children.get(disconnectedChildIdValue);
98
103
  if (disconnectedChildRealm === void 0) {
99
- throw new bindingCommon.BindingError(
100
- `Entity list doesn't include an entity with id '${disconnectedChildIdValue}' and so it cannot remove it.`
101
- );
104
+ continue;
102
105
  }
103
106
  this.treeStore.disposeOfRealm(disconnectedChildRealm);
104
107
  state.children.delete(disconnectedChildIdValue);
@@ -1 +1 @@
1
- {"version":3,"file":"ListOperations.cjs","sources":["../../../../../../packages/binding-legacy/src/core/operations/ListOperations.ts"],"sourcesContent":["import { validate as uuidValidate } from 'uuid'\nimport type { BatchUpdatesOptions, EntityAccessor, EntityListAccessor, ErrorAccessor } from '@contember/binding-common'\nimport {\n\tBindingError,\n\tEntityId,\n\tEventListenersStore,\n\tLocalizedBindingError,\n\tMarkerComparator,\n\tRuntimeId,\n\tUnpersistedEntityDummyId,\n} from '@contember/binding-common'\nimport type { AccessorErrorManager } from '../AccessorErrorManager'\nimport { EventManager } from '../EventManager'\nimport { RealmKeyGenerator } from '../RealmKeyGenerator'\nimport { EntityListState, getEntityMarker, StateIterator } from '../state'\nimport type { StateInitializer } from '../StateInitializer'\nimport type { TreeStore } from '../TreeStore'\nimport { OperationsHelpers } from './OperationsHelpers'\nimport { ErrorLocator } from '../exceptions/ErrorLocator'\n\nexport class ListOperations {\n\tpublic constructor(\n\t\tprivate readonly accessorErrorManager: AccessorErrorManager,\n\t\tprivate readonly batchUpdatesOptions: BatchUpdatesOptions,\n\t\tprivate readonly eventManager: EventManager,\n\t\tprivate readonly stateInitializer: StateInitializer,\n\t\tprivate readonly treeStore: TreeStore,\n\t) {}\n\n\tpublic addError(listState: EntityListState, error: ErrorAccessor.Error): () => void {\n\t\treturn this.accessorErrorManager.addError(listState, error)\n\t}\n\n\tpublic addEventListener<Type extends keyof EntityListAccessor.RuntimeEntityListEventListenerMap>(\n\t\tstate: EntityListState,\n\t\tevent: { type: Type; key?: string },\n\t\tlistener: EntityListAccessor.EntityListEventListenerMap[Type],\n\t) {\n\t\tif (state.eventListeners === undefined) {\n\t\t\tstate.eventListeners = new EventListenersStore()\n\t\t}\n\t\treturn state.eventListeners.add(event, listener)\n\t}\n\n\tpublic addChildEventListener<Type extends keyof EntityAccessor.EntityEventListenerMap>(\n\t\tstate: EntityListState,\n\t\tevent: { type: Type; key?: string },\n\t\tlistener: EntityAccessor.EntityEventListenerMap[Type],\n\t) {\n\t\tif (state.childEventListeners === undefined) {\n\t\t\tstate.childEventListeners = new EventListenersStore()\n\t\t}\n\t\treturn state.childEventListeners.add(event, listener)\n\t}\n\n\tpublic batchUpdates(state: EntityListState, performUpdates: EntityListAccessor.BatchUpdatesHandler) {\n\t\tthis.eventManager.syncOperation(() => {\n\t\t\tperformUpdates(state.getAccessor, this.batchUpdatesOptions)\n\t\t})\n\t}\n\n\tpublic connectEntity(outerState: EntityListState, entityToConnect: EntityAccessor) {\n\t\tthis.eventManager.syncOperation(() => {\n\t\t\tconst persistedEntityIds = this.treeStore.getEntityListPersistedIds(outerState)\n\t\t\tconst stateToConnect = OperationsHelpers.resolveAndPrepareEntityToConnect(this.treeStore, entityToConnect)\n\t\t\tconst idToConnect = stateToConnect.entity.id\n\n\t\t\t// TODO disable this at the top-level.\n\t\t\tfor (const state of StateIterator.eachSiblingRealmChild(this.treeStore, outerState)) {\n\t\t\t\tif (state.entityName !== stateToConnect.entity.entityName) {\n\t\t\t\t\tthrow new BindingError(\n\t\t\t\t\t\t`EntityListAccessor.connectEntity: Attempting to connect at an entity of type ` +\n\t\t\t\t\t\t\t`'${stateToConnect.entity.entityName}' but '${state.entityName}' is expected.\\n\\n` +\n\t\t\t\t\t\t\t`Entity located at: ${ErrorLocator.locateInternalState(outerState)}.`,\n\t\t\t\t\t)\n\t\t\t\t}\n\n\t\t\t\ttry {\n\t\t\t\t\tMarkerComparator.assertEntityMarkersSubsetOf(\n\t\t\t\t\t\tstate.blueprint.marker.fields,\n\t\t\t\t\t\tgetEntityMarker(stateToConnect).fields,\n\t\t\t\t\t)\n\t\t\t\t} catch (error) {\n\t\t\t\t\tif (error instanceof LocalizedBindingError) {\n\t\t\t\t\t\tthrow new BindingError(\n\t\t\t\t\t\t\t`Entity list: cannot connect entity with key '${entityToConnect.key}' because its fields are ` +\n\t\t\t\t\t\t\t\t`incompatible with entities found on this list. Make sure both trees are equivalent.\\n\\n` +\n\t\t\t\t\t\t\t\t`${error.message}\\n\\n` +\n\t\t\t\t\t\t\t\t(error.markerPath.length > 1\n\t\t\t\t\t\t\t\t\t? `Incompatibility found at: ${ErrorLocator.locateMarkerPath(error.markerPath)}.\\n\\n`\n\t\t\t\t\t\t\t\t\t: '') +\n\t\t\t\t\t\t\t\t`Entity list located at: ${ErrorLocator.locateInternalState(state)}.`,\n\t\t\t\t\t\t)\n\t\t\t\t\t}\n\t\t\t\t\tthrow error\n\t\t\t\t}\n\n\t\t\t\tif (state.children.has(idToConnect.value)) {\n\t\t\t\t\tcontinue\n\t\t\t\t}\n\n\t\t\t\tthis.stateInitializer.initializeEntityRealm(idToConnect, state.entityName, {\n\t\t\t\t\ttype: 'listEntity',\n\t\t\t\t\tparent: state,\n\t\t\t\t}, stateToConnect)\n\n\t\t\t\tstate.plannedRemovals?.delete(idToConnect.value)\n\n\t\t\t\tlet changesDelta = 0\n\n\t\t\t\tif (persistedEntityIds.has(idToConnect.value)) {\n\t\t\t\t\t// It was removed from the list but now we're adding it back.\n\t\t\t\t\tchangesDelta--\n\t\t\t\t} else if (idToConnect.existsOnServer) {\n\t\t\t\t\t// ignoring unpersisted entities\n\t\t\t\t\tchangesDelta++\n\t\t\t\t}\n\t\t\t\tif (stateToConnect.type === 'entityRealm') {\n\t\t\t\t\tchangesDelta += stateToConnect.unpersistedChangesCount\n\t\t\t\t}\n\n\t\t\t\tthis.eventManager.registerJustUpdated(state, changesDelta)\n\t\t\t}\n\t\t})\n\t}\n\n\tpublic disconnectEntity(listState: EntityListState, childEntity: EntityAccessor, options: {noPersist?: boolean}) {\n\t\tthis.eventManager.syncOperation(() => {\n\t\t\t// TODO disable this at the top-level.\n\t\t\tconst persistedEntityIds = this.treeStore.getEntityListPersistedIds(listState)\n\t\t\tfor (const state of StateIterator.eachSiblingRealmChild(this.treeStore, listState)) {\n\t\t\t\tconst disconnectedChildIdValue = childEntity.id\n\t\t\t\tconst disconnectedChildRealm = state.children.get(disconnectedChildIdValue)\n\n\t\t\t\tif (disconnectedChildRealm === undefined) {\n\t\t\t\t\tthrow new BindingError(\n\t\t\t\t\t\t`Entity list doesn't include an entity with id '${disconnectedChildIdValue}' and so it cannot remove it.`,\n\t\t\t\t\t)\n\t\t\t\t}\n\n\t\t\t\tthis.treeStore.disposeOfRealm(disconnectedChildRealm)\n\t\t\t\tstate.children.delete(disconnectedChildIdValue)\n\n\t\t\t\tlet changesDelta = 0\n\n\t\t\t\tif (persistedEntityIds.has(disconnectedChildIdValue)) {\n\t\t\t\t\tchangesDelta++\n\n\t\t\t\t\tif (state.plannedRemovals === undefined) {\n\t\t\t\t\t\tstate.plannedRemovals = new Map()\n\t\t\t\t\t}\n\t\t\t\t\tif (!options.noPersist) {\n\t\t\t\t\t\tstate.plannedRemovals.set(disconnectedChildIdValue, 'disconnect')\n\t\t\t\t\t}\n\t\t\t\t} else if (disconnectedChildRealm.entity.id.existsOnServer) {\n\t\t\t\t\t// Disconnecting unpersisted entities doesn't constitute a change.\n\n\t\t\t\t\t// It wasn't on the list, then it was, and now we're removing it again.\n\t\t\t\t\tchangesDelta--\n\t\t\t\t}\n\n\t\t\t\tif (disconnectedChildRealm.type === 'entityRealm') {\n\t\t\t\t\t// Undoing whatever changes this child had caused.\n\t\t\t\t\tchangesDelta -= disconnectedChildRealm.unpersistedChangesCount\n\t\t\t\t}\n\n\t\t\t\tthis.eventManager.registerJustUpdated(state, changesDelta)\n\t\t\t}\n\t\t})\n\t}\n\n\tpublic createNewEntity(outerState: EntityListState, initialize: EntityAccessor.BatchUpdatesHandler | undefined): RuntimeId {\n\t\treturn this.eventManager.syncOperation((): RuntimeId => {\n\t\t\t// All siblings need to have the same id.\n\t\t\tconst id = new UnpersistedEntityDummyId()\n\n\t\t\tfor (const state of StateIterator.eachSiblingRealmChild(this.treeStore, outerState)) {\n\t\t\t\tconst newEntity = this.stateInitializer.initializeEntityRealm(id, state.entityName, {\n\t\t\t\t\ttype: 'listEntity',\n\t\t\t\t\tparent: state,\n\t\t\t\t})\n\n\t\t\t\tthis.stateInitializer.runImmediateUserInitialization(newEntity, initialize)\n\n\t\t\t\t// The act of creating the entity doesn't constitute a change unless there's something inside to persist.\n\t\t\t\t// TODO forceCreate\n\t\t\t\t// TODO defaultValue\n\t\t\t\tthis.eventManager.registerJustUpdated(state, EventManager.NO_CHANGES_DIFFERENCE)\n\t\t\t}\n\t\t\treturn id\n\t\t})\n\t}\n\n\tpublic getChildEntityById(state: EntityListState, id: EntityId) {\n\t\tconst realm = state.children.get(id)\n\t\tif (realm === undefined) {\n\t\t\tconst isRuntimeId = typeof id === 'number' || uuidValidate(id) || UnpersistedEntityDummyId.matchesDummyId(id)\n\t\t\tif (isRuntimeId) {\n\t\t\t\tthrow new BindingError(`EntityList: cannot retrieve an entity with id '${id}' as it is not on the list.`)\n\t\t\t}\n\t\t\tconst looksLikeKey = typeof id === 'string' && (this.treeStore.entityRealmStore.has(id) || RealmKeyGenerator.vaguelyAppearsToBeAKey(id))\n\t\t\tthrow new BindingError(\n\t\t\t\t`EntityList: cannot retrieve an entity with id '${id}' because it's not a valid id.` +\n\t\t\t\t\t(looksLikeKey\n\t\t\t\t\t\t? `\\nThe supplied value appears to be an entity *key*, not an *id*. List accessors are indexed by ids ` +\n\t\t\t\t\t\t `and you can use \\`EntityAccessor.id\\` to obtain one. Keys, on the other hand, are globally unique and ` +\n\t\t\t\t\t\t `you can use \\`getEntityByKey\\` to get its EntityAccessor.`\n\t\t\t\t\t\t: ''),\n\t\t\t)\n\t\t}\n\t\treturn realm.getAccessor()\n\t}\n}\n"],"names":["EventListenersStore","OperationsHelpers","StateIterator","BindingError","ErrorLocator","MarkerComparator","getEntityMarker","LocalizedBindingError","UnpersistedEntityDummyId","EventManager","uuidValidate","RealmKeyGenerator"],"mappings":";;;;;;;;;;AAoBO,MAAM,eAAe;AAAA,EACpB,YACW,sBACA,qBACA,cACA,kBACA,WAChB;AALgB,SAAA,uBAAA;AACA,SAAA,sBAAA;AACA,SAAA,eAAA;AACA,SAAA,mBAAA;AACA,SAAA,YAAA;AAAA,EACf;AAAA,EAEI,SAAS,WAA4B,OAAwC;AACnF,WAAO,KAAK,qBAAqB,SAAS,WAAW,KAAK;AAAA,EAC3D;AAAA,EAEO,iBACN,OACA,OACA,UACC;AACG,QAAA,MAAM,mBAAmB,QAAW;AACjC,YAAA,iBAAiB,IAAIA,cAAAA;IAC5B;AACA,WAAO,MAAM,eAAe,IAAI,OAAO,QAAQ;AAAA,EAChD;AAAA,EAEO,sBACN,OACA,OACA,UACC;AACG,QAAA,MAAM,wBAAwB,QAAW;AACtC,YAAA,sBAAsB,IAAIA,cAAAA;IACjC;AACA,WAAO,MAAM,oBAAoB,IAAI,OAAO,QAAQ;AAAA,EACrD;AAAA,EAEO,aAAa,OAAwB,gBAAwD;AAC9F,SAAA,aAAa,cAAc,MAAM;AACtB,qBAAA,MAAM,aAAa,KAAK,mBAAmB;AAAA,IAAA,CAC1D;AAAA,EACF;AAAA,EAEO,cAAc,YAA6B,iBAAiC;AAC7E,SAAA,aAAa,cAAc,MAAM;AACrC,YAAM,qBAAqB,KAAK,UAAU,0BAA0B,UAAU;AAC9E,YAAM,iBAAiBC,kBAAAA,kBAAkB,iCAAiC,KAAK,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A,MAChF;AACO,aAAA;AAAA,IAAA,CACP;AAAA,EACF;AAAA,EAEO,mBAAmB,OAAwB,IAAc;AAC/D,UAAM,QAAQ,MAAM,SAAS,IAAI,EAAE;AACnC,QAAI,UAAU,QAAW;AAClB,YAAA,cAAc,OAAO,OAAO,YAAYC,KAAAA,SAAa,EAAE,KAAKF,cAAyB,yBAAA,eAAe,EAAE;AAC5G,UAAI,aAAa;AAChB,cAAM,IAAIL,cAAA,aAAa,kDAAkD,EAAE,6BAA6B;AAAA,MACzG;AACA,YAAM,eAAe,OAAO,OAAO,aAAa,KAAK,UAAU,iBAAiB,IAAI,EAAE,KAAKQ,kBAAAA,kBAAkB,uBAAuB,EAAE;AACtI,YAAM,IAAIR,cAAA;AAAA,QACT,kDAAkD,EAAE,oCAClD,eACE;AAAA,oQAGA;AAAA,MAAA;AAAA,IAEN;AACA,WAAO,MAAM;EACd;AACD;;"}
1
+ {"version":3,"file":"ListOperations.cjs","sources":["../../../../../../packages/binding-legacy/src/core/operations/ListOperations.ts"],"sourcesContent":["import { validate as uuidValidate } from 'uuid'\nimport type { BatchUpdatesOptions, EntityAccessor, EntityListAccessor, ErrorAccessor } from '@contember/binding-common'\nimport {\n\tBindingError,\n\tEntityId,\n\tEventListenersStore,\n\tLocalizedBindingError,\n\tMarkerComparator,\n\tRuntimeId,\n\tUnpersistedEntityDummyId,\n} from '@contember/binding-common'\nimport type { AccessorErrorManager } from '../AccessorErrorManager'\nimport { EventManager } from '../EventManager'\nimport { RealmKeyGenerator } from '../RealmKeyGenerator'\nimport { EntityListState, getEntityMarker, StateIterator } from '../state'\nimport type { StateInitializer } from '../StateInitializer'\nimport type { TreeStore } from '../TreeStore'\nimport { OperationsHelpers } from './OperationsHelpers'\nimport { ErrorLocator } from '../exceptions/ErrorLocator'\n\nexport class ListOperations {\n\tpublic constructor(\n\t\tprivate readonly accessorErrorManager: AccessorErrorManager,\n\t\tprivate readonly batchUpdatesOptions: BatchUpdatesOptions,\n\t\tprivate readonly eventManager: EventManager,\n\t\tprivate readonly stateInitializer: StateInitializer,\n\t\tprivate readonly treeStore: TreeStore,\n\t) {}\n\n\tpublic addError(listState: EntityListState, error: ErrorAccessor.Error): () => void {\n\t\treturn this.accessorErrorManager.addError(listState, error)\n\t}\n\n\tpublic addEventListener<Type extends keyof EntityListAccessor.RuntimeEntityListEventListenerMap>(\n\t\tstate: EntityListState,\n\t\tevent: { type: Type; key?: string },\n\t\tlistener: EntityListAccessor.EntityListEventListenerMap[Type],\n\t) {\n\t\tif (state.eventListeners === undefined) {\n\t\t\tstate.eventListeners = new EventListenersStore()\n\t\t}\n\t\treturn state.eventListeners.add(event, listener)\n\t}\n\n\tpublic addChildEventListener<Type extends keyof EntityAccessor.EntityEventListenerMap>(\n\t\tstate: EntityListState,\n\t\tevent: { type: Type; key?: string },\n\t\tlistener: EntityAccessor.EntityEventListenerMap[Type],\n\t) {\n\t\tif (state.childEventListeners === undefined) {\n\t\t\tstate.childEventListeners = new EventListenersStore()\n\t\t}\n\t\treturn state.childEventListeners.add(event, listener)\n\t}\n\n\tpublic batchUpdates(state: EntityListState, performUpdates: EntityListAccessor.BatchUpdatesHandler) {\n\t\tthis.eventManager.syncOperation(() => {\n\t\t\tperformUpdates(state.getAccessor, this.batchUpdatesOptions)\n\t\t})\n\t}\n\n\tpublic connectEntity(outerState: EntityListState, entityToConnect: EntityAccessor) {\n\t\tthis.eventManager.syncOperation(() => {\n\t\t\tconst persistedEntityIds = this.treeStore.getEntityListPersistedIds(outerState)\n\t\t\tconst stateToConnect = OperationsHelpers.resolveAndPrepareEntityToConnect(this.treeStore, entityToConnect)\n\t\t\tconst idToConnect = stateToConnect.entity.id\n\n\t\t\t// TODO disable this at the top-level.\n\t\t\tfor (const state of StateIterator.eachSiblingRealmChild(this.treeStore, outerState)) {\n\t\t\t\tif (state.entityName !== stateToConnect.entity.entityName) {\n\t\t\t\t\tthrow new BindingError(\n\t\t\t\t\t\t`EntityListAccessor.connectEntity: Attempting to connect at an entity of type ` +\n\t\t\t\t\t\t\t`'${stateToConnect.entity.entityName}' but '${state.entityName}' is expected.\\n\\n` +\n\t\t\t\t\t\t\t`Entity located at: ${ErrorLocator.locateInternalState(outerState)}.`,\n\t\t\t\t\t)\n\t\t\t\t}\n\n\t\t\t\ttry {\n\t\t\t\t\tMarkerComparator.assertEntityMarkersSubsetOf(\n\t\t\t\t\t\tstate.blueprint.marker.fields,\n\t\t\t\t\t\tgetEntityMarker(stateToConnect).fields,\n\t\t\t\t\t)\n\t\t\t\t} catch (error) {\n\t\t\t\t\tif (error instanceof LocalizedBindingError) {\n\t\t\t\t\t\tthrow new BindingError(\n\t\t\t\t\t\t\t`Entity list: cannot connect entity with key '${entityToConnect.key}' because its fields are ` +\n\t\t\t\t\t\t\t\t`incompatible with entities found on this list. Make sure both trees are equivalent.\\n\\n` +\n\t\t\t\t\t\t\t\t`${error.message}\\n\\n` +\n\t\t\t\t\t\t\t\t(error.markerPath.length > 1\n\t\t\t\t\t\t\t\t\t? `Incompatibility found at: ${ErrorLocator.locateMarkerPath(error.markerPath)}.\\n\\n`\n\t\t\t\t\t\t\t\t\t: '') +\n\t\t\t\t\t\t\t\t`Entity list located at: ${ErrorLocator.locateInternalState(state)}.`,\n\t\t\t\t\t\t)\n\t\t\t\t\t}\n\t\t\t\t\tthrow error\n\t\t\t\t}\n\n\t\t\t\tif (state.children.has(idToConnect.value)) {\n\t\t\t\t\tcontinue\n\t\t\t\t}\n\n\t\t\t\tthis.stateInitializer.initializeEntityRealm(idToConnect, state.entityName, {\n\t\t\t\t\ttype: 'listEntity',\n\t\t\t\t\tparent: state,\n\t\t\t\t}, stateToConnect)\n\n\t\t\t\tstate.plannedRemovals?.delete(idToConnect.value)\n\n\t\t\t\tlet changesDelta = 0\n\n\t\t\t\tif (persistedEntityIds.has(idToConnect.value)) {\n\t\t\t\t\t// It was removed from the list but now we're adding it back.\n\t\t\t\t\tchangesDelta--\n\t\t\t\t} else if (idToConnect.existsOnServer) {\n\t\t\t\t\t// ignoring unpersisted entities\n\t\t\t\t\tchangesDelta++\n\t\t\t\t}\n\t\t\t\tif (stateToConnect.type === 'entityRealm') {\n\t\t\t\t\tchangesDelta += stateToConnect.unpersistedChangesCount\n\t\t\t\t}\n\n\t\t\t\tthis.eventManager.registerJustUpdated(state, changesDelta)\n\t\t\t}\n\t\t})\n\t}\n\n\tpublic disconnectEntity(listState: EntityListState, childEntity: EntityAccessor, options: {noPersist?: boolean}) {\n\t\tthis.eventManager.syncOperation(() => {\n\t\t\t// TODO disable this at the top-level.\n\t\t\tconst persistedEntityIds = this.treeStore.getEntityListPersistedIds(listState)\n\n\t\t\tif (!listState.children.has(childEntity.id)) {\n\t\t\t\tthrow new BindingError(\n\t\t\t\t\t`Entity list doesn't include an entity with id '${childEntity.id}' and so it cannot remove it.`,\n\t\t\t\t)\n\t\t\t}\n\n\t\t\tfor (const state of StateIterator.eachSiblingRealmChild(this.treeStore, listState)) {\n\t\t\t\tconst disconnectedChildIdValue = childEntity.id\n\t\t\t\tconst disconnectedChildRealm = state.children.get(disconnectedChildIdValue)\n\n\t\t\t\tif (disconnectedChildRealm === undefined) {\n\t\t\t\t\tcontinue\n\t\t\t\t}\n\n\t\t\t\tthis.treeStore.disposeOfRealm(disconnectedChildRealm)\n\t\t\t\tstate.children.delete(disconnectedChildIdValue)\n\n\t\t\t\tlet changesDelta = 0\n\n\t\t\t\tif (persistedEntityIds.has(disconnectedChildIdValue)) {\n\t\t\t\t\tchangesDelta++\n\n\t\t\t\t\tif (state.plannedRemovals === undefined) {\n\t\t\t\t\t\tstate.plannedRemovals = new Map()\n\t\t\t\t\t}\n\t\t\t\t\tif (!options.noPersist) {\n\t\t\t\t\t\tstate.plannedRemovals.set(disconnectedChildIdValue, 'disconnect')\n\t\t\t\t\t}\n\t\t\t\t} else if (disconnectedChildRealm.entity.id.existsOnServer) {\n\t\t\t\t\t// Disconnecting unpersisted entities doesn't constitute a change.\n\n\t\t\t\t\t// It wasn't on the list, then it was, and now we're removing it again.\n\t\t\t\t\tchangesDelta--\n\t\t\t\t}\n\n\t\t\t\tif (disconnectedChildRealm.type === 'entityRealm') {\n\t\t\t\t\t// Undoing whatever changes this child had caused.\n\t\t\t\t\tchangesDelta -= disconnectedChildRealm.unpersistedChangesCount\n\t\t\t\t}\n\n\t\t\t\tthis.eventManager.registerJustUpdated(state, changesDelta)\n\t\t\t}\n\t\t})\n\t}\n\n\tpublic createNewEntity(outerState: EntityListState, initialize: EntityAccessor.BatchUpdatesHandler | undefined): RuntimeId {\n\t\treturn this.eventManager.syncOperation((): RuntimeId => {\n\t\t\t// All siblings need to have the same id.\n\t\t\tconst id = new UnpersistedEntityDummyId()\n\n\t\t\tfor (const state of StateIterator.eachSiblingRealmChild(this.treeStore, outerState)) {\n\t\t\t\tconst newEntity = this.stateInitializer.initializeEntityRealm(id, state.entityName, {\n\t\t\t\t\ttype: 'listEntity',\n\t\t\t\t\tparent: state,\n\t\t\t\t})\n\n\t\t\t\tthis.stateInitializer.runImmediateUserInitialization(newEntity, initialize)\n\n\t\t\t\t// The act of creating the entity doesn't constitute a change unless there's something inside to persist.\n\t\t\t\t// TODO forceCreate\n\t\t\t\t// TODO defaultValue\n\t\t\t\tthis.eventManager.registerJustUpdated(state, EventManager.NO_CHANGES_DIFFERENCE)\n\t\t\t}\n\t\t\treturn id\n\t\t})\n\t}\n\n\tpublic getChildEntityById(state: EntityListState, id: EntityId) {\n\t\tconst realm = state.children.get(id)\n\t\tif (realm === undefined) {\n\t\t\tconst isRuntimeId = typeof id === 'number' || uuidValidate(id) || UnpersistedEntityDummyId.matchesDummyId(id)\n\t\t\tif (isRuntimeId) {\n\t\t\t\tthrow new BindingError(`EntityList: cannot retrieve an entity with id '${id}' as it is not on the list.`)\n\t\t\t}\n\t\t\tconst looksLikeKey = typeof id === 'string' && (this.treeStore.entityRealmStore.has(id) || RealmKeyGenerator.vaguelyAppearsToBeAKey(id))\n\t\t\tthrow new BindingError(\n\t\t\t\t`EntityList: cannot retrieve an entity with id '${id}' because it's not a valid id.` +\n\t\t\t\t\t(looksLikeKey\n\t\t\t\t\t\t? `\\nThe supplied value appears to be an entity *key*, not an *id*. List accessors are indexed by ids ` +\n\t\t\t\t\t\t `and you can use \\`EntityAccessor.id\\` to obtain one. Keys, on the other hand, are globally unique and ` +\n\t\t\t\t\t\t `you can use \\`getEntityByKey\\` to get its EntityAccessor.`\n\t\t\t\t\t\t: ''),\n\t\t\t)\n\t\t}\n\t\treturn realm.getAccessor()\n\t}\n}\n"],"names":["EventListenersStore","OperationsHelpers","StateIterator","BindingError","ErrorLocator","MarkerComparator","getEntityMarker","LocalizedBindingError","UnpersistedEntityDummyId","EventManager","uuidValidate","RealmKeyGenerator"],"mappings":";;;;;;;;;;AAoBO,MAAM,eAAe;AAAA,EACpB,YACW,sBACA,qBACA,cACA,kBACA,WAChB;AALgB,SAAA,uBAAA;AACA,SAAA,sBAAA;AACA,SAAA,eAAA;AACA,SAAA,mBAAA;AACA,SAAA,YAAA;AAAA,EACf;AAAA,EAEI,SAAS,WAA4B,OAAwC;AACnF,WAAO,KAAK,qBAAqB,SAAS,WAAW,KAAK;AAAA,EAC3D;AAAA,EAEO,iBACN,OACA,OACA,UACC;AACG,QAAA,MAAM,mBAAmB,QAAW;AACjC,YAAA,iBAAiB,IAAIA,cAAAA;IAC5B;AACA,WAAO,MAAM,eAAe,IAAI,OAAO,QAAQ;AAAA,EAChD;AAAA,EAEO,sBACN,OACA,OACA,UACC;AACG,QAAA,MAAM,wBAAwB,QAAW;AACtC,YAAA,sBAAsB,IAAIA,cAAAA;IACjC;AACA,WAAO,MAAM,oBAAoB,IAAI,OAAO,QAAQ;AAAA,EACrD;AAAA,EAEO,aAAa,OAAwB,gBAAwD;AAC9F,SAAA,aAAa,cAAc,MAAM;AACtB,qBAAA,MAAM,aAAa,KAAK,mBAAmB;AAAA,IAAA,CAC1D;AAAA,EACF;AAAA,EAEO,cAAc,YAA6B,iBAAiC;AAC7E,SAAA,aAAa,cAAc,MAAM;AACrC,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I,MAAM,YAAY;AAAA,UACnF,MAAM;AAAA,UACN,QAAQ;AAAA,QAAA,CACR;AAEI,aAAA,iBAAiB,+BAA+B,WAAW,UAAU;AAK1E,aAAK,aAAa,oBAAoB,OAAOO,aAAA,aAAa,qBAAqB;AAAA,MAChF;AACO,aAAA;AAAA,IAAA,CACP;AAAA,EACF;AAAA,EAEO,mBAAmB,OAAwB,IAAc;AAC/D,UAAM,QAAQ,MAAM,SAAS,IAAI,EAAE;AACnC,QAAI,UAAU,QAAW;AAClB,YAAA,cAAc,OAAO,OAAO,YAAYC,KAAAA,SAAa,EAAE,KAAKF,cAAyB,yBAAA,eAAe,EAAE;AAC5G,UAAI,aAAa;AAChB,cAAM,IAAIL,cAAA,aAAa,kDAAkD,EAAE,6BAA6B;AAAA,MACzG;AACA,YAAM,eAAe,OAAO,OAAO,aAAa,KAAK,UAAU,iBAAiB,IAAI,EAAE,KAAKQ,kBAAAA,kBAAkB,uBAAuB,EAAE;AACtI,YAAM,IAAIR,cAAA;AAAA,QACT,kDAAkD,EAAE,oCAClD,eACE;AAAA,oQAGA;AAAA,MAAA;AAAA,IAEN;AACA,WAAO,MAAM;EACd;AACD;;"}
@@ -90,13 +90,16 @@ ${error.message}
90
90
  disconnectEntity(listState, childEntity, options) {
91
91
  this.eventManager.syncOperation(() => {
92
92
  const persistedEntityIds = this.treeStore.getEntityListPersistedIds(listState);
93
+ if (!listState.children.has(childEntity.id)) {
94
+ throw new BindingError(
95
+ `Entity list doesn't include an entity with id '${childEntity.id}' and so it cannot remove it.`
96
+ );
97
+ }
93
98
  for (const state of StateIterator.eachSiblingRealmChild(this.treeStore, listState)) {
94
99
  const disconnectedChildIdValue = childEntity.id;
95
100
  const disconnectedChildRealm = state.children.get(disconnectedChildIdValue);
96
101
  if (disconnectedChildRealm === void 0) {
97
- throw new BindingError(
98
- `Entity list doesn't include an entity with id '${disconnectedChildIdValue}' and so it cannot remove it.`
99
- );
102
+ continue;
100
103
  }
101
104
  this.treeStore.disposeOfRealm(disconnectedChildRealm);
102
105
  state.children.delete(disconnectedChildIdValue);
@@ -1 +1 @@
1
- {"version":3,"file":"ListOperations.js","sources":["../../../../../../packages/binding-legacy/src/core/operations/ListOperations.ts"],"sourcesContent":["import { validate as uuidValidate } from 'uuid'\nimport type { BatchUpdatesOptions, EntityAccessor, EntityListAccessor, ErrorAccessor } from '@contember/binding-common'\nimport {\n\tBindingError,\n\tEntityId,\n\tEventListenersStore,\n\tLocalizedBindingError,\n\tMarkerComparator,\n\tRuntimeId,\n\tUnpersistedEntityDummyId,\n} from '@contember/binding-common'\nimport type { AccessorErrorManager } from '../AccessorErrorManager'\nimport { EventManager } from '../EventManager'\nimport { RealmKeyGenerator } from '../RealmKeyGenerator'\nimport { EntityListState, getEntityMarker, StateIterator } from '../state'\nimport type { StateInitializer } from '../StateInitializer'\nimport type { TreeStore } from '../TreeStore'\nimport { OperationsHelpers } from './OperationsHelpers'\nimport { ErrorLocator } from '../exceptions/ErrorLocator'\n\nexport class ListOperations {\n\tpublic constructor(\n\t\tprivate readonly accessorErrorManager: AccessorErrorManager,\n\t\tprivate readonly batchUpdatesOptions: BatchUpdatesOptions,\n\t\tprivate readonly eventManager: EventManager,\n\t\tprivate readonly stateInitializer: StateInitializer,\n\t\tprivate readonly treeStore: TreeStore,\n\t) {}\n\n\tpublic addError(listState: EntityListState, error: ErrorAccessor.Error): () => void {\n\t\treturn this.accessorErrorManager.addError(listState, error)\n\t}\n\n\tpublic addEventListener<Type extends keyof EntityListAccessor.RuntimeEntityListEventListenerMap>(\n\t\tstate: EntityListState,\n\t\tevent: { type: Type; key?: string },\n\t\tlistener: EntityListAccessor.EntityListEventListenerMap[Type],\n\t) {\n\t\tif (state.eventListeners === undefined) {\n\t\t\tstate.eventListeners = new EventListenersStore()\n\t\t}\n\t\treturn state.eventListeners.add(event, listener)\n\t}\n\n\tpublic addChildEventListener<Type extends keyof EntityAccessor.EntityEventListenerMap>(\n\t\tstate: EntityListState,\n\t\tevent: { type: Type; key?: string },\n\t\tlistener: EntityAccessor.EntityEventListenerMap[Type],\n\t) {\n\t\tif (state.childEventListeners === undefined) {\n\t\t\tstate.childEventListeners = new EventListenersStore()\n\t\t}\n\t\treturn state.childEventListeners.add(event, listener)\n\t}\n\n\tpublic batchUpdates(state: EntityListState, performUpdates: EntityListAccessor.BatchUpdatesHandler) {\n\t\tthis.eventManager.syncOperation(() => {\n\t\t\tperformUpdates(state.getAccessor, this.batchUpdatesOptions)\n\t\t})\n\t}\n\n\tpublic connectEntity(outerState: EntityListState, entityToConnect: EntityAccessor) {\n\t\tthis.eventManager.syncOperation(() => {\n\t\t\tconst persistedEntityIds = this.treeStore.getEntityListPersistedIds(outerState)\n\t\t\tconst stateToConnect = OperationsHelpers.resolveAndPrepareEntityToConnect(this.treeStore, entityToConnect)\n\t\t\tconst idToConnect = stateToConnect.entity.id\n\n\t\t\t// TODO disable this at the top-level.\n\t\t\tfor (const state of StateIterator.eachSiblingRealmChild(this.treeStore, outerState)) {\n\t\t\t\tif (state.entityName !== stateToConnect.entity.entityName) {\n\t\t\t\t\tthrow new BindingError(\n\t\t\t\t\t\t`EntityListAccessor.connectEntity: Attempting to connect at an entity of type ` +\n\t\t\t\t\t\t\t`'${stateToConnect.entity.entityName}' but '${state.entityName}' is expected.\\n\\n` +\n\t\t\t\t\t\t\t`Entity located at: ${ErrorLocator.locateInternalState(outerState)}.`,\n\t\t\t\t\t)\n\t\t\t\t}\n\n\t\t\t\ttry {\n\t\t\t\t\tMarkerComparator.assertEntityMarkersSubsetOf(\n\t\t\t\t\t\tstate.blueprint.marker.fields,\n\t\t\t\t\t\tgetEntityMarker(stateToConnect).fields,\n\t\t\t\t\t)\n\t\t\t\t} catch (error) {\n\t\t\t\t\tif (error instanceof LocalizedBindingError) {\n\t\t\t\t\t\tthrow new BindingError(\n\t\t\t\t\t\t\t`Entity list: cannot connect entity with key '${entityToConnect.key}' because its fields are ` +\n\t\t\t\t\t\t\t\t`incompatible with entities found on this list. Make sure both trees are equivalent.\\n\\n` +\n\t\t\t\t\t\t\t\t`${error.message}\\n\\n` +\n\t\t\t\t\t\t\t\t(error.markerPath.length > 1\n\t\t\t\t\t\t\t\t\t? `Incompatibility found at: ${ErrorLocator.locateMarkerPath(error.markerPath)}.\\n\\n`\n\t\t\t\t\t\t\t\t\t: '') +\n\t\t\t\t\t\t\t\t`Entity list located at: ${ErrorLocator.locateInternalState(state)}.`,\n\t\t\t\t\t\t)\n\t\t\t\t\t}\n\t\t\t\t\tthrow error\n\t\t\t\t}\n\n\t\t\t\tif (state.children.has(idToConnect.value)) {\n\t\t\t\t\tcontinue\n\t\t\t\t}\n\n\t\t\t\tthis.stateInitializer.initializeEntityRealm(idToConnect, state.entityName, {\n\t\t\t\t\ttype: 'listEntity',\n\t\t\t\t\tparent: state,\n\t\t\t\t}, stateToConnect)\n\n\t\t\t\tstate.plannedRemovals?.delete(idToConnect.value)\n\n\t\t\t\tlet changesDelta = 0\n\n\t\t\t\tif (persistedEntityIds.has(idToConnect.value)) {\n\t\t\t\t\t// It was removed from the list but now we're adding it back.\n\t\t\t\t\tchangesDelta--\n\t\t\t\t} else if (idToConnect.existsOnServer) {\n\t\t\t\t\t// ignoring unpersisted entities\n\t\t\t\t\tchangesDelta++\n\t\t\t\t}\n\t\t\t\tif (stateToConnect.type === 'entityRealm') {\n\t\t\t\t\tchangesDelta += stateToConnect.unpersistedChangesCount\n\t\t\t\t}\n\n\t\t\t\tthis.eventManager.registerJustUpdated(state, changesDelta)\n\t\t\t}\n\t\t})\n\t}\n\n\tpublic disconnectEntity(listState: EntityListState, childEntity: EntityAccessor, options: {noPersist?: boolean}) {\n\t\tthis.eventManager.syncOperation(() => {\n\t\t\t// TODO disable this at the top-level.\n\t\t\tconst persistedEntityIds = this.treeStore.getEntityListPersistedIds(listState)\n\t\t\tfor (const state of StateIterator.eachSiblingRealmChild(this.treeStore, listState)) {\n\t\t\t\tconst disconnectedChildIdValue = childEntity.id\n\t\t\t\tconst disconnectedChildRealm = state.children.get(disconnectedChildIdValue)\n\n\t\t\t\tif (disconnectedChildRealm === undefined) {\n\t\t\t\t\tthrow new BindingError(\n\t\t\t\t\t\t`Entity list doesn't include an entity with id '${disconnectedChildIdValue}' and so it cannot remove it.`,\n\t\t\t\t\t)\n\t\t\t\t}\n\n\t\t\t\tthis.treeStore.disposeOfRealm(disconnectedChildRealm)\n\t\t\t\tstate.children.delete(disconnectedChildIdValue)\n\n\t\t\t\tlet changesDelta = 0\n\n\t\t\t\tif (persistedEntityIds.has(disconnectedChildIdValue)) {\n\t\t\t\t\tchangesDelta++\n\n\t\t\t\t\tif (state.plannedRemovals === undefined) {\n\t\t\t\t\t\tstate.plannedRemovals = new Map()\n\t\t\t\t\t}\n\t\t\t\t\tif (!options.noPersist) {\n\t\t\t\t\t\tstate.plannedRemovals.set(disconnectedChildIdValue, 'disconnect')\n\t\t\t\t\t}\n\t\t\t\t} else if (disconnectedChildRealm.entity.id.existsOnServer) {\n\t\t\t\t\t// Disconnecting unpersisted entities doesn't constitute a change.\n\n\t\t\t\t\t// It wasn't on the list, then it was, and now we're removing it again.\n\t\t\t\t\tchangesDelta--\n\t\t\t\t}\n\n\t\t\t\tif (disconnectedChildRealm.type === 'entityRealm') {\n\t\t\t\t\t// Undoing whatever changes this child had caused.\n\t\t\t\t\tchangesDelta -= disconnectedChildRealm.unpersistedChangesCount\n\t\t\t\t}\n\n\t\t\t\tthis.eventManager.registerJustUpdated(state, changesDelta)\n\t\t\t}\n\t\t})\n\t}\n\n\tpublic createNewEntity(outerState: EntityListState, initialize: EntityAccessor.BatchUpdatesHandler | undefined): RuntimeId {\n\t\treturn this.eventManager.syncOperation((): RuntimeId => {\n\t\t\t// All siblings need to have the same id.\n\t\t\tconst id = new UnpersistedEntityDummyId()\n\n\t\t\tfor (const state of StateIterator.eachSiblingRealmChild(this.treeStore, outerState)) {\n\t\t\t\tconst newEntity = this.stateInitializer.initializeEntityRealm(id, state.entityName, {\n\t\t\t\t\ttype: 'listEntity',\n\t\t\t\t\tparent: state,\n\t\t\t\t})\n\n\t\t\t\tthis.stateInitializer.runImmediateUserInitialization(newEntity, initialize)\n\n\t\t\t\t// The act of creating the entity doesn't constitute a change unless there's something inside to persist.\n\t\t\t\t// TODO forceCreate\n\t\t\t\t// TODO defaultValue\n\t\t\t\tthis.eventManager.registerJustUpdated(state, EventManager.NO_CHANGES_DIFFERENCE)\n\t\t\t}\n\t\t\treturn id\n\t\t})\n\t}\n\n\tpublic getChildEntityById(state: EntityListState, id: EntityId) {\n\t\tconst realm = state.children.get(id)\n\t\tif (realm === undefined) {\n\t\t\tconst isRuntimeId = typeof id === 'number' || uuidValidate(id) || UnpersistedEntityDummyId.matchesDummyId(id)\n\t\t\tif (isRuntimeId) {\n\t\t\t\tthrow new BindingError(`EntityList: cannot retrieve an entity with id '${id}' as it is not on the list.`)\n\t\t\t}\n\t\t\tconst looksLikeKey = typeof id === 'string' && (this.treeStore.entityRealmStore.has(id) || RealmKeyGenerator.vaguelyAppearsToBeAKey(id))\n\t\t\tthrow new BindingError(\n\t\t\t\t`EntityList: cannot retrieve an entity with id '${id}' because it's not a valid id.` +\n\t\t\t\t\t(looksLikeKey\n\t\t\t\t\t\t? `\\nThe supplied value appears to be an entity *key*, not an *id*. List accessors are indexed by ids ` +\n\t\t\t\t\t\t `and you can use \\`EntityAccessor.id\\` to obtain one. Keys, on the other hand, are globally unique and ` +\n\t\t\t\t\t\t `you can use \\`getEntityByKey\\` to get its EntityAccessor.`\n\t\t\t\t\t\t: ''),\n\t\t\t)\n\t\t}\n\t\treturn realm.getAccessor()\n\t}\n}\n"],"names":["uuidValidate"],"mappings":";;;;;;;;AAoBO,MAAM,eAAe;AAAA,EACpB,YACW,sBACA,qBACA,cACA,kBACA,WAChB;AALgB,SAAA,uBAAA;AACA,SAAA,sBAAA;AACA,SAAA,eAAA;AACA,SAAA,mBAAA;AACA,SAAA,YAAA;AAAA,EACf;AAAA,EAEI,SAAS,WAA4B,OAAwC;AACnF,WAAO,KAAK,qB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,OAAO,GAAG,gBAAgB;AAI3D;AAAA,QACD;AAEI,YAAA,uBAAuB,SAAS,eAAe;AAElD,0BAAgB,uBAAuB;AAAA,QACxC;AAEK,aAAA,aAAa,oBAAoB,OAAO,YAAY;AAAA,MAC1D;AAAA,IAAA,CACA;AAAA,EACF;AAAA,EAEO,gBAAgB,YAA6B,YAAuE;AACnH,WAAA,KAAK,aAAa,cAAc,MAAiB;AAEjD,YAAA,KAAK,IAAI;AAEf,iBAAW,SAAS,cAAc,sBAAsB,KAAK,WAAW,UAAU,GAAG;AACpF,cAAM,YAAY,KAAK,iBAAiB,sBAAsB,IAAI,MAAM,YAAY;AAAA,UACnF,MAAM;AAAA,UACN,QAAQ;AAAA,QAAA,CACR;AAEI,aAAA,iBAAiB,+BAA+B,WAAW,UAAU;AAK1E,aAAK,aAAa,oBAAoB,OAAO,aAAa,qBAAqB;AAAA,MAChF;AACO,aAAA;AAAA,IAAA,CACP;AAAA,EACF;AAAA,EAEO,mBAAmB,OAAwB,IAAc;AAC/D,UAAM,QAAQ,MAAM,SAAS,IAAI,EAAE;AACnC,QAAI,UAAU,QAAW;AAClB,YAAA,cAAc,OAAO,OAAO,YAAYA,SAAa,EAAE,KAAK,yBAAyB,eAAe,EAAE;AAC5G,UAAI,aAAa;AAChB,cAAM,IAAI,aAAa,kDAAkD,EAAE,6BAA6B;AAAA,MACzG;AACA,YAAM,eAAe,OAAO,OAAO,aAAa,KAAK,UAAU,iBAAiB,IAAI,EAAE,KAAK,kBAAkB,uBAAuB,EAAE;AACtI,YAAM,IAAI;AAAA,QACT,kDAAkD,EAAE,oCAClD,eACE;AAAA,oQAGA;AAAA,MAAA;AAAA,IAEN;AACA,WAAO,MAAM;EACd;AACD;"}
1
+ {"version":3,"file":"ListOperations.js","sources":["../../../../../../packages/binding-legacy/src/core/operations/ListOperations.ts"],"sourcesContent":["import { validate as uuidValidate } from 'uuid'\nimport type { BatchUpdatesOptions, EntityAccessor, EntityListAccessor, ErrorAccessor } from '@contember/binding-common'\nimport {\n\tBindingError,\n\tEntityId,\n\tEventListenersStore,\n\tLocalizedBindingError,\n\tMarkerComparator,\n\tRuntimeId,\n\tUnpersistedEntityDummyId,\n} from '@contember/binding-common'\nimport type { AccessorErrorManager } from '../AccessorErrorManager'\nimport { EventManager } from '../EventManager'\nimport { RealmKeyGenerator } from '../RealmKeyGenerator'\nimport { EntityListState, getEntityMarker, StateIterator } from '../state'\nimport type { StateInitializer } from '../StateInitializer'\nimport type { TreeStore } from '../TreeStore'\nimport { OperationsHelpers } from './OperationsHelpers'\nimport { ErrorLocator } from '../exceptions/ErrorLocator'\n\nexport class ListOperations {\n\tpublic constructor(\n\t\tprivate readonly accessorErrorManager: AccessorErrorManager,\n\t\tprivate readonly batchUpdatesOptions: BatchUpdatesOptions,\n\t\tprivate readonly eventManager: EventManager,\n\t\tprivate readonly stateInitializer: StateInitializer,\n\t\tprivate readonly treeStore: TreeStore,\n\t) {}\n\n\tpublic addError(listState: EntityListState, error: ErrorAccessor.Error): () => void {\n\t\treturn this.accessorErrorManager.addError(listState, error)\n\t}\n\n\tpublic addEventListener<Type extends keyof EntityListAccessor.RuntimeEntityListEventListenerMap>(\n\t\tstate: EntityListState,\n\t\tevent: { type: Type; key?: string },\n\t\tlistener: EntityListAccessor.EntityListEventListenerMap[Type],\n\t) {\n\t\tif (state.eventListeners === undefined) {\n\t\t\tstate.eventListeners = new EventListenersStore()\n\t\t}\n\t\treturn state.eventListeners.add(event, listener)\n\t}\n\n\tpublic addChildEventListener<Type extends keyof EntityAccessor.EntityEventListenerMap>(\n\t\tstate: EntityListState,\n\t\tevent: { type: Type; key?: string },\n\t\tlistener: EntityAccessor.EntityEventListenerMap[Type],\n\t) {\n\t\tif (state.childEventListeners === undefined) {\n\t\t\tstate.childEventListeners = new EventListenersStore()\n\t\t}\n\t\treturn state.childEventListeners.add(event, listener)\n\t}\n\n\tpublic batchUpdates(state: EntityListState, performUpdates: EntityListAccessor.BatchUpdatesHandler) {\n\t\tthis.eventManager.syncOperation(() => {\n\t\t\tperformUpdates(state.getAccessor, this.batchUpdatesOptions)\n\t\t})\n\t}\n\n\tpublic connectEntity(outerState: EntityListState, entityToConnect: EntityAccessor) {\n\t\tthis.eventManager.syncOperation(() => {\n\t\t\tconst persistedEntityIds = this.treeStore.getEntityListPersistedIds(outerState)\n\t\t\tconst stateToConnect = OperationsHelpers.resolveAndPrepareEntityToConnect(this.treeStore, entityToConnect)\n\t\t\tconst idToConnect = stateToConnect.entity.id\n\n\t\t\t// TODO disable this at the top-level.\n\t\t\tfor (const state of StateIterator.eachSiblingRealmChild(this.treeStore, outerState)) {\n\t\t\t\tif (state.entityName !== stateToConnect.entity.entityName) {\n\t\t\t\t\tthrow new BindingError(\n\t\t\t\t\t\t`EntityListAccessor.connectEntity: Attempting to connect at an entity of type ` +\n\t\t\t\t\t\t\t`'${stateToConnect.entity.entityName}' but '${state.entityName}' is expected.\\n\\n` +\n\t\t\t\t\t\t\t`Entity located at: ${ErrorLocator.locateInternalState(outerState)}.`,\n\t\t\t\t\t)\n\t\t\t\t}\n\n\t\t\t\ttry {\n\t\t\t\t\tMarkerComparator.assertEntityMarkersSubsetOf(\n\t\t\t\t\t\tstate.blueprint.marker.fields,\n\t\t\t\t\t\tgetEntityMarker(stateToConnect).fields,\n\t\t\t\t\t)\n\t\t\t\t} catch (error) {\n\t\t\t\t\tif (error instanceof LocalizedBindingError) {\n\t\t\t\t\t\tthrow new BindingError(\n\t\t\t\t\t\t\t`Entity list: cannot connect entity with key '${entityToConnect.key}' because its fields are ` +\n\t\t\t\t\t\t\t\t`incompatible with entities found on this list. Make sure both trees are equivalent.\\n\\n` +\n\t\t\t\t\t\t\t\t`${error.message}\\n\\n` +\n\t\t\t\t\t\t\t\t(error.markerPath.length > 1\n\t\t\t\t\t\t\t\t\t? `Incompatibility found at: ${ErrorLocator.locateMarkerPath(error.markerPath)}.\\n\\n`\n\t\t\t\t\t\t\t\t\t: '') +\n\t\t\t\t\t\t\t\t`Entity list located at: ${ErrorLocator.locateInternalState(state)}.`,\n\t\t\t\t\t\t)\n\t\t\t\t\t}\n\t\t\t\t\tthrow error\n\t\t\t\t}\n\n\t\t\t\tif (state.children.has(idToConnect.value)) {\n\t\t\t\t\tcontinue\n\t\t\t\t}\n\n\t\t\t\tthis.stateInitializer.initializeEntityRealm(idToConnect, state.entityName, {\n\t\t\t\t\ttype: 'listEntity',\n\t\t\t\t\tparent: state,\n\t\t\t\t}, stateToConnect)\n\n\t\t\t\tstate.plannedRemovals?.delete(idToConnect.value)\n\n\t\t\t\tlet changesDelta = 0\n\n\t\t\t\tif (persistedEntityIds.has(idToConnect.value)) {\n\t\t\t\t\t// It was removed from the list but now we're adding it back.\n\t\t\t\t\tchangesDelta--\n\t\t\t\t} else if (idToConnect.existsOnServer) {\n\t\t\t\t\t// ignoring unpersisted entities\n\t\t\t\t\tchangesDelta++\n\t\t\t\t}\n\t\t\t\tif (stateToConnect.type === 'entityRealm') {\n\t\t\t\t\tchangesDelta += stateToConnect.unpersistedChangesCount\n\t\t\t\t}\n\n\t\t\t\tthis.eventManager.registerJustUpdated(state, changesDelta)\n\t\t\t}\n\t\t})\n\t}\n\n\tpublic disconnectEntity(listState: EntityListState, childEntity: EntityAccessor, options: {noPersist?: boolean}) {\n\t\tthis.eventManager.syncOperation(() => {\n\t\t\t// TODO disable this at the top-level.\n\t\t\tconst persistedEntityIds = this.treeStore.getEntityListPersistedIds(listState)\n\n\t\t\tif (!listState.children.has(childEntity.id)) {\n\t\t\t\tthrow new BindingError(\n\t\t\t\t\t`Entity list doesn't include an entity with id '${childEntity.id}' and so it cannot remove it.`,\n\t\t\t\t)\n\t\t\t}\n\n\t\t\tfor (const state of StateIterator.eachSiblingRealmChild(this.treeStore, listState)) {\n\t\t\t\tconst disconnectedChildIdValue = childEntity.id\n\t\t\t\tconst disconnectedChildRealm = state.children.get(disconnectedChildIdValue)\n\n\t\t\t\tif (disconnectedChildRealm === undefined) {\n\t\t\t\t\tcontinue\n\t\t\t\t}\n\n\t\t\t\tthis.treeStore.disposeOfRealm(disconnectedChildRealm)\n\t\t\t\tstate.children.delete(disconnectedChildIdValue)\n\n\t\t\t\tlet changesDelta = 0\n\n\t\t\t\tif (persistedEntityIds.has(disconnectedChildIdValue)) {\n\t\t\t\t\tchangesDelta++\n\n\t\t\t\t\tif (state.plannedRemovals === undefined) {\n\t\t\t\t\t\tstate.plannedRemovals = new Map()\n\t\t\t\t\t}\n\t\t\t\t\tif (!options.noPersist) {\n\t\t\t\t\t\tstate.plannedRemovals.set(disconnectedChildIdValue, 'disconnect')\n\t\t\t\t\t}\n\t\t\t\t} else if (disconnectedChildRealm.entity.id.existsOnServer) {\n\t\t\t\t\t// Disconnecting unpersisted entities doesn't constitute a change.\n\n\t\t\t\t\t// It wasn't on the list, then it was, and now we're removing it again.\n\t\t\t\t\tchangesDelta--\n\t\t\t\t}\n\n\t\t\t\tif (disconnectedChildRealm.type === 'entityRealm') {\n\t\t\t\t\t// Undoing whatever changes this child had caused.\n\t\t\t\t\tchangesDelta -= disconnectedChildRealm.unpersistedChangesCount\n\t\t\t\t}\n\n\t\t\t\tthis.eventManager.registerJustUpdated(state, changesDelta)\n\t\t\t}\n\t\t})\n\t}\n\n\tpublic createNewEntity(outerState: EntityListState, initialize: EntityAccessor.BatchUpdatesHandler | undefined): RuntimeId {\n\t\treturn this.eventManager.syncOperation((): RuntimeId => {\n\t\t\t// All siblings need to have the same id.\n\t\t\tconst id = new UnpersistedEntityDummyId()\n\n\t\t\tfor (const state of StateIterator.eachSiblingRealmChild(this.treeStore, outerState)) {\n\t\t\t\tconst newEntity = this.stateInitializer.initializeEntityRealm(id, state.entityName, {\n\t\t\t\t\ttype: 'listEntity',\n\t\t\t\t\tparent: state,\n\t\t\t\t})\n\n\t\t\t\tthis.stateInitializer.runImmediateUserInitialization(newEntity, initialize)\n\n\t\t\t\t// The act of creating the entity doesn't constitute a change unless there's something inside to persist.\n\t\t\t\t// TODO forceCreate\n\t\t\t\t// TODO defaultValue\n\t\t\t\tthis.eventManager.registerJustUpdated(state, EventManager.NO_CHANGES_DIFFERENCE)\n\t\t\t}\n\t\t\treturn id\n\t\t})\n\t}\n\n\tpublic getChildEntityById(state: EntityListState, id: EntityId) {\n\t\tconst realm = state.children.get(id)\n\t\tif (realm === undefined) {\n\t\t\tconst isRuntimeId = typeof id === 'number' || uuidValidate(id) || UnpersistedEntityDummyId.matchesDummyId(id)\n\t\t\tif (isRuntimeId) {\n\t\t\t\tthrow new BindingError(`EntityList: cannot retrieve an entity with id '${id}' as it is not on the list.`)\n\t\t\t}\n\t\t\tconst looksLikeKey = typeof id === 'string' && (this.treeStore.entityRealmStore.has(id) || RealmKeyGenerator.vaguelyAppearsToBeAKey(id))\n\t\t\tthrow new BindingError(\n\t\t\t\t`EntityList: cannot retrieve an entity with id '${id}' because it's not a valid id.` +\n\t\t\t\t\t(looksLikeKey\n\t\t\t\t\t\t? `\\nThe supplied value appears to be an entity *key*, not an *id*. List accessors are indexed by ids ` +\n\t\t\t\t\t\t `and you can use \\`EntityAccessor.id\\` to obtain one. Keys, on the other hand, are globally unique and ` +\n\t\t\t\t\t\t `you can use \\`getEntityByKey\\` to get its EntityAccessor.`\n\t\t\t\t\t\t: ''),\n\t\t\t)\n\t\t}\n\t\treturn realm.getAccessor()\n\t}\n}\n"],"names":["uuidValidate"],"mappings":";;;;;;;;AAoBO,MAAM,eAAe;AAAA,EACpB,YACW,sBACA,qBACA,cACA,kBACA,WAChB;AALgB,SAAA,uBAAA;AACA,SAAA,sBAAA;AACA,SAAA,eAAA;AACA,SAAA,mBAAA;AACA,SAAA,YAAA;AAAA,EACf;AAAA,EAEI,SAAS,WAA4B,OAAwC;AACnF,WAAO,KAAK,qBAAqB,SAAS,WAAW,KAAK;AAAA,EAC3D;AAAA,EAEO,iBACN,OACA,OACA,UACC;AACG,QAAA,MAAM,mBAAmB,QAAW;AACjC,YAAA,iBAAiB,IAAI;IAC5B;AACA,WAAO,MAAM,eAAe,IAAI,OAAO,QAAQ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QACxC;AAEK,aAAA,aAAa,oBAAoB,OAAO,YAAY;AAAA,MAC1D;AAAA,IAAA,CACA;AAAA,EACF;AAAA,EAEO,gBAAgB,YAA6B,YAAuE;AACnH,WAAA,KAAK,aAAa,cAAc,MAAiB;AAEjD,YAAA,KAAK,IAAI;AAEf,iBAAW,SAAS,cAAc,sBAAsB,KAAK,WAAW,UAAU,GAAG;AACpF,cAAM,YAAY,KAAK,iBAAiB,sBAAsB,IAAI,MAAM,YAAY;AAAA,UACnF,MAAM;AAAA,UACN,QAAQ;AAAA,QAAA,CACR;AAEI,aAAA,iBAAiB,+BAA+B,WAAW,UAAU;AAK1E,aAAK,aAAa,oBAAoB,OAAO,aAAa,qBAAqB;AAAA,MAChF;AACO,aAAA;AAAA,IAAA,CACP;AAAA,EACF;AAAA,EAEO,mBAAmB,OAAwB,IAAc;AAC/D,UAAM,QAAQ,MAAM,SAAS,IAAI,EAAE;AACnC,QAAI,UAAU,QAAW;AAClB,YAAA,cAAc,OAAO,OAAO,YAAYA,SAAa,EAAE,KAAK,yBAAyB,eAAe,EAAE;AAC5G,UAAI,aAAa;AAChB,cAAM,IAAI,aAAa,kDAAkD,EAAE,6BAA6B;AAAA,MACzG;AACA,YAAM,eAAe,OAAO,OAAO,aAAa,KAAK,UAAU,iBAAiB,IAAI,EAAE,KAAK,kBAAkB,uBAAuB,EAAE;AACtI,YAAM,IAAI;AAAA,QACT,kDAAkD,EAAE,oCAClD,eACE;AAAA,oQAGA;AAAA,MAAA;AAAA,IAEN;AACA,WAAO,MAAM;EACd;AACD;"}
@@ -1 +1 @@
1
- {"version":3,"file":"ListOperations.d.ts","sourceRoot":"","sources":["../../../../src/core/operations/ListOperations.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,cAAc,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAA;AACvH,OAAO,EAEN,QAAQ,EAIR,SAAS,EAET,MAAM,2BAA2B,CAAA;AAClC,OA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EAAE,gBAAgB,EAClC,SAAS,EAAE,SAAS;IAG/B,QAAQ,CAAC,SAAS,EAAE,eAAe,EAAE,KAAK,EAAE,aAAa,CAAC,KAAK,GAAG,MAAM,IAAI;IAI5E,gBAAgB,CAAC,IAAI,SAAS,MAAM,kBAAkB,CAAC,iCAAiC,EAC9F,KAAK,EAAE,eAAe,EACtB,KAAK,EAAE;QAAE,IAAI,EAAE,IAAI,CAAC;QAAC,GAAG,CAAC,EAAE,MAAM,CAAA;KAAE,EACnC,QAAQ,EAAE,kBAAkB,CAAC,0BAA0B,CAAC,IAAI,CAAC;IAQvD,qBAAqB,CAAC,IAAI,SAAS,MAAM,cAAc,CAAC,sBAAsB,EACpF,KAAK,EAAE,eAAe,EACtB,KAAK,EAAE;QAAE,IAAI,EAAE,IAAI,CAAC;QAAC,GAAG,CAAC,EAAE,MAAM,CAAA;KAAE,EACnC,QAAQ,EAAE,cAAc,CAAC,sBAAsB,CAAC,IAAI,CAAC;IAQ/C,YAAY,CAAC,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,kBAAkB,CAAC,mBAAmB;IAM3F,aAAa,CAAC,UAAU,EAAE,eAAe,EAAE,eAAe,EAAE,cAAc;IAiE1E,gBAAgB,CAAC,SAAS,EAAE,eAAe,EAAE,WAAW,EAAE,cAAc,EAAE,OAAO,EAAE;QAAC,SAAS,CAAC,EAAE,OAAO,CAAA;KAAC;IAkDxG,eAAe,CAAC,UAAU,EAAE,eAAe,EAAE,UAAU,EAAE,cAAc,CAAC,mBAAmB,GAAG,SAAS,GAAG,SAAS;IAsBnH,kBAAkB,CAAC,KAAK,EAAE,eAAe,EAAE,EAAE,EAAE,QAAQ;CAmB9D"}
@@ -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/accessors/BindingConfig.ts","../../../binding-common/dist/types/treeParameters/primitives/Alias.d.ts","../../../binding-common/dist/types/treeParameters/primitives/EntityId.d.ts","../../../binding-common/dist/types/treeParameters/primitives/EntityName.d.ts","../../../binding-common/dist/types/treeParameters/primitives/EntityRealmKey.d.ts","../../../binding-common/dist/types/treeParameters/primitives/ExpectedEntityCount.d.ts","../../../binding-common/dist/types/treeParameters/primitives/ExpectedQualifiedEntityMutation.d.ts","../../../binding-common/dist/types/treeParameters/primitives/ExpectedRelationMutation.d.ts","../../../binding-common/dist/types/treeParameters/primitives/FieldName.d.ts","../../../binding-common/dist/types/schema/SchemaColumnType.d.ts","../../../binding-common/dist/types/schema/SchemaEnums.d.ts","../../../binding-common/dist/types/schema/SchemaColumn.d.ts","../../../binding-common/dist/types/schema/SchemaRelationOrderBy.d.ts","../../../binding-common/dist/types/schema/SchemaRelation.d.ts","../../../binding-common/dist/types/schema/RawSchemaEntity.d.ts","../../../binding-common/dist/types/schema/RawSchemaEnum.d.ts","../../../binding-common/dist/types/schema/RawSchema.d.ts","../../../binding-common/dist/types/schema/SchemaField.d.ts","../../../binding-common/dist/types/schema/SchemaFields.d.ts","../../../binding-common/dist/types/schema/SchemaUniqueConstraint.d.ts","../../../binding-common/dist/types/schema/SchemaEntity.d.ts","../../../binding-common/dist/types/schema/SchemaEntities.d.ts","../../../binding-common/dist/types/schema/SchemaStore.d.ts","../../../binding-common/dist/types/schema/Schema.d.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","../../../binding-common/dist/types/schema/SchemaLoader.d.ts","../../../binding-common/dist/types/schema/SchemaPreprocessor.d.ts","../../../binding-common/dist/types/schema/index.d.ts","../../../binding-common/dist/types/environment/Environment.d.ts","../../../binding-common/dist/types/environment/TreeNodeEnvironmentFactory.d.ts","../../../binding-common/dist/types/environment/VariableFieldValue.d.ts","../../../binding-common/dist/types/environment/VariableInputTransformer.d.ts","../../../binding-common/dist/types/environment/index.d.ts","../../../binding-common/dist/types/treeParameters/primitives/Json.d.ts","../../../binding-common/dist/types/treeParameters/primitives/FieldValue.d.ts","../../../binding-common/dist/types/treeParameters/primitives/Filter.d.ts","../../../binding-common/dist/types/treeParameters/primitives/Limit.d.ts","../../../binding-common/dist/types/treeParameters/primitives/Offset.d.ts","../../../binding-common/dist/types/treeParameters/primitives/OrderBy.d.ts","../../../binding-common/dist/types/treeParameters/primitives/PlaceholderName.d.ts","../../../binding-common/dist/types/treeParameters/primitives/RemovalType.d.ts","../../../binding-common/dist/types/treeParameters/primitives/Scalar.d.ts","../../../binding-common/dist/types/treeParameters/primitives/UniqueWhere.d.ts","../../../binding-common/dist/types/treeParameters/primitives/SetOnCreate.d.ts","../../../binding-common/dist/types/treeParameters/primitives/TreeRootId.d.ts","../../../binding-common/dist/types/treeParameters/primitives/index.d.ts","../../../binding-common/dist/types/treeParameters/helpers/wrapFilterInHasOnes.d.ts","../../../binding-common/dist/types/treeParameters/helpers/index.d.ts","../../../binding-common/dist/types/treeParameters/EventListenersStore.d.ts","../../../binding-common/dist/types/types/ErrorAccessor.d.ts","../../../binding-common/dist/types/types/Errorable.d.ts","../../../binding-common/dist/types/types/PersistErrorOptions.d.ts","../../../binding-common/dist/types/types/PersistSuccessOptions.d.ts","../../../binding-common/dist/types/RuntimeId.d.ts","../../../binding-common/dist/types/types/EntityListAccessor.d.ts","../../../binding-common/dist/types/types/FieldAccessor.d.ts","../../../binding-common/dist/types/types/EntityAccessor.d.ts","../../../binding-common/dist/types/types/GetEntityByKey.d.ts","../../../binding-common/dist/types/types/GetEntityListSubTree.d.ts","../../../binding-common/dist/types/types/GetEntitySubTree.d.ts","../../../binding-common/dist/types/types/BatchUpdatesOptions.d.ts","../../../binding-common/dist/types/types/AsyncBatchUpdatesOptions.d.ts","../../../binding-common/dist/types/types/ExtendTree.d.ts","../../../binding-common/dist/types/types/QueryRequestResponse.d.ts","../../../binding-common/dist/types/types/DataBindingTransactionResult.d.ts","../../../binding-common/dist/types/types/PersistResult.d.ts","../../../binding-common/dist/types/types/Persist.d.ts","../../../binding-common/dist/types/types/BindingOperations.d.ts","../../../binding-common/dist/types/types/TreeRootAccessor.d.ts","../../../binding-common/dist/types/types/index.d.ts","../../../binding-common/dist/types/treeParameters/Normalized.d.ts","../../../binding-common/dist/types/treeParameters/TreeParameterMerger.d.ts","../../../binding-common/dist/types/treeParameters/Sugared.d.ts","../../../binding-common/dist/types/treeParameters/defaults.d.ts","../../../binding-common/dist/types/treeParameters/index.d.ts","../../../binding-common/dist/types/markers/FieldMarker.d.ts","../../../binding-common/dist/types/markers/EntityFieldPlaceholders.d.ts","../../../binding-common/dist/types/markers/EntityFieldMarkersContainer.d.ts","../../../binding-common/dist/types/markers/HasManyRelationMarker.d.ts","../../../binding-common/dist/types/markers/HasOneRelationMarker.d.ts","../../../binding-common/dist/types/markers/EntityFieldMarkers.d.ts","../../../binding-common/dist/types/markers/EntityListSubTreeMarker.d.ts","../../../binding-common/dist/types/markers/EntitySubTreeMarker.d.ts","../../../binding-common/dist/types/markers/SubTreeMarkers.d.ts","../../../binding-common/dist/types/markers/EntityFieldsWithHoistablesMarker.d.ts","../../../binding-common/dist/types/markers/MarkerTreeRoot.d.ts","../../../binding-common/dist/types/markers/MeaningfulMarker.d.ts","../../../binding-common/dist/types/markers/PlaceholderGenerator.d.ts","../../../binding-common/dist/types/markers/PlaceholderParametersGenerator.d.ts","../../../binding-common/dist/types/markers/MarkerMerger.d.ts","../../../binding-common/dist/types/markers/MarkerComparator.d.ts","../../../binding-common/dist/types/markers/index.d.ts","../../../binding-common/dist/types/queryLanguage/MarkerFactory.d.ts","../../../../node_modules/chevrotain/lib/chevrotain.d.ts","../../../binding-common/dist/types/queryLanguage/ParserResults.d.ts","../../../binding-common/dist/types/queryLanguage/Parser.d.ts","../../../binding-common/dist/types/queryLanguage/QueryLanguage.d.ts","../../../binding-common/dist/types/queryLanguage/QueryLanguageError.d.ts","../../../binding-common/dist/types/queryLanguage/tokenList.d.ts","../../../binding-common/dist/types/queryLanguage/index.d.ts","../../../binding-common/dist/types/consts.d.ts","../../../binding-common/dist/types/BindingError.d.ts","../../../binding-common/dist/types/DataBindingExtendAborted.d.ts","../../../binding-common/dist/types/LocalizedBindingError.d.ts","../../../binding-common/dist/types/utils/TreeNodeUtils.d.ts","../../../binding-common/dist/types/utils/assertNever.d.ts","../../../binding-common/dist/types/utils/createQueryBuilder.d.ts","../../../binding-common/dist/types/utils/whereToFilter.d.ts","../../../../node_modules/@types/uuid/index.d.ts","../../../binding-common/dist/types/index.d.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/core/state/EntityState.ts","../../src/core/state/FieldState.ts","../../src/core/state/StateNode.ts","../../src/core/state/EntityRealmState.ts","../../src/core/state/EntityListState.ts","../../src/core/state/getEntityMarker.ts","../../src/accessorTree/NormalizedPersistedData.ts","../../src/accessorTree/index.ts","../../src/utils/assertNever.ts","../../src/utils/generateEnumerabilityPreventingEntropy.ts","../../src/utils/isEmptyObject.ts","../../src/utils/index.ts","../../src/core/QueryGenerator.ts","../../src/core/requestAliases/MutationAlias.ts","../../src/core/requestAliases/index.ts","../../src/core/MutationGenerator.ts","../../src/core/RequestResponseNormalizer.ts","../../src/core/TreeStore.ts","../../src/core/state/StateIterator.ts","../../src/core/state/index.ts","../../src/core/ErrorsPreprocessor.ts","../../src/core/Config.ts","../../src/core/DirtinessTracker.ts","../../src/core/UpdateMetadata.ts","../../src/core/EventManager.ts","../../src/core/AccessorErrorManager.ts","../../src/core/RealmKeyGenerator.ts","../../src/core/StateInitializer.ts","../../src/core/operations/OperationsHelpers.ts","../../src/core/exceptions/TreeParameterSugarer.ts","../../src/core/exceptions/MarkerSugarer.ts","../../src/core/exceptions/ErrorLocator.ts","../../src/core/operations/EntityOperations.ts","../../node_modules/@types/uuid/index.d.ts","../../src/core/operations/FieldOperations.ts","../../src/core/operations/ListOperations.ts","../../src/core/operations/index.ts","../../src/accessors/EntityAccessorImpl.ts","../../src/accessors/EntityListAccessorImpl.ts","../../src/fieldHelpers/helpers/FieldHelper.ts","../../src/fieldHelpers/helpers/TemporalFieldHelper.ts","../../src/fieldHelpers/helpers/UuidFieldHelper.ts","../../src/fieldHelpers/helpers/index.ts","../../src/fieldHelpers/index.ts","../../src/accessors/FieldAccessorImpl.ts","../../src/accessors/index.ts","../../src/core/factories/createBatchUpdatesOptions.ts","../../src/core/factories/index.ts","../../src/core/TreeAugmenter.ts","../../src/core/utils/getCombinedSignal.ts","../../src/core/utils/index.ts","../../src/core/DataBinding.ts","../../src/core/index.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],[299],[295],[296],[297,298],[209,219],[192],[145,192],[146,192,227],[146,148,192],[146,147,148,149],[145,150,171,187,192,209,217,218,219,220,221,222,223,224,225,226],[192,193,196,197],[194,198],[192,195,201],[150,192,195],[209],[150,192,209],[192,201],[193,196,197,199,200],[150,192],[192,199,200],[193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208],[142,150,192,211,212],[150,192,212],[210,213,214,215,216],[211],[94,95],[91,93,192],[90],[90,91,93,97,100,102,192],[89,90,192],[100,192],[98,99,192],[91,93],[97,192],[103,142],[96,102],[92,192],[90,101],[89,90,91,92,93,96,97,98,99,100,101,102,103,143,144],[163,166,187],[163,187],[164],[163,165,166,188,189,190,191],[150,151],[142],[160],[81,82,83,84,85,86,87,88,151,152,153,154,155,156,157,158,159,160,161,162],[142,178],[175,176,177],[150,178,179,180,181,184,209],[142,181],[150,167,168,169,170,172,173,178,179,192,209],[150,167,168,169,170,171,174,178,179,192,209],[167],[145,167,168,174,178,192],[174],[150,172,192],[150,174,192],[169,170,183],[179],[167,182,192],[185],[167,168,169,170,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186],[145,150],[141,145],[79,227],[79,247],[79],[79,227,248,260,277],[79,227,260,277],[79,227,260,277,284],[79,80,278,279,285],[79,142,227,256,258,260,261,265],[79,286],[79,142,227,252,253,256,258,260,262,263,264,265,266,268,288,289,291],[79,142,227,255,256],[79,227,258,260,262,263,264],[79,142,227,248,252,253,255,258,260],[79,142,227],[79,227,240,260],[79,227,248,256],[79,227,240,248,258,260,265,266,267,277,286],[79,227,248,256,258,260,265,268,269],[79,227,248,256,257,260],[79,227,260,270,271],[79,227,270],[79,227,258],[79,287],[79,253,258,262,263,265,268,289,292],[79,227,258,260,265,266,268,269,272],[79,227,258,260,265,266,268,269,274],[79,227,258,260,265,266,267,268,269,272,274],[79,227,258,260,265,267,268],[79,273,275,276],[79,254],[79,227,240,244],[79,227,241,243,245],[79,227,244],[79,227,242,243,244,245,246,258],[79,227,242,244,245],[79,244],[79,241,242,243,244,245,246,259],[79,290],[79,227,280],[79,227,274,280],[79,281,282],[79,283],[79,227,248,286,293],[79,249,250,251],[128,136],[118,132,136],[132,136,138],[132,136,137,138,139,140],[118,123,132],[123],[132,133],[133,134,135],[118,129],[118],[129,130,131],[118,124,128,141],[118,121],[121,122],[104,105,118],[119],[104,105,119,120],[125],[125,126,127],[116,117],[107,108],[108],[106,107,108,109,110,111,112,113,114,115],[106],[107],[228],[230],[230,231],[233,234],[229,232,235,239],[236,237,238]],"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":"47374b4da61a1c212780bd0650eea1aa28f8c922e9c86e8d6b88915db991ebd3","signature":"a8a144245cc8730cb8b62c1c6f6403f4f7961b91233a7b78cb5ad6a2501f1e52"},"4f375f610dc446c8059ae63382bdd9b73144e7f6d8ab6a52b9f967391f69614c","c5fc60b33ff1e9ba39acb4798721819510a604e730954d89b2532ec25b397684","0415e15a2fd767472855a4b8b49f291586bf72cc1b6cdbf1813fc89ca15c1466","ae8946800b816a805d3028773363bf9bfa9bae06d35ec510ac7ec64c7d9dc4bb","59104d5583b62b3bebd8e3f67f76c493c19c0ef67a54ec1bb76bdb0a38d54907","fb8cfb0f79ab59f6f516099579812b0afbbeaad920ff8bcdc203d353c0f3ed7b","4fc5d257b5c5ad748217f85127b478b7decaf21119a7f1c386f12bc48ac78fbd","523f4bf97ced9bea71b5e0c1907d60f4b22fc0ee194ee8dea232bbb56dc7aa43","baf6ff91c2f3220a67b4e12c355635ab7a4a226238f453b2a8addafa9824ceca","25f94b2056812c44fb7d5776394914997371576f0543657193c25d93d6bfb58c","e78828390806b5c451404f43a1792dce05e890e5d23c20e4c019d0320a595232","2426426230361aa9515139601137c65f8c6f81ae03d90978e3a1920b364f7c4c","cdd800bf88b78d9969f558af6895e1e87b667af400a0da0f8a396d876a20cf42","728b7bac9f044738fe4c3c6f6355f04220f0bc02e72993767e484d3024096560","f203f19c867e8cd7ef537ef57f37d1700b3d736537d0cc0d9590e1fa6d1e2bb2","5308dc6569f2ae3d964b01e7ab1ab7861c893f561c0ba79fc73efcc2746f94f3","53dfa882ad9d481969edf721ad032e6d1dc71d8afa6a8fab401788845af6fa65","df4e4a809b147b76b5362e3a2177f1633e14873f41a983e5a2fefd129c2ae119","bcbb5574d92bbb6e57d485740c1cddb26211cf8a7703174628eb4854abf1f4d7","882400098e7eef335e01abafbb2d0003fffa4ce1e02c62ef6f173fe2bfeab65a","47e62cf6cfd81a9e11bc04c472203dcf1bfb2a6676f152f2d67ff538bceb93fb","6c9d2b64785264d6e91587223c61db55713d519b16dd76113d8b08f42d8aac61","c9460b9b18d82e50bb6b542838447fefc14f326ca1e625b674cde658c688c457","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","e7899ed2786c9741e938d5264867f578606f0939f66a7446404920f7ada404bd","33491243e9e60504ee3d733817b089c90d639dc3f1238a3d6417083e9dd5b683","f289c5204b0819632486cefeec845a20a7a9c769180fb6bede63b0d7f24839d2","feaceef383869ce3addd7d620c89fa6ff1d5753f7b451cffb1e926998df2b5e4","4f4d0e8aeb309bbb646dd57615ca9375fa2821df08120fe318124647d91de80a","06c1e22ce1921cfd383c800f9e191972c5dfaca8996cca54d85c4b4cb41db49d","0b42a31c12bc794fe3b4efafc5af85e9bd2d094f086157dfdc98ea4f0a13016a","6c7327831239ec38e57c18eb15c5b191aa258ada0528de8dc93092efcba20896","3c4de8d194c64b484827151ff14582884166268c345cbb13f9c19e4be3912f54","62ca877d3c090576b3ca1cd3e576c931eaedefc3af1b5ef405e41fd22c8b2955","5e8c7ad4619cc15007aa5bc3f4e1a30cb01540c14beaa609fb8d17d21acaceba","016e695348eb662b9adead21973e3da689bbff9c65811491644e2ed594fca800","1702404293385fb18761a3cf716b3c2888c6fa95d3ef96bc8e4e8f5a6e679689","8ed57aaf9593ac2424ef286cd48dadfe4867523dad64689d550d15df72c80a0a","9c019ccda878d72c06b62d95c74b38134a7089c9f5e4e02f9955f26a0fc86c6e","4795f48243e3f12a19561c8c5296e7f2892bc3fcbec77e90f811c836042d1ed8","a8041f2147221598f9fc3c07271cc863420534bd17897e259b1a274cf0c17c37","3d882826c2565ed06ed356336468bed703202f9733ff1ac7101180e79c94c04c","fcc7872b6032588c50c585e897ceb7e0002185fdc24276e672320ad08b67b984","bb2685d458f95d2fdff3eaf45aec789effef9086a474f8a94e337372813b7879","8bbb10dc113bd3ca30bceccd7b514a6d49ac6fd4aa58fc1d1ec1dd0d22874e18","5514f9d40d706531e48ed966234d02fbb53957c850fa45425d4200e620bd5960","ad6fccef98f7c1922c97d493012a7de1120ff90d291a9867c4d7529771e44f05","bd6b7f4bd62af5eca5876f74c9b1830b5380ca719c2261a0149ea385f8de416f","38dd234d61d9863a4f6e3ffd19c50a02cc3ccd742a7783826a47cbb04fce4de8","3350f2a0fbc92917e62068fc5a5df0e76990b69695c79299753cf92bf8b76984","692068a2fdfd2f62138b54bd5f854a0451f19c53697096c4a1644506712283f6","9a9a41e807a60d89317a7be6fe7c6ac96eb5bb32c530b543bd4618badb65a8ec","c12ab6b360266f86e606a50ef28bed97c0c13acb8a9c7be4c37dda67f46a938f","82012981d19b1d4d8af74a45b1cccde2f47a23dddb5d45b1a32eb74b279c741b","f2efbaaf976486e7b7d4dc715fc96d23875fd3527ab6d3ae3f392642cc012ba3","39378d141f8c339cf85cc59fe81834ab9021de01c6424e70a11052e94daa58e7","661365dddb8fd571f6b73346cc879381c131f826f85217c216a142b25aa05620","f51cc25c36f059fb909bd32e35402a16a3538d9d04956fe86a63aac92ada567a","74ecd3132a5eccc98a96254fd9a673ae0577493bb89e68e8dcb4a4587dcd27b4","c5588f5af1a79fdb751f2f4952e4d5382debc0673b965a41de3dfae378b856df","a6fe4b83212a3c05e0995d32ab46ada7ddee3ad705d862156d033e71a8a7de16","68ed88262c1144732c0347a3b73756ee8e7a14129f643927c7d7475f74b2dbf8","83d47ad39f96f384c4ea7695abc0f002015cf8f535a767a6848d6445a9f2adec","9fa8a1c9549e040154187bd3e1b431e38498a6940ebe334d2b27e525fb9b02b3","6cbdc375ec2e18765abe5d748141506b29340f4e4ff0e5ce2e37af9d9355baba","81c490a9e2f1bdbfe4b2ea2260a4f00a766dc7bd0b7bf7c89a03af9f452d8474","c179b2e68cbe73ad639f20e67246bce84c35dbe4d23ac7cc967449b9f2b3d7fe","b6d1d9c10162900de546c1a9643aa3a2a299e046d19c065d3f4d69991288b913","657589753139fae790243de79f0049961d6a604b6f306ff257b6f1c7419504e9","cb1c1d9343793cffcc2b21c4fc801015f0bc5bc80257b4d3793581f4d297fb9f","801bbab7056e29582d0ab806481e8a8baeaac7a47bdf656f9d0560527cdce258","2a82bec8d92c0c9e13f8507bbacebe5428ae0fce3a48b9634bce6cf942c0bb0d","21f46169942246675c1e557283af4fb89163737ab7a2737cfeaa0bf46c2c8237","d687400beacbb0138a153625aebb6cc061e5335b50a6206b33b7fd71e0c50f88","978700cc62125b4c10be8db21e7cfb4d3fb9102f07679d390bf68252cb94f9b2","1d41678749d09eb543d3aead40fa42e4f6e730cc22903ce9d01a3ecb41e82633","310c07f5eba9c620968a4b9c90c73108fc4c11600c5b316c54b2be56e81940a5","1d8d46bd430df012b16b4e048d6a18d8a1862736d2d5b763e42a43f3a15eaf9f","6852ed190c8ab742071a493aff7c8c13725457c37241e95351db194756d2ee44","a60d6dc03894482436b67e811b14627c350abb79bb3bde92aa8dc676744f5f63","291339b78580b8e3713d4f9aae3c43accd72f76d722c1f218db0cf4610dd5c56","7f6335a6cd33fb4250b9fbc8533fb61bfd4265a7dcc05d28d6b8f8fcf5b9855c","7880216f3a2a0d364aa7ad959b0044c1db783403957fdb518c82d74e8bc612fa","b06ac1e63dfcc9f02259165d754bc449ff11506bd30754356873f5b1268cdbe4","2e82e0799bb145051965f68b2c5b7c5cb5472d90b6b11dfd919c52b989910ff9","4648722f51e6e8a33977faa24b400a597c60cd51f8b9290063d3d47835d45680","ec7e115f7840b3e06a9e84b2a0fd96817d951cdc9af213f09d6c5dd5ff7a4b71","0baa07d0844ce4b8ffdd6a64e19f60ad382f2a9683aec9cc51a1ddf32207286e","d633069c5a26f29d06890aa40935bae0235bec8acd6ba4ef0fd04c9487f4291d","5fc220c4b02dc64bfc3883296e6a56a305930d769754e0f57b4061270c862f60","d0dc311661a7af65c96071e8e544e9af58526b3890fdce8dc9a68b6a0535899f","c084b437ac1da0ded4157d7cabcbda15efed7a4140e120cadb8e3d60d6606d97","82ac1305f15ac871fdc1ea62fbf0fa682845ac999ce20eac278f14fd889b3c40","9b3e2b9b29dfaeecd4ca0b82f2916e18ee9fb497c68d531fd7778cc445de3541","87cbaff27514f99c7e51b79632783dbf79913e492dc9a3dee608fc1a04f0044a","63e17799d3f8f9abaffe17efdc52dd13e460aa961dde160fdbf66e083fe44bf6","b0d18e18b4ae7d4fd2ff2b740ef5871da547181d639738005148f4cf8bb1913c","a90443082cf87a9a5f8479bc824f88bd5a1b8ca702952d8726dcf159ac265226","71f8464e638628c9a2456dc55815fdc89cca4526d3ed0cdbfe76c4d17ac9deb9","088a8626cc6be46835e464981878f3e8145aa034be1705d39602778f34bf11e9","b52aa2e0ed6144d386d518123489821ca5c75504704ed816160c0e0b33143034","b8cac2c16342775cd57d9f08143e7dfc585bdb0e8c2b714ce3db860282847d24","5c8a6edd8cdb2e624a415c3563ca45872f0aa0d96586595bcda36b4dce797fe0","e74c5155662dea1a1a20b7b77803d308508e4d146ca591e22df9eaabd515b8bc","68383a05d0e8b02ff1cd4fb8f5e6509b0f783b7c17944789e90fdf24d068574d","8753944b63f6c310afaa9d07879704b35455d45494d4fa1356e0c0e22f8f180c",{"version":"8d9f9b0d58822eb76d0b355bfecfa4d8e2e2609a2ea4abd92f9e7fa04e1fdfea","impliedFormat":1},"bbc9edde5980e807d9966750fbe36f05b739d3f7a1e53ab9d850ed937b86c07c","7d45c7409c354acf67517ef46e3e42bf5599f69dd20e2c27b1897696b303e9c2","14d24d75d8c944b4e4de0afe58dc6cd8172ef37f6195af7574618956d39b1f49","b6890f830e835c28b15a1d17004db17f6a592ee9f56b8aba95e94927203950f0","4530bbafa939be7beaf0b51c33aaf1dc82e5d4f1cc2512103939b45415b6899a","c7136145a5e2d6bbfe4e2b92c0f1b3d2e687c2609c19bea0e11c0aab7534de01","80cdef588a8ce69225209e217152117f9ceadb4a4777dbf8669ff2777fe9b454","3b89cad1dbac2d3f8c27f2d91d15694b4e79b7b881f969e4714895c11875cb18","8071013baf5e634d2100b635c006e1b8fceda6a275996f267209dea86afadacd","3f20fb238766dbba64da0ece03c323fa2dacc69c81b2b6655c7415bd1d6b2f16","07606808f139cdf0b92313b56644505bfd853e73da7dbd6a28d0110bf9395437","a95c25e1f9146dd90f7cb36c7e306a25a67bdef1eaae7319a60d2f9d3ff66804","8fd5393cde0e4674a43debed6b0816b468b5f7d7016c02e431898f02019a6725","04b98d2fbf095999a1fb17d211da5ffce679f822199742bb73f90a34a3ec5998",{"version":"f874ea4d0091b0a44362a5f74d26caab2e66dec306c2bf7e8965f5106e784c3b","impliedFormat":1},"c8b4573375c024fc9735f73081ac5557cd7d667ace932079c4496182fd6c8396","a95c25e1f9146dd90f7cb36c7e306a25a67bdef1eaae7319a60d2f9d3ff66804","3436aa850e6d85c1ca81028e1ac6a9ba3ca0cbc27efe797fe99aea0a99a49881","624e76b41eb76400df5e0cbacc5f7091e6bd0518e0f9f4ac4a047794b2c189f9","f14113b17b6a1863dd58e49e0bc504f21d51da969bc1fc4af1a07b3684f0de25","1762533296e00297d454534bdb27ddae5f6b69fef679295094cb0afb4e9a526a","1c84b348bb07619f2123fddd01c20184c6212540909bd98fdc450f7d4e234717","dfe644b96a0786c3ed103bffe7331349022c647802d40030067cf71c9ce79bb5","893bdae1d9648d1f4da2ddad5647a63282aef8d30df09eacb14fdb68e2349a1d","0a52d67559b7ef5541d532dc78fbbfb69d028a4adf1c3501424e355e53e66257","fed47bc1ca2d6c672b7ce3be63f206bd0ad5e67c18c2650eb9d79d842e9d208a","cd7e9d427302a244cce2881eceae5fbaccf62a7a6064f161a699fe39bad1d998","fb6bb88e6e41f878eaf58a6c141e0379f208f85f6f922512b3b25efffe70380b","e31346a3e386e227daee4cd99ac59dc7bd0e324541ea401bdf8b623a7e20bf56",{"version":"875c0a8fe0ec5b1366a72a048228baff0436f54c3c99b7d758e327b0a7eaf572","signature":"d27b30d4ad3cb75f549d27286319b84e1b77853211c1681ebc6fafe6e4dafaa8"},{"version":"cb1eb20f94d95c863579c9b2d21cdfcd26b39fbfad127ded27d2a789e7e4d540","signature":"f687da8cb3943be263dd564b5ca224be5c896239ec62990c10362fa48e5a8293"},{"version":"b04ce88b6c19680dc8c1a3515dfa5e925e641d87a604fbe2d1fe18bf6673f119","signature":"48f4010b20821a485fca0b04cbe78bee97179ab875aa2495d6caf36ab1497a3a"},{"version":"586600962a3eb50940205d932bfe38477a5409878f9dda2b4ac71ffc89937634","signature":"6fe2d5a863131379ad211a14d6ffd0f6ce4e50c75bb2a651bfa09073d2648edf"},{"version":"d583c79328f233a78ba74b25c35963f2891723492d94c00bd94856a0cb7a7f8e","signature":"33e4f8df3e8ac9757c4051c9f0fe740fd79599e7072fbbf3d3650be8440c3700"},{"version":"223dc54a2bc18ae4de2e889a4b2c231e8e3b071e2cece19f24e1bd5d367327eb","signature":"b857d4931b17289afe1cff73bc047c7bed8c365d4f22c69fa0e7eb17e6ab41d1"},{"version":"827a28d1a1866b0cf250b9468d40cebd5a648430bbfe7376a707fbb74dbca7ad","signature":"dbf6aba6ec7a9fc603fadcc13491bdb207d57965db7c81a3991a0be2735e71f6"},{"version":"37a6548dccf84a11822481ac826ada017fc73cac109f46878bac728617e8cd34","signature":"3e94c68340dedbce462a6458fd8e9ea4bd6ca33cfb1c61a9e473812e0bdd5012"},{"version":"5867ea6785267d672ee4ad1fc8da53e99882e76b1bedd95131d1afd9f0d04d6f","signature":"a95c25e1f9146dd90f7cb36c7e306a25a67bdef1eaae7319a60d2f9d3ff66804"},{"version":"1f9ae81e86fca2125704699bc532ebc83e1fdd073be560c034800d6bf22b5e5c","signature":"86c657932f52ab103b37ced85ed22f7101852becaee053e5f764abe53c8dec83"},{"version":"0917eb9505c21756d3112ce0dd5090eccc03365bf811d96e3927a57f28c7f8ef","signature":"b8263acca7f07a9648ff99a34c8948186c736ae498dbc7ad8abe98fbbfb62650"},{"version":"f792af12467bc49217beedc2463f6bfb786e41b2f592110b2b4dc20397d563b9","signature":"54af5c685ad387d0304490dadf783119cf93fc114a353586e437a97becfddb0f"},{"version":"08e1be872f577056c2aa5fca356c5e72bedf5a208fedff8e27a969a5553e9129","signature":"ba6d3111b9242cf3486061b0d2a68ae819d668b57c5b5d16f5b1330fb0fb7983"},{"version":"04b4b171df7f4f629fe4692c286ad3506b9275080c7d3d302311d834d5329713","signature":"fce23f7b3d292e850338883306214fc6847e075913280e3895d8392fa2c46710"},{"version":"5d2e5a25ea1337aec44aac08ea228cef1c2bb6ae0901905dd8e8eb610f80424a","signature":"c55ff69350fe2b32456309d5b33b44751bebdb69a8bd007213e5bb19f48152ad"},{"version":"0bea00293fb025e5f285b961ccaf3095d15354513b9eb01a613e64e66807fa67","signature":"a1a75b2efea02456a6fab8efc581bf13bb17612822db0b3cdfe22fa5647c3b9b"},{"version":"f04ab4d158d571e330f700b1895ea590f4c5dc027f37bef783d36d19ad8d3e84","signature":"33d93566f34ab84972f0c1343996525f91162a20bea0c7477efeb1f97d98e9ef"},{"version":"38763a65b0e518a1de4e220fadb5cf299feea2fac51578a99024827d93d85574","signature":"ae938b86cd449717f89b9445fe96aabc4b379526fc497401c755e405cad626fa"},{"version":"6312ed685112ae4048990767ee983b6d1014176e6650153b54d08f6deeeb4d2a","signature":"643bd27a464eb40429a94dafbab300ffbbd46c81e6d2139cd485617de38c1d1d"},{"version":"bfeafc96bd417e1d3fc21bda0f782b76928b7d15280ce4d9000f076327a4800a","signature":"f0b2bb3e4bb7da7ee00773b4ede5985a069a5b572d695880724e5cf3ccde60d1"},{"version":"428f779cf355bba75afe8beb273a3a0723222682d47c1ba285572460750128f7","signature":"95790b898d52588cd9b4c3dd288963871a3fd51bcb600564061742e2eca5fb92"},{"version":"b242de6b4e964840df6f759fd5cd8dc67bd334ac64fbd198b90f2a8830247556","signature":"8c4db827771ab8c4cb02da474755e0d0486bd46710c3c01bc98eb01473861690"},{"version":"b7288855b4b25774c74426ab0f2e470ca50896dd436158d5ac3fbe4daaaa9b63","signature":"09172108ff8f16aac912f57f5371b943b21d908f88a1f70eada019d1c9c00423"},{"version":"de6e97411c3c2a860804c7977d6483690b6f97a51090b01c354cfdb1c1332886","signature":"a4572efd5154494757b690c5e20e60ec9d60583088cc33ec97341a8ef25bc2dd"},{"version":"a17aa974206d136e41d33d856bc1e612ef07c15c57060bafbd521dd4dfaf2212","signature":"ac37b70e5aa5f10e5bb2a39d11a95dd092cb4fb6aced8217fe703ec2aadd3275"},{"version":"490f97e6bd8f632420288f8267ff7517cb75479f23918b6f1086dd6273c93bda","signature":"5b61d5781adf85dcd53f94550227bf049da881e76b7d8f21c03d9275f436e042"},{"version":"e6022ca5fa72f0dcab4ef2847ad6c1c3a0412bc7ecb726598573af54598339e4","signature":"678bfa7939b8e8e875b628bc9124140a4313a22b54f63f971c84153c5acf1b62"},{"version":"3bde2f712055258a5f8220c63a40bfe2794dbffbedb2b87c92e8e8ad1ec772e2","signature":"d5555adf1ecea982b4329e60e4362fce6fdaa1fbf72d6987f67bd89ac792c9e3"},{"version":"d3668588fc0f9eff49865229302f70e1b2d51fb4495f170746b016bfed0f72da","signature":"24d65a13bc67a431b8fa7ca2654d765464b33cd9b86593c0e08cca8df623a27b"},{"version":"b6df1b7fb0185ad74164703929315a2278db55c62daba8c30ae69897ccddb01b","signature":"8f0008bbeeb857b9df567c073cf5b61de0e288aaeeb0e4807c1bf796d71620c2"},{"version":"0848fcb83891fdcdbc615fb2b1258e155a531b79226f947e7d55c4565acfc1ae","signature":"ea1933d700d4906d4cb1a1854e8a8f81ab9659d1f502b2703542be6da15efaf0"},{"version":"1158d47aa1743978709d55d7eef02d2fb7ef246f635a4c09e68b5dec52a28fa0","signature":"b700e72176477960731e087a67212a3d7e2c64e9f68358fa6758b5d987182a7e"},{"version":"9e08367585148531a2f05ef2da223a830865f43893b2c5580a41b339f0eb7e6d","signature":"d584a4769e0ddc1eeacd4ee458ced8da82953f966aefaa2bd15886fb85f9b311"},{"version":"7d2b7fe4adb76d8253f20e4dbdce044f1cdfab4902ec33c3604585f553883f7d","impliedFormat":1},{"version":"c47748f768926fa4368dcbec9e2b3c78edd569ef04d8aef7a2c0cda54e4757f5","signature":"7ab101411be0f2e22a34e0c988e887aa2e8ffea67fdd30293f6f15200249158c"},{"version":"508c868fcab488ad6709e237339458cc004a06d51ba263a4d40d448f3cf13fbc","signature":"16bfd452ad0c4b7cdf24413311361b4ecce7595bd0ad291b5b703178e544b233"},{"version":"5b49a04fb6dd8df5e1ef58bc635d54fb4fbedaaf8b4faad44c4aefdfa499bc6e","signature":"9802ed9a1309faf873f1002b2b8e3235963ab6c04759f9dc15a04c9c174ccf5b"},{"version":"01eddd35f0862bc3fe6c1aa7b213e90498c379a1c3daf6159cd0428986dbed66","signature":"d3f41ecf5464f87b92cccc4dfd3590fff05f87edd92e8fc060584786122bb6c2"},{"version":"bd55c0b34acc45f0999b1ab32ff049eb1e9590dff0ee5cc4e162f4a0be4e86c0","signature":"a6cec3874ceef88388e4fada58761adcd6013afb3e9b19ffe32b6f054b8982dd"},{"version":"251b9a7b9298a16e05b97ecc6f3193e1fece82811da4717061143e6039ecae32","signature":"5e3930e664a495ebedeae1a9ba6e52ac1b1ace02cfac12ede217c1018c68ee3b"},{"version":"844999e245aff00e925144f93ca8f9de14a2d59343936cf0992ae54cc2b665fb","signature":"8cbd46376db20b7b31173956b49f730de7d5349872ebd0283384491c24376d7b"},{"version":"a228f75244512d171cdf864aaf33bef2ce7a309e1439ce252225fe7e08055d06","signature":"fca2e6398009189dfb21e7f9428bbb20cbe8493c0358595d24c55582e1ff855c"},{"version":"5ee3089d396403406c625cdf2522f3b2c3c704a5e144da27142e28fae73b4bab","signature":"7edb167a45976c0ca99070f5c827664f4887455d214151fd7fb6b1693486ca76"},{"version":"2db015d88257bc861da84a48fa0c7c9d38f1c037b6e572d183c524f709e06a7c","signature":"4f7d54c603949113f45505330caae6f41e8dbb59841d4ae20b42307dc4579835"},{"version":"1d8b30df4b19f7a69c14bc376ff235923e7437796103c858c9e9e19c34dfc658","signature":"a64f5abe63aa217e59c991615a1e8d96f4fb095446fcb45f9149364fd0110bd0"},{"version":"d137f2f001b9fa180681f9495bd69eee4e3c87e7936fb088a1a4e572274bcc24","signature":"04d555aa4c3197b4405dd4cb208f33bcc84161b4a139ba2aa7db40de52348350"},{"version":"2f5a6ecdded762ddfac4b8bbe7a6391a837f025c528bb7b1e9fecde837f44957","signature":"66ede64165f30d35ca104631275ed1cc760bac3c4f13f7b57d94bf46c47f6587"},{"version":"96b0577c0ca01595f7820ec16339d1aec8914e77f958da74c60676ea394816fc","signature":"4281dd088d8d4d04c980fac4ebc9ae5283e9bd3137d75b300ef73e2f864d1177"},{"version":"946751bab30d4be65f9c9be19506e70eecd60c876cf05a7ba67cdca1c170b802","signature":"7c7e24ff4bce1772f379e428d43c12193fcbc0d0fe2d6b09a18d95cd51ed3a64"},{"version":"e4da17ada1d669848a8a3baabaf6e330d6af5d17859130751aa8e0fe1b0a386d","signature":"cd88a003f0e5f8aca5b43b2d46c5f84e07c98975858d6ee780bd765bf95ee0ec"},{"version":"e8a916820dfe91ec4170e2f9284f45c4dd665a15886640e7a600661132755b94","signature":"9c5c1e0df5b46ae8388b7d33a5070ebec57bb68834ff784432f853643b9f2678"},{"version":"f8dbee6032e51f5e46ad1309f6139125f033e2d5ffbb1fff084b5ee8a9e9f207","signature":"755d113f88d52b071cc2a13d020933dbf6a253978e9a96004795d6fe3bef2d06"},{"version":"1ed16da5be3c0c7720c2e6a053d72b5962629a9b3b68e74d5bec6d2db7c563ce","signature":"855006bb38a9efdc4d60fecdc55474529477ccc6e9d18e68d503882104cc0fdf"},{"version":"ffb99383d0c077a10412d6746198aca370b149516cabaaa865a02ff726a62a41","signature":"cd280c5464fc92fa20214fa88c8c9b62581aa8da10984a687fe7eb322a0b987c"},{"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,[241,273],[275,294]],"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],[300,3],[296,4],[297,5],[299,6],[221,7],[171,8],[146,9],[147,10],[149,11],[150,12],[227,13],[198,14],[195,15],[194,8],[202,16],[199,17],[200,17],[193,8],[196,17],[197,17],[208,18],[207,19],[203,20],[204,21],[205,22],[206,22],[201,23],[209,24],[210,19],[213,25],[212,8],[214,26],[217,27],[216,28],[96,29],[94,30],[95,31],[103,32],[91,33],[101,34],[100,35],[97,36],[98,37],[143,38],[144,39],[93,40],[102,41],[99,8],[145,42],[188,43],[190,44],[189,8],[165,45],[164,8],[192,46],[152,47],[153,48],[156,48],[161,49],[160,48],[163,50],[179,51],[178,52],[185,53],[182,54],[174,55],[172,56],[167,48],[168,57],[180,22],[173,58],[175,59],[176,60],[177,61],[184,62],[169,63],[183,64],[170,63],[181,8],[186,65],[187,66],[222,67],[224,68],[225,48],[247,69],[248,70],[80,71],[278,72],[279,73],[285,74],[286,75],[266,76],[262,77],[292,78],[263,71],[261,79],[265,80],[256,81],[253,82],[267,83],[257,84],[268,85],[289,86],[258,87],[264,71],[272,88],[271,89],[270,69],[287,90],[288,91],[293,92],[273,93],[275,94],[276,95],[269,96],[277,97],[254,69],[255,98],[245,99],[244,100],[241,101],[242,101],[259,102],[243,103],[246,104],[260,105],[290,71],[291,106],[280,69],[281,107],[282,108],[283,109],[284,110],[294,111],[249,69],[250,71],[252,112],[251,71],[137,113],[138,114],[139,115],[141,116],[133,117],[134,118],[135,119],[136,120],[130,121],[131,122],[129,122],[132,123],[140,118],[124,118],[142,124],[122,125],[123,126],[119,127],[120,128],[105,128],[121,129],[126,130],[128,131],[118,132],[109,133],[110,134],[111,133],[116,135],[107,136],[112,137],[113,136],[115,134],[229,138],[231,139],[232,140],[235,141],[240,142],[239,143]],"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/accessors/BindingConfig.ts","../../../binding-common/dist/types/treeParameters/primitives/Alias.d.ts","../../../binding-common/dist/types/treeParameters/primitives/EntityId.d.ts","../../../binding-common/dist/types/treeParameters/primitives/EntityName.d.ts","../../../binding-common/dist/types/treeParameters/primitives/EntityRealmKey.d.ts","../../../binding-common/dist/types/treeParameters/primitives/ExpectedEntityCount.d.ts","../../../binding-common/dist/types/treeParameters/primitives/ExpectedQualifiedEntityMutation.d.ts","../../../binding-common/dist/types/treeParameters/primitives/ExpectedRelationMutation.d.ts","../../../binding-common/dist/types/treeParameters/primitives/FieldName.d.ts","../../../binding-common/dist/types/schema/SchemaColumnType.d.ts","../../../binding-common/dist/types/schema/SchemaEnums.d.ts","../../../binding-common/dist/types/schema/SchemaColumn.d.ts","../../../binding-common/dist/types/schema/SchemaRelationOrderBy.d.ts","../../../binding-common/dist/types/schema/SchemaRelation.d.ts","../../../binding-common/dist/types/schema/RawSchemaEntity.d.ts","../../../binding-common/dist/types/schema/RawSchemaEnum.d.ts","../../../binding-common/dist/types/schema/RawSchema.d.ts","../../../binding-common/dist/types/schema/SchemaField.d.ts","../../../binding-common/dist/types/schema/SchemaFields.d.ts","../../../binding-common/dist/types/schema/SchemaUniqueConstraint.d.ts","../../../binding-common/dist/types/schema/SchemaEntity.d.ts","../../../binding-common/dist/types/schema/SchemaEntities.d.ts","../../../binding-common/dist/types/schema/SchemaStore.d.ts","../../../binding-common/dist/types/schema/Schema.d.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","../../../binding-common/dist/types/schema/SchemaLoader.d.ts","../../../binding-common/dist/types/schema/SchemaPreprocessor.d.ts","../../../binding-common/dist/types/schema/index.d.ts","../../../binding-common/dist/types/environment/Environment.d.ts","../../../binding-common/dist/types/environment/TreeNodeEnvironmentFactory.d.ts","../../../binding-common/dist/types/environment/VariableFieldValue.d.ts","../../../binding-common/dist/types/environment/VariableInputTransformer.d.ts","../../../binding-common/dist/types/environment/index.d.ts","../../../binding-common/dist/types/treeParameters/primitives/Json.d.ts","../../../binding-common/dist/types/treeParameters/primitives/FieldValue.d.ts","../../../binding-common/dist/types/treeParameters/primitives/Filter.d.ts","../../../binding-common/dist/types/treeParameters/primitives/Limit.d.ts","../../../binding-common/dist/types/treeParameters/primitives/Offset.d.ts","../../../binding-common/dist/types/treeParameters/primitives/OrderBy.d.ts","../../../binding-common/dist/types/treeParameters/primitives/PlaceholderName.d.ts","../../../binding-common/dist/types/treeParameters/primitives/RemovalType.d.ts","../../../binding-common/dist/types/treeParameters/primitives/Scalar.d.ts","../../../binding-common/dist/types/treeParameters/primitives/UniqueWhere.d.ts","../../../binding-common/dist/types/treeParameters/primitives/SetOnCreate.d.ts","../../../binding-common/dist/types/treeParameters/primitives/TreeRootId.d.ts","../../../binding-common/dist/types/treeParameters/primitives/index.d.ts","../../../binding-common/dist/types/treeParameters/helpers/wrapFilterInHasOnes.d.ts","../../../binding-common/dist/types/treeParameters/helpers/index.d.ts","../../../binding-common/dist/types/treeParameters/EventListenersStore.d.ts","../../../binding-common/dist/types/types/ErrorAccessor.d.ts","../../../binding-common/dist/types/types/Errorable.d.ts","../../../binding-common/dist/types/types/PersistErrorOptions.d.ts","../../../binding-common/dist/types/types/PersistSuccessOptions.d.ts","../../../binding-common/dist/types/RuntimeId.d.ts","../../../binding-common/dist/types/types/EntityListAccessor.d.ts","../../../binding-common/dist/types/types/FieldAccessor.d.ts","../../../binding-common/dist/types/types/EntityAccessor.d.ts","../../../binding-common/dist/types/types/GetEntityByKey.d.ts","../../../binding-common/dist/types/types/GetEntityListSubTree.d.ts","../../../binding-common/dist/types/types/GetEntitySubTree.d.ts","../../../binding-common/dist/types/types/BatchUpdatesOptions.d.ts","../../../binding-common/dist/types/types/AsyncBatchUpdatesOptions.d.ts","../../../binding-common/dist/types/types/ExtendTree.d.ts","../../../binding-common/dist/types/types/QueryRequestResponse.d.ts","../../../binding-common/dist/types/types/DataBindingTransactionResult.d.ts","../../../binding-common/dist/types/types/PersistResult.d.ts","../../../binding-common/dist/types/types/Persist.d.ts","../../../binding-common/dist/types/types/BindingOperations.d.ts","../../../binding-common/dist/types/types/TreeRootAccessor.d.ts","../../../binding-common/dist/types/types/index.d.ts","../../../binding-common/dist/types/treeParameters/Normalized.d.ts","../../../binding-common/dist/types/treeParameters/TreeParameterMerger.d.ts","../../../binding-common/dist/types/treeParameters/Sugared.d.ts","../../../binding-common/dist/types/treeParameters/defaults.d.ts","../../../binding-common/dist/types/treeParameters/index.d.ts","../../../binding-common/dist/types/markers/FieldMarker.d.ts","../../../binding-common/dist/types/markers/EntityFieldPlaceholders.d.ts","../../../binding-common/dist/types/markers/EntityFieldMarkersContainer.d.ts","../../../binding-common/dist/types/markers/HasManyRelationMarker.d.ts","../../../binding-common/dist/types/markers/HasOneRelationMarker.d.ts","../../../binding-common/dist/types/markers/EntityFieldMarkers.d.ts","../../../binding-common/dist/types/markers/EntityListSubTreeMarker.d.ts","../../../binding-common/dist/types/markers/EntitySubTreeMarker.d.ts","../../../binding-common/dist/types/markers/SubTreeMarkers.d.ts","../../../binding-common/dist/types/markers/EntityFieldsWithHoistablesMarker.d.ts","../../../binding-common/dist/types/markers/MarkerTreeRoot.d.ts","../../../binding-common/dist/types/markers/MeaningfulMarker.d.ts","../../../binding-common/dist/types/markers/PlaceholderGenerator.d.ts","../../../binding-common/dist/types/markers/PlaceholderParametersGenerator.d.ts","../../../binding-common/dist/types/markers/MarkerMerger.d.ts","../../../binding-common/dist/types/markers/MarkerComparator.d.ts","../../../binding-common/dist/types/markers/index.d.ts","../../../binding-common/dist/types/queryLanguage/MarkerFactory.d.ts","../../../../node_modules/chevrotain/lib/chevrotain.d.ts","../../../binding-common/dist/types/queryLanguage/ParserResults.d.ts","../../../binding-common/dist/types/queryLanguage/Parser.d.ts","../../../binding-common/dist/types/queryLanguage/QueryLanguage.d.ts","../../../binding-common/dist/types/queryLanguage/QueryLanguageError.d.ts","../../../binding-common/dist/types/queryLanguage/tokenList.d.ts","../../../binding-common/dist/types/queryLanguage/index.d.ts","../../../binding-common/dist/types/consts.d.ts","../../../binding-common/dist/types/BindingError.d.ts","../../../binding-common/dist/types/DataBindingExtendAborted.d.ts","../../../binding-common/dist/types/LocalizedBindingError.d.ts","../../../binding-common/dist/types/utils/TreeNodeUtils.d.ts","../../../binding-common/dist/types/utils/assertNever.d.ts","../../../binding-common/dist/types/utils/createQueryBuilder.d.ts","../../../binding-common/dist/types/utils/whereToFilter.d.ts","../../../../node_modules/@types/uuid/index.d.ts","../../../binding-common/dist/types/index.d.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/core/state/EntityState.ts","../../src/core/state/FieldState.ts","../../src/core/state/StateNode.ts","../../src/core/state/EntityRealmState.ts","../../src/core/state/EntityListState.ts","../../src/core/state/getEntityMarker.ts","../../src/accessorTree/NormalizedPersistedData.ts","../../src/accessorTree/index.ts","../../src/utils/assertNever.ts","../../src/utils/generateEnumerabilityPreventingEntropy.ts","../../src/utils/isEmptyObject.ts","../../src/utils/index.ts","../../src/core/QueryGenerator.ts","../../src/core/requestAliases/MutationAlias.ts","../../src/core/requestAliases/index.ts","../../src/core/MutationGenerator.ts","../../src/core/RequestResponseNormalizer.ts","../../src/core/TreeStore.ts","../../src/core/state/StateIterator.ts","../../src/core/state/index.ts","../../src/core/ErrorsPreprocessor.ts","../../src/core/Config.ts","../../src/core/DirtinessTracker.ts","../../src/core/UpdateMetadata.ts","../../src/core/EventManager.ts","../../src/core/AccessorErrorManager.ts","../../src/core/RealmKeyGenerator.ts","../../src/core/StateInitializer.ts","../../src/core/operations/OperationsHelpers.ts","../../src/core/exceptions/TreeParameterSugarer.ts","../../src/core/exceptions/MarkerSugarer.ts","../../src/core/exceptions/ErrorLocator.ts","../../src/core/operations/EntityOperations.ts","../../node_modules/@types/uuid/index.d.ts","../../src/core/operations/FieldOperations.ts","../../src/core/operations/ListOperations.ts","../../src/core/operations/index.ts","../../src/accessors/EntityAccessorImpl.ts","../../src/accessors/EntityListAccessorImpl.ts","../../src/fieldHelpers/helpers/FieldHelper.ts","../../src/fieldHelpers/helpers/TemporalFieldHelper.ts","../../src/fieldHelpers/helpers/UuidFieldHelper.ts","../../src/fieldHelpers/helpers/index.ts","../../src/fieldHelpers/index.ts","../../src/accessors/FieldAccessorImpl.ts","../../src/accessors/index.ts","../../src/core/factories/createBatchUpdatesOptions.ts","../../src/core/factories/index.ts","../../src/core/TreeAugmenter.ts","../../src/core/utils/getCombinedSignal.ts","../../src/core/utils/index.ts","../../src/core/DataBinding.ts","../../src/core/index.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],[299],[295],[296],[297,298],[209,219],[192],[145,192],[146,192,227],[146,148,192],[146,147,148,149],[145,150,171,187,192,209,217,218,219,220,221,222,223,224,225,226],[192,193,196,197],[194,198],[192,195,201],[150,192,195],[209],[150,192,209],[192,201],[193,196,197,199,200],[150,192],[192,199,200],[193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208],[142,150,192,211,212],[150,192,212],[210,213,214,215,216],[211],[94,95],[91,93,192],[90],[90,91,93,97,100,102,192],[89,90,192],[100,192],[98,99,192],[91,93],[97,192],[103,142],[96,102],[92,192],[90,101],[89,90,91,92,93,96,97,98,99,100,101,102,103,143,144],[163,166,187],[163,187],[164],[163,165,166,188,189,190,191],[150,151],[142],[160],[81,82,83,84,85,86,87,88,151,152,153,154,155,156,157,158,159,160,161,162],[142,178],[175,176,177],[150,178,179,180,181,184,209],[142,181],[150,167,168,169,170,172,173,178,179,192,209],[150,167,168,169,170,171,174,178,179,192,209],[167],[145,167,168,174,178,192],[174],[150,172,192],[150,174,192],[169,170,183],[179],[167,182,192],[185],[167,168,169,170,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186],[145,150],[141,145],[79,227],[79,247],[79],[79,227,248,260,277],[79,227,260,277],[79,227,260,277,284],[79,80,278,279,285],[79,142,227,256,258,260,261,265],[79,286],[79,142,227,252,253,256,258,260,262,263,264,265,266,268,288,289,291],[79,142,227,255,256],[79,227,258,260,262,263,264],[79,142,227,248,252,253,255,258,260],[79,142,227],[79,227,240,260],[79,227,248,256],[79,227,240,248,258,260,265,266,267,277,286],[79,227,248,256,258,260,265,268,269],[79,227,248,256,257,260],[79,227,260,270,271],[79,227,270],[79,227,258],[79,287],[79,253,258,262,263,265,268,289,292],[79,227,258,260,265,266,268,269,272],[79,227,258,260,265,266,268,269,274],[79,227,258,260,265,266,267,268,269,272,274],[79,227,258,260,265,267,268],[79,273,275,276],[79,254],[79,227,240,244],[79,227,241,243,245],[79,227,244],[79,227,242,243,244,245,246,258],[79,227,242,244,245],[79,244],[79,241,242,243,244,245,246,259],[79,290],[79,227,280],[79,227,274,280],[79,281,282],[79,283],[79,227,248,286,293],[79,249,250,251],[128,136],[118,132,136],[132,136,138],[132,136,137,138,139,140],[118,123,132],[123],[132,133],[133,134,135],[118,129],[118],[129,130,131],[118,124,128,141],[118,121],[121,122],[104,105,118],[119],[104,105,119,120],[125],[125,126,127],[116,117],[107,108],[108],[106,107,108,109,110,111,112,113,114,115],[106],[107],[228],[230],[230,231],[233,234],[229,232,235,239],[236,237,238]],"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":"47374b4da61a1c212780bd0650eea1aa28f8c922e9c86e8d6b88915db991ebd3","signature":"a8a144245cc8730cb8b62c1c6f6403f4f7961b91233a7b78cb5ad6a2501f1e52"},"4f375f610dc446c8059ae63382bdd9b73144e7f6d8ab6a52b9f967391f69614c","c5fc60b33ff1e9ba39acb4798721819510a604e730954d89b2532ec25b397684","0415e15a2fd767472855a4b8b49f291586bf72cc1b6cdbf1813fc89ca15c1466","ae8946800b816a805d3028773363bf9bfa9bae06d35ec510ac7ec64c7d9dc4bb","59104d5583b62b3bebd8e3f67f76c493c19c0ef67a54ec1bb76bdb0a38d54907","fb8cfb0f79ab59f6f516099579812b0afbbeaad920ff8bcdc203d353c0f3ed7b","4fc5d257b5c5ad748217f85127b478b7decaf21119a7f1c386f12bc48ac78fbd","523f4bf97ced9bea71b5e0c1907d60f4b22fc0ee194ee8dea232bbb56dc7aa43","baf6ff91c2f3220a67b4e12c355635ab7a4a226238f453b2a8addafa9824ceca","25f94b2056812c44fb7d5776394914997371576f0543657193c25d93d6bfb58c","e78828390806b5c451404f43a1792dce05e890e5d23c20e4c019d0320a595232","2426426230361aa9515139601137c65f8c6f81ae03d90978e3a1920b364f7c4c","cdd800bf88b78d9969f558af6895e1e87b667af400a0da0f8a396d876a20cf42","728b7bac9f044738fe4c3c6f6355f04220f0bc02e72993767e484d3024096560","f203f19c867e8cd7ef537ef57f37d1700b3d736537d0cc0d9590e1fa6d1e2bb2","5308dc6569f2ae3d964b01e7ab1ab7861c893f561c0ba79fc73efcc2746f94f3","53dfa882ad9d481969edf721ad032e6d1dc71d8afa6a8fab401788845af6fa65","df4e4a809b147b76b5362e3a2177f1633e14873f41a983e5a2fefd129c2ae119","bcbb5574d92bbb6e57d485740c1cddb26211cf8a7703174628eb4854abf1f4d7","882400098e7eef335e01abafbb2d0003fffa4ce1e02c62ef6f173fe2bfeab65a","47e62cf6cfd81a9e11bc04c472203dcf1bfb2a6676f152f2d67ff538bceb93fb","6c9d2b64785264d6e91587223c61db55713d519b16dd76113d8b08f42d8aac61","c9460b9b18d82e50bb6b542838447fefc14f326ca1e625b674cde658c688c457","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","e7899ed2786c9741e938d5264867f578606f0939f66a7446404920f7ada404bd","33491243e9e60504ee3d733817b089c90d639dc3f1238a3d6417083e9dd5b683","f289c5204b0819632486cefeec845a20a7a9c769180fb6bede63b0d7f24839d2","feaceef383869ce3addd7d620c89fa6ff1d5753f7b451cffb1e926998df2b5e4","4f4d0e8aeb309bbb646dd57615ca9375fa2821df08120fe318124647d91de80a","06c1e22ce1921cfd383c800f9e191972c5dfaca8996cca54d85c4b4cb41db49d","0b42a31c12bc794fe3b4efafc5af85e9bd2d094f086157dfdc98ea4f0a13016a","6c7327831239ec38e57c18eb15c5b191aa258ada0528de8dc93092efcba20896","3c4de8d194c64b484827151ff14582884166268c345cbb13f9c19e4be3912f54","62ca877d3c090576b3ca1cd3e576c931eaedefc3af1b5ef405e41fd22c8b2955","5e8c7ad4619cc15007aa5bc3f4e1a30cb01540c14beaa609fb8d17d21acaceba","016e695348eb662b9adead21973e3da689bbff9c65811491644e2ed594fca800","1702404293385fb18761a3cf716b3c2888c6fa95d3ef96bc8e4e8f5a6e679689","8ed57aaf9593ac2424ef286cd48dadfe4867523dad64689d550d15df72c80a0a","9c019ccda878d72c06b62d95c74b38134a7089c9f5e4e02f9955f26a0fc86c6e","4795f48243e3f12a19561c8c5296e7f2892bc3fcbec77e90f811c836042d1ed8","a8041f2147221598f9fc3c07271cc863420534bd17897e259b1a274cf0c17c37","3d882826c2565ed06ed356336468bed703202f9733ff1ac7101180e79c94c04c","fcc7872b6032588c50c585e897ceb7e0002185fdc24276e672320ad08b67b984","bb2685d458f95d2fdff3eaf45aec789effef9086a474f8a94e337372813b7879","8bbb10dc113bd3ca30bceccd7b514a6d49ac6fd4aa58fc1d1ec1dd0d22874e18","5514f9d40d706531e48ed966234d02fbb53957c850fa45425d4200e620bd5960","ad6fccef98f7c1922c97d493012a7de1120ff90d291a9867c4d7529771e44f05","bd6b7f4bd62af5eca5876f74c9b1830b5380ca719c2261a0149ea385f8de416f","38dd234d61d9863a4f6e3ffd19c50a02cc3ccd742a7783826a47cbb04fce4de8","3350f2a0fbc92917e62068fc5a5df0e76990b69695c79299753cf92bf8b76984","692068a2fdfd2f62138b54bd5f854a0451f19c53697096c4a1644506712283f6","9a9a41e807a60d89317a7be6fe7c6ac96eb5bb32c530b543bd4618badb65a8ec","c12ab6b360266f86e606a50ef28bed97c0c13acb8a9c7be4c37dda67f46a938f","82012981d19b1d4d8af74a45b1cccde2f47a23dddb5d45b1a32eb74b279c741b","f2efbaaf976486e7b7d4dc715fc96d23875fd3527ab6d3ae3f392642cc012ba3","39378d141f8c339cf85cc59fe81834ab9021de01c6424e70a11052e94daa58e7","661365dddb8fd571f6b73346cc879381c131f826f85217c216a142b25aa05620","f51cc25c36f059fb909bd32e35402a16a3538d9d04956fe86a63aac92ada567a","74ecd3132a5eccc98a96254fd9a673ae0577493bb89e68e8dcb4a4587dcd27b4","c5588f5af1a79fdb751f2f4952e4d5382debc0673b965a41de3dfae378b856df","a6fe4b83212a3c05e0995d32ab46ada7ddee3ad705d862156d033e71a8a7de16","68ed88262c1144732c0347a3b73756ee8e7a14129f643927c7d7475f74b2dbf8","83d47ad39f96f384c4ea7695abc0f002015cf8f535a767a6848d6445a9f2adec","9fa8a1c9549e040154187bd3e1b431e38498a6940ebe334d2b27e525fb9b02b3","6cbdc375ec2e18765abe5d748141506b29340f4e4ff0e5ce2e37af9d9355baba","81c490a9e2f1bdbfe4b2ea2260a4f00a766dc7bd0b7bf7c89a03af9f452d8474","c179b2e68cbe73ad639f20e67246bce84c35dbe4d23ac7cc967449b9f2b3d7fe","b6d1d9c10162900de546c1a9643aa3a2a299e046d19c065d3f4d69991288b913","657589753139fae790243de79f0049961d6a604b6f306ff257b6f1c7419504e9","cb1c1d9343793cffcc2b21c4fc801015f0bc5bc80257b4d3793581f4d297fb9f","801bbab7056e29582d0ab806481e8a8baeaac7a47bdf656f9d0560527cdce258","2a82bec8d92c0c9e13f8507bbacebe5428ae0fce3a48b9634bce6cf942c0bb0d","21f46169942246675c1e557283af4fb89163737ab7a2737cfeaa0bf46c2c8237","d687400beacbb0138a153625aebb6cc061e5335b50a6206b33b7fd71e0c50f88","978700cc62125b4c10be8db21e7cfb4d3fb9102f07679d390bf68252cb94f9b2","1d41678749d09eb543d3aead40fa42e4f6e730cc22903ce9d01a3ecb41e82633","310c07f5eba9c620968a4b9c90c73108fc4c11600c5b316c54b2be56e81940a5","1d8d46bd430df012b16b4e048d6a18d8a1862736d2d5b763e42a43f3a15eaf9f","6852ed190c8ab742071a493aff7c8c13725457c37241e95351db194756d2ee44","a60d6dc03894482436b67e811b14627c350abb79bb3bde92aa8dc676744f5f63","291339b78580b8e3713d4f9aae3c43accd72f76d722c1f218db0cf4610dd5c56","7f6335a6cd33fb4250b9fbc8533fb61bfd4265a7dcc05d28d6b8f8fcf5b9855c","7880216f3a2a0d364aa7ad959b0044c1db783403957fdb518c82d74e8bc612fa","b06ac1e63dfcc9f02259165d754bc449ff11506bd30754356873f5b1268cdbe4","2e82e0799bb145051965f68b2c5b7c5cb5472d90b6b11dfd919c52b989910ff9","4648722f51e6e8a33977faa24b400a597c60cd51f8b9290063d3d47835d45680","ec7e115f7840b3e06a9e84b2a0fd96817d951cdc9af213f09d6c5dd5ff7a4b71","0baa07d0844ce4b8ffdd6a64e19f60ad382f2a9683aec9cc51a1ddf32207286e","d633069c5a26f29d06890aa40935bae0235bec8acd6ba4ef0fd04c9487f4291d","5fc220c4b02dc64bfc3883296e6a56a305930d769754e0f57b4061270c862f60","d0dc311661a7af65c96071e8e544e9af58526b3890fdce8dc9a68b6a0535899f","c084b437ac1da0ded4157d7cabcbda15efed7a4140e120cadb8e3d60d6606d97","82ac1305f15ac871fdc1ea62fbf0fa682845ac999ce20eac278f14fd889b3c40","9b3e2b9b29dfaeecd4ca0b82f2916e18ee9fb497c68d531fd7778cc445de3541","87cbaff27514f99c7e51b79632783dbf79913e492dc9a3dee608fc1a04f0044a","63e17799d3f8f9abaffe17efdc52dd13e460aa961dde160fdbf66e083fe44bf6","b0d18e18b4ae7d4fd2ff2b740ef5871da547181d639738005148f4cf8bb1913c","a90443082cf87a9a5f8479bc824f88bd5a1b8ca702952d8726dcf159ac265226","71f8464e638628c9a2456dc55815fdc89cca4526d3ed0cdbfe76c4d17ac9deb9","088a8626cc6be46835e464981878f3e8145aa034be1705d39602778f34bf11e9","b52aa2e0ed6144d386d518123489821ca5c75504704ed816160c0e0b33143034","b8cac2c16342775cd57d9f08143e7dfc585bdb0e8c2b714ce3db860282847d24","5c8a6edd8cdb2e624a415c3563ca45872f0aa0d96586595bcda36b4dce797fe0","e74c5155662dea1a1a20b7b77803d308508e4d146ca591e22df9eaabd515b8bc","68383a05d0e8b02ff1cd4fb8f5e6509b0f783b7c17944789e90fdf24d068574d","8753944b63f6c310afaa9d07879704b35455d45494d4fa1356e0c0e22f8f180c",{"version":"8d9f9b0d58822eb76d0b355bfecfa4d8e2e2609a2ea4abd92f9e7fa04e1fdfea","impliedFormat":1},"bbc9edde5980e807d9966750fbe36f05b739d3f7a1e53ab9d850ed937b86c07c","7d45c7409c354acf67517ef46e3e42bf5599f69dd20e2c27b1897696b303e9c2","14d24d75d8c944b4e4de0afe58dc6cd8172ef37f6195af7574618956d39b1f49","b6890f830e835c28b15a1d17004db17f6a592ee9f56b8aba95e94927203950f0","4530bbafa939be7beaf0b51c33aaf1dc82e5d4f1cc2512103939b45415b6899a","c7136145a5e2d6bbfe4e2b92c0f1b3d2e687c2609c19bea0e11c0aab7534de01","80cdef588a8ce69225209e217152117f9ceadb4a4777dbf8669ff2777fe9b454","3b89cad1dbac2d3f8c27f2d91d15694b4e79b7b881f969e4714895c11875cb18","8071013baf5e634d2100b635c006e1b8fceda6a275996f267209dea86afadacd","3f20fb238766dbba64da0ece03c323fa2dacc69c81b2b6655c7415bd1d6b2f16","07606808f139cdf0b92313b56644505bfd853e73da7dbd6a28d0110bf9395437","a95c25e1f9146dd90f7cb36c7e306a25a67bdef1eaae7319a60d2f9d3ff66804","8fd5393cde0e4674a43debed6b0816b468b5f7d7016c02e431898f02019a6725","04b98d2fbf095999a1fb17d211da5ffce679f822199742bb73f90a34a3ec5998",{"version":"f874ea4d0091b0a44362a5f74d26caab2e66dec306c2bf7e8965f5106e784c3b","impliedFormat":1},"c8b4573375c024fc9735f73081ac5557cd7d667ace932079c4496182fd6c8396","a95c25e1f9146dd90f7cb36c7e306a25a67bdef1eaae7319a60d2f9d3ff66804","3436aa850e6d85c1ca81028e1ac6a9ba3ca0cbc27efe797fe99aea0a99a49881","624e76b41eb76400df5e0cbacc5f7091e6bd0518e0f9f4ac4a047794b2c189f9","f14113b17b6a1863dd58e49e0bc504f21d51da969bc1fc4af1a07b3684f0de25","1762533296e00297d454534bdb27ddae5f6b69fef679295094cb0afb4e9a526a","1c84b348bb07619f2123fddd01c20184c6212540909bd98fdc450f7d4e234717","dfe644b96a0786c3ed103bffe7331349022c647802d40030067cf71c9ce79bb5","893bdae1d9648d1f4da2ddad5647a63282aef8d30df09eacb14fdb68e2349a1d","0a52d67559b7ef5541d532dc78fbbfb69d028a4adf1c3501424e355e53e66257","fed47bc1ca2d6c672b7ce3be63f206bd0ad5e67c18c2650eb9d79d842e9d208a","cd7e9d427302a244cce2881eceae5fbaccf62a7a6064f161a699fe39bad1d998","fb6bb88e6e41f878eaf58a6c141e0379f208f85f6f922512b3b25efffe70380b","e31346a3e386e227daee4cd99ac59dc7bd0e324541ea401bdf8b623a7e20bf56",{"version":"875c0a8fe0ec5b1366a72a048228baff0436f54c3c99b7d758e327b0a7eaf572","signature":"d27b30d4ad3cb75f549d27286319b84e1b77853211c1681ebc6fafe6e4dafaa8"},{"version":"cb1eb20f94d95c863579c9b2d21cdfcd26b39fbfad127ded27d2a789e7e4d540","signature":"f687da8cb3943be263dd564b5ca224be5c896239ec62990c10362fa48e5a8293"},{"version":"b04ce88b6c19680dc8c1a3515dfa5e925e641d87a604fbe2d1fe18bf6673f119","signature":"48f4010b20821a485fca0b04cbe78bee97179ab875aa2495d6caf36ab1497a3a"},{"version":"586600962a3eb50940205d932bfe38477a5409878f9dda2b4ac71ffc89937634","signature":"6fe2d5a863131379ad211a14d6ffd0f6ce4e50c75bb2a651bfa09073d2648edf"},{"version":"d583c79328f233a78ba74b25c35963f2891723492d94c00bd94856a0cb7a7f8e","signature":"33e4f8df3e8ac9757c4051c9f0fe740fd79599e7072fbbf3d3650be8440c3700"},{"version":"223dc54a2bc18ae4de2e889a4b2c231e8e3b071e2cece19f24e1bd5d367327eb","signature":"b857d4931b17289afe1cff73bc047c7bed8c365d4f22c69fa0e7eb17e6ab41d1"},{"version":"827a28d1a1866b0cf250b9468d40cebd5a648430bbfe7376a707fbb74dbca7ad","signature":"dbf6aba6ec7a9fc603fadcc13491bdb207d57965db7c81a3991a0be2735e71f6"},{"version":"37a6548dccf84a11822481ac826ada017fc73cac109f46878bac728617e8cd34","signature":"3e94c68340dedbce462a6458fd8e9ea4bd6ca33cfb1c61a9e473812e0bdd5012"},{"version":"5867ea6785267d672ee4ad1fc8da53e99882e76b1bedd95131d1afd9f0d04d6f","signature":"a95c25e1f9146dd90f7cb36c7e306a25a67bdef1eaae7319a60d2f9d3ff66804"},{"version":"1f9ae81e86fca2125704699bc532ebc83e1fdd073be560c034800d6bf22b5e5c","signature":"86c657932f52ab103b37ced85ed22f7101852becaee053e5f764abe53c8dec83"},{"version":"0917eb9505c21756d3112ce0dd5090eccc03365bf811d96e3927a57f28c7f8ef","signature":"b8263acca7f07a9648ff99a34c8948186c736ae498dbc7ad8abe98fbbfb62650"},{"version":"f792af12467bc49217beedc2463f6bfb786e41b2f592110b2b4dc20397d563b9","signature":"54af5c685ad387d0304490dadf783119cf93fc114a353586e437a97becfddb0f"},{"version":"08e1be872f577056c2aa5fca356c5e72bedf5a208fedff8e27a969a5553e9129","signature":"ba6d3111b9242cf3486061b0d2a68ae819d668b57c5b5d16f5b1330fb0fb7983"},{"version":"04b4b171df7f4f629fe4692c286ad3506b9275080c7d3d302311d834d5329713","signature":"fce23f7b3d292e850338883306214fc6847e075913280e3895d8392fa2c46710"},{"version":"5d2e5a25ea1337aec44aac08ea228cef1c2bb6ae0901905dd8e8eb610f80424a","signature":"c55ff69350fe2b32456309d5b33b44751bebdb69a8bd007213e5bb19f48152ad"},{"version":"0bea00293fb025e5f285b961ccaf3095d15354513b9eb01a613e64e66807fa67","signature":"a1a75b2efea02456a6fab8efc581bf13bb17612822db0b3cdfe22fa5647c3b9b"},{"version":"f04ab4d158d571e330f700b1895ea590f4c5dc027f37bef783d36d19ad8d3e84","signature":"33d93566f34ab84972f0c1343996525f91162a20bea0c7477efeb1f97d98e9ef"},{"version":"38763a65b0e518a1de4e220fadb5cf299feea2fac51578a99024827d93d85574","signature":"ae938b86cd449717f89b9445fe96aabc4b379526fc497401c755e405cad626fa"},{"version":"6312ed685112ae4048990767ee983b6d1014176e6650153b54d08f6deeeb4d2a","signature":"643bd27a464eb40429a94dafbab300ffbbd46c81e6d2139cd485617de38c1d1d"},{"version":"bfeafc96bd417e1d3fc21bda0f782b76928b7d15280ce4d9000f076327a4800a","signature":"f0b2bb3e4bb7da7ee00773b4ede5985a069a5b572d695880724e5cf3ccde60d1"},{"version":"428f779cf355bba75afe8beb273a3a0723222682d47c1ba285572460750128f7","signature":"95790b898d52588cd9b4c3dd288963871a3fd51bcb600564061742e2eca5fb92"},{"version":"b242de6b4e964840df6f759fd5cd8dc67bd334ac64fbd198b90f2a8830247556","signature":"8c4db827771ab8c4cb02da474755e0d0486bd46710c3c01bc98eb01473861690"},{"version":"b7288855b4b25774c74426ab0f2e470ca50896dd436158d5ac3fbe4daaaa9b63","signature":"09172108ff8f16aac912f57f5371b943b21d908f88a1f70eada019d1c9c00423"},{"version":"de6e97411c3c2a860804c7977d6483690b6f97a51090b01c354cfdb1c1332886","signature":"a4572efd5154494757b690c5e20e60ec9d60583088cc33ec97341a8ef25bc2dd"},{"version":"a17aa974206d136e41d33d856bc1e612ef07c15c57060bafbd521dd4dfaf2212","signature":"ac37b70e5aa5f10e5bb2a39d11a95dd092cb4fb6aced8217fe703ec2aadd3275"},{"version":"490f97e6bd8f632420288f8267ff7517cb75479f23918b6f1086dd6273c93bda","signature":"5b61d5781adf85dcd53f94550227bf049da881e76b7d8f21c03d9275f436e042"},{"version":"e6022ca5fa72f0dcab4ef2847ad6c1c3a0412bc7ecb726598573af54598339e4","signature":"678bfa7939b8e8e875b628bc9124140a4313a22b54f63f971c84153c5acf1b62"},{"version":"3bde2f712055258a5f8220c63a40bfe2794dbffbedb2b87c92e8e8ad1ec772e2","signature":"d5555adf1ecea982b4329e60e4362fce6fdaa1fbf72d6987f67bd89ac792c9e3"},{"version":"d3668588fc0f9eff49865229302f70e1b2d51fb4495f170746b016bfed0f72da","signature":"24d65a13bc67a431b8fa7ca2654d765464b33cd9b86593c0e08cca8df623a27b"},{"version":"b6df1b7fb0185ad74164703929315a2278db55c62daba8c30ae69897ccddb01b","signature":"8f0008bbeeb857b9df567c073cf5b61de0e288aaeeb0e4807c1bf796d71620c2"},{"version":"0848fcb83891fdcdbc615fb2b1258e155a531b79226f947e7d55c4565acfc1ae","signature":"ea1933d700d4906d4cb1a1854e8a8f81ab9659d1f502b2703542be6da15efaf0"},{"version":"1158d47aa1743978709d55d7eef02d2fb7ef246f635a4c09e68b5dec52a28fa0","signature":"b700e72176477960731e087a67212a3d7e2c64e9f68358fa6758b5d987182a7e"},{"version":"9e08367585148531a2f05ef2da223a830865f43893b2c5580a41b339f0eb7e6d","signature":"d584a4769e0ddc1eeacd4ee458ced8da82953f966aefaa2bd15886fb85f9b311"},{"version":"7d2b7fe4adb76d8253f20e4dbdce044f1cdfab4902ec33c3604585f553883f7d","impliedFormat":1},{"version":"c47748f768926fa4368dcbec9e2b3c78edd569ef04d8aef7a2c0cda54e4757f5","signature":"7ab101411be0f2e22a34e0c988e887aa2e8ffea67fdd30293f6f15200249158c"},{"version":"305efd78b574b46517aec69fb224be48daf21fd69893d7bfde64542a2d7d903e","signature":"16bfd452ad0c4b7cdf24413311361b4ecce7595bd0ad291b5b703178e544b233"},{"version":"5b49a04fb6dd8df5e1ef58bc635d54fb4fbedaaf8b4faad44c4aefdfa499bc6e","signature":"9802ed9a1309faf873f1002b2b8e3235963ab6c04759f9dc15a04c9c174ccf5b"},{"version":"01eddd35f0862bc3fe6c1aa7b213e90498c379a1c3daf6159cd0428986dbed66","signature":"d3f41ecf5464f87b92cccc4dfd3590fff05f87edd92e8fc060584786122bb6c2"},{"version":"bd55c0b34acc45f0999b1ab32ff049eb1e9590dff0ee5cc4e162f4a0be4e86c0","signature":"a6cec3874ceef88388e4fada58761adcd6013afb3e9b19ffe32b6f054b8982dd"},{"version":"251b9a7b9298a16e05b97ecc6f3193e1fece82811da4717061143e6039ecae32","signature":"5e3930e664a495ebedeae1a9ba6e52ac1b1ace02cfac12ede217c1018c68ee3b"},{"version":"844999e245aff00e925144f93ca8f9de14a2d59343936cf0992ae54cc2b665fb","signature":"8cbd46376db20b7b31173956b49f730de7d5349872ebd0283384491c24376d7b"},{"version":"a228f75244512d171cdf864aaf33bef2ce7a309e1439ce252225fe7e08055d06","signature":"fca2e6398009189dfb21e7f9428bbb20cbe8493c0358595d24c55582e1ff855c"},{"version":"5ee3089d396403406c625cdf2522f3b2c3c704a5e144da27142e28fae73b4bab","signature":"7edb167a45976c0ca99070f5c827664f4887455d214151fd7fb6b1693486ca76"},{"version":"2db015d88257bc861da84a48fa0c7c9d38f1c037b6e572d183c524f709e06a7c","signature":"4f7d54c603949113f45505330caae6f41e8dbb59841d4ae20b42307dc4579835"},{"version":"1d8b30df4b19f7a69c14bc376ff235923e7437796103c858c9e9e19c34dfc658","signature":"a64f5abe63aa217e59c991615a1e8d96f4fb095446fcb45f9149364fd0110bd0"},{"version":"d137f2f001b9fa180681f9495bd69eee4e3c87e7936fb088a1a4e572274bcc24","signature":"04d555aa4c3197b4405dd4cb208f33bcc84161b4a139ba2aa7db40de52348350"},{"version":"2f5a6ecdded762ddfac4b8bbe7a6391a837f025c528bb7b1e9fecde837f44957","signature":"66ede64165f30d35ca104631275ed1cc760bac3c4f13f7b57d94bf46c47f6587"},{"version":"96b0577c0ca01595f7820ec16339d1aec8914e77f958da74c60676ea394816fc","signature":"4281dd088d8d4d04c980fac4ebc9ae5283e9bd3137d75b300ef73e2f864d1177"},{"version":"946751bab30d4be65f9c9be19506e70eecd60c876cf05a7ba67cdca1c170b802","signature":"7c7e24ff4bce1772f379e428d43c12193fcbc0d0fe2d6b09a18d95cd51ed3a64"},{"version":"e4da17ada1d669848a8a3baabaf6e330d6af5d17859130751aa8e0fe1b0a386d","signature":"cd88a003f0e5f8aca5b43b2d46c5f84e07c98975858d6ee780bd765bf95ee0ec"},{"version":"e8a916820dfe91ec4170e2f9284f45c4dd665a15886640e7a600661132755b94","signature":"9c5c1e0df5b46ae8388b7d33a5070ebec57bb68834ff784432f853643b9f2678"},{"version":"f8dbee6032e51f5e46ad1309f6139125f033e2d5ffbb1fff084b5ee8a9e9f207","signature":"755d113f88d52b071cc2a13d020933dbf6a253978e9a96004795d6fe3bef2d06"},{"version":"1ed16da5be3c0c7720c2e6a053d72b5962629a9b3b68e74d5bec6d2db7c563ce","signature":"855006bb38a9efdc4d60fecdc55474529477ccc6e9d18e68d503882104cc0fdf"},{"version":"ffb99383d0c077a10412d6746198aca370b149516cabaaa865a02ff726a62a41","signature":"cd280c5464fc92fa20214fa88c8c9b62581aa8da10984a687fe7eb322a0b987c"},{"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,[241,273],[275,294]],"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],[300,3],[296,4],[297,5],[299,6],[221,7],[171,8],[146,9],[147,10],[149,11],[150,12],[227,13],[198,14],[195,15],[194,8],[202,16],[199,17],[200,17],[193,8],[196,17],[197,17],[208,18],[207,19],[203,20],[204,21],[205,22],[206,22],[201,23],[209,24],[210,19],[213,25],[212,8],[214,26],[217,27],[216,28],[96,29],[94,30],[95,31],[103,32],[91,33],[101,34],[100,35],[97,36],[98,37],[143,38],[144,39],[93,40],[102,41],[99,8],[145,42],[188,43],[190,44],[189,8],[165,45],[164,8],[192,46],[152,47],[153,48],[156,48],[161,49],[160,48],[163,50],[179,51],[178,52],[185,53],[182,54],[174,55],[172,56],[167,48],[168,57],[180,22],[173,58],[175,59],[176,60],[177,61],[184,62],[169,63],[183,64],[170,63],[181,8],[186,65],[187,66],[222,67],[224,68],[225,48],[247,69],[248,70],[80,71],[278,72],[279,73],[285,74],[286,75],[266,76],[262,77],[292,78],[263,71],[261,79],[265,80],[256,81],[253,82],[267,83],[257,84],[268,85],[289,86],[258,87],[264,71],[272,88],[271,89],[270,69],[287,90],[288,91],[293,92],[273,93],[275,94],[276,95],[269,96],[277,97],[254,69],[255,98],[245,99],[244,100],[241,101],[242,101],[259,102],[243,103],[246,104],[260,105],[290,71],[291,106],[280,69],[281,107],[282,108],[283,109],[284,110],[294,111],[249,69],[250,71],[252,112],[251,71],[137,113],[138,114],[139,115],[141,116],[133,117],[134,118],[135,119],[136,120],[130,121],[131,122],[129,122],[132,123],[140,118],[124,118],[142,124],[122,125],[123,126],[119,127],[120,128],[105,128],[121,129],[126,130],[128,131],[118,132],[109,133],[110,134],[111,133],[116,135],[107,136],[112,137],[113,136],[115,134],[229,138],[231,139],[232,140],[235,141],[240,142],[239,143]],"latestChangedDtsFile":"./index.d.ts","version":"5.6.3"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@contember/binding-legacy",
3
3
  "license": "Apache-2.0",
4
- "version": "2.0.0-alpha.30",
4
+ "version": "2.0.0-alpha.32",
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/binding-common": "2.0.0-alpha.30",
33
- "@contember/client": "2.0.0-alpha.30",
34
- "@contember/utilities": "2.0.0-alpha.30",
32
+ "@contember/binding-common": "2.0.0-alpha.32",
33
+ "@contember/client": "2.0.0-alpha.32",
34
+ "@contember/utilities": "2.0.0-alpha.32",
35
35
  "uuid": "9.0.1"
36
36
  },
37
37
  "devDependencies": {
@@ -128,14 +128,19 @@ export class ListOperations {
128
128
  this.eventManager.syncOperation(() => {
129
129
  // TODO disable this at the top-level.
130
130
  const persistedEntityIds = this.treeStore.getEntityListPersistedIds(listState)
131
+
132
+ if (!listState.children.has(childEntity.id)) {
133
+ throw new BindingError(
134
+ `Entity list doesn't include an entity with id '${childEntity.id}' and so it cannot remove it.`,
135
+ )
136
+ }
137
+
131
138
  for (const state of StateIterator.eachSiblingRealmChild(this.treeStore, listState)) {
132
139
  const disconnectedChildIdValue = childEntity.id
133
140
  const disconnectedChildRealm = state.children.get(disconnectedChildIdValue)
134
141
 
135
142
  if (disconnectedChildRealm === undefined) {
136
- throw new BindingError(
137
- `Entity list doesn't include an entity with id '${disconnectedChildIdValue}' and so it cannot remove it.`,
138
- )
143
+ continue
139
144
  }
140
145
 
141
146
  this.treeStore.disposeOfRealm(disconnectedChildRealm)