@elyx-code/project-logic-tree 0.0.6420 → 0.0.6421

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.
@@ -67,7 +67,7 @@ ${To}`,p.push(new ee({id:`${i.id}--${k.NonInteractiveEntityReferenced}`,code:k.N
67
67
  You can inspect the existing 'entity' field with the 'describe_entity' action. Like so:
68
68
  ${Qn({describe_entity:v.entity.id})}
69
69
  Alternatively you can update the parent data-type entity with 'update' action to remove the existing value of the field.`}))}return p.push(...e.errors,...Br(o)),{errors:p,modifiedData:o}}syncOperationInstance(i,a){return{updated:[],added:[],removed:[],affected:[],self:i}}inferInputMapDataType(i,a=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"infer-input-map-data-type"))){const o=CA(i);return a==null||a.attemptAutoclose("infer-input-map-data-type",this.id),{updated:[],added:[],removed:[],affected:[],self:o}}inferOutputMapDataType(i,a=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"infer-output-map-data-type"))){const o=PA(i);return a==null||a.attemptAutoclose("infer-output-map-data-type",this.id),{updated:[],added:[],removed:[],affected:[],self:o}}validateGeneratedUpdate(i){const a=[];return i.parent&&a.push(new ee({id:`${this.id}--${k.InvalidParentUpdate}`,code:k.InvalidParentUpdate,severity:q.Error,message:`Entity of type '${this.type}' with id '${this.id}' cannot have the 'parent' property updated, as it would mean moving the '${this.type}' entity to another parent entity.
70
- This is likely an incorrect strategy, either the '${this.type}' entity doesn't need to be updated or it should be deleted and a new one created in the desired parent.`})),{errors:a,modifiedData:i}}subscribeDependents(i){return i.forEach(a=>{this.detachedDependents[a.entity.id]||(this.detachedDependents[a.entity.id]=a)}),this}unsubscribeDependents(i){return i.forEach(a=>{this.detachedDependents[a.entity.id]&&delete this.detachedDependents[a.entity.id]}),this}syncDependents(i=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"sync-dependents"))){const a=[],o=[],p=[],e=[];return Object.values(this.detachedDependents).forEach(y=>{const v=y.entity.afterAllChildrenInitialized(i);a.push(...v.updated),o.push(...v.added),p.push(...v.removed),e.push(...v.affected)}),i==null||i.attemptAutoclose("sync-dependents",this.id),{updated:R(a),added:R(o),removed:R(p),affected:R(e),self:this}}onDetachedDependencyRemoved(i,a,o){const p=[],e=[],y=[],v=[];return{updated:R(p),added:R(e),removed:R(y),affected:R(v),self:this}}onDetachedDependencyRestored(i,a,o){const p=[],e=[],y=[],v=[];return{updated:R(p),added:R(e),removed:R(y),affected:R(v),self:this}}unsubscribeFromDependencies(){return this}subscribeToDependencies(){return this}increaseVersion(i){if(i&&!L(i).isValid())throw new Error(`The shared timestamp '${i}' is not a valid ISO 8601 date string.`);return i&&L(i).isSame(L(this.createdAt))?this:(this.previousVersion=this.version,this.version=N.UUID.uuid(),this.createdAt=L(i).toISOString()||L().toISOString(),this)}captureVersion(){var a;const i=((a=this.knownVersions)==null?void 0:a.get(this.version))||new Ut(this,this.project);return i.metaSync(this.toMeta(),null),this.knownVersions=this.knownVersions?this.knownVersions.set(this.version,i):new Map([[this.version,i]]),i.inputs=[...this.inputs],i.outputs=[...this.outputs],i.error=this.error,i.parent=this.parent,this}recursiveCaptureUpstreamVersions(i){const a=[],o=[],p=[],e=[];if(this.parent&&this.parent.type!==f.BuiltInBaseEntity&&this.parent.type!==f.PrimitiveEntity){this.parent.increaseVersion(i);const y=this.parent.recursiveCaptureUpstreamVersions(i);a.push(this.parent,...y.updated),o.push(...y.added),p.push(...y.removed)}return{updated:R(a),added:R(o),removed:R(p),affected:R(e),self:this}}async restoreVersion(i){var v;const a=[],o=[],p=[],e=[];if(this.version===i)return{updated:R(a),added:R(o),removed:R(p),affected:R(e),self:this};if(!this.knownVersions){const E=new Map;for(const[w,A]of this.knownVersions||new Map){if(E.set(w,A),A.activeVersion=!1,A.knownVersions)for(const[$,V]of A.knownVersions)E.set($,V);A.knownVersions=null}}let y=(v=this.knownVersions)==null?void 0:v.get(i);if(!y){const E=await this.APILoadVersion({},i);if(!E)throw new Error(`Version with id '${i}' for entity with id '${this.id}' not found.`);y=new Ut(E,this.project)}return this.metaSync(y.toShallowJSON(),null),this.previousVersion=y.previousVersion,this.version=y.version,this.createdAt=y.createdAt,this.author=y.author,this.deleted=y.deleted,this.inputs=y.inputs,this.outputs=y.outputs,this.error=y.error,this.parent=y.parent,{updated:R(a),added:R(o),removed:R(p),affected:R(e),self:this}}updateWithShallowTransfer(i,a=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"update-with-shallow-transfer"))){if(this.metaSync(i,a),this.version=i.version,this.createdAt=i.createdAt,this.author=i.author,this.deleted=i.deleted,this.previousVersion=i.previousVersion,this.unsubscribeFromDependencies(),i.parent){const o=J(i.parent),p=this.project.get(o),e=this.parent;if(e&&e.id!==(p==null?void 0:p.id)&&(this.removeFromParent(a),this.parent=null),p)this.setParent(p,a);else throw a==null||a.attemptAutoclose("update-with-shallow-transfer",this.id),new Error(`${this.type} with id '${this.id}' has a 'parent' reference '${o}' that isn't found in the project`)}else throw a==null||a.attemptAutoclose("update-with-shallow-transfer",this.id),new Error(`${this.type} with id '${this.id}' must have a 'parent'`);return this.captureVersion(),this.subscribeToDependencies(),a==null||a.attemptAutoclose("update-with-shallow-transfer",this.id),this}hydrateAncestors(){const i=[],a=[],o=[],p=[];if(this.initialData.parent){const e=J(this.initialData.parent),y=this.project.get(e);if(y)this.setParent(y,null),i.push(y);else throw new Error(`${this.type} with id '${this.id}' has a 'parent' reference '${e}' that isn't found in the project`)}else throw new Error(`${this.type} with id '${this.id}' must have a 'parent'`);return{updated:R(i),added:R(a),removed:R(o),affected:R(p),self:this}}afterAllChildrenInitialized(i=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"after-all-children-initialized"))){const a=[],o=[],p=[],e=[];return this.initialized=!0,this.captureVersion(),i==null||i.attemptAutoclose("after-all-children-initialized",this.id),{updated:R(a),added:R(o),removed:R(p),affected:R(e),self:this}}addSelfToProject(i=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"add-self-to-project"))){const a=[this],o=[],p=[],e=[];return this.parent?(this.parent.type===f.DefinitionEntity?(this.parent.addAbstractMethod(this),e.push(this.parent)):this.parent.type===f.DataType&&(this.parent.setEntity(this,i),e.push(this.parent)),this.subscribe(),this.subscribeToDependencies(),i==null||i.attemptAutoclose("add-self-to-project",this.id),{updated:R(a),added:R(o),removed:R(p),affected:R(e),self:this}):(this.subscribe(),this.subscribeToDependencies(),i==null||i.attemptAutoclose("add-self-to-project",this.id),{updated:R(a),added:R(o),removed:R(p),affected:R(e),self:this})}setParent(i,a=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"set-parent"))){var o;return((o=this.parent)==null?void 0:o.id)!==(i==null?void 0:i.id)&&(this.parent=i,a&&(a==null||a.add(this,S.Updated))),a==null||a.attemptAutoclose("set-parent",this.id),this}initChildren(i=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"init-children"))){return this.initialized||this.startedInitialization?this:(this.startedInitialization=!0,this.inputs=this.initialData.inputs.map(a=>{const o=te(a,this.project);return o.setParent(this,null),o.initChildren(i),o}),this.outputs=this.initialData.outputs.map(a=>{const o=te(a,this.project);return o.setParent(this,null),o.initChildren(i),o}),this.initialData.error&&(this.error=te(this.initialData.error,this.project),this.error.setParent(this,null),this.error.initChildren(i)),this.subscribeToDependencies(),this.afterAllChildrenInitialized(i),i==null||i.attemptAutoclose("init-children",this.id),this)}subscribe(){return this.activeVersion=!0,this.project.subscribeInstance(this),this}unsubscribe(){return this.project.unsubscribeInstance(this),this}metaSync(i,a=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"meta-sync"))){const o=Ur(this,i),p=this.toMeta();return this.name=i.name!==void 0?i.name:p.name,this.codeName=i.codeName!==void 0?i.codeName:p.codeName,this.description=i.description!==void 0?i.description:p.description,super.metaSync(i),i.deleted===!0&&!p.deleted?a==null||a.add(this,S.Removed):i.deleted===!1&&p.deleted?a==null||a.add(this,S.Added):o&&(a==null||a.add(this,S.Updated)),a==null||a.attemptAutoclose("meta-sync",this.id),this}async APILoad(i=ve,...a){return await Ut.repository.APILoad(this.id,...a),this}async APICreate(i=ve,...a){return await Ut.repository.APICreate(this.toShallowJSON(),...a),this}async APIUpdate(i=ve,...a){return await Ut.repository.APIUpdate(this.toShallowJSON(),...a),this}async APIDelete(i=ve,...a){return await Ut.repository.APIDelete(this.toShallowJSON(),...a),this}async APIClone(i=ve,...a){return await Ut.repository.APIClone(this.id,...a),this}async APILoadVersion(i=ve,a,...o){return await Ut.repository.APILoadVersion(this.id,a,...o)}removeFromParent(i=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"remove-from-parent"))){const a=[],o=[],p=[],e=[];return this.parent&&(this.parent.type===f.DataType?(this.parent.setEntity(null,i),e.push(this.parent)):this.parent.type===f.DefinitionEntity&&(this.parent.removeAbstractMethod(this),e.push(this.parent))),i==null||i.attemptAutoclose("remove-from-parent",this.id),{added:R(p),updated:R(a),removed:R(o),affected:R(e),self:this}}remove({ignoreUpstream:i}={ignoreUpstream:!1},a=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"remove-entity"))){const o=[],p=[],e=[],y=[];if(a!=null&&a.hasRemoved(this.id))return a==null||a.attemptAutoclose("remove-entity",this.id),{added:[],updated:[],removed:[],affected:[],self:this};if(p.push(this),this.unsubscribe(),this.project.subscribeDeletedInstance(this),this.metaSync({deleted:!0},a),Object.values(this.detachedDependents).forEach(v=>{const{updated:E,removed:w,added:A}=v.entity.onDetachedDependencyRemoved(this,v.field,a);o.push(...E),p.push(...w),e.push(...A)}),this.inputs.forEach(v=>{const E=v.remove({ignoreUpstream:!0},a);o.push(...E.updated),p.push(...E.removed)}),this.outputs.forEach(v=>{const E=v.remove({ignoreUpstream:!0},a);o.push(...E.updated),p.push(...E.removed)}),this.error){const v=this.error.remove({ignoreUpstream:!0},a);o.push(...v.updated),p.push(...v.removed)}if(this.parent&&!i){const v=this.removeFromParent(a);e.push(...v.added),o.push(...v.updated),p.push(...v.removed),y.push(...v.affected)}return a==null||a.attemptAutoclose("remove-entity",this.id),{added:R(e),updated:R(o),removed:R(p),affected:R(y),self:this}}restore({}={},i=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"restore-entity"))){const a=[],o=[],p=[],e=[];if(i!=null&&i.hasAdded(this.id))return i==null||i.attemptAutoclose("restore-entity",this.id),{added:[],updated:[],removed:[],affected:[],self:this};if(this.subscribe(),this.project.unsubscribeDeletedInstance(this),this.metaSync({deleted:!1},i),Object.values(this.detachedDependents).forEach(y=>{const{updated:v,removed:E,added:w}=y.entity.onDetachedDependencyRestored(this,y.field,i);o.push(...v),p.push(...E),a.push(...w)}),this.inputs.forEach(y=>{const v=y.restore({},i);o.push(...v.updated)}),this.outputs.forEach(y=>{const v=y.restore({},i);o.push(...v.updated)}),this.error){const y=this.error.restore({},i);o.push(...y.updated)}return i==null||i.attemptAutoclose("restore-entity",this.id),{added:R(a),updated:R(o),removed:R(p),affected:R(e),self:this}}toFlat(i=new Set){return i.has(this.id)?[]:(i.add(this.id),[this,...this.inputs.flatMap(o=>o.toFlat(i)),...this.outputs.flatMap(o=>o.toFlat(i))])}toFlatIds(i=new Set){return i.has(this.id)?[]:(i.add(this.id),[this.id,...this.inputs.flatMap(o=>o.toFlatIds(i)),...this.outputs.flatMap(o=>o.toFlatIds(i))])}toMeta(){return{id:this.id,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,codeName:this.codeName,description:this.description,type:this.type,name:this.name}}toJSON(i=new Set){var a,o;return i.has(this.id)?this.toReference():(i.add(this.id),{id:this.id,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,type:this.type,name:this.name,codeName:this.codeName,description:this.description,error:((a=this.error)==null?void 0:a.toJSON())||null,inputs:this.inputs.map(p=>p.toJSON()),outputs:this.outputs.map(p=>p.toJSON()),parent:((o=this.parent)==null?void 0:o.toReference())||null})}toJSONClone(i=ke){var o,p,e,y,v,E,w;let a;return(o=i.seenEntityMaps)!=null&&o.has(this.id)?a=i.seenEntityMaps.get(this.id):(a=i.newId||Gr(this,this.project,i.uuidStrategy),i.seenEntityMaps&&i.seenEntityMaps.set(this.id,a)),(p=i.seenEntities)!=null&&p.has(a)||(e=i.seenEntities)!=null&&e.has(this.id)?this.toReference({seenEntityMaps:i.seenEntityMaps}):((y=i.seenEntities)==null||y.add(a),(v=i.seenEntities)==null||v.add(this.id),{id:a,version:N.UUID.uuid(),createdAt:i.timestamp||L().toISOString(),previousVersion:null,author:this.author,deleted:this.deleted,type:this.type,name:this.name,codeName:this.codeName,description:this.description,error:((E=this.error)==null?void 0:E.toJSONClone({...i,newId:null}))||null,inputs:this.inputs.map(A=>A.toJSONClone({...i,newId:null})),outputs:this.outputs.map(A=>A.toJSONClone({...i,newId:null})),parent:((w=this.parent)==null?void 0:w.toReference({seenEntityMaps:i.seenEntityMaps}))||null})}toReference(i=ke){var o;let a=this.id;return(o=i.seenEntityMaps)!=null&&o.has(this.id)&&(a=i.seenEntityMaps.get(this.id)),{id:a+"--"+N.UUID.uuid()+"--ref",type:f.GenericReference,entityId:a,version:this.version,entityType:this.type}}toShallowJSON(i=ke){var o,p,e;let a=this.id;return(o=i.seenEntityMaps)!=null&&o.has(this.id)&&(a=i.seenEntityMaps.get(this.id)),{id:a,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,type:this.type,name:this.name,codeName:this.codeName,description:this.description,error:((p=this.error)==null?void 0:p.toReference(i))||null,inputs:this.inputs.map(y=>y.toReference(i)),outputs:this.outputs.map(y=>y.toReference(i)),parent:((e=this.parent)==null?void 0:e.toReference(i))||null}}toFlatJSON(i=new Set){return i.has(this.id)?[]:(i.add(this.id),[this.toShallowJSON(),...this.inputs.flatMap(o=>o.toFlatJSON(i)),...this.outputs.flatMap(o=>o.toFlatJSON(i))])}toGenerationTarget(){var i;return{id:this.id,name:this.name,codeName:this.codeName,description:this.description,type:this.type,parent:((i=this.parent)==null?void 0:i.id)||void 0}}toFlatGenerationTarget(i=new Set){return i.has(this.id)?[]:(i.add(this.id),[this.toGenerationTarget(),...this.inputs.flatMap(o=>o.toFlatGenerationTarget(i)),...this.outputs.flatMap(o=>o.toFlatGenerationTarget(i))])}asFunctionDeclarationTransfer(i,a=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"implement-as-function-declaration"))){var v;const o=i||N.UUID.uuid(),p=N.UUID.uuid(),e=this.inputs.map((E,w)=>{var $;const A={id:N.UUID.uuid(),type:f.GenericReference,version:p,entityType:f.FunctionDeclaration,entityId:o};return{id:N.UUID.uuid(),version:N.UUID.uuid(),createdAt:(a==null?void 0:a.timestamp)||L().toISOString(),author:N.sessionAuthor,previousVersion:null,deleted:!1,type:f.ArgumentDeclaration,name:E.name,required:E.required,implements:E.toJSON(),constant:!0,writesValues:[],defaultValue:null,codeName:E.codeName,description:E.description,index:w,dataType:(($=E.dataType)==null?void 0:$.toJSONClone({timestamp:(a==null?void 0:a.timestamp)||L().toISOString()}))||null,parent:A}}),y=[];if(this.outputs.length){const E=this.outputs.map((V,U)=>{var K;const G={id:N.UUID.uuid(),type:f.GenericReference,entityId:o,version:p,entityType:f.ReturnStatement};return{id:N.UUID.uuid(),version:N.UUID.uuid(),createdAt:(a==null?void 0:a.timestamp)||L().toISOString(),author:N.sessionAuthor,previousVersion:null,deleted:!1,type:f.ReturnDeclaration,name:V.name,codeName:V.codeName,description:V.description,readsValue:null,constant:!0,required:V.required,defaultValue:null,implements:V.toJSON(),isError:!1,index:U,dataType:((K=V.dataType)==null?void 0:K.toJSONClone())||null,parent:G}}),w={id:N.UUID.uuid(),type:f.GenericReference,version:p,entityType:f.FunctionDeclaration,entityId:o},A={id:N.UUID.uuid(),type:f.GenericReference,version:p,entityType:f.FunctionDeclaration,entityId:o},$={id:N.UUID.uuid(),version:N.UUID.uuid(),createdAt:(a==null?void 0:a.timestamp)||L().toISOString(),author:N.sessionAuthor,previousVersion:null,deleted:!1,type:f.ReturnStatement,outputs:E,throws:null,calledBySuccess:[],calledByError:[],calledByEntry:[A],parent:w,x:0,y:0};y.push($)}return a==null||a.attemptAutoclose("implement-as-function-declaration",this.id),{id:o,version:p,createdAt:(a==null?void 0:a.timestamp)||L().toISOString(),author:N.sessionAuthor,previousVersion:null,deleted:!1,type:f.FunctionDeclaration,name:this.name,codeName:this.codeName,description:this.description,inputs:e,calls:y,collapsed:!1,private:!1,implements:this.toJSON(),extends:null,index:0,parent:((v=this.parent)==null?void 0:v.toReference())||null,x:0,y:0}}implementAsGlobalEvent(i=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"implement-as-global-event")),a,o){const p=a||this.project,e=o||N.UUID.uuid(),y=N.UUID.uuid(),v={id:e,version:y,createdAt:(i==null?void 0:i.timestamp)||L().toISOString(),author:N.sessionAuthor,previousVersion:null,deleted:!1,type:f.GlobalEvent,name:this.name,description:this.description,inputs:[],calls:[],collapsed:!1,implements:this.toJSON(),parent:(p==null?void 0:p.toReference())||null,x:0,y:0},E=te(v,this.project);if(E.setParent(p,i),E.initChildren(i),i==null||i.add(E,S.Added),E.hydrateAncestors(),E.addSelfToProject(i),this.inputs.map((w,A)=>{var K;const $={id:N.UUID.uuid(),type:f.GenericReference,version:y,entityType:f.GlobalEvent,entityId:e},V={id:N.UUID.uuid(),version:N.UUID.uuid(),createdAt:(i==null?void 0:i.timestamp)||L().toISOString(),author:N.sessionAuthor,previousVersion:null,deleted:!1,type:f.ArgumentDeclaration,name:w.name,required:w.required,implements:w.toJSON(),constant:!0,writesValues:[],defaultValue:null,codeName:w.codeName,description:w.description,index:A,dataType:null,parent:$},U=te(V,this.project);U.setParent(E,i),U.initChildren(i),i==null||i.add(U,S.Added),U.hydrateAncestors(),U.addSelfToProject(i);const G=((K=w.dataType)==null?void 0:K.clone(i,U))||null;G&&(i==null||i.add(G,S.Added)),U.setDataType(G,i)}),this.outputs.length){const w=N.UUID.uuid(),A=N.UUID.uuid(),$={id:N.UUID.uuid(),type:f.GenericReference,version:y,entityType:f.GlobalEvent,entityId:e},V={id:N.UUID.uuid(),type:f.GenericReference,version:y,entityType:f.GlobalEvent,entityId:e},U={id:w,version:A,createdAt:(i==null?void 0:i.timestamp)||L().toISOString(),author:N.sessionAuthor,previousVersion:null,deleted:!1,type:f.ReturnStatement,outputs:[],throws:null,calledBySuccess:[],calledByError:[],calledByEntry:[V],parent:$,x:0,y:0},G=te(U,this.project);G.setParent(E,i),G.initChildren(i),i==null||i.add(G,S.Added),G.hydrateAncestors(),G.addSelfToProject(i),this.outputs.map((K,Z)=>{var fe;const ie={id:N.UUID.uuid(),type:f.GenericReference,entityId:w,version:A,entityType:f.ReturnStatement},X={id:N.UUID.uuid(),version:N.UUID.uuid(),createdAt:(i==null?void 0:i.timestamp)||L().toISOString(),author:N.sessionAuthor,previousVersion:null,deleted:!1,type:f.ReturnDeclaration,name:K.name,codeName:K.codeName,description:K.description,readsValue:null,constant:!0,required:K.required,defaultValue:null,implements:K.toJSON(),isError:!1,index:Z,dataType:null,parent:ie},ue=te(X,this.project);ue.setParent(G,i),ue.initChildren(i),i==null||i.add(ue,S.Added),ue.hydrateAncestors(),ue.addSelfToProject(i);const re=((fe=K.dataType)==null?void 0:fe.clone(i,ue))||null;re&&(i==null||i.add(re,S.Added)),ue.setDataType(re,i)})}return i==null||i.attemptAutoclose("implement-as-function-declaration",this.id),E}implementAsFunctionDeclaration(i=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"implement-as-function-declaration")),a,o){const p=a||this.project,e=o||N.UUID.uuid(),y=N.UUID.uuid(),v={extends:null,id:e,version:y,createdAt:(i==null?void 0:i.timestamp)||L().toISOString(),author:N.sessionAuthor,previousVersion:null,deleted:!1,type:f.FunctionDeclaration,name:this.name,codeName:this.codeName,description:this.description,inputs:[],calls:[],collapsed:!1,private:!1,implements:this.toJSON(),index:0,parent:(p==null?void 0:p.toReference())||null,x:0,y:0},E=te(v,this.project);if(E.hydrateAncestors(),E.setParent(p,i),i==null||i.add(E,S.Added),E.addSelfToProject(i),E.initChildren(i),this.outputs.length){const w=N.UUID.uuid(),A=N.UUID.uuid(),$={id:N.UUID.uuid(),type:f.GenericReference,version:y,entityType:f.FunctionDeclaration,entityId:e},V={id:N.UUID.uuid(),type:f.GenericReference,version:y,entityType:f.FunctionDeclaration,entityId:e},U={id:w,version:A,createdAt:(i==null?void 0:i.timestamp)||L().toISOString(),author:N.sessionAuthor,previousVersion:null,deleted:!1,type:f.ReturnStatement,outputs:[],throws:null,calledBySuccess:[],calledByError:[],calledByEntry:[V],parent:$,x:0,y:0},G=te(U,this.project);G.hydrateAncestors(),G.setParent(E,i),G.addSelfToProject(i),i==null||i.add(G,S.Added),G.initChildren(i)}return i==null||i.attemptAutoclose("implement-as-function-declaration",this.id),E}implementAsLoop(i=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"implement-as-loop")),a,o){const p=a||this.project,e=o||N.UUID.uuid(),y=N.UUID.uuid(),v={id:e,version:y,createdAt:(i==null?void 0:i.timestamp)||L().toISOString(),author:N.sessionAuthor,previousVersion:null,deleted:!1,type:f.Loop,declaration:this.toJSON(),inputs:[],outputs:[],error:null,process:null,successCalls:[],errorCalls:[],calledByEntry:[],calledByError:[],calledBySuccess:[],outputsDeclarations:[],body:null,x:0,y:0,parent:p.toReference()},E=te(v,this.project);return E.hydrateAncestors(),E.setParent(p,i),i==null||i.add(E,S.Added),E.addSelfToProject(i),E.initChildren(i),p===this.project&&this.project.addLoop(E),i==null||i.attemptAutoclose("implement-as-loop",this.id),E}implementAsOperation(i=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"implement-as-operation")),a,o){const p=a||this.project,e=o||N.UUID.uuid(),y=N.UUID.uuid(),v={id:e,version:y,createdAt:(i==null?void 0:i.timestamp)||L().toISOString(),author:N.sessionAuthor,previousVersion:null,deleted:!1,type:f.Operation,declaration:this.toJSON(),inputs:[],outputs:[],error:null,process:null,successCalls:[],errorCalls:[],calledByEntry:[],calledByError:[],calledBySuccess:[],x:0,y:0,parent:p.toReference()},E=te(v,this.project);return E.hydrateAncestors(),E.setParent(p,i),i==null||i.add(E,S.Added),E.addSelfToProject(i),E.initChildren(i),p===this.project&&this.project.addOperation(E),i==null||i.attemptAutoclose("implement-as-operation",this.id),E}implementAsCondition(i=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"implement-as-condition")),a,o){const p=a||this.project,e=o||N.UUID.uuid(),y=N.UUID.uuid(),v={id:e,version:y,createdAt:(i==null?void 0:i.timestamp)||L().toISOString(),author:N.sessionAuthor,previousVersion:null,deleted:!1,type:f.Condition,declaration:this.toJSON(),inputs:[],successCalls:[],errorCalls:[],calledByEntry:[],calledByError:[],calledBySuccess:[],x:0,y:0,parent:p.toReference()},E=te(v,this.project);return E.hydrateAncestors(),E.setParent(p,i),i==null||i.add(E,S.Added),E.addSelfToProject(i),E.initChildren(i),p===this.project&&this.project.addCondition(E),i==null||i.attemptAutoclose("implement-as-condition",this.id),E}clearErrors(){var i;return this.errors=[],this.inputs.forEach(a=>a.clearErrors()),this.outputs.forEach(a=>a.clearErrors()),(i=this.error)==null||i.clearErrors(),this}validate(){const i=kj(this);return this.errors=i,{success:!0}}getErrors(){return[...this.errors,...this.inputs.flatMap(a=>a.getErrors()),...this.outputs.flatMap(a=>a.getErrors())]}getShallowErrors(){return this.errors}clone(i=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"clone-entity")),a=null,o=null,p=!0){var G,K;if(Array.from(new Set([...Xs(),...this.project.getAllBuiltInIds()])).includes(this.id))return this;let y=Fr(a,this);const v=this.toJSON(),E=o||N.UUID.uuid();v.inputs=[],v.outputs=[],v.error=null;const w=E.split("-id"),A=w[w.length-1||0]||E;v.id=E,v.version=N.UUID.uuid(),v.createdAt=(i==null?void 0:i.timestamp)||L().toISOString(),v.author=(i==null?void 0:i.author)||"1",v.previousVersion=null,v.deleted=!1;const $=lr(v,y);i==null||i.add($,S.Added),a?$.setParent(a,null):this.parent&&$.setParent(this.parent,null),p&&$.subscribe(),$.initChildren(i);const V=(G=this.inputs)==null?void 0:G.map((Z,ie)=>Z.clone(i,$,A+"-argument-value-descriptor-"+ie+"-id",p));$.inputs=V;const U=(K=this.outputs)==null?void 0:K.map((Z,ie)=>Z.clone(i,$,A+"-return-value-descriptor-"+ie+"-id",p));return $.outputs=U,this.error&&($.error=this.error.clone(i,$,A+"-error-action-descriptor-id",p)),i==null||i.attemptAutoclose("clone-entity",this.id),$}addInput(i,a=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"add-input"))){return this.inputs.find(o=>o.id===i.id)||(this.inputs.push(i),a==null||a.add(this,S.Affected)),a==null||a.attemptAutoclose("add-input",this.id),this}removeInput(i,a=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"remove-input"))){return this.inputs.find(o=>o.id===i.id)&&(this.inputs=this.inputs.filter(o=>o.id!==i.id),a==null||a.add(this,S.Affected)),a==null||a.attemptAutoclose("remove-input",this.id),this}addOutput(i,a=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"add-output"))){return this.outputs.find(o=>o.id===i.id)||(this.outputs.push(i),a==null||a.add(this,S.Affected)),a==null||a.attemptAutoclose("add-output",this.id),this}removeOutput(i,a=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"remove-output"))){return this.outputs.find(o=>o.id===i.id)&&(this.outputs=this.outputs.filter(o=>o.id!==i.id),a==null||a.add(this,S.Affected)),a==null||a.attemptAutoclose("remove-output",this.id),this}};g(Ut,"repository",{APICreate:async(i,...a)=>i,APIUpdate:async(i,...a)=>i,APIDelete:async(i,...a)=>i,APIClone:async(i,...a)=>{},APILoad:async(i,...a)=>null,APILoadVersion:async(i,a,...o)=>null}),g(Ut,"type",f.ActionDescriptor),g(Ut,"USER_MANAGED_PARENT_TYPES",[f.DefinitionEntity,f.DataType]),g(Ut,"PARENT_TYPES",[...Ut.USER_MANAGED_PARENT_TYPES,f.PrimitiveEntity,f.BuiltInBaseEntity]),g(Ut,"MUTABLE_BASE_PROPERTIES",["name","codeName","description"]),g(Ut,"INMUTABLE_BASE_PROPERTIES",["id","type","version","createdAt","author","previousVersion"]),g(Ut,"BASE_PROPERTIES",[...Ut.MUTABLE_BASE_PROPERTIES,...Ut.INMUTABLE_BASE_PROPERTIES]),g(Ut,"MUTABLE_META_PROPERTIES",[...Ut.MUTABLE_BASE_PROPERTIES]),g(Ut,"INMUTABLE_META_PROPERTIES",[...Ut.INMUTABLE_BASE_PROPERTIES]),g(Ut,"META_PROPERTIES",[...Ut.MUTABLE_META_PROPERTIES,...Ut.INMUTABLE_META_PROPERTIES]),g(Ut,"MUTABLE_UPSTREAM_PROPERTIES",[]),g(Ut,"INMUTABLE_UPSTREAM_PROPERTIES",["parent"]),g(Ut,"UPSTREAM_PROPERTIES",[...Ut.MUTABLE_UPSTREAM_PROPERTIES,...Ut.INMUTABLE_UPSTREAM_PROPERTIES]),g(Ut,"MUTABLE_DOWNSTREAM_PROPERTIES",["inputs","outputs"]),g(Ut,"INMUTABLE_DOWNSTREAM_PROPERTIES",[]),g(Ut,"DOWNSTREAM_PROPERTIES",[...Ut.MUTABLE_DOWNSTREAM_PROPERTIES,...Ut.INMUTABLE_DOWNSTREAM_PROPERTIES]),g(Ut,"PROPERTIES",[...Ut.META_PROPERTIES,...Ut.UPSTREAM_PROPERTIES,...Ut.DOWNSTREAM_PROPERTIES]);let wt=Ut;var qj=(d=>(d.Parent="parent",d))(qj||{});const ct=class ct extends Nr{constructor(i,a){super(i);g(this,"initialData");g(this,"id");g(this,"x");g(this,"y");g(this,"type",f.Loop);g(this,"declaration");g(this,"inputs",[]);g(this,"outputs",[]);g(this,"process",null);g(this,"successCalls",[]);g(this,"errorCalls",[]);g(this,"error",null);g(this,"outputsDeclarations",[]);g(this,"body");g(this,"calledBySuccess",[]);g(this,"calledByError",[]);g(this,"calledByEntry",[]);g(this,"parent");g(this,"detachedChildren",[]);g(this,"errors",[]);g(this,"project");g(this,"detachedDependents",{});g(this,"knownVersions",null);g(this,"activeVersion",!1);g(this,"initialized",!1);g(this,"startedInitialization",!1);this.initialData=i,this.project=a,this.id=i.id,this.x=i.x,this.y=i.y}static new(i=null){return{id:N.UUID.uuid(),version:N.UUID.uuid(),createdAt:(i==null?void 0:i.timestamp)||L().toISOString(),author:(i==null?void 0:i.author)||N.sessionAuthor,previousVersion:null,deleted:!1,type:f.Loop,declaration:null,inputs:[],outputs:[],outputsDeclarations:[],process:null,error:null,body:null,parent:null,calledByEntry:[],calledBySuccess:[],calledByError:[],errorCalls:[],successCalls:[],x:0,y:0}}static fromGenerationTarget(i,a){let o=a;if(i.parent){const $=J(i.parent);o=a.get($)}const p=J(i.declaration),e=a.get(p),y=i.calledByEntry.map($=>{const V=J($);return a.get(V)}),v=i.calledBySuccess.map($=>{const V=J($);return a.get(V)}),E=i.calledByError.map($=>{const V=J($);return a.get(V)}),w={id:i.id,version:N.UUID.uuid(),createdAt:L().toISOString(),author:N.sessionAuthor,previousVersion:null,deleted:!1,type:f.Loop,declaration:e,calledByEntry:y,calledBySuccess:v,calledByError:E,process:null,errorCalls:[],successCalls:[],inputs:[],outputs:[],body:null,outputsDeclarations:[],error:null,x:0,y:0,parent:o},A=te(w,a);return A.setParent(o,null),A}static validateGenerationTarget(i,a){let o=JSON.parse(JSON.stringify(i));const p=[],e=ai(o,{parent:{list:!1,types:[...Mr,f.Project],optional:!0},declaration:{list:!1,types:[f.ActionDescriptor]}},a);return o=e.modifiedData,p.push(...e.errors,...Br(o)),i.declaration?a.get(i.declaration)?a.conditionDeclarations.find(E=>E.id===i.declaration)||p.push(new ee({id:`${i.id}--${k.InvalidImplementsReference}`,code:k.InvalidImplementsReference,severity:q.Error,message:`Entity of type '${i.type}' with id '${i.id}' has an 'declaration' property that isn't pointing to an action descriptor reserved for '${f.Condition}' entities.
70
+ This is likely an incorrect strategy, either the '${this.type}' entity doesn't need to be updated or it should be deleted and a new one created in the desired parent.`})),{errors:a,modifiedData:i}}subscribeDependents(i){return i.forEach(a=>{this.detachedDependents[a.entity.id]||(this.detachedDependents[a.entity.id]=a)}),this}unsubscribeDependents(i){return i.forEach(a=>{this.detachedDependents[a.entity.id]&&delete this.detachedDependents[a.entity.id]}),this}syncDependents(i=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"sync-dependents"))){const a=[],o=[],p=[],e=[];return Object.values(this.detachedDependents).forEach(y=>{const v=y.entity.afterAllChildrenInitialized(i);a.push(...v.updated),o.push(...v.added),p.push(...v.removed),e.push(...v.affected)}),i==null||i.attemptAutoclose("sync-dependents",this.id),{updated:R(a),added:R(o),removed:R(p),affected:R(e),self:this}}onDetachedDependencyRemoved(i,a,o){const p=[],e=[],y=[],v=[];return{updated:R(p),added:R(e),removed:R(y),affected:R(v),self:this}}onDetachedDependencyRestored(i,a,o){const p=[],e=[],y=[],v=[];return{updated:R(p),added:R(e),removed:R(y),affected:R(v),self:this}}unsubscribeFromDependencies(){return this}subscribeToDependencies(){return this}increaseVersion(i){if(i&&!L(i).isValid())throw new Error(`The shared timestamp '${i}' is not a valid ISO 8601 date string.`);return i&&L(i).isSame(L(this.createdAt))?this:(this.previousVersion=this.version,this.version=N.UUID.uuid(),this.createdAt=L(i).toISOString()||L().toISOString(),this)}captureVersion(){var a;const i=((a=this.knownVersions)==null?void 0:a.get(this.version))||new Ut(this,this.project);return i.metaSync(this.toMeta(),null),this.knownVersions=this.knownVersions?this.knownVersions.set(this.version,i):new Map([[this.version,i]]),i.inputs=[...this.inputs],i.outputs=[...this.outputs],i.error=this.error,i.parent=this.parent,this}recursiveCaptureUpstreamVersions(i){const a=[],o=[],p=[],e=[];if(this.parent&&this.parent.type!==f.BuiltInBaseEntity&&this.parent.type!==f.PrimitiveEntity){this.parent.increaseVersion(i);const y=this.parent.recursiveCaptureUpstreamVersions(i);a.push(this.parent,...y.updated),o.push(...y.added),p.push(...y.removed)}return{updated:R(a),added:R(o),removed:R(p),affected:R(e),self:this}}async restoreVersion(i){var v;const a=[],o=[],p=[],e=[];if(this.version===i)return{updated:R(a),added:R(o),removed:R(p),affected:R(e),self:this};if(!this.knownVersions){const E=new Map;for(const[w,A]of this.knownVersions||new Map){if(E.set(w,A),A.activeVersion=!1,A.knownVersions)for(const[$,V]of A.knownVersions)E.set($,V);A.knownVersions=null}}let y=(v=this.knownVersions)==null?void 0:v.get(i);if(!y){const E=await this.APILoadVersion({},i);if(!E)throw new Error(`Version with id '${i}' for entity with id '${this.id}' not found.`);y=new Ut(E,this.project)}return this.metaSync(y.toShallowJSON(),null),this.previousVersion=y.previousVersion,this.version=y.version,this.createdAt=y.createdAt,this.author=y.author,this.deleted=y.deleted,this.inputs=y.inputs,this.outputs=y.outputs,this.error=y.error,this.parent=y.parent,{updated:R(a),added:R(o),removed:R(p),affected:R(e),self:this}}updateWithShallowTransfer(i,a=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"update-with-shallow-transfer"))){if(this.metaSync(i,a),this.version=i.version,this.createdAt=i.createdAt,this.author=i.author,this.deleted=i.deleted,this.previousVersion=i.previousVersion,this.unsubscribeFromDependencies(),i.parent){const o=J(i.parent),p=this.project.get(o),e=this.parent;if(e&&e.id!==(p==null?void 0:p.id)&&(this.removeFromParent(a),this.parent=null),p)this.setParent(p,a);else throw a==null||a.attemptAutoclose("update-with-shallow-transfer",this.id),new Error(`${this.type} with id '${this.id}' has a 'parent' reference '${o}' that isn't found in the project`)}else throw a==null||a.attemptAutoclose("update-with-shallow-transfer",this.id),new Error(`${this.type} with id '${this.id}' must have a 'parent'`);return this.captureVersion(),this.subscribeToDependencies(),a==null||a.attemptAutoclose("update-with-shallow-transfer",this.id),this}hydrateAncestors(){const i=[],a=[],o=[],p=[];if(this.initialData.parent){const e=J(this.initialData.parent),y=this.project.get(e);if(y)this.setParent(y,null),i.push(y);else throw new Error(`${this.type} with id '${this.id}' has a 'parent' reference '${e}' that isn't found in the project`)}else throw new Error(`${this.type} with id '${this.id}' must have a 'parent'`);return{updated:R(i),added:R(a),removed:R(o),affected:R(p),self:this}}afterAllChildrenInitialized(i=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"after-all-children-initialized"))){const a=[],o=[],p=[],e=[];return this.initialized=!0,this.captureVersion(),i==null||i.attemptAutoclose("after-all-children-initialized",this.id),{updated:R(a),added:R(o),removed:R(p),affected:R(e),self:this}}addSelfToProject(i=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"add-self-to-project"))){const a=[this],o=[],p=[],e=[];return this.parent?(this.parent.type===f.DefinitionEntity?(this.parent.addAbstractMethod(this),e.push(this.parent)):this.parent.type===f.DataType&&(this.parent.setEntity(this,i),e.push(this.parent)),this.subscribe(),this.subscribeToDependencies(),i==null||i.attemptAutoclose("add-self-to-project",this.id),{updated:R(a),added:R(o),removed:R(p),affected:R(e),self:this}):(this.subscribe(),this.subscribeToDependencies(),i==null||i.attemptAutoclose("add-self-to-project",this.id),{updated:R(a),added:R(o),removed:R(p),affected:R(e),self:this})}setParent(i,a=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"set-parent"))){var o;return((o=this.parent)==null?void 0:o.id)!==(i==null?void 0:i.id)&&(this.parent=i,a&&(a==null||a.add(this,S.Updated))),a==null||a.attemptAutoclose("set-parent",this.id),this}initChildren(i=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"init-children"))){return this.initialized||this.startedInitialization?this:(this.startedInitialization=!0,this.inputs=this.initialData.inputs.map(a=>{const o=te(a,this.project);return o.setParent(this,null),o.initChildren(i),o}),this.outputs=this.initialData.outputs.map(a=>{const o=te(a,this.project);return o.setParent(this,null),o.initChildren(i),o}),this.initialData.error&&(this.error=te(this.initialData.error,this.project),this.error.setParent(this,null),this.error.initChildren(i)),this.subscribeToDependencies(),this.afterAllChildrenInitialized(i),i==null||i.attemptAutoclose("init-children",this.id),this)}subscribe(){return this.activeVersion=!0,this.project.subscribeInstance(this),this}unsubscribe(){return this.project.unsubscribeInstance(this),this}metaSync(i,a=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"meta-sync"))){const o=Ur(this,i),p=this.toMeta();return this.name=i.name!==void 0?i.name:p.name,this.codeName=i.codeName!==void 0?i.codeName:p.codeName,this.description=i.description!==void 0?i.description:p.description,super.metaSync(i),i.deleted===!0&&!p.deleted?a==null||a.add(this,S.Removed):i.deleted===!1&&p.deleted?a==null||a.add(this,S.Added):o&&(a==null||a.add(this,S.Updated)),a==null||a.attemptAutoclose("meta-sync",this.id),this}async APILoad(i=ve,...a){return await Ut.repository.APILoad(this.id,...a),this}async APICreate(i=ve,...a){return await Ut.repository.APICreate(this.toShallowJSON(),...a),this}async APIUpdate(i=ve,...a){return await Ut.repository.APIUpdate(this.toShallowJSON(),...a),this}async APIDelete(i=ve,...a){return await Ut.repository.APIDelete(this.toShallowJSON(),...a),this}async APIClone(i=ve,...a){return await Ut.repository.APIClone(this.id,...a),this}async APILoadVersion(i=ve,a,...o){return await Ut.repository.APILoadVersion(this.id,a,...o)}removeFromParent(i=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"remove-from-parent"))){const a=[],o=[],p=[],e=[];return this.parent&&(this.parent.type===f.DataType?(this.parent.setEntity(null,i),e.push(this.parent)):this.parent.type===f.DefinitionEntity&&(this.parent.removeAbstractMethod(this),e.push(this.parent))),i==null||i.attemptAutoclose("remove-from-parent",this.id),{added:R(p),updated:R(a),removed:R(o),affected:R(e),self:this}}remove({ignoreUpstream:i}={ignoreUpstream:!1},a=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"remove-entity"))){const o=[],p=[],e=[],y=[];if(a!=null&&a.hasRemoved(this.id))return a==null||a.attemptAutoclose("remove-entity",this.id),{added:[],updated:[],removed:[],affected:[],self:this};if(p.push(this),this.unsubscribe(),this.project.subscribeDeletedInstance(this),this.metaSync({deleted:!0},a),Object.values(this.detachedDependents).forEach(v=>{const{updated:E,removed:w,added:A}=v.entity.onDetachedDependencyRemoved(this,v.field,a);o.push(...E),p.push(...w),e.push(...A)}),this.inputs.forEach(v=>{const E=v.remove({ignoreUpstream:!0},a);o.push(...E.updated),p.push(...E.removed)}),this.outputs.forEach(v=>{const E=v.remove({ignoreUpstream:!0},a);o.push(...E.updated),p.push(...E.removed)}),this.error){const v=this.error.remove({ignoreUpstream:!0},a);o.push(...v.updated),p.push(...v.removed)}if(this.parent&&!i){const v=this.removeFromParent(a);e.push(...v.added),o.push(...v.updated),p.push(...v.removed),y.push(...v.affected)}return a==null||a.attemptAutoclose("remove-entity",this.id),{added:R(e),updated:R(o),removed:R(p),affected:R(y),self:this}}restore({}={},i=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"restore-entity"))){const a=[],o=[],p=[],e=[];if(i!=null&&i.hasAdded(this.id))return i==null||i.attemptAutoclose("restore-entity",this.id),{added:[],updated:[],removed:[],affected:[],self:this};if(this.subscribe(),this.project.unsubscribeDeletedInstance(this),this.metaSync({deleted:!1},i),Object.values(this.detachedDependents).forEach(y=>{const{updated:v,removed:E,added:w}=y.entity.onDetachedDependencyRestored(this,y.field,i);o.push(...v),p.push(...E),a.push(...w)}),this.inputs.forEach(y=>{const v=y.restore({},i);o.push(...v.updated)}),this.outputs.forEach(y=>{const v=y.restore({},i);o.push(...v.updated)}),this.error){const y=this.error.restore({},i);o.push(...y.updated)}return i==null||i.attemptAutoclose("restore-entity",this.id),{added:R(a),updated:R(o),removed:R(p),affected:R(e),self:this}}toFlat(i=new Set){return i.has(this.id)?[]:(i.add(this.id),[this,...this.inputs.flatMap(o=>o.toFlat(i)),...this.outputs.flatMap(o=>o.toFlat(i))])}toFlatIds(i=new Set){return i.has(this.id)?[]:(i.add(this.id),[this.id,...this.inputs.flatMap(o=>o.toFlatIds(i)),...this.outputs.flatMap(o=>o.toFlatIds(i))])}toMeta(){return{id:this.id,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,codeName:this.codeName,description:this.description,type:this.type,name:this.name}}toJSON(i=new Set){var a,o;return i.has(this.id)?this.toReference():(i.add(this.id),{id:this.id,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,type:this.type,name:this.name,codeName:this.codeName,description:this.description,error:((a=this.error)==null?void 0:a.toJSON(i))||null,inputs:this.inputs.map(p=>p.toJSON(i)),outputs:this.outputs.map(p=>p.toJSON(i)),parent:((o=this.parent)==null?void 0:o.toReference())||null})}toJSONClone(i=ke){var o,p,e,y,v,E,w;let a;return(o=i.seenEntityMaps)!=null&&o.has(this.id)?a=i.seenEntityMaps.get(this.id):(a=i.newId||Gr(this,this.project,i.uuidStrategy),i.seenEntityMaps&&i.seenEntityMaps.set(this.id,a)),(p=i.seenEntities)!=null&&p.has(a)||(e=i.seenEntities)!=null&&e.has(this.id)?this.toReference({seenEntityMaps:i.seenEntityMaps}):((y=i.seenEntities)==null||y.add(a),(v=i.seenEntities)==null||v.add(this.id),{id:a,version:N.UUID.uuid(),createdAt:i.timestamp||L().toISOString(),previousVersion:null,author:this.author,deleted:this.deleted,type:this.type,name:this.name,codeName:this.codeName,description:this.description,error:((E=this.error)==null?void 0:E.toJSONClone({...i,newId:null}))||null,inputs:this.inputs.map(A=>A.toJSONClone({...i,newId:null})),outputs:this.outputs.map(A=>A.toJSONClone({...i,newId:null})),parent:((w=this.parent)==null?void 0:w.toReference({seenEntityMaps:i.seenEntityMaps}))||null})}toReference(i=ke){var o;let a=this.id;return(o=i.seenEntityMaps)!=null&&o.has(this.id)&&(a=i.seenEntityMaps.get(this.id)),{id:a+"--"+N.UUID.uuid()+"--ref",type:f.GenericReference,entityId:a,version:this.version,entityType:this.type}}toShallowJSON(i=ke){var o,p,e;let a=this.id;return(o=i.seenEntityMaps)!=null&&o.has(this.id)&&(a=i.seenEntityMaps.get(this.id)),{id:a,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,type:this.type,name:this.name,codeName:this.codeName,description:this.description,error:((p=this.error)==null?void 0:p.toReference(i))||null,inputs:this.inputs.map(y=>y.toReference(i)),outputs:this.outputs.map(y=>y.toReference(i)),parent:((e=this.parent)==null?void 0:e.toReference(i))||null}}toFlatJSON(i=new Set){return i.has(this.id)?[]:(i.add(this.id),[this.toShallowJSON(),...this.inputs.flatMap(o=>o.toFlatJSON(i)),...this.outputs.flatMap(o=>o.toFlatJSON(i))])}toGenerationTarget(){var i;return{id:this.id,name:this.name,codeName:this.codeName,description:this.description,type:this.type,parent:((i=this.parent)==null?void 0:i.id)||void 0}}toFlatGenerationTarget(i=new Set){return i.has(this.id)?[]:(i.add(this.id),[this.toGenerationTarget(),...this.inputs.flatMap(o=>o.toFlatGenerationTarget(i)),...this.outputs.flatMap(o=>o.toFlatGenerationTarget(i))])}asFunctionDeclarationTransfer(i,a=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"implement-as-function-declaration"))){var v;const o=i||N.UUID.uuid(),p=N.UUID.uuid(),e=this.inputs.map((E,w)=>{var $;const A={id:N.UUID.uuid(),type:f.GenericReference,version:p,entityType:f.FunctionDeclaration,entityId:o};return{id:N.UUID.uuid(),version:N.UUID.uuid(),createdAt:(a==null?void 0:a.timestamp)||L().toISOString(),author:N.sessionAuthor,previousVersion:null,deleted:!1,type:f.ArgumentDeclaration,name:E.name,required:E.required,implements:E.toJSON(),constant:!0,writesValues:[],defaultValue:null,codeName:E.codeName,description:E.description,index:w,dataType:(($=E.dataType)==null?void 0:$.toJSONClone({timestamp:(a==null?void 0:a.timestamp)||L().toISOString()}))||null,parent:A}}),y=[];if(this.outputs.length){const E=this.outputs.map((V,U)=>{var K;const G={id:N.UUID.uuid(),type:f.GenericReference,entityId:o,version:p,entityType:f.ReturnStatement};return{id:N.UUID.uuid(),version:N.UUID.uuid(),createdAt:(a==null?void 0:a.timestamp)||L().toISOString(),author:N.sessionAuthor,previousVersion:null,deleted:!1,type:f.ReturnDeclaration,name:V.name,codeName:V.codeName,description:V.description,readsValue:null,constant:!0,required:V.required,defaultValue:null,implements:V.toJSON(),isError:!1,index:U,dataType:((K=V.dataType)==null?void 0:K.toJSONClone())||null,parent:G}}),w={id:N.UUID.uuid(),type:f.GenericReference,version:p,entityType:f.FunctionDeclaration,entityId:o},A={id:N.UUID.uuid(),type:f.GenericReference,version:p,entityType:f.FunctionDeclaration,entityId:o},$={id:N.UUID.uuid(),version:N.UUID.uuid(),createdAt:(a==null?void 0:a.timestamp)||L().toISOString(),author:N.sessionAuthor,previousVersion:null,deleted:!1,type:f.ReturnStatement,outputs:E,throws:null,calledBySuccess:[],calledByError:[],calledByEntry:[A],parent:w,x:0,y:0};y.push($)}return a==null||a.attemptAutoclose("implement-as-function-declaration",this.id),{id:o,version:p,createdAt:(a==null?void 0:a.timestamp)||L().toISOString(),author:N.sessionAuthor,previousVersion:null,deleted:!1,type:f.FunctionDeclaration,name:this.name,codeName:this.codeName,description:this.description,inputs:e,calls:y,collapsed:!1,private:!1,implements:this.toJSON(),extends:null,index:0,parent:((v=this.parent)==null?void 0:v.toReference())||null,x:0,y:0}}implementAsGlobalEvent(i=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"implement-as-global-event")),a,o){const p=a||this.project,e=o||N.UUID.uuid(),y=N.UUID.uuid(),v={id:e,version:y,createdAt:(i==null?void 0:i.timestamp)||L().toISOString(),author:N.sessionAuthor,previousVersion:null,deleted:!1,type:f.GlobalEvent,name:this.name,description:this.description,inputs:[],calls:[],collapsed:!1,implements:this.toJSON(),parent:(p==null?void 0:p.toReference())||null,x:0,y:0},E=te(v,this.project);if(E.setParent(p,i),E.initChildren(i),i==null||i.add(E,S.Added),E.hydrateAncestors(),E.addSelfToProject(i),this.inputs.map((w,A)=>{var K;const $={id:N.UUID.uuid(),type:f.GenericReference,version:y,entityType:f.GlobalEvent,entityId:e},V={id:N.UUID.uuid(),version:N.UUID.uuid(),createdAt:(i==null?void 0:i.timestamp)||L().toISOString(),author:N.sessionAuthor,previousVersion:null,deleted:!1,type:f.ArgumentDeclaration,name:w.name,required:w.required,implements:w.toJSON(),constant:!0,writesValues:[],defaultValue:null,codeName:w.codeName,description:w.description,index:A,dataType:null,parent:$},U=te(V,this.project);U.setParent(E,i),U.initChildren(i),i==null||i.add(U,S.Added),U.hydrateAncestors(),U.addSelfToProject(i);const G=((K=w.dataType)==null?void 0:K.clone(i,U))||null;G&&(i==null||i.add(G,S.Added)),U.setDataType(G,i)}),this.outputs.length){const w=N.UUID.uuid(),A=N.UUID.uuid(),$={id:N.UUID.uuid(),type:f.GenericReference,version:y,entityType:f.GlobalEvent,entityId:e},V={id:N.UUID.uuid(),type:f.GenericReference,version:y,entityType:f.GlobalEvent,entityId:e},U={id:w,version:A,createdAt:(i==null?void 0:i.timestamp)||L().toISOString(),author:N.sessionAuthor,previousVersion:null,deleted:!1,type:f.ReturnStatement,outputs:[],throws:null,calledBySuccess:[],calledByError:[],calledByEntry:[V],parent:$,x:0,y:0},G=te(U,this.project);G.setParent(E,i),G.initChildren(i),i==null||i.add(G,S.Added),G.hydrateAncestors(),G.addSelfToProject(i),this.outputs.map((K,Z)=>{var fe;const ie={id:N.UUID.uuid(),type:f.GenericReference,entityId:w,version:A,entityType:f.ReturnStatement},X={id:N.UUID.uuid(),version:N.UUID.uuid(),createdAt:(i==null?void 0:i.timestamp)||L().toISOString(),author:N.sessionAuthor,previousVersion:null,deleted:!1,type:f.ReturnDeclaration,name:K.name,codeName:K.codeName,description:K.description,readsValue:null,constant:!0,required:K.required,defaultValue:null,implements:K.toJSON(),isError:!1,index:Z,dataType:null,parent:ie},ue=te(X,this.project);ue.setParent(G,i),ue.initChildren(i),i==null||i.add(ue,S.Added),ue.hydrateAncestors(),ue.addSelfToProject(i);const re=((fe=K.dataType)==null?void 0:fe.clone(i,ue))||null;re&&(i==null||i.add(re,S.Added)),ue.setDataType(re,i)})}return i==null||i.attemptAutoclose("implement-as-function-declaration",this.id),E}implementAsFunctionDeclaration(i=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"implement-as-function-declaration")),a,o){const p=a||this.project,e=o||N.UUID.uuid(),y=N.UUID.uuid(),v={extends:null,id:e,version:y,createdAt:(i==null?void 0:i.timestamp)||L().toISOString(),author:N.sessionAuthor,previousVersion:null,deleted:!1,type:f.FunctionDeclaration,name:this.name,codeName:this.codeName,description:this.description,inputs:[],calls:[],collapsed:!1,private:!1,implements:this.toJSON(),index:0,parent:(p==null?void 0:p.toReference())||null,x:0,y:0},E=te(v,this.project);if(E.hydrateAncestors(),E.setParent(p,i),i==null||i.add(E,S.Added),E.addSelfToProject(i),E.initChildren(i),this.outputs.length){const w=N.UUID.uuid(),A=N.UUID.uuid(),$={id:N.UUID.uuid(),type:f.GenericReference,version:y,entityType:f.FunctionDeclaration,entityId:e},V={id:N.UUID.uuid(),type:f.GenericReference,version:y,entityType:f.FunctionDeclaration,entityId:e},U={id:w,version:A,createdAt:(i==null?void 0:i.timestamp)||L().toISOString(),author:N.sessionAuthor,previousVersion:null,deleted:!1,type:f.ReturnStatement,outputs:[],throws:null,calledBySuccess:[],calledByError:[],calledByEntry:[V],parent:$,x:0,y:0},G=te(U,this.project);G.hydrateAncestors(),G.setParent(E,i),G.addSelfToProject(i),i==null||i.add(G,S.Added),G.initChildren(i)}return i==null||i.attemptAutoclose("implement-as-function-declaration",this.id),E}implementAsLoop(i=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"implement-as-loop")),a,o){const p=a||this.project,e=o||N.UUID.uuid(),y=N.UUID.uuid(),v={id:e,version:y,createdAt:(i==null?void 0:i.timestamp)||L().toISOString(),author:N.sessionAuthor,previousVersion:null,deleted:!1,type:f.Loop,declaration:this.toJSON(),inputs:[],outputs:[],error:null,process:null,successCalls:[],errorCalls:[],calledByEntry:[],calledByError:[],calledBySuccess:[],outputsDeclarations:[],body:null,x:0,y:0,parent:p.toReference()},E=te(v,this.project);return E.hydrateAncestors(),E.setParent(p,i),i==null||i.add(E,S.Added),E.addSelfToProject(i),E.initChildren(i),p===this.project&&this.project.addLoop(E),i==null||i.attemptAutoclose("implement-as-loop",this.id),E}implementAsOperation(i=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"implement-as-operation")),a,o){const p=a||this.project,e=o||N.UUID.uuid(),y=N.UUID.uuid(),v={id:e,version:y,createdAt:(i==null?void 0:i.timestamp)||L().toISOString(),author:N.sessionAuthor,previousVersion:null,deleted:!1,type:f.Operation,declaration:this.toJSON(),inputs:[],outputs:[],error:null,process:null,successCalls:[],errorCalls:[],calledByEntry:[],calledByError:[],calledBySuccess:[],x:0,y:0,parent:p.toReference()},E=te(v,this.project);return E.hydrateAncestors(),E.setParent(p,i),i==null||i.add(E,S.Added),E.addSelfToProject(i),E.initChildren(i),p===this.project&&this.project.addOperation(E),i==null||i.attemptAutoclose("implement-as-operation",this.id),E}implementAsCondition(i=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"implement-as-condition")),a,o){const p=a||this.project,e=o||N.UUID.uuid(),y=N.UUID.uuid(),v={id:e,version:y,createdAt:(i==null?void 0:i.timestamp)||L().toISOString(),author:N.sessionAuthor,previousVersion:null,deleted:!1,type:f.Condition,declaration:this.toJSON(),inputs:[],successCalls:[],errorCalls:[],calledByEntry:[],calledByError:[],calledBySuccess:[],x:0,y:0,parent:p.toReference()},E=te(v,this.project);return E.hydrateAncestors(),E.setParent(p,i),i==null||i.add(E,S.Added),E.addSelfToProject(i),E.initChildren(i),p===this.project&&this.project.addCondition(E),i==null||i.attemptAutoclose("implement-as-condition",this.id),E}clearErrors(){var i;return this.errors=[],this.inputs.forEach(a=>a.clearErrors()),this.outputs.forEach(a=>a.clearErrors()),(i=this.error)==null||i.clearErrors(),this}validate(){const i=kj(this);return this.errors=i,{success:!0}}getErrors(){return[...this.errors,...this.inputs.flatMap(a=>a.getErrors()),...this.outputs.flatMap(a=>a.getErrors())]}getShallowErrors(){return this.errors}clone(i=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"clone-entity")),a=null,o=null,p=!0){var G,K;if(Array.from(new Set([...Xs(),...this.project.getAllBuiltInIds()])).includes(this.id))return this;let y=Fr(a,this);const v=this.toJSON(),E=o||N.UUID.uuid();v.inputs=[],v.outputs=[],v.error=null;const w=E.split("-id"),A=w[w.length-1||0]||E;v.id=E,v.version=N.UUID.uuid(),v.createdAt=(i==null?void 0:i.timestamp)||L().toISOString(),v.author=(i==null?void 0:i.author)||"1",v.previousVersion=null,v.deleted=!1;const $=lr(v,y);i==null||i.add($,S.Added),a?$.setParent(a,null):this.parent&&$.setParent(this.parent,null),p&&$.subscribe(),$.initChildren(i);const V=(G=this.inputs)==null?void 0:G.map((Z,ie)=>Z.clone(i,$,A+"-argument-value-descriptor-"+ie+"-id",p));$.inputs=V;const U=(K=this.outputs)==null?void 0:K.map((Z,ie)=>Z.clone(i,$,A+"-return-value-descriptor-"+ie+"-id",p));return $.outputs=U,this.error&&($.error=this.error.clone(i,$,A+"-error-action-descriptor-id",p)),i==null||i.attemptAutoclose("clone-entity",this.id),$}addInput(i,a=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"add-input"))){return this.inputs.find(o=>o.id===i.id)||(this.inputs.push(i),a==null||a.add(this,S.Affected)),a==null||a.attemptAutoclose("add-input",this.id),this}removeInput(i,a=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"remove-input"))){return this.inputs.find(o=>o.id===i.id)&&(this.inputs=this.inputs.filter(o=>o.id!==i.id),a==null||a.add(this,S.Affected)),a==null||a.attemptAutoclose("remove-input",this.id),this}addOutput(i,a=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"add-output"))){return this.outputs.find(o=>o.id===i.id)||(this.outputs.push(i),a==null||a.add(this,S.Affected)),a==null||a.attemptAutoclose("add-output",this.id),this}removeOutput(i,a=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"remove-output"))){return this.outputs.find(o=>o.id===i.id)&&(this.outputs=this.outputs.filter(o=>o.id!==i.id),a==null||a.add(this,S.Affected)),a==null||a.attemptAutoclose("remove-output",this.id),this}};g(Ut,"repository",{APICreate:async(i,...a)=>i,APIUpdate:async(i,...a)=>i,APIDelete:async(i,...a)=>i,APIClone:async(i,...a)=>{},APILoad:async(i,...a)=>null,APILoadVersion:async(i,a,...o)=>null}),g(Ut,"type",f.ActionDescriptor),g(Ut,"USER_MANAGED_PARENT_TYPES",[f.DefinitionEntity,f.DataType]),g(Ut,"PARENT_TYPES",[...Ut.USER_MANAGED_PARENT_TYPES,f.PrimitiveEntity,f.BuiltInBaseEntity]),g(Ut,"MUTABLE_BASE_PROPERTIES",["name","codeName","description"]),g(Ut,"INMUTABLE_BASE_PROPERTIES",["id","type","version","createdAt","author","previousVersion"]),g(Ut,"BASE_PROPERTIES",[...Ut.MUTABLE_BASE_PROPERTIES,...Ut.INMUTABLE_BASE_PROPERTIES]),g(Ut,"MUTABLE_META_PROPERTIES",[...Ut.MUTABLE_BASE_PROPERTIES]),g(Ut,"INMUTABLE_META_PROPERTIES",[...Ut.INMUTABLE_BASE_PROPERTIES]),g(Ut,"META_PROPERTIES",[...Ut.MUTABLE_META_PROPERTIES,...Ut.INMUTABLE_META_PROPERTIES]),g(Ut,"MUTABLE_UPSTREAM_PROPERTIES",[]),g(Ut,"INMUTABLE_UPSTREAM_PROPERTIES",["parent"]),g(Ut,"UPSTREAM_PROPERTIES",[...Ut.MUTABLE_UPSTREAM_PROPERTIES,...Ut.INMUTABLE_UPSTREAM_PROPERTIES]),g(Ut,"MUTABLE_DOWNSTREAM_PROPERTIES",["inputs","outputs"]),g(Ut,"INMUTABLE_DOWNSTREAM_PROPERTIES",[]),g(Ut,"DOWNSTREAM_PROPERTIES",[...Ut.MUTABLE_DOWNSTREAM_PROPERTIES,...Ut.INMUTABLE_DOWNSTREAM_PROPERTIES]),g(Ut,"PROPERTIES",[...Ut.META_PROPERTIES,...Ut.UPSTREAM_PROPERTIES,...Ut.DOWNSTREAM_PROPERTIES]);let wt=Ut;var qj=(d=>(d.Parent="parent",d))(qj||{});const ct=class ct extends Nr{constructor(i,a){super(i);g(this,"initialData");g(this,"id");g(this,"x");g(this,"y");g(this,"type",f.Loop);g(this,"declaration");g(this,"inputs",[]);g(this,"outputs",[]);g(this,"process",null);g(this,"successCalls",[]);g(this,"errorCalls",[]);g(this,"error",null);g(this,"outputsDeclarations",[]);g(this,"body");g(this,"calledBySuccess",[]);g(this,"calledByError",[]);g(this,"calledByEntry",[]);g(this,"parent");g(this,"detachedChildren",[]);g(this,"errors",[]);g(this,"project");g(this,"detachedDependents",{});g(this,"knownVersions",null);g(this,"activeVersion",!1);g(this,"initialized",!1);g(this,"startedInitialization",!1);this.initialData=i,this.project=a,this.id=i.id,this.x=i.x,this.y=i.y}static new(i=null){return{id:N.UUID.uuid(),version:N.UUID.uuid(),createdAt:(i==null?void 0:i.timestamp)||L().toISOString(),author:(i==null?void 0:i.author)||N.sessionAuthor,previousVersion:null,deleted:!1,type:f.Loop,declaration:null,inputs:[],outputs:[],outputsDeclarations:[],process:null,error:null,body:null,parent:null,calledByEntry:[],calledBySuccess:[],calledByError:[],errorCalls:[],successCalls:[],x:0,y:0}}static fromGenerationTarget(i,a){let o=a;if(i.parent){const $=J(i.parent);o=a.get($)}const p=J(i.declaration),e=a.get(p),y=i.calledByEntry.map($=>{const V=J($);return a.get(V)}),v=i.calledBySuccess.map($=>{const V=J($);return a.get(V)}),E=i.calledByError.map($=>{const V=J($);return a.get(V)}),w={id:i.id,version:N.UUID.uuid(),createdAt:L().toISOString(),author:N.sessionAuthor,previousVersion:null,deleted:!1,type:f.Loop,declaration:e,calledByEntry:y,calledBySuccess:v,calledByError:E,process:null,errorCalls:[],successCalls:[],inputs:[],outputs:[],body:null,outputsDeclarations:[],error:null,x:0,y:0,parent:o},A=te(w,a);return A.setParent(o,null),A}static validateGenerationTarget(i,a){let o=JSON.parse(JSON.stringify(i));const p=[],e=ai(o,{parent:{list:!1,types:[...Mr,f.Project],optional:!0},declaration:{list:!1,types:[f.ActionDescriptor]}},a);return o=e.modifiedData,p.push(...e.errors,...Br(o)),i.declaration?a.get(i.declaration)?a.conditionDeclarations.find(E=>E.id===i.declaration)||p.push(new ee({id:`${i.id}--${k.InvalidImplementsReference}`,code:k.InvalidImplementsReference,severity:q.Error,message:`Entity of type '${i.type}' with id '${i.id}' has an 'declaration' property that isn't pointing to an action descriptor reserved for '${f.Condition}' entities.
71
71
  ${Am(a)}`})):p.push(new ee({id:`${i.id}--${k.ReferencedEntityNotFound}`,code:k.ReferencedEntityNotFound,severity:q.Error,message:`Entity of type '${i.type}' with id '${i.id}' has an 'declaration' property that isn't found in the project. The 'declaration' property must point to one of the built-in action descriptors reserved for '${f.Condition}' entities.
72
72
  ${Am(a)}`})):p.push(new ee({id:`${i.id}--${ae.InvalidObjectStructure}`,code:ae.InvalidObjectStructure,severity:q.Error,message:`Entity of type '${i.type}' with id '${i.id}' is missing the 'declaration' property. This property is required for a '${i.type}' entity and must point to one of the built-in action descriptors reserved for '${f.Condition}' entities.
73
73
  ${Am(a)}`})),{errors:p,modifiedData:o}}static fromReturnDeclarationToBodyArgumentDeclarationName(i){return`Previous iteration results of '${ne(i,i.project)}'`}static fromBodyArgumentDeclarationToReturnDeclarationName(i){const a=i.name.replace("Previous iteration results of '","");return a.slice(0,a.length-1)}static fromReturnDeclarationToLoopOutputDeclarationName(i){return`Result list of '${ne(i,i.project)}'`}static fromLoopOutputDeclarationToReturnDeclarationName(i){const a=i.name.replace("Result list of '","");return a.slice(0,a.length-1)}static fromLoopOutputDeclarationToBodyArgumentDeclarationName(i){return i.name.replace("Result list of '","Previous iteration results of '")}static fromBodyArgumentDeclarationToLoopOutputDeclarationName(i){return i.name.replace("Previous iteration results of '","Result list of '")}get currentIterationNumberArgumentDeclaration(){var o;const i=(o=Ee[f.Loop][this.declaration.id].body.inputs.iterationNumber)==null?void 0:o.id;return this.body.inputs.find(p=>{var e;return!!p.implements&&i===((e=p.implements)==null?void 0:e.id)||p.name===ct.CURRENT_ITERATION_NUMBER_ARG_NAME})}get currentValueArgumentDeclaration(){var o;if(this.declaration.id===ze.ManualFlow||this.declaration.id===ze.Counted)return null;const i=(o=Ee[f.Loop][this.declaration.id].body.inputs.currentValue)==null?void 0:o.id;return this.body.inputs.find(p=>{var e;return!!p.implements&&i===((e=p.implements)==null?void 0:e.id)||p.name===ct.CURRENT_VALUE_ARG_NAME})||null}get continueStatements(){return Rt(this.body).filter(o=>o.type===f.ContinueStatement&&o.parent.id===this.id)}get breakStatements(){return Rt(this.body).filter(o=>o.type===f.BreakStatement&&o.parent.id===this.id)}validateGeneratedUpdate(i){const a=[];return i.parent&&a.push(new ee({id:`${this.id}--${k.InvalidParentUpdate}`,code:k.InvalidParentUpdate,severity:q.Error,message:`Entity of type '${this.type}' with id '${this.id}' cannot have the 'parent' property updated. The 'parent' on a callable entity, is its scope. It scope is auto-calculated implicitly by the its caller.
@@ -100,7 +100,7 @@ ${e} | ${"^".padStart(o)}`}function p0e(d,u,i){if(d!==null&&/^\w$/.test(d)){cons
100
100
  `,"\r"],!1,!1),WK=yi([";"],!0,!1),vVe=B("ABORT",!0),EVe=B("ACCESS",!0),TVe=B("ACTION",!0),IVe=B("ADD",!0),AVe=B("ADMIN",!0),bVe=B("AFTER",!0),wVe=B("AGAINST",!0),RVe=B("ALL",!0),_Ve=B("ALTER",!0),gVe=B("ALWAYS",!0),DVe=B("ANALYZE",!0),OVe=B("AND",!0),CVe=B("ANY",!0),$Ve=B("ARRAY",!0),PVe=B("AS",!0),NVe=B("ASC",!0),VVe=B("ASSERT",!0),LVe=B("ASSIGNMENT",!0),MVe=B("AT",!0),BVe=B("ATOMIC",!0),UVe=B("ATTACH",!0),jVe=B("ATTRIBUTE",!0),xVe=B("AUTHORIZATION",!0),FVe=B("AUTO_INCREMENT",!0),GVe=B("AUTOEXTEND_SIZE",!0),SVe=B("AUTOINCREMENT",!0),KVe=B("AVG_ROW_LENGTH",!0),kVe=B("BEFORE",!0),qVe=B("BEGIN",!0),ZVe=B("BERNOULLI",!0),JVe=B("BETWEEN",!0),HVe=B("BI_CAPACITY",!0),WVe=B("BIGDECIMAL",!0),YVe=B("BIGINT",!0),zVe=B("BIGNUMERIC",!0),XVe=B("BINARY",!0),QVe=B("BIT",!0),eLe=B("BLOB",!0),tLe=B("BOOL",!0),rLe=B("BOOLEAN",!0),iLe=B("BREADTH",!0),sLe=B("BREAK",!0),nLe=B("BY",!0),aLe=B("BYPASSRLS",!0),oLe=B("BYTEINT",!0),lLe=B("BYTES",!0),dLe=B("CACHE",!0),uLe=B("CALL",!0),cLe=B("CALLED",!0),pLe=B("CAPACITY",!0),fLe=B("CASCADE",!0),hLe=B("CASCADED",!0),yLe=B("CASE",!0),mLe=B("CAST",!0),vLe=B("CENTURY",!0),ELe=B("CHAIN",!0),TLe=B("CHAR",!0),ILe=B("CHARACTER",!0),ALe=B("CHECK",!0),bLe=B("CHECKSUM",!0),wLe=B("CLONE",!0),RLe=B("CLUSTER",!0),_Le=B("COLLATE",!0),gLe=B("COLUMN",!0),DLe=B("COLUMN_FORMAT",!0),OLe=B("COLUMNS",!0),CLe=B("COMMENT",!0),$Le=B("COMMENTS",!0),PLe=B("COMMIT",!0),NLe=B("COMMITTED",!0),VLe=B("COMPACT",!0),LLe=B("COMPRESSED",!0),MLe=B("COMPRESSION",!0),BLe=B("CONCURRENTLY",!0),ULe=B("CONFLICT",!0),jLe=B("CONNECT",!0),xLe=B("CONNECTION",!0),FLe=B("CONSTRAINT",!0),GLe=B("CONSTRAINTS",!0),SLe=B("CONTINUE",!0),KLe=B("COPY",!0),kLe=B("COST",!0),qLe=B("CREATE",!0),ZLe=B("CREATEDB",!0),JLe=B("CREATEROLE",!0),HLe=B("CROSS",!0),WLe=B("CUBE",!0),YLe=B("CUME_DIST",!0),zLe=B("CURRENT",!0),XLe=B("CURRENT_CATALOG",!0),QLe=B("CURRENT_DATE",!0),e2e=B("CURRENT_DATETIME",!0),t2e=B("CURRENT_ROLE",!0),r2e=B("CURRENT_SCHEMA",!0),i2e=B("CURRENT_TIME",!0),s2e=B("CURRENT_TIMESTAMP",!0),n2e=B("CURRENT_USER",!0),a2e=B("CYCLE",!0),o2e=B("DATA",!0),l2e=B("DATABASE",!0),d2e=B("DATE",!0),u2e=B("DATETIME",!0),c2e=B("DAY",!0),p2e=B("DAY_HOUR",!0),f2e=B("DAY_MICROSECOND",!0),h2e=B("DAY_MINUTE",!0),y2e=B("DAY_SECOND",!0),m2e=B("DAYOFWEEK",!0),v2e=B("DAYOFYEAR",!0),E2e=B("DEC",!0),T2e=B("DECADE",!0),I2e=B("DECIMAL",!0),A2e=B("DECLARE",!0),b2e=B("DEFAULT",!0),w2e=B("DEFAULTS",!0),R2e=B("DEFERRABLE",!0),_2e=B("DEFERRED",!0),g2e=B("DEFINER",!0),D2e=B("DELAY_KEY_WRITE",!0),O2e=B("DELAYED",!0),C2e=B("DELETE",!0),$2e=B("DENSE_RANK",!0),P2e=B("DEPENDS",!0),N2e=B("DEPTH",!0),V2e=B("DESC",!0),L2e=B("DESCRIBE",!0),M2e=B("DETACH",!0),B2e=B("DETERMINISTIC",!0),U2e=B("DIRECTORY",!0),j2e=B("DISABLE",!0),x2e=B("DISK",!0),F2e=B("DISTINCT",!0),G2e=B("DISTINCTROW",!0),S2e=B("DIV",!0),K2e=B("DO",!0),k2e=B("DOMAIN",!0),q2e=B("DOUBLE",!0),Z2e=B("DOW",!0),J2e=B("DOY",!0),H2e=B("DROP",!0),W2e=B("DUAL",!0),Y2e=B("DUMPFILE",!0),z2e=B("DUPLICATE",!0),X2e=B("DYNAMIC",!0),Q2e=B("EACH",!0),eMe=B("ELSE",!0),tMe=B("ELSEIF",!0),rMe=B("ENABLE",!0),iMe=B("ENCLOSED",!0),sMe=B("ENCRYPTED",!0),nMe=B("ENCRYPTION",!0),aMe=B("END",!0),oMe=B("ENFORCED",!0),lMe=B("ENGINE",!0),dMe=B("ENGINE_ATTRIBUTE",!0),uMe=B("ENUM",!0),cMe=B("EPOCH",!0),pMe=B("ERROR",!0),fMe=B("ESCAPE",!0),hMe=B("ESCAPED",!0),yMe=B("EXAMINED",!0),mMe=B("EXCEPT",!0),vMe=B("EXCEPTION",!0),EMe=B("EXCLUDE",!0),TMe=B("EXCLUDING",!0),IMe=B("EXCLUSIVE",!0),AMe=B("EXECUTE",!0),bMe=B("EXISTS",!0),wMe=B("EXPANSION",!0),RMe=B("EXPLAIN",!0),_Me=B("EXPORT",!0),gMe=B("EXPRESSION",!0),DMe=B("EXTENDED",!0),OMe=B("EXTENSION",!0),CMe=B("EXTERNAL",!0),$Me=B("EXTRACT",!0),PMe=B("FAIL",!0),NMe=B("FALSE",!0),VMe=B("FETCH",!0),LMe=B("FIELDS",!0),MMe=B("FILES",!0),BMe=B("FILTER",!0),UMe=B("FIRST",!0),jMe=B("FIRST_VALUE",!0),xMe=B("FIXED",!0),FMe=B("FLOAT",!0),GMe=B("FLOAT64",!0),SMe=B("FOLLOWING",!0),KMe=B("FOR",!0),kMe=B("FORCE",!0),qMe=B("FOREIGN",!0),ZMe=B("FORMAT",!0),JMe=B("FRIDAY",!0),HMe=B("FROM",!0),WMe=B("FULL",!0),YMe=B("FULLTEXT",!0),zMe=B("FUNCTION",!0),XMe=B("FUNCTIONS",!0),QMe=B("GENERATED",!0),eBe=B("GEOGRAPHY",!0),tBe=B("GLOB",!0),rBe=B("GLOBAL",!0),iBe=B("GRANT",!0),sBe=B("GRANTED",!0),nBe=B("GROUP",!0),aBe=B("GROUPING",!0),oBe=B("GROUPS",!0),lBe=B("HASH",!0),dBe=B("HAVING",!0),uBe=B("HIGH_PRIORITY",!0),cBe=B("HOUR",!0),pBe=B("HOUR_MICROSECOND",!0),fBe=B("HOUR_MINUTE",!0),hBe=B("HOUR_SECOND",!0),yBe=B("IDENTITY",!0),mBe=B("IF",!0),vBe=B("IGNORE",!0),EBe=B("ILIKE",!0),TBe=B("IMMEDIATE",!0),IBe=B("IMMUTABLE",!0),ABe=B("IN",!0),bBe=B("INCLUDE",!0),wBe=B("INCLUDING",!0),RBe=B("INCREMENT",!0),_Be=B("INDEX",!0),gBe=B("INDEXED",!0),DBe=B("INDEXES",!0),OBe=B("INHERIT",!0),CBe=B("INHERITS",!0),$Be=B("INITIALLY",!0),PBe=B("INNER",!0),NBe=B("INOUT",!0),VBe=B("INPUT",!0),LBe=B("INSERT",!0),MBe=B("INSERT_METHOD",!0),BBe=B("INSTEAD",!0),UBe=B("INT",!0),jBe=B("INT64",!0),xBe=B("INTEGER",!0),FBe=B("INTERSECT",!0),GBe=B("INTERVAL",!0),SBe=B("INTO",!0),KBe=B("INVISIBLE",!0),kBe=B("INVOKER",!0),qBe=B("IS",!0),ZBe=B("ISNULL",!0),JBe=B("ISODOW",!0),HBe=B("ISOLATION",!0),WBe=B("ISOWEEK",!0),YBe=B("ISOYEAR",!0),zBe=B("ITERATE",!0),XBe=B("JOIN",!0),QBe=B("JSON",!0),e4e=B("JSONB",!0),t4e=B("JULIAN",!0),r4e=B("KEY",!0),i4e=B("KEY_BLOCK_SIZE",!0),s4e=B("LAG",!0),n4e=B("LANGUAGE",!0),a4e=B("LARGE",!0),o4e=B("LAST",!0),l4e=B("LAST_VALUE",!0),d4e=B("LATERAL",!0),u4e=B("LEAD",!0),c4e=B("LEAKPROOF",!0),p4e=B("LEAVE",!0),f4e=B("LEFT",!0),h4e=B("LEVEL",!0),y4e=B("LIKE",!0),m4e=B("LIMIT",!0),v4e=B("LINES",!0),E4e=B("LIST",!0),T4e=B("LOAD",!0),I4e=B("LOCAL",!0),A4e=B("LOCALTIME",!0),b4e=B("LOCALTIMESTAMP",!0),w4e=B("LOCK",!0),R4e=B("LOCKED",!0),_4e=B("LOGGED",!0),g4e=B("LOGIN",!0),D4e=B("LONGBLOB",!0),O4e=B("LONGTEXT",!0),C4e=B("LOOP",!0),$4e=B("LOW_PRIORITY",!0),P4e=B("MAIN",!0),N4e=B("MAINTAIN",!0),V4e=B("MATCH",!0),L4e=B("MATCHED",!0),M4e=B("MATERIALIZED",!0),B4e=B("MAX",!0),U4e=B("MAX_ROWS",!0),j4e=B("MAXVALUE",!0),x4e=B("MEDIUMBLOB",!0),F4e=B("MEDIUMINT",!0),G4e=B("MEDIUMTEXT",!0),S4e=B("MEMBER",!0),K4e=B("MEMORY",!0),k4e=B("MERGE",!0),q4e=B("MESSAGE",!0),Z4e=B("METHOD",!0),J4e=B("MICROSECOND",!0),H4e=B("MICROSECONDS",!0),W4e=B("MILLENNIUM",!0),Y4e=B("MILLISECOND",!0),z4e=B("MILLISECONDS",!0),X4e=B("MIN",!0),Q4e=B("MIN_ROWS",!0),eUe=B("MINUTE",!0),tUe=B("MINUTE_MICROSECOND",!0),rUe=B("MINUTE_SECOND",!0),iUe=B("MINVALUE",!0),sUe=B("MOD",!0),nUe=B("MODE",!0),aUe=B("MODULUS",!0),oUe=B("MONDAY",!0),lUe=B("MONTH",!0),dUe=B("NATIVE",!0),uUe=B("NATURAL",!0),cUe=B("NCHAR",!0),pUe=B("NEW",!0),fUe=B("NEXT",!0),hUe=B("NFC",!0),yUe=B("NFD",!0),mUe=B("NFKC",!0),vUe=B("NFKD",!0),EUe=B("NO",!0),TUe=B("NOBYPASSRLS",!0),IUe=B("NOCREATEDB",!0),AUe=B("NOCREATEROLE",!0),bUe=B("NOINHERIT",!0),wUe=B("NOLOGIN",!0),RUe=B("NONE",!0),_Ue=B("NOREPLICATION",!0),gUe=B("NORMALIZED",!0),DUe=B("NOSUPERUSER",!0),OUe=B("NOT",!0),CUe=B("NOTHING",!0),$Ue=B("NOTNULL",!0),PUe=B("NOWAIT",!0),NUe=B("NTH_VALUE",!0),VUe=B("NTILE",!0),LUe=B("NULL",!0),MUe=B("NULLS",!0),BUe=B("NUMERIC",!0),UUe=B("NVARCHAR",!0),jUe=B("OBJECT",!0),xUe=B("OF",!0),FUe=B("OFFSET",!0),GUe=B("OIDS",!0),SUe=B("OLD",!0),KUe=B("ON",!0),kUe=B("ONLY",!0),qUe=B("OPERATOR",!0),ZUe=B("OPTION",!0),JUe=B("OPTIONALLY",!0),HUe=B("OPTIONS",!0),WUe=B("OR",!0),YUe=B("ORDER",!0),zUe=B("ORDINAL",!0),XUe=B("ORDINALITY",!0),QUe=B("ORGANIZATION",!0),eje=B("OTHERS",!0),tje=B("OUT",!0),rje=B("OUTER",!0),ije=B("OUTFILE",!0),sje=B("OVER",!0),nje=B("OVERRIDING",!0),aje=B("OVERWRITE",!0),oje=B("OWNED",!0),lje=B("OWNER",!0),dje=B("PACK_KEYS",!0),uje=B("PARALLEL",!0),cje=B("PARAMETER",!0),pje=B("PARTIAL",!0),fje=B("PARTITION",!0),hje=B("PASSWORD",!0),yje=B("PERCENT",!0),mje=B("PERCENT_RANK",!0),vje=B("PERMISSIVE",!0),Eje=B("PIVOT",!0),Tje=B("PLAIN",!0),Ije=B("PLAN",!0),Aje=B("POLICIES",!0),bje=B("POLICY",!0),wje=B("PRAGMA",!0),Rje=B("PRECEDING",!0),_je=B("PRECISION",!0),gje=B("PRESERVE",!0),Dje=B("PRIMARY",!0),Oje=B("PRIVILEGES",!0),Cje=B("PROCEDURE",!0),$je=B("PROCEDURES",!0),Pje=B("PROJECT",!0),Nje=B("PUBLIC",!0),Vje=B("QUALIFY",!0),Lje=B("QUARTER",!0),Mje=B("QUERY",!0),Bje=B("QUICK",!0),Uje=B("RAISE",!0),jje=B("RANGE",!0),xje=B("RANK",!0),Fje=B("READ",!0),Gje=B("REAL",!0),Sje=B("RECURSIVE",!0),Kje=B("REDUNDANT",!0),kje=B("REFERENCES",!0),qje=B("REFERENCING",!0),Zje=B("REFRESH",!0),Jje=B("REGEXP",!0),Hje=B("REINDEX",!0),Wje=B("RELEASE",!0),Yje=B("REMAINDER",!0),zje=B("REMOTE",!0),Xje=B("RENAME",!0),Qje=B("REPEAT",!0),e3e=B("REPEATABLE",!0),t3e=B("REPLACE",!0),r3e=B("REPLICA",!0),i3e=B("REPLICATION",!0),s3e=B("RESERVATION",!0),n3e=B("RESET",!0),a3e=B("RESPECT",!0),o3e=B("RESTART",!0),l3e=B("RESTRICT",!0),d3e=B("RESTRICTED",!0),u3e=B("RESTRICTIVE",!0),c3e=B("RETURN",!0),p3e=B("RETURNING",!0),f3e=B("RETURNS",!0),h3e=B("REVOKE",!0),y3e=B("RIGHT",!0),m3e=B("RLIKE",!0),v3e=B("ROLE",!0),E3e=B("ROLLBACK",!0),T3e=B("ROLLUP",!0),I3e=B("ROUTINE",!0),A3e=B("ROUTINES",!0),b3e=B("ROW",!0),w3e=B("ROW_FORMAT",!0),R3e=B("ROW_NUMBER",!0),_3e=B("ROWID",!0),g3e=B("ROWS",!0),D3e=B("RULE",!0),O3e=B("SAFE",!0),C3e=B("SAFE_CAST",!0),$3e=B("SAFE_OFFSET",!0),P3e=B("SAFE_ORDINAL",!0),N3e=B("SATURDAY",!0),V3e=B("SAVEPOINT",!0),L3e=B("SCHEMA",!0),M3e=B("SEARCH",!0),B3e=B("SECOND",!0),U3e=B("SECOND_MICROSECOND",!0),j3e=B("SECONDARY_ENGINE_ATTRIBUTE",!0),x3e=B("SECURITY",!0),F3e=B("SELECT",!0),G3e=B("SEQUENCE",!0),S3e=B("SEQUENCES",!0),K3e=B("SERIALIZABLE",!0),k3e=B("SERVER",!0),q3e=B("SESSION",!0),Z3e=B("SESSION_USER",!0),J3e=B("SET",!0),H3e=B("SETS",!0),W3e=B("SHARE",!0),Y3e=B("SIMILAR",!0),z3e=B("SIMPLE",!0),X3e=B("SKIP",!0),Q3e=B("SMALLINT",!0),exe=B("SNAPSHOT",!0),txe=B("SOME",!0),rxe=B("SOUNDS",!0),ixe=B("SOURCE",!0),sxe=B("SPATIAL",!0),nxe=B("SQL_BIG_RESULT",!0),axe=B("SQL_BUFFER_RESULT",!0),oxe=B("SQL_CACHE",!0),lxe=B("SQL_CALC_FOUND_ROWS",!0),dxe=B("SQL_NO_CACHE",!0),uxe=B("SQL_SMALL_RESULT",!0),cxe=B("STABLE",!0),pxe=B("START",!0),fxe=B("STARTING",!0),hxe=B("STATEMENT",!0),yxe=B("STATISTICS",!0),mxe=B("STATS_AUTO_RECALC",!0),vxe=B("STATS_PERSISTENT",!0),Exe=B("STATS_SAMPLE_PAGES",!0),Txe=B("STORAGE",!0),Ixe=B("STORED",!0),Axe=B("STRAIGHT_JOIN",!0),bxe=B("STRICT",!0),wxe=B("STRING",!0),Rxe=B("STRUCT",!0),_xe=B("SUNDAY",!0),gxe=B("SUPERUSER",!0),Dxe=B("SUPPORT",!0),Oxe=B("SYMMETRIC",!0),Cxe=B("SYSID",!0),$xe=B("SYSTEM",!0),Pxe=B("SYSTEM_TIME",!0),Nxe=B("SYSTEM_USER",!0),Vxe=B("TABLE",!0),Lxe=B("TABLES",!0),Mxe=B("TABLESAMPLE",!0),Bxe=B("TABLESPACE",!0),Uxe=B("TARGET",!0),jxe=B("TEMP",!0),xxe=B("TEMPORARY",!0),Fxe=B("TERMINATED",!0),Gxe=B("TEXT",!0),Sxe=B("THEN",!0),Kxe=B("THURSDAY",!0),kxe=B("TIES",!0),qxe=B("TIME",!0),Zxe=B("TIMESTAMP",!0),Jxe=B("TIMEZONE",!0),Hxe=B("TIMEZONE_HOUR",!0),Wxe=B("TIMEZONE_MINUTE",!0),Yxe=B("TINYBLOB",!0),zxe=B("TINYINT",!0),Xxe=B("TINYTEXT",!0),Qxe=B("TO",!0),eFe=B("TRANSACTION",!0),tFe=B("TRANSFORM",!0),rFe=B("TRIGGER",!0),iFe=B("TRUE",!0),sFe=B("TRUNCATE",!0),nFe=B("TUESDAY",!0),aFe=B("TYPE",!0),oFe=B("UESCAPE",!0),lFe=B("UNBOUNDED",!0),dFe=B("UNCOMMITTED",!0),uFe=B("UNION",!0),cFe=B("UNIQUE",!0),pFe=B("UNKNOWN",!0),fFe=B("UNLOGGED",!0),hFe=B("UNNEST",!0),yFe=B("UNPIVOT",!0),mFe=B("UNSAFE",!0),vFe=B("UNTIL",!0),EFe=B("UPDATE",!0),TFe=B("USAGE",!0),IFe=B("USER",!0),AFe=B("USING",!0),bFe=B("VACUUM",!0),wFe=B("VALID",!0),RFe=B("VALIDATE",!0),_Fe=B("VALUE",!0),gFe=B("VALUES",!0),DFe=B("VARBINARY",!0),OFe=B("VARCHAR",!0),CFe=B("VARIADIC",!0),$Fe=B("VARYING",!0),PFe=B("VECTOR",!0),NFe=B("VERBOSE",!0),VFe=B("VIEW",!0),LFe=B("VIRTUAL",!0),MFe=B("VISIBLE",!0),BFe=B("VOLATILE",!0),UFe=B("WEDNESDAY",!0),jFe=B("WEEK",!0),xFe=B("WHEN",!0),FFe=B("WHERE",!0),GFe=B("WHILE",!0),SFe=B("WINDOW",!0),KFe=B("WITH",!0),kFe=B("WITHOUT",!0),qFe=B("WORK",!0),ZFe=B("WRAPPER",!0),JFe=B("WRITE",!0),HFe=B("XOR",!0),WFe=B("YEAR",!0),YFe=B("YEAR_MONTH",!0),zFe=B("ZONE",!0),XFe=function(t,n,s){return(0,Hn.surrounding)(t,n,s)},QFe=function(t,n){return(0,O.loc)({type:"program",statements:(0,vA.readCommaSepList)(t,n)})},eGe=function(){return(0,fi.isAcceptUnsupportedGrammar)()},tGe=function(t){return t},rGe=function(t){return t},iGe=function(t){return t},sGe=function(t){return t},nGe=function(t){return t},aGe=function(t){return t},oGe=function(t){return t},lGe=function(t){return t},dGe=function(t){return t},uGe=function(t){return t},cGe=function(t){return t},pGe=function(t){return t},fGe=function(t){return t},hGe=function(t){return t},yGe=function(){return(0,O.loc)({type:"empty"})},mGe=function(t,n){return(0,O.loc)({type:"program",statements:(0,vA.readCommaSepList)(t,n)})},vGe=function(){return{type:"program",statements:[]}},EGe=function(t){return t},TGe=function(t){return t},IGe=function(t){return t},AGe=function(t,n){return(0,M.createCompoundSelectStmtChain)(t,n)},bGe=function(t){return(0,P.read)(t)},wGe=function(t,n){return(0,M.createCompoundSelectStmtChain)(t,n)},RGe=function(t){return(0,P.read)(t)},_Ge=function(t,n,s){return(0,O.loc)({type:"select_stmt",clauses:[(0,P.read)(t),(0,P.read)(n),...s.map(P.read)].filter(xd.identity)})},gGe=function(t){return t},DGe=function(t){return t},OGe=function(t,n){return(0,O.loc)({type:"table_clause",tableKw:(0,P.read)(t),table:n})},CGe=function(t){return(0,O.loc)({type:"select_stmt",clauses:[t]})},$Ge=function(t,n,s){return(0,O.loc)({type:"with_clause",withKw:t,recursiveKw:(0,P.read)(n),tables:(0,P.read)(s)})},PGe=function(t,n,s,l,c,h,T){return(0,O.loc)({type:"common_table_expr",table:t,columns:(0,P.read)(n),asKw:(0,P.read)(s),materializedKw:(0,P.read)(l),expr:(0,P.read)(c),search:(0,P.read)(h),cycle:(0,P.read)(T)})},NGe=function(t){return(0,P.read)(t)},VGe=function(t){return t},LGe=function(t,n,s,l){return(0,O.loc)({type:"cte_search_clause",searchKw:(0,P.read)(t),columns:n,setKw:(0,P.read)(s),resultColumn:l})},MGe=function(t,n,s,l,c,h,T){return(0,O.loc)({type:"cte_cycle_clause",cycleKw:(0,P.read)(t),columns:n,setKw:(0,P.read)(s),resultColumn:l,values:(0,P.read)(c),usingKw:(0,P.read)(h),pathColumn:T})},BGe=function(t,n,s,l){return(0,O.loc)({type:"cte_cycle_clause_values",toKw:(0,P.read)(t),markValue:n,defaultKw:(0,P.read)(s),defaultValue:l})},UGe=function(t){return t},jGe=function(t){return t},xGe=function(t){return t},FGe=function(t){return t},GGe=function(t){return t},SGe=function(t){return t},KGe=function(t){return t},kGe=function(t,n,s){return(0,O.loc)({type:"select_clause",selectKw:t,modifiers:n.map(P.read),columns:(0,P.read)(s)})},qGe=function(t,n,s){return(0,O.loc)({type:"select_clause",selectKw:t,modifiers:n.map(P.read),columns:(0,P.read)(s)})},ZGe=function(t,n,s){return(0,O.loc)({type:"select_clause",selectKw:t,modifiers:n.map(P.read),columns:(0,P.read)(s)})},JGe=function(t,n,s){return(0,O.loc)({type:"select_clause",selectKw:t,modifiers:n.map(P.read),columns:(0,P.read)(s)})},HGe=function(t){return(0,O.loc)({type:"select_all",allKw:t})},WGe=function(t,n){return(0,O.loc)({type:"select_distinct_on",distinctOnKw:(0,P.read)(t),columns:n})},YGe=function(t){return(0,O.loc)({type:"select_distinct",distinctKw:t})},zGe=function(t){return(0,O.loc)({type:"select_distinct",distinctKw:t})},XGe=function(t){return(0,O.loc)({type:"select_as_struct",asStructKw:(0,P.read)(t)})},QGe=function(t){return(0,O.loc)({type:"select_as_value",asValueKw:(0,P.read)(t)})},e6e=function(t){return t},t6e=function(t){return(0,O.loc)({type:"mysql_modifier",modifierKw:t})},r6e=function(t,n,s){return(0,O.loc)((0,M.createListExpr)(t,s?[...n,s]:n))},i6e=function(t,n,s){return(0,O.loc)({type:"except_columns",expr:t,exceptKw:(0,P.read)(n),columns:s})},s6e=function(t,n,s){return(0,O.loc)({type:"replace_columns",expr:t,replaceKw:(0,P.read)(n),columns:s})},n6e=function(t,n){return(0,O.loc)((0,M.createAlias)(t,n))},a6e=function(t,n){return(0,O.loc)({type:"member_expr",object:(0,P.read)(t),property:(0,P.read)(n)})},o6e=function(){return(0,O.loc)({type:"all_columns"})},l6e=function(t,n,s){return{asKw:t,alias:(0,P.read)(n),columnAliases:(0,P.read)(s)}},d6e=function(t){return{alias:t,columnAliases:void 0}},u6e=function(t,n){return{alias:t,columnAliases:(0,P.read)(n)}},c6e=function(t){return t},p6e=function(t,n){return(0,O.loc)({type:"from_clause",fromKw:(0,P.read)(t),expr:n})},f6e=function(t,n){return(0,O.loc)({type:"from_clause",fromKw:(0,P.read)(t),expr:n})},h6e=function(t){return(0,O.loc)({type:"dual_table",dualKw:t})},y6e=function(t,n){return(0,M.createJoinExprChain)(t,n)},m6e=function(t,n,s,l){return c=>({type:"join_expr",left:(0,Hn.trailing)(c,t),operator:n,right:(0,P.read)(s),specification:(0,P.read)(l)})},v6e=function(t,n,s){return(0,O.loc)({type:"indexed_table",table:(0,P.read)(t),indexedByKw:(0,P.read)(n),index:(0,P.read)(s)})},E6e=function(t,n){return(0,O.loc)({type:"not_indexed_table",table:(0,P.read)(t),notIndexedKw:(0,P.read)(n)})},T6e=function(t){return(0,O.loc)({type:"table_with_inheritance",table:(0,P.read)(t)})},I6e=function(t,n){return(0,O.loc)({type:"table_without_inheritance",onlyKw:(0,P.read)(t),table:(0,P.read)(n)})},A6e=function(t,n,s){return(0,O.loc)({type:"func_call_with_column_definitions",funcCall:t,asKw:(0,P.read)(n),columns:s})},b6e=function(t){return t.type==="alias"},w6e=function(t,n){return(0,O.loc)({type:"func_call_with_column_definitions",funcCall:t,asKw:void 0,columns:(0,P.read)(n)})},R6e=function(t,n){return(0,O.loc)({type:"with_ordinality_expr",expr:t,withOrdinalityKw:(0,P.read)(n)})},_6e=function(t,n){return(0,O.loc)({type:"lateral_derived_table",lateralKw:(0,P.read)(t),expr:n})},g6e=function(t,n){return(0,O.loc)({type:"lateral_derived_table",lateralKw:(0,P.read)(t),expr:n})},D6e=function(t,n){return(0,O.loc)({type:"rows_from_expr",rowsFromKw:(0,P.read)(t),expr:n})},O6e=function(t,n,s){return(0,O.loc)({type:"partitioned_table",table:(0,P.read)(t),partitionKw:(0,P.read)(n),partitions:s})},C6e=function(t){return t},$6e=function(t,n){return[(0,P.read)(t),...n instanceof Array?n:[n]]},P6e=function(t){return(0,P.read)(t)},N6e=function(t){return(0,P.read)(t)},V6e=function(t){return t},L6e=function(t,n){return(0,O.loc)({type:"join_using_specification",usingKw:t,expr:(0,P.read)(n)})},M6e=function(t,n){return(0,O.loc)({type:"join_on_specification",onKw:t,expr:(0,P.read)(n)})},B6e=function(t,n){return(0,O.loc)({type:"unnest_with_offset_expr",unnest:t,withOffsetKw:(0,P.read)(n)})},U6e=function(t){return t},j6e=function(t,n){return(0,O.loc)({type:"unnest_expr",unnestKw:(0,P.read)(t),expr:n})},x6e=function(t,n,s){return l=>({type:"pivot_expr",left:(0,Hn.trailing)(l,t),pivotKw:(0,P.read)(n),args:s})},F6e=function(t,n,s,l,c){return(0,O.loc)({type:"pivot_for_in",aggregations:(0,P.read)(t),forKw:(0,P.read)(n),inputColumn:(0,P.read)(s),inKw:(0,P.read)(l),pivotColumns:c})},G6e=function(t,n,s,l){return c=>({type:"unpivot_expr",left:(0,Hn.trailing)(c,t),unpivotKw:(0,P.read)(n),nullHandlingKw:(0,P.read)(s),args:l})},S6e=function(t,n,s,l,c){return(0,O.loc)({type:"unpivot_for_in",valuesColumn:(0,P.read)(t),forKw:(0,P.read)(n),nameColumn:(0,P.read)(s),inKw:(0,P.read)(l),unpivotColumns:c})},K6e=function(t,n,s,l,c){return h=>({type:"tablesample_expr",left:(0,Hn.trailing)(h,t),tablesampleKw:(0,P.read)(n),method:(0,P.read)(s),args:l,repeatable:(0,P.read)(c)})},k6e=function(t){return(0,O.loc)({type:"tablesample_method",methodKw:(0,P.read)(t)})},q6e=function(t,n){return(0,O.loc)({type:"tablesample_percent",percent:t,percentKw:(0,P.read)(n)})},Z6e=function(t,n){return(0,O.loc)({type:"tablesample_repeatable",repeatableKw:(0,P.read)(t),seed:n})},J6e=function(t,n,s){return l=>({type:"for_system_time_as_of_expr",left:(0,Hn.trailing)(l,t),forSystemTimeAsOfKw:(0,P.read)(n),expr:s})},H6e=function(t,n){return(0,O.loc)({type:"where_clause",whereKw:t,expr:(0,P.read)(n)})},W6e=function(t,n,s,l){return(0,O.loc)({type:"group_by_clause",groupByKw:(0,P.read)(t),distinctKw:(0,P.read)(n),columns:s,withRollupKw:(0,P.read)(l)})},Y6e=function(t){return t},z6e=function(t,n){return(0,O.loc)({type:"group_by_rollup",rollupKw:(0,P.read)(t),columns:n})},X6e=function(t,n){return(0,O.loc)({type:"group_by_cube",cubeKw:(0,P.read)(t),columns:n})},Q6e=function(t,n){return(0,O.loc)({type:"group_by_grouping_sets",groupingSetsKw:(0,P.read)(t),columns:n})},e5e=function(t){return(0,O.loc)({type:"group_by_all",allKw:(0,P.read)(t)})},t5e=function(t,n){return(0,O.loc)({type:"having_clause",havingKw:t,expr:(0,P.read)(n)})},r5e=function(t,n){return(0,O.loc)({type:"partition_by_clause",partitionByKw:(0,P.read)(t),specifications:n})},i5e=function(t,n){return(0,O.loc)({type:"cluster_by_clause",clusterByKw:(0,P.read)(t),columns:n})},s5e=function(t,n,s){return(0,O.loc)({type:"order_by_clause",orderByKw:(0,P.read)(t),specifications:n,withRollupKw:(0,P.read)(s)})},n5e=function(t,n,s){return!n&&!s&&t.type==="identifier"?t:(0,O.loc)(Object.assign({type:"sort_specification",expr:(0,P.read)(t),direction:(0,P.read)(n)},s?{nullHandlingKw:(0,P.read)(s)}:{}))},a5e=function(t,n,s,l){return(0,O.loc)({type:"index_specification",expr:t,opclass:(0,P.read)(n),direction:(0,P.read)(s),nullHandlingKw:(0,P.read)(l)})},o5e=function(t){return(0,O.loc)({type:"sort_direction_asc",ascKw:t})},l5e=function(t){return(0,O.loc)({type:"sort_direction_desc",descKw:t})},d5e=function(t,n){return(0,O.loc)({type:"sort_direction_using_operator",usingKw:(0,P.read)(t),operator:(0,P.read)(n)})},u5e=function(t){return(0,P.read)(t)},c5e=function(t,n){return(0,O.loc)({type:"limit_clause",limitKw:t,count:(0,P.read)(n)})},p5e=function(t,n,s,l,c){return(0,O.loc)({type:"limit_clause",limitKw:t,count:(0,P.read)(n),offsetKw:s,offset:(0,P.read)(l),rowsExamined:(0,P.read)(c)})},f5e=function(t,n,s,l){return(0,O.loc)({type:"limit_clause",limitKw:t,offset:(0,P.read)(n),count:(0,P.read)(s),rowsExamined:(0,P.read)(l)})},h5e=function(t,n,s){return(0,O.loc)({type:"limit_clause",limitKw:t,count:(0,P.read)(n),rowsExamined:(0,P.read)(s)})},y5e=function(t,n){return(0,O.loc)({type:"limit_clause",limitKw:t,rowsExamined:(0,P.read)(n)})},m5e=function(t){return(0,O.loc)({type:"limit_all",allKw:t})},v5e=function(t,n){return(0,O.loc)({type:"limit_rows_examined",rowsExaminedKw:(0,P.read)(t),count:n})},E5e=function(t,n,s){return(0,O.loc)({type:"offset_clause",offsetKw:(0,P.read)(t),offset:(0,P.read)(n),rowsKw:(0,P.read)(s)})},T5e=function(t,n,s,l){return(0,O.loc)({type:"fetch_clause",fetchKw:(0,P.read)(t),count:(0,P.read)(n),rowsKw:(0,P.read)(s),withTiesKw:(0,P.read)(l)})},I5e=function(t,n){return(0,O.loc)({type:"window_clause",windowKw:(0,P.read)(t),namedWindows:n})},A5e=function(t,n,s){return(0,O.loc)({type:"named_window",name:(0,P.read)(t),asKw:(0,P.read)(n),window:s})},b5e=function(t,n,s,l){return(0,O.loc)({type:"window_definition",baseWindowName:(0,P.read)(t),partitionBy:(0,P.read)(n),orderBy:(0,P.read)(s),frame:(0,P.read)(l)})},w5e=function(t){return["PARTITION","ROWS","RANGE"].includes(t.name.toUpperCase())},R5e=function(t){return t},_5e=function(t,n,s){return(0,O.loc)({type:"frame_clause",unitKw:t,extent:(0,P.read)(n),exclusion:(0,P.read)(s)})},g5e=function(t){return t},D5e=function(t,n,s,l){return(0,O.loc)({type:"frame_between",betweenKw:t,begin:(0,P.read)(n),andKw:s,end:(0,P.read)(l)})},O5e=function(t){return(0,O.loc)({type:"frame_bound_current_row",currentRowKw:(0,P.read)(t)})},C5e=function(t,n){return(0,O.loc)({type:"frame_bound_preceding",expr:(0,P.read)(t),precedingKw:n})},$5e=function(t,n){return(0,O.loc)({type:"frame_bound_following",expr:(0,P.read)(t),followingKw:n})},P5e=function(t){return(0,O.loc)({type:"frame_unbounded",unboundedKw:t})},N5e=function(t,n){return(0,O.loc)({type:"frame_exclusion",excludeKw:(0,P.read)(t),kindKw:n})},V5e=function(t){return(0,P.read)(t)},L5e=function(t,n){return(0,O.loc)({type:"qualify_clause",qualifyKw:t,expr:(0,P.read)(n)})},M5e=function(t,n){return(0,O.loc)({type:"returning_clause",returningKw:t,columns:(0,P.read)(n)})},B5e=function(t,n){return(0,O.loc)({type:"where_current_of_clause",whereCurrentOfKw:(0,P.read)(t),cursor:n})},U5e=function(t,n,s,l){return(0,O.loc)({type:"into_table_clause",intoKw:(0,P.read)(t),kind:(0,P.read)(n),tableKw:(0,P.read)(s),name:l})},j5e=function(t,n){return(0,O.loc)({type:"into_variables_clause",intoKw:(0,P.read)(t),variables:n})},x5e=function(t,n){return(0,O.loc)({type:"into_dumpfile_clause",intoDumpfileKw:(0,P.read)(t),filename:(0,P.read)(n)})},F5e=function(t,n,s,l,c){return(0,O.loc)({type:"into_outfile_clause",intoOutfileKw:(0,P.read)(t),filename:(0,P.read)(n),charset:(0,P.read)(s),fields:(0,P.read)(l),lines:(0,P.read)(c)})},G5e=function(t,n){return(0,O.loc)({type:"outfile_option_character_set",characterSetKw:(0,P.read)(t),value:n})},S5e=function(t,n){return(0,O.loc)({type:"outfile_fields",fieldsKw:(0,P.read)(t),options:n.map(P.read)})},K5e=function(t,n){return(0,O.loc)({type:"outfile_lines",linesKw:(0,P.read)(t),options:n.map(P.read)})},k5e=function(t,n){return(0,O.loc)({type:"outfile_option_terminated_by",terminatedByKw:(0,P.read)(t),value:n})},q5e=function(t,n,s){return(0,O.loc)({type:"outfile_option_enclosed_by",optionallyKw:(0,P.read)(t),enclosedByKw:(0,P.read)(n),value:s})},Z5e=function(t,n){return(0,O.loc)({type:"outfile_option_starting_by",startingByKw:(0,P.read)(t),value:n})},J5e=function(t,n){return(0,O.loc)({type:"outfile_option_escaped_by",escapedByKw:(0,P.read)(t),value:n})},H5e=function(t,n,s,l){return(0,O.loc)({type:"for_clause",forKw:(0,P.read)(t),lockStrengthKw:(0,P.read)(n),tables:(0,P.read)(s),waitingKw:(0,P.read)(l)})},W5e=function(t,n){return(0,O.loc)({type:"for_clause_tables",ofKw:(0,P.read)(t),tables:n})},Y5e=function(t){return(0,O.loc)({type:"lock_in_share_mode_clause",lockInShareModeKw:(0,P.read)(t)})},z5e=function(t,n,s,l,c,h,T,_){return(0,O.loc)({type:"insert_stmt",clauses:[(0,P.read)(t),n,(0,P.read)(s),(0,P.read)(l),(0,P.read)(c),(0,P.read)(h),...T.map(P.read),(0,P.read)(_)].filter(xd.identity)})},X5e=function(t,n,s,l,c,h){return(0,O.loc)({type:"insert_clause",insertKw:t,modifiers:n.map(P.read),orAction:(0,P.read)(s),intoKw:(0,P.read)(l),table:(0,P.read)(c),columns:(0,P.read)(h)})},Q5e=function(t){return(0,O.loc)({type:"mysql_modifier",modifierKw:t})},eSe=function(t,n){return(0,O.loc)({type:"or_alternate_action",orKw:(0,P.read)(t),actionKw:(0,P.read)(n)})},tSe=function(t,n){return(0,O.loc)((0,M.createAlias)(t,n))},rSe=function(t){return(0,O.loc)({type:"overriding_clause",overridingKw:(0,P.read)(t)})},iSe=function(t){return t},sSe=function(t,n){return(0,O.loc)({type:"values_clause",valuesKw:t,values:(0,P.read)(n)})},nSe=function(t){return t},aSe=function(t){return t},oSe=function(t){return t},lSe=function(t){return t},dSe=function(t,n){return(0,O.loc)({type:"row_constructor",rowKw:(0,P.read)(t),row:n})},uSe=function(t,n){return(0,O.loc)({type:"array_constructor",arrayKw:(0,P.read)(t),expr:n})},cSe=function(t){return(0,O.loc)({type:"default",defaultKw:t})},pSe=function(t){return(0,O.loc)({type:"default_values",defaultValuesKw:(0,P.read)(t)})},fSe=function(t,n,s,l,c){return(0,O.loc)({type:"upsert_clause",onConflictKw:(0,P.read)(t),conflictTarget:(0,P.read)(n),where:(0,P.read)(s),doKw:l,action:(0,P.read)(c)})},hSe=function(t,n){return(0,O.loc)({type:"conflict_target_on_constraint",onConstraintKw:(0,P.read)(t),constraint:n})},ySe=function(t){return(0,O.loc)({type:"upsert_action_nothing",nothingKw:t})},mSe=function(t,n,s){return(0,O.loc)({type:"upsert_action_update",updateKw:t,set:(0,P.read)(n),where:(0,P.read)(s)})},vSe=function(t,n,s){return(0,O.loc)({type:"row_alias_clause",asKw:(0,P.read)(t),rowAlias:(0,P.read)(n),columnAliases:(0,P.read)(s)})},ESe=function(t,n){return(0,O.loc)({type:"on_duplicate_key_update_clause",onDuplicateKeyUpdateKw:(0,P.read)(t),assignments:n})},TSe=function(t,n,s,l){return(0,O.loc)({type:"update_stmt",clauses:[(0,P.read)(t),(0,P.read)(n),(0,P.read)(s),...l.map(P.read)].filter(xd.identity)})},ISe=function(t,n,s,l){return(0,O.loc)({type:"update_clause",updateKw:(0,P.read)(t),modifiers:n.map(P.read),orAction:(0,P.read)(s),tables:l})},ASe=function(t,n){return(0,O.loc)({type:"set_clause",setKw:(0,P.read)(t),assignments:n})},bSe=function(t){return t},wSe=function(t,n){return(0,O.loc)({type:"column_assignment",column:(0,P.read)(t),expr:(0,P.read)(n)})},RSe=function(t){return t},_Se=function(t,n,s){return(0,O.loc)({type:"delete_stmt",clauses:[(0,P.read)(t),(0,P.read)(n),...s.map(P.read)].filter(xd.identity)})},gSe=function(t,n,s,l){return(0,O.loc)({type:"delete_clause",deleteKw:(0,P.read)(t),modifiers:n.map(P.read),fromKw:(0,P.read)(s),tables:l})},DSe=function(t){return(0,O.loc)({type:"mysql_modifier",modifierKw:t})},OSe=function(t){return t},CSe=function(t){return t},$Se=function(t){return t},PSe=function(t,n,s,l,c){return(0,O.loc)({type:"truncate_stmt",truncateKw:(0,P.read)(t),tableKw:(0,P.read)(n),tables:s,restartOrContinueKw:(0,P.read)(l),behaviorKw:(0,P.read)(c)})},NSe=function(t,n,s){return(0,O.loc)({type:"merge_stmt",clauses:[(0,P.read)(t),(0,P.read)(n),...s.map(P.read)].filter(xd.identity)})},VSe=function(t,n,s,l,c,h,T){return(0,O.loc)({type:"merge_clause",mergeKw:(0,P.read)(t),intoKw:(0,P.read)(n),target:(0,P.read)(s),usingKw:(0,P.read)(l),source:(0,P.read)(c),onKw:(0,P.read)(h),condition:T})},LSe=function(t,n,s,l,c,h){return(0,O.loc)({type:"merge_when_clause",whenKw:(0,P.read)(t),matchedKw:(0,P.read)(n),byKw:(0,P.read)(s),condition:(0,P.read)(l),thenKw:(0,P.read)(c),action:h})},MSe=function(t,n){return(0,O.loc)({type:"merge_when_condition",andKw:(0,P.read)(t),expr:n})},BSe=function(t){return t},USe=function(t){return(0,O.loc)({type:"merge_action_do_nothing",doNothingKw:(0,P.read)(t)})},jSe=function(t){return(0,O.loc)({type:"merge_action_delete",deleteKw:t})},xSe=function(t,n){return(0,O.loc)({type:"merge_action_update",updateKw:(0,P.read)(t),set:n})},FSe=function(t,n,s,l){return(0,O.loc)({type:"merge_action_insert",insertKw:(0,P.read)(t),columns:(0,P.read)(n),clauses:[(0,P.read)(s),l].filter(xd.identity)})},GSe=function(t){return(0,O.loc)({type:"merge_action_insert_row_clause",rowKw:t})},SSe=function(t,n,s,l,c,h,T,_){return(0,O.loc)({type:"create_view_stmt",createKw:t,orReplaceKw:(0,P.read)(n),kinds:s.map(P.read),viewKw:(0,P.read)(l),ifNotExistsKw:(0,P.read)(c),name:(0,P.read)(h),columns:(0,P.read)(T),clauses:_.map(P.read)})},KSe=function(t){return(0,O.loc)({type:"relation_kind",kindKw:t})},kSe=function(t){return(0,O.loc)({type:"relation_kind",kindKw:(0,P.read)(t)})},qSe=function(t){return(0,O.loc)({type:"relation_kind",kindKw:t})},ZSe=function(t,n){return(0,O.loc)({type:"column_definition",name:t,constraints:n.map(P.read)})},JSe=function(t){return t},HSe=function(t){return t},WSe=function(t,n,s){return(0,O.loc)({type:"with_check_option_clause",withKw:(0,P.read)(t),levelKw:(0,P.read)(n),checkOptionKw:(0,P.read)(s)})},YSe=function(t,n){return(0,O.loc)({type:"as_replica_of_clause",asReplicaOfKw:(0,P.read)(t),view:n})},zSe=function(t,n,s,l,c,h){return(0,O.loc)({type:"drop_view_stmt",dropKw:(0,P.read)(t),kind:(0,P.read)(n),viewKw:(0,P.read)(s),ifExistsKw:(0,P.read)(l),views:(0,P.read)(c),behaviorKw:(0,P.read)(h)})},XSe=function(t,n,s,l,c,h,T){return(0,O.loc)({type:"alter_view_stmt",alterKw:t,kind:(0,P.read)(n),viewKw:(0,P.read)(s),ifExistsKw:(0,P.read)(l),name:(0,P.read)(c),columns:(0,P.read)(h),actions:(0,P.read)(T)})},QSe=function(t){return t},eKe=function(t){return t},tKe=function(t){return t},rKe=function(t,n,s,l){return(0,O.loc)({type:"refresh_materialized_view_stmt",refreshMaterializedViewKw:(0,P.read)(t),concurrentlyKw:(0,P.read)(n),name:s,clauses:l.map(P.read)})},iKe=function(t,n,s,l,c,h,T,_,x,W){return(0,O.loc)({type:"create_index_stmt",createKw:(0,P.read)(t),orReplaceKw:(0,P.read)(n),indexTypeKw:(0,P.read)(s),indexKw:(0,P.read)(l),ifNotExistsKw:(0,P.read)(c),name:(0,P.read)(h),onKw:(0,P.read)(T),table:(0,P.read)(_),columns:x,clauses:W.map(P.read)})},sKe=function(t,n,s,l,c,h,T,_,x,W,pe){return(0,O.loc)({type:"create_index_stmt",createKw:(0,P.read)(t),indexTypeKw:(0,P.read)(n),indexKw:(0,P.read)(s),concurrentlyKw:(0,P.read)(l),ifNotExistsKw:(0,P.read)(c),name:(0,P.read)(h),onKw:(0,P.read)(T),table:(0,P.read)(_),using:(0,P.read)(x),columns:W,clauses:pe.map(P.read)})},nKe=function(t){return t},aKe=function(t){return t},oKe=function(t){return t},lKe=function(t){return t},dKe=function(t){return t},uKe=function(t){return t},cKe=function(t){return t},pKe=function(t){return t},fKe=function(t){return(0,O.loc)({type:"verbose_all_columns",allColumnsKw:(0,P.read)(t)})},hKe=function(t,n){return(0,O.loc)({type:"index_include_clause",includeKw:(0,P.read)(t),columns:n})},yKe=function(t){return(0,O.loc)({type:"index_nulls_distinct_clause",nullsDistinctKw:(0,P.read)(t)})},mKe=function(t){return(0,O.loc)({type:"index_nulls_not_distinct_clause",nullsNotDistinctKw:(0,P.read)(t)})},vKe=function(t,n,s,l,c,h){return(0,O.loc)({type:"drop_index_stmt",dropKw:(0,P.read)(t),indexKw:(0,P.read)(n),concurrentlyKw:(0,P.read)(s),ifExistsKw:(0,P.read)(l),indexes:(0,P.read)(c),behaviorKw:(0,P.read)(h)})},EKe=function(t,n,s,l,c,h,T){return(0,O.loc)({type:"drop_index_stmt",dropKw:(0,P.read)(t),indexTypeKw:(0,P.read)(n),indexKw:(0,P.read)(s),ifExistsKw:(0,P.read)(l),indexes:(0,P.read)(c),onKw:(0,P.read)(h),table:T})},TKe=function(t,n,s,l,c){return(0,O.loc)({type:"alter_index_stmt",alterKw:(0,P.read)(t),indexKw:(0,P.read)(n),ifExistsKw:(0,P.read)(s),index:l,action:(0,P.read)(c)})},IKe=function(t,n,s,l,c){return(0,O.loc)({type:"alter_index_all_in_tablespace_stmt",alterIndexKw:(0,P.read)(t),allInTablespaceKw:(0,P.read)(n),tablespace:(0,P.read)(s),ownedBy:(0,P.read)(l),action:c})},AKe=function(t,n){return(0,O.loc)({type:"reindex_stmt",reindexKw:t,name:(0,P.read)(n)})},bKe=function(t,n,s,l,c){return(0,O.loc)({type:"reindex_stmt",reindexKw:t,options:(0,P.read)(n),targetKw:(0,P.read)(s),concurrentlyKw:(0,P.read)(l),name:(0,P.read)(c)})},wKe=function(t,n){return(0,O.loc)({type:"reindex_option_concurrently",concurrentlyKw:(0,P.read)(t),value:(0,P.read)(n)})},RKe=function(t,n){return(0,O.loc)({type:"reindex_option_tablespace",tablespaceKw:(0,P.read)(t),name:n})},_Ke=function(t,n){return(0,O.loc)({type:"reindex_option_verbose",verboseKw:t,value:(0,P.read)(n)})},gKe=function(t,n,s,l,c,h,T,_,x,W,pe){return(0,O.loc)({type:"create_table_stmt",createKw:t,orReplaceKw:(0,P.read)(n),kind:(0,P.read)(s),tableKw:(0,P.read)(l),ifNotExistsKw:(0,P.read)(c),name:(0,P.read)(h),partitionOf:(0,P.read)(T),ofType:(0,P.read)(_),columns:(0,P.read)(x),options:(0,P.read)(W),clauses:pe.map(P.read)})},DKe=function(t){return(0,O.loc)({type:"relation_kind",kindKw:t})},OKe=function(t){return(0,O.loc)({type:"relation_kind",kindKw:(0,P.read)(t)})},CKe=function(t){return(0,O.loc)({type:"relation_kind",kindKw:t})},$Ke=function(t){return(0,O.loc)({type:"relation_kind",kindKw:t})},PKe=function(t){return(0,O.loc)({type:"relation_kind",kindKw:t})},NKe=function(t){return(0,P.read)(t)},VKe=function(t){return t},LKe=function(t){return t},MKe=function(t,n,s,l){return(0,O.loc)({type:"column_definition",name:t,dataType:(0,P.read)(n),withOptionsKw:(0,P.read)(s),constraints:l.map(P.read)})},BKe=function(t,n){return(0,O.loc)({type:"create_table_partition_of_clause",partitionOfKw:(0,P.read)(t),table:n})},UKe=function(t,n){return(0,O.loc)({type:"create_table_of_type_clause",ofKw:(0,P.read)(t),typeName:n})},jKe=function(t){return t},xKe=function(t){return t},FKe=function(t){return t},GKe=function(t){return t},SKe=function(t,n,s){return(0,O.loc)({type:"create_table_like_clause",likeKw:(0,P.read)(t),name:n,options:s.map(P.read)})},KKe=function(t,n){return(0,O.loc)({type:"table_like_option",includingOrExcludingKw:(0,P.read)(t),optionKw:n})},kKe=function(t,n){return(0,O.loc)({type:"create_table_copy_clause",copyKw:(0,P.read)(t),name:n})},qKe=function(t,n){return(0,O.loc)({type:"create_table_clone_clause",cloneKw:(0,P.read)(t),table:n})},ZKe=function(t,n,s){return(0,O.loc)({type:"for_system_time_as_of_expr",left:(0,P.read)(t),forSystemTimeAsOfKw:(0,P.read)(n),expr:s})},JKe=function(t,n){return(0,O.loc)({type:"with_partition_columns_clause",withPartitionColumnsKw:(0,P.read)(t),columns:(0,P.read)(n)})},HKe=function(t,n){return(0,O.loc)({type:"create_table_using_clause",usingKw:(0,P.read)(t),module:n.type==="identifier"?{type:"func_call",name:n}:n})},WKe=function(t,n){return(0,O.loc)({type:"create_table_inherits_clause",inheritsKw:(0,P.read)(t),tables:n})},YKe=function(t,n,s){return(0,O.loc)({type:"create_table_partition_by_clause",partitionByKw:(0,P.read)(t),strategyKw:(0,P.read)(n),columns:s})},zKe=function(t,n){return(0,O.loc)({type:"create_table_partition_bound_clause",forValuesKw:(0,P.read)(t),bound:(0,P.read)(n)})},XKe=function(t,n,s,l){return(0,O.loc)({type:"partition_bound_from_to",fromKw:(0,P.read)(t),from:n,toKw:(0,P.read)(s),to:l})},QKe=function(t){return(0,O.loc)({type:"partition_bound_minvalue",minvalueKw:t})},eke=function(t){return(0,O.loc)({type:"partition_bound_maxvalue",maxvalueKw:t})},tke=function(t,n){return(0,O.loc)({type:"partition_bound_in",inKw:(0,P.read)(t),values:n})},rke=function(t,n){return(0,O.loc)({type:"partition_bound_with",withKw:(0,P.read)(t),values:n})},ike=function(t,n){return(0,O.loc)({type:"partition_bound_modulus",modulusKw:(0,P.read)(t),value:n})},ske=function(t,n){return(0,O.loc)({type:"partition_bound_remainder",remainderKw:(0,P.read)(t),value:n})},nke=function(t){return(0,O.loc)({type:"create_table_default_partition_clause",defaultKw:(0,P.read)(t)})},ake=function(t,n){return(0,O.loc)({type:"create_table_on_commit_clause",onCommitKw:(0,P.read)(t),actionKw:(0,P.read)(n)})},oke=function(t,n){return(0,O.loc)({type:"tablespace_clause",tablespaceKw:(0,P.read)(t),name:n})},lke=function(t,n){return(0,O.loc)({type:"using_access_method_clause",usingKw:(0,P.read)(t),method:n})},dke=function(t){return(0,O.loc)({type:"create_table_without_oids_clause",withoutOidsKw:(0,P.read)(t)})},uke=function(t){return(0,O.loc)({type:"with_data_clause",withDataKw:(0,P.read)(t)})},cke=function(t,n){return(0,O.loc)({type:"create_table_server_clause",serverKw:(0,P.read)(t),name:n})},pke=function(t,n){return(0,O.loc)({type:"bigquery_options",optionsKw:(0,P.read)(t),options:n})},fke=function(t,n){return(0,O.loc)({type:"binary_expr",left:(0,P.read)(t),operator:"=",right:(0,P.read)(n)})},hke=function(t,n){return(0,O.loc)({type:"bigquery_option_default_collate",defaultCollateKw:(0,P.read)(t),collation:n})},yke=function(t,n,s,l,c,h){return(0,O.loc)({type:"drop_table_stmt",dropKw:(0,P.read)(t),kind:(0,P.read)(n),tableKw:(0,P.read)(s),ifExistsKw:(0,P.read)(l),tables:c,behaviorKw:(0,P.read)(h)})},mke=function(t){return(0,P.read)(t)},vke=function(t,n,s,l){return(0,O.loc)({type:"alter_table_stmt",alterTableKw:(0,P.read)(t),ifExistsKw:(0,P.read)(n),table:(0,P.read)(s),actions:l})},Eke=function(t,n,s,l,c){return(0,O.loc)({type:"alter_table_all_in_tablespace_stmt",alterTableKw:(0,P.read)(t),allInTablespaceKw:(0,P.read)(n),tablespace:(0,P.read)(s),ownedBy:(0,P.read)(l),action:c})},Tke=function(t,n){return(0,O.loc)({type:"owned_by_clause",ownedByKw:(0,P.read)(t),owners:n})},Ike=function(t){return t},Ake=function(t){return t},bke=function(t){return t},wke=function(t){return t},Rke=function(t,n,s){return(0,O.loc)({type:"alter_action_add_column",addKw:(0,P.read)(t),ifNotExistsKw:(0,P.read)(n),column:s})},_ke=function(t,n,s,l){return(0,O.loc)({type:"alter_action_drop_column",dropKw:(0,P.read)(t),ifExistsKw:(0,P.read)(n),column:s,behaviorKw:(0,P.read)(l)})},gke=function(t,n){return(0,O.loc)({type:"alter_action_rename",renameKw:(0,P.read)(t),newName:n})},Dke=function(t){return(0,P.read)(t)},Oke=function(t){return(0,P.read)(t)},Cke=function(t){return t},$ke=function(t,n,s,l,c){return(0,O.loc)({type:"alter_action_rename_column",renameKw:(0,P.read)(t),ifExistsKw:(0,P.read)(n),oldName:(0,P.read)(s),toKw:(0,P.read)(l),newName:c})},Pke=function(t){return(0,P.read)(t)},Nke=function(t){return t},Vke=function(t,n,s,l){return(0,O.loc)({type:"alter_action_alter_column",alterKw:(0,P.read)(t),ifExistsKw:(0,P.read)(n),column:(0,P.read)(s),action:l})},Lke=function(t){return(0,P.read)(t)},Mke=function(t){return t},Bke=function(t,n){return(0,O.loc)({type:"alter_action_set_default_collate",setDefaultCollateKw:(0,P.read)(t),collation:n})},Uke=function(t,n){return(0,O.loc)({type:"alter_action_set_bigquery_options",setKw:(0,P.read)(t),options:n})},jke=function(t,n){return(0,O.loc)({type:"alter_action_set_postgresql_options",setKw:(0,P.read)(t),options:n})},xke=function(t,n){return(0,O.loc)({type:"alter_action_reset_postgresql_options",resetKw:(0,P.read)(t),options:n})},Fke=function(t,n,s){return s},Gke=function(t,n,s,l){return(0,O.loc)({type:"alter_action_add_constraint",addKw:(0,P.read)(t),name:(0,P.read)(n),constraint:s,modifiers:l.map(P.read)})},Ske=function(t,n,s){return(0,O.loc)({type:"alter_action_add_constraint_constraint_name",constraintKw:(0,P.read)(t),ifNotExistsKw:(0,P.read)(n),name:s})},Kke=function(t,n,s,l){return(0,O.loc)({type:"alter_action_drop_constraint",dropConstraintKw:(0,P.read)(t),ifExistsKw:(0,P.read)(n),constraint:s,behaviorKw:(0,P.read)(l)})},kke=function(t,n){return(0,O.loc)({type:"alter_action_drop_primary_key",dropPrimaryKeyKw:(0,P.read)(t),ifExistsKw:(0,P.read)(n)})},qke=function(t,n,s){return(0,O.loc)({type:"alter_action_alter_constraint",alterConstraintKw:(0,P.read)(t),constraint:n,modifiers:s.map(P.read)})},Zke=function(t,n,s,l){return(0,O.loc)({type:"alter_action_rename_constraint",renameConstraintKw:(0,P.read)(t),oldName:(0,P.read)(n),toKw:(0,P.read)(s),newName:l})},Jke=function(t,n){return(0,O.loc)({type:"alter_action_validate_constraint",validateConstraintKw:(0,P.read)(t),constraint:n})},Hke=function(t,n){return(0,O.loc)({type:"alter_action_owner_to",ownerToKw:(0,P.read)(t),owner:n})},Wke=function(t,n){return(0,O.loc)({type:"alter_action_set_schema",setSchemaKw:(0,P.read)(t),schema:n})},Yke=function(t,n,s){return(0,O.loc)({type:"alter_action_enable",enableKw:(0,P.read)(t),modeKw:(0,P.read)(n),item:s})},zke=function(t,n){return(0,O.loc)({type:"alter_action_disable",disableKw:(0,P.read)(t),item:n})},Xke=function(t,n){return(0,O.loc)({type:"alter_action_force",forceKw:(0,P.read)(t),item:n})},Qke=function(t,n){return(0,O.loc)({type:"alter_action_no_force",noForceKw:(0,P.read)(t),item:n})},e7e=function(t,n,s){return(0,O.loc)({type:"alter_action_set_tablespace",setTablespaceKw:(0,P.read)(t),tablespace:n,nowaitKw:(0,P.read)(s)})},t7e=function(t,n){return(0,O.loc)({type:"alter_action_set_access_method",setAccessMethodKw:(0,P.read)(t),method:n})},r7e=function(t,n){return(0,O.loc)({type:"alter_action_cluster_on",clusterOnKw:(0,P.read)(t),index:n})},i7e=function(t){return(0,O.loc)({type:"alter_action_set_without_cluster",setWithoutClusterKw:(0,P.read)(t)})},s7e=function(t){return(0,O.loc)({type:"alter_action_set_without_oids",setWithoutOidsKw:(0,P.read)(t)})},n7e=function(t){return(0,O.loc)({type:"alter_action_set_logged",setLoggedKw:(0,P.read)(t)})},a7e=function(t){return(0,O.loc)({type:"alter_action_set_unlogged",setUnloggedKw:(0,P.read)(t)})},o7e=function(t,n){return(0,O.loc)({type:"alter_action_inherit",inheritKw:(0,P.read)(t),table:n})},l7e=function(t,n){return(0,O.loc)({type:"alter_action_no_inherit",noInheritKw:(0,P.read)(t),table:n})},d7e=function(t,n){return(0,O.loc)({type:"alter_action_of_type",ofKw:(0,P.read)(t),typeName:n})},u7e=function(t){return(0,O.loc)({type:"alter_action_not_of_type",notOfKw:(0,P.read)(t)})},c7e=function(t,n){return(0,O.loc)({type:"alter_action_depends_on_extension",dependsOnExtensionKw:(0,P.read)(t),extension:n})},p7e=function(t,n){return(0,O.loc)({type:"alter_action_no_depends_on_extension",noDependsOnExtensionKw:(0,P.read)(t),extension:n})},f7e=function(t,n){return(0,O.loc)({type:"alter_action_replica_identity",replicaIdentityKw:(0,P.read)(t),identity:n})},h7e=function(t,n){return(0,O.loc)({type:"replica_identity_using_index",usingIndexKw:(0,P.read)(t),index:n})},y7e=function(t,n){return(0,O.loc)({type:"alter_action_attach_partition",attachPartitionKw:(0,P.read)(t),index:n})},m7e=function(t,n,s,l){return(0,O.loc)({type:"alter_action_add_enum_value",addValueKw:(0,P.read)(t),ifNotExistsKw:(0,P.read)(n),value:s,position:(0,P.read)(l)})},v7e=function(t,n){return(0,O.loc)({type:"alter_action_add_enum_value_position",positionKw:(0,P.read)(t),value:n})},E7e=function(t,n,s,l){return(0,O.loc)({type:"alter_action_rename_enum_value",renameValueKw:(0,P.read)(t),oldValue:n,toKw:(0,P.read)(s),newValue:l})},T7e=function(t,n,s,l,c){return(0,O.loc)({type:"alter_action_rename_attribute",renameAttributeKw:(0,P.read)(t),oldName:n,toKw:(0,P.read)(s),newName:l,behaviorKw:(0,P.read)(c)})},I7e=function(t,n,s,l,c){return(0,O.loc)({type:"alter_action_add_attribute",addAttributeKw:(0,P.read)(t),name:n,dataType:(0,P.read)(s),constraint:(0,P.read)(l),behaviorKw:(0,P.read)(c)})},A7e=function(t,n,s,l){return(0,O.loc)({type:"alter_action_drop_attribute",dropAttributeKw:(0,P.read)(t),ifExistsKw:(0,P.read)(n),name:s,behaviorKw:(0,P.read)(l)})},b7e=function(t,n,s,l,c,h){return(0,O.loc)({type:"alter_action_alter_attribute",alterAttributeKw:(0,P.read)(t),name:(0,P.read)(n),setDataTypeKw:(0,P.read)(s),dataType:l,constraint:(0,P.read)(c),behaviorKw:(0,P.read)(h)})},w7e=function(t){return t},R7e=function(t){return t},_7e=function(t){return t},g7e=function(t,n){return(0,O.loc)({type:"alter_action_set_default",setDefaultKw:(0,P.read)(t),expr:n})},D7e=function(t){return(0,O.loc)({type:"alter_action_drop_default",dropDefaultKw:(0,P.read)(t)})},O7e=function(t){return(0,O.loc)({type:"alter_action_set_not_null",setNotNullKw:(0,P.read)(t)})},C7e=function(t){return(0,O.loc)({type:"alter_action_drop_not_null",dropNotNullKw:(0,P.read)(t)})},$7e=function(t,n,s){return(0,O.loc)({type:"alter_action_set_data_type",setDataTypeKw:(0,P.read)(t),dataType:n,clauses:s.map(P.read)})},P7e=function(t){return(0,O.loc)(Object.assign(Object.assign({},t),{type:"set_data_type_collate_clause"}))},N7e=function(t,n){return(0,O.loc)({type:"set_data_type_using_clause",usingKw:(0,P.read)(t),expr:n})},V7e=function(t){return(0,O.loc)({type:"alter_action_set_visible",setVisibleKw:(0,P.read)(t)})},L7e=function(t){return(0,O.loc)({type:"alter_action_set_invisible",setInvisibleKw:(0,P.read)(t)})},M7e=function(t,n){return(0,O.loc)({type:"alter_action_set_compression",setCompressionKw:(0,P.read)(t),method:n})},B7e=function(t,n){return(0,O.loc)({type:"alter_action_set_storage",setStorageKw:(0,P.read)(t),typeKw:n})},U7e=function(t,n){return(0,O.loc)({type:"alter_action_set_statistics",setStatisticsKw:(0,P.read)(t),value:n})},j7e=function(t,n){return(0,O.loc)({type:"alter_action_drop_expression",dropExpressionKw:(0,P.read)(t),ifExistsKw:(0,P.read)(n)})},x7e=function(t,n){return(0,O.loc)({type:"alter_action_drop_identity",dropIdentityKw:(0,P.read)(t),ifExistsKw:(0,P.read)(n)})},F7e=function(t,n,s,l){return(0,O.loc)({type:"alter_action_add_identity",addGeneratedKw:(0,P.read)(t),whenKw:(0,P.read)(n),asIdentityKw:(0,P.read)(s),sequenceOptions:(0,P.read)(l)})},G7e=function(t,n){return(0,O.loc)({type:"alter_action_alter_identity",actions:[t,...n.map(P.read)]})},S7e=function(t){return(0,O.loc)({type:"toggle_row_level_security",rowLevelSecurityKw:(0,P.read)(t)})},K7e=function(t,n){return(0,O.loc)({type:"toggle_trigger",triggerKw:(0,P.read)(t),name:n})},k7e=function(t,n){return(0,O.loc)({type:"toggle_rule",ruleKw:(0,P.read)(t),name:n})},q7e=function(t,n){return(0,O.loc)({type:"alter_action_set_generated",setGeneratedKw:(0,P.read)(t),whenKw:(0,P.read)(n)})},Z7e=function(t,n){return(0,O.loc)({type:"alter_action_set_sequence_option",setKw:(0,P.read)(t),option:n})},J7e=function(t){return(0,O.loc)(Object.assign(Object.assign({},t),{type:"alter_action_restart"}))},H7e=function(t,n,s){return(0,O.loc)({type:"rename_table_stmt",renameKw:(0,P.read)(t),tableKw:(0,P.read)(n),actions:s})},W7e=function(t,n,s){return(0,O.loc)({type:"rename_action",from:t,toKw:(0,P.read)(n),to:s})},Y7e=function(t,n,s,l,c,h,T,_,x,W,pe){return(0,O.loc)({type:"create_trigger_stmt",createKw:(0,P.read)(t),orReplaceKw:(0,P.read)(n),kind:(0,P.read)(s),triggerKw:(0,P.read)(l),ifNotExistsKw:(0,P.read)(c),name:(0,P.read)(h),timeKw:(0,P.read)(T),event:(0,P.read)(_),target:(0,P.read)(x),clauses:W.map(P.read),body:pe})},z7e=function(t){return(0,O.loc)({type:"relation_kind",kindKw:t})},X7e=function(t){return(0,O.loc)({type:"relation_kind",kindKw:t})},Q7e=function(t,n){return(0,M.createBinaryExprChain)(t,n)},e9e=function(t,n,s){return(0,O.loc)({type:"trigger_event",eventKw:(0,P.read)(t),ofKw:(0,P.read)(n),columns:(0,P.read)(s)})},t9e=function(t){return(0,O.loc)({type:"trigger_event",eventKw:(0,P.read)(t)})},r9e=function(t,n){return(0,O.loc)({type:"trigger_target",onKw:(0,P.read)(t),table:n})},i9e=function(t){return t},s9e=function(t,n){return(0,O.loc)({type:"for_each_clause",forEachKw:(0,P.read)(t),itemKw:(0,P.read)(n)})},n9e=function(t,n){return(0,O.loc)({type:"when_clause",whenKw:(0,P.read)(t),expr:n})},a9e=function(t,n){return(0,O.loc)({type:"from_referenced_table_clause",fromKw:(0,P.read)(t),table:n})},o9e=function(t){return(0,O.loc)({type:"trigger_timing_clause",timingKw:(0,P.read)(t)})},l9e=function(t,n){return(0,O.loc)({type:"trigger_referencing_clause",referencingKw:(0,P.read)(t),transitions:(0,P.read)(n)})},d9e=function(t,n,s,l){return(0,O.loc)({type:"trigger_transition",oldOrNewKw:(0,P.read)(t),rowOrTableKw:(0,P.read)(n),asKw:(0,P.read)(s),name:l})},u9e=function(t,n,s){return(0,O.loc)({type:"block_stmt",beginKw:(0,P.read)(t),program:n,endKw:(0,P.read)(s)})},c9e=function(t,n,s,l){return(0,O.loc)({type:"execute_clause",executeKw:(0,P.read)(t),functionKw:(0,P.read)(n),name:(0,P.read)(s),args:l})},p9e=function(t,n){return(0,O.loc)({type:"program",statements:(0,vA.readCommaSepList)(t,n)})},f9e=function(t,n,s,l){return(0,O.loc)({type:"alter_trigger_stmt",alterTriggerKw:(0,P.read)(t),trigger:(0,P.read)(n),target:(0,P.read)(s),action:l})},h9e=function(t,n,s){return(0,O.loc)({type:"drop_trigger_stmt",dropTriggerKw:(0,P.read)(t),ifExistsKw:(0,P.read)(n),trigger:s})},y9e=function(t,n,s,l,c){return(0,O.loc)({type:"drop_trigger_stmt",dropTriggerKw:(0,P.read)(t),ifExistsKw:(0,P.read)(n),trigger:s,target:(0,P.read)(l),behaviorKw:(0,P.read)(c)})},m9e=function(t,n,s,l,c){return(0,O.loc)({type:"create_schema_stmt",createSchemaKw:(0,P.read)(t),ifNotExistsKw:(0,P.read)(n),name:(0,P.read)(s),clauses:l.map(P.read),statements:c.map(P.read)})},v9e=function(t){return t},E9e=function(t){return t},T9e=function(t){return t},I9e=function(t,n){return(0,O.loc)({type:"create_schema_authorization_clause",authorizationKw:(0,P.read)(t),role:n})},A9e=function(t){return t},b9e=function(t,n,s,l){return(0,O.loc)({type:"drop_schema_stmt",dropSchemaKw:(0,P.read)(t),ifExistsKw:(0,P.read)(n),schemas:s,behaviorKw:(0,P.read)(l)})},w9e=function(t,n,s,l){return(0,O.loc)({type:"alter_schema_stmt",alterSchemaKw:(0,P.read)(t),ifExistsKw:(0,P.read)(n),name:s,actions:l.map(P.read)})},R9e=function(t){return t},_9e=function(t){return t},g9e=function(t){return t},D9e=function(t){return t},O9e=function(t){return t},C9e=function(t,n,s,l,c,h,T,_,x){return(0,O.loc)({type:"create_function_stmt",createKw:(0,P.read)(t),orReplaceKw:(0,P.read)(n),temporaryKw:(0,P.read)(s),tableKw:(0,P.read)(l),functionKw:(0,P.read)(c),ifNotExistsKw:(0,P.read)(h),name:(0,P.read)(T),params:_,clauses:x.map(P.read)})},$9e=function(t,n,s,l,c,h){return(0,O.loc)({type:"create_function_stmt",createKw:(0,P.read)(t),orReplaceKw:(0,P.read)(n),functionKw:(0,P.read)(s),name:(0,P.read)(l),params:c,clauses:h.map(P.read)})},P9e=function(t,n){return(0,O.loc)({type:"function_signature",name:(0,P.read)(t),params:(0,P.read)(n)})},N9e=function(t,n){return(0,O.loc)({type:"function_param",name:(0,P.read)(t),dataType:n})},V9e=function(t){return t},L9e=function(t){return t},M9e=function(t){return t},B9e=function(t,n){return(0,O.loc)({type:"returns_clause",returnsKw:(0,P.read)(t),dataType:n})},U9e=function(t,n){return(0,O.loc)({type:"return_clause",returnKw:(0,P.read)(t),expr:n})},j9e=function(t){return(0,O.loc)({type:"determinism_clause",deterministicKw:(0,P.read)(t)})},x9e=function(t,n){return(0,O.loc)({type:"language_clause",languageKw:(0,P.read)(t),name:n})},F9e=function(t,n){return(0,O.loc)({type:"dynamically_loaded_function",objectFile:(0,P.read)(t),symbol:(0,P.read)(n)})},G9e=function(t,n){return(0,O.loc)({type:"with_connection_clause",withConnectionKw:(0,P.read)(t),connection:n})},S9e=function(t){return(0,O.loc)({type:"function_window_clause",windowKw:t})},K9e=function(t){return(0,O.loc)({type:"function_behavior_clause",behaviorKw:(0,P.read)(t)})},k9e=function(t,n){return(0,O.loc)({type:"function_security_clause",externalKw:(0,P.read)(t),securityKw:(0,P.read)(n)})},q9e=function(t,n){return(0,O.loc)({type:"function_cost_clause",costKw:(0,P.read)(t),cost:n})},Z9e=function(t,n){return(0,O.loc)({type:"function_rows_clause",rowsKw:(0,P.read)(t),rows:n})},J9e=function(t,n){return(0,O.loc)({type:"function_support_clause",supportKw:(0,P.read)(t),name:n})},H9e=function(t,n){return(0,O.loc)({type:"function_transform_clause",transformKw:(0,P.read)(t),types:n})},W9e=function(t,n){return(0,O.loc)({type:"transform_type",forTypeKw:(0,P.read)(t),dataType:n})},Y9e=function(t,n,s,l){return(0,O.loc)({type:"set_parameter_clause",setKw:(0,P.read)(t),name:(0,P.read)(n),operator:s,value:(0,P.read)(l)})},z9e=function(t,n,s){return(0,O.loc)({type:"set_parameter_from_current_clause",setKw:(0,P.read)(t),name:n,fromCurrentKw:(0,P.read)(s)})},X9e=function(t,n){return(0,O.loc)({type:"reset_parameter_clause",resetKw:(0,P.read)(t),name:n})},Q9e=function(t){return(0,O.loc)({type:"reset_all_parameters_clause",resetAllKw:(0,P.read)(t)})},e8e=function(t,n,s,l,c,h,T){return(0,O.loc)({type:"drop_function_stmt",dropKw:(0,P.read)(t),tableKw:(0,P.read)(n),functionKw:(0,P.read)(s),ifExistsKw:(0,P.read)(l),name:c,params:(0,P.read)(h),behaviorKw:(0,P.read)(T)})},t8e=function(t,n,s,l,c,h){return(0,O.loc)({type:"alter_function_stmt",alterKw:(0,P.read)(t),functionKw:(0,P.read)(n),name:s,params:(0,P.read)(l),actions:c.map(P.read),behaviorKw:(0,P.read)(h)})},r8e=function(t,n,s,l,c,h,T){return(0,O.loc)({type:"create_procedure_stmt",createKw:(0,P.read)(t),orReplaceKw:(0,P.read)(n),procedureKw:(0,P.read)(s),ifNotExistsKw:(0,P.read)(l),name:(0,P.read)(c),params:h,clauses:T.map(P.read)})},i8e=function(t,n,s){return(0,O.loc)({type:"function_param",mode:(0,P.read)(t),name:(0,P.read)(n),dataType:s})},s8e=function(t,n,s,l){return(0,O.loc)({type:"function_param",mode:(0,P.read)(t),name:(0,P.read)(n),dataType:s,default:(0,P.read)(l)})},n8e=function(t,n,s){return(0,O.loc)({type:"function_param",mode:(0,P.read)(t),dataType:n,default:(0,P.read)(s)})},a8e=function(t,n){return(0,O.loc)({type:"function_param_default",operator:t,expr:(0,P.read)(n)})},o8e=function(t){return t},l8e=function(t){return t},d8e=function(t,n,s,l,c,h){return(0,O.loc)({type:"drop_procedure_stmt",dropKw:(0,P.read)(t),procedureKw:(0,P.read)(n),ifExistsKw:(0,P.read)(s),name:l,params:(0,P.read)(c),behaviorKw:(0,P.read)(h)})},u8e=function(t,n,s,l,c,h){return(0,O.loc)({type:"alter_procedure_stmt",alterKw:(0,P.read)(t),procedureKw:(0,P.read)(n),name:s,params:(0,P.read)(l),actions:c.map(P.read),behaviorKw:(0,P.read)(h)})},c8e=function(t,n,s,l,c,h){return(0,O.loc)({type:"create_sequence_stmt",createKw:(0,P.read)(t),kind:(0,P.read)(n),sequenceKw:(0,P.read)(s),ifNotExistsKw:(0,P.read)(l),name:c,options:h.map(P.read)})},p8e=function(t){return(0,O.loc)({type:"relation_kind",kindKw:t})},f8e=function(t,n){return(0,O.loc)({type:"sequence_option_list",options:[t,...n.map(P.read)]})},h8e=function(t,n){return(0,O.loc)({type:"sequence_option_as_type",asKw:(0,P.read)(t),dataType:n})},y8e=function(t,n,s){return(0,O.loc)({type:"sequence_option_increment",incrementKw:(0,P.read)(t),byKw:(0,P.read)(n),value:s})},m8e=function(t,n,s){return(0,O.loc)({type:"sequence_option_start",startKw:(0,P.read)(t),withKw:(0,P.read)(n),value:s})},v8e=function(t,n,s){return(0,O.loc)({type:"sequence_option_restart",restartKw:(0,P.read)(t),withKw:(0,P.read)(n),value:s})},E8e=function(t,n){return(0,O.loc)({type:"sequence_option_restart",restartKw:(0,P.read)(t),value:(0,P.read)(n)})},T8e=function(t,n){return(0,O.loc)({type:"sequence_option_minvalue",minvalueKw:(0,P.read)(t),value:n})},I8e=function(t,n){return(0,O.loc)({type:"sequence_option_maxvalue",maxvalueKw:(0,P.read)(t),value:n})},A8e=function(t){return(0,O.loc)({type:"sequence_option_no_minvalue",noMinvalueKw:(0,P.read)(t)})},b8e=function(t){return(0,O.loc)({type:"sequence_option_no_maxvalue",noMaxvalueKw:(0,P.read)(t)})},w8e=function(t,n){return(0,O.loc)({type:"sequence_option_cache",cacheKw:(0,P.read)(t),value:n})},R8e=function(t){return(0,O.loc)({type:"sequence_option_cycle",cycleKw:t})},_8e=function(t){return(0,O.loc)({type:"sequence_option_no_cycle",noCycleKw:(0,P.read)(t)})},g8e=function(t,n){return(0,O.loc)({type:"sequence_option_owned_by",ownedByKw:(0,P.read)(t),owner:n})},D8e=function(t,n,s,l,c){return(0,O.loc)({type:"alter_sequence_stmt",alterKw:(0,P.read)(t),sequenceKw:(0,P.read)(n),ifExistsKw:(0,P.read)(s),sequence:l,actions:c.map(P.read)})},O8e=function(t,n,s,l,c){return(0,O.loc)({type:"drop_sequence_stmt",dropKw:(0,P.read)(t),sequenceKw:(0,P.read)(n),ifExistsKw:(0,P.read)(s),sequences:l,behaviorKw:(0,P.read)(c)})},C8e=function(t,n,s){return(0,O.loc)({type:"create_type_stmt",createTypeKw:(0,P.read)(t),name:n,definition:(0,P.read)(s)})},$8e=function(t,n){return(0,O.loc)({type:"composite_type_definition",asKw:(0,P.read)(t),columns:(0,P.read)(n)})},P8e=function(t,n){return(0,O.loc)({type:"enum_type_definition",asEnumKw:(0,P.read)(t),values:(0,P.read)(n)})},N8e=function(t,n,s){return(0,O.loc)({type:"alter_type_stmt",alterTypeKw:(0,P.read)(t),name:n,actions:(0,P.read)(s)})},V8e=function(t,n,s,l){return(0,O.loc)({type:"drop_type_stmt",dropTypeKw:(0,P.read)(t),ifExistsKw:(0,P.read)(n),types:s,behaviorKw:(0,P.read)(l)})},L8e=function(t,n,s,l,c){return(0,O.loc)({type:"create_domain_stmt",createDomainKw:(0,P.read)(t),name:(0,P.read)(n),asKw:(0,P.read)(s),dataType:l,constraints:c.map(P.read)})},M8e=function(t,n,s){return(0,O.loc)({type:"alter_domain_stmt",alterDomainKw:(0,P.read)(t),name:n,action:(0,P.read)(s)})},B8e=function(t,n,s,l){return(0,O.loc)({type:"drop_domain_stmt",dropDomainKw:(0,P.read)(t),ifExistsKw:(0,P.read)(n),domains:s,behaviorKw:(0,P.read)(l)})},U8e=function(t,n,s,l){return(0,O.loc)({type:"create_role_stmt",createRoleKw:(0,P.read)(t),name:n,withKw:(0,P.read)(s),options:l.map(P.read)})},j8e=function(t){return(0,O.loc)({type:"role_option_keyword",kw:(0,P.read)(t)})},x8e=function(t,n){return(0,O.loc)({type:"role_option_connection_limit",connectionLimitKw:(0,P.read)(t),limit:n})},F8e=function(t,n,s){return(0,O.loc)({type:"role_option_password",encryptedKw:(0,P.read)(t),passwordKw:(0,P.read)(n),password:s})},G8e=function(t,n){return(0,O.loc)({type:"role_option_valid_until",validUntilKw:(0,P.read)(t),timestamp:n})},S8e=function(t,n){return(0,O.loc)({type:"role_option_in_role",inRoleKw:(0,P.read)(t),names:n})},K8e=function(t,n){return(0,O.loc)({type:"role_option_role",roleKw:(0,P.read)(t),names:n})},k8e=function(t,n){return(0,O.loc)({type:"role_option_admin",adminKw:(0,P.read)(t),names:n})},q8e=function(t,n){return(0,O.loc)({type:"role_option_sysid",sysIdKw:(0,P.read)(t),sysId:n})},Z8e=function(t,n,s,l){return(0,O.loc)({type:"alter_role_stmt",alterRoleKw:(0,P.read)(t),name:(0,P.read)(n),database:(0,P.read)(s),action:l})},J8e=function(t,n){return(0,O.loc)({type:"in_database_clause",inDatabaseKw:(0,P.read)(t),name:n})},H8e=function(t,n){return(0,O.loc)({type:"alter_action_with_role_options",withKw:t,options:n.map(P.read)})},W8e=function(t,n){return(0,O.loc)({type:"alter_action_with_role_options",options:[t,...n.map(P.read)]})},Y8e=function(t,n,s,l){return(0,O.loc)({type:"alter_action_set_postgresql_option",setKw:(0,P.read)(t),name:(0,P.read)(n),operator:s,value:(0,P.read)(l)})},z8e=function(t,n,s){return(0,O.loc)({type:"alter_action_set_postgresql_option_from_current",setKw:(0,P.read)(t),name:(0,P.read)(n),fromCurrentKw:(0,P.read)(s)})},X8e=function(t,n){return(0,O.loc)({type:"alter_action_reset_postgresql_option",resetKw:(0,P.read)(t),name:n})},Q8e=function(t,n){return(0,O.loc)({type:"alter_action_add_user",addUserKw:(0,P.read)(t),users:n})},eqe=function(t,n){return(0,O.loc)({type:"alter_action_drop_user",dropUserKw:(0,P.read)(t),users:n})},tqe=function(t,n,s){return(0,O.loc)({type:"drop_role_stmt",dropRoleKw:(0,P.read)(t),ifExistsKw:(0,P.read)(n),names:s})},rqe=function(t,n,s,l){return(0,O.loc)({type:"set_role_stmt",setKw:(0,P.read)(t),scopeKw:(0,P.read)(n),roleKw:(0,P.read)(s),name:l})},iqe=function(t){return(0,O.loc)({type:"reset_role_stmt",resetRoleKw:(0,P.read)(t)})},sqe=function(t,n,s,l,c){return(0,O.loc)({type:"create_policy_stmt",createPolicyKw:(0,P.read)(t),name:(0,P.read)(n),onKw:(0,P.read)(s),table:l,clauses:c.map(P.read)})},nqe=function(t,n){return(0,O.loc)({type:"policy_permissive_clause",asKw:(0,P.read)(t),permissiveKw:n})},aqe=function(t,n){return(0,O.loc)({type:"policy_restrictive_clause",asKw:(0,P.read)(t),restrictiveKw:n})},oqe=function(t,n){return(0,O.loc)({type:"policy_command_clause",forKw:(0,P.read)(t),commandKw:n})},lqe=function(t,n){return(0,O.loc)({type:"policy_roles_clause",toKw:(0,P.read)(t),roles:n})},dqe=function(t,n){return(0,O.loc)({type:"policy_using_clause",usingKw:(0,P.read)(t),expr:n})},uqe=function(t,n,s){return(0,O.loc)({type:"policy_check_clause",withKw:(0,P.read)(t),checkKw:(0,P.read)(n),expr:s})},cqe=function(t,n,s,l,c){return(0,O.loc)({type:"alter_policy_stmt",alterPolicyKw:(0,P.read)(t),name:(0,P.read)(n),onKw:(0,P.read)(s),table:l,actions:c.map(P.read)})},pqe=function(t,n,s,l,c,h){return(0,O.loc)({type:"drop_policy_stmt",dropPolicyKw:(0,P.read)(t),ifExistsKw:(0,P.read)(n),name:(0,P.read)(s),onKw:(0,P.read)(l),table:c,behaviorKw:(0,P.read)(h)})},fqe=function(t,n,s){return(0,O.loc)({type:"analyze_stmt",analyzeKw:t,tableKw:(0,P.read)(n),tables:(0,P.read)(s)||[]})},hqe=function(t,n,s,l){return(0,O.loc)({type:"explain_stmt",explainKw:(0,P.read)(t),analyzeKw:(0,P.read)(n),queryPlanKw:(0,P.read)(s),statement:l})},yqe=function(t){return t},mqe=function(t){return t},vqe=function(t,n,s){return(0,O.loc)({type:"start_transaction_stmt",startKw:t,behaviorKw:(0,P.read)(n),transactionKw:(0,P.read)(s)})},Eqe=function(t,n,s){return(0,O.loc)({type:"start_transaction_stmt",startKw:t,transactionKw:(0,P.read)(n),modes:(0,P.read)(s)})},Tqe=function(t,n){return(0,O.loc)({type:"start_transaction_stmt",startKw:t,transactionKw:(0,P.read)(n)})},Iqe=function(t,n,s){return(0,O.loc)({type:"start_transaction_stmt",startKw:t,transactionKw:(0,P.read)(n),modes:(0,P.read)(s)})},Aqe=function(t){return(0,O.loc)({type:"transaction_mode_deferrable",deferrableKw:t})},bqe=function(t){return(0,O.loc)({type:"transaction_mode_not_deferrable",notDeferrableKw:(0,P.read)(t)})},wqe=function(t){return(0,O.loc)({type:"transaction_mode_read_write",readWriteKw:(0,P.read)(t)})},Rqe=function(t){return(0,O.loc)({type:"transaction_mode_read_only",readOnlyKw:(0,P.read)(t)})},_qe=function(t,n){return(0,O.loc)({type:"transaction_mode_isolation_level",isolationLevelKw:(0,P.read)(t),levelKw:(0,P.read)(n)})},gqe=function(t,n,s){return(0,O.loc)({type:"commit_transaction_stmt",commitKw:t,transactionKw:(0,P.read)(n),chain:(0,P.read)(s)})},Dqe=function(t){return t},Oqe=function(t,n,s,l){return(0,O.loc)({type:"rollback_transaction_stmt",rollbackKw:t,transactionKw:(0,P.read)(n),savepoint:(0,P.read)(s),chain:(0,P.read)(l)})},Cqe=function(t){return t},$qe=function(t,n,s){return(0,O.loc)({type:"rollback_to_savepoint",toKw:(0,P.read)(t),savepointKw:(0,P.read)(n),savepoint:s})},Pqe=function(t){return t},Nqe=function(t){return t},Vqe=function(t,n){return(0,O.loc)({type:"savepoint_stmt",savepointKw:(0,P.read)(t),savepoint:n})},Lqe=function(t,n,s){return(0,O.loc)({type:"release_savepoint_stmt",releaseKw:(0,P.read)(t),savepointKw:(0,P.read)(n),savepoint:s})},Mqe=function(t){return(0,O.loc)({type:"transaction_chain_clause",andChainKw:(0,P.read)(t)})},Bqe=function(t){return(0,O.loc)({type:"transaction_no_chain_clause",andNoChainKw:(0,P.read)(t)})},Uqe=function(t){return t},jqe=function(t,n,s,l,c,h,T){return(0,O.loc)({type:"grant_privilege_stmt",grantKw:(0,P.read)(t),privileges:(0,P.read)(n),onKw:(0,P.read)(s),resource:(0,P.read)(l),toKw:(0,P.read)(c),roles:h,clauses:T.map(P.read)})},xqe=function(t,n,s,l,c,h){return(0,O.loc)({type:"grant_privilege_stmt",grantKw:(0,P.read)(t),privileges:(0,P.read)(n),onKw:(0,P.read)(s),resource:(0,P.read)(l),toKw:(0,P.read)(c),roles:h,clauses:[]})},Fqe=function(t,n,s,l,c){return(0,O.loc)({type:"grant_role_stmt",grantKw:(0,P.read)(t),grantedRoles:(0,P.read)(n),toKw:(0,P.read)(s),granteeRoles:l,clauses:c.map(P.read)})},Gqe=function(t,n){return(0,O.loc)({type:"privilege",privilegeKw:t,columns:(0,P.read)(n)})},Sqe=function(t){return(0,P.read)(t)},Kqe=function(t,n,s){return(0,O.loc)({type:"all_privileges",allKw:(0,P.read)(t),privilegesKw:(0,P.read)(n),columns:(0,P.read)(s)})},kqe=function(t,n){return(0,O.loc)({type:"grant_resource_all_tables_in_schema",allTablesInSchemaKw:(0,P.read)(t),schemas:n})},qqe=function(t,n){return(0,O.loc)({type:"grant_resource_all_sequences_in_schema",allSequencesInSchemaKw:(0,P.read)(t),schemas:n})},Zqe=function(t,n){return(0,O.loc)({type:"grant_resource_all_functions_in_schema",allFunctionsInSchemaKw:(0,P.read)(t),schemas:n})},Jqe=function(t,n){return(0,O.loc)({type:"grant_resource_sequence",sequenceKw:(0,P.read)(t),sequences:n})},Hqe=function(t,n){return(0,O.loc)({type:"grant_resource_database",databaseKw:(0,P.read)(t),databases:n})},Wqe=function(t,n){return(0,O.loc)({type:"grant_resource_domain",domainKw:(0,P.read)(t),domains:n})},Yqe=function(t,n){return(0,O.loc)({type:"grant_resource_foreign_data_wrapper",foreignDataWrapperKw:(0,P.read)(t),dataWrappers:n})},zqe=function(t,n){return(0,O.loc)({type:"grant_resource_foreign_server",foreignServerKw:(0,P.read)(t),servers:n})},Xqe=function(t,n){return(0,O.loc)({type:"grant_resource_function",functionKw:(0,P.read)(t),functions:n})},Qqe=function(t,n){return(0,O.loc)({type:"grant_resource_language",languageKw:(0,P.read)(t),languages:n})},eZe=function(t,n){return(0,O.loc)({type:"grant_resource_large_object",largeObjectKw:(0,P.read)(t),oids:n})},tZe=function(t,n){return(0,O.loc)({type:"grant_resource_postgresql_option",parameterKw:(0,P.read)(t),options:n})},rZe=function(t,n){return(0,O.loc)({type:"grant_resource_schema",schemaKw:(0,P.read)(t),schemas:n})},iZe=function(t,n){return(0,O.loc)({type:"grant_resource_tablespace",tablespaceKw:(0,P.read)(t),tablespaces:n})},sZe=function(t,n){return(0,O.loc)({type:"grant_resource_type",typeKw:(0,P.read)(t),types:n})},nZe=function(t,n){return(0,O.loc)({type:"grant_resource_table",tableKw:(0,P.read)(t),tables:n})},aZe=function(t,n){return(0,O.loc)({type:"grant_resource_table",tableKw:(0,P.read)(t),tables:n})},oZe=function(t,n){return(0,O.loc)({type:"grant_resource_view",viewKw:(0,P.read)(t),views:n})},lZe=function(t,n){return(0,O.loc)({type:"grant_resource_schema",schemaKw:(0,P.read)(t),schemas:n})},dZe=function(t,n,s){return(0,O.loc)({type:"with_grant_option_clause",withKw:(0,P.read)(t),nameKw:(0,P.read)(n),value:s})},uZe=function(t,n){return(0,O.loc)({type:"grant_option_for_clause",nameKw:(0,P.read)(t),optionForKw:(0,P.read)(n)})},cZe=function(t,n){return(0,O.loc)({type:"granted_by_clause",grantedByKw:(0,P.read)(t),role:n})},pZe=function(t,n,s,l,c,h,T,_,x){return(0,O.loc)({type:"revoke_privilege_stmt",revokeKw:(0,P.read)(t),option:(0,P.read)(n),privileges:(0,P.read)(s),onKw:(0,P.read)(l),resource:(0,P.read)(c),fromKw:(0,P.read)(h),roles:T,grantedBy:(0,P.read)(_),behaviorKw:(0,P.read)(x)})},fZe=function(t,n,s,l,c,h){return(0,O.loc)({type:"revoke_privilege_stmt",revokeKw:(0,P.read)(t),privileges:(0,P.read)(n),onKw:(0,P.read)(s),resource:(0,P.read)(l),fromKw:(0,P.read)(c),roles:h})},hZe=function(t,n,s,l,c,h,T){return(0,O.loc)({type:"revoke_role_stmt",revokeKw:(0,P.read)(t),option:(0,P.read)(n),grantedRoles:(0,P.read)(s),fromKw:(0,P.read)(l),granteeRoles:c,grantedBy:(0,P.read)(h),behaviorKw:(0,P.read)(T)})},yZe=function(t,n){return(0,O.loc)({type:"grantee_group",groupKw:t,name:(0,P.read)(n)})},mZe=function(t){return(0,O.loc)({type:"grantee_public",publicKw:t})},vZe=function(t){return(0,O.loc)({type:"func_call",name:t})},EZe=function(t){return t},TZe=function(t){return(0,O.loc)((0,M.createIdentifier)(t.text,t.text))},IZe=function(t){return t},AZe=function(t){return t},bZe=function(t,n,s){return(0,O.loc)({type:"labeled_stmt",beginLabel:(0,P.read)(t),statement:(0,P.read)(n),endLabel:(0,P.read)(s)})},wZe=function(t,n,s){return(0,O.loc)({type:"labeled_stmt",beginLabel:(0,P.read)(t),statement:(0,P.read)(n),endLabel:(0,P.read)(s)})},RZe=function(t,n,s){return(0,O.loc)({type:"labeled_stmt",beginLabel:(0,P.read)(t),statement:(0,P.read)(n),endLabel:(0,P.read)(s)})},_Ze=function(t,n,s){return(0,O.loc)({type:"labeled_stmt",beginLabel:(0,P.read)(t),statement:(0,P.read)(n),endLabel:(0,P.read)(s)})},gZe=function(t,n,s){return(0,O.loc)({type:"labeled_stmt",beginLabel:(0,P.read)(t),statement:(0,P.read)(n),endLabel:(0,P.read)(s)})},DZe=function(t,n,s,l,c){return(0,O.loc)({type:"block_stmt",beginKw:(0,P.read)(t),atomicKw:(0,P.read)(n),program:s,exception:(0,P.read)(l),endKw:(0,P.read)(c)})},OZe=function(t){return t},CZe=function(t,n,s,l,c){return(0,O.loc)({type:"exception_clause",exceptionKw:(0,P.read)(t),whenKw:(0,P.read)(n),condition:(0,P.read)(s),thenKw:(0,P.read)(l),program:c})},$Ze=function(t){return(0,O.loc)({type:"error_category",errorKw:t})},PZe=function(t,n,s,l){return(0,O.loc)({type:"declare_stmt",declareKw:(0,P.read)(t),names:n,dataType:(0,P.read)(s),default:(0,P.read)(l)})},NZe=function(t,n){return(0,O.loc)({type:"declare_default",defaultKw:(0,P.read)(t),expr:n})},VZe=function(t,n){return(0,O.loc)({type:"set_stmt",setKw:(0,P.read)(t),assignments:n})},LZe=function(t,n){return(0,O.loc)({type:"binary_expr",left:(0,P.read)(t),operator:"=",right:(0,P.read)(n)})},MZe=function(t,n){return(0,O.loc)({type:"binary_expr",left:(0,P.read)(t),operator:"=",right:(0,P.read)(n)})},BZe=function(t,n,s,l){return(0,O.loc)({type:"if_stmt",clauses:[(0,P.read)(t),...n.map(P.read),...s?[(0,P.read)(s)]:[]],endIfKw:(0,P.read)(l)})},UZe=function(t,n,s,l){return(0,O.loc)({type:"if_clause",ifKw:(0,P.read)(t),condition:(0,P.read)(n),thenKw:(0,P.read)(s),consequent:l})},jZe=function(t,n,s,l){return(0,O.loc)({type:"elseif_clause",elseifKw:(0,P.read)(t),condition:(0,P.read)(n),thenKw:(0,P.read)(s),consequent:l})},xZe=function(t,n){return(0,O.loc)({type:"else_clause",elseKw:(0,P.read)(t),consequent:n})},FZe=function(t,n,s,l,c){return(0,O.loc)({type:"case_stmt",caseKw:t,expr:(0,P.read)(n),clauses:[...s.map(P.read),...l?[(0,P.read)(l)]:[]],endCaseKw:(0,P.read)(c)})},GZe=function(t,n,s,l){return(0,O.loc)({type:"case_when",whenKw:t,condition:(0,P.read)(n),thenKw:s,result:(0,P.read)(l)})},SZe=function(t,n){return(0,O.loc)({type:"case_else",elseKw:t,result:(0,P.read)(n)})},KZe=function(t,n,s){return(0,O.loc)({type:"loop_stmt",loopKw:(0,P.read)(t),body:n,endLoopKw:(0,P.read)(s)})},kZe=function(t,n,s,l,c){return(0,O.loc)({type:"repeat_stmt",repeatKw:(0,P.read)(t),body:(0,P.read)(n),untilKw:(0,P.read)(s),condition:(0,P.read)(l),endRepeatKw:(0,P.read)(c)})},qZe=function(t,n,s,l,c){return(0,O.loc)({type:"while_stmt",whileKw:(0,P.read)(t),condition:(0,P.read)(n),doKw:(0,P.read)(s),body:(0,P.read)(l),endWhileKw:(0,P.read)(c)})},ZZe=function(t,n,s,l,c,h,T){return(0,O.loc)({type:"for_stmt",forKw:(0,P.read)(t),left:(0,P.read)(n),inKw:(0,P.read)(s),right:(0,P.read)(l),doKw:(0,P.read)(c),body:(0,P.read)(h),endForKw:(0,P.read)(T)})},JZe=function(t,n){return(0,O.loc)({type:"break_stmt",breakKw:t,label:(0,P.read)(n)})},HZe=function(t){return t},WZe=function(t,n){return(0,O.loc)({type:"continue_stmt",continueKw:t,label:(0,P.read)(n)})},YZe=function(t){return t},zZe=function(t,n){return(0,O.loc)({type:"call_stmt",callKw:(0,P.read)(t),func:n})},XZe=function(t,n){return(0,O.loc)({type:"return_stmt",returnKw:(0,P.read)(t),expr:n})},QZe=function(t){return(0,O.loc)({type:"return_stmt",returnKw:t})},eJe=function(t,n){return(0,O.loc)({type:"raise_stmt",raiseKw:t,message:(0,P.read)(n)})},tJe=function(t,n){return(0,O.loc)({type:"raise_message",usingMessageKw:(0,P.read)(t),string:(0,P.read)(n)})},rJe=function(t,n,s,l,c){return(0,O.loc)({type:"execute_stmt",executeKw:(0,P.read)(t),immediateKw:(0,P.read)(n),expr:s,into:(0,P.read)(l),using:(0,P.read)(c)})},iJe=function(t){return t},sJe=function(t,n){return(0,O.loc)({type:"execute_into_clause",intoKw:(0,P.read)(t),variables:n})},nJe=function(t,n){return(0,O.loc)({type:"execute_using_clause",usingKw:(0,P.read)(t),values:n})},aJe=function(t,n,s,l,c){return(0,O.loc)({type:"attach_database_stmt",attachKw:(0,P.read)(t),databaseKw:(0,P.read)(n),file:(0,P.read)(s),asKw:(0,P.read)(l),schema:c})},oJe=function(t,n,s){return(0,O.loc)({type:"detach_database_stmt",detachKw:(0,P.read)(t),databaseKw:(0,P.read)(n),schema:s})},lJe=function(t,n,s,l){return(0,O.loc)({type:"vacuum_stmt",vacuumKw:(0,P.read)(t),schema:(0,P.read)(n),intoKw:(0,P.read)(s),file:l})},dJe=function(t,n){return(0,O.loc)({type:"vacuum_stmt",vacuumKw:(0,P.read)(t),schema:(0,P.read)(n)})},uJe=function(t,n){return(0,O.loc)({type:"pragma_stmt",pragmaKw:(0,P.read)(t),pragma:n})},cJe=function(t,n){return(0,O.loc)({type:"pragma_assignment",name:(0,P.read)(t),value:(0,P.read)(n)})},pJe=function(t,n){return(0,O.loc)({type:"pragma_func_call",name:(0,P.read)(t),args:(0,P.read)(n)})},fJe=function(t){return(0,M.createKeyword)(t)},hJe=function(t,n,s,l){const c=(0,P.read)(n),h={createKw:(0,P.read)(t),name:(0,P.read)(s),options:l};switch(c.name){case"CAPACITY":return(0,O.loc)(Object.assign({type:"create_capacity_stmt",capacityKw:c},h));case"RESERVATION":return(0,O.loc)(Object.assign({type:"create_reservation_stmt",reservationKw:c},h));case"ASSIGNMENT":return(0,O.loc)(Object.assign({type:"create_assignment_stmt",assignmentKw:c},h))}},yJe=function(t,n,s,l){const c=(0,P.read)(n),h={dropKw:(0,P.read)(t),ifExistsKw:(0,P.read)(s),name:l};switch(c.name){case"CAPACITY":return(0,O.loc)(Object.assign({type:"drop_capacity_stmt",capacityKw:c},h));case"RESERVATION":return(0,O.loc)(Object.assign({type:"drop_reservation_stmt",reservationKw:c},h));case"ASSIGNMENT":return(0,O.loc)(Object.assign({type:"drop_assignment_stmt",assignmentKw:c},h))}},mJe=function(t,n,s,l,c,h,T,_){return(0,O.loc)({type:"create_row_access_policy_stmt",createKw:(0,P.read)(t),orReplaceKw:(0,P.read)(n),rowAccessPolicyKw:(0,P.read)(s),ifNotExistsKw:(0,P.read)(l),name:(0,P.read)(c),onKw:(0,P.read)(h),table:(0,P.read)(T),clauses:_.map(P.read)})},vJe=function(t,n){return(0,O.loc)({type:"row_access_policy_grant_clause",grantToKw:(0,P.read)(t),grantees:n})},EJe=function(t,n){return(0,O.loc)({type:"row_access_policy_filter_clause",filterUsingKw:(0,P.read)(t),expr:n})},TJe=function(t,n,s,l,c,h){return(0,O.loc)({type:"drop_row_access_policy_stmt",dropKw:(0,P.read)(t),rowAccessPolicyKw:(0,P.read)(n),ifExistsKw:(0,P.read)(s),name:(0,P.read)(l),onKw:(0,P.read)(c),table:h})},IJe=function(t,n,s,l,c){return(0,O.loc)({type:"drop_row_access_policy_stmt",dropKw:(0,P.read)(t),allKw:(0,P.read)(n),rowAccessPolicyKw:(0,P.read)(s),onKw:(0,P.read)(l),table:c})},AJe=function(t,n){return(0,O.loc)({type:"alter_organization_stmt",alterOrganizationKw:(0,P.read)(t),actions:[n]})},bJe=function(t,n,s){return(0,O.loc)({type:"alter_project_stmt",alterProjectKw:(0,P.read)(t),name:(0,P.read)(n),actions:[s]})},wJe=function(t,n,s){return(0,O.loc)({type:"alter_bi_capacity_stmt",alterBiCapacityKw:(0,P.read)(t),name:(0,P.read)(n),actions:[s]})},RJe=function(t,n,s){return(0,O.loc)({type:"alter_capacity_stmt",alterCapacityKw:(0,P.read)(t),name:(0,P.read)(n),actions:[s]})},_Je=function(t,n,s){return(0,O.loc)({type:"alter_reservation_stmt",alterReservationKw:(0,P.read)(t),name:(0,P.read)(n),actions:[s]})},gJe=function(t,n,s){return(0,O.loc)({type:"assert_stmt",assertKw:(0,P.read)(t),expr:n,as:(0,P.read)(s)})},DJe=function(t,n,s,l){return(0,O.loc)({type:"export_data_stmt",exportDataKw:(0,P.read)(t),withConnection:(0,P.read)(n),options:(0,P.read)(s),as:l})},OJe=function(t,n,s,l,c){return(0,O.loc)({type:"load_data_stmt",loadDataKw:(0,P.read)(t),intoKw:(0,P.read)(n),table:s,columns:(0,P.read)(l),clauses:c.map(P.read)})},CJe=function(t,n){return(0,O.loc)({type:"from_files_options",fromFilesKw:(0,P.read)(t),options:n})},$Je=function(t,n){return(0,O.loc)({type:"postgresql_with_options",withKw:(0,P.read)(t),options:n})},PJe=function(t,n){return(0,O.loc)({type:"table_option",name:(0,P.read)(t),hasEq:!0,value:(0,P.read)(n)})},NJe=function(t){return(0,O.loc)({type:"table_option",name:(0,P.read)(t)})},VJe=function(t,n){return(0,O.loc)({type:"postgresql_options",optionsKw:(0,P.read)(t),options:n})},LJe=function(t,n){return(0,O.loc)({type:"postgresql_option_element",name:(0,P.read)(t),value:n})},MJe=function(t,n){return(0,O.loc)({type:"postgresql_operator_class",name:t,options:(0,P.read)(n)})},BJe=function(t,n){return(0,O.loc)((0,M.createListExpr)(t,n))},UJe=function(t){return t},jJe=function(t){return t},xJe=function(t){return(0,O.loc)({type:"table_option",name:(0,P.read)(t)})},FJe=function(t,n){return(0,O.loc)({type:"table_option",name:(0,P.read)(t),hasEq:!0,value:(0,P.read)(n)})},GJe=function(t,n){return(0,O.loc)({type:"table_option",name:(0,P.read)(t),value:(0,P.read)(n)})},SJe=function(t){return(0,O.loc)({type:"table_option",name:(0,P.read)(t)})},KJe=function(t){return(0,P.read)(t)},kJe=function(t){return(0,P.read)(t)},qJe=function(t){return(0,P.read)(t)},ZJe=function(t){return(0,P.read)(t)},JJe=function(t){return(0,P.read)(t)},HJe=function(t,n,s){return!t&&s.length===0?n:(0,O.loc)({type:"constraint",name:(0,P.read)(t),constraint:n,modifiers:s.map(P.read)})},WJe=function(t,n){return n},YJe=function(t,n,s){return!t&&s.length===0?n:(0,O.loc)({type:"constraint",name:(0,P.read)(t),constraint:n,modifiers:s.map(P.read)})},zJe=function(t,n){return(0,O.loc)({type:"constraint_name",constraintKw:t,name:(0,P.read)(n)})},XJe=function(t){return(0,O.loc)({type:"constraint_modifier",kw:(0,P.read)(t)})},QJe=function(t){return(0,O.loc)({type:"constraint_modifier",kw:(0,P.read)(t)})},eHe=function(t){return(0,O.loc)({type:"constraint_modifier",kw:(0,P.read)(t)})},tHe=function(t){return(0,O.loc)({type:"constraint_modifier",kw:(0,P.read)(t)})},rHe=function(t){return t},iHe=function(t){return t},sHe=function(t){return t},nHe=function(t){return t},aHe=function(t){return t},oHe=function(t,n){return(0,O.loc)({type:"constraint_not_null",notNullKw:(0,P.read)(t),clauses:n.map(P.read)})},lHe=function(t){return(0,O.loc)({type:"constraint_null",nullKw:t})},dHe=function(t,n){return(0,O.loc)({type:"constraint_default",defaultKw:t,expr:(0,P.read)(n)})},uHe=function(t){return(0,O.loc)({type:"constraint_auto_increment",autoIncrementKw:t})},cHe=function(t){return t},pHe=function(t){return t},fHe=function(t,n){return(0,O.loc)({type:"constraint_comment",commentKw:t,value:(0,P.read)(n)})},hHe=function(t,n){return(0,O.loc)({type:"constraint_collate",collateKw:t,collation:(0,P.read)(n)})},yHe=function(t){return(0,O.loc)({type:"constraint_visible",visibleKw:t})},mHe=function(t,n){return(0,O.loc)({type:"constraint_column_format",columnFormatKw:(0,P.read)(t),formatKw:n})},vHe=function(t,n){return(0,O.loc)({type:"constraint_storage",storageKw:(0,P.read)(t),typeKw:n})},EHe=function(t){return t},THe=function(t){return t},IHe=function(t,n,s){return(0,O.loc)({type:"constraint_engine_attribute",engineAttributeKw:n?(0,Hn.trailing)(t,n[0]):t,hasEq:!!n,value:(0,P.read)(s)})},AHe=function(t,n){return(0,O.loc)({type:"constraint_compression",compressionKw:(0,P.read)(t),method:n})},bHe=function(t,n,s,l){return(0,O.loc)({type:"constraint_generated",generatedKw:t?(0,P.read)(t):void 0,asKw:n,expr:(0,P.read)(s),storageKw:(0,P.read)(l)})},wHe=function(t,n,s,l){return(0,O.loc)({type:"constraint_generated",generatedKw:(0,P.read)(t),asKw:(0,P.read)(n),expr:(0,P.read)(s),sequenceOptions:(0,P.read)(l)})},RHe=function(t){return(0,O.loc)({type:"identity_column",identityKw:t})},_He=function(t){return t},gHe=function(t){return t},DHe=function(t){return t},OHe=function(t){return t},CHe=function(t,n,s){return(0,O.loc)({type:"constraint_primary_key",primaryKeyKw:(0,P.read)(t),columns:n,clauses:s.map(P.read)})},$He=function(t,n,s){return(0,O.loc)({type:"constraint_primary_key",primaryKeyKw:(0,P.read)(t),direction:(0,P.read)(n),clauses:s.map(P.read)})},PHe=function(t){return t},NHe=function(t){return t},VHe=function(t,n){return(0,O.loc)({type:"existing_index",usingIndexKw:(0,P.read)(t),index:n})},LHe=function(t,n,s,l){return(0,O.loc)({type:"constraint_unique",uniqueKw:(0,P.read)(t),nullsKw:(0,P.read)(n),columns:s,clauses:l.map(P.read)})},MHe=function(t,n,s){return(0,O.loc)({type:"constraint_unique",uniqueKw:t,nullsKw:(0,P.read)(n),clauses:s.map(P.read)})},BHe=function(t){return(0,P.read)(t)},UHe=function(t){return(0,P.read)(t)},jHe=function(t,n,s){return(0,O.loc)({type:"constraint_check",checkKw:t,expr:(0,P.read)(n),clauses:s.map(P.read)})},xHe=function(t,n,s,l){return(0,O.loc)({type:"constraint_foreign_key",foreignKeyKw:(0,P.read)(t),indexName:(0,P.read)(n),columns:s,references:(0,P.read)(l)})},FHe=function(t,n,s,l){return(0,O.loc)({type:"references_specification",referencesKw:(0,P.read)(t),table:n,columns:(0,P.read)(s),options:l.map(P.read)})},GHe=function(t,n,s,l){return(0,O.loc)({type:"referential_action",onKw:(0,P.read)(t),eventKw:(0,P.read)(n),actionKw:s,columns:(0,P.read)(l)})},SHe=function(t,n){return(0,O.loc)({type:"referential_match",matchKw:(0,P.read)(t),typeKw:n})},KHe=function(t){return(0,P.read)(t)},kHe=function(t,n){return(0,O.loc)({type:"constraint_index",indexKw:(0,P.read)(t),columns:n})},qHe=function(t,n,s){return(0,O.loc)({type:"constraint_index",indexTypeKw:(0,P.read)(t),indexKw:(0,P.read)(n),columns:s})},ZHe=function(t,n,s,l){return(0,O.loc)({type:"constraint_exclude",excludeKw:(0,P.read)(t),using:(0,P.read)(n),params:s,clauses:l.map(P.read)})},JHe=function(t,n,s){return(0,O.loc)({type:"exclusion_param",index:t,withKw:(0,P.read)(n),operator:s})},HHe=function(t,n){return(0,O.loc)({type:"on_conflict_clause",onConflictKw:(0,P.read)(t),resolutionKw:n})},WHe=function(t,n){return(0,O.loc)({type:"index_tablespace_clause",usingIndexTablespaceKw:(0,P.read)(t),name:n})},YHe=function(t,n){return(0,O.loc)((0,M.createArrayDataTypeChain)(t,n))},zHe=function(t,n){return(0,O.loc)({type:"with_time_zone_data_type",dataType:t,withTimeZoneKw:(0,P.read)(n)})},XHe=function(t){return(0,O.loc)({type:"array_bounds",bounds:(0,P.read)(t)})},QHe=function(t){return(0,O.loc)({type:"array_bounds",bounds:(0,P.read)(t)})},eWe=function(t,n){return(0,O.loc)({type:"named_data_type",name:(0,P.read)(t),params:n})},tWe=function(t){return t},rWe=function(t){return(0,O.loc)({type:"named_data_type",name:t})},iWe=function(t,n){return(0,O.loc)({type:"named_data_type",name:(0,P.read)(t),params:(0,P.read)(n)})},sWe=function(t,n){return(0,O.loc)({type:"named_data_type",name:(0,P.read)(t),params:(0,P.read)(n)})},nWe=function(t,n){return(0,O.loc)({type:"named_data_type",name:(0,P.read)(t),params:(0,P.read)(n)})},aWe=function(t){return(0,O.loc)({type:"generic_type_params",params:(0,P.read)(t)})},oWe=function(t,n,s){return(0,O.loc)({type:"struct_type_param",name:(0,P.read)(t),dataType:n,constraints:s.map(P.read)})},lWe=function(t,n){return(0,O.loc)({type:"array_type_param",dataType:t,constraints:n.map(P.read)})},dWe=function(t,n){return(0,O.loc)({type:"table_data_type",tableKw:(0,P.read)(t),columns:n})},uWe=function(t){return t},cWe=function(t){return t},pWe=function(t){return t},fWe=function(t){return t},hWe=function(t){return(0,P.read)(t)},yWe=function(t){return(0,P.read)(t)},mWe=function(t){return(0,P.read)(t)},vWe=function(t){return(0,P.read)(t)},EWe=function(t){return(0,P.read)(t)},TWe=function(t){return(0,P.read)(t)},IWe=function(t){return(0,P.read)(t)},AWe=function(t){return(0,P.read)(t)},bWe=function(t){return(0,P.read)(t)},wWe=function(t,n){return n.length===0?t:[t,...n.map(P.read)]},RWe=function(t){return t},_We=function(t){return t},gWe=function(t,n){return n?(0,O.loc)(n(t)):t},DWe=function(t,n,s,l){return c=>(0,M.createBinaryExpr)(c,t,n,s,l)},OWe=function(t,n){return(0,M.createBinaryExprChain)(t,n)},CWe=function(t,n){return(0,M.createBinaryExprChain)(t,n)},$We=function(t,n){return(0,M.createBinaryExprChain)(t,n)},PWe=function(t,n){return(0,M.createBinaryExprChain)(t,n)},NWe=function(t,n){return(0,M.createBinaryExprChain)(t,n)},VWe=function(t,n){return(0,O.loc)((0,M.createPrefixOpExpr)(t,(0,P.read)(n)))},LWe=function(t){return t},MWe=function(t){return t},BWe=function(t,n){return n?(0,O.loc)(n(t)):t},UWe=function(t){return n=>(0,M.createPostfixOpExpr)((0,P.read)(t),n)},jWe=function(t){return n=>(0,M.createBinaryExprChain)(n,t)},xWe=function(t,n){return(0,O.loc)((0,M.createBinaryExprChain)(t,n))},FWe=function(t,n){return n?(0,O.loc)(n(t)):t},GWe=function(t,n,s,l){return c=>(0,M.createBinaryExpr)(c,t,(0,P.read)(n),s,l)},SWe=function(t,n,s,l){return c=>(0,M.createBinaryExpr)(c,t,(0,P.read)(n),s,l)},KWe=function(t,n,s,l){return c=>({type:"between_expr",left:c,betweenKw:(0,P.read)(t),begin:(0,P.read)(n),andKw:(0,P.read)(s),end:(0,P.read)(l)})},kWe=function(t){return(0,P.read)(t)},qWe=function(t,n){return n?(0,O.loc)(n(t)):t},ZWe=function(t){return t},JWe=function(t){return n=>(0,M.createPostfixOpExpr)((0,P.read)(t),n)},YK=function(t){return t},HWe=function(t){return n=>(0,M.createBinaryExprChain)(n,t)},WWe=function(t,n,s,l){return l},YWe=function(t,n,s,l){return c=>(0,M.createBinaryExpr)(c,t,(0,P.read)(n),s,l)},zWe=function(t,n,s,l){return l},XWe=function(t,n,s,l){return c=>(0,M.createBinaryExpr)(c,t,(0,P.read)(n),s,l)},QWe=function(t,n,s,l){return c=>(0,M.createBinaryExpr)(c,t,(0,P.read)(n),s,l)},eYe=function(t,n,s,l){return c=>(0,M.createBinaryExpr)(c,t,(0,P.read)(n),s,l)},tYe=function(t,n,s,l){return c=>({type:"between_expr",left:c,betweenKw:(0,P.read)(t),begin:(0,P.read)(n),andKw:(0,P.read)(s),end:(0,P.read)(l)})},rYe=function(t){return t},iYe=function(t){return(0,P.read)(t)},sYe=function(t){return(0,P.read)(t)},nYe=function(t){return(0,P.read)(t)},aYe=function(t){return(0,P.read)(t)},oYe=function(t){return t},lYe=function(t){return t},dYe=function(t){return(0,P.read)(t)},uYe=function(t){return(0,P.read)(t)},cYe=function(t){return(0,P.read)(t)},pYe=function(t){return(0,P.read)(t)},fYe=function(t){return(0,P.read)(t)},hYe=function(t){return t},yYe=function(t){return t},mYe=function(t){return t},vYe=function(t,n,s,l,c){return(0,O.loc)((0,M.createBinaryExpr)(t,n,s,l,c))},EYe=function(t){return(0,P.read)(t)},TYe=function(t,n){return(0,O.loc)({type:"quantifier_expr",quantifierKw:(0,P.read)(t),expr:n})},IYe=function(t,n,s,l){return(0,O.loc)({type:"full_text_match_expr",matchKw:(0,P.read)(t),columns:(0,P.read)(n),againstKw:(0,P.read)(s),args:(0,P.read)(l)})},AYe=function(t,n){return(0,O.loc)({type:"full_text_match_args",expr:t,modifier:(0,P.read)(n)})},bYe=function(t){return(0,P.read)(t)},wYe=function(t){return t},RYe=function(t){return t},_Ye=function(t,n){return(0,M.createBinaryExprChain)(t,n)},gYe=function(t){return t},DYe=function(t,n){return(0,O.loc)({type:"postgresql_operator_expr",operatorKw:(0,P.read)(t),expr:n})},OYe=function(t,n){return(0,O.loc)({type:"member_expr",object:(0,P.read)(t),property:(0,P.read)(n)})},CYe=function(t){return(0,O.loc)({type:"postgresql_operator",operator:yt()})},$Ye=function(t,n){return(0,O.loc)((0,M.createPrefixOpExpr)(t,(0,P.read)(n)))},PYe=function(t,n){return(0,M.createBinaryExprChain)(t,n)},NYe=function(t,n){return(0,M.createBinaryExprChain)(t,n)},VYe=function(t,n){return(0,M.createBinaryExprChain)(t,n)},LYe=function(t,n){return(0,M.createBinaryExprChain)(t,n)},MYe=function(t,n){return(0,M.createBinaryExprChain)(t,n)},BYe=function(t){return(0,P.read)(t)},UYe=function(t,n){return(0,O.loc)((0,M.createPrefixOpExpr)(t,(0,P.read)(n)))},jYe=function(t,n){return(0,M.createCastOperatorExprChain)(t,n)},xYe=function(t,n){return(0,M.createBinaryExprChain)(t,n)},FYe=function(t,n){return(0,M.createBinaryExprChain)(t,n)},GYe=function(t){return t},SYe=function(t,n){return(0,M.createBinaryExprChain)(t,n)},KYe=function(t,n){return(0,M.createBinaryExprChain)(t,n)},kYe=function(t,n){return(0,M.createBinaryExprChain)(t,n)},qYe=function(t,n){return(0,M.createBinaryExprChain)(t,n)},ZYe=function(t){return t},JYe=function(t){return t},HYe=function(t){return t},WYe=function(t){return t},YYe=function(t,n){return(0,M.createBinaryExprChain)(t,n)},zYe=function(t){return t},XYe=function(t,n){return(0,M.createBinaryExprChain)(t,n)},QYe=function(t){return t},eze=function(t){return t},tze=function(t){return t},rze=function(t,n){return(0,O.loc)((0,M.createPrefixOpExpr)(t,(0,P.read)(n)))},ize=function(t,n){return(0,M.createBinaryExprChain)(t,n)},sze=function(t){return t},nze=function(t,n){return(0,O.loc)((0,M.createPrefixOpExpr)(t,(0,P.read)(n)))},aze=function(t){return t},oze=function(t){return t},lze=function(t,n){return(0,O.loc)((0,M.createFuncCall)(t,n))},dze=function(t,n){return(0,M.createMemberExprChain)(t,n)},uze=function(t,n){return(0,M.createMemberExprChain)(t,n)},cze=function(t){return(0,O.loc)({type:"array_subscript",expr:(0,P.read)(t)})},pze=function(t,n){return(0,O.loc)({type:"array_subscript_specifier",specifierKw:t,args:(0,P.read)(n)})},fze=function(t,n){return(0,O.loc)({type:"array_slice_specifier",from:(0,P.read)(t),to:(0,P.read)(n)})},hze=function(t){return t},yze=function(t){return t},mze=function(t){return t},vze=function(t){return t},Eze=function(t){return t},Tze=function(t){return t},Ize=function(t){return t},Aze=function(t){return t},bze=function(t,n,s){return n.items.length>1?(0,fi.isBigquery)()?(0,O.loc)({type:"struct_expr",expr:(0,Hn.surrounding)(t,n,s)}):(0,O.loc)({type:"paren_expr",expr:(0,Hn.surrounding)(t,n,s)}):(0,O.loc)({type:"paren_expr",expr:(0,Hn.surrounding)(t,n.items[0],s)})},wze=function(t,n){return(0,O.loc)({type:"cast_expr",castKw:t,args:(0,P.read)(n)})},Rze=function(t){return t},_ze=function(t,n,s,l){return(0,O.loc)({type:"cast_arg",expr:(0,P.read)(t),asKw:n,dataType:(0,P.read)(s),format:(0,P.read)(l)})},gze=function(t,n,s){return(0,O.loc)({type:"cast_format",formatKw:(0,P.read)(t),string:n,timezone:(0,P.read)(s)})},Dze=function(t,n){return(0,O.loc)({type:"cast_format_timezone",atTimeZoneKw:(0,P.read)(t),timezone:n})},Oze=function(t,n){return(0,O.loc)({type:"raise_expr",raiseKw:t,args:(0,P.read)(n)})},Cze=function(t,n){return(0,O.loc)((0,M.createListExpr)(t,n))},$ze=function(t){return(0,O.loc)({type:"raise_expr_type",typeKw:t})},Pze=function(t,n){return(0,O.loc)({type:"extract_expr",extractKw:(0,P.read)(t),args:n})},Nze=function(t,n,s){return(0,O.loc)({type:"extract_from",unit:t,fromKw:(0,P.read)(n),expr:s})},Vze=function(t){return t},Lze=function(t){return t},Mze=function(t){return t},Bze=function(t){return(0,O.loc)({type:"interval_unit",unitKw:t})},Uze=function(t){return(0,O.loc)({type:"interval_unit",unitKw:t})},jze=function(t,n){return(0,O.loc)({type:"week_expr",weekKw:(0,P.read)(t),args:n})},xze=function(t,n){return(0,O.loc)((0,M.createFuncCall)(t,n))},Fze=function(t,n,s){return{type:"func_call_right",args:t,filter:(0,P.read)(n),over:(0,P.read)(s)}},Gze=function(t){return(0,O.loc)((0,M.createIdentifier)(t.text,t.text))},Sze=function(t){return(0,O.loc)((0,M.createIdentifier)(t.text,t.text))},Kze=function(t){return(0,O.loc)((0,M.createIdentifier)(t.text,t.text))},kze=function(t){return(0,O.loc)((0,M.createIdentifier)(t.text,t.text))},qze=function(t){return(0,O.loc)({type:"func_call",name:t})},Zze=function(t){return(0,O.loc)((0,M.createIdentifier)(t.text,t.text))},Jze=function(t){return t},Hze=function(t){return t},Wze=function(t){return t},Yze=function(t,n,s,l,c,h){return(0,O.loc)({type:"func_args",distinctKw:(0,P.read)(t),args:n,nullHandlingKw:(0,P.read)(s),orderBy:(0,P.read)(l),limit:(0,P.read)(c),having:(0,P.read)(h)})},zze=function(t,n){return(0,O.loc)((0,M.createListExpr)(t,n))},Xze=function(){return(0,O.loc)({type:"list_expr",items:[]})},Qze=function(t){return t},eXe=function(t){return t},tXe=function(t,n,s){return(0,O.loc)({type:"named_arg",name:(0,P.read)(t),operator:n,value:(0,P.read)(s)})},rXe=function(t){return t},iXe=function(t,n){return(0,O.loc)({type:"filter_arg",filterKw:(0,P.read)(t),where:n})},sXe=function(t,n){return(0,O.loc)({type:"over_arg",overKw:(0,P.read)(t),window:n})},nXe=function(t,n,s){return(0,O.loc)({type:"having_arg",havingKw:(0,P.read)(t),minMaxKw:(0,P.read)(n),expr:(0,P.read)(s)})},aXe=function(t,n,s,l,c){return(0,O.loc)({type:"case_expr",caseKw:t,expr:(0,P.read)(n),clauses:[...s.map(P.read),...l?[(0,P.read)(l)]:[]],endKw:(0,P.read)(c)})},oXe=function(t,n,s,l){return(0,O.loc)({type:"case_when",whenKw:t,condition:(0,P.read)(n),thenKw:s,result:(0,P.read)(l)})},lXe=function(t,n){return(0,O.loc)({type:"case_else",elseKw:t,result:(0,P.read)(n)})},dXe=function(t,n,s){return{type:"interval_expr",intervalKw:t,expr:(0,P.read)(n),unit:s}},uXe=function(t,n,s){return(0,O.loc)({type:"interval_unit_range",fromUnit:t,toKw:(0,P.read)(n),toUnit:s})},cXe=function(t){return(0,O.loc)({type:"interval_unit",unitKw:t})},pXe=function(t){return t},fXe=function(t,n){return(0,O.loc)((0,M.createPrefixOpExpr)(t,(0,P.read)(n)))},hXe=function(){return(0,fi.hasParamType)("?nr")},yXe=function(){return(0,fi.hasParamType)("?")},mXe=function(){return(0,fi.hasParamType)(":name")},vXe=function(){return(0,fi.hasParamType)("$nr")},EXe=function(){return(0,fi.hasParamType)("$name")},TXe=function(){return(0,fi.hasParamType)("@name")},IXe=function(){return(0,fi.hasParamType)("@`name`")},AXe=function(){return(0,O.loc)({type:"parameter",text:yt()})},bXe=function(t,n,s){return(0,O.loc)((0,M.createParenExpr)(t,n,s))},wXe=function(t,n,s){return(0,O.loc)((0,M.createParenExpr)(t,n,s))},RXe=function(t,n,s){return(0,O.loc)((0,M.createParenExpr)(t,n,s))},_Xe=function(t,n,s){return(0,O.loc)((0,M.createParenExpr)(t,n,s))},gXe=function(t,n,s){return(0,O.loc)((0,M.createParenExpr)(t,n,s))},DXe=function(t,n,s){return(0,O.loc)((0,M.createParenExpr)(t,n,s))},OXe=function(t,n,s){return(0,O.loc)((0,M.createParenExpr)(t,n,s))},CXe=function(t,n,s){return(0,O.loc)((0,M.createParenExpr)(t,n,s))},$Xe=function(t,n,s){return(0,O.loc)((0,M.createParenExpr)(t,n,s))},PXe=function(t,n,s){return(0,O.loc)((0,M.createParenExpr)(t,n,s))},NXe=function(t,n,s){return(0,O.loc)((0,M.createParenExpr)(t,n,s))},VXe=function(t,n,s){return(0,O.loc)((0,M.createParenExpr)(t,n,s))},LXe=function(t,n,s){return(0,O.loc)((0,M.createParenExpr)(t,n,s))},MXe=function(t,n,s){return(0,O.loc)((0,M.createParenExpr)(t,n,s))},BXe=function(t,n,s){return(0,O.loc)((0,M.createParenExpr)(t,n,s))},UXe=function(t,n,s){return(0,O.loc)((0,M.createParenExpr)(t,n,s))},jXe=function(t,n,s){return(0,O.loc)((0,M.createParenExpr)(t,n,s))},xXe=function(t,n,s){return(0,O.loc)((0,M.createParenExpr)(t,n,s))},FXe=function(t,n,s){return(0,O.loc)((0,M.createParenExpr)(t,n,s))},GXe=function(t,n,s){return(0,O.loc)((0,M.createParenExpr)(t,n,s))},SXe=function(t,n,s){return(0,O.loc)((0,M.createParenExpr)(t,n,s))},KXe=function(t,n,s){return(0,O.loc)((0,M.createParenExpr)(t,n,s))},kXe=function(t,n,s){return(0,O.loc)((0,M.createParenExpr)(t,n,s))},qXe=function(t,n,s){return(0,O.loc)((0,M.createParenExpr)(t,n,s))},ZXe=function(t,n,s){return(0,O.loc)((0,M.createParenExpr)(t,n,s))},JXe=function(t,n,s){return(0,O.loc)((0,M.createParenExpr)(t,n,s))},HXe=function(t,n,s){return(0,O.loc)((0,M.createParenExpr)(t,n,s))},WXe=function(t,n,s){return(0,O.loc)((0,M.createParenExpr)(t,n,s))},YXe=function(t,n,s){return(0,O.loc)((0,M.createParenExpr)(t,n,s))},zXe=function(t,n,s){return(0,O.loc)((0,M.createParenExpr)(t,n,s))},XXe=function(t,n,s){return(0,O.loc)((0,M.createParenExpr)(t,n,s))},QXe=function(t,n,s){return(0,O.loc)((0,M.createParenExpr)(t,n,s))},eQe=function(t,n,s){return(0,O.loc)((0,M.createParenExpr)(t,n,s))},tQe=function(t,n,s){return(0,O.loc)((0,M.createParenExpr)(t,n,s))},rQe=function(t,n,s){return(0,O.loc)((0,M.createParenExpr)(t,n,s))},iQe=function(t,n,s){return(0,O.loc)((0,M.createParenExpr)(t,n,s))},sQe=function(t,n,s){return(0,O.loc)((0,M.createParenExpr)(t,n,s))},nQe=function(t,n,s){return(0,O.loc)((0,M.createParenExpr)(t,n,s))},aQe=function(t,n,s){return(0,O.loc)((0,M.createParenExpr)(t,n,s))},oQe=function(t,n,s){return(0,O.loc)((0,M.createParenExpr)(t,n,s))},lQe=function(t,n,s){return(0,O.loc)((0,M.createParenExpr)(t,n,s))},dQe=function(t,n,s){return(0,O.loc)((0,M.createParenExpr)(t,n,s))},uQe=function(t,n,s){return(0,O.loc)((0,M.createParenExpr)(t,n,s))},cQe=function(t,n,s){return(0,O.loc)((0,M.createParenExpr)(t,n,s))},pQe=function(t,n,s){return(0,O.loc)((0,M.createParenExpr)(t,n,s))},fQe=function(t,n,s){return(0,O.loc)((0,M.createParenExpr)(t,n,s))},hQe=function(t,n,s){return(0,O.loc)((0,M.createParenExpr)(t,n,s))},yQe=function(t,n,s){return(0,O.loc)((0,M.createParenExpr)(t,n,s))},mQe=function(t,n,s){return(0,O.loc)((0,M.createParenExpr)(t,n,s))},vQe=function(t,n){return(0,O.loc)((0,M.createListExpr)(t,n))},EQe=function(t,n){return(0,O.loc)((0,M.createListExpr)(t,n))},TQe=function(t,n){return(0,O.loc)((0,M.createListExpr)(t,n))},IQe=function(t,n){return(0,O.loc)((0,M.createListExpr)(t,n))},AQe=function(t,n){return(0,O.loc)((0,M.createListExpr)(t,n))},bQe=function(t,n){return(0,O.loc)((0,M.createListExpr)(t,n))},wQe=function(t,n){return(0,O.loc)((0,M.createListExpr)(t,n))},RQe=function(t,n){return(0,O.loc)((0,M.createListExpr)(t,n))},_Qe=function(t,n){return(0,O.loc)((0,M.createListExpr)(t,n))},gQe=function(t,n){return(0,O.loc)((0,M.createListExpr)(t,n))},DQe=function(t,n){return(0,O.loc)((0,M.createListExpr)(t,n))},OQe=function(t,n){return(0,O.loc)((0,M.createListExpr)(t,n))},CQe=function(t,n){return(0,O.loc)((0,M.createListExpr)(t,n))},$Qe=function(t,n){return(0,O.loc)((0,M.createListExpr)(t,n))},PQe=function(t,n){return(0,O.loc)((0,M.createListExpr)(t,n))},NQe=function(t,n){return(0,O.loc)((0,M.createListExpr)(t,n))},VQe=function(t,n){return(0,O.loc)((0,M.createListExpr)(t,n))},LQe=function(t,n){return(0,O.loc)((0,M.createListExpr)(t,n))},MQe=function(t,n){return(0,O.loc)((0,M.createListExpr)(t,n))},BQe=function(t,n){return(0,O.loc)((0,M.createListExpr)(t,n))},UQe=function(t,n){return(0,O.loc)((0,M.createListExpr)(t,n))},jQe=function(t,n){return(0,O.loc)((0,M.createListExpr)(t,n))},xQe=function(t,n){return(0,O.loc)((0,M.createListExpr)(t,n))},FQe=function(t,n){return(0,O.loc)((0,M.createListExpr)(t,n))},GQe=function(t,n){return(0,O.loc)((0,M.createListExpr)(t,n))},SQe=function(t,n){return(0,O.loc)((0,M.createListExpr)(t,n))},KQe=function(t,n){return(0,O.loc)((0,M.createListExpr)(t,n))},kQe=function(t,n){return(0,O.loc)((0,M.createListExpr)(t,n))},qQe=function(t,n){return(0,O.loc)((0,M.createListExpr)(t,n))},ZQe=function(t,n){return(0,O.loc)((0,M.createListExpr)(t,n))},JQe=function(t,n){return(0,O.loc)((0,M.createListExpr)(t,n))},HQe=function(t,n){return(0,O.loc)((0,M.createListExpr)(t,n))},WQe=function(t,n){return(0,O.loc)((0,M.createListExpr)(t,n))},YQe=function(t,n){return(0,O.loc)((0,M.createListExpr)(t,n))},zQe=function(t,n){return(0,O.loc)((0,M.createListExpr)(t,n))},XQe=function(t,n){return(0,O.loc)((0,M.createListExpr)(t,n))},QQe=function(t,n){return(0,O.loc)((0,M.createListExpr)(t,n))},eet=function(t,n){return(0,O.loc)((0,M.createListExpr)(t,n))},tet=function(t,n){return(0,O.loc)((0,M.createListExpr)(t,n))},ret=function(t,n){return(0,O.loc)((0,M.createListExpr)(t,n))},iet=function(t,n){return(0,O.loc)((0,M.createListExpr)(t,n))},set=function(t,n){return(0,O.loc)((0,M.createListExpr)(t,n))},net=function(t,n){return(0,O.loc)((0,M.createListExpr)(t,n))},aet=function(t,n){return(0,O.loc)((0,M.createListExpr)(t,n))},oet=function(t,n){return(0,O.loc)((0,M.createListExpr)(t,n))},det=function(t,n){return(0,O.loc)((0,M.createListExpr)(t,n))},uet=function(t,n){return(0,O.loc)((0,M.createListExpr)(t,n))},cet=function(t,n){return(0,O.loc)((0,M.createListExpr)(t,n))},pet=function(t,n){return(0,O.loc)((0,M.createListExpr)(t,n))},fet=function(t,n){return(0,O.loc)((0,M.createListExpr)(t,n))},het=function(t,n){return(0,O.loc)((0,M.createListExpr)(t,n))},yet=function(t,n){return(0,O.loc)((0,M.createListExpr)(t,n))},met=function(){return(0,O.loc)({type:"list_expr",items:[]})},vet=function(t,n){return(0,O.loc)((0,M.createAlias)(t,n))},Eet=function(t,n){return(0,O.loc)((0,M.createAlias)(t,n))},Tet=function(t,n){return(0,O.loc)((0,M.createAlias)(t,n))},Iet=function(t,n){return(0,O.loc)((0,M.createAlias)(t,n))},Aet=function(t,n){return(0,O.loc)((0,M.createAlias)(t,n))},bet=function(t,n){return(0,O.loc)((0,M.createAlias)(t,n))},wet=function(t,n){return(0,O.loc)((0,M.createAlias)(t,n))},Ret=function(t,n){return(0,O.loc)((0,M.createAlias)(t,n))},_et=function(t,n){return(0,O.loc)((0,M.createAlias)(t,n))},get=function(t,n){return(0,O.loc)({type:"as_clause",asKw:(0,P.read)(t),expr:n})},Det=function(t,n){return(0,O.loc)({type:"as_clause",asKw:(0,P.read)(t),expr:n})},Oet=function(t,n){return(0,O.loc)({type:"as_clause",asKw:(0,P.read)(t),expr:n})},Cet=function(t,n){return(0,O.loc)({type:"as_clause",asKw:(0,P.read)(t),expr:n})},$et=function(t,n){return(0,O.loc)({type:"member_expr",object:(0,P.read)(t),property:(0,P.read)(n)})},Pet=function(t){return(0,O.loc)((0,M.createIdentifier)(t,t))},Net=function(t){return(0,O.loc)((0,M.createIdentifier)(t.text,t.value))},Vet=function(t){return(0,O.loc)((0,M.createIdentifier)(t,t))},Let=function(t){return(0,X3.isReservedKeyword)(t)},Met=function(t){return(0,O.loc)((0,M.createIdentifier)(t,t))},Bet=function(t){return t},Uet=function(t){return t},jet=function(t){return t},xet=function(t){return(0,O.loc)((0,M.createIdentifier)(t.text,t.value))},Fet=function(t){return t},Get=function(t,n){return(0,M.createBinaryExprChain)(t,n)},Ket=function(t){return(0,O.loc)((0,M.createIdentifier)(t.text,t.value))},ket=function(t){return(0,O.loc)((0,M.createIdentifier)(yt(),t.join("")))},qet=function(){return"`"},Zet=function(t){return(0,O.loc)((0,M.createIdentifier)(yt(),t.join("")))},Jet=function(t){return(0,O.loc)({type:"bigquery_quoted_member_expr",expr:t})},Het=function(t,n){return(0,M.createMemberExprChain)(t,n)},Wet=function(){return(0,O.loc)((0,M.createIdentifier)(yt(),yt()))},Yet=function(){return!0},zet=function(){return[]},Xet=function(t){return(0,O.loc)((0,M.createIdentifier)(yt(),t.join("")))},Qet=function(){return"]"},ett=function(){return yt()},ttt=function(){return yt()},rtt=function(){return yt()},itt=function(t){return(0,O.loc)({type:"variable",name:t,text:yt()})},stt=function(t){return(0,O.loc)({type:"variable",name:t.name,text:yt()})},ntt=function(t){return(0,O.loc)({type:"variable",name:t.value,text:yt()})},att=function(t){return(0,O.loc)({type:"variable",name:t,text:yt()})},ott=function(t,n){return(0,O.loc)({type:"typed_expr",dataType:(0,P.read)(t),expr:n})},ltt=function(t){return(0,O.loc)({type:"array_expr",expr:(0,P.read)(t)})},dtt=function(t,n){return(0,O.loc)({type:"typed_expr",dataType:(0,P.read)(t),expr:n})},utt=function(t){return(0,O.loc)({type:"struct_expr",expr:(0,P.read)(t)})},ctt=function(t,n){return(0,O.loc)((0,M.createAlias)(t,n))},ptt=function(t){return(0,O.loc)({type:"null_literal",nullKw:t,value:null})},ftt=function(t){return(0,O.loc)({type:"boolean_literal",valueKw:t,value:!0})},htt=function(t){return(0,O.loc)({type:"boolean_literal",valueKw:t,value:!1})},ytt=function(t){return t},mtt=function(t){return t},vtt=function(t,n){return(0,O.loc)({type:"string_with_charset",charset:t,string:(0,P.read)(n)})},Ett=function(t){return t},Ttt=function(t){return t},Itt=function(t){return t},Att=function(t){return t},btt=function(t,n){return(0,M.createStringConcatExprChain)(t,n)},wtt=function(t,n){return(0,M.createStringConcatExprChain)(t,n)},Rtt=function(t){return t},_tt=function(){return yt()},gtt=function(t,n){return(0,M.createBinaryExprChain)(t,n)},Dtt=function(t,n){return(0,M.createBinaryExprChain)(t,n)},Ott=function(t,n){return(0,M.createBinaryExprChain)(t,n)},Ctt=function(t,n){return(0,M.createBinaryExprChain)(t,n)},$tt=function(t){return(0,O.loc)({type:"string_literal",text:yt(),value:t.join("")})},Ptt=function(t){return(0,O.loc)({type:"string_literal",text:yt(),value:t.value})},Ntt=function(t){return(0,O.loc)({type:"string_literal",text:yt(),value:t.value})},Vtt=function(t){return(0,O.loc)({type:"string_literal",text:yt(),value:t.value})},Ltt=function(t){return(0,O.loc)({type:"string_literal",text:yt(),value:t.join("")})},Mtt=function(t){return(0,O.loc)({type:"string_literal",text:yt(),value:t.join("")})},Btt=function(){return"'"},Utt=function(t){return(0,O.loc)({type:"string_literal",text:yt(),value:t.join("")})},jtt=function(){return'"'},xtt=function(t){return(0,O.loc)({type:"string_literal",text:yt(),value:t.join("")})},Ftt=function(t){return(0,O.loc)({type:"string_literal",text:yt(),value:t.join("")})},Gtt=function(t){return(0,O.loc)({type:"string_literal",text:yt(),value:t.join("")})},Stt=function(t){return t},Ktt=function(t){return(0,O.loc)({type:"string_literal",text:yt(),value:t.join("")})},ktt=function(t){return t},qtt=function(){return`
101
101
  `},Ztt=function(){return"\r"},Jtt=function(){return" "},Htt=function(){return"\b"},Wtt=function(){return"\f"},Ytt=function(){return"\v"},ztt=function(){return"\x07"},Xtt=function(t){return String.fromCodePoint(parseInt(t,8))},Qtt=function(t){return String.fromCodePoint(parseInt(t,8))},ert=function(t){return String.fromCodePoint(parseInt(t,16))},trt=function(t){return String.fromCodePoint(parseInt(t,16))},rrt=function(t){return String.fromCodePoint(parseInt(t,16))},irt=function(t){return String.fromCodePoint(parseInt(t,16))},srt=function(){return"\\%"},nrt=function(){return"\\_"},art=function(){return"\0"},ort=function(){return""},lrt=function(t){return t},drt=function(t){return(0,O.loc)({type:"string_literal",text:yt(),value:t.value})},urt=function(t){return(0,O.loc)({type:"string_literal",text:yt(),value:t})},crt=function(t){return(0,O.loc)({type:"blob_literal",text:yt(),value:(0,Fd.parseTextBlob)(t)})},prt=function(t){return t},frt=function(t){return t},hrt=function(t){return t},yrt=function(t){return t},mrt=function(t){return(0,O.loc)({type:"string_literal",text:yt(),value:t})},zK=function(t,n){return t===n},vrt=function(t,n,s){return t===s},Ert=function(t,n,s){return(0,O.loc)({type:"string_literal",text:yt(),value:n})},Trt=function(){return yt()},Irt=function(t){return(0,O.loc)({type:"blob_literal",text:yt(),value:(0,Fd.parseTextBlob)(t.value)})},Art=function(t,n){return(0,O.loc)({type:"datetime_literal",datetimeKw:t,string:(0,P.read)(n)})},brt=function(t,n){return(0,O.loc)({type:"timestamp_literal",timestampKw:t,string:(0,P.read)(n)})},wrt=function(t,n){return(0,O.loc)({type:"date_literal",dateKw:t,string:(0,P.read)(n)})},Rrt=function(t,n){return(0,O.loc)({type:"time_literal",timeKw:t,string:(0,P.read)(n)})},_rt=function(t,n){return(0,O.loc)({type:"json_literal",jsonKw:t,string:(0,P.read)(n)})},grt=function(t,n){return(0,O.loc)({type:"jsonb_literal",jsonbKw:t,string:(0,P.read)(n)})},Drt=function(t,n){return(0,O.loc)({type:"numeric_literal",numericKw:t,string:(0,P.read)(n)})},Ort=function(t,n){return(0,O.loc)({type:"bignumeric_literal",bignumericKw:t,string:(0,P.read)(n)})},Crt=function(t,n){return(0,O.loc)({type:"interval_literal",intervalKw:t,string:(0,P.read)(n)})},$rt=function(t){return t},Prt=function(t){return t},Nrt=function(t){return t},Vrt=function(t){return t},Lrt=function(t){return t},Mrt=function(t){return(0,O.loc)({type:"blob_literal",text:yt(),value:(0,Fd.parseHexBlob)(t)})},Brt=function(t){return(0,O.loc)({type:"blob_literal",text:yt(),value:(0,Fd.parseBitBlob)(t)})},Urt=function(t,n){return(0,O.loc)((0,M.createPrefixOpExpr)(t,(0,P.read)(n)))},jrt=function(t){return t},xrt=function(t){return t},Frt=function(t){return t},Grt=function(){return(0,O.loc)({type:"number_literal",text:yt(),value:parseInt(yt().replace(/_/g,""),16)})},Srt=function(){return(0,O.loc)({type:"number_literal",text:yt(),value:parseInt(yt(),16)})},Krt=function(t){return(0,O.loc)({type:"blob_literal",text:yt(),value:(0,Fd.parseHexBlob)(t)})},krt=function(t){return(0,O.loc)({type:"number_literal",text:yt(),value:parseInt(t.replace(/_/g,""),2)})},qrt=function(t){return(0,O.loc)({type:"blob_literal",text:yt(),value:(0,Fd.parseBitBlob)(t)})},Zrt=function(t){return(0,O.loc)({type:"number_literal",text:yt(),value:parseInt(t.replace(/_/g,""),8)})},Jrt=function(){return(0,O.loc)({type:"number_literal",text:yt(),value:parseFloat(yt().replace(/_/g,""))})},Hrt=function(){return(0,O.loc)({type:"number_literal",text:yt(),value:parseFloat(yt())})},Wrt=function(){return yt()},Yrt=function(t){return t.filter(fi.isEnabledWhitespace)},zrt=function(t){return t.filter(fi.isEnabledWhitespace)},Xrt=function(t){return t},Qrt=function(t){return t},eit=function(t){return t},tit=function(){return(0,O.loc)({type:"block_comment",text:yt()})},rit=function(){return(0,O.loc)({type:"block_comment",text:yt()})},iit=function(){return(0,O.loc)({type:"line_comment",text:yt()})},sit=function(){return(0,O.loc)({type:"line_comment",text:yt()})},nit=function(){return{type:"space",text:yt()}},ait=function(){return{type:"newline",text:yt()}},oit=function(){return(0,fi.isBigquery)()},lit=function(){return(0,fi.isSqlite)()},dit=function(){return(0,fi.isMysql)()||(0,fi.isMariadb)()},uit=function(){return(0,fi.isMysql)()},cit=function(){return(0,fi.isMariadb)()},pit=function(){return(0,fi.isPostgresql)()},fit=function(){return(0,O.loc)({type:"unsupported_grammar_stmt",text:yt()})},hit=function(t){return(0,O.loc)((0,M.createKeyword)(t))},yit=function(t){return(0,X3.isReservedKeyword)(t)},mit=function(t){return(0,O.loc)((0,M.createKeyword)(t))},vit=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Eit=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Tit=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Iit=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Ait=function(t){return(0,O.loc)((0,M.createKeyword)(t))},bit=function(t){return(0,O.loc)((0,M.createKeyword)(t))},wit=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Rit=function(t){return(0,O.loc)((0,M.createKeyword)(t))},_it=function(t){return(0,O.loc)((0,M.createKeyword)(t))},git=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Dit=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Oit=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Cit=function(t){return(0,O.loc)((0,M.createKeyword)(t))},$it=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Pit=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Nit=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Vit=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Lit=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Mit=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Bit=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Uit=function(t){return(0,O.loc)((0,M.createKeyword)(t))},jit=function(t){return(0,O.loc)((0,M.createKeyword)(t))},xit=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Fit=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Git=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Sit=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Kit=function(t){return(0,O.loc)((0,M.createKeyword)(t))},kit=function(t){return(0,O.loc)((0,M.createKeyword)(t))},qit=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Zit=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Jit=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Hit=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Wit=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Yit=function(t){return(0,O.loc)((0,M.createKeyword)(t))},zit=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Xit=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Qit=function(t){return(0,O.loc)((0,M.createKeyword)(t))},est=function(t){return(0,O.loc)((0,M.createKeyword)(t))},tst=function(t){return(0,O.loc)((0,M.createKeyword)(t))},rst=function(t){return(0,O.loc)((0,M.createKeyword)(t))},ist=function(t){return(0,O.loc)((0,M.createKeyword)(t))},sst=function(t){return(0,O.loc)((0,M.createKeyword)(t))},nst=function(t){return(0,O.loc)((0,M.createKeyword)(t))},ast=function(t){return(0,O.loc)((0,M.createKeyword)(t))},ost=function(t){return(0,O.loc)((0,M.createKeyword)(t))},lst=function(t){return(0,O.loc)((0,M.createKeyword)(t))},dst=function(t){return(0,O.loc)((0,M.createKeyword)(t))},ust=function(t){return(0,O.loc)((0,M.createKeyword)(t))},cst=function(t){return(0,O.loc)((0,M.createKeyword)(t))},pst=function(t){return(0,O.loc)((0,M.createKeyword)(t))},fst=function(t){return(0,O.loc)((0,M.createKeyword)(t))},hst=function(t){return(0,O.loc)((0,M.createKeyword)(t))},yst=function(t){return(0,O.loc)((0,M.createKeyword)(t))},mst=function(t){return(0,O.loc)((0,M.createKeyword)(t))},vst=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Est=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Tst=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Ist=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Ast=function(t){return(0,O.loc)((0,M.createKeyword)(t))},bst=function(t){return(0,O.loc)((0,M.createKeyword)(t))},wst=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Rst=function(t){return(0,O.loc)((0,M.createKeyword)(t))},_st=function(t){return(0,O.loc)((0,M.createKeyword)(t))},gst=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Dst=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Ost=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Cst=function(t){return(0,O.loc)((0,M.createKeyword)(t))},$st=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Pst=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Nst=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Vst=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Lst=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Mst=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Bst=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Ust=function(t){return(0,O.loc)((0,M.createKeyword)(t))},jst=function(t){return(0,O.loc)((0,M.createKeyword)(t))},xst=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Fst=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Gst=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Sst=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Kst=function(t){return(0,O.loc)((0,M.createKeyword)(t))},kst=function(t){return(0,O.loc)((0,M.createKeyword)(t))},qst=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Zst=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Jst=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Hst=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Wst=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Yst=function(t){return(0,O.loc)((0,M.createKeyword)(t))},zst=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Xst=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Qst=function(t){return(0,O.loc)((0,M.createKeyword)(t))},ent=function(t){return(0,O.loc)((0,M.createKeyword)(t))},tnt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},rnt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},int=function(t){return(0,O.loc)((0,M.createKeyword)(t))},snt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},nnt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},ant=function(t){return(0,O.loc)((0,M.createKeyword)(t))},ont=function(t){return(0,O.loc)((0,M.createKeyword)(t))},lnt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},dnt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},unt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},cnt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},pnt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},fnt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},hnt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},ynt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},mnt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},vnt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Ent=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Tnt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Int=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Ant=function(t){return(0,O.loc)((0,M.createKeyword)(t))},bnt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},wnt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Rnt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},_nt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},gnt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Dnt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Ont=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Cnt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},$nt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Pnt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Nnt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Vnt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Lnt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Mnt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Bnt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Unt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},jnt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},xnt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Fnt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Gnt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Snt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Knt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},knt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},qnt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Znt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Jnt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Hnt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Wnt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Ynt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},znt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Xnt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Qnt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},eat=function(t){return(0,O.loc)((0,M.createKeyword)(t))},tat=function(t){return(0,O.loc)((0,M.createKeyword)(t))},rat=function(t){return(0,O.loc)((0,M.createKeyword)(t))},iat=function(t){return(0,O.loc)((0,M.createKeyword)(t))},sat=function(t){return(0,O.loc)((0,M.createKeyword)(t))},nat=function(t){return(0,O.loc)((0,M.createKeyword)(t))},aat=function(t){return(0,O.loc)((0,M.createKeyword)(t))},oat=function(t){return(0,O.loc)((0,M.createKeyword)(t))},lat=function(t){return(0,O.loc)((0,M.createKeyword)(t))},dat=function(t){return(0,O.loc)((0,M.createKeyword)(t))},uat=function(t){return(0,O.loc)((0,M.createKeyword)(t))},cat=function(t){return(0,O.loc)((0,M.createKeyword)(t))},pat=function(t){return(0,O.loc)((0,M.createKeyword)(t))},fat=function(t){return(0,O.loc)((0,M.createKeyword)(t))},hat=function(t){return(0,O.loc)((0,M.createKeyword)(t))},yat=function(t){return(0,O.loc)((0,M.createKeyword)(t))},mat=function(t){return(0,O.loc)((0,M.createKeyword)(t))},vat=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Eat=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Tat=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Iat=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Aat=function(t){return(0,O.loc)((0,M.createKeyword)(t))},bat=function(t){return(0,O.loc)((0,M.createKeyword)(t))},wat=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Rat=function(t){return(0,O.loc)((0,M.createKeyword)(t))},_at=function(t){return(0,O.loc)((0,M.createKeyword)(t))},gat=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Dat=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Oat=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Cat=function(t){return(0,O.loc)((0,M.createKeyword)(t))},$at=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Pat=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Nat=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Vat=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Lat=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Mat=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Bat=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Uat=function(t){return(0,O.loc)((0,M.createKeyword)(t))},jat=function(t){return(0,O.loc)((0,M.createKeyword)(t))},xat=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Fat=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Gat=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Sat=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Kat=function(t){return(0,O.loc)((0,M.createKeyword)(t))},kat=function(t){return(0,O.loc)((0,M.createKeyword)(t))},qat=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Zat=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Jat=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Hat=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Wat=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Yat=function(t){return(0,O.loc)((0,M.createKeyword)(t))},zat=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Xat=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Qat=function(t){return(0,O.loc)((0,M.createKeyword)(t))},eot=function(t){return(0,O.loc)((0,M.createKeyword)(t))},tot=function(t){return(0,O.loc)((0,M.createKeyword)(t))},rot=function(t){return(0,O.loc)((0,M.createKeyword)(t))},iot=function(t){return(0,O.loc)((0,M.createKeyword)(t))},sot=function(t){return(0,O.loc)((0,M.createKeyword)(t))},not=function(t){return(0,O.loc)((0,M.createKeyword)(t))},aot=function(t){return(0,O.loc)((0,M.createKeyword)(t))},oot=function(t){return(0,O.loc)((0,M.createKeyword)(t))},lot=function(t){return(0,O.loc)((0,M.createKeyword)(t))},dot=function(t){return(0,O.loc)((0,M.createKeyword)(t))},uot=function(t){return(0,O.loc)((0,M.createKeyword)(t))},cot=function(t){return(0,O.loc)((0,M.createKeyword)(t))},pot=function(t){return(0,O.loc)((0,M.createKeyword)(t))},fot=function(t){return(0,O.loc)((0,M.createKeyword)(t))},hot=function(t){return(0,O.loc)((0,M.createKeyword)(t))},yot=function(t){return(0,O.loc)((0,M.createKeyword)(t))},mot=function(t){return(0,O.loc)((0,M.createKeyword)(t))},vot=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Eot=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Tot=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Iot=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Aot=function(t){return(0,O.loc)((0,M.createKeyword)(t))},bot=function(t){return(0,O.loc)((0,M.createKeyword)(t))},wot=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Rot=function(t){return(0,O.loc)((0,M.createKeyword)(t))},_ot=function(t){return(0,O.loc)((0,M.createKeyword)(t))},got=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Dot=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Oot=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Cot=function(t){return(0,O.loc)((0,M.createKeyword)(t))},$ot=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Pot=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Not=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Vot=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Lot=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Mot=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Bot=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Uot=function(t){return(0,O.loc)((0,M.createKeyword)(t))},jot=function(t){return(0,O.loc)((0,M.createKeyword)(t))},xot=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Fot=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Got=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Sot=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Kot=function(t){return(0,O.loc)((0,M.createKeyword)(t))},kot=function(t){return(0,O.loc)((0,M.createKeyword)(t))},qot=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Zot=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Jot=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Hot=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Wot=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Yot=function(t){return(0,O.loc)((0,M.createKeyword)(t))},zot=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Xot=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Qot=function(t){return(0,O.loc)((0,M.createKeyword)(t))},elt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},tlt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},rlt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},ilt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},slt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},nlt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},alt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},olt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},llt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},dlt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},ult=function(t){return(0,O.loc)((0,M.createKeyword)(t))},clt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},plt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},flt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},hlt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},ylt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},mlt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},vlt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Elt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Tlt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Ilt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Alt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},blt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},wlt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Rlt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},_lt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},glt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Dlt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Olt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Clt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},$lt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Plt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Nlt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Vlt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Llt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Mlt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Blt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Ult=function(t){return(0,O.loc)((0,M.createKeyword)(t))},jlt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},xlt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Flt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Glt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Slt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Klt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},klt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},qlt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Zlt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Jlt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Hlt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Wlt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Ylt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},zlt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Xlt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Qlt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},edt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},tdt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},rdt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},idt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},sdt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},ndt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},adt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},odt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},ldt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},ddt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},udt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},cdt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},pdt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},fdt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},hdt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},ydt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},mdt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},vdt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Edt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Tdt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Idt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Adt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},bdt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},wdt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Rdt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},_dt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},gdt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Ddt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Odt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Cdt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},$dt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Pdt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Ndt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Vdt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Ldt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Mdt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Bdt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Udt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},jdt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},xdt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Fdt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Gdt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Sdt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Kdt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},kdt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},qdt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Zdt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Jdt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Hdt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Wdt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Ydt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},zdt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Xdt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Qdt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},eut=function(t){return(0,O.loc)((0,M.createKeyword)(t))},tut=function(t){return(0,O.loc)((0,M.createKeyword)(t))},rut=function(t){return(0,O.loc)((0,M.createKeyword)(t))},iut=function(t){return(0,O.loc)((0,M.createKeyword)(t))},sut=function(t){return(0,O.loc)((0,M.createKeyword)(t))},nut=function(t){return(0,O.loc)((0,M.createKeyword)(t))},aut=function(t){return(0,O.loc)((0,M.createKeyword)(t))},out=function(t){return(0,O.loc)((0,M.createKeyword)(t))},lut=function(t){return(0,O.loc)((0,M.createKeyword)(t))},dut=function(t){return(0,O.loc)((0,M.createKeyword)(t))},uut=function(t){return(0,O.loc)((0,M.createKeyword)(t))},cut=function(t){return(0,O.loc)((0,M.createKeyword)(t))},put=function(t){return(0,O.loc)((0,M.createKeyword)(t))},fut=function(t){return(0,O.loc)((0,M.createKeyword)(t))},hut=function(t){return(0,O.loc)((0,M.createKeyword)(t))},yut=function(t){return(0,O.loc)((0,M.createKeyword)(t))},mut=function(t){return(0,O.loc)((0,M.createKeyword)(t))},vut=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Eut=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Tut=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Iut=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Aut=function(t){return(0,O.loc)((0,M.createKeyword)(t))},but=function(t){return(0,O.loc)((0,M.createKeyword)(t))},wut=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Rut=function(t){return(0,O.loc)((0,M.createKeyword)(t))},_ut=function(t){return(0,O.loc)((0,M.createKeyword)(t))},gut=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Dut=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Out=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Cut=function(t){return(0,O.loc)((0,M.createKeyword)(t))},$ut=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Put=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Nut=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Vut=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Lut=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Mut=function(t){return(0,O.loc)((0,M.createKeyword)(t))},But=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Uut=function(t){return(0,O.loc)((0,M.createKeyword)(t))},jut=function(t){return(0,O.loc)((0,M.createKeyword)(t))},xut=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Fut=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Gut=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Sut=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Kut=function(t){return(0,O.loc)((0,M.createKeyword)(t))},kut=function(t){return(0,O.loc)((0,M.createKeyword)(t))},qut=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Zut=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Jut=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Hut=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Wut=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Yut=function(t){return(0,O.loc)((0,M.createKeyword)(t))},zut=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Xut=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Qut=function(t){return(0,O.loc)((0,M.createKeyword)(t))},ect=function(t){return(0,O.loc)((0,M.createKeyword)(t))},tct=function(t){return(0,O.loc)((0,M.createKeyword)(t))},rct=function(t){return(0,O.loc)((0,M.createKeyword)(t))},ict=function(t){return(0,O.loc)((0,M.createKeyword)(t))},sct=function(t){return(0,O.loc)((0,M.createKeyword)(t))},nct=function(t){return(0,O.loc)((0,M.createKeyword)(t))},act=function(t){return(0,O.loc)((0,M.createKeyword)(t))},oct=function(t){return(0,O.loc)((0,M.createKeyword)(t))},lct=function(t){return(0,O.loc)((0,M.createKeyword)(t))},dct=function(t){return(0,O.loc)((0,M.createKeyword)(t))},uct=function(t){return(0,O.loc)((0,M.createKeyword)(t))},cct=function(t){return(0,O.loc)((0,M.createKeyword)(t))},pct=function(t){return(0,O.loc)((0,M.createKeyword)(t))},fct=function(t){return(0,O.loc)((0,M.createKeyword)(t))},hct=function(t){return(0,O.loc)((0,M.createKeyword)(t))},yct=function(t){return(0,O.loc)((0,M.createKeyword)(t))},mct=function(t){return(0,O.loc)((0,M.createKeyword)(t))},vct=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Ect=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Tct=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Ict=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Act=function(t){return(0,O.loc)((0,M.createKeyword)(t))},bct=function(t){return(0,O.loc)((0,M.createKeyword)(t))},wct=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Rct=function(t){return(0,O.loc)((0,M.createKeyword)(t))},_ct=function(t){return(0,O.loc)((0,M.createKeyword)(t))},gct=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Dct=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Oct=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Cct=function(t){return(0,O.loc)((0,M.createKeyword)(t))},$ct=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Pct=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Nct=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Vct=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Lct=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Mct=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Bct=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Uct=function(t){return(0,O.loc)((0,M.createKeyword)(t))},jct=function(t){return(0,O.loc)((0,M.createKeyword)(t))},xct=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Fct=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Gct=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Sct=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Kct=function(t){return(0,O.loc)((0,M.createKeyword)(t))},kct=function(t){return(0,O.loc)((0,M.createKeyword)(t))},qct=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Zct=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Jct=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Hct=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Wct=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Yct=function(t){return(0,O.loc)((0,M.createKeyword)(t))},zct=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Xct=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Qct=function(t){return(0,O.loc)((0,M.createKeyword)(t))},ept=function(t){return(0,O.loc)((0,M.createKeyword)(t))},tpt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},rpt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},ipt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},spt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},npt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},apt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},opt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},lpt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},dpt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},upt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},cpt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},ppt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},fpt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},hpt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},ypt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},mpt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},vpt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Ept=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Tpt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Ipt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Apt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},bpt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},wpt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Rpt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},_pt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},gpt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Dpt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Opt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Cpt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},$pt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Ppt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Npt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Vpt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Lpt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Mpt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Bpt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Upt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},jpt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},xpt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Fpt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Gpt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Spt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Kpt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},kpt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},qpt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Zpt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Jpt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Hpt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Wpt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Ypt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},zpt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Xpt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Qpt=function(t){return(0,O.loc)((0,M.createKeyword)(t))},eft=function(t){return(0,O.loc)((0,M.createKeyword)(t))},tft=function(t){return(0,O.loc)((0,M.createKeyword)(t))},rft=function(t){return(0,O.loc)((0,M.createKeyword)(t))},ift=function(t){return(0,O.loc)((0,M.createKeyword)(t))},sft=function(t){return(0,O.loc)((0,M.createKeyword)(t))},nft=function(t){return(0,O.loc)((0,M.createKeyword)(t))},aft=function(t){return(0,O.loc)((0,M.createKeyword)(t))},oft=function(t){return(0,O.loc)((0,M.createKeyword)(t))},lft=function(t){return(0,O.loc)((0,M.createKeyword)(t))},dft=function(t){return(0,O.loc)((0,M.createKeyword)(t))},uft=function(t){return(0,O.loc)((0,M.createKeyword)(t))},cft=function(t){return(0,O.loc)((0,M.createKeyword)(t))},pft=function(t){return(0,O.loc)((0,M.createKeyword)(t))},fft=function(t){return(0,O.loc)((0,M.createKeyword)(t))},hft=function(t){return(0,O.loc)((0,M.createKeyword)(t))},yft=function(t){return(0,O.loc)((0,M.createKeyword)(t))},mft=function(t){return(0,O.loc)((0,M.createKeyword)(t))},vft=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Eft=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Tft=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Ift=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Aft=function(t){return(0,O.loc)((0,M.createKeyword)(t))},bft=function(t){return(0,O.loc)((0,M.createKeyword)(t))},wft=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Rft=function(t){return(0,O.loc)((0,M.createKeyword)(t))},_ft=function(t){return(0,O.loc)((0,M.createKeyword)(t))},gft=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Dft=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Oft=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Cft=function(t){return(0,O.loc)((0,M.createKeyword)(t))},$ft=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Pft=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Nft=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Vft=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Lft=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Mft=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Bft=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Uft=function(t){return(0,O.loc)((0,M.createKeyword)(t))},jft=function(t){return(0,O.loc)((0,M.createKeyword)(t))},xft=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Fft=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Gft=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Sft=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Kft=function(t){return(0,O.loc)((0,M.createKeyword)(t))},kft=function(t){return(0,O.loc)((0,M.createKeyword)(t))},qft=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Zft=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Jft=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Hft=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Wft=function(t){return(0,O.loc)((0,M.createKeyword)(t))},Yft=function(t){return(0,O.loc)((0,M.createKeyword)(t))},zft=function(t){return(0,O.loc)((0,M.createKeyword)(t))},r=0,b=0,l0=[{line:1,column:1}],ua=0,Aw=[],m=0,d0;if("startRule"in p){if(!(p.startRule in v))throw new Error(`Can't start parsing from rule "`+p.startRule+'".');E=v[p.startRule]}function yt(){return o.substring(b,r)}function B(t,n){return{type:"literal",text:t,ignoreCase:n}}function yi(t,n,s){return{type:"class",parts:t,inverted:n,ignoreCase:s}}function Xft(){return{type:"any"}}function Qft(){return{type:"end"}}function u0(t){return{type:"other",description:t}}function XK(t){var n=l0[t],s;if(n)return n;for(s=t-1;!l0[s];)s--;for(n=l0[s],n={line:n.line,column:n.column};s<t;)o.charCodeAt(s)===10?(n.line++,n.column=1):n.column++,s++;return l0[t]=n,n}function QK(t,n,s){var l=XK(t),c=XK(n),h={source:y,start:{offset:t,line:l.line,column:l.column},end:{offset:n,line:c.line,column:c.column}};return s&&y&&typeof y.offset=="function"&&(h.start=y.offset(h.start),h.end=y.offset(h.end)),h}function C(t){r<ua||(r>ua&&(ua=r,Aw=[]),Aw.push(t))}function eht(t,n,s){return new u(u.buildMessage(t,n),t,n,s)}function ek(){var t,n,s,l;return t=r,n=I(),s=tht(),s!==e?(l=I(),b=t,t=XFe(n,s,l)):(r=t,t=e),t}function tht(){var t,n,s,l,c,h,T,_;if(t=r,n=vf(),n===e&&(n=sn()),n!==e){for(s=[],l=r,c=I(),o.charCodeAt(r)===59?(h=w,r++):(h=e,m===0&&C(cu)),h!==e?(T=I(),_=vf(),_===e&&(_=sn()),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);l!==e;)s.push(l),l=r,c=I(),o.charCodeAt(r)===59?(h=w,r++):(h=e,m===0&&C(cu)),h!==e?(T=I(),_=vf(),_===e&&(_=sn()),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);b=t,t=QFe(n,s)}else r=t,t=e;return t}function vf(){var t,n,s;return t=tk(),t===e&&(t=Kvt(),t===e&&(t=r,b=r,n=eGe(),n?n=void 0:n=e,n!==e?(s=Ewt(),s!==e?(b=t,t=tGe(s)):(r=t,t=e)):(r=t,t=e))),t}function tk(){var t,n,s;return t=c0(),t===e&&(t=aht(),t===e&&(t=sEt(),t===e&&(t=r,n=r,m++,s=tt(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=rht(),s!==e?(b=t,t=rGe(s)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=r,m++,s=Be(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=iht(),s!==e?(b=t,t=iGe(s)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=r,m++,s=Oe(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=sht(),s!==e?(b=t,t=sGe(s)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=r,m++,s=ye(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=nht(),s!==e?(b=t,t=nGe(s)):(r=t,t=e)):(r=t,t=e))))))),t}function rht(){var t;return t=RR(),t===e&&(t=_R(),t===e&&(t=MEt())),t}function iht(){var t;return t=H7(),t===e&&(t=RR(),t===e&&(t=_R(),t===e&&(t=$R()))),t}function sht(){var t;return t=H7(),t===e&&(t=$R(),t===e&&(t=SEt())),t}function nht(){var t;return t=RR(),t===e&&(t=_R(),t===e&&(t=$R())),t}function aht(){var t,n,s;return t=jk(),t===e&&(t=kyt(),t===e&&(t=Fk(),t===e&&(t=Yyt(),t===e&&(t=r,n=r,m++,s=ye(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=zyt(),s!==e?(b=t,t=aGe(s)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=r,m++,s=ye(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=Qyt(),s!==e?(b=t,t=oGe(s)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=r,m++,s=ye(),m--,s!==e?(r=n,n=void 0):n=e,n===e&&(n=r,m++,s=tt(),m--,s!==e?(r=n,n=void 0):n=e),n!==e?(s=emt(),s!==e?(b=t,t=lGe(s)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=r,m++,s=tt(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=oht(),s!==e?(b=t,t=dGe(s)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=r,m++,s=Be(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=lht(),s!==e?(b=t,t=uGe(s)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=r,m++,s=Oe(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=dht(),s!==e?(b=t,t=cGe(s)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=r,m++,s=ye(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=uht(),s!==e?(b=t,t=pGe(s)):(r=t,t=e)):(r=t,t=e),t===e&&(t=Kk(),t===e&&(t=bmt(),t===e&&(t=wmt()))))))))))))),t}function oht(){var t;return t=g0(),t===e&&(t=hR()),t}function lht(){var t;return t=zw(),t===e&&(t=E0t(),t===e&&(t=g0(),t===e&&(t=hR(),t===e&&(t=yR(),t===e&&(t=mR(),t===e&&(t=vR())))))),t}function dht(){var t;return t=zw(),t===e&&(t=v7(),t===e&&(t=g7(),t===e&&(t=O7(),t===e&&(t=P7(),t===e&&(t=yR(),t===e&&(t=mR(),t===e&&(t=vR()))))))),t}function uht(){var t;return t=zw(),t===e&&(t=Zyt(),t===e&&(t=v7(),t===e&&(t=g7(),t===e&&(t=F0t(),t===e&&(t=O7(),t===e&&(t=P7(),t===e&&(t=K0t(),t===e&&(t=Rmt(),t===e&&(t=yR(),t===e&&(t=mR(),t===e&&(t=vR(),t===e&&(t=V7(),t===e&&(t=ivt(),t===e&&(t=svt(),t===e&&(t=g0(),t===e&&(t=O0t(),t===e&&(t=hR(),t===e&&(t=nvt(),t===e&&(t=dvt(),t===e&&(t=uvt(),t===e&&(t=cvt(),t===e&&(t=pvt(),t===e&&(t=hvt(),t===e&&(t=yvt(),t===e&&(t=Rvt(),t===e&&(t=Vvt(),t===e&&(t=Lvt(),t===e&&(t=Mvt(),t===e&&(t=Bvt(),t===e&&(t=Fvt(),t===e&&(t=Gvt()))))))))))))))))))))))))))))))),t}function c0(){var t,n,s;return t=Bl(),t===e&&(t=gk(),t===e&&(t=Nk(),t===e&&(t=Lk(),t===e&&(t=r,n=r,m++,s=Oe(),m--,s!==e?(r=n,n=void 0):n=e,n===e&&(n=r,m++,s=Be(),m--,s!==e?(r=n,n=void 0):n=e,n===e&&(n=r,m++,s=ye(),m--,s!==e?(r=n,n=void 0):n=e)),n!==e?(s=$yt(),s!==e?(b=t,t=fGe(s)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=r,m++,s=Oe(),m--,s!==e?(r=n,n=void 0):n=e,n===e&&(n=r,m++,s=ye(),m--,s!==e?(r=n,n=void 0):n=e),n!==e?(s=Pyt(),s!==e?(b=t,t=hGe(s)):(r=t,t=e)):(r=t,t=e)))))),t}function sn(){var t,n,s;return t=r,n=r,m++,o.length>r?(s=o.charAt(r),r++):(s=e,m===0&&C(Ui)),m--,s!==e?(r=n,n=void 0):n=e,n===e&&(n=D8()),n!==e&&(b=t,n=yGe()),t=n,t}function On(){var t,n,s,l,c,h,T,_;if(t=r,n=bw(),n!==e){if(s=[],l=r,c=I(),o.charCodeAt(r)===59?(h=w,r++):(h=e,m===0&&C(cu)),h!==e?(T=I(),_=bw(),_===e&&(_=sn()),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e),l!==e)for(;l!==e;)s.push(l),l=r,c=I(),o.charCodeAt(r)===59?(h=w,r++):(h=e,m===0&&C(cu)),h!==e?(T=I(),_=bw(),_===e&&(_=sn()),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);else s=e;s!==e?(b=t,t=mGe(n,s)):(r=t,t=e)}else r=t,t=e;return t===e&&(t=r,n=sn(),n!==e&&(b=t,n=vGe()),t=n),t}function bw(){var t,n,s;return t=r,n=r,m++,s=ye(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=tk(),s!==e?(b=t,t=EGe(s)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=r,m++,s=ye(),m--,s===e?n=void 0:(r=n,n=e),n!==e?(s=vf(),s!==e?(b=t,t=TGe(s)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=r,m++,s=ye(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=t9(),s!==e?(b=t,t=IGe(s)):(r=t,t=e)):(r=t,t=e))),t}function Bl(){var t,n,s,l,c,h,T,_;if(t=r,n=ww(),n!==e){for(s=[],l=r,c=I(),h=rk(),h!==e?(T=I(),_=ww(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);l!==e;)s.push(l),l=r,c=I(),h=rk(),h!==e?(T=I(),_=ww(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);b=t,t=AGe(n,s)}else r=t,t=e;return t}function rk(){var t,n,s,l,c;return t=r,n=r,s=hg(),s===e&&(s=O_()),s!==e?(l=I(),c=li(),c===e&&(c=ln()),c!==e?(s=[s,l,c],n=s):(r=n,n=e)):(r=n,n=e),n!==e&&(b=t,n=bGe(n)),t=n,t===e&&(t=hg(),t===e&&(t=O_())),t}function ww(){var t,n,s,l,c,h,T,_;if(t=r,n=Rw(),n!==e){for(s=[],l=r,c=I(),h=ik(),h!==e?(T=I(),_=Rw(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);l!==e;)s.push(l),l=r,c=I(),h=ik(),h!==e?(T=I(),_=Rw(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);b=t,t=wGe(n,s)}else r=t,t=e;return t}function Rw(){var t;return t=sk(),t===e&&(t=Ga()),t}function ik(){var t,n,s,l,c;return t=r,n=r,s=wq(),s!==e?(l=I(),c=li(),c===e&&(c=ln()),c!==e?(s=[s,l,c],n=s):(r=n,n=e)):(r=n,n=e),n!==e&&(b=t,n=RGe(n)),t=n,t===e&&(t=wq()),t}function sk(){var t,n,s,l,c,h,T;if(t=r,n=r,s=Ef(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n===e&&(n=null),s=cht(),s===e&&(s=Ga()),s!==e){for(l=[],c=r,h=I(),T=ok(),T!==e?(h=[h,T],c=h):(r=c,c=e);c!==e;)l.push(c),c=r,h=I(),T=ok(),T!==e?(h=[h,T],c=h):(r=c,c=e);b=t,t=_Ge(n,s,l)}else r=t,t=e;return t}function cht(){var t,n,s,l;return t=vht(),t===e&&(t=r,n=qw(),n!==e?(s=r,m++,l=Oe(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=gGe(n)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=nk(),n!==e?(s=r,m++,l=Be(),m--,l!==e?(r=s,s=void 0):s=e,s===e&&(s=r,m++,l=ye(),m--,l!==e?(r=s,s=void 0):s=e),s!==e?(b=t,t=DGe(n)):(r=t,t=e)):(r=t,t=e))),t}function nk(){var t,n,s,l;return t=r,n=r,s=$i(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=Ul(),s!==e?(b=t,t=OGe(n,s)):(r=t,t=e)):(r=t,t=e),t}function ak(){var t,n;return t=r,n=nk(),n!==e&&(b=t,n=CGe(n)),t=n,t}function Ef(){var t,n,s,l,c,h;return t=r,n=Sr(),n!==e?(s=r,l=I(),c=Sq(),c!==e?(l=[l,c],s=l):(r=s,s=e),s===e&&(s=null),l=r,c=I(),h=SAt(),h!==e?(c=[c,h],l=c):(r=l,l=e),l!==e?(b=t,t=$Ge(n,s,l)):(r=t,t=e)):(r=t,t=e),t}function _w(){var t,n,s,l,c,h,T,_,x,W;return t=r,n=Re(),n!==e?(s=r,l=I(),c=ji(),c!==e?(l=[l,c],s=l):(r=s,s=e),s===e&&(s=null),l=r,c=I(),h=Lr(),h!==e?(c=[c,h],l=c):(r=l,l=e),l!==e?(c=r,h=I(),T=pht(),T!==e?(h=[h,T],c=h):(r=c,c=e),c===e&&(c=null),h=r,T=I(),_=sAt(),_!==e?(T=[T,_],h=T):(r=h,h=e),h!==e?(T=r,_=I(),x=hht(),x!==e?(_=[_,x],T=_):(r=T,T=e),T===e&&(T=null),_=r,x=I(),W=yht(),W!==e?(x=[x,W],_=x):(r=_,_=e),_===e&&(_=null),b=t,t=PGe(n,s,l,c,h,T,_)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function pht(){var t,n,s,l,c;return t=r,n=r,s=cr(),s!==e?(l=I(),c=Av(),c!==e?(s=[s,l,c],n=s):(r=n,n=e)):(r=n,n=e),n===e&&(n=Av()),n!==e&&(b=t,n=NGe(n)),t=n,t}function fht(){var t,n,s,l;return t=Bl(),t===e&&(t=r,n=Nk(),n===e&&(n=gk(),n===e&&(n=Lk())),n!==e?(s=r,m++,l=ye(),m--,l!==e?(r=s,s=void 0):s=e,s!==e?(b=t,t=VGe(n)):(r=t,t=e)):(r=t,t=e)),t}function hht(){var t,n,s,l,c,h,T,_,x,W;return t=r,n=r,s=lg(),s!==e?(l=I(),c=Vwt(),c===e&&(c=RRt()),c!==e?(h=I(),T=vv(),T!==e?(_=I(),x=wi(),x!==e?(W=I(),s=[s,l,c,h,T,_,x,W],n=s):(r=n,n=e)):(r=n,n=e)):(r=n,n=e)):(r=n,n=e),n!==e?(s=ri(),s!==e?(l=r,c=I(),h=tr(),h!==e?(T=I(),c=[c,h,T],l=c):(r=l,l=e),l!==e?(c=Re(),c!==e?(h=r,m++,T=ye(),m--,T!==e?(r=h,h=void 0):h=e,h!==e?(b=t,t=LGe(n,s,l,c)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function yht(){var t,n,s,l,c,h,T,_,x,W;return t=r,n=r,s=w_(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=ri(),s!==e?(l=r,c=I(),h=tr(),h!==e?(T=I(),c=[c,h,T],l=c):(r=l,l=e),l!==e?(c=Re(),c!==e?(h=r,T=I(),_=mht(),_!==e?(T=[T,_],h=T):(r=h,h=e),h===e&&(h=null),T=r,_=I(),x=cs(),x!==e?(W=I(),_=[_,x,W],T=_):(r=T,T=e),T!==e?(_=Re(),_!==e?(x=r,m++,W=ye(),m--,W!==e?(r=x,x=void 0):x=e,x!==e?(b=t,t=MGe(n,s,l,c,h,T,_)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function mht(){var t,n,s,l,c,h,T;return t=r,n=r,s=ci(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=$n(),s!==e?(l=r,c=I(),h=ui(),h!==e?(T=I(),c=[c,h,T],l=c):(r=l,l=e),l!==e?(c=$n(),c!==e?(b=t,t=BGe(n,s,l,c)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function ok(){var t,n,s;return t=$w(),t===e&&(t=xa(),t===e&&(t=jht(),t===e&&(t=kht(),t===e&&(t=If(),t===e&&(t=h0(),t===e&&(t=Hht(),t===e&&(t=r,n=r,m++,s=Oe(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=ryt(),s!==e?(b=t,t=UGe(s)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=r,m++,s=ye(),m--,s!==e?(r=n,n=void 0):n=e,n===e&&(n=r,m++,s=sv(),m--,s!==e?(r=n,n=void 0):n=e),n!==e?(s=Zht(),s!==e?(b=t,t=jGe(s)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=r,m++,s=ye(),m--,s!==e?(r=n,n=void 0):n=e,n===e&&(n=r,m++,s=sv(),m--,s!==e?(r=n,n=void 0):n=e),n!==e?(s=Jht(),s!==e?(b=t,t=xGe(s)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=r,m++,s=Be(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=syt(),s===e&&(s=nyt(),s===e&&(s=ayt())),s!==e?(b=t,t=FGe(s)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=r,m++,s=ye(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=iyt(),s!==e?(b=t,t=GGe(s)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=r,m++,s=ye(),m--,s!==e?(r=n,n=void 0):n=e,n===e&&(n=r,m++,s=Be(),m--,s!==e?(r=n,n=void 0):n=e),n!==e?(s=fyt(),s!==e?(b=t,t=SGe(s)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=r,m++,s=Be(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=myt(),s!==e?(b=t,t=KGe(s)):(r=t,t=e)):(r=t,t=e)))))))))))))),t}function vht(){var t,n,s,l,c,h,T;if(t=r,n=r,m++,s=ye(),m--,s!==e?(r=n,n=void 0):n=e,n!==e)if(s=Ku(),s!==e){for(l=[],c=r,h=I(),T=Co(),T!==e?(h=[h,T],c=h):(r=c,c=e);c!==e;)l.push(c),l.length>=1?c=e:(c=r,h=I(),T=Co(),T!==e?(h=[h,T],c=h):(r=c,c=e));c=r,h=I(),T=Tf(),T!==e?(h=[h,T],c=h):(r=c,c=e),c===e&&(c=null),b=t,t=kGe(s,l,c)}else r=t,t=e;else r=t,t=e;if(t===e){if(t=r,n=r,m++,s=Be(),m--,s!==e?(r=n,n=void 0):n=e,n!==e)if(s=Ku(),s!==e){for(l=[],c=r,h=I(),T=Co(),T===e&&(T=dk()),T!==e?(h=[h,T],c=h):(r=c,c=e);c!==e;)l.push(c),c=r,h=I(),T=Co(),T===e&&(T=dk()),T!==e?(h=[h,T],c=h):(r=c,c=e);c=r,h=I(),T=Tf(),T!==e?(h=[h,T],c=h):(r=c,c=e),c!==e?(b=t,t=qGe(s,l,c)):(r=t,t=e)}else r=t,t=e;else r=t,t=e;if(t===e){if(t=r,n=r,m++,s=Oe(),m--,s!==e?(r=n,n=void 0):n=e,n!==e)if(s=Ku(),s!==e){for(l=[],c=r,h=I(),T=Co(),T===e&&(T=lk()),T!==e?(h=[h,T],c=h):(r=c,c=e);c!==e;)l.push(c),l.length>=2?c=e:(c=r,h=I(),T=Co(),T===e&&(T=lk()),T!==e?(h=[h,T],c=h):(r=c,c=e));c=r,h=I(),T=Tf(),T!==e?(h=[h,T],c=h):(r=c,c=e),c!==e?(b=t,t=ZGe(s,l,c)):(r=t,t=e)}else r=t,t=e;else r=t,t=e;if(t===e)if(t=r,n=r,m++,s=tt(),m--,s!==e?(r=n,n=void 0):n=e,n!==e)if(s=Ku(),s!==e){for(l=[],c=r,h=I(),T=Co(),T!==e?(h=[h,T],c=h):(r=c,c=e);c!==e;)l.push(c),l.length>=1?c=e:(c=r,h=I(),T=Co(),T!==e?(h=[h,T],c=h):(r=c,c=e));c=r,h=I(),T=Tf(),T!==e?(h=[h,T],c=h):(r=c,c=e),c!==e?(b=t,t=JGe(s,l,c)):(r=t,t=e)}else r=t,t=e;else r=t,t=e}}return t}function Co(){var t,n,s,l,c,h;return t=r,n=li(),n!==e&&(b=t,n=HGe(n)),t=n,t===e&&(t=r,n=r,s=ln(),s!==e?(l=I(),c=$r(),c!==e?(h=I(),s=[s,l,c,h],n=s):(r=n,n=e)):(r=n,n=e),n!==e?(s=fa(),s!==e?(l=r,m++,c=ye(),m--,c!==e?(r=l,l=void 0):l=e,l!==e?(b=t,t=WGe(n,s)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=ln(),n!==e&&(b=t,n=YGe(n)),t=n,t===e&&(t=r,n=ORt(),n!==e?(s=r,m++,l=Be(),m--,l!==e?(r=s,s=void 0):s=e,s!==e?(b=t,t=zGe(n)):(r=t,t=e)):(r=t,t=e)))),t}function lk(){var t,n,s,l,c;return t=r,n=r,s=Lr(),s!==e?(l=I(),c=nZ(),c!==e?(s=[s,l,c],n=s):(r=n,n=e)):(r=n,n=e),n!==e&&(b=t,n=XGe(n)),t=n,t===e&&(t=r,n=r,s=Lr(),s!==e?(l=I(),c=Xf(),c!==e?(s=[s,l,c],n=s):(r=n,n=e)):(r=n,n=e),n!==e&&(b=t,n=QGe(n)),t=n),t}function dk(){var t,n,s,l,c,h;return t=r,n=r,m++,s=Be(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=mq(),s===e&&(s=iZ(),s===e&&(s=oDt(),s===e&&(s=r,l=aDt(),l!==e?(c=r,m++,h=sv(),m--,h!==e?(r=c,c=void 0):c=e,c!==e?(b=s,s=e6e(l)):(r=s,s=e)):(r=s,s=e),s===e&&(s=lDt(),s===e&&(s=sDt(),s===e&&(s=dDt(),s===e&&(s=nDt()))))))),s!==e?(b=t,t=t6e(s)):(r=t,t=e)):(r=t,t=e),t}function Tf(){var t,n,s,l,c,h,T,_;if(t=r,n=gw(),n!==e){for(s=[],l=r,c=I(),o.charCodeAt(r)===44?(h=A,r++):(h=e,m===0&&C(ge)),h!==e?(T=I(),_=gw(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);l!==e;)s.push(l),l=r,c=I(),o.charCodeAt(r)===44?(h=A,r++):(h=e,m===0&&C(ge)),h!==e?(T=I(),_=gw(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);l=r,c=I(),o.charCodeAt(r)===44?(h=A,r++):(h=e,m===0&&C(ge)),h!==e?(T=I(),_=sn(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e),l===e&&(l=null),b=t,t=r6e(n,s,l)}else r=t,t=e;return t}function gw(){var t,n,s,l,c,h;return t=r,n=Dw(),n!==e?(s=r,l=I(),c=O_(),c!==e?(h=I(),l=[l,c,h],s=l):(r=s,s=e),s!==e?(l=ji(),l!==e?(b=t,t=i6e(n,s,l)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=Dw(),n!==e?(s=r,l=I(),c=Ks(),c!==e?(h=I(),l=[l,c,h],s=l):(r=s,s=e),s!==e?(l=S9(),l!==e?(b=t,t=s6e(n,s,l)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t===e&&(t=Dw(),t===e&&(t=r,n=et(),n!==e?(s=r,l=I(),c=ca(),c!==e?(l=[l,c],s=l):(r=s,s=e),s===e&&(s=null),b=t,t=n6e(n,s)):(r=t,t=e)))),t}function Dw(){var t;return t=Ow(),t===e&&(t=uk()),t}function uk(){var t,n,s,l,c,h;return t=r,n=r,s=Re(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(o.charCodeAt(r)===46?(s=$,r++):(s=e,m===0&&C(gn)),s!==e?(l=r,c=I(),h=Ow(),h!==e?(c=[c,h],l=c):(r=l,l=e),l!==e?(b=t,t=a6e(n,l)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function Ow(){var t,n;return t=r,o.charCodeAt(r)===42?(n=V,r++):(n=e,m===0&&C(ff)),n!==e&&(b=t,n=o6e()),t=n,t}function ca(){var t;return t=Cw(),t===e&&(t=Eht()),t}function Cw(){var t,n,s,l,c,h;return t=r,n=Lr(),n!==e?(s=r,l=I(),c=bbt(),c!==e?(l=[l,c],s=l):(r=s,s=e),s!==e?(l=r,c=I(),h=ck(),h!==e?(c=[c,h],l=c):(r=l,l=e),l===e&&(l=null),b=t,t=l6e(n,s,l)):(r=t,t=e)):(r=t,t=e),t}function Eht(){var t,n,s,l,c,h;return t=r,n=r,m++,s=Oe(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=r,m++,l=Mw(),l===e&&(l=Bw()),m--,l===e?s=void 0:(r=s,s=e),s!==e?(l=u_(),l!==e?(b=t,t=d6e(l)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=r,m++,s=Oe(),m--,s===e?n=void 0:(r=n,n=e),n!==e?(s=u_(),s!==e?(l=r,c=I(),h=ck(),h!==e?(c=[c,h],l=c):(r=l,l=e),l===e&&(l=null),b=t,t=u6e(s,l)):(r=t,t=e)):(r=t,t=e)),t}function ck(){var t,n,s,l;return t=r,n=ji(),n!==e?(s=r,m++,l=Be(),m--,l!==e?(r=s,s=void 0):s=e,s===e&&(s=r,m++,l=ye(),m--,l!==e?(r=s,s=void 0):s=e),s!==e?(b=t,t=c6e(n)):(r=t,t=e)):(r=t,t=e),t}function $w(){var t,n,s,l;return t=r,n=r,s=gs(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=Pw(),s===e&&(s=pk()),s!==e?(b=t,t=p6e(n,s)):(r=t,t=e)):(r=t,t=e),t}function Tht(){var t,n,s,l;return t=r,n=r,s=cs(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=Pw(),s===e&&(s=pk()),s!==e?(b=t,t=f6e(n,s)):(r=t,t=e)):(r=t,t=e),t}function pk(){var t,n,s;return t=r,n=r,m++,s=Be(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=NRt(),s!==e?(b=t,t=h6e(s)):(r=t,t=e)):(r=t,t=e),t}function Pw(){var t,n,s,l;if(t=r,n=i8(),n!==e){for(s=[],l=fk(),l===e&&(l=Mw(),l===e&&(l=Bw(),l===e&&(l=Ek(),l===e&&(l=Tk()))));l!==e;)s.push(l),l=fk(),l===e&&(l=Mw(),l===e&&(l=Bw(),l===e&&(l=Ek(),l===e&&(l=Tk()))));b=t,t=y6e(n,s)}else r=t,t=e;return t}function fk(){var t,n,s,l,c,h,T;return t=r,n=I(),s=_ht(),s===e&&(o.charCodeAt(r)===44?(s=A,r++):(s=e,m===0&&C(ge))),s!==e?(l=r,c=I(),h=i8(),h!==e?(c=[c,h],l=c):(r=l,l=e),l!==e?(c=r,h=I(),T=Oht(),T!==e?(h=[h,T],c=h):(r=c,c=e),c===e&&(c=null),b=t,t=m6e(n,s,l,c)):(r=t,t=e)):(r=t,t=e),t}function Iht(){var t;return t=Pht(),t===e&&(t=yk(),t===e&&(t=Iu(),t===e&&(t=Rht(),t===e&&(t=dAt(),t===e&&(t=Ga(),t===e&&(t=Vw(),t===e&&(t=Nw(),t===e&&(t=Ul())))))))),t}function Ul(){var t;return t=wht(),t===e&&(t=hk(),t===e&&(t=Aht(),t===e&&(t=bht(),t===e&&(t=Ge())))),t}function Aht(){var t,n,s,l,c,h,T;return t=r,n=r,m++,s=tt(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=r,l=o_(),l!==e?(c=I(),l=[l,c],s=l):(r=s,s=e),s!==e?(l=r,c=Tq(),c!==e?(h=I(),T=wi(),T!==e?(c=[c,h,T],l=c):(r=l,l=e)):(r=l,l=e),l!==e?(c=r,h=I(),T=Re(),T!==e?(h=[h,T],c=h):(r=c,c=e),c!==e?(b=t,t=v6e(s,l,c)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function bht(){var t,n,s,l,c,h,T;return t=r,n=r,m++,s=tt(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=r,l=o_(),l!==e?(c=I(),l=[l,c],s=l):(r=s,s=e),s!==e?(l=r,c=cr(),c!==e?(h=I(),T=Tq(),T!==e?(c=[c,h,T],l=c):(r=l,l=e)):(r=l,l=e),l!==e?(b=t,t=E6e(s,l)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function wht(){var t,n,s,l,c;return t=r,n=r,m++,s=ye(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=r,l=Ge(),l!==e?(c=I(),l=[l,c],s=l):(r=s,s=e),s!==e?(o.charCodeAt(r)===42?(l=V,r++):(l=e,m===0&&C(ff)),l!==e?(b=t,t=T6e(s)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function hk(){var t,n,s,l,c;return t=r,n=r,m++,s=ye(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=r,l=W_(),l!==e?(c=I(),l=[l,c],s=l):(r=s,s=e),s!==e?(l=nAt(),l===e&&(l=Ge()),l!==e?(b=t,t=I6e(s,l)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function Iu(){var t,n,s,l,c,h;return t=r,n=$f(),n!==e?(s=r,l=I(),c=Lr(),c!==e?(h=I(),l=[l,c,h],s=l):(r=s,s=e),s!==e?(l=wu(),l!==e?(c=r,m++,h=ye(),m--,h!==e?(r=c,c=void 0):c=e,c!==e?(b=t,t=A6e(n,s,l)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=J0(),n!==e?(b=r,s=b6e(n),s?s=void 0:s=e,s!==e?(l=r,c=I(),h=wu(),h!==e?(c=[c,h],l=c):(r=l,l=e),l!==e?(c=r,m++,h=ye(),m--,h!==e?(r=c,c=void 0):c=e,c!==e?(b=t,t=w6e(n,l)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t===e&&(t=$f())),t}function yk(){var t,n,s,l,c,h,T;return t=r,n=Iu(),n===e&&(n=Nw()),n!==e?(s=r,l=I(),c=Sr(),c!==e?(h=I(),T=Zgt(),T!==e?(l=[l,c,h,T],s=l):(r=s,s=e)):(r=s,s=e),s!==e?(l=r,m++,c=ye(),m--,c!==e?(r=l,l=void 0):l=e,l!==e?(b=t,t=R6e(n,s)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function Rht(){var t,n,s,l,c;return t=r,n=r,s=Dq(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=Ga(),s!==e?(l=r,m++,c=Be(),m--,c!==e?(r=l,l=void 0):l=e,l===e&&(l=r,m++,c=ye(),m--,c!==e?(r=l,l=void 0):l=e),l!==e?(b=t,t=_6e(n,s)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=r,s=Dq(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=yk(),s===e&&(s=Nw(),s===e&&(s=Iu())),s!==e?(l=r,m++,c=ye(),m--,c!==e?(r=l,l=void 0):l=e,l!==e?(b=t,t=g6e(n,s)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)),t}function Nw(){var t,n,s,l,c,h;return t=r,n=r,s=Uo(),s!==e?(l=I(),c=gs(),c!==e?(h=I(),s=[s,l,c,h],n=s):(r=n,n=e)):(r=n,n=e),n!==e?(s=IAt(),s!==e?(l=r,m++,c=ye(),m--,c!==e?(r=l,l=void 0):l=e,l!==e?(b=t,t=D6e(n,s)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function Vw(){var t,n,s,l,c,h;return t=r,n=r,m++,s=Be(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=r,l=o_(),l!==e?(c=I(),l=[l,c],s=l):(r=s,s=e),s!==e?(l=r,c=Su(),c!==e?(h=I(),c=[c,h],l=c):(r=l,l=e),l!==e?(c=Gl(),c!==e?(b=t,t=O6e(s,l,c)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function _ht(){var t,n,s,l;return t=ght(),t===e&&(t=Dht(),t===e&&(t=mk(),t===e&&(t=r,n=iZ(),n!==e?(s=r,m++,l=Be(),m--,l!==e?(r=s,s=void 0):s=e,s!==e?(b=t,t=C6e(n)):(r=t,t=e)):(r=t,t=e)))),t}function ght(){var t,n,s,l,c;return t=r,n=r,s=Z_(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=mk(),s!==e?(l=r,m++,c=Be(),m--,c!==e?(r=l,l=void 0):l=e,l===e&&(l=r,m++,c=tt(),m--,c!==e?(r=l,l=void 0):l=e),l!==e?(b=t,t=$6e(n,s)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function Dht(){var t,n,s,l,c;return t=r,n=r,s=sRt(),s!==e?(l=I(),c=Zf(),c!==e?(s=[s,l,c],n=s):(r=n,n=e)):(r=n,n=e),n!==e&&(b=t,n=P6e(n)),t=n,t}function mk(){var t,n,s,l,c,h,T;return t=r,n=r,s=vk(),s!==e?(l=I(),c=Wgt(),c!==e?(h=I(),T=Zf(),T!==e?(s=[s,l,c,h,T],n=s):(r=n,n=e)):(r=n,n=e)):(r=n,n=e),n===e&&(n=r,s=vk(),s!==e?(l=I(),c=Zf(),c!==e?(s=[s,l,c],n=s):(r=n,n=e)):(r=n,n=e),n===e&&(n=r,s=__t(),s!==e?(l=I(),c=Zf(),c!==e?(s=[s,l,c],n=s):(r=n,n=e)):(r=n,n=e),n===e&&(n=Zf()))),n!==e&&(b=t,n=N6e(n)),t=n,t}function vk(){var t,n,s,l;return t=Iv(),t===e&&(t=_v(),t===e&&(t=r,n=L_(),n!==e?(s=r,m++,l=tt(),m--,l!==e?(r=s,s=void 0):s=e,s===e&&(s=r,m++,l=Oe(),m--,l!==e?(r=s,s=void 0):s=e),s!==e?(b=t,t=V6e(n)):(r=t,t=e)):(r=t,t=e))),t}function Oht(){var t;return t=Cht(),t===e&&(t=$ht()),t}function Cht(){var t,n,s,l,c;return t=r,n=cs(),n!==e?(s=r,l=I(),c=ji(),c!==e?(l=[l,c],s=l):(r=s,s=e),s!==e?(b=t,t=L6e(n,s)):(r=t,t=e)):(r=t,t=e),t}function $ht(){var t,n,s,l,c;return t=r,n=$r(),n!==e?(s=r,l=I(),c=et(),c!==e?(l=[l,c],s=l):(r=s,s=e),s!==e?(b=t,t=M6e(n,s)):(r=t,t=e)):(r=t,t=e),t}function Pht(){var t,n,s,l,c,h,T,_;return t=r,n=r,m++,s=Oe(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=Tbt(),s!==e?(l=r,c=I(),h=Sr(),h!==e?(T=I(),_=Rv(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e),l!==e?(b=t,t=B6e(s,l)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=r,m++,s=Oe(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=Lw(),s!==e?(b=t,t=U6e(s)):(r=t,t=e)):(r=t,t=e)),t}function Nht(){var t;return t=Lw(),t===e&&(t=Ge()),t}function Lw(){var t,n,s,l;return t=r,n=r,s=xDt(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=Sa(),s!==e?(b=t,t=j6e(n,s)):(r=t,t=e)):(r=t,t=e),t}function Mw(){var t,n,s,l,c,h;return t=r,n=r,m++,s=Oe(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=I(),l=r,c=l1t(),c!==e?(h=I(),c=[c,h],l=c):(r=l,l=e),l!==e?(c=RAt(),c!==e?(b=t,t=x6e(s,l,c)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function Vht(){var t,n,s,l,c,h,T;return t=r,n=r,s=MAt(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=r,l=Gs(),l!==e?(c=I(),l=[l,c],s=l):(r=s,s=e),s!==e?(l=r,c=Re(),c!==e?(h=I(),c=[c,h],l=c):(r=l,l=e),l!==e?(c=r,h=ii(),h!==e?(T=I(),h=[h,T],c=h):(r=c,c=e),c!==e?(h=S9(),h!==e?(b=t,t=F6e(n,s,l,c,h)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function Bw(){var t,n,s,l,c,h,T,_,x;return t=r,n=r,m++,s=Oe(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=I(),l=r,c=FDt(),c!==e?(h=I(),c=[c,h],l=c):(r=l,l=e),l!==e?(c=r,h=Eq(),h===e&&(h=C_()),h!==e?(T=I(),_=Hl(),_!==e?(x=I(),h=[h,T,_,x],c=h):(r=c,c=e)):(r=c,c=e),c===e&&(c=null),h=CAt(),h!==e?(b=t,t=G6e(s,l,c,h)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function Lht(){var t,n,s,l,c,h,T;return t=r,n=r,s=Re(),s===e&&(s=ji()),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=r,l=Gs(),l!==e?(c=I(),l=[l,c],s=l):(r=s,s=e),s!==e?(l=r,c=Re(),c!==e?(h=I(),c=[c,h],l=c):(r=l,l=e),l!==e?(c=r,h=ii(),h!==e?(T=I(),h=[h,T],c=h):(r=c,c=e),c!==e?(h=uAt(),h===e&&(h=cAt()),h!==e?(b=t,t=S6e(n,s,l,c,h)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function Ek(){var t,n,s,l,c,h,T,_,x;return t=r,n=r,m++,s=Oe(),m--,s!==e?(r=n,n=void 0):n=e,n===e&&(n=r,m++,s=ye(),m--,s!==e?(r=n,n=void 0):n=e),n!==e?(s=I(),l=r,c=RDt(),c!==e?(h=I(),c=[c,h],l=c):(r=l,l=e),l!==e?(c=r,h=Mht(),h===e&&(h=Re()),h!==e?(T=I(),h=[h,T],c=h):(r=c,c=e),c!==e?(h=AAt(),h!==e?(T=r,_=I(),x=Uht(),x!==e?(_=[_,x],T=_):(r=T,T=e),T===e&&(T=null),b=t,t=K6e(s,l,c,h,T)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function Mht(){var t,n;return t=r,n=Cwt(),n===e&&(n=Cv()),n!==e&&(b=t,n=k6e(n)),t=n,t}function Uw(){var t;return t=Bht(),t===e&&(t=et()),t}function Bht(){var t,n,s,l,c;return t=r,n=$n(),n===e&&(n=G9()),n!==e?(s=r,l=I(),c=n1t(),c!==e?(l=[l,c],s=l):(r=s,s=e),s!==e?(b=t,t=q6e(n,s)):(r=t,t=e)):(r=t,t=e),t}function Uht(){var t,n,s,l;return t=r,n=r,s=Zq(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=Sa(),s!==e?(b=t,t=Z6e(n,s)):(r=t,t=e)):(r=t,t=e),t}function Tk(){var t,n,s,l,c,h,T,_,x,W,pe,Ve;return t=r,n=r,m++,s=Oe(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=I(),l=r,c=Gs(),c!==e?(h=I(),T=oZ(),T!==e?(_=I(),x=Lr(),x!==e?(W=I(),pe=dn(),pe!==e?(Ve=I(),c=[c,h,T,_,x,W,pe,Ve],l=c):(r=l,l=e)):(r=l,l=e)):(r=l,l=e)):(r=l,l=e),l!==e?(c=et(),c!==e?(b=t,t=J6e(s,l,c)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function xa(){var t,n,s,l,c;return t=r,n=vZ(),n!==e?(s=r,l=I(),c=et(),c!==e?(l=[l,c],s=l):(r=s,s=e),s!==e?(b=t,t=H6e(n,s)):(r=t,t=e)):(r=t,t=e),t}function jht(){var t,n,s,l,c,h,T,_,x;return t=r,n=r,s=Mu(),s!==e?(l=I(),c=wi(),c!==e?(h=I(),s=[s,l,c,h],n=s):(r=n,n=e)):(r=n,n=e),n!==e?(s=r,l=xht(),l!==e?(c=I(),l=[l,c],s=l):(r=s,s=e),s===e&&(s=null),l=X9(),l!==e?(c=r,h=I(),T=Sr(),T!==e?(_=I(),x=ag(),x!==e?(h=[h,T,_,x],c=h):(r=c,c=e)):(r=c,c=e),c===e&&(c=null),b=t,t=W6e(n,s,l,c)):(r=t,t=e)):(r=t,t=e),t}function xht(){var t,n,s,l;return t=r,n=li(),n===e&&(n=ln()),n!==e?(s=r,m++,l=ye(),m--,l!==e?(r=s,s=void 0):s=e,s!==e?(b=t,t=Y6e(n)):(r=t,t=e)):(r=t,t=e),t}function jw(){var t,n,s,l;return t=Fht(),t===e&&(t=Ght(),t===e&&(t=Sht(),t===e&&(t=r,n=Kht(),n!==e?(s=r,m++,l=Oe(),m--,l!==e?(r=s,s=void 0):s=e,s!==e?(n=[n,s],t=n):(r=t,t=e)):(r=t,t=e),t===e&&(t=on(),t===e&&(t=et()))))),t}function Fht(){var t,n,s,l,c;return t=r,n=r,s=ag(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=fa(),s!==e?(l=r,m++,c=Oe(),m--,c!==e?(r=l,l=void 0):l=e,l===e&&(l=r,m++,c=ye(),m--,c!==e?(r=l,l=void 0):l=e),l!==e?(b=t,t=z6e(n,s)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function Ght(){var t,n,s,l,c;return t=r,n=r,s=nRt(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=fa(),s!==e?(l=r,m++,c=Oe(),m--,c!==e?(r=l,l=void 0):l=e,l===e&&(l=r,m++,c=ye(),m--,c!==e?(r=l,l=void 0):l=e),l!==e?(b=t,t=X6e(n,s)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function Sht(){var t,n,s,l,c,h;return t=r,n=r,s=hq(),s!==e?(l=I(),c=z1t(),c!==e?(h=I(),s=[s,l,c,h],n=s):(r=n,n=e)):(r=n,n=e),n!==e?(s=hAt(),s!==e?(l=r,m++,c=Oe(),m--,c!==e?(r=l,l=void 0):l=e,l===e&&(l=r,m++,c=ye(),m--,c!==e?(r=l,l=void 0):l=e),l!==e?(b=t,t=Q6e(n,s)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function Kht(){var t,n;return t=r,n=li(),n!==e&&(b=t,n=e5e(n)),t=n,t}function kht(){var t,n,s,l,c;return t=r,n=yq(),n!==e?(s=r,l=I(),c=et(),c!==e?(l=[l,c],s=l):(r=s,s=e),s!==e?(b=t,t=t5e(n,s)):(r=t,t=e)):(r=t,t=e),t}function p0(){var t,n,s,l,c,h;return t=r,n=r,s=Su(),s!==e?(l=I(),c=wi(),c!==e?(h=I(),s=[s,l,c,h],n=s):(r=n,n=e)):(r=n,n=e),n!==e?(s=_u(),s!==e?(b=t,t=r5e(n,s)):(r=t,t=e)):(r=t,t=e),t}function xw(){var t,n,s,l,c,h;return t=r,n=r,s=I_(),s!==e?(l=I(),c=wi(),c!==e?(h=I(),s=[s,l,c,h],n=s):(r=n,n=e)):(r=n,n=e),n!==e?(s=s_(),s!==e?(b=t,t=i5e(n,s)):(r=t,t=e)):(r=t,t=e),t}function If(){var t,n,s,l,c,h,T,_;return t=r,n=r,s=kgt(),s!==e?(l=I(),c=wi(),c!==e?(h=I(),s=[s,l,c,h],n=s):(r=n,n=e)):(r=n,n=e),n!==e?(s=dbt(),s!==e?(l=r,c=I(),h=Sr(),h!==e?(T=I(),_=ag(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e),l===e&&(l=null),b=t,t=s5e(n,s,l)):(r=t,t=e)):(r=t,t=e),t}function Fw(){var t,n,s,l,c,h;return t=r,n=et(),n!==e?(s=r,l=I(),c=Gw(),c!==e?(l=[l,c],s=l):(r=s,s=e),s===e&&(s=null),l=r,c=I(),h=Ik(),h!==e?(c=[c,h],l=c):(r=l,l=e),l===e&&(l=null),b=t,t=n5e(n,s,l)):(r=t,t=e),t}function f0(){var t,n,s,l,c,h,T;return t=r,n=et(),n!==e?(s=r,l=I(),c=sTt(),c!==e?(l=[l,c],s=l):(r=s,s=e),s===e&&(s=null),l=r,c=I(),h=Gw(),h!==e?(c=[c,h],l=c):(r=l,l=e),l===e&&(l=null),c=r,h=I(),T=Ik(),T!==e?(h=[h,T],c=h):(r=c,c=e),c===e&&(c=null),b=t,t=a5e(n,s,l,c)):(r=t,t=e),t}function Gw(){var t,n,s,l,c;return t=r,n=Awt(),n!==e&&(b=t,n=o5e(n)),t=n,t===e&&(t=r,n=eq(),n!==e&&(b=t,n=l5e(n)),t=n,t===e&&(t=r,n=r,s=cs(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=Cf(),s===e&&(s=j0()),s!==e?(l=r,m++,c=ye(),m--,c!==e?(r=l,l=void 0):l=e,l!==e?(b=t,t=d5e(n,s)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e))),t}function Ik(){var t,n,s,l,c;return t=r,n=r,s=Hl(),s!==e?(l=I(),c=vv(),c===e&&(c=gq()),c!==e?(s=[s,l,c],n=s):(r=n,n=e)):(r=n,n=e),n!==e?(s=r,m++,l=tt(),m--,l!==e?(r=s,s=void 0):s=e,s===e&&(s=r,m++,l=ye(),m--,l!==e?(r=s,s=void 0):s=e),s!==e?(b=t,t=u5e(n)):(r=t,t=e)):(r=t,t=e),t}function h0(){var t,n,s,l,c,h,T,_;return t=r,n=Gu(),n!==e?(s=r,l=I(),c=qht(),c!==e?(l=[l,c],s=l):(r=s,s=e),s!==e?(l=r,m++,c=ye(),m--,c!==e?(r=l,l=void 0):l=e,l!==e?(b=t,t=c5e(n,s)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=Gu(),n!==e?(s=r,l=I(),c=et(),c!==e?(h=I(),l=[l,c,h],s=l):(r=s,s=e),s!==e?(l=Rv(),l!==e?(c=r,h=I(),T=et(),T!==e?(h=[h,T],c=h):(r=c,c=e),c!==e?(h=r,T=I(),_=y0(),_!==e?(T=[T,_],h=T):(r=h,h=e),h===e&&(h=null),b=t,t=p5e(n,s,l,c,h)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=Gu(),n!==e?(s=r,l=I(),c=et(),c!==e?(h=I(),l=[l,c,h],s=l):(r=s,s=e),s!==e?(o.charCodeAt(r)===44?(l=A,r++):(l=e,m===0&&C(ge)),l!==e?(c=r,h=I(),T=et(),T!==e?(h=[h,T],c=h):(r=c,c=e),c!==e?(h=r,T=I(),_=y0(),_!==e?(T=[T,_],h=T):(r=h,h=e),h===e&&(h=null),T=r,m++,_=tt(),m--,_!==e?(r=T,T=void 0):T=e,T===e&&(T=r,m++,_=Be(),m--,_!==e?(r=T,T=void 0):T=e,T===e&&(T=r,m++,_=Oe(),m--,_!==e?(r=T,T=void 0):T=e)),T!==e?(b=t,t=f5e(n,s,c,h)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=Gu(),n!==e?(s=r,l=I(),c=et(),c!==e?(l=[l,c],s=l):(r=s,s=e),s!==e?(l=r,c=I(),h=y0(),h!==e?(c=[c,h],l=c):(r=l,l=e),l===e&&(l=null),b=t,t=h5e(n,s,l)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=Gu(),n!==e?(s=r,l=I(),c=y0(),c!==e?(l=[l,c],s=l):(r=s,s=e),s!==e?(b=t,t=y5e(n,s)):(r=t,t=e)):(r=t,t=e))))),t}function qht(){var t,n;return t=r,n=li(),n!==e&&(b=t,n=m5e(n)),t=n,t}function y0(){var t,n,s,l,c,h,T;return t=r,n=r,m++,s=sv(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=r,l=Uo(),l!==e?(c=I(),h=ZRt(),h!==e?(T=I(),l=[l,c,h,T],s=l):(r=s,s=e)):(r=s,s=e),s!==e?(l=ds(),l!==e?(b=t,t=v5e(s,l)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function Zht(){var t,n,s,l,c,h;return t=r,n=r,s=Rv(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=et(),s!==e?(l=r,c=I(),h=un(),h===e&&(h=Uo()),h!==e?(c=[c,h],l=c):(r=l,l=e),l===e&&(l=null),b=t,t=E5e(n,s,l)):(r=t,t=e)):(r=t,t=e),t}function Jht(){var t,n,s,l,c,h,T,_;return t=r,n=r,s=r_t(),s!==e?(l=I(),c=vv(),c===e&&(c=wgt()),c!==e?(h=I(),s=[s,l,c,h],n=s):(r=n,n=e)):(r=n,n=e),n!==e?(s=r,l=ds(),l!==e?(c=I(),l=[l,c],s=l):(r=s,s=e),s===e&&(s=null),l=r,c=un(),c===e&&(c=Uo()),c!==e?(h=I(),c=[c,h],l=c):(r=l,l=e),l!==e?(c=W_(),c===e&&(c=r,h=Sr(),h!==e?(T=I(),_=lZ(),_!==e?(h=[h,T,_],c=h):(r=c,c=e)):(r=c,c=e)),c!==e?(b=t,t=T5e(n,s,l,c)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function Hht(){var t,n,s,l;return t=r,n=r,s=TZ(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=ebt(),s!==e?(b=t,t=I5e(n,s)):(r=t,t=e)):(r=t,t=e),t}function Sw(){var t,n,s,l,c;return t=r,n=r,s=Re(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=r,l=Lr(),l!==e?(c=I(),l=[l,c],s=l):(r=s,s=e),s!==e?(l=W9(),l!==e?(b=t,t=A5e(n,s,l)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function Wht(){var t,n,s,l,c,h,T;return t=r,n=Yht(),n===e&&(n=null),s=r,l=I(),c=p0(),c!==e?(l=[l,c],s=l):(r=s,s=e),s===e&&(s=null),l=r,c=I(),h=If(),h!==e?(c=[c,h],l=c):(r=l,l=e),l===e&&(l=null),c=r,h=I(),T=zht(),T!==e?(h=[h,T],c=h):(r=c,c=e),c===e&&(c=null),b=t,t=b5e(n,s,l,c),t}function Yht(){var t,n,s;return t=r,n=Re(),n!==e?(b=r,s=w5e(n),s?s=e:s=void 0,s!==e?(b=t,t=R5e(n)):(r=t,t=e)):(r=t,t=e),t}function zht(){var t,n,s,l,c,h;return t=r,n=Xht(),n!==e?(s=r,l=I(),c=Kw(),c===e&&(c=Qht()),c!==e?(l=[l,c],s=l):(r=s,s=e),s!==e?(l=r,c=I(),h=eyt(),h!==e?(c=[c,h],l=c):(r=l,l=e),l===e&&(l=null),b=t,t=_5e(n,s,l)):(r=t,t=e)):(r=t,t=e),t}function Xht(){var t,n,s,l;return t=Uo(),t===e&&(t=Gq(),t===e&&(t=r,n=y_t(),n!==e?(s=r,m++,l=tt(),m--,l!==e?(r=s,s=void 0):s=e,s!==e?(b=t,t=g5e(n)):(r=t,t=e)):(r=t,t=e))),t}function Qht(){var t,n,s,l,c,h,T;return t=r,n=ql(),n!==e?(s=r,l=I(),c=Kw(),c!==e?(h=I(),l=[l,c,h],s=l):(r=s,s=e),s!==e?(l=ha(),l!==e?(c=r,h=I(),T=Kw(),T!==e?(h=[h,T],c=h):(r=c,c=e),c!==e?(b=t,t=D5e(n,s,l,c)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function Kw(){var t,n,s,l,c;return t=r,n=r,s=Sf(),s!==e?(l=I(),c=un(),c!==e?(s=[s,l,c],n=s):(r=n,n=e)):(r=n,n=e),n!==e&&(b=t,n=O5e(n)),t=n,t===e&&(t=r,n=r,s=Ak(),s===e&&(s=$n()),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=f1t(),s!==e?(b=t,t=C5e(n,s)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=r,s=Ak(),s===e&&(s=$n()),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=l_t(),s!==e?(b=t,t=$5e(n,s)):(r=t,t=e)):(r=t,t=e))),t}function Ak(){var t,n;return t=r,n=UDt(),n!==e&&(b=t,n=P5e(n)),t=n,t}function eyt(){var t,n,s,l;return t=r,n=r,s=C_(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=tyt(),s!==e?(b=t,t=N5e(n,s)):(r=t,t=e)):(r=t,t=e),t}function tyt(){var t,n,s,l,c;return t=r,n=r,s=Sf(),s!==e?(l=I(),c=un(),c!==e?(s=[s,l,c],n=s):(r=n,n=e)):(r=n,n=e),n===e&&(n=r,s=Ss(),s!==e?(l=I(),c=Hgt(),c!==e?(s=[s,l,c],n=s):(r=n,n=e)):(r=n,n=e),n===e&&(n=Mu(),n===e&&(n=lZ()))),n!==e&&(b=t,n=V5e(n)),t=n,t}function ryt(){var t,n,s,l,c;return t=r,n=T1t(),n!==e?(s=r,l=I(),c=et(),c!==e?(l=[l,c],s=l):(r=s,s=e),s!==e?(b=t,t=L5e(n,s)):(r=t,t=e)):(r=t,t=e),t}function kw(){var t,n,s,l,c;return t=r,n=L1t(),n!==e?(s=r,l=I(),c=Tf(),c!==e?(l=[l,c],s=l):(r=s,s=e),s!==e?(b=t,t=M5e(n,s)):(r=t,t=e)):(r=t,t=e),t}function bk(){var t,n,s,l,c,h,T,_;return t=r,n=r,s=vZ(),s!==e?(l=I(),c=Sf(),c!==e?(h=I(),T=dn(),T!==e?(_=I(),s=[s,l,c,h,T,_],n=s):(r=n,n=e)):(r=n,n=e)):(r=n,n=e),n!==e?(s=Re(),s!==e?(b=t,t=B5e(n,s)):(r=t,t=e)):(r=t,t=e),t}function iyt(){var t,n,s,l,c,h;return t=r,n=r,s=Ka(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=r,l=eR(),l!==e?(c=I(),l=[l,c],s=l):(r=s,s=e),s===e&&(s=null),l=r,c=$i(),c!==e?(h=I(),c=[c,h],l=c):(r=l,l=e),l===e&&(l=null),c=Ge(),c!==e?(b=t,t=U5e(n,s,l,c)):(r=t,t=e)):(r=t,t=e),t}function syt(){var t,n,s,l;return t=r,n=r,s=Ka(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=t8(),s!==e?(b=t,t=j5e(n,s)):(r=t,t=e)):(r=t,t=e),t}function nyt(){var t,n,s,l,c,h;return t=r,n=r,s=Ka(),s!==e?(l=I(),c=VRt(),c!==e?(h=I(),s=[s,l,c,h],n=s):(r=n,n=e)):(r=n,n=e),n!==e?(s=nr(),s!==e?(b=t,t=x5e(n,s)):(r=t,t=e)):(r=t,t=e),t}function ayt(){var t,n,s,l,c,h,T,_;return t=r,n=r,s=Ka(),s!==e?(l=I(),c=Ygt(),c!==e?(h=I(),s=[s,l,c,h],n=s):(r=n,n=e)):(r=n,n=e),n!==e?(s=nr(),s!==e?(l=r,c=I(),h=oyt(),h!==e?(c=[c,h],l=c):(r=l,l=e),l===e&&(l=null),c=r,h=I(),T=lyt(),T!==e?(h=[h,T],c=h):(r=c,c=e),c===e&&(c=null),h=r,T=I(),_=dyt(),_!==e?(T=[T,_],h=T):(r=h,h=e),h===e&&(h=null),b=t,t=F5e(n,s,l,c,h)):(r=t,t=e)):(r=t,t=e),t}function oyt(){var t,n,s,l,c,h;return t=r,n=r,s=$u(),s!==e?(l=I(),c=tr(),c!==e?(h=I(),s=[s,l,c,h],n=s):(r=n,n=e)):(r=n,n=e),n!==e?(s=Re(),s!==e?(b=t,t=G5e(n,s)):(r=t,t=e)):(r=t,t=e),t}function lyt(){var t,n,s,l,c,h;if(t=r,n=i_t(),n===e&&(n=A_()),n!==e){if(s=[],l=r,c=I(),h=wk(),h!==e?(c=[c,h],l=c):(r=l,l=e),l!==e)for(;l!==e;)s.push(l),l=r,c=I(),h=wk(),h!==e?(c=[c,h],l=c):(r=l,l=e);else s=e;s!==e?(b=t,t=S5e(n,s)):(r=t,t=e)}else r=t,t=e;return t}function wk(){var t;return t=_k(),t===e&&(t=uyt(),t===e&&(t=pyt())),t}function dyt(){var t,n,s,l,c,h;if(t=r,n=K_t(),n!==e){if(s=[],l=r,c=I(),h=Rk(),h!==e?(c=[c,h],l=c):(r=l,l=e),l!==e)for(;l!==e;)s.push(l),l=r,c=I(),h=Rk(),h!==e?(c=[c,h],l=c):(r=l,l=e);else s=e;s!==e?(b=t,t=K5e(n,s)):(r=t,t=e)}else r=t,t=e;return t}function Rk(){var t;return t=cyt(),t===e&&(t=_k()),t}function _k(){var t,n,s,l,c,h;return t=r,n=r,s=gDt(),s!==e?(l=I(),c=wi(),c!==e?(h=I(),s=[s,l,c,h],n=s):(r=n,n=e)):(r=n,n=e),n!==e?(s=nr(),s!==e?(b=t,t=k5e(n,s)):(r=t,t=e)):(r=t,t=e),t}function uyt(){var t,n,s,l,c,h,T;return t=r,n=r,s=Kgt(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n===e&&(n=null),s=r,l=jRt(),l!==e?(c=I(),h=wi(),h!==e?(T=I(),l=[l,c,h,T],s=l):(r=s,s=e)):(r=s,s=e),s!==e?(l=nr(),l!==e?(b=t,t=q5e(n,s,l)):(r=t,t=e)):(r=t,t=e),t}function cyt(){var t,n,s,l,c,h;return t=r,n=r,s=cDt(),s!==e?(l=I(),c=wi(),c!==e?(h=I(),s=[s,l,c,h],n=s):(r=n,n=e)):(r=n,n=e),n!==e?(s=nr(),s!==e?(b=t,t=Z5e(n,s)):(r=t,t=e)):(r=t,t=e),t}function pyt(){var t,n,s,l,c,h;return t=r,n=r,s=qRt(),s!==e?(l=I(),c=wi(),c!==e?(h=I(),s=[s,l,c,h],n=s):(r=n,n=e)):(r=n,n=e),n!==e?(s=nr(),s!==e?(b=t,t=J5e(n,s)):(r=t,t=e)):(r=t,t=e),t}function fyt(){var t,n,s,l,c,h,T,_,x;return t=r,n=r,s=Gs(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=hyt(),s!==e?(l=r,c=I(),h=yyt(),h!==e?(c=[c,h],l=c):(r=l,l=e),l===e&&(l=null),c=r,h=I(),T=Mq(),T!==e?(h=[h,T],c=h):(r=c,c=e),c===e&&(c=r,h=I(),T=Q1t(),T!==e?(_=I(),x=J_t(),x!==e?(h=[h,T,_,x],c=h):(r=c,c=e)):(r=c,c=e)),c===e&&(c=null),b=t,t=H5e(n,s,l,c)):(r=t,t=e)):(r=t,t=e),t}function hyt(){var t,n,s,l,c,h;return t=Vn(),t===e&&(t=r,n=Ss(),n!==e?(s=I(),l=Nn(),l!==e?(c=I(),h=Vn(),h!==e?(n=[n,s,l,c,h],t=n):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t===e&&(t=ug(),t===e&&(t=r,n=Nn(),n!==e?(s=I(),l=ug(),l!==e?(n=[n,s,l],t=n):(r=t,t=e)):(r=t,t=e)))),t}function yyt(){var t,n,s,l;return t=r,n=r,s=dn(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=ri(),s!==e?(b=t,t=W5e(n,s)):(r=t,t=e)):(r=t,t=e),t}function myt(){var t,n,s,l,c,h,T,_,x;return t=r,n=r,s=Z_t(),s!==e?(l=I(),c=ii(),c!==e?(h=I(),T=ug(),T!==e?(_=I(),x=bv(),x!==e?(s=[s,l,c,h,T,_,x],n=s):(r=n,n=e)):(r=n,n=e)):(r=n,n=e)):(r=n,n=e),n!==e&&(b=t,n=Y5e(n)),t=n,t}function gk(){var t,n,s,l,c,h,T,_,x,W,pe;if(t=r,n=r,s=Ef(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n===e&&(n=null),s=vyt(),s!==e)if(l=r,c=I(),h=Ok(),h!==e?(c=[c,h],l=c):(r=l,l=e),l===e&&(l=null),c=r,h=I(),T=Tyt(),T!==e?(h=[h,T],c=h):(r=c,c=e),c!==e){for(h=r,T=I(),_=_yt(),_!==e?(T=[T,_],h=T):(r=h,h=e),h===e&&(h=null),T=r,_=I(),x=gyt(),x!==e?(_=[_,x],T=_):(r=T,T=e),T===e&&(T=null),_=[],x=r,W=I(),pe=Pk(),pe!==e?(W=[W,pe],x=W):(r=x,x=e);x!==e;)_.push(x),x=r,W=I(),pe=Pk(),pe!==e?(W=[W,pe],x=W):(r=x,x=e);x=r,W=I(),pe=kw(),pe!==e?(W=[W,pe],x=W):(r=x,x=e),x===e&&(x=null),b=t,t=z5e(n,s,l,c,h,T,_,x)}else r=t,t=e;else r=t,t=e;return t}function vyt(){var t,n,s,l,c,h,T,_,x;if(t=r,n=qf(),n===e&&(n=Ks()),n!==e){for(s=[],l=r,c=I(),h=m0(),h!==e?(c=[c,h],l=c):(r=l,l=e);l!==e;)s.push(l),l=r,c=I(),h=m0(),h!==e?(c=[c,h],l=c):(r=l,l=e);l=r,c=I(),h=Dk(),h!==e?(c=[c,h],l=c):(r=l,l=e),l===e&&(l=null),c=r,h=I(),T=Ka(),T!==e?(h=[h,T],c=h):(r=c,c=e),c===e&&(c=null),h=r,T=I(),_=Vw(),_===e&&(_=Eyt()),_!==e?(T=[T,_],h=T):(r=h,h=e),h!==e?(T=r,_=I(),x=ji(),x!==e?(_=[_,x],T=_):(r=T,T=e),T===e&&(T=null),b=t,t=X5e(n,s,l,c,h,T)):(r=t,t=e)}else r=t,t=e;return t}function m0(){var t,n,s,l;return t=r,n=Pq(),n===e&&(n=bRt(),n===e&&(n=mq(),n===e&&(n=ju()))),n!==e?(s=r,m++,l=Be(),m--,l!==e?(r=s,s=void 0):s=e,s!==e?(b=t,t=Q5e(n)):(r=t,t=e)):(r=t,t=e),t}function Dk(){var t,n,s,l,c;return t=r,n=r,s=us(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=av(),s===e&&(s=N_(),s===e&&(s=ju(),s===e&&(s=Ks(),s===e&&(s=gv())))),s!==e?(l=r,m++,c=tt(),m--,c!==e?(r=l,l=void 0):l=e,l!==e?(b=t,t=eSe(n,s)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function Eyt(){var t,n,s,l,c;return t=r,n=Ge(),n!==e?(s=r,l=I(),c=Cw(),c!==e?(l=[l,c],s=l):(r=s,s=e),s===e&&(s=null),b=t,t=tSe(n,s)):(r=t,t=e),t}function Ok(){var t,n,s,l,c,h,T;return t=r,n=r,s=Xgt(),s!==e?(l=I(),c=Cv(),c===e&&(c=Fo()),c!==e?(h=I(),T=Xf(),T!==e?(s=[s,l,c,h,T],n=s):(r=n,n=e)):(r=n,n=e)):(r=n,n=e),n!==e?(s=r,m++,l=ye(),m--,l!==e?(r=s,s=void 0):s=e,s!==e?(b=t,t=rSe(n)):(r=t,t=e)):(r=t,t=e),t}function Tyt(){var t,n,s;return t=qw(),t===e&&(t=Bl(),t===e&&(t=$k(),t===e&&(t=r,n=r,m++,s=Be(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=v0(),s!==e?(b=t,t=iSe(s)):(r=t,t=e)):(r=t,t=e)))),t}function qw(){var t,n,s,l,c;return t=r,n=Iyt(),n!==e?(s=r,l=I(),c=mbt(),c!==e?(l=[l,c],s=l):(r=s,s=e),s!==e?(b=t,t=sSe(n,s)):(r=t,t=e)):(r=t,t=e),t}function Iyt(){var t,n,s,l;return t=Pv(),t===e&&(t=r,n=Xf(),n!==e?(s=r,m++,l=Be(),m--,l!==e?(r=s,s=void 0):s=e,s!==e?(b=t,t=nSe(n)):(r=t,t=e)):(r=t,t=e)),t}function Zw(){var t,n,s;return t=r,n=r,m++,s=tt(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=fa(),s!==e?(b=t,t=aSe(s)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=r,m++,s=Oe(),m--,s!==e?(r=n,n=void 0):n=e,n===e&&(n=r,m++,s=ye(),m--,s!==e?(r=n,n=void 0):n=e),n!==e?(s=r_(),s!==e?(b=t,t=oSe(s)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=r,m++,s=Be(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=r_(),s===e&&(s=Ck()),s!==e?(b=t,t=lSe(s)):(r=t,t=e)):(r=t,t=e))),t}function Ck(){var t,n,s,l;return t=r,n=r,s=un(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=r_(),s!==e?(b=t,t=dSe(n,s)):(r=t,t=e)):(r=t,t=e),t}function Ayt(){var t,n,s,l;return t=r,n=r,s=E_(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=sk(),s!==e?(b=t,t=uSe(n,s)):(r=t,t=e)):(r=t,t=e),t}function Jw(){var t;return t=et(),t===e&&(t=Af()),t}function Af(){var t,n;return t=r,n=ui(),n!==e&&(b=t,n=cSe(n)),t=n,t}function $k(){var t,n,s,l,c;return t=r,n=r,s=ui(),s!==e?(l=I(),c=Pv(),c!==e?(s=[s,l,c],n=s):(r=n,n=e)):(r=n,n=e),n!==e&&(b=t,n=pSe(n)),t=n,t}function Pk(){var t,n,s,l,c,h,T,_;return t=r,n=r,s=$r(),s!==e?(l=I(),c=Z8(),c!==e?(h=I(),s=[s,l,c,h],n=s):(r=n,n=e)):(r=n,n=e),n!==e?(s=r,l=byt(),l!==e?(c=I(),l=[l,c],s=l):(r=s,s=e),s===e&&(s=null),l=r,c=xa(),c!==e?(h=I(),c=[c,h],l=c):(r=l,l=e),l===e&&(l=null),c=hv(),c!==e?(h=r,T=I(),_=Ryt(),_!==e?(T=[T,_],h=T):(r=h,h=e),h!==e?(T=r,m++,_=tt(),m--,_!==e?(r=T,T=void 0):T=e,T===e&&(T=r,m++,_=ye(),m--,_!==e?(r=T,T=void 0):T=e),T!==e?(b=t,t=fSe(n,s,l,c,h)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function byt(){var t;return t=Pf(),t===e&&(t=wyt()),t}function wyt(){var t,n,s,l,c,h;return t=r,n=r,s=$r(),s!==e?(l=I(),c=Lo(),c!==e?(h=I(),s=[s,l,c,h],n=s):(r=n,n=e)):(r=n,n=e),n!==e?(s=Re(),s!==e?(b=t,t=hSe(n,s)):(r=t,t=e)):(r=t,t=e),t}function Ryt(){var t,n,s,l,c,h;return t=r,n=J_(),n!==e&&(b=t,n=ySe(n)),t=n,t===e&&(t=r,n=Vn(),n!==e?(s=r,l=I(),c=v0(),c!==e?(l=[l,c],s=l):(r=s,s=e),s!==e?(l=r,c=I(),h=xa(),h!==e?(c=[c,h],l=c):(r=l,l=e),l===e&&(l=null),b=t,t=mSe(n,s,l)):(r=t,t=e)):(r=t,t=e)),t}function _yt(){var t,n,s,l,c,h,T;return t=r,n=r,m++,s=Be(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=r,l=Lr(),l!==e?(c=I(),l=[l,c],s=l):(r=s,s=e),s!==e?(l=Re(),l!==e?(c=r,h=I(),T=Gl(),T!==e?(h=[h,T],c=h):(r=c,c=e),c===e&&(c=null),b=t,t=vSe(s,l,c)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function gyt(){var t,n,s,l,c,h,T,_,x,W,pe;return t=r,n=r,m++,s=Be(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=r,l=$r(),l!==e?(c=I(),h=LRt(),h!==e?(T=I(),_=Nn(),_!==e?(x=I(),W=Vn(),W!==e?(pe=I(),l=[l,c,h,T,_,x,W,pe],s=l):(r=s,s=e)):(r=s,s=e)):(r=s,s=e)):(r=s,s=e),s!==e?(l=Y9(),l!==e?(b=t,t=ESe(s,l)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function Nk(){var t,n,s,l,c,h,T,_;if(t=r,n=r,s=Ef(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n===e&&(n=null),s=r,l=Dyt(),l!==e?(c=I(),l=[l,c],s=l):(r=s,s=e),s!==e)if(l=v0(),l!==e){for(c=[],h=r,T=I(),_=Vk(),_!==e?(T=[T,_],h=T):(r=h,h=e);h!==e;)c.push(h),h=r,T=I(),_=Vk(),_!==e?(T=[T,_],h=T):(r=h,h=e);b=t,t=TSe(n,s,l,c)}else r=t,t=e;else r=t,t=e;return t}function Dyt(){var t,n,s,l,c,h;if(t=r,n=r,s=Vn(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e){for(s=[],l=r,c=m0(),c!==e?(h=I(),c=[c,h],l=c):(r=l,l=e);l!==e;)s.push(l),l=r,c=m0(),c!==e?(h=I(),c=[c,h],l=c):(r=l,l=e);l=r,c=Dk(),c!==e?(h=I(),c=[c,h],l=c):(r=l,l=e),l===e&&(l=null),c=UAt(),c!==e?(b=t,t=ISe(n,s,l,c)):(r=t,t=e)}else r=t,t=e;return t}function v0(){var t,n,s,l;return t=r,n=r,s=tr(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=Y9(),s!==e?(b=t,t=ASe(n,s)):(r=t,t=e)):(r=t,t=e),t}function Vk(){var t,n,s,l;return t=$w(),t===e&&(t=r,n=bk(),n!==e?(s=r,m++,l=ye(),m--,l!==e?(r=s,s=void 0):s=e,s!==e?(b=t,t=bSe(n)):(r=t,t=e)):(r=t,t=e),t===e&&(t=xa(),t===e&&(t=kw(),t===e&&(t=If(),t===e&&(t=h0()))))),t}function Hw(){var t,n,s,l,c,h;return t=r,n=r,s=Abt(),s===e&&(s=ji()),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(o.charCodeAt(r)===61?(s=U,r++):(s=e,m===0&&C(os)),s!==e?(l=r,c=I(),h=Oyt(),h!==e?(c=[c,h],l=c):(r=l,l=e),l!==e?(b=t,t=wSe(n,l)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function Oyt(){var t,n,s,l;return t=r,n=Af(),n!==e?(s=r,m++,l=Be(),m--,l!==e?(r=s,s=void 0):s=e,s===e&&(s=r,m++,l=ye(),m--,l!==e?(r=s,s=void 0):s=e),s!==e?(b=t,t=RSe(n)):(r=t,t=e)):(r=t,t=e),t===e&&(t=et()),t}function Lk(){var t,n,s,l,c,h,T;if(t=r,n=r,s=Ef(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n===e&&(n=null),s=Cyt(),s!==e){for(l=[],c=r,h=I(),T=Bk(),T!==e?(h=[h,T],c=h):(r=c,c=e);c!==e;)l.push(c),c=r,h=I(),T=Bk(),T!==e?(h=[h,T],c=h):(r=c,c=e);b=t,t=_Se(n,s,l)}else r=t,t=e;return t}function Cyt(){var t,n,s,l,c,h;if(t=r,n=r,s=Zl(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e){for(s=[],l=r,c=Mk(),c!==e?(h=I(),c=[c,h],l=c):(r=l,l=e);l!==e;)s.push(l),l=r,c=Mk(),c!==e?(h=I(),c=[c,h],l=c):(r=l,l=e);l=r,c=gs(),c!==e?(h=I(),c=[c,h],l=c):(r=l,l=e),l===e&&(l=null),c=qAt(),c!==e?(b=t,t=gSe(n,s,l,c)):(r=t,t=e)}else r=t,t=e;return t}function Mk(){var t,n,s;return t=r,n=r,m++,s=Be(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=Pq(),s===e&&(s=I1t(),s===e&&(s=ju())),s!==e?(b=t,t=DSe(s)):(r=t,t=e)):(r=t,t=e),t}function Ww(){var t,n,s;return t=r,n=r,m++,s=Be(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=uk(),s!==e?(b=t,t=OSe(s)):(r=t,t=e)):(r=t,t=e),t===e&&(t=Vw(),t===e&&(t=gu())),t}function Bk(){var t,n,s,l;return t=bk(),t===e&&(t=xa(),t===e&&(t=kw(),t===e&&(t=If(),t===e&&(t=h0(),t===e&&(t=r,n=Tht(),n!==e?(s=r,m++,l=Be(),m--,l!==e?(r=s,s=void 0):s=e,s===e&&(s=r,m++,l=ye(),m--,l!==e?(r=s,s=void 0):s=e),s!==e?(b=t,t=CSe(n)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=$w(),n!==e?(s=r,m++,l=Be(),m--,l!==e?(r=s,s=void 0):s=e,s!==e?(b=t,t=$Se(n)):(r=t,t=e)):(r=t,t=e))))))),t}function $yt(){var t,n,s,l,c,h,T,_,x;return t=r,n=r,s=fg(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=r,l=$i(),l!==e?(c=I(),l=[l,c],s=l):(r=s,s=e),s===e&&(s=null),l=abt(),l!==e?(c=r,h=I(),T=ig(),T===e&&(T=J8()),T!==e?(_=I(),x=Bu(),x!==e?(h=[h,T,_,x],c=h):(r=c,c=e)):(r=c,c=e),c===e&&(c=null),h=r,T=I(),_=di(),_===e&&(_=Yr()),_!==e?(T=[T,_],h=T):(r=h,h=e),h===e&&(h=null),b=t,t=PSe(n,s,l,c,h)):(r=t,t=e)):(r=t,t=e),t}function Pyt(){var t,n,s,l,c,h,T;if(t=r,n=r,s=Ef(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n===e&&(n=null),s=Nyt(),s!==e){if(l=[],c=r,h=I(),T=Uk(),T!==e?(h=[h,T],c=h):(r=c,c=e),c!==e)for(;c!==e;)l.push(c),c=r,h=I(),T=Uk(),T!==e?(h=[h,T],c=h):(r=c,c=e);else l=e;l!==e?(b=t,t=NSe(n,s,l)):(r=t,t=e)}else r=t,t=e;return t}function Nyt(){var t,n,s,l,c,h,T,_,x;return t=r,n=r,s=agt(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=r,l=Ka(),l!==e?(c=I(),l=[l,c],s=l):(r=s,s=e),s===e&&(s=null),l=r,c=gu(),c!==e?(h=I(),c=[c,h],l=c):(r=l,l=e),l!==e?(c=r,h=cs(),h!==e?(T=I(),h=[h,T],c=h):(r=c,c=e),c!==e?(h=r,T=gu(),T===e&&(T=Ebt()),T!==e?(_=I(),T=[T,_],h=T):(r=h,h=e),h!==e?(T=r,_=$r(),_!==e?(x=I(),_=[_,x],T=_):(r=T,T=e),T!==e?(_=et(),_!==e?(b=t,t=VSe(n,s,l,c,h,T,_)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function Uk(){var t,n,s,l,c,h,T,_;return t=r,n=r,s=eh(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=r,l=Nq(),l!==e?(c=I(),l=[l,c],s=l):(r=s,s=e),s===e&&(s=r,l=cr(),l!==e?(c=I(),h=Nq(),h!==e?(T=I(),l=[l,c,h,T],s=l):(r=s,s=e)):(r=s,s=e)),s!==e?(l=r,c=wi(),c!==e?(h=I(),T=_Dt(),T===e&&(T=iDt()),T!==e?(_=I(),c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e),l===e&&(l=null),c=r,h=Vyt(),h!==e?(T=I(),h=[h,T],c=h):(r=c,c=e),c===e&&(c=null),h=r,T=ku(),T!==e?(_=I(),T=[T,_],h=T):(r=h,h=e),h!==e?(T=Lyt(),T!==e?(b=t,t=LSe(n,s,l,c,h,T)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function Vyt(){var t,n,s,l;return t=r,n=r,s=ha(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=et(),s!==e?(b=t,t=MSe(n,s)):(r=t,t=e)):(r=t,t=e),t}function Lyt(){var t,n,s,l;return t=r,n=Myt(),n!==e?(s=r,m++,l=ye(),m--,l!==e?(r=s,s=void 0):s=e,s!==e?(b=t,t=BSe(n)):(r=t,t=e)):(r=t,t=e),t===e&&(t=Byt(),t===e&&(t=Uyt(),t===e&&(t=jyt()))),t}function Myt(){var t,n,s,l,c;return t=r,n=r,s=hv(),s!==e?(l=I(),c=J_(),c!==e?(s=[s,l,c],n=s):(r=n,n=e)):(r=n,n=e),n!==e&&(b=t,n=USe(n)),t=n,t}function Byt(){var t,n;return t=r,n=Zl(),n!==e&&(b=t,n=jSe(n)),t=n,t}function Uyt(){var t,n,s,l;return t=r,n=r,s=Vn(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=v0(),s!==e?(b=t,t=xSe(n,s)):(r=t,t=e)):(r=t,t=e),t}function jyt(){var t,n,s,l,c,h;return t=r,n=r,s=qf(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=r,l=ji(),l!==e?(c=I(),l=[l,c],s=l):(r=s,s=e),s===e&&(s=null),l=r,c=Ok(),c!==e?(h=I(),c=[c,h],l=c):(r=l,l=e),l===e&&(l=null),c=qw(),c===e&&(c=$k(),c===e&&(c=xyt())),c!==e?(b=t,t=FSe(n,s,l,c)):(r=t,t=e)):(r=t,t=e),t}function xyt(){var t,n,s,l;return t=r,n=un(),n!==e?(s=r,m++,l=Oe(),m--,l!==e?(r=s,s=void 0):s=e,s!==e?(b=t,t=GSe(n)):(r=t,t=e)):(r=t,t=e),t}function jk(){var t,n,s,l,c,h,T,_,x,W,pe,Ve;if(t=r,n=Fi(),n!==e){for(s=r,l=I(),c=us(),c!==e?(h=I(),T=Ks(),T!==e?(l=[l,c,h,T],s=l):(r=s,s=e)):(r=s,s=e),s===e&&(s=null),l=[],c=r,h=I(),T=E0(),T!==e?(h=[h,T],c=h):(r=c,c=e);c!==e;)l.push(c),c=r,h=I(),T=E0(),T!==e?(h=[h,T],c=h):(r=c,c=e);if(c=r,h=I(),T=Qf(),T!==e?(h=[h,T],c=h):(r=c,c=e),c!==e)if(h=r,T=I(),_=Us(),_!==e?(T=[T,_],h=T):(r=h,h=e),h===e&&(h=null),T=r,_=I(),x=Ge(),x!==e?(_=[_,x],T=_):(r=T,T=e),T!==e){if(_=r,x=I(),W=wAt(),W!==e?(x=[x,W],_=x):(r=_,_=e),_===e&&(_=null),x=[],W=r,pe=I(),Ve=xk(),Ve!==e?(pe=[pe,Ve],W=pe):(r=W,W=e),W!==e)for(;W!==e;)x.push(W),W=r,pe=I(),Ve=xk(),Ve!==e?(pe=[pe,Ve],W=pe):(r=W,W=e);else x=e;x!==e?(b=t,t=SSe(n,s,l,c,h,T,_,x)):(r=t,t=e)}else r=t,t=e;else r=t,t=e}else r=t,t=e;return t}function E0(){var t,n,s,l;return t=r,n=Yl(),n===e&&(n=zl()),n!==e?(s=r,m++,l=tt(),m--,l!==e?(r=s,s=void 0):s=e,s===e&&(s=r,m++,l=ye(),m--,l!==e?(r=s,s=void 0):s=e),s!==e?(b=t,t=KSe(n)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=Sq(),n!==e?(s=r,m++,l=ye(),m--,l!==e?(r=s,s=void 0):s=e,s!==e?(b=t,t=kSe(n)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=Av(),n!==e?(s=r,m++,l=Oe(),m--,l!==e?(r=s,s=void 0):s=e,s===e&&(s=r,m++,l=ye(),m--,l!==e?(r=s,s=void 0):s=e),s!==e?(b=t,t=qSe(n)):(r=t,t=e)):(r=t,t=e))),t}function Yw(){var t,n,s,l,c,h;if(t=r,n=Re(),n!==e){for(s=[],l=r,c=I(),h=js(),h!==e?(c=[c,h],l=c):(r=l,l=e);l!==e;)s.push(l),s.length>=1?l=e:(l=r,c=I(),h=js(),h!==e?(c=[c,h],l=c):(r=l,l=e));b=t,t=ZSe(n,s)}else r=t,t=e;return t}function xk(){var t,n,s;return t=H0(),t===e&&(t=r,n=r,m++,s=Oe(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=Fyt(),s!==e?(b=t,t=JSe(s)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=r,m++,s=ye(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=Gyt(),s!==e?(b=t,t=HSe(s)):(r=t,t=e)):(r=t,t=e))),t}function Fyt(){var t;return t=js(),t===e&&(t=xw(),t===e&&(t=p0(),t===e&&(t=Kyt()))),t}function Gyt(){var t;return t=M0(),t===e&&(t=Syt(),t===e&&(t=I0(),t===e&&(t=sR(),t===e&&(t=A0())))),t}function Syt(){var t,n,s,l,c,h,T;return t=r,n=r,s=Sr(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=r,l=j_(),l===e&&(l=Gwt()),l!==e?(c=I(),l=[l,c],s=l):(r=s,s=e),s===e&&(s=null),l=r,c=Ff(),c!==e?(h=I(),T=Y_(),T!==e?(c=[c,h,T],l=c):(r=l,l=e)):(r=l,l=e),l!==e?(b=t,t=WSe(n,s,l)):(r=t,t=e)):(r=t,t=e),t}function Kyt(){var t,n,s,l,c,h,T,_;return t=r,n=r,s=Lr(),s!==e?(l=I(),c=rg(),c!==e?(h=I(),T=dn(),T!==e?(_=I(),s=[s,l,c,h,T,_],n=s):(r=n,n=e)):(r=n,n=e)):(r=n,n=e),n!==e?(s=Ge(),s!==e?(b=t,t=YSe(n,s)):(r=t,t=e)):(r=t,t=e),t}function kyt(){var t,n,s,l,c,h,T,_,x;return t=r,n=Cr(),n!==e?(s=r,l=I(),c=E0(),c!==e?(l=[l,c],s=l):(r=s,s=e),s===e&&(s=null),l=r,c=I(),h=Qf(),h!==e?(c=[c,h],l=c):(r=l,l=e),l!==e?(c=r,h=I(),T=wr(),T!==e?(h=[h,T],c=h):(r=c,c=e),c===e&&(c=null),h=r,T=I(),_=xi(),_!==e?(T=[T,_],h=T):(r=h,h=e),h!==e?(T=r,_=I(),x=di(),x===e&&(x=Yr()),x!==e?(_=[_,x],T=_):(r=T,T=e),T===e&&(T=null),b=t,t=zSe(n,s,l,c,h,T)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function zw(){var t,n,s,l,c,h,T,_,x,W;return t=r,n=Jr(),n!==e?(s=r,l=I(),c=E0(),c!==e?(l=[l,c],s=l):(r=s,s=e),s===e&&(s=null),l=r,c=I(),h=Qf(),h!==e?(c=[c,h],l=c):(r=l,l=e),l!==e?(c=r,h=I(),T=wr(),T!==e?(h=[h,T],c=h):(r=c,c=e),c===e&&(c=null),h=r,T=I(),_=Ge(),_!==e?(T=[T,_],h=T):(r=h,h=e),h!==e?(T=r,_=I(),x=ji(),x!==e?(_=[_,x],T=_):(r=T,T=e),T===e&&(T=null),_=r,x=I(),W=xAt(),W!==e?(x=[x,W],_=x):(r=_,_=e),_!==e?(b=t,t=XSe(n,s,l,c,h,T,_)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function Xw(){var t,n,s;return t=r,n=r,m++,s=Oe(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=Fa(),s===e&&(s=Au()),s!==e?(b=t,t=QSe(s)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=r,m++,s=Be(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=H0(),s!==e?(b=t,t=eKe(s)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=r,m++,s=ye(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=qyt(),s!==e?(b=t,t=tKe(s)):(r=t,t=e)):(r=t,t=e))),t}function qyt(){var t;return t=nn(),t===e&&(t=Yk(),t===e&&(t=$o(),t===e&&(t=Au(),t===e&&(t=jl(),t===e&&(t=wf(),t===e&&(t=t7(),t===e&&(t=r7(),t===e&&(t=i7(),t===e&&(t=b0(),t===e&&(t=w0(),t===e&&(t=Rf(),t===e&&(t=_f())))))))))))),t}function Zyt(){var t,n,s,l,c,h,T,_;if(t=r,n=r,s=_1t(),s!==e?(l=I(),c=Av(),c!==e?(h=I(),T=Qf(),T!==e?(_=I(),s=[s,l,c,h,T,_],n=s):(r=n,n=e)):(r=n,n=e)):(r=n,n=e),n!==e)if(s=r,l=Gf(),l!==e?(c=I(),l=[l,c],s=l):(r=s,s=e),s===e&&(s=null),l=Ge(),l!==e){for(c=[],h=r,T=I(),_=A0(),_!==e?(T=[T,_],h=T):(r=h,h=e);h!==e;)c.push(h),c.length>=1?h=e:(h=r,T=I(),_=A0(),_!==e?(T=[T,_],h=T):(r=h,h=e));b=t,t=rKe(n,s,l,c)}else r=t,t=e;else r=t,t=e;return t}function Fk(){var t,n,s,l,c,h,T,_,x,W,pe,Ve,qe,$t,Kr,Zu;if(t=r,n=r,m++,s=Be(),m--,s!==e?(r=n,n=void 0):n=e,n===e&&(n=r,m++,s=tt(),m--,s!==e?(r=n,n=void 0):n=e,n===e&&(n=r,m++,s=Oe(),m--,s!==e?(r=n,n=void 0):n=e)),n!==e)if(s=r,l=Fi(),l!==e?(c=I(),l=[l,c],s=l):(r=s,s=e),s!==e)if(l=r,c=us(),c!==e?(h=I(),T=Ks(),T!==e?(_=I(),c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e),l===e&&(l=null),c=r,h=Gk(),h!==e?(T=I(),h=[h,T],c=h):(r=c,c=e),c===e&&(c=null),h=r,T=Ds(),T!==e?(_=I(),T=[T,_],h=T):(r=h,h=e),h!==e)if(T=r,_=Us(),_!==e?(x=I(),_=[_,x],T=_):(r=T,T=e),T===e&&(T=null),_=r,x=Ge(),x!==e?(W=I(),x=[x,W],_=x):(r=_,_=e),_===e&&(_=null),x=r,W=$r(),W!==e?(pe=I(),W=[W,pe],x=W):(r=x,x=e),x!==e)if(W=r,pe=Ge(),pe!==e?(Ve=I(),pe=[pe,Ve],W=pe):(r=W,W=e),W!==e)if(pe=Pf(),pe===e&&(pe=$At()),pe!==e){for(Ve=[],qe=r,$t=I(),Kr=T0(),Kr!==e?($t=[$t,Kr],qe=$t):(r=qe,qe=e);qe!==e;)Ve.push(qe),qe=r,$t=I(),Kr=T0(),Kr!==e?($t=[$t,Kr],qe=$t):(r=qe,qe=e);b=t,t=iKe(s,l,c,h,T,_,x,W,pe,Ve)}else r=t,t=e;else r=t,t=e;else r=t,t=e;else r=t,t=e;else r=t,t=e;else r=t,t=e;if(t===e)if(t=r,n=r,m++,s=ye(),m--,s!==e?(r=n,n=void 0):n=e,n!==e)if(s=r,l=Fi(),l!==e?(c=I(),l=[l,c],s=l):(r=s,s=e),s!==e)if(l=r,c=Gk(),c!==e?(h=I(),c=[c,h],l=c):(r=l,l=e),l===e&&(l=null),c=r,h=Ds(),h!==e?(T=I(),h=[h,T],c=h):(r=c,c=e),c!==e)if(h=r,T=Gf(),T!==e?(_=I(),T=[T,_],h=T):(r=h,h=e),h===e&&(h=null),T=r,_=Us(),_!==e?(x=I(),_=[_,x],T=_):(r=T,T=e),T===e&&(T=null),_=r,x=Ge(),x!==e?(W=I(),x=[x,W],_=x):(r=_,_=e),_===e&&(_=null),x=r,W=$r(),W!==e?(pe=I(),W=[W,pe],x=W):(r=x,x=e),x!==e)if(W=r,pe=hk(),pe===e&&(pe=Ge()),pe!==e?(Ve=I(),pe=[pe,Ve],W=pe):(r=W,W=e),W!==e)if(pe=r,Ve=I0(),Ve!==e?(qe=I(),Ve=[Ve,qe],pe=Ve):(r=pe,pe=e),pe===e&&(pe=null),Ve=Pf(),Ve!==e){for(qe=[],$t=r,Kr=I(),Zu=T0(),Zu!==e?(Kr=[Kr,Zu],$t=Kr):(r=$t,$t=e);$t!==e;)qe.push($t),$t=r,Kr=I(),Zu=T0(),Zu!==e?(Kr=[Kr,Zu],$t=Kr):(r=$t,$t=e);b=t,t=sKe(s,l,c,h,T,_,x,W,pe,Ve,qe)}else r=t,t=e;else r=t,t=e;else r=t,t=e;else r=t,t=e;else r=t,t=e;else r=t,t=e;return t}function Gk(){var t,n,s,l;return t=r,n=yg(),n!==e?(s=r,m++,l=Be(),m--,l!==e?(r=s,s=void 0):s=e,s===e&&(s=r,m++,l=tt(),m--,l!==e?(r=s,s=void 0):s=e,s===e&&(s=r,m++,l=ye(),m--,l!==e?(r=s,s=void 0):s=e)),s!==e?(b=t,t=nKe(n)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=pq(),n!==e?(s=r,m++,l=Be(),m--,l!==e?(r=s,s=void 0):s=e,s!==e?(b=t,t=aKe(n)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=tZ(),n!==e?(s=r,m++,l=Be(),m--,l!==e?(r=s,s=void 0):s=e,s!==e?(b=t,t=oKe(n)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=lg(),n!==e?(s=r,m++,l=Oe(),m--,l!==e?(r=s,s=void 0):s=e,s!==e?(b=t,t=lKe(n)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=ZDt(),n!==e?(s=r,m++,l=Oe(),m--,l!==e?(r=s,s=void 0):s=e,s!==e?(b=t,t=dKe(n)):(r=t,t=e)):(r=t,t=e))))),t}function T0(){var t,n,s;return t=r,n=r,m++,s=tt(),m--,s!==e?(r=n,n=void 0):n=e,n===e&&(n=r,m++,s=ye(),m--,s!==e?(r=n,n=void 0):n=e),n!==e?(s=xa(),s!==e?(b=t,t=uKe(s)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=r,m++,s=Oe(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=js(),s!==e?(b=t,t=cKe(s)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=r,m++,s=ye(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=sR(),s===e&&(s=M0(),s===e&&(s=Sk(),s===e&&(s=Hyt(),s===e&&(s=Wyt())))),s!==e?(b=t,t=pKe(s)):(r=t,t=e)):(r=t,t=e))),t}function Jyt(){var t,n,s,l,c,h;return t=r,n=r,m++,s=Oe(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=r,l=li(),l!==e?(c=I(),h=A_(),h!==e?(l=[l,c,h],s=l):(r=s,s=e)):(r=s,s=e),s!==e?(b=t,t=fKe(s)):(r=t,t=e)):(r=t,t=e),t}function Sk(){var t,n,s,l;return t=r,n=r,s=Eq(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=ji(),s!==e?(b=t,t=hKe(n,s)):(r=t,t=e)):(r=t,t=e),t}function Hyt(){var t,n,s,l,c;return t=r,n=r,s=Hl(),s!==e?(l=I(),c=ln(),c!==e?(s=[s,l,c],n=s):(r=n,n=e)):(r=n,n=e),n!==e&&(b=t,n=yKe(n)),t=n,t}function Wyt(){var t,n,s,l,c,h,T;return t=r,n=r,s=Hl(),s!==e?(l=I(),c=cr(),c!==e?(h=I(),T=ln(),T!==e?(s=[s,l,c,h,T],n=s):(r=n,n=e)):(r=n,n=e)):(r=n,n=e),n!==e&&(b=t,n=mKe(n)),t=n,t}function Yyt(){var t,n,s,l,c,h,T,_,x,W;return t=r,n=r,m++,s=tt(),m--,s!==e?(r=n,n=void 0):n=e,n===e&&(n=r,m++,s=ye(),m--,s!==e?(r=n,n=void 0):n=e),n!==e?(s=r,l=Cr(),l!==e?(c=I(),l=[l,c],s=l):(r=s,s=e),s!==e?(l=r,c=Ds(),c!==e?(h=I(),c=[c,h],l=c):(r=l,l=e),l!==e?(c=r,h=Gf(),h!==e?(T=I(),h=[h,T],c=h):(r=c,c=e),c===e&&(c=null),h=r,T=wr(),T!==e?(_=I(),T=[T,_],h=T):(r=h,h=e),h===e&&(h=null),T=xi(),T!==e?(_=r,x=I(),W=di(),W===e&&(W=Yr()),W!==e?(x=[x,W],_=x):(r=_,_=e),_===e&&(_=null),b=t,t=vKe(s,l,c,h,T,_)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=r,m++,s=Be(),m--,s!==e?(r=n,n=void 0):n=e,n===e&&(n=r,m++,s=Oe(),m--,s!==e?(r=n,n=void 0):n=e),n!==e?(s=r,l=Cr(),l!==e?(c=I(),l=[l,c],s=l):(r=s,s=e),s!==e?(l=r,c=lg(),c!==e?(h=I(),c=[c,h],l=c):(r=l,l=e),l===e&&(l=null),c=r,h=Ds(),h!==e?(T=I(),h=[h,T],c=h):(r=c,c=e),c!==e?(h=r,T=wr(),T!==e?(_=I(),T=[T,_],h=T):(r=h,h=e),h===e&&(h=null),T=r,_=xi(),_!==e?(x=I(),_=[_,x],T=_):(r=T,T=e),T!==e?(_=r,x=$r(),x!==e?(W=I(),x=[x,W],_=x):(r=_,_=e),_!==e?(x=Ge(),x!==e?(b=t,t=EKe(s,l,c,h,T,_,x)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)),t}function zyt(){var t,n,s,l,c,h,T,_;return t=r,n=r,s=Jr(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=r,l=Ds(),l!==e?(c=I(),l=[l,c],s=l):(r=s,s=e),s!==e?(l=r,c=wr(),c!==e?(h=I(),c=[c,h],l=c):(r=l,l=e),l===e&&(l=null),c=Ge(),c!==e?(h=r,T=I(),_=Xyt(),_!==e?(T=[T,_],h=T):(r=h,h=e),h!==e?(b=t,t=TKe(n,s,l,c,h)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function Xyt(){var t;return t=nn(),t===e&&(t=wf(),t===e&&(t=Rf(),t===e&&(t=_f(),t===e&&(t=b0(),t===e&&(t=w0(),t===e&&(t=Au(),t===e&&(t=Zmt()))))))),t}function Qyt(){var t,n,s,l,c,h,T,_,x;return t=r,n=r,s=Jr(),s!==e?(l=I(),c=Ds(),c!==e?(h=I(),s=[s,l,c,h],n=s):(r=n,n=e)):(r=n,n=e),n!==e?(s=r,l=li(),l!==e?(c=I(),h=ii(),h!==e?(T=I(),_=xo(),_!==e?(x=I(),l=[l,c,h,T,_,x],s=l):(r=s,s=e)):(r=s,s=e)):(r=s,s=e),s!==e?(l=r,c=Re(),c!==e?(h=I(),c=[c,h],l=c):(r=l,l=e),l!==e?(c=r,h=Wk(),h!==e?(T=I(),h=[h,T],c=h):(r=c,c=e),c===e&&(c=null),h=wf(),h!==e?(b=t,t=IKe(n,s,l,c,h)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function emt(){var t,n,s,l,c,h,T,_,x;return t=r,n=r,m++,s=tt(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=kq(),s!==e?(l=r,c=I(),h=Ge(),h!==e?(c=[c,h],l=c):(r=l,l=e),l===e&&(l=null),b=t,t=AKe(s,l)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=r,m++,s=ye(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=kq(),s!==e?(l=r,c=I(),h=TAt(),h!==e?(c=[c,h],l=c):(r=l,l=e),l===e&&(l=null),c=r,h=I(),T=Ds(),T===e&&(T=jo(),T===e&&(T=Cv(),T===e&&(T=$i(),T===e&&(T=Pu())))),T!==e?(h=[h,T],c=h):(r=c,c=e),c!==e?(h=r,T=I(),_=Gf(),_!==e?(T=[T,_],h=T):(r=h,h=e),h===e&&(h=null),T=r,_=I(),x=Ge(),x!==e?(_=[_,x],T=_):(r=T,T=e),T===e&&(T=null),b=t,t=bKe(s,l,c,h,T)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)),t}function Qw(){var t;return t=tmt(),t===e&&(t=rmt(),t===e&&(t=imt())),t}function tmt(){var t,n,s,l,c;return t=r,n=Gf(),n!==e?(s=r,l=I(),c=Y0(),c!==e?(l=[l,c],s=l):(r=s,s=e),s===e&&(s=null),b=t,t=wKe(n,s)):(r=t,t=e),t}function rmt(){var t,n,s,l;return t=r,n=r,s=xo(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=Re(),s!==e?(b=t,t=RKe(n,s)):(r=t,t=e)):(r=t,t=e),t}function imt(){var t,n,s,l,c;return t=r,n=JDt(),n!==e?(s=r,l=I(),c=Y0(),c!==e?(l=[l,c],s=l):(r=s,s=e),s===e&&(s=null),b=t,t=_Ke(n,s)):(r=t,t=e),t}function Kk(){var t,n,s,l,c,h,T,_,x,W,pe,Ve,qe,$t,Kr;if(t=r,n=Fi(),n!==e)if(s=r,l=I(),c=us(),c!==e?(h=I(),T=Ks(),T!==e?(l=[l,c,h,T],s=l):(r=s,s=e)):(r=s,s=e),s===e&&(s=null),l=r,c=I(),h=eR(),h!==e?(c=[c,h],l=c):(r=l,l=e),l===e&&(l=null),c=r,h=I(),T=$i(),T!==e?(h=[h,T],c=h):(r=c,c=e),c!==e)if(h=r,T=I(),_=Us(),_!==e?(T=[T,_],h=T):(r=h,h=e),h===e&&(h=null),T=r,_=I(),x=Ge(),x!==e?(_=[_,x],T=_):(r=T,T=e),T!==e){for(_=r,x=I(),W=smt(),W!==e?(x=[x,W],_=x):(r=_,_=e),_===e&&(_=null),x=r,W=I(),pe=nmt(),pe!==e?(W=[W,pe],x=W):(r=x,x=e),x===e&&(x=null),W=r,pe=I(),Ve=pAt(),Ve!==e?(pe=[pe,Ve],W=pe):(r=W,W=e),W===e&&(W=null),pe=r,Ve=I(),qe=nTt(),qe!==e?(Ve=[Ve,qe],pe=Ve):(r=pe,pe=e),pe===e&&(pe=null),Ve=[],qe=r,$t=I(),Kr=kk(),Kr!==e?($t=[$t,Kr],qe=$t):(r=qe,qe=e);qe!==e;)Ve.push(qe),qe=r,$t=I(),Kr=kk(),Kr!==e?($t=[$t,Kr],qe=$t):(r=qe,qe=e);b=t,t=gKe(n,s,l,c,h,T,_,x,W,pe,Ve)}else r=t,t=e;else r=t,t=e;else r=t,t=e;return t}function eR(){var t,n,s,l,c;return t=r,n=Yl(),n===e&&(n=zl()),n!==e&&(b=t,n=DKe(n)),t=n,t===e&&(t=r,n=r,s=f_t(),s===e&&(s=j_()),s!==e?(l=I(),c=zl(),c===e&&(c=Yl()),c!==e?(s=[s,l,c],n=s):(r=n,n=e)):(r=n,n=e),n!==e?(s=r,m++,l=ye(),m--,l!==e?(r=s,s=void 0):s=e,s!==e?(b=t,t=OKe(n)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=mg(),n===e&&(n=Ev()),n!==e?(s=r,m++,l=ye(),m--,l!==e?(r=s,s=void 0):s=e,s!==e?(b=t,t=CKe(n)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=mv(),n===e&&(n=eDt()),n!==e?(s=r,m++,l=Oe(),m--,l!==e?(r=s,s=void 0):s=e,s!==e?(b=t,t=$Ke(n)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=yZ(),n!==e?(s=r,m++,l=tt(),m--,l!==e?(r=s,s=void 0):s=e,s!==e?(b=t,t=PKe(n)):(r=t,t=e)):(r=t,t=e))))),t}function Us(){var t,n,s,l,c,h,T;return t=r,n=r,s=Uu(),s!==e?(l=I(),c=cr(),c!==e?(h=I(),T=P_(),T!==e?(s=[s,l,c,h,T],n=s):(r=n,n=e)):(r=n,n=e)):(r=n,n=e),n!==e&&(b=t,n=NKe(n)),t=n,t}function tR(){var t,n,s;return t=r,n=lTt(),n!==e&&(b=t,n=VKe(n)),t=n,t===e&&(t=r,n=r,m++,s=ye(),m--,s!==e?(r=n,n=void 0):n=e,n===e&&(n=r,m++,s=Be(),m--,s!==e?(r=n,n=void 0):n=e),n!==e?(s=qk(),s!==e?(b=t,t=LKe(s)):(r=t,t=e)):(r=t,t=e),t===e&&(t=bf())),t}function bf(){var t,n,s,l,c,h,T,_;if(t=r,n=Re(),n!==e){for(s=r,l=I(),c=Ci(),c!==e?(l=[l,c],s=l):(r=s,s=e),s===e&&(s=null),l=r,c=I(),h=Sr(),h!==e?(T=I(),_=z_(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e),l===e&&(l=null),c=[],h=r,T=I(),_=B0(),_!==e?(T=[T,_],h=T):(r=h,h=e);h!==e;)c.push(h),h=r,T=I(),_=B0(),_!==e?(T=[T,_],h=T):(r=h,h=e);b=t,t=MKe(n,s,l,c)}else r=t,t=e;return t}function smt(){var t,n,s,l,c,h;return t=r,n=r,s=Su(),s!==e?(l=I(),c=dn(),c!==e?(h=I(),s=[s,l,c,h],n=s):(r=n,n=e)):(r=n,n=e),n!==e?(s=Ge(),s!==e?(l=r,m++,c=ye(),m--,c!==e?(r=l,l=void 0):l=e,l!==e?(b=t,t=BKe(n,s)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function nmt(){var t,n,s,l,c;return t=r,n=r,s=dn(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=Ge(),s!==e?(l=r,m++,c=ye(),m--,c!==e?(r=l,l=void 0):l=e,l!==e?(b=t,t=UKe(n,s)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function kk(){var t,n,s;return t=H0(),t===e&&(t=r,n=r,m++,s=Oe(),m--,s!==e?(r=n,n=void 0):n=e,n===e&&(n=r,m++,s=Be(),m--,s!==e?(r=n,n=void 0):n=e),n!==e?(s=qk(),s!==e?(b=t,t=jKe(s)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=r,m++,s=Oe(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=amt(),s!==e?(b=t,t=xKe(s)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=r,m++,s=tt(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=umt(),s!==e?(b=t,t=FKe(s)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=r,m++,s=ye(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=cmt(),s!==e?(b=t,t=GKe(s)):(r=t,t=e)):(r=t,t=e))))),t}function qk(){var t,n,s,l,c,h,T;if(t=r,n=r,s=Jl(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e)if(s=Ge(),s!==e){for(l=[],c=r,h=I(),T=Zk(),T!==e?(h=[h,T],c=h):(r=c,c=e);c!==e;)l.push(c),c=r,h=I(),T=Zk(),T!==e?(h=[h,T],c=h):(r=c,c=e);b=t,t=SKe(n,s,l)}else r=t,t=e;else r=t,t=e;return t}function Zk(){var t,n,s,l;return t=r,n=r,s=A_t(),s===e&&(s=HRt()),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=Hwt(),s===e&&(s=uv(),s===e&&(s=Qwt(),s===e&&(s=TRt(),s===e&&(s=Vu(),s===e&&(s=Bu(),s===e&&(s=w_t(),s===e&&(s=rZ(),s===e&&(s=Ov(),s===e&&(s=li()))))))))),s!==e?(b=t,t=KKe(n,s)):(r=t,t=e)):(r=t,t=e),t}function amt(){var t;return t=omt(),t===e&&(t=lmt(),t===e&&(t=js(),t===e&&(t=Hk(),t===e&&(t=p0(),t===e&&(t=xw(),t===e&&(t=gf(),t===e&&(t=Jk()))))))),t}function omt(){var t,n,s,l;return t=r,n=r,s=eRt(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=Ge(),s!==e?(b=t,t=kKe(n,s)):(r=t,t=e)):(r=t,t=e),t}function lmt(){var t,n,s,l;return t=r,n=r,s=Zwt(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=dmt(),s===e&&(s=Ge()),s!==e?(b=t,t=qKe(n,s)):(r=t,t=e)):(r=t,t=e),t}function dmt(){var t,n,s,l,c,h,T,_,x,W,pe;return t=r,n=r,s=Ge(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=r,l=Gs(),l!==e?(c=I(),h=oZ(),h!==e?(T=I(),_=Lr(),_!==e?(x=I(),W=dn(),W!==e?(pe=I(),l=[l,c,h,T,_,x,W,pe],s=l):(r=s,s=e)):(r=s,s=e)):(r=s,s=e)):(r=s,s=e),s!==e?(l=et(),l!==e?(b=t,t=ZKe(n,s,l)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function Jk(){var t,n,s,l,c,h,T;return t=r,n=r,s=Sr(),s!==e?(l=I(),c=Su(),c!==e?(h=I(),T=A_(),T!==e?(s=[s,l,c,h,T],n=s):(r=n,n=e)):(r=n,n=e)):(r=n,n=e),n!==e?(s=r,l=I(),c=wu(),c!==e?(l=[l,c],s=l):(r=s,s=e),s===e&&(s=null),b=t,t=JKe(n,s)):(r=t,t=e),t}function umt(){var t,n,s,l;return t=r,n=r,s=cs(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=$f(),s===e&&(s=Re()),s!==e?(b=t,t=HKe(n,s)):(r=t,t=e)):(r=t,t=e),t}function cmt(){var t;return t=pmt(),t===e&&(t=fmt(),t===e&&(t=hmt(),t===e&&(t=Emt(),t===e&&(t=Tmt(),t===e&&(t=sR(),t===e&&(t=I0(),t===e&&(t=M0(),t===e&&(t=Imt(),t===e&&(t=A0(),t===e&&(t=Amt(),t===e&&(t=a9()))))))))))),t}function pmt(){var t,n,s,l;return t=r,n=r,s=R_t(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=K9(),s!==e?(b=t,t=WKe(n,s)):(r=t,t=e)):(r=t,t=e),t}function fmt(){var t,n,s,l,c,h;return t=r,n=r,s=Su(),s!==e?(l=I(),c=wi(),c!==e?(h=I(),s=[s,l,c,h],n=s):(r=n,n=e)):(r=n,n=e),n!==e?(s=r,l=Gq(),l===e&&(l=k_t(),l===e&&(l=m_t())),l!==e?(c=I(),l=[l,c],s=l):(r=s,s=e),s!==e?(l=Pf(),l!==e?(b=t,t=YKe(n,s,l)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function hmt(){var t,n,s,l,c,h;return t=r,n=r,s=Gs(),s!==e?(l=I(),c=Pv(),c!==e?(h=I(),s=[s,l,c,h],n=s):(r=n,n=e)):(r=n,n=e),n!==e?(s=ymt(),s===e&&(s=mmt(),s===e&&(s=vmt())),s!==e?(b=t,t=zKe(n,s)):(r=t,t=e)):(r=t,t=e),t}function ymt(){var t,n,s,l,c,h,T;return t=r,n=r,s=gs(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=q9(),s!==e?(l=r,c=I(),h=ci(),h!==e?(T=I(),c=[c,h,T],l=c):(r=l,l=e),l!==e?(c=q9(),c!==e?(b=t,t=XKe(n,s,l,c)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function rR(){var t,n;return t=r,n=k_(),n!==e&&(b=t,n=QKe(n)),t=n,t===e&&(t=r,n=S_(),n!==e&&(b=t,n=eke(n)),t=n,t===e&&(t=et())),t}function mmt(){var t,n,s,l;return t=r,n=r,s=ii(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=fa(),s!==e?(b=t,t=tke(n,s)):(r=t,t=e)):(r=t,t=e),t}function vmt(){var t,n,s,l;return t=r,n=r,s=Sr(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=vAt(),s!==e?(b=t,t=rke(n,s)):(r=t,t=e)):(r=t,t=e),t}function iR(){var t,n,s,l;return t=r,n=r,s=Egt(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=ds(),s!==e?(b=t,t=ike(n,s)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=r,s=O1t(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=ds(),s!==e?(b=t,t=ske(n,s)):(r=t,t=e)):(r=t,t=e)),t}function Emt(){var t,n;return t=r,n=ui(),n!==e&&(b=t,n=nke(n)),t=n,t}function Tmt(){var t,n,s,l,c,h;return t=r,n=r,s=$r(),s!==e?(l=I(),c=q8(),c!==e?(h=I(),s=[s,l,c,h],n=s):(r=n,n=e)):(r=n,n=e),n!==e?(s=r,l=h1t(),l!==e?(c=I(),h=Uo(),h!==e?(l=[l,c,h],s=l):(r=s,s=e)):(r=s,s=e),s===e&&(s=r,l=Zl(),l!==e?(c=I(),h=Uo(),h!==e?(l=[l,c,h],s=l):(r=s,s=e)):(r=s,s=e),s===e&&(s=Cr())),s!==e?(b=t,t=ake(n,s)):(r=t,t=e)):(r=t,t=e),t}function sR(){var t,n,s,l;return t=r,n=r,s=xo(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=Re(),s!==e?(b=t,t=oke(n,s)):(r=t,t=e)):(r=t,t=e),t}function I0(){var t,n,s,l;return t=r,n=r,s=cs(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=Re(),s!==e?(b=t,t=lke(n,s)):(r=t,t=e)):(r=t,t=e),t}function Imt(){var t,n,s,l,c;return t=r,n=r,s=th(),s!==e?(l=I(),c=Bq(),c!==e?(s=[s,l,c],n=s):(r=n,n=e)):(r=n,n=e),n!==e&&(b=t,n=dke(n)),t=n,t}function A0(){var t,n,s,l,c,h,T;return t=r,n=r,s=Sr(),s!==e?(l=I(),c=Mo(),c!==e?(s=[s,l,c],n=s):(r=n,n=e)):(r=n,n=e),n===e&&(n=r,s=Sr(),s!==e?(l=I(),c=Ss(),c!==e?(h=I(),T=Mo(),T!==e?(s=[s,l,c,h,T],n=s):(r=n,n=e)):(r=n,n=e)):(r=n,n=e)),n!==e&&(b=t,n=uke(n)),t=n,t}function Amt(){var t,n,s,l;return t=r,n=r,s=zq(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=Re(),s!==e?(b=t,t=cke(n,s)):(r=t,t=e)):(r=t,t=e),t}function js(){var t,n,s,l,c;return t=r,n=r,m++,s=Oe(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=r,l=z_(),l!==e?(c=I(),l=[l,c],s=l):(r=s,s=e),s!==e?(l=k9(),l!==e?(b=t,t=pke(s,l)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function nR(){var t,n,s,l,c,h;return t=r,n=r,s=Re(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(o.charCodeAt(r)===61?(s=U,r++):(s=e,m===0&&C(os)),s!==e?(l=r,c=I(),h=et(),h!==e?(c=[c,h],l=c):(r=l,l=e),l!==e?(b=t,t=fke(n,l)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function Hk(){var t,n,s,l,c,h;return t=r,n=r,s=ui(),s!==e?(l=I(),c=ya(),c!==e?(h=I(),s=[s,l,c,h],n=s):(r=n,n=e)):(r=n,n=e),n!==e?(s=nr(),s!==e?(b=t,t=hke(n,s)):(r=t,t=e)):(r=t,t=e),t}function bmt(){var t,n,s,l,c,h,T,_,x;return t=r,n=r,s=Cr(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=r,l=eR(),l!==e?(c=I(),l=[l,c],s=l):(r=s,s=e),s===e&&(s=null),l=r,c=$i(),c!==e?(h=I(),c=[c,h],l=c):(r=l,l=e),l!==e?(c=r,h=wr(),h!==e?(T=I(),h=[h,T],c=h):(r=c,c=e),c===e&&(c=null),h=xi(),h!==e?(T=r,_=I(),x=di(),x===e&&(x=Yr()),x!==e?(_=[_,x],T=_):(r=T,T=e),T===e&&(T=null),b=t,t=yke(n,s,l,c,h,T)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function wr(){var t,n,s,l,c;return t=r,n=r,s=Uu(),s!==e?(l=I(),c=P_(),c!==e?(s=[s,l,c],n=s):(r=n,n=e)):(r=n,n=e),n!==e&&(b=t,n=mke(n)),t=n,t}function wmt(){var t,n,s,l,c,h;return t=r,n=r,s=Jr(),s!==e?(l=I(),c=$i(),c!==e?(h=I(),s=[s,l,c,h],n=s):(r=n,n=e)):(r=n,n=e),n!==e?(s=r,l=wr(),l!==e?(c=I(),l=[l,c],s=l):(r=s,s=e),s===e&&(s=null),l=r,c=Ul(),c!==e?(h=I(),c=[c,h],l=c):(r=l,l=e),l!==e?(c=jAt(),c!==e?(b=t,t=vke(n,s,l,c)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function Rmt(){var t,n,s,l,c,h,T,_,x;return t=r,n=r,s=Jr(),s!==e?(l=I(),c=$i(),c!==e?(h=I(),s=[s,l,c,h],n=s):(r=n,n=e)):(r=n,n=e),n!==e?(s=r,l=li(),l!==e?(c=I(),h=ii(),h!==e?(T=I(),_=xo(),_!==e?(x=I(),l=[l,c,h,T,_,x],s=l):(r=s,s=e)):(r=s,s=e)):(r=s,s=e),s!==e?(l=r,c=Re(),c!==e?(h=I(),c=[c,h],l=c):(r=l,l=e),l!==e?(c=r,h=Wk(),h!==e?(T=I(),h=[h,T],c=h):(r=c,c=e),c===e&&(c=null),h=wf(),h!==e?(b=t,t=Eke(n,s,l,c,h)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function Wk(){var t,n,s,l,c,h;return t=r,n=r,s=Uq(),s!==e?(l=I(),c=wi(),c!==e?(h=I(),s=[s,l,c,h],n=s):(r=n,n=e)):(r=n,n=e),n!==e?(s=Vf(),s!==e?(b=t,t=Tke(n,s)):(r=t,t=e)):(r=t,t=e),t}function aR(){var t,n,s;return t=Yk(),t===e&&(t=nn(),t===e&&(t=r,n=r,m++,s=Oe(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=_mt(),s!==e?(b=t,t=Ike(s)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=r,m++,s=Be(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=gmt(),s!==e?(b=t,t=Ake(s)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=r,m++,s=ye(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=Dmt(),s!==e?(b=t,t=bke(s)):(r=t,t=e)):(r=t,t=e),t===e&&(t=Omt(),t===e&&(t=Cmt())))))),t}function _mt(){var t;return t=Au(),t===e&&(t=zk(),t===e&&(t=Fa(),t===e&&(t=R0(),t===e&&(t=_0(),t===e&&(t=Lmt()))))),t}function gmt(){var t,n,s;return t=Au(),t===e&&(t=R0(),t===e&&(t=_0(),t===e&&(t=r,n=r,m++,s=Vo(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=Xk(),s!==e?(b=t,t=wke(s)):(r=t,t=e)):(r=t,t=e)))),t}function Dmt(){var t;return t=Au(),t===e&&(t=R0(),t===e&&(t=_0(),t===e&&(t=Xk(),t===e&&(t=Qk(),t===e&&(t=e7(),t===e&&(t=$o(),t===e&&(t=jl(),t===e&&(t=Mmt(),t===e&&(t=Bmt(),t===e&&(t=Umt(),t===e&&(t=jmt(),t===e&&(t=wf(),t===e&&(t=t7(),t===e&&(t=r7(),t===e&&(t=i7(),t===e&&(t=xmt(),t===e&&(t=s7(),t===e&&(t=n7(),t===e&&(t=Fmt(),t===e&&(t=Gmt(),t===e&&(t=Smt(),t===e&&(t=Kmt(),t===e&&(t=b0(),t===e&&(t=w0(),t===e&&(t=kmt()))))))))))))))))))))))))),t}function Omt(){var t,n,s,l,c,h;return t=r,n=r,s=kl(),s!==e?(l=I(),c=dv(),c!==e?(h=I(),s=[s,l,c,h],n=s):(r=n,n=e)):(r=n,n=e),n===e&&(n=r,s=kl(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e)),n!==e?(s=r,l=Us(),l!==e?(c=I(),l=[l,c],s=l):(r=s,s=e),s===e&&(s=null),l=bf(),l!==e?(b=t,t=Rke(n,s,l)):(r=t,t=e)):(r=t,t=e),t}function Cmt(){var t,n,s,l,c,h,T;return t=r,n=r,s=Cr(),s!==e?(l=I(),c=dv(),c!==e?(h=I(),s=[s,l,c,h],n=s):(r=n,n=e)):(r=n,n=e),n===e&&(n=r,s=Cr(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e)),n!==e?(s=r,l=wr(),l!==e?(c=I(),l=[l,c],s=l):(r=s,s=e),s===e&&(s=null),l=Re(),l!==e?(c=r,h=I(),T=di(),T===e&&(T=Yr()),T!==e?(h=[h,T],c=h):(r=c,c=e),c===e&&(c=null),b=t,t=_ke(n,s,l,c)):(r=t,t=e)):(r=t,t=e),t}function nn(){var t,n,s,l;return t=r,n=r,s=$mt(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=Ge(),s!==e?(b=t,t=gke(n,s)):(r=t,t=e)):(r=t,t=e),t}function $mt(){var t,n,s,l,c;return t=r,n=r,s=ka(),s!==e?(l=I(),c=ci(),c!==e?(s=[s,l,c],n=s):(r=n,n=e)):(r=n,n=e),n!==e&&(b=t,n=Dke(n)),t=n,t===e&&(t=r,n=r,s=ka(),s!==e?(l=I(),c=Lr(),c!==e?(s=[s,l,c],n=s):(r=n,n=e)):(r=n,n=e),n!==e?(s=r,m++,l=Vo(),m--,l!==e?(r=s,s=void 0):s=e,s!==e?(b=t,t=Oke(n)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=ka(),n!==e?(s=r,m++,l=Be(),m--,l!==e?(r=s,s=void 0):s=e,s!==e?(b=t,t=Cke(n)):(r=t,t=e)):(r=t,t=e))),t}function Yk(){var t,n,s,l,c,h,T;return t=r,n=r,s=Pmt(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=r,l=wr(),l!==e?(c=I(),l=[l,c],s=l):(r=s,s=e),s===e&&(s=null),l=r,c=Re(),c!==e?(h=I(),c=[c,h],l=c):(r=l,l=e),l!==e?(c=r,h=ci(),h!==e?(T=I(),h=[h,T],c=h):(r=c,c=e),c!==e?(h=Re(),h!==e?(b=t,t=$ke(n,s,l,c,h)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function Pmt(){var t,n,s,l,c;return t=r,n=r,s=ka(),s!==e?(l=I(),c=dv(),c!==e?(s=[s,l,c],n=s):(r=n,n=e)):(r=n,n=e),n!==e&&(b=t,n=Pke(n)),t=n,t===e&&(t=r,n=ka(),n!==e?(s=r,m++,l=tt(),m--,l!==e?(r=s,s=void 0):s=e,s===e&&(s=r,m++,l=ye(),m--,l!==e?(r=s,s=void 0):s=e),s!==e?(b=t,t=Nke(n)):(r=t,t=e)):(r=t,t=e)),t}function Au(){var t,n,s,l,c,h;return t=r,n=r,s=Nmt(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=r,l=wr(),l!==e?(c=I(),l=[l,c],s=l):(r=s,s=e),s===e&&(s=null),l=r,c=Re(),c===e&&(c=ds()),c!==e?(h=I(),c=[c,h],l=c):(r=l,l=e),l!==e?(c=e0t(),c!==e?(b=t,t=Vke(n,s,l,c)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function Nmt(){var t,n,s,l,c;return t=r,n=r,s=Jr(),s!==e?(l=I(),c=dv(),c!==e?(s=[s,l,c],n=s):(r=n,n=e)):(r=n,n=e),n!==e&&(b=t,n=Lke(n)),t=n,t===e&&(t=r,n=Jr(),n!==e?(s=r,m++,l=ye(),m--,l!==e?(r=s,s=void 0):s=e,s===e&&(s=r,m++,l=Be(),m--,l!==e?(r=s,s=void 0):s=e),s!==e?(b=t,t=Mke(n)):(r=t,t=e)):(r=t,t=e)),t}function zk(){var t,n,s,l,c,h,T,_;return t=r,n=r,s=tr(),s!==e?(l=I(),c=ui(),c!==e?(h=I(),T=ya(),T!==e?(_=I(),s=[s,l,c,h,T,_],n=s):(r=n,n=e)):(r=n,n=e)):(r=n,n=e),n!==e?(s=nr(),s!==e?(b=t,t=Bke(n,s)):(r=t,t=e)):(r=t,t=e),t}function Fa(){var t,n,s,l;return t=r,n=r,s=tr(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=js(),s!==e?(b=t,t=Uke(n,s)):(r=t,t=e)):(r=t,t=e),t}function b0(){var t,n,s,l;return t=r,n=r,s=tr(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=i_(),s!==e?(b=t,t=jke(n,s)):(r=t,t=e)):(r=t,t=e),t}function w0(){var t,n,s,l;return t=r,n=r,s=Yf(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=mAt(),s!==e?(b=t,t=xke(n,s)):(r=t,t=e)):(r=t,t=e),t}function R0(){var t,n,s,l,c,h,T,_;if(t=r,n=r,s=kl(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e)if(s=r,l=Vmt(),l!==e?(c=I(),l=[l,c],s=l):(r=s,s=e),s===e&&(s=null),l=p9(),l===e&&(l=r,c=LR(),c!==e?(h=r,m++,T=ye(),m--,T!==e?(r=h,h=void 0):h=e,h!==e?(b=l,l=Fke(n,s,c)):(r=l,l=e)):(r=l,l=e)),l!==e){for(c=[],h=r,T=I(),_=No(),_!==e?(T=[T,_],h=T):(r=h,h=e);h!==e;)c.push(h),h=r,T=I(),_=No(),_!==e?(T=[T,_],h=T):(r=h,h=e);b=t,t=Gke(n,s,l,c)}else r=t,t=e;else r=t,t=e;return t}function Vmt(){var t,n,s,l,c;return t=r,n=r,s=Lo(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=r,l=Us(),l!==e?(c=I(),l=[l,c],s=l):(r=s,s=e),s===e&&(s=null),l=Re(),l!==e?(b=t,t=Ske(n,s,l)):(r=t,t=e)):(r=t,t=e),t}function _0(){var t,n,s,l,c,h,T;return t=r,n=r,s=Cr(),s!==e?(l=I(),c=Lo(),c===e&&(c=Ff()),c!==e?(h=I(),s=[s,l,c,h],n=s):(r=n,n=e)):(r=n,n=e),n!==e?(s=r,l=wr(),l!==e?(c=I(),l=[l,c],s=l):(r=s,s=e),s===e&&(s=null),l=Re(),l!==e?(c=r,h=I(),T=di(),T===e&&(T=Yr()),T!==e?(h=[h,T],c=h):(r=c,c=e),c===e&&(c=null),b=t,t=Kke(n,s,l,c)):(r=t,t=e)):(r=t,t=e),t}function Lmt(){var t,n,s,l,c,h,T;return t=r,n=r,s=Cr(),s!==e?(l=I(),c=Q_(),c!==e?(h=I(),T=Nn(),T!==e?(s=[s,l,c,h,T],n=s):(r=n,n=e)):(r=n,n=e)):(r=n,n=e),n!==e?(s=r,l=I(),c=wr(),c!==e?(l=[l,c],s=l):(r=s,s=e),s===e&&(s=null),b=t,t=kke(n,s)):(r=t,t=e),t}function Xk(){var t,n,s,l,c,h,T;if(t=r,n=r,s=Jr(),s!==e?(l=I(),c=Lo(),c===e&&(c=Ff()),c!==e?(h=I(),s=[s,l,c,h],n=s):(r=n,n=e)):(r=n,n=e),n!==e)if(s=Re(),s!==e){if(l=[],c=r,h=I(),T=No(),T!==e?(h=[h,T],c=h):(r=c,c=e),c!==e)for(;c!==e;)l.push(c),c=r,h=I(),T=No(),T!==e?(h=[h,T],c=h):(r=c,c=e);else l=e;l!==e?(b=t,t=qke(n,s,l)):(r=t,t=e)}else r=t,t=e;else r=t,t=e;return t}function Qk(){var t,n,s,l,c,h;return t=r,n=r,s=ka(),s!==e?(l=I(),c=Lo(),c!==e?(h=I(),s=[s,l,c,h],n=s):(r=n,n=e)):(r=n,n=e),n!==e?(s=r,l=Re(),l!==e?(c=I(),l=[l,c],s=l):(r=s,s=e),s!==e?(l=r,c=ci(),c!==e?(h=I(),c=[c,h],l=c):(r=l,l=e),l!==e?(c=Re(),c!==e?(b=t,t=Zke(n,s,l,c)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function e7(){var t,n,s,l,c,h;return t=r,n=r,s=KDt(),s!==e?(l=I(),c=Lo(),c!==e?(h=I(),s=[s,l,c,h],n=s):(r=n,n=e)):(r=n,n=e),n!==e?(s=Re(),s!==e?(b=t,t=Jke(n,s)):(r=t,t=e)):(r=t,t=e),t}function $o(){var t,n,s,l,c,h;return t=r,n=r,s=e1t(),s!==e?(l=I(),c=ci(),c!==e?(h=I(),s=[s,l,c,h],n=s):(r=n,n=e)):(r=n,n=e),n!==e?(s=bu(),s!==e?(b=t,t=Hke(n,s)):(r=t,t=e)):(r=t,t=e),t}function jl(){var t,n,s,l,c,h;return t=r,n=r,s=tr(),s!==e?(l=I(),c=jo(),c!==e?(h=I(),s=[s,l,c,h],n=s):(r=n,n=e)):(r=n,n=e),n!==e?(s=Re(),s!==e?(b=t,t=Wke(n,s)):(r=t,t=e)):(r=t,t=e),t}function Mmt(){var t,n,s,l,c;return t=r,n=r,s=URt(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=r,l=jf(),l===e&&(l=rg()),l!==e?(c=I(),l=[l,c],s=l):(r=s,s=e),s===e&&(s=null),l=p7(),l!==e?(b=t,t=Yke(n,s,l)):(r=t,t=e)):(r=t,t=e),t}function Bmt(){var t,n,s,l;return t=r,n=r,s=DRt(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=p7(),s!==e?(b=t,t=zke(n,s)):(r=t,t=e)):(r=t,t=e),t}function Umt(){var t,n,s,l;return t=r,n=r,s=cq(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=lR(),s!==e?(b=t,t=Xke(n,s)):(r=t,t=e)):(r=t,t=e),t}function jmt(){var t,n,s,l,c,h;return t=r,n=r,s=Ss(),s!==e?(l=I(),c=cq(),c!==e?(h=I(),s=[s,l,c,h],n=s):(r=n,n=e)):(r=n,n=e),n!==e?(s=lR(),s!==e?(b=t,t=Qke(n,s)):(r=t,t=e)):(r=t,t=e),t}function wf(){var t,n,s,l,c,h;return t=r,n=r,s=tr(),s!==e?(l=I(),c=xo(),c!==e?(h=I(),s=[s,l,c,h],n=s):(r=n,n=e)):(r=n,n=e),n!==e?(s=Re(),s!==e?(l=r,c=I(),h=Mq(),h!==e?(c=[c,h],l=c):(r=l,l=e),l===e&&(l=null),b=t,t=e7e(n,s,l)):(r=t,t=e)):(r=t,t=e),t}function t7(){var t,n,s,l,c,h,T,_;return t=r,n=r,s=tr(),s!==e?(l=I(),c=ov(),c!==e?(h=I(),T=lgt(),T!==e?(_=I(),s=[s,l,c,h,T,_],n=s):(r=n,n=e)):(r=n,n=e)):(r=n,n=e),n!==e?(s=Re(),s!==e?(b=t,t=t7e(n,s)):(r=t,t=e)):(r=t,t=e),t}function r7(){var t,n,s,l,c,h;return t=r,n=r,s=I_(),s!==e?(l=I(),c=$r(),c!==e?(h=I(),s=[s,l,c,h],n=s):(r=n,n=e)):(r=n,n=e),n!==e?(s=Re(),s!==e?(b=t,t=r7e(n,s)):(r=t,t=e)):(r=t,t=e),t}function i7(){var t,n,s,l,c,h,T;return t=r,n=r,s=tr(),s!==e?(l=I(),c=th(),c!==e?(h=I(),T=I_(),T!==e?(s=[s,l,c,h,T],n=s):(r=n,n=e)):(r=n,n=e)):(r=n,n=e),n!==e&&(b=t,n=i7e(n)),t=n,t}function xmt(){var t,n,s,l,c,h,T;return t=r,n=r,s=tr(),s!==e?(l=I(),c=th(),c!==e?(h=I(),T=Bq(),T!==e?(s=[s,l,c,h,T],n=s):(r=n,n=e)):(r=n,n=e)):(r=n,n=e),n!==e&&(b=t,n=s7e(n)),t=n,t}function s7(){var t,n,s,l,c;return t=r,n=r,s=tr(),s!==e?(l=I(),c=H_t(),c!==e?(s=[s,l,c],n=s):(r=n,n=e)):(r=n,n=e),n!==e&&(b=t,n=n7e(n)),t=n,t}function n7(){var t,n,s,l,c;return t=r,n=r,s=tr(),s!==e?(l=I(),c=mg(),c!==e?(s=[s,l,c],n=s):(r=n,n=e)):(r=n,n=e),n!==e&&(b=t,n=a7e(n)),t=n,t}function Fmt(){var t,n,s,l;return t=r,n=r,s=xu(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=Ge(),s!==e?(b=t,t=o7e(n,s)):(r=t,t=e)):(r=t,t=e),t}function Gmt(){var t,n,s,l,c,h;return t=r,n=r,s=Ss(),s!==e?(l=I(),c=xu(),c!==e?(h=I(),s=[s,l,c,h],n=s):(r=n,n=e)):(r=n,n=e),n!==e?(s=Ge(),s!==e?(b=t,t=l7e(n,s)):(r=t,t=e)):(r=t,t=e),t}function Smt(){var t,n,s,l;return t=r,n=r,s=dn(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=Ge(),s!==e?(b=t,t=d7e(n,s)):(r=t,t=e)):(r=t,t=e),t}function Kmt(){var t,n,s,l,c;return t=r,n=r,s=cr(),s!==e?(l=I(),c=dn(),c!==e?(s=[s,l,c],n=s):(r=n,n=e)):(r=n,n=e),n!==e&&(b=t,n=u7e(n)),t=n,t}function Rf(){var t,n,s,l,c,h,T,_;return t=r,n=r,s=Q8(),s!==e?(l=I(),c=$r(),c!==e?(h=I(),T=dq(),T!==e?(_=I(),s=[s,l,c,h,T,_],n=s):(r=n,n=e)):(r=n,n=e)):(r=n,n=e),n!==e?(s=Re(),s!==e?(b=t,t=c7e(n,s)):(r=t,t=e)):(r=t,t=e),t}function _f(){var t,n,s,l,c,h,T,_,x,W;return t=r,n=r,s=Ss(),s!==e?(l=I(),c=Q8(),c!==e?(h=I(),T=$r(),T!==e?(_=I(),x=dq(),x!==e?(W=I(),s=[s,l,c,h,T,_,x,W],n=s):(r=n,n=e)):(r=n,n=e)):(r=n,n=e)):(r=n,n=e),n!==e?(s=Re(),s!==e?(b=t,t=p7e(n,s)):(r=t,t=e)):(r=t,t=e),t}function kmt(){var t,n,s,l,c,h;return t=r,n=r,s=rg(),s!==e?(l=I(),c=Bu(),c!==e?(h=I(),s=[s,l,c,h],n=s):(r=n,n=e)):(r=n,n=e),n!==e?(s=ui(),s===e&&(s=J_(),s===e&&(s=L_(),s===e&&(s=qmt()))),s!==e?(b=t,t=f7e(n,s)):(r=t,t=e)):(r=t,t=e),t}function qmt(){var t,n,s,l,c,h;return t=r,n=r,s=cs(),s!==e?(l=I(),c=Ds(),c!==e?(h=I(),s=[s,l,c,h],n=s):(r=n,n=e)):(r=n,n=e),n!==e?(s=Re(),s!==e?(b=t,t=h7e(n,s)):(r=t,t=e)):(r=t,t=e),t}function Zmt(){var t,n,s,l,c,h;return t=r,n=r,s=V8(),s!==e?(l=I(),c=Su(),c!==e?(h=I(),s=[s,l,c,h],n=s):(r=n,n=e)):(r=n,n=e),n!==e?(s=Ge(),s!==e?(b=t,t=y7e(n,s)):(r=t,t=e)):(r=t,t=e),t}function Jmt(){var t,n,s,l,c,h,T;return t=r,n=r,s=kl(),s!==e?(l=I(),c=Xf(),c!==e?(h=I(),s=[s,l,c,h],n=s):(r=n,n=e)):(r=n,n=e),n!==e?(s=r,l=Us(),l!==e?(c=I(),l=[l,c],s=l):(r=s,s=e),s===e&&(s=null),l=nr(),l!==e?(c=r,h=I(),T=Hmt(),T!==e?(h=[h,T],c=h):(r=c,c=e),c===e&&(c=null),b=t,t=m7e(n,s,l,c)):(r=t,t=e)):(r=t,t=e),t}function Hmt(){var t,n,s,l;return t=r,n=r,s=M8(),s===e&&(s=C8()),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=nr(),s!==e?(b=t,t=v7e(n,s)):(r=t,t=e)):(r=t,t=e),t}function Wmt(){var t,n,s,l,c,h,T;return t=r,n=r,s=ka(),s!==e?(l=I(),c=Xf(),c!==e?(h=I(),s=[s,l,c,h],n=s):(r=n,n=e)):(r=n,n=e),n!==e?(s=nr(),s!==e?(l=r,c=I(),h=ci(),h!==e?(T=I(),c=[c,h,T],l=c):(r=l,l=e),l!==e?(c=nr(),c!==e?(b=t,t=E7e(n,s,l,c)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function Ymt(){var t,n,s,l,c,h,T,_;return t=r,n=r,s=ka(),s!==e?(l=I(),c=lv(),c!==e?(h=I(),s=[s,l,c,h],n=s):(r=n,n=e)):(r=n,n=e),n!==e?(s=Re(),s!==e?(l=r,c=I(),h=ci(),h!==e?(T=I(),c=[c,h,T],l=c):(r=l,l=e),l!==e?(c=Re(),c!==e?(h=r,T=I(),_=di(),_===e&&(_=Yr()),_!==e?(T=[T,_],h=T):(r=h,h=e),h===e&&(h=null),b=t,t=T7e(n,s,l,c,h)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function zmt(){var t,n,s,l,c,h,T,_;return t=r,n=r,s=kl(),s!==e?(l=I(),c=lv(),c!==e?(h=I(),s=[s,l,c,h],n=s):(r=n,n=e)):(r=n,n=e),n!==e?(s=Re(),s!==e?(l=r,c=I(),h=Ci(),h!==e?(c=[c,h],l=c):(r=l,l=e),l!==e?(c=r,h=I(),T=U0(),T!==e?(h=[h,T],c=h):(r=c,c=e),c===e&&(c=null),h=r,T=I(),_=di(),_===e&&(_=Yr()),_!==e?(T=[T,_],h=T):(r=h,h=e),h===e&&(h=null),b=t,t=I7e(n,s,l,c,h)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function Xmt(){var t,n,s,l,c,h,T;return t=r,n=r,s=Cr(),s!==e?(l=I(),c=lv(),c!==e?(h=I(),s=[s,l,c,h],n=s):(r=n,n=e)):(r=n,n=e),n!==e?(s=r,l=wr(),l!==e?(c=I(),l=[l,c],s=l):(r=s,s=e),s===e&&(s=null),l=Re(),l!==e?(c=r,h=I(),T=di(),T===e&&(T=Yr()),T!==e?(h=[h,T],c=h):(r=c,c=e),c===e&&(c=null),b=t,t=A7e(n,s,l,c)):(r=t,t=e)):(r=t,t=e),t}function Qmt(){var t,n,s,l,c,h,T,_,x,W;return t=r,n=r,s=Jr(),s!==e?(l=I(),c=lv(),c!==e?(h=I(),s=[s,l,c,h],n=s):(r=n,n=e)):(r=n,n=e),n!==e?(s=r,l=Re(),l!==e?(c=I(),l=[l,c],s=l):(r=s,s=e),s!==e?(l=r,c=tr(),c!==e?(h=I(),T=Mo(),T!==e?(_=I(),x=Ta(),x!==e?(W=I(),c=[c,h,T,_,x,W],l=c):(r=l,l=e)):(r=l,l=e)):(r=l,l=e),l===e&&(l=r,c=Ta(),c!==e?(h=I(),c=[c,h],l=c):(r=l,l=e)),l!==e?(c=Ci(),c!==e?(h=r,T=I(),_=U0(),_!==e?(T=[T,_],h=T):(r=h,h=e),h===e&&(h=null),T=r,_=I(),x=di(),x===e&&(x=Yr()),x!==e?(_=[_,x],T=_):(r=T,T=e),T===e&&(T=null),b=t,t=b7e(n,s,l,c,h,T)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function e0t(){var t,n,s;return t=a7(),t===e&&(t=o7(),t===e&&(t=r,n=r,m++,s=Oe(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=t0t(),s!==e?(b=t,t=w7e(s)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=r,m++,s=Vo(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=r0t(),s!==e?(b=t,t=R7e(s)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=r,m++,s=ye(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=i0t(),s!==e?(b=t,t=_7e(s)):(r=t,t=e)):(r=t,t=e))))),t}function t0t(){var t;return t=oR(),t===e&&(t=d7(),t===e&&(t=Fa())),t}function r0t(){var t;return t=s0t(),t===e&&(t=n0t()),t}function i0t(){var t;return t=l7(),t===e&&(t=oR(),t===e&&(t=d7(),t===e&&(t=a0t(),t===e&&(t=o0t(),t===e&&(t=l0t(),t===e&&(t=b0(),t===e&&(t=w0(),t===e&&(t=d0t(),t===e&&(t=u0t(),t===e&&(t=c0t(),t===e&&(t=p0t()))))))))))),t}function a7(){var t,n,s,l,c,h;return t=r,n=r,s=tr(),s!==e?(l=I(),c=ui(),c!==e?(h=I(),s=[s,l,c,h],n=s):(r=n,n=e)):(r=n,n=e),n!==e?(s=et(),s!==e?(b=t,t=g7e(n,s)):(r=t,t=e)):(r=t,t=e),t}function o7(){var t,n,s,l,c;return t=r,n=r,s=Cr(),s!==e?(l=I(),c=ui(),c!==e?(s=[s,l,c],n=s):(r=n,n=e)):(r=n,n=e),n!==e&&(b=t,n=D7e(n)),t=n,t}function l7(){var t,n,s,l,c,h,T;return t=r,n=r,s=tr(),s!==e?(l=I(),c=cr(),c!==e?(h=I(),T=Ea(),T!==e?(s=[s,l,c,h,T],n=s):(r=n,n=e)):(r=n,n=e)):(r=n,n=e),n!==e&&(b=t,n=O7e(n)),t=n,t}function oR(){var t,n,s,l,c,h,T;return t=r,n=r,s=Cr(),s!==e?(l=I(),c=cr(),c!==e?(h=I(),T=Ea(),T!==e?(s=[s,l,c,h,T],n=s):(r=n,n=e)):(r=n,n=e)):(r=n,n=e),n!==e&&(b=t,n=C7e(n)),t=n,t}function d7(){var t,n,s,l,c,h,T,_;if(t=r,n=r,s=tr(),s!==e?(l=I(),c=Mo(),c!==e?(h=I(),T=Ta(),T!==e?(_=I(),s=[s,l,c,h,T,_],n=s):(r=n,n=e)):(r=n,n=e)):(r=n,n=e),n===e&&(n=r,s=Ta(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e)),n!==e)if(s=Ci(),s!==e){for(l=[],c=r,h=I(),T=u7(),T===e&&(T=c7()),T!==e?(h=[h,T],c=h):(r=c,c=e);c!==e;)l.push(c),c=r,h=I(),T=u7(),T===e&&(T=c7()),T!==e?(h=[h,T],c=h):(r=c,c=e);b=t,t=$7e(n,s,l)}else r=t,t=e;else r=t,t=e;return t}function u7(){var t,n;return t=r,n=U0(),n!==e&&(b=t,n=P7e(n)),t=n,t}function c7(){var t,n,s,l;return t=r,n=r,s=cs(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=et(),s!==e?(b=t,t=N7e(n,s)):(r=t,t=e)):(r=t,t=e),t}function s0t(){var t,n,s,l,c;return t=r,n=r,s=tr(),s!==e?(l=I(),c=mZ(),c!==e?(s=[s,l,c],n=s):(r=n,n=e)):(r=n,n=e),n!==e&&(b=t,n=V7e(n)),t=n,t}function n0t(){var t,n,s,l,c;return t=r,n=r,s=tr(),s!==e?(l=I(),c=Rq(),c!==e?(s=[s,l,c],n=s):(r=n,n=e)):(r=n,n=e),n!==e&&(b=t,n=L7e(n)),t=n,t}function a0t(){var t,n,s,l,c,h;return t=r,n=r,s=tr(),s!==e?(l=I(),c=uv(),c!==e?(h=I(),s=[s,l,c,h],n=s):(r=n,n=e)):(r=n,n=e),n!==e?(s=Re(),s===e&&(s=Af()),s!==e?(b=t,t=M7e(n,s)):(r=t,t=e)):(r=t,t=e),t}function o0t(){var t,n,s,l,c,h;return t=r,n=r,s=tr(),s!==e?(l=I(),c=Ov(),c!==e?(h=I(),s=[s,l,c,h],n=s):(r=n,n=e)):(r=n,n=e),n!==e?(s=c9(),s!==e?(b=t,t=B7e(n,s)):(r=t,t=e)):(r=t,t=e),t}function l0t(){var t,n,s,l,c,h;return t=r,n=r,s=tr(),s!==e?(l=I(),c=rZ(),c!==e?(h=I(),s=[s,l,c,h],n=s):(r=n,n=e)):(r=n,n=e),n!==e?(s=ds(),s!==e?(b=t,t=U7e(n,s)):(r=t,t=e)):(r=t,t=e),t}function d0t(){var t,n,s,l,c;return t=r,n=r,s=Cr(),s!==e?(l=I(),c=XRt(),c!==e?(s=[s,l,c],n=s):(r=n,n=e)):(r=n,n=e),n!==e?(s=r,l=I(),c=wr(),c!==e?(l=[l,c],s=l):(r=s,s=e),s===e&&(s=null),b=t,t=j7e(n,s)):(r=t,t=e),t}function u0t(){var t,n,s,l,c;return t=r,n=r,s=Cr(),s!==e?(l=I(),c=Bu(),c!==e?(s=[s,l,c],n=s):(r=n,n=e)):(r=n,n=e),n!==e?(s=r,l=I(),c=wr(),c!==e?(l=[l,c],s=l):(r=s,s=e),s===e&&(s=null),b=t,t=x7e(n,s)):(r=t,t=e),t}function c0t(){var t,n,s,l,c,h,T,_;return t=r,n=r,s=kl(),s!==e?(l=I(),c=Vu(),c!==e?(h=I(),s=[s,l,c,h],n=s):(r=n,n=e)):(r=n,n=e),n!==e?(s=jf(),s===e&&(s=r,l=wi(),l!==e?(c=I(),h=ui(),h!==e?(l=[l,c,h],s=l):(r=s,s=e)):(r=s,s=e)),s!==e?(l=r,c=I(),h=Lr(),h!==e?(T=I(),_=Bu(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e),l!==e?(c=r,h=I(),T=H9(),T!==e?(h=[h,T],c=h):(r=c,c=e),c===e&&(c=null),b=t,t=F7e(n,s,l,c)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function p0t(){var t,n,s,l,c,h;if(t=r,n=dR(),n!==e){for(s=[],l=r,c=I(),h=dR(),h!==e?(c=[c,h],l=c):(r=l,l=e);l!==e;)s.push(l),l=r,c=I(),h=dR(),h!==e?(c=[c,h],l=c):(r=l,l=e);b=t,t=G7e(n,s)}else r=t,t=e;return t}function p7(){var t;return t=lR(),t===e&&(t=f0t(),t===e&&(t=h0t())),t}function lR(){var t,n,s,l,c,h,T;return t=r,n=r,s=un(),s!==e?(l=I(),c=Cq(),c!==e?(h=I(),T=Yq(),T!==e?(s=[s,l,c,h,T],n=s):(r=n,n=e)):(r=n,n=e)):(r=n,n=e),n!==e&&(b=t,n=S7e(n)),t=n,t}function f0t(){var t,n,s,l;return t=r,n=r,s=qu(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=li(),s===e&&(s=Fo(),s===e&&(s=Re())),s!==e?(b=t,t=K7e(n,s)):(r=t,t=e)):(r=t,t=e),t}function h0t(){var t,n,s,l;return t=r,n=r,s=G1t(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=Re(),s!==e?(b=t,t=k7e(n,s)):(r=t,t=e)):(r=t,t=e),t}function dR(){var t;return t=y0t(),t===e&&(t=m0t(),t===e&&(t=v0t())),t}function y0t(){var t,n,s,l,c,h;return t=r,n=r,s=tr(),s!==e?(l=I(),c=Vu(),c!==e?(h=I(),s=[s,l,c,h],n=s):(r=n,n=e)):(r=n,n=e),n!==e?(s=jf(),s===e&&(s=r,l=wi(),l!==e?(c=I(),h=ui(),h!==e?(l=[l,c,h],s=l):(r=s,s=e)):(r=s,s=e)),s!==e?(b=t,t=q7e(n,s)):(r=t,t=e)):(r=t,t=e),t}function m0t(){var t,n,s,l;return t=r,n=r,s=tr(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=Po(),s!==e?(b=t,t=Z7e(n,s)):(r=t,t=e)):(r=t,t=e),t}function v0t(){var t,n;return t=r,n=L7(),n!==e&&(b=t,n=J7e(n)),t=n,t}function E0t(){var t,n,s,l,c;return t=r,n=r,s=ka(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=r,l=$i(),l!==e?(c=I(),l=[l,c],s=l):(r=s,s=e),s!==e?(l=obt(),l!==e?(b=t,t=H7e(n,s,l)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function uR(){var t,n,s,l,c,h;return t=r,n=Ge(),n!==e?(s=r,l=I(),c=ci(),c!==e?(h=I(),l=[l,c,h],s=l):(r=s,s=e),s!==e?(l=Ge(),l!==e?(b=t,t=W7e(n,s,l)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function g0(){var t,n,s,l,c,h,T,_,x,W,pe,Ve,qe,$t;if(t=r,n=r,s=Fi(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e)if(s=r,l=us(),l!==e?(c=I(),h=Ks(),h!==e?(T=I(),l=[l,c,h,T],s=l):(r=s,s=e)):(r=s,s=e),s===e&&(s=null),l=r,c=T0t(),c!==e?(h=I(),c=[c,h],l=c):(r=l,l=e),l===e&&(l=null),c=r,h=qu(),h!==e?(T=I(),h=[h,T],c=h):(r=c,c=e),c!==e)if(h=r,T=Us(),T!==e?(_=I(),T=[T,_],h=T):(r=h,h=e),h===e&&(h=null),T=r,_=Ge(),_!==e?(x=I(),_=[_,x],T=_):(r=T,T=e),T!==e)if(_=r,x=M8(),x!==e?(W=I(),x=[x,W],_=x):(r=_,_=e),_===e&&(_=r,x=C8(),x!==e?(W=I(),x=[x,W],_=x):(r=_,_=e),_===e&&(_=r,x=D_t(),x!==e?(W=I(),pe=dn(),pe!==e?(Ve=I(),x=[x,W,pe,Ve],_=x):(r=_,_=e)):(r=_,_=e))),_===e&&(_=null),x=r,W=I0t(),W!==e?(pe=I(),W=[W,pe],x=W):(r=x,x=e),x!==e)if(W=r,pe=pR(),pe!==e?(Ve=I(),pe=[pe,Ve],W=pe):(r=W,W=e),W!==e){for(pe=[],Ve=r,qe=f7(),qe!==e?($t=I(),qe=[qe,$t],Ve=qe):(r=Ve,Ve=e);Ve!==e;)pe.push(Ve),Ve=r,qe=f7(),qe!==e?($t=I(),qe=[qe,$t],Ve=qe):(r=Ve,Ve=e);Ve=g0t(),Ve!==e?(b=t,t=Y7e(n,s,l,c,h,T,_,x,W,pe,Ve)):(r=t,t=e)}else r=t,t=e;else r=t,t=e;else r=t,t=e;else r=t,t=e;else r=t,t=e;return t}function T0t(){var t,n,s;return t=r,n=r,m++,s=tt(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=zl(),s===e&&(s=Yl()),s!==e?(b=t,t=z7e(s)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=r,m++,s=ye(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=Lo(),s!==e?(b=t,t=X7e(s)):(r=t,t=e)):(r=t,t=e)),t}function I0t(){var t,n,s,l,c,h,T,_;if(t=r,n=cR(),n!==e){for(s=[],l=r,c=I(),h=us(),h!==e?(T=I(),_=cR(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);l!==e;)s.push(l),l=r,c=I(),h=us(),h!==e?(T=I(),_=cR(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);b=t,t=Q7e(n,s)}else r=t,t=e;return t}function cR(){var t,n,s,l,c;return t=r,n=r,s=Vn(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=r,l=dn(),l!==e?(c=I(),l=[l,c],s=l):(r=s,s=e),s!==e?(l=s_(),l!==e?(b=t,t=e9e(n,s,l)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=Zl(),n===e&&(n=qf(),n===e&&(n=Vn(),n===e&&(n=fg()))),n!==e&&(b=t,n=t9e(n)),t=n),t}function pR(){var t,n,s,l;return t=r,n=r,s=$r(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=Ge(),s!==e?(b=t,t=r9e(n,s)):(r=t,t=e)):(r=t,t=e),t}function f7(){var t,n,s;return t=A0t(),t===e&&(t=b0t(),t===e&&(t=r,n=r,m++,s=ye(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=w0t(),s===e&&(s=R0t(),s===e&&(s=_0t())),s!==e?(b=t,t=i9e(s)):(r=t,t=e)):(r=t,t=e))),t}function A0t(){var t,n,s,l,c,h;return t=r,n=r,s=Gs(),s!==e?(l=I(),c=MRt(),c!==e?(h=I(),s=[s,l,c,h],n=s):(r=n,n=e)):(r=n,n=e),n===e&&(n=r,s=Gs(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e)),n!==e?(s=un(),s===e&&(s=pDt()),s!==e?(b=t,t=s9e(n,s)):(r=t,t=e)):(r=t,t=e),t}function b0t(){var t,n,s,l;return t=r,n=r,s=eh(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=et(),s!==e?(b=t,t=n9e(n,s)):(r=t,t=e)):(r=t,t=e),t}function w0t(){var t,n,s,l;return t=r,n=r,s=gs(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=Ge(),s!==e?(b=t,t=a9e(n,s)):(r=t,t=e)):(r=t,t=e),t}function R0t(){var t,n,s,l,c,h,T;return t=r,n=r,s=cr(),s!==e?(l=I(),c=Bo(),c!==e?(s=[s,l,c],n=s):(r=n,n=e)):(r=n,n=e),n===e&&(n=r,s=Bo(),s!==e?(l=I(),c=kf(),c!==e?(h=I(),T=fv(),T!==e?(s=[s,l,c,h,T],n=s):(r=n,n=e)):(r=n,n=e)):(r=n,n=e),n===e&&(n=r,s=Bo(),s!==e?(l=I(),c=kf(),c!==e?(h=I(),T=Kf(),T!==e?(s=[s,l,c,h,T],n=s):(r=n,n=e)):(r=n,n=e)):(r=n,n=e),n===e&&(n=Bo(),n===e&&(n=r,s=kf(),s!==e?(l=I(),c=fv(),c!==e?(s=[s,l,c],n=s):(r=n,n=e)):(r=n,n=e),n===e&&(n=r,s=kf(),s!==e?(l=I(),c=Kf(),c!==e?(s=[s,l,c],n=s):(r=n,n=e)):(r=n,n=e)))))),n!==e&&(b=t,n=o9e(n)),t=n,t}function _0t(){var t,n,s,l;return t=r,n=r,s=R1t(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=hbt(),s!==e?(b=t,t=l9e(n,s)):(r=t,t=e)):(r=t,t=e),t}function fR(){var t,n,s,l,c,h;return t=r,n=r,s=bgt(),s===e&&(s=Ggt()),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=r,l=$i(),l===e&&(l=un()),l!==e?(c=I(),l=[l,c],s=l):(r=s,s=e),s!==e?(l=r,c=Lr(),c!==e?(h=I(),c=[c,h],l=c):(r=l,l=e),l===e&&(l=null),c=Re(),c!==e?(b=t,t=d9e(n,s,l,c)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function g0t(){var t,n,s,l,c,h,T;return t=r,n=r,m++,s=ye(),m--,s===e?n=void 0:(r=n,n=e),n!==e?(s=r,l=xf(),l!==e?(c=I(),l=[l,c],s=l):(r=s,s=e),s!==e?(l=D0t(),l!==e?(c=r,h=I(),T=ma(),T!==e?(h=[h,T],c=h):(r=c,c=e),c!==e?(b=t,t=u9e(s,l,c)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=r,m++,s=ye(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=r,l=$_(),l!==e?(c=I(),l=[l,c],s=l):(r=s,s=e),s!==e?(l=r,c=Hf(),c===e&&(c=Nu()),c!==e?(h=I(),c=[c,h],l=c):(r=l,l=e),l!==e?(c=r,h=Ge(),h!==e?(T=I(),h=[h,T],c=h):(r=c,c=e),c!==e?(h=on(),h===e&&(h=fa()),h!==e?(b=t,t=c9e(s,l,c,h)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)),t}function D0t(){var t,n,s,l,c,h,T,_;if(t=r,n=c0(),n!==e){if(s=[],l=r,c=I(),o.charCodeAt(r)===59?(h=w,r++):(h=e,m===0&&C(cu)),h!==e?(T=I(),_=c0(),_===e&&(_=sn()),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e),l!==e)for(;l!==e;)s.push(l),l=r,c=I(),o.charCodeAt(r)===59?(h=w,r++):(h=e,m===0&&C(cu)),h!==e?(T=I(),_=c0(),_===e&&(_=sn()),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);else s=e;s!==e?(b=t,t=p9e(n,s)):(r=t,t=e)}else r=t,t=e;return t}function O0t(){var t,n,s,l,c,h;return t=r,n=r,s=Jr(),s!==e?(l=I(),c=qu(),c!==e?(h=I(),s=[s,l,c,h],n=s):(r=n,n=e)):(r=n,n=e),n!==e?(s=r,l=Re(),l!==e?(c=I(),l=[l,c],s=l):(r=s,s=e),s!==e?(l=r,c=pR(),c!==e?(h=I(),c=[c,h],l=c):(r=l,l=e),l!==e?(c=C0t(),c!==e?(b=t,t=f9e(n,s,l,c)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function C0t(){var t;return t=nn(),t===e&&(t=Rf(),t===e&&(t=_f())),t}function hR(){var t,n,s,l,c,h,T,_,x;return t=r,n=r,m++,s=Be(),m--,s!==e?(r=n,n=void 0):n=e,n===e&&(n=r,m++,s=tt(),m--,s!==e?(r=n,n=void 0):n=e),n!==e?(s=r,l=Cr(),l!==e?(c=I(),h=qu(),h!==e?(T=I(),l=[l,c,h,T],s=l):(r=s,s=e)):(r=s,s=e),s!==e?(l=r,c=wr(),c!==e?(h=I(),c=[c,h],l=c):(r=l,l=e),l===e&&(l=null),c=Ge(),c!==e?(b=t,t=h9e(s,l,c)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=r,m++,s=ye(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=r,l=Cr(),l!==e?(c=I(),h=qu(),h!==e?(T=I(),l=[l,c,h,T],s=l):(r=s,s=e)):(r=s,s=e),s!==e?(l=r,c=wr(),c!==e?(h=I(),c=[c,h],l=c):(r=l,l=e),l===e&&(l=null),c=Ge(),c!==e?(h=r,T=I(),_=pR(),_!==e?(T=[T,_],h=T):(r=h,h=e),h===e&&(h=null),T=r,_=I(),x=di(),x===e&&(x=Yr()),x!==e?(_=[_,x],T=_):(r=T,T=e),T===e&&(T=null),b=t,t=y9e(s,l,c,h,T)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)),t}function yR(){var t,n,s,l,c,h,T,_,x;if(t=r,n=r,s=Fi(),s!==e?(l=I(),c=ER(),c!==e?(s=[s,l,c],n=s):(r=n,n=e)):(r=n,n=e),n!==e){for(s=r,l=I(),c=Us(),c!==e?(l=[l,c],s=l):(r=s,s=e),s===e&&(s=null),l=r,c=I(),h=Ge(),h!==e?(c=[c,h],l=c):(r=l,l=e),l===e&&(l=null),c=[],h=r,T=I(),_=h7(),_!==e?(T=[T,_],h=T):(r=h,h=e);h!==e;)c.push(h),h=r,T=I(),_=h7(),_!==e?(T=[T,_],h=T):(r=h,h=e);for(h=[],T=r,_=I(),x=y7(),x!==e?(_=[_,x],T=_):(r=T,T=e);T!==e;)h.push(T),T=r,_=I(),x=y7(),x!==e?(_=[_,x],T=_):(r=T,T=e);b=t,t=m9e(n,s,l,c,h)}else r=t,t=e;return t}function h7(){var t,n,s;return t=r,n=r,m++,s=Oe(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=js(),s!==e?(b=t,t=v9e(s)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=r,m++,s=Oe(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=Hk(),s!==e?(b=t,t=E9e(s)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=r,m++,s=ye(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=$0t(),s!==e?(b=t,t=T9e(s)):(r=t,t=e)):(r=t,t=e))),t}function $0t(){var t,n,s,l;return t=r,n=r,s=_wt(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=bu(),s!==e?(b=t,t=I9e(n,s)):(r=t,t=e)):(r=t,t=e),t}function y7(){var t,n,s;return t=r,n=r,m++,s=ye(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=Kk(),s===e&&(s=jk(),s===e&&(s=Fk(),s===e&&(s=V7(),s===e&&(s=g0(),s===e&&(s=K7()))))),s!==e?(b=t,t=A9e(s)):(r=t,t=e)):(r=t,t=e),t}function mR(){var t,n,s,l,c,h,T;return t=r,n=r,s=Cr(),s!==e?(l=I(),c=ER(),c!==e?(h=I(),s=[s,l,c,h],n=s):(r=n,n=e)):(r=n,n=e),n!==e?(s=r,l=wr(),l!==e?(c=I(),l=[l,c],s=l):(r=s,s=e),s===e&&(s=null),l=xi(),l!==e?(c=r,h=I(),T=di(),T===e&&(T=Yr()),T!==e?(h=[h,T],c=h):(r=c,c=e),c===e&&(c=null),b=t,t=b9e(n,s,l,c)):(r=t,t=e)):(r=t,t=e),t}function vR(){var t,n,s,l,c,h,T,_;if(t=r,n=r,s=Jr(),s!==e?(l=I(),c=ER(),c!==e?(h=I(),s=[s,l,c,h],n=s):(r=n,n=e)):(r=n,n=e),n!==e)if(s=r,l=wr(),l!==e?(c=I(),l=[l,c],s=l):(r=s,s=e),s===e&&(s=null),l=Ge(),l!==e){if(c=[],h=r,T=I(),_=m7(),_!==e?(T=[T,_],h=T):(r=h,h=e),h!==e)for(;h!==e;)c.push(h),h=r,T=I(),_=m7(),_!==e?(T=[T,_],h=T):(r=h,h=e);else c=e;c!==e?(b=t,t=w9e(n,s,l,c)):(r=t,t=e)}else r=t,t=e;else r=t,t=e;return t}function m7(){var t,n,s;return t=r,n=r,m++,s=Oe(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=Fa(),s!==e?(b=t,t=R9e(s)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=r,m++,s=Oe(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=zk(),s!==e?(b=t,t=_9e(s)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=r,m++,s=ye(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=nn(),s!==e?(b=t,t=g9e(s)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=r,m++,s=ye(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=$o(),s!==e?(b=t,t=D9e(s)):(r=t,t=e)):(r=t,t=e)))),t}function ER(){var t,n,s,l;return t=jo(),t===e&&(t=r,n=Pu(),n!==e?(s=r,m++,l=Be(),m--,l!==e?(r=s,s=void 0):s=e,s!==e?(b=t,t=O9e(n)):(r=t,t=e)):(r=t,t=e)),t}function v7(){var t,n,s,l,c,h,T,_,x,W,pe,Ve,qe,$t;if(t=r,n=r,m++,s=Oe(),m--,s!==e?(r=n,n=void 0):n=e,n!==e)if(s=r,l=Fi(),l!==e?(c=I(),l=[l,c],s=l):(r=s,s=e),s!==e)if(l=r,c=us(),c!==e?(h=I(),T=Ks(),T!==e?(_=I(),c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e),l===e&&(l=null),c=r,h=zl(),h===e&&(h=Yl()),h!==e?(T=I(),h=[h,T],c=h):(r=c,c=e),c===e&&(c=null),h=r,T=$i(),T!==e?(_=I(),T=[T,_],h=T):(r=h,h=e),h===e&&(h=null),T=r,_=Nu(),_!==e?(x=I(),_=[_,x],T=_):(r=T,T=e),T!==e)if(_=r,x=Us(),x!==e?(W=I(),x=[x,W],_=x):(r=_,_=e),_===e&&(_=null),x=r,W=Ge(),W!==e?(pe=I(),W=[W,pe],x=W):(r=x,x=e),x!==e)if(W=Ru(),W===e&&(W=on()),W!==e){if(pe=[],Ve=r,qe=I(),$t=D0(),$t!==e?(qe=[qe,$t],Ve=qe):(r=Ve,Ve=e),Ve!==e)for(;Ve!==e;)pe.push(Ve),Ve=r,qe=I(),$t=D0(),$t!==e?(qe=[qe,$t],Ve=qe):(r=Ve,Ve=e);else pe=e;pe!==e?(b=t,t=C9e(s,l,c,h,T,_,x,W,pe)):(r=t,t=e)}else r=t,t=e;else r=t,t=e;else r=t,t=e;else r=t,t=e;else r=t,t=e;if(t===e)if(t=r,n=r,m++,s=ye(),m--,s!==e?(r=n,n=void 0):n=e,n!==e)if(s=r,l=Fi(),l!==e?(c=I(),l=[l,c],s=l):(r=s,s=e),s!==e)if(l=r,c=us(),c!==e?(h=I(),T=Ks(),T!==e?(_=I(),c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e),l===e&&(l=null),c=r,h=Nu(),h!==e?(T=I(),h=[h,T],c=h):(r=c,c=e),c!==e)if(h=r,T=Ge(),T!==e?(_=I(),T=[T,_],h=T):(r=h,h=e),h!==e)if(T=Ru(),T===e&&(T=on()),T!==e){if(_=[],x=r,W=I(),pe=D0(),pe!==e?(W=[W,pe],x=W):(r=x,x=e),x!==e)for(;x!==e;)_.push(x),x=r,W=I(),pe=D0(),pe!==e?(W=[W,pe],x=W):(r=x,x=e);else _=e;_!==e?(b=t,t=$9e(s,l,c,h,T,_)):(r=t,t=e)}else r=t,t=e;else r=t,t=e;else r=t,t=e;else r=t,t=e;else r=t,t=e;return t}function TR(){var t,n,s,l,c;return t=r,n=Ge(),n!==e?(s=r,l=I(),c=Ru(),c===e&&(c=on()),c!==e?(l=[l,c],s=l):(r=s,s=e),s===e&&(s=null),b=t,t=P9e(n,s)):(r=t,t=e),t}function IR(){var t,n,s,l,c;return t=r,n=r,m++,s=Oe(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=r,l=Re(),l!==e?(c=I(),l=[l,c],s=l):(r=s,s=e),s!==e?(l=Ci(),l!==e?(b=t,t=N9e(s,l)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=r,m++,s=ye(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=P0(),s!==e?(b=t,t=V9e(s)):(r=t,t=e)):(r=t,t=e)),t}function D0(){var t,n,s;return t=V0t(),t===e&&(t=E7(),t===e&&(t=r,n=r,m++,s=ye(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=N0t(),s!==e?(b=t,t=L9e(s)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=r,m++,s=Oe(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=P0t(),s!==e?(b=t,t=M9e(s)):(r=t,t=e)):(r=t,t=e)))),t}function P0t(){var t;return t=M0t(),t===e&&(t=s8(),t===e&&(t=gf(),t===e&&(t=js()))),t}function N0t(){var t;return t=L0t(),t===e&&(t=L0(),t===e&&(t=n8(),t===e&&(t=x0t(),t===e&&(t=T7(),t===e&&(t=O0(),t===e&&(t=I7(),t===e&&(t=A7(),t===e&&(t=b7(),t===e&&(t=w7(),t===e&&(t=C0(),t===e&&(t=$0()))))))))))),t}function V0t(){var t,n,s,l;return t=r,n=r,s=Hq(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=xTt(),s===e&&(s=Ci()),s!==e?(b=t,t=B9e(n,s)):(r=t,t=e)):(r=t,t=e),t}function L0t(){var t,n,s,l;return t=r,n=r,s=sg(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=et(),s!==e?(b=t,t=U9e(n,s)):(r=t,t=e)):(r=t,t=e),t}function M0t(){var t,n,s,l,c;return t=r,n=tq(),n===e&&(n=r,s=cr(),s!==e?(l=I(),c=tq(),c!==e?(s=[s,l,c],n=s):(r=n,n=e)):(r=n,n=e)),n!==e&&(b=t,n=j9e(n)),t=n,t}function E7(){var t,n,s,l;return t=r,n=r,s=Tv(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=Re(),s!==e?(b=t,t=x9e(n,s)):(r=t,t=e)):(r=t,t=e),t}function B0t(){var t;return t=Sa(),t===e&&(t=nr(),t===e&&(t=Bl())),t}function U0t(){var t;return t=j0t(),t===e&&(t=nr()),t}function j0t(){var t,n,s,l,c,h;return t=r,n=r,s=nr(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(o.charCodeAt(r)===44?(s=A,r++):(s=e,m===0&&C(ge)),s!==e?(l=r,c=I(),h=nr(),h!==e?(c=[c,h],l=c):(r=l,l=e),l!==e?(b=t,t=F9e(n,l)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function gf(){var t,n,s,l,c,h,T,_;return t=r,n=r,s=C1t(),s!==e?(l=I(),c=Sr(),c!==e?(h=I(),T=cv(),T!==e?(_=I(),s=[s,l,c,h,T,_],n=s):(r=n,n=e)):(r=n,n=e)):(r=n,n=e),n===e&&(n=r,s=Sr(),s!==e?(l=I(),c=cv(),c!==e?(h=I(),s=[s,l,c,h],n=s):(r=n,n=e)):(r=n,n=e)),n!==e?(s=Ge(),s!==e?(b=t,t=G9e(n,s)):(r=t,t=e)):(r=t,t=e),t}function x0t(){var t,n;return t=r,n=TZ(),n!==e&&(b=t,n=S9e(n)),t=n,t}function T7(){var t,n,s,l,c,h,T,_,x,W,pe;return t=r,n=I_t(),n===e&&(n=uDt(),n===e&&(n=HDt(),n===e&&(n=Oq(),n===e&&(n=r,s=cr(),s!==e?(l=I(),c=Oq(),c!==e?(s=[s,l,c],n=s):(r=n,n=e)):(r=n,n=e),n===e&&(n=r,s=Fwt(),s!==e?(l=I(),c=$r(),c!==e?(h=I(),T=Ea(),T!==e?(_=I(),x=Iq(),x!==e?(s=[s,l,c,h,T,_,x],n=s):(r=n,n=e)):(r=n,n=e)):(r=n,n=e)):(r=n,n=e),n===e&&(n=r,s=Hq(),s!==e?(l=I(),c=Ea(),c!==e?(h=I(),T=$r(),T!==e?(_=I(),x=Ea(),x!==e?(W=I(),pe=Iq(),pe!==e?(s=[s,l,c,h,T,_,x,W,pe],n=s):(r=n,n=e)):(r=n,n=e)):(r=n,n=e)):(r=n,n=e)):(r=n,n=e),n===e&&(n=sZ(),n===e&&(n=r,s=r1t(),s!==e?(l=I(),c=GDt(),c===e&&(c=N1t(),c===e&&(c=S1t())),c!==e?(s=[s,l,c],n=s):(r=n,n=e)):(r=n,n=e))))))))),n!==e&&(b=t,n=K9e(n)),t=n,t}function O0(){var t,n,s,l,c,h;return t=r,n=r,s=mv(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n===e&&(n=null),s=r,l=Yq(),l!==e?(c=I(),h=IRt(),h===e&&(h=C_t()),h!==e?(l=[l,c,h],s=l):(r=s,s=e)):(r=s,s=e),s!==e?(b=t,t=k9e(n,s)):(r=t,t=e),t}function I7(){var t,n,s,l;return t=r,n=r,s=tRt(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=ds(),s!==e?(b=t,t=q9e(n,s)):(r=t,t=e)):(r=t,t=e),t}function A7(){var t,n,s,l;return t=r,n=r,s=Uo(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=ds(),s!==e?(b=t,t=Z9e(n,s)):(r=t,t=e)):(r=t,t=e),t}function b7(){var t,n,s,l;return t=r,n=r,s=IDt(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=Ge(),s!==e?(b=t,t=J9e(n,s)):(r=t,t=e)):(r=t,t=e),t}function w7(){var t,n,s,l;return t=r,n=r,s=LDt(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=fbt(),s!==e?(b=t,t=H9e(n,s)):(r=t,t=e)):(r=t,t=e),t}function AR(){var t,n,s,l,c,h;return t=r,n=r,s=Gs(),s!==e?(l=I(),c=Ta(),c!==e?(h=I(),s=[s,l,c,h],n=s):(r=n,n=e)):(r=n,n=e),n!==e?(s=Ci(),s!==e?(b=t,t=W9e(n,s)):(r=t,t=e)):(r=t,t=e),t}function C0(){var t,n,s,l,c,h,T;return t=r,n=r,s=tr(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=r,l=Re(),l!==e?(c=I(),l=[l,c],s=l):(r=s,s=e),s!==e?(o.charCodeAt(r)===61?(l=U,r++):(l=e,m===0&&C(os)),l===e&&(l=ci()),l!==e?(c=r,h=I(),T=KAt(),T!==e?(h=[h,T],c=h):(r=c,c=e),c!==e?(b=t,t=Y9e(n,s,l,c)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function bR(){var t;return t=$n(),t===e&&(t=Af(),t===e&&(t=Re())),t}function $0(){var t,n,s,l,c,h,T,_;return t=r,n=r,s=tr(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=Re(),s!==e?(l=r,c=I(),h=gs(),h!==e?(T=I(),_=Sf(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e),l!==e?(b=t,t=z9e(n,s,l)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function R7(){var t,n,s,l;return t=r,n=r,s=Yf(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=Re(),s!==e?(b=t,t=X9e(n,s)):(r=t,t=e)):(r=t,t=e),t}function _7(){var t,n,s,l,c;return t=r,n=r,s=Yf(),s!==e?(l=I(),c=li(),c!==e?(s=[s,l,c],n=s):(r=n,n=e)):(r=n,n=e),n!==e&&(b=t,n=Q9e(n)),t=n,t}function g7(){var t,n,s,l,c,h,T,_,x,W;return t=r,n=r,s=Cr(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=r,l=$i(),l!==e?(c=I(),l=[l,c],s=l):(r=s,s=e),s===e&&(s=null),l=r,c=Nu(),c!==e?(h=I(),c=[c,h],l=c):(r=l,l=e),l!==e?(c=r,h=wr(),h!==e?(T=I(),h=[h,T],c=h):(r=c,c=e),c===e&&(c=null),h=Ge(),h!==e?(T=r,_=I(),x=Ru(),x===e&&(x=on()),x!==e?(_=[_,x],T=_):(r=T,T=e),T===e&&(T=null),_=r,x=I(),W=di(),W===e&&(W=Yr()),W!==e?(x=[x,W],_=x):(r=_,_=e),_===e&&(_=null),b=t,t=e8e(n,s,l,c,h,T,_)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function F0t(){var t,n,s,l,c,h,T,_,x;if(t=r,n=r,s=Jr(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e)if(s=r,l=Nu(),l!==e?(c=I(),l=[l,c],s=l):(r=s,s=e),s!==e)if(l=Ge(),l!==e){if(c=r,h=I(),T=Ru(),T===e&&(T=on()),T!==e?(h=[h,T],c=h):(r=c,c=e),c===e&&(c=null),h=[],T=r,_=I(),x=D7(),x!==e?(_=[_,x],T=_):(r=T,T=e),T!==e)for(;T!==e;)h.push(T),T=r,_=I(),x=D7(),x!==e?(_=[_,x],T=_):(r=T,T=e);else h=e;h!==e?(T=r,_=I(),x=Yr(),x!==e?(_=[_,x],T=_):(r=T,T=e),T===e&&(T=null),b=t,t=t8e(n,s,l,c,h,T)):(r=t,t=e)}else r=t,t=e;else r=t,t=e;else r=t,t=e;return t}function D7(){var t;return t=nn(),t===e&&(t=$o(),t===e&&(t=jl(),t===e&&(t=Rf(),t===e&&(t=_f(),t===e&&(t=C0(),t===e&&(t=$0(),t===e&&(t=_7(),t===e&&(t=R7(),t===e&&(t=T7(),t===e&&(t=O0(),t===e&&(t=I7(),t===e&&(t=A7(),t===e&&(t=b7()))))))))))))),t}function O7(){var t,n,s,l,c,h,T,_,x,W,pe;if(t=r,n=r,s=Fi(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e)if(s=r,l=us(),l!==e?(c=I(),h=Ks(),h!==e?(T=I(),l=[l,c,h,T],s=l):(r=s,s=e)):(r=s,s=e),s===e&&(s=null),l=r,c=Hf(),c!==e?(h=I(),c=[c,h],l=c):(r=l,l=e),l!==e)if(c=r,h=Us(),h!==e?(T=I(),h=[h,T],c=h):(r=c,c=e),c===e&&(c=null),h=r,T=Ge(),T!==e?(_=I(),T=[T,_],h=T):(r=h,h=e),h!==e)if(T=Z9(),T===e&&(T=on()),T!==e){if(_=[],x=r,W=I(),pe=$7(),pe!==e?(W=[W,pe],x=W):(r=x,x=e),x!==e)for(;x!==e;)_.push(x),x=r,W=I(),pe=$7(),pe!==e?(W=[W,pe],x=W):(r=x,x=e);else _=e;_!==e?(b=t,t=r8e(n,s,l,c,h,T,_)):(r=t,t=e)}else r=t,t=e;else r=t,t=e;else r=t,t=e;else r=t,t=e;return t}function P0(){var t,n,s,l,c,h,T,_;return t=r,n=r,m++,s=Oe(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=r,l=B_(),l===e&&(l=ii(),l===e&&(l=X_())),l!==e?(c=I(),l=[l,c],s=l):(r=s,s=e),s===e&&(s=null),l=r,c=Re(),c!==e?(h=I(),c=[c,h],l=c):(r=l,l=e),l!==e?(c=Ci(),c!==e?(b=t,t=i8e(s,l,c)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=r,m++,s=ye(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=r,l=B_(),l===e&&(l=ii(),l===e&&(l=X_(),l===e&&(l=hZ()))),l!==e?(c=I(),l=[l,c],s=l):(r=s,s=e),s===e&&(s=null),l=r,c=Re(),c!==e?(h=I(),c=[c,h],l=c):(r=l,l=e),l!==e?(c=Ci(),c!==e?(h=r,T=I(),_=C7(),_!==e?(T=[T,_],h=T):(r=h,h=e),h===e&&(h=null),b=t,t=s8e(s,l,c,h)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=r,m++,s=ye(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=r,l=B_(),l===e&&(l=ii(),l===e&&(l=X_(),l===e&&(l=hZ()))),l!==e?(c=I(),l=[l,c],s=l):(r=s,s=e),s===e&&(s=null),l=Ci(),l!==e?(c=r,h=I(),T=C7(),T!==e?(h=[h,T],c=h):(r=c,c=e),c===e&&(c=null),b=t,t=n8e(s,l,c)):(r=t,t=e)):(r=t,t=e))),t}function C7(){var t,n,s,l,c;return t=r,n=ui(),n===e&&(o.charCodeAt(r)===61?(n=U,r++):(n=e,m===0&&C(os))),n!==e?(s=r,l=I(),c=et(),c!==e?(l=[l,c],s=l):(r=s,s=e),s!==e?(b=t,t=a8e(n,s)):(r=t,t=e)):(r=t,t=e),t}function $7(){var t,n,s;return t=L0(),t===e&&(t=E7(),t===e&&(t=r,n=r,m++,s=Oe(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=G0t(),s!==e?(b=t,t=o8e(s)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=r,m++,s=ye(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=S0t(),s!==e?(b=t,t=l8e(s)):(r=t,t=e)):(r=t,t=e)))),t}function G0t(){var t;return t=s8(),t===e&&(t=gf(),t===e&&(t=js())),t}function S0t(){var t;return t=n8(),t===e&&(t=O0(),t===e&&(t=w7(),t===e&&(t=C0(),t===e&&(t=$0())))),t}function P7(){var t,n,s,l,c,h,T,_,x;return t=r,n=r,s=Cr(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=r,l=Hf(),l!==e?(c=I(),l=[l,c],s=l):(r=s,s=e),s!==e?(l=r,c=wr(),c!==e?(h=I(),c=[c,h],l=c):(r=l,l=e),l===e&&(l=null),c=Ge(),c!==e?(h=r,T=I(),_=Z9(),_===e&&(_=on()),_!==e?(T=[T,_],h=T):(r=h,h=e),h===e&&(h=null),T=r,_=I(),x=di(),x===e&&(x=Yr()),x!==e?(_=[_,x],T=_):(r=T,T=e),T===e&&(T=null),b=t,t=d8e(n,s,l,c,h,T)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function K0t(){var t,n,s,l,c,h,T,_,x;if(t=r,n=r,s=Jr(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e)if(s=r,l=Hf(),l!==e?(c=I(),l=[l,c],s=l):(r=s,s=e),s!==e)if(l=Ge(),l!==e){if(c=r,h=I(),T=Ru(),T===e&&(T=on()),T!==e?(h=[h,T],c=h):(r=c,c=e),c===e&&(c=null),h=[],T=r,_=I(),x=N7(),x!==e?(_=[_,x],T=_):(r=T,T=e),T!==e)for(;T!==e;)h.push(T),T=r,_=I(),x=N7(),x!==e?(_=[_,x],T=_):(r=T,T=e);else h=e;h!==e?(T=r,_=I(),x=Yr(),x!==e?(_=[_,x],T=_):(r=T,T=e),T===e&&(T=null),b=t,t=u8e(n,s,l,c,h,T)):(r=t,t=e)}else r=t,t=e;else r=t,t=e;else r=t,t=e;return t}function N7(){var t;return t=nn(),t===e&&(t=$o(),t===e&&(t=jl(),t===e&&(t=Rf(),t===e&&(t=_f(),t===e&&(t=C0(),t===e&&(t=$0(),t===e&&(t=_7(),t===e&&(t=R7(),t===e&&(t=O0()))))))))),t}function V7(){var t,n,s,l,c,h,T,_,x,W;if(t=r,n=r,s=Fi(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e)if(s=r,l=k0t(),l!==e?(c=I(),l=[l,c],s=l):(r=s,s=e),s===e&&(s=null),l=r,c=Dv(),c!==e?(h=I(),c=[c,h],l=c):(r=l,l=e),l!==e)if(c=r,h=Us(),h!==e?(T=I(),h=[h,T],c=h):(r=c,c=e),c===e&&(c=null),h=Ge(),h!==e){for(T=[],_=r,x=I(),W=Po(),W!==e?(x=[x,W],_=x):(r=_,_=e);_!==e;)T.push(_),_=r,x=I(),W=Po(),W!==e?(x=[x,W],_=x):(r=_,_=e);b=t,t=c8e(n,s,l,c,h,T)}else r=t,t=e;else r=t,t=e;else r=t,t=e;return t}function k0t(){var t,n;return t=r,n=Yl(),n===e&&(n=zl(),n===e&&(n=mg())),n!==e&&(b=t,n=p8e(n)),t=n,t}function q0t(){var t,n,s,l,c,h;if(t=r,n=Po(),n!==e){for(s=[],l=r,c=I(),h=Po(),h!==e?(c=[c,h],l=c):(r=l,l=e);l!==e;)s.push(l),l=r,c=I(),h=Po(),h!==e?(c=[c,h],l=c):(r=l,l=e);b=t,t=f8e(n,s)}else r=t,t=e;return t}function Po(){var t;return t=Z0t(),t===e&&(t=J0t(),t===e&&(t=H0t(),t===e&&(t=L7(),t===e&&(t=W0t(),t===e&&(t=Y0t(),t===e&&(t=z0t(),t===e&&(t=X0t(),t===e&&(t=Q0t(),t===e&&(t=evt(),t===e&&(t=tvt(),t===e&&(t=rvt()))))))))))),t}function Z0t(){var t,n,s,l;return t=r,n=r,s=Lr(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=Ci(),s!==e?(b=t,t=h8e(n,s)):(r=t,t=e)):(r=t,t=e),t}function J0t(){var t,n,s,l,c;return t=r,n=r,s=b_t(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=r,l=wi(),l!==e?(c=I(),l=[l,c],s=l):(r=s,s=e),s===e&&(s=null),l=Kl(),l!==e?(b=t,t=y8e(n,s,l)):(r=t,t=e)):(r=t,t=e),t}function H0t(){var t,n,s,l,c;return t=r,n=r,s=cg(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=r,l=Sr(),l!==e?(c=I(),l=[l,c],s=l):(r=s,s=e),s===e&&(s=null),l=Kl(),l!==e?(b=t,t=m8e(n,s,l)):(r=t,t=e)):(r=t,t=e),t}function L7(){var t,n,s,l,c;return t=r,n=r,s=ig(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=r,l=Sr(),l!==e?(c=I(),l=[l,c],s=l):(r=s,s=e),s!==e?(l=Kl(),l!==e?(b=t,t=v8e(n,s,l)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=ig(),n!==e?(s=r,l=I(),c=Kl(),c!==e?(l=[l,c],s=l):(r=s,s=e),s===e&&(s=null),b=t,t=E8e(n,s)):(r=t,t=e)),t}function W0t(){var t,n,s,l;return t=r,n=r,s=k_(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=Kl(),s!==e?(b=t,t=T8e(n,s)):(r=t,t=e)):(r=t,t=e),t}function Y0t(){var t,n,s,l;return t=r,n=r,s=S_(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=Kl(),s!==e?(b=t,t=I8e(n,s)):(r=t,t=e)):(r=t,t=e),t}function z0t(){var t,n,s,l,c;return t=r,n=r,s=Ss(),s!==e?(l=I(),c=k_(),c!==e?(s=[s,l,c],n=s):(r=n,n=e)):(r=n,n=e),n!==e&&(b=t,n=A8e(n)),t=n,t}function X0t(){var t,n,s,l,c;return t=r,n=r,s=Ss(),s!==e?(l=I(),c=S_(),c!==e?(s=[s,l,c],n=s):(r=n,n=e)):(r=n,n=e),n!==e&&(b=t,n=b8e(n)),t=n,t}function Q0t(){var t,n,s,l;return t=r,n=r,s=jwt(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=Kl(),s!==e?(b=t,t=w8e(n,s)):(r=t,t=e)):(r=t,t=e),t}function evt(){var t,n;return t=r,n=w_(),n!==e&&(b=t,n=R8e(n)),t=n,t}function tvt(){var t,n,s,l,c;return t=r,n=r,s=Ss(),s!==e?(l=I(),c=w_(),c!==e?(s=[s,l,c],n=s):(r=n,n=e)):(r=n,n=e),n!==e&&(b=t,n=_8e(n)),t=n,t}function rvt(){var t,n,s,l,c,h;return t=r,n=r,s=Uq(),s!==e?(l=I(),c=wi(),c!==e?(h=I(),s=[s,l,c,h],n=s):(r=n,n=e)):(r=n,n=e),n!==e?(s=Ge(),s!==e?(b=t,t=g8e(n,s)):(r=t,t=e)):(r=t,t=e),t}function ivt(){var t,n,s,l,c,h,T,_,x;if(t=r,n=r,s=Jr(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e)if(s=r,l=Dv(),l!==e?(c=I(),l=[l,c],s=l):(r=s,s=e),s!==e)if(l=r,c=wr(),c!==e?(h=I(),c=[c,h],l=c):(r=l,l=e),l===e&&(l=null),c=Ge(),c!==e){if(h=[],T=r,_=I(),x=Po(),x===e&&(x=M7()),x!==e?(_=[_,x],T=_):(r=T,T=e),T!==e)for(;T!==e;)h.push(T),T=r,_=I(),x=Po(),x===e&&(x=M7()),x!==e?(_=[_,x],T=_):(r=T,T=e);else h=e;h!==e?(b=t,t=D8e(n,s,l,c,h)):(r=t,t=e)}else r=t,t=e;else r=t,t=e;else r=t,t=e;return t}function M7(){var t;return t=s7(),t===e&&(t=n7(),t===e&&(t=$o(),t===e&&(t=nn(),t===e&&(t=jl())))),t}function svt(){var t,n,s,l,c,h,T,_;return t=r,n=r,s=Cr(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=r,l=Dv(),l!==e?(c=I(),l=[l,c],s=l):(r=s,s=e),s!==e?(l=r,c=wr(),c!==e?(h=I(),c=[c,h],l=c):(r=l,l=e),l===e&&(l=null),c=xi(),c!==e?(h=r,T=I(),_=di(),_===e&&(_=Yr()),_!==e?(T=[T,_],h=T):(r=h,h=e),h===e&&(h=null),b=t,t=O8e(n,s,l,c,h)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function nvt(){var t,n,s,l,c,h;return t=r,n=r,s=Fi(),s!==e?(l=I(),c=Ta(),c!==e?(h=I(),s=[s,l,c,h],n=s):(r=n,n=e)):(r=n,n=e),n!==e?(s=Ge(),s!==e?(l=r,c=I(),h=avt(),h!==e?(c=[c,h],l=c):(r=l,l=e),l===e&&(l=null),b=t,t=C8e(n,s,l)):(r=t,t=e)):(r=t,t=e),t}function avt(){var t;return t=ovt(),t===e&&(t=lvt()),t}function ovt(){var t,n,s,l;return t=r,n=r,s=Lr(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=on(),s===e&&(s=wu()),s!==e?(b=t,t=$8e(n,s)):(r=t,t=e)):(r=t,t=e),t}function lvt(){var t,n,s,l,c,h;return t=r,n=r,s=Lr(),s!==e?(l=I(),c=oq(),c!==e?(h=I(),s=[s,l,c,h],n=s):(r=n,n=e)):(r=n,n=e),n!==e?(s=on(),s===e&&(s=J9()),s!==e?(b=t,t=P8e(n,s)):(r=t,t=e)):(r=t,t=e),t}function dvt(){var t,n,s,l,c,h;return t=r,n=r,s=Jr(),s!==e?(l=I(),c=Ta(),c!==e?(h=I(),s=[s,l,c,h],n=s):(r=n,n=e)):(r=n,n=e),n!==e?(s=Ge(),s!==e?(l=r,c=I(),h=FAt(),h!==e?(c=[c,h],l=c):(r=l,l=e),l!==e?(b=t,t=N8e(n,s,l)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function wR(){var t;return t=$o(),t===e&&(t=nn(),t===e&&(t=jl(),t===e&&(t=Jmt(),t===e&&(t=Wmt(),t===e&&(t=Ymt(),t===e&&(t=zmt(),t===e&&(t=Xmt(),t===e&&(t=Qmt())))))))),t}function uvt(){var t,n,s,l,c,h,T;return t=r,n=r,s=Cr(),s!==e?(l=I(),c=Ta(),c!==e?(h=I(),s=[s,l,c,h],n=s):(r=n,n=e)):(r=n,n=e),n!==e?(s=r,l=wr(),l!==e?(c=I(),l=[l,c],s=l):(r=s,s=e),s===e&&(s=null),l=xi(),l!==e?(c=r,h=I(),T=di(),T===e&&(T=Yr()),T!==e?(h=[h,T],c=h):(r=c,c=e),c===e&&(c=null),b=t,t=V8e(n,s,l,c)):(r=t,t=e)):(r=t,t=e),t}function cvt(){var t,n,s,l,c,h,T,_,x;if(t=r,n=r,s=Fi(),s!==e?(l=I(),c=yv(),c!==e?(h=I(),s=[s,l,c,h],n=s):(r=n,n=e)):(r=n,n=e),n!==e)if(s=r,l=Ge(),l!==e?(c=I(),l=[l,c],s=l):(r=s,s=e),s!==e)if(l=r,c=Lr(),c!==e?(h=I(),c=[c,h],l=c):(r=l,l=e),l===e&&(l=null),c=Ci(),c!==e){for(h=[],T=r,_=I(),x=B0(),x!==e?(_=[_,x],T=_):(r=T,T=e);T!==e;)h.push(T),T=r,_=I(),x=B0(),x!==e?(_=[_,x],T=_):(r=T,T=e);b=t,t=L8e(n,s,l,c,h)}else r=t,t=e;else r=t,t=e;else r=t,t=e;return t}function pvt(){var t,n,s,l,c,h;return t=r,n=r,s=Jr(),s!==e?(l=I(),c=yv(),c!==e?(h=I(),s=[s,l,c,h],n=s):(r=n,n=e)):(r=n,n=e),n!==e?(s=Ge(),s!==e?(l=r,c=I(),h=fvt(),h!==e?(c=[c,h],l=c):(r=l,l=e),l!==e?(b=t,t=M8e(n,s,l)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function fvt(){var t;return t=$o(),t===e&&(t=nn(),t===e&&(t=jl(),t===e&&(t=a7(),t===e&&(t=o7(),t===e&&(t=l7(),t===e&&(t=oR(),t===e&&(t=Qk(),t===e&&(t=e7(),t===e&&(t=_0(),t===e&&(t=R0())))))))))),t}function hvt(){var t,n,s,l,c,h,T;return t=r,n=r,s=Cr(),s!==e?(l=I(),c=yv(),c!==e?(h=I(),s=[s,l,c,h],n=s):(r=n,n=e)):(r=n,n=e),n!==e?(s=r,l=wr(),l!==e?(c=I(),l=[l,c],s=l):(r=s,s=e),s===e&&(s=null),l=xi(),l!==e?(c=r,h=I(),T=di(),T===e&&(T=Yr()),T!==e?(h=[h,T],c=h):(r=c,c=e),c===e&&(c=null),b=t,t=B8e(n,s,l,c)):(r=t,t=e)):(r=t,t=e),t}function yvt(){var t,n,s,l,c,h,T,_;if(t=r,n=r,s=Fi(),s!==e?(l=I(),c=Wl(),c===e&&(c=Fo(),c===e&&(c=Mu())),c!==e?(h=I(),s=[s,l,c,h],n=s):(r=n,n=e)):(r=n,n=e),n!==e)if(s=Ge(),s!==e){for(l=r,c=I(),h=Sr(),h!==e?(c=[c,h],l=c):(r=l,l=e),l===e&&(l=null),c=[],h=r,T=I(),_=xl(),_!==e?(T=[T,_],h=T):(r=h,h=e);h!==e;)c.push(h),h=r,T=I(),_=xl(),_!==e?(T=[T,_],h=T):(r=h,h=e);b=t,t=U8e(n,s,l,c)}else r=t,t=e;else r=t,t=e;return t}function xl(){var t;return t=mvt(),t===e&&(t=vvt(),t===e&&(t=Evt(),t===e&&(t=Tvt(),t===e&&(t=Ivt(),t===e&&(t=Avt(),t===e&&(t=bvt(),t===e&&(t=wvt()))))))),t}function mvt(){var t,n;return t=r,n=TDt(),n===e&&(n=Mgt(),n===e&&(n=rRt(),n===e&&(n=Cgt(),n===e&&(n=iRt(),n===e&&(n=$gt(),n===e&&(n=xu(),n===e&&(n=Pgt(),n===e&&(n=W_t(),n===e&&(n=Ngt(),n===e&&(n=$1t(),n===e&&(n=Lgt(),n===e&&(n=Mwt(),n===e&&(n=Ogt()))))))))))))),n!==e&&(b=t,n=j8e(n)),t=n,t}function vvt(){var t,n,s,l,c,h;return t=r,n=r,s=cv(),s!==e?(l=I(),c=Gu(),c!==e?(h=I(),s=[s,l,c,h],n=s):(r=n,n=e)):(r=n,n=e),n!==e?(s=ds(),s!==e?(b=t,t=x8e(n,s)):(r=t,t=e)):(r=t,t=e),t}function Evt(){var t,n,s,l,c;return t=r,n=r,s=xRt(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n===e&&(n=null),s=r,l=jq(),l!==e?(c=I(),l=[l,c],s=l):(r=s,s=e),s!==e?(l=nr(),l===e&&(l=f8()),l!==e?(b=t,t=F8e(n,s,l)):(r=t,t=e)):(r=t,t=e),t}function Tvt(){var t,n,s,l,c,h;return t=r,n=r,s=fZ(),s!==e?(l=I(),c=cZ(),c!==e?(h=I(),s=[s,l,c,h],n=s):(r=n,n=e)):(r=n,n=e),n!==e?(s=nr(),s!==e?(b=t,t=G8e(n,s)):(r=t,t=e)):(r=t,t=e),t}function Ivt(){var t,n,s,l,c,h;return t=r,n=r,s=ii(),s!==e?(l=I(),c=Wl(),c!==e?(h=I(),s=[s,l,c,h],n=s):(r=n,n=e)):(r=n,n=e),n!==e?(s=Vf(),s!==e?(b=t,t=S8e(n,s)):(r=t,t=e)):(r=t,t=e),t}function Avt(){var t,n,s,l;return t=r,n=r,s=Wl(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=Vf(),s!==e?(b=t,t=K8e(n,s)):(r=t,t=e)):(r=t,t=e),t}function bvt(){var t,n,s,l;return t=r,n=r,s=v_(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=Vf(),s!==e?(b=t,t=k8e(n,s)):(r=t,t=e)):(r=t,t=e),t}function wvt(){var t,n,s,l;return t=r,n=r,s=ADt(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=ds(),s!==e?(b=t,t=q8e(n,s)):(r=t,t=e)):(r=t,t=e),t}function Rvt(){var t,n,s,l,c,h;return t=r,n=r,s=Jr(),s!==e?(l=I(),c=Wl(),c===e&&(c=Fo(),c===e&&(c=Mu())),c!==e?(h=I(),s=[s,l,c,h],n=s):(r=n,n=e)):(r=n,n=e),n!==e?(s=r,l=bu(),l===e&&(l=li()),l!==e?(c=I(),l=[l,c],s=l):(r=s,s=e),s!==e?(l=r,c=_vt(),c!==e?(h=I(),c=[c,h],l=c):(r=l,l=e),l===e&&(l=null),c=gvt(),c!==e?(b=t,t=Z8e(n,s,l,c)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function _vt(){var t,n,s,l,c,h;return t=r,n=r,s=ii(),s!==e?(l=I(),c=Pu(),c!==e?(h=I(),s=[s,l,c,h],n=s):(r=n,n=e)):(r=n,n=e),n!==e?(s=Re(),s!==e?(b=t,t=J8e(n,s)):(r=t,t=e)):(r=t,t=e),t}function gvt(){var t;return t=Dvt(),t===e&&(t=nn(),t===e&&(t=Ovt(),t===e&&(t=Cvt(),t===e&&(t=$vt(),t===e&&(t=Pvt(),t===e&&(t=Nvt())))))),t}function Dvt(){var t,n,s,l,c,h;if(t=r,n=Sr(),n!==e){if(s=[],l=r,c=I(),h=xl(),h!==e?(c=[c,h],l=c):(r=l,l=e),l!==e)for(;l!==e;)s.push(l),l=r,c=I(),h=xl(),h!==e?(c=[c,h],l=c):(r=l,l=e);else s=e;s!==e?(b=t,t=H8e(n,s)):(r=t,t=e)}else r=t,t=e;if(t===e)if(t=r,n=xl(),n!==e){for(s=[],l=r,c=I(),h=xl(),h!==e?(c=[c,h],l=c):(r=l,l=e);l!==e;)s.push(l),l=r,c=I(),h=xl(),h!==e?(c=[c,h],l=c):(r=l,l=e);b=t,t=W8e(n,s)}else r=t,t=e;return t}function Ovt(){var t,n,s,l,c,h,T;return t=r,n=r,s=tr(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=r,l=Re(),l!==e?(c=I(),l=[l,c],s=l):(r=s,s=e),s!==e?(o.charCodeAt(r)===61?(l=U,r++):(l=e,m===0&&C(os)),l===e&&(l=ci()),l!==e?(c=r,h=I(),T=_u(),T===e&&(T=O8()),T!==e?(h=[h,T],c=h):(r=c,c=e),c!==e?(b=t,t=Y8e(n,s,l,c)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function Cvt(){var t,n,s,l,c,h,T;return t=r,n=r,s=tr(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=r,l=Re(),l!==e?(c=I(),l=[l,c],s=l):(r=s,s=e),s!==e?(l=r,c=gs(),c!==e?(h=I(),T=Sf(),T!==e?(c=[c,h,T],l=c):(r=l,l=e)):(r=l,l=e),l!==e?(b=t,t=z8e(n,s,l)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function $vt(){var t,n,s,l;return t=r,n=r,s=Yf(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=Re(),s===e&&(s=li()),s!==e?(b=t,t=X8e(n,s)):(r=t,t=e)):(r=t,t=e),t}function Pvt(){var t,n,s,l,c,h;return t=r,n=r,s=kl(),s!==e?(l=I(),c=Fo(),c!==e?(h=I(),s=[s,l,c,h],n=s):(r=n,n=e)):(r=n,n=e),n!==e?(s=ri(),s!==e?(b=t,t=Q8e(n,s)):(r=t,t=e)):(r=t,t=e),t}function Nvt(){var t,n,s,l,c,h;return t=r,n=r,s=Cr(),s!==e?(l=I(),c=Fo(),c!==e?(h=I(),s=[s,l,c,h],n=s):(r=n,n=e)):(r=n,n=e),n!==e?(s=ri(),s!==e?(b=t,t=eqe(n,s)):(r=t,t=e)):(r=t,t=e),t}function Vvt(){var t,n,s,l,c,h;return t=r,n=r,s=Cr(),s!==e?(l=I(),c=Wl(),c===e&&(c=Fo(),c===e&&(c=Mu())),c!==e?(h=I(),s=[s,l,c,h],n=s):(r=n,n=e)):(r=n,n=e),n!==e?(s=r,l=wr(),l!==e?(c=I(),l=[l,c],s=l):(r=s,s=e),s===e&&(s=null),l=Vf(),l!==e?(b=t,t=tqe(n,s,l)):(r=t,t=e)):(r=t,t=e),t}function Lvt(){var t,n,s,l,c,h;return t=r,n=r,s=tr(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=r,l=Y1t(),l===e&&(l=j_()),l!==e?(c=I(),l=[l,c],s=l):(r=s,s=e),s===e&&(s=null),l=r,c=Wl(),c!==e?(h=I(),c=[c,h],l=c):(r=l,l=e),l!==e?(c=Vgt(),c===e&&(c=Re(),c===e&&(c=nr())),c!==e?(b=t,t=rqe(n,s,l,c)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function Mvt(){var t,n,s,l,c;return t=r,n=r,s=Yf(),s!==e?(l=I(),c=Wl(),c!==e?(s=[s,l,c],n=s):(r=n,n=e)):(r=n,n=e),n!==e&&(b=t,n=iqe(n)),t=n,t}function Bvt(){var t,n,s,l,c,h,T,_,x;if(t=r,n=r,s=Fi(),s!==e?(l=I(),c=Jf(),c!==e?(h=I(),s=[s,l,c,h],n=s):(r=n,n=e)):(r=n,n=e),n!==e)if(s=r,l=Re(),l!==e?(c=I(),l=[l,c],s=l):(r=s,s=e),s!==e)if(l=r,c=$r(),c!==e?(h=I(),c=[c,h],l=c):(r=l,l=e),l!==e)if(c=Ge(),c!==e){for(h=[],T=r,_=I(),x=B7(),x!==e?(_=[_,x],T=_):(r=T,T=e);T!==e;)h.push(T),T=r,_=I(),x=B7(),x!==e?(_=[_,x],T=_):(r=T,T=e);b=t,t=sqe(n,s,l,c,h)}else r=t,t=e;else r=t,t=e;else r=t,t=e;else r=t,t=e;return t}function B7(){var t;return t=Uvt(),t===e&&(t=jvt(),t===e&&(t=xvt(),t===e&&(t=U7(),t===e&&(t=j7(),t===e&&(t=x7()))))),t}function Uvt(){var t,n,s,l;return t=r,n=r,s=Lr(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=o1t(),s!==e?(b=t,t=nqe(n,s)):(r=t,t=e)):(r=t,t=e),t}function jvt(){var t,n,s,l;return t=r,n=r,s=Lr(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=V1t(),s!==e?(b=t,t=aqe(n,s)):(r=t,t=e)):(r=t,t=e),t}function xvt(){var t,n,s,l;return t=r,n=r,s=Gs(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=li(),s===e&&(s=Ku(),s===e&&(s=qf(),s===e&&(s=Vn(),s===e&&(s=Zl())))),s!==e?(b=t,t=oqe(n,s)):(r=t,t=e)):(r=t,t=e),t}function U7(){var t,n,s,l;return t=r,n=r,s=ci(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=Nf(),s!==e?(b=t,t=lqe(n,s)):(r=t,t=e)):(r=t,t=e),t}function j7(){var t,n,s,l;return t=r,n=r,s=cs(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=Sa(),s!==e?(b=t,t=dqe(n,s)):(r=t,t=e)):(r=t,t=e),t}function x7(){var t,n,s,l,c;return t=r,n=r,s=Sr(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=r,l=Ff(),l!==e?(c=I(),l=[l,c],s=l):(r=s,s=e),s!==e?(l=Sa(),l!==e?(b=t,t=uqe(n,s,l)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function Fvt(){var t,n,s,l,c,h,T,_,x;if(t=r,n=r,s=Jr(),s!==e?(l=I(),c=Jf(),c!==e?(h=I(),s=[s,l,c,h],n=s):(r=n,n=e)):(r=n,n=e),n!==e)if(s=r,l=Re(),l!==e?(c=I(),l=[l,c],s=l):(r=s,s=e),s!==e)if(l=r,c=$r(),c!==e?(h=I(),c=[c,h],l=c):(r=l,l=e),l!==e)if(c=Ge(),c!==e){if(h=[],T=r,_=I(),x=F7(),x!==e?(_=[_,x],T=_):(r=T,T=e),T!==e)for(;T!==e;)h.push(T),T=r,_=I(),x=F7(),x!==e?(_=[_,x],T=_):(r=T,T=e);else h=e;h!==e?(b=t,t=cqe(n,s,l,c,h)):(r=t,t=e)}else r=t,t=e;else r=t,t=e;else r=t,t=e;else r=t,t=e;return t}function F7(){var t;return t=nn(),t===e&&(t=U7(),t===e&&(t=j7(),t===e&&(t=x7()))),t}function Gvt(){var t,n,s,l,c,h,T,_,x;return t=r,n=r,s=Cr(),s!==e?(l=I(),c=Jf(),c!==e?(h=I(),s=[s,l,c,h],n=s):(r=n,n=e)):(r=n,n=e),n!==e?(s=r,l=wr(),l!==e?(c=I(),l=[l,c],s=l):(r=s,s=e),s===e&&(s=null),l=r,c=Re(),c!==e?(h=I(),c=[c,h],l=c):(r=l,l=e),l!==e?(c=r,h=$r(),h!==e?(T=I(),h=[h,T],c=h):(r=c,c=e),c!==e?(h=Ge(),h!==e?(T=r,_=I(),x=di(),x===e&&(x=Yr()),x!==e?(_=[_,x],T=_):(r=T,T=e),T===e&&(T=null),b=t,t=pqe(n,s,l,c,h,T)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function RR(){var t,n,s,l,c,h;return t=r,n=$8(),n!==e?(s=r,l=I(),c=$i(),c!==e?(l=[l,c],s=l):(r=s,s=e),s===e&&(s=null),l=r,c=I(),h=xi(),h!==e?(c=[c,h],l=c):(r=l,l=e),l===e&&(l=null),b=t,t=fqe(n,s,l)):(r=t,t=e),t}function _R(){var t,n,s,l,c,h,T,_;return t=r,n=r,s=Svt(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=r,l=$8(),l!==e?(c=I(),l=[l,c],s=l):(r=s,s=e),s===e&&(s=null),l=r,c=tg(),c!==e?(h=I(),T=u1t(),T!==e?(_=I(),c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e),l===e&&(l=null),c=vf(),c!==e?(b=t,t=hqe(n,s,l,c)):(r=t,t=e)):(r=t,t=e),t}function Svt(){var t,n,s,l;return t=YRt(),t===e&&(t=r,n=_Rt(),n!==e?(s=r,m++,l=Be(),m--,l!==e?(r=s,s=void 0):s=e,s!==e?(b=t,t=yqe(n)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=eq(),n!==e?(s=r,m++,l=Be(),m--,l!==e?(r=s,s=void 0):s=e,s!==e?(b=t,t=mqe(n)):(r=t,t=e)):(r=t,t=e))),t}function Kvt(){var t;return t=kvt(),t===e&&(t=zvt(),t===e&&(t=Qvt(),t===e&&(t=rEt(),t===e&&(t=iEt())))),t}function kvt(){var t,n,s,l,c,h,T;return t=r,n=r,m++,s=tt(),m--,s!==e?(r=n,n=void 0):n=e,n===e&&(n=r,m++,s=Oe(),m--,s!==e?(r=n,n=void 0):n=e),n!==e?(s=xf(),s!==e?(l=r,c=I(),h=fv(),h===e&&(h=Kf(),h===e&&(h=WRt())),h!==e?(c=[c,h],l=c):(r=l,l=e),l===e&&(l=null),c=r,h=I(),T=zf(),T!==e?(h=[h,T],c=h):(r=c,c=e),c===e&&(c=null),b=t,t=vqe(s,l,c)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=r,m++,s=ye(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=xf(),s!==e?(l=r,c=I(),h=zf(),h===e&&(h=Eg()),h!==e?(c=[c,h],l=c):(r=l,l=e),l===e&&(l=null),c=r,h=I(),T=e8(),T!==e?(h=[h,T],c=h):(r=c,c=e),c===e&&(c=null),b=t,t=Eqe(s,l,c)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=r,m++,s=Be(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=xf(),s!==e?(l=r,c=I(),h=Eg(),h!==e?(c=[c,h],l=c):(r=l,l=e),l===e&&(l=null),b=t,t=Tqe(s,l)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=r,m++,s=Be(),m--,s!==e?(r=n,n=void 0):n=e,n===e&&(n=r,m++,s=ye(),m--,s!==e?(r=n,n=void 0):n=e),n!==e?(s=cg(),s!==e?(l=r,c=I(),h=zf(),h!==e?(c=[c,h],l=c):(r=l,l=e),l!==e?(c=r,h=I(),T=e8(),T!==e?(h=[h,T],c=h):(r=c,c=e),c===e&&(c=null),b=t,t=Iqe(s,l,c)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)))),t}function gR(){var t;return t=qvt(),t===e&&(t=Zvt(),t===e&&(t=Jvt(),t===e&&(t=Hvt(),t===e&&(t=Wvt())))),t}function qvt(){var t,n;return t=r,n=Bo(),n!==e&&(b=t,n=Aqe(n)),t=n,t}function Zvt(){var t,n,s,l,c;return t=r,n=r,s=cr(),s!==e?(l=I(),c=Bo(),c!==e?(s=[s,l,c],n=s):(r=n,n=e)):(r=n,n=e),n!==e&&(b=t,n=bqe(n)),t=n,t}function Jvt(){var t,n,s,l,c;return t=r,n=r,s=Wf(),s!==e?(l=I(),c=zDt(),c!==e?(s=[s,l,c],n=s):(r=n,n=e)):(r=n,n=e),n!==e&&(b=t,n=wqe(n)),t=n,t}function Hvt(){var t,n,s,l,c;return t=r,n=r,s=Wf(),s!==e?(l=I(),c=W_(),c!==e?(s=[s,l,c],n=s):(r=n,n=e)):(r=n,n=e),n!==e&&(b=t,n=Rqe(n)),t=n,t}function Wvt(){var t,n,s,l,c,h;return t=r,n=r,s=N_t(),s!==e?(l=I(),c=Cq(),c!==e?(h=I(),s=[s,l,c,h],n=s):(r=n,n=e)):(r=n,n=e),n!==e?(s=Yvt(),s!==e?(b=t,t=_qe(n,s)):(r=t,t=e)):(r=t,t=e),t}function Yvt(){var t,n,s,l;return t=W1t(),t===e&&(t=r,n=Zq(),n!==e?(s=I(),l=Wf(),l!==e?(n=[n,s,l],t=n):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=Wf(),n!==e?(s=I(),l=Wwt(),l!==e?(n=[n,s,l],t=n):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=Wf(),n!==e?(s=I(),l=jDt(),l!==e?(n=[n,s,l],t=n):(r=t,t=e)):(r=t,t=e)))),t}function zvt(){var t,n,s,l,c,h;return t=r,n=Xvt(),n!==e?(s=r,l=I(),c=G7(),c!==e?(l=[l,c],s=l):(r=s,s=e),s===e&&(s=null),l=r,c=I(),h=S7(),h!==e?(c=[c,h],l=c):(r=l,l=e),l===e&&(l=null),b=t,t=gqe(n,s,l)):(r=t,t=e),t}function Xvt(){var t,n,s,l;return t=q8(),t===e&&(t=r,n=ma(),n!==e?(s=r,m++,l=tt(),m--,l!==e?(r=s,s=void 0):s=e,s===e&&(s=r,m++,l=ye(),m--,l!==e?(r=s,s=void 0):s=e),s!==e?(b=t,t=Dqe(n)):(r=t,t=e)):(r=t,t=e)),t}function Qvt(){var t,n,s,l,c,h,T;return t=r,n=eEt(),n!==e?(s=r,l=I(),c=G7(),c!==e?(l=[l,c],s=l):(r=s,s=e),s===e&&(s=null),l=r,c=I(),h=tEt(),h!==e?(c=[c,h],l=c):(r=l,l=e),l===e&&(l=null),c=r,h=I(),T=S7(),T!==e?(h=[h,T],c=h):(r=c,c=e),c===e&&(c=null),b=t,t=Oqe(n,s,l,c)):(r=t,t=e),t}function eEt(){var t,n,s;return t=gv(),t===e&&(t=r,n=r,m++,s=ye(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=av(),s!==e?(b=t,t=Cqe(s)):(r=t,t=e)):(r=t,t=e)),t}function tEt(){var t,n,s,l,c;return t=r,n=r,s=ci(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=r,l=og(),l!==e?(c=I(),l=[l,c],s=l):(r=s,s=e),s===e&&(s=null),l=Re(),l!==e?(b=t,t=$qe(n,s,l)):(r=t,t=e)):(r=t,t=e),t}function G7(){var t,n,s,l;return t=r,n=zf(),n!==e?(s=r,m++,l=tt(),m--,l!==e?(r=s,s=void 0):s=e,s===e&&(s=r,m++,l=Oe(),m--,l!==e?(r=s,s=void 0):s=e,s===e&&(s=r,m++,l=ye(),m--,l!==e?(r=s,s=void 0):s=e)),s!==e?(b=t,t=Pqe(n)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=Eg(),n!==e?(s=r,m++,l=Be(),m--,l!==e?(r=s,s=void 0):s=e,s===e&&(s=r,m++,l=ye(),m--,l!==e?(r=s,s=void 0):s=e),s!==e?(b=t,t=Nqe(n)):(r=t,t=e)):(r=t,t=e)),t}function rEt(){var t,n,s,l,c;return t=r,n=r,m++,s=Be(),m--,s!==e?(r=n,n=void 0):n=e,n===e&&(n=r,m++,s=tt(),m--,s!==e?(r=n,n=void 0):n=e,n===e&&(n=r,m++,s=ye(),m--,s!==e?(r=n,n=void 0):n=e)),n!==e?(s=r,l=og(),l!==e?(c=I(),l=[l,c],s=l):(r=s,s=e),s!==e?(l=Re(),l!==e?(b=t,t=Vqe(s,l)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function iEt(){var t,n,s,l,c,h;return t=r,n=r,m++,s=Be(),m--,s!==e?(r=n,n=void 0):n=e,n===e&&(n=r,m++,s=tt(),m--,s!==e?(r=n,n=void 0):n=e,n===e&&(n=r,m++,s=ye(),m--,s!==e?(r=n,n=void 0):n=e)),n!==e?(s=r,l=D1t(),l!==e?(c=I(),l=[l,c],s=l):(r=s,s=e),s!==e?(l=r,c=og(),c!==e?(h=I(),c=[c,h],l=c):(r=l,l=e),l===e&&(l=null),c=Re(),c!==e?(b=t,t=Lqe(s,l,c)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function S7(){var t,n,s,l,c,h,T;return t=r,n=r,s=ha(),s!==e?(l=I(),c=K8(),c!==e?(s=[s,l,c],n=s):(r=n,n=e)):(r=n,n=e),n!==e&&(b=t,n=Mqe(n)),t=n,t===e&&(t=r,n=r,s=ha(),s!==e?(l=I(),c=Ss(),c!==e?(h=I(),T=K8(),T!==e?(s=[s,l,c,h,T],n=s):(r=n,n=e)):(r=n,n=e)):(r=n,n=e),n!==e&&(b=t,n=Bqe(n)),t=n),t}function sEt(){var t,n,s;return t=r,n=r,m++,s=Oe(),m--,s!==e?(r=n,n=void 0):n=e,n===e&&(n=r,m++,s=ye(),m--,s!==e?(r=n,n=void 0):n=e),n!==e?(s=K7(),s===e&&(s=oEt()),s!==e?(b=t,t=Uqe(s)):(r=t,t=e)):(r=t,t=e),t}function K7(){var t,n,s,l,c,h,T,_,x,W,pe,Ve;if(t=r,n=r,m++,s=ye(),m--,s!==e?(r=n,n=void 0):n=e,n!==e)if(s=r,l=Lu(),l!==e?(c=I(),l=[l,c],s=l):(r=s,s=e),s!==e)if(l=r,c=Q9(),c===e&&(c=k7()),c!==e?(h=I(),c=[c,h],l=c):(r=l,l=e),l!==e)if(c=r,h=$r(),h!==e?(T=I(),h=[h,T],c=h):(r=c,c=e),c!==e)if(h=r,T=q7(),T!==e?(_=I(),T=[T,_],h=T):(r=h,h=e),h!==e)if(T=r,_=ci(),_!==e?(x=I(),_=[_,x],T=_):(r=T,T=e),T!==e)if(_=Nf(),_!==e){for(x=[],W=r,pe=I(),Ve=N0(),Ve!==e?(pe=[pe,Ve],W=pe):(r=W,W=e);W!==e;)x.push(W),W=r,pe=I(),Ve=N0(),Ve!==e?(pe=[pe,Ve],W=pe):(r=W,W=e);b=t,t=jqe(s,l,c,h,T,_,x)}else r=t,t=e;else r=t,t=e;else r=t,t=e;else r=t,t=e;else r=t,t=e;else r=t,t=e;else r=t,t=e;if(t===e&&(t=r,n=r,m++,s=Oe(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=r,l=Lu(),l!==e?(c=I(),l=[l,c],s=l):(r=s,s=e),s!==e?(l=r,c=ri(),c!==e?(h=I(),c=[c,h],l=c):(r=l,l=e),l!==e?(c=r,h=$r(),h!==e?(T=I(),h=[h,T],c=h):(r=c,c=e),c!==e?(h=r,T=Z7(),T!==e?(_=I(),T=[T,_],h=T):(r=h,h=e),h!==e?(T=r,_=ci(),_!==e?(x=I(),_=[_,x],T=_):(r=T,T=e),T!==e?(_=n_(),_!==e?(b=t,t=xqe(s,l,c,h,T,_)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t===e))if(t=r,n=r,m++,s=ye(),m--,s!==e?(r=n,n=void 0):n=e,n!==e)if(s=r,l=Lu(),l!==e?(c=I(),l=[l,c],s=l):(r=s,s=e),s!==e)if(l=r,c=ri(),c!==e?(h=I(),c=[c,h],l=c):(r=l,l=e),l!==e)if(c=r,h=ci(),h!==e?(T=I(),h=[h,T],c=h):(r=c,c=e),c!==e)if(h=Nf(),h!==e){for(T=[],_=r,x=I(),W=N0(),W!==e?(x=[x,W],_=x):(r=_,_=e);_!==e;)T.push(_),_=r,x=I(),W=N0(),W!==e?(x=[x,W],_=x):(r=_,_=e);b=t,t=Fqe(s,l,c,h,T)}else r=t,t=e;else r=t,t=e;else r=t,t=e;else r=t,t=e;else r=t,t=e;return t}function DR(){var t,n,s,l,c;return t=r,n=nEt(),n!==e?(s=r,l=I(),c=Gl(),c!==e?(l=[l,c],s=l):(r=s,s=e),s===e&&(s=null),b=t,t=Gqe(n,s)):(r=t,t=e),t}function nEt(){var t,n,s,l,c;return t=Ku(),t===e&&(t=qf(),t===e&&(t=Vn(),t===e&&(t=Zl(),t===e&&(t=fg(),t===e&&(t=Kq(),t===e&&(t=qu(),t===e&&(t=Q_t(),t===e&&(t=SDt(),t===e&&(t=Fi(),t===e&&(t=Xwt(),t===e&&(t=zl(),t===e&&(t=Yl(),t===e&&(t=tr(),t===e&&(t=$_(),t===e&&(t=r,n=r,s=Jr(),s!==e?(l=I(),c=Cv(),c!==e?(s=[s,l,c],n=s):(r=n,n=e)):(r=n,n=e),n!==e&&(b=t,n=Sqe(n)),t=n))))))))))))))),t}function k7(){var t,n,s,l,c,h;return t=r,n=li(),n!==e?(s=r,l=I(),c=y1t(),c!==e?(l=[l,c],s=l):(r=s,s=e),s===e&&(s=null),l=r,c=I(),h=Gl(),h!==e?(c=[c,h],l=c):(r=l,l=e),l===e&&(l=null),b=t,t=Kqe(n,s,l)):(r=t,t=e),t}function q7(){var t,n,s,l,c,h,T,_,x,W;return t=r,n=r,s=li(),s!==e?(l=I(),c=wDt(),c!==e?(h=I(),T=ii(),T!==e?(_=I(),x=jo(),x!==e?(W=I(),s=[s,l,c,h,T,_,x,W],n=s):(r=n,n=e)):(r=n,n=e)):(r=n,n=e)):(r=n,n=e),n!==e?(s=ri(),s!==e?(b=t,t=kqe(n,s)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=r,s=li(),s!==e?(l=I(),c=H1t(),c!==e?(h=I(),T=ii(),T!==e?(_=I(),x=jo(),x!==e?(W=I(),s=[s,l,c,h,T,_,x,W],n=s):(r=n,n=e)):(r=n,n=e)):(r=n,n=e)):(r=n,n=e),n!==e?(s=ri(),s!==e?(b=t,t=qqe(n,s)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=r,s=li(),s!==e?(l=I(),c=c_t(),c===e&&(c=m1t(),c===e&&(c=U1t())),c!==e?(h=I(),T=ii(),T!==e?(_=I(),x=jo(),x!==e?(W=I(),s=[s,l,c,h,T,_,x,W],n=s):(r=n,n=e)):(r=n,n=e)):(r=n,n=e)):(r=n,n=e),n!==e?(s=ri(),s!==e?(b=t,t=Zqe(n,s)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=r,s=Dv(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=xi(),s!==e?(b=t,t=Jqe(n,s)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=r,s=Pu(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=ri(),s!==e?(b=t,t=Hqe(n,s)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=r,s=yv(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=xi(),s!==e?(b=t,t=Wqe(n,s)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=r,s=Ev(),s!==e?(l=I(),c=Mo(),c!==e?(h=I(),T=YDt(),T!==e?(_=I(),s=[s,l,c,h,T,_],n=s):(r=n,n=e)):(r=n,n=e)):(r=n,n=e),n!==e?(s=ri(),s!==e?(b=t,t=Yqe(n,s)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=r,s=Ev(),s!==e?(l=I(),c=zq(),c!==e?(h=I(),s=[s,l,c,h],n=s):(r=n,n=e)):(r=n,n=e),n!==e?(s=ri(),s!==e?(b=t,t=zqe(n,s)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=r,s=Nu(),s===e&&(s=Hf(),s===e&&(s=B1t())),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=YAt(),s!==e?(b=t,t=Xqe(n,s)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=r,s=Tv(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=ri(),s!==e?(b=t,t=Qqe(n,s)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=r,s=x_t(),s!==e?(l=I(),c=Fgt(),c!==e?(h=I(),s=[s,l,c,h],n=s):(r=n,n=e)):(r=n,n=e),n!==e?(s=_u(),s!==e?(b=t,t=eZe(n,s)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=r,s=i1t(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=ri(),s!==e?(b=t,t=tZe(n,s)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=r,s=jo(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=ri(),s!==e?(b=t,t=rZe(n,s)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=r,s=xo(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=ri(),s!==e?(b=t,t=iZe(n,s)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=r,s=Ta(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=xi(),s!==e?(b=t,t=sZe(n,s)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=r,s=$i(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n===e&&(n=null),s=xi(),s!==e?(b=t,t=nZe(n,s)):(r=t,t=e)))))))))))))))),t}function Z7(){var t,n,s,l,c,h;return t=r,n=r,s=$i(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n===e&&(n=r,s=mv(),s!==e?(l=I(),c=$i(),c!==e?(h=I(),s=[s,l,c,h],n=s):(r=n,n=e)):(r=n,n=e)),n!==e?(s=xi(),s!==e?(b=t,t=aZe(n,s)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=r,s=Qf(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=xi(),s!==e?(b=t,t=oZe(n,s)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=r,s=jo(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=xi(),s!==e?(b=t,t=lZe(n,s)):(r=t,t=e)):(r=t,t=e))),t}function N0(){var t;return t=aEt(),t===e&&(t=OR()),t}function aEt(){var t,n,s,l,c;return t=r,n=r,s=Sr(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=r,l=Lu(),l===e&&(l=v_(),l===e&&(l=xu(),l===e&&(l=tr()))),l!==e?(c=I(),l=[l,c],s=l):(r=s,s=e),s!==e?(l=Y_(),l===e&&(l=Y0()),l!==e?(b=t,t=dZe(n,s,l)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function J7(){var t,n,s,l,c,h,T;return t=r,n=r,s=Lu(),s===e&&(s=v_(),s===e&&(s=xu(),s===e&&(s=tr()))),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=r,l=Y_(),l!==e?(c=I(),h=Gs(),h!==e?(T=I(),l=[l,c,h,T],s=l):(r=s,s=e)):(r=s,s=e),s!==e?(b=t,t=uZe(n,s)):(r=t,t=e)):(r=t,t=e),t}function OR(){var t,n,s,l,c,h;return t=r,n=r,s=h_t(),s!==e?(l=I(),c=wi(),c!==e?(h=I(),s=[s,l,c,h],n=s):(r=n,n=e)):(r=n,n=e),n!==e?(s=V0(),s!==e?(b=t,t=cZe(n,s)):(r=t,t=e)):(r=t,t=e),t}function oEt(){var t,n,s,l,c,h,T,_,x,W,pe,Ve,qe;return t=r,n=r,m++,s=ye(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=r,l=ng(),l!==e?(c=I(),l=[l,c],s=l):(r=s,s=e),s!==e?(l=r,c=J7(),c!==e?(h=I(),c=[c,h],l=c):(r=l,l=e),l===e&&(l=null),c=r,h=Q9(),h===e&&(h=k7()),h!==e?(T=I(),h=[h,T],c=h):(r=c,c=e),c!==e?(h=r,T=$r(),T!==e?(_=I(),T=[T,_],h=T):(r=h,h=e),h!==e?(T=r,_=q7(),_!==e?(x=I(),_=[_,x],T=_):(r=T,T=e),T!==e?(_=r,x=gs(),x!==e?(W=I(),x=[x,W],_=x):(r=_,_=e),_!==e?(x=Nf(),x!==e?(W=r,pe=I(),Ve=OR(),Ve!==e?(pe=[pe,Ve],W=pe):(r=W,W=e),W===e&&(W=null),pe=r,Ve=I(),qe=di(),qe===e&&(qe=Yr()),qe!==e?(Ve=[Ve,qe],pe=Ve):(r=pe,pe=e),pe===e&&(pe=null),b=t,t=pZe(s,l,c,h,T,_,x,W,pe)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=r,m++,s=Oe(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=r,l=ng(),l!==e?(c=I(),l=[l,c],s=l):(r=s,s=e),s!==e?(l=r,c=ri(),c!==e?(h=I(),c=[c,h],l=c):(r=l,l=e),l!==e?(c=r,h=$r(),h!==e?(T=I(),h=[h,T],c=h):(r=c,c=e),c!==e?(h=r,T=Z7(),T!==e?(_=I(),T=[T,_],h=T):(r=h,h=e),h!==e?(T=r,_=gs(),_!==e?(x=I(),_=[_,x],T=_):(r=T,T=e),T!==e?(_=n_(),_!==e?(b=t,t=fZe(s,l,c,h,T,_)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=r,m++,s=ye(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=r,l=ng(),l!==e?(c=I(),l=[l,c],s=l):(r=s,s=e),s!==e?(l=r,c=J7(),c!==e?(h=I(),c=[c,h],l=c):(r=l,l=e),l===e&&(l=null),c=r,h=ri(),h!==e?(T=I(),h=[h,T],c=h):(r=c,c=e),c!==e?(h=r,T=gs(),T!==e?(_=I(),T=[T,_],h=T):(r=h,h=e),h!==e?(T=Nf(),T!==e?(_=r,x=I(),W=OR(),W!==e?(x=[x,W],_=x):(r=_,_=e),_===e&&(_=null),x=r,W=I(),pe=di(),pe===e&&(pe=Yr()),pe!==e?(W=[W,pe],x=W):(r=x,x=e),x===e&&(x=null),b=t,t=hZe(s,l,c,h,T,_,x)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e))),t}function V0(){var t,n,s,l,c;return t=r,n=Mu(),n!==e?(s=r,l=I(),c=Re(),c!==e?(l=[l,c],s=l):(r=s,s=e),s!==e?(b=t,t=yZe(n,s)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=E1t(),n!==e&&(b=t,n=mZe(n)),t=n,t===e&&(t=r,n=lEt(),n!==e&&(b=t,n=vZe(n)),t=n,t===e&&(t=r,n=Re(),n!==e&&(b=t,n=EZe(n)),t=n))),t}function lEt(){var t,n;return t=r,n=H8(),n===e&&(n=b_(),n===e&&(n=Xq())),n!==e&&(b=t,n=TZe(n)),t=n,t}function bu(){var t;return t=t_(),t===e&&(t=Re()),t}function H7(){var t,n,s,l;return t=dEt(),t===e&&(t=vEt(),t===e&&(t=TEt(),t===e&&(t=IEt(),t===e&&(t=wEt(),t===e&&(t=uEt(),t===e&&(t=pEt(),t===e&&(t=cEt(),t===e&&(t=r,n=fEt(),n!==e?(s=r,m++,l=Oe(),m--,l!==e?(r=s,s=void 0):s=e,s!==e?(b=t,t=IZe(n)):(r=t,t=e)):(r=t,t=e),t===e&&(t=_Et(),t===e&&(t=DEt(),t===e&&(t=CEt(),t===e&&(t=t9(),t===e&&(t=r,n=$Et(),n!==e?(s=r,m++,l=Oe(),m--,l!==e?(r=s,s=void 0):s=e,s!==e?(b=t,t=AZe(n)):(r=t,t=e)):(r=t,t=e)))))))))))))),t}function dEt(){var t,n,s,l,c,h,T;return t=r,n=r,s=Re(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(o.charCodeAt(r)===58?(s=G,r++):(s=e,m===0&&C(Nl)),s!==e?(l=r,c=I(),h=L0(),h!==e?(c=[c,h],l=c):(r=l,l=e),l!==e?(c=r,h=I(),T=Re(),T!==e?(h=[h,T],c=h):(r=c,c=e),c===e&&(c=null),b=t,t=bZe(n,l,c)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t===e&&(t=L0()),t}function uEt(){var t,n,s,l,c,h,T;return t=r,n=r,s=Re(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(o.charCodeAt(r)===58?(s=G,r++):(s=e,m===0&&C(Nl)),s!==e?(l=r,c=I(),h=z7(),h!==e?(c=[c,h],l=c):(r=l,l=e),l!==e?(c=r,h=I(),T=Re(),T!==e?(h=[h,T],c=h):(r=c,c=e),c===e&&(c=null),b=t,t=wZe(n,l,c)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t===e&&(t=z7()),t}function cEt(){var t,n,s,l,c,h,T;return t=r,n=r,s=Re(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(o.charCodeAt(r)===58?(s=G,r++):(s=e,m===0&&C(Nl)),s!==e?(l=r,c=I(),h=Q7(),h!==e?(c=[c,h],l=c):(r=l,l=e),l!==e?(c=r,h=I(),T=Re(),T!==e?(h=[h,T],c=h):(r=c,c=e),c===e&&(c=null),b=t,t=RZe(n,l,c)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t===e&&(t=Q7()),t}function pEt(){var t,n,s,l,c,h,T;return t=r,n=r,s=Re(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(o.charCodeAt(r)===58?(s=G,r++):(s=e,m===0&&C(Nl)),s!==e?(l=r,c=I(),h=X7(),h!==e?(c=[c,h],l=c):(r=l,l=e),l!==e?(c=r,h=I(),T=Re(),T!==e?(h=[h,T],c=h):(r=c,c=e),c===e&&(c=null),b=t,t=_Ze(n,l,c)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t===e&&(t=X7()),t}function fEt(){var t,n,s,l,c,h,T;return t=r,n=r,s=Re(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(o.charCodeAt(r)===58?(s=G,r++):(s=e,m===0&&C(Nl)),s!==e?(l=r,c=I(),h=e9(),h!==e?(c=[c,h],l=c):(r=l,l=e),l!==e?(c=r,h=I(),T=Re(),T!==e?(h=[h,T],c=h):(r=c,c=e),c===e&&(c=null),b=t,t=gZe(n,l,c)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t===e&&(t=e9()),t}function L0(){var t,n,s,l,c,h,T,_;return t=r,n=r,s=xf(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=r,l=hEt(),l!==e?(c=I(),l=[l,c],s=l):(r=s,s=e),s===e&&(s=null),l=On(),l!==e?(c=r,h=I(),T=yEt(),T!==e?(h=[h,T],c=h):(r=c,c=e),c===e&&(c=null),h=r,T=I(),_=ma(),_!==e?(T=[T,_],h=T):(r=h,h=e),h!==e?(b=t,t=DZe(n,s,l,c,h)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function hEt(){var t,n,s,l;return t=r,n=Rwt(),n!==e?(s=r,m++,l=ye(),m--,l!==e?(r=s,s=void 0):s=e,s!==e?(b=t,t=OZe(n)):(r=t,t=e)):(r=t,t=e),t}function yEt(){var t,n,s,l,c,h,T,_;return t=r,n=r,m++,s=Oe(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=r,l=JRt(),l!==e?(c=I(),l=[l,c],s=l):(r=s,s=e),s!==e?(l=r,c=eh(),c!==e?(h=I(),c=[c,h],l=c):(r=l,l=e),l!==e?(c=r,h=mEt(),h!==e?(T=I(),h=[h,T],c=h):(r=c,c=e),c!==e?(h=r,T=ku(),T!==e?(_=I(),T=[T,_],h=T):(r=h,h=e),h!==e?(T=On(),T!==e?(b=t,t=CZe(s,l,c,h,T)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function mEt(){var t,n;return t=r,n=KRt(),n!==e&&(b=t,n=$Ze(n)),t=n,t}function vEt(){var t,n,s,l,c,h,T;return t=r,n=r,s=ERt(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=ri(),s!==e?(l=r,c=I(),h=Ci(),h!==e?(c=[c,h],l=c):(r=l,l=e),l===e&&(l=null),c=r,h=I(),T=EEt(),T!==e?(h=[h,T],c=h):(r=c,c=e),c===e&&(c=null),b=t,t=PZe(n,s,l,c)):(r=t,t=e)):(r=t,t=e),t}function EEt(){var t,n,s,l;return t=r,n=r,s=ui(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=et(),s!==e?(b=t,t=NZe(n,s)):(r=t,t=e)):(r=t,t=e),t}function TEt(){var t,n,s,l;return t=r,n=r,s=tr(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=lbt(),s!==e?(b=t,t=VZe(n,s)):(r=t,t=e)):(r=t,t=e),t}function CR(){var t,n,s,l,c,h,T;return t=r,n=r,m++,s=Be(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=r,l=Re(),l===e&&(l=Mf(),l===e&&(l=Gl(),l===e&&(l=bAt()))),l!==e?(c=I(),l=[l,c],s=l):(r=s,s=e),s!==e?(o.charCodeAt(r)===61?(l=U,r++):(l=e,m===0&&C(os)),l!==e?(c=r,h=I(),T=et(),T!==e?(h=[h,T],c=h):(r=c,c=e),c!==e?(b=t,t=LZe(s,c)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=r,m++,s=Be(),m--,s===e?n=void 0:(r=n,n=e),n!==e?(s=r,l=Re(),l===e&&(l=Gl()),l!==e?(c=I(),l=[l,c],s=l):(r=s,s=e),s!==e?(o.charCodeAt(r)===61?(l=U,r++):(l=e,m===0&&C(os)),l!==e?(c=r,h=I(),T=et(),T!==e?(h=[h,T],c=h):(r=c,c=e),c!==e?(b=t,t=MZe(s,c)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)),t}function IEt(){var t,n,s,l,c,h,T,_;if(t=r,n=r,s=AEt(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e){for(s=[],l=r,c=W7(),c!==e?(h=I(),c=[c,h],l=c):(r=l,l=e);l!==e;)s.push(l),l=r,c=W7(),c!==e?(h=I(),c=[c,h],l=c):(r=l,l=e);l=r,c=bEt(),c!==e?(h=I(),c=[c,h],l=c):(r=l,l=e),l===e&&(l=null),c=r,h=ma(),h!==e?(T=I(),_=Uu(),_!==e?(h=[h,T,_],c=h):(r=c,c=e)):(r=c,c=e),c!==e?(b=t,t=BZe(n,s,l,c)):(r=t,t=e)}else r=t,t=e;return t}function AEt(){var t,n,s,l,c,h;return t=r,n=r,s=Uu(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=r,l=et(),l!==e?(c=I(),l=[l,c],s=l):(r=s,s=e),s!==e?(l=r,c=ku(),c!==e?(h=I(),c=[c,h],l=c):(r=l,l=e),l!==e?(c=On(),c!==e?(b=t,t=UZe(n,s,l,c)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function W7(){var t,n,s,l,c,h;return t=r,n=r,s=BRt(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=r,l=et(),l!==e?(c=I(),l=[l,c],s=l):(r=s,s=e),s!==e?(l=r,c=ku(),c!==e?(h=I(),c=[c,h],l=c):(r=l,l=e),l!==e?(c=On(),c!==e?(b=t,t=jZe(n,s,l,c)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function bEt(){var t,n,s,l;return t=r,n=r,s=D_(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=On(),s!==e?(b=t,t=xZe(n,s)):(r=t,t=e)):(r=t,t=e),t}function wEt(){var t,n,s,l,c,h,T,_,x,W;if(t=r,n=T_(),n!==e){if(s=r,l=I(),c=et(),c!==e?(l=[l,c],s=l):(r=s,s=e),s===e&&(s=null),l=[],c=r,h=I(),T=Y7(),T!==e?(h=[h,T],c=h):(r=c,c=e),c!==e)for(;c!==e;)l.push(c),c=r,h=I(),T=Y7(),T!==e?(h=[h,T],c=h):(r=c,c=e);else l=e;l!==e?(c=r,h=I(),T=REt(),T!==e?(h=[h,T],c=h):(r=c,c=e),c===e&&(c=null),h=r,T=I(),_=ma(),_!==e?(x=I(),W=T_(),W!==e?(T=[T,_,x,W],h=T):(r=h,h=e)):(r=h,h=e),h!==e?(b=t,t=FZe(n,s,l,c,h)):(r=t,t=e)):(r=t,t=e)}else r=t,t=e;return t}function Y7(){var t,n,s,l,c,h,T;return t=r,n=eh(),n!==e?(s=r,l=I(),c=et(),c!==e?(h=I(),l=[l,c,h],s=l):(r=s,s=e),s!==e?(l=ku(),l!==e?(c=r,h=I(),T=On(),T!==e?(h=[h,T],c=h):(r=c,c=e),c!==e?(b=t,t=GZe(n,s,l,c)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function REt(){var t,n,s,l,c;return t=r,n=D_(),n!==e?(s=r,l=I(),c=On(),c!==e?(l=[l,c],s=l):(r=s,s=e),s!==e?(b=t,t=SZe(n,s)):(r=t,t=e)):(r=t,t=e),t}function z7(){var t,n,s,l,c,h,T,_;return t=r,n=r,s=$q(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=On(),s!==e?(l=r,c=I(),h=ma(),h!==e?(T=I(),_=$q(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e),l!==e?(b=t,t=KZe(n,s,l)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function X7(){var t,n,s,l,c,h,T,_,x;return t=r,n=r,s=qq(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=r,l=On(),l!==e?(c=I(),l=[l,c],s=l):(r=s,s=e),s!==e?(l=r,c=cZ(),c!==e?(h=I(),c=[c,h],l=c):(r=l,l=e),l!==e?(c=r,h=et(),h!==e?(T=I(),h=[h,T],c=h):(r=c,c=e),c!==e?(h=r,T=ma(),T!==e?(_=I(),x=qq(),x!==e?(T=[T,_,x],h=T):(r=h,h=e)):(r=h,h=e),h!==e?(b=t,t=kZe(n,s,l,c,h)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function Q7(){var t,n,s,l,c,h,T,_,x;return t=r,n=r,s=EZ(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=r,l=et(),l!==e?(c=I(),l=[l,c],s=l):(r=s,s=e),s!==e?(l=r,c=hv(),c!==e?(h=I(),c=[c,h],l=c):(r=l,l=e),l!==e?(c=r,h=On(),h!==e?(T=I(),h=[h,T],c=h):(r=c,c=e),c!==e?(h=r,T=ma(),T!==e?(_=I(),x=EZ(),x!==e?(T=[T,_,x],h=T):(r=h,h=e)):(r=h,h=e),h!==e?(b=t,t=qZe(n,s,l,c,h)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function e9(){var t,n,s,l,c,h,T,_,x,W,pe;return t=r,n=r,s=Gs(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=r,l=Re(),l!==e?(c=I(),l=[l,c],s=l):(r=s,s=e),s!==e?(l=r,c=ii(),c!==e?(h=I(),c=[c,h],l=c):(r=l,l=e),l!==e?(c=r,h=Sa(),h===e&&(h=Ga()),h!==e?(T=I(),h=[h,T],c=h):(r=c,c=e),c!==e?(h=r,T=hv(),T!==e?(_=I(),T=[T,_],h=T):(r=h,h=e),h!==e?(T=r,_=On(),_!==e?(x=I(),_=[_,x],T=_):(r=T,T=e),T!==e?(_=r,x=ma(),x!==e?(W=I(),pe=Gs(),pe!==e?(x=[x,W,pe],_=x):(r=_,_=e)):(r=_,_=e),_!==e?(b=t,t=ZZe(n,s,l,c,h,T,_)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function _Et(){var t,n,s,l,c;return t=r,n=gEt(),n!==e?(s=r,l=I(),c=Re(),c!==e?(l=[l,c],s=l):(r=s,s=e),s===e&&(s=null),b=t,t=JZe(n,s)):(r=t,t=e),t}function gEt(){var t,n,s,l;return t=S_t(),t===e&&(t=r,n=Lwt(),n!==e?(s=r,m++,l=Oe(),m--,l!==e?(r=s,s=void 0):s=e,s!==e?(b=t,t=HZe(n)):(r=t,t=e)):(r=t,t=e)),t}function DEt(){var t,n,s,l,c;return t=r,n=OEt(),n!==e?(s=r,l=I(),c=Re(),c!==e?(l=[l,c],s=l):(r=s,s=e),s===e&&(s=null),b=t,t=WZe(n,s)):(r=t,t=e),t}function OEt(){var t,n,s,l;return t=L_t(),t===e&&(t=r,n=J8(),n!==e?(s=r,m++,l=Oe(),m--,l!==e?(r=s,s=void 0):s=e,s!==e?(b=t,t=YZe(n)):(r=t,t=e)):(r=t,t=e)),t}function CEt(){var t,n,s,l;return t=r,n=r,s=xwt(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=$f(),s!==e?(b=t,t=zZe(n,s)):(r=t,t=e)):(r=t,t=e),t}function t9(){var t,n,s,l,c;return t=r,n=r,m++,s=Be(),m--,s!==e?(r=n,n=void 0):n=e,n===e&&(n=r,m++,s=ye(),m--,s!==e?(r=n,n=void 0):n=e),n!==e?(s=r,l=sg(),l!==e?(c=I(),l=[l,c],s=l):(r=s,s=e),s!==e?(l=et(),l!==e?(b=t,t=XZe(s,l)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=r,m++,s=Oe(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=sg(),s!==e?(b=t,t=QZe(s)):(r=t,t=e)):(r=t,t=e)),t}function $Et(){var t,n,s,l,c;return t=r,n=Fq(),n!==e?(s=r,l=I(),c=PEt(),c!==e?(l=[l,c],s=l):(r=s,s=e),s===e&&(s=null),b=t,t=eJe(n,s)):(r=t,t=e),t}function PEt(){var t,n,s,l,c,h;return t=r,n=r,s=cs(),s!==e?(l=I(),c=ogt(),c!==e?(h=I(),s=[s,l,c,h],n=s):(r=n,n=e)):(r=n,n=e),n!==e?(o.charCodeAt(r)===61?(s=U,r++):(s=e,m===0&&C(os)),s!==e?(l=r,c=I(),h=nr(),h!==e?(c=[c,h],l=c):(r=l,l=e),l!==e?(b=t,t=tJe(n,l)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function $R(){var t,n,s,l,c,h,T,_;return t=r,n=r,s=$_(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=r,l=NEt(),l!==e?(c=I(),l=[l,c],s=l):(r=s,s=e),s===e&&(s=null),l=et(),l!==e?(c=r,h=I(),T=VEt(),T!==e?(h=[h,T],c=h):(r=c,c=e),c===e&&(c=null),h=r,T=I(),_=LEt(),_!==e?(T=[T,_],h=T):(r=h,h=e),h===e&&(h=null),b=t,t=rJe(n,s,l,c,h)):(r=t,t=e)):(r=t,t=e),t}function NEt(){var t,n,s,l;return t=r,n=Kf(),n!==e?(s=r,m++,l=Oe(),m--,l!==e?(r=s,s=void 0):s=e,s!==e?(b=t,t=iJe(n)):(r=t,t=e)):(r=t,t=e),t}function VEt(){var t,n,s,l;return t=r,n=r,s=Ka(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=ri(),s!==e?(b=t,t=sJe(n,s)):(r=t,t=e)):(r=t,t=e),t}function LEt(){var t,n,s,l;return t=r,n=r,s=cs(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=z9(),s!==e?(b=t,t=nJe(n,s)):(r=t,t=e)):(r=t,t=e),t}function MEt(){var t;return t=BEt(),t===e&&(t=UEt(),t===e&&(t=jEt(),t===e&&(t=xEt()))),t}function BEt(){var t,n,s,l,c,h,T;return t=r,n=r,s=V8(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=r,l=Pu(),l!==e?(c=I(),l=[l,c],s=l):(r=s,s=e),s===e&&(s=null),l=r,c=et(),c!==e?(h=I(),c=[c,h],l=c):(r=l,l=e),l!==e?(c=r,h=Lr(),h!==e?(T=I(),h=[h,T],c=h):(r=c,c=e),c!==e?(h=Re(),h!==e?(b=t,t=aJe(n,s,l,c,h)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function UEt(){var t,n,s,l,c;return t=r,n=r,s=gRt(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=r,l=Pu(),l!==e?(c=I(),l=[l,c],s=l):(r=s,s=e),s===e&&(s=null),l=Re(),l!==e?(b=t,t=oJe(n,s,l)):(r=t,t=e)):(r=t,t=e),t}function jEt(){var t,n,s,l,c,h;return t=r,n=r,s=pZ(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=r,l=Re(),l!==e?(c=I(),l=[l,c],s=l):(r=s,s=e),s===e&&(s=null),l=r,c=Ka(),c!==e?(h=I(),c=[c,h],l=c):(r=l,l=e),l!==e?(c=nr(),c!==e?(b=t,t=lJe(n,s,l,c)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=r,s=pZ(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=Re(),s===e&&(s=null),b=t,t=dJe(n,s)):(r=t,t=e)),t}function xEt(){var t,n,s,l;return t=r,n=r,s=p1t(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=FEt(),s===e&&(s=GEt(),s===e&&(s=Ge())),s!==e?(b=t,t=uJe(n,s)):(r=t,t=e)):(r=t,t=e),t}function FEt(){var t,n,s,l,c,h;return t=r,n=r,s=Ge(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(o.charCodeAt(r)===61?(s=U,r++):(s=e,m===0&&C(os)),s!==e?(l=r,c=I(),h=r9(),h!==e?(c=[c,h],l=c):(r=l,l=e),l!==e?(b=t,t=cJe(n,l)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function GEt(){var t,n,s,l,c;return t=r,n=r,s=I(),l=Ge(),l!==e?(s=[s,l],n=s):(r=n,n=e),n!==e?(s=r,l=I(),c=gAt(),c!==e?(l=[l,c],s=l):(r=s,s=e),s!==e?(b=t,t=pJe(n,s)):(r=t,t=e)):(r=t,t=e),t}function r9(){var t,n;return t=r,n=Cn(),n!==e&&(b=t,n=fJe(n)),t=n,t===e&&(t=$n()),t}function SEt(){var t;return t=KEt(),t===e&&(t=kEt(),t===e&&(t=qEt(),t===e&&(t=HEt(),t===e&&(t=WEt(),t===e&&(t=YEt(),t===e&&(t=zEt(),t===e&&(t=XEt(),t===e&&(t=QEt(),t===e&&(t=eTt(),t===e&&(t=tTt(),t===e&&(t=rTt()))))))))))),t}function KEt(){var t,n,s,l,c,h;return t=r,n=r,s=Fi(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=r,l=i9(),l!==e?(c=I(),l=[l,c],s=l):(r=s,s=e),s!==e?(l=r,c=Ge(),c!==e?(h=I(),c=[c,h],l=c):(r=l,l=e),l!==e?(c=js(),c!==e?(b=t,t=hJe(n,s,l,c)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function kEt(){var t,n,s,l,c,h;return t=r,n=r,s=Cr(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=r,l=i9(),l!==e?(c=I(),l=[l,c],s=l):(r=s,s=e),s!==e?(l=r,c=wr(),c!==e?(h=I(),c=[c,h],l=c):(r=l,l=e),l===e&&(l=null),c=Ge(),c!==e?(b=t,t=yJe(n,s,l,c)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function i9(){var t;return t=S8(),t===e&&(t=Jq(),t===e&&(t=wwt())),t}function qEt(){var t,n,s,l,c,h,T,_,x,W,pe,Ve;if(t=r,n=r,s=Fi(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e)if(s=r,l=us(),l!==e?(c=I(),h=Ks(),h!==e?(T=I(),l=[l,c,h,T],s=l):(r=s,s=e)):(r=s,s=e),s===e&&(s=null),l=r,c=un(),c!==e?(h=I(),T=ov(),T!==e?(_=I(),x=Jf(),x!==e?(W=I(),c=[c,h,T,_,x,W],l=c):(r=l,l=e)):(r=l,l=e)):(r=l,l=e),l!==e)if(c=r,h=Us(),h!==e?(T=I(),h=[h,T],c=h):(r=c,c=e),c===e&&(c=null),h=r,T=Re(),T!==e?(_=I(),T=[T,_],h=T):(r=h,h=e),h!==e)if(T=r,_=$r(),_!==e?(x=I(),_=[_,x],T=_):(r=T,T=e),T!==e)if(_=Ge(),_!==e){if(x=[],W=r,pe=I(),Ve=s9(),Ve!==e?(pe=[pe,Ve],W=pe):(r=W,W=e),W!==e)for(;W!==e;)x.push(W),W=r,pe=I(),Ve=s9(),Ve!==e?(pe=[pe,Ve],W=pe):(r=W,W=e);else x=e;x!==e?(b=t,t=mJe(n,s,l,c,h,T,_,x)):(r=t,t=e)}else r=t,t=e;else r=t,t=e;else r=t,t=e;else r=t,t=e;else r=t,t=e;return t}function s9(){var t;return t=ZEt(),t===e&&(t=JEt()),t}function ZEt(){var t,n,s,l,c,h;return t=r,n=r,s=Lu(),s!==e?(l=I(),c=ci(),c!==e?(h=I(),s=[s,l,c,h],n=s):(r=n,n=e)):(r=n,n=e),n!==e?(s=J9(),s!==e?(b=t,t=vJe(n,s)):(r=t,t=e)):(r=t,t=e),t}function JEt(){var t,n,s,l,c,h;return t=r,n=r,s=uq(),s!==e?(l=I(),c=cs(),c!==e?(h=I(),s=[s,l,c,h],n=s):(r=n,n=e)):(r=n,n=e),n!==e?(s=fa(),s!==e?(b=t,t=EJe(n,s)):(r=t,t=e)):(r=t,t=e),t}function HEt(){var t,n,s,l,c,h,T,_,x,W;return t=r,n=r,s=Cr(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=r,l=un(),l!==e?(c=I(),h=ov(),h!==e?(T=I(),_=Jf(),_!==e?(x=I(),l=[l,c,h,T,_,x],s=l):(r=s,s=e)):(r=s,s=e)):(r=s,s=e),s!==e?(l=r,c=wr(),c!==e?(h=I(),c=[c,h],l=c):(r=l,l=e),l===e&&(l=null),c=r,h=Re(),h!==e?(T=I(),h=[h,T],c=h):(r=c,c=e),c!==e?(h=r,T=$r(),T!==e?(_=I(),T=[T,_],h=T):(r=h,h=e),h!==e?(T=Ge(),T!==e?(b=t,t=TJe(n,s,l,c,h,T)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=r,s=Cr(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=r,l=li(),l!==e?(c=I(),l=[l,c],s=l):(r=s,s=e),s!==e?(l=r,c=un(),c!==e?(h=I(),T=ov(),T!==e?(_=I(),x=c1t(),x!==e?(W=I(),c=[c,h,T,_,x,W],l=c):(r=l,l=e)):(r=l,l=e)):(r=l,l=e),l!==e?(c=r,h=$r(),h!==e?(T=I(),h=[h,T],c=h):(r=c,c=e),c!==e?(h=Ge(),h!==e?(b=t,t=IJe(n,s,l,c,h)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)),t}function WEt(){var t,n,s,l,c,h;return t=r,n=r,s=Jr(),s!==e?(l=I(),c=Jgt(),c!==e?(h=I(),s=[s,l,c,h],n=s):(r=n,n=e)):(r=n,n=e),n!==e?(s=Fa(),s!==e?(b=t,t=AJe(n,s)):(r=t,t=e)):(r=t,t=e),t}function YEt(){var t,n,s,l,c,h;return t=r,n=r,s=Jr(),s!==e?(l=I(),c=v1t(),c!==e?(h=I(),s=[s,l,c,h],n=s):(r=n,n=e)):(r=n,n=e),n!==e?(s=r,l=Re(),l!==e?(c=I(),l=[l,c],s=l):(r=s,s=e),s!==e?(l=Fa(),l!==e?(b=t,t=bJe(n,s,l)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function zEt(){var t,n,s,l,c,h;return t=r,n=r,s=Jr(),s!==e?(l=I(),c=$wt(),c!==e?(h=I(),s=[s,l,c,h],n=s):(r=n,n=e)):(r=n,n=e),n!==e?(s=r,l=Ge(),l!==e?(c=I(),l=[l,c],s=l):(r=s,s=e),s!==e?(l=Fa(),l!==e?(b=t,t=wJe(n,s,l)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function XEt(){var t,n,s,l,c,h;return t=r,n=r,s=Jr(),s!==e?(l=I(),c=S8(),c!==e?(h=I(),s=[s,l,c,h],n=s):(r=n,n=e)):(r=n,n=e),n!==e?(s=r,l=Ge(),l!==e?(c=I(),l=[l,c],s=l):(r=s,s=e),s!==e?(l=Fa(),l!==e?(b=t,t=RJe(n,s,l)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function QEt(){var t,n,s,l,c,h;return t=r,n=r,s=Jr(),s!==e?(l=I(),c=Jq(),c!==e?(h=I(),s=[s,l,c,h],n=s):(r=n,n=e)):(r=n,n=e),n!==e?(s=r,l=Ge(),l!==e?(c=I(),l=[l,c],s=l):(r=s,s=e),s!==e?(l=Fa(),l!==e?(b=t,t=_Je(n,s,l)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function eTt(){var t,n,s,l,c,h;return t=r,n=r,s=bwt(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=et(),s!==e?(l=r,c=I(),h=Ibt(),h!==e?(c=[c,h],l=c):(r=l,l=e),l===e&&(l=null),b=t,t=gJe(n,s,l)):(r=t,t=e)):(r=t,t=e),t}function tTt(){var t,n,s,l,c,h;return t=r,n=r,s=zRt(),s!==e?(l=I(),c=Mo(),c!==e?(h=I(),s=[s,l,c,h],n=s):(r=n,n=e)):(r=n,n=e),n!==e?(s=r,l=gf(),l!==e?(c=I(),l=[l,c],s=l):(r=s,s=e),s===e&&(s=null),l=r,c=js(),c!==e?(h=I(),c=[c,h],l=c):(r=l,l=e),l!==e?(c=H0(),c!==e?(b=t,t=DJe(n,s,l,c)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function rTt(){var t,n,s,l,c,h,T,_,x;if(t=r,n=r,s=q_t(),s!==e?(l=I(),c=Mo(),c!==e?(h=I(),s=[s,l,c,h],n=s):(r=n,n=e)):(r=n,n=e),n!==e)if(s=r,l=Ka(),l===e&&(l=Qgt()),l!==e?(c=I(),l=[l,c],s=l):(r=s,s=e),s!==e)if(l=Ge(),l!==e){for(c=r,h=I(),T=wu(),T!==e?(h=[h,T],c=h):(r=c,c=e),c===e&&(c=null),h=[],T=r,_=I(),x=n9(),x!==e?(_=[_,x],T=_):(r=T,T=e);T!==e;)h.push(T),T=r,_=I(),x=n9(),x!==e?(_=[_,x],T=_):(r=T,T=e);b=t,t=OJe(n,s,l,c,h)}else r=t,t=e;else r=t,t=e;else r=t,t=e;return t}function n9(){var t;return t=p0(),t===e&&(t=xw(),t===e&&(t=js(),t===e&&(t=iTt(),t===e&&(t=Jk(),t===e&&(t=gf()))))),t}function iTt(){var t,n,s,l,c,h;return t=r,n=r,s=gs(),s!==e?(l=I(),c=s_t(),c!==e?(h=I(),s=[s,l,c,h],n=s):(r=n,n=e)):(r=n,n=e),n!==e?(s=k9(),s!==e?(b=t,t=CJe(n,s)):(r=t,t=e)):(r=t,t=e),t}function M0(){var t,n,s,l;return t=r,n=r,s=Sr(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=i_(),s!==e?(b=t,t=$Je(n,s)):(r=t,t=e)):(r=t,t=e),t}function PR(){var t,n,s,l,c,h;return t=r,n=r,s=Ge(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(o.charCodeAt(r)===61?(s=U,r++):(s=e,m===0&&C(os)),s!==e?(l=r,c=I(),h=et(),h===e&&(h=O8()),h!==e?(c=[c,h],l=c):(r=l,l=e),l!==e?(b=t,t=PJe(n,l)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=Ge(),n!==e&&(b=t,n=NJe(n)),t=n),t}function a9(){var t,n,s,l;return t=r,n=r,s=z_(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=EAt(),s!==e?(b=t,t=VJe(n,s)):(r=t,t=e)):(r=t,t=e),t}function NR(){var t,n,s,l;return t=r,n=r,s=Re(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=nr(),s!==e?(b=t,t=LJe(n,s)):(r=t,t=e)):(r=t,t=e),t}function sTt(){var t,n,s,l,c,h;return t=r,n=r,m++,s=ye(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=Ge(),s!==e?(l=r,c=I(),h=i_(),h!==e?(c=[c,h],l=c):(r=l,l=e),l===e&&(l=null),b=t,t=MJe(s,l)):(r=t,t=e)):(r=t,t=e),t}function nTt(){var t,n,s,l,c,h,T,_,x;if(t=r,n=r,m++,s=tt(),m--,s!==e?(r=n,n=void 0):n=e,n===e&&(n=r,m++,s=Be(),m--,s!==e?(r=n,n=void 0):n=e),n!==e)if(s=VR(),s!==e){for(l=[],c=r,h=I(),o.charCodeAt(r)===44?(T=A,r++):(T=e,m===0&&C(ge)),T!==e?(_=I(),x=VR(),x!==e?(h=[h,T,_,x],c=h):(r=c,c=e)):(r=c,c=e);c!==e;)l.push(c),c=r,h=I(),o.charCodeAt(r)===44?(T=A,r++):(T=e,m===0&&C(ge)),T!==e?(_=I(),x=VR(),x!==e?(h=[h,T,_,x],c=h):(r=c,c=e)):(r=c,c=e);b=t,t=BJe(s,l)}else r=t,t=e;else r=t,t=e;return t}function VR(){var t,n,s;return t=r,n=r,m++,s=tt(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=aTt(),s!==e?(b=t,t=UJe(s)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=r,m++,s=Be(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=oTt(),s!==e?(b=t,t=jJe(s)):(r=t,t=e)):(r=t,t=e)),t}function aTt(){var t,n,s,l,c;return t=r,n=sZ(),n===e&&(n=r,s=th(),s!==e?(l=I(),c=F1t(),c!==e?(s=[s,l,c],n=s):(r=n,n=e)):(r=n,n=e)),n!==e&&(b=t,n=xJe(n)),t=n,t}function oTt(){var t,n,s,l,c,h;return t=r,n=r,s=o9(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(o.charCodeAt(r)===61?(s=U,r++):(s=e,m===0&&C(os)),s!==e?(l=r,c=I(),h=l9(),h!==e?(c=[c,h],l=c):(r=l,l=e),l!==e?(b=t,t=FJe(n,l)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=r,s=o9(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=l9(),s!==e?(b=t,t=GJe(n,s)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=r,s=cg(),s!==e?(l=I(),c=zf(),c!==e?(s=[s,l,c],n=s):(r=n,n=e)):(r=n,n=e),n!==e&&(b=t,n=SJe(n)),t=n)),t}function o9(){var t,n,s,l,c,h,T;return t=gwt(),t===e&&(t=L8(),t===e&&(t=Owt(),t===e&&(t=r,n=r,s=ui(),s!==e?(l=I(),c=$u(),c!==e?(h=I(),T=tr(),T!==e?(s=[s,l,c,h,T],n=s):(r=n,n=e)):(r=n,n=e)):(r=n,n=e),n!==e&&(b=t,n=KJe(n)),t=n,t===e&&(t=r,n=r,s=$u(),s!==e?(l=I(),c=tr(),c!==e?(s=[s,l,c],n=s):(r=n,n=e)):(r=n,n=e),n!==e&&(b=t,n=kJe(n)),t=n,t===e&&(t=qwt(),t===e&&(t=r,n=r,s=ui(),s!==e?(l=I(),c=ya(),c!==e?(s=[s,l,c],n=s):(r=n,n=e)):(r=n,n=e),n!==e&&(b=t,n=qJe(n)),t=n,t===e&&(t=ya(),t===e&&(t=k8(),t===e&&(t=uv(),t===e&&(t=cv(),t===e&&(t=r,n=r,s=Mo(),s!==e?(l=I(),c=rq(),c!==e?(s=[s,l,c],n=s):(r=n,n=e)):(r=n,n=e),n!==e&&(b=t,n=ZJe(n)),t=n,t===e&&(t=r,n=r,s=Ds(),s!==e?(l=I(),c=rq(),c!==e?(s=[s,l,c],n=s):(r=n,n=e)):(r=n,n=e),n!==e&&(b=t,n=JJe(n)),t=n,t===e&&(t=ARt(),t===e&&(t=FRt(),t===e&&(t=GRt(),t===e&&(t=aq(),t===e&&(t=g_t(),t===e&&(t=U_t(),t===e&&(t=tgt(),t===e&&(t=hgt(),t===e&&(t=t1t(),t===e&&(t=jq(),t===e&&(t=j1t(),t===e&&(t=Wq(),t===e&&(t=fDt(),t===e&&(t=hDt(),t===e&&(t=yDt(),t===e&&(t=xo(),t===e&&(t=Ov(),t===e&&(t=hg())))))))))))))))))))))))))))))),t}function l9(){var t;return t=nr(),t===e&&(t=ds(),t===e&&(t=Re(),t===e&&(t=K9(),t===e&&(t=ui(),t===e&&(t=sq(),t===e&&(t=V_(),t===e&&(t=zwt(),t===e&&(t=w1t(),t===e&&(t=Ywt(),t===e&&(t=Ss(),t===e&&(t=vv(),t===e&&(t=gq(),t===e&&(t=iq(),t===e&&(t=Vq())))))))))))))),t}function B0(){var t,n,s,l,c,h,T;if(t=r,n=r,s=d9(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n===e&&(n=null),s=Df(),s!==e){for(l=[],c=r,h=I(),T=No(),T!==e?(h=[h,T],c=h):(r=c,c=e);c!==e;)l.push(c),c=r,h=I(),T=No(),T!==e?(h=[h,T],c=h):(r=c,c=e);b=t,t=HJe(n,s,l)}else r=t,t=e;return t}function lTt(){var t,n,s,l,c,h,T;if(t=r,n=r,s=d9(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n===e&&(n=null),s=p9(),s===e&&(s=r,l=LR(),l!==e?(c=r,m++,h=ye(),m--,h!==e?(r=c,c=void 0):c=e,c!==e?(b=s,s=WJe(n,l)):(r=s,s=e)):(r=s,s=e)),s!==e){for(l=[],c=r,h=I(),T=No(),T!==e?(h=[h,T],c=h):(r=c,c=e);c!==e;)l.push(c),c=r,h=I(),T=No(),T!==e?(h=[h,T],c=h):(r=c,c=e);b=t,t=YJe(n,s,l)}else r=t,t=e;return t}function d9(){var t,n,s,l,c;return t=r,n=Lo(),n!==e?(s=r,l=I(),c=Re(),c!==e?(l=[l,c],s=l):(r=s,s=e),s===e&&(s=null),b=t,t=zJe(n,s)):(r=t,t=e),t}function No(){var t,n,s,l,c,h;return t=r,n=r,m++,s=ye(),m--,s!==e?(r=n,n=void 0):n=e,n===e&&(n=r,m++,s=tt(),m--,s!==e?(r=n,n=void 0):n=e),n!==e?(s=Bo(),s===e&&(s=r,l=cr(),l!==e?(c=I(),h=Bo(),h!==e?(l=[l,c,h],s=l):(r=s,s=e)):(r=s,s=e),s===e&&(s=r,l=kf(),l!==e?(c=I(),h=Kf(),h===e&&(h=fv()),h!==e?(l=[l,c,h],s=l):(r=s,s=e)):(r=s,s=e))),s!==e?(b=t,t=XJe(s)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=r,m++,s=ye(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=r,l=Ss(),l!==e?(c=I(),h=xu(),h!==e?(l=[l,c,h],s=l):(r=s,s=e)):(r=s,s=e),s===e&&(s=r,l=cr(),l!==e?(c=I(),h=fZ(),h!==e?(l=[l,c,h],s=l):(r=s,s=e)):(r=s,s=e)),s!==e?(b=t,t=QJe(s)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=r,m++,s=Vo(),m--,s!==e?(r=n,n=void 0):n=e,n===e&&(n=r,m++,s=Oe(),m--,s!==e?(r=n,n=void 0):n=e),n!==e?(s=r,l=cr(),l!==e?(c=I(),h=nq(),h!==e?(l=[l,c,h],s=l):(r=s,s=e)):(r=s,s=e),s!==e?(b=t,t=eHe(s)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=r,m++,s=Vo(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=nq(),s!==e?(b=t,t=tHe(s)):(r=t,t=e)):(r=t,t=e)))),t}function Df(){var t,n,s;return t=LR(),t===e&&(t=r,n=r,m++,s=Oe(),m--,s===e?n=void 0:(r=n,n=e),n!==e?(s=pTt(),s!==e?(b=t,t=rHe(s)):(r=t,t=e)):(r=t,t=e),t===e&&(t=fTt(),t===e&&(t=U0(),t===e&&(t=gTt(),t===e&&(t=v9(),t===e&&(t=r,n=r,m++,s=Oe(),m--,s===e?n=void 0:(r=n,n=e),n!==e?(s=dTt(),s!==e?(b=t,t=iHe(s)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=r,m++,s=Be(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=uTt(),s!==e?(b=t,t=sHe(s)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=r,m++,s=Oe(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=js(),s!==e?(b=t,t=nHe(s)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=r,m++,s=ye(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=cTt(),s!==e?(b=t,t=aHe(s)):(r=t,t=e)):(r=t,t=e)))))))))),t}function dTt(){var t;return t=$Tt(),t===e&&(t=m9(),t===e&&(t=bTt(),t===e&&(t=hTt()))),t}function uTt(){var t;return t=mTt(),t===e&&(t=vTt(),t===e&&(t=ETt(),t===e&&(t=u9(),t===e&&(t=ITt())))),t}function cTt(){var t;return t=u9(),t===e&&(t=ATt(),t===e&&(t=wTt(),t===e&&(t=a9()))),t}function LR(){var t,n,s,l,c,h;if(t=r,n=r,s=cr(),s!==e?(l=I(),c=Ea(),c!==e?(s=[s,l,c],n=s):(r=n,n=e)):(r=n,n=e),n!==e){for(s=[],l=r,c=I(),h=an(),h!==e?(c=[c,h],l=c):(r=l,l=e);l!==e;)s.push(l),s.length>=1?l=e:(l=r,c=I(),h=an(),h!==e?(c=[c,h],l=c):(r=l,l=e));b=t,t=oHe(n,s)}else r=t,t=e;return t}function pTt(){var t,n;return t=r,n=Ea(),n!==e&&(b=t,n=lHe(n)),t=n,t}function fTt(){var t,n,s,l,c;return t=r,n=ui(),n!==e?(s=r,l=I(),c=et(),c!==e?(l=[l,c],s=l):(r=s,s=e),s!==e?(b=t,t=dHe(n,s)):(r=t,t=e)):(r=t,t=e),t}function hTt(){var t,n;return t=r,n=yTt(),n!==e&&(b=t,n=uHe(n)),t=n,t}function yTt(){var t,n,s,l;return t=r,n=Dwt(),n!==e?(s=r,m++,l=tt(),m--,l!==e?(r=s,s=void 0):s=e,s!==e?(b=t,t=cHe(n)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=L8(),n!==e?(s=r,m++,l=Be(),m--,l!==e?(r=s,s=void 0):s=e,s!==e?(b=t,t=pHe(n)):(r=t,t=e)):(r=t,t=e)),t}function mTt(){var t,n,s,l,c;return t=r,n=k8(),n!==e?(s=r,l=I(),c=nr(),c!==e?(l=[l,c],s=l):(r=s,s=e),s!==e?(b=t,t=fHe(n,s)):(r=t,t=e)):(r=t,t=e),t}function U0(){var t,n,s,l,c;return t=r,n=ya(),n!==e?(s=r,l=I(),c=Re(),c===e&&(c=nr()),c!==e?(l=[l,c],s=l):(r=s,s=e),s!==e?(b=t,t=hHe(n,s)):(r=t,t=e)):(r=t,t=e),t}function vTt(){var t,n;return t=r,n=mZ(),n===e&&(n=Rq()),n!==e&&(b=t,n=yHe(n)),t=n,t}function ETt(){var t,n,s,l;return t=r,n=r,s=Jwt(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=V_(),s===e&&(s=sq(),s===e&&(s=ui())),s!==e?(b=t,t=mHe(n,s)):(r=t,t=e)):(r=t,t=e),t}function u9(){var t,n,s,l;return t=r,n=r,s=Ov(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=TTt(),s===e&&(s=c9()),s!==e?(b=t,t=vHe(n,s)):(r=t,t=e)):(r=t,t=e),t}function TTt(){var t,n,s,l;return t=r,n=iq(),n===e&&(n=Vq()),n!==e?(s=r,m++,l=Be(),m--,l!==e?(r=s,s=void 0):s=e,s!==e?(b=t,t=EHe(n)):(r=t,t=e)):(r=t,t=e),t}function c9(){var t,n,s,l;return t=r,n=d1t(),n===e&&(n=mv(),n===e&&(n=QRt(),n===e&&(n=X_t(),n===e&&(n=ui())))),n!==e?(s=r,m++,l=ye(),m--,l!==e?(r=s,s=void 0):s=e,s!==e?(b=t,t=THe(n)):(r=t,t=e)):(r=t,t=e),t}function ITt(){var t,n,s,l,c,h;return t=r,n=aq(),n===e&&(n=Wq()),n!==e?(s=r,l=I(),o.charCodeAt(r)===61?(c=U,r++):(c=e,m===0&&C(os)),c!==e?(l=[l,c],s=l):(r=s,s=e),s===e&&(s=null),l=r,c=I(),h=nr(),h!==e?(c=[c,h],l=c):(r=l,l=e),l!==e?(b=t,t=IHe(n,s,l)):(r=t,t=e)):(r=t,t=e),t}function ATt(){var t,n,s,l;return t=r,n=r,s=uv(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=Re(),s===e&&(s=Af()),s!==e?(b=t,t=AHe(n,s)):(r=t,t=e)):(r=t,t=e),t}function bTt(){var t,n,s,l,c,h,T;return t=r,n=r,s=Vu(),s!==e?(l=I(),c=jf(),c!==e?(h=I(),s=[s,l,c,h],n=s):(r=n,n=e)):(r=n,n=e),n===e&&(n=null),s=Lr(),s!==e?(l=r,c=I(),h=Sa(),h!==e?(c=[c,h],l=c):(r=l,l=e),l!==e?(c=r,h=I(),T=mDt(),T===e&&(T=yZ()),T!==e?(h=[h,T],c=h):(r=c,c=e),c===e&&(c=null),b=t,t=bHe(n,s,l,c)):(r=t,t=e)):(r=t,t=e),t}function wTt(){var t,n,s,l,c,h,T;return t=r,n=r,s=Vu(),s!==e?(l=I(),c=jf(),c!==e?(s=[s,l,c],n=s):(r=n,n=e)):(r=n,n=e),n===e&&(n=r,s=Vu(),s!==e?(l=I(),c=wi(),c!==e?(h=I(),T=ui(),T!==e?(s=[s,l,c,h,T],n=s):(r=n,n=e)):(r=n,n=e)):(r=n,n=e)),n!==e?(s=r,l=I(),c=Lr(),c!==e?(l=[l,c],s=l):(r=s,s=e),s!==e?(l=r,c=I(),h=RTt(),h!==e?(c=[c,h],l=c):(r=l,l=e),l!==e?(c=r,h=I(),T=H9(),T!==e?(h=[h,T],c=h):(r=c,c=e),c===e&&(c=null),b=t,t=wHe(n,s,l,c)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function RTt(){var t,n;return t=r,n=Bu(),n!==e&&(b=t,n=RHe(n)),t=n,t}function p9(){var t,n,s;return t=_Tt(),t===e&&(t=PTt(),t===e&&(t=r,n=r,m++,s=Oe(),m--,s===e?n=void 0:(r=n,n=e),n!==e?(s=CTt(),s!==e?(b=t,t=_He(s)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=r,m++,s=Oe(),m--,s===e?n=void 0:(r=n,n=e),n!==e?(s=m9(),s!==e?(b=t,t=gHe(s)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=r,m++,s=Be(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=VTt(),s!==e?(b=t,t=DHe(s)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=r,m++,s=ye(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=LTt(),s!==e?(b=t,t=OHe(s)):(r=t,t=e)):(r=t,t=e)))))),t}function _Tt(){var t,n,s,l,c,h,T;if(t=r,n=r,s=Q_(),s!==e?(l=I(),c=Nn(),c!==e?(h=I(),s=[s,l,c,h],n=s):(r=n,n=e)):(r=n,n=e),n!==e)if(s=Pf(),s===e&&(s=f9()),s!==e){for(l=[],c=r,h=I(),T=an(),T===e&&(T=pa()),T!==e?(h=[h,T],c=h):(r=c,c=e);c!==e;)l.push(c),c=r,h=I(),T=an(),T===e&&(T=pa()),T!==e?(h=[h,T],c=h):(r=c,c=e);b=t,t=CHe(n,s,l)}else r=t,t=e;else r=t,t=e;return t}function gTt(){var t,n,s,l,c,h,T;if(t=r,n=DTt(),n!==e){for(s=r,l=I(),c=OTt(),c!==e?(l=[l,c],s=l):(r=s,s=e),s===e&&(s=null),l=[],c=r,h=I(),T=an(),T===e&&(T=pa()),T!==e?(h=[h,T],c=h):(r=c,c=e);c!==e;)l.push(c),c=r,h=I(),T=an(),T===e&&(T=pa()),T!==e?(h=[h,T],c=h):(r=c,c=e);b=t,t=$He(n,s,l)}else r=t,t=e;return t}function DTt(){var t,n,s,l;return t=r,n=Q_(),n!==e?(s=I(),l=Nn(),l!==e?(n=[n,s,l],t=n):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=Nn(),n!==e?(s=r,m++,l=Be(),m--,l!==e?(r=s,s=void 0):s=e,s!==e?(b=t,t=PHe(n)):(r=t,t=e)):(r=t,t=e)),t}function OTt(){var t,n,s,l;return t=r,n=Gw(),n!==e?(s=r,m++,l=tt(),m--,l!==e?(r=s,s=void 0):s=e,s!==e?(b=t,t=NHe(n)):(r=t,t=e)):(r=t,t=e),t}function f9(){var t,n,s,l,c,h;return t=r,n=r,s=cs(),s!==e?(l=I(),c=Ds(),c!==e?(h=I(),s=[s,l,c,h],n=s):(r=n,n=e)):(r=n,n=e),n!==e?(s=Re(),s!==e?(b=t,t=VHe(n,s)):(r=t,t=e)):(r=t,t=e),t}function CTt(){var t,n,s,l,c,h,T,_;if(t=r,n=r,s=y9(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e)if(s=r,l=h9(),l!==e?(c=I(),l=[l,c],s=l):(r=s,s=e),s===e&&(s=null),l=ji(),l===e&&(l=f9()),l!==e){for(c=[],h=r,T=I(),_=an(),_===e&&(_=pa()),_!==e?(T=[T,_],h=T):(r=h,h=e);h!==e;)c.push(h),h=r,T=I(),_=an(),_===e&&(_=pa()),_!==e?(T=[T,_],h=T):(r=h,h=e);b=t,t=LHe(n,s,l,c)}else r=t,t=e;else r=t,t=e;return t}function $Tt(){var t,n,s,l,c,h,T;if(t=r,n=y9(),n!==e){for(s=r,l=I(),c=h9(),c!==e?(l=[l,c],s=l):(r=s,s=e),s===e&&(s=null),l=[],c=r,h=I(),T=an(),T===e&&(T=pa()),T!==e?(h=[h,T],c=h):(r=c,c=e);c!==e;)l.push(c),c=r,h=I(),T=an(),T===e&&(T=pa()),T!==e?(h=[h,T],c=h):(r=c,c=e);b=t,t=MHe(n,s,l)}else r=t,t=e;return t}function h9(){var t,n,s,l,c,h,T;return t=r,n=r,s=Hl(),s!==e?(l=I(),c=ln(),c!==e?(s=[s,l,c],n=s):(r=n,n=e)):(r=n,n=e),n===e&&(n=r,s=Hl(),s!==e?(l=I(),c=cr(),c!==e?(h=I(),T=ln(),T!==e?(s=[s,l,c,h,T],n=s):(r=n,n=e)):(r=n,n=e)):(r=n,n=e)),n!==e&&(b=t,n=BHe(n)),t=n,t}function y9(){var t,n,s,l,c;return t=r,n=r,s=yg(),s!==e?(l=I(),c=Ds(),c===e&&(c=Nn()),c!==e?(s=[s,l,c],n=s):(r=n,n=e)):(r=n,n=e),n===e&&(n=yg()),n!==e&&(b=t,n=UHe(n)),t=n,t}function m9(){var t,n,s,l,c,h,T;if(t=r,n=Ff(),n!==e)if(s=r,l=I(),c=Sa(),c!==e?(l=[l,c],s=l):(r=s,s=e),s!==e){for(l=[],c=r,h=I(),T=an(),T!==e?(h=[h,T],c=h):(r=c,c=e);c!==e;)l.push(c),l.length>=1?c=e:(c=r,h=I(),T=an(),T!==e?(h=[h,T],c=h):(r=c,c=e));b=t,t=jHe(n,s,l)}else r=t,t=e;else r=t,t=e;return t}function PTt(){var t,n,s,l,c,h,T;return t=r,n=r,s=Ev(),s!==e?(l=I(),c=Nn(),c!==e?(h=I(),s=[s,l,c,h],n=s):(r=n,n=e)):(r=n,n=e),n!==e?(s=r,l=Re(),l!==e?(c=I(),l=[l,c],s=l):(r=s,s=e),s===e&&(s=null),l=ji(),l!==e?(c=r,h=I(),T=v9(),T!==e?(h=[h,T],c=h):(r=c,c=e),c!==e?(b=t,t=xHe(n,s,l,c)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function v9(){var t,n,s,l,c,h,T,_;if(t=r,n=r,s=Kq(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e)if(s=Ge(),s!==e){for(l=r,c=I(),h=ji(),h!==e?(c=[c,h],l=c):(r=l,l=e),l===e&&(l=null),c=[],h=r,T=I(),_=E9(),_===e&&(_=T9()),_!==e?(T=[T,_],h=T):(r=h,h=e);h!==e;)c.push(h),h=r,T=I(),_=E9(),_===e&&(_=T9()),_!==e?(T=[T,_],h=T):(r=h,h=e);b=t,t=FHe(n,s,l,c)}else r=t,t=e;else r=t,t=e;return t}function E9(){var t,n,s,l,c,h,T;return t=r,n=r,s=$r(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=r,l=Vn(),l===e&&(l=Zl()),l!==e?(c=I(),l=[l,c],s=l):(r=s,s=e),s!==e?(l=NTt(),l!==e?(c=r,h=I(),T=ji(),T!==e?(h=[h,T],c=h):(r=c,c=e),c===e&&(c=null),b=t,t=GHe(n,s,l,c)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function T9(){var t,n,s,l;return t=r,n=r,s=G_(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=L_(),s===e&&(s=s1t(),s===e&&(s=X1t())),s!==e?(b=t,t=SHe(n,s)):(r=t,t=e)):(r=t,t=e),t}function NTt(){var t,n,s,l,c;return t=r,n=Yr(),n===e&&(n=di(),n===e&&(n=r,s=tr(),s!==e?(l=I(),c=Ea(),c!==e?(s=[s,l,c],n=s):(r=n,n=e)):(r=n,n=e),n===e&&(n=r,s=Ss(),s!==e?(l=I(),c=Twt(),c!==e?(s=[s,l,c],n=s):(r=n,n=e)):(r=n,n=e),n===e&&(n=r,s=tr(),s!==e?(l=I(),c=ui(),c!==e?(s=[s,l,c],n=s):(r=n,n=e)):(r=n,n=e))))),n!==e&&(b=t,n=KHe(n)),t=n,t}function VTt(){var t,n,s,l,c;return t=r,n=r,s=Ds(),s===e&&(s=Nn()),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=ji(),s!==e?(b=t,t=kHe(n,s)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=r,s=pq(),s===e&&(s=tZ()),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=r,l=Ds(),l===e&&(l=Nn()),l!==e?(c=I(),l=[l,c],s=l):(r=s,s=e),s===e&&(s=null),l=ji(),l!==e?(b=t,t=qHe(n,s,l)):(r=t,t=e)):(r=t,t=e)),t}function LTt(){var t,n,s,l,c,h,T,_;if(t=r,n=r,s=C_(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e)if(s=r,l=I0(),l!==e?(c=I(),l=[l,c],s=l):(r=s,s=e),s===e&&(s=null),l=fAt(),l!==e){for(c=[],h=r,T=I(),_=pa(),_===e&&(_=xa()),_!==e?(T=[T,_],h=T):(r=h,h=e);h!==e;)c.push(h),h=r,T=I(),_=pa(),_===e&&(_=xa()),_!==e?(T=[T,_],h=T):(r=h,h=e);b=t,t=ZHe(n,s,l,c)}else r=t,t=e;else r=t,t=e;return t}function MR(){var t,n,s,l,c,h;return t=r,n=f0(),n!==e?(s=r,l=I(),c=Sr(),c!==e?(h=I(),l=[l,c,h],s=l):(r=s,s=e),s!==e?(l=j0(),l===e&&(l=Cf()),l!==e?(b=t,t=JHe(n,s,l)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function an(){var t,n,s,l,c,h;return t=r,n=r,s=$r(),s!==e?(l=I(),c=Z8(),c!==e?(h=I(),s=[s,l,c,h],n=s):(r=n,n=e)):(r=n,n=e),n!==e?(s=gv(),s===e&&(s=av(),s===e&&(s=N_(),s===e&&(s=ju(),s===e&&(s=Ks())))),s!==e?(b=t,t=HHe(n,s)):(r=t,t=e)):(r=t,t=e),t}function pa(){var t;return t=Sk(),t===e&&(t=M0(),t===e&&(t=MTt())),t}function MTt(){var t,n,s,l,c,h,T,_;return t=r,n=r,s=cs(),s!==e?(l=I(),c=Ds(),c!==e?(h=I(),T=xo(),T!==e?(_=I(),s=[s,l,c,h,T,_],n=s):(r=n,n=e)):(r=n,n=e)):(r=n,n=e),n!==e?(s=Re(),s!==e?(b=t,t=WHe(n,s)):(r=t,t=e)):(r=t,t=e),t}function Ci(){var t,n,s,l,c,h,T,_,x,W;if(t=r,n=r,m++,s=ye(),m--,s!==e?(r=n,n=void 0):n=e,n!==e)if(s=BR(),s!==e){if(l=[],c=r,h=I(),T=I9(),T!==e?(h=[h,T],c=h):(r=c,c=e),c!==e)for(;c!==e;)l.push(c),c=r,h=I(),T=I9(),T!==e?(h=[h,T],c=h):(r=c,c=e);else l=e;l!==e?(b=t,t=YHe(s,l)):(r=t,t=e)}else r=t,t=e;else r=t,t=e;return t===e&&(t=r,n=r,m++,s=ye(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=BR(),s!==e?(l=r,c=I(),h=th(),h===e&&(h=Sr()),h!==e?(T=I(),_=Xl(),_!==e?(x=I(),W=Tg(),W!==e?(c=[c,h,T,_,x,W],l=c):(r=l,l=e)):(r=l,l=e)):(r=l,l=e),l!==e?(b=t,t=zHe(s,l)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t===e&&(t=BR())),t}function I9(){var t,n,s,l,c,h;return t=r,o.charCodeAt(r)===91?(n=K,r++):(n=e,m===0&&C(hf)),n!==e?(s=r,l=I(),c=sn(),c!==e?(h=I(),l=[l,c,h],s=l):(r=s,s=e),s!==e?(o.charCodeAt(r)===93?(l=Z,r++):(l=e,m===0&&C(yf)),l!==e?(b=t,t=XHe(s)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,o.charCodeAt(r)===91?(n=K,r++):(n=e,m===0&&C(hf)),n!==e?(s=r,l=I(),c=ds(),c!==e?(h=I(),l=[l,c,h],s=l):(r=s,s=e),s!==e?(o.charCodeAt(r)===93?(l=Z,r++):(l=e,m===0&&C(yf)),l!==e?(b=t,t=QHe(s)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)),t}function BR(){var t,n,s,l;return t=r,n=r,s=w9(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=yAt(),s!==e?(b=t,t=eWe(n,s)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=r,m++,s=Oe(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=A9(),s===e&&(s=b9(),s===e&&(s=BTt())),s!==e?(b=t,t=tWe(s)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=w9(),n!==e&&(b=t,n=rWe(n)),t=n)),t}function A9(){var t,n,s,l,c;return t=r,n=E_(),n!==e?(s=r,l=I(),c=UR(),c!==e?(l=[l,c],s=l):(r=s,s=e),s===e&&(s=null),b=t,t=iWe(n,s)):(r=t,t=e),t}function b9(){var t,n,s,l,c;return t=r,n=nZ(),n!==e?(s=r,l=I(),c=UR(),c!==e?(l=[l,c],s=l):(r=s,s=e),s===e&&(s=null),b=t,t=sWe(n,s)):(r=t,t=e),t}function BTt(){var t,n,s,l,c;return t=r,n=$i(),n!==e?(s=r,l=I(),c=UR(),c!==e?(l=[l,c],s=l):(r=s,s=e),s!==e?(b=t,t=nWe(n,s)):(r=t,t=e)):(r=t,t=e),t}function UR(){var t,n,s,l,c,h;return t=r,o.charCodeAt(r)===60?(n=ie,r++):(n=e,m===0&&C(t0)),n!==e?(s=r,l=I(),c=ybt(),c!==e?(h=I(),l=[l,c,h],s=l):(r=s,s=e),s!==e?(o.charCodeAt(r)===62?(l=X,r++):(l=e,m===0&&C(r0)),l!==e?(b=t,t=aWe(s)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function jR(){var t;return t=UTt(),t===e&&(t=jTt()),t}function UTt(){var t,n,s,l,c,h,T;if(t=r,n=r,s=Re(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e)if(s=Ci(),s!==e){for(l=[],c=r,h=I(),T=Df(),T!==e?(h=[h,T],c=h):(r=c,c=e);c!==e;)l.push(c),c=r,h=I(),T=Df(),T!==e?(h=[h,T],c=h):(r=c,c=e);b=t,t=oWe(n,s,l)}else r=t,t=e;else r=t,t=e;return t}function jTt(){var t,n,s,l,c,h;if(t=r,n=Ci(),n!==e){for(s=[],l=r,c=I(),h=Df(),h!==e?(c=[c,h],l=c):(r=l,l=e);l!==e;)s.push(l),l=r,c=I(),h=Df(),h!==e?(c=[c,h],l=c):(r=l,l=e);b=t,t=lWe(n,s)}else r=t,t=e;return t}function xTt(){var t,n,s,l,c;return t=r,n=r,m++,s=ye(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=r,l=$i(),l!==e?(c=I(),l=[l,c],s=l):(r=s,s=e),s!==e?(l=wu(),l!==e?(b=t,t=dWe(s,l)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function w9(){var t,n,s;return t=r,n=r,m++,s=Oe(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=FTt(),s!==e?(b=t,t=uWe(s)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=r,m++,s=Be(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=GTt(),s!==e?(b=t,t=cWe(s)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=r,m++,s=ye(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=STt(),s!==e?(b=t,t=pWe(s)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=r,m++,s=tt(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=kTt(),s!==e?(b=t,t=fWe(s)):(r=t,t=e)):(r=t,t=e)))),t}function FTt(){var t,n,s,l,c;return t=F8(),t===e&&(t=Uwt(),t===e&&(t=p_t(),t===e&&(t=Fu(),t===e&&(t=U_(),t===e&&(t=vDt(),t===e&&(t=pv(),t===e&&(t=R_(),t===e&&(t=Xl(),t===e&&(t=pg(),t===e&&(t=Aq(),t===e&&(t=O_t(),t===e&&(t=eZ(),t===e&&(t=bq(),t===e&&(t=B8(),t===e&&(t=dZ(),t===e&&(t=Bwt(),t===e&&(t=H_(),t===e&&(t=X8(),t===e&&(t=U8(),t===e&&(t=Pwt(),t===e&&(t=o_t(),t===e&&(t=r,n=r,s=P8(),s!==e?(l=I(),c=Ta(),c!==e?(s=[s,l,c],n=s):(r=n,n=e)):(r=n,n=e),n!==e&&(b=t,n=hWe(n)),t=n)))))))))))))))))))))),t}function GTt(){var t,n,s,l,c;return t=G8(),t===e&&(t=F8(),t===e&&(t=Nwt(),t===e&&(t=NDt(),t===e&&(t=rgt(),t===e&&(t=Y_t(),t===e&&(t=j8(),t===e&&(t=kDt(),t===e&&(t=pv(),t===e&&(t=R_(),t===e&&(t=Xl(),t===e&&(t=pg(),t===e&&(t=Vv(),t===e&&(t=kwt(),t===e&&(t=Agt(),t===e&&(t=qDt(),t===e&&(t=xgt(),t===e&&(t=VDt(),t===e&&(t=DDt(),t===e&&(t=sgt(),t===e&&(t=z_t(),t===e&&(t=H_(),t===e&&(t=V_(),t===e&&(t=X8(),t===e&&(t=mRt(),t===e&&(t=Aq(),t===e&&(t=bq(),t===e&&(t=eZ(),t===e&&(t=dZ(),t===e&&(t=igt(),t===e&&(t=B8(),t===e&&(t=a_t(),t===e&&(t=r,n=r,s=g_(),s!==e?(l=I(),c=xq(),c!==e?(s=[s,l,c],n=s):(r=n,n=e)):(r=n,n=e),n!==e&&(b=t,n=yWe(n)),t=n,t===e&&(t=r,n=r,s=vg(),s!==e?(l=I(),c=$u(),c!==e?(s=[s,l,c],n=s):(r=n,n=e)):(r=n,n=e),n!==e&&(b=t,n=mWe(n)),t=n,t===e&&(t=r,n=r,s=Igt(),s!==e?(l=I(),c=$u(),c!==e?(s=[s,l,c],n=s):(r=n,n=e)):(r=n,n=e),n!==e&&(b=t,n=vWe(n)),t=n,t===e&&(t=g_(),t===e&&(t=b1t(),t===e&&(t=x8(),t===e&&(t=U_(),t===e&&(t=oq(),t===e&&(t=tr())))))))))))))))))))))))))))))))))))))))),t}function STt(){var t,n,s,l,c;return t=r,n=r,s=x8(),s!==e?(l=I(),c=vg(),c!==e?(s=[s,l,c],n=s):(r=n,n=e)):(r=n,n=e),n!==e&&(b=t,n=EWe(n)),t=n,t===e&&(t=r,n=r,s=$u(),s!==e?(l=I(),c=vg(),c!==e?(s=[s,l,c],n=s):(r=n,n=e)):(r=n,n=e),n!==e&&(b=t,n=TWe(n)),t=n,t===e&&(t=r,n=r,s=g_(),s!==e?(l=I(),c=xq(),c!==e?(s=[s,l,c],n=s):(r=n,n=e)):(r=n,n=e),n!==e&&(b=t,n=IWe(n)),t=n,t===e&&(t=KTt(),t===e&&(t=nv(),t===e&&(t=c_()))))),t}function KTt(){var t,n,s,l,c,h,T,_,x;return t=r,n=r,s=Fu(),s!==e?(l=I(),c=Z0(),c!==e?(h=I(),T=ci(),T!==e?(_=I(),x=Z0(),x!==e?(s=[s,l,c,h,T,_,x],n=s):(r=n,n=e)):(r=n,n=e)):(r=n,n=e)):(r=n,n=e),n!==e&&(b=t,n=AWe(n)),t=n,t===e&&(t=r,n=r,s=Fu(),s!==e?(l=I(),c=Z0(),c!==e?(s=[s,l,c],n=s):(r=n,n=e)):(r=n,n=e),n!==e&&(b=t,n=bWe(n)),t=n,t===e&&(t=Fu())),t}function kTt(){var t,n,s,l,c,h;if(t=r,n=nv(),n!==e){for(s=[],l=r,c=I(),h=nv(),h!==e?(c=[c,h],l=c):(r=l,l=e);l!==e;)s.push(l),l=r,c=I(),h=nv(),h!==e?(c=[c,h],l=c):(r=l,l=e);b=t,t=wWe(n,s)}else r=t,t=e;return t}function et(){var t,n,s;return t=r,n=r,m++,s=Be(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=R9(),s!==e?(b=t,t=RWe(s)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=r,m++,s=Be(),m--,s===e?n=void 0:(r=n,n=e),n!==e?(s=JTt(),s!==e?(b=t,t=_We(s)):(r=t,t=e)):(r=t,t=e)),t}function R9(){var t,n,s;return t=r,n=ZTt(),n!==e?(s=qTt(),s===e&&(s=null),b=t,t=gWe(n,s)):(r=t,t=e),t}function qTt(){var t,n,s,l,c;return t=r,n=I(),o.substr(r,2)===ue?(s=ue,r+=2):(s=e,m===0&&C($K)),s!==e?(l=I(),c=R9(),c!==e?(b=t,t=DWe(n,s,l,c)):(r=t,t=e)):(r=t,t=e),t}function ZTt(){var t,n,s,l,c,h,T,_;if(t=r,n=xR(),n!==e){for(s=[],l=r,c=I(),h=us(),h===e&&(o.substr(r,2)===re?(h=re,r+=2):(h=e,m===0&&C(mf))),h!==e?(T=I(),_=xR(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);l!==e;)s.push(l),l=r,c=I(),h=us(),h===e&&(o.substr(r,2)===re?(h=re,r+=2):(h=e,m===0&&C(mf))),h!==e?(T=I(),_=xR(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);b=t,t=OWe(n,s)}else r=t,t=e;return t}function xR(){var t,n,s,l,c,h,T,_;if(t=r,n=FR(),n!==e){for(s=[],l=r,c=I(),h=IZ(),h!==e?(T=I(),_=FR(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);l!==e;)s.push(l),l=r,c=I(),h=IZ(),h!==e?(T=I(),_=FR(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);b=t,t=CWe(n,s)}else r=t,t=e;return t}function FR(){var t,n,s,l,c,h,T,_;if(t=r,n=Fl(),n!==e){for(s=[],l=r,c=I(),h=ha(),h===e&&(o.substr(r,2)===fe?(h=fe,r+=2):(h=e,m===0&&C(PK))),h!==e?(T=I(),_=Fl(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);l!==e;)s.push(l),l=r,c=I(),h=ha(),h===e&&(o.substr(r,2)===fe?(h=fe,r+=2):(h=e,m===0&&C(PK))),h!==e?(T=I(),_=Fl(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);b=t,t=$We(n,s)}else r=t,t=e;return t}function JTt(){var t,n,s,l,c,h,T,_;if(t=r,n=GR(),n!==e){for(s=[],l=r,c=I(),h=us(),h!==e?(T=I(),_=GR(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);l!==e;)s.push(l),l=r,c=I(),h=us(),h!==e?(T=I(),_=GR(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);b=t,t=PWe(n,s)}else r=t,t=e;return t}function GR(){var t,n,s,l,c,h,T,_;if(t=r,n=Fl(),n!==e){for(s=[],l=r,c=I(),h=ha(),h!==e?(T=I(),_=Fl(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);l!==e;)s.push(l),l=r,c=I(),h=ha(),h!==e?(T=I(),_=Fl(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);b=t,t=NWe(n,s)}else r=t,t=e;return t}function Fl(){var t,n,s,l,c;return t=r,n=cr(),n!==e?(s=r,l=I(),c=Fl(),c!==e?(l=[l,c],s=l):(r=s,s=e),s!==e?(b=t,t=VWe(n,s)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=r,m++,s=ye(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=HTt(),s!==e?(b=t,t=LWe(s)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=r,m++,s=ye(),m--,s===e?n=void 0:(r=n,n=e),n!==e?(s=QTt(),s!==e?(b=t,t=MWe(s)):(r=t,t=e)):(r=t,t=e))),t}function HTt(){var t,n,s;return t=r,n=SR(),n!==e?(s=WTt(),s===e&&(s=null),b=t,t=BWe(n,s)):(r=t,t=e),t}function WTt(){var t,n,s,l,c,h,T;if(t=r,n=r,s=I(),l=_9(),l!==e?(s=[s,l],n=s):(r=n,n=e),n!==e&&(b=t,n=UWe(n)),t=n,t===e){if(t=r,n=[],s=r,l=I(),c=kR(),c!==e?(h=I(),T=SR(),T!==e?(l=[l,c,h,T],s=l):(r=s,s=e)):(r=s,s=e),s!==e)for(;s!==e;)n.push(s),s=r,l=I(),c=kR(),c!==e?(h=I(),T=SR(),T!==e?(l=[l,c,h,T],s=l):(r=s,s=e)):(r=s,s=e);else n=e;n!==e&&(b=t,n=jWe(n)),t=n}return t}function SR(){var t,n,s,l,c,h,T,_;if(t=r,n=KR(),n!==e){for(s=[],l=r,c=I(),o.substr(r,2)===Y?(h=Y,r+=2):(h=e,m===0&&C(dw)),h===e&&(o.charCodeAt(r)===62?(h=X,r++):(h=e,m===0&&C(r0)),h===e&&(o.substr(r,2)===H?(h=H,r+=2):(h=e,m===0&&C(uw)),h===e&&(o.substr(r,2)===ce?(h=ce,r+=2):(h=e,m===0&&C(cw)),h===e&&(o.charCodeAt(r)===60?(h=ie,r++):(h=e,m===0&&C(t0)),h===e&&(o.charCodeAt(r)===61?(h=U,r++):(h=e,m===0&&C(os)),h===e&&(o.substr(r,2)===z?(h=z,r+=2):(h=e,m===0&&C(pw)))))))),h!==e?(T=I(),_=Of(),_===e&&(_=KR()),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);l!==e;)s.push(l),l=r,c=I(),o.substr(r,2)===Y?(h=Y,r+=2):(h=e,m===0&&C(dw)),h===e&&(o.charCodeAt(r)===62?(h=X,r++):(h=e,m===0&&C(r0)),h===e&&(o.substr(r,2)===H?(h=H,r+=2):(h=e,m===0&&C(uw)),h===e&&(o.substr(r,2)===ce?(h=ce,r+=2):(h=e,m===0&&C(cw)),h===e&&(o.charCodeAt(r)===60?(h=ie,r++):(h=e,m===0&&C(t0)),h===e&&(o.charCodeAt(r)===61?(h=U,r++):(h=e,m===0&&C(os)),h===e&&(o.substr(r,2)===z?(h=z,r+=2):(h=e,m===0&&C(pw)))))))),h!==e?(T=I(),_=Of(),_===e&&(_=KR()),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);b=t,t=xWe(n,s)}else r=t,t=e;return t}function KR(){var t,n,s;return t=r,n=Rs(),n!==e?(s=YTt(),s===e&&(s=null),b=t,t=FWe(n,s)):(r=t,t=e),t}function YTt(){var t,n,s,l,c,h,T;return t=r,n=I(),s=r,l=cr(),l!==e?(c=I(),h=ii(),h!==e?(l=[l,c,h],s=l):(r=s,s=e)):(r=s,s=e),s===e&&(s=ii()),s!==e?(l=I(),c=fa(),c===e&&(c=Rs()),c!==e?(b=t,t=GWe(n,s,l,c)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=I(),s=zTt(),s!==e?(l=I(),c=C9(),c!==e?(b=t,t=SWe(n,s,l,c)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=r,s=I(),l=XTt(),l!==e?(s=[s,l],n=s):(r=n,n=e),n!==e?(s=r,l=I(),c=Rs(),c!==e?(l=[l,c],s=l):(r=s,s=e),s!==e?(l=r,c=I(),h=ha(),h!==e?(c=[c,h],l=c):(r=l,l=e),l!==e?(c=r,h=I(),T=Rs(),T!==e?(h=[h,T],c=h):(r=c,c=e),c!==e?(b=t,t=KWe(n,s,l,c)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e))),t}function zTt(){var t,n,s,l,c,h;return t=Jl(),t===e&&(t=vq(),t===e&&(t=r,n=Qq(),n!==e?(s=I(),l=ci(),l!==e?(n=[n,s,l],t=n):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=cr(),n!==e?(s=I(),l=Jl(),l!==e?(n=[n,s,l],t=n):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=cr(),n!==e?(s=I(),l=vq(),l!==e?(n=[n,s,l],t=n):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=cr(),n!==e?(s=I(),l=Qq(),l!==e?(c=I(),h=ci(),h!==e?(n=[n,s,l,c,h],t=n):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)))))),t}function XTt(){var t,n,s,l,c,h,T;return t=r,n=r,s=cr(),s!==e?(l=I(),c=ql(),c!==e?(h=I(),T=aZ(),T!==e?(s=[s,l,c,h,T],n=s):(r=n,n=e)):(r=n,n=e)):(r=n,n=e),n===e&&(n=r,s=ql(),s!==e?(l=I(),c=aZ(),c!==e?(s=[s,l,c],n=s):(r=n,n=e)):(r=n,n=e),n===e&&(n=r,s=cr(),s!==e?(l=I(),c=ql(),c!==e?(s=[s,l,c],n=s):(r=n,n=e)):(r=n,n=e),n===e&&(n=ql()))),n!==e&&(b=t,n=kWe(n)),t=n,t}function QTt(){var t,n,s;return t=r,n=Rs(),n!==e?(s=eIt(),s===e&&(s=null),b=t,t=qWe(n,s)):(r=t,t=e),t===e&&(t=r,n=r,m++,s=Be(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=iIt(),s!==e?(b=t,t=ZWe(s)):(r=t,t=e)):(r=t,t=e)),t}function eIt(){var t,n,s,l,c,h,T,_,x,W;if(t=r,n=r,s=I(),l=_9(),l!==e?(s=[s,l],n=s):(r=n,n=e),n!==e&&(b=t,n=JWe(n)),t=n,t===e){if(t=r,n=[],s=r,l=I(),c=D9(),c!==e?(h=I(),T=r,_=Of(),_!==e?(x=r,m++,W=Be(),m--,W!==e?(r=x,x=void 0):x=e,x!==e?(b=T,T=YK(_)):(r=T,T=e)):(r=T,T=e),T===e&&(T=Rs()),T!==e?(l=[l,c,h,T],s=l):(r=s,s=e)):(r=s,s=e),s!==e)for(;s!==e;)n.push(s),s=r,l=I(),c=D9(),c!==e?(h=I(),T=r,_=Of(),_!==e?(x=r,m++,W=Be(),m--,W!==e?(r=x,x=void 0):x=e,x!==e?(b=T,T=YK(_)):(r=T,T=e)):(r=T,T=e),T===e&&(T=Rs()),T!==e?(l=[l,c,h,T],s=l):(r=s,s=e)):(r=s,s=e);else n=e;n!==e&&(b=t,n=HWe(n)),t=n,t===e&&(t=r,n=I(),s=r,l=cr(),l!==e?(c=I(),h=ii(),h!==e?(l=[l,c,h],s=l):(r=s,s=e)):(r=s,s=e),s===e&&(s=ii()),s!==e?(l=I(),c=fa(),c===e&&(c=Rs(),c===e&&(c=r,h=r,m++,T=Oe(),m--,T!==e?(r=h,h=void 0):h=e,h!==e?(T=Lw(),T!==e?(b=c,c=WWe(n,s,l,T)):(r=c,c=e)):(r=c,c=e))),c!==e?(b=t,t=YWe(n,s,l,c)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=I(),s=r,l=cr(),l!==e?(c=I(),h=Jl(),h!==e?(l=[l,c,h],s=l):(r=s,s=e)):(r=s,s=e),s===e&&(s=Jl()),s!==e?(l=I(),c=r,h=r,m++,T=Oe(),m--,T!==e?(r=h,h=void 0):h=e,h!==e?(T=Of(),T!==e?(b=c,c=zWe(n,s,l,T)):(r=c,c=e)):(r=c,c=e),c===e&&(c=C9()),c!==e?(b=t,t=XWe(n,s,l,c)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=r,m++,s=Vo(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=I(),l=r,c=ngt(),c!==e?(h=I(),T=dn(),T!==e?(c=[c,h,T],l=c):(r=l,l=e)):(r=l,l=e),l!==e?(c=I(),h=OAt(),h!==e?(b=t,t=QWe(s,l,c,h)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=r,m++,s=Be(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=I(),l=r,c=rDt(),c!==e?(h=I(),T=Jl(),T!==e?(c=[c,h,T],l=c):(r=l,l=e)):(r=l,l=e),l!==e?(c=I(),h=Rs(),h!==e?(b=t,t=eYe(s,l,c,h)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=r,s=I(),l=rIt(),l!==e?(s=[s,l],n=s):(r=n,n=e),n!==e?(s=r,l=I(),c=Rs(),c!==e?(l=[l,c],s=l):(r=s,s=e),s!==e?(l=r,c=I(),h=ha(),h!==e?(c=[c,h],l=c):(r=l,l=e),l!==e?(c=r,h=I(),T=Rs(),T!==e?(h=[h,T],c=h):(r=c,c=e),c!==e?(b=t,t=tYe(n,s,l,c)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e))))))}return t}function _9(){var t,n,s,l,c,h,T,_,x;return t=r,n=Bgt(),n===e&&(n=$_t()),n!==e?(s=r,m++,l=tt(),m--,l!==e?(r=s,s=void 0):s=e,s===e&&(s=r,m++,l=ye(),m--,l!==e?(r=s,s=void 0):s=e),s!==e?(b=t,t=rYe(n)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=r,s=cr(),s!==e?(l=I(),c=Ea(),c!==e?(s=[s,l,c],n=s):(r=n,n=e)):(r=n,n=e),n!==e?(s=r,m++,l=tt(),m--,l!==e?(r=s,s=void 0):s=e,s!==e?(b=t,t=iYe(n)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=r,s=va(),s!==e?(l=I(),c=uZ(),c!==e?(s=[s,l,c],n=s):(r=n,n=e)):(r=n,n=e),n===e&&(n=r,s=va(),s!==e?(l=I(),c=cr(),c!==e?(h=I(),T=uZ(),T!==e?(s=[s,l,c,h,T],n=s):(r=n,n=e)):(r=n,n=e)):(r=n,n=e)),n!==e?(s=r,m++,l=Be(),m--,l!==e?(r=s,s=void 0):s=e,s===e&&(s=r,m++,l=Oe(),m--,l!==e?(r=s,s=void 0):s=e,s===e&&(s=r,m++,l=ye(),m--,l!==e?(r=s,s=void 0):s=e)),s!==e?(b=t,t=sYe(n)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=r,s=va(),s!==e?(l=I(),c=cr(),c!==e?(h=I(),T=g9(),T!==e?(_=I(),x=wv(),x!==e?(s=[s,l,c,h,T,_,x],n=s):(r=n,n=e)):(r=n,n=e)):(r=n,n=e)):(r=n,n=e),n===e&&(n=r,s=va(),s!==e?(l=I(),c=g9(),c!==e?(h=I(),T=wv(),T!==e?(s=[s,l,c,h,T],n=s):(r=n,n=e)):(r=n,n=e)):(r=n,n=e)),n!==e?(s=r,m++,l=ye(),m--,l!==e?(r=s,s=void 0):s=e,s!==e?(b=t,t=nYe(n)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=r,s=va(),s!==e?(l=I(),c=cr(),c!==e?(h=I(),T=wv(),T!==e?(s=[s,l,c,h,T],n=s):(r=n,n=e)):(r=n,n=e)):(r=n,n=e),n===e&&(n=r,s=va(),s!==e?(l=I(),c=wv(),c!==e?(s=[s,l,c],n=s):(r=n,n=e)):(r=n,n=e)),n!==e?(s=r,m++,l=ye(),m--,l!==e?(r=s,s=void 0):s=e,s!==e?(b=t,t=aYe(n)):(r=t,t=e)):(r=t,t=e))))),t}function g9(){var t;return t=Rgt(),t===e&&(t=_gt(),t===e&&(t=ggt(),t===e&&(t=Dgt()))),t}function D9(){var t,n,s,l;return t=r,o.substr(r,3)===oe?(n=oe,r+=3):(n=e,m===0&&C(cNe)),n!==e?(s=r,m++,l=Be(),m--,l!==e?(r=s,s=void 0):s=e,s!==e?(b=t,t=oYe(n)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,o.substr(r,2)===we?(n=we,r+=2):(n=e,m===0&&C(pNe)),n!==e?(s=r,m++,l=tt(),m--,l!==e?(r=s,s=void 0):s=e,s!==e?(b=t,t=lYe(n)):(r=t,t=e)):(r=t,t=e),t===e&&(o.substr(r,2)===Y?(t=Y,r+=2):(t=e,m===0&&C(dw)),t===e&&(o.charCodeAt(r)===62?(t=X,r++):(t=e,m===0&&C(r0)),t===e&&(o.substr(r,2)===H?(t=H,r+=2):(t=e,m===0&&C(uw)),t===e&&(o.substr(r,2)===ce?(t=ce,r+=2):(t=e,m===0&&C(cw)),t===e&&(o.charCodeAt(r)===60?(t=ie,r++):(t=e,m===0&&C(t0)),t===e&&(o.charCodeAt(r)===61?(t=U,r++):(t=e,m===0&&C(os)),t===e&&(o.substr(r,2)===z?(t=z,r+=2):(t=e,m===0&&C(pw)),t===e&&(t=kR(),t===e&&(t=tIt())))))))))),t}function kR(){var t,n,s,l,c,h,T,_,x;return t=r,n=r,s=va(),s!==e?(l=I(),c=cr(),c!==e?(h=I(),T=ln(),T!==e?(_=I(),x=gs(),x!==e?(s=[s,l,c,h,T,_,x],n=s):(r=n,n=e)):(r=n,n=e)):(r=n,n=e)):(r=n,n=e),n!==e?(s=r,m++,l=tt(),m--,l!==e?(r=s,s=void 0):s=e,s===e&&(s=r,m++,l=Oe(),m--,l!==e?(r=s,s=void 0):s=e,s===e&&(s=r,m++,l=ye(),m--,l!==e?(r=s,s=void 0):s=e)),s!==e?(b=t,t=dYe(n)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=r,s=va(),s!==e?(l=I(),c=ln(),c!==e?(h=I(),T=gs(),T!==e?(s=[s,l,c,h,T],n=s):(r=n,n=e)):(r=n,n=e)):(r=n,n=e),n!==e?(s=r,m++,l=tt(),m--,l!==e?(r=s,s=void 0):s=e,s===e&&(s=r,m++,l=Oe(),m--,l!==e?(r=s,s=void 0):s=e,s===e&&(s=r,m++,l=ye(),m--,l!==e?(r=s,s=void 0):s=e)),s!==e?(b=t,t=uYe(n)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=r,s=va(),s!==e?(l=I(),c=cr(),c!==e?(s=[s,l,c],n=s):(r=n,n=e)):(r=n,n=e),n!==e&&(b=t,n=cYe(n)),t=n,t===e&&(t=r,n=va(),n!==e&&(b=t,n=pYe(n)),t=n))),t}function tIt(){var t,n,s,l,c;return t=r,n=r,s=cr(),s!==e?(l=I(),c=O9(),c!==e?(s=[s,l,c],n=s):(r=n,n=e)):(r=n,n=e),n===e&&(n=O9()),n!==e&&(b=t,n=fYe(n)),t=n,t}function O9(){var t,n,s,l;return t=g1t(),t===e&&(t=r,n=M1t(),n!==e?(s=r,m++,l=Be(),m--,l!==e?(r=s,s=void 0):s=e,s!==e?(b=t,t=hYe(n)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=fq(),n!==e?(s=r,m++,l=tt(),m--,l!==e?(r=s,s=void 0):s=e,s!==e?(b=t,t=yYe(n)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=G_(),n!==e?(s=r,m++,l=tt(),m--,l!==e?(r=s,s=void 0):s=e,s!==e?(b=t,t=mYe(n)):(r=t,t=e)):(r=t,t=e)))),t}function C9(){var t,n,s,l,c,h;return t=r,n=Rs(),n!==e?(s=I(),l=kRt(),l!==e?(c=I(),h=nr(),h!==e?(b=t,t=vYe(n,s,l,c,h)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t===e&&(t=Rs()),t}function rIt(){var t,n,s,l,c;return t=r,n=r,s=cr(),s!==e?(l=I(),c=ql(),c!==e?(s=[s,l,c],n=s):(r=n,n=e)):(r=n,n=e),n===e&&(n=ql()),n!==e&&(b=t,n=EYe(n)),t=n,t}function Of(){var t,n,s,l;return t=r,n=r,s=P8(),s===e&&(s=tDt(),s===e&&(s=li())),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=Ga(),s===e&&(s=fa()),s!==e?(b=t,t=TYe(n,s)):(r=t,t=e)):(r=t,t=e),t}function iIt(){var t,n,s,l,c,h,T;return t=r,n=G_(),n!==e?(s=r,l=I(),c=Gl(),c!==e?(h=I(),l=[l,c,h],s=l):(r=s,s=e),s!==e?(l=Iwt(),l!==e?(c=r,h=I(),T=oAt(),T!==e?(h=[h,T],c=h):(r=c,c=e),c!==e?(b=t,t=IYe(n,s,l,c)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function sIt(){var t,n,s,l,c;return t=r,n=Rs(),n!==e?(s=r,l=I(),c=nIt(),c!==e?(l=[l,c],s=l):(r=s,s=e),s===e&&(s=null),b=t,t=AYe(n,s)):(r=t,t=e),t}function nIt(){var t,n,s,l,c,h,T,_,x,W,pe,Ve,qe,$t,Kr;return t=r,n=r,s=ii(),s!==e?(l=I(),c=Z_(),c!==e?(h=I(),T=Tv(),T!==e?(_=I(),x=bv(),x!==e?(W=I(),pe=Sr(),pe!==e?(Ve=I(),qe=tg(),qe!==e?($t=I(),Kr=lq(),Kr!==e?(s=[s,l,c,h,T,_,x,W,pe,Ve,qe,$t,Kr],n=s):(r=n,n=e)):(r=n,n=e)):(r=n,n=e)):(r=n,n=e)):(r=n,n=e)):(r=n,n=e)):(r=n,n=e),n===e&&(n=r,s=ii(),s!==e?(l=I(),c=Z_(),c!==e?(h=I(),T=Tv(),T!==e?(_=I(),x=bv(),x!==e?(s=[s,l,c,h,T,_,x],n=s):(r=n,n=e)):(r=n,n=e)):(r=n,n=e)):(r=n,n=e),n===e&&(n=r,s=ii(),s!==e?(l=I(),c=G8(),c!==e?(h=I(),T=bv(),T!==e?(s=[s,l,c,h,T],n=s):(r=n,n=e)):(r=n,n=e)):(r=n,n=e),n===e&&(n=r,s=Sr(),s!==e?(l=I(),c=tg(),c!==e?(h=I(),T=lq(),T!==e?(s=[s,l,c,h,T],n=s):(r=n,n=e)):(r=n,n=e)):(r=n,n=e)))),n!==e&&(b=t,n=bYe(n)),t=n,t}function Rs(){var t,n,s;return t=r,n=r,m++,s=ye(),m--,s===e?n=void 0:(r=n,n=e),n!==e?(s=cIt(),s!==e?(b=t,t=wYe(s)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=r,m++,s=ye(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=aIt(),s!==e?(b=t,t=RYe(s)):(r=t,t=e)):(r=t,t=e)),t}function aIt(){var t,n,s,l,c,h,T,_;if(t=r,n=x0(),n!==e){for(s=[],l=r,c=I(),h=$9(),h===e&&(h=Cf()),h!==e?(T=I(),_=x0(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);l!==e;)s.push(l),l=r,c=I(),h=$9(),h===e&&(h=Cf()),h!==e?(T=I(),_=x0(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);b=t,t=_Ye(n,s)}else r=t,t=e;return t}function $9(){var t,n;return t=r,o.substr(r,3)===xe?(n=xe,r+=3):(n=e,m===0&&C(fNe)),n===e&&(o.substr(r,2)===Ne?(n=Ne,r+=2):(n=e,m===0&&C(hNe)),n===e&&(o.substr(r,2)===re?(n=re,r+=2):(n=e,m===0&&C(mf)),n===e&&(o.substr(r,2)===$e?(n=$e,r+=2):(n=e,m===0&&C(fw)),n===e&&(o.substr(r,2)===Pe?(n=Pe,r+=2):(n=e,m===0&&C(hw)),n===e&&(o.substr(r,4)===Ze?(n=Ze,r+=4):(n=e,m===0&&C(yNe)),n===e&&(o.substr(r,3)===Fe?(n=Fe,r+=3):(n=e,m===0&&C(mNe)),n===e&&(o.substr(r,3)===lt?(n=lt,r+=3):(n=e,m===0&&C(vNe)),n===e&&(o.substr(r,2)===_t?(n=_t,r+=2):(n=e,m===0&&C(ENe)),n===e&&(o.substr(r,3)===ur?(n=ur,r+=3):(n=e,m===0&&C(TNe)),n===e&&(o.substr(r,2)===br?(n=br,r+=2):(n=e,m===0&&C(INe)),n===e&&(o.substr(r,2)===xr?(n=xr,r+=2):(n=e,m===0&&C(ANe)),n===e&&(o.substr(r,2)===ti?(n=ti,r+=2):(n=e,m===0&&C(bNe)),n===e&&(o.substr(r,3)===oi?(n=oi,r+=3):(n=e,m===0&&C(NK)),n===e&&(o.substr(r,2)===ns?(n=ns,r+=2):(n=e,m===0&&C(VK)),n===e&&(o.substr(r,3)===sa?(n=sa,r+=3):(n=e,m===0&&C(wNe)),n===e&&(o.substr(r,2)===Ro?(n=Ro,r+=2):(n=e,m===0&&C(RNe)),n===e&&(o.substr(r,2)===na?(n=na,r+=2):(n=e,m===0&&C(_Ne)),n===e&&(o.substr(r,2)===Bi?(n=Bi,r+=2):(n=e,m===0&&C(gNe)),n===e&&(o.substr(r,2)===Rn?(n=Rn,r+=2):(n=e,m===0&&C(DNe)),n===e&&(o.substr(r,2)===_o?(n=_o,r+=2):(n=e,m===0&&C(ONe)),n===e&&(o.substr(r,2)===Ol?(n=Ol,r+=2):(n=e,m===0&&C(CNe)),n===e&&(o.substr(r,2)===rK?(n=rK,r+=2):(n=e,m===0&&C($Ne)),n===e&&(o.substr(r,2)===Zm?(n=Zm,r+=2):(n=e,m===0&&C(LK)),n===e&&(o.charCodeAt(r)===33?(n=iK,r++):(n=e,m===0&&C(MK)),n===e&&(o.charCodeAt(r)===126?(n=Jm,r++):(n=e,m===0&&C(i0)),n===e&&(o.charCodeAt(r)===64?(n=iu,r++):(n=e,m===0&&C(pu)),n===e&&(o.charCodeAt(r)===35?(n=sK,r++):(n=e,m===0&&C(BK)),n===e&&(o.charCodeAt(r)===38?(n=iw,r++):(n=e,m===0&&C(yw)),n===e&&(o.charCodeAt(r)===124?(n=sw,r++):(n=e,m===0&&C(mw)),n===e&&(o.charCodeAt(r)===96?(n=Cl,r++):(n=e,m===0&&C(Vl)),n===e&&(o.charCodeAt(r)===63?(n=nw,r++):(n=e,m===0&&C(vw))))))))))))))))))))))))))))))))),n!==e&&(b=t,n=gYe(n)),t=n,t}function Cf(){var t,n,s,l;return t=r,n=r,s=Sgt(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=_At(),s!==e?(b=t,t=DYe(n,s)):(r=t,t=e)):(r=t,t=e),t}function oIt(){var t;return t=lIt(),t===e&&(t=j0()),t}function lIt(){var t,n,s,l,c,h;return t=r,n=r,s=Ge(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(o.charCodeAt(r)===46?(s=$,r++):(s=e,m===0&&C(gn)),s!==e?(l=r,c=I(),h=j0(),h!==e?(c=[c,h],l=c):(r=l,l=e),l!==e?(b=t,t=OYe(n,l)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function j0(){var t,n,s;if(t=r,n=[],wK.test(o.charAt(r))?(s=o.charAt(r),r++):(s=e,m===0&&C(UK)),s!==e)for(;s!==e;)n.push(s),wK.test(o.charAt(r))?(s=o.charAt(r),r++):(s=e,m===0&&C(UK));else n=e;return n!==e&&(b=t,n=CYe()),t=n,t}function x0(){var t,n,s,l,c;return t=r,o.charCodeAt(r)===126?(n=Jm,r++):(n=e,m===0&&C(i0)),n===e&&(n=Cf()),n!==e?(s=r,l=I(),c=x0(),c!==e?(l=[l,c],s=l):(r=s,s=e),s!==e?(b=t,t=$Ye(n,s)):(r=t,t=e)):(r=t,t=e),t===e&&(t=dIt()),t}function dIt(){var t,n,s,l,c,h,T,_;if(t=r,n=qR(),n!==e){for(s=[],l=r,c=I(),h=G0(),h!==e?(T=I(),_=qR(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);l!==e;)s.push(l),l=r,c=I(),h=G0(),h!==e?(T=I(),_=qR(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);b=t,t=PYe(n,s)}else r=t,t=e;return t}function qR(){var t,n,s,l,c,h,T,_;if(t=r,n=ZR(),n!==e){for(s=[],l=r,c=I(),o.charCodeAt(r)===42?(h=V,r++):(h=e,m===0&&C(ff)),h===e&&(o.charCodeAt(r)===47?(h=aw,r++):(h=e,m===0&&C(Ew)),h===e&&(o.charCodeAt(r)===37?(h=ow,r++):(h=e,m===0&&C(Tw)))),h!==e?(T=I(),_=ZR(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);l!==e;)s.push(l),l=r,c=I(),o.charCodeAt(r)===42?(h=V,r++):(h=e,m===0&&C(ff)),h===e&&(o.charCodeAt(r)===47?(h=aw,r++):(h=e,m===0&&C(Ew)),h===e&&(o.charCodeAt(r)===37?(h=ow,r++):(h=e,m===0&&C(Tw)))),h!==e?(T=I(),_=ZR(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);b=t,t=NYe(n,s)}else r=t,t=e;return t}function ZR(){var t,n,s,l,c,h,T,_;if(t=r,n=JR(),n!==e){for(s=[],l=r,c=I(),o.charCodeAt(r)===94?(h=su,r++):(h=e,m===0&&C(fu)),h!==e?(T=I(),_=JR(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);l!==e;)s.push(l),l=r,c=I(),o.charCodeAt(r)===94?(h=su,r++):(h=e,m===0&&C(fu)),h!==e?(T=I(),_=JR(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);b=t,t=VYe(n,s)}else r=t,t=e;return t}function JR(){var t,n,s,l,c,h,T,_;if(t=r,n=HR(),n!==e){for(s=[],l=r,c=I(),h=P9(),h!==e?(T=I(),_=HR(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);l!==e;)s.push(l),l=r,c=I(),h=P9(),h!==e?(T=I(),_=HR(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);b=t,t=LYe(n,s)}else r=t,t=e;return t}function HR(){var t,n,s,l,c,h,T,_;if(t=r,n=N9(),n!==e){for(s=[],l=r,c=I(),h=ya(),h!==e?(T=I(),_=Re(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);l!==e;)s.push(l),l=r,c=I(),h=ya(),h!==e?(T=I(),_=Re(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);b=t,t=MYe(n,s)}else r=t,t=e;return t}function P9(){var t,n,s,l,c,h,T;return t=r,n=r,s=N8(),s!==e?(l=I(),c=Xl(),c!==e?(h=I(),T=Tg(),T!==e?(s=[s,l,c,h,T],n=s):(r=n,n=e)):(r=n,n=e)):(r=n,n=e),n!==e&&(b=t,n=BYe(n)),t=n,t}function N9(){var t,n,s,l,c;return t=r,o.charCodeAt(r)===45?(n=nu,r++):(n=e,m===0&&C(hu)),n===e&&(o.charCodeAt(r)===43?(n=Hm,r++):(n=e,m===0&&C(s0)),n===e&&(o.charCodeAt(r)===126?(n=Jm,r++):(n=e,m===0&&C(i0)))),n!==e?(s=r,l=I(),c=N9(),c!==e?(l=[l,c],s=l):(r=s,s=e),s!==e?(b=t,t=UYe(n,s)):(r=t,t=e)):(r=t,t=e),t===e&&(t=uIt()),t}function uIt(){var t,n,s,l,c,h,T,_;if(t=r,n=M9(),n!==e){for(s=[],l=r,c=I(),o.substr(r,2)===Wm?(h=Wm,r+=2):(h=e,m===0&&C(jK)),h!==e?(T=I(),_=Ci(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);l!==e;)s.push(l),l=r,c=I(),o.substr(r,2)===Wm?(h=Wm,r+=2):(h=e,m===0&&C(jK)),h!==e?(T=I(),_=Ci(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);b=t,t=jYe(n,s)}else r=t,t=e;return t}function cIt(){var t,n,s,l,c,h,T,_;if(t=r,n=WR(),n!==e){for(s=[],l=r,c=I(),o.charCodeAt(r)===124?(h=sw,r++):(h=e,m===0&&C(mw)),h!==e?(T=I(),_=WR(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);l!==e;)s.push(l),l=r,c=I(),o.charCodeAt(r)===124?(h=sw,r++):(h=e,m===0&&C(mw)),h!==e?(T=I(),_=WR(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);b=t,t=xYe(n,s)}else r=t,t=e;return t}function WR(){var t,n,s,l,c,h,T,_,x;if(t=r,n=r,m++,s=Oe(),m--,s!==e?(r=n,n=void 0):n=e,n!==e)if(s=F0(),s!==e){for(l=[],c=r,h=I(),o.charCodeAt(r)===94?(T=su,r++):(T=e,m===0&&C(fu)),T!==e?(_=I(),x=F0(),x!==e?(h=[h,T,_,x],c=h):(r=c,c=e)):(r=c,c=e);c!==e;)l.push(c),c=r,h=I(),o.charCodeAt(r)===94?(T=su,r++):(T=e,m===0&&C(fu)),T!==e?(_=I(),x=F0(),x!==e?(h=[h,T,_,x],c=h):(r=c,c=e)):(r=c,c=e);b=t,t=FYe(s,l)}else r=t,t=e;else r=t,t=e;return t===e&&(t=r,n=r,m++,s=Oe(),m--,s===e?n=void 0:(r=n,n=e),n!==e?(s=F0(),s!==e?(b=t,t=GYe(s)):(r=t,t=e)):(r=t,t=e)),t}function F0(){var t,n,s,l,c,h,T,_;if(t=r,n=YR(),n!==e){for(s=[],l=r,c=I(),o.charCodeAt(r)===38?(h=iw,r++):(h=e,m===0&&C(yw)),h!==e?(T=I(),_=YR(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);l!==e;)s.push(l),l=r,c=I(),o.charCodeAt(r)===38?(h=iw,r++):(h=e,m===0&&C(yw)),h!==e?(T=I(),_=YR(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);b=t,t=SYe(n,s)}else r=t,t=e;return t}function YR(){var t,n,s,l,c,h,T,_;if(t=r,n=zR(),n!==e){for(s=[],l=r,c=I(),o.substr(r,2)===$e?(h=$e,r+=2):(h=e,m===0&&C(fw)),h===e&&(o.substr(r,2)===Pe?(h=Pe,r+=2):(h=e,m===0&&C(hw))),h!==e?(T=I(),_=zR(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);l!==e;)s.push(l),l=r,c=I(),o.substr(r,2)===$e?(h=$e,r+=2):(h=e,m===0&&C(fw)),h===e&&(o.substr(r,2)===Pe?(h=Pe,r+=2):(h=e,m===0&&C(hw))),h!==e?(T=I(),_=zR(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);b=t,t=KYe(n,s)}else r=t,t=e;return t}function zR(){var t,n,s,l,c,h,T,_;if(t=r,n=XR(),n!==e){for(s=[],l=r,c=I(),h=G0(),h!==e?(T=I(),_=XR(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);l!==e;)s.push(l),l=r,c=I(),h=G0(),h!==e?(T=I(),_=XR(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);b=t,t=kYe(n,s)}else r=t,t=e;return t}function G0(){var t;return o.charCodeAt(r)===43?(t=Hm,r++):(t=e,m===0&&C(s0)),t===e&&(o.charCodeAt(r)===45?(t=nu,r++):(t=e,m===0&&C(hu))),t}function XR(){var t,n,s,l,c,h,T,_;if(t=r,n=QR(),n!==e){for(s=[],l=r,c=I(),h=V9(),h!==e?(T=I(),_=QR(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);l!==e;)s.push(l),l=r,c=I(),h=V9(),h!==e?(T=I(),_=QR(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);b=t,t=qYe(n,s)}else r=t,t=e;return t}function V9(){var t,n,s,l;return o.charCodeAt(r)===42?(t=V,r++):(t=e,m===0&&C(ff)),t===e&&(o.charCodeAt(r)===47?(t=aw,r++):(t=e,m===0&&C(Ew)),t===e&&(t=r,o.charCodeAt(r)===37?(n=ow,r++):(n=e,m===0&&C(Tw)),n!==e?(s=r,m++,l=Be(),m--,l!==e?(r=s,s=void 0):s=e,s===e&&(s=r,m++,l=tt(),m--,l!==e?(r=s,s=void 0):s=e),s!==e?(b=t,t=ZYe(n)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=CRt(),n!==e?(s=r,m++,l=Be(),m--,l!==e?(r=s,s=void 0):s=e,s===e&&(s=r,m++,l=tt(),m--,l!==e?(r=s,s=void 0):s=e),s!==e?(b=t,t=JYe(n)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=vgt(),n!==e?(s=r,m++,l=Be(),m--,l!==e?(r=s,s=void 0):s=e,s===e&&(s=r,m++,l=tt(),m--,l!==e?(r=s,s=void 0):s=e),s!==e?(b=t,t=HYe(n)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,o.substr(r,2)===re?(n=re,r+=2):(n=e,m===0&&C(mf)),n!==e?(s=r,m++,l=Oe(),m--,l!==e?(r=s,s=void 0):s=e,s!==e?(b=t,t=WYe(n)):(r=t,t=e)):(r=t,t=e)))))),t}function QR(){var t,n,s,l,c,h,T,_,x;if(t=r,n=r,m++,s=Be(),m--,s!==e?(r=n,n=void 0):n=e,n!==e)if(s=S0(),s!==e){for(l=[],c=r,h=I(),o.charCodeAt(r)===94?(T=su,r++):(T=e,m===0&&C(fu)),T!==e?(_=I(),x=S0(),x!==e?(h=[h,T,_,x],c=h):(r=c,c=e)):(r=c,c=e);c!==e;)l.push(c),c=r,h=I(),o.charCodeAt(r)===94?(T=su,r++):(T=e,m===0&&C(fu)),T!==e?(_=I(),x=S0(),x!==e?(h=[h,T,_,x],c=h):(r=c,c=e)):(r=c,c=e);b=t,t=YYe(s,l)}else r=t,t=e;else r=t,t=e;return t===e&&(t=r,n=r,m++,s=Be(),m--,s===e?n=void 0:(r=n,n=e),n!==e?(s=S0(),s!==e?(b=t,t=zYe(s)):(r=t,t=e)):(r=t,t=e)),t}function S0(){var t,n,s,l,c,h,T,_;if(t=r,n=K0(),n!==e){for(s=[],l=r,c=I(),h=L9(),h!==e?(T=I(),_=K0(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);l!==e;)s.push(l),l=r,c=I(),h=L9(),h!==e?(T=I(),_=K0(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);b=t,t=XYe(n,s)}else r=t,t=e;return t}function L9(){var t,n,s,l;return t=r,o.substr(r,2)===re?(n=re,r+=2):(n=e,m===0&&C(mf)),n!==e?(s=r,m++,l=tt(),m--,l!==e?(r=s,s=void 0):s=e,s!==e?(b=t,t=QYe(n)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,o.substr(r,3)===oi?(n=oi,r+=3):(n=e,m===0&&C(NK)),n!==e?(s=r,m++,l=tt(),m--,l!==e?(r=s,s=void 0):s=e,s===e&&(s=r,m++,l=Vo(),m--,l!==e?(r=s,s=void 0):s=e),s!==e?(b=t,t=eze(n)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,o.substr(r,2)===ns?(n=ns,r+=2):(n=e,m===0&&C(VK)),n!==e?(s=r,m++,l=tt(),m--,l!==e?(r=s,s=void 0):s=e,s===e&&(s=r,m++,l=Vo(),m--,l!==e?(r=s,s=void 0):s=e),s!==e?(b=t,t=tze(n)):(r=t,t=e)):(r=t,t=e))),t}function K0(){var t,n,s,l,c,h;return t=r,n=r,m++,s=Be(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=j8(),s!==e?(l=r,c=I(),h=K0(),h!==e?(c=[c,h],l=c):(r=l,l=e),l!==e?(b=t,t=rze(s,l)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t===e&&(t=pIt()),t}function pIt(){var t,n,s,l,c,h,T,_,x;if(t=r,n=r,m++,s=Be(),m--,s!==e?(r=n,n=void 0):n=e,n===e&&(n=r,m++,s=tt(),m--,s!==e?(r=n,n=void 0):n=e),n!==e)if(s=e_(),s!==e){for(l=[],c=r,h=I(),T=ya(),T!==e?(_=I(),x=Re(),x!==e?(h=[h,T,_,x],c=h):(r=c,c=e)):(r=c,c=e);c!==e;)l.push(c),c=r,h=I(),T=ya(),T!==e?(_=I(),x=Re(),x!==e?(h=[h,T,_,x],c=h):(r=c,c=e)):(r=c,c=e);b=t,t=ize(s,l)}else r=t,t=e;else r=t,t=e;return t===e&&(t=r,n=r,m++,s=r,m++,l=Be(),m--,l!==e?(r=s,s=void 0):s=e,s===e&&(s=r,m++,l=tt(),m--,l!==e?(r=s,s=void 0):s=e),m--,s===e?n=void 0:(r=n,n=e),n!==e?(s=e_(),s!==e?(b=t,t=sze(s)):(r=t,t=e)):(r=t,t=e)),t}function e_(){var t,n,s,l,c;return t=r,n=fIt(),n!==e?(s=r,l=I(),c=e_(),c!==e?(l=[l,c],s=l):(r=s,s=e),s!==e?(b=t,t=nze(n,s)):(r=t,t=e)):(r=t,t=e),t===e&&(t=M9()),t}function fIt(){var t,n,s,l;return o.charCodeAt(r)===45?(t=nu,r++):(t=e,m===0&&C(hu)),t===e&&(o.charCodeAt(r)===43?(t=Hm,r++):(t=e,m===0&&C(s0)),t===e&&(t=r,o.charCodeAt(r)===126?(n=Jm,r++):(n=e,m===0&&C(i0)),n!==e?(s=r,m++,l=ye(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=aze(n)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,o.charCodeAt(r)===33?(n=iK,r++):(n=e,m===0&&C(MK)),n!==e?(s=r,m++,l=Be(),m--,l!==e?(r=s,s=void 0):s=e,s!==e?(b=t,t=oze(n)):(r=t,t=e)):(r=t,t=e)))),t}function M9(){var t,n,s,l,c,h,T,_;if(t=r,n=U9(),n!==e?(s=r,l=I(),c=k0(),c!==e?(l=[l,c],s=l):(r=s,s=e),s!==e?(b=t,t=lze(n,s)):(r=t,t=e)):(r=t,t=e),t===e&&(t=t_(),t===e))if(t=r,n=mIt(),n!==e){for(s=[],l=r,c=I(),o.charCodeAt(r)===46?(h=$,r++):(h=e,m===0&&C(gn)),h!==e?(T=I(),_=Lf(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e),l===e&&(l=r,c=I(),h=B9(),h!==e?(c=[c,h],l=c):(r=l,l=e),l===e&&(l=r,c=I(),h=k0(),h!==e?(c=[c,h],l=c):(r=l,l=e)));l!==e;)s.push(l),l=r,c=I(),o.charCodeAt(r)===46?(h=$,r++):(h=e,m===0&&C(gn)),h!==e?(T=I(),_=Lf(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e),l===e&&(l=r,c=I(),h=B9(),h!==e?(c=[c,h],l=c):(r=l,l=e),l===e&&(l=r,c=I(),h=k0(),h!==e?(c=[c,h],l=c):(r=l,l=e)));b=t,t=dze(n,s)}else r=t,t=e;return t}function Ge(){var t,n,s,l,c,h,T,_;if(t=r,n=Re(),n!==e){for(s=[],l=r,c=I(),o.charCodeAt(r)===46?(h=$,r++):(h=e,m===0&&C(gn)),h!==e?(T=I(),_=Lf(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);l!==e;)s.push(l),l=r,c=I(),o.charCodeAt(r)===46?(h=$,r++):(h=e,m===0&&C(gn)),h!==e?(T=I(),_=Lf(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);b=t,t=uze(n,s)}else r=t,t=e;return t}function B9(){var t,n,s,l,c,h,T;return t=r,n=r,m++,s=Oe(),m--,s!==e?(r=n,n=void 0):n=e,n===e&&(n=r,m++,s=ye(),m--,s!==e?(r=n,n=void 0):n=e),n!==e?(o.charCodeAt(r)===91?(s=K,r++):(s=e,m===0&&C(hf)),s!==e?(l=r,c=I(),h=hIt(),h===e&&(h=yIt(),h===e&&(h=et())),h!==e?(T=I(),c=[c,h,T],l=c):(r=l,l=e),l!==e?(o.charCodeAt(r)===93?(c=Z,r++):(c=e,m===0&&C(yf)),c!==e?(b=t,t=cze(l)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function hIt(){var t,n,s,l,c,h;return t=r,n=r,m++,s=Oe(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=Rv(),s===e&&(s=k1t(),s===e&&(s=qgt(),s===e&&(s=q1t()))),s!==e?(l=r,c=I(),h=Sa(),h!==e?(c=[c,h],l=c):(r=l,l=e),l!==e?(b=t,t=pze(s,l)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function yIt(){var t,n,s,l,c,h,T;return t=r,n=r,m++,s=ye(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=r,l=et(),l!==e?(c=I(),l=[l,c],s=l):(r=s,s=e),s===e&&(s=null),o.charCodeAt(r)===58?(l=G,r++):(l=e,m===0&&C(Nl)),l!==e?(c=r,h=I(),T=et(),T!==e?(h=[h,T],c=h):(r=c,c=e),c===e&&(c=null),b=t,t=fze(s,c)):(r=t,t=e)):(r=t,t=e),t}function mIt(){var t,n,s;return t=$n(),t===e&&(t=vIt(),t===e&&(t=Ga(),t===e&&(t=r,n=r,m++,s=Oe(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=c8(),s===e&&(s=p8(),s===e&&(s=$bt())),s!==e?(b=t,t=hze(s)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=r,m++,s=ye(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=c8(),s!==e?(b=t,t=yze(s)):(r=t,t=e)):(r=t,t=e),t===e&&(t=EIt(),t===e&&(t=r,n=r,m++,s=ye(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=Ck(),s===e&&(s=Ayt()),s!==e?(b=t,t=mze(s)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=r,m++,s=tt(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=wIt(),s!==e?(b=t,t=vze(s)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=r,m++,s=Be(),m--,s!==e?(r=n,n=void 0):n=e,n===e&&(n=r,m++,s=Oe(),m--,s!==e?(r=n,n=void 0):n=e,n===e&&(n=r,m++,s=ye(),m--,s!==e?(r=n,n=void 0):n=e)),n!==e?(s=gIt(),s!==e?(b=t,t=Eze(s)):(r=t,t=e)):(r=t,t=e),t===e&&(t=zIt(),t===e&&(t=rAt(),t===e&&(t=Re(),t===e&&(t=r,n=r,m++,s=Be(),m--,s!==e?(r=n,n=void 0):n=e,n===e&&(n=r,m++,s=Oe(),m--,s!==e?(r=n,n=void 0):n=e),n!==e?(s=QIt(),s!==e?(b=t,t=Tze(s)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=r,m++,s=Be(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=Mf(),s!==e?(b=t,t=Ize(s)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=r,m++,s=Oe(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=Cbt(),s!==e?(b=t,t=Aze(s)):(r=t,t=e)):(r=t,t=e),t===e&&(t=G9()))))))))))))))),t}function vIt(){var t,n,s,l,c,h;return t=r,o.charCodeAt(r)===40?(n=Et,r++):(n=e,m===0&&C(Tt)),n!==e?(s=I(),l=_u(),l!==e?(c=I(),o.charCodeAt(r)===41?(h=It,r++):(h=e,m===0&&C(At)),h!==e?(b=t,t=bze(s,l,c)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function EIt(){var t,n,s,l,c;return t=r,n=TIt(),n!==e?(s=r,l=I(),c=iAt(),c!==e?(l=[l,c],s=l):(r=s,s=e),s!==e?(b=t,t=wze(n,s)):(r=t,t=e)):(r=t,t=e),t}function TIt(){var t,n,s,l;return t=Swt(),t===e&&(t=r,n=K1t(),n!==e?(s=r,m++,l=Oe(),m--,l!==e?(r=s,s=void 0):s=e,s!==e?(b=t,t=Rze(n)):(r=t,t=e)):(r=t,t=e)),t}function IIt(){var t,n,s,l,c,h,T;return t=r,n=r,s=et(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=Lr(),s!==e?(l=r,c=I(),h=Ci(),h!==e?(c=[c,h],l=c):(r=l,l=e),l!==e?(c=r,h=I(),T=AIt(),T!==e?(h=[h,T],c=h):(r=c,c=e),c===e&&(c=null),b=t,t=_ze(n,s,l,c)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function AIt(){var t,n,s,l,c,h,T;return t=r,n=r,m++,s=Oe(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=r,l=d_t(),l!==e?(c=I(),l=[l,c],s=l):(r=s,s=e),s!==e?(l=et(),l!==e?(c=r,h=I(),T=bIt(),T!==e?(h=[h,T],c=h):(r=c,c=e),c===e&&(c=null),b=t,t=gze(s,l,c)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function bIt(){var t,n,s,l,c,h,T,_;return t=r,n=r,s=N8(),s!==e?(l=I(),c=Xl(),c!==e?(h=I(),T=Tg(),T!==e?(_=I(),s=[s,l,c,h,T,_],n=s):(r=n,n=e)):(r=n,n=e)):(r=n,n=e),n!==e?(s=nr(),s!==e?(b=t,t=Dze(n,s)):(r=t,t=e)):(r=t,t=e),t}function wIt(){var t,n,s,l,c;return t=r,n=Fq(),n!==e?(s=r,l=I(),c=DAt(),c!==e?(l=[l,c],s=l):(r=s,s=e),s!==e?(b=t,t=Oze(n,s)):(r=t,t=e)):(r=t,t=e),t}function RIt(){var t,n,s,l,c,h,T,_;if(t=r,n=_It(),n!==e){for(s=[],l=r,c=I(),o.charCodeAt(r)===44?(h=A,r++):(h=e,m===0&&C(ge)),h!==e?(T=I(),_=nr(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);l!==e;)s.push(l),l=r,c=I(),o.charCodeAt(r)===44?(h=A,r++):(h=e,m===0&&C(ge)),h!==e?(T=I(),_=nr(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);b=t,t=Cze(n,s)}else r=t,t=e;return t}function _It(){var t,n;return t=r,n=ju(),n===e&&(n=gv(),n===e&&(n=av(),n===e&&(n=N_()))),n!==e&&(b=t,n=$ze(n)),t=n,t}function gIt(){var t,n,s,l;return t=r,n=r,s=e_t(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=aAt(),s!==e?(b=t,t=Pze(n,s)):(r=t,t=e)):(r=t,t=e),t}function DIt(){var t,n,s,l,c,h;return t=r,n=OIt(),n!==e?(s=r,l=I(),c=gs(),c!==e?(h=I(),l=[l,c,h],s=l):(r=s,s=e),s!==e?(l=et(),l!==e?(b=t,t=Nze(n,s,l)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function OIt(){var t,n,s;return t=r,n=r,m++,s=Be(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=q0(),s!==e?(b=t,t=Vze(s)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=r,m++,s=Oe(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=CIt(),s!==e?(b=t,t=Lze(s)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=r,m++,s=ye(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=PIt(),s!==e?(b=t,t=Mze(s)):(r=t,t=e)):(r=t,t=e))),t}function CIt(){var t,n;return t=VIt(),t===e&&(t=r,n=$It(),n!==e&&(b=t,n=Bze(n)),t=n),t}function $It(){var t;return t=Lq(),t===e&&(t=cgt(),t===e&&(t=dg(),t===e&&(t=K_(),t===e&&(t=M_(),t===e&&(t=hRt(),t===e&&(t=__(),t===e&&(t=yRt(),t===e&&(t=V_t(),t===e&&(t=q_(),t===e&&(t=eg(),t===e&&(t=Vv(),t===e&&(t=_q(),t===e&&(t=pv(),t===e&&(t=Xl(),t===e&&(t=Nv()))))))))))))))),t}function PIt(){var t,n;return t=r,n=NIt(),n!==e&&(b=t,n=Uze(n)),t=n,t}function NIt(){var t;return t=Kwt(),t===e&&(t=__(),t===e&&(t=vRt(),t===e&&(t=$Rt(),t===e&&(t=PRt(),t===e&&(t=SRt(),t===e&&(t=M_(),t===e&&(t=P_t(),t===e&&(t=_q(),t===e&&(t=B_t(),t===e&&(t=dgt(),t===e&&(t=ugt(),t===e&&(t=pgt(),t===e&&(t=K_(),t===e&&(t=q_(),t===e&&(t=eg(),t===e&&(t=dg(),t===e&&(t=CDt(),t===e&&(t=$Dt(),t===e&&(t=PDt(),t===e&&(t=Nv(),t===e&&(t=Vv()))))))))))))))))))))),t}function VIt(){var t,n,s,l;return t=r,n=r,s=Nv(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=PAt(),s!==e?(b=t,t=jze(n,s)):(r=t,t=e)):(r=t,t=e),t}function LIt(){var t;return t=EDt(),t===e&&(t=Tgt(),t===e&&(t=BDt(),t===e&&(t=WDt(),t===e&&(t=ODt(),t===e&&(t=u_t(),t===e&&(t=Z1t())))))),t}function $f(){var t,n,s,l,c;return t=r,n=MIt(),n!==e?(s=r,l=I(),c=k0(),c!==e?(l=[l,c],s=l):(r=s,s=e),s!==e?(b=t,t=xze(n,s)):(r=t,t=e)):(r=t,t=e),t===e&&(t=t_()),t}function k0(){var t,n,s,l,c,h;return t=r,n=lAt(),n!==e?(s=r,l=I(),c=HIt(),c!==e?(l=[l,c],s=l):(r=s,s=e),s===e&&(s=null),l=r,c=I(),h=WIt(),h!==e?(c=[c,h],l=c):(r=l,l=e),l===e&&(l=null),b=t,t=Fze(n,s,l)):(r=t,t=e),t}function MIt(){var t;return t=Ge(),t===e&&(t=Re(),t===e&&(t=U9())),t}function U9(){var t,n,s;return t=r,n=r,m++,s=Be(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=BIt(),s!==e?(b=t,t=Gze(s)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=r,m++,s=Oe(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=UIt(),s!==e?(b=t,t=Sze(s)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=r,m++,s=ye(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=jIt(),s!==e?(b=t,t=Kze(s)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=r,m++,s=tt(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=xIt(),s!==e?(b=t,t=kze(s)):(r=t,t=e)):(r=t,t=e)))),t}function BIt(){var t;return t=Pv(),t===e&&(t=aRt(),t===e&&(t=wRt(),t===e&&(t=n_t(),t===e&&(t=j_t(),t===e&&(t=F_t(),t===e&&(t=G_t(),t===e&&(t=Ugt(),t===e&&(t=jgt(),t===e&&(t=a1t(),t===e&&(t=A1t(),t===e&&(t=x1t(),t===e&&(t=Uu(),t===e&&(t=Iv(),t===e&&(t=_v())))))))))))))),t}function UIt(){var t;return t=Iv(),t===e&&(t=_v(),t===e&&(t=E_(),t===e&&(t=ya(),t===e&&(t=Uu(),t===e&&(t=hq()))))),t}function jIt(){var t;return t=Y8(),t===e&&(t=z8(),t===e&&(t=x_(),t===e&&(t=F_(),t===e&&(t=W8(),t===e&&(t=_v(),t===e&&(t=Iv())))))),t}function xIt(){var t;return t=fq(),t===e&&(t=Jl(),t===e&&(t=Ks())),t}function t_(){var t,n,s,l,c,h;return t=r,n=FIt(),n!==e?(s=r,m++,l=r,c=I(),o.charCodeAt(r)===40?(h=Et,r++):(h=e,m===0&&C(Tt)),h!==e?(c=[c,h],l=c):(r=l,l=e),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=qze(n)):(r=t,t=e)):(r=t,t=e),t}function FIt(){var t,n;return t=r,n=lRt(),n===e&&(n=Y8(),n===e&&(n=z8(),n===e&&(n=GIt(),n===e&&(n=SIt(),n===e&&(n=KIt()))))),n!==e&&(b=t,n=Zze(n)),t=n,t}function GIt(){var t,n,s,l;return t=r,n=dRt(),n!==e?(s=r,m++,l=Oe(),m--,l!==e?(r=s,s=void 0):s=e,s!==e?(b=t,t=Jze(n)):(r=t,t=e)):(r=t,t=e),t}function SIt(){var t,n,s,l;return t=r,n=x_(),n===e&&(n=F_(),n===e&&(n=b_())),n!==e?(s=r,m++,l=Be(),m--,l!==e?(r=s,s=void 0):s=e,s!==e?(b=t,t=Hze(n)):(r=t,t=e)):(r=t,t=e),t}function KIt(){var t,n,s,l;return t=r,n=x_(),n===e&&(n=F_(),n===e&&(n=oRt(),n===e&&(n=H8(),n===e&&(n=W8(),n===e&&(n=b_(),n===e&&(n=Fo(),n===e&&(n=Xq(),n===e&&(n=bDt())))))))),n!==e?(s=r,m++,l=ye(),m--,l!==e?(r=s,s=void 0):s=e,s!==e?(b=t,t=Wze(n)):(r=t,t=e)):(r=t,t=e),t}function kIt(){var t,n,s,l,c,h,T,_,x;return t=r,n=r,s=ln(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n===e&&(n=null),s=qIt(),s!==e?(l=r,c=I(),h=ju(),h===e&&(h=P1t()),h!==e?(T=I(),_=Hl(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e),l===e&&(l=null),c=r,h=I(),T=If(),T!==e?(h=[h,T],c=h):(r=c,c=e),c===e&&(c=null),h=r,T=I(),_=h0(),_!==e?(T=[T,_],h=T):(r=h,h=e),h===e&&(h=null),T=r,_=I(),x=YIt(),x!==e?(_=[_,x],T=_):(r=T,T=e),T===e&&(T=null),b=t,t=Yze(n,s,l,c,h,T)):(r=t,t=e),t}function qIt(){var t,n,s,l,c,h,T,_;if(t=r,n=ZIt(),n!==e){for(s=[],l=r,c=I(),o.charCodeAt(r)===44?(h=A,r++):(h=e,m===0&&C(ge)),h!==e?(T=I(),_=j9(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);l!==e;)s.push(l),l=r,c=I(),o.charCodeAt(r)===44?(h=A,r++):(h=e,m===0&&C(ge)),h!==e?(T=I(),_=j9(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);b=t,t=zze(n,s)}else r=t,t=e;return t===e&&(t=r,n=r,m++,o.length>r?(s=o.charAt(r),r++):(s=e,m===0&&C(Ui)),m--,s!==e?(r=n,n=void 0):n=e,n!==e&&(b=t,n=Xze()),t=n),t}function ZIt(){var t,n,s;return t=r,n=r,m++,s=Oe(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=ak(),s!==e?(b=t,t=Qze(s)):(r=t,t=e)):(r=t,t=e),t===e&&(t=Ow(),t===e&&(t=x9(),t===e&&(t=et(),t===e&&(t=Bl())))),t}function j9(){var t,n,s;return t=r,n=r,m++,s=Oe(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=ak(),s!==e?(b=t,t=eXe(s)):(r=t,t=e)):(r=t,t=e),t===e&&(t=x9(),t===e&&(t=et())),t}function x9(){var t,n,s,l,c,h;return t=r,n=r,s=Re(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=JIt(),s!==e?(l=r,c=I(),h=et(),h!==e?(c=[c,h],l=c):(r=l,l=e),l!==e?(c=r,m++,h=Oe(),m--,h!==e?(r=c,c=void 0):c=e,c===e&&(c=r,m++,h=ye(),m--,h!==e?(r=c,c=void 0):c=e),c!==e?(b=t,t=tXe(n,s,l)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function JIt(){var t,n,s,l;return o.substr(r,2)===nK?(t=nK,r+=2):(t=e,m===0&&C(PNe)),t===e&&(t=r,o.substr(r,2)===ue?(n=ue,r+=2):(n=e,m===0&&C($K)),n!==e?(s=r,m++,l=ye(),m--,l!==e?(r=s,s=void 0):s=e,s!==e?(b=t,t=rXe(n)):(r=t,t=e)):(r=t,t=e)),t}function HIt(){var t,n,s,l,c;return t=r,n=r,m++,s=tt(),m--,s!==e?(r=n,n=void 0):n=e,n===e&&(n=r,m++,s=ye(),m--,s!==e?(r=n,n=void 0):n=e),n!==e?(s=r,l=uq(),l!==e?(c=I(),l=[l,c],s=l):(r=s,s=e),s!==e?(l=NAt(),l!==e?(b=t,t=iXe(s,l)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function WIt(){var t,n,s,l;return t=r,n=r,s=zgt(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=W9(),s===e&&(s=Re()),s!==e?(b=t,t=sXe(n,s)):(r=t,t=e)):(r=t,t=e),t}function YIt(){var t,n,s,l,c,h;return t=r,n=r,s=yq(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=fgt(),s===e&&(s=egt()),s!==e?(l=r,c=I(),h=et(),h!==e?(c=[c,h],l=c):(r=l,l=e),l!==e?(b=t,t=nXe(n,s,l)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function zIt(){var t,n,s,l,c,h,T,_;if(t=r,n=T_(),n!==e){if(s=r,l=I(),c=et(),c!==e?(l=[l,c],s=l):(r=s,s=e),s===e&&(s=null),l=[],c=r,h=I(),T=F9(),T!==e?(h=[h,T],c=h):(r=c,c=e),c!==e)for(;c!==e;)l.push(c),c=r,h=I(),T=F9(),T!==e?(h=[h,T],c=h):(r=c,c=e);else l=e;l!==e?(c=r,h=I(),T=XIt(),T!==e?(h=[h,T],c=h):(r=c,c=e),c===e&&(c=null),h=r,T=I(),_=ma(),_!==e?(T=[T,_],h=T):(r=h,h=e),h!==e?(b=t,t=aXe(n,s,l,c,h)):(r=t,t=e)):(r=t,t=e)}else r=t,t=e;return t}function F9(){var t,n,s,l,c,h,T;return t=r,n=eh(),n!==e?(s=r,l=I(),c=et(),c!==e?(h=I(),l=[l,c,h],s=l):(r=s,s=e),s!==e?(l=ku(),l!==e?(c=r,h=I(),T=et(),T!==e?(h=[h,T],c=h):(r=c,c=e),c!==e?(b=t,t=oXe(n,s,l,c)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function XIt(){var t,n,s,l,c;return t=r,n=D_(),n!==e?(s=r,l=I(),c=et(),c!==e?(l=[l,c],s=l):(r=s,s=e),s!==e?(b=t,t=lXe(n,s)):(r=t,t=e)):(r=t,t=e),t}function QIt(){var t,n,s,l,c,h;return t=r,n=Fu(),n!==e?(s=r,l=I(),c=et(),c!==e?(h=I(),l=[l,c,h],s=l):(r=s,s=e),s!==e?(l=eAt(),l===e&&(l=q0()),l!==e?(b=t,t=dXe(n,s,l)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function eAt(){var t,n,s,l,c,h;return t=r,n=q0(),n!==e?(s=r,l=I(),c=ci(),c!==e?(h=I(),l=[l,c,h],s=l):(r=s,s=e),s!==e?(l=q0(),l!==e?(b=t,t=uXe(n,s,l)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function q0(){var t,n;return t=r,n=Z0(),n!==e&&(b=t,n=cXe(n)),t=n,t}function Z0(){var t,n,s,l;return t=Vv(),t===e&&(t=q_(),t===e&&(t=__(),t===e&&(t=M_(),t===e&&(t=K_(),t===e&&(t=dg(),t===e&&(t=r,n=tAt(),n!==e?(s=r,m++,l=Be(),m--,l!==e?(r=s,s=void 0):s=e,s!==e?(b=t,t=pXe(n)):(r=t,t=e)):(r=t,t=e))))))),t}function tAt(){var t;return t=eg(),t===e&&(t=Nv(),t===e&&(t=Lq(),t===e&&(t=J1t(),t===e&&(t=ygt(),t===e&&(t=mgt(),t===e&&(t=v_t(),t===e&&(t=T_t(),t===e&&(t=E_t(),t===e&&(t=cRt(),t===e&&(t=fRt(),t===e&&(t=pRt(),t===e&&(t=uRt(),t===e&&(t=XDt()))))))))))))),t}function rAt(){var t,n,s,l,c;return t=r,n=P_(),n!==e?(s=r,l=I(),c=Ga(),c!==e?(l=[l,c],s=l):(r=s,s=e),s!==e?(b=t,t=fXe(n,s)):(r=t,t=e)):(r=t,t=e),t}function G9(){var t,n,s,l,c;return t=r,n=r,o.charCodeAt(r)===63?(s=nw,r++):(s=e,m===0&&C(vw)),s!==e?(l=Fs(),l!==e?(b=r,c=hXe(),c?c=void 0:c=e,c!==e?(s=[s,l,c],n=s):(r=n,n=e)):(r=n,n=e)):(r=n,n=e),n===e&&(n=r,o.charCodeAt(r)===63?(s=nw,r++):(s=e,m===0&&C(vw)),s!==e?(b=r,l=yXe(),l?l=void 0:l=e,l!==e?(s=[s,l],n=s):(r=n,n=e)):(r=n,n=e),n===e&&(n=r,o.charCodeAt(r)===58?(s=G,r++):(s=e,m===0&&C(Nl)),s!==e?(l=Cn(),l!==e?(b=r,c=mXe(),c?c=void 0:c=e,c!==e?(s=[s,l,c],n=s):(r=n,n=e)):(r=n,n=e)):(r=n,n=e),n===e&&(n=r,o.charCodeAt(r)===36?(s=en,r++):(s=e,m===0&&C(rn)),s!==e?(l=Fs(),l!==e?(b=r,c=vXe(),c?c=void 0:c=e,c!==e?(s=[s,l,c],n=s):(r=n,n=e)):(r=n,n=e)):(r=n,n=e),n===e&&(n=r,o.charCodeAt(r)===36?(s=en,r++):(s=e,m===0&&C(rn)),s!==e?(l=Cn(),l!==e?(b=r,c=EXe(),c?c=void 0:c=e,c!==e?(s=[s,l,c],n=s):(r=n,n=e)):(r=n,n=e)):(r=n,n=e),n===e&&(n=r,o.charCodeAt(r)===64?(s=iu,r++):(s=e,m===0&&C(pu)),s!==e?(l=Cn(),l!==e?(b=r,c=TXe(),c?c=void 0:c=e,c!==e?(s=[s,l,c],n=s):(r=n,n=e)):(r=n,n=e)):(r=n,n=e),n===e&&(n=r,o.charCodeAt(r)===64?(s=iu,r++):(s=e,m===0&&C(pu)),s!==e?(l=l8(),l!==e?(b=r,c=IXe(),c?c=void 0:c=e,c!==e?(s=[s,l,c],n=s):(r=n,n=e)):(r=n,n=e)):(r=n,n=e))))))),n!==e&&(b=t,n=AXe()),t=n,t}function iAt(){var t,n,s,l,c,h;return t=r,o.charCodeAt(r)===40?(n=Et,r++):(n=e,m===0&&C(Tt)),n!==e?(s=I(),l=IIt(),l!==e?(c=I(),o.charCodeAt(r)===41?(h=It,r++):(h=e,m===0&&C(At)),h!==e?(b=t,t=bXe(s,l,c)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function Ga(){var t,n,s,l,c,h;return t=r,o.charCodeAt(r)===40?(n=Et,r++):(n=e,m===0&&C(Tt)),n!==e?(s=I(),l=Bl(),l!==e?(c=I(),o.charCodeAt(r)===41?(h=It,r++):(h=e,m===0&&C(At)),h!==e?(b=t,t=wXe(s,l,c)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function sAt(){var t,n,s,l,c,h;return t=r,o.charCodeAt(r)===40?(n=Et,r++):(n=e,m===0&&C(Tt)),n!==e?(s=I(),l=fht(),l!==e?(c=I(),o.charCodeAt(r)===41?(h=It,r++):(h=e,m===0&&C(At)),h!==e?(b=t,t=RXe(s,l,c)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function on(){var t,n,s,l,c,h;return t=r,o.charCodeAt(r)===40?(n=Et,r++):(n=e,m===0&&C(Tt)),n!==e?(s=I(),l=r8(),l!==e?(c=I(),o.charCodeAt(r)===41?(h=It,r++):(h=e,m===0&&C(At)),h!==e?(b=t,t=_Xe(s,l,c)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function nAt(){var t,n,s,l,c,h;return t=r,o.charCodeAt(r)===40?(n=Et,r++):(n=e,m===0&&C(Tt)),n!==e?(s=I(),l=Ge(),l!==e?(c=I(),o.charCodeAt(r)===41?(h=It,r++):(h=e,m===0&&C(At)),h!==e?(b=t,t=gXe(s,l,c)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function Sa(){var t,n,s,l,c,h;return t=r,o.charCodeAt(r)===40?(n=Et,r++):(n=e,m===0&&C(Tt)),n!==e?(s=I(),l=et(),l!==e?(c=I(),o.charCodeAt(r)===41?(h=It,r++):(h=e,m===0&&C(At)),h!==e?(b=t,t=DXe(s,l,c)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function aAt(){var t,n,s,l,c,h;return t=r,o.charCodeAt(r)===40?(n=Et,r++):(n=e,m===0&&C(Tt)),n!==e?(s=I(),l=DIt(),l!==e?(c=I(),o.charCodeAt(r)===41?(h=It,r++):(h=e,m===0&&C(At)),h!==e?(b=t,t=OXe(s,l,c)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function oAt(){var t,n,s,l,c,h;return t=r,o.charCodeAt(r)===40?(n=Et,r++):(n=e,m===0&&C(Tt)),n!==e?(s=I(),l=sIt(),l!==e?(c=I(),o.charCodeAt(r)===41?(h=It,r++):(h=e,m===0&&C(At)),h!==e?(b=t,t=CXe(s,l,c)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function lAt(){var t,n,s,l,c,h;return t=r,o.charCodeAt(r)===40?(n=Et,r++):(n=e,m===0&&C(Tt)),n!==e?(s=I(),l=kIt(),l!==e?(c=I(),o.charCodeAt(r)===41?(h=It,r++):(h=e,m===0&&C(At)),h!==e?(b=t,t=$Xe(s,l,c)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function dAt(){var t,n,s,l,c,h;return t=r,o.charCodeAt(r)===40?(n=Et,r++):(n=e,m===0&&C(Tt)),n!==e?(s=I(),l=Pw(),l!==e?(c=I(),o.charCodeAt(r)===41?(h=It,r++):(h=e,m===0&&C(At)),h!==e?(b=t,t=PXe(s,l,c)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function uAt(){var t,n,s,l,c,h;return t=r,o.charCodeAt(r)===40?(n=Et,r++):(n=e,m===0&&C(Tt)),n!==e?(s=I(),l=VAt(),l!==e?(c=I(),o.charCodeAt(r)===41?(h=It,r++):(h=e,m===0&&C(At)),h!==e?(b=t,t=NXe(s,l,c)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function S9(){var t,n,s,l,c,h;return t=r,o.charCodeAt(r)===40?(n=Et,r++):(n=e,m===0&&C(Tt)),n!==e?(s=I(),l=LAt(),l!==e?(c=I(),o.charCodeAt(r)===41?(h=It,r++):(h=e,m===0&&C(At)),h!==e?(b=t,t=VXe(s,l,c)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function cAt(){var t,n,s,l,c,h;return t=r,o.charCodeAt(r)===40?(n=Et,r++):(n=e,m===0&&C(Tt)),n!==e?(s=I(),l=BAt(),l!==e?(c=I(),o.charCodeAt(r)===41?(h=It,r++):(h=e,m===0&&C(At)),h!==e?(b=t,t=LXe(s,l,c)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function ji(){var t,n,s,l,c,h;return t=r,o.charCodeAt(r)===40?(n=Et,r++):(n=e,m===0&&C(Tt)),n!==e?(s=I(),l=s_(),l!==e?(c=I(),o.charCodeAt(r)===41?(h=It,r++):(h=e,m===0&&C(At)),h!==e?(b=t,t=MXe(s,l,c)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function wu(){var t,n,s,l,c,h;return t=r,o.charCodeAt(r)===40?(n=Et,r++):(n=e,m===0&&C(Tt)),n!==e?(s=I(),l=GAt(),l!==e?(c=I(),o.charCodeAt(r)===41?(h=It,r++):(h=e,m===0&&C(At)),h!==e?(b=t,t=BXe(s,l,c)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function pAt(){var t,n,s,l,c,h;return t=r,o.charCodeAt(r)===40?(n=Et,r++):(n=e,m===0&&C(Tt)),n!==e?(s=I(),l=kAt(),l!==e?(c=I(),o.charCodeAt(r)===41?(h=It,r++):(h=e,m===0&&C(At)),h!==e?(b=t,t=UXe(s,l,c)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function K9(){var t,n,s,l,c,h;return t=r,o.charCodeAt(r)===40?(n=Et,r++):(n=e,m===0&&C(Tt)),n!==e?(s=I(),l=xi(),l!==e?(c=I(),o.charCodeAt(r)===41?(h=It,r++):(h=e,m===0&&C(At)),h!==e?(b=t,t=jXe(s,l,c)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function k9(){var t,n,s,l,c,h;return t=r,o.charCodeAt(r)===40?(n=Et,r++):(n=e,m===0&&C(Tt)),n!==e?(s=I(),l=ZAt(),l!==e?(c=I(),o.charCodeAt(r)===41?(h=It,r++):(h=e,m===0&&C(At)),h!==e?(b=t,t=xXe(s,l,c)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function fAt(){var t,n,s,l,c,h;return t=r,o.charCodeAt(r)===40?(n=Et,r++):(n=e,m===0&&C(Tt)),n!==e?(s=I(),l=JAt(),l!==e?(c=I(),o.charCodeAt(r)===41?(h=It,r++):(h=e,m===0&&C(At)),h!==e?(b=t,t=FXe(s,l,c)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function fa(){var t,n,s,l,c,h;return t=r,o.charCodeAt(r)===40?(n=Et,r++):(n=e,m===0&&C(Tt)),n!==e?(s=I(),l=_u(),l!==e?(c=I(),o.charCodeAt(r)===41?(h=It,r++):(h=e,m===0&&C(At)),h!==e?(b=t,t=GXe(s,l,c)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function r_(){var t,n,s,l,c,h;return t=r,o.charCodeAt(r)===40?(n=Et,r++):(n=e,m===0&&C(Tt)),n!==e?(s=I(),l=HAt(),l!==e?(c=I(),o.charCodeAt(r)===41?(h=It,r++):(h=e,m===0&&C(At)),h!==e?(b=t,t=SXe(s,l,c)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function Ru(){var t,n,s,l,c,h;return t=r,o.charCodeAt(r)===40?(n=Et,r++):(n=e,m===0&&C(Tt)),n!==e?(s=I(),l=WAt(),l!==e?(c=I(),o.charCodeAt(r)===41?(h=It,r++):(h=e,m===0&&C(At)),h!==e?(b=t,t=KXe(s,l,c)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function hAt(){var t,n,s,l,c,h;return t=r,o.charCodeAt(r)===40?(n=Et,r++):(n=e,m===0&&C(Tt)),n!==e?(s=I(),l=X9(),l!==e?(c=I(),o.charCodeAt(r)===41?(h=It,r++):(h=e,m===0&&C(At)),h!==e?(b=t,t=kXe(s,l,c)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function Gl(){var t,n,s,l,c,h;return t=r,o.charCodeAt(r)===40?(n=Et,r++):(n=e,m===0&&C(Tt)),n!==e?(s=I(),l=ri(),l!==e?(c=I(),o.charCodeAt(r)===41?(h=It,r++):(h=e,m===0&&C(At)),h!==e?(b=t,t=qXe(s,l,c)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function Pf(){var t,n,s,l,c,h;return t=r,o.charCodeAt(r)===40?(n=Et,r++):(n=e,m===0&&C(Tt)),n!==e?(s=I(),l=zAt(),l!==e?(c=I(),o.charCodeAt(r)===41?(h=It,r++):(h=e,m===0&&C(At)),h!==e?(b=t,t=ZXe(s,l,c)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function yAt(){var t,n,s,l,c,h;return t=r,o.charCodeAt(r)===40?(n=Et,r++):(n=e,m===0&&C(Tt)),n!==e?(s=I(),l=XAt(),l!==e?(c=I(),o.charCodeAt(r)===41?(h=It,r++):(h=e,m===0&&C(At)),h!==e?(b=t,t=JXe(s,l,c)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function mAt(){var t,n,s,l,c,h;return t=r,o.charCodeAt(r)===40?(n=Et,r++):(n=e,m===0&&C(Tt)),n!==e?(s=I(),l=QAt(),l!==e?(c=I(),o.charCodeAt(r)===41?(h=It,r++):(h=e,m===0&&C(At)),h!==e?(b=t,t=HXe(s,l,c)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function q9(){var t,n,s,l,c,h;return t=r,o.charCodeAt(r)===40?(n=Et,r++):(n=e,m===0&&C(Tt)),n!==e?(s=I(),l=tbt(),l!==e?(c=I(),o.charCodeAt(r)===41?(h=It,r++):(h=e,m===0&&C(At)),h!==e?(b=t,t=WXe(s,l,c)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function vAt(){var t,n,s,l,c,h;return t=r,o.charCodeAt(r)===40?(n=Et,r++):(n=e,m===0&&C(Tt)),n!==e?(s=I(),l=rbt(),l!==e?(c=I(),o.charCodeAt(r)===41?(h=It,r++):(h=e,m===0&&C(At)),h!==e?(b=t,t=YXe(s,l,c)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function EAt(){var t,n,s,l,c,h;return t=r,o.charCodeAt(r)===40?(n=Et,r++):(n=e,m===0&&C(Tt)),n!==e?(s=I(),l=ibt(),l!==e?(c=I(),o.charCodeAt(r)===41?(h=It,r++):(h=e,m===0&&C(At)),h!==e?(b=t,t=zXe(s,l,c)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function Z9(){var t,n,s,l,c,h;return t=r,o.charCodeAt(r)===40?(n=Et,r++):(n=e,m===0&&C(Tt)),n!==e?(s=I(),l=sbt(),l!==e?(c=I(),o.charCodeAt(r)===41?(h=It,r++):(h=e,m===0&&C(At)),h!==e?(b=t,t=XXe(s,l,c)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function TAt(){var t,n,s,l,c,h;return t=r,o.charCodeAt(r)===40?(n=Et,r++):(n=e,m===0&&C(Tt)),n!==e?(s=I(),l=nbt(),l!==e?(c=I(),o.charCodeAt(r)===41?(h=It,r++):(h=e,m===0&&C(At)),h!==e?(b=t,t=QXe(s,l,c)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function J9(){var t,n,s,l,c,h;return t=r,o.charCodeAt(r)===40?(n=Et,r++):(n=e,m===0&&C(Tt)),n!==e?(s=I(),l=n_(),l!==e?(c=I(),o.charCodeAt(r)===41?(h=It,r++):(h=e,m===0&&C(At)),h!==e?(b=t,t=eQe(s,l,c)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function IAt(){var t,n,s,l,c,h;return t=r,o.charCodeAt(r)===40?(n=Et,r++):(n=e,m===0&&C(Tt)),n!==e?(s=I(),l=ubt(),l!==e?(c=I(),o.charCodeAt(r)===41?(h=It,r++):(h=e,m===0&&C(At)),h!==e?(b=t,t=tQe(s,l,c)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function i_(){var t,n,s,l,c,h;return t=r,o.charCodeAt(r)===40?(n=Et,r++):(n=e,m===0&&C(Tt)),n!==e?(s=I(),l=cbt(),l!==e?(c=I(),o.charCodeAt(r)===41?(h=It,r++):(h=e,m===0&&C(At)),h!==e?(b=t,t=rQe(s,l,c)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function AAt(){var t,n,s,l,c,h;return t=r,o.charCodeAt(r)===40?(n=Et,r++):(n=e,m===0&&C(Tt)),n!==e?(s=I(),l=pbt(),l!==e?(c=I(),o.charCodeAt(r)===41?(h=It,r++):(h=e,m===0&&C(At)),h!==e?(b=t,t=iQe(s,l,c)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function bAt(){var t,n,s,l,c,h;return t=r,o.charCodeAt(r)===40?(n=Et,r++):(n=e,m===0&&C(Tt)),n!==e?(s=I(),l=t8(),l!==e?(c=I(),o.charCodeAt(r)===41?(h=It,r++):(h=e,m===0&&C(At)),h!==e?(b=t,t=sQe(s,l,c)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function wAt(){var t,n,s,l,c,h;return t=r,o.charCodeAt(r)===40?(n=Et,r++):(n=e,m===0&&C(Tt)),n!==e?(s=I(),l=vbt(),l!==e?(c=I(),o.charCodeAt(r)===41?(h=It,r++):(h=e,m===0&&C(At)),h!==e?(b=t,t=nQe(s,l,c)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function RAt(){var t,n,s,l,c,h;return t=r,o.charCodeAt(r)===40?(n=Et,r++):(n=e,m===0&&C(Tt)),n!==e?(s=I(),l=Vht(),l!==e?(c=I(),o.charCodeAt(r)===41?(h=It,r++):(h=e,m===0&&C(At)),h!==e?(b=t,t=aQe(s,l,c)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function _At(){var t,n,s,l,c,h;return t=r,o.charCodeAt(r)===40?(n=Et,r++):(n=e,m===0&&C(Tt)),n!==e?(s=I(),l=oIt(),l!==e?(c=I(),o.charCodeAt(r)===41?(h=It,r++):(h=e,m===0&&C(At)),h!==e?(b=t,t=oQe(s,l,c)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function gAt(){var t,n,s,l,c,h;return t=r,o.charCodeAt(r)===40?(n=Et,r++):(n=e,m===0&&C(Tt)),n!==e?(s=I(),l=r9(),l!==e?(c=I(),o.charCodeAt(r)===41?(h=It,r++):(h=e,m===0&&C(At)),h!==e?(b=t,t=lQe(s,l,c)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function DAt(){var t,n,s,l,c,h;return t=r,o.charCodeAt(r)===40?(n=Et,r++):(n=e,m===0&&C(Tt)),n!==e?(s=I(),l=RIt(),l!==e?(c=I(),o.charCodeAt(r)===41?(h=It,r++):(h=e,m===0&&C(At)),h!==e?(b=t,t=dQe(s,l,c)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function H9(){var t,n,s,l,c,h;return t=r,o.charCodeAt(r)===40?(n=Et,r++):(n=e,m===0&&C(Tt)),n!==e?(s=I(),l=q0t(),l!==e?(c=I(),o.charCodeAt(r)===41?(h=It,r++):(h=e,m===0&&C(At)),h!==e?(b=t,t=uQe(s,l,c)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function OAt(){var t,n,s,l,c,h;return t=r,o.charCodeAt(r)===40?(n=Et,r++):(n=e,m===0&&C(Tt)),n!==e?(s=I(),l=nr(),l!==e?(c=I(),o.charCodeAt(r)===41?(h=It,r++):(h=e,m===0&&C(At)),h!==e?(b=t,t=cQe(s,l,c)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function CAt(){var t,n,s,l,c,h;return t=r,o.charCodeAt(r)===40?(n=Et,r++):(n=e,m===0&&C(Tt)),n!==e?(s=I(),l=Lht(),l!==e?(c=I(),o.charCodeAt(r)===41?(h=It,r++):(h=e,m===0&&C(At)),h!==e?(b=t,t=pQe(s,l,c)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function $At(){var t,n,s,l,c,h;return t=r,o.charCodeAt(r)===40?(n=Et,r++):(n=e,m===0&&C(Tt)),n!==e?(s=I(),l=Jyt(),l!==e?(c=I(),o.charCodeAt(r)===41?(h=It,r++):(h=e,m===0&&C(At)),h!==e?(b=t,t=fQe(s,l,c)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function PAt(){var t,n,s,l,c,h;return t=r,o.charCodeAt(r)===40?(n=Et,r++):(n=e,m===0&&C(Tt)),n!==e?(s=I(),l=LIt(),l!==e?(c=I(),o.charCodeAt(r)===41?(h=It,r++):(h=e,m===0&&C(At)),h!==e?(b=t,t=hQe(s,l,c)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function NAt(){var t,n,s,l,c,h;return t=r,o.charCodeAt(r)===40?(n=Et,r++):(n=e,m===0&&C(Tt)),n!==e?(s=I(),l=xa(),l!==e?(c=I(),o.charCodeAt(r)===41?(h=It,r++):(h=e,m===0&&C(At)),h!==e?(b=t,t=yQe(s,l,c)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function W9(){var t,n,s,l,c,h;return t=r,o.charCodeAt(r)===40?(n=Et,r++):(n=e,m===0&&C(Tt)),n!==e?(s=I(),l=Wht(),c=I(),o.charCodeAt(r)===41?(h=It,r++):(h=e,m===0&&C(At)),h!==e?(b=t,t=mQe(s,l,c)):(r=t,t=e)):(r=t,t=e),t}function VAt(){var t,n,s,l,c,h,T,_;if(t=r,n=a_(),n!==e){for(s=[],l=r,c=I(),o.charCodeAt(r)===44?(h=A,r++):(h=e,m===0&&C(ge)),h!==e?(T=I(),_=a_(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);l!==e;)s.push(l),l=r,c=I(),o.charCodeAt(r)===44?(h=A,r++):(h=e,m===0&&C(ge)),h!==e?(T=I(),_=a_(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);b=t,t=vQe(n,s)}else r=t,t=e;return t}function LAt(){var t,n,s,l,c,h,T,_;if(t=r,n=l_(),n!==e){for(s=[],l=r,c=I(),o.charCodeAt(r)===44?(h=A,r++):(h=e,m===0&&C(ge)),h!==e?(T=I(),_=l_(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);l!==e;)s.push(l),l=r,c=I(),o.charCodeAt(r)===44?(h=A,r++):(h=e,m===0&&C(ge)),h!==e?(T=I(),_=l_(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);b=t,t=EQe(n,s)}else r=t,t=e;return t}function MAt(){var t,n,s,l,c,h,T,_;if(t=r,n=J0(),n!==e){for(s=[],l=r,c=I(),o.charCodeAt(r)===44?(h=A,r++):(h=e,m===0&&C(ge)),h!==e?(T=I(),_=J0(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);l!==e;)s.push(l),l=r,c=I(),o.charCodeAt(r)===44?(h=A,r++):(h=e,m===0&&C(ge)),h!==e?(T=I(),_=J0(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);b=t,t=TQe(n,s)}else r=t,t=e;return t}function BAt(){var t,n,s,l,c,h,T,_;if(t=r,n=d_(),n!==e){for(s=[],l=r,c=I(),o.charCodeAt(r)===44?(h=A,r++):(h=e,m===0&&C(ge)),h!==e?(T=I(),_=d_(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);l!==e;)s.push(l),l=r,c=I(),o.charCodeAt(r)===44?(h=A,r++):(h=e,m===0&&C(ge)),h!==e?(T=I(),_=d_(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);b=t,t=IQe(n,s)}else r=t,t=e;return t}function UAt(){var t,n,s,l,c,h,T,_;if(t=r,n=gu(),n!==e){for(s=[],l=r,c=I(),o.charCodeAt(r)===44?(h=A,r++):(h=e,m===0&&C(ge)),h!==e?(T=I(),_=gu(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);l!==e;)s.push(l),l=r,c=I(),o.charCodeAt(r)===44?(h=A,r++):(h=e,m===0&&C(ge)),h!==e?(T=I(),_=gu(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);b=t,t=AQe(n,s)}else r=t,t=e;return t}function jAt(){var t,n,s,l,c,h,T,_;if(t=r,n=aR(),n!==e){for(s=[],l=r,c=I(),o.charCodeAt(r)===44?(h=A,r++):(h=e,m===0&&C(ge)),h!==e?(T=I(),_=aR(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);l!==e;)s.push(l),l=r,c=I(),o.charCodeAt(r)===44?(h=A,r++):(h=e,m===0&&C(ge)),h!==e?(T=I(),_=aR(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);b=t,t=bQe(n,s)}else r=t,t=e;return t}function xAt(){var t,n,s,l,c,h,T,_;if(t=r,n=Xw(),n!==e){for(s=[],l=r,c=I(),o.charCodeAt(r)===44?(h=A,r++):(h=e,m===0&&C(ge)),h!==e?(T=I(),_=Xw(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);l!==e;)s.push(l),l=r,c=I(),o.charCodeAt(r)===44?(h=A,r++):(h=e,m===0&&C(ge)),h!==e?(T=I(),_=Xw(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);b=t,t=wQe(n,s)}else r=t,t=e;return t}function FAt(){var t,n,s,l,c,h,T,_;if(t=r,n=wR(),n!==e){for(s=[],l=r,c=I(),o.charCodeAt(r)===44?(h=A,r++):(h=e,m===0&&C(ge)),h!==e?(T=I(),_=wR(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);l!==e;)s.push(l),l=r,c=I(),o.charCodeAt(r)===44?(h=A,r++):(h=e,m===0&&C(ge)),h!==e?(T=I(),_=wR(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);b=t,t=RQe(n,s)}else r=t,t=e;return t}function s_(){var t,n,s,l,c,h,T,_;if(t=r,n=Re(),n!==e){for(s=[],l=r,c=I(),o.charCodeAt(r)===44?(h=A,r++):(h=e,m===0&&C(ge)),h!==e?(T=I(),_=Re(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);l!==e;)s.push(l),l=r,c=I(),o.charCodeAt(r)===44?(h=A,r++):(h=e,m===0&&C(ge)),h!==e?(T=I(),_=Re(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);b=t,t=_Qe(n,s)}else r=t,t=e;return t}function Y9(){var t,n,s,l,c,h,T,_;if(t=r,n=Hw(),n!==e){for(s=[],l=r,c=I(),o.charCodeAt(r)===44?(h=A,r++):(h=e,m===0&&C(ge)),h!==e?(T=I(),_=Hw(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);l!==e;)s.push(l),l=r,c=I(),o.charCodeAt(r)===44?(h=A,r++):(h=e,m===0&&C(ge)),h!==e?(T=I(),_=Hw(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);b=t,t=gQe(n,s)}else r=t,t=e;return t}function GAt(){var t,n,s,l,c,h,T,_;if(t=r,n=bf(),n!==e){for(s=[],l=r,c=I(),o.charCodeAt(r)===44?(h=A,r++):(h=e,m===0&&C(ge)),h!==e?(T=I(),_=bf(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);l!==e;)s.push(l),l=r,c=I(),o.charCodeAt(r)===44?(h=A,r++):(h=e,m===0&&C(ge)),h!==e?(T=I(),_=bf(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);b=t,t=DQe(n,s)}else r=t,t=e;return t}function SAt(){var t,n,s,l,c,h,T,_;if(t=r,n=_w(),n!==e){for(s=[],l=r,c=I(),o.charCodeAt(r)===44?(h=A,r++):(h=e,m===0&&C(ge)),h!==e?(T=I(),_=_w(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);l!==e;)s.push(l),l=r,c=I(),o.charCodeAt(r)===44?(h=A,r++):(h=e,m===0&&C(ge)),h!==e?(T=I(),_=_w(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);b=t,t=OQe(n,s)}else r=t,t=e;return t}function KAt(){var t,n,s,l,c,h,T,_;if(t=r,n=bR(),n!==e){for(s=[],l=r,c=I(),o.charCodeAt(r)===44?(h=A,r++):(h=e,m===0&&C(ge)),h!==e?(T=I(),_=bR(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);l!==e;)s.push(l),l=r,c=I(),o.charCodeAt(r)===44?(h=A,r++):(h=e,m===0&&C(ge)),h!==e?(T=I(),_=bR(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);b=t,t=CQe(n,s)}else r=t,t=e;return t}function kAt(){var t,n,s,l,c,h,T,_;if(t=r,n=tR(),n!==e){for(s=[],l=r,c=I(),o.charCodeAt(r)===44?(h=A,r++):(h=e,m===0&&C(ge)),h!==e?(T=I(),_=tR(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);l!==e;)s.push(l),l=r,c=I(),o.charCodeAt(r)===44?(h=A,r++):(h=e,m===0&&C(ge)),h!==e?(T=I(),_=tR(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);b=t,t=$Qe(n,s)}else r=t,t=e;return t}function qAt(){var t,n,s,l,c,h,T,_;if(t=r,n=Ww(),n!==e){for(s=[],l=r,c=I(),o.charCodeAt(r)===44?(h=A,r++):(h=e,m===0&&C(ge)),h!==e?(T=I(),_=Ww(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);l!==e;)s.push(l),l=r,c=I(),o.charCodeAt(r)===44?(h=A,r++):(h=e,m===0&&C(ge)),h!==e?(T=I(),_=Ww(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);b=t,t=PQe(n,s)}else r=t,t=e;return t}function xi(){var t,n,s,l,c,h,T,_;if(t=r,n=Ge(),n!==e){for(s=[],l=r,c=I(),o.charCodeAt(r)===44?(h=A,r++):(h=e,m===0&&C(ge)),h!==e?(T=I(),_=Ge(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);l!==e;)s.push(l),l=r,c=I(),o.charCodeAt(r)===44?(h=A,r++):(h=e,m===0&&C(ge)),h!==e?(T=I(),_=Ge(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);b=t,t=NQe(n,s)}else r=t,t=e;return t}function ZAt(){var t,n,s,l,c,h,T,_;if(t=r,n=nR(),n!==e){for(s=[],l=r,c=I(),o.charCodeAt(r)===44?(h=A,r++):(h=e,m===0&&C(ge)),h!==e?(T=I(),_=nR(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);l!==e;)s.push(l),l=r,c=I(),o.charCodeAt(r)===44?(h=A,r++):(h=e,m===0&&C(ge)),h!==e?(T=I(),_=nR(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);b=t,t=VQe(n,s)}else r=t,t=e;return t}function JAt(){var t,n,s,l,c,h,T,_;if(t=r,n=MR(),n!==e){for(s=[],l=r,c=I(),o.charCodeAt(r)===44?(h=A,r++):(h=e,m===0&&C(ge)),h!==e?(T=I(),_=MR(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);l!==e;)s.push(l),l=r,c=I(),o.charCodeAt(r)===44?(h=A,r++):(h=e,m===0&&C(ge)),h!==e?(T=I(),_=MR(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);b=t,t=LQe(n,s)}else r=t,t=e;return t}function _u(){var t,n,s,l,c,h,T,_;if(t=r,n=et(),n!==e){for(s=[],l=r,c=I(),o.charCodeAt(r)===44?(h=A,r++):(h=e,m===0&&C(ge)),h!==e?(T=I(),_=et(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);l!==e;)s.push(l),l=r,c=I(),o.charCodeAt(r)===44?(h=A,r++):(h=e,m===0&&C(ge)),h!==e?(T=I(),_=et(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);b=t,t=MQe(n,s)}else r=t,t=e;return t}function HAt(){var t,n,s,l,c,h,T,_;if(t=r,n=Jw(),n!==e){for(s=[],l=r,c=I(),o.charCodeAt(r)===44?(h=A,r++):(h=e,m===0&&C(ge)),h!==e?(T=I(),_=Jw(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);l!==e;)s.push(l),l=r,c=I(),o.charCodeAt(r)===44?(h=A,r++):(h=e,m===0&&C(ge)),h!==e?(T=I(),_=Jw(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);b=t,t=BQe(n,s)}else r=t,t=e;return t}function z9(){var t,n,s,l,c,h,T,_;if(t=r,n=h_(),n!==e){for(s=[],l=r,c=I(),o.charCodeAt(r)===44?(h=A,r++):(h=e,m===0&&C(ge)),h!==e?(T=I(),_=h_(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);l!==e;)s.push(l),l=r,c=I(),o.charCodeAt(r)===44?(h=A,r++):(h=e,m===0&&C(ge)),h!==e?(T=I(),_=h_(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);b=t,t=UQe(n,s)}else r=t,t=e;return t}function WAt(){var t,n,s,l,c,h,T,_;if(t=r,n=IR(),n!==e){for(s=[],l=r,c=I(),o.charCodeAt(r)===44?(h=A,r++):(h=e,m===0&&C(ge)),h!==e?(T=I(),_=IR(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);l!==e;)s.push(l),l=r,c=I(),o.charCodeAt(r)===44?(h=A,r++):(h=e,m===0&&C(ge)),h!==e?(T=I(),_=IR(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);b=t,t=jQe(n,s)}else r=t,t=e;return t}function YAt(){var t,n,s,l,c,h,T,_;if(t=r,n=TR(),n!==e){for(s=[],l=r,c=I(),o.charCodeAt(r)===44?(h=A,r++):(h=e,m===0&&C(ge)),h!==e?(T=I(),_=TR(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);l!==e;)s.push(l),l=r,c=I(),o.charCodeAt(r)===44?(h=A,r++):(h=e,m===0&&C(ge)),h!==e?(T=I(),_=TR(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);b=t,t=xQe(n,s)}else r=t,t=e;return t}function Nf(){var t,n,s,l,c,h,T,_;if(t=r,n=V0(),n!==e){for(s=[],l=r,c=I(),o.charCodeAt(r)===44?(h=A,r++):(h=e,m===0&&C(ge)),h!==e?(T=I(),_=V0(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);l!==e;)s.push(l),l=r,c=I(),o.charCodeAt(r)===44?(h=A,r++):(h=e,m===0&&C(ge)),h!==e?(T=I(),_=V0(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);b=t,t=FQe(n,s)}else r=t,t=e;return t}function X9(){var t,n,s,l,c,h,T,_;if(t=r,n=jw(),n!==e){for(s=[],l=r,c=I(),o.charCodeAt(r)===44?(h=A,r++):(h=e,m===0&&C(ge)),h!==e?(T=I(),_=jw(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);l!==e;)s.push(l),l=r,c=I(),o.charCodeAt(r)===44?(h=A,r++):(h=e,m===0&&C(ge)),h!==e?(T=I(),_=jw(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);b=t,t=GQe(n,s)}else r=t,t=e;return t}function ri(){var t,n,s,l,c,h,T,_;if(t=r,n=Re(),n!==e){for(s=[],l=r,c=I(),o.charCodeAt(r)===44?(h=A,r++):(h=e,m===0&&C(ge)),h!==e?(T=I(),_=Re(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);l!==e;)s.push(l),l=r,c=I(),o.charCodeAt(r)===44?(h=A,r++):(h=e,m===0&&C(ge)),h!==e?(T=I(),_=Re(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);b=t,t=SQe(n,s)}else r=t,t=e;return t}function zAt(){var t,n,s,l,c,h,T,_;if(t=r,n=f0(),n!==e){for(s=[],l=r,c=I(),o.charCodeAt(r)===44?(h=A,r++):(h=e,m===0&&C(ge)),h!==e?(T=I(),_=f0(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);l!==e;)s.push(l),l=r,c=I(),o.charCodeAt(r)===44?(h=A,r++):(h=e,m===0&&C(ge)),h!==e?(T=I(),_=f0(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);b=t,t=KQe(n,s)}else r=t,t=e;return t}function XAt(){var t,n,s,l,c,h,T,_;if(t=r,n=$n(),n!==e){for(s=[],l=r,c=I(),o.charCodeAt(r)===44?(h=A,r++):(h=e,m===0&&C(ge)),h!==e?(T=I(),_=$n(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);l!==e;)s.push(l),l=r,c=I(),o.charCodeAt(r)===44?(h=A,r++):(h=e,m===0&&C(ge)),h!==e?(T=I(),_=$n(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);b=t,t=kQe(n,s)}else r=t,t=e;return t}function QAt(){var t,n,s,l,c,h,T,_;if(t=r,n=Ge(),n!==e){for(s=[],l=r,c=I(),o.charCodeAt(r)===44?(h=A,r++):(h=e,m===0&&C(ge)),h!==e?(T=I(),_=Ge(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);l!==e;)s.push(l),l=r,c=I(),o.charCodeAt(r)===44?(h=A,r++):(h=e,m===0&&C(ge)),h!==e?(T=I(),_=Ge(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);b=t,t=qQe(n,s)}else r=t,t=e;return t}function ebt(){var t,n,s,l,c,h,T,_;if(t=r,n=Sw(),n!==e){for(s=[],l=r,c=I(),o.charCodeAt(r)===44?(h=A,r++):(h=e,m===0&&C(ge)),h!==e?(T=I(),_=Sw(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);l!==e;)s.push(l),l=r,c=I(),o.charCodeAt(r)===44?(h=A,r++):(h=e,m===0&&C(ge)),h!==e?(T=I(),_=Sw(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);b=t,t=ZQe(n,s)}else r=t,t=e;return t}function tbt(){var t,n,s,l,c,h,T,_;if(t=r,n=rR(),n!==e){for(s=[],l=r,c=I(),o.charCodeAt(r)===44?(h=A,r++):(h=e,m===0&&C(ge)),h!==e?(T=I(),_=rR(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);l!==e;)s.push(l),l=r,c=I(),o.charCodeAt(r)===44?(h=A,r++):(h=e,m===0&&C(ge)),h!==e?(T=I(),_=rR(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);b=t,t=JQe(n,s)}else r=t,t=e;return t}function rbt(){var t,n,s,l,c,h,T,_;if(t=r,n=iR(),n!==e){for(s=[],l=r,c=I(),o.charCodeAt(r)===44?(h=A,r++):(h=e,m===0&&C(ge)),h!==e?(T=I(),_=iR(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);l!==e;)s.push(l),l=r,c=I(),o.charCodeAt(r)===44?(h=A,r++):(h=e,m===0&&C(ge)),h!==e?(T=I(),_=iR(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);b=t,t=HQe(n,s)}else r=t,t=e;return t}function Q9(){var t,n,s,l,c,h,T,_;if(t=r,n=DR(),n!==e){for(s=[],l=r,c=I(),o.charCodeAt(r)===44?(h=A,r++):(h=e,m===0&&C(ge)),h!==e?(T=I(),_=DR(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);l!==e;)s.push(l),l=r,c=I(),o.charCodeAt(r)===44?(h=A,r++):(h=e,m===0&&C(ge)),h!==e?(T=I(),_=DR(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);b=t,t=WQe(n,s)}else r=t,t=e;return t}function ibt(){var t,n,s,l,c,h,T,_;if(t=r,n=NR(),n!==e){for(s=[],l=r,c=I(),o.charCodeAt(r)===44?(h=A,r++):(h=e,m===0&&C(ge)),h!==e?(T=I(),_=NR(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);l!==e;)s.push(l),l=r,c=I(),o.charCodeAt(r)===44?(h=A,r++):(h=e,m===0&&C(ge)),h!==e?(T=I(),_=NR(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);b=t,t=YQe(n,s)}else r=t,t=e;return t}function sbt(){var t,n,s,l,c,h,T,_;if(t=r,n=P0(),n!==e){for(s=[],l=r,c=I(),o.charCodeAt(r)===44?(h=A,r++):(h=e,m===0&&C(ge)),h!==e?(T=I(),_=P0(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);l!==e;)s.push(l),l=r,c=I(),o.charCodeAt(r)===44?(h=A,r++):(h=e,m===0&&C(ge)),h!==e?(T=I(),_=P0(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);b=t,t=zQe(n,s)}else r=t,t=e;return t}function nbt(){var t,n,s,l,c,h,T,_;if(t=r,n=Qw(),n!==e){for(s=[],l=r,c=I(),o.charCodeAt(r)===44?(h=A,r++):(h=e,m===0&&C(ge)),h!==e?(T=I(),_=Qw(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);l!==e;)s.push(l),l=r,c=I(),o.charCodeAt(r)===44?(h=A,r++):(h=e,m===0&&C(ge)),h!==e?(T=I(),_=Qw(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);b=t,t=XQe(n,s)}else r=t,t=e;return t}function abt(){var t,n,s,l,c,h,T,_;if(t=r,n=Ul(),n!==e){for(s=[],l=r,c=I(),o.charCodeAt(r)===44?(h=A,r++):(h=e,m===0&&C(ge)),h!==e?(T=I(),_=Ul(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);l!==e;)s.push(l),l=r,c=I(),o.charCodeAt(r)===44?(h=A,r++):(h=e,m===0&&C(ge)),h!==e?(T=I(),_=Ul(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);b=t,t=QQe(n,s)}else r=t,t=e;return t}function obt(){var t,n,s,l,c,h,T,_;if(t=r,n=uR(),n!==e){for(s=[],l=r,c=I(),o.charCodeAt(r)===44?(h=A,r++):(h=e,m===0&&C(ge)),h!==e?(T=I(),_=uR(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);l!==e;)s.push(l),l=r,c=I(),o.charCodeAt(r)===44?(h=A,r++):(h=e,m===0&&C(ge)),h!==e?(T=I(),_=uR(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);b=t,t=eet(n,s)}else r=t,t=e;return t}function Vf(){var t,n,s,l,c,h,T,_;if(t=r,n=bu(),n!==e){for(s=[],l=r,c=I(),o.charCodeAt(r)===44?(h=A,r++):(h=e,m===0&&C(ge)),h!==e?(T=I(),_=bu(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);l!==e;)s.push(l),l=r,c=I(),o.charCodeAt(r)===44?(h=A,r++):(h=e,m===0&&C(ge)),h!==e?(T=I(),_=bu(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);b=t,t=tet(n,s)}else r=t,t=e;return t}function lbt(){var t,n,s,l,c,h,T,_;if(t=r,n=CR(),n!==e){for(s=[],l=r,c=I(),o.charCodeAt(r)===44?(h=A,r++):(h=e,m===0&&C(ge)),h!==e?(T=I(),_=CR(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);l!==e;)s.push(l),l=r,c=I(),o.charCodeAt(r)===44?(h=A,r++):(h=e,m===0&&C(ge)),h!==e?(T=I(),_=CR(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);b=t,t=ret(n,s)}else r=t,t=e;return t}function dbt(){var t,n,s,l,c,h,T,_;if(t=r,n=Fw(),n!==e){for(s=[],l=r,c=I(),o.charCodeAt(r)===44?(h=A,r++):(h=e,m===0&&C(ge)),h!==e?(T=I(),_=Fw(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);l!==e;)s.push(l),l=r,c=I(),o.charCodeAt(r)===44?(h=A,r++):(h=e,m===0&&C(ge)),h!==e?(T=I(),_=Fw(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);b=t,t=iet(n,s)}else r=t,t=e;return t}function n_(){var t,n,s,l,c,h,T,_;if(t=r,n=nr(),n!==e){for(s=[],l=r,c=I(),o.charCodeAt(r)===44?(h=A,r++):(h=e,m===0&&C(ge)),h!==e?(T=I(),_=nr(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);l!==e;)s.push(l),l=r,c=I(),o.charCodeAt(r)===44?(h=A,r++):(h=e,m===0&&C(ge)),h!==e?(T=I(),_=nr(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);b=t,t=set(n,s)}else r=t,t=e;return t}function ubt(){var t,n,s,l,c,h,T,_;if(t=r,n=Iu(),n!==e){for(s=[],l=r,c=I(),o.charCodeAt(r)===44?(h=A,r++):(h=e,m===0&&C(ge)),h!==e?(T=I(),_=Iu(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);l!==e;)s.push(l),l=r,c=I(),o.charCodeAt(r)===44?(h=A,r++):(h=e,m===0&&C(ge)),h!==e?(T=I(),_=Iu(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);b=t,t=net(n,s)}else r=t,t=e;return t}function cbt(){var t,n,s,l,c,h,T,_;if(t=r,n=PR(),n!==e){for(s=[],l=r,c=I(),o.charCodeAt(r)===44?(h=A,r++):(h=e,m===0&&C(ge)),h!==e?(T=I(),_=PR(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);l!==e;)s.push(l),l=r,c=I(),o.charCodeAt(r)===44?(h=A,r++):(h=e,m===0&&C(ge)),h!==e?(T=I(),_=PR(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);b=t,t=aet(n,s)}else r=t,t=e;return t}function pbt(){var t,n,s,l,c,h,T,_;if(t=r,n=Uw(),n!==e){for(s=[],l=r,c=I(),o.charCodeAt(r)===44?(h=A,r++):(h=e,m===0&&C(ge)),h!==e?(T=I(),_=Uw(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);l!==e;)s.push(l),l=r,c=I(),o.charCodeAt(r)===44?(h=A,r++):(h=e,m===0&&C(ge)),h!==e?(T=I(),_=Uw(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);b=t,t=oet(n,s)}else r=t,t=e;return t}function e8(){var t,n,s,l,c,h,T,_;if(t=r,n=gR(),n!==e){for(s=[],l=r,c=I(),o.charCodeAt(r)===44?(h=A,r++):(h=e,m===0&&C(ge)),h!==e?(T=I(),_=gR(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);l!==e;)s.push(l),l=r,c=I(),o.charCodeAt(r)===44?(h=A,r++):(h=e,m===0&&C(ge)),h!==e?(T=I(),_=gR(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);b=t,t=det(n,s)}else r=t,t=e;return t}function fbt(){var t,n,s,l,c,h,T,_;if(t=r,n=AR(),n!==e){for(s=[],l=r,c=I(),o.charCodeAt(r)===44?(h=A,r++):(h=e,m===0&&C(ge)),h!==e?(T=I(),_=AR(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);l!==e;)s.push(l),l=r,c=I(),o.charCodeAt(r)===44?(h=A,r++):(h=e,m===0&&C(ge)),h!==e?(T=I(),_=AR(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);b=t,t=uet(n,s)}else r=t,t=e;return t}function hbt(){var t,n,s,l,c,h,T,_;if(t=r,n=fR(),n!==e){for(s=[],l=r,c=I(),o.charCodeAt(r)===44?(h=A,r++):(h=e,m===0&&C(ge)),h!==e?(T=I(),_=fR(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);l!==e;)s.push(l),l=r,c=I(),o.charCodeAt(r)===44?(h=A,r++):(h=e,m===0&&C(ge)),h!==e?(T=I(),_=fR(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);b=t,t=cet(n,s)}else r=t,t=e;return t}function ybt(){var t,n,s,l,c,h,T,_;if(t=r,n=jR(),n!==e){for(s=[],l=r,c=I(),o.charCodeAt(r)===44?(h=A,r++):(h=e,m===0&&C(ge)),h!==e?(T=I(),_=jR(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);l!==e;)s.push(l),l=r,c=I(),o.charCodeAt(r)===44?(h=A,r++):(h=e,m===0&&C(ge)),h!==e?(T=I(),_=jR(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);b=t,t=pet(n,s)}else r=t,t=e;return t}function mbt(){var t,n,s,l,c,h,T,_;if(t=r,n=Zw(),n!==e){for(s=[],l=r,c=I(),o.charCodeAt(r)===44?(h=A,r++):(h=e,m===0&&C(ge)),h!==e?(T=I(),_=Zw(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);l!==e;)s.push(l),l=r,c=I(),o.charCodeAt(r)===44?(h=A,r++):(h=e,m===0&&C(ge)),h!==e?(T=I(),_=Zw(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);b=t,t=fet(n,s)}else r=t,t=e;return t}function t8(){var t,n,s,l,c,h,T,_;if(t=r,n=Mf(),n!==e){for(s=[],l=r,c=I(),o.charCodeAt(r)===44?(h=A,r++):(h=e,m===0&&C(ge)),h!==e?(T=I(),_=Mf(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);l!==e;)s.push(l),l=r,c=I(),o.charCodeAt(r)===44?(h=A,r++):(h=e,m===0&&C(ge)),h!==e?(T=I(),_=Mf(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);b=t,t=het(n,s)}else r=t,t=e;return t}function vbt(){var t,n,s,l,c,h,T,_;if(t=r,n=Yw(),n!==e){for(s=[],l=r,c=I(),o.charCodeAt(r)===44?(h=A,r++):(h=e,m===0&&C(ge)),h!==e?(T=I(),_=Yw(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);l!==e;)s.push(l),l=r,c=I(),o.charCodeAt(r)===44?(h=A,r++):(h=e,m===0&&C(ge)),h!==e?(T=I(),_=Yw(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);b=t,t=yet(n,s)}else r=t,t=e;return t}function r8(){var t,n,s;return t=r,n=r,m++,o.length>r?(s=o.charAt(r),r++):(s=e,m===0&&C(Ui)),m--,s!==e?(r=n,n=void 0):n=e,n!==e&&(b=t,n=met()),t=n,t}function a_(){var t,n,s,l,c;return t=r,n=Re(),n!==e?(s=r,l=I(),c=ca(),c!==e?(l=[l,c],s=l):(r=s,s=e),s===e&&(s=null),b=t,t=vet(n,s)):(r=t,t=e),t}function o_(){var t,n,s,l,c;return t=r,n=Ge(),n!==e?(s=r,l=I(),c=ca(),c!==e?(l=[l,c],s=l):(r=s,s=e),s===e&&(s=null),b=t,t=Eet(n,s)):(r=t,t=e),t}function l_(){var t,n,s,l,c;return t=r,n=et(),n!==e?(s=r,l=I(),c=ca(),c!==e?(l=[l,c],s=l):(r=s,s=e),s===e&&(s=null),b=t,t=Tet(n,s)):(r=t,t=e),t}function J0(){var t,n,s,l,c;return t=r,n=$f(),n!==e?(s=r,l=I(),c=ca(),c!==e?(l=[l,c],s=l):(r=s,s=e),s===e&&(s=null),b=t,t=Iet(n,s)):(r=t,t=e),t}function Ebt(){var t,n,s,l,c;return t=r,n=Ga(),n!==e?(s=r,l=I(),c=ca(),c!==e?(l=[l,c],s=l):(r=s,s=e),s===e&&(s=null),b=t,t=Aet(n,s)):(r=t,t=e),t}function d_(){var t,n,s,l,c;return t=r,n=ji(),n!==e?(s=r,l=I(),c=ca(),c!==e?(l=[l,c],s=l):(r=s,s=e),s===e&&(s=null),b=t,t=bet(n,s)):(r=t,t=e),t}function gu(){var t,n,s,l,c;return t=r,n=Ul(),n!==e?(s=r,l=I(),c=ca(),c!==e?(l=[l,c],s=l):(r=s,s=e),s===e&&(s=null),b=t,t=wet(n,s)):(r=t,t=e),t}function i8(){var t,n,s,l,c;return t=r,n=Iht(),n!==e?(s=r,l=I(),c=ca(),c!==e?(l=[l,c],s=l):(r=s,s=e),s===e&&(s=null),b=t,t=Ret(n,s)):(r=t,t=e),t}function Tbt(){var t,n,s,l,c;return t=r,n=Nht(),n!==e?(s=r,l=I(),c=ca(),c!==e?(l=[l,c],s=l):(r=s,s=e),s===e&&(s=null),b=t,t=_et(n,s)):(r=t,t=e),t}function H0(){var t,n,s,l;return t=r,n=r,s=Lr(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=Bl(),s!==e?(b=t,t=get(n,s)):(r=t,t=e)):(r=t,t=e),t}function s8(){var t,n,s,l;return t=r,n=r,s=Lr(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=B0t(),s!==e?(b=t,t=Det(n,s)):(r=t,t=e)):(r=t,t=e),t}function n8(){var t,n,s,l;return t=r,n=r,s=Lr(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=U0t(),s!==e?(b=t,t=Oet(n,s)):(r=t,t=e)):(r=t,t=e),t}function Ibt(){var t,n,s,l;return t=r,n=r,s=Lr(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=nr(),s!==e?(b=t,t=Cet(n,s)):(r=t,t=e)):(r=t,t=e),t}function Abt(){var t,n,s,l,c,h;return t=r,n=r,s=Re(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(o.charCodeAt(r)===46?(s=$,r++):(s=e,m===0&&C(gn)),s!==e?(l=r,c=I(),h=Lf(),h!==e?(c=[c,h],l=c):(r=l,l=e),l!==e?(b=t,t=$et(n,l)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t===e&&(t=Re()),t}function Lf(){var t,n;return t=r,n=Cn(),n!==e&&(b=t,n=Pet(n)),t=n,t===e&&(t=c_()),t}function u_(){var t,n,s,l;return t=Re(),t===e&&(t=r,n=xs(),n!==e?(s=r,m++,l=tt(),m--,l!==e?(r=s,s=void 0):s=e,s===e&&(s=r,m++,l=Oe(),m--,l!==e?(r=s,s=void 0):s=e,s===e&&(s=r,m++,l=Be(),m--,l!==e?(r=s,s=void 0):s=e)),s!==e?(b=t,t=Net(n)):(r=t,t=e)):(r=t,t=e)),t}function bbt(){var t,n,s,l;return t=u_(),t===e&&(t=r,n=Cn(),n!==e?(s=r,m++,l=ye(),m--,l!==e?(r=s,s=void 0):s=e,s!==e?(b=t,t=Vet(n)):(r=t,t=e)):(r=t,t=e)),t}function Re(){var t,n,s;return m++,t=c_(),t===e&&(t=r,n=Cn(),n!==e?(b=r,s=Let(n),s?s=e:s=void 0,s!==e?(b=t,t=Met(n)):(r=t,t=e)):(r=t,t=e)),m--,t===e&&(n=e,m===0&&C(NNe)),t}function c_(){var t,n,s;return t=r,n=r,m++,s=tt(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=Dbt(),s!==e?(b=t,t=Bet(s)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=r,m++,s=tt(),m--,s!==e?(r=n,n=void 0):n=e,n===e&&(n=r,m++,s=Be(),m--,s!==e?(r=n,n=void 0):n=e),n!==e?(s=a8(),s!==e?(b=t,t=Uet(s)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=r,m++,s=Oe(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=_bt(),s===e&&(s=l8()),s!==e?(b=t,t=jet(s)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=r,m++,s=tt(),m--,s!==e?(r=n,n=void 0):n=e,n===e&&(n=r,m++,s=ye(),m--,s!==e?(r=n,n=void 0):n=e),n!==e?(s=y8(),s!==e?(b=t,t=xet(s)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=r,m++,s=ye(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=wbt(),s!==e?(b=t,t=Fet(s)):(r=t,t=e)):(r=t,t=e))))),t}function wbt(){var t,n,s,l,c,h,T,_;if(t=r,n=Rbt(),n!==e){for(s=[],l=r,c=I(),h=$v(),h!==e?(T=I(),_=Pn(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);l!==e;)s.push(l),s.length>=1?l=e:(l=r,c=I(),h=$v(),h!==e?(T=I(),_=Pn(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e));b=t,t=Get(n,s)}else r=t,t=e;return t}function Rbt(){var t,n;return t=r,n=qbt(),n!==e&&(b=t,n=Ket(n)),t=n,t}function a8(){var t,n,s,l;if(t=r,o.charCodeAt(r)===96?(n=Cl,r++):(n=e,m===0&&C(Vl)),n!==e){if(s=[],RK.test(o.charAt(r))?(l=o.charAt(r),r++):(l=e,m===0&&C(xK)),l===e&&(l=o8()),l!==e)for(;l!==e;)s.push(l),RK.test(o.charAt(r))?(l=o.charAt(r),r++):(l=e,m===0&&C(xK)),l===e&&(l=o8());else s=e;s!==e?(o.charCodeAt(r)===96?(l=Cl,r++):(l=e,m===0&&C(Vl)),l!==e?(b=t,t=ket(s)):(r=t,t=e)):(r=t,t=e)}else r=t,t=e;return t}function o8(){var t,n;return t=r,o.substr(r,2)===aK?(n=aK,r+=2):(n=e,m===0&&C(VNe)),n!==e&&(b=t,n=qet()),t=n,t}function l8(){var t,n,s,l;if(t=r,o.charCodeAt(r)===96?(n=Cl,r++):(n=e,m===0&&C(Vl)),n!==e){if(s=[],_K.test(o.charAt(r))?(l=o.charAt(r),r++):(l=e,m===0&&C(FK)),l===e&&(l=_s()),l!==e)for(;l!==e;)s.push(l),_K.test(o.charAt(r))?(l=o.charAt(r),r++):(l=e,m===0&&C(FK)),l===e&&(l=_s());else s=e;s!==e?(o.charCodeAt(r)===96?(l=Cl,r++):(l=e,m===0&&C(Vl)),l!==e?(b=t,t=Zet(s)):(r=t,t=e)):(r=t,t=e)}else r=t,t=e;return t}function _bt(){var t,n,s,l;return t=r,o.charCodeAt(r)===96?(n=Cl,r++):(n=e,m===0&&C(Vl)),n!==e?(s=gbt(),s!==e?(o.charCodeAt(r)===96?(l=Cl,r++):(l=e,m===0&&C(Vl)),l!==e?(b=t,t=Jet(s)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function gbt(){var t,n,s,l,c,h,T,_;if(t=r,n=p_(),n!==e){if(s=[],l=r,c=W0(),c!==e?(o.charCodeAt(r)===46?(h=$,r++):(h=e,m===0&&C(gn)),h!==e?(T=W0(),T!==e?(_=p_(),_===e&&(_=sn()),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e)):(r=l,l=e)):(r=l,l=e),l!==e)for(;l!==e;)s.push(l),l=r,c=W0(),c!==e?(o.charCodeAt(r)===46?(h=$,r++):(h=e,m===0&&C(gn)),h!==e?(T=W0(),T!==e?(_=p_(),_===e&&(_=sn()),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e)):(r=l,l=e)):(r=l,l=e);else s=e;s!==e?(b=t,t=Het(n,s)):(r=t,t=e)}else r=t,t=e;return t}function p_(){var t,n,s;if(t=r,n=[],gK.test(o.charAt(r))?(s=o.charAt(r),r++):(s=e,m===0&&C(GK)),s!==e)for(;s!==e;)n.push(s),gK.test(o.charAt(r))?(s=o.charAt(r),r++):(s=e,m===0&&C(GK));else n=e;return n!==e&&(b=t,n=Wet()),t=n,t}function W0(){var t,n;return t=r,b=r,n=Yet(),n?n=void 0:n=e,n!==e&&(b=t,n=zet()),t=n,t}function Dbt(){var t,n,s,l;if(t=r,o.charCodeAt(r)===91?(n=K,r++):(n=e,m===0&&C(hf)),n!==e){if(s=[],DK.test(o.charAt(r))?(l=o.charAt(r),r++):(l=e,m===0&&C(SK)),l===e&&(l=d8()),l!==e)for(;l!==e;)s.push(l),DK.test(o.charAt(r))?(l=o.charAt(r),r++):(l=e,m===0&&C(SK)),l===e&&(l=d8());else s=e;s!==e?(o.charCodeAt(r)===93?(l=Z,r++):(l=e,m===0&&C(yf)),l!==e?(b=t,t=Xet(s)):(r=t,t=e)):(r=t,t=e)}else r=t,t=e;return t}function d8(){var t,n;return t=r,o.substr(r,2)===oK?(n=oK,r+=2):(n=e,m===0&&C(LNe)),n!==e&&(b=t,n=Qet()),t=n,t}function Cn(){var t,n,s,l;return t=r,n=r,m++,s=Oe(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=Obt(),s!==e?(b=t,t=ett()):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=r,m++,s=ye(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=Du(),s!==e?(b=t,t=ttt()):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=r,m++,s=Be(),m--,s!==e?(r=n,n=void 0):n=e,n===e&&(n=r,m++,s=tt(),m--,s!==e?(r=n,n=void 0):n=e),n!==e?(s=Fs(),s===e&&(s=null),l=Du(),l!==e?(b=t,t=rtt()):(r=t,t=e)):(r=t,t=e))),t}function Obt(){var t,n,s,l,c,h;if(t=r,n=Du(),n!==e){for(s=[],l=r,o.charCodeAt(r)===45?(c=nu,r++):(c=e,m===0&&C(hu)),c!==e?(h=Du(),h===e&&(h=Fs()),h!==e?(c=[c,h],l=c):(r=l,l=e)):(r=l,l=e);l!==e;)s.push(l),l=r,o.charCodeAt(r)===45?(c=nu,r++):(c=e,m===0&&C(hu)),c!==e?(h=Du(),h===e&&(h=Fs()),h!==e?(c=[c,h],l=c):(r=l,l=e)):(r=l,l=e);n=[n,s],t=n}else r=t,t=e;return t}function Du(){var t,n,s,l;if(t=r,n=f_(),n!==e){for(s=[],l=j();l!==e;)s.push(l),l=j();n=[n,s],t=n}else r=t,t=e;return t}function f_(){var t,n,s;return t=u8(),t===e&&(t=r,n=r,m++,s=ye(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=Sl(),s!==e?(n=[n,s],t=n):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=r,m++,s=tt(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=Sl(),s!==e?(n=[n,s],t=n):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=r,m++,s=Be(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=Sl(),s===e&&(o.charCodeAt(r)===36?(s=en,r++):(s=e,m===0&&C(rn))),s!==e?(n=[n,s],t=n):(r=t,t=e)):(r=t,t=e)))),t}function j(){var t,n,s;return t=u8(),t===e&&(t=Uf(),t===e&&(t=r,n=r,m++,s=ye(),m--,s!==e?(r=n,n=void 0):n=e,n===e&&(n=r,m++,s=Be(),m--,s!==e?(r=n,n=void 0):n=e),n!==e?(s=Sl(),s===e&&(o.charCodeAt(r)===36?(s=en,r++):(s=e,m===0&&C(rn))),s!==e?(n=[n,s],t=n):(r=t,t=e)):(r=t,t=e))),t}function u8(){var t;return sNe.test(o.charAt(r))?(t=o.charAt(r),r++):(t=e,m===0&&C(MNe)),t}function Sl(){var t;return nNe.test(o.charAt(r))?(t=o.charAt(r),r++):(t=e,m===0&&C(BNe)),t}function Mf(){var t,n,s;return t=r,o.charCodeAt(r)===64?(n=iu,r++):(n=e,m===0&&C(pu)),n!==e?(s=Cn(),s!==e?(b=t,t=itt(s)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,o.charCodeAt(r)===64?(n=iu,r++):(n=e,m===0&&C(pu)),n!==e?(s=a8(),s!==e?(b=t,t=stt(s)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,o.charCodeAt(r)===64?(n=iu,r++):(n=e,m===0&&C(pu)),n!==e?(s=Ou(),s!==e?(b=t,t=ntt(s)):(r=t,t=e)):(r=t,t=e))),t}function Cbt(){var t,n,s;return t=r,o.substr(r,2)===Zm?(n=Zm,r+=2):(n=e,m===0&&C(LK)),n!==e?(s=Cn(),s!==e?(b=t,t=att(s)):(r=t,t=e)):(r=t,t=e),t}function c8(){var t,n,s,l;return t=r,n=r,s=A9(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=p8(),s!==e?(b=t,t=ott(n,s)):(r=t,t=e)):(r=t,t=e),t}function p8(){var t,n,s,l,c,h;return t=r,o.charCodeAt(r)===91?(n=K,r++):(n=e,m===0&&C(hf)),n!==e?(s=r,l=I(),c=_u(),c===e&&(c=r8()),c!==e?(h=I(),l=[l,c,h],s=l):(r=s,s=e),s!==e?(o.charCodeAt(r)===93?(l=Z,r++):(l=e,m===0&&C(yf)),l!==e?(b=t,t=ltt(s)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function $bt(){var t,n,s,l;return t=r,n=r,s=b9(),s!==e?(l=I(),s=[s,l],n=s):(r=n,n=e),n!==e?(s=Pbt(),s!==e?(b=t,t=dtt(n,s)):(r=t,t=e)):(r=t,t=e),t}function Pbt(){var t,n,s,l,c,h;return t=r,o.charCodeAt(r)===40?(n=Et,r++):(n=e,m===0&&C(Tt)),n!==e?(s=r,l=I(),c=z9(),c!==e?(h=I(),l=[l,c,h],s=l):(r=s,s=e),s!==e?(o.charCodeAt(r)===41?(l=It,r++):(l=e,m===0&&C(At)),l!==e?(b=t,t=utt(s)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function h_(){var t,n,s,l,c;return t=r,n=et(),n!==e?(s=r,l=I(),c=Cw(),c!==e?(l=[l,c],s=l):(r=s,s=e),s===e&&(s=null),b=t,t=ctt(n,s)):(r=t,t=e),t}function $n(){var t;return t=nr(),t===e&&(t=ds(),t===e&&(t=I8(),t===e&&(t=Y0(),t===e&&(t=f8(),t===e&&(t=Xbt(),t===e&&(t=Qbt(),t===e&&(t=ewt(),t===e&&(t=twt(),t===e&&(t=rwt(),t===e&&(t=iwt())))))))))),t}function f8(){var t,n;return t=r,n=Ea(),n!==e&&(b=t,n=ptt(n)),t=n,t}function Y0(){var t,n;return t=r,n=MDt(),n!==e&&(b=t,n=ftt(n)),t=n,t===e&&(t=r,n=t_t(),n!==e&&(b=t,n=htt(n)),t=n),t}function nr(){var t,n,s;return m++,t=r,n=r,m++,s=Be(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=Nbt(),s!==e?(b=t,t=ytt(s)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=r,m++,s=tt(),m--,s!==e?(r=n,n=void 0):n=e,n===e&&(n=r,m++,s=Oe(),m--,s!==e?(r=n,n=void 0):n=e,n===e&&(n=r,m++,s=ye(),m--,s!==e?(r=n,n=void 0):n=e)),n!==e?(s=xs(),s!==e?(b=t,t=mtt(s)):(r=t,t=e)):(r=t,t=e)),m--,t===e&&(n=e,m===0&&C(UNe)),t}function Nbt(){var t;return t=Vbt(),t===e&&(t=xs(),t===e&&(t=Bbt())),t}function Vbt(){var t,n,s,l,c;return t=r,n=Ubt(),n!==e?(s=r,l=I(),c=Lbt(),c!==e?(l=[l,c],s=l):(r=s,s=e),s!==e?(b=t,t=vtt(n,s)):(r=t,t=e)):(r=t,t=e),t}function Lbt(){var t;return t=I8(),t===e&&(t=xs()),t}function xs(){var t,n,s;return t=r,n=r,m++,s=Oe(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=v8(),s===e&&(s=E8(),s===e&&(s=h8(),s===e&&(s=m8(),s===e&&(s=Hbt())))),s!==e?(b=t,t=Ett(s)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=r,m++,s=tt(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=Pn(),s!==e?(b=t,t=Ttt(s)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=r,m++,s=Be(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=Mbt(),s!==e?(b=t,t=Itt(s)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=r,m++,s=ye(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=xbt(),s===e&&(s=Ybt(),s===e&&(s=Fbt(),s===e&&(s=Gbt()))),s!==e?(b=t,t=Att(s)):(r=t,t=e)):(r=t,t=e)))),t}function Mbt(){var t,n,s,l,c,h;if(t=r,n=Ou(),n!==e){for(s=[],l=r,c=I(),h=Ou(),h!==e?(c=[c,h],l=c):(r=l,l=e);l!==e;)s.push(l),l=r,c=I(),h=Ou(),h!==e?(c=[c,h],l=c):(r=l,l=e);b=t,t=btt(n,s)}else r=t,t=e;return t}function Bbt(){var t,n,s,l,c,h;if(t=r,n=Jbt(),n!==e){for(s=[],l=r,c=I(),h=Ou(),h!==e?(c=[c,h],l=c):(r=l,l=e);l!==e;)s.push(l),l=r,c=I(),h=Ou(),h!==e?(c=[c,h],l=c):(r=l,l=e);b=t,t=wtt(n,s)}else r=t,t=e;return t}function Ou(){var t;return t=Bf(),t===e&&(t=Zbt()),t}function Ubt(){var t,n,s,l,c;return t=r,o.charCodeAt(r)===95?(n=_n,r++):(n=e,m===0&&C(Dn)),n!==e?(s=jbt(),s!==e?(l=r,m++,c=j(),m--,c===e?l=void 0:(r=l,l=e),l!==e?(b=t,t=Rtt(s)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function jbt(){var t,n;return t=r,n=Du(),n!==e&&(b=t,n=_tt()),t=n,t}function xbt(){var t,n,s,l,c,h,T,_;if(t=r,n=Pn(),n!==e){for(s=[],l=r,c=Cu(),o.charCodeAt(r)===10?(h=$l,r++):(h=e,m===0&&C(Ll)),h!==e?(T=I(),_=Pn(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);l!==e;)s.push(l),l=r,c=Cu(),o.charCodeAt(r)===10?(h=$l,r++):(h=e,m===0&&C(Ll)),h!==e?(T=I(),_=Pn(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);b=t,t=gtt(n,s)}else r=t,t=e;return t}function Fbt(){var t,n,s,l,c,h,T,_;if(t=r,n=Kbt(),n!==e){for(s=[],l=r,c=Cu(),o.charCodeAt(r)===10?(h=$l,r++):(h=e,m===0&&C(Ll)),h!==e?(T=I(),_=Bf(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);l!==e;)s.push(l),l=r,c=Cu(),o.charCodeAt(r)===10?(h=$l,r++):(h=e,m===0&&C(Ll)),h!==e?(T=I(),_=Bf(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);b=t,t=Dtt(n,s)}else r=t,t=e;return t}function Gbt(){var t,n,s,l,c,h,T,_;if(t=r,n=Sbt(),n!==e){for(s=[],l=r,c=I(),h=$v(),h!==e?(T=I(),_=Pn(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);l!==e;)s.push(l),s.length>=1?l=e:(l=r,c=I(),h=$v(),h!==e?(T=I(),_=Pn(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e));b=t,t=Ott(n,s)}else r=t,t=e;return t}function Sbt(){var t,n,s,l,c,h,T,_;if(t=r,n=kbt(),n!==e){for(s=[],l=r,c=Cu(),o.charCodeAt(r)===10?(h=$l,r++):(h=e,m===0&&C(Ll)),h!==e?(T=I(),_=Pn(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);l!==e;)s.push(l),l=r,c=Cu(),o.charCodeAt(r)===10?(h=$l,r++):(h=e,m===0&&C(Ll)),h!==e?(T=I(),_=Pn(),_!==e?(c=[c,h,T,_],l=c):(r=l,l=e)):(r=l,l=e);b=t,t=Ctt(n,s)}else r=t,t=e;return t}function Bf(){var t,n,s,l;if(t=r,o.charCodeAt(r)===39?(n=bs,r++):(n=e,m===0&&C(ws)),n!==e){for(s=[],ou.test(o.charAt(r))?(l=o.charAt(r),r++):(l=e,m===0&&C(yu)),l===e&&(l=z0(),l===e&&(l=_s()));l!==e;)s.push(l),ou.test(o.charAt(r))?(l=o.charAt(r),r++):(l=e,m===0&&C(yu)),l===e&&(l=z0(),l===e&&(l=_s()));o.charCodeAt(r)===39?(l=bs,r++):(l=e,m===0&&C(ws)),l!==e?(b=t,t=$tt(s)):(r=t,t=e)}else r=t,t=e;return t}function Kbt(){var t,n,s;return t=r,o.charCodeAt(r)===69?(n=mbe,r++):(n=e,m===0&&C(jNe)),n!==e?(s=Bf(),s!==e?(b=t,t=Ptt(s)):(r=t,t=e)):(r=t,t=e),t}function kbt(){var t,n,s;return t=r,o.substr(r,2)===Ym?(n=Ym,r+=2):(n=e,m===0&&C(KK)),n!==e?(s=Pn(),s!==e?(b=t,t=Ntt(s)):(r=t,t=e)):(r=t,t=e),t}function qbt(){var t,n,s;return t=r,o.substr(r,2)===Ym?(n=Ym,r+=2):(n=e,m===0&&C(KK)),n!==e?(s=y8(),s!==e?(b=t,t=Vtt(s)):(r=t,t=e)):(r=t,t=e),t}function h8(){var t,n,s,l;if(t=r,o.charCodeAt(r)===39?(n=bs,r++):(n=e,m===0&&C(ws)),n!==e){for(s=[],ou.test(o.charAt(r))?(l=o.charAt(r),r++):(l=e,m===0&&C(yu)),l===e&&(l=_s());l!==e;)s.push(l),ou.test(o.charAt(r))?(l=o.charAt(r),r++):(l=e,m===0&&C(yu)),l===e&&(l=_s());o.charCodeAt(r)===39?(l=bs,r++):(l=e,m===0&&C(ws)),l!==e?(b=t,t=Ltt(s)):(r=t,t=e)}else r=t,t=e;return t}function Pn(){var t,n,s,l;if(t=r,o.charCodeAt(r)===39?(n=bs,r++):(n=e,m===0&&C(ws)),n!==e){for(s=[],lu.test(o.charAt(r))?(l=o.charAt(r),r++):(l=e,m===0&&C(mu)),l===e&&(l=z0());l!==e;)s.push(l),lu.test(o.charAt(r))?(l=o.charAt(r),r++):(l=e,m===0&&C(mu)),l===e&&(l=z0());o.charCodeAt(r)===39?(l=bs,r++):(l=e,m===0&&C(ws)),l!==e?(b=t,t=Mtt(s)):(r=t,t=e)}else r=t,t=e;return t}function z0(){var t,n;return t=r,o.substr(r,2)===zm?(n=zm,r+=2):(n=e,m===0&&C(kK)),n!==e&&(b=t,n=Btt()),t=n,t}function y8(){var t,n,s,l;if(t=r,o.charCodeAt(r)===34?(n=aa,r++):(n=e,m===0&&C(la)),n!==e){for(s=[],du.test(o.charAt(r))?(l=o.charAt(r),r++):(l=e,m===0&&C(vu)),l===e&&(l=X0());l!==e;)s.push(l),du.test(o.charAt(r))?(l=o.charAt(r),r++):(l=e,m===0&&C(vu)),l===e&&(l=X0());o.charCodeAt(r)===34?(l=aa,r++):(l=e,m===0&&C(la)),l!==e?(b=t,t=Utt(s)):(r=t,t=e)}else r=t,t=e;return t}function X0(){var t,n;return t=r,o.substr(r,2)===Xm?(n=Xm,r+=2):(n=e,m===0&&C(qK)),n!==e&&(b=t,n=jtt()),t=n,t}function Zbt(){var t,n,s,l;if(t=r,o.charCodeAt(r)===34?(n=aa,r++):(n=e,m===0&&C(la)),n!==e){for(s=[],uu.test(o.charAt(r))?(l=o.charAt(r),r++):(l=e,m===0&&C(Eu)),l===e&&(l=X0(),l===e&&(l=_s()));l!==e;)s.push(l),uu.test(o.charAt(r))?(l=o.charAt(r),r++):(l=e,m===0&&C(Eu)),l===e&&(l=X0(),l===e&&(l=_s()));o.charCodeAt(r)===34?(l=aa,r++):(l=e,m===0&&C(la)),l!==e?(b=t,t=xtt(s)):(r=t,t=e)}else r=t,t=e;return t}function m8(){var t,n,s,l;if(t=r,o.charCodeAt(r)===34?(n=aa,r++):(n=e,m===0&&C(la)),n!==e){for(s=[],uu.test(o.charAt(r))?(l=o.charAt(r),r++):(l=e,m===0&&C(Eu)),l===e&&(l=_s());l!==e;)s.push(l),uu.test(o.charAt(r))?(l=o.charAt(r),r++):(l=e,m===0&&C(Eu)),l===e&&(l=_s());o.charCodeAt(r)===34?(l=aa,r++):(l=e,m===0&&C(la)),l!==e?(b=t,t=Ftt(s)):(r=t,t=e)}else r=t,t=e;return t}function v8(){var t,n,s,l;if(t=r,o.substr(r,3)===go?(n=go,r+=3):(n=e,m===0&&C(n0)),n!==e){for(s=[],ou.test(o.charAt(r))?(l=o.charAt(r),r++):(l=e,m===0&&C(yu)),l===e&&(l=Q0(),l===e&&(l=_s()));l!==e;)s.push(l),ou.test(o.charAt(r))?(l=o.charAt(r),r++):(l=e,m===0&&C(yu)),l===e&&(l=Q0(),l===e&&(l=_s()));o.substr(r,3)===go?(l=go,r+=3):(l=e,m===0&&C(n0)),l!==e?(b=t,t=Gtt(s)):(r=t,t=e)}else r=t,t=e;return t}function Q0(){var t,n,s,l;return t=r,o.substr(r,2)===zm?(n=zm,r+=2):(n=e,m===0&&C(kK)),n===e&&(o.charCodeAt(r)===39?(n=bs,r++):(n=e,m===0&&C(ws))),n!==e?(s=r,m++,o.charCodeAt(r)===39?(l=bs,r++):(l=e,m===0&&C(ws)),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Stt(n)):(r=t,t=e)):(r=t,t=e),t}function E8(){var t,n,s,l;if(t=r,o.substr(r,3)===Do?(n=Do,r+=3):(n=e,m===0&&C(a0)),n!==e){for(s=[],uu.test(o.charAt(r))?(l=o.charAt(r),r++):(l=e,m===0&&C(Eu)),l===e&&(l=ev(),l===e&&(l=_s()));l!==e;)s.push(l),uu.test(o.charAt(r))?(l=o.charAt(r),r++):(l=e,m===0&&C(Eu)),l===e&&(l=ev(),l===e&&(l=_s()));o.substr(r,3)===Do?(l=Do,r+=3):(l=e,m===0&&C(a0)),l!==e?(b=t,t=Ktt(s)):(r=t,t=e)}else r=t,t=e;return t}function ev(){var t,n,s,l;return t=r,o.substr(r,2)===Xm?(n=Xm,r+=2):(n=e,m===0&&C(qK)),n===e&&(o.charCodeAt(r)===34?(n=aa,r++):(n=e,m===0&&C(la))),n!==e?(s=r,m++,o.charCodeAt(r)===34?(l=aa,r++):(l=e,m===0&&C(la)),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=ktt(n)):(r=t,t=e)):(r=t,t=e),t}function _s(){var t,n,s,l,c,h,T,_,x,W,pe,Ve,qe;return t=r,o.substr(r,2)===lK?(n=lK,r+=2):(n=e,m===0&&C(xNe)),n!==e&&(b=t,n=qtt()),t=n,t===e&&(t=r,o.substr(r,2)===dK?(n=dK,r+=2):(n=e,m===0&&C(FNe)),n!==e&&(b=t,n=Ztt()),t=n,t===e&&(t=r,o.substr(r,2)===uK?(n=uK,r+=2):(n=e,m===0&&C(GNe)),n!==e&&(b=t,n=Jtt()),t=n,t===e&&(t=r,o.substr(r,2)===cK?(n=cK,r+=2):(n=e,m===0&&C(SNe)),n!==e&&(b=t,n=Htt()),t=n,t===e&&(t=r,o.substr(r,2)===pK?(n=pK,r+=2):(n=e,m===0&&C(KNe)),n!==e?(s=r,m++,l=Oe(),m--,l!==e?(r=s,s=void 0):s=e,s===e&&(s=r,m++,l=ye(),m--,l!==e?(r=s,s=void 0):s=e),s!==e?(b=t,t=Wtt()):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,o.substr(r,2)===fK?(n=fK,r+=2):(n=e,m===0&&C(kNe)),n!==e?(s=r,m++,l=Oe(),m--,l!==e?(r=s,s=void 0):s=e,s!==e?(b=t,t=Ytt()):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,o.substr(r,2)===hK?(n=hK,r+=2):(n=e,m===0&&C(qNe)),n!==e?(s=r,m++,l=Oe(),m--,l!==e?(r=s,s=void 0):s=e,s!==e?(b=t,t=ztt()):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,o.charCodeAt(r)===92?(n=Pl,r++):(n=e,m===0&&C(Ml)),n!==e?(s=r,l=r,as.test(o.charAt(r))?(c=o.charAt(r),r++):(c=e,m===0&&C(ls)),c!==e?(as.test(o.charAt(r))?(h=o.charAt(r),r++):(h=e,m===0&&C(ls)),h!==e?(as.test(o.charAt(r))?(T=o.charAt(r),r++):(T=e,m===0&&C(ls)),T!==e?(c=[c,h,T],l=c):(r=l,l=e)):(r=l,l=e)):(r=l,l=e),l===e&&(l=r,as.test(o.charAt(r))?(c=o.charAt(r),r++):(c=e,m===0&&C(ls)),c!==e?(as.test(o.charAt(r))?(h=o.charAt(r),r++):(h=e,m===0&&C(ls)),h!==e?(c=[c,h],l=c):(r=l,l=e)):(r=l,l=e),l===e&&(as.test(o.charAt(r))?(l=o.charAt(r),r++):(l=e,m===0&&C(ls)))),l!==e?s=o.substring(s,r):s=l,s!==e?(l=r,m++,c=ye(),m--,c!==e?(r=l,l=void 0):l=e,l!==e?(b=t,t=Xtt(s)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,o.charCodeAt(r)===92?(n=Pl,r++):(n=e,m===0&&C(Ml)),n!==e?(s=r,l=r,as.test(o.charAt(r))?(c=o.charAt(r),r++):(c=e,m===0&&C(ls)),c!==e?(as.test(o.charAt(r))?(h=o.charAt(r),r++):(h=e,m===0&&C(ls)),h!==e?(as.test(o.charAt(r))?(T=o.charAt(r),r++):(T=e,m===0&&C(ls)),T!==e?(c=[c,h,T],l=c):(r=l,l=e)):(r=l,l=e)):(r=l,l=e),l!==e?s=o.substring(s,r):s=l,s!==e?(l=r,m++,c=Oe(),m--,c!==e?(r=l,l=void 0):l=e,l!==e?(b=t,t=Qtt(s)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,o.charCodeAt(r)===92?(n=Pl,r++):(n=e,m===0&&C(Ml)),n!==e?(o.charCodeAt(r)===120?(s=lw,r++):(s=e,m===0&&C(ZNe)),s!==e?(l=r,c=r,h=Rr(),h!==e?(T=Rr(),T!==e?(h=[h,T],c=h):(r=c,c=e)):(r=c,c=e),c===e&&(c=Rr()),c!==e?l=o.substring(l,r):l=c,l!==e?(c=r,m++,h=ye(),m--,h!==e?(r=c,c=void 0):c=e,c!==e?(b=t,t=ert(l)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,o.charCodeAt(r)===92?(n=Pl,r++):(n=e,m===0&&C(Ml)),n!==e?(o.substr(r,1).toLowerCase()===lw?(s=o.charAt(r),r++):(s=e,m===0&&C(JNe)),s!==e?(l=r,c=r,h=Rr(),h!==e?(T=Rr(),T!==e?(h=[h,T],c=h):(r=c,c=e)):(r=c,c=e),c!==e?l=o.substring(l,r):l=c,l!==e?(c=r,m++,h=Oe(),m--,h!==e?(r=c,c=void 0):c=e,c!==e?(b=t,t=trt(l)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,o.charCodeAt(r)===92?(n=Pl,r++):(n=e,m===0&&C(Ml)),n!==e?(o.charCodeAt(r)===117?(s=vbe,r++):(s=e,m===0&&C(HNe)),s!==e?(l=r,c=r,h=Rr(),h!==e?(T=Rr(),T!==e?(_=Rr(),_!==e?(x=Rr(),x!==e?(h=[h,T,_,x],c=h):(r=c,c=e)):(r=c,c=e)):(r=c,c=e)):(r=c,c=e),c!==e?l=o.substring(l,r):l=c,l!==e?(c=r,m++,h=Oe(),m--,h!==e?(r=c,c=void 0):c=e,c===e&&(c=r,m++,h=ye(),m--,h!==e?(r=c,c=void 0):c=e),c!==e?(b=t,t=rrt(l)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,o.charCodeAt(r)===92?(n=Pl,r++):(n=e,m===0&&C(Ml)),n!==e?(o.charCodeAt(r)===85?(s=Ebe,r++):(s=e,m===0&&C(WNe)),s!==e?(l=r,c=r,h=Rr(),h!==e?(T=Rr(),T!==e?(_=Rr(),_!==e?(x=Rr(),x!==e?(W=Rr(),W!==e?(pe=Rr(),pe!==e?(Ve=Rr(),Ve!==e?(qe=Rr(),qe!==e?(h=[h,T,_,x,W,pe,Ve,qe],c=h):(r=c,c=e)):(r=c,c=e)):(r=c,c=e)):(r=c,c=e)):(r=c,c=e)):(r=c,c=e)):(r=c,c=e)):(r=c,c=e),c!==e?l=o.substring(l,r):l=c,l!==e?(c=r,m++,h=Oe(),m--,h!==e?(r=c,c=void 0):c=e,c===e&&(c=r,m++,h=ye(),m--,h!==e?(r=c,c=void 0):c=e),c!==e?(b=t,t=irt(l)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,o.substr(r,2)===yK?(n=yK,r+=2):(n=e,m===0&&C(YNe)),n!==e?(s=r,m++,l=Be(),m--,l!==e?(r=s,s=void 0):s=e,s!==e?(b=t,t=srt()):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,o.substr(r,2)===mK?(n=mK,r+=2):(n=e,m===0&&C(zNe)),n!==e?(s=r,m++,l=Be(),m--,l!==e?(r=s,s=void 0):s=e,s!==e?(b=t,t=nrt()):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,o.substr(r,2)===vK?(n=vK,r+=2):(n=e,m===0&&C(XNe)),n!==e?(s=r,m++,l=Be(),m--,l!==e?(r=s,s=void 0):s=e,s!==e?(b=t,t=art()):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,o.substr(r,2)===EK?(n=EK,r+=2):(n=e,m===0&&C(QNe)),n!==e?(s=r,m++,l=Be(),m--,l!==e?(r=s,s=void 0):s=e,s!==e?(b=t,t=ort()):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,o.charCodeAt(r)===92?(n=Pl,r++):(n=e,m===0&&C(Ml)),n!==e?(o.length>r?(s=o.charAt(r),r++):(s=e,m===0&&C(Ui)),s!==e?(b=t,t=lrt(s)):(r=t,t=e)):(r=t,t=e)))))))))))))))))),t}function Jbt(){var t,n,s;return t=r,o.substr(r,1).toLowerCase()===Tbe?(n=o.charAt(r),r++):(n=e,m===0&&C(eVe)),n!==e?(s=Bf(),s!==e?(b=t,t=drt(s)):(r=t,t=e)):(r=t,t=e),t}function Hbt(){var t,n,s;return t=r,o.substr(r,1).toLowerCase()===Ibe?(n=o.charAt(r),r++):(n=e,m===0&&C(tVe)),n!==e?(s=T8(),s!==e?(b=t,t=urt(s)):(r=t,t=e)):(r=t,t=e),t}function Wbt(){var t,n,s;return t=r,o.substr(r,2).toLowerCase()===Abe?(n=o.substr(r,2),r+=2):(n=e,m===0&&C(rVe)),n===e&&(o.substr(r,2).toLowerCase()===bbe?(n=o.substr(r,2),r+=2):(n=e,m===0&&C(iVe))),n!==e?(s=T8(),s!==e?(b=t,t=crt(s)):(r=t,t=e)):(r=t,t=e),t}function T8(){var t,n,s,l,c;if(t=r,o.substr(r,3)===go?(n=go,r+=3):(n=e,m===0&&C(n0)),n!==e){for(s=r,l=[],lu.test(o.charAt(r))?(c=o.charAt(r),r++):(c=e,m===0&&C(mu)),c===e&&(c=Q0());c!==e;)l.push(c),lu.test(o.charAt(r))?(c=o.charAt(r),r++):(c=e,m===0&&C(mu)),c===e&&(c=Q0());s=o.substring(s,r),o.substr(r,3)===go?(l=go,r+=3):(l=e,m===0&&C(n0)),l!==e?(b=t,t=prt(s)):(r=t,t=e)}else r=t,t=e;if(t===e){if(t=r,o.substr(r,3)===Do?(n=Do,r+=3):(n=e,m===0&&C(a0)),n!==e){for(s=r,l=[],du.test(o.charAt(r))?(c=o.charAt(r),r++):(c=e,m===0&&C(vu)),c===e&&(c=ev());c!==e;)l.push(c),du.test(o.charAt(r))?(c=o.charAt(r),r++):(c=e,m===0&&C(vu)),c===e&&(c=ev());s=o.substring(s,r),o.substr(r,3)===Do?(l=Do,r+=3):(l=e,m===0&&C(a0)),l!==e?(b=t,t=frt(s)):(r=t,t=e)}else r=t,t=e;if(t===e){if(t=r,o.charCodeAt(r)===39?(n=bs,r++):(n=e,m===0&&C(ws)),n!==e){for(s=r,l=[],lu.test(o.charAt(r))?(c=o.charAt(r),r++):(c=e,m===0&&C(mu));c!==e;)l.push(c),lu.test(o.charAt(r))?(c=o.charAt(r),r++):(c=e,m===0&&C(mu));s=o.substring(s,r),o.charCodeAt(r)===39?(l=bs,r++):(l=e,m===0&&C(ws)),l!==e?(b=t,t=hrt(s)):(r=t,t=e)}else r=t,t=e;if(t===e)if(t=r,o.charCodeAt(r)===34?(n=aa,r++):(n=e,m===0&&C(la)),n!==e){for(s=r,l=[],du.test(o.charAt(r))?(c=o.charAt(r),r++):(c=e,m===0&&C(vu));c!==e;)l.push(c),du.test(o.charAt(r))?(c=o.charAt(r),r++):(c=e,m===0&&C(vu));s=o.substring(s,r),o.charCodeAt(r)===34?(l=aa,r++):(l=e,m===0&&C(la)),l!==e?(b=t,t=yrt(s)):(r=t,t=e)}else r=t,t=e}}return t}function Ybt(){var t,n,s,l,c,h,T,_,x,W,pe,Ve,qe;if(t=r,o.substr(r,2)===Oo?(n=Oo,r+=2):(n=e,m===0&&C(o0)),n!==e){for(s=r,l=[],c=r,h=r,m++,o.substr(r,2)===Oo?(T=Oo,r+=2):(T=e,m===0&&C(o0)),m--,T===e?h=void 0:(r=h,h=e),h!==e?(o.length>r?(T=o.charAt(r),r++):(T=e,m===0&&C(Ui)),T!==e?(h=[h,T],c=h):(r=c,c=e)):(r=c,c=e);c!==e;)l.push(c),c=r,h=r,m++,o.substr(r,2)===Oo?(T=Oo,r+=2):(T=e,m===0&&C(o0)),m--,T===e?h=void 0:(r=h,h=e),h!==e?(o.length>r?(T=o.charAt(r),r++):(T=e,m===0&&C(Ui)),T!==e?(h=[h,T],c=h):(r=c,c=e)):(r=c,c=e);s=o.substring(s,r),o.substr(r,2)===Oo?(l=Oo,r+=2):(l=e,m===0&&C(o0)),l!==e?(b=t,t=mrt(s)):(r=t,t=e)}else r=t,t=e;if(t===e)if(t=r,o.charCodeAt(r)===36?(n=en,r++):(n=e,m===0&&C(rn)),n!==e)if(s=tv(),s!==e)if(o.charCodeAt(r)===36?(l=en,r++):(l=e,m===0&&C(rn)),l!==e){for(c=r,h=[],T=r,_=r,m++,x=r,o.charCodeAt(r)===36?(W=en,r++):(W=e,m===0&&C(rn)),W!==e?(pe=tv(),pe!==e?(o.charCodeAt(r)===36?(Ve=en,r++):(Ve=e,m===0&&C(rn)),Ve!==e?(b=r,qe=zK(s,pe),qe?qe=void 0:qe=e,qe!==e?(W=[W,pe,Ve,qe],x=W):(r=x,x=e)):(r=x,x=e)):(r=x,x=e)):(r=x,x=e),m--,x===e?_=void 0:(r=_,_=e),_!==e?(o.length>r?(x=o.charAt(r),r++):(x=e,m===0&&C(Ui)),x!==e?(_=[_,x],T=_):(r=T,T=e)):(r=T,T=e);T!==e;)h.push(T),T=r,_=r,m++,x=r,o.charCodeAt(r)===36?(W=en,r++):(W=e,m===0&&C(rn)),W!==e?(pe=tv(),pe!==e?(o.charCodeAt(r)===36?(Ve=en,r++):(Ve=e,m===0&&C(rn)),Ve!==e?(b=r,qe=zK(s,pe),qe?qe=void 0:qe=e,qe!==e?(W=[W,pe,Ve,qe],x=W):(r=x,x=e)):(r=x,x=e)):(r=x,x=e)):(r=x,x=e),m--,x===e?_=void 0:(r=_,_=e),_!==e?(o.length>r?(x=o.charAt(r),r++):(x=e,m===0&&C(Ui)),x!==e?(_=[_,x],T=_):(r=T,T=e)):(r=T,T=e);c=o.substring(c,r),o.charCodeAt(r)===36?(h=en,r++):(h=e,m===0&&C(rn)),h!==e?(T=tv(),T!==e?(o.charCodeAt(r)===36?(_=en,r++):(_=e,m===0&&C(rn)),_!==e?(b=r,x=vrt(s,c,T),x?x=void 0:x=e,x!==e?(b=t,t=Ert(s,c)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)}else r=t,t=e;else r=t,t=e;else r=t,t=e;return t}function tv(){var t,n,s,l;if(t=r,n=Sl(),n!==e){for(s=[],l=Sl(),l===e&&(l=Uf());l!==e;)s.push(l),l=Sl(),l===e&&(l=Uf());b=t,t=Trt()}else r=t,t=e;return t}function zbt(){var t,n,s;return t=r,o.substr(r,1).toLowerCase()===TK?(n=o.charAt(r),r++):(n=e,m===0&&C(sVe)),n!==e?(s=E8(),s===e&&(s=v8(),s===e&&(s=m8(),s===e&&(s=h8()))),s!==e?(b=t,t=Irt(s)):(r=t,t=e)):(r=t,t=e),t}function Xbt(){var t,n,s,l,c;return t=r,n=R_(),n!==e?(s=r,l=I(),c=xs(),c!==e?(l=[l,c],s=l):(r=s,s=e),s!==e?(l=r,m++,c=Be(),m--,c!==e?(r=l,l=void 0):l=e,l===e&&(l=r,m++,c=tt(),m--,c!==e?(r=l,l=void 0):l=e,l===e&&(l=r,m++,c=Oe(),m--,c!==e?(r=l,l=void 0):l=e)),l!==e?(b=t,t=Art(n,s)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=pg(),n!==e?(s=r,l=I(),c=xs(),c!==e?(l=[l,c],s=l):(r=s,s=e),s!==e?(b=t,t=brt(n,s)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=pv(),n!==e?(s=r,l=I(),c=xs(),c!==e?(l=[l,c],s=l):(r=s,s=e),s!==e?(b=t,t=wrt(n,s)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=Xl(),n!==e?(s=r,l=I(),c=xs(),c!==e?(l=[l,c],s=l):(r=s,s=e),s!==e?(b=t,t=Rrt(n,s)):(r=t,t=e)):(r=t,t=e)))),t}function Qbt(){var t,n,s,l,c,h;return t=r,n=r,m++,s=Oe(),m--,s!==e?(r=n,n=void 0):n=e,n===e&&(n=r,m++,s=ye(),m--,s!==e?(r=n,n=void 0):n=e),n!==e?(s=U_(),s!==e?(l=r,c=I(),h=xs(),h!==e?(c=[c,h],l=c):(r=l,l=e),l!==e?(b=t,t=_rt(s,l)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function ewt(){var t,n,s,l,c,h;return t=r,n=r,m++,s=ye(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=M_t(),s!==e?(l=r,c=I(),h=xs(),h!==e?(c=[c,h],l=c):(r=l,l=e),l!==e?(b=t,t=grt(s,l)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function twt(){var t,n,s,l,c,h;return t=r,n=r,m++,s=Oe(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=H_(),s!==e?(l=r,c=I(),h=xs(),h!==e?(c=[c,h],l=c):(r=l,l=e),l!==e?(b=t,t=Drt(s,l)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function rwt(){var t,n,s,l,c,h;return t=r,n=r,m++,s=Oe(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=U8(),s!==e?(l=r,c=I(),h=xs(),h!==e?(c=[c,h],l=c):(r=l,l=e),l!==e?(b=t,t=Ort(s,l)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function iwt(){var t,n,s,l,c,h;return t=r,n=r,m++,s=ye(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=Fu(),s!==e?(l=r,c=I(),h=xs(),h!==e?(c=[c,h],l=c):(r=l,l=e),l!==e?(b=t,t=Crt(s,l)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function I8(){var t,n,s;return t=swt(),t===e&&(t=r,n=r,m++,s=Be(),m--,s!==e?(r=n,n=void 0):n=e,n===e&&(n=r,m++,s=ye(),m--,s!==e?(r=n,n=void 0):n=e),n!==e?(s=nwt(),s!==e?(b=t,t=$rt(s)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=r,m++,s=Be(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=owt(),s!==e?(b=t,t=Prt(s)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=r,m++,s=Be(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=dwt(),s!==e?(b=t,t=Nrt(s)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=r,m++,s=Oe(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=Wbt(),s!==e?(b=t,t=Vrt(s)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=r,m++,s=Oe(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=zbt(),s!==e?(b=t,t=Lrt(s)):(r=t,t=e)):(r=t,t=e)))))),t}function swt(){var t,n,s,l,c,h;if(t=r,o.substr(r,1).toLowerCase()===lw?(n=o.charAt(r),r++):(n=e,m===0&&C(nVe)),n!==e)if(o.charCodeAt(r)===39?(s=bs,r++):(s=e,m===0&&C(ws)),s!==e){for(l=r,c=[],h=Rr();h!==e;)c.push(h),h=Rr();l=o.substring(l,r),o.charCodeAt(r)===39?(c=bs,r++):(c=e,m===0&&C(ws)),c!==e?(b=t,t=Mrt(l)):(r=t,t=e)}else r=t,t=e;else r=t,t=e;return t}function nwt(){var t,n,s,l,c,h;if(t=r,o.substr(r,1).toLowerCase()===TK?(n=o.charAt(r),r++):(n=e,m===0&&C(aVe)),n!==e)if(o.charCodeAt(r)===39?(s=bs,r++):(s=e,m===0&&C(ws)),s!==e){for(l=r,c=[],oa.test(o.charAt(r))?(h=o.charAt(r),r++):(h=e,m===0&&C(da));h!==e;)c.push(h),oa.test(o.charAt(r))?(h=o.charAt(r),r++):(h=e,m===0&&C(da));l=o.substring(l,r),o.charCodeAt(r)===39?(c=bs,r++):(c=e,m===0&&C(ws)),c!==e?(b=t,t=Brt(l)):(r=t,t=e)}else r=t,t=e;else r=t,t=e;return t}function Kl(){var t,n,s,l,c;return t=r,o.charCodeAt(r)===45?(n=nu,r++):(n=e,m===0&&C(hu)),n===e&&(o.charCodeAt(r)===43?(n=Hm,r++):(n=e,m===0&&C(s0))),n!==e?(s=r,l=I(),c=ds(),c!==e?(l=[l,c],s=l):(r=s,s=e),s!==e?(b=t,t=Urt(n,s)):(r=t,t=e)):(r=t,t=e),t===e&&(t=ds()),t}function ds(){var t,n,s,l;return m++,t=cwt(),t===e&&(t=r,n=awt(),n!==e?(s=r,m++,l=tt(),m--,l!==e?(r=s,s=void 0):s=e,s===e&&(s=r,m++,l=Oe(),m--,l!==e?(r=s,s=void 0):s=e,s===e&&(s=r,m++,l=ye(),m--,l!==e?(r=s,s=void 0):s=e)),s!==e?(b=t,t=jrt(n)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=lwt(),n!==e?(s=r,m++,l=ye(),m--,l!==e?(r=s,s=void 0):s=e,s!==e?(b=t,t=xrt(n)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=uwt(),n!==e?(s=r,m++,l=ye(),m--,l!==e?(r=s,s=void 0):s=e,s!==e?(b=t,t=Frt(n)):(r=t,t=e)):(r=t,t=e)))),m--,t===e&&(n=e,m===0&&C(oVe)),t}function awt(){var t,n,s,l,c;if(t=r,n=r,m++,s=ye(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(o.substr(r,2)===au?(s=au,r+=2):(s=e,m===0&&C(Iw)),s!==e?(l=fwt(),l!==e?(b=t,t=Grt()):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t===e)if(t=r,n=r,m++,s=ye(),m--,s===e?n=void 0:(r=n,n=e),n!==e)if(o.substr(r,2)===au?(s=au,r+=2):(s=e,m===0&&C(Iw)),s!==e){if(l=[],c=Rr(),c!==e)for(;c!==e;)l.push(c),c=Rr();else l=e;l!==e?(b=t,t=Srt()):(r=t,t=e)}else r=t,t=e;else r=t,t=e;return t}function owt(){var t,n,s,l,c;if(t=r,o.substr(r,2)===au?(n=au,r+=2):(n=e,m===0&&C(Iw)),n!==e){if(s=r,l=[],c=Rr(),c!==e)for(;c!==e;)l.push(c),c=Rr();else l=e;l!==e?s=o.substring(s,r):s=l,s!==e?(b=t,t=Krt(s)):(r=t,t=e)}else r=t,t=e;return t}function lwt(){var t,n,s,l;return t=r,o.substr(r,2)===Qm?(n=Qm,r+=2):(n=e,m===0&&C(ZK)),n!==e?(s=r,l=ywt(),l!==e?s=o.substring(s,r):s=l,s!==e?(b=t,t=krt(s)):(r=t,t=e)):(r=t,t=e),t}function dwt(){var t,n,s,l,c;if(t=r,o.substr(r,2)===Qm?(n=Qm,r+=2):(n=e,m===0&&C(ZK)),n!==e){if(s=r,l=[],oa.test(o.charAt(r))?(c=o.charAt(r),r++):(c=e,m===0&&C(da)),c!==e)for(;c!==e;)l.push(c),oa.test(o.charAt(r))?(c=o.charAt(r),r++):(c=e,m===0&&C(da));else l=e;l!==e?s=o.substring(s,r):s=l,s!==e?(b=t,t=qrt(s)):(r=t,t=e)}else r=t,t=e;return t}function uwt(){var t,n,s,l;return t=r,o.substr(r,2)===IK?(n=IK,r+=2):(n=e,m===0&&C(lVe)),n!==e?(s=r,l=hwt(),l!==e?s=o.substring(s,r):s=l,s!==e?(b=t,t=Zrt(s)):(r=t,t=e)):(r=t,t=e),t}function cwt(){var t,n,s,l,c,h;return t=r,n=r,m++,s=ye(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=r,l=b8(),l!==e?(c=A8(),c===e&&(c=null),l=[l,c],s=l):(r=s,s=e),s===e&&(s=A8()),s!==e?(l=pwt(),l===e&&(l=null),c=r,m++,h=f_(),m--,h===e?c=void 0:(r=c,c=e),c!==e?(b=t,t=Jrt()):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=r,m++,s=ye(),m--,s===e?n=void 0:(r=n,n=e),n!==e?(s=r,l=Fs(),l!==e?(c=w8(),c===e&&(c=null),l=[l,c],s=l):(r=s,s=e),s===e&&(s=w8()),s!==e?(l=R8(),l===e&&(l=null),c=r,m++,h=f_(),m--,h===e?c=void 0:(r=c,c=e),c!==e?(b=t,t=Hrt()):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)),t}function pwt(){var t,n,s,l,c,h;if(t=r,n=R8(),n!==e){for(s=[],l=r,o.charCodeAt(r)===95?(c=_n,r++):(c=e,m===0&&C(Dn)),c!==e?(h=Fs(),h!==e?(c=[c,h],l=c):(r=l,l=e)):(r=l,l=e);l!==e;)s.push(l),l=r,o.charCodeAt(r)===95?(c=_n,r++):(c=e,m===0&&C(Dn)),c!==e?(h=Fs(),h!==e?(c=[c,h],l=c):(r=l,l=e)):(r=l,l=e);n=[n,s],t=n}else r=t,t=e;return t}function A8(){var t,n,s;return t=r,o.charCodeAt(r)===46?(n=$,r++):(n=e,m===0&&C(gn)),n!==e?(s=b8(),s!==e?(n=[n,s],t=n):(r=t,t=e)):(r=t,t=e),t}function b8(){var t,n,s,l,c,h;if(t=r,n=Fs(),n!==e){for(s=[],l=r,o.charCodeAt(r)===95?(c=_n,r++):(c=e,m===0&&C(Dn)),c!==e?(h=Fs(),h!==e?(c=[c,h],l=c):(r=l,l=e)):(r=l,l=e);l!==e;)s.push(l),l=r,o.charCodeAt(r)===95?(c=_n,r++):(c=e,m===0&&C(Dn)),c!==e?(h=Fs(),h!==e?(c=[c,h],l=c):(r=l,l=e)):(r=l,l=e);n=[n,s],t=n}else r=t,t=e;return t}function fwt(){var t,n,s,l,c,h,T;if(t=r,n=[],s=Rr(),s!==e)for(;s!==e;)n.push(s),s=Rr();else n=e;if(n!==e){if(s=[],l=r,o.charCodeAt(r)===95?(c=_n,r++):(c=e,m===0&&C(Dn)),c!==e){if(h=[],T=Rr(),T!==e)for(;T!==e;)h.push(T),T=Rr();else h=e;h!==e?(c=[c,h],l=c):(r=l,l=e)}else r=l,l=e;for(;l!==e;)if(s.push(l),l=r,o.charCodeAt(r)===95?(c=_n,r++):(c=e,m===0&&C(Dn)),c!==e){if(h=[],T=Rr(),T!==e)for(;T!==e;)h.push(T),T=Rr();else h=e;h!==e?(c=[c,h],l=c):(r=l,l=e)}else r=l,l=e;n=[n,s],t=n}else r=t,t=e;return t}function hwt(){var t,n,s,l,c,h,T;if(t=r,n=[],as.test(o.charAt(r))?(s=o.charAt(r),r++):(s=e,m===0&&C(ls)),s!==e)for(;s!==e;)n.push(s),as.test(o.charAt(r))?(s=o.charAt(r),r++):(s=e,m===0&&C(ls));else n=e;if(n!==e){if(s=[],l=r,o.charCodeAt(r)===95?(c=_n,r++):(c=e,m===0&&C(Dn)),c!==e){if(h=[],as.test(o.charAt(r))?(T=o.charAt(r),r++):(T=e,m===0&&C(ls)),T!==e)for(;T!==e;)h.push(T),as.test(o.charAt(r))?(T=o.charAt(r),r++):(T=e,m===0&&C(ls));else h=e;h!==e?(c=[c,h],l=c):(r=l,l=e)}else r=l,l=e;for(;l!==e;)if(s.push(l),l=r,o.charCodeAt(r)===95?(c=_n,r++):(c=e,m===0&&C(Dn)),c!==e){if(h=[],as.test(o.charAt(r))?(T=o.charAt(r),r++):(T=e,m===0&&C(ls)),T!==e)for(;T!==e;)h.push(T),as.test(o.charAt(r))?(T=o.charAt(r),r++):(T=e,m===0&&C(ls));else h=e;h!==e?(c=[c,h],l=c):(r=l,l=e)}else r=l,l=e;n=[n,s],t=n}else r=t,t=e;return t}function ywt(){var t,n,s,l,c,h,T;if(t=r,n=[],oa.test(o.charAt(r))?(s=o.charAt(r),r++):(s=e,m===0&&C(da)),s!==e)for(;s!==e;)n.push(s),oa.test(o.charAt(r))?(s=o.charAt(r),r++):(s=e,m===0&&C(da));else n=e;if(n!==e){if(s=[],l=r,o.charCodeAt(r)===95?(c=_n,r++):(c=e,m===0&&C(Dn)),c!==e){if(h=[],oa.test(o.charAt(r))?(T=o.charAt(r),r++):(T=e,m===0&&C(da)),T!==e)for(;T!==e;)h.push(T),oa.test(o.charAt(r))?(T=o.charAt(r),r++):(T=e,m===0&&C(da));else h=e;h!==e?(c=[c,h],l=c):(r=l,l=e)}else r=l,l=e;for(;l!==e;)if(s.push(l),l=r,o.charCodeAt(r)===95?(c=_n,r++):(c=e,m===0&&C(Dn)),c!==e){if(h=[],oa.test(o.charAt(r))?(T=o.charAt(r),r++):(T=e,m===0&&C(da)),T!==e)for(;T!==e;)h.push(T),oa.test(o.charAt(r))?(T=o.charAt(r),r++):(T=e,m===0&&C(da));else h=e;h!==e?(c=[c,h],l=c):(r=l,l=e)}else r=l,l=e;n=[n,s],t=n}else r=t,t=e;return t}function w8(){var t,n,s;return t=r,o.charCodeAt(r)===46?(n=$,r++):(n=e,m===0&&C(gn)),n!==e?(s=Fs(),s!==e?(n=[n,s],t=n):(r=t,t=e)):(r=t,t=e),t}function R8(){var t,n,s,l;return t=r,aNe.test(o.charAt(r))?(n=o.charAt(r),r++):(n=e,m===0&&C(dVe)),n!==e?(oNe.test(o.charAt(r))?(s=o.charAt(r),r++):(s=e,m===0&&C(uVe)),s===e&&(s=null),l=Fs(),l!==e?(n=[n,s,l],t=n):(r=t,t=e)):(r=t,t=e),t}function Fs(){var t,n,s;if(t=r,n=[],s=Uf(),s!==e)for(;s!==e;)n.push(s),s=Uf();else n=e;return n!==e&&(b=t,n=Wrt()),t=n,t}function Uf(){var t;return lNe.test(o.charAt(r))?(t=o.charAt(r),r++):(t=e,m===0&&C(cVe)),t}function Rr(){var t;return dNe.test(o.charAt(r))?(t=o.charAt(r),r++):(t=e,m===0&&C(pVe)),t}function I(){var t,n,s;for(m++,t=r,n=[],s=rv(),s===e&&(s=g8(),s===e&&(s=_8()));s!==e;)n.push(s),s=rv(),s===e&&(s=g8(),s===e&&(s=_8()));return b=t,n=Yrt(n),t=n,m--,n=e,m===0&&C(fVe),t}function Cu(){var t,n,s;for(t=r,n=[],s=rv(),s===e&&(s=m_());s!==e;)n.push(s),s=rv(),s===e&&(s=m_());return b=t,n=zrt(n),t=n,t}function _8(){var t,n,s;return t=m_(),t===e&&(t=r,n=r,m++,s=ye(),m--,s===e?n=void 0:(r=n,n=e),n!==e?(s=vwt(),s!==e?(b=t,t=Xrt(s)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=r,m++,s=ye(),m--,s===e?n=void 0:(r=n,n=e),n!==e?(s=mwt(),s!==e?(b=t,t=Qrt(s)):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,n=r,m++,s=ye(),m--,s!==e?(r=n,n=void 0):n=e,n!==e?(s=y_(),s!==e?(b=t,t=eit(s)):(r=t,t=e)):(r=t,t=e)))),t}function mwt(){var t,n,s,l,c,h;if(t=r,o.substr(r,2)===e0?(n=e0,r+=2):(n=e,m===0&&C(JK)),n!==e){for(s=[],l=r,c=r,m++,o.substr(r,2)===tn?(h=tn,r+=2):(h=e,m===0&&C(Tu)),m--,h===e?c=void 0:(r=c,c=e),c!==e?(o.length>r?(h=o.charAt(r),r++):(h=e,m===0&&C(Ui)),h!==e?(c=[c,h],l=c):(r=l,l=e)):(r=l,l=e);l!==e;)s.push(l),l=r,c=r,m++,o.substr(r,2)===tn?(h=tn,r+=2):(h=e,m===0&&C(Tu)),m--,h===e?c=void 0:(r=c,c=e),c!==e?(o.length>r?(h=o.charAt(r),r++):(h=e,m===0&&C(Ui)),h!==e?(c=[c,h],l=c):(r=l,l=e)):(r=l,l=e);o.substr(r,2)===tn?(l=tn,r+=2):(l=e,m===0&&C(Tu)),l!==e?(b=t,t=tit()):(r=t,t=e)}else r=t,t=e;return t}function y_(){var t,n,s,l,c,h;if(t=r,o.substr(r,2)===e0?(n=e0,r+=2):(n=e,m===0&&C(JK)),n!==e){for(s=[],l=y_(),l===e&&(l=r,c=r,m++,o.substr(r,2)===tn?(h=tn,r+=2):(h=e,m===0&&C(Tu)),m--,h===e?c=void 0:(r=c,c=e),c!==e?(o.length>r?(h=o.charAt(r),r++):(h=e,m===0&&C(Ui)),h!==e?(c=[c,h],l=c):(r=l,l=e)):(r=l,l=e));l!==e;)s.push(l),l=y_(),l===e&&(l=r,c=r,m++,o.substr(r,2)===tn?(h=tn,r+=2):(h=e,m===0&&C(Tu)),m--,h===e?c=void 0:(r=c,c=e),c!==e?(o.length>r?(h=o.charAt(r),r++):(h=e,m===0&&C(Ui)),h!==e?(c=[c,h],l=c):(r=l,l=e)):(r=l,l=e));o.substr(r,2)===tn?(l=tn,r+=2):(l=e,m===0&&C(Tu)),l!==e?(b=t,t=rit()):(r=t,t=e)}else r=t,t=e;return t}function m_(){var t,n,s,l,c,h;if(t=r,o.substr(r,2)===AK?(n=AK,r+=2):(n=e,m===0&&C(hVe)),n!==e){for(s=[],l=r,c=r,m++,h=iv(),m--,h===e?c=void 0:(r=c,c=e),c!==e?(o.length>r?(h=o.charAt(r),r++):(h=e,m===0&&C(Ui)),h!==e?(c=[c,h],l=c):(r=l,l=e)):(r=l,l=e);l!==e;)s.push(l),l=r,c=r,m++,h=iv(),m--,h===e?c=void 0:(r=c,c=e),c!==e?(o.length>r?(h=o.charAt(r),r++):(h=e,m===0&&C(Ui)),h!==e?(c=[c,h],l=c):(r=l,l=e)):(r=l,l=e);b=t,t=iit()}else r=t,t=e;return t}function vwt(){var t,n,s,l,c,h;if(t=r,o.charCodeAt(r)===35?(n=sK,r++):(n=e,m===0&&C(BK)),n!==e){for(s=[],l=r,c=r,m++,h=iv(),m--,h===e?c=void 0:(r=c,c=e),c!==e?(o.length>r?(h=o.charAt(r),r++):(h=e,m===0&&C(Ui)),h!==e?(c=[c,h],l=c):(r=l,l=e)):(r=l,l=e);l!==e;)s.push(l),l=r,c=r,m++,h=iv(),m--,h===e?c=void 0:(r=c,c=e),c!==e?(o.length>r?(h=o.charAt(r),r++):(h=e,m===0&&C(Ui)),h!==e?(c=[c,h],l=c):(r=l,l=e)):(r=l,l=e);b=t,t=sit()}else r=t,t=e;return t}function rv(){var t,n,s;if(t=r,n=[],OK.test(o.charAt(r))?(s=o.charAt(r),r++):(s=e,m===0&&C(HK)),s!==e)for(;s!==e;)n.push(s),OK.test(o.charAt(r))?(s=o.charAt(r),r++):(s=e,m===0&&C(HK));else n=e;return n!==e&&(b=t,n=nit()),t=n,t}function g8(){var t,n;return t=r,o.substr(r,2)===bK?(n=bK,r+=2):(n=e,m===0&&C(yVe)),n===e&&(o.charCodeAt(r)===10?(n=$l,r++):(n=e,m===0&&C(Ll))),n!==e&&(b=t,n=ait()),t=n,t}function iv(){var t;return t=D8(),t===e&&(uNe.test(o.charAt(r))?(t=o.charAt(r),r++):(t=e,m===0&&C(mVe))),t}function D8(){var t,n;return t=r,m++,o.length>r?(n=o.charAt(r),r++):(n=e,m===0&&C(Ui)),m--,n===e?t=void 0:(r=t,t=e),t}function Oe(){var t;return b=r,t=oit(),t?t=void 0:t=e,t}function tt(){var t;return b=r,t=lit(),t?t=void 0:t=e,t}function Be(){var t;return b=r,t=dit(),t?t=void 0:t=e,t}function Vo(){var t;return b=r,t=uit(),t?t=void 0:t=e,t}function sv(){var t;return b=r,t=cit(),t?t=void 0:t=e,t}function ye(){var t;return b=r,t=pit(),t?t=void 0:t=e,t}function Ewt(){var t,n,s;if(t=r,n=[],CK.test(o.charAt(r))?(s=o.charAt(r),r++):(s=e,m===0&&C(WK)),s!==e)for(;s!==e;)n.push(s),CK.test(o.charAt(r))?(s=o.charAt(r),r++):(s=e,m===0&&C(WK));else n=e;return n!==e&&(b=t,n=fit()),t=n,t}function O8(){var t,n;return t=r,n=Cn(),n!==e&&(b=t,n=hit(n)),t=n,t}function nv(){var t,n,s;return t=r,n=Cn(),n!==e?(b=r,s=yit(n),s?s=e:s=void 0,s!==e?(b=t,t=mit(n)):(r=t,t=e)):(r=t,t=e),t}function av(){var t,n,s,l;return t=r,o.substr(r,5).toLowerCase()===wbe?(n=o.substr(r,5),r+=5):(n=e,m===0&&C(vVe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=vit(n)):(r=t,t=e)):(r=t,t=e),t}function ov(){var t,n,s,l;return t=r,o.substr(r,6).toLowerCase()===Rbe?(n=o.substr(r,6),r+=6):(n=e,m===0&&C(EVe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Eit(n)):(r=t,t=e)):(r=t,t=e),t}function Twt(){var t,n,s,l;return t=r,o.substr(r,6).toLowerCase()===_be?(n=o.substr(r,6),r+=6):(n=e,m===0&&C(TVe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Tit(n)):(r=t,t=e)):(r=t,t=e),t}function kl(){var t,n,s,l;return t=r,o.substr(r,3).toLowerCase()===gbe?(n=o.substr(r,3),r+=3):(n=e,m===0&&C(IVe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Iit(n)):(r=t,t=e)):(r=t,t=e),t}function v_(){var t,n,s,l;return t=r,o.substr(r,5).toLowerCase()===Dbe?(n=o.substr(r,5),r+=5):(n=e,m===0&&C(AVe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Ait(n)):(r=t,t=e)):(r=t,t=e),t}function C8(){var t,n,s,l;return t=r,o.substr(r,5).toLowerCase()===Obe?(n=o.substr(r,5),r+=5):(n=e,m===0&&C(bVe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=bit(n)):(r=t,t=e)):(r=t,t=e),t}function Iwt(){var t,n,s,l;return t=r,o.substr(r,7).toLowerCase()===Cbe?(n=o.substr(r,7),r+=7):(n=e,m===0&&C(wVe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=wit(n)):(r=t,t=e)):(r=t,t=e),t}function li(){var t,n,s,l;return t=r,o.substr(r,3).toLowerCase()===$be?(n=o.substr(r,3),r+=3):(n=e,m===0&&C(RVe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Rit(n)):(r=t,t=e)):(r=t,t=e),t}function Jr(){var t,n,s,l;return t=r,o.substr(r,5).toLowerCase()===Pbe?(n=o.substr(r,5),r+=5):(n=e,m===0&&C(_Ve)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=_it(n)):(r=t,t=e)):(r=t,t=e),t}function jf(){var t,n,s,l;return t=r,o.substr(r,6).toLowerCase()===Nbe?(n=o.substr(r,6),r+=6):(n=e,m===0&&C(gVe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=git(n)):(r=t,t=e)):(r=t,t=e),t}function $8(){var t,n,s,l;return t=r,o.substr(r,7).toLowerCase()===Vbe?(n=o.substr(r,7),r+=7):(n=e,m===0&&C(DVe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Dit(n)):(r=t,t=e)):(r=t,t=e),t}function ha(){var t,n,s,l;return t=r,o.substr(r,3).toLowerCase()===Lbe?(n=o.substr(r,3),r+=3):(n=e,m===0&&C(OVe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Oit(n)):(r=t,t=e)):(r=t,t=e),t}function P8(){var t,n,s,l;return t=r,o.substr(r,3).toLowerCase()===Mbe?(n=o.substr(r,3),r+=3):(n=e,m===0&&C(CVe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Cit(n)):(r=t,t=e)):(r=t,t=e),t}function E_(){var t,n,s,l;return t=r,o.substr(r,5).toLowerCase()===Bbe?(n=o.substr(r,5),r+=5):(n=e,m===0&&C($Ve)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=$it(n)):(r=t,t=e)):(r=t,t=e),t}function Lr(){var t,n,s,l;return t=r,o.substr(r,2).toLowerCase()===Ube?(n=o.substr(r,2),r+=2):(n=e,m===0&&C(PVe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Pit(n)):(r=t,t=e)):(r=t,t=e),t}function Awt(){var t,n,s,l;return t=r,o.substr(r,3).toLowerCase()===jbe?(n=o.substr(r,3),r+=3):(n=e,m===0&&C(NVe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Nit(n)):(r=t,t=e)):(r=t,t=e),t}function bwt(){var t,n,s,l;return t=r,o.substr(r,6).toLowerCase()===xbe?(n=o.substr(r,6),r+=6):(n=e,m===0&&C(VVe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Vit(n)):(r=t,t=e)):(r=t,t=e),t}function wwt(){var t,n,s,l;return t=r,o.substr(r,10).toLowerCase()===Fbe?(n=o.substr(r,10),r+=10):(n=e,m===0&&C(LVe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Lit(n)):(r=t,t=e)):(r=t,t=e),t}function N8(){var t,n,s,l;return t=r,o.substr(r,2).toLowerCase()===Gbe?(n=o.substr(r,2),r+=2):(n=e,m===0&&C(MVe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Mit(n)):(r=t,t=e)):(r=t,t=e),t}function Rwt(){var t,n,s,l;return t=r,o.substr(r,6).toLowerCase()===Sbe?(n=o.substr(r,6),r+=6):(n=e,m===0&&C(BVe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Bit(n)):(r=t,t=e)):(r=t,t=e),t}function V8(){var t,n,s,l;return t=r,o.substr(r,6).toLowerCase()===Kbe?(n=o.substr(r,6),r+=6):(n=e,m===0&&C(UVe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Uit(n)):(r=t,t=e)):(r=t,t=e),t}function lv(){var t,n,s,l;return t=r,o.substr(r,9).toLowerCase()===kbe?(n=o.substr(r,9),r+=9):(n=e,m===0&&C(jVe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=jit(n)):(r=t,t=e)):(r=t,t=e),t}function _wt(){var t,n,s,l;return t=r,o.substr(r,13).toLowerCase()===qbe?(n=o.substr(r,13),r+=13):(n=e,m===0&&C(xVe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=xit(n)):(r=t,t=e)):(r=t,t=e),t}function L8(){var t,n,s,l;return t=r,o.substr(r,14).toLowerCase()===Zbe?(n=o.substr(r,14),r+=14):(n=e,m===0&&C(FVe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Fit(n)):(r=t,t=e)):(r=t,t=e),t}function gwt(){var t,n,s,l;return t=r,o.substr(r,15).toLowerCase()===Jbe?(n=o.substr(r,15),r+=15):(n=e,m===0&&C(GVe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Git(n)):(r=t,t=e)):(r=t,t=e),t}function Dwt(){var t,n,s,l;return t=r,o.substr(r,13).toLowerCase()===Hbe?(n=o.substr(r,13),r+=13):(n=e,m===0&&C(SVe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Sit(n)):(r=t,t=e)):(r=t,t=e),t}function Owt(){var t,n,s,l;return t=r,o.substr(r,14).toLowerCase()===Wbe?(n=o.substr(r,14),r+=14):(n=e,m===0&&C(KVe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Kit(n)):(r=t,t=e)):(r=t,t=e),t}function M8(){var t,n,s,l;return t=r,o.substr(r,6).toLowerCase()===Ybe?(n=o.substr(r,6),r+=6):(n=e,m===0&&C(kVe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=kit(n)):(r=t,t=e)):(r=t,t=e),t}function xf(){var t,n,s,l;return t=r,o.substr(r,5).toLowerCase()===zbe?(n=o.substr(r,5),r+=5):(n=e,m===0&&C(qVe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=qit(n)):(r=t,t=e)):(r=t,t=e),t}function Cwt(){var t,n,s,l;return t=r,o.substr(r,9).toLowerCase()===Xbe?(n=o.substr(r,9),r+=9):(n=e,m===0&&C(ZVe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Zit(n)):(r=t,t=e)):(r=t,t=e),t}function ql(){var t,n,s,l;return t=r,o.substr(r,7).toLowerCase()===Qbe?(n=o.substr(r,7),r+=7):(n=e,m===0&&C(JVe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Jit(n)):(r=t,t=e)):(r=t,t=e),t}function $wt(){var t,n,s,l;return t=r,o.substr(r,11).toLowerCase()===ewe?(n=o.substr(r,11),r+=11):(n=e,m===0&&C(HVe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Hit(n)):(r=t,t=e)):(r=t,t=e),t}function Pwt(){var t,n,s,l;return t=r,o.substr(r,10).toLowerCase()===twe?(n=o.substr(r,10),r+=10):(n=e,m===0&&C(WVe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Wit(n)):(r=t,t=e)):(r=t,t=e),t}function B8(){var t,n,s,l;return t=r,o.substr(r,6).toLowerCase()===rwe?(n=o.substr(r,6),r+=6):(n=e,m===0&&C(YVe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Yit(n)):(r=t,t=e)):(r=t,t=e),t}function U8(){var t,n,s,l;return t=r,o.substr(r,10).toLowerCase()===iwe?(n=o.substr(r,10),r+=10):(n=e,m===0&&C(zVe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=zit(n)):(r=t,t=e)):(r=t,t=e),t}function j8(){var t,n,s,l;return t=r,o.substr(r,6).toLowerCase()===swe?(n=o.substr(r,6),r+=6):(n=e,m===0&&C(XVe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Xit(n)):(r=t,t=e)):(r=t,t=e),t}function x8(){var t,n,s,l;return t=r,o.substr(r,3).toLowerCase()===nwe?(n=o.substr(r,3),r+=3):(n=e,m===0&&C(QVe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Qit(n)):(r=t,t=e)):(r=t,t=e),t}function Nwt(){var t,n,s,l;return t=r,o.substr(r,4).toLowerCase()===awe?(n=o.substr(r,4),r+=4):(n=e,m===0&&C(eLe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=est(n)):(r=t,t=e)):(r=t,t=e),t}function F8(){var t,n,s,l;return t=r,o.substr(r,4).toLowerCase()===owe?(n=o.substr(r,4),r+=4):(n=e,m===0&&C(tLe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=tst(n)):(r=t,t=e)):(r=t,t=e),t}function G8(){var t,n,s,l;return t=r,o.substr(r,7).toLowerCase()===lwe?(n=o.substr(r,7),r+=7):(n=e,m===0&&C(rLe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=rst(n)):(r=t,t=e)):(r=t,t=e),t}function Vwt(){var t,n,s,l;return t=r,o.substr(r,7).toLowerCase()===dwe?(n=o.substr(r,7),r+=7):(n=e,m===0&&C(iLe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=ist(n)):(r=t,t=e)):(r=t,t=e),t}function Lwt(){var t,n,s,l;return t=r,o.substr(r,5).toLowerCase()===uwe?(n=o.substr(r,5),r+=5):(n=e,m===0&&C(sLe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=sst(n)):(r=t,t=e)):(r=t,t=e),t}function wi(){var t,n,s,l;return t=r,o.substr(r,2).toLowerCase()===cwe?(n=o.substr(r,2),r+=2):(n=e,m===0&&C(nLe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=nst(n)):(r=t,t=e)):(r=t,t=e),t}function Mwt(){var t,n,s,l;return t=r,o.substr(r,9).toLowerCase()===pwe?(n=o.substr(r,9),r+=9):(n=e,m===0&&C(aLe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=ast(n)):(r=t,t=e)):(r=t,t=e),t}function Bwt(){var t,n,s,l;return t=r,o.substr(r,7).toLowerCase()===fwe?(n=o.substr(r,7),r+=7):(n=e,m===0&&C(oLe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=ost(n)):(r=t,t=e)):(r=t,t=e),t}function Uwt(){var t,n,s,l;return t=r,o.substr(r,5).toLowerCase()===hwe?(n=o.substr(r,5),r+=5):(n=e,m===0&&C(lLe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=lst(n)):(r=t,t=e)):(r=t,t=e),t}function jwt(){var t,n,s,l;return t=r,o.substr(r,5).toLowerCase()===ywe?(n=o.substr(r,5),r+=5):(n=e,m===0&&C(dLe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=dst(n)):(r=t,t=e)):(r=t,t=e),t}function xwt(){var t,n,s,l;return t=r,o.substr(r,4).toLowerCase()===mwe?(n=o.substr(r,4),r+=4):(n=e,m===0&&C(uLe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=ust(n)):(r=t,t=e)):(r=t,t=e),t}function Fwt(){var t,n,s,l;return t=r,o.substr(r,6).toLowerCase()===vwe?(n=o.substr(r,6),r+=6):(n=e,m===0&&C(cLe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=cst(n)):(r=t,t=e)):(r=t,t=e),t}function S8(){var t,n,s,l;return t=r,o.substr(r,8).toLowerCase()===Ewe?(n=o.substr(r,8),r+=8):(n=e,m===0&&C(pLe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=pst(n)):(r=t,t=e)):(r=t,t=e),t}function di(){var t,n,s,l;return t=r,o.substr(r,7).toLowerCase()===Twe?(n=o.substr(r,7),r+=7):(n=e,m===0&&C(fLe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=fst(n)):(r=t,t=e)):(r=t,t=e),t}function Gwt(){var t,n,s,l;return t=r,o.substr(r,8).toLowerCase()===Iwe?(n=o.substr(r,8),r+=8):(n=e,m===0&&C(hLe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=hst(n)):(r=t,t=e)):(r=t,t=e),t}function T_(){var t,n,s,l;return t=r,o.substr(r,4).toLowerCase()===Awe?(n=o.substr(r,4),r+=4):(n=e,m===0&&C(yLe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=yst(n)):(r=t,t=e)):(r=t,t=e),t}function Swt(){var t,n,s,l;return t=r,o.substr(r,4).toLowerCase()===bwe?(n=o.substr(r,4),r+=4):(n=e,m===0&&C(mLe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=mst(n)):(r=t,t=e)):(r=t,t=e),t}function Kwt(){var t,n,s,l;return t=r,o.substr(r,7).toLowerCase()===wwe?(n=o.substr(r,7),r+=7):(n=e,m===0&&C(vLe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=vst(n)):(r=t,t=e)):(r=t,t=e),t}function K8(){var t,n,s,l;return t=r,o.substr(r,5).toLowerCase()===Rwe?(n=o.substr(r,5),r+=5):(n=e,m===0&&C(ELe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Est(n)):(r=t,t=e)):(r=t,t=e),t}function kwt(){var t,n,s,l;return t=r,o.substr(r,4).toLowerCase()===_we?(n=o.substr(r,4),r+=4):(n=e,m===0&&C(TLe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Tst(n)):(r=t,t=e)):(r=t,t=e),t}function $u(){var t,n,s,l;return t=r,o.substr(r,9).toLowerCase()===gwe?(n=o.substr(r,9),r+=9):(n=e,m===0&&C(ILe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Ist(n)):(r=t,t=e)):(r=t,t=e),t}function Ff(){var t,n,s,l;return t=r,o.substr(r,5).toLowerCase()===Dwe?(n=o.substr(r,5),r+=5):(n=e,m===0&&C(ALe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Ast(n)):(r=t,t=e)):(r=t,t=e),t}function qwt(){var t,n,s,l;return t=r,o.substr(r,8).toLowerCase()===Owe?(n=o.substr(r,8),r+=8):(n=e,m===0&&C(bLe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=bst(n)):(r=t,t=e)):(r=t,t=e),t}function Zwt(){var t,n,s,l;return t=r,o.substr(r,5).toLowerCase()===Cwe?(n=o.substr(r,5),r+=5):(n=e,m===0&&C(wLe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=wst(n)):(r=t,t=e)):(r=t,t=e),t}function I_(){var t,n,s,l;return t=r,o.substr(r,7).toLowerCase()===$we?(n=o.substr(r,7),r+=7):(n=e,m===0&&C(RLe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Rst(n)):(r=t,t=e)):(r=t,t=e),t}function ya(){var t,n,s,l;return t=r,o.substr(r,7).toLowerCase()===Pwe?(n=o.substr(r,7),r+=7):(n=e,m===0&&C(_Le)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=_st(n)):(r=t,t=e)):(r=t,t=e),t}function dv(){var t,n,s,l;return t=r,o.substr(r,6).toLowerCase()===Nwe?(n=o.substr(r,6),r+=6):(n=e,m===0&&C(gLe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=gst(n)):(r=t,t=e)):(r=t,t=e),t}function Jwt(){var t,n,s,l;return t=r,o.substr(r,13).toLowerCase()===Vwe?(n=o.substr(r,13),r+=13):(n=e,m===0&&C(DLe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Dst(n)):(r=t,t=e)):(r=t,t=e),t}function A_(){var t,n,s,l;return t=r,o.substr(r,7).toLowerCase()===Lwe?(n=o.substr(r,7),r+=7):(n=e,m===0&&C(OLe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Ost(n)):(r=t,t=e)):(r=t,t=e),t}function k8(){var t,n,s,l;return t=r,o.substr(r,7).toLowerCase()===Mwe?(n=o.substr(r,7),r+=7):(n=e,m===0&&C(CLe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Cst(n)):(r=t,t=e)):(r=t,t=e),t}function Hwt(){var t,n,s,l;return t=r,o.substr(r,8).toLowerCase()===Bwe?(n=o.substr(r,8),r+=8):(n=e,m===0&&C($Le)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=$st(n)):(r=t,t=e)):(r=t,t=e),t}function q8(){var t,n,s,l;return t=r,o.substr(r,6).toLowerCase()===Uwe?(n=o.substr(r,6),r+=6):(n=e,m===0&&C(PLe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Pst(n)):(r=t,t=e)):(r=t,t=e),t}function Wwt(){var t,n,s,l;return t=r,o.substr(r,9).toLowerCase()===jwe?(n=o.substr(r,9),r+=9):(n=e,m===0&&C(NLe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Nst(n)):(r=t,t=e)):(r=t,t=e),t}function Ywt(){var t,n,s,l;return t=r,o.substr(r,7).toLowerCase()===xwe?(n=o.substr(r,7),r+=7):(n=e,m===0&&C(VLe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Vst(n)):(r=t,t=e)):(r=t,t=e),t}function zwt(){var t,n,s,l;return t=r,o.substr(r,10).toLowerCase()===Fwe?(n=o.substr(r,10),r+=10):(n=e,m===0&&C(LLe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Lst(n)):(r=t,t=e)):(r=t,t=e),t}function uv(){var t,n,s,l;return t=r,o.substr(r,11).toLowerCase()===Gwe?(n=o.substr(r,11),r+=11):(n=e,m===0&&C(MLe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Mst(n)):(r=t,t=e)):(r=t,t=e),t}function Gf(){var t,n,s,l;return t=r,o.substr(r,12).toLowerCase()===Swe?(n=o.substr(r,12),r+=12):(n=e,m===0&&C(BLe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Bst(n)):(r=t,t=e)):(r=t,t=e),t}function Z8(){var t,n,s,l;return t=r,o.substr(r,8).toLowerCase()===Kwe?(n=o.substr(r,8),r+=8):(n=e,m===0&&C(ULe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Ust(n)):(r=t,t=e)):(r=t,t=e),t}function Xwt(){var t,n,s,l;return t=r,o.substr(r,7).toLowerCase()===kwe?(n=o.substr(r,7),r+=7):(n=e,m===0&&C(jLe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=jst(n)):(r=t,t=e)):(r=t,t=e),t}function cv(){var t,n,s,l;return t=r,o.substr(r,10).toLowerCase()===qwe?(n=o.substr(r,10),r+=10):(n=e,m===0&&C(xLe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=xst(n)):(r=t,t=e)):(r=t,t=e),t}function Lo(){var t,n,s,l;return t=r,o.substr(r,10).toLowerCase()===Zwe?(n=o.substr(r,10),r+=10):(n=e,m===0&&C(FLe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Fst(n)):(r=t,t=e)):(r=t,t=e),t}function Qwt(){var t,n,s,l;return t=r,o.substr(r,11).toLowerCase()===Jwe?(n=o.substr(r,11),r+=11):(n=e,m===0&&C(GLe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Gst(n)):(r=t,t=e)):(r=t,t=e),t}function J8(){var t,n,s,l;return t=r,o.substr(r,8).toLowerCase()===Hwe?(n=o.substr(r,8),r+=8):(n=e,m===0&&C(SLe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Sst(n)):(r=t,t=e)):(r=t,t=e),t}function eRt(){var t,n,s,l;return t=r,o.substr(r,4).toLowerCase()===Wwe?(n=o.substr(r,4),r+=4):(n=e,m===0&&C(KLe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Kst(n)):(r=t,t=e)):(r=t,t=e),t}function tRt(){var t,n,s,l;return t=r,o.substr(r,4).toLowerCase()===Ywe?(n=o.substr(r,4),r+=4):(n=e,m===0&&C(kLe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=kst(n)):(r=t,t=e)):(r=t,t=e),t}function Fi(){var t,n,s,l;return t=r,o.substr(r,6).toLowerCase()===zwe?(n=o.substr(r,6),r+=6):(n=e,m===0&&C(qLe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=qst(n)):(r=t,t=e)):(r=t,t=e),t}function rRt(){var t,n,s,l;return t=r,o.substr(r,8).toLowerCase()===Xwe?(n=o.substr(r,8),r+=8):(n=e,m===0&&C(ZLe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Zst(n)):(r=t,t=e)):(r=t,t=e),t}function iRt(){var t,n,s,l;return t=r,o.substr(r,10).toLowerCase()===Qwe?(n=o.substr(r,10),r+=10):(n=e,m===0&&C(JLe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Jst(n)):(r=t,t=e)):(r=t,t=e),t}function sRt(){var t,n,s,l;return t=r,o.substr(r,5).toLowerCase()===eRe?(n=o.substr(r,5),r+=5):(n=e,m===0&&C(HLe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Hst(n)):(r=t,t=e)):(r=t,t=e),t}function nRt(){var t,n,s,l;return t=r,o.substr(r,4).toLowerCase()===tRe?(n=o.substr(r,4),r+=4):(n=e,m===0&&C(WLe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Wst(n)):(r=t,t=e)):(r=t,t=e),t}function aRt(){var t,n,s,l;return t=r,o.substr(r,9).toLowerCase()===rRe?(n=o.substr(r,9),r+=9):(n=e,m===0&&C(YLe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Yst(n)):(r=t,t=e)):(r=t,t=e),t}function Sf(){var t,n,s,l;return t=r,o.substr(r,7).toLowerCase()===iRe?(n=o.substr(r,7),r+=7):(n=e,m===0&&C(zLe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=zst(n)):(r=t,t=e)):(r=t,t=e),t}function oRt(){var t,n,s,l;return t=r,o.substr(r,15).toLowerCase()===sRe?(n=o.substr(r,15),r+=15):(n=e,m===0&&C(XLe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Xst(n)):(r=t,t=e)):(r=t,t=e),t}function lRt(){var t,n,s,l;return t=r,o.substr(r,12).toLowerCase()===nRe?(n=o.substr(r,12),r+=12):(n=e,m===0&&C(QLe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Qst(n)):(r=t,t=e)):(r=t,t=e),t}function dRt(){var t,n,s,l;return t=r,o.substr(r,16).toLowerCase()===aRe?(n=o.substr(r,16),r+=16):(n=e,m===0&&C(e2e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=ent(n)):(r=t,t=e)):(r=t,t=e),t}function H8(){var t,n,s,l;return t=r,o.substr(r,12).toLowerCase()===oRe?(n=o.substr(r,12),r+=12):(n=e,m===0&&C(t2e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=tnt(n)):(r=t,t=e)):(r=t,t=e),t}function W8(){var t,n,s,l;return t=r,o.substr(r,14).toLowerCase()===lRe?(n=o.substr(r,14),r+=14):(n=e,m===0&&C(r2e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=rnt(n)):(r=t,t=e)):(r=t,t=e),t}function Y8(){var t,n,s,l;return t=r,o.substr(r,12).toLowerCase()===dRe?(n=o.substr(r,12),r+=12):(n=e,m===0&&C(i2e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=int(n)):(r=t,t=e)):(r=t,t=e),t}function z8(){var t,n,s,l;return t=r,o.substr(r,17).toLowerCase()===uRe?(n=o.substr(r,17),r+=17):(n=e,m===0&&C(s2e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=snt(n)):(r=t,t=e)):(r=t,t=e),t}function b_(){var t,n,s,l;return t=r,o.substr(r,12).toLowerCase()===cRe?(n=o.substr(r,12),r+=12):(n=e,m===0&&C(n2e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=nnt(n)):(r=t,t=e)):(r=t,t=e),t}function w_(){var t,n,s,l;return t=r,o.substr(r,5).toLowerCase()===pRe?(n=o.substr(r,5),r+=5):(n=e,m===0&&C(a2e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=ant(n)):(r=t,t=e)):(r=t,t=e),t}function Mo(){var t,n,s,l;return t=r,o.substr(r,4).toLowerCase()===fRe?(n=o.substr(r,4),r+=4):(n=e,m===0&&C(o2e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=ont(n)):(r=t,t=e)):(r=t,t=e),t}function Pu(){var t,n,s,l;return t=r,o.substr(r,8).toLowerCase()===hRe?(n=o.substr(r,8),r+=8):(n=e,m===0&&C(l2e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=lnt(n)):(r=t,t=e)):(r=t,t=e),t}function pv(){var t,n,s,l;return t=r,o.substr(r,4).toLowerCase()===yRe?(n=o.substr(r,4),r+=4):(n=e,m===0&&C(d2e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=dnt(n)):(r=t,t=e)):(r=t,t=e),t}function R_(){var t,n,s,l;return t=r,o.substr(r,8).toLowerCase()===mRe?(n=o.substr(r,8),r+=8):(n=e,m===0&&C(u2e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=unt(n)):(r=t,t=e)):(r=t,t=e),t}function __(){var t,n,s,l;return t=r,o.substr(r,3).toLowerCase()===vRe?(n=o.substr(r,3),r+=3):(n=e,m===0&&C(c2e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=cnt(n)):(r=t,t=e)):(r=t,t=e),t}function uRt(){var t,n,s,l;return t=r,o.substr(r,8).toLowerCase()===ERe?(n=o.substr(r,8),r+=8):(n=e,m===0&&C(p2e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=pnt(n)):(r=t,t=e)):(r=t,t=e),t}function cRt(){var t,n,s,l;return t=r,o.substr(r,15).toLowerCase()===TRe?(n=o.substr(r,15),r+=15):(n=e,m===0&&C(f2e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=fnt(n)):(r=t,t=e)):(r=t,t=e),t}function pRt(){var t,n,s,l;return t=r,o.substr(r,10).toLowerCase()===IRe?(n=o.substr(r,10),r+=10):(n=e,m===0&&C(h2e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=hnt(n)):(r=t,t=e)):(r=t,t=e),t}function fRt(){var t,n,s,l;return t=r,o.substr(r,10).toLowerCase()===ARe?(n=o.substr(r,10),r+=10):(n=e,m===0&&C(y2e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=ynt(n)):(r=t,t=e)):(r=t,t=e),t}function hRt(){var t,n,s,l;return t=r,o.substr(r,9).toLowerCase()===bRe?(n=o.substr(r,9),r+=9):(n=e,m===0&&C(m2e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=mnt(n)):(r=t,t=e)):(r=t,t=e),t}function yRt(){var t,n,s,l;return t=r,o.substr(r,9).toLowerCase()===wRe?(n=o.substr(r,9),r+=9):(n=e,m===0&&C(v2e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=vnt(n)):(r=t,t=e)):(r=t,t=e),t}function mRt(){var t,n,s,l;return t=r,o.substr(r,3).toLowerCase()===RRe?(n=o.substr(r,3),r+=3):(n=e,m===0&&C(E2e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Ent(n)):(r=t,t=e)):(r=t,t=e),t}function vRt(){var t,n,s,l;return t=r,o.substr(r,6).toLowerCase()===_Re?(n=o.substr(r,6),r+=6):(n=e,m===0&&C(T2e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Tnt(n)):(r=t,t=e)):(r=t,t=e),t}function X8(){var t,n,s,l;return t=r,o.substr(r,7).toLowerCase()===gRe?(n=o.substr(r,7),r+=7):(n=e,m===0&&C(I2e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Int(n)):(r=t,t=e)):(r=t,t=e),t}function ERt(){var t,n,s,l;return t=r,o.substr(r,7).toLowerCase()===DRe?(n=o.substr(r,7),r+=7):(n=e,m===0&&C(A2e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Ant(n)):(r=t,t=e)):(r=t,t=e),t}function ui(){var t,n,s,l;return t=r,o.substr(r,7).toLowerCase()===ORe?(n=o.substr(r,7),r+=7):(n=e,m===0&&C(b2e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=bnt(n)):(r=t,t=e)):(r=t,t=e),t}function TRt(){var t,n,s,l;return t=r,o.substr(r,8).toLowerCase()===CRe?(n=o.substr(r,8),r+=8):(n=e,m===0&&C(w2e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=wnt(n)):(r=t,t=e)):(r=t,t=e),t}function Bo(){var t,n,s,l;return t=r,o.substr(r,10).toLowerCase()===$Re?(n=o.substr(r,10),r+=10):(n=e,m===0&&C(R2e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Rnt(n)):(r=t,t=e)):(r=t,t=e),t}function fv(){var t,n,s,l;return t=r,o.substr(r,8).toLowerCase()===PRe?(n=o.substr(r,8),r+=8):(n=e,m===0&&C(_2e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=_nt(n)):(r=t,t=e)):(r=t,t=e),t}function IRt(){var t,n,s,l;return t=r,o.substr(r,7).toLowerCase()===NRe?(n=o.substr(r,7),r+=7):(n=e,m===0&&C(g2e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=gnt(n)):(r=t,t=e)):(r=t,t=e),t}function ARt(){var t,n,s,l;return t=r,o.substr(r,15).toLowerCase()===VRe?(n=o.substr(r,15),r+=15):(n=e,m===0&&C(D2e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Dnt(n)):(r=t,t=e)):(r=t,t=e),t}function bRt(){var t,n,s,l;return t=r,o.substr(r,7).toLowerCase()===LRe?(n=o.substr(r,7),r+=7):(n=e,m===0&&C(O2e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Ont(n)):(r=t,t=e)):(r=t,t=e),t}function Zl(){var t,n,s,l;return t=r,o.substr(r,6).toLowerCase()===MRe?(n=o.substr(r,6),r+=6):(n=e,m===0&&C(C2e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Cnt(n)):(r=t,t=e)):(r=t,t=e),t}function wRt(){var t,n,s,l;return t=r,o.substr(r,10).toLowerCase()===BRe?(n=o.substr(r,10),r+=10):(n=e,m===0&&C($2e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=$nt(n)):(r=t,t=e)):(r=t,t=e),t}function Q8(){var t,n,s,l;return t=r,o.substr(r,7).toLowerCase()===URe?(n=o.substr(r,7),r+=7):(n=e,m===0&&C(P2e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Pnt(n)):(r=t,t=e)):(r=t,t=e),t}function RRt(){var t,n,s,l;return t=r,o.substr(r,5).toLowerCase()===jRe?(n=o.substr(r,5),r+=5):(n=e,m===0&&C(N2e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Nnt(n)):(r=t,t=e)):(r=t,t=e),t}function eq(){var t,n,s,l;return t=r,o.substr(r,4).toLowerCase()===xRe?(n=o.substr(r,4),r+=4):(n=e,m===0&&C(V2e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Vnt(n)):(r=t,t=e)):(r=t,t=e),t}function _Rt(){var t,n,s,l;return t=r,o.substr(r,8).toLowerCase()===FRe?(n=o.substr(r,8),r+=8):(n=e,m===0&&C(L2e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Lnt(n)):(r=t,t=e)):(r=t,t=e),t}function gRt(){var t,n,s,l;return t=r,o.substr(r,6).toLowerCase()===GRe?(n=o.substr(r,6),r+=6):(n=e,m===0&&C(M2e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Mnt(n)):(r=t,t=e)):(r=t,t=e),t}function tq(){var t,n,s,l;return t=r,o.substr(r,13).toLowerCase()===SRe?(n=o.substr(r,13),r+=13):(n=e,m===0&&C(B2e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Bnt(n)):(r=t,t=e)):(r=t,t=e),t}function rq(){var t,n,s,l;return t=r,o.substr(r,9).toLowerCase()===KRe?(n=o.substr(r,9),r+=9):(n=e,m===0&&C(U2e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Unt(n)):(r=t,t=e)):(r=t,t=e),t}function DRt(){var t,n,s,l;return t=r,o.substr(r,7).toLowerCase()===kRe?(n=o.substr(r,7),r+=7):(n=e,m===0&&C(j2e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=jnt(n)):(r=t,t=e)):(r=t,t=e),t}function iq(){var t,n,s,l;return t=r,o.substr(r,4).toLowerCase()===qRe?(n=o.substr(r,4),r+=4):(n=e,m===0&&C(x2e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=xnt(n)):(r=t,t=e)):(r=t,t=e),t}function ln(){var t,n,s,l;return t=r,o.substr(r,8).toLowerCase()===ZRe?(n=o.substr(r,8),r+=8):(n=e,m===0&&C(F2e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Fnt(n)):(r=t,t=e)):(r=t,t=e),t}function ORt(){var t,n,s,l;return t=r,o.substr(r,11).toLowerCase()===JRe?(n=o.substr(r,11),r+=11):(n=e,m===0&&C(G2e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Gnt(n)):(r=t,t=e)):(r=t,t=e),t}function CRt(){var t,n,s,l;return t=r,o.substr(r,3).toLowerCase()===HRe?(n=o.substr(r,3),r+=3):(n=e,m===0&&C(S2e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Snt(n)):(r=t,t=e)):(r=t,t=e),t}function hv(){var t,n,s,l;return t=r,o.substr(r,2).toLowerCase()===WRe?(n=o.substr(r,2),r+=2):(n=e,m===0&&C(K2e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Knt(n)):(r=t,t=e)):(r=t,t=e),t}function yv(){var t,n,s,l;return t=r,o.substr(r,6).toLowerCase()===YRe?(n=o.substr(r,6),r+=6):(n=e,m===0&&C(k2e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=knt(n)):(r=t,t=e)):(r=t,t=e),t}function g_(){var t,n,s,l;return t=r,o.substr(r,6).toLowerCase()===zRe?(n=o.substr(r,6),r+=6):(n=e,m===0&&C(q2e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=qnt(n)):(r=t,t=e)):(r=t,t=e),t}function $Rt(){var t,n,s,l;return t=r,o.substr(r,3).toLowerCase()===XRe?(n=o.substr(r,3),r+=3):(n=e,m===0&&C(Z2e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Znt(n)):(r=t,t=e)):(r=t,t=e),t}function PRt(){var t,n,s,l;return t=r,o.substr(r,3).toLowerCase()===QRe?(n=o.substr(r,3),r+=3):(n=e,m===0&&C(J2e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Jnt(n)):(r=t,t=e)):(r=t,t=e),t}function Cr(){var t,n,s,l;return t=r,o.substr(r,4).toLowerCase()===e_e?(n=o.substr(r,4),r+=4):(n=e,m===0&&C(H2e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Hnt(n)):(r=t,t=e)):(r=t,t=e),t}function NRt(){var t,n,s,l;return t=r,o.substr(r,4).toLowerCase()===t_e?(n=o.substr(r,4),r+=4):(n=e,m===0&&C(W2e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Wnt(n)):(r=t,t=e)):(r=t,t=e),t}function VRt(){var t,n,s,l;return t=r,o.substr(r,8).toLowerCase()===r_e?(n=o.substr(r,8),r+=8):(n=e,m===0&&C(Y2e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Ynt(n)):(r=t,t=e)):(r=t,t=e),t}function LRt(){var t,n,s,l;return t=r,o.substr(r,9).toLowerCase()===i_e?(n=o.substr(r,9),r+=9):(n=e,m===0&&C(z2e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=znt(n)):(r=t,t=e)):(r=t,t=e),t}function sq(){var t,n,s,l;return t=r,o.substr(r,7).toLowerCase()===s_e?(n=o.substr(r,7),r+=7):(n=e,m===0&&C(X2e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Xnt(n)):(r=t,t=e)):(r=t,t=e),t}function MRt(){var t,n,s,l;return t=r,o.substr(r,4).toLowerCase()===n_e?(n=o.substr(r,4),r+=4):(n=e,m===0&&C(Q2e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Qnt(n)):(r=t,t=e)):(r=t,t=e),t}function D_(){var t,n,s,l;return t=r,o.substr(r,4).toLowerCase()===a_e?(n=o.substr(r,4),r+=4):(n=e,m===0&&C(eMe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=eat(n)):(r=t,t=e)):(r=t,t=e),t}function BRt(){var t,n,s,l;return t=r,o.substr(r,6).toLowerCase()===o_e?(n=o.substr(r,6),r+=6):(n=e,m===0&&C(tMe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=tat(n)):(r=t,t=e)):(r=t,t=e),t}function URt(){var t,n,s,l;return t=r,o.substr(r,6).toLowerCase()===l_e?(n=o.substr(r,6),r+=6):(n=e,m===0&&C(rMe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=rat(n)):(r=t,t=e)):(r=t,t=e),t}function jRt(){var t,n,s,l;return t=r,o.substr(r,8).toLowerCase()===d_e?(n=o.substr(r,8),r+=8):(n=e,m===0&&C(iMe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=iat(n)):(r=t,t=e)):(r=t,t=e),t}function xRt(){var t,n,s,l;return t=r,o.substr(r,9).toLowerCase()===u_e?(n=o.substr(r,9),r+=9):(n=e,m===0&&C(sMe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=sat(n)):(r=t,t=e)):(r=t,t=e),t}function FRt(){var t,n,s,l;return t=r,o.substr(r,10).toLowerCase()===c_e?(n=o.substr(r,10),r+=10):(n=e,m===0&&C(nMe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=nat(n)):(r=t,t=e)):(r=t,t=e),t}function ma(){var t,n,s,l;return t=r,o.substr(r,3).toLowerCase()===p_e?(n=o.substr(r,3),r+=3):(n=e,m===0&&C(aMe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=aat(n)):(r=t,t=e)):(r=t,t=e),t}function nq(){var t,n,s,l;return t=r,o.substr(r,8).toLowerCase()===f_e?(n=o.substr(r,8),r+=8):(n=e,m===0&&C(oMe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=oat(n)):(r=t,t=e)):(r=t,t=e),t}function GRt(){var t,n,s,l;return t=r,o.substr(r,6).toLowerCase()===h_e?(n=o.substr(r,6),r+=6):(n=e,m===0&&C(lMe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=lat(n)):(r=t,t=e)):(r=t,t=e),t}function aq(){var t,n,s,l;return t=r,o.substr(r,16).toLowerCase()===y_e?(n=o.substr(r,16),r+=16):(n=e,m===0&&C(dMe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=dat(n)):(r=t,t=e)):(r=t,t=e),t}function oq(){var t,n,s,l;return t=r,o.substr(r,4).toLowerCase()===m_e?(n=o.substr(r,4),r+=4):(n=e,m===0&&C(uMe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=uat(n)):(r=t,t=e)):(r=t,t=e),t}function SRt(){var t,n,s,l;return t=r,o.substr(r,5).toLowerCase()===v_e?(n=o.substr(r,5),r+=5):(n=e,m===0&&C(cMe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=cat(n)):(r=t,t=e)):(r=t,t=e),t}function KRt(){var t,n,s,l;return t=r,o.substr(r,5).toLowerCase()===E_e?(n=o.substr(r,5),r+=5):(n=e,m===0&&C(pMe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=pat(n)):(r=t,t=e)):(r=t,t=e),t}function kRt(){var t,n,s,l;return t=r,o.substr(r,6).toLowerCase()===T_e?(n=o.substr(r,6),r+=6):(n=e,m===0&&C(fMe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=fat(n)):(r=t,t=e)):(r=t,t=e),t}function qRt(){var t,n,s,l;return t=r,o.substr(r,7).toLowerCase()===I_e?(n=o.substr(r,7),r+=7):(n=e,m===0&&C(hMe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=hat(n)):(r=t,t=e)):(r=t,t=e),t}function ZRt(){var t,n,s,l;return t=r,o.substr(r,8).toLowerCase()===A_e?(n=o.substr(r,8),r+=8):(n=e,m===0&&C(yMe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=yat(n)):(r=t,t=e)):(r=t,t=e),t}function O_(){var t,n,s,l;return t=r,o.substr(r,6).toLowerCase()===b_e?(n=o.substr(r,6),r+=6):(n=e,m===0&&C(mMe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=mat(n)):(r=t,t=e)):(r=t,t=e),t}function JRt(){var t,n,s,l;return t=r,o.substr(r,9).toLowerCase()===w_e?(n=o.substr(r,9),r+=9):(n=e,m===0&&C(vMe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=vat(n)):(r=t,t=e)):(r=t,t=e),t}function C_(){var t,n,s,l;return t=r,o.substr(r,7).toLowerCase()===R_e?(n=o.substr(r,7),r+=7):(n=e,m===0&&C(EMe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Eat(n)):(r=t,t=e)):(r=t,t=e),t}function HRt(){var t,n,s,l;return t=r,o.substr(r,9).toLowerCase()===__e?(n=o.substr(r,9),r+=9):(n=e,m===0&&C(TMe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Tat(n)):(r=t,t=e)):(r=t,t=e),t}function WRt(){var t,n,s,l;return t=r,o.substr(r,9).toLowerCase()===g_e?(n=o.substr(r,9),r+=9):(n=e,m===0&&C(IMe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Iat(n)):(r=t,t=e)):(r=t,t=e),t}function $_(){var t,n,s,l;return t=r,o.substr(r,7).toLowerCase()===D_e?(n=o.substr(r,7),r+=7):(n=e,m===0&&C(AMe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Aat(n)):(r=t,t=e)):(r=t,t=e),t}function P_(){var t,n,s,l;return t=r,o.substr(r,6).toLowerCase()===O_e?(n=o.substr(r,6),r+=6):(n=e,m===0&&C(bMe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=bat(n)):(r=t,t=e)):(r=t,t=e),t}function lq(){var t,n,s,l;return t=r,o.substr(r,9).toLowerCase()===C_e?(n=o.substr(r,9),r+=9):(n=e,m===0&&C(wMe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=wat(n)):(r=t,t=e)):(r=t,t=e),t}function YRt(){var t,n,s,l;return t=r,o.substr(r,7).toLowerCase()===$_e?(n=o.substr(r,7),r+=7):(n=e,m===0&&C(RMe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Rat(n)):(r=t,t=e)):(r=t,t=e),t}function zRt(){var t,n,s,l;return t=r,o.substr(r,6).toLowerCase()===P_e?(n=o.substr(r,6),r+=6):(n=e,m===0&&C(_Me)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=_at(n)):(r=t,t=e)):(r=t,t=e),t}function XRt(){var t,n,s,l;return t=r,o.substr(r,10).toLowerCase()===N_e?(n=o.substr(r,10),r+=10):(n=e,m===0&&C(gMe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=gat(n)):(r=t,t=e)):(r=t,t=e),t}function QRt(){var t,n,s,l;return t=r,o.substr(r,8).toLowerCase()===V_e?(n=o.substr(r,8),r+=8):(n=e,m===0&&C(DMe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Dat(n)):(r=t,t=e)):(r=t,t=e),t}function dq(){var t,n,s,l;return t=r,o.substr(r,9).toLowerCase()===L_e?(n=o.substr(r,9),r+=9):(n=e,m===0&&C(OMe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Oat(n)):(r=t,t=e)):(r=t,t=e),t}function mv(){var t,n,s,l;return t=r,o.substr(r,8).toLowerCase()===M_e?(n=o.substr(r,8),r+=8):(n=e,m===0&&C(CMe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Cat(n)):(r=t,t=e)):(r=t,t=e),t}function e_t(){var t,n,s,l;return t=r,o.substr(r,7).toLowerCase()===B_e?(n=o.substr(r,7),r+=7):(n=e,m===0&&C($Me)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=$at(n)):(r=t,t=e)):(r=t,t=e),t}function N_(){var t,n,s,l;return t=r,o.substr(r,4).toLowerCase()===U_e?(n=o.substr(r,4),r+=4):(n=e,m===0&&C(PMe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Pat(n)):(r=t,t=e)):(r=t,t=e),t}function t_t(){var t,n,s,l;return t=r,o.substr(r,5).toLowerCase()===j_e?(n=o.substr(r,5),r+=5):(n=e,m===0&&C(NMe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Nat(n)):(r=t,t=e)):(r=t,t=e),t}function r_t(){var t,n,s,l;return t=r,o.substr(r,5).toLowerCase()===x_e?(n=o.substr(r,5),r+=5):(n=e,m===0&&C(VMe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Vat(n)):(r=t,t=e)):(r=t,t=e),t}function i_t(){var t,n,s,l;return t=r,o.substr(r,6).toLowerCase()===F_e?(n=o.substr(r,6),r+=6):(n=e,m===0&&C(LMe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Lat(n)):(r=t,t=e)):(r=t,t=e),t}function s_t(){var t,n,s,l;return t=r,o.substr(r,5).toLowerCase()===G_e?(n=o.substr(r,5),r+=5):(n=e,m===0&&C(MMe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Mat(n)):(r=t,t=e)):(r=t,t=e),t}function uq(){var t,n,s,l;return t=r,o.substr(r,6).toLowerCase()===S_e?(n=o.substr(r,6),r+=6):(n=e,m===0&&C(BMe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Bat(n)):(r=t,t=e)):(r=t,t=e),t}function vv(){var t,n,s,l;return t=r,o.substr(r,5).toLowerCase()===K_e?(n=o.substr(r,5),r+=5):(n=e,m===0&&C(UMe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Uat(n)):(r=t,t=e)):(r=t,t=e),t}function n_t(){var t,n,s,l;return t=r,o.substr(r,11).toLowerCase()===k_e?(n=o.substr(r,11),r+=11):(n=e,m===0&&C(jMe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=jat(n)):(r=t,t=e)):(r=t,t=e),t}function V_(){var t,n,s,l;return t=r,o.substr(r,5).toLowerCase()===q_e?(n=o.substr(r,5),r+=5):(n=e,m===0&&C(xMe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=xat(n)):(r=t,t=e)):(r=t,t=e),t}function a_t(){var t,n,s,l;return t=r,o.substr(r,5).toLowerCase()===Z_e?(n=o.substr(r,5),r+=5):(n=e,m===0&&C(FMe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Fat(n)):(r=t,t=e)):(r=t,t=e),t}function o_t(){var t,n,s,l;return t=r,o.substr(r,7).toLowerCase()===J_e?(n=o.substr(r,7),r+=7):(n=e,m===0&&C(GMe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Gat(n)):(r=t,t=e)):(r=t,t=e),t}function l_t(){var t,n,s,l;return t=r,o.substr(r,9).toLowerCase()===H_e?(n=o.substr(r,9),r+=9):(n=e,m===0&&C(SMe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Sat(n)):(r=t,t=e)):(r=t,t=e),t}function Gs(){var t,n,s,l;return t=r,o.substr(r,3).toLowerCase()===W_e?(n=o.substr(r,3),r+=3):(n=e,m===0&&C(KMe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Kat(n)):(r=t,t=e)):(r=t,t=e),t}function cq(){var t,n,s,l;return t=r,o.substr(r,5).toLowerCase()===Y_e?(n=o.substr(r,5),r+=5):(n=e,m===0&&C(kMe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=kat(n)):(r=t,t=e)):(r=t,t=e),t}function Ev(){var t,n,s,l;return t=r,o.substr(r,7).toLowerCase()===z_e?(n=o.substr(r,7),r+=7):(n=e,m===0&&C(qMe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=qat(n)):(r=t,t=e)):(r=t,t=e),t}function d_t(){var t,n,s,l;return t=r,o.substr(r,6).toLowerCase()===X_e?(n=o.substr(r,6),r+=6):(n=e,m===0&&C(ZMe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Zat(n)):(r=t,t=e)):(r=t,t=e),t}function u_t(){var t,n,s,l;return t=r,o.substr(r,6).toLowerCase()===Q_e?(n=o.substr(r,6),r+=6):(n=e,m===0&&C(JMe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Jat(n)):(r=t,t=e)):(r=t,t=e),t}function gs(){var t,n,s,l;return t=r,o.substr(r,4).toLowerCase()===ege?(n=o.substr(r,4),r+=4):(n=e,m===0&&C(HMe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Hat(n)):(r=t,t=e)):(r=t,t=e),t}function L_(){var t,n,s,l;return t=r,o.substr(r,4).toLowerCase()===tge?(n=o.substr(r,4),r+=4):(n=e,m===0&&C(WMe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Wat(n)):(r=t,t=e)):(r=t,t=e),t}function pq(){var t,n,s,l;return t=r,o.substr(r,8).toLowerCase()===rge?(n=o.substr(r,8),r+=8):(n=e,m===0&&C(YMe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Yat(n)):(r=t,t=e)):(r=t,t=e),t}function Nu(){var t,n,s,l;return t=r,o.substr(r,8).toLowerCase()===ige?(n=o.substr(r,8),r+=8):(n=e,m===0&&C(zMe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=zat(n)):(r=t,t=e)):(r=t,t=e),t}function c_t(){var t,n,s,l;return t=r,o.substr(r,9).toLowerCase()===sge?(n=o.substr(r,9),r+=9):(n=e,m===0&&C(XMe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Xat(n)):(r=t,t=e)):(r=t,t=e),t}function Vu(){var t,n,s,l;return t=r,o.substr(r,9).toLowerCase()===nge?(n=o.substr(r,9),r+=9):(n=e,m===0&&C(QMe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Qat(n)):(r=t,t=e)):(r=t,t=e),t}function p_t(){var t,n,s,l;return t=r,o.substr(r,9).toLowerCase()===age?(n=o.substr(r,9),r+=9):(n=e,m===0&&C(eBe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=eot(n)):(r=t,t=e)):(r=t,t=e),t}function fq(){var t,n,s,l;return t=r,o.substr(r,4).toLowerCase()===oge?(n=o.substr(r,4),r+=4):(n=e,m===0&&C(tBe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=tot(n)):(r=t,t=e)):(r=t,t=e),t}function f_t(){var t,n,s,l;return t=r,o.substr(r,6).toLowerCase()===lge?(n=o.substr(r,6),r+=6):(n=e,m===0&&C(rBe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=rot(n)):(r=t,t=e)):(r=t,t=e),t}function Lu(){var t,n,s,l;return t=r,o.substr(r,5).toLowerCase()===dge?(n=o.substr(r,5),r+=5):(n=e,m===0&&C(iBe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=iot(n)):(r=t,t=e)):(r=t,t=e),t}function h_t(){var t,n,s,l;return t=r,o.substr(r,7).toLowerCase()===uge?(n=o.substr(r,7),r+=7):(n=e,m===0&&C(sBe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=sot(n)):(r=t,t=e)):(r=t,t=e),t}function Mu(){var t,n,s,l;return t=r,o.substr(r,5).toLowerCase()===cge?(n=o.substr(r,5),r+=5):(n=e,m===0&&C(nBe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=not(n)):(r=t,t=e)):(r=t,t=e),t}function hq(){var t,n,s,l;return t=r,o.substr(r,8).toLowerCase()===pge?(n=o.substr(r,8),r+=8):(n=e,m===0&&C(aBe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=aot(n)):(r=t,t=e)):(r=t,t=e),t}function y_t(){var t,n,s,l;return t=r,o.substr(r,6).toLowerCase()===fge?(n=o.substr(r,6),r+=6):(n=e,m===0&&C(oBe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=oot(n)):(r=t,t=e)):(r=t,t=e),t}function m_t(){var t,n,s,l;return t=r,o.substr(r,4).toLowerCase()===hge?(n=o.substr(r,4),r+=4):(n=e,m===0&&C(lBe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=lot(n)):(r=t,t=e)):(r=t,t=e),t}function yq(){var t,n,s,l;return t=r,o.substr(r,6).toLowerCase()===yge?(n=o.substr(r,6),r+=6):(n=e,m===0&&C(dBe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=dot(n)):(r=t,t=e)):(r=t,t=e),t}function mq(){var t,n,s,l;return t=r,o.substr(r,13).toLowerCase()===mge?(n=o.substr(r,13),r+=13):(n=e,m===0&&C(uBe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=uot(n)):(r=t,t=e)):(r=t,t=e),t}function M_(){var t,n,s,l;return t=r,o.substr(r,4).toLowerCase()===vge?(n=o.substr(r,4),r+=4):(n=e,m===0&&C(cBe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=cot(n)):(r=t,t=e)):(r=t,t=e),t}function v_t(){var t,n,s,l;return t=r,o.substr(r,16).toLowerCase()===Ege?(n=o.substr(r,16),r+=16):(n=e,m===0&&C(pBe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=pot(n)):(r=t,t=e)):(r=t,t=e),t}function E_t(){var t,n,s,l;return t=r,o.substr(r,11).toLowerCase()===Tge?(n=o.substr(r,11),r+=11):(n=e,m===0&&C(fBe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=fot(n)):(r=t,t=e)):(r=t,t=e),t}function T_t(){var t,n,s,l;return t=r,o.substr(r,11).toLowerCase()===Ige?(n=o.substr(r,11),r+=11):(n=e,m===0&&C(hBe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=hot(n)):(r=t,t=e)):(r=t,t=e),t}function Bu(){var t,n,s,l;return t=r,o.substr(r,8).toLowerCase()===Age?(n=o.substr(r,8),r+=8):(n=e,m===0&&C(yBe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=yot(n)):(r=t,t=e)):(r=t,t=e),t}function Uu(){var t,n,s,l;return t=r,o.substr(r,2).toLowerCase()===bge?(n=o.substr(r,2),r+=2):(n=e,m===0&&C(mBe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=mot(n)):(r=t,t=e)):(r=t,t=e),t}function ju(){var t,n,s,l;return t=r,o.substr(r,6).toLowerCase()===wge?(n=o.substr(r,6),r+=6):(n=e,m===0&&C(vBe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=vot(n)):(r=t,t=e)):(r=t,t=e),t}function vq(){var t,n,s,l;return t=r,o.substr(r,5).toLowerCase()===Rge?(n=o.substr(r,5),r+=5):(n=e,m===0&&C(EBe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Eot(n)):(r=t,t=e)):(r=t,t=e),t}function Kf(){var t,n,s,l;return t=r,o.substr(r,9).toLowerCase()===_ge?(n=o.substr(r,9),r+=9):(n=e,m===0&&C(TBe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Tot(n)):(r=t,t=e)):(r=t,t=e),t}function I_t(){var t,n,s,l;return t=r,o.substr(r,9).toLowerCase()===gge?(n=o.substr(r,9),r+=9):(n=e,m===0&&C(IBe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Iot(n)):(r=t,t=e)):(r=t,t=e),t}function ii(){var t,n,s,l;return t=r,o.substr(r,2).toLowerCase()===Dge?(n=o.substr(r,2),r+=2):(n=e,m===0&&C(ABe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Aot(n)):(r=t,t=e)):(r=t,t=e),t}function Eq(){var t,n,s,l;return t=r,o.substr(r,7).toLowerCase()===Oge?(n=o.substr(r,7),r+=7):(n=e,m===0&&C(bBe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=bot(n)):(r=t,t=e)):(r=t,t=e),t}function A_t(){var t,n,s,l;return t=r,o.substr(r,9).toLowerCase()===Cge?(n=o.substr(r,9),r+=9):(n=e,m===0&&C(wBe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=wot(n)):(r=t,t=e)):(r=t,t=e),t}function b_t(){var t,n,s,l;return t=r,o.substr(r,9).toLowerCase()===$ge?(n=o.substr(r,9),r+=9):(n=e,m===0&&C(RBe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Rot(n)):(r=t,t=e)):(r=t,t=e),t}function Ds(){var t,n,s,l;return t=r,o.substr(r,5).toLowerCase()===Pge?(n=o.substr(r,5),r+=5):(n=e,m===0&&C(_Be)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=_ot(n)):(r=t,t=e)):(r=t,t=e),t}function Tq(){var t,n,s,l;return t=r,o.substr(r,7).toLowerCase()===Nge?(n=o.substr(r,7),r+=7):(n=e,m===0&&C(gBe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=got(n)):(r=t,t=e)):(r=t,t=e),t}function w_t(){var t,n,s,l;return t=r,o.substr(r,7).toLowerCase()===Vge?(n=o.substr(r,7),r+=7):(n=e,m===0&&C(DBe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Dot(n)):(r=t,t=e)):(r=t,t=e),t}function xu(){var t,n,s,l;return t=r,o.substr(r,7).toLowerCase()===Lge?(n=o.substr(r,7),r+=7):(n=e,m===0&&C(OBe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Oot(n)):(r=t,t=e)):(r=t,t=e),t}function R_t(){var t,n,s,l;return t=r,o.substr(r,8).toLowerCase()===Mge?(n=o.substr(r,8),r+=8):(n=e,m===0&&C(CBe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Cot(n)):(r=t,t=e)):(r=t,t=e),t}function kf(){var t,n,s,l;return t=r,o.substr(r,9).toLowerCase()===Bge?(n=o.substr(r,9),r+=9):(n=e,m===0&&C($Be)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=$ot(n)):(r=t,t=e)):(r=t,t=e),t}function __t(){var t,n,s,l;return t=r,o.substr(r,5).toLowerCase()===Uge?(n=o.substr(r,5),r+=5):(n=e,m===0&&C(PBe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Pot(n)):(r=t,t=e)):(r=t,t=e),t}function B_(){var t,n,s,l;return t=r,o.substr(r,5).toLowerCase()===jge?(n=o.substr(r,5),r+=5):(n=e,m===0&&C(NBe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Not(n)):(r=t,t=e)):(r=t,t=e),t}function Iq(){var t,n,s,l;return t=r,o.substr(r,5).toLowerCase()===xge?(n=o.substr(r,5),r+=5):(n=e,m===0&&C(VBe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Vot(n)):(r=t,t=e)):(r=t,t=e),t}function qf(){var t,n,s,l;return t=r,o.substr(r,6).toLowerCase()===Fge?(n=o.substr(r,6),r+=6):(n=e,m===0&&C(LBe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Lot(n)):(r=t,t=e)):(r=t,t=e),t}function g_t(){var t,n,s,l;return t=r,o.substr(r,13).toLowerCase()===Gge?(n=o.substr(r,13),r+=13):(n=e,m===0&&C(MBe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Mot(n)):(r=t,t=e)):(r=t,t=e),t}function D_t(){var t,n,s,l;return t=r,o.substr(r,7).toLowerCase()===Sge?(n=o.substr(r,7),r+=7):(n=e,m===0&&C(BBe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Bot(n)):(r=t,t=e)):(r=t,t=e),t}function Aq(){var t,n,s,l;return t=r,o.substr(r,3).toLowerCase()===Kge?(n=o.substr(r,3),r+=3):(n=e,m===0&&C(UBe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Uot(n)):(r=t,t=e)):(r=t,t=e),t}function O_t(){var t,n,s,l;return t=r,o.substr(r,5).toLowerCase()===kge?(n=o.substr(r,5),r+=5):(n=e,m===0&&C(jBe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=jot(n)):(r=t,t=e)):(r=t,t=e),t}function bq(){var t,n,s,l;return t=r,o.substr(r,7).toLowerCase()===qge?(n=o.substr(r,7),r+=7):(n=e,m===0&&C(xBe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=xot(n)):(r=t,t=e)):(r=t,t=e),t}function wq(){var t,n,s,l;return t=r,o.substr(r,9).toLowerCase()===Zge?(n=o.substr(r,9),r+=9):(n=e,m===0&&C(FBe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Fot(n)):(r=t,t=e)):(r=t,t=e),t}function Fu(){var t,n,s,l;return t=r,o.substr(r,8).toLowerCase()===Jge?(n=o.substr(r,8),r+=8):(n=e,m===0&&C(GBe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Got(n)):(r=t,t=e)):(r=t,t=e),t}function Ka(){var t,n,s,l;return t=r,o.substr(r,4).toLowerCase()===Hge?(n=o.substr(r,4),r+=4):(n=e,m===0&&C(SBe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Sot(n)):(r=t,t=e)):(r=t,t=e),t}function Rq(){var t,n,s,l;return t=r,o.substr(r,9).toLowerCase()===Wge?(n=o.substr(r,9),r+=9):(n=e,m===0&&C(KBe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Kot(n)):(r=t,t=e)):(r=t,t=e),t}function C_t(){var t,n,s,l;return t=r,o.substr(r,7).toLowerCase()===Yge?(n=o.substr(r,7),r+=7):(n=e,m===0&&C(kBe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=kot(n)):(r=t,t=e)):(r=t,t=e),t}function va(){var t,n,s,l;return t=r,o.substr(r,2).toLowerCase()===zge?(n=o.substr(r,2),r+=2):(n=e,m===0&&C(qBe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=qot(n)):(r=t,t=e)):(r=t,t=e),t}function $_t(){var t,n,s,l;return t=r,o.substr(r,6).toLowerCase()===Xge?(n=o.substr(r,6),r+=6):(n=e,m===0&&C(ZBe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Zot(n)):(r=t,t=e)):(r=t,t=e),t}function P_t(){var t,n,s,l;return t=r,o.substr(r,6).toLowerCase()===Qge?(n=o.substr(r,6),r+=6):(n=e,m===0&&C(JBe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Jot(n)):(r=t,t=e)):(r=t,t=e),t}function N_t(){var t,n,s,l;return t=r,o.substr(r,9).toLowerCase()===e1e?(n=o.substr(r,9),r+=9):(n=e,m===0&&C(HBe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Hot(n)):(r=t,t=e)):(r=t,t=e),t}function V_t(){var t,n,s,l;return t=r,o.substr(r,7).toLowerCase()===t1e?(n=o.substr(r,7),r+=7):(n=e,m===0&&C(WBe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Wot(n)):(r=t,t=e)):(r=t,t=e),t}function _q(){var t,n,s,l;return t=r,o.substr(r,7).toLowerCase()===r1e?(n=o.substr(r,7),r+=7):(n=e,m===0&&C(YBe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Yot(n)):(r=t,t=e)):(r=t,t=e),t}function L_t(){var t,n,s,l;return t=r,o.substr(r,7).toLowerCase()===i1e?(n=o.substr(r,7),r+=7):(n=e,m===0&&C(zBe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=zot(n)):(r=t,t=e)):(r=t,t=e),t}function Zf(){var t,n,s,l;return t=r,o.substr(r,4).toLowerCase()===s1e?(n=o.substr(r,4),r+=4):(n=e,m===0&&C(XBe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Xot(n)):(r=t,t=e)):(r=t,t=e),t}function U_(){var t,n,s,l;return t=r,o.substr(r,4).toLowerCase()===n1e?(n=o.substr(r,4),r+=4):(n=e,m===0&&C(QBe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Qot(n)):(r=t,t=e)):(r=t,t=e),t}function M_t(){var t,n,s,l;return t=r,o.substr(r,5).toLowerCase()===a1e?(n=o.substr(r,5),r+=5):(n=e,m===0&&C(e4e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=elt(n)):(r=t,t=e)):(r=t,t=e),t}function B_t(){var t,n,s,l;return t=r,o.substr(r,6).toLowerCase()===o1e?(n=o.substr(r,6),r+=6):(n=e,m===0&&C(t4e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=tlt(n)):(r=t,t=e)):(r=t,t=e),t}function Nn(){var t,n,s,l;return t=r,o.substr(r,3).toLowerCase()===l1e?(n=o.substr(r,3),r+=3):(n=e,m===0&&C(r4e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=rlt(n)):(r=t,t=e)):(r=t,t=e),t}function U_t(){var t,n,s,l;return t=r,o.substr(r,14).toLowerCase()===d1e?(n=o.substr(r,14),r+=14):(n=e,m===0&&C(i4e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=ilt(n)):(r=t,t=e)):(r=t,t=e),t}function j_t(){var t,n,s,l;return t=r,o.substr(r,3).toLowerCase()===u1e?(n=o.substr(r,3),r+=3):(n=e,m===0&&C(s4e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=slt(n)):(r=t,t=e)):(r=t,t=e),t}function Tv(){var t,n,s,l;return t=r,o.substr(r,8).toLowerCase()===c1e?(n=o.substr(r,8),r+=8):(n=e,m===0&&C(n4e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=nlt(n)):(r=t,t=e)):(r=t,t=e),t}function x_t(){var t,n,s,l;return t=r,o.substr(r,5).toLowerCase()===p1e?(n=o.substr(r,5),r+=5):(n=e,m===0&&C(a4e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=alt(n)):(r=t,t=e)):(r=t,t=e),t}function gq(){var t,n,s,l;return t=r,o.substr(r,4).toLowerCase()===f1e?(n=o.substr(r,4),r+=4):(n=e,m===0&&C(o4e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=olt(n)):(r=t,t=e)):(r=t,t=e),t}function F_t(){var t,n,s,l;return t=r,o.substr(r,10).toLowerCase()===h1e?(n=o.substr(r,10),r+=10):(n=e,m===0&&C(l4e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=llt(n)):(r=t,t=e)):(r=t,t=e),t}function Dq(){var t,n,s,l;return t=r,o.substr(r,7).toLowerCase()===y1e?(n=o.substr(r,7),r+=7):(n=e,m===0&&C(d4e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=dlt(n)):(r=t,t=e)):(r=t,t=e),t}function G_t(){var t,n,s,l;return t=r,o.substr(r,4).toLowerCase()===m1e?(n=o.substr(r,4),r+=4):(n=e,m===0&&C(u4e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=ult(n)):(r=t,t=e)):(r=t,t=e),t}function Oq(){var t,n,s,l;return t=r,o.substr(r,9).toLowerCase()===v1e?(n=o.substr(r,9),r+=9):(n=e,m===0&&C(c4e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=clt(n)):(r=t,t=e)):(r=t,t=e),t}function S_t(){var t,n,s,l;return t=r,o.substr(r,5).toLowerCase()===E1e?(n=o.substr(r,5),r+=5):(n=e,m===0&&C(p4e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=plt(n)):(r=t,t=e)):(r=t,t=e),t}function Iv(){var t,n,s,l;return t=r,o.substr(r,4).toLowerCase()===T1e?(n=o.substr(r,4),r+=4):(n=e,m===0&&C(f4e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=flt(n)):(r=t,t=e)):(r=t,t=e),t}function Cq(){var t,n,s,l;return t=r,o.substr(r,5).toLowerCase()===I1e?(n=o.substr(r,5),r+=5):(n=e,m===0&&C(h4e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=hlt(n)):(r=t,t=e)):(r=t,t=e),t}function Jl(){var t,n,s,l;return t=r,o.substr(r,4).toLowerCase()===A1e?(n=o.substr(r,4),r+=4):(n=e,m===0&&C(y4e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=ylt(n)):(r=t,t=e)):(r=t,t=e),t}function Gu(){var t,n,s,l;return t=r,o.substr(r,5).toLowerCase()===b1e?(n=o.substr(r,5),r+=5):(n=e,m===0&&C(m4e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=mlt(n)):(r=t,t=e)):(r=t,t=e),t}function K_t(){var t,n,s,l;return t=r,o.substr(r,5).toLowerCase()===w1e?(n=o.substr(r,5),r+=5):(n=e,m===0&&C(v4e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=vlt(n)):(r=t,t=e)):(r=t,t=e),t}function k_t(){var t,n,s,l;return t=r,o.substr(r,4).toLowerCase()===R1e?(n=o.substr(r,4),r+=4):(n=e,m===0&&C(E4e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Elt(n)):(r=t,t=e)):(r=t,t=e),t}function q_t(){var t,n,s,l;return t=r,o.substr(r,4).toLowerCase()===_1e?(n=o.substr(r,4),r+=4):(n=e,m===0&&C(T4e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Tlt(n)):(r=t,t=e)):(r=t,t=e),t}function j_(){var t,n,s,l;return t=r,o.substr(r,5).toLowerCase()===g1e?(n=o.substr(r,5),r+=5):(n=e,m===0&&C(I4e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Ilt(n)):(r=t,t=e)):(r=t,t=e),t}function x_(){var t,n,s,l;return t=r,o.substr(r,9).toLowerCase()===D1e?(n=o.substr(r,9),r+=9):(n=e,m===0&&C(A4e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Alt(n)):(r=t,t=e)):(r=t,t=e),t}function F_(){var t,n,s,l;return t=r,o.substr(r,14).toLowerCase()===O1e?(n=o.substr(r,14),r+=14):(n=e,m===0&&C(b4e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=blt(n)):(r=t,t=e)):(r=t,t=e),t}function Z_t(){var t,n,s,l;return t=r,o.substr(r,4).toLowerCase()===C1e?(n=o.substr(r,4),r+=4):(n=e,m===0&&C(w4e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=wlt(n)):(r=t,t=e)):(r=t,t=e),t}function J_t(){var t,n,s,l;return t=r,o.substr(r,6).toLowerCase()===$1e?(n=o.substr(r,6),r+=6):(n=e,m===0&&C(R4e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Rlt(n)):(r=t,t=e)):(r=t,t=e),t}function H_t(){var t,n,s,l;return t=r,o.substr(r,6).toLowerCase()===P1e?(n=o.substr(r,6),r+=6):(n=e,m===0&&C(_4e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=_lt(n)):(r=t,t=e)):(r=t,t=e),t}function W_t(){var t,n,s,l;return t=r,o.substr(r,5).toLowerCase()===N1e?(n=o.substr(r,5),r+=5):(n=e,m===0&&C(g4e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=glt(n)):(r=t,t=e)):(r=t,t=e),t}function Y_t(){var t,n,s,l;return t=r,o.substr(r,8).toLowerCase()===V1e?(n=o.substr(r,8),r+=8):(n=e,m===0&&C(D4e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Dlt(n)):(r=t,t=e)):(r=t,t=e),t}function z_t(){var t,n,s,l;return t=r,o.substr(r,8).toLowerCase()===L1e?(n=o.substr(r,8),r+=8):(n=e,m===0&&C(O4e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Olt(n)):(r=t,t=e)):(r=t,t=e),t}function $q(){var t,n,s,l;return t=r,o.substr(r,4).toLowerCase()===M1e?(n=o.substr(r,4),r+=4):(n=e,m===0&&C(C4e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Clt(n)):(r=t,t=e)):(r=t,t=e),t}function Pq(){var t,n,s,l;return t=r,o.substr(r,12).toLowerCase()===B1e?(n=o.substr(r,12),r+=12):(n=e,m===0&&C($4e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=$lt(n)):(r=t,t=e)):(r=t,t=e),t}function X_t(){var t,n,s,l;return t=r,o.substr(r,4).toLowerCase()===U1e?(n=o.substr(r,4),r+=4):(n=e,m===0&&C(P4e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Plt(n)):(r=t,t=e)):(r=t,t=e),t}function Q_t(){var t,n,s,l;return t=r,o.substr(r,8).toLowerCase()===j1e?(n=o.substr(r,8),r+=8):(n=e,m===0&&C(N4e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Nlt(n)):(r=t,t=e)):(r=t,t=e),t}function G_(){var t,n,s,l;return t=r,o.substr(r,5).toLowerCase()===x1e?(n=o.substr(r,5),r+=5):(n=e,m===0&&C(V4e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Vlt(n)):(r=t,t=e)):(r=t,t=e),t}function Nq(){var t,n,s,l;return t=r,o.substr(r,7).toLowerCase()===F1e?(n=o.substr(r,7),r+=7):(n=e,m===0&&C(L4e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Llt(n)):(r=t,t=e)):(r=t,t=e),t}function Av(){var t,n,s,l;return t=r,o.substr(r,12).toLowerCase()===G1e?(n=o.substr(r,12),r+=12):(n=e,m===0&&C(M4e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Mlt(n)):(r=t,t=e)):(r=t,t=e),t}function egt(){var t,n,s,l;return t=r,o.substr(r,3).toLowerCase()===S1e?(n=o.substr(r,3),r+=3):(n=e,m===0&&C(B4e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Blt(n)):(r=t,t=e)):(r=t,t=e),t}function tgt(){var t,n,s,l;return t=r,o.substr(r,8).toLowerCase()===K1e?(n=o.substr(r,8),r+=8):(n=e,m===0&&C(U4e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Ult(n)):(r=t,t=e)):(r=t,t=e),t}function S_(){var t,n,s,l;return t=r,o.substr(r,8).toLowerCase()===k1e?(n=o.substr(r,8),r+=8):(n=e,m===0&&C(j4e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=jlt(n)):(r=t,t=e)):(r=t,t=e),t}function rgt(){var t,n,s,l;return t=r,o.substr(r,10).toLowerCase()===q1e?(n=o.substr(r,10),r+=10):(n=e,m===0&&C(x4e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=xlt(n)):(r=t,t=e)):(r=t,t=e),t}function igt(){var t,n,s,l;return t=r,o.substr(r,9).toLowerCase()===Z1e?(n=o.substr(r,9),r+=9):(n=e,m===0&&C(F4e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Flt(n)):(r=t,t=e)):(r=t,t=e),t}function sgt(){var t,n,s,l;return t=r,o.substr(r,10).toLowerCase()===J1e?(n=o.substr(r,10),r+=10):(n=e,m===0&&C(G4e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Glt(n)):(r=t,t=e)):(r=t,t=e),t}function ngt(){var t,n,s,l;return t=r,o.substr(r,6).toLowerCase()===H1e?(n=o.substr(r,6),r+=6):(n=e,m===0&&C(S4e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Slt(n)):(r=t,t=e)):(r=t,t=e),t}function Vq(){var t,n,s,l;return t=r,o.substr(r,6).toLowerCase()===W1e?(n=o.substr(r,6),r+=6):(n=e,m===0&&C(K4e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Klt(n)):(r=t,t=e)):(r=t,t=e),t}function agt(){var t,n,s,l;return t=r,o.substr(r,5).toLowerCase()===Y1e?(n=o.substr(r,5),r+=5):(n=e,m===0&&C(k4e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=klt(n)):(r=t,t=e)):(r=t,t=e),t}function ogt(){var t,n,s,l;return t=r,o.substr(r,7).toLowerCase()===z1e?(n=o.substr(r,7),r+=7):(n=e,m===0&&C(q4e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=qlt(n)):(r=t,t=e)):(r=t,t=e),t}function lgt(){var t,n,s,l;return t=r,o.substr(r,6).toLowerCase()===X1e?(n=o.substr(r,6),r+=6):(n=e,m===0&&C(Z4e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Zlt(n)):(r=t,t=e)):(r=t,t=e),t}function Lq(){var t,n,s,l;return t=r,o.substr(r,11).toLowerCase()===Q1e?(n=o.substr(r,11),r+=11):(n=e,m===0&&C(J4e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Jlt(n)):(r=t,t=e)):(r=t,t=e),t}function dgt(){var t,n,s,l;return t=r,o.substr(r,12).toLowerCase()===eDe?(n=o.substr(r,12),r+=12):(n=e,m===0&&C(H4e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Hlt(n)):(r=t,t=e)):(r=t,t=e),t}function ugt(){var t,n,s,l;return t=r,o.substr(r,10).toLowerCase()===tDe?(n=o.substr(r,10),r+=10):(n=e,m===0&&C(W4e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Wlt(n)):(r=t,t=e)):(r=t,t=e),t}function cgt(){var t,n,s,l;return t=r,o.substr(r,11).toLowerCase()===rDe?(n=o.substr(r,11),r+=11):(n=e,m===0&&C(Y4e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Ylt(n)):(r=t,t=e)):(r=t,t=e),t}function pgt(){var t,n,s,l;return t=r,o.substr(r,12).toLowerCase()===iDe?(n=o.substr(r,12),r+=12):(n=e,m===0&&C(z4e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=zlt(n)):(r=t,t=e)):(r=t,t=e),t}function fgt(){var t,n,s,l;return t=r,o.substr(r,3).toLowerCase()===sDe?(n=o.substr(r,3),r+=3):(n=e,m===0&&C(X4e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Xlt(n)):(r=t,t=e)):(r=t,t=e),t}function hgt(){var t,n,s,l;return t=r,o.substr(r,8).toLowerCase()===nDe?(n=o.substr(r,8),r+=8):(n=e,m===0&&C(Q4e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Qlt(n)):(r=t,t=e)):(r=t,t=e),t}function K_(){var t,n,s,l;return t=r,o.substr(r,6).toLowerCase()===aDe?(n=o.substr(r,6),r+=6):(n=e,m===0&&C(eUe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=edt(n)):(r=t,t=e)):(r=t,t=e),t}function ygt(){var t,n,s,l;return t=r,o.substr(r,18).toLowerCase()===oDe?(n=o.substr(r,18),r+=18):(n=e,m===0&&C(tUe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=tdt(n)):(r=t,t=e)):(r=t,t=e),t}function mgt(){var t,n,s,l;return t=r,o.substr(r,13).toLowerCase()===lDe?(n=o.substr(r,13),r+=13):(n=e,m===0&&C(rUe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=rdt(n)):(r=t,t=e)):(r=t,t=e),t}function k_(){var t,n,s,l;return t=r,o.substr(r,8).toLowerCase()===dDe?(n=o.substr(r,8),r+=8):(n=e,m===0&&C(iUe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=idt(n)):(r=t,t=e)):(r=t,t=e),t}function vgt(){var t,n,s,l;return t=r,o.substr(r,3).toLowerCase()===uDe?(n=o.substr(r,3),r+=3):(n=e,m===0&&C(sUe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=sdt(n)):(r=t,t=e)):(r=t,t=e),t}function bv(){var t,n,s,l;return t=r,o.substr(r,4).toLowerCase()===cDe?(n=o.substr(r,4),r+=4):(n=e,m===0&&C(nUe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=ndt(n)):(r=t,t=e)):(r=t,t=e),t}function Egt(){var t,n,s,l;return t=r,o.substr(r,7).toLowerCase()===pDe?(n=o.substr(r,7),r+=7):(n=e,m===0&&C(aUe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=adt(n)):(r=t,t=e)):(r=t,t=e),t}function Tgt(){var t,n,s,l;return t=r,o.substr(r,6).toLowerCase()===fDe?(n=o.substr(r,6),r+=6):(n=e,m===0&&C(oUe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=odt(n)):(r=t,t=e)):(r=t,t=e),t}function q_(){var t,n,s,l;return t=r,o.substr(r,5).toLowerCase()===hDe?(n=o.substr(r,5),r+=5):(n=e,m===0&&C(lUe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=ldt(n)):(r=t,t=e)):(r=t,t=e),t}function Igt(){var t,n,s,l;return t=r,o.substr(r,6).toLowerCase()===yDe?(n=o.substr(r,6),r+=6):(n=e,m===0&&C(dUe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=ddt(n)):(r=t,t=e)):(r=t,t=e),t}function Z_(){var t,n,s,l;return t=r,o.substr(r,7).toLowerCase()===mDe?(n=o.substr(r,7),r+=7):(n=e,m===0&&C(uUe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=udt(n)):(r=t,t=e)):(r=t,t=e),t}function Agt(){var t,n,s,l;return t=r,o.substr(r,5).toLowerCase()===vDe?(n=o.substr(r,5),r+=5):(n=e,m===0&&C(cUe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=cdt(n)):(r=t,t=e)):(r=t,t=e),t}function bgt(){var t,n,s,l;return t=r,o.substr(r,3).toLowerCase()===EDe?(n=o.substr(r,3),r+=3):(n=e,m===0&&C(pUe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=pdt(n)):(r=t,t=e)):(r=t,t=e),t}function wgt(){var t,n,s,l;return t=r,o.substr(r,4).toLowerCase()===TDe?(n=o.substr(r,4),r+=4):(n=e,m===0&&C(fUe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=fdt(n)):(r=t,t=e)):(r=t,t=e),t}function Rgt(){var t,n,s,l;return t=r,o.substr(r,3).toLowerCase()===IDe?(n=o.substr(r,3),r+=3):(n=e,m===0&&C(hUe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=hdt(n)):(r=t,t=e)):(r=t,t=e),t}function _gt(){var t,n,s,l;return t=r,o.substr(r,3).toLowerCase()===ADe?(n=o.substr(r,3),r+=3):(n=e,m===0&&C(yUe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=ydt(n)):(r=t,t=e)):(r=t,t=e),t}function ggt(){var t,n,s,l;return t=r,o.substr(r,4).toLowerCase()===bDe?(n=o.substr(r,4),r+=4):(n=e,m===0&&C(mUe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=mdt(n)):(r=t,t=e)):(r=t,t=e),t}function Dgt(){var t,n,s,l;return t=r,o.substr(r,4).toLowerCase()===wDe?(n=o.substr(r,4),r+=4):(n=e,m===0&&C(vUe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=vdt(n)):(r=t,t=e)):(r=t,t=e),t}function Ss(){var t,n,s,l;return t=r,o.substr(r,2).toLowerCase()===RDe?(n=o.substr(r,2),r+=2):(n=e,m===0&&C(EUe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Edt(n)):(r=t,t=e)):(r=t,t=e),t}function Ogt(){var t,n,s,l;return t=r,o.substr(r,11).toLowerCase()===_De?(n=o.substr(r,11),r+=11):(n=e,m===0&&C(TUe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Tdt(n)):(r=t,t=e)):(r=t,t=e),t}function Cgt(){var t,n,s,l;return t=r,o.substr(r,10).toLowerCase()===gDe?(n=o.substr(r,10),r+=10):(n=e,m===0&&C(IUe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Idt(n)):(r=t,t=e)):(r=t,t=e),t}function $gt(){var t,n,s,l;return t=r,o.substr(r,12).toLowerCase()===DDe?(n=o.substr(r,12),r+=12):(n=e,m===0&&C(AUe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Adt(n)):(r=t,t=e)):(r=t,t=e),t}function Pgt(){var t,n,s,l;return t=r,o.substr(r,9).toLowerCase()===ODe?(n=o.substr(r,9),r+=9):(n=e,m===0&&C(bUe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=bdt(n)):(r=t,t=e)):(r=t,t=e),t}function Ngt(){var t,n,s,l;return t=r,o.substr(r,7).toLowerCase()===CDe?(n=o.substr(r,7),r+=7):(n=e,m===0&&C(wUe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=wdt(n)):(r=t,t=e)):(r=t,t=e),t}function Vgt(){var t,n,s,l;return t=r,o.substr(r,4).toLowerCase()===$De?(n=o.substr(r,4),r+=4):(n=e,m===0&&C(RUe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Rdt(n)):(r=t,t=e)):(r=t,t=e),t}function Lgt(){var t,n,s,l;return t=r,o.substr(r,13).toLowerCase()===PDe?(n=o.substr(r,13),r+=13):(n=e,m===0&&C(_Ue)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=_dt(n)):(r=t,t=e)):(r=t,t=e),t}function wv(){var t,n,s,l;return t=r,o.substr(r,10).toLowerCase()===NDe?(n=o.substr(r,10),r+=10):(n=e,m===0&&C(gUe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=gdt(n)):(r=t,t=e)):(r=t,t=e),t}function Mgt(){var t,n,s,l;return t=r,o.substr(r,11).toLowerCase()===VDe?(n=o.substr(r,11),r+=11):(n=e,m===0&&C(DUe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Ddt(n)):(r=t,t=e)):(r=t,t=e),t}function cr(){var t,n,s,l;return t=r,o.substr(r,3).toLowerCase()===LDe?(n=o.substr(r,3),r+=3):(n=e,m===0&&C(OUe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Odt(n)):(r=t,t=e)):(r=t,t=e),t}function J_(){var t,n,s,l;return t=r,o.substr(r,7).toLowerCase()===MDe?(n=o.substr(r,7),r+=7):(n=e,m===0&&C(CUe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Cdt(n)):(r=t,t=e)):(r=t,t=e),t}function Bgt(){var t,n,s,l;return t=r,o.substr(r,7).toLowerCase()===BDe?(n=o.substr(r,7),r+=7):(n=e,m===0&&C($Ue)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=$dt(n)):(r=t,t=e)):(r=t,t=e),t}function Mq(){var t,n,s,l;return t=r,o.substr(r,6).toLowerCase()===UDe?(n=o.substr(r,6),r+=6):(n=e,m===0&&C(PUe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Pdt(n)):(r=t,t=e)):(r=t,t=e),t}function Ugt(){var t,n,s,l;return t=r,o.substr(r,9).toLowerCase()===jDe?(n=o.substr(r,9),r+=9):(n=e,m===0&&C(NUe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Ndt(n)):(r=t,t=e)):(r=t,t=e),t}function jgt(){var t,n,s,l;return t=r,o.substr(r,5).toLowerCase()===xDe?(n=o.substr(r,5),r+=5):(n=e,m===0&&C(VUe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Vdt(n)):(r=t,t=e)):(r=t,t=e),t}function Ea(){var t,n,s,l;return t=r,o.substr(r,4).toLowerCase()===FDe?(n=o.substr(r,4),r+=4):(n=e,m===0&&C(LUe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Ldt(n)):(r=t,t=e)):(r=t,t=e),t}function Hl(){var t,n,s,l;return t=r,o.substr(r,5).toLowerCase()===GDe?(n=o.substr(r,5),r+=5):(n=e,m===0&&C(MUe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Mdt(n)):(r=t,t=e)):(r=t,t=e),t}function H_(){var t,n,s,l;return t=r,o.substr(r,7).toLowerCase()===SDe?(n=o.substr(r,7),r+=7):(n=e,m===0&&C(BUe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Bdt(n)):(r=t,t=e)):(r=t,t=e),t}function xgt(){var t,n,s,l;return t=r,o.substr(r,8).toLowerCase()===KDe?(n=o.substr(r,8),r+=8):(n=e,m===0&&C(UUe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Udt(n)):(r=t,t=e)):(r=t,t=e),t}function Fgt(){var t,n,s,l;return t=r,o.substr(r,6).toLowerCase()===kDe?(n=o.substr(r,6),r+=6):(n=e,m===0&&C(jUe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=jdt(n)):(r=t,t=e)):(r=t,t=e),t}function dn(){var t,n,s,l;return t=r,o.substr(r,2).toLowerCase()===qDe?(n=o.substr(r,2),r+=2):(n=e,m===0&&C(xUe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=xdt(n)):(r=t,t=e)):(r=t,t=e),t}function Rv(){var t,n,s,l;return t=r,o.substr(r,6).toLowerCase()===ZDe?(n=o.substr(r,6),r+=6):(n=e,m===0&&C(FUe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Fdt(n)):(r=t,t=e)):(r=t,t=e),t}function Bq(){var t,n,s,l;return t=r,o.substr(r,4).toLowerCase()===JDe?(n=o.substr(r,4),r+=4):(n=e,m===0&&C(GUe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Gdt(n)):(r=t,t=e)):(r=t,t=e),t}function Ggt(){var t,n,s,l;return t=r,o.substr(r,3).toLowerCase()===HDe?(n=o.substr(r,3),r+=3):(n=e,m===0&&C(SUe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Sdt(n)):(r=t,t=e)):(r=t,t=e),t}function $r(){var t,n,s,l;return t=r,o.substr(r,2).toLowerCase()===WDe?(n=o.substr(r,2),r+=2):(n=e,m===0&&C(KUe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Kdt(n)):(r=t,t=e)):(r=t,t=e),t}function W_(){var t,n,s,l;return t=r,o.substr(r,4).toLowerCase()===YDe?(n=o.substr(r,4),r+=4):(n=e,m===0&&C(kUe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=kdt(n)):(r=t,t=e)):(r=t,t=e),t}function Sgt(){var t,n,s,l;return t=r,o.substr(r,8).toLowerCase()===zDe?(n=o.substr(r,8),r+=8):(n=e,m===0&&C(qUe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=qdt(n)):(r=t,t=e)):(r=t,t=e),t}function Y_(){var t,n,s,l;return t=r,o.substr(r,6).toLowerCase()===XDe?(n=o.substr(r,6),r+=6):(n=e,m===0&&C(ZUe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Zdt(n)):(r=t,t=e)):(r=t,t=e),t}function Kgt(){var t,n,s,l;return t=r,o.substr(r,10).toLowerCase()===QDe?(n=o.substr(r,10),r+=10):(n=e,m===0&&C(JUe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Jdt(n)):(r=t,t=e)):(r=t,t=e),t}function z_(){var t,n,s,l;return t=r,o.substr(r,7).toLowerCase()===eOe?(n=o.substr(r,7),r+=7):(n=e,m===0&&C(HUe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Hdt(n)):(r=t,t=e)):(r=t,t=e),t}function us(){var t,n,s,l;return t=r,o.substr(r,2).toLowerCase()===tOe?(n=o.substr(r,2),r+=2):(n=e,m===0&&C(WUe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Wdt(n)):(r=t,t=e)):(r=t,t=e),t}function kgt(){var t,n,s,l;return t=r,o.substr(r,5).toLowerCase()===rOe?(n=o.substr(r,5),r+=5):(n=e,m===0&&C(YUe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Ydt(n)):(r=t,t=e)):(r=t,t=e),t}function qgt(){var t,n,s,l;return t=r,o.substr(r,7).toLowerCase()===iOe?(n=o.substr(r,7),r+=7):(n=e,m===0&&C(zUe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=zdt(n)):(r=t,t=e)):(r=t,t=e),t}function Zgt(){var t,n,s,l;return t=r,o.substr(r,10).toLowerCase()===sOe?(n=o.substr(r,10),r+=10):(n=e,m===0&&C(XUe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Xdt(n)):(r=t,t=e)):(r=t,t=e),t}function Jgt(){var t,n,s,l;return t=r,o.substr(r,12).toLowerCase()===nOe?(n=o.substr(r,12),r+=12):(n=e,m===0&&C(QUe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Qdt(n)):(r=t,t=e)):(r=t,t=e),t}function Hgt(){var t,n,s,l;return t=r,o.substr(r,6).toLowerCase()===aOe?(n=o.substr(r,6),r+=6):(n=e,m===0&&C(eje)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=eut(n)):(r=t,t=e)):(r=t,t=e),t}function X_(){var t,n,s,l;return t=r,o.substr(r,3).toLowerCase()===oOe?(n=o.substr(r,3),r+=3):(n=e,m===0&&C(tje)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=tut(n)):(r=t,t=e)):(r=t,t=e),t}function Wgt(){var t,n,s,l;return t=r,o.substr(r,5).toLowerCase()===lOe?(n=o.substr(r,5),r+=5):(n=e,m===0&&C(rje)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=rut(n)):(r=t,t=e)):(r=t,t=e),t}function Ygt(){var t,n,s,l;return t=r,o.substr(r,7).toLowerCase()===dOe?(n=o.substr(r,7),r+=7):(n=e,m===0&&C(ije)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=iut(n)):(r=t,t=e)):(r=t,t=e),t}function zgt(){var t,n,s,l;return t=r,o.substr(r,4).toLowerCase()===uOe?(n=o.substr(r,4),r+=4):(n=e,m===0&&C(sje)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=sut(n)):(r=t,t=e)):(r=t,t=e),t}function Xgt(){var t,n,s,l;return t=r,o.substr(r,10).toLowerCase()===cOe?(n=o.substr(r,10),r+=10):(n=e,m===0&&C(nje)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=nut(n)):(r=t,t=e)):(r=t,t=e),t}function Qgt(){var t,n,s,l;return t=r,o.substr(r,9).toLowerCase()===pOe?(n=o.substr(r,9),r+=9):(n=e,m===0&&C(aje)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=aut(n)):(r=t,t=e)):(r=t,t=e),t}function Uq(){var t,n,s,l;return t=r,o.substr(r,5).toLowerCase()===fOe?(n=o.substr(r,5),r+=5):(n=e,m===0&&C(oje)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=out(n)):(r=t,t=e)):(r=t,t=e),t}function e1t(){var t,n,s,l;return t=r,o.substr(r,5).toLowerCase()===hOe?(n=o.substr(r,5),r+=5):(n=e,m===0&&C(lje)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=lut(n)):(r=t,t=e)):(r=t,t=e),t}function t1t(){var t,n,s,l;return t=r,o.substr(r,9).toLowerCase()===yOe?(n=o.substr(r,9),r+=9):(n=e,m===0&&C(dje)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=dut(n)):(r=t,t=e)):(r=t,t=e),t}function r1t(){var t,n,s,l;return t=r,o.substr(r,8).toLowerCase()===mOe?(n=o.substr(r,8),r+=8):(n=e,m===0&&C(uje)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=uut(n)):(r=t,t=e)):(r=t,t=e),t}function i1t(){var t,n,s,l;return t=r,o.substr(r,9).toLowerCase()===vOe?(n=o.substr(r,9),r+=9):(n=e,m===0&&C(cje)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=cut(n)):(r=t,t=e)):(r=t,t=e),t}function s1t(){var t,n,s,l;return t=r,o.substr(r,7).toLowerCase()===EOe?(n=o.substr(r,7),r+=7):(n=e,m===0&&C(pje)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=put(n)):(r=t,t=e)):(r=t,t=e),t}function Su(){var t,n,s,l;return t=r,o.substr(r,9).toLowerCase()===TOe?(n=o.substr(r,9),r+=9):(n=e,m===0&&C(fje)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=fut(n)):(r=t,t=e)):(r=t,t=e),t}function jq(){var t,n,s,l;return t=r,o.substr(r,8).toLowerCase()===IOe?(n=o.substr(r,8),r+=8):(n=e,m===0&&C(hje)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=hut(n)):(r=t,t=e)):(r=t,t=e),t}function n1t(){var t,n,s,l;return t=r,o.substr(r,7).toLowerCase()===AOe?(n=o.substr(r,7),r+=7):(n=e,m===0&&C(yje)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=yut(n)):(r=t,t=e)):(r=t,t=e),t}function a1t(){var t,n,s,l;return t=r,o.substr(r,12).toLowerCase()===bOe?(n=o.substr(r,12),r+=12):(n=e,m===0&&C(mje)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=mut(n)):(r=t,t=e)):(r=t,t=e),t}function o1t(){var t,n,s,l;return t=r,o.substr(r,10).toLowerCase()===wOe?(n=o.substr(r,10),r+=10):(n=e,m===0&&C(vje)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=vut(n)):(r=t,t=e)):(r=t,t=e),t}function l1t(){var t,n,s,l;return t=r,o.substr(r,5).toLowerCase()===ROe?(n=o.substr(r,5),r+=5):(n=e,m===0&&C(Eje)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Eut(n)):(r=t,t=e)):(r=t,t=e),t}function d1t(){var t,n,s,l;return t=r,o.substr(r,5).toLowerCase()===_Oe?(n=o.substr(r,5),r+=5):(n=e,m===0&&C(Tje)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Tut(n)):(r=t,t=e)):(r=t,t=e),t}function u1t(){var t,n,s,l;return t=r,o.substr(r,4).toLowerCase()===gOe?(n=o.substr(r,4),r+=4):(n=e,m===0&&C(Ije)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Iut(n)):(r=t,t=e)):(r=t,t=e),t}function c1t(){var t,n,s,l;return t=r,o.substr(r,8).toLowerCase()===DOe?(n=o.substr(r,8),r+=8):(n=e,m===0&&C(Aje)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Aut(n)):(r=t,t=e)):(r=t,t=e),t}function Jf(){var t,n,s,l;return t=r,o.substr(r,6).toLowerCase()===OOe?(n=o.substr(r,6),r+=6):(n=e,m===0&&C(bje)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=but(n)):(r=t,t=e)):(r=t,t=e),t}function p1t(){var t,n,s,l;return t=r,o.substr(r,6).toLowerCase()===COe?(n=o.substr(r,6),r+=6):(n=e,m===0&&C(wje)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=wut(n)):(r=t,t=e)):(r=t,t=e),t}function f1t(){var t,n,s,l;return t=r,o.substr(r,9).toLowerCase()===$Oe?(n=o.substr(r,9),r+=9):(n=e,m===0&&C(Rje)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Rut(n)):(r=t,t=e)):(r=t,t=e),t}function xq(){var t,n,s,l;return t=r,o.substr(r,9).toLowerCase()===POe?(n=o.substr(r,9),r+=9):(n=e,m===0&&C(_je)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=_ut(n)):(r=t,t=e)):(r=t,t=e),t}function h1t(){var t,n,s,l;return t=r,o.substr(r,8).toLowerCase()===NOe?(n=o.substr(r,8),r+=8):(n=e,m===0&&C(gje)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=gut(n)):(r=t,t=e)):(r=t,t=e),t}function Q_(){var t,n,s,l;return t=r,o.substr(r,7).toLowerCase()===VOe?(n=o.substr(r,7),r+=7):(n=e,m===0&&C(Dje)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Dut(n)):(r=t,t=e)):(r=t,t=e),t}function y1t(){var t,n,s,l;return t=r,o.substr(r,10).toLowerCase()===LOe?(n=o.substr(r,10),r+=10):(n=e,m===0&&C(Oje)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Out(n)):(r=t,t=e)):(r=t,t=e),t}function Hf(){var t,n,s,l;return t=r,o.substr(r,9).toLowerCase()===MOe?(n=o.substr(r,9),r+=9):(n=e,m===0&&C(Cje)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Cut(n)):(r=t,t=e)):(r=t,t=e),t}function m1t(){var t,n,s,l;return t=r,o.substr(r,10).toLowerCase()===BOe?(n=o.substr(r,10),r+=10):(n=e,m===0&&C($je)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=$ut(n)):(r=t,t=e)):(r=t,t=e),t}function v1t(){var t,n,s,l;return t=r,o.substr(r,7).toLowerCase()===UOe?(n=o.substr(r,7),r+=7):(n=e,m===0&&C(Pje)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Put(n)):(r=t,t=e)):(r=t,t=e),t}function E1t(){var t,n,s,l;return t=r,o.substr(r,6).toLowerCase()===jOe?(n=o.substr(r,6),r+=6):(n=e,m===0&&C(Nje)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Nut(n)):(r=t,t=e)):(r=t,t=e),t}function T1t(){var t,n,s,l;return t=r,o.substr(r,7).toLowerCase()===xOe?(n=o.substr(r,7),r+=7):(n=e,m===0&&C(Vje)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Vut(n)):(r=t,t=e)):(r=t,t=e),t}function eg(){var t,n,s,l;return t=r,o.substr(r,7).toLowerCase()===FOe?(n=o.substr(r,7),r+=7):(n=e,m===0&&C(Lje)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Lut(n)):(r=t,t=e)):(r=t,t=e),t}function tg(){var t,n,s,l;return t=r,o.substr(r,5).toLowerCase()===GOe?(n=o.substr(r,5),r+=5):(n=e,m===0&&C(Mje)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Mut(n)):(r=t,t=e)):(r=t,t=e),t}function I1t(){var t,n,s,l;return t=r,o.substr(r,5).toLowerCase()===SOe?(n=o.substr(r,5),r+=5):(n=e,m===0&&C(Bje)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=But(n)):(r=t,t=e)):(r=t,t=e),t}function Fq(){var t,n,s,l;return t=r,o.substr(r,5).toLowerCase()===KOe?(n=o.substr(r,5),r+=5):(n=e,m===0&&C(Uje)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Uut(n)):(r=t,t=e)):(r=t,t=e),t}function Gq(){var t,n,s,l;return t=r,o.substr(r,5).toLowerCase()===kOe?(n=o.substr(r,5),r+=5):(n=e,m===0&&C(jje)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=jut(n)):(r=t,t=e)):(r=t,t=e),t}function A1t(){var t,n,s,l;return t=r,o.substr(r,4).toLowerCase()===qOe?(n=o.substr(r,4),r+=4):(n=e,m===0&&C(xje)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=xut(n)):(r=t,t=e)):(r=t,t=e),t}function Wf(){var t,n,s,l;return t=r,o.substr(r,4).toLowerCase()===ZOe?(n=o.substr(r,4),r+=4):(n=e,m===0&&C(Fje)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Fut(n)):(r=t,t=e)):(r=t,t=e),t}function b1t(){var t,n,s,l;return t=r,o.substr(r,4).toLowerCase()===JOe?(n=o.substr(r,4),r+=4):(n=e,m===0&&C(Gje)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Gut(n)):(r=t,t=e)):(r=t,t=e),t}function Sq(){var t,n,s,l;return t=r,o.substr(r,9).toLowerCase()===HOe?(n=o.substr(r,9),r+=9):(n=e,m===0&&C(Sje)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Sut(n)):(r=t,t=e)):(r=t,t=e),t}function w1t(){var t,n,s,l;return t=r,o.substr(r,9).toLowerCase()===WOe?(n=o.substr(r,9),r+=9):(n=e,m===0&&C(Kje)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Kut(n)):(r=t,t=e)):(r=t,t=e),t}function Kq(){var t,n,s,l;return t=r,o.substr(r,10).toLowerCase()===YOe?(n=o.substr(r,10),r+=10):(n=e,m===0&&C(kje)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=kut(n)):(r=t,t=e)):(r=t,t=e),t}function R1t(){var t,n,s,l;return t=r,o.substr(r,11).toLowerCase()===zOe?(n=o.substr(r,11),r+=11):(n=e,m===0&&C(qje)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=qut(n)):(r=t,t=e)):(r=t,t=e),t}function _1t(){var t,n,s,l;return t=r,o.substr(r,7).toLowerCase()===XOe?(n=o.substr(r,7),r+=7):(n=e,m===0&&C(Zje)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Zut(n)):(r=t,t=e)):(r=t,t=e),t}function g1t(){var t,n,s,l;return t=r,o.substr(r,6).toLowerCase()===QOe?(n=o.substr(r,6),r+=6):(n=e,m===0&&C(Jje)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Jut(n)):(r=t,t=e)):(r=t,t=e),t}function kq(){var t,n,s,l;return t=r,o.substr(r,7).toLowerCase()===eCe?(n=o.substr(r,7),r+=7):(n=e,m===0&&C(Hje)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Hut(n)):(r=t,t=e)):(r=t,t=e),t}function D1t(){var t,n,s,l;return t=r,o.substr(r,7).toLowerCase()===tCe?(n=o.substr(r,7),r+=7):(n=e,m===0&&C(Wje)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Wut(n)):(r=t,t=e)):(r=t,t=e),t}function O1t(){var t,n,s,l;return t=r,o.substr(r,9).toLowerCase()===rCe?(n=o.substr(r,9),r+=9):(n=e,m===0&&C(Yje)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Yut(n)):(r=t,t=e)):(r=t,t=e),t}function C1t(){var t,n,s,l;return t=r,o.substr(r,6).toLowerCase()===iCe?(n=o.substr(r,6),r+=6):(n=e,m===0&&C(zje)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=zut(n)):(r=t,t=e)):(r=t,t=e),t}function ka(){var t,n,s,l;return t=r,o.substr(r,6).toLowerCase()===sCe?(n=o.substr(r,6),r+=6):(n=e,m===0&&C(Xje)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Xut(n)):(r=t,t=e)):(r=t,t=e),t}function qq(){var t,n,s,l;return t=r,o.substr(r,6).toLowerCase()===nCe?(n=o.substr(r,6),r+=6):(n=e,m===0&&C(Qje)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Qut(n)):(r=t,t=e)):(r=t,t=e),t}function Zq(){var t,n,s,l;return t=r,o.substr(r,10).toLowerCase()===aCe?(n=o.substr(r,10),r+=10):(n=e,m===0&&C(e3e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=ect(n)):(r=t,t=e)):(r=t,t=e),t}function Ks(){var t,n,s,l;return t=r,o.substr(r,7).toLowerCase()===oCe?(n=o.substr(r,7),r+=7):(n=e,m===0&&C(t3e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=tct(n)):(r=t,t=e)):(r=t,t=e),t}function rg(){var t,n,s,l;return t=r,o.substr(r,7).toLowerCase()===lCe?(n=o.substr(r,7),r+=7):(n=e,m===0&&C(r3e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=rct(n)):(r=t,t=e)):(r=t,t=e),t}function $1t(){var t,n,s,l;return t=r,o.substr(r,11).toLowerCase()===dCe?(n=o.substr(r,11),r+=11):(n=e,m===0&&C(i3e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=ict(n)):(r=t,t=e)):(r=t,t=e),t}function Jq(){var t,n,s,l;return t=r,o.substr(r,11).toLowerCase()===uCe?(n=o.substr(r,11),r+=11):(n=e,m===0&&C(s3e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=sct(n)):(r=t,t=e)):(r=t,t=e),t}function Yf(){var t,n,s,l;return t=r,o.substr(r,5).toLowerCase()===cCe?(n=o.substr(r,5),r+=5):(n=e,m===0&&C(n3e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=nct(n)):(r=t,t=e)):(r=t,t=e),t}function P1t(){var t,n,s,l;return t=r,o.substr(r,7).toLowerCase()===pCe?(n=o.substr(r,7),r+=7):(n=e,m===0&&C(a3e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=act(n)):(r=t,t=e)):(r=t,t=e),t}function ig(){var t,n,s,l;return t=r,o.substr(r,7).toLowerCase()===fCe?(n=o.substr(r,7),r+=7):(n=e,m===0&&C(o3e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=oct(n)):(r=t,t=e)):(r=t,t=e),t}function Yr(){var t,n,s,l;return t=r,o.substr(r,8).toLowerCase()===hCe?(n=o.substr(r,8),r+=8):(n=e,m===0&&C(l3e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=lct(n)):(r=t,t=e)):(r=t,t=e),t}function N1t(){var t,n,s,l;return t=r,o.substr(r,10).toLowerCase()===yCe?(n=o.substr(r,10),r+=10):(n=e,m===0&&C(d3e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=dct(n)):(r=t,t=e)):(r=t,t=e),t}function V1t(){var t,n,s,l;return t=r,o.substr(r,11).toLowerCase()===mCe?(n=o.substr(r,11),r+=11):(n=e,m===0&&C(u3e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=uct(n)):(r=t,t=e)):(r=t,t=e),t}function sg(){var t,n,s,l;return t=r,o.substr(r,6).toLowerCase()===vCe?(n=o.substr(r,6),r+=6):(n=e,m===0&&C(c3e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=cct(n)):(r=t,t=e)):(r=t,t=e),t}function L1t(){var t,n,s,l;return t=r,o.substr(r,9).toLowerCase()===ECe?(n=o.substr(r,9),r+=9):(n=e,m===0&&C(p3e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=pct(n)):(r=t,t=e)):(r=t,t=e),t}function Hq(){var t,n,s,l;return t=r,o.substr(r,7).toLowerCase()===TCe?(n=o.substr(r,7),r+=7):(n=e,m===0&&C(f3e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=fct(n)):(r=t,t=e)):(r=t,t=e),t}function ng(){var t,n,s,l;return t=r,o.substr(r,6).toLowerCase()===ICe?(n=o.substr(r,6),r+=6):(n=e,m===0&&C(h3e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=hct(n)):(r=t,t=e)):(r=t,t=e),t}function _v(){var t,n,s,l;return t=r,o.substr(r,5).toLowerCase()===ACe?(n=o.substr(r,5),r+=5):(n=e,m===0&&C(y3e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=yct(n)):(r=t,t=e)):(r=t,t=e),t}function M1t(){var t,n,s,l;return t=r,o.substr(r,5).toLowerCase()===bCe?(n=o.substr(r,5),r+=5):(n=e,m===0&&C(m3e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=mct(n)):(r=t,t=e)):(r=t,t=e),t}function Wl(){var t,n,s,l;return t=r,o.substr(r,4).toLowerCase()===wCe?(n=o.substr(r,4),r+=4):(n=e,m===0&&C(v3e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=vct(n)):(r=t,t=e)):(r=t,t=e),t}function gv(){var t,n,s,l;return t=r,o.substr(r,8).toLowerCase()===RCe?(n=o.substr(r,8),r+=8):(n=e,m===0&&C(E3e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Ect(n)):(r=t,t=e)):(r=t,t=e),t}function ag(){var t,n,s,l;return t=r,o.substr(r,6).toLowerCase()===_Ce?(n=o.substr(r,6),r+=6):(n=e,m===0&&C(T3e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Tct(n)):(r=t,t=e)):(r=t,t=e),t}function B1t(){var t,n,s,l;return t=r,o.substr(r,7).toLowerCase()===gCe?(n=o.substr(r,7),r+=7):(n=e,m===0&&C(I3e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Ict(n)):(r=t,t=e)):(r=t,t=e),t}function U1t(){var t,n,s,l;return t=r,o.substr(r,8).toLowerCase()===DCe?(n=o.substr(r,8),r+=8):(n=e,m===0&&C(A3e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Act(n)):(r=t,t=e)):(r=t,t=e),t}function un(){var t,n,s,l;return t=r,o.substr(r,3).toLowerCase()===OCe?(n=o.substr(r,3),r+=3):(n=e,m===0&&C(b3e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=bct(n)):(r=t,t=e)):(r=t,t=e),t}function j1t(){var t,n,s,l;return t=r,o.substr(r,10).toLowerCase()===CCe?(n=o.substr(r,10),r+=10):(n=e,m===0&&C(w3e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=wct(n)):(r=t,t=e)):(r=t,t=e),t}function x1t(){var t,n,s,l;return t=r,o.substr(r,10).toLowerCase()===$Ce?(n=o.substr(r,10),r+=10):(n=e,m===0&&C(R3e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Rct(n)):(r=t,t=e)):(r=t,t=e),t}function F1t(){var t,n,s,l;return t=r,o.substr(r,5).toLowerCase()===PCe?(n=o.substr(r,5),r+=5):(n=e,m===0&&C(_3e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=_ct(n)):(r=t,t=e)):(r=t,t=e),t}function Uo(){var t,n,s,l;return t=r,o.substr(r,4).toLowerCase()===NCe?(n=o.substr(r,4),r+=4):(n=e,m===0&&C(g3e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=gct(n)):(r=t,t=e)):(r=t,t=e),t}function G1t(){var t,n,s,l;return t=r,o.substr(r,4).toLowerCase()===VCe?(n=o.substr(r,4),r+=4):(n=e,m===0&&C(D3e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Dct(n)):(r=t,t=e)):(r=t,t=e),t}function S1t(){var t,n,s,l;return t=r,o.substr(r,4).toLowerCase()===LCe?(n=o.substr(r,4),r+=4):(n=e,m===0&&C(O3e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Oct(n)):(r=t,t=e)):(r=t,t=e),t}function K1t(){var t,n,s,l;return t=r,o.substr(r,9).toLowerCase()===MCe?(n=o.substr(r,9),r+=9):(n=e,m===0&&C(C3e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Cct(n)):(r=t,t=e)):(r=t,t=e),t}function k1t(){var t,n,s,l;return t=r,o.substr(r,11).toLowerCase()===BCe?(n=o.substr(r,11),r+=11):(n=e,m===0&&C($3e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=$ct(n)):(r=t,t=e)):(r=t,t=e),t}function q1t(){var t,n,s,l;return t=r,o.substr(r,12).toLowerCase()===UCe?(n=o.substr(r,12),r+=12):(n=e,m===0&&C(P3e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Pct(n)):(r=t,t=e)):(r=t,t=e),t}function Z1t(){var t,n,s,l;return t=r,o.substr(r,8).toLowerCase()===jCe?(n=o.substr(r,8),r+=8):(n=e,m===0&&C(N3e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Nct(n)):(r=t,t=e)):(r=t,t=e),t}function og(){var t,n,s,l;return t=r,o.substr(r,9).toLowerCase()===xCe?(n=o.substr(r,9),r+=9):(n=e,m===0&&C(V3e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Vct(n)):(r=t,t=e)):(r=t,t=e),t}function jo(){var t,n,s,l;return t=r,o.substr(r,6).toLowerCase()===FCe?(n=o.substr(r,6),r+=6):(n=e,m===0&&C(L3e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Lct(n)):(r=t,t=e)):(r=t,t=e),t}function lg(){var t,n,s,l;return t=r,o.substr(r,6).toLowerCase()===GCe?(n=o.substr(r,6),r+=6):(n=e,m===0&&C(M3e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Mct(n)):(r=t,t=e)):(r=t,t=e),t}function dg(){var t,n,s,l;return t=r,o.substr(r,6).toLowerCase()===SCe?(n=o.substr(r,6),r+=6):(n=e,m===0&&C(B3e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Bct(n)):(r=t,t=e)):(r=t,t=e),t}function J1t(){var t,n,s,l;return t=r,o.substr(r,18).toLowerCase()===KCe?(n=o.substr(r,18),r+=18):(n=e,m===0&&C(U3e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Uct(n)):(r=t,t=e)):(r=t,t=e),t}function Wq(){var t,n,s,l;return t=r,o.substr(r,26).toLowerCase()===kCe?(n=o.substr(r,26),r+=26):(n=e,m===0&&C(j3e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=jct(n)):(r=t,t=e)):(r=t,t=e),t}function Yq(){var t,n,s,l;return t=r,o.substr(r,8).toLowerCase()===qCe?(n=o.substr(r,8),r+=8):(n=e,m===0&&C(x3e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=xct(n)):(r=t,t=e)):(r=t,t=e),t}function Ku(){var t,n,s,l;return t=r,o.substr(r,6).toLowerCase()===ZCe?(n=o.substr(r,6),r+=6):(n=e,m===0&&C(F3e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Fct(n)):(r=t,t=e)):(r=t,t=e),t}function Dv(){var t,n,s,l;return t=r,o.substr(r,8).toLowerCase()===JCe?(n=o.substr(r,8),r+=8):(n=e,m===0&&C(G3e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Gct(n)):(r=t,t=e)):(r=t,t=e),t}function H1t(){var t,n,s,l;return t=r,o.substr(r,9).toLowerCase()===HCe?(n=o.substr(r,9),r+=9):(n=e,m===0&&C(S3e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Sct(n)):(r=t,t=e)):(r=t,t=e),t}function W1t(){var t,n,s,l;return t=r,o.substr(r,12).toLowerCase()===WCe?(n=o.substr(r,12),r+=12):(n=e,m===0&&C(K3e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Kct(n)):(r=t,t=e)):(r=t,t=e),t}function zq(){var t,n,s,l;return t=r,o.substr(r,6).toLowerCase()===YCe?(n=o.substr(r,6),r+=6):(n=e,m===0&&C(k3e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=kct(n)):(r=t,t=e)):(r=t,t=e),t}function Y1t(){var t,n,s,l;return t=r,o.substr(r,7).toLowerCase()===zCe?(n=o.substr(r,7),r+=7):(n=e,m===0&&C(q3e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=qct(n)):(r=t,t=e)):(r=t,t=e),t}function Xq(){var t,n,s,l;return t=r,o.substr(r,12).toLowerCase()===XCe?(n=o.substr(r,12),r+=12):(n=e,m===0&&C(Z3e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Zct(n)):(r=t,t=e)):(r=t,t=e),t}function tr(){var t,n,s,l;return t=r,o.substr(r,3).toLowerCase()===QCe?(n=o.substr(r,3),r+=3):(n=e,m===0&&C(J3e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Jct(n)):(r=t,t=e)):(r=t,t=e),t}function z1t(){var t,n,s,l;return t=r,o.substr(r,4).toLowerCase()===e$e?(n=o.substr(r,4),r+=4):(n=e,m===0&&C(H3e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Hct(n)):(r=t,t=e)):(r=t,t=e),t}function ug(){var t,n,s,l;return t=r,o.substr(r,5).toLowerCase()===t$e?(n=o.substr(r,5),r+=5):(n=e,m===0&&C(W3e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Wct(n)):(r=t,t=e)):(r=t,t=e),t}function Qq(){var t,n,s,l;return t=r,o.substr(r,7).toLowerCase()===r$e?(n=o.substr(r,7),r+=7):(n=e,m===0&&C(Y3e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Yct(n)):(r=t,t=e)):(r=t,t=e),t}function X1t(){var t,n,s,l;return t=r,o.substr(r,6).toLowerCase()===i$e?(n=o.substr(r,6),r+=6):(n=e,m===0&&C(z3e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=zct(n)):(r=t,t=e)):(r=t,t=e),t}function Q1t(){var t,n,s,l;return t=r,o.substr(r,4).toLowerCase()===s$e?(n=o.substr(r,4),r+=4):(n=e,m===0&&C(X3e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Xct(n)):(r=t,t=e)):(r=t,t=e),t}function eZ(){var t,n,s,l;return t=r,o.substr(r,8).toLowerCase()===n$e?(n=o.substr(r,8),r+=8):(n=e,m===0&&C(Q3e)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Qct(n)):(r=t,t=e)):(r=t,t=e),t}function eDt(){var t,n,s,l;return t=r,o.substr(r,8).toLowerCase()===a$e?(n=o.substr(r,8),r+=8):(n=e,m===0&&C(exe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=ept(n)):(r=t,t=e)):(r=t,t=e),t}function tDt(){var t,n,s,l;return t=r,o.substr(r,4).toLowerCase()===o$e?(n=o.substr(r,4),r+=4):(n=e,m===0&&C(txe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=tpt(n)):(r=t,t=e)):(r=t,t=e),t}function rDt(){var t,n,s,l;return t=r,o.substr(r,6).toLowerCase()===l$e?(n=o.substr(r,6),r+=6):(n=e,m===0&&C(rxe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=rpt(n)):(r=t,t=e)):(r=t,t=e),t}function iDt(){var t,n,s,l;return t=r,o.substr(r,6).toLowerCase()===d$e?(n=o.substr(r,6),r+=6):(n=e,m===0&&C(ixe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=ipt(n)):(r=t,t=e)):(r=t,t=e),t}function tZ(){var t,n,s,l;return t=r,o.substr(r,7).toLowerCase()===u$e?(n=o.substr(r,7),r+=7):(n=e,m===0&&C(sxe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=spt(n)):(r=t,t=e)):(r=t,t=e),t}function sDt(){var t,n,s,l;return t=r,o.substr(r,14).toLowerCase()===c$e?(n=o.substr(r,14),r+=14):(n=e,m===0&&C(nxe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=npt(n)):(r=t,t=e)):(r=t,t=e),t}function nDt(){var t,n,s,l;return t=r,o.substr(r,17).toLowerCase()===p$e?(n=o.substr(r,17),r+=17):(n=e,m===0&&C(axe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=apt(n)):(r=t,t=e)):(r=t,t=e),t}function aDt(){var t,n,s,l;return t=r,o.substr(r,9).toLowerCase()===f$e?(n=o.substr(r,9),r+=9):(n=e,m===0&&C(oxe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=opt(n)):(r=t,t=e)):(r=t,t=e),t}function oDt(){var t,n,s,l;return t=r,o.substr(r,19).toLowerCase()===h$e?(n=o.substr(r,19),r+=19):(n=e,m===0&&C(lxe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=lpt(n)):(r=t,t=e)):(r=t,t=e),t}function lDt(){var t,n,s,l;return t=r,o.substr(r,12).toLowerCase()===y$e?(n=o.substr(r,12),r+=12):(n=e,m===0&&C(dxe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=dpt(n)):(r=t,t=e)):(r=t,t=e),t}function dDt(){var t,n,s,l;return t=r,o.substr(r,16).toLowerCase()===m$e?(n=o.substr(r,16),r+=16):(n=e,m===0&&C(uxe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=upt(n)):(r=t,t=e)):(r=t,t=e),t}function uDt(){var t,n,s,l;return t=r,o.substr(r,6).toLowerCase()===v$e?(n=o.substr(r,6),r+=6):(n=e,m===0&&C(cxe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=cpt(n)):(r=t,t=e)):(r=t,t=e),t}function cg(){var t,n,s,l;return t=r,o.substr(r,5).toLowerCase()===E$e?(n=o.substr(r,5),r+=5):(n=e,m===0&&C(pxe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=ppt(n)):(r=t,t=e)):(r=t,t=e),t}function cDt(){var t,n,s,l;return t=r,o.substr(r,8).toLowerCase()===T$e?(n=o.substr(r,8),r+=8):(n=e,m===0&&C(fxe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=fpt(n)):(r=t,t=e)):(r=t,t=e),t}function pDt(){var t,n,s,l;return t=r,o.substr(r,9).toLowerCase()===I$e?(n=o.substr(r,9),r+=9):(n=e,m===0&&C(hxe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=hpt(n)):(r=t,t=e)):(r=t,t=e),t}function rZ(){var t,n,s,l;return t=r,o.substr(r,10).toLowerCase()===A$e?(n=o.substr(r,10),r+=10):(n=e,m===0&&C(yxe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=ypt(n)):(r=t,t=e)):(r=t,t=e),t}function fDt(){var t,n,s,l;return t=r,o.substr(r,17).toLowerCase()===b$e?(n=o.substr(r,17),r+=17):(n=e,m===0&&C(mxe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=mpt(n)):(r=t,t=e)):(r=t,t=e),t}function hDt(){var t,n,s,l;return t=r,o.substr(r,16).toLowerCase()===w$e?(n=o.substr(r,16),r+=16):(n=e,m===0&&C(vxe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=vpt(n)):(r=t,t=e)):(r=t,t=e),t}function yDt(){var t,n,s,l;return t=r,o.substr(r,18).toLowerCase()===R$e?(n=o.substr(r,18),r+=18):(n=e,m===0&&C(Exe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Ept(n)):(r=t,t=e)):(r=t,t=e),t}function Ov(){var t,n,s,l;return t=r,o.substr(r,7).toLowerCase()===_$e?(n=o.substr(r,7),r+=7):(n=e,m===0&&C(Txe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Tpt(n)):(r=t,t=e)):(r=t,t=e),t}function mDt(){var t,n,s,l;return t=r,o.substr(r,6).toLowerCase()===g$e?(n=o.substr(r,6),r+=6):(n=e,m===0&&C(Ixe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Ipt(n)):(r=t,t=e)):(r=t,t=e),t}function iZ(){var t,n,s,l;return t=r,o.substr(r,13).toLowerCase()===D$e?(n=o.substr(r,13),r+=13):(n=e,m===0&&C(Axe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Apt(n)):(r=t,t=e)):(r=t,t=e),t}function sZ(){var t,n,s,l;return t=r,o.substr(r,6).toLowerCase()===O$e?(n=o.substr(r,6),r+=6):(n=e,m===0&&C(bxe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=bpt(n)):(r=t,t=e)):(r=t,t=e),t}function vDt(){var t,n,s,l;return t=r,o.substr(r,6).toLowerCase()===C$e?(n=o.substr(r,6),r+=6):(n=e,m===0&&C(wxe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=wpt(n)):(r=t,t=e)):(r=t,t=e),t}function nZ(){var t,n,s,l;return t=r,o.substr(r,6).toLowerCase()===$$e?(n=o.substr(r,6),r+=6):(n=e,m===0&&C(Rxe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Rpt(n)):(r=t,t=e)):(r=t,t=e),t}function EDt(){var t,n,s,l;return t=r,o.substr(r,6).toLowerCase()===P$e?(n=o.substr(r,6),r+=6):(n=e,m===0&&C(_xe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=_pt(n)):(r=t,t=e)):(r=t,t=e),t}function TDt(){var t,n,s,l;return t=r,o.substr(r,9).toLowerCase()===N$e?(n=o.substr(r,9),r+=9):(n=e,m===0&&C(gxe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=gpt(n)):(r=t,t=e)):(r=t,t=e),t}function IDt(){var t,n,s,l;return t=r,o.substr(r,7).toLowerCase()===V$e?(n=o.substr(r,7),r+=7):(n=e,m===0&&C(Dxe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Dpt(n)):(r=t,t=e)):(r=t,t=e),t}function aZ(){var t,n,s,l;return t=r,o.substr(r,9).toLowerCase()===L$e?(n=o.substr(r,9),r+=9):(n=e,m===0&&C(Oxe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Opt(n)):(r=t,t=e)):(r=t,t=e),t}function ADt(){var t,n,s,l;return t=r,o.substr(r,5).toLowerCase()===M$e?(n=o.substr(r,5),r+=5):(n=e,m===0&&C(Cxe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Cpt(n)):(r=t,t=e)):(r=t,t=e),t}function Cv(){var t,n,s,l;return t=r,o.substr(r,6).toLowerCase()===B$e?(n=o.substr(r,6),r+=6):(n=e,m===0&&C($xe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=$pt(n)):(r=t,t=e)):(r=t,t=e),t}function oZ(){var t,n,s,l;return t=r,o.substr(r,11).toLowerCase()===U$e?(n=o.substr(r,11),r+=11):(n=e,m===0&&C(Pxe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Ppt(n)):(r=t,t=e)):(r=t,t=e),t}function bDt(){var t,n,s,l;return t=r,o.substr(r,11).toLowerCase()===j$e?(n=o.substr(r,11),r+=11):(n=e,m===0&&C(Nxe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Npt(n)):(r=t,t=e)):(r=t,t=e),t}function $i(){var t,n,s,l;return t=r,o.substr(r,5).toLowerCase()===x$e?(n=o.substr(r,5),r+=5):(n=e,m===0&&C(Vxe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Vpt(n)):(r=t,t=e)):(r=t,t=e),t}function wDt(){var t,n,s,l;return t=r,o.substr(r,6).toLowerCase()===F$e?(n=o.substr(r,6),r+=6):(n=e,m===0&&C(Lxe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Lpt(n)):(r=t,t=e)):(r=t,t=e),t}function RDt(){var t,n,s,l;return t=r,o.substr(r,11).toLowerCase()===G$e?(n=o.substr(r,11),r+=11):(n=e,m===0&&C(Mxe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Mpt(n)):(r=t,t=e)):(r=t,t=e),t}function xo(){var t,n,s,l;return t=r,o.substr(r,10).toLowerCase()===S$e?(n=o.substr(r,10),r+=10):(n=e,m===0&&C(Bxe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Bpt(n)):(r=t,t=e)):(r=t,t=e),t}function _Dt(){var t,n,s,l;return t=r,o.substr(r,6).toLowerCase()===K$e?(n=o.substr(r,6),r+=6):(n=e,m===0&&C(Uxe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Upt(n)):(r=t,t=e)):(r=t,t=e),t}function Yl(){var t,n,s,l;return t=r,o.substr(r,4).toLowerCase()===k$e?(n=o.substr(r,4),r+=4):(n=e,m===0&&C(jxe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=jpt(n)):(r=t,t=e)):(r=t,t=e),t}function zl(){var t,n,s,l;return t=r,o.substr(r,9).toLowerCase()===q$e?(n=o.substr(r,9),r+=9):(n=e,m===0&&C(xxe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=xpt(n)):(r=t,t=e)):(r=t,t=e),t}function gDt(){var t,n,s,l;return t=r,o.substr(r,10).toLowerCase()===Z$e?(n=o.substr(r,10),r+=10):(n=e,m===0&&C(Fxe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Fpt(n)):(r=t,t=e)):(r=t,t=e),t}function DDt(){var t,n,s,l;return t=r,o.substr(r,4).toLowerCase()===J$e?(n=o.substr(r,4),r+=4):(n=e,m===0&&C(Gxe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Gpt(n)):(r=t,t=e)):(r=t,t=e),t}function ku(){var t,n,s,l;return t=r,o.substr(r,4).toLowerCase()===H$e?(n=o.substr(r,4),r+=4):(n=e,m===0&&C(Sxe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Spt(n)):(r=t,t=e)):(r=t,t=e),t}function ODt(){var t,n,s,l;return t=r,o.substr(r,8).toLowerCase()===W$e?(n=o.substr(r,8),r+=8):(n=e,m===0&&C(Kxe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Kpt(n)):(r=t,t=e)):(r=t,t=e),t}function lZ(){var t,n,s,l;return t=r,o.substr(r,4).toLowerCase()===Y$e?(n=o.substr(r,4),r+=4):(n=e,m===0&&C(kxe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=kpt(n)):(r=t,t=e)):(r=t,t=e),t}function Xl(){var t,n,s,l;return t=r,o.substr(r,4).toLowerCase()===z$e?(n=o.substr(r,4),r+=4):(n=e,m===0&&C(qxe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=qpt(n)):(r=t,t=e)):(r=t,t=e),t}function pg(){var t,n,s,l;return t=r,o.substr(r,9).toLowerCase()===X$e?(n=o.substr(r,9),r+=9):(n=e,m===0&&C(Zxe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Zpt(n)):(r=t,t=e)):(r=t,t=e),t}function CDt(){var t,n,s,l;return t=r,o.substr(r,8).toLowerCase()===Q$e?(n=o.substr(r,8),r+=8):(n=e,m===0&&C(Jxe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Jpt(n)):(r=t,t=e)):(r=t,t=e),t}function $Dt(){var t,n,s,l;return t=r,o.substr(r,13).toLowerCase()===ePe?(n=o.substr(r,13),r+=13):(n=e,m===0&&C(Hxe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Hpt(n)):(r=t,t=e)):(r=t,t=e),t}function PDt(){var t,n,s,l;return t=r,o.substr(r,15).toLowerCase()===tPe?(n=o.substr(r,15),r+=15):(n=e,m===0&&C(Wxe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Wpt(n)):(r=t,t=e)):(r=t,t=e),t}function NDt(){var t,n,s,l;return t=r,o.substr(r,8).toLowerCase()===rPe?(n=o.substr(r,8),r+=8):(n=e,m===0&&C(Yxe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Ypt(n)):(r=t,t=e)):(r=t,t=e),t}function dZ(){var t,n,s,l;return t=r,o.substr(r,7).toLowerCase()===iPe?(n=o.substr(r,7),r+=7):(n=e,m===0&&C(zxe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=zpt(n)):(r=t,t=e)):(r=t,t=e),t}function VDt(){var t,n,s,l;return t=r,o.substr(r,8).toLowerCase()===sPe?(n=o.substr(r,8),r+=8):(n=e,m===0&&C(Xxe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Xpt(n)):(r=t,t=e)):(r=t,t=e),t}function ci(){var t,n,s,l;return t=r,o.substr(r,2).toLowerCase()===nPe?(n=o.substr(r,2),r+=2):(n=e,m===0&&C(Qxe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Qpt(n)):(r=t,t=e)):(r=t,t=e),t}function zf(){var t,n,s,l;return t=r,o.substr(r,11).toLowerCase()===aPe?(n=o.substr(r,11),r+=11):(n=e,m===0&&C(eFe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=eft(n)):(r=t,t=e)):(r=t,t=e),t}function LDt(){var t,n,s,l;return t=r,o.substr(r,9).toLowerCase()===oPe?(n=o.substr(r,9),r+=9):(n=e,m===0&&C(tFe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=tft(n)):(r=t,t=e)):(r=t,t=e),t}function qu(){var t,n,s,l;return t=r,o.substr(r,7).toLowerCase()===lPe?(n=o.substr(r,7),r+=7):(n=e,m===0&&C(rFe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=rft(n)):(r=t,t=e)):(r=t,t=e),t}function MDt(){var t,n,s,l;return t=r,o.substr(r,4).toLowerCase()===dPe?(n=o.substr(r,4),r+=4):(n=e,m===0&&C(iFe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=ift(n)):(r=t,t=e)):(r=t,t=e),t}function fg(){var t,n,s,l;return t=r,o.substr(r,8).toLowerCase()===uPe?(n=o.substr(r,8),r+=8):(n=e,m===0&&C(sFe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=sft(n)):(r=t,t=e)):(r=t,t=e),t}function BDt(){var t,n,s,l;return t=r,o.substr(r,7).toLowerCase()===cPe?(n=o.substr(r,7),r+=7):(n=e,m===0&&C(nFe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=nft(n)):(r=t,t=e)):(r=t,t=e),t}function Ta(){var t,n,s,l;return t=r,o.substr(r,4).toLowerCase()===pPe?(n=o.substr(r,4),r+=4):(n=e,m===0&&C(aFe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=aft(n)):(r=t,t=e)):(r=t,t=e),t}function $v(){var t,n,s,l;return t=r,o.substr(r,7).toLowerCase()===fPe?(n=o.substr(r,7),r+=7):(n=e,m===0&&C(oFe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=oft(n)):(r=t,t=e)):(r=t,t=e),t}function UDt(){var t,n,s,l;return t=r,o.substr(r,9).toLowerCase()===hPe?(n=o.substr(r,9),r+=9):(n=e,m===0&&C(lFe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=lft(n)):(r=t,t=e)):(r=t,t=e),t}function jDt(){var t,n,s,l;return t=r,o.substr(r,11).toLowerCase()===yPe?(n=o.substr(r,11),r+=11):(n=e,m===0&&C(dFe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=dft(n)):(r=t,t=e)):(r=t,t=e),t}function hg(){var t,n,s,l;return t=r,o.substr(r,5).toLowerCase()===mPe?(n=o.substr(r,5),r+=5):(n=e,m===0&&C(uFe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=uft(n)):(r=t,t=e)):(r=t,t=e),t}function yg(){var t,n,s,l;return t=r,o.substr(r,6).toLowerCase()===vPe?(n=o.substr(r,6),r+=6):(n=e,m===0&&C(cFe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=cft(n)):(r=t,t=e)):(r=t,t=e),t}function uZ(){var t,n,s,l;return t=r,o.substr(r,7).toLowerCase()===EPe?(n=o.substr(r,7),r+=7):(n=e,m===0&&C(pFe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=pft(n)):(r=t,t=e)):(r=t,t=e),t}function mg(){var t,n,s,l;return t=r,o.substr(r,8).toLowerCase()===TPe?(n=o.substr(r,8),r+=8):(n=e,m===0&&C(fFe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=fft(n)):(r=t,t=e)):(r=t,t=e),t}function xDt(){var t,n,s,l;return t=r,o.substr(r,6).toLowerCase()===IPe?(n=o.substr(r,6),r+=6):(n=e,m===0&&C(hFe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=hft(n)):(r=t,t=e)):(r=t,t=e),t}function FDt(){var t,n,s,l;return t=r,o.substr(r,7).toLowerCase()===APe?(n=o.substr(r,7),r+=7):(n=e,m===0&&C(yFe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=yft(n)):(r=t,t=e)):(r=t,t=e),t}function GDt(){var t,n,s,l;return t=r,o.substr(r,6).toLowerCase()===bPe?(n=o.substr(r,6),r+=6):(n=e,m===0&&C(mFe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=mft(n)):(r=t,t=e)):(r=t,t=e),t}function cZ(){var t,n,s,l;return t=r,o.substr(r,5).toLowerCase()===wPe?(n=o.substr(r,5),r+=5):(n=e,m===0&&C(vFe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=vft(n)):(r=t,t=e)):(r=t,t=e),t}function Vn(){var t,n,s,l;return t=r,o.substr(r,6).toLowerCase()===RPe?(n=o.substr(r,6),r+=6):(n=e,m===0&&C(EFe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Eft(n)):(r=t,t=e)):(r=t,t=e),t}function SDt(){var t,n,s,l;return t=r,o.substr(r,5).toLowerCase()===_Pe?(n=o.substr(r,5),r+=5):(n=e,m===0&&C(TFe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Tft(n)):(r=t,t=e)):(r=t,t=e),t}function Fo(){var t,n,s,l;return t=r,o.substr(r,4).toLowerCase()===gPe?(n=o.substr(r,4),r+=4):(n=e,m===0&&C(IFe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Ift(n)):(r=t,t=e)):(r=t,t=e),t}function cs(){var t,n,s,l;return t=r,o.substr(r,5).toLowerCase()===DPe?(n=o.substr(r,5),r+=5):(n=e,m===0&&C(AFe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Aft(n)):(r=t,t=e)):(r=t,t=e),t}function pZ(){var t,n,s,l;return t=r,o.substr(r,6).toLowerCase()===OPe?(n=o.substr(r,6),r+=6):(n=e,m===0&&C(bFe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=bft(n)):(r=t,t=e)):(r=t,t=e),t}function fZ(){var t,n,s,l;return t=r,o.substr(r,5).toLowerCase()===CPe?(n=o.substr(r,5),r+=5):(n=e,m===0&&C(wFe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=wft(n)):(r=t,t=e)):(r=t,t=e),t}function KDt(){var t,n,s,l;return t=r,o.substr(r,8).toLowerCase()===$Pe?(n=o.substr(r,8),r+=8):(n=e,m===0&&C(RFe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Rft(n)):(r=t,t=e)):(r=t,t=e),t}function Xf(){var t,n,s,l;return t=r,o.substr(r,5).toLowerCase()===PPe?(n=o.substr(r,5),r+=5):(n=e,m===0&&C(_Fe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=_ft(n)):(r=t,t=e)):(r=t,t=e),t}function Pv(){var t,n,s,l;return t=r,o.substr(r,6).toLowerCase()===NPe?(n=o.substr(r,6),r+=6):(n=e,m===0&&C(gFe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=gft(n)):(r=t,t=e)):(r=t,t=e),t}function kDt(){var t,n,s,l;return t=r,o.substr(r,9).toLowerCase()===VPe?(n=o.substr(r,9),r+=9):(n=e,m===0&&C(DFe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Dft(n)):(r=t,t=e)):(r=t,t=e),t}function qDt(){var t,n,s,l;return t=r,o.substr(r,7).toLowerCase()===LPe?(n=o.substr(r,7),r+=7):(n=e,m===0&&C(OFe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Oft(n)):(r=t,t=e)):(r=t,t=e),t}function hZ(){var t,n,s,l;return t=r,o.substr(r,8).toLowerCase()===MPe?(n=o.substr(r,8),r+=8):(n=e,m===0&&C(CFe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Cft(n)):(r=t,t=e)):(r=t,t=e),t}function vg(){var t,n,s,l;return t=r,o.substr(r,7).toLowerCase()===BPe?(n=o.substr(r,7),r+=7):(n=e,m===0&&C($Fe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=$ft(n)):(r=t,t=e)):(r=t,t=e),t}function ZDt(){var t,n,s,l;return t=r,o.substr(r,6).toLowerCase()===UPe?(n=o.substr(r,6),r+=6):(n=e,m===0&&C(PFe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Pft(n)):(r=t,t=e)):(r=t,t=e),t}function JDt(){var t,n,s,l;return t=r,o.substr(r,7).toLowerCase()===jPe?(n=o.substr(r,7),r+=7):(n=e,m===0&&C(NFe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Nft(n)):(r=t,t=e)):(r=t,t=e),t}function Qf(){var t,n,s,l;return t=r,o.substr(r,4).toLowerCase()===xPe?(n=o.substr(r,4),r+=4):(n=e,m===0&&C(VFe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Vft(n)):(r=t,t=e)):(r=t,t=e),t}function yZ(){var t,n,s,l;return t=r,o.substr(r,7).toLowerCase()===FPe?(n=o.substr(r,7),r+=7):(n=e,m===0&&C(LFe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Lft(n)):(r=t,t=e)):(r=t,t=e),t}function mZ(){var t,n,s,l;return t=r,o.substr(r,7).toLowerCase()===GPe?(n=o.substr(r,7),r+=7):(n=e,m===0&&C(MFe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Mft(n)):(r=t,t=e)):(r=t,t=e),t}function HDt(){var t,n,s,l;return t=r,o.substr(r,8).toLowerCase()===SPe?(n=o.substr(r,8),r+=8):(n=e,m===0&&C(BFe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Bft(n)):(r=t,t=e)):(r=t,t=e),t}function WDt(){var t,n,s,l;return t=r,o.substr(r,9).toLowerCase()===KPe?(n=o.substr(r,9),r+=9):(n=e,m===0&&C(UFe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Uft(n)):(r=t,t=e)):(r=t,t=e),t}function Nv(){var t,n,s,l;return t=r,o.substr(r,4).toLowerCase()===kPe?(n=o.substr(r,4),r+=4):(n=e,m===0&&C(jFe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=jft(n)):(r=t,t=e)):(r=t,t=e),t}function eh(){var t,n,s,l;return t=r,o.substr(r,4).toLowerCase()===qPe?(n=o.substr(r,4),r+=4):(n=e,m===0&&C(xFe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=xft(n)):(r=t,t=e)):(r=t,t=e),t}function vZ(){var t,n,s,l;return t=r,o.substr(r,5).toLowerCase()===ZPe?(n=o.substr(r,5),r+=5):(n=e,m===0&&C(FFe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Fft(n)):(r=t,t=e)):(r=t,t=e),t}function EZ(){var t,n,s,l;return t=r,o.substr(r,5).toLowerCase()===JPe?(n=o.substr(r,5),r+=5):(n=e,m===0&&C(GFe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Gft(n)):(r=t,t=e)):(r=t,t=e),t}function TZ(){var t,n,s,l;return t=r,o.substr(r,6).toLowerCase()===HPe?(n=o.substr(r,6),r+=6):(n=e,m===0&&C(SFe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Sft(n)):(r=t,t=e)):(r=t,t=e),t}function Sr(){var t,n,s,l;return t=r,o.substr(r,4).toLowerCase()===WPe?(n=o.substr(r,4),r+=4):(n=e,m===0&&C(KFe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Kft(n)):(r=t,t=e)):(r=t,t=e),t}function th(){var t,n,s,l;return t=r,o.substr(r,7).toLowerCase()===YPe?(n=o.substr(r,7),r+=7):(n=e,m===0&&C(kFe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=kft(n)):(r=t,t=e)):(r=t,t=e),t}function Eg(){var t,n,s,l;return t=r,o.substr(r,4).toLowerCase()===zPe?(n=o.substr(r,4),r+=4):(n=e,m===0&&C(qFe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=qft(n)):(r=t,t=e)):(r=t,t=e),t}function YDt(){var t,n,s,l;return t=r,o.substr(r,7).toLowerCase()===XPe?(n=o.substr(r,7),r+=7):(n=e,m===0&&C(ZFe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Zft(n)):(r=t,t=e)):(r=t,t=e),t}function zDt(){var t,n,s,l;return t=r,o.substr(r,5).toLowerCase()===QPe?(n=o.substr(r,5),r+=5):(n=e,m===0&&C(JFe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Jft(n)):(r=t,t=e)):(r=t,t=e),t}function IZ(){var t,n,s,l;return t=r,o.substr(r,3).toLowerCase()===eNe?(n=o.substr(r,3),r+=3):(n=e,m===0&&C(HFe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Hft(n)):(r=t,t=e)):(r=t,t=e),t}function Vv(){var t,n,s,l;return t=r,o.substr(r,4).toLowerCase()===tNe?(n=o.substr(r,4),r+=4):(n=e,m===0&&C(WFe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Wft(n)):(r=t,t=e)):(r=t,t=e),t}function XDt(){var t,n,s,l;return t=r,o.substr(r,10).toLowerCase()===rNe?(n=o.substr(r,10),r+=10):(n=e,m===0&&C(YFe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=Yft(n)):(r=t,t=e)):(r=t,t=e),t}function Tg(){var t,n,s,l;return t=r,o.substr(r,4).toLowerCase()===iNe?(n=o.substr(r,4),r+=4):(n=e,m===0&&C(zFe)),n!==e?(s=r,m++,l=j(),m--,l===e?s=void 0:(r=s,s=e),s!==e?(b=t,t=zft(n)):(r=t,t=e)):(r=t,t=e),t}if((0,fi.setRangeFunction)(()=>[b,r]),(0,fi.setOptionsFunction)(()=>p),d0=E(),d0!==e&&r===o.length)return d0;throw d0!==e&&r<o.length&&C(Qft()),eht(Aw,ua<o.length?o.charAt(ua):null,ua<o.length?QK(ua,ua+1):QK(ua,ua))}return{SyntaxError:u,parse:a}}();EA.SyntaxError.prototype.name="PeggySyntaxError",jd.parse=EA.parse,jd.PeggySyntaxError=EA.SyntaxError;var kc={},qc={},Zc={},Q3;function sve(){if(Q3)return Zc;Q3=1,Object.defineProperty(Zc,"__esModule",{value:!0}),Zc.alterActionMap=void 0;const d=Wt();return Zc.alterActionMap={alter_action_rename:u=>(0,d.show)([u.renameKw,u.newName]),alter_action_rename_column:u=>(0,d.show)([u.renameKw,u.ifExistsKw,u.oldName,u.toKw,u.newName]),alter_action_add_column:u=>(0,d.show)([u.addKw,u.ifNotExistsKw,u.column]),alter_action_drop_column:u=>(0,d.show)([u.dropKw,u.ifExistsKw,u.column,u.behaviorKw]),alter_action_set_default_collate:u=>(0,d.show)([u.setDefaultCollateKw,u.collation]),alter_action_set_bigquery_options:u=>(0,d.show)([u.setKw,u.options]),alter_action_set_postgresql_options:u=>(0,d.show)([u.setKw,u.options]),alter_action_reset_postgresql_options:u=>(0,d.show)([u.resetKw,u.options]),alter_action_set_postgresql_option:u=>(0,d.show)([u.setKw,u.name,u.operator,u.value]),alter_action_set_postgresql_option_from_current:u=>(0,d.show)([u.setKw,u.name,u.fromCurrentKw]),alter_action_reset_postgresql_option:u=>(0,d.show)([u.resetKw,u.name]),alter_action_add_constraint:u=>(0,d.show)([u.addKw,u.name,u.constraint,u.modifiers]),alter_action_add_constraint_constraint_name:u=>(0,d.show)([u.constraintKw,u.ifNotExistsKw,u.name]),alter_action_drop_constraint:u=>(0,d.show)([u.dropConstraintKw,u.ifExistsKw,u.constraint,u.behaviorKw]),alter_action_alter_constraint:u=>(0,d.show)([u.alterConstraintKw,u.constraint,u.modifiers]),alter_action_rename_constraint:u=>(0,d.show)([u.renameConstraintKw,u.oldName,u.toKw,u.newName]),alter_action_validate_constraint:u=>(0,d.show)([u.validateConstraintKw,u.constraint]),alter_action_drop_primary_key:u=>(0,d.show)([u.dropPrimaryKeyKw,u.ifExistsKw]),alter_action_owner_to:u=>(0,d.show)([u.ownerToKw,u.owner]),alter_action_set_schema:u=>(0,d.show)([u.setSchemaKw,u.schema]),alter_action_enable:u=>(0,d.show)([u.enableKw,u.modeKw,u.item]),alter_action_disable:u=>(0,d.show)([u.disableKw,u.item]),alter_action_force:u=>(0,d.show)([u.forceKw,u.item]),alter_action_no_force:u=>(0,d.show)([u.noForceKw,u.item]),alter_action_set_tablespace:u=>(0,d.show)([u.setTablespaceKw,u.tablespace,u.nowaitKw]),alter_action_set_access_method:u=>(0,d.show)([u.setAccessMethodKw,u.method]),alter_action_cluster_on:u=>(0,d.show)([u.clusterOnKw,u.index]),alter_action_set_without_cluster:u=>(0,d.show)([u.setWithoutClusterKw]),alter_action_set_without_oids:u=>(0,d.show)([u.setWithoutOidsKw]),alter_action_set_logged:u=>(0,d.show)([u.setLoggedKw]),alter_action_set_unlogged:u=>(0,d.show)([u.setUnloggedKw]),alter_action_inherit:u=>(0,d.show)([u.inheritKw,u.table]),alter_action_no_inherit:u=>(0,d.show)([u.noInheritKw,u.table]),alter_action_of_type:u=>(0,d.show)([u.ofKw,u.typeName]),alter_action_not_of_type:u=>(0,d.show)([u.notOfKw]),alter_action_depends_on_extension:u=>(0,d.show)([u.dependsOnExtensionKw,u.extension]),alter_action_no_depends_on_extension:u=>(0,d.show)([u.noDependsOnExtensionKw,u.extension]),alter_action_replica_identity:u=>(0,d.show)([u.replicaIdentityKw,u.identity]),alter_action_add_enum_value:u=>(0,d.show)([u.addValueKw,u.ifNotExistsKw,u.value,u.position]),alter_action_add_enum_value_position:u=>(0,d.show)([u.positionKw,u.value]),alter_action_rename_enum_value:u=>(0,d.show)([u.renameValueKw,u.oldValue,u.toKw,u.newValue]),alter_action_rename_attribute:u=>(0,d.show)([u.renameAttributeKw,u.oldName,u.toKw,u.newName,u.behaviorKw]),alter_action_add_attribute:u=>(0,d.show)([u.addAttributeKw,u.name,u.dataType,u.constraint,u.behaviorKw]),alter_action_drop_attribute:u=>(0,d.show)([u.dropAttributeKw,u.ifExistsKw,u.name,u.behaviorKw]),alter_action_alter_attribute:u=>(0,d.show)([u.alterAttributeKw,u.name,u.setDataTypeKw,u.dataType,u.constraint,u.behaviorKw]),alter_action_add_user:u=>(0,d.show)([u.addUserKw,u.users]),alter_action_drop_user:u=>(0,d.show)([u.dropUserKw,u.users]),alter_action_alter_column:u=>(0,d.show)([u.alterKw,u.ifExistsKw,u.column,u.action]),alter_action_set_default:u=>(0,d.show)([u.setDefaultKw,u.expr]),alter_action_drop_default:u=>(0,d.show)([u.dropDefaultKw]),alter_action_set_not_null:u=>(0,d.show)([u.setNotNullKw]),alter_action_drop_not_null:u=>(0,d.show)([u.dropNotNullKw]),alter_action_set_data_type:u=>(0,d.show)([u.setDataTypeKw,u.dataType,u.clauses]),alter_action_set_visible:u=>(0,d.show)([u.setVisibleKw]),alter_action_set_invisible:u=>(0,d.show)([u.setInvisibleKw]),alter_action_set_compression:u=>(0,d.show)([u.setCompressionKw,u.method]),alter_action_set_storage:u=>(0,d.show)([u.setStorageKw,u.typeKw]),alter_action_set_statistics:u=>(0,d.show)([u.setStatisticsKw,u.value]),alter_action_drop_expression:u=>(0,d.show)([u.dropExpressionKw,u.ifExistsKw]),alter_action_drop_identity:u=>(0,d.show)([u.dropIdentityKw,u.ifExistsKw]),alter_action_add_identity:u=>(0,d.show)([u.addGeneratedKw,u.whenKw,u.asIdentityKw,u.sequenceOptions]),alter_action_alter_identity:u=>(0,d.show)(u.actions),alter_action_attach_partition:u=>(0,d.show)([u.attachPartitionKw,u.index]),alter_action_with_role_options:u=>(0,d.show)([u.withKw,u.options]),toggle_row_level_security:u=>(0,d.show)([u.rowLevelSecurityKw]),toggle_trigger:u=>(0,d.show)([u.triggerKw,u.name]),toggle_rule:u=>(0,d.show)([u.ruleKw,u.name]),replica_identity_using_index:u=>(0,d.show)([u.usingIndexKw,u.index]),set_data_type_collate_clause:u=>(0,d.show)([u.collateKw,u.collation]),set_data_type_using_clause:u=>(0,d.show)([u.usingKw,u.expr]),alter_action_set_generated:u=>(0,d.show)([u.setGeneratedKw,u.whenKw]),alter_action_set_sequence_option:u=>(0,d.show)([u.setKw,u.option]),alter_action_restart:u=>(0,d.show)([u.restartKw,u.withKw,u.value])},Zc}var Jc={},ex;function nve(){if(ex)return Jc;ex=1,Object.defineProperty(Jc,"__esModule",{value:!0}),Jc.alterTableMap=void 0;const d=Wt();return Jc.alterTableMap={alter_table_stmt:u=>(0,d.show)([u.alterTableKw,u.ifExistsKw,u.table,u.actions]),alter_table_all_in_tablespace_stmt:u=>(0,d.show)([u.alterTableKw,u.allInTablespaceKw,u.tablespace,u.ownedBy,u.action]),owned_by_clause:u=>(0,d.show)([u.ownedByKw,u.owners])},Jc}var Hc={},tx;function ave(){if(tx)return Hc;tx=1,Object.defineProperty(Hc,"__esModule",{value:!0}),Hc.analyzeMap=void 0;const d=Wt();return Hc.analyzeMap={analyze_stmt:u=>(0,d.show)([u.analyzeKw,u.tableKw,u.tables])},Hc}var Wc={},rx;function ove(){if(rx)return Wc;rx=1,Object.defineProperty(Wc,"__esModule",{value:!0}),Wc.baseMap=void 0;const d=Wt();return Wc.baseMap={keyword:u=>u.text,all_columns:()=>"*",empty:()=>"",alias:u=>(0,d.show)([u.expr,u.asKw,u.alias,u.columnAliases]),program:u=>(0,d.show)(u.statements,";")},Wc}var Yc={},ix;function lve(){if(ix)return Yc;ix=1,Object.defineProperty(Yc,"__esModule",{value:!0}),Yc.constraintMap=void 0;const d=Wt();return Yc.constraintMap={constraint:u=>(0,d.show)([u.name,u.constraint,u.modifiers]),constraint_name:u=>(0,d.show)([u.constraintKw,u.name]),constraint_modifier:u=>(0,d.show)(u.kw),constraint_null:u=>(0,d.show)(u.nullKw),constraint_not_null:u=>(0,d.show)([u.notNullKw,u.clauses]),constraint_auto_increment:u=>(0,d.show)(u.autoIncrementKw),constraint_default:u=>(0,d.show)([u.defaultKw,u.expr]),constraint_comment:u=>(0,d.show)([u.commentKw,u.value]),constraint_primary_key:u=>(0,d.show)([u.primaryKeyKw,u.direction,u.columns,u.clauses]),constraint_foreign_key:u=>(0,d.show)([u.foreignKeyKw,u.indexName,u.columns,u.references]),references_specification:u=>(0,d.show)([u.referencesKw,u.table,u.columns,u.options]),referential_action:u=>(0,d.show)([u.onKw,u.eventKw,u.actionKw,u.columns]),referential_match:u=>(0,d.show)([u.matchKw,u.typeKw]),constraint_unique:u=>(0,d.show)([u.uniqueKw,u.nullsKw,u.columns,u.clauses]),constraint_check:u=>(0,d.show)([u.checkKw,u.expr,u.clauses]),constraint_index:u=>(0,d.show)([u.indexTypeKw,u.indexKw,u.columns]),constraint_generated:u=>(0,d.show)([u.generatedKw,u.asKw,u.expr,u.storageKw,u.sequenceOptions]),identity_column:u=>(0,d.show)(u.identityKw),constraint_collate:u=>(0,d.show)([u.collateKw,u.collation]),constraint_visible:u=>(0,d.show)(u.visibleKw),constraint_column_format:u=>(0,d.show)([u.columnFormatKw,u.formatKw]),constraint_storage:u=>(0,d.show)([u.storageKw,u.typeKw]),constraint_engine_attribute:u=>(0,d.show)([u.engineAttributeKw,u.hasEq?"=":void 0,u.value]),constraint_compression:u=>(0,d.show)([u.compressionKw,u.method]),constraint_exclude:u=>(0,d.show)([u.excludeKw,u.using,u.params,u.clauses]),exclusion_param:u=>(0,d.show)([u.index,u.withKw,u.operator]),on_conflict_clause:u=>(0,d.show)([u.onConflictKw,u.resolutionKw]),index_tablespace_clause:u=>(0,d.show)([u.usingIndexTablespaceKw,u.name]),existing_index:u=>(0,d.show)([u.usingIndexKw,u.index])},Yc}var zc={},sx;function dve(){if(sx)return zc;sx=1,Object.defineProperty(zc,"__esModule",{value:!0}),zc.createTableMap=void 0;const d=Wt();return zc.createTableMap={create_table_stmt:u=>(0,d.show)([u.createKw,u.orReplaceKw,u.kind,u.tableKw,u.ifNotExistsKw,u.name,u.partitionOf,u.ofType,u.columns,u.options,u.clauses]),relation_kind:u=>(0,d.show)(u.kindKw),column_definition:u=>(0,d.show)([u.name,u.dataType,u.withOptionsKw,u.constraints.length>0?u.constraints:void 0]),table_option:u=>(0,d.show)([u.name,u.hasEq?"=":void 0,u.value]),create_table_like_clause:u=>(0,d.show)([u.likeKw,u.name,u.options]),table_like_option:u=>(0,d.show)([u.includingOrExcludingKw,u.optionKw]),create_table_copy_clause:u=>(0,d.show)([u.copyKw,u.name]),create_table_clone_clause:u=>(0,d.show)([u.cloneKw,u.table]),with_partition_columns_clause:u=>(0,d.show)([u.withPartitionColumnsKw,u.columns]),create_table_using_clause:u=>(0,d.show)([u.usingKw,u.module]),create_table_inherits_clause:u=>(0,d.show)([u.inheritsKw,u.tables]),create_table_partition_by_clause:u=>(0,d.show)([u.partitionByKw,u.strategyKw,u.columns]),create_table_partition_of_clause:u=>(0,d.show)([u.partitionOfKw,u.table]),create_table_partition_bound_clause:u=>(0,d.show)([u.forValuesKw,u.bound]),partition_bound_from_to:u=>(0,d.show)([u.fromKw,u.from,u.toKw,u.to]),partition_bound_minvalue:u=>(0,d.show)([u.minvalueKw]),partition_bound_maxvalue:u=>(0,d.show)([u.maxvalueKw]),partition_bound_in:u=>(0,d.show)([u.inKw,u.values]),partition_bound_with:u=>(0,d.show)([u.withKw,u.values]),partition_bound_modulus:u=>(0,d.show)([u.modulusKw,u.value]),partition_bound_remainder:u=>(0,d.show)([u.remainderKw,u.value]),create_table_default_partition_clause:u=>(0,d.show)(u.defaultKw),create_table_on_commit_clause:u=>(0,d.show)([u.onCommitKw,u.actionKw]),tablespace_clause:u=>(0,d.show)([u.tablespaceKw,u.name]),using_access_method_clause:u=>(0,d.show)([u.usingKw,u.method]),create_table_without_oids_clause:u=>(0,d.show)(u.withoutOidsKw),with_data_clause:u=>(0,d.show)(u.withDataKw),create_table_of_type_clause:u=>(0,d.show)([u.ofKw,u.typeName]),create_table_server_clause:u=>(0,d.show)([u.serverKw,u.name])},zc}var Xc={},nx;function uve(){if(nx)return Xc;nx=1,Object.defineProperty(Xc,"__esModule",{value:!0}),Xc.dataTypeMap=void 0;const d=Wt();return Xc.dataTypeMap={named_data_type:u=>(0,d.show)([u.name,u.params]),array_data_type:u=>(0,d.show)([u.dataType,u.bounds]),array_bounds:u=>(0,d.show)(["[",u.bounds,"]"]),with_time_zone_data_type:u=>(0,d.show)([u.dataType,u.withTimeZoneKw]),generic_type_params:u=>(0,d.show)(["<",u.params,">"]),array_type_param:u=>(0,d.show)([u.dataType,u.constraints]),struct_type_param:u=>(0,d.show)([u.name,u.dataType,u.constraints]),table_data_type:u=>(0,d.show)([u.tableKw,u.columns])},Xc}var Qc={},ax;function cve(){if(ax)return Qc;ax=1,Object.defineProperty(Qc,"__esModule",{value:!0}),Qc.dclMap=void 0;const d=Wt();return Qc.dclMap={grant_privilege_stmt:u=>(0,d.show)([u.grantKw,u.privileges,u.onKw,u.resource,u.toKw,u.roles,u.clauses]),grant_role_stmt:u=>(0,d.show)([u.grantKw,u.grantedRoles,u.toKw,u.granteeRoles,u.clauses]),privilege:u=>(0,d.show)([u.privilegeKw,u.columns]),all_privileges:u=>(0,d.show)([u.allKw,u.privilegesKw,u.columns]),grant_resource_table:u=>(0,d.show)([u.tableKw,u.tables]),grant_resource_all_tables_in_schema:u=>(0,d.show)([u.allTablesInSchemaKw,u.schemas]),grant_resource_sequence:u=>(0,d.show)([u.sequenceKw,u.sequences]),grant_resource_all_sequences_in_schema:u=>(0,d.show)([u.allSequencesInSchemaKw,u.schemas]),grant_resource_database:u=>(0,d.show)([u.databaseKw,u.databases]),grant_resource_domain:u=>(0,d.show)([u.domainKw,u.domains]),grant_resource_foreign_data_wrapper:u=>(0,d.show)([u.foreignDataWrapperKw,u.dataWrappers]),grant_resource_foreign_server:u=>(0,d.show)([u.foreignServerKw,u.servers]),grant_resource_function:u=>(0,d.show)([u.functionKw,u.functions]),grant_resource_all_functions_in_schema:u=>(0,d.show)([u.allFunctionsInSchemaKw,u.schemas]),grant_resource_language:u=>(0,d.show)([u.languageKw,u.languages]),grant_resource_large_object:u=>(0,d.show)([u.largeObjectKw,u.oids]),grant_resource_postgresql_option:u=>(0,d.show)([u.parameterKw,u.options]),grant_resource_schema:u=>(0,d.show)([u.schemaKw,u.schemas]),grant_resource_tablespace:u=>(0,d.show)([u.tablespaceKw,u.tablespaces]),grant_resource_type:u=>(0,d.show)([u.typeKw,u.types]),grant_resource_view:u=>(0,d.show)([u.viewKw,u.views]),with_grant_option_clause:u=>(0,d.show)([u.withKw,u.nameKw,u.value]),grant_option_for_clause:u=>(0,d.show)([u.nameKw,u.optionForKw]),granted_by_clause:u=>(0,d.show)([u.grantedByKw,u.role]),revoke_privilege_stmt:u=>(0,d.show)([u.revokeKw,u.option,u.privileges,u.onKw,u.resource,u.fromKw,u.roles,u.grantedBy,u.behaviorKw]),revoke_role_stmt:u=>(0,d.show)([u.revokeKw,u.option,u.grantedRoles,u.fromKw,u.granteeRoles,u.grantedBy,u.behaviorKw]),grantee_group:u=>(0,d.show)([u.groupKw,u.name]),grantee_public:u=>(0,d.show)([u.publicKw])},Qc}var ep={},ox;function pve(){if(ox)return ep;ox=1,Object.defineProperty(ep,"__esModule",{value:!0}),ep.deleteMap=void 0;const d=Wt();return ep.deleteMap={delete_stmt:u=>(0,d.show)(u.clauses),delete_clause:u=>(0,d.show)([u.deleteKw,u.modifiers,u.fromKw,u.tables])},ep}var tp={},lx;function fve(){if(lx)return tp;lx=1,Object.defineProperty(tp,"__esModule",{value:!0}),tp.domainMap=void 0;const d=Wt();return tp.domainMap={create_domain_stmt:u=>(0,d.show)([u.createDomainKw,u.name,u.asKw,u.dataType,u.constraints]),alter_domain_stmt:u=>(0,d.show)([u.alterDomainKw,u.name,u.action]),drop_domain_stmt:u=>(0,d.show)([u.dropDomainKw,u.ifExistsKw,u.domains,u.behaviorKw])},tp}var rp={},dx;function hve(){if(dx)return rp;dx=1,Object.defineProperty(rp,"__esModule",{value:!0}),rp.dropTableMap=void 0;const d=Wt();return rp.dropTableMap={drop_table_stmt:u=>(0,d.show)([u.dropKw,u.kind,u.tableKw,u.ifExistsKw,u.tables,u.behaviorKw])},rp}var ip={},ux;function yve(){if(ux)return ip;ux=1,Object.defineProperty(ip,"__esModule",{value:!0}),ip.explainMap=void 0;const d=Wt();return ip.explainMap={explain_stmt:u=>(0,d.show)([u.explainKw,u.analyzeKw,u.queryPlanKw,u.statement])},ip}var sp={},cx;function mve(){if(cx)return sp;cx=1,Object.defineProperty(sp,"__esModule",{value:!0}),sp.exprMap=void 0;const d=Wt();return sp.exprMap={list_expr:u=>(0,d.show)(u.items,","),paren_expr:u=>"("+(0,d.show)(u.expr)+")",binary_expr:u=>(0,d.show)([u.left,u.operator,u.right]),prefix_op_expr:u=>(0,d.show)([u.operator,u.expr]),postfix_op_expr:u=>(0,d.show)([u.expr,u.operator]),func_call:u=>(0,d.show)([u.name,u.args,u.filter,u.over]),func_args:u=>(0,d.show)([u.distinctKw,u.args,u.nullHandlingKw,u.orderBy,u.limit,u.having]),named_arg:u=>(0,d.show)([u.name,u.operator,u.value]),cast_expr:u=>(0,d.show)([u.castKw,u.args]),cast_operator_expr:u=>(0,d.show)([u.left,u.operator,u.right]),cast_arg:u=>(0,d.show)([u.expr,u.asKw,u.dataType,u.format]),cast_format:u=>(0,d.show)([u.formatKw,u.string,u.timezone]),cast_format_timezone:u=>(0,d.show)([u.atTimeZoneKw,u.timezone]),row_constructor:u=>(0,d.show)([u.rowKw,u.row]),array_constructor:u=>(0,d.show)([u.arrayKw,u.expr]),raise_expr:u=>(0,d.show)([u.raiseKw,u.args]),raise_expr_type:u=>(0,d.show)(u.typeKw),extract_expr:u=>(0,d.show)([u.extractKw,u.args]),extract_from:u=>(0,d.show)([u.unit,u.fromKw,u.expr]),week_expr:u=>(0,d.show)([u.weekKw,u.args]),filter_arg:u=>(0,d.show)([u.filterKw,u.where]),over_arg:u=>(0,d.show)([u.overKw,u.window]),having_arg:u=>(0,d.show)([u.havingKw,u.minMaxKw,u.expr]),between_expr:u=>(0,d.show)([u.left,u.betweenKw,u.begin,u.andKw,u.end]),case_expr:u=>(0,d.show)([u.caseKw,u.expr,u.clauses,u.endKw]),case_when:u=>(0,d.show)([u.whenKw,u.condition,u.thenKw,u.result]),case_else:u=>(0,d.show)([u.elseKw,u.result]),interval_expr:u=>(0,d.show)([u.intervalKw,u.expr,u.unit]),interval_unit_range:u=>(0,d.show)([u.fromUnit,u.toKw,u.toUnit]),interval_unit:u=>(0,d.show)([u.unitKw]),typed_expr:u=>(0,d.show)([u.dataType,u.expr]),array_expr:u=>(0,d.show)(["[",u.expr,"]"]),struct_expr:u=>(0,d.show)(["(",u.expr,")"]),quantifier_expr:u=>(0,d.show)([u.quantifierKw,u.expr]),full_text_match_expr:u=>(0,d.show)([u.matchKw,u.columns,u.againstKw,u.args]),full_text_match_args:u=>(0,d.show)([u.expr,u.modifier]),member_expr:u=>(0,d.show)([u.object,u.property],u.property.type==="array_subscript"?"":"."),bigquery_quoted_member_expr:u=>(0,d.show)(["`",u.expr,"`"]),array_subscript:u=>(0,d.show)(["[",u.expr,"]"]),array_subscript_specifier:u=>(0,d.show)([u.specifierKw,u.args]),array_slice_specifier:u=>(0,d.show)([u.from,":",u.to]),string_with_charset:u=>"_"+u.charset+(0,d.show)(u.string),datetime_literal:u=>(0,d.show)([u.datetimeKw,u.string]),date_literal:u=>(0,d.show)([u.dateKw,u.string]),time_literal:u=>(0,d.show)([u.timeKw,u.string]),timestamp_literal:u=>(0,d.show)([u.timestampKw,u.string]),json_literal:u=>(0,d.show)([u.jsonKw,u.string]),jsonb_literal:u=>(0,d.show)([u.jsonbKw,u.string]),numeric_literal:u=>(0,d.show)([u.numericKw,u.string]),bignumeric_literal:u=>(0,d.show)([u.bignumericKw,u.string]),interval_literal:u=>(0,d.show)([u.intervalKw,u.string]),identifier:u=>u.text,string_literal:u=>u.text,number_literal:u=>u.text,blob_literal:u=>u.text,boolean_literal:u=>(0,d.show)(u.valueKw),null_literal:u=>(0,d.show)(u.nullKw),variable:u=>u.text,parameter:u=>u.text},sp}var np={},px;function vve(){if(px)return np;px=1,Object.defineProperty(np,"__esModule",{value:!0}),np.functionMap=void 0;const d=Wt();return np.functionMap={create_function_stmt:u=>(0,d.show)([u.createKw,u.orReplaceKw,u.temporaryKw,u.tableKw,u.functionKw,u.ifNotExistsKw,u.name,u.params,u.clauses]),function_signature:u=>(0,d.show)([u.name,u.params]),function_param:u=>(0,d.show)([u.mode,u.name,u.dataType,u.default]),function_param_default:u=>(0,d.show)([u.operator,u.expr]),return_clause:u=>(0,d.show)([u.returnKw,u.expr]),dynamically_loaded_function:u=>(0,d.show)([u.objectFile,",",u.symbol]),function_window_clause:u=>(0,d.show)([u.windowKw]),function_behavior_clause:u=>(0,d.show)([u.behaviorKw]),function_security_clause:u=>(0,d.show)([u.externalKw,u.securityKw]),function_cost_clause:u=>(0,d.show)([u.costKw,u.cost]),function_rows_clause:u=>(0,d.show)([u.rowsKw,u.rows]),function_support_clause:u=>(0,d.show)([u.supportKw,u.name]),function_transform_clause:u=>(0,d.show)([u.transformKw,u.types]),transform_type:u=>(0,d.show)([u.forTypeKw,u.dataType]),set_parameter_clause:u=>(0,d.show)([u.setKw,u.name,u.operator,u.value]),set_parameter_from_current_clause:u=>(0,d.show)([u.setKw,u.name,u.fromCurrentKw]),reset_parameter_clause:u=>(0,d.show)([u.resetKw,u.name]),reset_all_parameters_clause:u=>(0,d.show)([u.resetAllKw]),drop_function_stmt:u=>(0,d.show)([u.dropKw,u.tableKw,u.functionKw,u.ifExistsKw,u.name,u.params,u.behaviorKw]),alter_function_stmt:u=>(0,d.show)([u.alterKw,u.functionKw,u.name,u.params,u.actions,u.behaviorKw])},np}var ap={},fx;function Eve(){if(fx)return ap;fx=1,Object.defineProperty(ap,"__esModule",{value:!0}),ap.indexMap=void 0;const d=Wt();return ap.indexMap={create_index_stmt:u=>(0,d.show)([u.createKw,u.orReplaceKw,u.indexTypeKw,u.indexKw,u.concurrentlyKw,u.ifNotExistsKw,u.name,u.onKw,u.table,u.using,u.columns,u.clauses]),verbose_all_columns:u=>(0,d.show)(u.allColumnsKw),index_specification:u=>(0,d.show)([u.expr,u.opclass,u.direction,u.nullHandlingKw]),index_include_clause:u=>(0,d.show)([u.includeKw,u.columns]),index_nulls_distinct_clause:u=>(0,d.show)([u.nullsDistinctKw]),index_nulls_not_distinct_clause:u=>(0,d.show)([u.nullsNotDistinctKw]),drop_index_stmt:u=>(0,d.show)([u.dropKw,u.indexTypeKw,u.indexKw,u.concurrentlyKw,u.ifExistsKw,u.indexes,u.onKw,u.table,u.behaviorKw]),alter_index_stmt:u=>(0,d.show)([u.alterKw,u.indexKw,u.ifExistsKw,u.index,u.action]),alter_index_all_in_tablespace_stmt:u=>(0,d.show)([u.alterIndexKw,u.allInTablespaceKw,u.tablespace,u.ownedBy,u.action]),reindex_stmt:u=>(0,d.show)([u.reindexKw,u.options,u.targetKw,u.concurrentlyKw,u.name]),reindex_option_concurrently:u=>(0,d.show)([u.concurrentlyKw,u.value]),reindex_option_tablespace:u=>(0,d.show)([u.tablespaceKw,u.name]),reindex_option_verbose:u=>(0,d.show)([u.verboseKw,u.value])},ap}var op={},hx;function Tve(){if(hx)return op;hx=1,Object.defineProperty(op,"__esModule",{value:!0}),op.insertMap=void 0;const d=Wt();return op.insertMap={insert_stmt:u=>(0,d.show)(u.clauses),insert_clause:u=>(0,d.show)([u.insertKw,u.modifiers,u.orAction,u.intoKw,u.table,u.columns]),or_alternate_action:u=>(0,d.show)([u.orKw,u.actionKw]),values_clause:u=>(0,d.show)([u.valuesKw,u.values]),default_values:u=>(0,d.show)(u.defaultValuesKw),default:u=>(0,d.show)(u.defaultKw),overriding_clause:u=>(0,d.show)(u.overridingKw),upsert_clause:u=>(0,d.show)([u.onConflictKw,u.conflictTarget,u.where,u.doKw,u.action]),conflict_target_on_constraint:u=>(0,d.show)([u.onConstraintKw,u.constraint]),upsert_action_nothing:u=>(0,d.show)(u.nothingKw),upsert_action_update:u=>(0,d.show)([u.updateKw,u.set,u.where]),row_alias_clause:u=>(0,d.show)([u.asKw,u.rowAlias,u.columnAliases]),on_duplicate_key_update_clause:u=>(0,d.show)([u.onDuplicateKeyUpdateKw,u.assignments])},op}var lp={},yx;function Ive(){if(yx)return lp;yx=1,Object.defineProperty(lp,"__esModule",{value:!0}),lp.mergeMap=void 0;const d=Wt();return lp.mergeMap={merge_stmt:u=>(0,d.show)(u.clauses),merge_clause:u=>(0,d.show)([u.mergeKw,u.intoKw,u.target,u.usingKw,u.source,u.onKw,u.condition]),merge_when_clause:u=>(0,d.show)([u.whenKw,u.matchedKw,u.byKw,u.condition,u.thenKw,u.action]),merge_when_condition:u=>(0,d.show)([u.andKw,u.expr]),merge_action_do_nothing:u=>(0,d.show)(u.doNothingKw),merge_action_delete:u=>(0,d.show)([u.deleteKw]),merge_action_insert:u=>(0,d.show)([u.insertKw,u.columns,u.clauses]),merge_action_update:u=>(0,d.show)([u.updateKw,u.set]),merge_action_insert_row_clause:u=>(0,d.show)(u.rowKw)},lp}var dp={},mx;function Ave(){if(mx)return dp;mx=1,Object.defineProperty(dp,"__esModule",{value:!0}),dp.policyMap=void 0;const d=Wt();return dp.policyMap={create_policy_stmt:u=>(0,d.show)([u.createPolicyKw,u.name,u.onKw,u.table,u.clauses]),policy_permissive_clause:u=>(0,d.show)([u.asKw,u.permissiveKw]),policy_restrictive_clause:u=>(0,d.show)([u.asKw,u.restrictiveKw]),policy_command_clause:u=>(0,d.show)([u.forKw,u.commandKw]),policy_roles_clause:u=>(0,d.show)([u.toKw,u.roles]),policy_using_clause:u=>(0,d.show)([u.usingKw,u.expr]),policy_check_clause:u=>(0,d.show)([u.withKw,u.checkKw,u.expr]),alter_policy_stmt:u=>(0,d.show)([u.alterPolicyKw,u.name,u.onKw,u.table,u.actions]),drop_policy_stmt:u=>(0,d.show)([u.dropPolicyKw,u.ifExistsKw,u.name,u.onKw,u.table,u.behaviorKw])},dp}var up={},vx;function bve(){if(vx)return up;vx=1,Object.defineProperty(up,"__esModule",{value:!0}),up.preparedStatementsMap=void 0;const d=Wt();return up.preparedStatementsMap={execute_stmt:u=>(0,d.show)([u.executeKw,u.immediateKw,u.expr,u.into,u.using]),execute_into_clause:u=>(0,d.show)([u.intoKw,u.variables]),execute_using_clause:u=>(0,d.show)([u.usingKw,u.values])},up}var cp={},Ex;function wve(){if(Ex)return cp;Ex=1,Object.defineProperty(cp,"__esModule",{value:!0}),cp.proceduralLanguageMap=void 0;const d=Wt();return cp.proceduralLanguageMap={labeled_stmt:u=>(0,d.show)([u.beginLabel,":",u.statement,u.endLabel]),block_stmt:u=>(0,d.show)([u.beginKw,u.atomicKw,u.program,u.exception,u.endKw]),exception_clause:u=>(0,d.show)([u.exceptionKw,u.whenKw,u.condition,u.thenKw,u.program]),error_category:u=>(0,d.show)(u.errorKw),declare_stmt:u=>(0,d.show)([u.declareKw,u.names,u.dataType,u.default]),declare_default:u=>(0,d.show)([u.defaultKw,u.expr]),set_stmt:u=>(0,d.show)([u.setKw,u.assignments]),if_stmt:u=>(0,d.show)([u.clauses,u.endIfKw]),if_clause:u=>(0,d.show)([u.ifKw,u.condition,u.thenKw,u.consequent]),elseif_clause:u=>(0,d.show)([u.elseifKw,u.condition,u.thenKw,u.consequent]),else_clause:u=>(0,d.show)([u.elseKw,u.consequent]),case_stmt:u=>(0,d.show)([u.caseKw,u.expr,u.clauses,u.endCaseKw]),loop_stmt:u=>(0,d.show)([u.loopKw,u.body,u.endLoopKw]),repeat_stmt:u=>(0,d.show)([u.repeatKw,u.body,u.untilKw,u.condition,u.endRepeatKw]),while_stmt:u=>(0,d.show)([u.whileKw,u.condition,u.doKw,u.body,u.endWhileKw]),for_stmt:u=>(0,d.show)([u.forKw,u.left,u.inKw,u.right,u.doKw,u.body,u.endForKw]),break_stmt:u=>(0,d.show)([u.breakKw,u.label]),continue_stmt:u=>(0,d.show)([u.continueKw,u.label]),call_stmt:u=>(0,d.show)([u.callKw,u.func]),return_stmt:u=>(0,d.show)([u.returnKw,u.expr]),raise_stmt:u=>(0,d.show)([u.raiseKw,u.message]),raise_message:u=>(0,d.show)([u.usingMessageKw,"=",u.string])},cp}var pp={},Tx;function Rve(){if(Tx)return pp;Tx=1,Object.defineProperty(pp,"__esModule",{value:!0}),pp.procedureMap=void 0;const d=Wt();return pp.procedureMap={create_procedure_stmt:u=>(0,d.show)([u.createKw,u.orReplaceKw,u.procedureKw,u.ifNotExistsKw,u.name,u.params,u.clauses]),drop_procedure_stmt:u=>(0,d.show)([u.dropKw,u.procedureKw,u.ifExistsKw,u.name,u.params,u.behaviorKw]),alter_procedure_stmt:u=>(0,d.show)([u.alterKw,u.procedureKw,u.name,u.params,u.actions,u.behaviorKw])},pp}var fp={},Ix;function _ve(){if(Ix)return fp;Ix=1,Object.defineProperty(fp,"__esModule",{value:!0}),fp.procClauseMap=void 0;const d=Wt();return fp.procClauseMap={returns_clause:u=>(0,d.show)([u.returnsKw,u.dataType]),determinism_clause:u=>(0,d.show)([u.deterministicKw]),language_clause:u=>(0,d.show)([u.languageKw,u.name]),as_clause:u=>(0,d.show)([u.asKw,u.expr]),with_connection_clause:u=>(0,d.show)([u.withConnectionKw,u.connection])},fp}var hp={},Ax;function gve(){if(Ax)return hp;Ax=1,Object.defineProperty(hp,"__esModule",{value:!0}),hp.roleMap=void 0;const d=Wt();return hp.roleMap={create_role_stmt:u=>(0,d.show)([u.createRoleKw,u.name,u.withKw,u.options]),role_option_keyword:u=>(0,d.show)(u.kw),role_option_connection_limit:u=>(0,d.show)([u.connectionLimitKw,u.limit]),role_option_password:u=>(0,d.show)([u.encryptedKw,u.passwordKw,u.password]),role_option_valid_until:u=>(0,d.show)([u.validUntilKw,u.timestamp]),role_option_in_role:u=>(0,d.show)([u.inRoleKw,u.names]),role_option_role:u=>(0,d.show)([u.roleKw,u.names]),role_option_admin:u=>(0,d.show)([u.adminKw,u.names]),role_option_sysid:u=>(0,d.show)([u.sysIdKw,u.sysId]),alter_role_stmt:u=>(0,d.show)([u.alterRoleKw,u.name,u.database,u.action]),in_database_clause:u=>(0,d.show)([u.inDatabaseKw,u.name]),drop_role_stmt:u=>(0,d.show)([u.dropRoleKw,u.ifExistsKw,u.names]),set_role_stmt:u=>(0,d.show)([u.setKw,u.scopeKw,u.roleKw,u.name]),reset_role_stmt:u=>(0,d.show)([u.resetRoleKw])},hp}var yp={},bx;function Dve(){if(bx)return yp;bx=1,Object.defineProperty(yp,"__esModule",{value:!0}),yp.schemaMap=void 0;const d=Wt();return yp.schemaMap={create_schema_stmt:u=>(0,d.show)([u.createSchemaKw,u.ifNotExistsKw,u.name,u.clauses,u.statements]),create_schema_authorization_clause:u=>(0,d.show)([u.authorizationKw,u.role]),drop_schema_stmt:u=>(0,d.show)([u.dropSchemaKw,u.ifExistsKw,u.schemas,u.behaviorKw]),alter_schema_stmt:u=>(0,d.show)([u.alterSchemaKw,u.ifExistsKw,u.name,u.actions])},yp}var mp={},wx;function Ove(){if(wx)return mp;wx=1,Object.defineProperty(mp,"__esModule",{value:!0}),mp.selectMap=void 0;const d=Wt();return mp.selectMap={compound_select_stmt:u=>(0,d.show)([u.left,u.operator,u.right]),select_stmt:u=>(0,d.show)(u.clauses),with_clause:u=>(0,d.show)([u.withKw,u.recursiveKw,u.tables]),common_table_expr:u=>(0,d.show)([u.table,u.columns,u.asKw,u.materializedKw,u.expr,u.search,u.cycle]),cte_search_clause:u=>(0,d.show)([u.searchKw,u.columns,u.setKw,u.resultColumn]),cte_cycle_clause:u=>(0,d.show)([u.cycleKw,u.columns,u.setKw,u.resultColumn,u.values,u.usingKw,u.pathColumn]),cte_cycle_clause_values:u=>(0,d.show)([u.toKw,u.markValue,u.defaultKw,u.defaultValue]),select_clause:u=>(0,d.show)([u.selectKw,u.modifiers,u.columns]),select_all:u=>(0,d.show)(u.allKw),select_distinct:u=>(0,d.show)(u.distinctKw),select_distinct_on:u=>(0,d.show)([u.distinctOnKw,u.columns]),select_as_struct:u=>(0,d.show)(u.asStructKw),select_as_value:u=>(0,d.show)(u.asValueKw),except_columns:u=>(0,d.show)([u.expr,u.exceptKw,u.columns]),replace_columns:u=>(0,d.show)([u.expr,u.replaceKw,u.columns]),from_clause:u=>(0,d.show)([u.fromKw,u.expr]),dual_table:u=>(0,d.show)(u.dualKw),lateral_derived_table:u=>(0,d.show)([u.lateralKw,u.expr]),partitioned_table:u=>(0,d.show)([u.table,u.partitionKw,u.partitions]),indexed_table:u=>(0,d.show)([u.table,u.indexedByKw,u.index]),not_indexed_table:u=>(0,d.show)([u.table,u.notIndexedKw]),with_ordinality_expr:u=>(0,d.show)([u.expr,u.withOrdinalityKw]),table_with_inheritance:u=>(0,d.show)([u.table,"*"]),table_without_inheritance:u=>(0,d.show)([u.onlyKw,u.table]),func_call_with_column_definitions:u=>(0,d.show)([u.funcCall,u.asKw,u.columns]),rows_from_expr:u=>(0,d.show)([u.rowsFromKw,u.expr]),unnest_expr:u=>(0,d.show)([u.unnestKw,u.expr]),unnest_with_offset_expr:u=>(0,d.show)([u.unnest,u.withOffsetKw]),join_expr:u=>(0,d.show)([u.left,u.operator,u.right,u.specification]),join_on_specification:u=>(0,d.show)([u.onKw,u.expr]),join_using_specification:u=>(0,d.show)([u.usingKw,u.expr]),pivot_expr:u=>(0,d.show)([u.left,u.pivotKw,u.args]),pivot_for_in:u=>(0,d.show)([u.aggregations,u.forKw,u.inputColumn,u.inKw,u.pivotColumns]),unpivot_expr:u=>(0,d.show)([u.left,u.unpivotKw,u.nullHandlingKw,u.args]),unpivot_for_in:u=>(0,d.show)([u.valuesColumn,u.forKw,u.nameColumn,u.inKw,u.unpivotColumns]),tablesample_expr:u=>(0,d.show)([u.left,u.tablesampleKw,u.method,u.args,u.repeatable]),tablesample_method:u=>(0,d.show)(u.methodKw),tablesample_percent:u=>(0,d.show)([u.percent,u.percentKw]),tablesample_repeatable:u=>(0,d.show)([u.repeatableKw,u.seed]),for_system_time_as_of_expr:u=>(0,d.show)([u.left,u.forSystemTimeAsOfKw,u.expr]),sort_specification:u=>(0,d.show)([u.expr,u.direction,u.nullHandlingKw]),sort_direction_asc:u=>(0,d.show)(u.ascKw),sort_direction_desc:u=>(0,d.show)(u.descKw),sort_direction_using_operator:u=>(0,d.show)([u.usingKw,u.operator]),where_clause:u=>(0,d.show)([u.whereKw,u.expr]),group_by_clause:u=>(0,d.show)([u.groupByKw,u.distinctKw,u.columns,u.withRollupKw]),group_by_rollup:u=>(0,d.show)([u.rollupKw,u.columns]),group_by_cube:u=>(0,d.show)([u.cubeKw,u.columns]),group_by_grouping_sets:u=>(0,d.show)([u.groupingSetsKw,u.columns]),group_by_all:u=>(0,d.show)([u.allKw]),having_clause:u=>(0,d.show)([u.havingKw,u.expr]),qualify_clause:u=>(0,d.show)([u.qualifyKw,u.expr]),order_by_clause:u=>(0,d.show)([u.orderByKw,u.specifications,u.withRollupKw]),partition_by_clause:u=>(0,d.show)([u.partitionByKw,u.specifications]),window_clause:u=>(0,d.show)([u.windowKw,u.namedWindows]),named_window:u=>(0,d.show)([u.name,u.asKw,u.window]),window_definition:u=>(0,d.show)([u.baseWindowName,u.partitionBy,u.orderBy,u.frame]),limit_clause:u=>u.offsetKw?(0,d.show)([u.limitKw,u.count,u.offsetKw,u.offset,u.rowsExamined]):u.offset?(0,d.show)([u.limitKw,u.offset,",",u.count,u.rowsExamined]):(0,d.show)([u.limitKw,u.count,u.rowsExamined]),limit_all:u=>(0,d.show)(u.allKw),limit_rows_examined:u=>(0,d.show)([u.rowsExaminedKw,u.count]),offset_clause:u=>(0,d.show)([u.offsetKw,u.offset,u.rowsKw]),fetch_clause:u=>(0,d.show)([u.fetchKw,u.count,u.rowsKw,u.withTiesKw]),into_table_clause:u=>(0,d.show)([u.intoKw,u.kind,u.tableKw,u.name]),into_variables_clause:u=>(0,d.show)([u.intoKw,u.variables]),into_dumpfile_clause:u=>(0,d.show)([u.intoDumpfileKw,u.filename]),into_outfile_clause:u=>(0,d.show)([u.intoOutfileKw,u.filename,u.charset,u.fields,u.lines]),outfile_fields:u=>(0,d.show)([u.fieldsKw,u.options]),outfile_lines:u=>(0,d.show)([u.linesKw,u.options]),outfile_option_character_set:u=>(0,d.show)([u.characterSetKw,u.value]),outfile_option_enclosed_by:u=>(0,d.show)([u.optionallyKw,u.enclosedByKw,u.value]),outfile_option_escaped_by:u=>(0,d.show)([u.escapedByKw,u.value]),outfile_option_starting_by:u=>(0,d.show)([u.startingByKw,u.value]),outfile_option_terminated_by:u=>(0,d.show)([u.terminatedByKw,u.value]),for_clause:u=>(0,d.show)([u.forKw,u.lockStrengthKw,u.tables,u.waitingKw]),for_clause_tables:u=>(0,d.show)([u.ofKw,u.tables]),lock_in_share_mode_clause:u=>(0,d.show)(u.lockInShareModeKw),table_clause:u=>(0,d.show)([u.tableKw,u.table])},mp}var vp={},Rx;function Cve(){if(Rx)return vp;Rx=1,Object.defineProperty(vp,"__esModule",{value:!0}),vp.sequenceMap=void 0;const d=Wt();return vp.sequenceMap={create_sequence_stmt:u=>(0,d.show)([u.createKw,u.kind,u.sequenceKw,u.ifNotExistsKw,u.name,u.options]),sequence_option_list:u=>(0,d.show)(u.options),sequence_option_as_type:u=>(0,d.show)([u.asKw,u.dataType]),sequence_option_increment:u=>(0,d.show)([u.incrementKw,u.byKw,u.value]),sequence_option_start:u=>(0,d.show)([u.startKw,u.withKw,u.value]),sequence_option_restart:u=>(0,d.show)([u.restartKw,u.withKw,u.value]),sequence_option_minvalue:u=>(0,d.show)([u.minvalueKw,u.value]),sequence_option_maxvalue:u=>(0,d.show)([u.maxvalueKw,u.value]),sequence_option_no_minvalue:u=>(0,d.show)(u.noMinvalueKw),sequence_option_no_maxvalue:u=>(0,d.show)(u.noMaxvalueKw),sequence_option_cache:u=>(0,d.show)([u.cacheKw,u.value]),sequence_option_cycle:u=>(0,d.show)(u.cycleKw),sequence_option_no_cycle:u=>(0,d.show)(u.noCycleKw),sequence_option_owned_by:u=>(0,d.show)([u.ownedByKw,u.owner]),alter_sequence_stmt:u=>(0,d.show)([u.alterKw,u.sequenceKw,u.ifExistsKw,u.sequence,u.actions]),drop_sequence_stmt:u=>(0,d.show)([u.dropKw,u.sequenceKw,u.ifExistsKw,u.sequences,u.behaviorKw])},vp}var Ep={},_x;function $ve(){if(_x)return Ep;_x=1,Object.defineProperty(Ep,"__esModule",{value:!0}),Ep.typeMap=void 0;const d=Wt();return Ep.typeMap={create_type_stmt:u=>(0,d.show)([u.createTypeKw,u.name,u.definition]),composite_type_definition:u=>(0,d.show)([u.asKw,u.columns]),enum_type_definition:u=>(0,d.show)([u.asEnumKw,u.values]),alter_type_stmt:u=>(0,d.show)([u.alterTypeKw,u.name,u.actions]),drop_type_stmt:u=>(0,d.show)([u.dropTypeKw,u.ifExistsKw,u.types,u.behaviorKw])},Ep}var Tp={},gx;function Pve(){if(gx)return Tp;gx=1,Object.defineProperty(Tp,"__esModule",{value:!0}),Tp.transactionMap=void 0;const d=Wt();return Tp.transactionMap={start_transaction_stmt:u=>(0,d.show)([u.startKw,u.behaviorKw,u.transactionKw,u.modes]),commit_transaction_stmt:u=>(0,d.show)([u.commitKw,u.transactionKw,u.chain]),rollback_transaction_stmt:u=>(0,d.show)([u.rollbackKw,u.transactionKw,u.savepoint,u.chain]),rollback_to_savepoint:u=>(0,d.show)([u.toKw,u.savepointKw,u.savepoint]),savepoint_stmt:u=>(0,d.show)([u.savepointKw,u.savepoint]),release_savepoint_stmt:u=>(0,d.show)([u.releaseKw,u.savepointKw,u.savepoint]),transaction_chain_clause:u=>(0,d.show)([u.andChainKw]),transaction_no_chain_clause:u=>(0,d.show)([u.andNoChainKw]),transaction_mode_deferrable:u=>(0,d.show)([u.deferrableKw]),transaction_mode_not_deferrable:u=>(0,d.show)([u.notDeferrableKw]),transaction_mode_read_write:u=>(0,d.show)([u.readWriteKw]),transaction_mode_read_only:u=>(0,d.show)([u.readOnlyKw]),transaction_mode_isolation_level:u=>(0,d.show)([u.isolationLevelKw,u.levelKw])},Tp}var Ip={},Dx;function Nve(){if(Dx)return Ip;Dx=1,Object.defineProperty(Ip,"__esModule",{value:!0}),Ip.triggerMap=void 0;const d=Wt();return Ip.triggerMap={create_trigger_stmt:u=>(0,d.show)([u.createKw,u.orReplaceKw,u.kind,u.triggerKw,u.ifNotExistsKw,u.name,u.timeKw,u.event,u.target,u.clauses,u.body]),trigger_event:u=>(0,d.show)([u.eventKw,u.ofKw,u.columns]),trigger_target:u=>(0,d.show)([u.onKw,u.table]),for_each_clause:u=>(0,d.show)([u.forEachKw,u.itemKw]),when_clause:u=>(0,d.show)([u.whenKw,u.expr]),from_referenced_table_clause:u=>(0,d.show)([u.fromKw,u.table]),trigger_timing_clause:u=>(0,d.show)([u.timingKw]),trigger_referencing_clause:u=>(0,d.show)([u.referencingKw,u.transitions]),trigger_transition:u=>(0,d.show)([u.oldOrNewKw,u.rowOrTableKw,u.asKw,u.name]),execute_clause:u=>(0,d.show)([u.executeKw,u.functionKw,u.name,u.args]),alter_trigger_stmt:u=>(0,d.show)([u.alterTriggerKw,u.trigger,u.target,u.action]),drop_trigger_stmt:u=>(0,d.show)([u.dropTriggerKw,u.ifExistsKw,u.trigger,u.target,u.behaviorKw])},Ip}var Ap={},Ox;function Vve(){if(Ox)return Ap;Ox=1,Object.defineProperty(Ap,"__esModule",{value:!0}),Ap.truncateMap=void 0;const d=Wt();return Ap.truncateMap={truncate_stmt:u=>(0,d.show)([u.truncateKw,u.tableKw,u.tables,u.restartOrContinueKw,u.behaviorKw])},Ap}var bp={},Cx;function Lve(){if(Cx)return bp;Cx=1,Object.defineProperty(bp,"__esModule",{value:!0}),bp.updateMap=void 0;const d=Wt();return bp.updateMap={update_stmt:u=>(0,d.show)(u.clauses),update_clause:u=>(0,d.show)([u.updateKw,u.modifiers,u.orAction,u.tables]),set_clause:u=>(0,d.show)([u.setKw,u.assignments]),column_assignment:u=>(0,d.show)([u.column,"=",u.expr])},bp}var wp={},$x;function Mve(){if($x)return wp;$x=1,Object.defineProperty(wp,"__esModule",{value:!0}),wp.viewMap=void 0;const d=Wt();return wp.viewMap={create_view_stmt:u=>(0,d.show)([u.createKw,u.orReplaceKw,u.kinds,u.viewKw,u.ifNotExistsKw,u.name,u.columns,u.clauses]),with_check_option_clause:u=>(0,d.show)([u.withKw,u.levelKw,u.checkOptionKw]),as_replica_of_clause:u=>(0,d.show)([u.asReplicaOfKw,u.view]),drop_view_stmt:u=>(0,d.show)([u.dropKw,u.kind,u.viewKw,u.ifExistsKw,u.views,u.behaviorKw]),alter_view_stmt:u=>(0,d.show)([u.alterKw,u.kind,u.viewKw,u.ifExistsKw,u.name,u.columns,u.actions]),refresh_materialized_view_stmt:u=>(0,d.show)([u.refreshMaterializedViewKw,u.concurrentlyKw,u.name,u.clauses])},wp}var Rp={},Px;function Bve(){if(Px)return Rp;Px=1,Object.defineProperty(Rp,"__esModule",{value:!0}),Rp.frameMap=void 0;const d=Wt();return Rp.frameMap={frame_clause:u=>(0,d.show)([u.unitKw,u.extent,u.exclusion]),frame_between:u=>(0,d.show)([u.betweenKw,u.begin,u.andKw,u.end]),frame_bound_current_row:u=>(0,d.show)(u.currentRowKw),frame_bound_preceding:u=>(0,d.show)([u.expr,u.precedingKw]),frame_bound_following:u=>(0,d.show)([u.expr,u.followingKw]),frame_unbounded:u=>(0,d.show)(u.unboundedKw),frame_exclusion:u=>(0,d.show)([u.excludeKw,u.kindKw])},Rp}var _p={},Nx;function Uve(){if(Nx)return _p;Nx=1,Object.defineProperty(_p,"__esModule",{value:!0}),_p.renameTableMap=void 0;const d=Wt();return _p.renameTableMap={rename_table_stmt:u=>(0,d.show)([u.renameKw,u.tableKw,u.actions]),rename_action:u=>(0,d.show)([u.from,u.toKw,u.to])},_p}var gp={},Vx;function jve(){if(Vx)return gp;Vx=1,Object.defineProperty(gp,"__esModule",{value:!0}),gp.otherClausesMap=void 0;const d=Wt();return gp.otherClausesMap={returning_clause:u=>(0,d.show)([u.returningKw,u.columns]),where_current_of_clause:u=>(0,d.show)([u.whereCurrentOfKw,u.cursor]),cluster_by_clause:u=>(0,d.show)([u.clusterByKw,u.columns])},gp}var Dp={},Lx;function xve(){if(Lx)return Dp;Lx=1,Object.defineProperty(Dp,"__esModule",{value:!0}),Dp.bigqueryMap=void 0;const d=Wt();return Dp.bigqueryMap={bigquery_options:u=>(0,d.show)([u.optionsKw,u.options]),bigquery_option_default_collate:u=>(0,d.show)([u.defaultCollateKw,u.collation]),create_capacity_stmt:u=>(0,d.show)([u.createKw,u.capacityKw,u.name,u.options]),drop_capacity_stmt:u=>(0,d.show)([u.dropKw,u.capacityKw,u.ifExistsKw,u.name]),create_reservation_stmt:u=>(0,d.show)([u.createKw,u.reservationKw,u.name,u.options]),drop_reservation_stmt:u=>(0,d.show)([u.dropKw,u.reservationKw,u.ifExistsKw,u.name]),create_assignment_stmt:u=>(0,d.show)([u.createKw,u.assignmentKw,u.name,u.options]),drop_assignment_stmt:u=>(0,d.show)([u.dropKw,u.assignmentKw,u.ifExistsKw,u.name]),create_row_access_policy_stmt:u=>(0,d.show)([u.createKw,u.orReplaceKw,u.rowAccessPolicyKw,u.ifNotExistsKw,u.name,u.onKw,u.table,u.clauses]),row_access_policy_grant_clause:u=>(0,d.show)([u.grantToKw,u.grantees]),row_access_policy_filter_clause:u=>(0,d.show)([u.filterUsingKw,u.expr]),drop_row_access_policy_stmt:u=>(0,d.show)([u.dropKw,u.allKw,u.rowAccessPolicyKw,u.ifExistsKw,u.name,u.onKw,u.table]),alter_organization_stmt:u=>(0,d.show)([u.alterOrganizationKw,u.actions]),alter_project_stmt:u=>(0,d.show)([u.alterProjectKw,u.name,u.actions]),alter_bi_capacity_stmt:u=>(0,d.show)([u.alterBiCapacityKw,u.name,u.actions]),alter_capacity_stmt:u=>(0,d.show)([u.alterCapacityKw,u.name,u.actions]),alter_reservation_stmt:u=>(0,d.show)([u.alterReservationKw,u.name,u.actions]),assert_stmt:u=>(0,d.show)([u.assertKw,u.expr,u.as]),export_data_stmt:u=>(0,d.show)([u.exportDataKw,u.withConnection,u.options,u.as]),load_data_stmt:u=>(0,d.show)([u.loadDataKw,u.intoKw,u.table,u.columns,u.clauses]),from_files_options:u=>(0,d.show)([u.fromFilesKw,u.options])},Dp}var Op={},Mx;function Fve(){if(Mx)return Op;Mx=1,Object.defineProperty(Op,"__esModule",{value:!0}),Op.postgresqlMap=void 0;const d=Wt();return Op.postgresqlMap={postgresql_operator_expr:u=>(0,d.show)([u.operatorKw,u.expr]),postgresql_operator:u=>(0,d.show)(u.operator),postgresql_operator_class:u=>(0,d.show)([u.name,u.options]),postgresql_options:u=>(0,d.show)([u.optionsKw,u.options]),postgresql_option_element:u=>(0,d.show)([u.name,u.value]),postgresql_with_options:u=>(0,d.show)([u.withKw,u.options])},Op}var Cp={},Bx;function Gve(){if(Bx)return Cp;Bx=1,Object.defineProperty(Cp,"__esModule",{value:!0}),Cp.sqliteMap=void 0;const d=Wt();return Cp.sqliteMap={attach_database_stmt:u=>(0,d.show)([u.attachKw,u.databaseKw,u.file,u.asKw,u.schema]),detach_database_stmt:u=>(0,d.show)([u.detachKw,u.databaseKw,u.schema]),vacuum_stmt:u=>(0,d.show)([u.vacuumKw,u.schema,u.intoKw,u.file]),pragma_stmt:u=>(0,d.show)([u.pragmaKw,u.pragma]),pragma_assignment:u=>(0,d.show)([u.name,"=",u.value]),pragma_func_call:u=>(0,d.show)([u.name,u.args])},Cp}var $p={},Ux;function Sve(){if(Ux)return $p;Ux=1,Object.defineProperty($p,"__esModule",{value:!0}),$p.mysqlMap=void 0;const d=Wt();return $p.mysqlMap={mysql_modifier:u=>(0,d.show)(u.modifierKw)},$p}var My={};Object.defineProperty(My,"__esModule",{value:!0}),My.unsupportedGrammarMap=void 0,My.unsupportedGrammarMap={unsupported_grammar_stmt:d=>d.text};var jx;function Kve(){if(jx)return qc;jx=1,Object.defineProperty(qc,"__esModule",{value:!0}),qc.transformMap=void 0;const d=sve(),u=nve(),i=ave(),a=ove(),o=lve(),p=dve(),e=uve(),y=cve(),v=pve(),E=fve(),w=hve(),A=yve(),$=mve(),V=vve(),U=Eve(),G=Tve(),K=Ive(),Z=Ave(),ie=bve(),X=wve(),ue=Rve(),re=_ve(),fe=gve(),Y=Dve(),H=Ove(),ce=Cve(),z=$ve(),oe=Pve(),we=Nve(),xe=Vve(),Ne=Lve(),$e=Mve(),Pe=Bve(),Ze=Uve(),Fe=jve(),lt=xve(),_t=Fve(),ur=Gve(),br=Sve(),xr=My;return qc.transformMap=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},a.baseMap),H.selectMap),Pe.frameMap),G.insertMap),Ne.updateMap),v.deleteMap),xe.truncateMap),K.mergeMap),p.createTableMap),o.constraintMap),u.alterTableMap),d.alterActionMap),w.dropTableMap),Ze.renameTableMap),Y.schemaMap),$e.viewMap),U.indexMap),we.triggerMap),ce.sequenceMap),z.typeMap),E.domainMap),fe.roleMap),Z.policyMap),V.functionMap),ue.procedureMap),re.procClauseMap),i.analyzeMap),A.explainMap),oe.transactionMap),y.dclMap),X.proceduralLanguageMap),ie.preparedStatementsMap),Fe.otherClausesMap),ur.sqliteMap),lt.bigqueryMap),br.mysqlMap),_t.postgresqlMap),$.exprMap),e.dataTypeMap),xr.unsupportedGrammarMap),qc}var xx;function Wt(){if(xx)return kc;xx=1,Object.defineProperty(kc,"__esModule",{value:!0}),kc.show=void 0;const d=Bc,u=Kve(),i=Ki;function a(y,v=""){return(0,i.isString)(y)?y:y instanceof Array?y.filter(i.isDefined).map(E=>a(E)).join(v):[o(y.leading),e(y),o(y.trailing)].filter(i.isDefined).join("")}kc.show=a;const o=y=>{if(y)return y.map(p).join("")},p=y=>y.text,e=(0,d.cstTransformer)(u.transformMap);return kc}var By={};Object.defineProperty(By,"__esModule",{value:!0}),By.validDialectNames=void 0,By.validDialectNames={sqlite:!0,mysql:!0,mariadb:!0,bigquery:!0,postgresql:!0},function(d){var u=Ns&&Ns.__createBinding||(Object.create?function(w,A,$,V){V===void 0&&(V=$);var U=Object.getOwnPropertyDescriptor(A,$);(!U||("get"in U?!A.__esModule:U.writable||U.configurable))&&(U={enumerable:!0,get:function(){return A[$]}}),Object.defineProperty(w,V,U)}:function(w,A,$,V){V===void 0&&(V=$),w[V]=A[$]}),i=Ns&&Ns.__exportStar||function(w,A){for(var $ in w)$!=="default"&&!Object.prototype.hasOwnProperty.call(A,$)&&u(A,w,$)};Object.defineProperty(d,"__esModule",{value:!0}),d.show=d.parse=d.FormattedSyntaxError=void 0,i(Qj,d),i(K3,d),i(Bc,d),i(k3,d);var a=Sc;Object.defineProperty(d,"FormattedSyntaxError",{enumerable:!0,get:function(){return a.FormattedSyntaxError}});const o=jd,p=Wt(),e=By,y=Sc;function v(w,A){if(!A||!A.dialect)throw new Error("No SQL dialect specified.");if(!e.validDialectNames[A.dialect])throw new Error(`Unsupported dialect name: "${A.dialect}"`);try{return(0,o.parse)(w,A)}catch($){throw $ instanceof o.PeggySyntaxError?new y.FormattedSyntaxError($,w,A.filename):$}}d.parse=v;function E(w){return(0,p.show)(w)}d.show=E}(Ud);const kve=Os({__proto__:null,default:G4(Ud)},[Ud]);function Fx(d){if(!d)return!1;const u=d.owner;return d.selectedColumns.some(o=>u.duplicateColumnNames.includes(o.as))}var Uy=(d=>(d.SearchStatement="search-statement",d.NestedSearchStatement="nested-search-statement",d.DataSource="data-source",d.ColumnRef="column-ref",d.ValueRef="value-ref",d.LiteralValue="search-statement-literal-value",d.WhereStatement="where-statement",d.AggregationStatement="aggregation-statement",d.SortStatement="sort-statement",d.AllColumnsSelector="all-columns-selector",d))(Uy||{}),Gd=(d=>(d.Inner="inner",d.Left="left",d.Right="right",d.Full="full",d.Cross="cross",d.Self="self",d.Natural="natural",d))(Gd||{});class jy{constructor(u){g(this,"owner");g(this,"dataSource",null);g(this,"joinType","inner");g(this,"on",null);g(this,"as",null);this.owner=u}get type(){return"aggregation-statement"}get id(){var u;return this.type+"--"+((u=this.dataSource)==null?void 0:u.id)}get columns(){var u;return(((u=this.dataSource)==null?void 0:u.columns)||[]).map(i=>{const a=new or(this.owner);return a.source=i,a.parent=this.dataSource,a.as=i.as,a})}get isValid(){const u=this.joinType!=="cross"?!!this.on:!0;return!!this.dataSource&&!!this.as&&u}get selections(){var u;return(((u=this.dataSource)==null?void 0:u.selections)||[]).map(i=>{if(i.type==="column-ref"){const a=new or(this.owner);return a.source=i,a.parent=i.parent,a.as=i.as,a}else if(i.type==="all-columns-selector"){const a=new Sd(this.owner);return a.parent=i.parent,a}return i})}get selectedColumns(){var u;return(((u=this.dataSource)==null?void 0:u.selectedColumns)||[]).map(i=>{const a=new or(this.owner);return a.source=i,a.parent=i.parent,a.as=i.as,a})}get primaryKeys(){var u;return(((u=this.dataSource)==null?void 0:u.primaryKeys)||[]).map(i=>{const a=new or(this.owner);return a.source=i,a.parent=i.parent,a.as=i.as,a})}get primaryKey(){var i;const u=((i=this.dataSource)==null?void 0:i.primaryKey)||null;if(u){const a=new or(this.owner);return a.source=u,a.parent=u.parent,a.as=u.as,a}return null}setDataSource(u){this.dataSource=u}removeDataSource(){this.dataSource=null}editDataSource(u){this.dataSource=u}}class ml{constructor(u){g(this,"owner");g(this,"inputMap",null);g(this,"_id",N.UUID.uuid());this.owner=u}get id(){var u;return this.type+"--"+((u=this.inputMap)==null?void 0:u.id)+"--"+this._id}get type(){return"value-ref"}toQuery(){return this.inputMap?`'{{::${this.inputMap.id}}}'`:""}}var yr=(d=>(d.String="string",d.Number="number",d.Boolean="boolean",d.Null="null",d.Date="date",d))(yr||{});class Hr{constructor(u){g(this,"owner");g(this,"valueType","string");g(this,"value",null);g(this,"_id",N.UUID.uuid());this.owner=u}get type(){return"search-statement-literal-value"}get id(){return this.type+"--"+this._id}toQuery(){if(this.valueType==="string"){if(typeof this.value=="string")return`'${this.value}'`}else if(this.valueType==="number"){if(typeof this.value=="number")return`${this.value.toString()}`}else if(this.valueType==="boolean"){if(this.value===!0)return"TRUE";if(this.value===!1)return"FALSE"}else if(this.valueType==="null")return"NULL";return this.value?`'${this.value.toString()}'`:"NULL"}}var vl=(d=>(d.Like="like",d.NotLike="not-like",d.In="in",d.Equal="=",d.Between="-",d.BiggerThan=">",d.SmallerThan="<",d.BiggerThanOrEqualTo=">=",d.SmallerThanOrEqualTo="<=",d.NotEqual="!=",d))(vl||{});function Gx(d){switch(d){case"like":return"LIKE";case"not-like":return"NOT LIKE";case"in":return"IN";case"-":return"BETWEEN";default:return d}}class Sx{constructor(u,i){g(this,"owner");g(this,"parent",null);g(this,"and",[]);g(this,"or",[]);g(this,"left",null);g(this,"operator",null);g(this,"right",null);g(this,"_id",N.UUID.uuid());this.owner=u,this.parent=i||null}get type(){return"where-statement"}get isValid(){return!!this.operator&&!!this.left&&!!this.right||this.and.length>0||this.or.length>0}get id(){return this.type+"--"+this._id}removeDataSource(u){var i,a;this.left instanceof or&&((i=this.left.parent)==null?void 0:i.id)===(u==null?void 0:u.id)&&(this.left=null,this.remove()),this.right instanceof or&&((a=this.right.parent)==null?void 0:a.id)===(u==null?void 0:u.id)&&(this.right=null,this.remove()),this.and.forEach(o=>{o.removeDataSource(u)}),this.or.forEach(o=>{o.removeDataSource(u)}),this.sanitize()}toQuery(){var a,o;let u="";if(!this.isValid)return"";let i=!1;if(this.operator&&this.left&&this.right){let p="";if(this.left instanceof or){const y=this.left.as;p=((a=this.left.parent)==null?void 0:a.as)+"."+y}else this.left instanceof ml?p=this.left.toQuery():this.left instanceof Hr&&(p=this.left.toQuery());let e="";if(this.right instanceof or){const y=this.right.as;e=((o=this.right.parent)==null?void 0:o.as)+"."+y}else this.right instanceof ml?e=this.right.toQuery():this.right instanceof Hr&&(e=this.right.toQuery());u=`${p} ${Gx(this.operator)} ${e}`}else this.and.length>0&&this.and.forEach((p,e)=>{p.isValid&&(e>0&&i&&(u+=" AND "),p.and.length>0||p.or.length>0?(i=!0,u+=`(${p.toQuery()})`):(i=!0,u+=p.toQuery()))}),this.or.length>0&&(u+=this.and.length>0&&i?" OR ":"",this.or.forEach((p,e)=>{p.isValid&&(e>0&&i&&(u+=" OR "),p.and.length>0||p.or.length>0?(i=!0,u+=`(${p.toQuery()})`):(i=!0,u+=p.toQuery()))}));return u}sanitize(){var a,o;if([...this.and,...this.or].forEach(p=>{p.sanitize()}),[...((a=this.parent)==null?void 0:a.and)||[],...((o=this.parent)==null?void 0:o.or)||[]].length===1){const p=this.parent;p.left=this.left,p.operator=this.operator,p.right=this.right,p.and=this.and,p.or=this.or,this.removeFromParent(),p.sanitize()}}removeFromParent(){const u=this.parent;if((u==null?void 0:u.type)==="where-statement"){const i=u.and.includes(this),a=u.or.includes(this);if(i){const o=u.and.findIndex(p=>p===this);o!==-1&&u.and.splice(o,1)}else if(a){const o=u.or.findIndex(p=>p===this);o!==-1&&u.or.splice(o,1)}}}remove(){var u,i,a,o;if([...((u=this.parent)==null?void 0:u.and)||[],...((i=this.parent)==null?void 0:i.or)||[]].length===2){const p=this.parent;this==null||this.removeFromParent();const e=[...p.and||[],...p.or||[]][0];p.left=e.left,p.operator=e.operator,p.right=e.right,p.and=e.and,p.or=e.or,e==null||e.removeFromParent(),p.sanitize()}else if([...((a=this.parent)==null?void 0:a.and)||[],...((o=this.parent)==null?void 0:o.or)||[]].length===1){const p=this.parent;this==null||this.removeFromParent(),p==null||p.remove()}else this==null||this.removeFromParent()}}class TA{constructor(u){g(this,"owner");g(this,"statement",null);g(this,"as",null);this.owner=u}get type(){return"nested-search-statement"}get id(){var u;return this.type+"--"+(((u=this.statement)==null?void 0:u.id)||"unknown")}get isValid(){return!!this.statement&&!!this.as&&this.statement.isValid}get columns(){var u;return(((u=this.statement)==null?void 0:u.columns)||[]).map(i=>{const a=new or(this.owner);return a.source=i,a.parent=i.parent,a.as=i.as,a})}get mainPersistedEntity(){var u;return((u=this.statement)==null?void 0:u.mainPersistedEntity)||null}get selections(){var u;return(((u=this.statement)==null?void 0:u.selections)||[]).map(i=>{if(i.type==="column-ref"){const a=new or(this.owner);return a.source=i,a.parent=i.parent,a.as=i.as,a}else if(i.type==="all-columns-selector"){const a=new Sd(this.owner);return a.parent=i.parent,a}return i})}get selectedColumns(){var u;return(((u=this.statement)==null?void 0:u.selectedColumns)||[]).map(i=>{const a=new or(this.owner);return a.source=i,a.parent=i.parent,a.as=i.as,a})}get primaryKeys(){var u;return(((u=this.statement)==null?void 0:u.primaryKeys)||[]).map(i=>{const a=new or(this.owner);return a.source=i,a.parent=i.parent,a.as=i.as,a})}get primaryKey(){var i;const u=((i=this.statement)==null?void 0:i.primaryKey)||null;if(u){const a=new or(this.owner);return a.source=u,a.parent=u.parent,a.as=u.as,a}return null}toQuery(){var i;const u=((i=this.statement)==null?void 0:i.toQuery())||"";return u.endsWith(";")?u.substring(0,u.length-1):u}}var Ma=(d=>(d.Table="table",d.Query="query",d.Aggregation="aggregation",d))(Ma||{});class Es{constructor(u){g(this,"owner");g(this,"entity",null);g(this,"query",null);g(this,"aggregation",null);g(this,"sourceType","table");this.owner=u}get id(){var u,i,a;return this.type+"--"+this.sourceType+"--"+(((u=this.entity)==null?void 0:u.id)||((i=this.query)==null?void 0:i.id)||((a=this.aggregation)==null?void 0:a.id)||"unknown")}get type(){return"data-source"}get isValid(){return(!!this.entity||!!this.query||!!this.aggregation)&&!!this.as}get source(){return this.sourceType==="table"?this.entity:this.sourceType==="query"?this.query:this.sourceType==="aggregation"?this.aggregation:null}set as(u){this.sourceType==="query"&&this.source&&(this.source.as=u)}get as(){var u;return this.source&&(((u=this.source)==null?void 0:u.as)||`"${this.source.name?tu(this.source.name):""}"`)||""}get columns(){var u,i,a;if(this.sourceType==="table")return(this.entity?eu(this.entity):[]).map(p=>{const e=new or(this.owner);return e.source=p,e.parent=this,e.as=jr(p.name),e})||[];if(this.sourceType==="query"){const o=[];return(u=this.query)==null||u.selections.forEach(p=>{var e;if(p.type==="column-ref"){const y=new or(this.owner);y.source=p,y.parent=this,y.as=p.as,o.push(y)}else p.type==="all-columns-selector"&&((e=p.parent)==null?void 0:e.type)==="data-source"&&p.parent.columns.forEach(E=>{const w=new or(this.owner);w.source=E,w.parent=this,w.as=E.as,o.push(w)})}),o}else if(this.sourceType==="aggregation")return(((a=(i=this.aggregation)==null?void 0:i.dataSource)==null?void 0:a.columns)||[]).map(o=>{const p=new or(this.owner);return p.source=o,p.parent=this,p.as=o.as,p});return[]}get selections(){var u,i;return this.sourceType==="table"?this.columns:this.sourceType==="query"?((u=this.query)==null?void 0:u.selections)||[]:this.sourceType==="aggregation"?((i=this.aggregation)==null?void 0:i.selections)||[]:[]}get mainPersistedEntity(){var u,i,a;return this.sourceType==="table"?this.entity:this.sourceType==="query"?((u=this.query)==null?void 0:u.mainPersistedEntity)||null:this.sourceType==="aggregation"&&((a=(i=this.aggregation)==null?void 0:i.dataSource)==null?void 0:a.mainPersistedEntity)||null}get selectedColumns(){const u=[];return this.selections.forEach(i=>{var a;if(i.type==="column-ref")u.push(i);else if(i.type==="all-columns-selector"&&((a=i.parent)==null?void 0:a.type)==="data-source"){const p=i.parent.columns;u.push(...p)}}),u}get primaryKeys(){return this.columns.filter(i=>{var a,o;return((o=(a=i.property)==null?void 0:a.implements)==null?void 0:o.id)===Ee["built-in-base-entity"].BUILT_IN_PERSISTED_ENTITY_ENTITY.properties.primaryKey.id})}get primaryKey(){const u=this.mainPersistedEntity;if(u){const o=eu(u).find(p=>{var e;return((e=p.implements)==null?void 0:e.id)===Ee["built-in-base-entity"].BUILT_IN_PERSISTED_ENTITY_ENTITY.properties.primaryKey.id});if(o){const p=this.columns.find(e=>e.property===o);if(p)return p}}const i=this.primaryKeys;return i.length>0?i[0]:null}}class or{constructor(u){g(this,"owner");g(this,"source",null);g(this,"parent",null);g(this,"_id",N.UUID.uuid());g(this,"_as",null);this.owner=u}set as(u){this._as=u}get as(){var o;const u=(o=this.source)==null?void 0:o.name,i=u?jr(u):"";return this._as||i}get property(){var u,i;return((u=this.source)==null?void 0:u.type)==="column-ref"?this.source.property:((i=this.source)==null?void 0:i.type)===f.Property?this.source:null}get literalValue(){var u,i;return((u=this.source)==null?void 0:u.type)==="column-ref"?this.source.literalValue:((i=this.source)==null?void 0:i.type)==="search-statement-literal-value"?this.source:null}get type(){return"column-ref"}get id(){var u,i;return this.type+"--"+((u=this.parent)==null?void 0:u.id)+"--"+(((i=this.source)==null?void 0:i.id)||"unknown")}get isValid(){return!!this.source&&!!this.as&&(this.literalValue?!0:!!this.parent)}}class Sd{constructor(u){g(this,"owner");g(this,"parent",null);this.owner=u}get type(){return"all-columns-selector"}get id(){var u;return this.type+"--"+(((u=this.parent)==null?void 0:u.id)||"unknown")}get isValid(){return!!this.parent&&!!this.parent.as}get columns(){var u;return((u=this.parent)==null?void 0:u.columns)||[]}get selectedColumns(){return this.columns||[]}}var Kx=(d=>(d.Ascending="asc",d.Descending="desc",d))(Kx||{});class kx{constructor(u){g(this,"owner");g(this,"column",null);g(this,"direction","asc");g(this,"index",0);this.owner=u}get type(){return"sort-statement"}get isValid(){return!!this.column&&!!this.column.as&&!!this.direction}}class qx{constructor(u){g(this,"id","");g(this,"selections",[]);g(this,"from",null);g(this,"aggregations",[]);g(this,"where",null);g(this,"offset",null);g(this,"limit",null);g(this,"asList",!0);g(this,"sorting",[]);g(this,"dataSources",[]);this.id=u,this.offset=new Hr(this),this.offset.value=0,this.offset.valueType="number",this.limit=new Hr(this),this.limit.value=10,this.limit.valueType="number"}get isUntouchedEntity(){var a,o;if(!this.isValid||!this.from||!this.mainPersistedEntity||this.from.sourceType==="query"&&(!this.from.query||!((a=this.from.query.statement)!=null&&a.isUntouchedEntity))||this.validSelections.length===0||this.aggregations.some(p=>p.isValid))return!1;if(this.validSelections.length===1&&this.validSelections[0].type==="all-columns-selector"&&((o=this.validSelections[0].parent)==null?void 0:o.id)===this.from.id)return!0;let u=eu(this.mainPersistedEntity);return!!(this.validSelections.every(p=>{if(p.type!=="column-ref"||!p.property)return!1;const e=u.findIndex(E=>{var w;return E.id===((w=p.property)==null?void 0:w.id)});e!==-1&&u.splice(e,1);const y=jr(p.property.name),v=p.as;return y===v})&&u.length===0)}get usedDataSources(){const u=[];return this.from&&u.push(this.from),this.aggregations.forEach(i=>{const a=new Es(this);a.aggregation=i,a.sourceType="aggregation";const o=this.addDataSource(a);u.push(o)}),u}get type(){return"search-statement"}get mainPersistedEntity(){return this.from&&this.from.sourceType==="table"?this.from.entity:this.from&&this.from.sourceType==="query"&&this.from.query?this.from.query.mainPersistedEntity:null}get mainDatabaseEntity(){const u=this.mainPersistedEntity;return u?_S(u):null}get validSortings(){return this.sorting.filter(u=>{var i;return u.isValid&&!!((i=u.column)!=null&&i.isValid)&&!this.duplicateColumnNames.includes(u.column.as)})}get selectedColumns(){const u=[];return this.selections.forEach(i=>{if(i.type==="column-ref")u.push(i);else if(i.type==="all-columns-selector"){const a=i.selectedColumns;u.push(...a)}}),u}get validSelections(){return this.selections.filter(u=>{var i,a;return!(!u.isValid||((a=(i=u.parent)==null?void 0:i.source)==null?void 0:a.type)==="aggregation-statement"&&(!this.from||!this.from.isValid)||u.type==="all-columns-selector"&&Fx(u)||u.type==="column-ref"&&this.duplicateColumnNames.includes(u.as))})}get validSelectedColumns(){const u=[];return this.validSelections.forEach(i=>{if(i.type==="column-ref")u.push(i);else if(i.type==="all-columns-selector"){const a=i.selectedColumns;u.push(...a)}}),u}get columns(){const u=[];if(this.selections.forEach(i=>{var a;if(i.type==="column-ref")u.push(i);else if(i.type==="all-columns-selector"&&((a=i.parent)==null?void 0:a.type)==="data-source"){const p=i.parent.columns;u.push(...p)}}),this.from){const i=this.from.columns;u.push(...i)}return u}get isValid(){return!!this.from&&this.from.isValid&&!!this.validSelections.length}get primaryKeys(){return this.selectedColumns.filter(i=>{var a,o;return((o=(a=i.property)==null?void 0:a.implements)==null?void 0:o.id)===Ee["built-in-base-entity"].BUILT_IN_PERSISTED_ENTITY_ENTITY.properties.primaryKey.id})}get primaryKey(){const u=this.mainPersistedEntity;if(u){const o=eu(u).find(p=>{var e;return((e=p.implements)==null?void 0:e.id)===Ee["built-in-base-entity"].BUILT_IN_PERSISTED_ENTITY_ENTITY.properties.primaryKey.id});if(o){const p=this.selectedColumns.find(e=>e.property===o);if(p)return p}}const i=this.primaryKeys;return i.length>0?i[0]:null}get duplicateColumnNames(){const u=new Set,i=[];return this.selectedColumns.forEach(a=>{u.has(a.as)?i.push(a.as):u.add(a.as)}),i}get isOnlyAllFromSelected(){var u,i;return this.selections.length===1&&this.selections[0].type==="all-columns-selector"&&((u=this.selections[0].parent)==null?void 0:u.id)===((i=this.from)==null?void 0:i.id)}addDataSource(u){const i=this.dataSources.find(a=>a===u||a.id===u.id);return i?(i.sourceType=u.sourceType,i.entity=u.entity,i.query=u.query,i.aggregation=u.aggregation):this.dataSources.push(u),i||u}getDataSource(u){return this.dataSources.find(i=>i.id===u)||null}editDataSource(u){const i=this.dataSources.find(a=>a===u||a.id===u.id);return i&&(i.sourceType=u.sourceType,i.entity=u.entity,i.query=u.query,i.aggregation=u.aggregation),i||null}toQuery(){var i,a,o,p,e,y;if(!this.isValid)return"";let u="SELECT ";if(this.isOnlyAllFromSelected)u+="*";else{let v=!1;this.validSelections.forEach((E,w)=>{var A,$,V;switch(E.type){case"all-columns-selector":{u+=((A=E.parent)==null?void 0:A.as)+".*",v=!0;break}case"column-ref":{const U=(($=E.source)==null?void 0:$.type)==="column-ref"?E.source:E;E.parent&&(u+=E.parent.as+"."),((V=E.source)==null?void 0:V.type)==="search-statement-literal-value"?u+=E.source.toQuery():u+=U.as,u+=" AS "+E.as,v=!0;break}default:{v=!1;break}}v&&w<this.validSelections.length-1&&(u+=", ")})}if(this.from&&this.from.isValid&&(u+=" FROM ",this.from.sourceType==="table"?this.from.entity&&(u+=`"${tu((i=this.from.entity)==null?void 0:i.name)}"`):(o=(a=this.from)==null?void 0:a.query)!=null&&o.isValid&&(u+=`(${(e=(p=this.from)==null?void 0:p.query)==null?void 0:e.toQuery()}) AS ${((y=this.from)==null?void 0:y.as)||"NestedQuery"}`),this.aggregations.length>0&&this.aggregations.forEach(v=>{var w,A,$,V,U,G,K,Z;if(!v.on||!v.on.isValid||!v.dataSource||!v.dataSource.isValid)return;let E="";v.joinType==="inner"?E+="INNER JOIN ":v.joinType==="left"?E+="LEFT JOIN ":v.joinType==="right"?E+="RIGHT JOIN ":v.joinType==="full"?E+="FULL JOIN ":v.joinType==="cross"?E+="CROSS JOIN ":v.joinType==="self"?E+="SELF JOIN ":v.joinType==="natural"&&(E+="NATURAL JOIN "),((w=v.dataSource)==null?void 0:w.sourceType)==="table"?(A=v.dataSource)!=null&&A.entity&&(E+=`"${tu((V=($=v.dataSource)==null?void 0:$.entity)==null?void 0:V.name)}"`):E+=`(${(G=(U=v.dataSource)==null?void 0:U.query)==null?void 0:G.toQuery()}) AS ${(K=v.dataSource)==null?void 0:K.as}`,E+=v.on?" ON "+((Z=v.on)==null?void 0:Z.toQuery()):"",u+=" "+E})),this.where&&this.where.isValid&&this.from&&this.from.isValid&&(u+=" WHERE "+this.where.toQuery()),this.validSortings.length>0){const v=this.validSortings.sort((w,A)=>w.index-A.index);let E="";v.forEach(w=>{var A,$,V;E.length>0&&(E+=", "),E+=(($=(A=w.column)==null?void 0:A.parent)==null?void 0:$.as)+"."+((V=w.column)==null?void 0:V.as)+" "+w.direction||"asc"}),E.length>0&&(u+=" ORDER BY "+E)}return this.limit&&(this.limit.type==="search-statement-literal-value"&&this.limit.value>0&&(u+=" LIMIT "+this.limit.value),this.limit.type==="value-ref"&&(u+=` LIMIT ${this.limit.toQuery()}`),this.offset&&(this.offset.type==="search-statement-literal-value"&&this.offset.value>0&&(u+=" OFFSET "+this.offset.value),this.offset.type==="value-ref"&&(u+=` OFFSET ${this.offset.toQuery()}`))),Kd(u+";")}calculateAst(){const u=this.toQuery();return u?{ast:Ud.parse(u,{dialect:"sqlite",includeSpaces:!0}),query:u}:{ast:null,query:null}}addAggregation(u){this.aggregations.find(a=>a.id===u.id)||this.aggregations.push(u)}removeAggregation(u){var a;this.aggregations=this.aggregations.filter(o=>o.id!==u.id),this.selections=this.selections.filter(o=>{var p,e;return((e=(p=o.parent)==null?void 0:p.source)==null?void 0:e.id)!==u.id}),this.sorting=this.sorting.filter(o=>{var p,e,y;return((y=(e=(p=o.column)==null?void 0:p.parent)==null?void 0:e.source)==null?void 0:y.id)!==u.id});const i=this.dataSources.find(o=>{var p;return((p=o.source)==null?void 0:p.id)===u.id});i&&((a=this.where)==null||a.removeDataSource(i))}editAggregation(u){const i=this.aggregations.findIndex(a=>a.id===u.id);this.aggregations[i]=u,u.joinType==="cross"&&(this.aggregations[i].on=null)}addSort(u){this.sorting.includes(u)||this.sorting.push(u)}removeSort(u){this.sorting=this.sorting.filter(i=>i!==u),this.selections=this.selections.filter(i=>{var a;return i.id!==((a=u.column)==null?void 0:a.id)})}editSort(u){const i=this.sorting.findIndex(a=>a===u);this.sorting[i]=u}addSelection(u){this.selections.find(a=>a.id===u.id)||this.selections.push(u)}removeSelection(u){this.selections=this.selections.filter(i=>i!==u),this.sorting=this.sorting.filter(i=>{var a;return((a=i.column)==null?void 0:a.id)!==u.id})}editSelection(u){const i=this.selections.findIndex(a=>a===u);i!==-1&&(this.selections[i]=u)}setFrom(u){var i,a,o;if(!(u&&this.from&&this.from.id===u.id)){if(u){if(((i=this.from)==null?void 0:i.id)!==u.id){this.from&&this.where&&((a=this.where)==null||a.removeDataSource(this.from)),this.aggregations.forEach(e=>{var y;this.from&&e.on&&((y=e.on)==null||y.removeDataSource(this.from))});const p=new Sd(this);p.parent=u,this.addSelection(p),this.selections=this.selections.filter(e=>{var y,v;return((y=e.parent)==null?void 0:y.id)!==((v=this.from)==null?void 0:v.id)}),this.sorting=this.sorting.filter(e=>{var y,v,E;return((v=(y=e.column)==null?void 0:y.parent)==null?void 0:v.id)!==((E=this.from)==null?void 0:E.id)})}this.from=u;return}this.from&&((o=this.where)==null||o.removeDataSource(this.from)),this.selections=this.selections.filter(p=>{var e,y;return((e=p.parent)==null?void 0:e.id)!==((y=this.from)==null?void 0:y.id)}),this.sorting=this.sorting.filter(p=>{var e,y,v;return((y=(e=p.column)==null?void 0:e.parent)==null?void 0:y.id)!==((v=this.from)==null?void 0:v.id)}),this.from&&this.aggregations.forEach(p=>{var e;this.from&&p.on&&((e=p.on)==null||e.removeDataSource(this.from))}),this.from=u}}setWhere(u){this.where=u}setLimit(u){this.limit=u}setOffset(u){this.offset=u}setAsList(u){this.asList=u}}const qve=Object.freeze(Object.defineProperty({__proto__:null,AggregationStatement:jy,AggregationStatementType:Gd,AllColumnsSelector:Sd,ColumnRef:or,DataSource:Es,DataSourceType:Ma,NestedSearchStatement:TA,SearchLiteralValueType:yr,SearchStatementLiteralValue:Hr,SearchStatementNodeType:Uy,SearchStatementState:qx,SortStatement:kx,SortStatementDirection:Kx,ValueRef:ml,WhereStatement:Sx,WhereStatementOperator:vl,resolveAreThereConflictingColumnsInSelectAll:Fx,whereStatementOperatorToSQL:Gx},Symbol.toStringTag,{value:"Module"}));function ut(d){const u=d||"";let i=(u==null?void 0:u.replaceAll('""','"').trim())||"";return u.startsWith('"')&&(i=i.slice(1)),u.endsWith('"')&&(i=i.slice(0,i.length-1)),i}function Kd(d){if(!d)return"";let u=d;return u=u.replaceAll('""','"').trim()||"",u.replace(/"{2,}/g,'"').trim()}function Zx(d,u){const a=IA(u).find(e=>tu(e.name)===d);if(!a)return null;const o={entity:a,tableName:d,columns:[]};return eu(a).forEach(e=>{const y={columnName:jr(e.name),property:e};o.columns.push(y)}),o}const Zve=["SELECT","FROM","WHERE","INSERT","UPDATE","DELETE","JOIN","CREATE","ALTER","DROP","UNION","ALL","ANY","AND","OR","NOT","NULL","LIKE","IN","IS","AS","ON","GROUP","BY","ORDER","HAVING"];function IA(d){return d.entities.filter(i=>{const a=Vm(i)||i;return!!Qd(a).includes(Ue.PERSISTED_ENTITY)})}function Jx(d){return d.statements.find(i=>i.type==="select_stmt")||null}function xy(d){return d.clauses.find(u=>u.type==="from_clause")||null}function Hx(d){const u=xy(d);if(!u)return null;let i=null,a="";if(u.expr.type==="paren_expr")i=u.expr.expr;else if(u.expr.type==="join_expr"){const o=u.expr.left;o.type==="paren_expr"?i=o.expr:o.type==="alias"&&o.expr.type==="paren_expr"&&(a=o.alias.text,i=o.expr.expr)}return i?{selectStatement:i,as:a}:null}function AA(d,u){var i;if(d.type==="identifier"){const a=((i=u==null?void 0:u.right)==null?void 0:i.type)==="alias"?u.right.alias.text:ut(d.text);return{type:"table",name:ut(d.text),as:a}}else{if(d.type==="alias")return{type:"table",name:d.expr.type==="identifier"?ut(d.expr.text):"",as:ut(d.alias.text)};if(d.type==="join_expr")return AA(d.left,d)}return null}function Wx(d){const u=xy(d);return u?AA(u.expr):null}function Yx(d){const u=Wx(d);if(u!=null&&u.name)return u;const i=Hx(d);return i&&i.selectStatement&&ut(i.as)?{type:"query",subquery:i.selectStatement,as:ut(i.as)}:null}function bA(d){return d.clauses.find(u=>u.type==="select_clause")}function Pp(d,u=""){var a;const i=[];return(a=d.columns)==null||a.items.forEach(o=>{if(o.type==="alias"){if(o.expr.type==="member_expr"&&o.expr.object.type==="identifier"&&(u&&ut(o.expr.object.text)===u||!u)){let p="",e="";if(o.expr.property.type==="identifier"&&(e=ut(o.expr.property.text)),o.alias.type==="identifier"&&(p=ut(o.alias.text)),o.expr.property.text===ut(o.alias.text)||!e||!p)return;i.push({from:e,to:p});return}else if(o.alias.type==="identifier"){let p="",e="";if(o.expr.type==="identifier"&&(e=ut(o.expr.text)),o.alias.type==="identifier"&&(p=ut(o.alias.text)),!e||!p)return;i.push({from:e,to:p});return}}else if(o.type==="member_expr"&&o.object.type==="identifier"&&(u&&ut(o.object.text)===u||!u)){let p="",e="";if(o.property.type==="identifier"&&(e=ut(o.property.text),p=ut(o.property.text)),o.property.text===e||!e||!p)return;i.push({from:e,to:p});return}else if(o.type==="identifier"){let p="",e="";if(o.type==="identifier"&&(e=ut(o.text)),o.type==="identifier"&&(p=ut(o.text)),!e||!p)return;i.push({from:e,to:p});return}}),i}function zx(d){var i;return((i=d.columns)==null?void 0:i.items.reduce((a,o)=>{if(o.type==="alias"){const e={name:o.alias.text,source:null};o.expr.type==="member_expr"&&o.expr.object.type==="identifier"&&(e.source=ut(o.expr.object.text)),a.columns.push(e)}else if(o.type==="member_expr")if(o.property.type==="identifier"){const p={name:ut(o.property.text),source:null};o.object.type==="identifier"&&(p.source=ut(o.object.text)),a.columns.push(p)}else o.property.type==="all_columns"&&o.object.type==="identifier"&&a.scopedSelectAll.push(ut(o.object.text));else if(o.type==="identifier"){const p={name:ut(o.text),source:null};a.columns.push(p)}else o.type==="all_columns"&&(a.globalSelectAll=!0);return a},{columns:[],globalSelectAll:!1,scopedSelectAll:[]}))||null}function Xx(d){var i;return(((i=d.operator[0])==null?void 0:i.text)||"INNER").toLowerCase()}function Qx(d){if(d.right.type==="identifier")return ut(d.right.text);if(d.right.type==="alias"){const u=d.right;if(u.expr.type==="identifier")return ut(u.expr.text);if(u.alias.type==="identifier")return ut(u.alias.text)}return""}function Fy(d){if(!d)return null;let u=null;if(typeof d=="string")u=d;else if(Array.isArray(d)){const[i,a,o,p]=d,e=Fy(i);if(e==="="?u=vl.Equal:u=e,a){const y=Fy(a);e===vl.Equal&&y==="not"?u=vl.NotEqual:u=y+u}}else if(Tr(d))switch(d.name.toLowerCase()){case"between":{u=vl.Between;break}case"is":{u=vl.Equal;break}case"not":{u="not";break}case"or":case"and":{u=null;break}default:{u=null;break}}return u}function Np(d){if(d.type==="binary_expr"){const u=d.operator;return Fy(u)}return null}function Vp(d){if(d.type==="binary_expr"){const u=d.operator;if(Tr(u)&&d.operator.type==="keyword"){const i=d.operator;if(i.name==="AND")return"AND";if(i.name==="OR")return"OR"}}return null}function wA(d,u,i,a,o,p=!1){if(!d||d.type!=="binary_expr"){if(p)debugger;return{ands:[],ors:[]}}const e=[],y=[],v=Vp(d);if(p)debugger;if(v){const E=Np(d.left),w=Vp(d.left);if(p)debugger;if(w){const $=wA(d.left,u,i,a,o,p);if(p)debugger;e.push(...$.ands),y.push(...$.ors)}else if(E){const $=Wn(d.left,i,a,o);if(p)debugger;if($&&($.parent=u,e.push($)),p)debugger}if(p)debugger;const A=d.right;if(A.type==="binary_expr"){const $=Wn(A,i,a,o);$&&($.parent=u,v==="AND"?e.push($):v==="OR"&&y.push($))}else if(A.type==="paren_expr"){const $=Wn(A.expr,i,a,o);$&&($.parent=u,v==="AND"?e.push($):v==="OR"&&y.push($))}}if(p)debugger;return{ands:e,ors:y}}function Wn(d,u,i,a,o=!1){var e,y,v,E,w,A,$,V,U,G,K,Z,ie,X,ue,re;if(!d)return null;const p=new Sx(i);if(o)debugger;if(d.type==="binary_expr"){const fe=Vp(d),Y=Np(d);if(o)debugger;const H=d.left;if(H.type==="identifier"){const z=u.find(oe=>ut(oe.as)===ut(H.text));if(z){p.left=new or(i),p.left.source=z.source,p.left.as=ut(z.as);const oe=new Es(i);oe.entity=((e=z.parent)==null?void 0:e.entity)||null,oe.query=((y=z.parent)==null?void 0:y.query)||null,oe.aggregation=((v=z.parent)==null?void 0:v.aggregation)||null,oe.sourceType=((E=z.parent)==null?void 0:E.sourceType)||null;const we=i.addDataSource(oe);p.left.parent=we,p.operator=Y}}else if(H.type==="member_expr"){if(o)debugger;const z=H.property.type==="identifier"?ut(H.property.text):"",oe=u.find(we=>ut(we.as)===z);if(o)debugger;if(oe){p.left=new or(i),p.left.source=oe,p.left.as=ut(oe.as);const we=new Es(i);we.entity=((w=oe.parent)==null?void 0:w.entity)||null,we.query=((A=oe.parent)==null?void 0:A.query)||null,we.aggregation=(($=oe.parent)==null?void 0:$.aggregation)||null,we.sourceType=((V=oe.parent)==null?void 0:V.sourceType)||null;const xe=i.addDataSource(we);if(p.left.parent=xe,p.operator=Y,o)debugger}if(o)debugger}else if(H.type==="number_literal"){const z=new Hr(i);z.value=H.value,z.valueType=yr.Number,p.left=z,p.operator=Y}else if(H.type==="string_literal")if(H.value.includes("{{::")){const oe=H.value.split("{{::")[1].split("}}")[0],we=a.get(oe);if(we){const xe=new ml(i);xe.inputMap=we,p.left=xe,p.operator=Y}}else{const oe=new Hr(i);L(H.value).isValid()?(oe.value=new Date(H.value),oe.valueType=yr.Date):(oe.value=H.value,oe.valueType=yr.String),p.left=oe,p.operator=Y}else if(H.type==="boolean_literal"){const z=new Hr(i);z.value=H.value,z.valueType=yr.Boolean,p.left=z,p.operator=Y}else if(H.type==="null_literal"){const z=new Hr(i);z.value=H.value,z.valueType=yr.Null,p.left=z,p.operator=Y}else if(H.type==="binary_expr"){const z=Np(H),oe=Vp(H);if(o)debugger;if(oe){const we=wA(H,p,u,i,a,o);if(o)debugger;p.and.push(...we.ands),p.or.push(...we.ors)}else if(z){const we=Wn(H,u,i,a);if(o)debugger;if(we&&(we.parent=p,p.and.push(we)),o)debugger}}const ce=d.right;if(o)debugger;if(ce.type==="identifier"){const z=u.find(oe=>ut(oe.as)===ut(ce.text));if(z){p.right=new or(i),p.right.source=z,p.right.as=ut(z.as);const oe=new Es(i);oe.entity=((U=z.parent)==null?void 0:U.entity)||null,oe.query=((G=z.parent)==null?void 0:G.query)||null,oe.aggregation=((K=z.parent)==null?void 0:K.aggregation)||null,oe.sourceType=((Z=z.parent)==null?void 0:Z.sourceType)||null;const we=i.addDataSource(oe);p.right.parent=we}}else if(ce.type==="member_expr"){if(o)debugger;const z=ce.property.type==="identifier"?ut(ce.property.text):"",oe=u.find(we=>ut(we.as)===z);if(o)debugger;if(oe){p.right=new or(i),p.right.source=oe,p.right.as=ut(oe.as);const we=new Es(i);we.entity=((ie=oe.parent)==null?void 0:ie.entity)||null,we.query=((X=oe.parent)==null?void 0:X.query)||null,we.aggregation=((ue=oe.parent)==null?void 0:ue.aggregation)||null,we.sourceType=((re=oe.parent)==null?void 0:re.sourceType)||null;const xe=i.addDataSource(we);if(p.right.parent=xe,o)debugger}if(o)debugger}else if(ce.type==="number_literal"){const z=new Hr(i);z.value=ce.value,z.valueType=yr.Number,p.right=z}else if(ce.type==="string_literal")if(ce.value.includes("{{::")){const oe=ce.value.split("{{::")[1].split("}}")[0],we=a.get(oe);if(!we)return p.right=null,p;const xe=new ml(i);return xe.inputMap=we,p.right=xe,p}else{const oe=new Hr(i);L(ce.value).isValid()?(oe.value=new Date(ce.value),oe.valueType=yr.Date):(oe.value=ce.value,oe.valueType=yr.String),p.right=oe}else if(ce.type==="boolean_literal"){const z=new Hr(i);z.value=ce.value,z.valueType=yr.Boolean,p.right=z}else if(ce.type==="null_literal"){const z=new Hr(i);z.value=ce.value,z.valueType=yr.Null,p.right=z}else if(ce.type==="binary_expr"){if(o)debugger;const z=Np(ce);if(o)debugger;if(z){const oe=Wn(ce,u,i,a);if(o)debugger;if(oe){if(oe.parent=p,o)debugger;fe==="AND"?p.and.push(oe):fe==="OR"&&p.or.push(oe)}}if(o)debugger}else if(ce.type==="paren_expr"){if(o)debugger;const z=Wn(ce.expr,u,i,a);if(o)debugger;if(z){if(z.parent=p,o)debugger;fe&&(fe==="AND"?p.and.push(z):fe==="OR"&&p.or.push(z))}if(o)debugger}}else if(d.type==="paren_expr"){const fe=Wn(d.expr,u,i,a);fe&&(fe.parent=p)}if(o)debugger;return p}function Gy(d,u,i,a,o=!1){var e;const p=(e=d.specification)==null?void 0:e.expr;if(!p)return null;if(o)debugger;return Wn(p,u,i,a,o)}function RA(d,u,i,a,o,p={onDescribeTable:()=>null},e=!1){var U,G,K,Z,ie;const y=[];let v=[],E=[];const w=Qx(d);if(!w)return{aggregations:v,columnMappings:E,errors:y};const A=Xx(d),$=bA(u),V=Pp($,w);if(e)debugger;if(d.left.type==="join_expr"){const X=RA(d.left,u,i,a,o,p);v.push(...X.aggregations),E.push(...X.columnMappings)}if(e)debugger;if(d.right.type==="alias"){if(e)debugger;if(d.right.expr.type==="paren_expr"&&d.right.expr.expr.type==="select_stmt"){if(e)debugger;const X=d.right.expr.expr;if(e)debugger;const ue=new TA(a);ue.as=d.right.alias.text||ut(((G=(U=ue.statement)==null?void 0:U.from)==null?void 0:G.as)||"")||null;const re=Lp(X,o,null);y.push(...re.errors),ue.statement=re.state;const fe=new Es(a);fe.query=ue,fe.sourceType=Ma.Query;const Y=((K=re.state)==null?void 0:K.columns.map(oe=>{const we=V.find(xe=>xe.from===ut(oe.as));return we?{as:we.to,column:{columnName:ut(oe.as),property:oe.property}}:{as:ut(oe.as),column:{columnName:ut(oe.as),property:oe.property}}}))||[];E.push(...Y);const H=ut(d.right.alias.text),ce=new jy(a),z=Gy(d,[...fe.columns,...i],a,o);if(ce.joinType=A,Object.values(Gd).includes(A)){const oe=a.addDataSource(fe);if(ce.on=z,ce.dataSource=oe,ce.as=H,e)debugger;v.push(ce)}}else if(d.right.expr.type==="identifier"){const X=(Z=p.onDescribeTable)==null?void 0:Z.call(p,w),ue=new Es(a);if(X){const re=X.columns.map(H=>{const ce=V.find(z=>z.from===H.columnName);return ce?{as:ce.to,column:H}:{as:H.columnName,column:H}});E.push(...re),ue.entity=X.entity,ue.sourceType=Ma.Table;const fe=new jy(a),Y=Gy(d,[...ue.columns,...i],a,o);if(fe.joinType=A,Object.values(Gd).includes(A)){fe.on=Y;const H=a.addDataSource(ue);if(fe.dataSource=H,fe.as=ut(d.right.alias.text),e)debugger;v.push(fe)}}else y.push({entity:"table",code:"not-found",name:w})}}else if(d.right.type==="identifier"){const X=(ie=p.onDescribeTable)==null?void 0:ie.call(p,w),ue=new Es(a);if(X){const re=X.columns.map(H=>{const ce=V.find(z=>z.from===H.columnName);return ce?{as:ce.to,column:H}:{as:H.columnName,column:H}});E.push(...re),ue.entity=X.entity,ue.sourceType=Ma.Table;const fe=new jy(a),Y=Gy(d,[...ue.columns,...i],a,o);if(fe.joinType=A,Object.values(Gd).includes(A)){const H=a.addDataSource(ue);if(fe.dataSource=H,fe.on=Y,fe.as=ut(d.right.text),e)debugger;v.push(fe)}}else y.push({entity:"table",code:"not-found",name:w})}if(e)debugger;return{aggregations:v,columnMappings:E,errors:y}}function eF(d,u,i,a,o={onDescribeTable:()=>null}){const p=[],e=xy(d);return e?e.expr.type==="join_expr"?RA(e.expr,d,u,i,a,o):{aggregations:[],columnMappings:[],errors:p}:{aggregations:[],columnMappings:[],errors:p}}function tF(d,u,i,a=!1){var o;return((o=d.columns)==null?void 0:o.items.reduce((p,e)=>{const y=[...p];if(e.type==="alias"){const v=e.expr;if(v.type==="string_literal")if(v.value.includes("{{::")){const w=v.value.split("{{::")[1].split("}}")[0],A=i.get(w);if(A){const $=new ml(u);$.inputMap=A;const V=new or(u);V.source=$,V.as=e.alias.text,y.push(V)}}else{const w=new Hr(u);L(v.value).isValid()?(w.value=new Date(v.value),w.valueType=yr.Date):(w.value=v.value,w.valueType=yr.String);const A=new or(u);A.source=w,A.as=e.alias.text,y.push(A)}else if(v.type==="number_literal"){const E=new Hr(u);E.value=v.value,E.valueType=yr.Number;const w=new or(u);w.source=E,w.as=e.alias.text,y.push(w)}else if(v.type==="boolean_literal"){const E=new Hr(u);E.value=v.value,E.valueType=yr.Boolean;const w=new or(u);w.source=E,w.as=e.alias.text,y.push(w)}else if(v.type==="null_literal"){const E=new Hr(u);E.value=v.value,E.valueType=yr.Null;const w=new or(u);w.source=E,w.as=e.alias.text,y.push(w)}}else if(e.type==="string_literal")if(e.value.includes("{{::")){const E=e.value.split("{{::")[1].split("}}")[0],w=i.get(E);if(w){const A=new ml(u);A.inputMap=w;const $=new or(u);$.source=A,$.as=e.value.toString(),y.push($)}}else{const E=new Hr(u);L(e.value).isValid()?(E.value=new Date(e.value),E.valueType=yr.Date):(E.value=e.value,E.valueType=yr.String);const w=new or(u);w.source=E,w.as=e.value.toString(),y.push(w)}else if(e.type==="number_literal"){const v=new Hr(u);v.value=e.value,v.valueType=yr.Number;const E=new or(u);E.source=v,E.as=e.value.toString(),y.push(E)}else if(e.type==="boolean_literal"){const v=new Hr(u);v.value=e.value,v.valueType=yr.Boolean;const E=new or(u);E.source=v,E.as="boolean",y.push(E)}else if(e.type==="null_literal"){const v=new Hr(u);v.value=e.value,v.valueType=yr.Null;const E=new or(u);E.source=v,E.as="empty",y.push(E)}return y},[]))||[]}function rF(d){return d.clauses.find(u=>u.type==="where_clause")||null}function iF(d,u,i,a){const o=rF(d);return o?Wn(o.expr,u,i,a):null}function sF(d){let u=d.clauses.find(i=>i.type==="limit_clause");return u||null}function nF(d){if(!d)return 0;const u=d.offset;return u?u.value:0}function aF(d){if(!d)return null;const u=d.count;return u?u.value:null}function oF(d){return d.clauses.find(u=>u.type==="order_by_clause")||null}function lF(d,u,i,a){return d.specifications.items.reduce((p,e)=>{var $,V;let y,v="";(($=e.direction)==null?void 0:$.type)==="sort_direction_asc"?y="asc":((V=e.direction)==null?void 0:V.type)==="sort_direction_desc"?y="desc":y="asc",e.expr.type==="member_expr"?e.expr.property.type==="identifier"&&(v+=ut(e.expr.property.text)):e.expr.type==="identifier"&&(v=ut(e.expr.text));const E=new kx(a),w=a.selections.find(U=>{var G,K;if(U.type===Uy.ColumnRef){if(((G=U.source)==null?void 0:G.type)===f.Property)return U.as===v||jr(ne(U.source,U.source.project))===v;if(((K=U.source)==null?void 0:K.type)===Uy.ColumnRef)return U.as===v||U.source.as===v}return!1}),A=p.find(U=>U.column===w);return w&&!A?(E.direction=y,E.column=w,[...p,E]):p},[])}function Lp(d,u,i=null,a=!1){const o=[];if(!u)return{state:null,errors:o};const p=new qx((i==null?void 0:i.id)||N.UUID.uuid());if(IA(u).forEach(z=>{const oe=new Es(p);oe.entity=z,oe.sourceType=Ma.Table,oe.as=z.name,p.addDataSource(oe)}),!d)return{state:p,errors:o};const y=d.type==="select_stmt"?d:Jx(d);if(!y)return{state:p,errors:o};const v=Yx(y);let E=[];if((v==null?void 0:v.type)==="table"){const oe=u.entities.find(we=>{if(As(we,Ue.PERSISTED_ENTITY)){const xe=tu(ne(we,u));let Ne=v.name;Ne.startsWith('"')&&(Ne=Ne.slice(1,Ne.length-1)),Ne.startsWith("'")&&(Ne=Ne.slice(1,Ne.length-1));const $e=xe===Ne;return $e&&(v.name=xe),$e}return!1});if(!oe)o.push({entity:"table",code:"not-found",name:v.name});else{const we=new Es(p);we.sourceType=Ma.Table,we.entity=oe,p.from=p.addDataSource(we)}}else if((v==null?void 0:v.type)==="query"){const z=new TA(p);z.as=ut(v==null?void 0:v.as)||(v==null?void 0:v.name)||"Nested search";const oe=Lp(v.subquery,u);o.push(...oe.errors),z.statement=oe.state;const we=new Es(p);we.sourceType=Ma.Query,we.query=z;const xe=p.addDataSource(we);p.from=xe}const w=bA(y);if(!w)return{state:p,errors:o};const A=Pp(w),$=w?Pp(w,(v==null?void 0:v.name)||""):[],V=w?Pp(w,ut(v==null?void 0:v.as)||""):[],U=[...$,...V].filter((z,oe,we)=>we.findIndex(xe=>xe.to===z.to)===oe),G=w?A.filter(z=>!U.find(oe=>oe.to===z.to)):[],K=zx(w);if(((K==null?void 0:K.columns.filter(z=>!A.find(oe=>oe.to===z.name)))||[]).forEach(z=>{U.push({from:z.name,to:z.name})}),K!=null&&K.globalSelectAll&&p.from){const z=new Sd(p);z.parent=p.from,p.addSelection(z)}const ie=eF(y,p.columns,p,u,{onDescribeTable:z=>Zx(z,u)});o.push(...ie.errors),ie.aggregations.length&&ie.aggregations.forEach(z=>{Object.values(Gd).includes(z.joinType)&&p.addAggregation(z)});const X=[...E,...ie.columnMappings].filter((z,oe,we)=>we.findIndex(xe=>ut(xe.as)===ut(z.as))===oe);U.forEach(z=>{var xe,Ne,$e,Pe,Ze;const oe=new or(p),we=(((xe=p.from)==null?void 0:xe.columns)||[]).find(Fe=>Fe.as===z.from);if(we){oe.source=we,oe.as=ut(z.to);const Fe=new Es(p);Fe.entity=(Ne=we.parent)==null?void 0:Ne.entity,Fe.sourceType=(($e=we.parent)==null?void 0:$e.sourceType)||null,Fe.query=((Pe=we.parent)==null?void 0:Pe.query)||null,Fe.aggregation=((Ze=we.parent)==null?void 0:Ze.aggregation)||null;const lt=p.addDataSource(Fe);oe.parent=lt,p.addSelection(oe)}}),G.forEach(z=>{for(let oe=0;oe<ie.aggregations.length;oe++){const we=ie.aggregations[oe];for(let xe=0;xe<we.columns.length;xe++){const Ne=we.columns[xe];if(ut(Ne.as)===z.from){const $e=new or(p);$e.source=Ne,$e.as=ut(z.to);const Pe=new Es(p);Pe.sourceType=Ma.Aggregation,Pe.aggregation=we;const Ze=p.addDataSource(Pe);$e.parent=Ze,p.addSelection($e);return}}}}),tF(w,p,u,a).forEach(z=>{p.addSelection(z)}),K==null||K.scopedSelectAll.forEach(z=>{const oe=p.usedDataSources.find(xe=>ut(xe.as)===z);if(!oe)return;const we=new Sd(p);we.parent=oe,p.addSelection(we)});const re=iF(y,p.columns,p,u);p.where=re;const fe=sF(y),Y=nF(fe),H=aF(fe),ce=oF(y);if(H!==null){const z=new Hr(p);z.valueType=yr.Number,z.value=H,p.limit=z}if((p.limit===null||p.limit===void 0||H===1)&&(p.asList=(i==null?void 0:i.resultsAsList)||!1),Y!==null){const z=new Hr(p);z.valueType=yr.Number,z.value=Y,p.offset=z}return ce&&lF(ce,y,X,p).forEach((oe,we)=>{oe.index=we,p.addSort(oe)}),{state:p,errors:o}}const Jve=Object.freeze(Object.defineProperty({__proto__:null,FORBIDDEN_SQL_KEYWORDS:Zve,flattenBinaryExprComparisonsToWhereStatements:wA,flattenJoinExprIntoAggregationStatementsSync:RA,fromNameToTableDescription:Zx,fromOrderByClauseToSortStatements:lF,fromSelectClauseColumnsToColumnMappings:Pp,fromSelectClauseToLiteralValueSelections:tF,fromSqlOperatorsExprToComparisonOperator:Fy,fromWhereBinaryExprToAndOrOperatorValue:Vp,fromWhereBinaryExprToComparisonOperator:Np,fromWhereExprToWhereStatement:Wn,getAggregationStatementsFromSelectStatementSync:eF,getFromClauseFromSelectStatement:xy,getJoinOnSpecificationAsWhereStatementFromJoinExpr:Gy,getJoinTableFromJoinClause:Qx,getJoinTypeFromJoinClause:Xx,getLimitClauseFromSelectStatement:sF,getMainSourceFromSelectStatement:Yx,getMainSourceNameFromFromClauseExpr:AA,getMainSourceNameFromSelectStatement:Wx,getNestedFromSubqueryFromSelectStatement:Hx,getOrderByClauseFromSelectStatement:oF,getRawLimitFromLimitClause:aF,getRawOffetFromLimitClause:nF,getSelectClauseFromSelectStatement:bA,getSelectStatementFromProgram:Jx,getSelectionsConfigFromSelectClause:zx,getWhereClauseFromSelectStatement:rF,getWhereStatementsFromSelectStatement:iF,hydrateSearchStatementState:Lp,loadProjectDatasources:IA,sanitizeQuery:Kd,sanitizeSQLIdentifierText:ut},Symbol.toStringTag,{value:"Module"}));function _A(d){switch(d){case yr.String:return Q.String;case yr.Number:return Q.Number;case yr.Boolean:return Q.Boolean;case yr.Date:return Q.Date;default:return Q.String}}function gA(d,u){switch(d){case yr.String:return u.get(Ee["primitive-entity"].string.id);case yr.Number:return u.get(Ee["primitive-entity"].number.id);case yr.Boolean:return u.get(Ee["primitive-entity"].boolean.id);case yr.Date:return u.get(Ee["primitive-entity"].date.id);default:return u.get(Ee["primitive-entity"].string.id)}}function DA(d){return d?d.parent.type===f.DataType:!1}function OA(d,u,i){let a=(d.outputsDeclarations||[])[0]||null;if(!a){const v=vn.new(i);v.name="Search result",v.description="The result of the search statement",v.parentRelationType=de.FixedReturns,v.index=0,v.parent=d.toReference(),v.required=!0;const E=te(v,d.project);E.hydrateAncestors(),i==null||i.add(E,S.Added),E.addSelfToProject(i),E.initChildren(i),a=E;const w=vs.new(i);w.isList=u.asList,w.asType=!1,w.parent=E.toReference();const A=te(w,d.project);A.hydrateAncestors(),i==null||i.add(A,S.Added),A.addSelfToProject(i),A.initChildren(i)}let o=a.getDataType(null);if(!o){const v=vs.new(i);v.isList=u.asList,v.asType=!1,v.parent=a.toReference();const E=te(v,d.project);E.hydrateAncestors(),i==null||i.add(E,S.Added),i==null||i.add(a,S.Affected),E.addSelfToProject(i),E.initChildren(i),o=E}const p=o.entity;let e=o==null?void 0:o.entity;if(u.isUntouchedEntity&&(!e||e!==u.mainPersistedEntity)&&(o.setEntity(u.mainPersistedEntity,i),e=u.mainPersistedEntity),!u.isUntouchedEntity&&!DA(e)&&(e=null),!e&&(u!=null&&u.from)){const v=ra.new(i);v.static=!1,v.abstract=!1,v.name=ne(d,d.project)+" output type",v.description="Search statement output",v.parent=o.toReference();const E=te(v,d.project);E.hydrateAncestors(),i==null||i.add(E,S.Added),E.addSelfToProject(i),E.initChildren(i),o.setEntity(E,i),e=E,i==null||i.add(o,S.Updated)}o.isList!==u.asList&&o.metaSync({isList:u.asList},i),!u.isUntouchedEntity&&e&&u.selectedColumns.filter(E=>{var A,$,V,U;const w=e.properties.find(G=>G.name===E.as);if(w){let G=w.getDataType(null);if(G){if(E.literalValue){const K=gA(E.literalValue.valueType,d.project);K&&(G.setEntity(K,i),i==null||i.add(G,S.Updated))}else if(E.property){const K=E.property.getDataType(null);((V=K==null?void 0:K.entity)==null?void 0:V.type)===f.DefinitionEntity?(G.setEntity((K==null?void 0:K.entity)||null,i),i==null||i.add(G,S.Updated)):((U=K==null?void 0:K.entity)==null?void 0:U.type)===f.PrimitiveEntity?(G.setEntity(K.entity,i),i==null||i.add(G,S.Updated)):(G.setEntity(d.project.get(Ee["primitive-entity"].untyped.id),i),i==null||i.add(G,S.Updated))}}else{let K=null;if(E.literalValue){const X=gA(E.literalValue.valueType,d.project);X&&(K=X)}else if(E.property){const X=E.property.getDataType(null);((A=X==null?void 0:X.entity)==null?void 0:A.type)===f.DefinitionEntity||(($=X==null?void 0:X.entity)==null?void 0:$.type)===f.PrimitiveEntity?K=X==null?void 0:X.entity:K=d.project.get(Ee["primitive-entity"].untyped.id)}const Z=vs.new(i);Z.isList=u.asList,Z.inferred=!0,Z.asType=!1,Z.parent=w.toReference();const ie=te(Z,d.project);ie.hydrateAncestors(),i==null||i.add(ie,S.Added),ie.addSelfToProject(i),ie.initChildren(i),ie.setEntity(K,i),w.setDataType(ie,i),i==null||i.add(w,S.Affected)}return!1}return!0}).map((E,w)=>{if(E.literalValue){const A=ta.new(i);A.name=E.as,A.description="Property derived from search statement output format",A.index=w,A.parent=e.toReference();const $=te(A,d.project);$.hydrateAncestors(),i==null||i.add($,S.Added),$.addSelfToProject(i),$.initChildren(i),i==null||i.add(e,S.Affected);const V=ki.new(i);V.name=_A(E.literalValue.valueType),V.value=E.literalValue.value,V.parent=$.toReference();const U=te(V,d.project);U.hydrateAncestors(),i==null||i.add(U,S.Added),U.addSelfToProject(i),U.initChildren(i),$.setDefaultValue(U),i==null||i.add($,S.Affected);const G=vs.new(i);G.parent=$.toReference();const K=te(G,d.project);K.hydrateAncestors(),i==null||i.add(K,S.Added),K.addSelfToProject(i),K.initChildren(i),i==null||i.add($,S.Affected),$.setDataType(K,i);const Z=ki.new(i);Z.name=_A(E.literalValue.valueType),Z.value=E.literalValue.value,Z.parent=K.toReference();const ie=te(Z,d.project);return ie.hydrateAncestors(),i==null||i.add(ie,S.Added),ie.addSelfToProject(i),ie.initChildren(i),K.setEntity(ie,i),$}else if(E.property){const A=E.property.clone(i,e,N.UUID.uuid());return A.metaSync({index:w,name:E.as},i),A}}),!u.isUntouchedEntity&&e&&e.properties.forEach(v=>{u.selectedColumns.find(w=>w.as===v.name)||v.remove({ignoreUpstream:!1},i)});let y=(d.outputs||[])[0]||null;if(!y){const v=mn.new(i);v.declaration=a.toJSON(),v.parent=d.toReference();const E=te(v,d.project);E.hydrateAncestors(),i==null||i.add(E,S.Added),E.addSelfToProject(i),E.initChildren(i),y=E,i==null||i.add(d,S.Affected)}(e==null?void 0:e.id)!==(p==null?void 0:p.id)&&DA(p)&&(p==null||p.remove({ignoreUpstream:!1},i)),y&&y.declaration!==a&&(y.setDeclaration(a,i),i==null||i.add(y,S.Updated))}var dF=(d=>(d.Parent="parent",d))(dF||{});const ir=class ir extends Nr{constructor(i,a){super(i);g(this,"initialData");g(this,"id");g(this,"name");g(this,"description",null);g(this,"x");g(this,"y");g(this,"query","");g(this,"type",f.Search);g(this,"successCalls",[]);g(this,"errorCalls",[]);g(this,"inputsDeclarations",[]);g(this,"inputs",[]);g(this,"outputsDeclarations",[]);g(this,"outputs",[]);g(this,"calledBySuccess",[]);g(this,"calledByError",[]);g(this,"calledByEntry",[]);g(this,"error",null);g(this,"parent");g(this,"errors",[]);g(this,"project");g(this,"state",null);g(this,"detachedDependents",{});g(this,"knownVersions",null);g(this,"activeVersion",!1);g(this,"initialized",!1);g(this,"startedInitialization",!1);this.initialData=i,this.project=a,this.id=i.id,this.x=i.x,this.y=i.y,this.name=i.name,this.query=i.query,this.description=i.description,this.onProjectInitialized=this.onProjectInitialized.bind(this),this.onPersistedEntityAdded=this.onPersistedEntityAdded.bind(this),this.onPersistedEntityUpdated=this.onPersistedEntityUpdated.bind(this),this.onPersistedEntityRemoved=this.onPersistedEntityRemoved.bind(this),this.onRelationalDatabaseEntityAdded=this.onRelationalDatabaseEntityAdded.bind(this),this.onRelationalDatabaseEntityUpdated=this.onRelationalDatabaseEntityUpdated.bind(this),this.onRelationalDatabaseEntityRemoved=this.onRelationalDatabaseEntityRemoved.bind(this)}static new(i=null){return{id:N.UUID.uuid(),version:N.UUID.uuid(),createdAt:(i==null?void 0:i.timestamp)||L().toISOString(),author:(i==null?void 0:i.author)||N.sessionAuthor,previousVersion:null,deleted:!1,type:f.Search,name:"",description:"",inputsDeclarations:[],outputsDeclarations:[],inputs:[],outputs:[],query:"",error:null,parent:null,calledByEntry:[],calledBySuccess:[],calledByError:[],errorCalls:[],successCalls:[],x:0,y:0}}static fromGenerationTarget(i,a){let o=a;if(i.parent){const w=J(i.parent);o=a.get(w)}const p=i.calledByEntry.map(w=>{const A=J(w);return a.get(A)}),e=i.calledBySuccess.map(w=>{const A=J(w);return a.get(A)}),y=i.calledByError.map(w=>{const A=J(w);return a.get(A)}),v={id:i.id,version:N.UUID.uuid(),createdAt:L().toISOString(),author:N.sessionAuthor,previousVersion:null,deleted:!1,type:f.Search,name:i.name,description:i.description,query:i.query,calledByEntry:p,calledBySuccess:e,calledByError:y,errorCalls:[],successCalls:[],inputsDeclarations:[],inputs:[],outputsDeclarations:[],outputs:[],error:null,x:0,y:0,parent:o},E=te(v,a);return E.setParent(o,null),E}static validateGenerationTarget(i,a){let o=JSON.parse(JSON.stringify(i));const p=[],e=ai(o,{parent:{list:!1,types:[...Mr,f.Project],optional:!0}},a);return o=e.modifiedData,p.push(...e.errors,...Br(o)),{errors:p,modifiedData:o}}get resultsAsList(){const i=this.outputsDeclarations[0];if(i){const a=i.getDataType(null);return a?a.isList===!0:!0}return!0}queryToState(){const i=Ud.parse(Kd(this.query),{dialect:"sqlite",includeSpaces:!0}),a=Lp(i,this.project,this);if(!a.state)throw new Error("Could not hydrate search statement");return a.state}stateToQuery(){var a;const i=((a=this.state)==null?void 0:a.toQuery())||"";return Kd(i)}rehydrateQuery(){if(!this.query)return"";const i=Kd(this.query),a=Ud.parse(i,{dialect:"sqlite",includeSpaces:!0}),o=Lp(a,this.project,this);return o.state?Kd(o.state.toQuery()):""}onProjectInitialized(i,a=this.project.addChangeSet(new F(this.project,N.sessionAuthor,new Date().toISOString(),this,!0,"on-search-received-project-initialized"))){return this.metaSync({query:this.rehydrateQuery()},a),this.state=this.queryToState(),OA(this,this.state,a),a==null||a.attemptAutoclose("on-search-received-project-initialized",this.id),this}onPersistedEntityUpdated(i,a=this.project.addChangeSet(new F(this.project,N.sessionAuthor,new Date().toISOString(),this,!0,"on-persisted-entity-updated"))){return this.project.initialized?(this.metaSync({query:this.stateToQuery()},a),a==null||a.attemptAutoclose("on-persisted-entity-updated",this.id),this):(a==null||a.attemptAutoclose("on-persisted-entity-updated",this.id),this)}onPersistedEntityAdded(i,a=this.project.addChangeSet(new F(this.project,N.sessionAuthor,new Date().toISOString(),this,!0,"on-persisted-entity-added"))){return this.project.initialized?(this.metaSync({query:this.rehydrateQuery()},a),a==null||a.attemptAutoclose("on-persisted-entity-added",this.id),this):(a==null||a.attemptAutoclose("on-persisted-entity-added",this.id),this)}onPersistedEntityRemoved(i,a=this.project.addChangeSet(new F(this.project,N.sessionAuthor,new Date().toISOString(),this,!0,"on-persisted-entity-removed"))){return this.project.initialized?(this.metaSync({query:this.rehydrateQuery()},a),a==null||a.attemptAutoclose("on-persisted-entity-removed",this.id),this):(a==null||a.attemptAutoclose("on-persisted-entity-removed",this.id),this)}onRelationalDatabaseEntityUpdated(i,a=this.project.addChangeSet(new F(this.project,N.sessionAuthor,new Date().toISOString(),this,!0,"on-relational-database-entity-updated"))){return this.project.initialized?(this.metaSync({query:this.stateToQuery()},a),a==null||a.attemptAutoclose("on-relational-database-entity-updated",this.id),this):(a==null||a.attemptAutoclose("on-relational-database-entity-updated",this.id),this)}onRelationalDatabaseEntityAdded(i,a=this.project.addChangeSet(new F(this.project,N.sessionAuthor,new Date().toISOString(),this,!0,"on-relational-database-entity-added"))){return this.project.initialized?(this.metaSync({query:this.rehydrateQuery()},a),a==null||a.attemptAutoclose("on-relational-database-entity-added",this.id),this):(a==null||a.attemptAutoclose("on-relational-database-entity-added",this.id),this)}onRelationalDatabaseEntityRemoved(i,a=this.project.addChangeSet(new F(this.project,N.sessionAuthor,new Date().toISOString(),this,!0,"on-relational-database-entity-removed"))){return this.project.initialized?(this.metaSync({query:this.rehydrateQuery()},a),a==null||a.attemptAutoclose("on-relational-database-entity-removed",this.id),this):(a==null||a.attemptAutoclose("on-relational-database-entity-removed",this.id),this)}validateGeneratedUpdate(i){const a=[];return i.parent&&a.push(new ee({id:`${this.id}--${k.InvalidParentUpdate}`,code:k.InvalidParentUpdate,severity:q.Error,message:`Entity of type '${this.type}' with id '${this.id}' cannot have the 'parent' property updated. The 'parent' on a callable entity, is its scope. It scope is auto-calculated implicitly by the its caller.
102
102
  If an entity is called by another, they must be in the same scope, which means they have the same parent.
103
- You shouldn't have to manually update a 'parent' property. The equivalent result is to change its callers, the value writters of its inputs, or the value readers of its outputs.`})),{errors:a,modifiedData:i}}subscribeDependents(i){return i.forEach(a=>{this.detachedDependents[a.entity.id]||(this.detachedDependents[a.entity.id]=a)}),this}unsubscribeDependents(i){return i.forEach(a=>{this.detachedDependents[a.entity.id]&&delete this.detachedDependents[a.entity.id]}),this}syncDependents(i=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"sync-dependents"))){const a=[],o=[],p=[],e=[];return Object.values(this.detachedDependents).forEach(y=>{const v=y.entity.afterAllChildrenInitialized(i);a.push(...v.updated),o.push(...v.added),p.push(...v.removed),e.push(...v.affected)}),i==null||i.attemptAutoclose("sync-dependents",this.id),{updated:R(a),added:R(o),removed:R(p),affected:R(e),self:this}}onDetachedDependencyRemoved(i,a,o){const p=[],e=[],y=[],v=[];if(a==="parent"){const{updated:E,added:w,removed:A}=this.remove({ignoreUpstream:!1},o);p.push(...E),e.push(...w),y.push(...A)}return{updated:R(p),added:R(e),removed:R(y),affected:R(v),self:this}}onDetachedDependencyRestored(i,a,o){const p=[],e=[],y=[],v=[];if(a==="parent"){const{updated:E,added:w,removed:A}=this.restore({},o);p.push(...E),e.push(...w),y.push(...A)}return{updated:R(p),added:R(e),removed:R(y),affected:R(v),self:this}}unsubscribeFromDependencies(){var i;return(i=this.parent)==null||i.unsubscribeDependents([{entity:this,field:"parent"}]),this.project.off(Vr.PROJECT_INITIALIZED,this.onProjectInitialized),this.project.off(Vr.PERSISTED_DEFINITION_ENTITY_ADDED,this.onPersistedEntityAdded),this.project.off(Vr.PERSISTED_DEFINITION_ENTITY_UPDATED,this.onPersistedEntityUpdated),this.project.off(Vr.PERSISTED_DEFINITION_ENTITY_REMOVED,this.onPersistedEntityRemoved),this.project.off(Vr.RELATIONAL_DATABASE_DEFINITION_ENTITY_ADDED,this.onRelationalDatabaseEntityAdded),this.project.off(Vr.RELATIONAL_DATABASE_DEFINITION_ENTITY_UPDATED,this.onRelationalDatabaseEntityUpdated),this.project.off(Vr.RELATIONAL_DATABASE_DEFINITION_ENTITY_REMOVED,this.onRelationalDatabaseEntityRemoved),this}subscribeToDependencies(){var i;return(i=this.parent)==null||i.subscribeDependents([{entity:this,field:"parent"}]),this.project.on(Vr.PROJECT_INITIALIZED,this.onProjectInitialized),this.project.on(Vr.PERSISTED_DEFINITION_ENTITY_ADDED,this.onPersistedEntityAdded),this.project.on(Vr.PERSISTED_DEFINITION_ENTITY_UPDATED,this.onPersistedEntityUpdated),this.project.on(Vr.PERSISTED_DEFINITION_ENTITY_REMOVED,this.onPersistedEntityRemoved),this.project.on(Vr.RELATIONAL_DATABASE_DEFINITION_ENTITY_ADDED,this.onRelationalDatabaseEntityAdded),this.project.on(Vr.RELATIONAL_DATABASE_DEFINITION_ENTITY_UPDATED,this.onRelationalDatabaseEntityUpdated),this.project.on(Vr.RELATIONAL_DATABASE_DEFINITION_ENTITY_REMOVED,this.onRelationalDatabaseEntityRemoved),this}increaseVersion(i){if(i&&!L(i).isValid())throw new Error(`The shared timestamp '${i}' is not a valid ISO 8601 date string.`);return i&&L(i).isSame(L(this.createdAt))?this:(this.previousVersion=this.version,this.version=N.UUID.uuid(),this.createdAt=L(i).toISOString()||L().toISOString(),this)}captureVersion(){var a;const i=((a=this.knownVersions)==null?void 0:a.get(this.version))||new ir(this,this.project);return i.metaSync(this.toMeta(),null),this.knownVersions=this.knownVersions?this.knownVersions.set(this.version,i):new Map([[this.version,i]]),i.inputs=[...this.inputs],i.outputs=[...this.outputs],i.error=this.error,i.inputsDeclarations=[...this.inputsDeclarations],i.outputsDeclarations=[...this.outputsDeclarations],i.successCalls=[...this.successCalls],i.errorCalls=[...this.errorCalls],i.calledByEntry=[...this.calledByEntry],i.calledBySuccess=[...this.calledBySuccess],i.calledByError=[...this.calledByError],i.parent=this.parent,this}recursiveCaptureUpstreamVersions(i){const a=[],o=[],p=[],e=[];if(this.parent){this.parent.increaseVersion(i);const y=this.parent.recursiveCaptureUpstreamVersions(i);a.push(this.parent,...y.updated),o.push(...y.added),p.push(...y.removed)}return{updated:R(a),added:R(o),removed:R(p),affected:R(e),self:this}}async restoreVersion(i){var v;const a=[],o=[],p=[],e=[];if(this.version===i)return{updated:R(a),added:R(o),removed:R(p),affected:R(e),self:this};if(!this.knownVersions){const E=new Map;for(const[w,A]of this.knownVersions||new Map){if(E.set(w,A),A.activeVersion=!1,A.knownVersions)for(const[$,V]of A.knownVersions)E.set($,V);A.knownVersions=null}}let y=(v=this.knownVersions)==null?void 0:v.get(i);if(!y){const E=await this.APILoadVersion({},i);if(!E)throw new Error(`Version with id '${i}' for entity with id '${this.id}' not found.`);y=new ir(E,this.project)}return this.metaSync(y.toShallowJSON(),null),this.previousVersion=y.previousVersion,this.version=y.version,this.createdAt=y.createdAt,this.author=y.author,this.deleted=y.deleted,this.inputs=y.inputs,this.outputs=y.outputs,this.error=y.error,this.inputsDeclarations=y.inputsDeclarations,this.outputsDeclarations=y.outputsDeclarations,this.successCalls=y.successCalls,this.errorCalls=y.errorCalls,this.calledByEntry=y.calledByEntry,this.calledBySuccess=y.calledBySuccess,this.calledByError=y.calledByError,this.parent=y.parent,{updated:R(a),added:R(o),removed:R(p),affected:R(e),self:this}}updateWithShallowTransfer(i,a=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"update-with-shallow-transfer"))){if(this.metaSync(i,a),this.version=i.version,this.createdAt=i.createdAt,this.author=i.author,this.deleted=i.deleted,this.previousVersion=i.previousVersion,this.unsubscribeFromDependencies(),i.parent){const o=J(i.parent),p=this.project.get(o),e=this.parent;if(e&&e.id!==(p==null?void 0:p.id)&&this.removeFromParent(a),p)this.setParent(p,a);else throw a==null||a.attemptAutoclose("update-with-shallow-transfer",this.id),new Error(`${this.type} with id '${this.id}' has a 'parent' reference '${o}' that isn't found in the project`)}else throw a==null||a.attemptAutoclose("update-with-shallow-transfer",this.id),new Error(`${this.type} with id '${this.id}' must have a 'parent'`);return i.calledByEntry.forEach(o=>{const p=J(o),e=this.project.get(p);e&&(this.addEntryCaller(e,a),e.addCall(this,a))}),[...this.calledByEntry].forEach(o=>{i.calledByEntry.find(e=>J(e)===o.id)||(this.removeCaller(o,a),o.removeCall(this,a))}),i.calledBySuccess.forEach(o=>{const p=J(o),e=this.project.get(p);e&&(this.addSuccessCaller(e,a),e.addSuccessCall(this,a))}),[...this.calledBySuccess].forEach(o=>{i.calledBySuccess.find(e=>J(e)===o.id)||(this.removeCaller(o,a),o.removeCall(this,a))}),i.calledByError.forEach(o=>{const p=J(o),e=this.project.get(p);e&&(this.addErrorCaller(e,a),e.addErrorCall(this,a))}),[...this.calledBySuccess].forEach(o=>{i.calledBySuccess.find(e=>J(e)===o.id)||(this.removeCaller(o,a),o.removeCall(this,a))}),this.captureVersion(),this.subscribeToDependencies(),a==null||a.attemptAutoclose("update-with-shallow-transfer",this.id),this}hydrateAncestors(){const i=[],a=[],o=[],p=[];if(this.initialData.parent){const e=J(this.initialData.parent),y=this.project.get(e);if(y)this.setParent(y,null),i.push(y);else throw new Error(`${this.type} with id '${this.id}' has a 'parent' reference '${e}' that isn't found in the project`)}else throw new Error(`${this.type} with id '${this.id}' must have a 'parent'`);return this.initialData.calledByEntry.forEach(e=>{const y=J(e),v=this.project.get(y);v&&this.addEntryCaller(v,null)}),this.initialData.calledBySuccess.forEach(e=>{const y=J(e),v=this.project.get(y);v&&this.addSuccessCaller(v,null)}),this.initialData.calledByError.forEach(e=>{const y=J(e),v=this.project.get(y);v&&this.addErrorCaller(v,null)}),{updated:R(i),added:R(a),removed:R(o),affected:R(p),self:this}}afterAllChildrenInitialized(i=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"after-all-children-initialized"))){const a=[],o=[],p=[],e=[];this.initialized=!0;const{updated:y,added:v,removed:E}=this.syncInputMaps(i);return a.push(...y),o.push(...v),p.push(...E),this.project.initialized&&(this.metaSync({query:this.rehydrateQuery()},i),this.state=this.queryToState(),OA(this,this.state,i)),this.captureVersion(),i==null||i.attemptAutoclose("after-all-children-initialized",this.id),{updated:R(a),added:R(o),removed:R(p),affected:R(e),self:this}}addSelfToProject(i=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"add-self-to-project"))){const a=[this],o=[],p=[],e=[];return this.parent===this.project&&this.project.addSearch(this),this.successCalls.forEach(y=>{y.addSuccessCaller(this,i),a.push(y)}),this.errorCalls.forEach(y=>{y.addErrorCaller(this,i),a.push(y)}),this.calledByEntry.forEach(y=>{y.addCall(this,i),a.push(y)}),this.calledBySuccess.forEach(y=>{y.addSuccessCall(this,i),a.push(y)}),this.calledByError.forEach(y=>{y.addErrorCall(this,i),a.push(y)}),this.subscribe(),this.subscribeToDependencies(),i==null||i.attemptAutoclose("add-self-to-project",this.id),{updated:R(a),added:R(o),removed:R(p),affected:R(e),self:this}}get calledBy(){return[...this.calledByEntry,...this.calledBySuccess,...this.calledByError]}removeInput(i,a=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"remove-input"))){const o=this.inputs.findIndex(e=>e.id===i.id);o>-1&&(this.inputs.splice(o,1),a==null||a.add(this,S.Affected));const p=this.inputsDeclarations.findIndex(e=>{var y;return e.id===((y=i.declaration)==null?void 0:y.id)});return p>-1&&(this.inputsDeclarations.splice(p,1),a==null||a.add(this,S.Affected)),a==null||a.attemptAutoclose("remove-input",this.id),this}addInput(i,a=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"add-input"))){return this.inputs.includes(i)?(a==null||a.attemptAutoclose("add-input",this.id),this):(this.inputs.push(i),a==null||a.add(this,S.Affected),a==null||a.attemptAutoclose("add-input",this.id),this)}addInputDeclaration(i,a=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"add-input-declaration"))){return this.inputsDeclarations.includes(i)?(a==null||a.attemptAutoclose("add-input-declaration",this.id),this):(this.inputsDeclarations.push(i),a==null||a.attemptAutoclose("add-input-declaration",this.id),this)}removeInputDeclaration(i,a=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"remove-input-declaration"))){const o=this.inputsDeclarations.findIndex(p=>p.id===i.id);return o>-1&&(this.inputsDeclarations.splice(o,1),a==null||a.add(this,S.Affected)),a==null||a.attemptAutoclose("remove-input-declaration",this.id),this}addOutputDeclaration(i,a=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"add-output-declaration"))){return this.outputsDeclarations.includes(i)?(a==null||a.attemptAutoclose("add-output-declaration",this.id),this):(this.outputsDeclarations.push(i),a==null||a.add(this,S.Affected),a==null||a.attemptAutoclose("add-output-declaration",this.id),this)}removeOutputDeclaration(i,a=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"remove-output-declaration"))){const o=this.outputsDeclarations.findIndex(p=>p.id===i.id);return o>-1&&(this.outputsDeclarations.splice(o,1),a==null||a.add(this,S.Affected)),a==null||a.attemptAutoclose("remove-output-declaration",this.id),this}addOutput(i,a=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"add-output"))){return this.outputs.includes(i)?(a==null||a.attemptAutoclose("add-output",this.id),this):(this.outputs.push(i),a==null||a.add(this,S.Affected),a==null||a.attemptAutoclose("add-output",this.id),this)}removeOutput(i,a=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"remove-output"))){const o=this.outputs.findIndex(p=>p.id===i.id);return o>-1&&(this.outputs.splice(o,1),a&&(a==null||a.add(this,S.Affected))),a==null||a.attemptAutoclose("remove-output",this.id),this}addSuccessCaller(i,a=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"add-success-caller")),o=!1){return this.calledBySuccess.find(p=>p.id===i.id)||(this.calledBySuccess.push(i),a==null||a.add(this,S.Updated),o&&We(this,a)),a==null||a.attemptAutoclose("add-success-caller",this.id),this}addErrorCaller(i,a=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"add-error-caller")),o=!1){return this.calledByError.find(p=>p.id===i.id)||(this.calledByError.push(i),a==null||a.add(this,S.Updated),o&&We(this,a)),a==null||a.attemptAutoclose("add-error-caller",this.id),this}addEntryCaller(i,a=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"add-entry-caller")),o=!1){return this.calledByEntry.find(p=>p.id===i.id)||(this.calledByEntry.push(i),a==null||a.add(this,S.Updated),o&&We(this,a)),a==null||a.attemptAutoclose("add-entry-caller",this.id),this}addErrorCall(i,a=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"add-error-call")),o=!1){return this.errorCalls.find(p=>p.id===i.id)||(this.errorCalls.push(i),o&&We(this,a),a==null||a.add(this,S.Affected)),a==null||a.attemptAutoclose("add-error-call",this.id),this}addSuccessCall(i,a=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"add-success-call")),o=!1){return this.successCalls.find(p=>p.id===i.id)||(this.successCalls.push(i),o&&We(this,a),a==null||a.add(this,S.Affected)),a==null||a.attemptAutoclose("add-success-call",this.id),this}removeCall(i,a=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"remove-call")),o=!1){const p=this.successCalls.findIndex(y=>y.id===i.id);p>-1&&(this.successCalls.splice(p,1),a==null||a.add(this,S.Affected));const e=this.errorCalls.findIndex(y=>y.id===i.id);return e>-1&&(this.errorCalls.splice(e,1),a==null||a.add(this,S.Affected)),o&&We(this,a),a==null||a.attemptAutoclose("remove-call",this.id),this}removeCaller(i,a=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"remove-caller")),o=!1){return this.calledBySuccess=this.calledBySuccess.filter(p=>p.id!==i.id?!0:(a==null||a.add(this,S.Updated),a==null||a.add(p,S.Affected),!1)),this.calledByError=this.calledByError.filter(p=>p.id!==i.id?!0:(a==null||a.add(this,S.Updated),a==null||a.add(p,S.Affected),!1)),this.calledByEntry=this.calledByEntry.filter(p=>p.id!==i.id?!0:(a==null||a.add(this,S.Updated),a==null||a.add(p,S.Affected),!1)),o&&We(this,a),a==null||a.attemptAutoclose("remove-caller",this.id),this}setParent(i,a=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"set-parent"))){var o;return((o=this.parent)==null?void 0:o.id)!==(i==null?void 0:i.id)&&(this.parent=i,a&&(a==null||a.add(this,S.Updated))),a==null||a.attemptAutoclose("set-parent",this.id),this}initChildren(i=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"init-children"))){return this.initialized||this.startedInitialization?this:(this.startedInitialization=!0,this.successCalls=this.initialData.successCalls.map(a=>{const o=te(a,this.project);if([f.BreakStatement,f.ContinueStatement].includes(o.type))o.setParent(this.parent.parent,null),o.initChildren(i);else if(o.type===f.ReturnStatement){const p=Wr(this,this.project);o.setParent(p,null),o.initChildren(i)}else o.type!==f.InternalCall&&(o.setParent(this.parent,null),o.initChildren(i));return o}),this.errorCalls=this.initialData.errorCalls.map(a=>{const o=te(a,this.project);if(o.addErrorCaller(this),[f.BreakStatement,f.ContinueStatement].includes(o.type))o.setParent(this.parent.parent,null),o.initChildren(i);else if(o.type===f.ReturnStatement){const p=Wr(this,this.project);o.setParent(p,null),o.initChildren(i)}else o.type!==f.InternalCall&&(o.setParent(this.parent,null),o.initChildren(i));return o}),this.inputsDeclarations=this.initialData.inputsDeclarations.map(a=>{const o=te(a,this.project);return o.setParent(this,null),o.initChildren(i),o}),this.inputs=this.initialData.inputs.map(a=>{const o=te(a,this.project);return o.setParent(this,null),o.initChildren(i),o}),this.outputsDeclarations=this.initialData.outputsDeclarations.map(a=>{const o=te(a,this.project);return o.setParent(this,null),o.initChildren(i),o}),this.outputs=this.initialData.outputs.map(a=>{const o=te(a,this.project);return o.setParent(this,null),o.initChildren(i),o}),this.initialData.error&&(this.error=te(this.initialData.error,this.project),this.error.setParent(this,null),this.error.initChildren(i)),this.subscribeToDependencies(),this.afterAllChildrenInitialized(i),i==null||i.attemptAutoclose("init-children",this.id),this)}subscribe(){return this.activeVersion=!0,this.project.subscribeInstance(this),this}unsubscribe(){return this.project.unsubscribeInstance(this),this}metaSync(i,a=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"meta-sync"))){const o=Ur(this,i),p=this.toMeta();return this.x=i.x||p.x,this.y=i.y||p.y,this.name=i.name!==void 0?i.name:p.name,this.description=i.description!==void 0?i.description:p.description,i.query!==void 0&&(this.query=i.query),super.metaSync(i),i.deleted===!0&&!p.deleted?a==null||a.add(this,S.Removed):i.deleted===!1&&p.deleted?a==null||a.add(this,S.Added):o&&(a==null||a.add(this,S.Updated)),a==null||a.attemptAutoclose("meta-sync",this.id),this}async APILoad(i=ve,...a){return await ir.repository.APILoad(this.id,...a),this}async APICreate(i=ve,...a){return await ir.repository.APICreate(this.toShallowJSON(),...a),this}async APIUpdate(i=ve,...a){return await ir.repository.APIUpdate(this.toShallowJSON(),...a),this}async APIDelete(i=ve,...a){return await ir.repository.APIDelete(this.toShallowJSON(),...a),this}async APIClone(i=ve,...a){return await ir.repository.APIClone(this.id,...a),this}async APILoadVersion(i=ve,a,...o){return await ir.repository.APILoadVersion(this.id,a,...o)}removeFromParent(i=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"remove-from-parent"))){const a=[],o=[],p=[],e=[];return this.parent.type===f.Project?(this.parent.removeSearch(this),e.push(this.parent)):this.parent.detachedChildren.includes(this)&&this.parent.unsubscribeDetachedChild(this),i==null||i.attemptAutoclose("remove-from-parent",this.id),{added:R(p),updated:R(a),removed:R(o),affected:R(e),self:this}}remove({ignoreUpstream:i}={ignoreUpstream:!1},a=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"remove-entity"))){const o=[],p=[],e=[],y=[];if(a!=null&&a.hasRemoved(this.id))return a==null||a.attemptAutoclose("remove-entity",this.id),{added:[],updated:[],removed:[],affected:[],self:this};if(p.push(this),this.unsubscribe(),this.unsubscribeFromDependencies(),this.project.subscribeDeletedInstance(this),this.metaSync({deleted:!0},a),Object.values(this.detachedDependents).forEach(v=>{const{updated:E,removed:w,added:A}=v.entity.onDetachedDependencyRemoved(this,v.field,a);o.push(...E),p.push(...w),e.push(...A)}),this.inputs.forEach(v=>{const{updated:E,removed:w}=v.remove({ignoreUpstream:!0},a);o.push(...E),p.push(...w)}),this.inputsDeclarations.forEach(v=>{const{updated:E,removed:w}=v.remove({ignoreUpstream:!0},a);o.push(...E),p.push(...w)}),this.outputs.forEach(v=>{const{updated:E,removed:w}=v.remove({ignoreUpstream:!0},a);o.push(...E),p.push(...w)}),this.outputsDeclarations.forEach(v=>{const{updated:E,removed:w}=v.remove({ignoreUpstream:!0},a);o.push(...E),p.push(...w)}),this.error){const{updated:v,removed:E}=this.error.remove({ignoreUpstream:!0},a);o.push(...v),p.push(...E)}if(this.successCalls.forEach(v=>{o.push(v),v.removeCaller(this,a)}),this.errorCalls.forEach(v=>{o.push(v),v.removeCaller(this,a)}),!i){const v=this.removeFromParent(a);e.push(...v.added),o.push(...v.updated),p.push(...v.removed),y.push(...v.affected),this.calledBy.forEach(E=>{o.push(E),E.removeCall(this,a)})}return a==null||a.attemptAutoclose("remove-entity",this.id),{added:R(e),updated:R(o),removed:R(p),affected:R(y),self:this}}restore({}={},i=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"restore-entity"))){const a=[],o=[],p=[],e=[];return i!=null&&i.hasAdded(this.id)?(i==null||i.attemptAutoclose("restore-entity",this.id),{added:[],updated:[],removed:[],affected:[],self:this}):(this.subscribe(),this.project.unsubscribeDeletedInstance(this),this.metaSync({deleted:!1},i),Object.values(this.detachedDependents).forEach(y=>{const{updated:v,removed:E,added:w}=y.entity.onDetachedDependencyRestored(this,y.field,i);o.push(...v),p.push(...E),a.push(...w)}),this.inputsDeclarations.forEach(y=>{const{updated:v}=y.restore({},i);o.push(...v)}),this.inputs.forEach(y=>{const{updated:v}=y.restore({},i);o.push(...v)}),this.outputsDeclarations.forEach(y=>{const{updated:v}=y.restore({},i);o.push(...v)}),this.outputs.forEach(y=>{const{updated:v}=y.restore({},i);o.push(...v)}),this.successCalls.forEach(y=>{o.push(y),y.addSuccessCaller(this,i)}),this.errorCalls.forEach(y=>{o.push(y),y.addErrorCaller(this,i)}),this.calledBySuccess.forEach(y=>{o.push(y),y.addSuccessCall(this,i)}),this.calledByError.forEach(y=>{o.push(y),y.addErrorCall(this,i)}),this.calledByEntry.forEach(y=>{o.push(y),y.addCall(this,i)}),i==null||i.attemptAutoclose("restore-entity",this.id),{added:R(a),updated:R(o),removed:R(p),affected:R(e),self:this})}toFlat(i=new Set){return i.has(this.id)?[]:(i.add(this.id),[this,...this.successCalls.flatMap(o=>o.toFlat(i)),...this.errorCalls.flatMap(o=>o.toFlat(i)),...this.inputs.flatMap(o=>o.toFlat(i)),...this.inputsDeclarations.flatMap(o=>o.toFlat(i)),...this.outputs.flatMap(o=>o.toFlat(i)),...this.outputsDeclarations.flatMap(o=>o.toFlat(i)),...this.calledBy.flatMap(o=>o.toFlat(i)),...this.error?this.error.toFlat(i):[]])}toFlatIds(i=new Set){return i.has(this.id)?[]:(i.add(this.id),[this.id,...this.successCalls.flatMap(o=>o.toFlatIds(i)),...this.errorCalls.flatMap(o=>o.toFlatIds(i)),...this.inputs.flatMap(o=>o.toFlatIds(i)),...this.inputsDeclarations.flatMap(o=>o.toFlatIds(i)),...this.outputs.flatMap(o=>o.toFlatIds(i)),...this.outputsDeclarations.flatMap(o=>o.toFlatIds(i)),...this.calledBy.flatMap(o=>o.toFlatIds(i)),...this.error?this.error.toFlatIds(i):[]])}toMeta(){return{id:this.id,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,description:this.description,query:this.query,x:this.x,y:this.y,type:this.type,name:this.name}}toJSON(i=new Set){var a;return i.has(this.id)?this.toReference():(i.add(this.id),{id:this.id,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,type:this.type,name:this.name,query:this.query,description:this.description,x:this.x,y:this.y,successCalls:this.successCalls.map(o=>o.toJSON()),errorCalls:this.errorCalls.map(o=>o.toJSON()),calledBySuccess:this.calledBySuccess.map(o=>o.toReference()),calledByError:this.calledByError.map(o=>o.toReference()),calledByEntry:this.calledByEntry.map(o=>o.toReference()),inputsDeclarations:this.inputsDeclarations.map(o=>o.toJSON()),inputs:this.inputs.map(o=>o.toJSON()),outputsDeclarations:this.outputsDeclarations.map(o=>o.toJSON()),outputs:this.outputs.map(o=>o.toJSON()),error:((a=this.error)==null?void 0:a.toJSON())||null,parent:this.parent.toReference()})}toJSONClone(i=ke){var o,p,e,y,v,E;let a;return(o=i.seenEntityMaps)!=null&&o.has(this.id)?a=i.seenEntityMaps.get(this.id):(a=i.newId||Gr(this,this.project,i.uuidStrategy),i.seenEntityMaps&&i.seenEntityMaps.set(this.id,a)),(p=i.seenEntities)!=null&&p.has(a)||(e=i.seenEntities)!=null&&e.has(this.id)?this.toReference({seenEntityMaps:i.seenEntityMaps}):((y=i.seenEntities)==null||y.add(a),(v=i.seenEntities)==null||v.add(this.id),{id:a,version:N.UUID.uuid(),createdAt:i.timestamp||L().toISOString(),author:N.sessionAuthor,previousVersion:null,deleted:!1,type:f.Search,name:this.name,query:this.query,description:this.description,x:this.x,y:this.y,successCalls:this.successCalls.map(w=>w.toJSONClone({...i,newId:null})),errorCalls:this.errorCalls.map(w=>w.toJSONClone({...i,newId:null})),calledBySuccess:this.calledBySuccess.map(w=>w.toReference({seenEntityMaps:i.seenEntityMaps})),calledByError:this.calledByError.map(w=>w.toReference({seenEntityMaps:i.seenEntityMaps})),calledByEntry:this.calledByEntry.map(w=>w.toReference({seenEntityMaps:i.seenEntityMaps})),inputsDeclarations:this.inputsDeclarations.map(w=>w.toJSONClone({...i,newId:null})),inputs:this.inputs.map(w=>w.toJSONClone({...i,newId:null})),outputsDeclarations:this.outputsDeclarations.map(w=>w.toJSONClone({...i,newId:null})),outputs:this.outputs.map(w=>w.toJSONClone({...i,newId:null})),error:((E=this.error)==null?void 0:E.toJSONClone({...i,newId:null}))||null,parent:this.parent.toReference({seenEntityMaps:i.seenEntityMaps})})}toReference(i=ke){var o;let a=this.id;return(o=i.seenEntityMaps)!=null&&o.has(this.id)&&(a=i.seenEntityMaps.get(this.id)),{id:a+"--"+N.UUID.uuid()+"--ref",type:f.GenericReference,entityId:a,version:this.version,entityType:this.type}}toShallowJSON(i=ke){var o;let a=this.id;return(o=i.seenEntityMaps)!=null&&o.has(this.id)&&(a=i.seenEntityMaps.get(this.id)),{id:a,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,type:this.type,name:this.name,description:this.description,query:this.query,x:this.x,y:this.y,inputs:this.inputs.map(p=>p.toReference(i)),inputsDeclarations:this.inputsDeclarations.map(p=>p.toReference(i)),outputs:this.outputs.map(p=>p.toReference(i)),outputsDeclarations:this.outputsDeclarations.map(p=>p.toReference(i)),successCalls:this.successCalls.map(p=>p.toReference(i)),errorCalls:this.errorCalls.map(p=>p.toReference(i)),calledBySuccess:this.calledBySuccess.map(p=>p.toReference(i)),calledByError:this.calledByError.map(p=>p.toReference(i)),calledByEntry:this.calledByEntry.map(p=>p.toReference(i)),error:this.error?this.error.toReference(i):null,parent:this.parent.toReference(i)}}toFlatJSON(i=new Set){return i.has(this.id)?[]:(i.add(this.id),[this.toShallowJSON(),...this.successCalls.flatMap(o=>o.toFlatJSON(i)),...this.errorCalls.flatMap(o=>o.toFlatJSON(i)),...this.inputs.flatMap(o=>o.toFlatJSON(i)),...this.inputsDeclarations.flatMap(o=>o.toFlatJSON(i)),...this.outputs.flatMap(o=>o.toFlatJSON(i)),...this.outputsDeclarations.flatMap(o=>o.toFlatJSON(i)),...this.calledBy.flatMap(o=>o.toFlatJSON(i)),...this.error?this.error.toFlatJSON(i):[]])}toGenerationTarget(){const i=this.parent.type===f.Project?void 0:this.parent.id;return{id:this.id,name:this.name,description:this.description,type:this.type,query:this.query,calledByEntry:this.calledByEntry.map(a=>a.id),calledBySuccess:this.calledBySuccess.map(a=>a.id),calledByError:this.calledByError.map(a=>a.id),parent:i}}toFlatGenerationTarget(i=new Set){return i.has(this.id)?[]:(i.add(this.id),[this.toGenerationTarget(),...this.successCalls.flatMap(o=>o.toFlatGenerationTarget(i)),...this.errorCalls.flatMap(o=>o.toFlatGenerationTarget(i)),...this.inputs.flatMap(o=>o.toFlatGenerationTarget(i)),...this.inputsDeclarations.flatMap(o=>o.toFlatGenerationTarget(i)),...this.outputs.flatMap(o=>o.toFlatGenerationTarget(i)),...this.outputsDeclarations.flatMap(o=>o.toFlatGenerationTarget(i)),...this.error?this.error.toFlatGenerationTarget(i):[]])}clearErrors(){var i;return this.errors=[],this.inputsDeclarations.forEach(a=>a.clearErrors()),this.inputs.forEach(a=>a.clearErrors()),this.outputs.forEach(a=>a.clearErrors()),this.successCalls.forEach(a=>a.clearErrors()),this.errorCalls.forEach(a=>a.clearErrors()),(i=this.error)==null||i.clearErrors(),this}validate(){const i=Xj(this);return this.errors=i,{success:!0}}getErrors(){return[...this.errors,...this.inputsDeclarations.flatMap(a=>a.getErrors()),...this.inputs.flatMap(a=>a.getErrors()),...this.outputsDeclarations.flatMap(a=>a.getErrors()),...this.outputs.flatMap(a=>a.getErrors()),...this.error?this.error.getErrors():[]]}getShallowErrors(){return this.errors}clone(i=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"clone-entity")),a=null,o=null,p=!0){var K,Z,ie,X;let e=Fr(a,this);const y=this.toJSON(),v=o||N.UUID.uuid();y.inputs=[];const E=v.split("-id"),w=E[E.length-1||0]||v;y.id=v,y.version=N.UUID.uuid(),y.createdAt=(i==null?void 0:i.timestamp)||L().toISOString(),y.author=(i==null?void 0:i.author)||"1",y.previousVersion=null,y.deleted=!1;const A=lr(y,e);a?A.setParent(a,null):A.setParent(this.parent,null),p&&A.subscribe(),A.initChildren(i),i==null||i.add(A,S.Added);const $=(K=this.inputsDeclarations)==null?void 0:K.map((ue,re)=>ue.clone(i,this,w+"-input-declaration-"+re+"-id",p));A.inputsDeclarations=$;const V=(Z=this.outputsDeclarations)==null?void 0:Z.map((ue,re)=>ue.clone(i,this,w+"-output-declaration-"+re+"-id",p));A.outputsDeclarations=V;const U=(ie=this.inputs)==null?void 0:ie.map((ue,re)=>ue.clone(i,A,w+"-input-map-"+re+"-id",p));A.inputs=U;const G=(X=this.outputs)==null?void 0:X.map((ue,re)=>ue.clone(i,A,w+"-output-map-"+re+"-id",p));return A.outputs=G,this.error&&(A.error=this.error.clone(i,A,w+"-error-map-id",p)),i==null||i.attemptAutoclose("clone-entity",this.id),A}syncInputMaps(i=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"sync-input-maps"))){const a=[],o=[],p=[],e=[];return this.inputsDeclarations.forEach(y=>{if(!this.inputs.find(E=>{var w;return((w=E.declaration)==null?void 0:w.id)===y.id})){const E={id:N.UUID.uuid(),version:N.UUID.uuid(),createdAt:(i==null?void 0:i.timestamp)||L().toISOString(),author:N.sessionAuthor,previousVersion:null,deleted:!1,type:f.InputMap,declaration:y.toJSON(),readsValue:null,defaultValue:null,index:this.inputs.length,name:null,codeName:null,description:null,parent:this.toReference()},w=te(E,this.project);w.setParent(this,i),w.initChildren(i),i==null||i.add(w,S.Added),w.addSelfToProject(i),a.push(this),o.push(w)}}),this.inputs.forEach(y=>{if(y.declaration){if(!this.inputsDeclarations.find(E=>{var w;return E.id===((w=y.declaration)==null?void 0:w.id)})){const{updated:E,removed:w}=y.remove({ignoreUpstream:!1},i);E.push(...E),p.push(...w)}}else{const{updated:v,removed:E}=y.remove({ignoreUpstream:!1},i);a.push(...v),p.push(...E)}}),i==null||i.attemptAutoclose("sync-input-maps",this.id),{updated:R(a),added:R(o),removed:R(p),affected:R(e),self:this}}getUnusedInputs(){return this.inputs.filter(i=>i.suggestion||!i.readsValue&&!i.defaultValue)}getUnusedOutputs(){return this.outputs.filter(i=>i.suggestion||!i.writesValues.length)}getUsedInputs(){return this.inputs.filter(i=>!i.suggestion&&(i.readsValue||i.defaultValue))}getUsedOutputs(){return this.outputs.filter(i=>!i.suggestion&&i.writesValues.length)}};g(ir,"repository",{APICreate:async(i,...a)=>i,APIUpdate:async(i,...a)=>i,APIDelete:async(i,...a)=>i,APIClone:async(i,...a)=>{},APILoad:async(i,...a)=>null,APILoadVersion:async(i,a,...o)=>null}),g(ir,"type",f.Search),g(ir,"USER_MANAGED_PARENT_TYPES",[...Mr,f.Project]),g(ir,"PARENT_TYPES",[...ir.USER_MANAGED_PARENT_TYPES]),g(ir,"MUTABLE_BASE_PROPERTIES",["name","description","query"]),g(ir,"INMUTABLE_BASE_PROPERTIES",["id","type","version","createdAt","author","previousVersion"]),g(ir,"BASE_PROPERTIES",[...ir.MUTABLE_BASE_PROPERTIES,...ir.INMUTABLE_BASE_PROPERTIES]),g(ir,"MUTABLE_META_PROPERTIES",[...ir.MUTABLE_BASE_PROPERTIES,"x","y"]),g(ir,"INMUTABLE_META_PROPERTIES",[...ir.INMUTABLE_BASE_PROPERTIES]),g(ir,"META_PROPERTIES",[...ir.MUTABLE_META_PROPERTIES,...ir.INMUTABLE_META_PROPERTIES]),g(ir,"MUTABLE_UPSTREAM_PROPERTIES",["calledBySuccess","calledByError","calledByEntry"]),g(ir,"INMUTABLE_UPSTREAM_PROPERTIES",["parent"]),g(ir,"UPSTREAM_PROPERTIES",[...ir.MUTABLE_UPSTREAM_PROPERTIES,...ir.INMUTABLE_UPSTREAM_PROPERTIES]),g(ir,"MUTABLE_DOWNSTREAM_PROPERTIES",["successCalls","errorCalls","inputsDeclarations","inputs","outputsDeclarations","outputs","error"]),g(ir,"INMUTABLE_DOWNSTREAM_PROPERTIES",[]),g(ir,"DOWNSTREAM_PROPERTIES",[...ir.MUTABLE_DOWNSTREAM_PROPERTIES,...ir.INMUTABLE_DOWNSTREAM_PROPERTIES]),g(ir,"PROPERTIES",[...is.META_PROPERTIES,...is.UPSTREAM_PROPERTIES,...is.DOWNSTREAM_PROPERTIES]);let co=ir;function uF(d){const u=gye(),i=d.toJSON();u.safeParse(i).success,d.functions.forEach(p=>p.validate()),d.events.forEach(p=>p.validate());const o=[];return vr(d.errors,o)}const Hve=Object.freeze(Object.defineProperty({__proto__:null,validate:uF},Symbol.toStringTag,{value:"Module"})),Xt=class Xt extends Nr{constructor(i,a){super(i);g(this,"initialData");g(this,"id");g(this,"name");g(this,"codeName",null);g(this,"description",null);g(this,"x");g(this,"y");g(this,"type",f.InstalledProject);g(this,"implements");g(this,"functions",[]);g(this,"events",[]);g(this,"parent");g(this,"errors",[]);g(this,"project");g(this,"detachedDependents",{});g(this,"knownVersions",null);g(this,"activeVersion",!1);g(this,"initialized",!1);g(this,"startedInitialization",!1);this.initialData=i,this.project=a,this.id=i.id,this.name=i.name,this.description=i.description,this.x=i.x,this.y=i.y,this.implements=i.implements}static new(i=null){return{id:N.UUID.uuid(),version:N.UUID.uuid(),createdAt:(i==null?void 0:i.timestamp)||L().toISOString(),author:(i==null?void 0:i.author)||N.sessionAuthor,previousVersion:null,deleted:!1,type:f.InstalledProject,name:"",codeName:null,description:"",implements:null,functions:[],events:[],x:0,y:0,parent:null}}static fromGenerationTarget(i,a){const o=a,p={id:i.id,version:N.UUID.uuid(),createdAt:L().toISOString(),author:N.sessionAuthor,previousVersion:null,deleted:!1,name:i.name,type:f.InstalledProject,codeName:i.codeName||null,description:i.description||null,functions:[],events:[],implements:{entityId:i.implements,version:N.UUID.uuid(),entityType:f.Project,type:f.GenericReference,id:N.UUID.uuid()},x:0,y:0,parent:o},e=te(p,a);return e.setParent(o,null),e}static validateGenerationTarget(i,a){let o=JSON.parse(JSON.stringify(i));const p=[];return p.push(...Br(o)),{errors:p,modifiedData:o}}validateGeneratedUpdate(i){const a=[];return i.parent&&a.push(new ee({id:`${this.id}--${k.InvalidParentUpdate}`,code:k.InvalidParentUpdate,severity:q.Error,message:`Entity of type '${this.type}' with id '${this.id}' cannot have the 'parent' property updated. The 'parent' on an installed project, must be the root project as it is a globally declared entity.`})),{errors:a,modifiedData:i}}subscribeDependents(i){return i.forEach(a=>{this.detachedDependents[a.entity.id]||(this.detachedDependents[a.entity.id]=a)}),this}unsubscribeDependents(i){return i.forEach(a=>{this.detachedDependents[a.entity.id]&&delete this.detachedDependents[a.entity.id]}),this}syncDependents(i=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"sync-dependents"))){const a=[],o=[],p=[],e=[];return Object.values(this.detachedDependents).forEach(y=>{const v=y.entity.afterAllChildrenInitialized(i);a.push(...v.updated),o.push(...v.added),p.push(...v.removed),e.push(...v.affected)}),i==null||i.attemptAutoclose("sync-dependents",this.id),{updated:R(a),added:R(o),removed:R(p),affected:R(e),self:this}}onDetachedDependencyRemoved(i,a,o){const p=[],e=[],y=[],v=[];return{updated:R(p),added:R(e),removed:R(y),affected:R(v),self:this}}onDetachedDependencyRestored(i,a,o){const p=[],e=[],y=[],v=[];return{updated:R(p),added:R(e),removed:R(y),affected:R(v),self:this}}unsubscribeFromDependencies(){return this}subscribeToDependencies(){return this}increaseVersion(i){if(i&&!L(i).isValid())throw new Error(`The shared timestamp '${i}' is not a valid ISO 8601 date string.`);return i&&L(i).isSame(L(this.createdAt))?this:(this.previousVersion=this.version,this.version=N.UUID.uuid(),this.createdAt=L(i).toISOString()||L().toISOString(),this)}captureVersion(){var a;const i=((a=this.knownVersions)==null?void 0:a.get(this.version))||new Xt(this,this.project);return i.metaSync(this.toMeta(),null),this.knownVersions=this.knownVersions?this.knownVersions.set(this.version,i):new Map([[this.version,i]]),i.functions=[...this.functions],i.events=[...this.events],i.parent=this.parent,this}recursiveCaptureUpstreamVersions(i){const a=[],o=[],p=[],e=[];if(this.parent){this.parent.increaseVersion(i);const y=this.parent.recursiveCaptureUpstreamVersions(i);a.push(this.parent,...y.updated),o.push(...y.added),p.push(...y.removed)}return{updated:R(a),added:R(o),removed:R(p),affected:R(e),self:this}}async restoreVersion(i){var v;const a=[],o=[],p=[],e=[];if(this.version===i)return{updated:R(a),added:R(o),removed:R(p),affected:R(e),self:this};if(!this.knownVersions){const E=new Map;for(const[w,A]of this.knownVersions||new Map){if(E.set(w,A),A.activeVersion=!1,A.knownVersions)for(const[$,V]of A.knownVersions)E.set($,V);A.knownVersions=null}}let y=(v=this.knownVersions)==null?void 0:v.get(i);if(!y){const E=await this.APILoadVersion({},i);if(!E)throw new Error(`Version with id '${i}' for entity with id '${this.id}' not found.`);y=new Xt(E,this.project)}return this.metaSync(y.toShallowJSON(),null),this.previousVersion=y.previousVersion,this.version=y.version,this.createdAt=y.createdAt,this.author=y.author,this.deleted=y.deleted,this.functions=y.functions,this.events=y.events,this.parent=y.parent,{updated:R(a),added:R(o),removed:R(p),affected:R(e),self:this}}updateWithShallowTransfer(i,a=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"update-with-shallow-transfer"))){if(this.metaSync(i,a),this.version=i.version,this.createdAt=i.createdAt,this.author=i.author,this.deleted=i.deleted,this.previousVersion=i.previousVersion,this.unsubscribeFromDependencies(),i.parent){const o=J(i.parent),p=this.project.get(o),e=this.parent;if(e&&e.id!==(p==null?void 0:p.id)&&this.removeFromParent(a),p)this.setParent(p,a);else throw a==null||a.attemptAutoclose("update-with-shallow-transfer",this.id),new Error(`${this.type} with id '${this.id}' has a 'parent' reference '${o}' that isn't found in the project`)}else throw a==null||a.attemptAutoclose("update-with-shallow-transfer",this.id),new Error(`${this.type} with id '${this.id}' must have a 'parent'`);return this.captureVersion(),this.subscribeToDependencies(),a==null||a.attemptAutoclose("update-with-shallow-transfer",this.id),this}hydrateAncestors(){const i=[],a=[],o=[],p=[];if(this.initialData.parent){const e=J(this.initialData.parent),y=this.project.get(e);if(y)this.setParent(y,null),i.push(y);else throw new Error(`${this.type} with id '${this.id}' has a 'parent' reference '${e}' that isn't found in the project`)}else throw new Error(`${this.type} with id '${this.id}' must have a 'parent'`);return{updated:R(i),added:R(a),removed:R(o),affected:R(p),self:this}}afterAllChildrenInitialized(i=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"after-all-children-initialized"))){const a=[],o=[],p=[],e=[];return this.initialized=!0,this.captureVersion(),i==null||i.attemptAutoclose("after-all-children-initialized",this.id),{updated:R(a),added:R(o),removed:R(p),affected:R(e),self:this}}addSelfToProject(i=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"add-self-to-project"))){const a=[this],o=[],p=[],e=[];return this.project.addInstalledProject(this),this.subscribe(),this.subscribeToDependencies(),i==null||i.attemptAutoclose("add-self-to-project",this.id),{updated:R(a),added:R(o),removed:R(p),affected:R(e),self:this}}setParent(i,a=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"set-parent"))){var o;return((o=this.parent)==null?void 0:o.id)!==(i==null?void 0:i.id)&&(this.parent=i,a&&(a==null||a.add(this,S.Updated))),a==null||a.attemptAutoclose("set-parent",this.id),this}initChildren(i=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"init-children"))){return this.initialized||this.startedInitialization?this:(this.startedInitialization=!0,this.functions=this.initialData.functions.map(a=>{const o=te(a,this.project);return o.setParent(this,null),o.initChildren(i),o}),this.events=this.initialData.events.map(a=>{const o=te(a,this.project);return o.setParent(this,null),o.initChildren(i),o}),this.subscribeToDependencies(),this.afterAllChildrenInitialized(i),i==null||i.attemptAutoclose("init-children",this.id),this)}subscribe(){return this.activeVersion=!0,this.project.subscribeInstance(this),this}unsubscribe(){return this.project.unsubscribeInstance(this),this}metaSync(i,a=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"meta-sync"))){const o=Ur(this,i),p=this.toMeta();return this.x=i.x||p.x,this.y=i.y||p.y,super.metaSync(i),i.deleted===!0&&!p.deleted?a==null||a.add(this,S.Removed):i.deleted===!1&&p.deleted?a==null||a.add(this,S.Added):o&&(a==null||a.add(this,S.Updated)),a==null||a.attemptAutoclose("meta-sync",this.id),this}async APILoad(i=ve,...a){return await Xt.repository.APILoad(this.id,...a),this}async APICreate(i=ve,...a){return await Xt.repository.APICreate(this.toShallowJSON(),...a),this}async APIUpdate(i=ve,...a){return await Xt.repository.APIUpdate(this.toShallowJSON(),...a),this}async APIDelete(i=ve,...a){return await Xt.repository.APIDelete(this.toShallowJSON(),...a),this}async APIClone(i=ve,...a){return await Xt.repository.APIClone(this.id,...a),this}async APILoadVersion(i=ve,a,...o){return await Xt.repository.APILoadVersion(this.id,a,...o)}removeFromParent(i=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"remove-from-parent"))){const a=[],o=[],p=[],e=[];return this.parent.removeInstalledProject(this),i==null||i.attemptAutoclose("remove-from-parent",this.id),{added:R(p),updated:R(a),removed:R(o),affected:R(e),self:this}}remove({ignoreUpstream:i}={ignoreUpstream:!1},a=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"remove-entity"))){const o=[],p=[],e=[],y=[];if(a!=null&&a.hasRemoved(this.id))return a==null||a.attemptAutoclose("remove-entity",this.id),{added:[],updated:[],removed:[],affected:[],self:this};if(p.push(this),this.unsubscribe(),this.unsubscribeFromDependencies(),this.project.subscribeDeletedInstance(this),this.metaSync({deleted:!0},a),Object.values(this.detachedDependents).forEach(v=>{const{updated:E,removed:w,added:A}=v.entity.onDetachedDependencyRemoved(this,v.field,a);o.push(...E),p.push(...w),e.push(...A)}),this.functions.forEach(v=>{const{updated:E,removed:w}=v.remove({ignoreUpstream:!1},a);o.push(...E),p.push(...w)}),this.events.forEach(v=>{const{updated:E,removed:w}=v.remove({ignoreUpstream:!1},a);o.push(...E),p.push(...w)}),!i){const v=this.removeFromParent(a);e.push(...v.added),o.push(...v.updated),p.push(...v.removed),y.push(...v.affected)}return a==null||a.attemptAutoclose("remove-entity",this.id),{added:[],updated:[],removed:[],affected:R(y),self:this}}restore({}={},i=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"restore-entity"))){const a=[],o=[],p=[],e=[];return i!=null&&i.hasAdded(this.id)?(i==null||i.attemptAutoclose("restore-entity",this.id),{added:[],updated:[],removed:[],affected:[],self:this}):(this.subscribe(),this.project.unsubscribeDeletedInstance(this),this.metaSync({deleted:!1},i),Object.values(this.detachedDependents).forEach(y=>{const{updated:v,removed:E,added:w,affected:A}=y.entity.onDetachedDependencyRestored(this,y.field,i);a.push(...v),o.push(...E),p.push(...w),e.push(...A)}),this.functions.forEach(y=>{const{updated:v,removed:E,added:w,affected:A}=y.restore({},i);a.push(...v),o.push(...E),p.push(...w),e.push(...A)}),this.events.forEach(y=>{const{updated:v,removed:E,added:w,affected:A}=y.restore({},i);a.push(...v),o.push(...E),p.push(...w),e.push(...A)}),i==null||i.attemptAutoclose("restore-entity",this.id),{added:[],updated:[],removed:[],affected:[],self:this})}toFlat(i=new Set){return i.has(this.id)?[]:(i.add(this.id),[this,...this.functions.flatMap(o=>o.toFlat(i)),...this.events.flatMap(o=>o.toFlat(i))])}toFlatIds(i=new Set){return i.has(this.id)?[]:(i.add(this.id),[this.id,...this.functions.flatMap(o=>o.toFlatIds(i)),...this.events.flatMap(o=>o.toFlatIds(i))])}toMeta(){return{id:this.id,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,codeName:this.codeName,description:this.description,x:this.x,y:this.y,type:this.type,name:this.name}}toJSON(i=new Set){return i.has(this.id)?this.toReference():(i.add(this.id),{id:this.id,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,type:this.type,name:this.name,codeName:this.codeName,description:this.description,implements:this.implements,functions:this.functions.map(a=>a.toJSON(i)),events:this.events.map(a=>a.toJSON(i)),parent:this.parent.toReference(),x:this.x,y:this.y})}toJSONClone(i=ke){var o,p,e,y,v;let a;return(o=i.seenEntityMaps)!=null&&o.has(this.id)?a=i.seenEntityMaps.get(this.id):(a=i.newId||Gr(this,this.project,i.uuidStrategy),i.seenEntityMaps&&i.seenEntityMaps.set(this.id,a)),(p=i.seenEntities)!=null&&p.has(a)||(e=i.seenEntities)!=null&&e.has(this.id)?this.toReference({seenEntityMaps:i.seenEntityMaps}):((y=i.seenEntities)==null||y.add(a),(v=i.seenEntities)==null||v.add(this.id),{id:a,version:N.UUID.uuid(),createdAt:i.timestamp||L().toISOString(),previousVersion:null,author:this.author,deleted:this.deleted,type:this.type,name:this.name,codeName:this.codeName,description:this.description,implements:this.implements,functions:this.functions.map(E=>E.toJSONClone({...i,newId:null})),events:this.events.map(E=>E.toJSONClone({...i,newId:null})),parent:this.parent.toReference({seenEntityMaps:i.seenEntityMaps}),x:this.x,y:this.y})}toReference(i=ke){var o;let a=this.id;return(o=i.seenEntityMaps)!=null&&o.has(this.id)&&(a=i.seenEntityMaps.get(this.id)),{id:a+"--"+N.UUID.uuid()+"--ref",type:f.GenericReference,entityId:a,version:this.version,entityType:this.type}}toShallowJSON(i=ke){var o;let a=this.id;return(o=i.seenEntityMaps)!=null&&o.has(this.id)&&(a=i.seenEntityMaps.get(this.id)),{id:a,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,type:this.type,name:this.name,codeName:this.codeName,description:this.description,x:this.x,y:this.y,implements:this.implements,functions:this.functions.map(p=>p.toReference(i)),events:this.events.map(p=>p.toReference(i)),parent:this.parent.toReference(i)}}toFlatJSON(i=new Set){return i.has(this.id)?[]:(i.add(this.id),[this.toShallowJSON(),...this.functions.flatMap(o=>o.toFlatJSON(i)),...this.events.flatMap(o=>o.toFlatJSON(i))])}toGenerationTarget(){var i;return{id:this.id,name:this.name,codeName:this.codeName,description:this.description,type:this.type,implements:(i=this.implements)==null?void 0:i.id}}toFlatGenerationTarget(i=new Set){return i.has(this.id)?[]:(i.add(this.id),[this.toGenerationTarget(),...this.functions.flatMap(o=>o.toFlatGenerationTarget(i)),...this.events.flatMap(o=>o.toFlatGenerationTarget(i))])}clearErrors(){return this.errors=[],this.functions.forEach(i=>i.clearErrors()),this.events.forEach(i=>i.clearErrors()),this}validate(){const i=uF(this);return this.errors=i,{success:!0}}getErrors(){return[...this.errors,...this.functions.flatMap(a=>a.getErrors()),...this.events.flatMap(a=>a.getErrors())]}getShallowErrors(){return this.errors}clone(i=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"clone-entity")),a=null,o=null,p=!0){var U,G;let e=Fr(a,this);const y=this.toJSON(),v=o||N.UUID.uuid();y.functions=[],y.events=[];const E=v.split("-id"),w=E[E.length-1||0]||v;y.id=v,y.version=N.UUID.uuid(),y.createdAt=(i==null?void 0:i.timestamp)||L().toISOString(),y.author=(i==null?void 0:i.author)||"1",y.previousVersion=null,y.deleted=!1;const A=lr(y,e);a&&A.setParent(a,null),p&&A.subscribe(),A.initChildren(i),i==null||i.add(A,S.Added);const $=(U=this.functions)==null?void 0:U.map((K,Z)=>K.clone(i,A,w+"-exported-function-declaration-"+Z+"-id",p));A.functions=$;const V=(G=this.events)==null?void 0:G.map((K,Z)=>K.clone(i,A,w+"-exported-event-"+Z+"-id",p));return A.events=V,i==null||i.attemptAutoclose("clone-entity",this.id),A}};g(Xt,"repository",{APICreate:async(i,...a)=>i,APIUpdate:async(i,...a)=>i,APIDelete:async(i,...a)=>i,APIClone:async(i,...a)=>{},APILoad:async(i,...a)=>null,APILoadVersion:async(i,a,...o)=>null}),g(Xt,"type",f.InstalledProject),g(Xt,"USER_MANAGED_PARENT_TYPES",[f.Project]),g(Xt,"PARENT_TYPES",[...Xt.USER_MANAGED_PARENT_TYPES]),g(Xt,"MUTABLE_BASE_PROPERTIES",[]),g(Xt,"INMUTABLE_BASE_PROPERTIES",["id","version","name","description","type","createdAt","author","previousVersion"]),g(Xt,"BASE_PROPERTIES",[...Xt.MUTABLE_BASE_PROPERTIES,...Xt.INMUTABLE_BASE_PROPERTIES]),g(Xt,"MUTABLE_META_PROPERTIES",["x","y"]),g(Xt,"INMUTABLE_META_PROPERTIES",[...Xt.INMUTABLE_BASE_PROPERTIES]),g(Xt,"META_PROPERTIES",[...Xt.MUTABLE_META_PROPERTIES,...Xt.INMUTABLE_META_PROPERTIES]),g(Xt,"MUTABLE_UPSTREAM_PROPERTIES",[]),g(Xt,"INMUTABLE_UPSTREAM_PROPERTIES",["implements","parent"]),g(Xt,"UPSTREAM_PROPERTIES",[...Xt.MUTABLE_UPSTREAM_PROPERTIES,...Xt.INMUTABLE_UPSTREAM_PROPERTIES]),g(Xt,"MUTABLE_DOWNSTREAM_PROPERTIES",["functions","events"]),g(Xt,"INMUTABLE_DOWNSTREAM_PROPERTIES",[]),g(Xt,"DOWNSTREAM_PROPERTIES",[...Xt.MUTABLE_DOWNSTREAM_PROPERTIES,...Xt.INMUTABLE_DOWNSTREAM_PROPERTIES]),g(Xt,"PROPERTIES",[...Xt.META_PROPERTIES,...Xt.UPSTREAM_PROPERTIES,...Xt.DOWNSTREAM_PROPERTIES]);let po=Xt;function cF(d){var y;const u=Zhe(),i=d.toJSON();u.safeParse(i).success,d.inputs.forEach(v=>v.validate()),d.outputs.forEach(v=>v.validate()),(y=d.error)==null||y.validate();const o=Ua(d),p=pF(d),e=[...o,...p];return vr(d.errors,e)}function pF(d){const u=[],i=Sy(d.parent,null),a=i==null?void 0:i.entity;if(!a)u.push(ft({id:`${d.id}--${ae.InternalCallParentMissingDataType}`,code:ae.InternalCallParentMissingDataType,severity:q.Error,message:`Entity of type "${d.type}" with id "${d.id}", belongs to a variable whose data type entity doesn't contain its declaration method (function-declaration) its id "${d.declaration}".`,entity:d}).error);else if(![f.DefinitionEntity,f.BuiltInBaseEntity,f.PrimitiveEntity].includes(a.type))u.push(ft({id:`${d.id}--${ae.InternalCallParentDeclarationEntityInvalidType}`,code:ae.InternalCallParentDeclarationEntityInvalidType,severity:q.Error,message:`Entity of type "${d.type}" with id "${d.id}", belongs to a variable whose data type 'entity' is not a definition entity, built-in base entity or primitive entity.
103
+ You shouldn't have to manually update a 'parent' property. The equivalent result is to change its callers, the value writters of its inputs, or the value readers of its outputs.`})),{errors:a,modifiedData:i}}subscribeDependents(i){return i.forEach(a=>{this.detachedDependents[a.entity.id]||(this.detachedDependents[a.entity.id]=a)}),this}unsubscribeDependents(i){return i.forEach(a=>{this.detachedDependents[a.entity.id]&&delete this.detachedDependents[a.entity.id]}),this}syncDependents(i=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"sync-dependents"))){const a=[],o=[],p=[],e=[];return Object.values(this.detachedDependents).forEach(y=>{const v=y.entity.afterAllChildrenInitialized(i);a.push(...v.updated),o.push(...v.added),p.push(...v.removed),e.push(...v.affected)}),i==null||i.attemptAutoclose("sync-dependents",this.id),{updated:R(a),added:R(o),removed:R(p),affected:R(e),self:this}}onDetachedDependencyRemoved(i,a,o){const p=[],e=[],y=[],v=[];if(a==="parent"){const{updated:E,added:w,removed:A}=this.remove({ignoreUpstream:!1},o);p.push(...E),e.push(...w),y.push(...A)}return{updated:R(p),added:R(e),removed:R(y),affected:R(v),self:this}}onDetachedDependencyRestored(i,a,o){const p=[],e=[],y=[],v=[];if(a==="parent"){const{updated:E,added:w,removed:A}=this.restore({},o);p.push(...E),e.push(...w),y.push(...A)}return{updated:R(p),added:R(e),removed:R(y),affected:R(v),self:this}}unsubscribeFromDependencies(){var i;return(i=this.parent)==null||i.unsubscribeDependents([{entity:this,field:"parent"}]),this.project.off(Vr.PROJECT_INITIALIZED,this.onProjectInitialized),this.project.off(Vr.PERSISTED_DEFINITION_ENTITY_ADDED,this.onPersistedEntityAdded),this.project.off(Vr.PERSISTED_DEFINITION_ENTITY_UPDATED,this.onPersistedEntityUpdated),this.project.off(Vr.PERSISTED_DEFINITION_ENTITY_REMOVED,this.onPersistedEntityRemoved),this.project.off(Vr.RELATIONAL_DATABASE_DEFINITION_ENTITY_ADDED,this.onRelationalDatabaseEntityAdded),this.project.off(Vr.RELATIONAL_DATABASE_DEFINITION_ENTITY_UPDATED,this.onRelationalDatabaseEntityUpdated),this.project.off(Vr.RELATIONAL_DATABASE_DEFINITION_ENTITY_REMOVED,this.onRelationalDatabaseEntityRemoved),this}subscribeToDependencies(){var i;return(i=this.parent)==null||i.subscribeDependents([{entity:this,field:"parent"}]),this.project.on(Vr.PROJECT_INITIALIZED,this.onProjectInitialized),this.project.on(Vr.PERSISTED_DEFINITION_ENTITY_ADDED,this.onPersistedEntityAdded),this.project.on(Vr.PERSISTED_DEFINITION_ENTITY_UPDATED,this.onPersistedEntityUpdated),this.project.on(Vr.PERSISTED_DEFINITION_ENTITY_REMOVED,this.onPersistedEntityRemoved),this.project.on(Vr.RELATIONAL_DATABASE_DEFINITION_ENTITY_ADDED,this.onRelationalDatabaseEntityAdded),this.project.on(Vr.RELATIONAL_DATABASE_DEFINITION_ENTITY_UPDATED,this.onRelationalDatabaseEntityUpdated),this.project.on(Vr.RELATIONAL_DATABASE_DEFINITION_ENTITY_REMOVED,this.onRelationalDatabaseEntityRemoved),this}increaseVersion(i){if(i&&!L(i).isValid())throw new Error(`The shared timestamp '${i}' is not a valid ISO 8601 date string.`);return i&&L(i).isSame(L(this.createdAt))?this:(this.previousVersion=this.version,this.version=N.UUID.uuid(),this.createdAt=L(i).toISOString()||L().toISOString(),this)}captureVersion(){var a;const i=((a=this.knownVersions)==null?void 0:a.get(this.version))||new ir(this,this.project);return i.metaSync(this.toMeta(),null),this.knownVersions=this.knownVersions?this.knownVersions.set(this.version,i):new Map([[this.version,i]]),i.inputs=[...this.inputs],i.outputs=[...this.outputs],i.error=this.error,i.inputsDeclarations=[...this.inputsDeclarations],i.outputsDeclarations=[...this.outputsDeclarations],i.successCalls=[...this.successCalls],i.errorCalls=[...this.errorCalls],i.calledByEntry=[...this.calledByEntry],i.calledBySuccess=[...this.calledBySuccess],i.calledByError=[...this.calledByError],i.parent=this.parent,this}recursiveCaptureUpstreamVersions(i){const a=[],o=[],p=[],e=[];if(this.parent){this.parent.increaseVersion(i);const y=this.parent.recursiveCaptureUpstreamVersions(i);a.push(this.parent,...y.updated),o.push(...y.added),p.push(...y.removed)}return{updated:R(a),added:R(o),removed:R(p),affected:R(e),self:this}}async restoreVersion(i){var v;const a=[],o=[],p=[],e=[];if(this.version===i)return{updated:R(a),added:R(o),removed:R(p),affected:R(e),self:this};if(!this.knownVersions){const E=new Map;for(const[w,A]of this.knownVersions||new Map){if(E.set(w,A),A.activeVersion=!1,A.knownVersions)for(const[$,V]of A.knownVersions)E.set($,V);A.knownVersions=null}}let y=(v=this.knownVersions)==null?void 0:v.get(i);if(!y){const E=await this.APILoadVersion({},i);if(!E)throw new Error(`Version with id '${i}' for entity with id '${this.id}' not found.`);y=new ir(E,this.project)}return this.metaSync(y.toShallowJSON(),null),this.previousVersion=y.previousVersion,this.version=y.version,this.createdAt=y.createdAt,this.author=y.author,this.deleted=y.deleted,this.inputs=y.inputs,this.outputs=y.outputs,this.error=y.error,this.inputsDeclarations=y.inputsDeclarations,this.outputsDeclarations=y.outputsDeclarations,this.successCalls=y.successCalls,this.errorCalls=y.errorCalls,this.calledByEntry=y.calledByEntry,this.calledBySuccess=y.calledBySuccess,this.calledByError=y.calledByError,this.parent=y.parent,{updated:R(a),added:R(o),removed:R(p),affected:R(e),self:this}}updateWithShallowTransfer(i,a=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"update-with-shallow-transfer"))){if(this.metaSync(i,a),this.version=i.version,this.createdAt=i.createdAt,this.author=i.author,this.deleted=i.deleted,this.previousVersion=i.previousVersion,this.unsubscribeFromDependencies(),i.parent){const o=J(i.parent),p=this.project.get(o),e=this.parent;if(e&&e.id!==(p==null?void 0:p.id)&&this.removeFromParent(a),p)this.setParent(p,a);else throw a==null||a.attemptAutoclose("update-with-shallow-transfer",this.id),new Error(`${this.type} with id '${this.id}' has a 'parent' reference '${o}' that isn't found in the project`)}else throw a==null||a.attemptAutoclose("update-with-shallow-transfer",this.id),new Error(`${this.type} with id '${this.id}' must have a 'parent'`);return i.calledByEntry.forEach(o=>{const p=J(o),e=this.project.get(p);e&&(this.addEntryCaller(e,a),e.addCall(this,a))}),[...this.calledByEntry].forEach(o=>{i.calledByEntry.find(e=>J(e)===o.id)||(this.removeCaller(o,a),o.removeCall(this,a))}),i.calledBySuccess.forEach(o=>{const p=J(o),e=this.project.get(p);e&&(this.addSuccessCaller(e,a),e.addSuccessCall(this,a))}),[...this.calledBySuccess].forEach(o=>{i.calledBySuccess.find(e=>J(e)===o.id)||(this.removeCaller(o,a),o.removeCall(this,a))}),i.calledByError.forEach(o=>{const p=J(o),e=this.project.get(p);e&&(this.addErrorCaller(e,a),e.addErrorCall(this,a))}),[...this.calledBySuccess].forEach(o=>{i.calledBySuccess.find(e=>J(e)===o.id)||(this.removeCaller(o,a),o.removeCall(this,a))}),this.captureVersion(),this.subscribeToDependencies(),a==null||a.attemptAutoclose("update-with-shallow-transfer",this.id),this}hydrateAncestors(){const i=[],a=[],o=[],p=[];if(this.initialData.parent){const e=J(this.initialData.parent),y=this.project.get(e);if(y)this.setParent(y,null),i.push(y);else throw new Error(`${this.type} with id '${this.id}' has a 'parent' reference '${e}' that isn't found in the project`)}else throw new Error(`${this.type} with id '${this.id}' must have a 'parent'`);return this.initialData.calledByEntry.forEach(e=>{const y=J(e),v=this.project.get(y);v&&this.addEntryCaller(v,null)}),this.initialData.calledBySuccess.forEach(e=>{const y=J(e),v=this.project.get(y);v&&this.addSuccessCaller(v,null)}),this.initialData.calledByError.forEach(e=>{const y=J(e),v=this.project.get(y);v&&this.addErrorCaller(v,null)}),{updated:R(i),added:R(a),removed:R(o),affected:R(p),self:this}}afterAllChildrenInitialized(i=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"after-all-children-initialized"))){const a=[],o=[],p=[],e=[];this.initialized=!0;const{updated:y,added:v,removed:E}=this.syncInputMaps(i);return a.push(...y),o.push(...v),p.push(...E),this.project.initialized&&(this.metaSync({query:this.rehydrateQuery()},i),this.state=this.queryToState(),OA(this,this.state,i)),this.captureVersion(),i==null||i.attemptAutoclose("after-all-children-initialized",this.id),{updated:R(a),added:R(o),removed:R(p),affected:R(e),self:this}}addSelfToProject(i=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"add-self-to-project"))){const a=[this],o=[],p=[],e=[];return this.parent===this.project&&this.project.addSearch(this),this.successCalls.forEach(y=>{y.addSuccessCaller(this,i),a.push(y)}),this.errorCalls.forEach(y=>{y.addErrorCaller(this,i),a.push(y)}),this.calledByEntry.forEach(y=>{y.addCall(this,i),a.push(y)}),this.calledBySuccess.forEach(y=>{y.addSuccessCall(this,i),a.push(y)}),this.calledByError.forEach(y=>{y.addErrorCall(this,i),a.push(y)}),this.subscribe(),this.subscribeToDependencies(),i==null||i.attemptAutoclose("add-self-to-project",this.id),{updated:R(a),added:R(o),removed:R(p),affected:R(e),self:this}}get calledBy(){return[...this.calledByEntry,...this.calledBySuccess,...this.calledByError]}removeInput(i,a=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"remove-input"))){const o=this.inputs.findIndex(e=>e.id===i.id);o>-1&&(this.inputs.splice(o,1),a==null||a.add(this,S.Affected));const p=this.inputsDeclarations.findIndex(e=>{var y;return e.id===((y=i.declaration)==null?void 0:y.id)});return p>-1&&(this.inputsDeclarations.splice(p,1),a==null||a.add(this,S.Affected)),a==null||a.attemptAutoclose("remove-input",this.id),this}addInput(i,a=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"add-input"))){return this.inputs.includes(i)?(a==null||a.attemptAutoclose("add-input",this.id),this):(this.inputs.push(i),a==null||a.add(this,S.Affected),a==null||a.attemptAutoclose("add-input",this.id),this)}addInputDeclaration(i,a=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"add-input-declaration"))){return this.inputsDeclarations.includes(i)?(a==null||a.attemptAutoclose("add-input-declaration",this.id),this):(this.inputsDeclarations.push(i),a==null||a.attemptAutoclose("add-input-declaration",this.id),this)}removeInputDeclaration(i,a=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"remove-input-declaration"))){const o=this.inputsDeclarations.findIndex(p=>p.id===i.id);return o>-1&&(this.inputsDeclarations.splice(o,1),a==null||a.add(this,S.Affected)),a==null||a.attemptAutoclose("remove-input-declaration",this.id),this}addOutputDeclaration(i,a=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"add-output-declaration"))){return this.outputsDeclarations.includes(i)?(a==null||a.attemptAutoclose("add-output-declaration",this.id),this):(this.outputsDeclarations.push(i),a==null||a.add(this,S.Affected),a==null||a.attemptAutoclose("add-output-declaration",this.id),this)}removeOutputDeclaration(i,a=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"remove-output-declaration"))){const o=this.outputsDeclarations.findIndex(p=>p.id===i.id);return o>-1&&(this.outputsDeclarations.splice(o,1),a==null||a.add(this,S.Affected)),a==null||a.attemptAutoclose("remove-output-declaration",this.id),this}addOutput(i,a=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"add-output"))){return this.outputs.includes(i)?(a==null||a.attemptAutoclose("add-output",this.id),this):(this.outputs.push(i),a==null||a.add(this,S.Affected),a==null||a.attemptAutoclose("add-output",this.id),this)}removeOutput(i,a=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"remove-output"))){const o=this.outputs.findIndex(p=>p.id===i.id);return o>-1&&(this.outputs.splice(o,1),a&&(a==null||a.add(this,S.Affected))),a==null||a.attemptAutoclose("remove-output",this.id),this}addSuccessCaller(i,a=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"add-success-caller")),o=!1){return this.calledBySuccess.find(p=>p.id===i.id)||(this.calledBySuccess.push(i),a==null||a.add(this,S.Updated),o&&We(this,a)),a==null||a.attemptAutoclose("add-success-caller",this.id),this}addErrorCaller(i,a=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"add-error-caller")),o=!1){return this.calledByError.find(p=>p.id===i.id)||(this.calledByError.push(i),a==null||a.add(this,S.Updated),o&&We(this,a)),a==null||a.attemptAutoclose("add-error-caller",this.id),this}addEntryCaller(i,a=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"add-entry-caller")),o=!1){return this.calledByEntry.find(p=>p.id===i.id)||(this.calledByEntry.push(i),a==null||a.add(this,S.Updated),o&&We(this,a)),a==null||a.attemptAutoclose("add-entry-caller",this.id),this}addErrorCall(i,a=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"add-error-call")),o=!1){return this.errorCalls.find(p=>p.id===i.id)||(this.errorCalls.push(i),o&&We(this,a),a==null||a.add(this,S.Affected)),a==null||a.attemptAutoclose("add-error-call",this.id),this}addSuccessCall(i,a=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"add-success-call")),o=!1){return this.successCalls.find(p=>p.id===i.id)||(this.successCalls.push(i),o&&We(this,a),a==null||a.add(this,S.Affected)),a==null||a.attemptAutoclose("add-success-call",this.id),this}removeCall(i,a=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"remove-call")),o=!1){const p=this.successCalls.findIndex(y=>y.id===i.id);p>-1&&(this.successCalls.splice(p,1),a==null||a.add(this,S.Affected));const e=this.errorCalls.findIndex(y=>y.id===i.id);return e>-1&&(this.errorCalls.splice(e,1),a==null||a.add(this,S.Affected)),o&&We(this,a),a==null||a.attemptAutoclose("remove-call",this.id),this}removeCaller(i,a=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"remove-caller")),o=!1){return this.calledBySuccess=this.calledBySuccess.filter(p=>p.id!==i.id?!0:(a==null||a.add(this,S.Updated),a==null||a.add(p,S.Affected),!1)),this.calledByError=this.calledByError.filter(p=>p.id!==i.id?!0:(a==null||a.add(this,S.Updated),a==null||a.add(p,S.Affected),!1)),this.calledByEntry=this.calledByEntry.filter(p=>p.id!==i.id?!0:(a==null||a.add(this,S.Updated),a==null||a.add(p,S.Affected),!1)),o&&We(this,a),a==null||a.attemptAutoclose("remove-caller",this.id),this}setParent(i,a=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"set-parent"))){var o;return((o=this.parent)==null?void 0:o.id)!==(i==null?void 0:i.id)&&(this.parent=i,a&&(a==null||a.add(this,S.Updated))),a==null||a.attemptAutoclose("set-parent",this.id),this}initChildren(i=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"init-children"))){return this.initialized||this.startedInitialization?this:(this.startedInitialization=!0,this.successCalls=this.initialData.successCalls.map(a=>{const o=te(a,this.project);if([f.BreakStatement,f.ContinueStatement].includes(o.type))o.setParent(this.parent.parent,null),o.initChildren(i);else if(o.type===f.ReturnStatement){const p=Wr(this,this.project);o.setParent(p,null),o.initChildren(i)}else o.type!==f.InternalCall&&(o.setParent(this.parent,null),o.initChildren(i));return o}),this.errorCalls=this.initialData.errorCalls.map(a=>{const o=te(a,this.project);if(o.addErrorCaller(this),[f.BreakStatement,f.ContinueStatement].includes(o.type))o.setParent(this.parent.parent,null),o.initChildren(i);else if(o.type===f.ReturnStatement){const p=Wr(this,this.project);o.setParent(p,null),o.initChildren(i)}else o.type!==f.InternalCall&&(o.setParent(this.parent,null),o.initChildren(i));return o}),this.inputsDeclarations=this.initialData.inputsDeclarations.map(a=>{const o=te(a,this.project);return o.setParent(this,null),o.initChildren(i),o}),this.inputs=this.initialData.inputs.map(a=>{const o=te(a,this.project);return o.setParent(this,null),o.initChildren(i),o}),this.outputsDeclarations=this.initialData.outputsDeclarations.map(a=>{const o=te(a,this.project);return o.setParent(this,null),o.initChildren(i),o}),this.outputs=this.initialData.outputs.map(a=>{const o=te(a,this.project);return o.setParent(this,null),o.initChildren(i),o}),this.initialData.error&&(this.error=te(this.initialData.error,this.project),this.error.setParent(this,null),this.error.initChildren(i)),this.subscribeToDependencies(),this.afterAllChildrenInitialized(i),i==null||i.attemptAutoclose("init-children",this.id),this)}subscribe(){return this.activeVersion=!0,this.project.subscribeInstance(this),this}unsubscribe(){return this.project.unsubscribeInstance(this),this}metaSync(i,a=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"meta-sync"))){const o=Ur(this,i),p=this.toMeta();return this.x=i.x||p.x,this.y=i.y||p.y,this.name=i.name!==void 0?i.name:p.name,this.description=i.description!==void 0?i.description:p.description,i.query!==void 0&&(this.query=i.query),super.metaSync(i),i.deleted===!0&&!p.deleted?a==null||a.add(this,S.Removed):i.deleted===!1&&p.deleted?a==null||a.add(this,S.Added):o&&(a==null||a.add(this,S.Updated)),a==null||a.attemptAutoclose("meta-sync",this.id),this}async APILoad(i=ve,...a){return await ir.repository.APILoad(this.id,...a),this}async APICreate(i=ve,...a){return await ir.repository.APICreate(this.toShallowJSON(),...a),this}async APIUpdate(i=ve,...a){return await ir.repository.APIUpdate(this.toShallowJSON(),...a),this}async APIDelete(i=ve,...a){return await ir.repository.APIDelete(this.toShallowJSON(),...a),this}async APIClone(i=ve,...a){return await ir.repository.APIClone(this.id,...a),this}async APILoadVersion(i=ve,a,...o){return await ir.repository.APILoadVersion(this.id,a,...o)}removeFromParent(i=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"remove-from-parent"))){const a=[],o=[],p=[],e=[];return this.parent.type===f.Project?(this.parent.removeSearch(this),e.push(this.parent)):this.parent.detachedChildren.includes(this)&&this.parent.unsubscribeDetachedChild(this),i==null||i.attemptAutoclose("remove-from-parent",this.id),{added:R(p),updated:R(a),removed:R(o),affected:R(e),self:this}}remove({ignoreUpstream:i}={ignoreUpstream:!1},a=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"remove-entity"))){const o=[],p=[],e=[],y=[];if(a!=null&&a.hasRemoved(this.id))return a==null||a.attemptAutoclose("remove-entity",this.id),{added:[],updated:[],removed:[],affected:[],self:this};if(p.push(this),this.unsubscribe(),this.unsubscribeFromDependencies(),this.project.subscribeDeletedInstance(this),this.metaSync({deleted:!0},a),Object.values(this.detachedDependents).forEach(v=>{const{updated:E,removed:w,added:A}=v.entity.onDetachedDependencyRemoved(this,v.field,a);o.push(...E),p.push(...w),e.push(...A)}),this.inputs.forEach(v=>{const{updated:E,removed:w}=v.remove({ignoreUpstream:!0},a);o.push(...E),p.push(...w)}),this.inputsDeclarations.forEach(v=>{const{updated:E,removed:w}=v.remove({ignoreUpstream:!0},a);o.push(...E),p.push(...w)}),this.outputs.forEach(v=>{const{updated:E,removed:w}=v.remove({ignoreUpstream:!0},a);o.push(...E),p.push(...w)}),this.outputsDeclarations.forEach(v=>{const{updated:E,removed:w}=v.remove({ignoreUpstream:!0},a);o.push(...E),p.push(...w)}),this.error){const{updated:v,removed:E}=this.error.remove({ignoreUpstream:!0},a);o.push(...v),p.push(...E)}if(this.successCalls.forEach(v=>{o.push(v),v.removeCaller(this,a)}),this.errorCalls.forEach(v=>{o.push(v),v.removeCaller(this,a)}),!i){const v=this.removeFromParent(a);e.push(...v.added),o.push(...v.updated),p.push(...v.removed),y.push(...v.affected),this.calledBy.forEach(E=>{o.push(E),E.removeCall(this,a)})}return a==null||a.attemptAutoclose("remove-entity",this.id),{added:R(e),updated:R(o),removed:R(p),affected:R(y),self:this}}restore({}={},i=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"restore-entity"))){const a=[],o=[],p=[],e=[];return i!=null&&i.hasAdded(this.id)?(i==null||i.attemptAutoclose("restore-entity",this.id),{added:[],updated:[],removed:[],affected:[],self:this}):(this.subscribe(),this.project.unsubscribeDeletedInstance(this),this.metaSync({deleted:!1},i),Object.values(this.detachedDependents).forEach(y=>{const{updated:v,removed:E,added:w}=y.entity.onDetachedDependencyRestored(this,y.field,i);o.push(...v),p.push(...E),a.push(...w)}),this.inputsDeclarations.forEach(y=>{const{updated:v}=y.restore({},i);o.push(...v)}),this.inputs.forEach(y=>{const{updated:v}=y.restore({},i);o.push(...v)}),this.outputsDeclarations.forEach(y=>{const{updated:v}=y.restore({},i);o.push(...v)}),this.outputs.forEach(y=>{const{updated:v}=y.restore({},i);o.push(...v)}),this.successCalls.forEach(y=>{o.push(y),y.addSuccessCaller(this,i)}),this.errorCalls.forEach(y=>{o.push(y),y.addErrorCaller(this,i)}),this.calledBySuccess.forEach(y=>{o.push(y),y.addSuccessCall(this,i)}),this.calledByError.forEach(y=>{o.push(y),y.addErrorCall(this,i)}),this.calledByEntry.forEach(y=>{o.push(y),y.addCall(this,i)}),i==null||i.attemptAutoclose("restore-entity",this.id),{added:R(a),updated:R(o),removed:R(p),affected:R(e),self:this})}toFlat(i=new Set){return i.has(this.id)?[]:(i.add(this.id),[this,...this.successCalls.flatMap(o=>o.toFlat(i)),...this.errorCalls.flatMap(o=>o.toFlat(i)),...this.inputs.flatMap(o=>o.toFlat(i)),...this.inputsDeclarations.flatMap(o=>o.toFlat(i)),...this.outputs.flatMap(o=>o.toFlat(i)),...this.outputsDeclarations.flatMap(o=>o.toFlat(i)),...this.calledBy.flatMap(o=>o.toFlat(i)),...this.error?this.error.toFlat(i):[]])}toFlatIds(i=new Set){return i.has(this.id)?[]:(i.add(this.id),[this.id,...this.successCalls.flatMap(o=>o.toFlatIds(i)),...this.errorCalls.flatMap(o=>o.toFlatIds(i)),...this.inputs.flatMap(o=>o.toFlatIds(i)),...this.inputsDeclarations.flatMap(o=>o.toFlatIds(i)),...this.outputs.flatMap(o=>o.toFlatIds(i)),...this.outputsDeclarations.flatMap(o=>o.toFlatIds(i)),...this.calledBy.flatMap(o=>o.toFlatIds(i)),...this.error?this.error.toFlatIds(i):[]])}toMeta(){return{id:this.id,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,description:this.description,query:this.query,x:this.x,y:this.y,type:this.type,name:this.name}}toJSON(i=new Set){var a;return i.has(this.id)?this.toReference():(i.add(this.id),{id:this.id,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,type:this.type,name:this.name,query:this.query,description:this.description,x:this.x,y:this.y,successCalls:this.successCalls.map(o=>o.toJSON(i)),errorCalls:this.errorCalls.map(o=>o.toJSON(i)),calledBySuccess:this.calledBySuccess.map(o=>o.toReference()),calledByError:this.calledByError.map(o=>o.toReference()),calledByEntry:this.calledByEntry.map(o=>o.toReference()),inputsDeclarations:this.inputsDeclarations.map(o=>o.toJSON(i)),inputs:this.inputs.map(o=>o.toJSON(i)),outputsDeclarations:this.outputsDeclarations.map(o=>o.toJSON(i)),outputs:this.outputs.map(o=>o.toJSON(i)),error:((a=this.error)==null?void 0:a.toJSON(i))||null,parent:this.parent.toReference()})}toJSONClone(i=ke){var o,p,e,y,v,E;let a;return(o=i.seenEntityMaps)!=null&&o.has(this.id)?a=i.seenEntityMaps.get(this.id):(a=i.newId||Gr(this,this.project,i.uuidStrategy),i.seenEntityMaps&&i.seenEntityMaps.set(this.id,a)),(p=i.seenEntities)!=null&&p.has(a)||(e=i.seenEntities)!=null&&e.has(this.id)?this.toReference({seenEntityMaps:i.seenEntityMaps}):((y=i.seenEntities)==null||y.add(a),(v=i.seenEntities)==null||v.add(this.id),{id:a,version:N.UUID.uuid(),createdAt:i.timestamp||L().toISOString(),author:N.sessionAuthor,previousVersion:null,deleted:!1,type:f.Search,name:this.name,query:this.query,description:this.description,x:this.x,y:this.y,successCalls:this.successCalls.map(w=>w.toJSONClone({...i,newId:null})),errorCalls:this.errorCalls.map(w=>w.toJSONClone({...i,newId:null})),calledBySuccess:this.calledBySuccess.map(w=>w.toReference({seenEntityMaps:i.seenEntityMaps})),calledByError:this.calledByError.map(w=>w.toReference({seenEntityMaps:i.seenEntityMaps})),calledByEntry:this.calledByEntry.map(w=>w.toReference({seenEntityMaps:i.seenEntityMaps})),inputsDeclarations:this.inputsDeclarations.map(w=>w.toJSONClone({...i,newId:null})),inputs:this.inputs.map(w=>w.toJSONClone({...i,newId:null})),outputsDeclarations:this.outputsDeclarations.map(w=>w.toJSONClone({...i,newId:null})),outputs:this.outputs.map(w=>w.toJSONClone({...i,newId:null})),error:((E=this.error)==null?void 0:E.toJSONClone({...i,newId:null}))||null,parent:this.parent.toReference({seenEntityMaps:i.seenEntityMaps})})}toReference(i=ke){var o;let a=this.id;return(o=i.seenEntityMaps)!=null&&o.has(this.id)&&(a=i.seenEntityMaps.get(this.id)),{id:a+"--"+N.UUID.uuid()+"--ref",type:f.GenericReference,entityId:a,version:this.version,entityType:this.type}}toShallowJSON(i=ke){var o;let a=this.id;return(o=i.seenEntityMaps)!=null&&o.has(this.id)&&(a=i.seenEntityMaps.get(this.id)),{id:a,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,type:this.type,name:this.name,description:this.description,query:this.query,x:this.x,y:this.y,inputs:this.inputs.map(p=>p.toReference(i)),inputsDeclarations:this.inputsDeclarations.map(p=>p.toReference(i)),outputs:this.outputs.map(p=>p.toReference(i)),outputsDeclarations:this.outputsDeclarations.map(p=>p.toReference(i)),successCalls:this.successCalls.map(p=>p.toReference(i)),errorCalls:this.errorCalls.map(p=>p.toReference(i)),calledBySuccess:this.calledBySuccess.map(p=>p.toReference(i)),calledByError:this.calledByError.map(p=>p.toReference(i)),calledByEntry:this.calledByEntry.map(p=>p.toReference(i)),error:this.error?this.error.toReference(i):null,parent:this.parent.toReference(i)}}toFlatJSON(i=new Set){return i.has(this.id)?[]:(i.add(this.id),[this.toShallowJSON(),...this.successCalls.flatMap(o=>o.toFlatJSON(i)),...this.errorCalls.flatMap(o=>o.toFlatJSON(i)),...this.inputs.flatMap(o=>o.toFlatJSON(i)),...this.inputsDeclarations.flatMap(o=>o.toFlatJSON(i)),...this.outputs.flatMap(o=>o.toFlatJSON(i)),...this.outputsDeclarations.flatMap(o=>o.toFlatJSON(i)),...this.calledBy.flatMap(o=>o.toFlatJSON(i)),...this.error?this.error.toFlatJSON(i):[]])}toGenerationTarget(){const i=this.parent.type===f.Project?void 0:this.parent.id;return{id:this.id,name:this.name,description:this.description,type:this.type,query:this.query,calledByEntry:this.calledByEntry.map(a=>a.id),calledBySuccess:this.calledBySuccess.map(a=>a.id),calledByError:this.calledByError.map(a=>a.id),parent:i}}toFlatGenerationTarget(i=new Set){return i.has(this.id)?[]:(i.add(this.id),[this.toGenerationTarget(),...this.successCalls.flatMap(o=>o.toFlatGenerationTarget(i)),...this.errorCalls.flatMap(o=>o.toFlatGenerationTarget(i)),...this.inputs.flatMap(o=>o.toFlatGenerationTarget(i)),...this.inputsDeclarations.flatMap(o=>o.toFlatGenerationTarget(i)),...this.outputs.flatMap(o=>o.toFlatGenerationTarget(i)),...this.outputsDeclarations.flatMap(o=>o.toFlatGenerationTarget(i)),...this.error?this.error.toFlatGenerationTarget(i):[]])}clearErrors(){var i;return this.errors=[],this.inputsDeclarations.forEach(a=>a.clearErrors()),this.inputs.forEach(a=>a.clearErrors()),this.outputs.forEach(a=>a.clearErrors()),this.successCalls.forEach(a=>a.clearErrors()),this.errorCalls.forEach(a=>a.clearErrors()),(i=this.error)==null||i.clearErrors(),this}validate(){const i=Xj(this);return this.errors=i,{success:!0}}getErrors(){return[...this.errors,...this.inputsDeclarations.flatMap(a=>a.getErrors()),...this.inputs.flatMap(a=>a.getErrors()),...this.outputsDeclarations.flatMap(a=>a.getErrors()),...this.outputs.flatMap(a=>a.getErrors()),...this.error?this.error.getErrors():[]]}getShallowErrors(){return this.errors}clone(i=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"clone-entity")),a=null,o=null,p=!0){var K,Z,ie,X;let e=Fr(a,this);const y=this.toJSON(),v=o||N.UUID.uuid();y.inputs=[];const E=v.split("-id"),w=E[E.length-1||0]||v;y.id=v,y.version=N.UUID.uuid(),y.createdAt=(i==null?void 0:i.timestamp)||L().toISOString(),y.author=(i==null?void 0:i.author)||"1",y.previousVersion=null,y.deleted=!1;const A=lr(y,e);a?A.setParent(a,null):A.setParent(this.parent,null),p&&A.subscribe(),A.initChildren(i),i==null||i.add(A,S.Added);const $=(K=this.inputsDeclarations)==null?void 0:K.map((ue,re)=>ue.clone(i,this,w+"-input-declaration-"+re+"-id",p));A.inputsDeclarations=$;const V=(Z=this.outputsDeclarations)==null?void 0:Z.map((ue,re)=>ue.clone(i,this,w+"-output-declaration-"+re+"-id",p));A.outputsDeclarations=V;const U=(ie=this.inputs)==null?void 0:ie.map((ue,re)=>ue.clone(i,A,w+"-input-map-"+re+"-id",p));A.inputs=U;const G=(X=this.outputs)==null?void 0:X.map((ue,re)=>ue.clone(i,A,w+"-output-map-"+re+"-id",p));return A.outputs=G,this.error&&(A.error=this.error.clone(i,A,w+"-error-map-id",p)),i==null||i.attemptAutoclose("clone-entity",this.id),A}syncInputMaps(i=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"sync-input-maps"))){const a=[],o=[],p=[],e=[];return this.inputsDeclarations.forEach(y=>{if(!this.inputs.find(E=>{var w;return((w=E.declaration)==null?void 0:w.id)===y.id})){const E={id:N.UUID.uuid(),version:N.UUID.uuid(),createdAt:(i==null?void 0:i.timestamp)||L().toISOString(),author:N.sessionAuthor,previousVersion:null,deleted:!1,type:f.InputMap,declaration:y.toJSON(),readsValue:null,defaultValue:null,index:this.inputs.length,name:null,codeName:null,description:null,parent:this.toReference()},w=te(E,this.project);w.setParent(this,i),w.initChildren(i),i==null||i.add(w,S.Added),w.addSelfToProject(i),a.push(this),o.push(w)}}),this.inputs.forEach(y=>{if(y.declaration){if(!this.inputsDeclarations.find(E=>{var w;return E.id===((w=y.declaration)==null?void 0:w.id)})){const{updated:E,removed:w}=y.remove({ignoreUpstream:!1},i);E.push(...E),p.push(...w)}}else{const{updated:v,removed:E}=y.remove({ignoreUpstream:!1},i);a.push(...v),p.push(...E)}}),i==null||i.attemptAutoclose("sync-input-maps",this.id),{updated:R(a),added:R(o),removed:R(p),affected:R(e),self:this}}getUnusedInputs(){return this.inputs.filter(i=>i.suggestion||!i.readsValue&&!i.defaultValue)}getUnusedOutputs(){return this.outputs.filter(i=>i.suggestion||!i.writesValues.length)}getUsedInputs(){return this.inputs.filter(i=>!i.suggestion&&(i.readsValue||i.defaultValue))}getUsedOutputs(){return this.outputs.filter(i=>!i.suggestion&&i.writesValues.length)}};g(ir,"repository",{APICreate:async(i,...a)=>i,APIUpdate:async(i,...a)=>i,APIDelete:async(i,...a)=>i,APIClone:async(i,...a)=>{},APILoad:async(i,...a)=>null,APILoadVersion:async(i,a,...o)=>null}),g(ir,"type",f.Search),g(ir,"USER_MANAGED_PARENT_TYPES",[...Mr,f.Project]),g(ir,"PARENT_TYPES",[...ir.USER_MANAGED_PARENT_TYPES]),g(ir,"MUTABLE_BASE_PROPERTIES",["name","description","query"]),g(ir,"INMUTABLE_BASE_PROPERTIES",["id","type","version","createdAt","author","previousVersion"]),g(ir,"BASE_PROPERTIES",[...ir.MUTABLE_BASE_PROPERTIES,...ir.INMUTABLE_BASE_PROPERTIES]),g(ir,"MUTABLE_META_PROPERTIES",[...ir.MUTABLE_BASE_PROPERTIES,"x","y"]),g(ir,"INMUTABLE_META_PROPERTIES",[...ir.INMUTABLE_BASE_PROPERTIES]),g(ir,"META_PROPERTIES",[...ir.MUTABLE_META_PROPERTIES,...ir.INMUTABLE_META_PROPERTIES]),g(ir,"MUTABLE_UPSTREAM_PROPERTIES",["calledBySuccess","calledByError","calledByEntry"]),g(ir,"INMUTABLE_UPSTREAM_PROPERTIES",["parent"]),g(ir,"UPSTREAM_PROPERTIES",[...ir.MUTABLE_UPSTREAM_PROPERTIES,...ir.INMUTABLE_UPSTREAM_PROPERTIES]),g(ir,"MUTABLE_DOWNSTREAM_PROPERTIES",["successCalls","errorCalls","inputsDeclarations","inputs","outputsDeclarations","outputs","error"]),g(ir,"INMUTABLE_DOWNSTREAM_PROPERTIES",[]),g(ir,"DOWNSTREAM_PROPERTIES",[...ir.MUTABLE_DOWNSTREAM_PROPERTIES,...ir.INMUTABLE_DOWNSTREAM_PROPERTIES]),g(ir,"PROPERTIES",[...is.META_PROPERTIES,...is.UPSTREAM_PROPERTIES,...is.DOWNSTREAM_PROPERTIES]);let co=ir;function uF(d){const u=gye(),i=d.toJSON();u.safeParse(i).success,d.functions.forEach(p=>p.validate()),d.events.forEach(p=>p.validate());const o=[];return vr(d.errors,o)}const Hve=Object.freeze(Object.defineProperty({__proto__:null,validate:uF},Symbol.toStringTag,{value:"Module"})),Xt=class Xt extends Nr{constructor(i,a){super(i);g(this,"initialData");g(this,"id");g(this,"name");g(this,"codeName",null);g(this,"description",null);g(this,"x");g(this,"y");g(this,"type",f.InstalledProject);g(this,"implements");g(this,"functions",[]);g(this,"events",[]);g(this,"parent");g(this,"errors",[]);g(this,"project");g(this,"detachedDependents",{});g(this,"knownVersions",null);g(this,"activeVersion",!1);g(this,"initialized",!1);g(this,"startedInitialization",!1);this.initialData=i,this.project=a,this.id=i.id,this.name=i.name,this.description=i.description,this.x=i.x,this.y=i.y,this.implements=i.implements}static new(i=null){return{id:N.UUID.uuid(),version:N.UUID.uuid(),createdAt:(i==null?void 0:i.timestamp)||L().toISOString(),author:(i==null?void 0:i.author)||N.sessionAuthor,previousVersion:null,deleted:!1,type:f.InstalledProject,name:"",codeName:null,description:"",implements:null,functions:[],events:[],x:0,y:0,parent:null}}static fromGenerationTarget(i,a){const o=a,p={id:i.id,version:N.UUID.uuid(),createdAt:L().toISOString(),author:N.sessionAuthor,previousVersion:null,deleted:!1,name:i.name,type:f.InstalledProject,codeName:i.codeName||null,description:i.description||null,functions:[],events:[],implements:{entityId:i.implements,version:N.UUID.uuid(),entityType:f.Project,type:f.GenericReference,id:N.UUID.uuid()},x:0,y:0,parent:o},e=te(p,a);return e.setParent(o,null),e}static validateGenerationTarget(i,a){let o=JSON.parse(JSON.stringify(i));const p=[];return p.push(...Br(o)),{errors:p,modifiedData:o}}validateGeneratedUpdate(i){const a=[];return i.parent&&a.push(new ee({id:`${this.id}--${k.InvalidParentUpdate}`,code:k.InvalidParentUpdate,severity:q.Error,message:`Entity of type '${this.type}' with id '${this.id}' cannot have the 'parent' property updated. The 'parent' on an installed project, must be the root project as it is a globally declared entity.`})),{errors:a,modifiedData:i}}subscribeDependents(i){return i.forEach(a=>{this.detachedDependents[a.entity.id]||(this.detachedDependents[a.entity.id]=a)}),this}unsubscribeDependents(i){return i.forEach(a=>{this.detachedDependents[a.entity.id]&&delete this.detachedDependents[a.entity.id]}),this}syncDependents(i=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"sync-dependents"))){const a=[],o=[],p=[],e=[];return Object.values(this.detachedDependents).forEach(y=>{const v=y.entity.afterAllChildrenInitialized(i);a.push(...v.updated),o.push(...v.added),p.push(...v.removed),e.push(...v.affected)}),i==null||i.attemptAutoclose("sync-dependents",this.id),{updated:R(a),added:R(o),removed:R(p),affected:R(e),self:this}}onDetachedDependencyRemoved(i,a,o){const p=[],e=[],y=[],v=[];return{updated:R(p),added:R(e),removed:R(y),affected:R(v),self:this}}onDetachedDependencyRestored(i,a,o){const p=[],e=[],y=[],v=[];return{updated:R(p),added:R(e),removed:R(y),affected:R(v),self:this}}unsubscribeFromDependencies(){return this}subscribeToDependencies(){return this}increaseVersion(i){if(i&&!L(i).isValid())throw new Error(`The shared timestamp '${i}' is not a valid ISO 8601 date string.`);return i&&L(i).isSame(L(this.createdAt))?this:(this.previousVersion=this.version,this.version=N.UUID.uuid(),this.createdAt=L(i).toISOString()||L().toISOString(),this)}captureVersion(){var a;const i=((a=this.knownVersions)==null?void 0:a.get(this.version))||new Xt(this,this.project);return i.metaSync(this.toMeta(),null),this.knownVersions=this.knownVersions?this.knownVersions.set(this.version,i):new Map([[this.version,i]]),i.functions=[...this.functions],i.events=[...this.events],i.parent=this.parent,this}recursiveCaptureUpstreamVersions(i){const a=[],o=[],p=[],e=[];if(this.parent){this.parent.increaseVersion(i);const y=this.parent.recursiveCaptureUpstreamVersions(i);a.push(this.parent,...y.updated),o.push(...y.added),p.push(...y.removed)}return{updated:R(a),added:R(o),removed:R(p),affected:R(e),self:this}}async restoreVersion(i){var v;const a=[],o=[],p=[],e=[];if(this.version===i)return{updated:R(a),added:R(o),removed:R(p),affected:R(e),self:this};if(!this.knownVersions){const E=new Map;for(const[w,A]of this.knownVersions||new Map){if(E.set(w,A),A.activeVersion=!1,A.knownVersions)for(const[$,V]of A.knownVersions)E.set($,V);A.knownVersions=null}}let y=(v=this.knownVersions)==null?void 0:v.get(i);if(!y){const E=await this.APILoadVersion({},i);if(!E)throw new Error(`Version with id '${i}' for entity with id '${this.id}' not found.`);y=new Xt(E,this.project)}return this.metaSync(y.toShallowJSON(),null),this.previousVersion=y.previousVersion,this.version=y.version,this.createdAt=y.createdAt,this.author=y.author,this.deleted=y.deleted,this.functions=y.functions,this.events=y.events,this.parent=y.parent,{updated:R(a),added:R(o),removed:R(p),affected:R(e),self:this}}updateWithShallowTransfer(i,a=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"update-with-shallow-transfer"))){if(this.metaSync(i,a),this.version=i.version,this.createdAt=i.createdAt,this.author=i.author,this.deleted=i.deleted,this.previousVersion=i.previousVersion,this.unsubscribeFromDependencies(),i.parent){const o=J(i.parent),p=this.project.get(o),e=this.parent;if(e&&e.id!==(p==null?void 0:p.id)&&this.removeFromParent(a),p)this.setParent(p,a);else throw a==null||a.attemptAutoclose("update-with-shallow-transfer",this.id),new Error(`${this.type} with id '${this.id}' has a 'parent' reference '${o}' that isn't found in the project`)}else throw a==null||a.attemptAutoclose("update-with-shallow-transfer",this.id),new Error(`${this.type} with id '${this.id}' must have a 'parent'`);return this.captureVersion(),this.subscribeToDependencies(),a==null||a.attemptAutoclose("update-with-shallow-transfer",this.id),this}hydrateAncestors(){const i=[],a=[],o=[],p=[];if(this.initialData.parent){const e=J(this.initialData.parent),y=this.project.get(e);if(y)this.setParent(y,null),i.push(y);else throw new Error(`${this.type} with id '${this.id}' has a 'parent' reference '${e}' that isn't found in the project`)}else throw new Error(`${this.type} with id '${this.id}' must have a 'parent'`);return{updated:R(i),added:R(a),removed:R(o),affected:R(p),self:this}}afterAllChildrenInitialized(i=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"after-all-children-initialized"))){const a=[],o=[],p=[],e=[];return this.initialized=!0,this.captureVersion(),i==null||i.attemptAutoclose("after-all-children-initialized",this.id),{updated:R(a),added:R(o),removed:R(p),affected:R(e),self:this}}addSelfToProject(i=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"add-self-to-project"))){const a=[this],o=[],p=[],e=[];return this.project.addInstalledProject(this),this.subscribe(),this.subscribeToDependencies(),i==null||i.attemptAutoclose("add-self-to-project",this.id),{updated:R(a),added:R(o),removed:R(p),affected:R(e),self:this}}setParent(i,a=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"set-parent"))){var o;return((o=this.parent)==null?void 0:o.id)!==(i==null?void 0:i.id)&&(this.parent=i,a&&(a==null||a.add(this,S.Updated))),a==null||a.attemptAutoclose("set-parent",this.id),this}initChildren(i=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"init-children"))){return this.initialized||this.startedInitialization?this:(this.startedInitialization=!0,this.functions=this.initialData.functions.map(a=>{const o=te(a,this.project);return o.setParent(this,null),o.initChildren(i),o}),this.events=this.initialData.events.map(a=>{const o=te(a,this.project);return o.setParent(this,null),o.initChildren(i),o}),this.subscribeToDependencies(),this.afterAllChildrenInitialized(i),i==null||i.attemptAutoclose("init-children",this.id),this)}subscribe(){return this.activeVersion=!0,this.project.subscribeInstance(this),this}unsubscribe(){return this.project.unsubscribeInstance(this),this}metaSync(i,a=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"meta-sync"))){const o=Ur(this,i),p=this.toMeta();return this.x=i.x||p.x,this.y=i.y||p.y,super.metaSync(i),i.deleted===!0&&!p.deleted?a==null||a.add(this,S.Removed):i.deleted===!1&&p.deleted?a==null||a.add(this,S.Added):o&&(a==null||a.add(this,S.Updated)),a==null||a.attemptAutoclose("meta-sync",this.id),this}async APILoad(i=ve,...a){return await Xt.repository.APILoad(this.id,...a),this}async APICreate(i=ve,...a){return await Xt.repository.APICreate(this.toShallowJSON(),...a),this}async APIUpdate(i=ve,...a){return await Xt.repository.APIUpdate(this.toShallowJSON(),...a),this}async APIDelete(i=ve,...a){return await Xt.repository.APIDelete(this.toShallowJSON(),...a),this}async APIClone(i=ve,...a){return await Xt.repository.APIClone(this.id,...a),this}async APILoadVersion(i=ve,a,...o){return await Xt.repository.APILoadVersion(this.id,a,...o)}removeFromParent(i=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"remove-from-parent"))){const a=[],o=[],p=[],e=[];return this.parent.removeInstalledProject(this),i==null||i.attemptAutoclose("remove-from-parent",this.id),{added:R(p),updated:R(a),removed:R(o),affected:R(e),self:this}}remove({ignoreUpstream:i}={ignoreUpstream:!1},a=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"remove-entity"))){const o=[],p=[],e=[],y=[];if(a!=null&&a.hasRemoved(this.id))return a==null||a.attemptAutoclose("remove-entity",this.id),{added:[],updated:[],removed:[],affected:[],self:this};if(p.push(this),this.unsubscribe(),this.unsubscribeFromDependencies(),this.project.subscribeDeletedInstance(this),this.metaSync({deleted:!0},a),Object.values(this.detachedDependents).forEach(v=>{const{updated:E,removed:w,added:A}=v.entity.onDetachedDependencyRemoved(this,v.field,a);o.push(...E),p.push(...w),e.push(...A)}),this.functions.forEach(v=>{const{updated:E,removed:w}=v.remove({ignoreUpstream:!1},a);o.push(...E),p.push(...w)}),this.events.forEach(v=>{const{updated:E,removed:w}=v.remove({ignoreUpstream:!1},a);o.push(...E),p.push(...w)}),!i){const v=this.removeFromParent(a);e.push(...v.added),o.push(...v.updated),p.push(...v.removed),y.push(...v.affected)}return a==null||a.attemptAutoclose("remove-entity",this.id),{added:[],updated:[],removed:[],affected:R(y),self:this}}restore({}={},i=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"restore-entity"))){const a=[],o=[],p=[],e=[];return i!=null&&i.hasAdded(this.id)?(i==null||i.attemptAutoclose("restore-entity",this.id),{added:[],updated:[],removed:[],affected:[],self:this}):(this.subscribe(),this.project.unsubscribeDeletedInstance(this),this.metaSync({deleted:!1},i),Object.values(this.detachedDependents).forEach(y=>{const{updated:v,removed:E,added:w,affected:A}=y.entity.onDetachedDependencyRestored(this,y.field,i);a.push(...v),o.push(...E),p.push(...w),e.push(...A)}),this.functions.forEach(y=>{const{updated:v,removed:E,added:w,affected:A}=y.restore({},i);a.push(...v),o.push(...E),p.push(...w),e.push(...A)}),this.events.forEach(y=>{const{updated:v,removed:E,added:w,affected:A}=y.restore({},i);a.push(...v),o.push(...E),p.push(...w),e.push(...A)}),i==null||i.attemptAutoclose("restore-entity",this.id),{added:[],updated:[],removed:[],affected:[],self:this})}toFlat(i=new Set){return i.has(this.id)?[]:(i.add(this.id),[this,...this.functions.flatMap(o=>o.toFlat(i)),...this.events.flatMap(o=>o.toFlat(i))])}toFlatIds(i=new Set){return i.has(this.id)?[]:(i.add(this.id),[this.id,...this.functions.flatMap(o=>o.toFlatIds(i)),...this.events.flatMap(o=>o.toFlatIds(i))])}toMeta(){return{id:this.id,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,codeName:this.codeName,description:this.description,x:this.x,y:this.y,type:this.type,name:this.name}}toJSON(i=new Set){return i.has(this.id)?this.toReference():(i.add(this.id),{id:this.id,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,type:this.type,name:this.name,codeName:this.codeName,description:this.description,implements:this.implements,functions:this.functions.map(a=>a.toJSON(i)),events:this.events.map(a=>a.toJSON(i)),parent:this.parent.toReference(),x:this.x,y:this.y})}toJSONClone(i=ke){var o,p,e,y,v;let a;return(o=i.seenEntityMaps)!=null&&o.has(this.id)?a=i.seenEntityMaps.get(this.id):(a=i.newId||Gr(this,this.project,i.uuidStrategy),i.seenEntityMaps&&i.seenEntityMaps.set(this.id,a)),(p=i.seenEntities)!=null&&p.has(a)||(e=i.seenEntities)!=null&&e.has(this.id)?this.toReference({seenEntityMaps:i.seenEntityMaps}):((y=i.seenEntities)==null||y.add(a),(v=i.seenEntities)==null||v.add(this.id),{id:a,version:N.UUID.uuid(),createdAt:i.timestamp||L().toISOString(),previousVersion:null,author:this.author,deleted:this.deleted,type:this.type,name:this.name,codeName:this.codeName,description:this.description,implements:this.implements,functions:this.functions.map(E=>E.toJSONClone({...i,newId:null})),events:this.events.map(E=>E.toJSONClone({...i,newId:null})),parent:this.parent.toReference({seenEntityMaps:i.seenEntityMaps}),x:this.x,y:this.y})}toReference(i=ke){var o;let a=this.id;return(o=i.seenEntityMaps)!=null&&o.has(this.id)&&(a=i.seenEntityMaps.get(this.id)),{id:a+"--"+N.UUID.uuid()+"--ref",type:f.GenericReference,entityId:a,version:this.version,entityType:this.type}}toShallowJSON(i=ke){var o;let a=this.id;return(o=i.seenEntityMaps)!=null&&o.has(this.id)&&(a=i.seenEntityMaps.get(this.id)),{id:a,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,type:this.type,name:this.name,codeName:this.codeName,description:this.description,x:this.x,y:this.y,implements:this.implements,functions:this.functions.map(p=>p.toReference(i)),events:this.events.map(p=>p.toReference(i)),parent:this.parent.toReference(i)}}toFlatJSON(i=new Set){return i.has(this.id)?[]:(i.add(this.id),[this.toShallowJSON(),...this.functions.flatMap(o=>o.toFlatJSON(i)),...this.events.flatMap(o=>o.toFlatJSON(i))])}toGenerationTarget(){var i;return{id:this.id,name:this.name,codeName:this.codeName,description:this.description,type:this.type,implements:(i=this.implements)==null?void 0:i.id}}toFlatGenerationTarget(i=new Set){return i.has(this.id)?[]:(i.add(this.id),[this.toGenerationTarget(),...this.functions.flatMap(o=>o.toFlatGenerationTarget(i)),...this.events.flatMap(o=>o.toFlatGenerationTarget(i))])}clearErrors(){return this.errors=[],this.functions.forEach(i=>i.clearErrors()),this.events.forEach(i=>i.clearErrors()),this}validate(){const i=uF(this);return this.errors=i,{success:!0}}getErrors(){return[...this.errors,...this.functions.flatMap(a=>a.getErrors()),...this.events.flatMap(a=>a.getErrors())]}getShallowErrors(){return this.errors}clone(i=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"clone-entity")),a=null,o=null,p=!0){var U,G;let e=Fr(a,this);const y=this.toJSON(),v=o||N.UUID.uuid();y.functions=[],y.events=[];const E=v.split("-id"),w=E[E.length-1||0]||v;y.id=v,y.version=N.UUID.uuid(),y.createdAt=(i==null?void 0:i.timestamp)||L().toISOString(),y.author=(i==null?void 0:i.author)||"1",y.previousVersion=null,y.deleted=!1;const A=lr(y,e);a&&A.setParent(a,null),p&&A.subscribe(),A.initChildren(i),i==null||i.add(A,S.Added);const $=(U=this.functions)==null?void 0:U.map((K,Z)=>K.clone(i,A,w+"-exported-function-declaration-"+Z+"-id",p));A.functions=$;const V=(G=this.events)==null?void 0:G.map((K,Z)=>K.clone(i,A,w+"-exported-event-"+Z+"-id",p));return A.events=V,i==null||i.attemptAutoclose("clone-entity",this.id),A}};g(Xt,"repository",{APICreate:async(i,...a)=>i,APIUpdate:async(i,...a)=>i,APIDelete:async(i,...a)=>i,APIClone:async(i,...a)=>{},APILoad:async(i,...a)=>null,APILoadVersion:async(i,a,...o)=>null}),g(Xt,"type",f.InstalledProject),g(Xt,"USER_MANAGED_PARENT_TYPES",[f.Project]),g(Xt,"PARENT_TYPES",[...Xt.USER_MANAGED_PARENT_TYPES]),g(Xt,"MUTABLE_BASE_PROPERTIES",[]),g(Xt,"INMUTABLE_BASE_PROPERTIES",["id","version","name","description","type","createdAt","author","previousVersion"]),g(Xt,"BASE_PROPERTIES",[...Xt.MUTABLE_BASE_PROPERTIES,...Xt.INMUTABLE_BASE_PROPERTIES]),g(Xt,"MUTABLE_META_PROPERTIES",["x","y"]),g(Xt,"INMUTABLE_META_PROPERTIES",[...Xt.INMUTABLE_BASE_PROPERTIES]),g(Xt,"META_PROPERTIES",[...Xt.MUTABLE_META_PROPERTIES,...Xt.INMUTABLE_META_PROPERTIES]),g(Xt,"MUTABLE_UPSTREAM_PROPERTIES",[]),g(Xt,"INMUTABLE_UPSTREAM_PROPERTIES",["implements","parent"]),g(Xt,"UPSTREAM_PROPERTIES",[...Xt.MUTABLE_UPSTREAM_PROPERTIES,...Xt.INMUTABLE_UPSTREAM_PROPERTIES]),g(Xt,"MUTABLE_DOWNSTREAM_PROPERTIES",["functions","events"]),g(Xt,"INMUTABLE_DOWNSTREAM_PROPERTIES",[]),g(Xt,"DOWNSTREAM_PROPERTIES",[...Xt.MUTABLE_DOWNSTREAM_PROPERTIES,...Xt.INMUTABLE_DOWNSTREAM_PROPERTIES]),g(Xt,"PROPERTIES",[...Xt.META_PROPERTIES,...Xt.UPSTREAM_PROPERTIES,...Xt.DOWNSTREAM_PROPERTIES]);let po=Xt;function cF(d){var y;const u=Zhe(),i=d.toJSON();u.safeParse(i).success,d.inputs.forEach(v=>v.validate()),d.outputs.forEach(v=>v.validate()),(y=d.error)==null||y.validate();const o=Ua(d),p=pF(d),e=[...o,...p];return vr(d.errors,e)}function pF(d){const u=[],i=Sy(d.parent,null),a=i==null?void 0:i.entity;if(!a)u.push(ft({id:`${d.id}--${ae.InternalCallParentMissingDataType}`,code:ae.InternalCallParentMissingDataType,severity:q.Error,message:`Entity of type "${d.type}" with id "${d.id}", belongs to a variable whose data type entity doesn't contain its declaration method (function-declaration) its id "${d.declaration}".`,entity:d}).error);else if(![f.DefinitionEntity,f.BuiltInBaseEntity,f.PrimitiveEntity].includes(a.type))u.push(ft({id:`${d.id}--${ae.InternalCallParentDeclarationEntityInvalidType}`,code:ae.InternalCallParentDeclarationEntityInvalidType,severity:q.Error,message:`Entity of type "${d.type}" with id "${d.id}", belongs to a variable whose data type 'entity' is not a definition entity, built-in base entity or primitive entity.
104
104
  This variable's data-type has an 'entity' field that references an entity with id '${a.id}' and of type '${a.type}'.`,entity:d}).error);else{const o=sf(a),p=[];[f.DefinitionEntity,f.BuiltInBaseEntity,f.PrimitiveEntity].includes(a.type)&&p.push(...a.getAllInteractiveMethods());let e="";o?a.methods.length?e=`
105
105
  All 'function-declaration' entities attached as methods to the parent data-type 'entity' field, available to be called as 'internal-calls' in this variable are:
106
106
  - ${a.methods.map(E=>E.id).join(`
@@ -183,7 +183,7 @@ You can update the existing 'literal-value' with the 'update' action, for exampl
183
183
  }
184
184
  }\`\`\`
185
185
  Or 'delete' and then 'post' actions to replace it.`})):i.push(new ee({id:`${d.id}--${d.parent}--${k.InvalidParentReference}`,code:k.InvalidParentReference,severity:q.Error,message:`Entity of type "${d.type}" with id "${d.id}", has a parent reference that isn't pointing to an entity of type 'input-map' or 'data-type'.`})):i.push(new ee({id:`${d.id}--${d.parent}--${k.ReferencedEntityNotFound}`,code:k.ReferencedEntityNotFound,severity:q.Error,message:`Entity of type "${d.type}" with id "${d.id}", is referencing an entity with id "${d.parent}" that isn't yet found in the project. Perhaps it should be created first. Or perhaps the ID is incorrect.`}))}else i.push(new ee({id:`${d.id}--${ae.InvalidObjectStructure}`,code:ae.InvalidObjectStructure,severity:q.Error,message:`Entity of type "${d.type}" with id "${d.id}" is missing a 'parent' reference. The 'parent' of a literal value entity must be a reference to an entity of type 'input-map' or 'data-type'.`}));else return i.push(new ee({id:`${d.id}--${ae.InvalidObjectStructure}`,code:ae.InvalidObjectStructure,severity:q.Error,message:`Entity of type "${d.type}" with id "${d.id}" is missing a 'parent' reference. The 'parent' of a literal value entity must be a reference to an entity of type 'input-map' or 'data-type'.`})),i;if(d.valueAsTypeSingle){const p=[],e=[],y=d.valueAsTypeSingle;Array.isArray(y)?y.forEach(v=>{typeof v=="string"?e.push(v):p.push(v)}):typeof y=="string"?e.push(y):p.push(y),p.forEach(v=>{const E=mm(v);i.push(...E),E.length===0&&e.push(v.entityId)}),e.forEach(v=>{const E=u.get(v);E?[f.DefinitionEntity,f.BuiltInBaseEntity].includes(E.type)||i.push(new ee({id:`${d.id}--${v}--${k.InvalidImplementsReference}`,code:k.InvalidImplementsReference,severity:q.Error,message:`Entity of type "${d.type}" with id "${d.id}", has an 'valueAsTypeSingle' reference that isn't pointing to an entity of type 'definition-entity', 'function-declaration' or 'operation'.`})):i.push(new ee({id:`${d.id}--${v}--${k.ReferencedEntityNotFound}`,code:k.ReferencedEntityNotFound,severity:q.Error,message:`Entity of type "${d.type}" with id "${d.id}", is referencing an entity with id "${v}" that isn't yet found in the project. Perhaps it should be created first. Or perhaps the ID is incorrect.`}))})}return i}var gF=(d=>(d.ValueAsTypeSingle="value-as-type-single",d.ValueAsTypeList="value-as-type-list",d))(gF||{});const Kt=class Kt extends Nr{constructor(i,a){super(i);g(this,"initialData");g(this,"type",f.LiteralValue);g(this,"id");g(this,"name");g(this,"autogeneration",null);g(this,"value",null);g(this,"valueAsTypeSingle",null);g(this,"valueAsTypeList",null);g(this,"errors",[]);g(this,"parent");g(this,"standaloneParent");g(this,"project");g(this,"detachedDependents",{});g(this,"knownVersions",null);g(this,"activeVersion",!1);g(this,"initialized",!1);g(this,"startedInitialization",!1);g(this,"standalone",!1);this.initialData=i,this.project=a,this.id=i.id,this.name=i.name,this.autogeneration=i.autogeneration,this.value=i.value}static new(i=null){return{id:N.UUID.uuid(),version:N.UUID.uuid(),createdAt:(i==null?void 0:i.timestamp)||L().toISOString(),author:(i==null?void 0:i.author)||N.sessionAuthor,previousVersion:null,deleted:!1,type:f.LiteralValue,standaloneParent:null,name:"",autogeneration:null,value:null,valueAsTypeSingle:null,valueAsTypeList:null,parent:null}}static fromGenerationTarget(i,a){const o=J(i.parent),p=a.get(o);let e=null,y=null;i.valueAsTypeList?Array.isArray(i.valueAsTypeList)&&(y=i.valueAsTypeList.map(w=>a.get(w)||a.getBuiltIn(w))):i.valueAsTypeSingle&&(e=a.get(i.valueAsTypeSingle)||a.getBuiltIn(i.valueAsTypeSingle));const v={id:i.id,version:N.UUID.uuid(),createdAt:L().toISOString(),author:N.sessionAuthor,previousVersion:null,deleted:!1,type:f.LiteralValue,standaloneParent:null,name:i.name,autogeneration:i.autogeneration,valueAsTypeSingle:e,valueAsTypeList:y,value:i.value||null,parent:p},E=te(v,a);return E.setParent(p,null),E}static validateGenerationTarget(i,a){let o=JSON.parse(JSON.stringify(i));const p=[],e=nEe(o,a);return p.push(...e,...Br(o)),{errors:p,modifiedData:o}}get valueAsType(){return this.valueAsTypeSingle?this.valueAsTypeSingle:this.valueAsTypeList?this.valueAsTypeList:null}get isFinal(){var i;return!!(this.parent.type===f.Property&&(this.parent.constant||(i=this.parent.implements)!=null&&i.constant)||this.parent.type===f.Property&&this.parent.parent.type===f.DefinitionEntity&&!sf(this.parent.parent))}validateGeneratedUpdate(i){const a=[];return i.parent&&a.push(new ee({id:`${this.id}--${k.InvalidParentUpdate}`,code:k.InvalidParentUpdate,severity:q.Error,message:`Entity of type '${this.type}' with id '${this.id}' cannot have the 'parent' property updated, as it would mean moving the '${this.type}' entity to another parent entity.
186
- This is likely an incorrect strategy, either the '${this.type}' entity doesn't need to be updated or it should be deleted and a new one created in the desired parent.`})),{errors:a,modifiedData:i}}subscribeDependents(i){return i.forEach(a=>{this.detachedDependents[a.entity.id]||(this.detachedDependents[a.entity.id]=a)}),this}unsubscribeDependents(i){return i.forEach(a=>{this.detachedDependents[a.entity.id]&&delete this.detachedDependents[a.entity.id]}),this}syncDependents(i=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"sync-dependents"))){const a=[],o=[],p=[],e=[];return Object.values(this.detachedDependents).forEach(y=>{const v=y.entity.afterAllChildrenInitialized(i);a.push(...v.updated),o.push(...v.added),p.push(...v.removed),e.push(...v.affected)}),i==null||i.attemptAutoclose("sync-dependents",this.id),{updated:R(a),added:R(o),removed:R(p),affected:R(e),self:this}}onDetachedDependencyRemoved(i,a,o){const p=[],e=[],y=[],v=[];return a==="value-as-type-single"&&(this.valueAsTypeSingle=null,o==null||o.add(this,S.Updated)),a==="value-as-type-list"&&(this.valueAsTypeList=(this.valueAsTypeList||[]).filter(E=>E.id!==i.id),o==null||o.add(this,S.Updated)),{updated:R(p),added:R(e),removed:R(y),affected:R(v),self:this}}onDetachedDependencyRestored(i,a,o){const p=[],e=[],y=[],v=[];return a==="value-as-type-single"&&(this.valueAsTypeSingle=i,o==null||o.add(this,S.Updated)),a==="value-as-type-list"&&(this.valueAsTypeList=[...Array.isArray(this.valueAsTypeList||[])?this.valueAsTypeList:[],i],o==null||o.add(this,S.Updated)),{updated:R(p),added:R(e),removed:R(y),affected:R(v),self:this}}unsubscribeFromDependencies(){return this.valueAsTypeSingle&&this.valueAsTypeSingle.type!==f.BuiltInBaseEntity&&this.valueAsTypeSingle.unsubscribeDependents([{entity:this,field:"value-as-type-single"}]),this.valueAsTypeList&&Array.isArray(this.valueAsTypeList)&&this.valueAsTypeList.forEach(i=>{i.type!==f.BuiltInBaseEntity&&i.unsubscribeDependents([{entity:this,field:"value-as-type-list"}])}),this}subscribeToDependencies(){return!this.valueAsTypeSingle&&!this.valueAsTypeList?this:(this.valueAsTypeList&&Array.isArray(this.valueAsTypeList)?this.valueAsTypeList.forEach(i=>{i.type!==f.BuiltInBaseEntity&&i.subscribeDependents([{entity:this,field:"value-as-type-list"}])}):this.valueAsTypeSingle&&this.valueAsTypeSingle.type!==f.BuiltInBaseEntity&&this.valueAsTypeSingle.subscribeDependents([{entity:this,field:"value-as-type-single"}]),this)}increaseVersion(i){if(i&&!L(i).isValid())throw new Error(`The shared timestamp '${i}' is not a valid ISO 8601 date string.`);return i&&L(i).isSame(L(this.createdAt))?this:(this.previousVersion=this.version,this.version=N.UUID.uuid(),this.createdAt=L(i).toISOString()||L().toISOString(),this)}captureVersion(){var a;const i=((a=this.knownVersions)==null?void 0:a.get(this.version))||new Kt(this,this.project);return i.metaSync(this.toMeta(),null),this.knownVersions=this.knownVersions?this.knownVersions.set(this.version,i):new Map([[this.version,i]]),i.valueAsTypeSingle=this.valueAsTypeSingle,i.valueAsTypeList=this.valueAsTypeList?[...this.valueAsTypeList]:this.valueAsTypeList,i.parent=this.parent,this}recursiveCaptureUpstreamVersions(i){const a=[],o=[],p=[],e=[];if(this.parent){this.parent.increaseVersion(i);const y=this.parent.recursiveCaptureUpstreamVersions(i);a.push(this.parent,...y.updated),o.push(...y.added),p.push(...y.removed)}return{updated:R(a),added:R(o),removed:R(p),affected:R(e),self:this}}async restoreVersion(i){var v;const a=[],o=[],p=[],e=[];if(this.version===i)return{updated:R(a),added:R(o),removed:R(p),affected:R(e),self:this};if(!this.knownVersions){const E=new Map;for(const[w,A]of this.knownVersions||new Map){if(E.set(w,A),A.activeVersion=!1,A.knownVersions)for(const[$,V]of A.knownVersions)E.set($,V);A.knownVersions=null}}let y=(v=this.knownVersions)==null?void 0:v.get(i);if(!y){const E=await this.APILoadVersion({},i);if(!E)throw new Error(`Version with id '${i}' for entity with id '${this.id}' not found.`);y=new Kt(E,this.project)}return this.metaSync(y.toShallowJSON(),null),this.previousVersion=y.previousVersion,this.version=y.version,this.createdAt=y.createdAt,this.author=y.author,this.deleted=y.deleted,this.valueAsTypeSingle=y.valueAsTypeSingle,this.parent=y.parent,{updated:R(a),added:R(o),removed:R(p),affected:R(e),self:this}}updateWithShallowTransfer(i,a=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"update-with-shallow-transfer"))){if(this.metaSync(i,a),this.version=i.version,this.createdAt=i.createdAt,this.author=i.author,this.deleted=i.deleted,this.previousVersion=i.previousVersion,i.parent&&i.standaloneParent)throw new Error(`Entity with id '${this.id}' cannot have both 'parent' and 'standaloneParent' properties set.`);if(i.parent){const o=J(i.parent),p=this.project.get(o),e=this.parent;if(e&&e.id!==(p==null?void 0:p.id)&&this.removeFromParent(a),p)this.setParent(p,null);else throw new Error(`${this.type} with id '${this.id}' has a 'parent' reference '${o}' that isn't found in the project`)}else if(i.standaloneParent){const o=J(i.standaloneParent),p=this.project.get(o);if(p)this.setStandaloneParent(p);else throw new Error(`${this.type} with id '${this.id}' has a 'standaloneParent' reference '${o}' that isn't found in the project`)}else throw new Error(`${this.type} with id '${this.id}' must have a 'parent'`);if(i.valueAsTypeList&&Array.isArray(i.valueAsTypeList))this.valueAsTypeList=this.valueAsTypeList||[],i.valueAsTypeList.forEach(o=>{const p=J(o),e=this.project.get(p);e&&this.valueAsTypeList.push(e)});else if(i.valueAsTypeSingle){const o=J(i.valueAsTypeSingle),p=this.project.get(o);p&&(this.valueAsTypeSingle=p)}return this.captureVersion(),this.subscribeToDependencies(),a==null||a.attemptAutoclose("update-with-shallow-transfer",this.id),this}hydrateAncestors(){const i=[],a=[],o=[],p=[];if(this.initialData.parent&&this.initialData.standaloneParent)throw new Error(`Entity with id '${this.id}' cannot have both 'parent' and 'standaloneParent' properties set.`);if(this.initialData.parent){const e=J(this.initialData.parent),y=this.project.get(e);if(y)this.setParent(y,null),i.push(y);else throw new Error(`${this.type} with id '${this.id}' has a 'parent' reference '${e}' that isn't found in the project`)}else if(this.initialData.standaloneParent){const e=J(this.initialData.standaloneParent),y=this.project.get(e);if(y)this.setStandaloneParent(y);else throw new Error(`${this.type} with id '${this.id}' has a 'standaloneParent' reference '${e}' that isn't found in the project`)}else throw new Error(`${this.type} with id '${this.id}' must have a 'parent'`);if(this.initialData.valueAsTypeList&&Array.isArray(this.initialData.valueAsTypeList))this.valueAsTypeList=this.valueAsTypeList||[],this.initialData.valueAsTypeList.forEach(e=>{const y=J(e),v=this.project.get(y);v&&this.valueAsTypeList.push(v)});else if(this.initialData.valueAsTypeSingle){const e=J(this.initialData.valueAsTypeSingle),y=this.project.get(e);y&&(this.valueAsTypeSingle=y)}return{updated:R(i),added:R(a),removed:R(o),affected:R(p),self:this}}afterAllChildrenInitialized(i=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"after-all-children-initialized"))){const a=[],o=[],p=[],e=[];return this.initialized=!0,this.captureVersion(),i==null||i.attemptAutoclose("after-all-children-initialized",this.id),{updated:R(a),added:R(o),removed:R(p),affected:R(e),self:this}}addSelfToProject(i=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"add-self-to-project"))){var y,v;const a=[this],o=[],p=[],e=[];return((y=this.parent)==null?void 0:y.type)===f.DataType?this.parent.setEntity(this,i):(v=this.parent)==null||v.setDefaultValue(this,i),e.push(this.parent),this.subscribe(),this.subscribeToDependencies(),i==null||i.attemptAutoclose("add-self-to-project",this.id),{updated:R(a),added:R(o),removed:R(p),affected:R(e),self:this}}setParent(i,a=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"set-parent"))){var o;return((o=this.parent)==null?void 0:o.id)!==(i==null?void 0:i.id)&&(this.parent=i,a&&(a==null||a.add(this,S.Updated))),a==null||a.attemptAutoclose("set-parent",this.id),this}setStandaloneParent(i){return this.standaloneParent=i,this}setValueAsTypeSingle(i,a=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"set-value-as-type-single"))){return this.valueAsTypeSingle!==i&&(this.valueAsTypeSingle=i,a==null||a.add(this,S.Updated)),a==null||a.attemptAutoclose("set-value-as-type-single",this.id),this}setValueAsTypeList(i,a=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"set-value-as-type-list"))){var o,p;return!i&&this.valueAsTypeList?(this.valueAsTypeList=null,a==null||a.add(this,S.Updated)):i&&!this.valueAsTypeList?(this.valueAsTypeList=i,a==null||a.add(this,S.Updated)):i&&this.valueAsTypeList&&((o=this.valueAsTypeList)==null?void 0:o.length)!==i.length?(this.valueAsTypeList=i,a==null||a.add(this,S.Updated)):i&&this.valueAsTypeList&&((p=this.valueAsTypeList)!=null&&p.every((e,y)=>e!==i[y]))&&(this.valueAsTypeList=i,a==null||a.add(this,S.Updated)),a==null||a.attemptAutoclose("set-value-as-type-list",this.id),this}setValueAsType(i,a=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"set-value-as-type"))){return i?(Array.isArray(i)?this.setValueAsTypeList(i,a):this.setValueAsTypeSingle(i,a),a==null||a.attemptAutoclose("set-value-as-type",this.id),this):(this.setValueAsTypeSingle(null,a),this.setValueAsTypeList(null,a),this)}initChildren(i=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"init-children"))){if(this.initialized||this.startedInitialization)return this;if(this.startedInitialization=!0,this.standalone){if(this.initialData.valueAsTypeList&&Array.isArray(this.initialData.valueAsTypeList))this.valueAsTypeList=this.initialData.valueAsTypeList.map(a=>{if(a.type===f.GenericReference){const p=this.project.findSubscribedBuiltInInstanceFromReference(a);if(!p)throw new Error(`Standalone entity of type '${this.type}' with id '${this.id}' has a reference to an entity of type '${a.entityType}' with id '${a.entityId}' that is not part of the project state.`);return p}const o=this.project.get(a.id);if(!o)throw new Error(`Standalone entity of type '${this.type}' with id '${this.id}' has a reference to an entity of type '${a.type}' with id '${a.id}' that is not part of the project state.`);return o});else if(this.initialData.valueAsTypeSingle){if(this.initialData.valueAsTypeSingle.type===f.GenericReference){const o=this.project.findSubscribedBuiltInInstanceFromReference(this.initialData.valueAsTypeSingle);if(!o)throw new Error(`Standalone entity of type '${this.type}' with id '${this.id}' has a reference to an entity of type '${this.initialData.valueAsTypeSingle.entityType}' with id '${this.initialData.valueAsTypeSingle.entityId}' that is not part of the project state.`);return this.valueAsTypeSingle=o,this}const a=this.project.get(this.initialData.valueAsTypeSingle.id);if(!a)throw new Error(`Standalone entity of type '${this.type}' with id '${this.id}' has a reference to an entity of type '${this.initialData.valueAsTypeSingle.type}' with id '${this.initialData.valueAsTypeSingle.id}' that is not part of the project state.`);this.valueAsTypeSingle=a}return this}if(this.initialData.valueAsTypeList&&Array.isArray(this.initialData.valueAsTypeList))this.valueAsTypeList=this.initialData.valueAsTypeList.map(a=>{if(a.type===f.GenericReference){const p=this.project.findSubscribedBuiltInInstanceFromReference(a);if(!p)throw new Error(`Standalone entity of type '${this.type}' with id '${this.id}' has a reference to an entity of type '${a.entityType}' with id '${a.entityId}' that is not part of the project state.`);return p}const o=this.project.get(a.id);if(!o)throw new Error(`Standalone entity of type '${this.type}' with id '${this.id}' has a reference to an entity of type '${a.type}' with id '${a.id}' that is not part of the project state.`);return o});else if(this.initialData.valueAsTypeSingle){if(this.initialData.valueAsTypeSingle.type===f.GenericReference){const o=J(this.initialData.valueAsTypeSingle),p=o?this.project.get(o):null;if(!p)throw new Error(`Standalone entity of type '${this.type}' with id '${this.id}' has a reference to an entity of type '${this.initialData.valueAsTypeSingle.entityType}' with id '${this.initialData.valueAsTypeSingle.entityId}' that is not part of the project state.`);return this.valueAsTypeSingle=p,this}const a=this.project.get(this.initialData.valueAsTypeSingle.id);if(!a)throw new Error(`Standalone entity of type '${this.type}' with id '${this.id}' has a reference to an entity of type '${this.initialData.valueAsTypeSingle.type}' with id '${this.initialData.valueAsTypeSingle.id}' that is not part of the project state.`);this.valueAsTypeSingle=a}return this.subscribeToDependencies(),this.afterAllChildrenInitialized(i),i==null||i.attemptAutoclose("init-children",this.id),this}subscribe(){return this.activeVersion=!0,this.project.subscribeInstance(this),this}unsubscribe(){return this.project.unsubscribeInstance(this),this}metaSync(i,a=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"meta-sync"))){const o=Ur(this,i),p=this.toMeta();return this.name=i.name!==void 0?i.name:p.name,this.autogeneration=i.autogeneration!==void 0?i.autogeneration:p.autogeneration,this.value=i.value!==void 0?i.value:p.value,super.metaSync(i),i.deleted===!0&&!p.deleted?a==null||a.add(this,S.Removed):i.deleted===!1&&p.deleted?a==null||a.add(this,S.Added):o&&(a==null||a.add(this,S.Updated)),a==null||a.attemptAutoclose("meta-sync",this.id),this}async APILoad(i=ve,...a){return await Kt.repository.APILoad(this.id,...a),this}async APICreate(i=ve,...a){return await Kt.repository.APICreate(this.toShallowJSON(),...a),this}async APIUpdate(i=ve,...a){return await Kt.repository.APIUpdate(this.toShallowJSON(),...a),this}async APIDelete(i=ve,...a){return await Kt.repository.APIDelete(this.toShallowJSON(),...a),this}async APIClone(i=ve,...a){return await Kt.repository.APIClone(this.id,...a),this}async APILoadVersion(i=ve,a,...o){return await Kt.repository.APILoadVersion(this.id,a,...o)}removeFromParent(i=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"remove-from-parent"))){const a=[],o=[],p=[],e=[];return this.parent&&(this.parent.type===f.DataType?this.parent.setEntity(null,i):Lv.includes(this.parent.type)&&this.parent.setDefaultValue(null,i),e.push(this.parent)),i==null||i.attemptAutoclose("remove-from-parent",this.id),{added:R(p),updated:R(a),removed:R(o),affected:R(e),self:this}}remove({ignoreUpstream:i}={ignoreUpstream:!1},a=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"remove-entity"))){const o=[],p=[],e=[],y=[];if(a!=null&&a.hasRemoved(this.id))return a==null||a.attemptAutoclose("remove-entity",this.id),{added:[],updated:[],removed:[],affected:[],self:this};if(p.push(this),this.unsubscribe(),this.unsubscribeFromDependencies(),this.project.subscribeDeletedInstance(this),this.metaSync({deleted:!0},a),Object.values(this.detachedDependents).forEach(v=>{const{updated:E,removed:w,added:A}=v.entity.onDetachedDependencyRemoved(this,v.field,a);o.push(...E),p.push(...w),e.push(...A)}),!i){const v=this.removeFromParent(a);e.push(...v.added),o.push(...v.updated),p.push(...v.removed),y.push(...v.affected)}return a==null||a.attemptAutoclose("remove-entity",this.id),{added:R(e),updated:R(o),removed:R(p),affected:R(y),self:this}}restore({}={},i=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"restore-entity"))){const a=[],o=[],p=[],e=[];return i!=null&&i.hasAdded(this.id)?(i==null||i.attemptAutoclose("restore-entity",this.id),{added:[],updated:[],removed:[],affected:[],self:this}):(this.subscribe(),this.project.unsubscribeDeletedInstance(this),this.metaSync({deleted:!1},i),Object.values(this.detachedDependents).forEach(y=>{const{updated:v,removed:E,added:w}=y.entity.onDetachedDependencyRestored(this,y.field,i);o.push(...v),p.push(...E),a.push(...w)}),i==null||i.attemptAutoclose("restore-entity",this.id),{added:R(a),updated:R(o),removed:R(p),affected:R(e),self:this})}toFlat(i=new Set){return i.has(this.id)?[]:(i.add(this.id),[this,...this.valueAsTypeSingle?this.valueAsTypeSingle.toFlat(i):[],...this.valueAsTypeList&&Array.isArray(this.valueAsTypeList)?this.valueAsTypeList.flatMap(o=>o.toFlat(i)):[]])}toFlatIds(i=new Set){return i.has(this.id)?[]:(i.add(this.id),[this.id,...this.valueAsTypeSingle?this.valueAsTypeSingle.toFlatIds(i):[],...this.valueAsTypeList&&Array.isArray(this.valueAsTypeList)?this.valueAsTypeList.flatMap(o=>o.toFlatIds(i)):[]])}toMeta(){return{id:this.id,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,value:this.value,autogeneration:this.autogeneration,type:this.type,name:this.name}}toJSON(i=new Set){var a,o,p;return i.has(this.id)?this.toReference():(i.add(this.id),{id:this.id,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,type:this.type,name:this.name,autogeneration:this.autogeneration,value:this.value,valueAsTypeSingle:((a=this.valueAsTypeSingle)==null?void 0:a.toJSON(i))||null,valueAsTypeList:Array.isArray(this.valueAsTypeSingle)?this.valueAsTypeSingle.map(e=>e.toJSON(i)):null,parent:(o=this.parent)==null?void 0:o.toReference(),standaloneParent:(p=this.standaloneParent)==null?void 0:p.toReference()})}toJSONClone(i=ke){var o,p,e,y,v,E,w;let a;return(o=i.seenEntityMaps)!=null&&o.has(this.id)?a=i.seenEntityMaps.get(this.id):(a=i.newId||Gr(this,this.project,i.uuidStrategy),i.seenEntityMaps&&i.seenEntityMaps.set(this.id,a)),(p=i.seenEntities)!=null&&p.has(a)||(e=i.seenEntities)!=null&&e.has(this.id)?this.toReference({seenEntityMaps:i.seenEntityMaps}):((y=i.seenEntities)==null||y.add(a),(v=i.seenEntities)==null||v.add(this.id),{id:a,version:N.UUID.uuid(),createdAt:i.timestamp||L().toISOString(),previousVersion:null,author:this.author,deleted:this.deleted,type:this.type,name:this.name,autogeneration:this.autogeneration,value:this.value,valueAsTypeSingle:this.valueAsTypeSingle?this.project.getBuiltIn(this.valueAsTypeSingle.id)?this.valueAsTypeSingle.toJSON():this.valueAsTypeSingle.toJSONClone({...i,newId:null}):null,valueAsTypeList:this.valueAsTypeSingle&&Array.isArray(this.valueAsTypeSingle)?this.valueAsTypeSingle.map(A=>this.project.getBuiltIn(A.id)?A.toJSON():A.toJSONClone({...i,newId:null})):null,parent:(E=this.parent)==null?void 0:E.toReference({seenEntityMaps:i.seenEntityMaps}),standaloneParent:(w=this.standaloneParent)==null?void 0:w.toReference({seenEntityMaps:i.seenEntityMaps})})}toReference(i=ke){var o;let a=this.id;return(o=i.seenEntityMaps)!=null&&o.has(this.id)&&(a=i.seenEntityMaps.get(this.id)),{id:a+"--"+N.UUID.uuid()+"--ref",type:f.GenericReference,entityId:a,version:this.version,entityType:this.type}}toShallowJSON(i=ke){var o,p,e,y;let a=this.id;return(o=i.seenEntityMaps)!=null&&o.has(this.id)&&(a=i.seenEntityMaps.get(this.id)),{id:a,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,type:this.type,name:this.name,valueAsTypeSingle:((p=this.valueAsTypeSingle)==null?void 0:p.toReference(i))||null,valueAsTypeList:Array.isArray(this.valueAsTypeSingle)?this.valueAsTypeSingle.map(v=>v.toReference(i)):null,value:this.value,autogeneration:this.autogeneration,parent:(e=this.parent)==null?void 0:e.toReference(i),standaloneParent:(y=this.standaloneParent)==null?void 0:y.toReference(i)}}toFlatJSON(i=new Set){return i.has(this.id)?[]:(i.add(this.id),[this.toShallowJSON(),...this.valueAsTypeSingle?this.valueAsTypeSingle.toFlatJSON(i):[],...this.valueAsTypeList&&Array.isArray(this.valueAsTypeList)?this.valueAsTypeList.flatMap(o=>o.toFlatJSON(i)):[]])}toGenerationTarget(){var i,a,o;return{id:this.id,type:this.type,name:this.name,valueAsTypeSingle:((i=this.valueAsTypeSingle)==null?void 0:i.id)||null,valueAsTypeList:Array.isArray(this.valueAsTypeSingle)?this.valueAsTypeSingle.map(p=>p.id):null,value:this.value,autogeneration:this.autogeneration,parent:(a=this.parent)==null?void 0:a.id,standaloneParent:(o=this.standaloneParent)==null?void 0:o.id}}toFlatGenerationTarget(i=new Set){return i.has(this.id)?[]:(i.add(this.id),[this.toGenerationTarget(),...this.valueAsTypeSingle?this.valueAsTypeSingle.toFlatGenerationTarget(i):[],...this.valueAsTypeList&&Array.isArray(this.valueAsTypeList)?this.valueAsTypeList.flatMap(o=>o.toFlatGenerationTarget(i)):[]])}clearErrors(){return this.errors=[],this}validate(){const i=_F(this);return this.errors=i,{success:!0}}getErrors(){return[...this.errors]}getShallowErrors(){return this.errors}clone(i=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"clone-entity")),a=null,o=null,p=!0){let e=Fr(a,this);const y=this.toJSON(),v=o||N.UUID.uuid();y.id=v,y.version=N.UUID.uuid(),y.createdAt=(i==null?void 0:i.timestamp)||L().toISOString(),y.author=(i==null?void 0:i.author)||"1",y.previousVersion=null,y.deleted=!1;const E=lr(y,e);return E.initChildren(i),a&&E.setParent(a,null),i==null||i.add(E,S.Added),p&&E.subscribe(),i==null||i.attemptAutoclose("clone-entity",this.id),E}merge(i,a=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"merge-literal-value"))){const o=[],p=[],e=[],y=[];return this.valueAsTypeSingle!==(i==null?void 0:i.valueAsTypeSingle)&&(this.setValueAsType(i.valueAsTypeSingle,a),o.push(this)),this.value!==i.value&&(this.metaSync({value:i.value},a),o.push(this)),this.autogeneration!==i.autogeneration&&(this.metaSync({autogeneration:i.autogeneration},a),o.push(this)),this.name!==i.name&&(this.metaSync({name:i.name},a),o.push(this)),a==null||a.attemptAutoclose("merge-literal-value",this.id),{updated:R(o),added:R(p),removed:R(e),affected:R(y),self:this}}};g(Kt,"repository",{APICreate:async(i,...a)=>i,APIUpdate:async(i,...a)=>i,APIDelete:async(i,...a)=>i,APIClone:async(i,...a)=>{},APILoad:async(i,...a)=>null,APILoadVersion:async(i,a,...o)=>null}),g(Kt,"type",f.LiteralValue),g(Kt,"USER_MANAGED_PARENT_TYPES",[f.DataType,f.InputMap,f.Property,f.ArgumentDeclaration,f.ReturnDeclaration,f.VariableDeclaration,f.VariableInstance,f.ValueDescriptor,f.OutputMap]),g(Kt,"PARENT_TYPES",[...Kt.USER_MANAGED_PARENT_TYPES]),g(Kt,"MUTABLE_BASE_PROPERTIES",["name","autogeneration","value"]),g(Kt,"INMUTABLE_BASE_PROPERTIES",["id","type","version","createdAt","author","previousVersion"]),g(Kt,"BASE_PROPERTIES",[...Kt.MUTABLE_BASE_PROPERTIES,...Kt.INMUTABLE_BASE_PROPERTIES]),g(Kt,"MUTABLE_META_PROPERTIES",[...Kt.MUTABLE_BASE_PROPERTIES]),g(Kt,"INMUTABLE_META_PROPERTIES",[...Kt.INMUTABLE_BASE_PROPERTIES]),g(Kt,"META_PROPERTIES",[...Kt.MUTABLE_META_PROPERTIES,...Kt.INMUTABLE_META_PROPERTIES]),g(Kt,"MUTABLE_UPSTREAM_PROPERTIES",[]),g(Kt,"INMUTABLE_UPSTREAM_PROPERTIES",["parent"]),g(Kt,"UPSTREAM_PROPERTIES",[...Kt.MUTABLE_UPSTREAM_PROPERTIES,...Kt.INMUTABLE_UPSTREAM_PROPERTIES]),g(Kt,"MUTABLE_DOWNSTREAM_PROPERTIES",["valueAsTypeSingle","valueAsTypeList"]),g(Kt,"INMUTABLE_DOWNSTREAM_PROPERTIES",[]),g(Kt,"DOWNSTREAM_PROPERTIES",[...Kt.MUTABLE_DOWNSTREAM_PROPERTIES,...Kt.INMUTABLE_DOWNSTREAM_PROPERTIES]),g(Kt,"PROPERTIES",[...Kt.META_PROPERTIES,...Kt.UPSTREAM_PROPERTIES,...Kt.DOWNSTREAM_PROPERTIES]);let ki=Kt;function DF(d){var p;const u=lye(),i=d.toJSON();u.safeParse(i).success,d.outputs.forEach(e=>e.validate()),(p=d.throws)==null||p.validate();const o=[];return vr(d.errors,o)}const aEe=Object.freeze(Object.defineProperty({__proto__:null,validate:DF},Symbol.toStringTag,{value:"Module"}));var OF=(d=>(d.Parent="parent",d))(OF||{});const Qt=class Qt extends Nr{constructor(i,a){super(i);g(this,"initialData");g(this,"id");g(this,"x");g(this,"y");g(this,"type",f.BreakStatement);g(this,"outputs",[]);g(this,"calledBySuccess",[]);g(this,"calledByError",[]);g(this,"calledByEntry",[]);g(this,"throws",null);g(this,"project");g(this,"errors",[]);g(this,"parent");g(this,"detachedDependents",{});g(this,"knownVersions",null);g(this,"activeVersion",!1);g(this,"initialized",!1);g(this,"startedInitialization",!1);g(this,"suggestion",!1);this.initialData=i,this.project=a,this.id=i.id,this.x=i.x,this.y=i.y}static new(i=null){return{id:N.UUID.uuid(),version:N.UUID.uuid(),createdAt:(i==null?void 0:i.timestamp)||L().toISOString(),author:(i==null?void 0:i.author)||N.sessionAuthor,previousVersion:null,deleted:!1,type:f.BreakStatement,outputs:[],calledBySuccess:[],calledByError:[],calledByEntry:[],throws:null,parent:null,x:0,y:0}}static fromGenerationTarget(i,a){const o=J(i.parent),p=a.get(o),e=i.calledByEntry.map(A=>{const $=J(A);return a.get($)}),y=i.calledBySuccess.map(A=>{const $=J(A);return a.get($)}),v=i.calledByError.map(A=>{const $=J(A);return a.get($)}),E={id:i.id,version:N.UUID.uuid(),createdAt:L().toISOString(),author:N.sessionAuthor,previousVersion:null,deleted:!1,type:f.BreakStatement,x:0,y:0,outputs:[],calledBySuccess:y,calledByError:v,calledByEntry:e,throws:null,parent:p},w=te(E,a);return w.setParent(p,null),w}static validateGenerationTarget(i,a){let o=JSON.parse(JSON.stringify(i));const p=[],e=ai(o,{parent:{list:!1,types:[f.Loop]}},a);return o=e.modifiedData,p.push(...e.errors,...Br(o)),{errors:p,modifiedData:o}}validateGeneratedUpdate(i){const a=[];return i.parent&&a.push(new ee({id:`${this.id}--${k.InvalidParentUpdate}`,code:k.InvalidParentUpdate,severity:q.Error,message:`Entity of type '${this.type}' with id '${this.id}' cannot have the 'parent' property updated. The 'parent' on a callable entity, is its scope. It scope is auto-calculated implicitly by the its caller.
186
+ This is likely an incorrect strategy, either the '${this.type}' entity doesn't need to be updated or it should be deleted and a new one created in the desired parent.`})),{errors:a,modifiedData:i}}subscribeDependents(i){return i.forEach(a=>{this.detachedDependents[a.entity.id]||(this.detachedDependents[a.entity.id]=a)}),this}unsubscribeDependents(i){return i.forEach(a=>{this.detachedDependents[a.entity.id]&&delete this.detachedDependents[a.entity.id]}),this}syncDependents(i=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"sync-dependents"))){const a=[],o=[],p=[],e=[];return Object.values(this.detachedDependents).forEach(y=>{const v=y.entity.afterAllChildrenInitialized(i);a.push(...v.updated),o.push(...v.added),p.push(...v.removed),e.push(...v.affected)}),i==null||i.attemptAutoclose("sync-dependents",this.id),{updated:R(a),added:R(o),removed:R(p),affected:R(e),self:this}}onDetachedDependencyRemoved(i,a,o){const p=[],e=[],y=[],v=[];return a==="value-as-type-single"&&(this.valueAsTypeSingle=null,o==null||o.add(this,S.Updated)),a==="value-as-type-list"&&(this.valueAsTypeList=(this.valueAsTypeList||[]).filter(E=>E.id!==i.id),o==null||o.add(this,S.Updated)),{updated:R(p),added:R(e),removed:R(y),affected:R(v),self:this}}onDetachedDependencyRestored(i,a,o){const p=[],e=[],y=[],v=[];return a==="value-as-type-single"&&(this.valueAsTypeSingle=i,o==null||o.add(this,S.Updated)),a==="value-as-type-list"&&(this.valueAsTypeList=[...Array.isArray(this.valueAsTypeList||[])?this.valueAsTypeList:[],i],o==null||o.add(this,S.Updated)),{updated:R(p),added:R(e),removed:R(y),affected:R(v),self:this}}unsubscribeFromDependencies(){return this.valueAsTypeSingle&&this.valueAsTypeSingle.type!==f.BuiltInBaseEntity&&this.valueAsTypeSingle.unsubscribeDependents([{entity:this,field:"value-as-type-single"}]),this.valueAsTypeList&&Array.isArray(this.valueAsTypeList)&&this.valueAsTypeList.forEach(i=>{i.type!==f.BuiltInBaseEntity&&i.unsubscribeDependents([{entity:this,field:"value-as-type-list"}])}),this}subscribeToDependencies(){return!this.valueAsTypeSingle&&!this.valueAsTypeList?this:(this.valueAsTypeList&&Array.isArray(this.valueAsTypeList)?this.valueAsTypeList.forEach(i=>{i.type!==f.BuiltInBaseEntity&&i.subscribeDependents([{entity:this,field:"value-as-type-list"}])}):this.valueAsTypeSingle&&this.valueAsTypeSingle.type!==f.BuiltInBaseEntity&&this.valueAsTypeSingle.subscribeDependents([{entity:this,field:"value-as-type-single"}]),this)}increaseVersion(i){if(i&&!L(i).isValid())throw new Error(`The shared timestamp '${i}' is not a valid ISO 8601 date string.`);return i&&L(i).isSame(L(this.createdAt))?this:(this.previousVersion=this.version,this.version=N.UUID.uuid(),this.createdAt=L(i).toISOString()||L().toISOString(),this)}captureVersion(){var a;const i=((a=this.knownVersions)==null?void 0:a.get(this.version))||new Kt(this,this.project);return i.metaSync(this.toMeta(),null),this.knownVersions=this.knownVersions?this.knownVersions.set(this.version,i):new Map([[this.version,i]]),i.valueAsTypeSingle=this.valueAsTypeSingle,i.valueAsTypeList=this.valueAsTypeList?[...this.valueAsTypeList]:this.valueAsTypeList,i.parent=this.parent,this}recursiveCaptureUpstreamVersions(i){const a=[],o=[],p=[],e=[];if(this.parent){this.parent.increaseVersion(i);const y=this.parent.recursiveCaptureUpstreamVersions(i);a.push(this.parent,...y.updated),o.push(...y.added),p.push(...y.removed)}return{updated:R(a),added:R(o),removed:R(p),affected:R(e),self:this}}async restoreVersion(i){var v;const a=[],o=[],p=[],e=[];if(this.version===i)return{updated:R(a),added:R(o),removed:R(p),affected:R(e),self:this};if(!this.knownVersions){const E=new Map;for(const[w,A]of this.knownVersions||new Map){if(E.set(w,A),A.activeVersion=!1,A.knownVersions)for(const[$,V]of A.knownVersions)E.set($,V);A.knownVersions=null}}let y=(v=this.knownVersions)==null?void 0:v.get(i);if(!y){const E=await this.APILoadVersion({},i);if(!E)throw new Error(`Version with id '${i}' for entity with id '${this.id}' not found.`);y=new Kt(E,this.project)}return this.metaSync(y.toShallowJSON(),null),this.previousVersion=y.previousVersion,this.version=y.version,this.createdAt=y.createdAt,this.author=y.author,this.deleted=y.deleted,this.valueAsTypeSingle=y.valueAsTypeSingle,this.parent=y.parent,{updated:R(a),added:R(o),removed:R(p),affected:R(e),self:this}}updateWithShallowTransfer(i,a=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"update-with-shallow-transfer"))){if(this.metaSync(i,a),this.version=i.version,this.createdAt=i.createdAt,this.author=i.author,this.deleted=i.deleted,this.previousVersion=i.previousVersion,i.parent&&i.standaloneParent)throw new Error(`Entity with id '${this.id}' cannot have both 'parent' and 'standaloneParent' properties set.`);if(i.parent){const o=J(i.parent),p=this.project.get(o),e=this.parent;if(e&&e.id!==(p==null?void 0:p.id)&&this.removeFromParent(a),p)this.setParent(p,null);else throw new Error(`${this.type} with id '${this.id}' has a 'parent' reference '${o}' that isn't found in the project`)}else if(i.standaloneParent){const o=J(i.standaloneParent),p=this.project.get(o);if(p)this.setStandaloneParent(p);else throw new Error(`${this.type} with id '${this.id}' has a 'standaloneParent' reference '${o}' that isn't found in the project`)}else throw new Error(`${this.type} with id '${this.id}' must have a 'parent'`);if(i.valueAsTypeList&&Array.isArray(i.valueAsTypeList))this.valueAsTypeList=this.valueAsTypeList||[],i.valueAsTypeList.forEach(o=>{const p=J(o),e=this.project.get(p);e&&this.valueAsTypeList.push(e)});else if(i.valueAsTypeSingle){const o=J(i.valueAsTypeSingle),p=this.project.get(o);p&&(this.valueAsTypeSingle=p)}return this.captureVersion(),this.subscribeToDependencies(),a==null||a.attemptAutoclose("update-with-shallow-transfer",this.id),this}hydrateAncestors(){const i=[],a=[],o=[],p=[];if(this.initialData.parent&&this.initialData.standaloneParent)throw new Error(`Entity with id '${this.id}' cannot have both 'parent' and 'standaloneParent' properties set.`);if(this.initialData.parent){const e=J(this.initialData.parent),y=this.project.get(e);if(y)this.setParent(y,null),i.push(y);else throw new Error(`${this.type} with id '${this.id}' has a 'parent' reference '${e}' that isn't found in the project`)}else if(this.initialData.standaloneParent){const e=J(this.initialData.standaloneParent),y=this.project.get(e);if(y)this.setStandaloneParent(y);else throw new Error(`${this.type} with id '${this.id}' has a 'standaloneParent' reference '${e}' that isn't found in the project`)}else throw new Error(`${this.type} with id '${this.id}' must have a 'parent'`);if(this.initialData.valueAsTypeList&&Array.isArray(this.initialData.valueAsTypeList))this.valueAsTypeList=this.valueAsTypeList||[],this.initialData.valueAsTypeList.forEach(e=>{const y=J(e),v=this.project.get(y);v&&this.valueAsTypeList.push(v)});else if(this.initialData.valueAsTypeSingle){const e=J(this.initialData.valueAsTypeSingle),y=this.project.get(e);y&&(this.valueAsTypeSingle=y)}return{updated:R(i),added:R(a),removed:R(o),affected:R(p),self:this}}afterAllChildrenInitialized(i=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"after-all-children-initialized"))){const a=[],o=[],p=[],e=[];return this.initialized=!0,this.captureVersion(),i==null||i.attemptAutoclose("after-all-children-initialized",this.id),{updated:R(a),added:R(o),removed:R(p),affected:R(e),self:this}}addSelfToProject(i=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"add-self-to-project"))){var y,v;const a=[this],o=[],p=[],e=[];return((y=this.parent)==null?void 0:y.type)===f.DataType?this.parent.setEntity(this,i):(v=this.parent)==null||v.setDefaultValue(this,i),e.push(this.parent),this.subscribe(),this.subscribeToDependencies(),i==null||i.attemptAutoclose("add-self-to-project",this.id),{updated:R(a),added:R(o),removed:R(p),affected:R(e),self:this}}setParent(i,a=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"set-parent"))){var o;return((o=this.parent)==null?void 0:o.id)!==(i==null?void 0:i.id)&&(this.parent=i,a&&(a==null||a.add(this,S.Updated))),a==null||a.attemptAutoclose("set-parent",this.id),this}setStandaloneParent(i){return this.standaloneParent=i,this}setValueAsTypeSingle(i,a=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"set-value-as-type-single"))){return this.valueAsTypeSingle!==i&&(this.valueAsTypeSingle=i,a==null||a.add(this,S.Updated)),a==null||a.attemptAutoclose("set-value-as-type-single",this.id),this}setValueAsTypeList(i,a=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"set-value-as-type-list"))){var o,p;return!i&&this.valueAsTypeList?(this.valueAsTypeList=null,a==null||a.add(this,S.Updated)):i&&!this.valueAsTypeList?(this.valueAsTypeList=i,a==null||a.add(this,S.Updated)):i&&this.valueAsTypeList&&((o=this.valueAsTypeList)==null?void 0:o.length)!==i.length?(this.valueAsTypeList=i,a==null||a.add(this,S.Updated)):i&&this.valueAsTypeList&&((p=this.valueAsTypeList)!=null&&p.every((e,y)=>e!==i[y]))&&(this.valueAsTypeList=i,a==null||a.add(this,S.Updated)),a==null||a.attemptAutoclose("set-value-as-type-list",this.id),this}setValueAsType(i,a=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"set-value-as-type"))){return i?(Array.isArray(i)?this.setValueAsTypeList(i,a):this.setValueAsTypeSingle(i,a),a==null||a.attemptAutoclose("set-value-as-type",this.id),this):(this.setValueAsTypeSingle(null,a),this.setValueAsTypeList(null,a),this)}initChildren(i=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"init-children"))){if(this.initialized||this.startedInitialization)return this;if(this.startedInitialization=!0,this.standalone){if(this.initialData.valueAsTypeList&&Array.isArray(this.initialData.valueAsTypeList))this.valueAsTypeList=this.initialData.valueAsTypeList.map(a=>{if(a.type===f.GenericReference){const p=this.project.findSubscribedBuiltInInstanceFromReference(a);if(!p)throw new Error(`Standalone entity of type '${this.type}' with id '${this.id}' has a reference to an entity of type '${a.entityType}' with id '${a.entityId}' that is not part of the project state.`);return p}const o=this.project.get(a.id);if(!o)throw new Error(`Standalone entity of type '${this.type}' with id '${this.id}' has a reference to an entity of type '${a.type}' with id '${a.id}' that is not part of the project state.`);return o});else if(this.initialData.valueAsTypeSingle){if(this.initialData.valueAsTypeSingle.type===f.GenericReference){const o=this.project.findSubscribedBuiltInInstanceFromReference(this.initialData.valueAsTypeSingle);if(!o)throw new Error(`Standalone entity of type '${this.type}' with id '${this.id}' has a reference to an entity of type '${this.initialData.valueAsTypeSingle.entityType}' with id '${this.initialData.valueAsTypeSingle.entityId}' that is not part of the project state.`);return this.valueAsTypeSingle=o,this}const a=this.project.get(this.initialData.valueAsTypeSingle.id);if(!a)throw new Error(`Standalone entity of type '${this.type}' with id '${this.id}' has a reference to an entity of type '${this.initialData.valueAsTypeSingle.type}' with id '${this.initialData.valueAsTypeSingle.id}' that is not part of the project state.`);this.valueAsTypeSingle=a}return this}if(this.initialData.valueAsTypeList&&Array.isArray(this.initialData.valueAsTypeList))this.valueAsTypeList=this.initialData.valueAsTypeList.map(a=>{if(a.type===f.GenericReference){const p=this.project.findSubscribedBuiltInInstanceFromReference(a);if(!p)throw new Error(`Standalone entity of type '${this.type}' with id '${this.id}' has a reference to an entity of type '${a.entityType}' with id '${a.entityId}' that is not part of the project state.`);return p}const o=this.project.get(a.id);if(!o)throw new Error(`Standalone entity of type '${this.type}' with id '${this.id}' has a reference to an entity of type '${a.type}' with id '${a.id}' that is not part of the project state.`);return o});else if(this.initialData.valueAsTypeSingle){if(this.initialData.valueAsTypeSingle.type===f.GenericReference){const o=J(this.initialData.valueAsTypeSingle),p=o?this.project.get(o):null;if(!p)throw new Error(`Standalone entity of type '${this.type}' with id '${this.id}' has a reference to an entity of type '${this.initialData.valueAsTypeSingle.entityType}' with id '${this.initialData.valueAsTypeSingle.entityId}' that is not part of the project state.`);return this.valueAsTypeSingle=p,this}const a=this.project.get(this.initialData.valueAsTypeSingle.id);if(!a)throw new Error(`Standalone entity of type '${this.type}' with id '${this.id}' has a reference to an entity of type '${this.initialData.valueAsTypeSingle.type}' with id '${this.initialData.valueAsTypeSingle.id}' that is not part of the project state.`);this.valueAsTypeSingle=a}return this.subscribeToDependencies(),this.afterAllChildrenInitialized(i),i==null||i.attemptAutoclose("init-children",this.id),this}subscribe(){return this.activeVersion=!0,this.project.subscribeInstance(this),this}unsubscribe(){return this.project.unsubscribeInstance(this),this}metaSync(i,a=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"meta-sync"))){const o=Ur(this,i),p=this.toMeta();return this.name=i.name!==void 0?i.name:p.name,this.autogeneration=i.autogeneration!==void 0?i.autogeneration:p.autogeneration,this.value=i.value!==void 0?i.value:p.value,super.metaSync(i),i.deleted===!0&&!p.deleted?a==null||a.add(this,S.Removed):i.deleted===!1&&p.deleted?a==null||a.add(this,S.Added):o&&(a==null||a.add(this,S.Updated)),a==null||a.attemptAutoclose("meta-sync",this.id),this}async APILoad(i=ve,...a){return await Kt.repository.APILoad(this.id,...a),this}async APICreate(i=ve,...a){return await Kt.repository.APICreate(this.toShallowJSON(),...a),this}async APIUpdate(i=ve,...a){return await Kt.repository.APIUpdate(this.toShallowJSON(),...a),this}async APIDelete(i=ve,...a){return await Kt.repository.APIDelete(this.toShallowJSON(),...a),this}async APIClone(i=ve,...a){return await Kt.repository.APIClone(this.id,...a),this}async APILoadVersion(i=ve,a,...o){return await Kt.repository.APILoadVersion(this.id,a,...o)}removeFromParent(i=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"remove-from-parent"))){const a=[],o=[],p=[],e=[];return this.parent&&(this.parent.type===f.DataType?this.parent.setEntity(null,i):Lv.includes(this.parent.type)&&this.parent.setDefaultValue(null,i),e.push(this.parent)),i==null||i.attemptAutoclose("remove-from-parent",this.id),{added:R(p),updated:R(a),removed:R(o),affected:R(e),self:this}}remove({ignoreUpstream:i}={ignoreUpstream:!1},a=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"remove-entity"))){const o=[],p=[],e=[],y=[];if(a!=null&&a.hasRemoved(this.id))return a==null||a.attemptAutoclose("remove-entity",this.id),{added:[],updated:[],removed:[],affected:[],self:this};if(p.push(this),this.unsubscribe(),this.unsubscribeFromDependencies(),this.project.subscribeDeletedInstance(this),this.metaSync({deleted:!0},a),Object.values(this.detachedDependents).forEach(v=>{const{updated:E,removed:w,added:A}=v.entity.onDetachedDependencyRemoved(this,v.field,a);o.push(...E),p.push(...w),e.push(...A)}),!i){const v=this.removeFromParent(a);e.push(...v.added),o.push(...v.updated),p.push(...v.removed),y.push(...v.affected)}return a==null||a.attemptAutoclose("remove-entity",this.id),{added:R(e),updated:R(o),removed:R(p),affected:R(y),self:this}}restore({}={},i=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"restore-entity"))){const a=[],o=[],p=[],e=[];return i!=null&&i.hasAdded(this.id)?(i==null||i.attemptAutoclose("restore-entity",this.id),{added:[],updated:[],removed:[],affected:[],self:this}):(this.subscribe(),this.project.unsubscribeDeletedInstance(this),this.metaSync({deleted:!1},i),Object.values(this.detachedDependents).forEach(y=>{const{updated:v,removed:E,added:w}=y.entity.onDetachedDependencyRestored(this,y.field,i);o.push(...v),p.push(...E),a.push(...w)}),i==null||i.attemptAutoclose("restore-entity",this.id),{added:R(a),updated:R(o),removed:R(p),affected:R(e),self:this})}toFlat(i=new Set){return i.has(this.id)?[]:(i.add(this.id),[this,...this.valueAsTypeSingle?this.valueAsTypeSingle.toFlat(i):[],...this.valueAsTypeList&&Array.isArray(this.valueAsTypeList)?this.valueAsTypeList.flatMap(o=>o.toFlat(i)):[]])}toFlatIds(i=new Set){return i.has(this.id)?[]:(i.add(this.id),[this.id,...this.valueAsTypeSingle?this.valueAsTypeSingle.toFlatIds(i):[],...this.valueAsTypeList&&Array.isArray(this.valueAsTypeList)?this.valueAsTypeList.flatMap(o=>o.toFlatIds(i)):[]])}toMeta(){return{id:this.id,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,value:this.value,autogeneration:this.autogeneration,type:this.type,name:this.name}}toJSON(i=new Set){var a,o,p;return i.has(this.id)?this.toReference():(i.add(this.id),{id:this.id,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,type:this.type,name:this.name,autogeneration:this.autogeneration,value:this.value,valueAsTypeSingle:((a=this.valueAsTypeSingle)==null?void 0:a.toJSON(i))||null,valueAsTypeList:Array.isArray(this.valueAsTypeSingle)?this.valueAsTypeSingle.map(e=>e.toJSON(i)):null,parent:(o=this.parent)==null?void 0:o.toReference(),standaloneParent:(p=this.standaloneParent)==null?void 0:p.toReference()})}toJSONClone(i=ke){var o,p,e,y,v,E,w;let a;return(o=i.seenEntityMaps)!=null&&o.has(this.id)?a=i.seenEntityMaps.get(this.id):(a=i.newId||Gr(this,this.project,i.uuidStrategy),i.seenEntityMaps&&i.seenEntityMaps.set(this.id,a)),(p=i.seenEntities)!=null&&p.has(a)||(e=i.seenEntities)!=null&&e.has(this.id)?this.toReference({seenEntityMaps:i.seenEntityMaps}):((y=i.seenEntities)==null||y.add(a),(v=i.seenEntities)==null||v.add(this.id),{id:a,version:N.UUID.uuid(),createdAt:i.timestamp||L().toISOString(),previousVersion:null,author:this.author,deleted:this.deleted,type:this.type,name:this.name,autogeneration:this.autogeneration,value:this.value,valueAsTypeSingle:this.valueAsTypeSingle?this.project.getBuiltIn(this.valueAsTypeSingle.id)?this.valueAsTypeSingle.toJSON():this.valueAsTypeSingle.toJSONClone({...i,newId:null}):null,valueAsTypeList:this.valueAsTypeSingle&&Array.isArray(this.valueAsTypeSingle)?this.valueAsTypeSingle.map(A=>this.project.getBuiltIn(A.id)?A.toJSON(i.seenEntities):A.toJSONClone({...i,newId:null})):null,parent:(E=this.parent)==null?void 0:E.toReference({seenEntityMaps:i.seenEntityMaps}),standaloneParent:(w=this.standaloneParent)==null?void 0:w.toReference({seenEntityMaps:i.seenEntityMaps})})}toReference(i=ke){var o;let a=this.id;return(o=i.seenEntityMaps)!=null&&o.has(this.id)&&(a=i.seenEntityMaps.get(this.id)),{id:a+"--"+N.UUID.uuid()+"--ref",type:f.GenericReference,entityId:a,version:this.version,entityType:this.type}}toShallowJSON(i=ke){var o,p,e,y;let a=this.id;return(o=i.seenEntityMaps)!=null&&o.has(this.id)&&(a=i.seenEntityMaps.get(this.id)),{id:a,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,type:this.type,name:this.name,valueAsTypeSingle:((p=this.valueAsTypeSingle)==null?void 0:p.toReference(i))||null,valueAsTypeList:Array.isArray(this.valueAsTypeSingle)?this.valueAsTypeSingle.map(v=>v.toReference(i)):null,value:this.value,autogeneration:this.autogeneration,parent:(e=this.parent)==null?void 0:e.toReference(i),standaloneParent:(y=this.standaloneParent)==null?void 0:y.toReference(i)}}toFlatJSON(i=new Set){return i.has(this.id)?[]:(i.add(this.id),[this.toShallowJSON(),...this.valueAsTypeSingle?this.valueAsTypeSingle.toFlatJSON(i):[],...this.valueAsTypeList&&Array.isArray(this.valueAsTypeList)?this.valueAsTypeList.flatMap(o=>o.toFlatJSON(i)):[]])}toGenerationTarget(){var i,a,o;return{id:this.id,type:this.type,name:this.name,valueAsTypeSingle:((i=this.valueAsTypeSingle)==null?void 0:i.id)||null,valueAsTypeList:Array.isArray(this.valueAsTypeSingle)?this.valueAsTypeSingle.map(p=>p.id):null,value:this.value,autogeneration:this.autogeneration,parent:(a=this.parent)==null?void 0:a.id,standaloneParent:(o=this.standaloneParent)==null?void 0:o.id}}toFlatGenerationTarget(i=new Set){return i.has(this.id)?[]:(i.add(this.id),[this.toGenerationTarget(),...this.valueAsTypeSingle?this.valueAsTypeSingle.toFlatGenerationTarget(i):[],...this.valueAsTypeList&&Array.isArray(this.valueAsTypeList)?this.valueAsTypeList.flatMap(o=>o.toFlatGenerationTarget(i)):[]])}clearErrors(){return this.errors=[],this}validate(){const i=_F(this);return this.errors=i,{success:!0}}getErrors(){return[...this.errors]}getShallowErrors(){return this.errors}clone(i=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"clone-entity")),a=null,o=null,p=!0){let e=Fr(a,this);const y=this.toJSON(),v=o||N.UUID.uuid();y.id=v,y.version=N.UUID.uuid(),y.createdAt=(i==null?void 0:i.timestamp)||L().toISOString(),y.author=(i==null?void 0:i.author)||"1",y.previousVersion=null,y.deleted=!1;const E=lr(y,e);return E.initChildren(i),a&&E.setParent(a,null),i==null||i.add(E,S.Added),p&&E.subscribe(),i==null||i.attemptAutoclose("clone-entity",this.id),E}merge(i,a=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"merge-literal-value"))){const o=[],p=[],e=[],y=[];return this.valueAsTypeSingle!==(i==null?void 0:i.valueAsTypeSingle)&&(this.setValueAsType(i.valueAsTypeSingle,a),o.push(this)),this.value!==i.value&&(this.metaSync({value:i.value},a),o.push(this)),this.autogeneration!==i.autogeneration&&(this.metaSync({autogeneration:i.autogeneration},a),o.push(this)),this.name!==i.name&&(this.metaSync({name:i.name},a),o.push(this)),a==null||a.attemptAutoclose("merge-literal-value",this.id),{updated:R(o),added:R(p),removed:R(e),affected:R(y),self:this}}};g(Kt,"repository",{APICreate:async(i,...a)=>i,APIUpdate:async(i,...a)=>i,APIDelete:async(i,...a)=>i,APIClone:async(i,...a)=>{},APILoad:async(i,...a)=>null,APILoadVersion:async(i,a,...o)=>null}),g(Kt,"type",f.LiteralValue),g(Kt,"USER_MANAGED_PARENT_TYPES",[f.DataType,f.InputMap,f.Property,f.ArgumentDeclaration,f.ReturnDeclaration,f.VariableDeclaration,f.VariableInstance,f.ValueDescriptor,f.OutputMap]),g(Kt,"PARENT_TYPES",[...Kt.USER_MANAGED_PARENT_TYPES]),g(Kt,"MUTABLE_BASE_PROPERTIES",["name","autogeneration","value"]),g(Kt,"INMUTABLE_BASE_PROPERTIES",["id","type","version","createdAt","author","previousVersion"]),g(Kt,"BASE_PROPERTIES",[...Kt.MUTABLE_BASE_PROPERTIES,...Kt.INMUTABLE_BASE_PROPERTIES]),g(Kt,"MUTABLE_META_PROPERTIES",[...Kt.MUTABLE_BASE_PROPERTIES]),g(Kt,"INMUTABLE_META_PROPERTIES",[...Kt.INMUTABLE_BASE_PROPERTIES]),g(Kt,"META_PROPERTIES",[...Kt.MUTABLE_META_PROPERTIES,...Kt.INMUTABLE_META_PROPERTIES]),g(Kt,"MUTABLE_UPSTREAM_PROPERTIES",[]),g(Kt,"INMUTABLE_UPSTREAM_PROPERTIES",["parent"]),g(Kt,"UPSTREAM_PROPERTIES",[...Kt.MUTABLE_UPSTREAM_PROPERTIES,...Kt.INMUTABLE_UPSTREAM_PROPERTIES]),g(Kt,"MUTABLE_DOWNSTREAM_PROPERTIES",["valueAsTypeSingle","valueAsTypeList"]),g(Kt,"INMUTABLE_DOWNSTREAM_PROPERTIES",[]),g(Kt,"DOWNSTREAM_PROPERTIES",[...Kt.MUTABLE_DOWNSTREAM_PROPERTIES,...Kt.INMUTABLE_DOWNSTREAM_PROPERTIES]),g(Kt,"PROPERTIES",[...Kt.META_PROPERTIES,...Kt.UPSTREAM_PROPERTIES,...Kt.DOWNSTREAM_PROPERTIES]);let ki=Kt;function DF(d){var p;const u=lye(),i=d.toJSON();u.safeParse(i).success,d.outputs.forEach(e=>e.validate()),(p=d.throws)==null||p.validate();const o=[];return vr(d.errors,o)}const aEe=Object.freeze(Object.defineProperty({__proto__:null,validate:DF},Symbol.toStringTag,{value:"Module"}));var OF=(d=>(d.Parent="parent",d))(OF||{});const Qt=class Qt extends Nr{constructor(i,a){super(i);g(this,"initialData");g(this,"id");g(this,"x");g(this,"y");g(this,"type",f.BreakStatement);g(this,"outputs",[]);g(this,"calledBySuccess",[]);g(this,"calledByError",[]);g(this,"calledByEntry",[]);g(this,"throws",null);g(this,"project");g(this,"errors",[]);g(this,"parent");g(this,"detachedDependents",{});g(this,"knownVersions",null);g(this,"activeVersion",!1);g(this,"initialized",!1);g(this,"startedInitialization",!1);g(this,"suggestion",!1);this.initialData=i,this.project=a,this.id=i.id,this.x=i.x,this.y=i.y}static new(i=null){return{id:N.UUID.uuid(),version:N.UUID.uuid(),createdAt:(i==null?void 0:i.timestamp)||L().toISOString(),author:(i==null?void 0:i.author)||N.sessionAuthor,previousVersion:null,deleted:!1,type:f.BreakStatement,outputs:[],calledBySuccess:[],calledByError:[],calledByEntry:[],throws:null,parent:null,x:0,y:0}}static fromGenerationTarget(i,a){const o=J(i.parent),p=a.get(o),e=i.calledByEntry.map(A=>{const $=J(A);return a.get($)}),y=i.calledBySuccess.map(A=>{const $=J(A);return a.get($)}),v=i.calledByError.map(A=>{const $=J(A);return a.get($)}),E={id:i.id,version:N.UUID.uuid(),createdAt:L().toISOString(),author:N.sessionAuthor,previousVersion:null,deleted:!1,type:f.BreakStatement,x:0,y:0,outputs:[],calledBySuccess:y,calledByError:v,calledByEntry:e,throws:null,parent:p},w=te(E,a);return w.setParent(p,null),w}static validateGenerationTarget(i,a){let o=JSON.parse(JSON.stringify(i));const p=[],e=ai(o,{parent:{list:!1,types:[f.Loop]}},a);return o=e.modifiedData,p.push(...e.errors,...Br(o)),{errors:p,modifiedData:o}}validateGeneratedUpdate(i){const a=[];return i.parent&&a.push(new ee({id:`${this.id}--${k.InvalidParentUpdate}`,code:k.InvalidParentUpdate,severity:q.Error,message:`Entity of type '${this.type}' with id '${this.id}' cannot have the 'parent' property updated. The 'parent' on a callable entity, is its scope. It scope is auto-calculated implicitly by the its caller.
187
187
  If an entity is called by another, they must be in the same scope, which means they have the same parent.
188
188
  You shouldn't have to manually update a 'parent' property.
189
189
  Specifically for break statements the parent needs to always be the 'loop' entity that contains it.`})),{errors:a,modifiedData:i}}subscribeDependents(i){return i.forEach(a=>{this.detachedDependents[a.entity.id]||(this.detachedDependents[a.entity.id]=a)}),this}unsubscribeDependents(i){return i.forEach(a=>{this.detachedDependents[a.entity.id]&&delete this.detachedDependents[a.entity.id]}),this}syncDependents(i=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"sync-dependents"))){const a=[],o=[],p=[],e=[];return Object.values(this.detachedDependents).forEach(y=>{const v=y.entity.afterAllChildrenInitialized(i);a.push(...v.updated),o.push(...v.added),p.push(...v.removed),e.push(...v.affected)}),i==null||i.attemptAutoclose("sync-dependents",this.id),{updated:R(a),added:R(o),removed:R(p),affected:R(e),self:this}}onDetachedDependencyRemoved(i,a,o){const p=[],e=[],y=[],v=[];if(a==="parent"){const{updated:E,added:w,removed:A}=this.remove({ignoreUpstream:!1},o);p.push(...E),e.push(...w),y.push(...A)}return{updated:R(p),added:R(e),removed:R(y),affected:R(v),self:this}}onDetachedDependencyRestored(i,a,o){const p=[],e=[],y=[],v=[];if(a==="parent"){const{updated:E,added:w,removed:A}=this.restore({},o);p.push(...E),e.push(...w),y.push(...A)}return{updated:R(p),added:R(e),removed:R(y),affected:R(v),self:this}}unsubscribeFromDependencies(){return this.parent.unsubscribeDependents([{entity:this,field:"parent"}]),this}subscribeToDependencies(){var i;return(i=this.parent)==null||i.subscribeDependents([{entity:this,field:"parent"}]),this}increaseVersion(i){if(i&&!L(i).isValid())throw new Error(`The shared timestamp '${i}' is not a valid ISO 8601 date string.`);return i&&L(i).isSame(L(this.createdAt))?this:(this.previousVersion=this.version,this.version=N.UUID.uuid(),this.createdAt=L(i).toISOString()||L().toISOString(),this)}captureVersion(){var a;const i=((a=this.knownVersions)==null?void 0:a.get(this.version))||new Qt(this,this.project);return i.metaSync(this.toMeta(),null),this.knownVersions=this.knownVersions?this.knownVersions.set(this.version,i):new Map([[this.version,i]]),i.outputs=[...this.outputs],i.throws=this.throws,i.calledBySuccess=[...this.calledBySuccess],i.calledByError=[...this.calledByError],i.calledByEntry=[...this.calledByEntry],i.parent=this.parent,this}recursiveCaptureUpstreamVersions(i){const a=[],o=[],p=[],e=[];if(this.parent){this.parent.increaseVersion(i);const y=this.parent.recursiveCaptureUpstreamVersions(i);a.push(this.parent,...y.updated),o.push(...y.added),p.push(...y.removed)}return{updated:R(a),added:R(o),removed:R(p),affected:R(e),self:this}}async restoreVersion(i){var v;const a=[],o=[],p=[],e=[];if(this.version===i)return{updated:R(a),added:R(o),removed:R(p),affected:R(e),self:this};if(!this.knownVersions){const E=new Map;for(const[w,A]of this.knownVersions||new Map){if(E.set(w,A),A.activeVersion=!1,A.knownVersions)for(const[$,V]of A.knownVersions)E.set($,V);A.knownVersions=null}}let y=(v=this.knownVersions)==null?void 0:v.get(i);if(!y){const E=await this.APILoadVersion({},i);if(!E)throw new Error(`Version with id '${i}' for entity with id '${this.id}' not found.`);y=new Qt(E,this.project)}return this.metaSync(y.toShallowJSON(),null),this.previousVersion=y.previousVersion,this.version=y.version,this.createdAt=y.createdAt,this.author=y.author,this.deleted=y.deleted,this.outputs=y.outputs,this.throws=y.throws,this.calledBySuccess=y.calledBySuccess,this.calledByError=y.calledByError,this.calledByEntry=y.calledByEntry,this.parent=y.parent,{updated:R(a),added:R(o),removed:R(p),affected:R(e),self:this}}updateWithShallowTransfer(i,a=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"update-with-shallow-transfer"))){if(this.metaSync(i,a),this.version=i.version,this.createdAt=i.createdAt,this.author=i.author,this.deleted=i.deleted,this.previousVersion=i.previousVersion,this.unsubscribeFromDependencies(),i.parent){const o=J(i.parent),p=this.project.get(o),e=this.parent;if(e&&e.id!==(p==null?void 0:p.id)&&this.removeFromParent(a),p)this.setParent(p,a);else throw a==null||a.attemptAutoclose("update-with-shallow-transfer",this.id),new Error(`${this.type} with id '${this.id}' has a 'parent' reference '${o}' that isn't found in the project`)}else throw a==null||a.attemptAutoclose("update-with-shallow-transfer",this.id),new Error(`${this.type} with id '${this.id}' must have a 'parent'`);return i.calledByEntry.forEach(o=>{const p=J(o),e=this.project.get(p);e&&(this.addEntryCaller(e,a),e.addCall(this,a))}),[...this.calledByEntry].forEach(o=>{i.calledByEntry.find(e=>J(e)===o.id)||(this.removeCaller(o,a),o.removeCall(this,a))}),i.calledBySuccess.forEach(o=>{const p=J(o),e=this.project.get(p);e&&(this.addSuccessCaller(e,a),e.addSuccessCall(this,a))}),[...this.calledBySuccess].forEach(o=>{i.calledBySuccess.find(e=>J(e)===o.id)||(this.removeCaller(o,a),o.removeCall(this,a))}),i.calledByError.forEach(o=>{const p=J(o),e=this.project.get(p);e&&(this.addErrorCaller(e,a),e.addErrorCall(this,a))}),[...this.calledBySuccess].forEach(o=>{i.calledBySuccess.find(e=>J(e)===o.id)||(this.removeCaller(o,a),o.removeCall(this,a))}),this.captureVersion(),this.subscribeToDependencies(),a==null||a.attemptAutoclose("update-with-shallow-transfer",this.id),this}hydrateAncestors(){const i=[],a=[],o=[],p=[];if(this.initialData.parent){const e=J(this.initialData.parent),y=this.project.get(e);if(y)this.setParent(y,null),i.push(y);else throw new Error(`${this.type} with id '${this.id}' has a 'parent' reference '${e}' that isn't found in the project`)}else throw new Error(`${this.type} with id '${this.id}' must have a 'parent'`);return this.initialData.calledByEntry.forEach(e=>{const y=J(e),v=this.project.get(y);v&&(this.addEntryCaller(v,null),i.push(v))}),this.initialData.calledBySuccess.forEach(e=>{const y=J(e),v=this.project.get(y);v&&(this.addSuccessCaller(v,null),i.push(v))}),this.initialData.calledByError.forEach(e=>{const y=J(e),v=this.project.get(y);v&&(this.addErrorCaller(v,null),i.push(v))}),{updated:R(i),added:R(a),removed:R(o),affected:R(p),self:this}}afterAllChildrenInitialized(i=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"after-all-children-initialized"))){const a=[],o=[],p=[],e=[];return this.initialized=!0,this.parent.syncTerminationStatements(i),this.captureVersion(),i==null||i.attemptAutoclose("after-all-children-initialized",this.id),{updated:R(a),added:R(o),removed:R(p),affected:R(e),self:this}}addSelfToProject(i=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"add-self-to-project"))){var y,v;const a=[this],o=[],p=[],e=[];return this.calledByEntry.forEach(E=>{E.addCall(this,i),a.push(E)}),this.calledBySuccess.forEach(E=>{E.addSuccessCall(this,i),a.push(E)}),this.calledByError.forEach(E=>{E.addErrorCall(this,i),a.push(E)}),this.parent.addBreakStatement(this),e.push(this.parent),i==null||i.add(this.parent,S.Affected),(y=this.parent)==null||y.breakStatements.forEach(E=>{E.id!==this.id&&(e.push(E),i==null||i.add(E,S.Affected))}),(v=this.parent)==null||v.continueStatements.forEach(E=>{E.id!==this.id&&(e.push(E),i==null||i.add(E,S.Affected))}),this.subscribe(),this.subscribeToDependencies(),i==null||i.attemptAutoclose("add-self-to-project",this.id),{updated:R(a),added:R(o),removed:R(p),affected:R(e),self:this}}get calledBy(){return[...this.calledByEntry,...this.calledBySuccess,...this.calledByError]}addSuccessCaller(i,a=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"add-success-caller")),o=!1){return this.calledBySuccess.find(p=>p.id===i.id)||(this.calledBySuccess.push(i),a==null||a.add(this,S.Updated),o&&We(this,a)),a==null||a.attemptAutoclose("add-success-caller",this.id),this}addErrorCaller(i,a=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"add-error-caller")),o=!1){return this.calledByError.find(p=>p.id===i.id)||(this.calledByError.push(i),a==null||a.add(this,S.Updated),o&&We(this,a)),a==null||a.attemptAutoclose("add-error-caller",this.id),this}addEntryCaller(i,a=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"add-entry-caller")),o=!1){return this.calledByEntry.find(p=>p.id===i.id)||(this.calledByEntry.push(i),a==null||a.add(this,S.Updated),o&&We(this,a)),a==null||a.attemptAutoclose("add-entry-caller",this.id),this}removeCaller(i,a=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"remove-caller")),o=!1){return this.calledBySuccess=this.calledBySuccess.filter(p=>p.id!==i.id?!0:(a==null||a.add(this,S.Updated),a==null||a.add(p,S.Affected),!1)),this.calledByError=this.calledByError.filter(p=>p.id!==i.id?!0:(a==null||a.add(this,S.Updated),a==null||a.add(p,S.Affected),!1)),this.calledByEntry=this.calledByEntry.filter(p=>p.id!==i.id?!0:(a==null||a.add(this,S.Updated),a==null||a.add(p,S.Affected),!1)),o&&We(this,a),a==null||a.attemptAutoclose("remove-caller",this.id),this}addOutputDeclaration(i,a=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"add-output-declaration"))){return this.outputs.find(o=>o.id===i.id)||(this.outputs.push(i),a==null||a.add(this,S.Affected)),a==null||a.attemptAutoclose("add-output-declaration",this.id),this}removeOutputDeclaration(i,a=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"remove-output-declaration"))){return this.outputs.find(o=>o.id===i.id)&&(this.outputs=this.outputs.filter(o=>o.id!==i.id),a==null||a.add(this,S.Affected)),a==null||a.attemptAutoclose("remove-output-declaration",this.id),this}setParent(i,a=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"set-parent"))){var o;return((o=this.parent)==null?void 0:o.id)!==(i==null?void 0:i.id)&&(this.parent=i,a&&(a==null||a.add(this,S.Updated))),a==null||a.attemptAutoclose("set-parent",this.id),this}initChildren(i=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"init-children"))){return this.initialized||this.startedInitialization?this:(this.startedInitialization=!0,this.outputs=this.initialData.outputs.map(a=>{const o=te(a,this.project);return o.setParent(this,null),o.initChildren(i),o}),this.initialData.throws&&(this.throws=te(this.initialData.throws,this.project),this.throws.setParent(this,null),this.throws.initChildren(i)),this.subscribeToDependencies(),this.afterAllChildrenInitialized(i),i==null||i.attemptAutoclose("init-children",this.id),this)}subscribe(){return this.activeVersion=!0,this.project.subscribeInstance(this),this}unsubscribe(){return this.project.unsubscribeInstance(this),this}metaSync(i,a=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"meta-sync"))){const o=Ur(this,i),p=this.toMeta();return this.x=i.x||p.x,this.y=i.y||p.y,super.metaSync(i),i.deleted===!0&&!p.deleted?a==null||a.add(this,S.Removed):i.deleted===!1&&p.deleted?a==null||a.add(this,S.Added):o&&(a==null||a.add(this,S.Updated)),a==null||a.attemptAutoclose("meta-sync",this.id),this}async APILoad(i=ve,...a){return await Qt.repository.APILoad(this.id,...a),this}async APICreate(i=ve,...a){return await Qt.repository.APICreate(this.toShallowJSON(),...a),this}async APIUpdate(i=ve,...a){return await Qt.repository.APIUpdate(this.toShallowJSON(),...a),this}async APIDelete(i=ve,...a){return await Qt.repository.APIDelete(this.toShallowJSON(),...a),this}async APIClone(i=ve,...a){return await Qt.repository.APIClone(this.id,...a),this}async APILoadVersion(i=ve,a,...o){return await Qt.repository.APILoadVersion(this.id,a,...o)}removeFromParent(i=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"remove-from-parent"))){const a=[],o=[],p=[],e=[];return this.parent.removeBreakStatement(this),e.push(this.parent),i==null||i.attemptAutoclose("remove-from-parent",this.id),{added:R(p),updated:R(a),removed:R(o),affected:R(e),self:this}}remove({ignoreUpstream:i}={ignoreUpstream:!1},a=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"remove-entity"))){var v,E;const o=[],p=[],e=[],y=[];if(a!=null&&a.hasRemoved(this.id))return a==null||a.attemptAutoclose("remove-entity",this.id),{added:[],updated:[],removed:[],affected:[],self:this};if(p.push(this),this.unsubscribe(),this.unsubscribeFromDependencies(),this.project.subscribeDeletedInstance(this),this.metaSync({deleted:!0},a),Object.values(this.detachedDependents).forEach(w=>{const{updated:A,removed:$,added:V}=w.entity.onDetachedDependencyRemoved(this,w.field,a);o.push(...A),p.push(...$),e.push(...V)}),this.outputs.forEach(w=>{const{updated:A,removed:$}=w.remove({ignoreUpstream:!0},a);o.push(...A),p.push(...$)}),this.throws){const{updated:w,removed:A}=this.throws.remove({ignoreUpstream:!0},a);o.push(...w),p.push(...A)}if(!i){const w=this.removeFromParent(a);e.push(...w.added),o.push(...w.updated),p.push(...w.removed),y.push(...w.affected),this.calledBy.forEach(A=>{o.push(A),A.removeCall(this,a)})}return a==null||a.add(this.parent,S.Affected),(v=this.parent)==null||v.breakStatements.forEach(w=>{w.id!==this.id&&(y.push(w),a==null||a.add(w,S.Affected))}),(E=this.parent)==null||E.continueStatements.forEach(w=>{w.id!==this.id&&(y.push(w),a==null||a.add(w,S.Affected))}),a==null||a.attemptAutoclose("remove-entity",this.id),{added:R(e),updated:R(o),removed:R(p),affected:R(y),self:this}}restore({}={},i=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"restore-entity"))){const a=[],o=[],p=[],e=[];if(i!=null&&i.hasAdded(this.id))return i==null||i.attemptAutoclose("restore-entity",this.id),{added:[],updated:[],removed:[],affected:[],self:this};if(this.subscribe(),this.project.unsubscribeDeletedInstance(this),this.metaSync({deleted:!1},i),Object.values(this.detachedDependents).forEach(y=>{const{updated:v,removed:E,added:w}=y.entity.onDetachedDependencyRestored(this,y.field,i);o.push(...v),p.push(...E),a.push(...w)}),this.outputs.forEach(y=>{const{updated:v}=y.restore({},i);o.push(...v)}),this.throws){const{updated:y}=this.throws.restore({},i);o.push(...y)}return this.parent.addBreakStatement(this),this.calledBySuccess.forEach(y=>{o.push(y),y.addSuccessCall(this,i)}),this.calledByError.forEach(y=>{o.push(y),y.addErrorCall(this,i)}),this.calledByEntry.forEach(y=>{o.push(y),y.addCall(this,i)}),i==null||i.attemptAutoclose("restore-entity",this.id),{added:R(a),updated:R(o),removed:R(p),affected:R(e),self:this}}toFlat(i=new Set){return i.has(this.id)?[]:(i.add(this.id),[this,...this.outputs.flatMap(o=>o.toFlat(i)),...this.throws?this.throws.toFlat(i):[]])}toFlatIds(i=new Set){return i.has(this.id)?[]:(i.add(this.id),[this.id,...this.outputs.flatMap(o=>o.toFlatIds(i)),...this.throws?this.throws.toFlatIds(i):[]])}toMeta(){return{id:this.id,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,x:this.x,y:this.y,type:this.type}}toJSON(i=new Set){var a,o;return i.has(this.id)?this.toReference():(i.add(this.id),{id:this.id,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,type:this.type,x:this.x,y:this.y,outputs:this.outputs.map(p=>p.toJSON(i)),calledBySuccess:this.calledBySuccess.map(p=>p.toReference()),calledByError:this.calledByError.map(p=>p.toReference()),calledByEntry:this.calledByEntry.map(p=>p.toReference()),parent:((a=this.parent)==null?void 0:a.toReference())||null,throws:((o=this.throws)==null?void 0:o.toJSON(i))||null})}toJSONClone(i=ke){var o,p,e,y,v,E,w;let a;return(o=i.seenEntityMaps)!=null&&o.has(this.id)?a=i.seenEntityMaps.get(this.id):(a=i.newId||Gr(this,this.project,i.uuidStrategy),i.seenEntityMaps&&i.seenEntityMaps.set(this.id,a)),(p=i.seenEntities)!=null&&p.has(a)||(e=i.seenEntities)!=null&&e.has(this.id)?this.toReference({seenEntityMaps:i.seenEntityMaps}):((y=i.seenEntities)==null||y.add(a),(v=i.seenEntities)==null||v.add(this.id),{id:a,version:N.UUID.uuid(),createdAt:i.timestamp||L().toISOString(),previousVersion:null,author:this.author,deleted:this.deleted,type:this.type,x:this.x,y:this.y,outputs:this.outputs.map(A=>A.toJSONClone({...i,newId:null})),calledBySuccess:this.calledBySuccess.map(A=>A.toReference({seenEntityMaps:i.seenEntityMaps})),calledByError:this.calledByError.map(A=>A.toReference({seenEntityMaps:i.seenEntityMaps})),calledByEntry:this.calledByEntry.map(A=>A.toReference({seenEntityMaps:i.seenEntityMaps})),parent:((E=this.parent)==null?void 0:E.toReference({seenEntityMaps:i.seenEntityMaps}))||null,throws:((w=this.throws)==null?void 0:w.toJSONClone({...i,newId:null}))||null})}toReference(i=ke){var o;let a=this.id;return(o=i.seenEntityMaps)!=null&&o.has(this.id)&&(a=i.seenEntityMaps.get(this.id)),{id:a+"--"+N.UUID.uuid()+"--ref",type:f.GenericReference,entityId:a,version:this.version,entityType:this.type}}toShallowJSON(i=ke){var o,p,e;let a=this.id;return(o=i.seenEntityMaps)!=null&&o.has(this.id)&&(a=i.seenEntityMaps.get(this.id)),{id:a,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,type:this.type,x:this.x,y:this.y,outputs:this.outputs.map(y=>y.toReference(i)),calledBySuccess:this.calledBySuccess.map(y=>y.toReference(i)),calledByError:this.calledByError.map(y=>y.toReference(i)),calledByEntry:this.calledByEntry.map(y=>y.toReference(i)),throws:((p=this.throws)==null?void 0:p.toReference(i))||null,parent:((e=this.parent)==null?void 0:e.toReference(i))||null}}toFlatJSON(i=new Set){return i.has(this.id)?[]:(i.add(this.id),[this.toShallowJSON(),...this.outputs.flatMap(o=>o.toFlatJSON(i)),...this.throws?this.throws.toFlatJSON(i):[]])}toGenerationTarget(){return{id:this.id,type:this.type,calledByEntry:this.calledByEntry.map(i=>i.id),calledByError:this.calledByError.map(i=>i.id),calledBySuccess:this.calledBySuccess.map(i=>i.id),parent:this.parent.id}}toFlatGenerationTarget(i=new Set){return i.has(this.id)?[]:(i.add(this.id),[this.toGenerationTarget(),...this.outputs.flatMap(o=>o.toFlatGenerationTarget(i)),...this.throws?this.throws.toFlatGenerationTarget(i):[]])}clearErrors(){var i;return this.errors=[],this.outputs.forEach(a=>a.clearErrors()),(i=this.throws)==null||i.clearErrors(),this}validate(){const i=DF(this);return this.errors=i,{success:!0}}getErrors(){return[...this.errors,...this.outputs.flatMap(a=>a.getErrors()),...this.throws?this.throws.getErrors():[]]}getShallowErrors(){return this.errors}clone(i=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"clone-entity")),a=null,o=null,p=!0){var V;let e=Fr(a,this);const y=this.toJSON(),v=o||N.UUID.uuid();y.outputs=[];const E=v.split("-id"),w=E[E.length-1||0]||v;y.id=v,y.version=N.UUID.uuid(),y.createdAt=(i==null?void 0:i.timestamp)||L().toISOString(),y.author=(i==null?void 0:i.author)||"1",y.previousVersion=null,y.deleted=!1;const A=lr(y,e);a?A.setParent(a,null):A.setParent(this.parent,null),p&&A.subscribe(),A.initChildren(i),i==null||i.add(A,S.Added);const $=(V=this.outputs)==null?void 0:V.map((U,G)=>U.clone(i,A,w+"-return-declaration-"+G+"-id",p));return A.outputs=$,this.throws&&(A.throws=this.throws.clone(i,A,w+"-throws-id",p)),i==null||i.attemptAutoclose("clone-entity",this.id),A}};g(Qt,"repository",{APICreate:async(i,...a)=>i,APIUpdate:async(i,...a)=>i,APIDelete:async(i,...a)=>i,APIClone:async(i,...a)=>{},APILoad:async(i,...a)=>null,APILoadVersion:async(i,a,...o)=>null}),g(Qt,"type",f.BreakStatement),g(Qt,"USER_MANAGED_PARENT_TYPES",[f.Loop]),g(Qt,"PARENT_TYPES",[...Qt.USER_MANAGED_PARENT_TYPES]),g(Qt,"MUTABLE_BASE_PROPERTIES",[]),g(Qt,"INMUTABLE_BASE_PROPERTIES",["id","type","version","createdAt","author","previousVersion"]),g(Qt,"BASE_PROPERTIES",[...Qt.MUTABLE_BASE_PROPERTIES,...Qt.INMUTABLE_BASE_PROPERTIES]),g(Qt,"MUTABLE_META_PROPERTIES",["x","y"]),g(Qt,"INMUTABLE_META_PROPERTIES",[...Qt.INMUTABLE_BASE_PROPERTIES]),g(Qt,"META_PROPERTIES",[...Qt.MUTABLE_META_PROPERTIES,...Qt.INMUTABLE_META_PROPERTIES]),g(Qt,"MUTABLE_UPSTREAM_PROPERTIES",["calledBySuccess","calledByError","calledByEntry","parent"]),g(Qt,"INMUTABLE_UPSTREAM_PROPERTIES",[]),g(Qt,"UPSTREAM_PROPERTIES",[...Qt.MUTABLE_UPSTREAM_PROPERTIES,...Qt.INMUTABLE_UPSTREAM_PROPERTIES]),g(Qt,"MUTABLE_DOWNSTREAM_PROPERTIES",["outputs","throws"]),g(Qt,"INMUTABLE_DOWNSTREAM_PROPERTIES",[]),g(Qt,"DOWNSTREAM_PROPERTIES",[...Qt.MUTABLE_DOWNSTREAM_PROPERTIES,...Qt.INMUTABLE_DOWNSTREAM_PROPERTIES]),g(Qt,"PROPERTIES",[...Qt.META_PROPERTIES,...Qt.UPSTREAM_PROPERTIES,...Qt.DOWNSTREAM_PROPERTIES]);let ho=Qt;function CF(d){var p;const u=nhe(),i=d.toJSON();u.safeParse(i).success,(p=d.dataType)==null||p.validate();const o=[];return vr(d.errors,o)}const oEe=Object.freeze(Object.defineProperty({__proto__:null,validate:CF},Symbol.toStringTag,{value:"Module"}));var $F=(d=>(d.DataTypeEntity="data-type-entity",d))($F||{});const kt=class kt extends Nr{constructor(i,a){super(i);g(this,"initialData");g(this,"id");g(this,"name");g(this,"codeName",null);g(this,"description",null);g(this,"index");g(this,"required");g(this,"parentRelationType");g(this,"type",f.ValueDescriptor);g(this,"defaultValue",null);g(this,"dataType",null);g(this,"project");g(this,"errors",[]);g(this,"parent");g(this,"detachedDependents",{});g(this,"knownVersions",null);g(this,"activeVersion",!1);g(this,"initialized",!1);g(this,"startedInitialization",!1);g(this,"codeNativeValueValidation",null);this.initialData=i,this.project=a,this.id=i.id,this.name=i.name,this.description=i.description,this.index=i.index,this.codeName=i.codeName,this.required=i.required,this.parentRelationType=i.parentRelationType}static new(i=null){return{id:N.UUID.uuid(),version:N.UUID.uuid(),createdAt:(i==null?void 0:i.timestamp)||L().toISOString(),author:(i==null?void 0:i.author)||N.sessionAuthor,previousVersion:null,deleted:!1,type:f.ValueDescriptor,name:"",codeName:null,description:"",dataType:null,index:0,required:!1,parentRelationType:de.FixedArguments,defaultValue:null,parent:null}}static fromGenerationTarget(i,a){const o=i.parent?J(i.parent):null,p=o?a.get(o):null,e=i.parentRelationType===de.FixedArguments?p==null?void 0:p.inputs.length:p==null?void 0:p.outputs.length,y={id:i.id,version:N.UUID.uuid(),createdAt:L().toISOString(),author:N.sessionAuthor,previousVersion:null,deleted:!1,name:i.name,type:f.ValueDescriptor,index:e||0,codeName:i.codeName,description:i.description,required:i.required,defaultValue:null,parentRelationType:i.parentRelationType,dataType:null,parent:p},v=te(y,a);return p&&v.setParent(p,null),v}static validateGenerationTarget(i,a){let o=JSON.parse(JSON.stringify(i));const p=[],e=ai(o,{parent:{list:!1,types:[f.ActionDescriptor]}},a);o=e.modifiedData,p.push(...e.errors,...Br(o));const y=o.parent&&a.get(o.parent),v=y&&wo(y);return v&&v.type===f.ActionDescriptor&&p.push(new ee({id:`${i.id}--${k.BuiltInEntityParent}`,code:k.BuiltInEntityParent,severity:q.Error,message:`Entity of type "${i.type}" with id "${i.id}", has a parent that is a built-in entity "${v.name}" of type '${v.type}' with id '${v.id}'.
@@ -405,5 +405,5 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
405
405
  ${Em}`})),{errors:a,modifiedData:i}}onProjectInitialized(i,a=this.project.addChangeSet(new F(this.project,N.sessionAuthor,new Date().toISOString(),this,!0,"on-property-received-project-initialized"))){return jS(this,a),a==null||a.attemptAutoclose("on-property-received-project-initialized",this.id),this}subscribeDependents(i){return i.forEach(a=>{this.detachedDependents[a.entity.id]||(this.detachedDependents[a.entity.id]=a)}),this}unsubscribeDependents(i){return i.forEach(a=>{this.detachedDependents[a.entity.id]&&delete this.detachedDependents[a.entity.id]}),this}syncDependents(i=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"sync-dependents"))){const a=[],o=[],p=[],e=[];return Object.values(this.detachedDependents).forEach(y=>{const v=y.entity.afterAllChildrenInitialized(i);a.push(...v.updated),o.push(...v.added),p.push(...v.removed),e.push(...v.affected)}),i==null||i.attemptAutoclose("sync-dependents",this.id),{updated:R(a),added:R(o),removed:R(p),affected:R(e),self:this}}onDetachedDependencyRemoved(i,a,o){const p=[],e=[],y=[],v=[];if(a==="property-implements"&&(this.setImplements(null,o),p.push(this)),a==="property-extends"){const{updated:E,added:w,removed:A,affected:$}=this.remove({ignoreUpstream:!1},o);p.push(...E),e.push(...w),y.push(...A),v.push(...$)}return{updated:R(p),added:R(e),removed:R(y),affected:R(v),self:this}}onDetachedDependencyRestored(i,a,o){const p=[],e=[],y=[],v=[];if(a==="property-implements"&&(this.setImplements(i,o),p.push(this)),a==="property-extends"){const{updated:E,added:w,removed:A,affected:$}=this.restore({},o);p.push(...E),e.push(...w),y.push(...A),v.push(...$)}return{updated:R(p),added:R(e),removed:R(y),affected:R(v),self:this}}unsubscribeFromDependencies(){var i,a,o,p,e,y,v;return(a=(i=this.implements)==null?void 0:i.unsubscribeDependents)==null||a.call(i,[{entity:this,field:"property-implements"}]),(p=(o=this.extends)==null?void 0:o.unsubscribeDependents)==null||p.call(o,[{entity:this,field:"property-extends"}]),(v=(y=(e=this.dataType)==null?void 0:e.entity)==null?void 0:y.unsubscribeDependents)==null||v.call(y,[{entity:this,field:"data-type-entity"}]),this.project.off(Vr.PROJECT_INITIALIZED,this.onProjectInitialized),this}subscribeToDependencies(){var i,a,o,p,e,y,v;return(a=(i=this.implements)==null?void 0:i.subscribeDependents)==null||a.call(i,[{entity:this,field:"property-implements"}]),(p=(o=this.extends)==null?void 0:o.subscribeDependents)==null||p.call(o,[{entity:this,field:"property-extends"}]),(v=(y=(e=this.dataType)==null?void 0:e.entity)==null?void 0:y.subscribeDependents)==null||v.call(y,[{entity:this,field:"data-type-entity"}]),this.project.on(Vr.PROJECT_INITIALIZED,this.onProjectInitialized),this}increaseVersion(i){if(i&&!L(i).isValid())throw new Error(`The shared timestamp '${i}' is not a valid ISO 8601 date string.`);return i&&L(i).isSame(L(this.createdAt))?this:(this.previousVersion=this.version,this.version=N.UUID.uuid(),this.createdAt=L(i).toISOString()||L().toISOString(),this)}captureVersion(){var a;const i=((a=this.knownVersions)==null?void 0:a.get(this.version))||new Ct(this,this.project);return i.metaSync(this.toMeta(),null),this.knownVersions=this.knownVersions?this.knownVersions.set(this.version,i):new Map([[this.version,i]]),i.defaultValue=this.defaultValue,i.dataType=this.dataType,i.implements=this.implements,i.extends=this.extends,i.parent=this.parent,this}recursiveCaptureUpstreamVersions(i){const a=[],o=[],p=[],e=[];if(this.parent&&this.parent.type!==f.PrimitiveEntity&&this.parent.type!==f.BuiltInBaseEntity){this.parent.increaseVersion(i);const y=this.parent.recursiveCaptureUpstreamVersions(i);a.push(this.parent,...y.updated),o.push(...y.added),p.push(...y.removed)}return{updated:R(a),added:R(o),removed:R(p),affected:R(e),self:this}}async restoreVersion(i){var v;const a=[],o=[],p=[],e=[];if(this.version===i)return{updated:R(a),added:R(o),removed:R(p),affected:R(e),self:this};if(!this.knownVersions){const E=new Map;for(const[w,A]of this.knownVersions||new Map){if(E.set(w,A),A.activeVersion=!1,A.knownVersions)for(const[$,V]of A.knownVersions)E.set($,V);A.knownVersions=null}}let y=(v=this.knownVersions)==null?void 0:v.get(i);if(!y){const E=await this.APILoadVersion({},i);if(!E)throw new Error(`Version with id '${i}' for entity with id '${this.id}' not found.`);y=new Ct(E,this.project)}return this.metaSync(y.toShallowJSON(),null),this.previousVersion=y.previousVersion,this.version=y.version,this.createdAt=y.createdAt,this.author=y.author,this.deleted=y.deleted,this.defaultValue=y.defaultValue,this.dataType=y.dataType,this.implements=y.implements,this.parent=y.parent,{updated:R(a),added:R(o),removed:R(p),affected:R(e),self:this}}updateWithShallowTransfer(i,a=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"update-with-shallow-transfer"))){if(this.metaSync(i,a),this.version=i.version,this.createdAt=i.createdAt,this.author=i.author,this.deleted=i.deleted,this.previousVersion=i.previousVersion,this.unsubscribeFromDependencies(),i.parent){const o=J(i.parent),p=this.project.get(o),e=this.parent;if(e&&e.id!==(p==null?void 0:p.id)&&this.removeFromParent(a),p)this.setParent(p,null);else throw a==null||a.attemptAutoclose("update-with-shallow-transfer",this.id),new Error(`${this.type} with id '${this.id}' has a 'parent' reference '${o}' that isn't found in the project`)}else throw a==null||a.attemptAutoclose("update-with-shallow-transfer",this.id),new Error(`${this.type} with id '${this.id}' must have a 'parent'`);if(i.implements){const o=J(i.implements),p=this.project.get(o);if(p)this.setImplements(p,a);else if(o)throw new Error(`${Ii(this.type)} with id '${this.id}' has a 'implements' reference "${o}" which is missing in the project`)}if(i.extends){const o=J(i.extends),p=this.project.get(o);if(p)this.setExtends(p,a);else if(o)throw new Error(`${Ii(this.type)} with id '${this.id}' has a 'extends' reference "${o}" which is missing in the project`)}return this.captureVersion(),this.subscribeToDependencies(),a==null||a.attemptAutoclose("update-with-shallow-transfer",this.id),this}hydrateAncestors(){const i=[],a=[],o=[],p=[];if(this.initialData.parent){const e=J(this.initialData.parent),y=this.project.get(e);if(y)this.setParent(y,null);else throw new Error(`${this.type} with id '${this.id}' has a 'parent' reference '${e}' that isn't found in the project`)}else throw new Error(`${this.type} with id '${this.id}' must have a 'parent'`);if(this.initialData.implements){const e=J(this.initialData.implements),y=this.project.get(e);if(y)this.setImplements(y,null),i.push(y);else if(e)throw new Error(`${Ii(this.type)} with id '${this.id}' has a 'implements' reference "${e}" which is missing in the project`)}if(this.initialData.extends){const e=J(this.initialData.extends),y=this.project.get(e);if(y)this.setExtends(y,null),i.push(y);else if(e)throw new Error(`${Ii(this.type)} with id '${this.id}' has a 'extends' reference "${e}" which is missing in the project`)}return{updated:R(i),added:R(a),removed:R(o),affected:R(p),self:this}}afterAllChildrenInitialized(i=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"after-all-children-initialized"))){const a=[],o=[],p=[],e=[];this.initialized=!0;const{updated:y,added:v,removed:E,affected:w}=this.syncWithImplementation(i);a.push(...y),o.push(...v),p.push(...E),e.push(...w);const{updated:A,added:$,removed:V,affected:U}=jS(this,i);return a.push(...A),o.push(...$),p.push(...V),e.push(...U),this.captureVersion(),i==null||i.attemptAutoclose("after-all-children-initialized",this.id),{updated:R(a),added:R(o),removed:R(p),affected:R(e),self:this}}addSelfToProject(i=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"add-self-to-project"))){const a=[this],o=[],p=[],e=[];return this.parent.addProperty(this),a.push(this.parent),this.subscribe(),this.subscribeToDependencies(),i==null||i.attemptAutoclose("add-self-to-project",this.id),{updated:R(a),added:R(o),removed:R(p),affected:R(e),self:this}}setParent(i,a=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"set-parent"))){var o;return((o=this.parent)==null?void 0:o.id)!==(i==null?void 0:i.id)&&(this.parent=i,a&&(a==null||a.add(this,S.Updated))),a==null||a.attemptAutoclose("set-parent",this.id),this}setImplements(i,a=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"set-implements"))){var o;return((o=this.implements)==null?void 0:o.id)!==(i==null?void 0:i.id)&&(this.implements=i,a&&(a==null||a.add(this,S.Updated))),a==null||a.attemptAutoclose("set-implements",this.id),this}setExtends(i,a=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"set-extends"))){var o;return((o=this.extends)==null?void 0:o.id)!==(i==null?void 0:i.id)&&(this.extends=i,a&&(a==null||a.add(this,S.Updated))),a==null||a.attemptAutoclose("set-extends",this.id),this}initChildren(i=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"init-children"))){if(this.initialized||this.startedInitialization)return this;if(this.startedInitialization=!0,this.initialData.defaultValue&&(this.defaultValue=te(this.initialData.defaultValue,this.project),this.defaultValue.setParent(this,null),this.defaultValue.initChildren(i)),this.initialData.dataType){const a=te(this.initialData.dataType,this.project);a.setParent(this,null),a.initChildren(i),this.dataType=a}if(this.initialData.implements){const a=te(this.initialData.implements,this.project);this.setImplements(a,null)}if(this.initialData.extends){const a=te(this.initialData.extends,this.project);this.setExtends(a,null)}return this.subscribeToDependencies(),this.afterAllChildrenInitialized(i),i==null||i.attemptAutoclose("init-children",this.id),this}subscribe(){return this.activeVersion=!0,this.project.subscribeInstance(this),this}unsubscribe(){return this.project.unsubscribeInstance(this),this}metaSync(i,a=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"meta-sync"))){const o=Ur(this,i),p=this.toMeta();return this.name=i.name!==void 0?i.name:p.name,this.codeName=i.codeName!==void 0?i.codeName:p.codeName,this.description=i.description!==void 0?i.description:p.description,this.abstract=i.abstract!==void 0?i.abstract:p.abstract,this.private=i.private!==void 0?i.private:p.private,this.index=i.index||(i.index!==0?p.index:0),this.static=i.static!==void 0?i.static:p.static,this.hidden=i.hidden!==void 0?i.hidden:p.hidden,this.constant=i.constant!==void 0?i.constant:p.constant,this.interactive=i.interactive!==void 0?i.interactive:p.interactive,this.required=i.required!==void 0?i.required:p.required,super.metaSync(i),i.deleted===!0&&!p.deleted?a==null||a.add(this,S.Removed):i.deleted===!1&&p.deleted?a==null||a.add(this,S.Added):o&&(a==null||a.add(this,S.Updated)),a==null||a.attemptAutoclose("meta-sync",this.id),this}async APILoad(i=ve,...a){return await Ct.repository.APILoad(this.id,...a),this}async APICreate(i=ve,...a){return await Ct.repository.APICreate(this.toShallowJSON(),...a),this}async APIUpdate(i=ve,...a){return await Ct.repository.APIUpdate(this.toShallowJSON(),...a),this}async APIDelete(i=ve,...a){return await Ct.repository.APIDelete(this.toShallowJSON(),...a),this}async APIClone(i=ve,...a){return await Ct.repository.APIClone(this.id,...a),this}async APILoadVersion(i=ve,a,...o){return await Ct.repository.APILoadVersion(this.id,a,...o)}removeFromParent(i=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"remove-from-parent"))){const a=[],o=[],p=[],e=[];return this.parent.type===f.DefinitionEntity&&(this.parent.removeProperty(this),e.push(this.parent)),i==null||i.attemptAutoclose("remove-from-parent",this.id),{added:R(p),updated:R(a),removed:R(o),affected:R(e),self:this}}remove({ignoreUpstream:i}={ignoreUpstream:!1},a=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"remove-entity"))){const o=[],p=[],e=[],y=[];if(a!=null&&a.hasRemoved(this.id))return a==null||a.attemptAutoclose("remove-entity",this.id),{added:[],updated:[],removed:[],affected:[],self:this};if(p.push(this),this.unsubscribe(),this.unsubscribeFromDependencies(),this.project.subscribeDeletedInstance(this),this.metaSync({deleted:!0},a),Object.values(this.detachedDependents).forEach(v=>{const{updated:E,removed:w,added:A}=v.entity.onDetachedDependencyRemoved(this,v.field,a);o.push(...E),p.push(...w),e.push(...A)}),this.defaultValue){const{updated:v,removed:E}=this.defaultValue.remove({ignoreUpstream:!0},a);o.push(...v),p.push(...E)}if(this.dataType){const{updated:v,removed:E}=this.dataType.remove({ignoreUpstream:!0},a);o.push(...v),p.push(...E)}if(!i){const v=this.removeFromParent(a);e.push(...v.added),o.push(...v.updated),p.push(...v.removed),y.push(...v.affected)}return a==null||a.attemptAutoclose("remove-entity",this.id),{added:R(e),updated:R(o),removed:R(p),affected:R(y),self:this}}restore({}={},i=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"restore-entity"))){const a=[],o=[],p=[],e=[];if(i!=null&&i.hasAdded(this.id))return i==null||i.attemptAutoclose("restore-entity",this.id),{added:[],updated:[],removed:[],affected:[],self:this};if(this.subscribe(),this.project.unsubscribeDeletedInstance(this),this.metaSync({deleted:!1},i),Object.values(this.detachedDependents).forEach(y=>{const{updated:v,removed:E,added:w}=y.entity.onDetachedDependencyRestored(this,y.field,i);o.push(...v),p.push(...E),a.push(...w)}),this.defaultValue){const{updated:y}=this.defaultValue.restore({},i);o.push(...y)}if(this.dataType){const{updated:y}=this.dataType.restore({},i);o.push(...y)}return this.parent.type===f.DefinitionEntity&&(this.parent.addProperty(this),e.push(this.parent)),i==null||i.attemptAutoclose("restore-entity",this.id),{added:R(a),updated:R(o),removed:R(p),affected:R(e),self:this}}toFlat(i=new Set){var o,p;return i.has(this.id)?[]:(i.add(this.id),[this,...((o=this.defaultValue)==null?void 0:o.toFlat(i))||[],...((p=this.dataType)==null?void 0:p.toFlat(i))||[],...this.parent.toFlat(i)])}toFlatIds(i=new Set){var o,p;return i.has(this.id)?[]:(i.add(this.id),[this.id,...((o=this.defaultValue)==null?void 0:o.toFlatIds(i))||[],...((p=this.dataType)==null?void 0:p.toFlatIds(i))||[],...this.parent.toFlatIds(i)])}toMeta(){return{id:this.id,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,codeName:this.codeName,description:this.description,index:this.index,hidden:this.hidden,private:this.private,abstract:this.abstract,required:this.required,constant:this.constant,interactive:this.interactive,static:this.static,type:this.type,name:this.name}}toJSON(i=new Set){var a,o,p,e;return i.has(this.id)?this.toReference():(i.add(this.id),{id:this.id,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,type:this.type,name:this.name,codeName:this.codeName,description:this.description,index:this.index,private:this.private,required:this.required,static:this.static,constant:this.constant,interactive:this.interactive,abstract:this.abstract,hidden:this.hidden,defaultValue:((a=this.defaultValue)==null?void 0:a.toJSON(i))||null,dataType:((o=this.dataType)==null?void 0:o.toJSON(i))||null,implements:((p=this.implements)==null?void 0:p.toJSON(i))||null,extends:((e=this.extends)==null?void 0:e.toJSON(i))||null,parent:this.parent.toReference()})}toJSONClone(i=ke){var o,p,e,y,v,E,w;let a;return(o=i.seenEntityMaps)!=null&&o.has(this.id)?a=i.seenEntityMaps.get(this.id):(a=i.newId||Gr(this,this.project,i.uuidStrategy),i.seenEntityMaps&&i.seenEntityMaps.set(this.id,a)),(p=i.seenEntities)!=null&&p.has(a)||(e=i.seenEntities)!=null&&e.has(this.id)?this.toReference({seenEntityMaps:i.seenEntityMaps}):((y=i.seenEntities)==null||y.add(a),(v=i.seenEntities)==null||v.add(this.id),{id:a,version:N.UUID.uuid(),createdAt:i.timestamp||L().toISOString(),author:N.sessionAuthor,previousVersion:null,deleted:!1,type:this.type,name:this.name,codeName:this.codeName,description:this.description,index:this.index,private:this.private,required:this.required,static:this.static,constant:this.constant,interactive:this.interactive,abstract:this.abstract,hidden:this.hidden,defaultValue:((E=this.defaultValue)==null?void 0:E.toJSONClone({...i,newId:null}))||null,dataType:((w=this.dataType)==null?void 0:w.toJSONClone({...i,newId:null}))||null,implements:(()=>{var A;return this.implements&&this.project.getBuiltIn(this.implements.id)?this.implements.toJSON():((A=this.implements)==null?void 0:A.toJSONClone({...i,newId:null}))||null})(),extends:(()=>{var A;return this.extends&&this.project.getBuiltIn(this.extends.id)?this.extends.toJSON():((A=this.extends)==null?void 0:A.toJSONClone({...i,newId:null}))||null})(),parent:this.parent.toReference({seenEntityMaps:i.seenEntityMaps})})}toReference(i=ke){var o;let a=this.id;return(o=i.seenEntityMaps)!=null&&o.has(this.id)&&(a=i.seenEntityMaps.get(this.id)),{id:a+"--"+N.UUID.uuid()+"--ref",type:f.GenericReference,entityId:a,version:this.version,entityType:this.type}}toShallowJSON(i=ke){var o,p,e,y,v;let a=this.id;return(o=i.seenEntityMaps)!=null&&o.has(this.id)&&(a=i.seenEntityMaps.get(this.id)),{id:a,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,name:this.name,codeName:this.codeName,description:this.description,type:this.type,index:this.index,private:this.private,required:this.required,abstract:this.abstract,static:this.static,constant:this.constant,interactive:this.interactive,hidden:this.hidden,defaultValue:((p=this.defaultValue)==null?void 0:p.toReference(i))||null,dataType:((e=this.dataType)==null?void 0:e.toReference(i))||null,implements:((y=this.implements)==null?void 0:y.toReference(i))||null,extends:((v=this.extends)==null?void 0:v.toReference(i))||null,parent:this.parent.toReference(i)}}toFlatJSON(i=new Set){var o,p,e;return i.has(this.id)?[]:(i.add(this.id),[this.toShallowJSON(),...((o=this.defaultValue)==null?void 0:o.toFlatJSON(i))||[],...((p=this.dataType)==null?void 0:p.toFlatJSON(i))||[],...((e=this.implements)==null?void 0:e.toFlatJSON(i))||[],...this.parent.toFlatJSON(i)])}toGenerationTarget(){var i,a;return{id:this.id,name:this.name,description:this.description,type:this.type,private:this.private,required:this.required,abstract:this.abstract,static:this.static,implements:(i=this.implements)==null?void 0:i.id,extends:(a=this.extends)==null?void 0:a.id,parent:this.parent.id}}toFlatGenerationTarget(i=new Set){var o,p;return i.has(this.id)?[]:(i.add(this.id),[this.toGenerationTarget(),...((o=this.defaultValue)==null?void 0:o.toFlatGenerationTarget(i))||[],...((p=this.dataType)==null?void 0:p.toFlatGenerationTarget(i))||[]])}clearErrors(){var i,a;return this.errors=[],(i=this.defaultValue)==null||i.clearErrors(),(a=this.dataType)==null||a.clearErrors(),this}validate(){return this.errors=BS(this),this.errors.length,{success:!0}}getErrors(){var a,o;return[...this.errors,...((a=this.defaultValue)==null?void 0:a.getErrors())||[],...((o=this.dataType)==null?void 0:o.getErrors())||[]]}getShallowErrors(){return this.errors}implement(i,a=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"implement-self-as-property")),o=null){const p=o||N.UUID.uuid(),e=Ct.new(a);e.id=p,e.name=this.name,e.description=this.description,e.index=this.index,e.private=this.private,e.required=this.required,e.static=this.static,e.constant=this.constant,e.hidden=this.hidden,e.interactive=this.interactive,e.parent=i.toReference(),e.implements=this.toJSON();const y=te(e,this.project);return y.hydrateAncestors(),y.addSelfToProject(a),y.initChildren(a),y}clone(i=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"clone-entity")),a=null,o=null,p=!0){var V,U;let e=Fr(a,this);const y=o||N.UUID.uuid();let v=a||this.parent;const E={hidden:!1,id:y,version:N.UUID.uuid(),createdAt:(i==null?void 0:i.timestamp)||L().toISOString(),author:(i==null?void 0:i.author)||"1",previousVersion:null,deleted:!1,type:this.type,name:this.name,codeName:this.codeName,description:this.description,index:this.index,private:this.private,constant:this.constant,interactive:this.interactive,required:this.required,abstract:this.abstract,static:this.static,defaultValue:null,dataType:null,implements:this.implements,extends:this.extends,parent:v},w=lr(E,e);p&&w.subscribe(),w.hydrateAncestors(),p&&w.addSelfToProject(i),w.setParent(v,null),w.initChildren(i),i==null||i.add(w,S.Added);const A=((V=this.dataType)==null?void 0:V.clone(i,w,N.UUID.uuid(),p))||null;A&&w.setDataType(A,i);const $=(U=this.defaultValue)==null?void 0:U.clone(i,w,N.UUID.uuid(),p);return w.setDefaultValue($||null,i),this.implements&&w.setImplements(this.implements,i),w.addSelfToProject(null),i==null||i.attemptAutoclose("clone-entity",this.id),w}setDataType(i,a=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"set-data-type"))){const o=this.dataType;return(o==null?void 0:o.id)!==(i==null?void 0:i.id)&&(o==null||o.remove({ignoreUpstream:!0},a),this.dataType=i,this.subscribeToDependencies(),a==null||a.add(this,S.Affected)),a==null||a.attemptAutoclose("set-data-type",this.id),this}removeDataType(){return this.dataType=null,this}getDataType(i=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"get-data-type"))){return i==null||i.attemptAutoclose("get-data-type",this.id),this.dataType}getDefaultValue(){return this.defaultValue}setDefaultValue(i,a=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"set-default-value"))){const o=this.defaultValue;return(o==null?void 0:o.id)!==(i==null?void 0:i.id)&&(o==null||o.remove({ignoreUpstream:!0},a),this.defaultValue=i,a==null||a.add(this,S.Affected)),a==null||a.attemptAutoclose("set-default-value",this.id),this}syncWithImplementation(i=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"sync-with-implementation"))){var y;const a=[],o=[],p=[],e=[];if(this.implements){const v=this.implements;if(!this.dataType&&v.dataType){const E=v.dataType.clone(i,this,N.UUID.uuid(),!0);this.setDataType(E,i),o.push(E)}if(this.implements.defaultValue&&!this.defaultValue){const E=(y=this.implements.defaultValue)==null?void 0:y.clone(i,this,N.UUID.uuid(),!0);this.setDefaultValue(E||null,i),o.push(E)}}return i==null||i.attemptAutoclose("sync-with-implementation",this.id),{updated:R(a),added:R(o),removed:R(p),affected:R(e),self:this}}};g(Ct,"repository",{APICreate:async(i,...a)=>i,APIUpdate:async(i,...a)=>i,APIDelete:async(i,...a)=>i,APIClone:async(i,...a)=>{},APILoad:async(i,...a)=>null,APILoadVersion:async(i,a,...o)=>null}),g(Ct,"type",f.Property),g(Ct,"USER_MANAGED_PARENT_TYPES",[f.DefinitionEntity]),g(Ct,"PARENT_TYPES",[...Ct.USER_MANAGED_PARENT_TYPES,f.PrimitiveEntity,f.BuiltInBaseEntity]),g(Ct,"MUTABLE_BASE_PROPERTIES",["name","codeName","description","private","abstract","static","required","constant","interactive"]),g(Ct,"INMUTABLE_BASE_PROPERTIES",["id","type","version","createdAt","author","previousVersion"]),g(Ct,"BASE_PROPERTIES",[...Ct.MUTABLE_BASE_PROPERTIES,...Ct.INMUTABLE_BASE_PROPERTIES]),g(Ct,"MUTABLE_META_PROPERTIES",[...Ct.MUTABLE_BASE_PROPERTIES,"index"]),g(Ct,"INMUTABLE_META_PROPERTIES",[...Ct.INMUTABLE_BASE_PROPERTIES]),g(Ct,"META_PROPERTIES",[...Ct.MUTABLE_META_PROPERTIES,...Ct.INMUTABLE_META_PROPERTIES]),g(Ct,"MUTABLE_UPSTREAM_PROPERTIES",[]),g(Ct,"INMUTABLE_UPSTREAM_PROPERTIES",["parent","implements","extends"]),g(Ct,"UPSTREAM_PROPERTIES",[...Ct.MUTABLE_UPSTREAM_PROPERTIES,...Ct.INMUTABLE_UPSTREAM_PROPERTIES]),g(Ct,"MUTABLE_DOWNSTREAM_PROPERTIES",["dataType"]),g(Ct,"INMUTABLE_DOWNSTREAM_PROPERTIES",[]),g(Ct,"DOWNSTREAM_PROPERTIES",[...Ct.MUTABLE_DOWNSTREAM_PROPERTIES,...Ct.INMUTABLE_DOWNSTREAM_PROPERTIES]),g(Ct,"PROPERTIES",[...Ct.META_PROPERTIES,...Ct.UPSTREAM_PROPERTIES,...Ct.DOWNSTREAM_PROPERTIES]);let ta=Ct;function FS(d){const u=Kye(),i=d.toJSON();u.safeParse(i).success;const o=d.implements.flatMap(w=>wAe(d,w)),p=d.extends.flatMap(w=>RAe(d,w)),e=gAe(d),y=_Ae(d);d.methods.flatMap(w=>w.validate());const v=[...o,...p,...e,...y,...KS(d)];return vr(d.errors,v)}function GS(d,u){const i=u.properties.filter(p=>p.abstract),a=[];let o=[...d.properties];return i.forEach(p=>{const e=o.find(y=>{var v;return((v=y.implements)==null?void 0:v.id)===p.id});e?o=o.filter(y=>y.id!==e.id):a.push(p)}),a}function SS(d,u){const i=u.abstractMethods,a=[];let o=[...d.methods];return i.forEach(p=>{const e=o.find(y=>{var v;return((v=y.implements)==null?void 0:v.id)===p.id});e?o=o.filter(y=>y.id!==e.id):a.push(p)}),a}function wAe(d,u){const i=[];if(!u.abstract){const w=ft({id:d.id+"--"+le.ImplementingNonAbstractEntity,message:`Entity "${d.name}" with id "${d.id}" is implementing a non-abstract entity "${u.name}" with id "${u.id}"`,severity:q.Error,code:le.ImplementingNonAbstractEntity,entity:d});return i.push(w.error),i}const a=u.properties.filter(w=>w.abstract),o=[];let p=[...d.properties];a.forEach(w=>{const A=p.find($=>{var V;return((V=$.implements)==null?void 0:V.id)===w.id});A?p=p.filter($=>$.id!==A.id):o.push(w)}),o.length&&o.forEach(w=>{const A=ft({id:d.id+"--"+le.MissingPropertyImplementation+"--"+w.id,message:`Property "${w.name}" with id "${w.id}" of entity "${u.name}" with id "${u.id}" is not implemented when entity "${d.name}" with id "${d.id}" implements it`,severity:q.Error,code:le.MissingPropertyImplementation,entity:d});i.push(A.error)});const e=[];let y=[...d.methods];u.abstractMethods.forEach(w=>{const A=y.find($=>{var V;return((V=$.implements)==null?void 0:V.id)===w.id});A?y=y.filter($=>$.id!==A.id):e.push(w)}),e.length&&e.forEach(w=>{const A=ft({id:d.id+"--"+le.MissingMethodImplementation+"--"+w.id,message:`Method "${w.name}" with id "${w.id}" of entity "${u.name}" with id "${u.id}" is not implemented when entity "${d.name}" with id "${d.id}" implements it`,severity:q.Error,code:le.MissingMethodImplementation,entity:d});i.push(A.error)});const v=[];u.properties.forEach(w=>{const A=p.find($=>$.name===w.name);A&&v.push([A,w])}),v.length&&v.forEach(([w])=>{const A=ft({id:d.id+"--"+ae.PropertyOverwritesOtherSiblingWithSameName+"--"+w.id,message:`Property "${w.name}" with id "${w.id}" of entity "${d.name}" with id "${d.id}" overwrites the property with the same name from the base entity "${u.name}" with id "${u.id}"`,severity:q.Error,code:ae.PropertyOverwritesOtherSiblingWithSameName,entity:d});i.push(A.error)});const E=[];return u.methods.forEach(w=>{const A=y.find($=>$.name===w.name);A&&E.push([A,w])}),E.length&&E.forEach(([w])=>{const A=ft({id:d.id+"--"+ae.MethodOverwritesOtherSiblingWithSameName+"--"+w.id,message:`Method "${w.name}" with id "${w.id}" of entity "${d.name}" with id "${d.id}" overwrites the method with the same name from the base entity "${u.name}" with id "${u.id}"`,severity:q.Error,code:ae.MethodOverwritesOtherSiblingWithSameName,entity:d});i.push(A.error)}),i}function RAe(d,u){const i=[],a=[];if(!d.abstract&&u.abstract){const p=ft({id:d.id+"--"+u.id+"--"+le.NonAbstractExtendingAbstractEntity,message:`Entity "${d.name}" with id "${d.id}" is not-abstract but is extending an abstract entity "${u.name}" with id "${u.id}"`,severity:q.Error,code:le.NonAbstractExtendingAbstractEntity,entity:d,firstRelationship:u});return i.push(p.error),i}if(d.abstract&&!u.abstract){const p=ft({id:d.id+"--"+u.id+"--"+le.AbstractExtendingNonAbstractEntity,message:`Entity "${d.name}" with id "${d.id}" is abstract but is extending an non-abstract entity "${u.name}" with id "${u.id}"`,severity:q.Error,code:le.AbstractExtendingNonAbstractEntity,entity:d,firstRelationship:u});return i.push(p.error),i}d.properties.forEach(p=>{var y;const e=u.properties.find(v=>{var E;return v.name===p.name&&((E=p.extends)==null?void 0:E.id)!==v.id});((y=p.implements)==null?void 0:y.id)!==(e==null?void 0:e.id)&&e&&a.push(p)}),a.length&&a.forEach(p=>{const e=ft({id:d.id+"--"+ae.PropertyOverwritesOtherSiblingWithSameName,message:`Property "${p.name}" with id "${p.id}" of entity "${d.name}" with id "${d.id}" overwrites the property with the same name from the extended entity "${u.name}" with id "${u.id}"`,severity:q.Error,code:ae.PropertyOverwritesOtherSiblingWithSameName,entity:d});i.push(e.error)});const o=[];return d.methods.forEach(p=>{var y;const e=u.methods.find(v=>{var E;return v.name===p.name&&((E=p.extends)==null?void 0:E.id)!==v.id});((y=p.implements)==null?void 0:y.id)!==(e==null?void 0:e.id)&&e&&o.push(p)}),o.length&&o.forEach(p=>{const e=ft({id:d.id+"--"+ae.MethodOverwritesOtherSiblingWithSameName,message:`Method "${p.name}" with id "${p.id}" of entity "${d.name}" with id "${d.id}" overwrites the method with the same name from the extended entity "${u.name}" with id "${u.id}"`,severity:q.Error,code:ae.MethodOverwritesOtherSiblingWithSameName,entity:d});i.push(e.error)}),i}function _Ae(d){const u=[];if(!d.properties.length){const i=ft({id:d.id+"--"+le.NoProperties,message:"No properties implemented",severity:q.Warning,code:le.NoProperties,entity:d});u.push(i.error)}return d.properties.forEach(i=>{i.validate()}),u}function gAe(d){const u=[];if(d.abstract){if(d.methods.length){const i=ft({id:d.id+"--"+le.AbstractEntityWithNonAbstractMethods,message:`Entity "${d.name}" with id "${d.id}" is marked as abstract but has non-abstract methods`,severity:q.Error,code:le.AbstractEntityWithNonAbstractMethods,entity:d});u.push(i.error)}if(d.properties.some(i=>!i.abstract)){const i=ft({id:d.id+"--"+le.AbstractEntityWithNonAbstractProperties,message:`Entity "${d.name}" with id "${d.id}" is marked as abstract but has non-abstract properties`,severity:q.Error,code:le.AbstractEntityWithNonAbstractProperties,entity:d});u.push(i.error),d.properties.forEach(a=>{if(!a.abstract){const o=ft({id:d.id+"--"+le.StaticEntityWithNonStaticProperties+"--"+a.id,message:`Property "${a.name}" with id "${a.id}" of entity "${d.name}" with id "${d.id}" is not marked as abstract but the entity is marked as abstract`,severity:q.Error,code:le.StaticEntityWithNonStaticProperties,entity:d});u.push(o.error)}})}}else{if(d.abstractMethods.length){const i=ft({id:d.id+"--"+le.AbstractPropertyInNonAbstractEntity,message:`Entity "${d.name}" with id "${d.id}" is not marked as abstract but has abstract methods`,severity:q.Error,code:le.AbstractPropertyInNonAbstractEntity,entity:d});u.push(i.error)}d.properties.some(i=>i.abstract)&&d.properties.forEach(i=>{if(i.abstract){const a=ft({id:d.id+"--"+le.AbstractPropertyInNonAbstractEntity+"--"+i.id,message:`Property "${i.name}" with id "${i.id}" of entity "${d.name}" with id "${d.id}" is marked as abstract but the entity is not marked as abstract`,severity:q.Error,code:le.AbstractPropertyInNonAbstractEntity,entity:d,firstRelationship:i});u.push(a.error)}})}return d.static&&d.properties.some(i=>!i.static)&&d.properties.forEach(i=>{if(!i.static){const a=ft({id:d.id+"--"+le.NonStaticPropertyInStaticEntity+"--"+i.id,message:`Property "${i.name}" with id "${i.id}" of entity "${d.name}" with id "${d.id}" is not marked as static but the entity is marked as static`,severity:q.Error,code:le.NonStaticPropertyInStaticEntity,entity:d,firstRelationship:i});u.push(a.error)}}),u}function DAe(d,u){const i=[],a=Mi(u);if(!u.abstract){const e=new dr({id:d.id+"--"+u.id+"--"+le.ImplementingNonAbstractEntity,message:`Entity "${d.name}" with id "${d.id}" is implementing a non-abstract built-in entity "${u.name}" with id "${u.id}"`,severity:q.Error,code:le.ImplementingNonAbstractEntity,entity:d,firstRelationship:u});i.push(e)}const o=d.implements.filter(e=>e.id!==u.id);if(d.abstract){const e=new dr({id:d.id+"--"+u.id+"--"+le.AbstractEntityImplements,message:`Entity "${d.name}" with id "${d.id}" is marked as abstract and cannot implement built-in entity "${u.name}" with id "${u.id}"`,severity:q.Error,code:le.AbstractEntityImplements,entity:d,firstRelationship:u});i.push(e)}if(d.static&&!u.static){const e=new dr({id:d.id+"--"+u.id+"--"+le.StaticImplementingNonStaticEntity,message:`Entity "${d.name}" with id "${d.id}" is marked as static and cannot implement non-static built-in entity "${u.name}" with id "${u.id}"`,severity:q.Error,code:le.StaticImplementingNonStaticEntity,entity:d,firstRelationship:u});i.push(e)}if(!d.static&&u.static){const e=new dr({id:d.id+"--"+u.id+"--"+le.NonStaticImplementingStaticEntity,message:`Entity "${d.name}" with id "${d.id}" is not marked as static and cannot implement static built-in entity "${u.name}" with id "${u.id}"`,severity:q.Error,code:le.NonStaticImplementingStaticEntity,entity:d,firstRelationship:u});i.push(e)}return o.length&&o.forEach(e=>{if(e.type===f.BuiltInBaseEntity){const y=a.filter(v=>v.id!==e.id);y.length&&y.forEach(v=>{if(v.id!==e.id){const E=new dr({id:d.id+"--"+v.id+"--"+e.id+"--"+le.ImplementsIncompatibleEntities,message:`Entity "${d.name}" with id "${d.id}" is implementing built-in entity "${v.name}" with id "${v.id}" but also implements entity "${e.name}" with id "${e.id}" which is incompatible`,severity:q.Error,code:le.ImplementsIncompatibleEntities,entity:d,firstRelationship:v,secondRelationship:e});i.push(E)}})}else{Mi(e).forEach(w=>{const A=a.filter($=>$.id!==w.id);A.length&&A.forEach($=>{if($.id!==w.id){const V=new dr({id:d.id+"--"+$.id+"--"+w.id+"--"+le.ImplementsIncompatibleEntities,message:`Entity "${d.name}" with id "${d.id}" is implementing built-in entity "${$.name}" with id "${$.id}" but also implements entity "${w.name}" with id "${w.id}" which is incompatible`,severity:q.Error,code:le.ImplementsIncompatibleEntities,entity:d,firstRelationship:$,secondRelationship:w});i.push(V)}})});const v=ja(u.ownDeclaredProperties,e.ownDeclaredProperties,ae.PropertyOverwritesOtherImplementedEntitysPropertyWithSameImplementation,ae.PropertyOverwritesOtherImplementedEntitysPropertyWithSameName);i.push(...v.errors);const E=ja(u.abstractMethods,[...e.abstractMethods,...e.methods],ae.MethodOverwritesOtherImplementedEntitysMethodWithSameImplementation,ae.MethodOverwritesOtherImplementedEntitysMethodWithSameName);i.push(...E.errors)}}),R(d.extends.flatMap(e=>Mi(e))).forEach(e=>{if(!a.find(y=>y.id===e.id)){const y=new dr({id:d.id+"--"+u.id+"--"+e.id+"--"+le.ExtendsIncompatibleEntities,message:`Entity "${d.name}" with id "${d.id}" is implementing built-in entity "${u.name}" with id "${u.id}" but also extends entity "${e.name}" with id "${e.id}" which is incompatible`,severity:q.Error,code:le.ExtendsIncompatibleEntities,entity:d,firstRelationship:u,secondRelationship:e});i.push(y)}}),i}function OAe(d,u,i=!1){const a=[],o=Mi(u);if(!d.abstract&&u.abstract){const w=ft({id:d.id+"--"+u.id+"--"+le.NonAbstractExtendingAbstractEntity,message:`Entity "${d.name}" with id "${d.id}" is not-abstract but is extending an abstract entity "${u.name}" with id "${u.id}"`,severity:q.Error,code:le.NonAbstractExtendingAbstractEntity,entity:d,firstRelationship:u});a.push(w.error)}if(d.abstract&&!u.abstract){const w=ft({id:d.id+"--"+u.id+"--"+le.AbstractExtendingNonAbstractEntity,message:`Entity "${d.name}" with id "${d.id}" is abstract but is extending an non-abstract entity "${u.name}" with id "${u.id}"`,severity:q.Error,code:le.AbstractExtendingNonAbstractEntity,entity:d,firstRelationship:u});a.push(w.error)}if(!d.static&&u.static){const w=ft({id:d.id+"--"+u.id+"--"+le.NonStaticExtendingStaticEntity,message:`Entity "${d.name}" with id "${d.id}" is not static but is extending a static entity "${u.name}" with id "${u.id}"`,severity:q.Error,code:le.NonStaticExtendingStaticEntity,entity:d,firstRelationship:u});a.push(w.error)}if(d.static&&!u.static){const w=ft({id:d.id+"--"+u.id+"--"+le.StaticExtendingNonStaticEntity,message:`Entity "${d.name}" with id "${d.id}" is static but is extending an non-static entity "${u.name}" with id "${u.id}"`,severity:q.Error,code:le.StaticExtendingNonStaticEntity,entity:d,firstRelationship:u});a.push(w.error)}if(!sf(u)){const w=ft({id:d.id+"--"+u.id+"--"+le.ExtendingNonInteractiveEntity,message:`Entity "${d.name}" with id "${d.id}" is extending an non-interactive entity "${u.name}" with id "${u.id}"`,severity:q.Error,code:le.ExtendingNonInteractiveEntity,entity:d,firstRelationship:u});a.push(w.error)}const e=d.extends.filter(w=>w.id!==u.id);e.length&&e.forEach(w=>{if(w.type===f.BuiltInBaseEntity){const A=o.filter($=>$.id!==w.id);A.length&&A.forEach($=>{if($.id!==w.id){const V=ft({id:d.id+"--"+$.id+"--"+w.id+"--"+le.ExtendsIncompatibleEntities,message:`Entity "${d.name}" with id "${d.id}" is extending built-in entity "${$.name}" with id "${$.id}" but also extends entity "${w.name}" with id "${w.id}" which is incompatible`,severity:q.Error,code:le.ExtendsIncompatibleEntities,entity:d,firstRelationship:$,secondRelationship:w});a.push(V.error)}})}else{Mi(w).forEach(Z=>{const ie=o.filter(X=>X.id!==Z.id);ie.length&&ie.forEach(X=>{if(X.id!==Z.id){const ue=new dr({id:d.id+"--"+X.id+"--"+Z.id+"--"+le.ImplementsIncompatibleEntities,message:`Entity "${d.name}" with id "${d.id}" is extending built-in entity "${X.name}" with id "${X.id}" but also extends or implements entity "${Z.name}" with id "${Z.id}" which is incompatible`,severity:q.Error,code:le.ImplementsIncompatibleEntities,entity:d,firstRelationship:X,secondRelationship:Z});a.push(ue)}})});const $=!!Mi(w).find(Z=>Z.id===u.id);let V=[...w.properties];$&&(V=V.filter(Z=>!u.properties.find(ie=>{var X;return ie.id===Z.id||ie.name===Z.name||ie.id===((X=Z.implements)==null?void 0:X.id)})));let U=[...w.methods];$&&(U=U.filter(Z=>!u.methods.find(ie=>{var X;return ie.id===Z.id||ie.name===Z.name||ie.id===((X=Z.implements)==null?void 0:X.id)})));const G=ja(u.ownDeclaredProperties,V,ae.PropertyOverwritesOtherExtendedEntitysPropertyWithSameImplementation,ae.PropertyOverwritesOtherExtendedEntitysPropertyWithSameName);a.push(...G.errors);const K=ja(u.abstractMethods,U,ae.MethodOverwritesOtherExtendedEntitysMethodWithSameImplementation,ae.MethodOverwritesOtherExtendedEntitysMethodWithSameName);a.push(...K.errors)}}),i&&Me.log("self.implements.length",d.implements.length),d.implements.length&&d.implements.forEach(w=>{if(w.type===f.BuiltInBaseEntity){const A=o.filter($=>$.id!==w.id);A.length&&A.forEach($=>{if($.id!==w.id){const V=new dr({id:d.id+"--"+$.id+"--"+w.id+"--"+le.ImplementsIncompatibleEntities,message:`Entity "${d.name}" with id "${d.id}" is implementing built-in entity "${$.name}" with id "${$.id}" but also implements entity "${w.name}" with id "${w.id}" which is incompatible`,severity:q.Error,code:le.ImplementsIncompatibleEntities,entity:d,firstRelationship:$,secondRelationship:w});a.push(V)}})}else{Mi(w).forEach(U=>{const G=o.filter(K=>K.id!==U.id);G.length&&G.forEach(K=>{if(K.id!==U.id){const Z=new dr({id:d.id+"--"+K.id+"--"+U.id+"--"+le.ImplementsIncompatibleEntities,message:`Entity "${d.name}" with id "${d.id}" is implementing built-in entity "${K.name}" with id "${K.id}" but also implements entity "${U.name}" with id "${U.id}" which is incompatible`,severity:q.Error,code:le.ImplementsIncompatibleEntities,entity:d,firstRelationship:K,secondRelationship:U});a.push(Z)}})});const $=ja(u.ownDeclaredProperties,w.ownDeclaredProperties,ae.PropertyOverwritesOtherImplementedEntitysPropertyWithSameImplementation,ae.PropertyOverwritesOtherImplementedEntitysPropertyWithSameName);a.push(...$.errors);const V=ja(u.abstractMethods,[...w.abstractMethods,...w.methods],ae.MethodOverwritesOtherImplementedEntitysMethodWithSameImplementation,ae.MethodOverwritesOtherImplementedEntitysMethodWithSameName);a.push(...V.errors)}});const y=ja(d.ownDeclaredProperties,u.ownDeclaredProperties,ae.PropertyOverwritesOtherSiblingWithSameImplementation,ae.PropertyOverwritesOtherSiblingWithSameName);a.push(...y.errors);const v=ja(u.methods,u.abstractMethods,ae.MethodOverwritesOtherSiblingWithSameImplementation,ae.MethodOverwritesOtherSiblingWithSameName);return a.push(...v.errors),R(d.extends.flatMap(w=>Mi(w))).forEach(w=>{if(!o.find(A=>A.id===w.id)){const A=new dr({id:d.id+"--"+u.id+"--"+w.id+"--"+le.ImplementsIncompatibleEntities,message:`Entity "${d.name}" with id "${d.id}" is extending built-in entity "${u.name}" with id "${u.id}" but also extends entity "${w.name}" with id "${w.id}" which is incompatible`,severity:q.Error,code:le.ImplementsIncompatibleEntities,entity:d,firstRelationship:u,secondRelationship:w});a.push(A)}}),a}function CAe(d){const u=[];return d.implements.forEach(i=>{if(!i.static){const a=new dr({id:d.id+"--"+i.id+"--"+le.StaticImplementingNonStaticEntity,message:`Entity "${d.name}" with id "${d.id}" is static but implements entity "${i.name}" with id "${i.id}" which is non-static`,severity:q.Error,code:le.StaticImplementingNonStaticEntity,entity:d,firstRelationship:i});u.push(a)}}),d.extends.forEach(i=>{if(!i.static){const a=new dr({id:d.id+"--"+i.id+"--"+le.StaticExtendingNonStaticEntity,message:`Entity "${d.name}" with id "${d.id}" is static but extends entity "${i.name}" with id "${i.id}" which is non-static`,severity:q.Error,code:le.StaticExtendingNonStaticEntity,entity:d,firstRelationship:i});u.push(a)}}),u}function $Ae(d){const u=[];if(d.implements.length){const i=new dr({id:d.id+"--"+le.AbstractEntityImplements,message:`Entity "${d.name}" with id "${d.id}" cannot be marked as abstract because it implements other entities`,severity:q.Error,code:le.AbstractEntityImplements,entity:d});u.push(i)}return d.extends.forEach(i=>{if(!i.abstract){const a=new dr({id:d.id+"--"+i.id+"--"+le.AbstractExtendingNonAbstractEntity,message:`Entity "${d.name}" with id "${d.id}" is abstract but extends entity "${i.name}" with id "${i.id}" which is non-abstract`,severity:q.Error,code:le.AbstractExtendingNonAbstractEntity,entity:d,firstRelationship:i});u.push(a)}}),u}function PAe(d){const u=[];return d.extends.forEach(i=>{if(i.static){const a=new dr({id:d.id+"--"+i.id+"--"+le.NonStaticExtendingStaticEntity,message:`Entity "${d.name}" with id "${d.id}" is non-static but extends entity "${i.name}" with id "${i.id}" which is static`,severity:q.Error,code:le.NonStaticExtendingStaticEntity,entity:d,firstRelationship:i});u.push(a)}}),u}function NAe(d){const u=[];return d.extends.forEach(i=>{if(i.abstract){const a=new dr({id:d.id+"--"+i.id+"--"+le.NonAbstractExtendingAbstractEntity,message:`Entity "${d.name}" with id "${d.id}" is non-abstract but extends entity "${i.name}" with id "${i.id}" which is abstract`,severity:q.Error,code:le.NonAbstractExtendingAbstractEntity,entity:d,firstRelationship:i});u.push(a)}}),u}function KS(d){const u=[],i=d.name;if(!i){const $=ft({id:`${d.id}--${ae.EmptyName}`,message:`Definition entity "${ne(d,d.project)}" with id "${d.id}" does not have a name. Entities of type ${d.type} must have valid names.`,severity:q.Error,code:ae.EmptyName,entity:d});return u.push($.error),u}const o=[...d.project.functions,...d.project.entities.flatMap($=>$.methods)].filter($=>$.id!==d.id),p=i.trim(),e=!o.some($=>$.name===i||$.name===p);if(!e){const $=ft({id:`${d.id}--${ae.NameNotUniqueInScope}`,message:`Definition entity "${ne(d,d.project)}" with id "${d.id}" does not have a unique name. Entities of type ${d.type} must have valid names among all other entities of its type.`,severity:q.Error,code:ae.NameNotUniqueInScope,entity:d});u.push($.error)}const y=jr(i);if(!!o.some($=>jr($.name)===y)&&e){const $=ft({id:`${d.id}--${ae.NameAsResolvedCodeNameNotUniqueInScope}`,message:`Definition entity "${ne(d,d.project)}" with id "${d.id}" does not have a unique name once it is resolved as it will appear in code: "${y}". Entities of type ${d.type} must have valid names including their code name form.`,severity:q.Error,code:ae.NameAsResolvedCodeNameNotUniqueInScope,entity:d});u.push($.error)}if(!/^[a-zA-Z_]/.test(i)){const $=ft({id:`${d.id}--${ae.NameMustStartWithLetterOrUnderscore}`,message:`Definition entity "${ne(d,d.project)}" with id "${d.id}" has a name that does not start with a letter or underscore.`,severity:q.Error,code:ae.NameMustStartWithLetterOrUnderscore,entity:d});u.push($.error)}const w=i.substring(1);if(!/^[a-zA-Z0-9_ ]*$/.test(w)){const $=ft({id:`${d.id}--${ae.NameCanOnlyContainLettersNumbersUnderscoreAndSpaces}`,message:`Definition entity "${ne(d,d.project)}" with id "${d.id}" has a name that contains invalid characters. It can only contain letters, numbers, underscores and spaces.`,severity:q.Error,code:ae.NameCanOnlyContainLettersNumbersUnderscoreAndSpaces,entity:d});u.push($.error)}return u}const VAe=Object.freeze(Object.defineProperty({__proto__:null,getBaseMethodsNotImplemented:SS,getBasePropertiesNotImplemented:GS,validate:FS,validateCanBecomeAbstract:$Ae,validateCanBecomeNonAbstract:NAe,validateCanBecomeNonStatic:PAe,validateCanBecomeStatic:CAe,validateCanExtendEntity:OAe,validateCanImplementEntity:DAe,validateDefinitionEntityName:KS},Symbol.toStringTag,{value:"Module"}));function LAe(d,u){const i=[];if(d.parent)if(d.id===d.parent)i.push(new ee({id:`${d.id}--${d.parent}--${k.SelfReference}`,code:k.SelfReference,severity:q.Error,message:`Entity of type "${d.type}" with id "${d.id}", has a reference to itself at 'parent'. This is not allowed. Change the reference string or the 'entityId' property of the reference object.`}));else{const a=u.get(d.parent);a?[f.Project,f.DataType].includes(a.type)||i.push(new ee({id:`${d.id}--${d.parent}--${k.InvalidParentReference}`,code:k.InvalidParentReference,severity:q.Error,message:`Entity of type "${d.type}" with id "${d.id}", has a parent reference that isn't pointing to an entity of type 'project' or 'data-type'.`})):i.push(new ee({id:`${d.id}--${d.parent}--${k.ReferencedEntityNotFound}`,code:k.ReferencedEntityNotFound,severity:q.Error,message:`Entity of type "${d.type}" with id "${d.id}", is referencing an entity with id "${d.parent}" that isn't yet found in the project. Perhaps it should be created first. Or perhaps the ID is incorrect.`}))}return d.implements&&Array.isArray(d.implements)?d.implements.forEach(a=>{if(d.id===a){i.push(new ee({id:`${d.id}--${a}--${k.SelfReference}`,code:k.SelfReference,severity:q.Error,message:`Entity of type "${d.type}" with id "${d.id}", has a reference to itself at one of the 'implements' references. This is not allowed. Change the reference string or the 'entityId' property of the reference object.`}));return}const o=u.get(a);o?[f.DefinitionEntity,f.BuiltInBaseEntity].includes(o.type)?o.abstract||i.push(new ee({id:`${d.id}--${a}--${k.InvalidImplementsReference}`,code:k.InvalidImplementsReference,severity:q.Error,message:`Entity of type "${d.type}" with id "${d.id}", has an 'implements' reference that isn't pointing to an abstract entity.`})):i.push(new ee({id:`${d.id}--${a}--${k.InvalidImplementsReference}`,code:k.InvalidImplementsReference,severity:q.Error,message:`Entity of type "${d.type}" with id "${d.id}", has an 'implements' reference that isn't pointing to an entity of type 'definition-entity' or 'built-in-base-entity'.`})):i.push(new ee({id:`${d.id}--${a}--${k.ReferencedEntityNotFound}`,code:k.ReferencedEntityNotFound,severity:q.Error,message:`Entity of type "${d.type}" with id "${d.id}", is referencing an entity with id "${a}" that isn't yet found in the project. Perhaps it should be created first. Or perhaps the ID is incorrect.`}))}):i.push(new ee({id:`${d.id}--${ae.InvalidObjectStructure}`,code:ae.InvalidObjectStructure,severity:q.Error,message:`Entity of type "${d.type}" with id "${d.id}", has an 'implements' property that isn't an array.`})),d.extends&&Array.isArray(d.extends)&&d.extends.forEach(a=>{const o=u.get(a);o?[f.DefinitionEntity,f.BuiltInBaseEntity].includes(o.type)?o.abstract&&i.push(new ee({id:`${d.id}--${a}--${k.InvalidExtendsReference}`,code:k.InvalidExtendsReference,severity:q.Error,message:`Entity of type "${d.type}" with id "${d.id}", has an 'extends' reference that isn't pointing to a non-abstract entity. Did you want to use the property 'implements', which holds a list of references to absract entities, instead?`})):i.push(new ee({id:`${d.id}--${a}--${k.InvalidExtendsReference}`,code:k.InvalidExtendsReference,severity:q.Error,message:`Entity of type "${d.type}" with id "${d.id}", has an 'extends' reference that isn't pointing to an entity of type 'definition-entity' or 'built-in-base-entity'.`})):i.push(new ee({id:`${d.id}--${a}--${k.ReferencedEntityNotFound}`,code:k.ReferencedEntityNotFound,severity:q.Error,message:`Entity of type "${d.type}" with id "${d.id}", is referencing an entity with id "${a}" that isn't yet found in the project. Perhaps it should be created first. Or perhaps the ID is incorrect.`}))}),i}var Gm=(d=>(d.Extends="extends",d.Implements="implements",d))(Gm||{});const qt=class qt extends Nr{constructor(i,a){super(i);g(this,"initialData");g(this,"id");g(this,"name");g(this,"codeName",null);g(this,"description",null);g(this,"x");g(this,"y");g(this,"static");g(this,"abstract");g(this,"type",f.DefinitionEntity);g(this,"properties",[]);g(this,"methods",[]);g(this,"abstractMethods",[]);g(this,"extends",[]);g(this,"implements",[]);g(this,"project");g(this,"errors",[]);g(this,"parent");g(this,"detachedDependents",{});g(this,"knownVersions",null);g(this,"activeVersion",!1);g(this,"initialized",!1);g(this,"startedInitialization",!1);g(this,"suggestedProperties",[]);g(this,"suggestedMethods",[]);this.initialData=i,this.project=a,this.id=i.id,this.name=i.name,this.description=i.description,this.x=i.x,this.y=i.y,this.codeName=i.codeName,this.static=i.static,this.abstract=i.abstract}static new(i=null){return{id:N.UUID.uuid(),version:N.UUID.uuid(),createdAt:(i==null?void 0:i.timestamp)||L().toISOString(),author:(i==null?void 0:i.author)||N.sessionAuthor,previousVersion:null,deleted:!1,type:f.DefinitionEntity,name:"",codeName:null,description:"",static:!1,abstract:!1,properties:[],methods:[],abstractMethods:[],extends:[],implements:[],x:0,y:0,parent:null}}static fromGenerationTarget(i,a){let o=a;if(i.parent){const E=J(i.parent);o=a.get(E)}const p=[];i.implements&&i.implements.forEach(E=>{p.push(a.get(E)||a.getBuiltIn(E))});const e=[];i.extends&&i.extends.forEach(E=>{e.push(a.get(E)||a.getBuiltIn(E))});const y={id:i.id,version:N.UUID.uuid(),createdAt:L().toISOString(),author:N.sessionAuthor,previousVersion:null,deleted:!1,name:i.name,type:f.DefinitionEntity,codeName:i.codeName||null,description:i.description,static:i.static,abstract:i.abstract,properties:[],methods:[],abstractMethods:[],extends:e,implements:p,x:0,y:0,parent:o},v=te(y,a);return v.setParent(o,null),v}static validateGenerationTarget(i,a){let o=JSON.parse(JSON.stringify(i));const p=[],e=LAe(o,a),y=Jb(o,a);p.push(...e,...y,...Br(o));const v=o.parent?a.get(o.parent):null;if(v&&v.type===f.DataType){const E=v;E.entity&&p.push(new ee({id:`${i.id}--${k.NewEntityWouldOverriteExisting}`,code:k.NewEntityWouldOverriteExisting,severity:q.Error,message:`The entity of type '${i.type}' with id '${i.id}' can't be added to the 'parent' entity with id '${E.id}' because it already has an 'entity' child. Data type entities can only have one 'entity' as children.
406
406
  You can inspect the existing 'entity' field with the 'describe_entity' action. Like so:
407
407
  ${Qn({describe_entity:E.entity.id})}
408
- Alternatively you can update the parent data-type entity with 'update' action to remove the existing value of the field.`}))}return{errors:p,modifiedData:o}}get interactive(){return this.implements.length?this.implements.every(i=>i.interactive):!0}get allMethods(){return R([...this.ownDeclaredMethods,...this.allBaseMethodsFromOriginalParents])}get allProperties(){return R([...this.ownDeclaredProperties,...this.allBasePropertiesFromOriginalParents])}get allBaseMethodsFromOriginalParents(){return R([...this.extends.flatMap(i=>i.allMethods,[]),...this.implements.flatMap(i=>i.allMethods,[])])}get allBasePropertiesFromOriginalParents(){return R([...this.extends.flatMap(i=>i.allProperties,[]),...this.implements.flatMap(i=>i.allProperties,[])])}get allBasePropertiesFromExtendedAndImplementedEntities(){return R([...this.extends.reduce((i,a)=>[...[...a.ownDeclaredProperties,...a.allBasePropertiesFromExtendedAndImplementedEntities].filter(p=>!p.abstract),...i],[]),...this.implements.reduce((i,a)=>[...[...a.ownDeclaredProperties,...a.allBasePropertiesFromExtendedAndImplementedEntities].filter(p=>!p.abstract),...i],[])])}get allBaseMethodsFromExtendedAndImplementedEntities(){return R([...this.extends.reduce((i,a)=>a.type!==f.DefinitionEntity?[]:[...[...a.ownDeclaredMethods,...a.allBaseMethodsFromExtendedAndImplementedEntities].filter(p=>p.type!==f.ActionDescriptor),...i],[]),...this.implements.reduce((i,a)=>a.type!==f.DefinitionEntity?a.abstractMethods:[...[...a.ownDeclaredMethods,...a.allBaseMethodsFromExtendedAndImplementedEntities].filter(p=>p.type!==f.ActionDescriptor),...i],[])])}get extendedPropertiesFromOriginalParents(){return R(this.extends.reduce((i,a)=>{const o=[...a.ownDeclaredProperties,...a.extendedPropertiesFromOriginalParents].filter(p=>!p.abstract);return[...i,...o]},[]))}get implementedPropertiesFromOriginalParents(){return R([...this.extends.reduce((i,a)=>{const o=a.implementedPropertiesFromOriginalParents,p=[...a.ownDeclaredProperties].filter(e=>!!e.abstract&&!o.find(y=>y.name===e.name));return[...o,...p,...i]},[]),...this.implements.reduce((i,a)=>{const o=a.implementedPropertiesFromOriginalParents,p=[...a.ownDeclaredProperties].filter(e=>!!e.abstract&&!o.find(y=>y.name===e.name));return[...o,...p,...i]},[])].filter(i=>!!i.abstract))}get extendedMethodsFromOriginalParents(){return R(this.extends.reduce((i,a)=>{if(a.type!==f.DefinitionEntity)return[];const o=[...a.ownDeclaredMethods,...a.extendedMethodsFromOriginalParents].filter(p=>p.type!==f.ActionDescriptor);return[...i,...o]},[]))}get implementedMethodsFromOriginalParents(){return R([...this.extends.reduce((i,a)=>{const o=a.type===f.DefinitionEntity?a.methods:[],p=[...a.abstractMethods].filter(e=>!o.find(y=>y.name===e.name));return[...o,...p,...i]},[]),...this.implements.reduce((i,a)=>[...a.abstractMethods,...i],[])].filter(i=>i.type===f.ActionDescriptor))}get extendedProperties(){return this.properties.filter(i=>i.isExtendedProperty)}get ownDeclaredProperties(){return this.properties.filter(i=>!i.isExtendedProperty)}get extendedMethods(){return this.methods.filter(i=>i.isExtendedMethod)}get ownDeclaredMethods(){return this.methods.filter(i=>!i.isExtendedMethod)}validateGeneratedUpdate(i){const a=[];return i.parent&&a.push(new ee({id:`${this.id}--${k.InvalidParentUpdate}`,code:k.InvalidParentUpdate,severity:q.Error,message:`Entity of type '${this.type}' with id '${this.id}' cannot have the 'parent' property updated. The 'parent' on an '${this.type}', must be the root project as it is a globally declared entity.`})),{errors:a,modifiedData:i}}subscribeDependents(i){return i.forEach(a=>{this.detachedDependents[a.entity.id]||(this.detachedDependents[a.entity.id]=a)}),this}unsubscribeDependents(i){return i.forEach(a=>{this.detachedDependents[a.entity.id]&&delete this.detachedDependents[a.entity.id]}),this}syncDependents(i=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"sync-dependents"))){const a=[],o=[],p=[],e=[];return Object.values(this.detachedDependents).forEach(y=>{const v=y.entity.afterAllChildrenInitialized(i);a.push(...v.updated),o.push(...v.added),p.push(...v.removed),e.push(...v.affected)}),i==null||i.attemptAutoclose("sync-dependents",this.id),{updated:R(a),added:R(o),removed:R(p),affected:R(e),self:this}}onDetachedDependencyRemoved(i,a,o){const p=[],e=[],y=[],v=[];return a==="implements"&&this.removeImplementation(i),a==="extends"&&this.removeExtension(i),{updated:R(p),added:R(e),removed:R(y),affected:R(v),self:this}}onDetachedDependencyRestored(i,a,o){const p=[],e=[],y=[],v=[];return a==="implements"&&this.addImplementation(i),a==="extends"&&this.addExtension(i),{updated:R(p),added:R(e),removed:R(y),affected:R(v),self:this}}unsubscribeFromDependencies(){return this.implements.forEach(i=>{Wi.includes(i.type)||i.unsubscribeDependents([{entity:this,field:"implements"}])}),this}subscribeToDependencies(){return this.implements.forEach(i=>{Wi.includes(i.type)||i.subscribeDependents([{entity:this,field:"implements"}])}),this.extends.forEach(i=>{Wi.includes(i.type)||i.subscribeDependents([{entity:this,field:"extends"}])}),this}increaseVersion(i){if(i&&!L(i).isValid())throw new Error(`The shared timestamp '${i}' is not a valid ISO 8601 date string.`);return i&&L(i).isSame(L(this.createdAt))?this:(this.previousVersion=this.version,this.version=N.UUID.uuid(),this.createdAt=L(i).toISOString()||L().toISOString(),this)}captureVersion(){var a;const i=((a=this.knownVersions)==null?void 0:a.get(this.version))||new qt(this,this.project);return i.metaSync(this.toMeta(),null),this.knownVersions=this.knownVersions?this.knownVersions.set(this.version,i):new Map([[this.version,i]]),i.properties=[...this.properties],i.methods=[...this.methods],i.abstractMethods=[...this.abstractMethods],i.extends=[...this.extends],i.implements=[...this.implements],i.parent=this.parent,this}recursiveCaptureUpstreamVersions(i){const a=[],o=[],p=[],e=[];if(this.parent){this.parent.increaseVersion(i);const y=this.parent.recursiveCaptureUpstreamVersions(i);a.push(this.parent,...y.updated),o.push(...y.added),p.push(...y.removed)}return{updated:R(a),added:R(o),removed:R(p),affected:R(e),self:this}}async restoreVersion(i){var v;const a=[],o=[],p=[],e=[];if(this.version===i)return{updated:R(a),added:R(o),removed:R(p),affected:R(e),self:this};if(!this.knownVersions){const E=new Map;for(const[w,A]of this.knownVersions||new Map){if(E.set(w,A),A.activeVersion=!1,A.knownVersions)for(const[$,V]of A.knownVersions)E.set($,V);A.knownVersions=null}}let y=(v=this.knownVersions)==null?void 0:v.get(i);if(!y){const E=await this.APILoadVersion({},i);if(!E)throw new Error(`Version with id '${i}' for entity with id '${this.id}' not found.`);y=new qt(E,this.project)}return this.metaSync(y.toShallowJSON(),null),this.previousVersion=y.previousVersion,this.version=y.version,this.createdAt=y.createdAt,this.author=y.author,this.deleted=y.deleted,this.properties=y.properties,this.methods=y.methods,this.abstractMethods=y.abstractMethods,this.extends=y.extends,this.implements=y.implements,this.parent=y.parent,{updated:R(a),added:R(o),removed:R(p),affected:R(e),self:this}}updateWithShallowTransfer(i,a=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"update-with-shallow-transfer"))){if(this.metaSync(i,a),this.version=i.version,this.createdAt=i.createdAt,this.author=i.author,this.deleted=i.deleted,this.previousVersion=i.previousVersion,this.unsubscribeFromDependencies(),i.parent){const o=J(i.parent),p=this.project.get(o),e=this.parent;if(e&&e.id!==(p==null?void 0:p.id)&&this.removeFromParent(a),p)this.setParent(p,a);else throw a==null||a.attemptAutoclose("update-with-shallow-transfer",this.id),new Error(`${this.type} with id '${this.id}' has a 'parent' reference '${o}' that isn't found in the project`)}else throw a==null||a.attemptAutoclose("update-with-shallow-transfer",this.id),new Error(`${this.type} with id '${this.id}' must have a 'parent'`);return i.extends.forEach(o=>{const p=J(o),e=this.project.get(p);e&&this.addExtension(e)}),i.implements.forEach(o=>{const p=J(o),e=this.project.get(p);e&&this.addImplementation(e)}),this.captureVersion(),this.subscribeToDependencies(),a==null||a.attemptAutoclose("update-with-shallow-transfer",this.id),this}hydrateAncestors(){const i=[],a=[],o=[],p=[];if(this.initialData.parent){const e=J(this.initialData.parent),y=this.project.get(e);if(y)this.setParent(y,null),i.push(y);else throw new Error(`${this.type} with id '${this.id}' has a 'parent' reference '${e}' that isn't found in the project`)}else throw new Error(`${this.type} with id '${this.id}' must have a 'parent'`);return this.initialData.extends.forEach(e=>{const y=J(e),v=this.project.get(y);v&&(this.addExtension(v),v.type!==f.BuiltInBaseEntity&&i.push(v))}),this.initialData.implements.forEach(e=>{const y=J(e),v=this.project.get(y);v&&(this.addImplementation(v),v.type!==f.BuiltInBaseEntity&&i.push(v))}),{updated:R(i),added:R(a),removed:R(o),affected:R(p),self:this}}afterAllChildrenInitialized(i=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"after-all-children-initialized"))){const a=[],o=[],p=[],e=[];this.initialized=!0;const{updated:y,added:v,removed:E,affected:w}=this.syncImplementationProperties(i);a.push(...y),o.push(...v),p.push(...E),e.push(...w);const{updated:A,added:$,removed:V,affected:U}=this.addExtendedProperties(i);a.push(...A),o.push(...$),p.push(...V),e.push(...U);const{updated:G,added:K,removed:Z}=this.removeUnrecognizedProperties(i);a.push(...G),o.push(...K),p.push(...Z);const{updated:ie,added:X,removed:ue,affected:re}=this.syncImplementationMethods(i);a.push(...ie),o.push(...X),p.push(...ue),e.push(...re);const{updated:fe,added:Y,removed:H,affected:ce}=this.addExtendedMethods(i);a.push(...fe),o.push(...Y),p.push(...H),e.push(...ce);const{updated:z,added:oe,removed:we}=this.removeUnrecognizedMethods(i);return a.push(...z),o.push(...oe),p.push(...we),this.addSuggestions(),this.captureVersion(),i==null||i.attemptAutoclose("after-all-children-initialized",this.id),{updated:R(a),added:R(o),removed:R(p),affected:R(e),self:this}}addSelfToProject(i=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"add-self-to-project"))){const a=[this],o=[],p=[],e=[];if(this.parent.type===f.DataType){const y=this.parent;y.entity=this,a.push(y)}else this.project.addDefinitionEntity(this);return this.subscribe(),this.subscribeToDependencies(),i==null||i.attemptAutoclose("add-self-to-project",this.id),{updated:R(a),added:R(o),removed:R(p),affected:R(e),self:this}}setParent(i,a=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"set-parent"))){var o;return((o=this.parent)==null?void 0:o.id)!==(i==null?void 0:i.id)&&(this.parent=i,a&&(a==null||a.add(this,S.Updated))),a==null||a.attemptAutoclose("set-parent",this.id),this}addExtension(i){return this.extends.includes(i)||this.extends.push(i),this}removeExtension(i){return this.extends=this.extends.filter(a=>a.id!==i.id),this}addImplementation(i){return this.implements.includes(i)||this.implements.push(i),this}removeImplementation(i){return this.implements=this.implements.filter(a=>a.id!==i.id),this}removeProperty(i){return this.properties=this.properties.filter(a=>a.id!==i.id),this}addMethod(i){return this.methods.includes(i)||(this.methods.push(i),this.suggestedMethods=this.suggestedMethods.filter(a=>a.name!==i.name)),this}removeMethod(i){return this.methods=this.methods.filter(a=>a.id!==i.id),this}addProperty(i){return this.properties.includes(i)||(this.properties.push(i),this.suggestedProperties=this.suggestedProperties.filter(a=>a.name!==i.name)),this}addSuggestedProperty(i){return this.suggestedProperties.includes(i)||this.suggestedProperties.push(i),this}addSuggestedMethod(i){return this.suggestedMethods.includes(i)||this.suggestedMethods.push(i),this}removeSuggestedProperty(i){return this.suggestedProperties=this.suggestedProperties.filter(a=>a.id!==i.id),this}removeSuggestedMethod(i){return this.suggestedMethods=this.suggestedMethods.filter(a=>a.id!==i.id),this}addAbstractMethod(i){return this.abstractMethods.includes(i)||this.abstractMethods.push(i),this}removeAbstractMethod(i){return this.abstractMethods=this.abstractMethods.filter(a=>a.id!==i.id),this}initChildren(i=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"init-children"))){return this.initialized||this.startedInitialization?this:(this.startedInitialization=!0,this.properties=this.initialData.properties.map(a=>{const o=te(a,this.project);return o.setParent(this,null),o.initChildren(i),o}),this.methods=this.initialData.methods.map(a=>{const o=te(a,this.project);return o.setParent(this,null),o.initChildren(i),o}),this.abstractMethods=this.initialData.abstractMethods.map(a=>{const o=te(a,this.project);return o.setParent(this,null),o.initChildren(i),o}),this.extends=this.initialData.extends.map(a=>te(a,this.project)),this.implements=this.initialData.implements.map(a=>te(a,this.project)),this.subscribeToDependencies(),this.afterAllChildrenInitialized(i),i==null||i.attemptAutoclose("init-children",this.id),this)}removeUnrecognizedProperties(i=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"remove-unrecognized-properties"))){const a=[],o=[],p=[],e=[];let y=[...this.properties];y=y.filter(E=>E.parent.id===this.id),y=y.filter(E=>!E.isExtendedProperty);const v=this.implementedPropertiesFromOriginalParents;return y=y.filter(E=>this.interactive&&!E.implements?!1:!v.find(w=>{var A;return w.id===((A=E.implements)==null?void 0:A.id)})),y.forEach(E=>{const w=E.remove({ignoreUpstream:!1},i);p.push(...w.removed),a.push(...w.updated)}),i==null||i.attemptAutoclose("remove-unrecognized-properties",this.id),{updated:R(a),added:R(o),removed:R(p),affected:R(e),self:this}}removeUnrecognizedMethods(i=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"remove-unrecognized-methods"))){const a=[],o=[],p=[],e=[];let y=[...this.methods];y=y.filter(E=>E.parent.id===this.id),y=y.filter(E=>!E.isExtendedMethod);const v=this.implementedMethodsFromOriginalParents;return y=y.filter(E=>this.interactive&&!E.implements?!1:!v.find(w=>{var A;return w.id===((A=E.implements)==null?void 0:A.id)})),y.forEach(E=>{const w=E.remove({ignoreUpstream:!1},i);p.push(...w.removed),a.push(...w.updated)}),i==null||i.attemptAutoclose("remove-unrecognized-methods",this.id),{updated:R(a),added:R(o),removed:R(p),affected:R(e),self:this}}syncImplementationMethods(i=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"sync-implementation-methods"))){const a=[],o=[],p=[],e=[],y=this.methods,v=this.implementedMethodsFromOriginalParents,E=[...this.allBaseMethodsFromExtendedAndImplementedEntities,...y];return v.filter(A=>!E.find(V=>{var U;return((U=V.implements)==null?void 0:U.id)===A.id})).forEach(A=>{if(this.methods.find(G=>{var K;return((K=G.implements)==null?void 0:K.id)===A.id}))return;const V=this.methods.find(G=>{var ue,re;if(G.name===A.name&&!G.implements)return!0;const K=As(this,Ue.CRON_JOB),Z=As(this,Ue.HTTP_ENDPOINT),ie=((ue=G.implements)==null?void 0:ue.id)===Ee["built-in-base-entity"].BUILT_IN_HTTP_ENDPOINT_ENTITY.methods.handler.id,X=((re=G.implements)==null?void 0:re.id)===Ee["built-in-base-entity"].BUILT_IN_CRON_JOB_ENTITY.methods.handler.id;return!!(K&&!X&&!Z&&ie||Z&&!ie&&!K&&X)});if(V&&V.type===f.FunctionDeclaration){V.setImplements(A,i),V.metaSync({name:A.name},i),i==null||i.add(V,S.Updated),i==null||i.add(this,S.Updated);return}const U=A.implementAsFunctionDeclaration(i,this);o.push(U),i==null||i.add(U,S.Added),this.addMethod(U)}),i==null||i.attemptAutoclose("sync-implementation-methods",this.id),{updated:R(a),added:R(o),removed:R(p),affected:R(e),self:this}}syncImplementationProperties(i=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"sync-implementation-properties"))){const a=[],o=[],p=[],e=[],y=this.properties,v=this.implementedPropertiesFromOriginalParents,E=[...this.allBasePropertiesFromExtendedAndImplementedEntities,...y];return v.filter(A=>!E.find(V=>{var U;return((U=V.implements)==null?void 0:U.id)===A.id})).forEach(A=>{if(this.properties.find(G=>{var K;return((K=G.implements)==null?void 0:K.id)===A.id}))return;const V=this.properties.find(G=>G.name===A.name&&!!G.abstract&&!G.implements);if(V){V.setImplements(A,i),V.metaSync({abstract:!1},i),V.afterAllChildrenInitialized(i);return}const U=A.implement(this,i,N.UUID.uuid());o.push(U),i==null||i.add(U,S.Added)}),i==null||i.attemptAutoclose("sync-implementation-properties",this.id),{updated:R(a),added:R(o),removed:R(p),affected:R(e),self:this}}addExtendedMethods(i=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"add-extended-methods"))){const a=[],o=[],p=[],e=[],y=this.methods,E=this.extendedMethodsFromOriginalParents.filter(A=>A.type===f.FunctionDeclaration),w=new Set(y.filter(A=>{var $;return!!(($=A.extends)!=null&&$.id)}).map(A=>A.extends.id));return E.forEach(A=>{if(w.has(A.id))return;w.add(A.id);const $=A.clone(i,this,N.UUID.uuid());$.setExtends(A,i),$.initChildren(i),o.push($),i==null||i.add($,S.Added),this.addMethod($)}),i==null||i.attemptAutoclose("add-extended-methods",this.id),{updated:R(a),added:R(o),removed:R(p),affected:R(e),self:this}}addExtendedProperties(i=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"add-extended-properties"))){const a=[],o=[],p=[],e=[],y=this.properties,v=this.extendedPropertiesFromOriginalParents,E=v.filter(A=>v.find(V=>{var U;return((U=V.implements)==null?void 0:U.id)===A.id})?!1:!A.abstract),w=new Set(y.filter(A=>{var $;return!!(($=A.extends)!=null&&$.id)}).map(A=>A.extends.id));return E.forEach(A=>{if(w.has(A.id))return;w.add(A.id);const $=A.clone(i,this,N.UUID.uuid());$.setExtends(A,i),$.initChildren(i),o.push($),i==null||i.add($,S.Added),this.addProperty($)}),i==null||i.attemptAutoclose("add-extended-properties",this.id),{updated:R(a),added:R(o),removed:R(p),affected:R(e),self:this}}addSuggestions(){return this.implements.forEach(i=>{GS(this,i).forEach(p=>{const e=p.toJSON();e.id=`_suggestion--parent--${this.id}--${p.id}`;const y=te(e,this.project);y.suggestion=!0,y.setParent(this,null),y.initChildren(null),this.addSuggestedProperty(y)}),SS(this,i).forEach(p=>{const e=`_suggestion--parent--${this.id}--${p.id}`,y=p.implementAsFunctionDeclaration(null,this,e),v=te(y,this.project);if(v.suggestion=!0,v.setParent(this,null),v.initChildren(null),this.methods=this.methods.filter(E=>E.id!==e),v.inputs.forEach(E=>{E.suggestion=!0}),v.returnStatements.length){const E=v.returnStatements[0];E.suggestion=!0,E.outputs.forEach(w=>{w.suggestion=!0})}this.addSuggestedMethod(v)})}),this}subscribe(){return this.activeVersion=!0,this.project.subscribeInstance(this),this}unsubscribe(){return this.project.unsubscribeInstance(this),this}metaSync(i,a=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"meta-sync"))){const o=Ur(this,i),p=this.toMeta();return this.name=i.name!==void 0?i.name:p.name,this.codeName=i.codeName!==void 0?i.codeName:p.codeName,this.description=i.description!==void 0?i.description:p.description,this.x=i.x||p.x,this.y=i.y||p.y,this.static=i.static!==void 0?i.static:this.static,this.abstract=i.abstract!==void 0?i.abstract:this.abstract,super.metaSync(i),i.deleted===!0&&!p.deleted?a==null||a.add(this,S.Removed):i.deleted===!1&&p.deleted?a==null||a.add(this,S.Added):o&&(a==null||a.add(this,S.Updated)),a==null||a.attemptAutoclose("meta-sync",this.id),this}async APILoad(i=ve,...a){return await qt.repository.APILoad(this.id,...a),this}async APICreate(i=ve,...a){return await qt.repository.APICreate(this.toShallowJSON(),...a),this}async APIUpdate(i=ve,...a){return await qt.repository.APIUpdate(this.toShallowJSON(),...a),this}async APIDelete(i=ve,...a){return await qt.repository.APIDelete(this.toShallowJSON(),...a),this}async APIClone(i=ve,...a){return await qt.repository.APIClone(this.id,...a),this}async APILoadVersion(i=ve,a,...o){return await qt.repository.APILoadVersion(this.id,a,...o)}removeFromParent(i=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"remove-from-parent"))){const a=[],o=[],p=[],e=[];if(this.parent.type===f.Project)this.parent.removeDefinitionEntity(this);else if(this.parent.type===f.DataType&&this.parent.entity&&this.parent.entity.id===this.id){const y=this.parent.setEntity(null,i);a.push(y)}return i==null||i.attemptAutoclose("remove-from-parent",this.id),{added:R(p),updated:R(a),removed:R(o),affected:R(e),self:this}}remove({ignoreUpstream:i}={ignoreUpstream:!1},a=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"remove-entity"))){const o=[],p=[],e=[],y=[];if(a!=null&&a.hasRemoved(this.id))return a==null||a.attemptAutoclose("remove-entity",this.id),{added:[],updated:[],removed:[],affected:[],self:this};if(p.push(this),this.unsubscribe(),this.unsubscribeFromDependencies(),this.project.subscribeDeletedInstance(this),this.metaSync({deleted:!0},a),Object.values(this.detachedDependents).forEach(v=>{const{updated:E,removed:w,added:A}=v.entity.onDetachedDependencyRemoved(this,v.field,a);o.push(...E),p.push(...w),e.push(...A)}),this.properties.forEach(v=>{const{updated:E,removed:w}=v.remove({ignoreUpstream:!0},a);o.push(...E),p.push(...w)}),this.methods.forEach(v=>{const{updated:E,removed:w}=v.remove({ignoreUpstream:!0},a);o.push(...E),p.push(...w)}),this.abstractMethods.forEach(v=>{const{updated:E,removed:w}=v.remove({ignoreUpstream:!0},a);o.push(...E),p.push(...w)}),this.suggestedProperties.forEach(v=>{const{updated:E,removed:w}=v.remove({ignoreUpstream:!0},a);o.push(...E),p.push(...w)}),this.suggestedMethods.forEach(v=>{const{updated:E,removed:w}=v.remove({ignoreUpstream:!0},a);o.push(...E),p.push(...w)}),!i){const v=this.removeFromParent(a);e.push(...v.added),o.push(...v.updated),p.push(...v.removed),y.push(...v.affected)}return a==null||a.attemptAutoclose("remove-entity",this.id),{added:R(e),updated:R(o),removed:R(p),affected:R(y),self:this}}restore({}={},i=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"restore-entity"))){const a=[],o=[],p=[],e=[];return i!=null&&i.hasAdded(this.id)?(i==null||i.attemptAutoclose("restore-entity",this.id),{added:[],updated:[],removed:[],affected:[],self:this}):(this.subscribe(),this.project.unsubscribeDeletedInstance(this),this.metaSync({deleted:!1},i),Object.values(this.detachedDependents).forEach(y=>{const{updated:v,removed:E,added:w}=y.entity.onDetachedDependencyRestored(this,y.field,i);o.push(...v),p.push(...E),a.push(...w)}),this.properties.forEach(y=>{const{updated:v}=y.restore({},i);o.push(...v)}),this.methods.forEach(y=>{const{updated:v}=y.restore({},i);o.push(...v)}),this.abstractMethods.forEach(y=>{const{updated:v}=y.restore({},i);o.push(...v)}),this.suggestedProperties.forEach(y=>{const{updated:v}=y.restore({},i);o.push(...v)}),this.suggestedMethods.forEach(y=>{const{updated:v}=y.restore({},i);o.push(...v)}),i==null||i.attemptAutoclose("restore-entity",this.id),{added:R(a),updated:R(o),removed:R(p),affected:R(e),self:this})}toFlat(i=new Set){return i.has(this.id)?[]:(i.add(this.id),[this,...this.extends.flatMap(o=>o.toFlat(i)),...this.implements.flatMap(o=>o.toFlat(i)),...this.properties.flatMap(o=>o.toFlat(i)),...this.methods.flatMap(o=>o.toFlat(i)),...this.abstractMethods.flatMap(o=>o.toFlat(i)),...this.parent.toFlat(i)])}toFlatIds(i=new Set){return i.has(this.id)?[]:(i.add(this.id),[this.id,...this.extends.flatMap(o=>o.toFlatIds(i)),...this.implements.flatMap(o=>o.toFlatIds(i)),...this.properties.flatMap(o=>o.toFlatIds(i)),...this.methods.flatMap(o=>o.toFlatIds(i)),...this.abstractMethods.flatMap(o=>o.toFlatIds(i)),...this.parent.toFlatIds(i)])}toMeta(){return{id:this.id,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,codeName:this.codeName,description:this.description,static:this.static,abstract:this.abstract,x:this.x,y:this.y,type:this.type,name:this.name}}toJSON(i=new Set){return i.has(this.id)?this.toReference():(i.add(this.id),{id:this.id,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,type:this.type,name:this.name,codeName:this.codeName,description:this.description,x:this.x,y:this.y,static:this.static,abstract:this.abstract,properties:this.properties.map(a=>a.toJSON(i)),methods:this.methods.map(a=>a.toJSON(i)),abstractMethods:this.abstractMethods.map(a=>a.toJSON(i)),implements:this.implements.map(a=>a.toJSON(i)),extends:this.extends.map(a=>a.toJSON(i)),parent:this.parent.toReference()})}toJSONClone(i=ke){var o,p,e,y,v;let a;return(o=i.seenEntityMaps)!=null&&o.has(this.id)?a=i.seenEntityMaps.get(this.id):(a=i.newId||Gr(this,this.project,i.uuidStrategy),i.seenEntityMaps&&i.seenEntityMaps.set(this.id,a)),(p=i.seenEntities)!=null&&p.has(a)||(e=i.seenEntities)!=null&&e.has(this.id)?this.toReference({seenEntityMaps:i.seenEntityMaps}):((y=i.seenEntities)==null||y.add(a),(v=i.seenEntities)==null||v.add(this.id),{id:a,version:N.UUID.uuid(),createdAt:i.timestamp||L().toISOString(),author:N.sessionAuthor,previousVersion:null,deleted:!1,type:this.type,name:this.name,codeName:this.codeName,description:this.description,x:this.x,y:this.y,static:this.static,abstract:this.abstract,properties:this.properties.map(E=>E.toJSONClone({...i,newId:null})),methods:this.methods.map(E=>E.toJSONClone({...i,newId:null})),abstractMethods:this.abstractMethods.map(E=>E.toJSONClone({...i,newId:null})),implements:this.implements.map(E=>E.type===f.BuiltInBaseEntity?E.toJSON():E.toJSONClone({...i,newId:null})),extends:this.extends.map(E=>E.type===f.BuiltInBaseEntity?E.toJSON():E.toJSONClone({...i,newId:null})),parent:this.parent.toReference({seenEntityMaps:i.seenEntityMaps})})}toReference(i=ke){var o;let a=this.id;return(o=i.seenEntityMaps)!=null&&o.has(this.id)&&(a=i.seenEntityMaps.get(this.id)),{id:a+"--"+N.UUID.uuid()+"--ref",type:f.GenericReference,entityId:a,version:this.version,entityType:this.type}}toShallowJSON(i=ke){var o;let a=this.id;return(o=i.seenEntityMaps)!=null&&o.has(this.id)&&(a=i.seenEntityMaps.get(this.id)),{id:a,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,name:this.name,codeName:this.codeName,description:this.description,type:this.type,x:this.x,y:this.y,static:this.static,abstract:this.abstract,properties:this.properties.map(p=>p.toReference(i)),methods:this.methods.map(p=>p.toReference(i)),abstractMethods:this.abstractMethods.map(p=>p.toReference(i)),implements:this.implements.map(p=>p.toReference(i)),extends:this.extends.map(p=>p.toReference(i)),parent:this.parent.toReference(i)}}toFlatJSON(i=new Set){return i.has(this.id)?[]:(i.add(this.id),[this.toShallowJSON(),...this.properties.flatMap(o=>o.toFlatJSON(i)),...this.methods.flatMap(o=>o.toFlatJSON(i)),...this.abstractMethods.flatMap(o=>o.toFlatJSON(i)),...this.implements.flatMap(o=>o.toFlatJSON(i)),...this.extends.flatMap(o=>o.toFlatJSON(i)),...this.parent.toFlatJSON(i)])}toGenerationTarget(){const i=this.parent.type===f.Project?void 0:this.parent.id;return{id:this.id,name:this.name,description:this.description,type:this.type,static:this.static,abstract:this.abstract,extends:this.extends.map(a=>a.id),implements:this.implements.map(a=>a.id),parent:i}}toFlatGenerationTarget(i=new Set){return i.has(this.id)?[]:(i.add(this.id),[this.toGenerationTarget(),...this.properties.flatMap(o=>o.toFlatGenerationTarget(i)),...this.methods.flatMap(o=>o.toFlatGenerationTarget(i)),...this.abstractMethods.flatMap(o=>o.toFlatGenerationTarget(i)),...this.implements.filter(o=>o.type===f.DefinitionEntity).flatMap(o=>o.toFlatGenerationTarget(i)),...this.implements.filter(o=>o.type===f.DefinitionEntity).flatMap(o=>o.toFlatGenerationTarget(i)),...this.parent.toFlatGenerationTarget(i)])}clearErrors(){return this.errors=[],this.properties.forEach(i=>i.clearErrors()),this.methods.forEach(i=>i.clearErrors()),this.abstractMethods.forEach(i=>i.clearErrors()),this}validate(){return this.errors=FS(this),{success:!0}}getErrors(){return[...this.errors,...this.properties.flatMap(a=>a.getErrors()),...this.methods.flatMap(a=>a.getErrors()),...this.abstractMethods.flatMap(a=>a.getErrors())]}getShallowErrors(){return this.errors}clone(i=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"clone-entity")),a=null,o=null,p=!0){var G,K,Z;let e=Fr(a,this);const y=this.toJSON(),v=o||N.UUID.uuid();y.properties=[],y.methods=[],y.abstractMethods=[];const E=v.split("-id"),w=E[E.length-1||0]||v;y.id=v,y.version=N.UUID.uuid(),y.createdAt=(i==null?void 0:i.timestamp)||L().toISOString(),y.author=(i==null?void 0:i.author)||"1",y.previousVersion=null,y.deleted=!1;const A=lr(y,e);a&&A.setParent(a,null),p&&A.subscribe(),A.initChildren(i),i==null||i.add(A,S.Added);const $=(G=this.properties)==null?void 0:G.map(ie=>ie.clone(i,A,N.UUID.uuid(),p));A.properties=$;const V=(K=this.methods)==null?void 0:K.map((ie,X)=>ie.clone(i,A,w+"-method-"+X+"-id",p));A.methods=V;const U=(Z=this.abstractMethods)==null?void 0:Z.map((ie,X)=>ie.clone(i,A,w+"-abstract-method-"+X+"-id",p));return A.abstractMethods=U,i==null||i.attemptAutoclose("clone-entity",this.id),A}getFunctionDeclaration(i){return this.methods.find(a=>a.id===i)}implement(i,a=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"implement-definition-entity")),o){const p=wm(this,i,a,o);return a==null||a.attemptAutoclose("implement-definition-entity",this.id),p}getAllInteractiveMethods(){const i=this.implements.filter(o=>o.type===f.DefinitionEntity||o.type===f.BuiltInBaseEntity&&o.interactive);return R([...this.methods,...this.extends.flatMap(o=>o.getAllInteractiveMethods()),...i.flatMap(o=>o.getAllInteractiveMethods())])}inferFromInputs(i,a=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"infer-definition-entity-from-inputs"))){const o=[],p=[],e=[],y=[];if(this.parent.type!==f.DataType||!this.parent.inferred)return a==null||a.attemptAutoclose("infer-definition-entity-from-inputs",this.id),{added:[],updated:[],removed:[],affected:[],self:this};const v=[];i.forEach(A=>{v.find(V=>ne(V,this.project)===ne(A,this.project))||v.push(A)});const E=this.properties.filter(A=>!A.dataType);v.forEach(A=>{var ie,X,ue;const $=E.find(re=>ne(re,this.project)===ne(A,this.project));if(!$)return;const U=Vi(A.parent).getMasterInputWithValueWritterFromAllInstances(A),G=yn(U,a),K=G==null?void 0:G.clone(a,$,N.UUID.uuid(),!0);K&&((ie=$.dataType)==null||ie.merge(K,a),K.id!==((X=$.dataType)==null?void 0:X.id)&&K.remove({ignoreUpstream:!1},a),$.dataType&&($.dataType.metaSync({inferred:!0,like:!0},a),$.setDataType($.dataType,a),a==null||a.add($,S.Affected)));let Z=null;if(A.declaration&&$.id!==((ue=A.declaration)==null?void 0:ue.id)&&(Z=A.declaration),A.setDeclaration($,a),a==null||a.add(A,S.Updated),Z){const{updated:re,removed:fe}=Z.remove({ignoreUpstream:!1},a);p.push(...re),e.push(...fe)}});const w=[];return v.forEach(A=>{if(!A.declaration){w.push(A);return}}),w.length===0?(a==null||a.attemptAutoclose("infer-definition-entity-from-inputs",this.id),{added:[],updated:[],removed:[],affected:[],self:this}):(w.forEach(A=>{var X,ue,re,fe;const $=this.properties.find(Y=>ne(Y,this.project)===ne(A,this.project));if($){if(A.setDeclaration($,a),!$.getDataType(a)){const H=Vi(A.parent).getMasterInputWithValueWritterFromAllInstances(A),ce=yn(H),z=ce==null?void 0:ce.clone(a,$,N.UUID.uuid(),!0);z&&((X=$.dataType)==null||X.merge(z,a),z.id!==((ue=$.dataType)==null?void 0:ue.id)&&z.remove({ignoreUpstream:!1},a),$.dataType&&($.dataType.metaSync({inferred:!0,like:!0},a),$.setDataType($.dataType,a),a==null||a.add($,S.Affected)))}return}const V=ta.new(a);V.parent=this.toReference(),V.index=A.index,V.name=ne(A,this.project),V.codeName=A.codeName,V.description=A.description;const U=te(V,this.project);U.hydrateAncestors(),a==null||a.add(U,S.Added),U.setParent(this,a),U.initChildren(a);const K=Vi(A.parent).getMasterInputWithValueWritterFromAllInstances(A),Z=yn(K),ie=Z==null?void 0:Z.clone(a,U,N.UUID.uuid(),!0);return ie&&((re=U.dataType)==null||re.merge(ie,a),ie.id!==((fe=U.dataType)==null?void 0:fe.id)&&ie.remove({ignoreUpstream:!1},a),U.dataType&&(U.dataType.metaSync({inferred:!0,like:!0},a),U.setDataType(U.dataType,a),a==null||a.add(U,S.Affected))),this.addProperty(U),A.setDeclaration(U,a),a==null||a.add(A,S.Updated),U}),a==null||a.attemptAutoclose("infer-definition-entity-from-inputs",this.id),{added:R(o),updated:R(p),removed:R(e),affected:R(y),self:this})}getRawDefaultValue(){const i={};return this.properties.forEach(a=>{var p;if(!Zb(a))return;const o=jr(a.name);i[o]=((p=a.getDefaultValue())==null?void 0:p.value)||null}),i}getActiveRawDefaultValue(){const i={};return this.properties.forEach(a=>{var e;if(!Zb(a))return;const o=jr(a.name),p=(e=this.project.requestActiveDynamicValue(a))==null?void 0:e.value;i[o]=(p==null?void 0:p.value)||null}),i}};g(qt,"repository",{APICreate:async(i,...a)=>i,APIUpdate:async(i,...a)=>i,APIDelete:async(i,...a)=>i,APIClone:async(i,...a)=>{},APILoad:async(i,...a)=>null,APILoadVersion:async(i,a,...o)=>null}),g(qt,"type",f.DefinitionEntity),g(qt,"USER_MANAGED_PARENT_TYPES",[f.Project,f.DataType]),g(qt,"PARENT_TYPES",[...qt.USER_MANAGED_PARENT_TYPES]),g(qt,"MUTABLE_BASE_PROPERTIES",["name","codeName","description","static","abstract"]),g(qt,"INMUTABLE_BASE_PROPERTIES",["id","type","version","createdAt","author","previousVersion"]),g(qt,"BASE_PROPERTIES",[...qt.MUTABLE_BASE_PROPERTIES,...qt.INMUTABLE_BASE_PROPERTIES]),g(qt,"MUTABLE_META_PROPERTIES",[...qt.MUTABLE_BASE_PROPERTIES,"x","y"]),g(qt,"INMUTABLE_META_PROPERTIES",[...qt.INMUTABLE_BASE_PROPERTIES]),g(qt,"META_PROPERTIES",[...qt.MUTABLE_META_PROPERTIES,...qt.INMUTABLE_META_PROPERTIES]),g(qt,"MUTABLE_UPSTREAM_PROPERTIES",["extends","implements"]),g(qt,"INMUTABLE_UPSTREAM_PROPERTIES",["parent"]),g(qt,"UPSTREAM_PROPERTIES",[...qt.MUTABLE_UPSTREAM_PROPERTIES,...qt.INMUTABLE_UPSTREAM_PROPERTIES]),g(qt,"MUTABLE_DOWNSTREAM_PROPERTIES",["properties","methods","abstractMethods"]),g(qt,"INMUTABLE_DOWNSTREAM_PROPERTIES",[]),g(qt,"DOWNSTREAM_PROPERTIES",[...qt.MUTABLE_DOWNSTREAM_PROPERTIES,...qt.INMUTABLE_DOWNSTREAM_PROPERTIES]),g(qt,"PROPERTIES",[...qt.META_PROPERTIES,...qt.UPSTREAM_PROPERTIES,...qt.DOWNSTREAM_PROPERTIES]);let ra=qt;function MAe(d){const u=Ehe(),i=d.toJSON();u.safeParse(i).success;const o=[];return vr(d.errors,o)}const pf=class pf extends Nr{constructor(i,a){super(i);g(this,"initialData");g(this,"id");g(this,"version");g(this,"name");g(this,"description",null);g(this,"type",f.BuiltInBaseEntity);g(this,"abstract",!1);g(this,"static");g(this,"properties",[]);g(this,"methods",[]);g(this,"abstractMethods",[]);g(this,"extends",[]);g(this,"interactive",!1);g(this,"errors",[]);g(this,"project");this.initialData=this.initialData||i,this.project=this.project||a,this.id=this.id||i.id,this.version=this.version||i.version,this.name=this.name||i.name,this.static=this.static||i.static,this.interactive=this.interactive||i.interactive,this.abstract=i.abstract,this.properties=this.initialData.properties.map(o=>{const p=te(o,this.project);return p.setParent(this,null),p.initChildren(null),p}),this.methods=this.initialData.methods.map(o=>{const p=te(o,this.project);return p.setParent(this,null),p.initChildren(null),p}),this.abstractMethods=this.initialData.abstractMethods.map(o=>{const p=te(o,this.project);return p.setParent(this,null),p.initChildren(null),p}),this.extends=this.initialData.extends.map(o=>te(o,this.project))}get allMethods(){return R([...this.ownDeclaredMethods,...this.allBaseMethodsFromOriginalParents])}get allProperties(){return R([...this.ownDeclaredProperties,...this.allBasePropertiesFromOriginalParents])}get allBaseMethodsFromOriginalParents(){return R([...this.extends.flatMap(i=>i.allMethods,[])])}get allBasePropertiesFromOriginalParents(){return R([...this.extends.flatMap(i=>i.allProperties,[])])}get allBasePropertiesFromExtendedAndImplementedEntities(){return R(this.extends.reduce((i,a)=>{const o=[...a.ownDeclaredProperties,...a.allBasePropertiesFromExtendedAndImplementedEntities].filter(p=>!p.abstract);return[...i,...o]},[]))}get extendedPropertiesFromOriginalParents(){return R(this.extends.reduce((i,a)=>{const o=[...a.ownDeclaredProperties,...a.extendedPropertiesFromOriginalParents].filter(p=>!p.abstract);return[...i,...o]},[]))}get implementedPropertiesFromOriginalParents(){return R([...this.extends.reduce((i,a)=>{const o=a.implementedPropertiesFromOriginalParents,p=[...a.ownDeclaredProperties].filter(e=>!!e.abstract&&!o.find(y=>y.name===e.name));return[...o,...p,...i]},[])])}get extendedProperties(){return this.properties.filter(i=>i.isExtendedProperty)}get ownDeclaredMethods(){return this.methods.filter(i=>!i.isExtendedMethod)}get ownDeclaredProperties(){return this.properties.filter(i=>!i.isExtendedProperty)}subscribe(){return this.project.subscribeInstance(this),this}unsubscribe(){return this.project.unsubscribeInstance(this),this}async APILoad(i=ve,...a){return await pf.repository.APILoad(this.id,...a),this}toFlat(i=new Set){return i.has(this.id)?[]:(i.add(this.id),[this,...this.properties.flatMap(o=>o.toFlat(i)),...this.methods.flatMap(o=>o.toFlat(i)),...this.abstractMethods.flatMap(o=>o.toFlat(i)),...this.extends.flatMap(o=>o.toFlat(i))])}toFlatIds(i=new Set){return i.has(this.id)?[]:(i.add(this.id),[this.id,...this.properties.flatMap(o=>o.toFlatIds(i)),...this.methods.flatMap(o=>o.toFlatIds(i)),...this.abstractMethods.flatMap(o=>o.toFlatIds(i)),...this.extends.flatMap(o=>o.toFlatIds(i))])}toMeta(){return{id:this.id,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,description:this.description,interactive:this.interactive,abstract:this.abstract,static:this.static,type:this.type,name:this.name}}toJSON(i=new Set){return i.has(this.id)?this.toReference():(i.add(this.id),{id:this.id,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,type:this.type,name:this.name,description:this.description,abstract:this.abstract,static:this.static,interactive:this.interactive,properties:this.properties.map(a=>a.toJSON(i)),methods:this.methods.map(a=>a.toJSON(i)),abstractMethods:this.abstractMethods.map(a=>a.toJSON(i)),extends:this.extends.map(a=>a.toJSON(i))})}toReference(i=ke){return{id:this.id+"--"+N.UUID.uuid()+"--ref",type:f.GenericReference,entityId:this.id,version:this.version,entityType:this.type}}toShallowJSON(i=ke){return{id:this.id,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,type:this.type,name:this.name,description:this.description,abstract:this.abstract,static:this.static,interactive:this.interactive,properties:this.properties.map(a=>a.toReference()),methods:this.methods.map(a=>a.toReference()),abstractMethods:this.abstractMethods.map(a=>a.toReference()),extends:this.extends.map(a=>a.toReference())}}toFlatJSON(i=new Set){return i.has(this.id)?[]:(i.add(this.id),[this.toShallowJSON(),...this.properties.flatMap(o=>o.toFlatJSON(i)),...this.methods.flatMap(o=>o.toFlatJSON(i)),...this.abstractMethods.flatMap(o=>o.toFlatJSON(i))])}toGenerationTarget(){return{id:this.id,type:this.type,name:this.name,description:this.description,static:this.static,abstract:this.abstract,interactive:this.interactive,extends:this.extends.map(i=>i.id)}}toFlatGenerationTarget(i=new Set){return i.has(this.id)?[]:(i.add(this.id),[this.toGenerationTarget(),...this.properties.flatMap(o=>o.toFlatGenerationTarget(i)),...this.methods.flatMap(o=>o.toFlatGenerationTarget(i)),...this.abstractMethods.flatMap(o=>o.toFlatGenerationTarget(i))])}clearErrors(){return this.errors=[],this.properties.forEach(i=>i.clearErrors()),this.methods.forEach(i=>i.clearErrors()),this.abstractMethods.forEach(i=>i.clearErrors()),this}validate(){const i=MAe(this);return this.errors=i,{success:!0}}getErrors(){return[...this.errors,...this.properties.flatMap(a=>a.getErrors()),...this.methods.flatMap(a=>a.getErrors()),...this.abstractMethods.flatMap(a=>a.getErrors())]}getShallowErrors(){return this.errors}implement(i,a=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),null,!0,"implement-built-in-base-entity")),o){const p=wm(this,i,a,o);return a==null||a.attemptAutoclose("implement-built-in-base-entity",this.id),p}getAllInteractiveMethods(){const i=[];return this.interactive&&(i.push(...this.methods),this.extends.filter(o=>o.type===f.BuiltInBaseEntity&&o.interactive||o.type===f.PrimitiveEntity).forEach(o=>{o instanceof pf&&i.push(...o.getAllInteractiveMethods())})),R(i)}};g(pf,"repository",{APILoad:async(i,...a)=>null});let ia=pf;function BAe(d){const u=dhe(),i=d.toJSON();u.safeParse(i).success;const o=[];return vr(d.errors,o)}const qm=class qm extends Nr{constructor(i,a){super(i);g(this,"initialData");g(this,"id");g(this,"name");g(this,"description",null);g(this,"type",f.PrimitiveEntity);g(this,"static");g(this,"abstract");g(this,"properties",[]);g(this,"methods",[]);g(this,"abstractMethods",[]);g(this,"extends",[]);g(this,"errors",[]);g(this,"project");this.initialData=i,this.project=a,this.id=i.id,this.name=i.name,this.static=i.static,this.abstract=i.abstract,this.properties=this.initialData.properties.map(o=>{const p=te(o,this.project);return p.setParent(this,null),p.initChildren(null),p}),this.methods=this.initialData.methods.map(o=>{const p=te(o,this.project);return p.parent=this,p}),this.abstractMethods=this.initialData.abstractMethods.map(o=>{const p=te(o,this.project);return p.parent=this,p})}get allMethods(){return R([...this.ownDeclaredMethods,...this.allBaseMethodsFromOriginalParents])}get allProperties(){return R([...this.ownDeclaredProperties,...this.allBasePropertiesFromOriginalParents])}get allBaseMethodsFromOriginalParents(){return R([...this.extends.flatMap(i=>i.allMethods,[])])}get allBasePropertiesFromOriginalParents(){return R([...this.extends.flatMap(i=>i.allProperties,[])])}get allBasePropertiesFromExtendedAndImplementedEntities(){return R(this.extends.reduce((i,a)=>{const o=[...a.ownDeclaredProperties,...a.allBasePropertiesFromExtendedAndImplementedEntities].filter(p=>!p.abstract);return[...i,...o]},[]))}get extendedPropertiesFromOriginalParents(){return R(this.extends.reduce((i,a)=>{const o=[...a.ownDeclaredProperties,...a.extendedPropertiesFromOriginalParents].filter(p=>!p.abstract);return[...i,...o]},[]))}get implementedPropertiesFromOriginalParents(){return R([...this.extends.reduce((i,a)=>{const o=a.implementedPropertiesFromOriginalParents,p=[...a.ownDeclaredProperties].filter(e=>!!e.abstract&&!o.find(y=>y.name===e.name));return[...o,...p,...i]},[])])}get extendedProperties(){return this.properties.filter(i=>i.isExtendedProperty)}get ownDeclaredMethods(){return this.methods.filter(i=>!i.isExtendedMethod)}get ownDeclaredProperties(){return this.properties.filter(i=>!i.isExtendedProperty)}subscribe(){return this.project.subscribeInstance(this),this}unsubscribe(){return this.project.unsubscribeInstance(this),this}async APILoad(i=ve,...a){return await qm.repository.APILoad(this.id,...a),this}toFlat(i=new Set){return i.has(this.id)?[]:(i.add(this.id),[this,...this.properties.flatMap(o=>o.toFlat(i)),...this.methods.flatMap(o=>o.toFlat(i)),...this.abstractMethods.flatMap(o=>o.toFlat(i))])}toFlatIds(i=new Set){return i.has(this.id)?[]:(i.add(this.id),[this.id,...this.properties.flatMap(o=>o.toFlatIds(i)),...this.methods.flatMap(o=>o.toFlatIds(i)),...this.abstractMethods.flatMap(o=>o.toFlatIds(i))])}toMeta(){return{id:this.id,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,description:this.description,static:this.static,abstract:this.abstract,type:this.type,name:this.name}}toJSON(i=new Set){return i.has(this.id)?this.toReference():(i.add(this.id),{id:this.id,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,type:this.type,name:this.name,description:this.description,static:this.static,abstract:this.abstract,properties:this.properties.map(a=>a.toJSON(i)),methods:this.methods.map(a=>a.toJSON(i)),abstractMethods:this.abstractMethods.map(a=>a.toJSON(i)),extends:this.extends.map(a=>a.toJSON(i))})}toReference(i=ke){return{id:this.id+"--"+N.UUID.uuid()+"--ref",type:f.GenericReference,entityId:this.id,version:this.version,entityType:this.type}}toShallowJSON(i=ke){return{id:this.id,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,type:this.type,name:this.name,description:this.description,abstract:this.abstract,static:this.static,properties:this.properties.map(a=>a.toReference()),methods:this.methods.map(a=>a.toReference()),abstractMethods:this.abstractMethods.map(a=>a.toReference()),extends:this.extends.map(a=>a.toReference())}}toFlatJSON(i=new Set){return i.has(this.id)?[]:(i.add(this.id),[this.toShallowJSON(),...this.properties.flatMap(o=>o.toFlatJSON(i)),...this.methods.flatMap(o=>o.toFlatJSON(i)),...this.abstractMethods.flatMap(o=>o.toFlatJSON(i))])}toGenerationTarget(){return{id:this.id,type:this.type,name:this.name,description:this.description,static:this.static,abstract:this.abstract,extends:this.extends.map(i=>i.id)}}toFlatGenerationTarget(i=new Set){return i.has(this.id)?[]:(i.add(this.id),[this.toGenerationTarget(),...this.properties.flatMap(o=>o.toFlatGenerationTarget(i)),...this.methods.flatMap(o=>o.toFlatGenerationTarget(i)),...this.abstractMethods.flatMap(o=>o.toFlatGenerationTarget(i))])}clearErrors(){return this.errors=[],this.properties.forEach(i=>i.clearErrors()),this.methods.forEach(i=>i.clearErrors()),this.abstractMethods.forEach(i=>i.clearErrors()),this}validate(){const i=BAe(this);return this.errors=i,{success:!0}}getErrors(){return[...this.errors,...this.properties.flatMap(a=>a.getErrors()),...this.methods.flatMap(a=>a.getErrors()),...this.abstractMethods.flatMap(a=>a.getErrors())]}getShallowErrors(){return this.errors}getAllInteractiveMethods(){const i=[];return i.push(...this.methods),this.extends.filter(o=>o.type===f.BuiltInBaseEntity&&o.interactive||o.type===f.PrimitiveEntity).forEach(o=>{o instanceof ia&&i.push(...o.getAllInteractiveMethods())}),R(i)}};g(qm,"repository",{APILoad:async(i,...a)=>null});let ss=qm;function lr(d,u){if(!d)throw new Error("Entity is null");const i=u.get(d.id);switch(d.type){case f.LiteralValue:return i||new ki(d,u);case f.DefinitionEntity:return i||new ra(d,u);case f.PrimitiveEntity:return i||new ss(d,u);case f.FunctionDeclaration:return i||new io(d,u);case f.GlobalEvent:return i||new ao(d,u);case f.DataType:return i||new vs(d,u);case f.Property:return i||new ta(d,u);case f.FunctionCall:return i||new Ao(d,u);case f.Condition:return i||new oo(d,u);case f.Operation:return i||new so(d,u);case f.VariableDeclaration:return i||new uo(d,u);case f.VariableInstance:return i||new lo(d,u);case f.OutputMap:return i||new mn(d,u);case f.ReturnDeclaration:return i||new is(d,u);case f.ArgumentDeclaration:return i||new Jn(d,u);case f.InputMap:return i||new Yn(d,u);case f.Project:return i||new N(d);case f.InstalledProject:return i||new po(d,u);case f.ActionDescriptor:return i||new wt(d,u);case f.ReturnStatement:return i||new no(d,u);case f.Loop:return i||new Si(d,u);case f.Search:return i||new co(d,u);case f.ValueDescriptor:return i||new vn(d,u);case f.BuiltInBaseEntity:return i||new ia(d,u);case f.InternalCall:return i||new fo(d,u);case f.ContinueStatement:return i||new Ni(d,u);case f.BreakStatement:return i||new ho(d,u);case f.GenericReference:return u.get(d.entityId);default:throw new Error("Invalid entity type: "+d.type)}}function te(d,u){if(!d)throw new Error("Entity is null");const i=lr(d,u);return i.subscribe(),i}function UAe(d,u){if(!d)throw new Error("Entity is null");switch(d.type){case f.LiteralValue:return ki.fromGenerationTarget(d,u);case f.DefinitionEntity:return ra.fromGenerationTarget(d,u);case f.FunctionDeclaration:return io.fromGenerationTarget(d,u);case f.GlobalEvent:return ao.fromGenerationTarget(d,u);case f.DataType:return vs.fromGenerationTarget(d,u);case f.Property:return ta.fromGenerationTarget(d,u);case f.FunctionCall:return Ao.fromGenerationTarget(d,u);case f.Condition:return oo.fromGenerationTarget(d,u);case f.Operation:return so.fromGenerationTarget(d,u);case f.VariableDeclaration:return uo.fromGenerationTarget(d,u);case f.VariableInstance:return lo.fromGenerationTarget(d,u);case f.OutputMap:return mn.fromGenerationTarget(d,u);case f.ReturnDeclaration:return is.fromGenerationTarget(d,u);case f.ArgumentDeclaration:return Jn.fromGenerationTarget(d,u);case f.InputMap:return Yn.fromGenerationTarget(d,u);case f.InstalledProject:return po.fromGenerationTarget(d,u);case f.ReturnStatement:return no.fromGenerationTarget(d,u);case f.Loop:return Si.fromGenerationTarget(d,u);case f.Search:return co.fromGenerationTarget(d,u);case f.ActionDescriptor:return wt.fromGenerationTarget(d,u);case f.ValueDescriptor:return vn.fromGenerationTarget(d,u);case f.InternalCall:return fo.fromGenerationTarget(d,u);case f.ContinueStatement:return Ni.fromGenerationTarget(d,u);case f.BreakStatement:return ho.fromGenerationTarget(d,u);default:throw new Error("Invalid entity type: "+d.type)}}const ke={seenEntityMaps:new Map,seenEntities:new Set,timestamp:L().toISOString()};class kS{constructor(){g(this,"initialData")}}const ve={cascade:!1},qS={APILoad:async(d,...u)=>null},jAe={APICreate:async(d,...u)=>d,APIUpdate:async(d,...u)=>d,APIDelete:async(d,...u)=>d,APIClone:async(d,...u)=>{},APILoadVersion:async(d,u,...i)=>null,...qS};class xAe{}class FAe extends kS{}class GAe{}class SAe{}class KAe{}class tw{}class kAe extends tw{}class qAe extends tw{}class ZAe{}class df{static initReadsValue(u){if(u.initialData.readsValue&&u.initialData.readsValue.type!==f.GenericReference)u.readsValue=te(u.initialData.readsValue,u.project);else if(u.initialData.readsValue&&u.initialData.readsValue.type===f.GenericReference){const i=Ji(u.initialData.readsValue,u.project);i&&(u.readsValue=i)}if(u.readsValue){if(mt.includes(u.readsValue.type)){let i=u.parent;Mr.includes(i.type)||(i=i.parent);const a=u.type===f.InputMap&&u.parent.type===f.Loop;a&&(i=u.parent.parent),u.readsValue.setParent(i,null),u.readsValue.initChildren(null),i&&i.type!==f.Project&&!a&&i.detachedChildren.includes(u)?i.replaceDetachedChild(u,u.readsValue):i&&i.type!==f.Project&&!a&&i.subscribeDetachedChild(u.readsValue)}u.readsValue.addValueReader(u,null)}return u.readsValue}}class uf{static initWritesValues(u,i){const a=u.initialData.writesValues.reduce((p,e)=>{if(e.type===f.GenericReference||u.writesValues.some(v=>v.id===e.id))return p;const y=te(e,u.project);return y.setValueWriter(u,null),mt.includes(y.type)&&(y.setParent(i,null),y.initChildren(null)),[...p,y]},[]),o=[...u.writesValues];return u.writesValues=R([...o,...a]),u.writesValues}}class JAe{}var Vr=(d=>(d.PROJECT_INITIALIZED="project-initialized",d.CHANGE_SET_CLOSED="change-set-closed",d.EXPLICIT_DEFINITION_ENTITY_ADDED="explicit-definition-entity-added",d.EXPLICIT_DEFINITION_ENTITY_REMOVED="explicit-definition-entity-removed",d.EXPLICIT_DEFINITION_ENTITY_UPDATED="explicit-definition-entity-updated",d.PERSISTED_DEFINITION_ENTITY_ADDED="persisted-definition-entity-added",d.PERSISTED_DEFINITION_ENTITY_REMOVED="persisted-definition-entity-removed",d.PERSISTED_DEFINITION_ENTITY_UPDATED="persisted-definition-entity-updated",d.RELATIONAL_DATABASE_DEFINITION_ENTITY_ADDED="relational-database-definition-entity-added",d.RELATIONAL_DATABASE_DEFINITION_ENTITY_REMOVED="relational-database-definition-entity-removed",d.RELATIONAL_DATABASE_DEFINITION_ENTITY_UPDATED="relational-database-definition-entity-updated",d))(Vr||{});const rw={...rb,events:new Kp},ZS={requestActiveDynamicValue:d=>null,...rw},pt=class pt extends Nr{constructor(i,a={...ZS,events:new Kp}){super(i);g(this,"initialData");g(this,"id");g(this,"type",f.Project);g(this,"name",null);g(this,"description",null);g(this,"x");g(this,"y");g(this,"entities",[]);g(this,"projects",[]);g(this,"functions",[]);g(this,"events",[]);g(this,"variableDeclarations",[]);g(this,"variableInstances",[]);g(this,"conditions",[]);g(this,"operations",[]);g(this,"functionCalls",[]);g(this,"loops",[]);g(this,"searches",[]);g(this,"primitives",[]);g(this,"builtInBaseEntities",[]);g(this,"operationDeclarations",[]);g(this,"globalEventActionDescriptors",[]);g(this,"loopDeclarations",[]);g(this,"loopDeclarationsBodies",[]);g(this,"conditionDeclarations",[]);g(this,"valueDescriptors",[]);g(this,"dataTypes",[]);g(this,"project");g(this,"instances",{});g(this,"builtInInstances",{});g(this,"deletedInstances",{});g(this,"errors",[]);g(this,"references",[]);g(this,"history",[]);g(this,"undoableStackValueIndex",-1);g(this,"detachedDependents",{});g(this,"knownVersions",null);g(this,"activeVersion",!1);g(this,"initialized",!1);g(this,"startedInitialization",!1);g(this,"onCloseChangeSetCallback",null);g(this,"onAddChangeSetCallback",null);g(this,"onDiscardChangeSetCallback",null);if(this.parentContext=a,this.initialData=i,this.id=i.id,this.name=i.name,this.description=i.description,this.x=0,this.y=0,this.instances[this.id]=this,!pt.UUID)throw new Error("UUID module is already initialized. Please inject a valid UUID module.")}static get UUID(){return this.parentContext.requestModule("uuid")}static new(i=null){return{id:pt.UUID.uuid(),version:pt.UUID.uuid(),createdAt:(i==null?void 0:i.timestamp)||L().toISOString(),author:(i==null?void 0:i.author)||pt.sessionAuthor,previousVersion:null,deleted:!1,type:f.Project,name:"",description:"",entities:[],functions:[],events:[],projects:[],variableDeclarations:[],variableInstances:[],conditions:[],operations:[],functionCalls:[],loops:[],searches:[]}}static validateGenerationTarget(i,a){let o=JSON.parse(JSON.stringify(i));const p=[];return p.push(...Br(o)),{errors:p,modifiedData:o}}get off(){return this.parentContext.events.off}get on(){return this.parentContext.events.on}get emit(){return this.parentContext.events.emit}async closePendingChangeSets(){const i=this.history.find(a=>a.dirty&&!a.open);i&&await this.closeChangeSet(i)}async onCloseChangeSet(i){this.onCloseChangeSetCallback=i,await this.closePendingChangeSets()}onAddChangeSet(i){this.onAddChangeSetCallback=i}onDiscardChangeSet(i){this.onDiscardChangeSetCallback=i}async closeChangeSet(i){const a=this.history.findIndex(e=>e.id===i.id),o=this.history.slice(0,a),p=o[o.length-1];if(!(p!=null&&p.dirty)&&this.onCloseChangeSetCallback){(await this.onCloseChangeSetCallback(i)).success&&(i.dirty=!1,this.emit("change-set-closed",i),this.closePendingChangeSets());return}}toLatestChangeSet(i,a,o,p=!1,e="here-this"){if(!this.history.length)return new F(this,i,a,o,p,e);const y=this.history[this.history.length-1];return y.open?y:this.addChangeSet(new F(this,i,a,o,p,e))}addChangeSet(i){var p,e;if(!this.history.length)return this.undoableStackValueIndex=aA(this.undoableStackValueIndex,this.history,i),(p=this.onAddChangeSetCallback)==null||p.call(this,i,this.undoableStackValueIndex),i;const a=this.history.find(y=>y.id===(i==null?void 0:i.id));if(a)return a;const o=this.history.find(y=>y.open);if(o)throw Me.warn("Previous still open: ",o),Me.warn("New change set: ",i),new Error(`There is already an open change-set with id '${o.id}'.`);return this.undoableStackValueIndex=aA(this.undoableStackValueIndex,this.history,i),(e=this.onAddChangeSetCallback)==null||e.call(this,i,this.undoableStackValueIndex),i}discardChangeSet(i){var o;const a=this.history.findIndex(p=>p.id===(i==null?void 0:i.id));return a!==-1&&(this.history.splice(a,1),this.undoableStackValueIndex=this.undoableStackValueIndex-1,(o=this.onDiscardChangeSetCallback)==null||o.call(this,i)),this}validateGeneratedUpdate(i){return{errors:[],modifiedData:i}}subscribeDependents(i){return i.forEach(a=>{this.detachedDependents[a.entity.id]||(this.detachedDependents[a.entity.id]=a)}),this}unsubscribeDependents(i){return i.forEach(a=>{this.detachedDependents[a.entity.id]&&delete this.detachedDependents[a.entity.id]}),this}syncDependents(i=this.project.addChangeSet(new F(this.project,pt.sessionAuthor,L().toISOString(),this,!0,"sync-dependents"))){const a=[],o=[],p=[],e=[];return Object.values(this.detachedDependents).forEach(y=>{const v=y.entity.afterAllChildrenInitialized(i);a.push(...v.updated),o.push(...v.added),p.push(...v.removed),e.push(...v.affected)}),i==null||i.attemptAutoclose("sync-dependents",this.id),{updated:R(a),added:R(o),removed:R(p),affected:R(e),self:this}}onDetachedDependencyRemoved(i,a,o){const p=[],e=[],y=[],v=[];return{updated:R(p),added:R(e),removed:R(y),affected:R(v),self:this}}onDetachedDependencyRestored(i,a,o){const p=[],e=[],y=[],v=[];return{updated:R(p),added:R(e),removed:R(y),affected:R(v),self:this}}unsubscribeFromDependencies(){return this}subscribeToDependencies(){return this}increaseVersion(i){if(i&&!L(i).isValid())throw new Error(`The shared timestamp '${i}' is not a valid ISO 8601 date string.`);return i&&L(i).isSame(L(this.createdAt))?this:(this.previousVersion=this.version,this.version=pt.UUID.uuid(),this.createdAt=L(i).toISOString()||L().toISOString(),this)}captureVersion(){var a;const i=((a=this.knownVersions)==null?void 0:a.get(this.version))||new pt(this);return i.metaSync(this.toMeta(),null),this.knownVersions=this.knownVersions?this.knownVersions.set(this.version,i):new Map([[this.version,i]]),i.entities=[...this.entities],i.projects=[...this.projects],i.functions=[...this.functions],i.events=[...this.events],i.variableDeclarations=[...this.variableDeclarations],i.variableInstances=[...this.variableInstances],i.conditions=[...this.conditions],i.operations=[...this.operations],i.functionCalls=[...this.functionCalls],i.loops=[...this.loops],i.searches=[...this.searches],this}recursiveCaptureUpstreamVersions(i){const a=[],o=[],p=[],e=[];return{updated:R(a),added:R(o),removed:R(p),affected:R(e),self:this}}async restoreVersion(i){var v;const a=[],o=[],p=[],e=[];if(this.version===i)return{updated:R(a),added:R(o),removed:R(p),affected:R(e),self:this};if(!this.knownVersions){const E=new Map;for(const[w,A]of this.knownVersions||new Map){if(E.set(w,A),A.activeVersion=!1,A.knownVersions)for(const[$,V]of A.knownVersions)E.set($,V);A.knownVersions=null}}let y=(v=this.knownVersions)==null?void 0:v.get(i);if(!y){const E=await this.APILoadVersion({},i);if(!E)throw new Error(`Version with id '${i}' for entity with id '${this.id}' not found.`);y=new pt(E)}return this.metaSync(y.toShallowJSON(),null),this.previousVersion=y.previousVersion,this.version=y.version,this.createdAt=y.createdAt,this.author=y.author,this.deleted=y.deleted,this.entities=y.entities,this.projects=y.projects,this.functions=y.functions,this.events=y.events,this.variableDeclarations=y.variableDeclarations,this.variableInstances=y.variableInstances,this.conditions=y.conditions,this.operations=y.operations,this.functionCalls=y.functionCalls,this.loops=y.loops,this.searches=y.searches,{updated:R(a),added:R(o),removed:R(p),affected:R(e),self:this}}updateWithShallowTransfer(i,a=this.project.addChangeSet(new F(this.project,pt.sessionAuthor,L().toISOString(),this,!0,"update-with-shallow-transfer"))){return this.metaSync(i,a),this.version=i.version,this.createdAt=i.createdAt,this.author=i.author,this.deleted=i.deleted,this.previousVersion=i.previousVersion,this.captureVersion(),this.subscribeToDependencies(),a==null||a.attemptAutoclose("update-with-shallow-transfer",this.id),this}hydrateAncestors(){const i=[],a=[],o=[],p=[];return{updated:R(i),added:R(a),removed:R(o),affected:R(p),self:this}}afterAllChildrenInitialized(i=null){const a=[],o=[],p=[],e=[];return this.initialized||(this.initialized=!0,this.emit("project-initialized",this,i)),this.validate(),this.captureVersion(),{updated:R(a),added:R(o),removed:R(p),affected:R(e),self:this}}addSelfToProject(i){const a=[],o=[],p=[],e=[];return this.subscribe(),this.subscribeToDependencies(),{updated:R(a),added:R(o),removed:R(p),affected:R(e),self:this}}get instancesList(){return Object.values(this.instances)}isOperationDeclaration(i){return this.operationDeclarations.includes(i)}isGlobalEventActionDescriptor(i){return this.globalEventActionDescriptors.includes(i)}isLoopDeclaration(i){return this.loopDeclarations.includes(i)}isConditionDeclaration(i){return this.conditionDeclarations.includes(i)}initChildren(i=this.project.addChangeSet(new F(this.project,pt.sessionAuthor,L().toISOString(),this,!0,"init-children"))){return this.initialized||this.startedInitialization?this:(this.startedInitialization=!0,this.entities=this.initialData.entities.map(a=>{const o=te(a,this);return o.setParent(this,null),o.initChildren(i),o}),this.projects=this.initialData.projects.map(a=>{const o=te(a,this);return o.setParent(this,null),o.initChildren(i),o}),this.variableDeclarations=this.initialData.variableDeclarations.map(a=>{const o=te(a,this);return o.setParent(this,null),o.initChildren(i),o}),this.variableInstances=this.initialData.variableInstances.map(a=>{const o=te(a,this);return o.setParent(this,null),o.initChildren(i),o}),this.conditions=this.initialData.conditions.map(a=>{const o=te(a,this);return o.setParent(this,null),o.initChildren(i),o}),this.operations=this.initialData.operations.map(a=>{const o=te(a,this);return o.setParent(this,null),o.initChildren(i),o}),this.functions=this.initialData.functions.map(a=>{const o=te(a,this);return o.setParent(this,null),o.initChildren(i),o}),this.events=this.initialData.events.map(a=>{const o=te(a,this);return o.setParent(this,null),o.initChildren(i),o}),this.functionCalls=this.initialData.functionCalls.map(a=>{const o=te(a,this);return o.setParent(this,null),o.initChildren(i),o}),this.loops=this.initialData.loops.map(a=>{const o=te(a,this);return o.setParent(this,null),o.initChildren(i),o}),this.searches=this.initialData.searches.map(a=>{const o=te(a,this);return o.setParent(this,null),o.initChildren(i),o}),this.attachOrphanReferences(),this.subscribeToDependencies(),this.afterAllChildrenInitialized(i),i==null||i.attemptAutoclose("init-children",this.id),this)}subscribeInstance(i){return(!this.instances[i.id]||this.instances[i.id]!==i)&&(this.instances[i.id]=i),this}subscribeDeletedInstance(i){return(!this.deletedInstances[i.id]||this.deletedInstances[i.id]!==i)&&(this.deletedInstances[i.id]=i),this}subscribeBuiltInInstance(i){return(!this.builtInInstances[i.id]||this.builtInInstances[i.id]!==i)&&(this.builtInInstances[i.id]=i),this}subscribe(){return this}unsubscribe(){return this}unsubscribeInstance(i){return delete this.instances[i.id],this}unsubscribeDeletedInstance(i){return delete this.deletedInstances[i.id],this}findSubscribedBuiltInInstance(i){return this.builtInInstances[i.id]||null}get(i){return this.instances[i]||this.builtInInstances[i]||null}getDeleted(i){return this.deletedInstances[i]||null}getManaged(i){return this.getBuiltIn(i)?null:this.instances[i]||null}getBuiltIn(i){return this.builtInInstances[i]||null}findSubscribedInstanceFromReference(i){return this.instances[i.entityId]||null}findSubscribedBuiltInInstanceFromReference(i){return this.builtInInstances[i.entityId]||null}metaSync(i,a=this.project.addChangeSet(new F(this.project,pt.sessionAuthor,L().toISOString(),this,!0,"meta-sync"))){const o=Ur(this,i),p=this.toMeta();return this.name=i.name!==void 0?i.name:p.name,this.description=i.description!==void 0?i.description:p.description,this.x=i.x||p.x,this.y=i.y||p.y,super.metaSync(i),i.deleted===!0&&!p.deleted?a==null||a.add(this,S.Removed):i.deleted===!1&&p.deleted?a==null||a.add(this,S.Added):o&&(a==null||a.add(this,S.Updated)),a==null||a.attemptAutoclose("meta-sync",this.id),this}async APILoad(i=ve,...a){return await pt.repository.APILoad(this.id,...a),this}async APICreate(i=ve,...a){return await pt.repository.APICreate(this.toShallowJSON(),...a),this}async APIUpdate(i=ve,...a){return await pt.repository.APIUpdate(this.toShallowJSON(),...a),this}async APIDelete(i=ve,...a){return await pt.repository.APIDelete(this.toShallowJSON(),...a),this}async APIClone(i=ve,...a){return await pt.repository.APIClone(this.id,...a),this}async APILoadVersion(i=ve,a,...o){return await pt.repository.APILoadVersion(this.id,a,...o)}remove({ignoreUpstream:i}={ignoreUpstream:!1},a=this.project.addChangeSet(new F(this.project,pt.sessionAuthor,L().toISOString(),this,!0,"remove-entity"))){return{added:[],updated:[],removed:[],affected:[],self:this}}restore({}={},i=this.project.addChangeSet(new F(this.project,pt.sessionAuthor,L().toISOString(),this,!0,"restore-entity"))){return{added:[],updated:[],removed:[],affected:[],self:this}}getAllBuiltInIds(){const i=new Set;return[...this.primitives.flatMap(a=>a.toFlatIds(i)),...this.builtInBaseEntities.flatMap(a=>a.toFlatIds(i)),...this.operationDeclarations.flatMap(a=>a.toFlatIds(i)),...this.globalEventActionDescriptors.flatMap(a=>a.toFlatIds(i)),...this.loopDeclarations.flatMap(a=>a.toFlatIds(i)),...this.conditionDeclarations.flatMap(a=>a.toFlatIds(i)),...this.valueDescriptors.flatMap(a=>a.toFlatIds(i)),...this.dataTypes.flatMap(a=>a.toFlatIds(i))]}getAllBuiltIn(){const i=new Set;return[...this.primitives.flatMap(a=>a.toFlat(i)),...this.builtInBaseEntities.flatMap(a=>a.toFlat(i)),...this.operationDeclarations.flatMap(a=>a.toFlat(i)),...this.globalEventActionDescriptors.flatMap(a=>a.toFlat(i)),...this.loopDeclarations.flatMap(a=>a.toFlat(i)),...this.conditionDeclarations.flatMap(a=>a.toFlat(i)),...this.valueDescriptors.flatMap(a=>a.toFlat(i)),...this.dataTypes.flatMap(a=>a.toFlat(i))]}toFlat(i=new Set){return i.has(this.id)?[]:(i.add(this.id),[this,...this.entities.flatMap(o=>o.toFlat(i)),...this.functions.flatMap(o=>o.toFlat(i)),...this.events.flatMap(o=>o.toFlat(i)),...this.projects.flatMap(o=>o.toFlat(i)),...this.variableDeclarations.flatMap(o=>o.toFlat(i)),...this.variableInstances.flatMap(o=>o.toFlat(i)),...this.conditions.flatMap(o=>o.toFlat(i)),...this.operations.flatMap(o=>o.toFlat(i)),...this.functionCalls.flatMap(o=>o.toFlat(i)),...this.loops.flatMap(o=>o.toFlat(i)),...this.searches.flatMap(o=>o.toFlat(i))])}toFlatIds(i=new Set){return i.has(this.id)?[]:(i.add(this.id),[this.id,...this.entities.flatMap(o=>o.toFlatIds(i)),...this.functions.flatMap(o=>o.toFlatIds(i)),...this.events.flatMap(o=>o.toFlatIds(i)),...this.projects.flatMap(o=>o.toFlatIds(i)),...this.variableDeclarations.flatMap(o=>o.toFlatIds(i)),...this.variableInstances.flatMap(o=>o.toFlatIds(i)),...this.conditions.flatMap(o=>o.toFlatIds(i)),...this.operations.flatMap(o=>o.toFlatIds(i)),...this.functionCalls.flatMap(o=>o.toFlatIds(i)),...this.loops.flatMap(o=>o.toFlatIds(i)),...this.searches.flatMap(o=>o.toFlatIds(i))])}toMeta(){return{id:this.id,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,description:this.description,type:this.type,name:this.name}}toJSON(i=new Set){return i.has(this.id)?this.toReference():(i.add(this.id),{id:this.id,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,type:this.type,name:this.name,description:this.description,entities:this.entities.map(a=>a.toJSON(i)),variableDeclarations:this.variableDeclarations.map(a=>a.toJSON(i)),variableInstances:this.variableInstances.map(a=>a.toJSON(i)),conditions:this.conditions.map(a=>a.toJSON(i)),operations:this.operations.map(a=>a.toJSON(i)),loops:this.loops.map(a=>a.toJSON(i)),searches:this.searches.map(a=>a.toJSON(i)),functions:this.functions.map(a=>a.toJSON(i)),events:this.events.map(a=>a.toJSON(i)),projects:this.projects.map(a=>a.toJSON(i)),functionCalls:this.functionCalls.map(a=>a.toJSON(i))})}toJSONClone(i={uuidStrategy:"uuid"}){const a=new Map,o=new Set,p=this.getAllBuiltInIds();return Object.keys(this.instances).forEach(e=>{if(p.includes(e)){a.set(e,e);return}a.set(e,pt.UUID.uuid())}),o.add(this.id),{id:a.get(this.id),version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,type:this.type,name:this.name,description:this.description,entities:this.entities.map(e=>e.toJSONClone({...i,seenEntityMaps:a,seenEntities:o,newId:null})),projects:this.projects.map(e=>e.toJSONClone({...i,seenEntityMaps:a,seenEntities:o,newId:null})),variableDeclarations:this.variableDeclarations.map(e=>e.toJSONClone({...i,seenEntityMaps:a,seenEntities:o,newId:null})),variableInstances:this.variableInstances.map(e=>e.toJSONClone({...i,seenEntityMaps:a,seenEntities:o,newId:null})),conditions:this.conditions.map(e=>e.toJSONClone({...i,seenEntityMaps:a,seenEntities:o,newId:null})),operations:this.operations.map(e=>e.toJSONClone({...i,seenEntityMaps:a,seenEntities:o,newId:null})),functions:this.functions.map(e=>e.toJSONClone({...i,seenEntityMaps:a,seenEntities:o,newId:null})),events:this.events.map(e=>e.toJSONClone({...i,seenEntityMaps:a,seenEntities:o,newId:null})),functionCalls:this.functionCalls.map(e=>e.toJSONClone({...i,seenEntityMaps:a,seenEntities:o,newId:null})),loops:this.loops.map(e=>e.toJSONClone({...i,seenEntityMaps:a,seenEntities:o,newId:null})),searches:this.searches.map(e=>e.toJSONClone({...i,seenEntityMaps:a,seenEntities:o,newId:null}))}}toReference(i=ke){var o;let a=this.id;return(o=i.seenEntityMaps)!=null&&o.has(this.id)&&(a=i.seenEntityMaps.get(this.id)),{id:a+"--"+pt.UUID.uuid()+"--ref",type:f.GenericReference,entityId:a,version:this.version,entityType:this.type}}toShallowJSON(i=ke){var o;let a=this.id;return(o=i.seenEntityMaps)!=null&&o.has(this.id)&&(a=i.seenEntityMaps.get(this.id)),{id:a,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,type:this.type,name:this.name,description:this.description,entities:this.entities.map(p=>p.toReference(i)),functions:this.functions.map(p=>p.toReference(i)),events:this.events.map(p=>p.toReference(i)),projects:this.projects.map(p=>p.toReference(i)),variableDeclarations:this.variableDeclarations.map(p=>p.toReference(i)),variableInstances:this.variableInstances.map(p=>p.toReference(i)),conditions:this.conditions.map(p=>p.toReference(i)),operations:this.operations.map(p=>p.toReference(i)),functionCalls:this.functionCalls.map(p=>p.toReference(i)),loops:this.loops.map(p=>p.toReference(i)),searches:this.searches.map(p=>p.toReference(i))}}toFlatJSON(i=new Set){return i.has(this.id)?[]:(i.add(this.id),[this.toShallowJSON(),...this.entities.flatMap(o=>o.toFlatJSON(i)),...this.functions.flatMap(o=>o.toFlatJSON(i)),...this.events.flatMap(o=>o.toFlatJSON(i)),...this.projects.flatMap(o=>o.toFlatJSON(i)),...this.variableDeclarations.flatMap(o=>o.toFlatJSON(i)),...this.variableInstances.flatMap(o=>o.toFlatJSON(i)),...this.conditions.flatMap(o=>o.toFlatJSON(i)),...this.operations.flatMap(o=>o.toFlatJSON(i)),...this.functionCalls.flatMap(o=>o.toFlatJSON(i)),...this.loops.flatMap(o=>o.toFlatJSON(i)),...this.searches.flatMap(o=>o.toFlatJSON(i))])}toGenerationTarget(){return{id:this.id,type:this.type,name:this.name,description:this.description}}toFlatGenerationTarget(i=new Set){return i.has(this.id)?[]:(i.add(this.id),[...this.entities.flatMap(o=>o.toFlatGenerationTarget(i)),...this.functions.flatMap(o=>o.toFlatGenerationTarget(i)),...this.events.flatMap(o=>o.toFlatGenerationTarget(i)),...this.projects.flatMap(o=>o.toFlatGenerationTarget(i)),...this.variableDeclarations.flatMap(o=>o.toFlatGenerationTarget(i)),...this.variableInstances.flatMap(o=>o.toFlatGenerationTarget(i)),...this.conditions.flatMap(o=>o.toFlatGenerationTarget(i)),...this.operations.flatMap(o=>o.toFlatGenerationTarget(i)),...this.functionCalls.flatMap(o=>o.toFlatGenerationTarget(i)),...this.loops.flatMap(o=>o.toFlatGenerationTarget(i)),...this.searches.flatMap(o=>o.toFlatGenerationTarget(i))])}clearErrors(){return this.errors=[],this.entities.forEach(i=>i.clearErrors()),this.projects.forEach(i=>i.clearErrors()),this.functions.forEach(i=>i.clearErrors()),this.events.forEach(i=>i.clearErrors()),this.variableDeclarations.forEach(i=>i.clearErrors()),this.variableInstances.forEach(i=>i.clearErrors()),this.conditions.forEach(i=>i.clearErrors()),this.operations.forEach(i=>i.clearErrors()),this.functionCalls.forEach(i=>i.clearErrors()),this.loops.forEach(i=>i.clearErrors()),this.searches.forEach(i=>i.clearErrors()),this}validate(){return this.validateChildren(),eI([...this.errors]),{success:!0}}validateChildren(){this.entities.forEach(i=>i.validate()),this.projects.forEach(i=>i.validate()),this.functions.forEach(i=>i.validate()),this.events.forEach(i=>i.validate()),this.variableDeclarations.forEach(i=>i.validate()),this.variableInstances.forEach(i=>i.validate()),this.conditions.forEach(i=>i.validate()),this.operations.forEach(i=>i.validate()),this.functionCalls.forEach(i=>i.validate()),this.loops.forEach(i=>i.validate()),this.searches.forEach(i=>i.validate())}getErrors(){return[...this.errors,...this.entities.flatMap(a=>a.getErrors()),...this.projects.flatMap(a=>a.getErrors()),...this.functions.flatMap(a=>a.getErrors()),...this.events.flatMap(a=>a.getErrors()),...this.variableDeclarations.flatMap(a=>a.getErrors()),...this.variableInstances.flatMap(a=>a.getErrors()),...this.conditions.flatMap(a=>a.getErrors()),...this.operations.flatMap(a=>a.getErrors()),...this.functionCalls.flatMap(a=>a.getErrors()),...this.loops.flatMap(a=>a.getErrors()),...this.searches.flatMap(a=>a.getErrors())]}getShallowErrors(){return this.errors}clone(){return this}getDefinitionEntity(i){return this.entities.find(a=>a.id===i)||null}addDefinitionEntity(i){return this.entities.includes(i)||this.entities.push(i),i}addFunctionDeclaration(i){return this.functions.includes(i)||this.functions.push(i),i}addFunctionCall(i){return this.functionCalls.includes(i)||this.functionCalls.push(i),i}addVariableDeclaration(i){return this.variableDeclarations.includes(i)||this.variableDeclarations.push(i),i}addVariableInstance(i){return this.variableInstances.includes(i)||this.variableInstances.push(i),i}addInstalledProject(i){return this.projects.includes(i)||this.projects.push(i),this}addGlobalEvent(i){return this.events.includes(i)||this.events.push(i),this}addCondition(i){return this.conditions.includes(i)||this.conditions.push(i),this}addOperation(i){return this.operations.includes(i)||this.operations.push(i),this}addLoop(i){return this.loops.includes(i)||this.loops.push(i),this}addSearch(i){return this.searches.includes(i)||this.searches.push(i),this}removeDefinitionEntity(i){const a=this.entities.findIndex(o=>o.id===i.id);if(a>-1){const o=this.entities[a];return this.entities.splice(a,1),o}return null}removeCondition(i){const a=this.conditions.findIndex(o=>o.id===i.id);if(a>-1){const o=this.conditions[a];return this.conditions.splice(a,1),o}return null}removeOperation(i){const a=this.operations.findIndex(o=>o.id===i.id);if(a>-1){const o=this.operations[a];return this.operations.splice(a,1),o}return null}removeLoop(i){const a=this.loops.findIndex(o=>o.id===i.id);if(a>-1){const o=this.loops[a];return this.loops.splice(a,1),o}return null}removeSearch(i){const a=this.searches.findIndex(o=>o.id===i.id);if(a>-1){const o=this.searches[a];return this.searches.splice(a,1),o}return null}removeFunctionCall(i){const a=this.functionCalls.findIndex(o=>o.id===i.id);if(a>-1){const o=this.functionCalls[a];return this.functionCalls.splice(a,1),o}return null}removeVariableInstance(i){const a=this.variableInstances.findIndex(o=>o.id===i.id);if(a>-1){const o=this.variableInstances[a];return this.variableInstances.splice(a,1),o}return null}removeVariableDeclaration(i){const a=this.variableDeclarations.findIndex(o=>o.id===i.id);if(a>-1){const o=this.variableDeclarations[a];return this.variableDeclarations.splice(a,1),o}return null}removeFunctionDeclaration(i){const a=this.functions.findIndex(o=>o.id===i.id);if(a>-1){const o=this.functions[a];return this.functions.splice(a,1),o}return null}removeInstalledProject(i){const a=this.projects.findIndex(o=>o.id===i.id);if(a>-1){const o=this.projects[a];return this.projects.splice(a,1),o}return null}removeGlobalEvent(i){const a=this.events.findIndex(o=>o.id===i.id);if(a>-1){const o=this.events[a];return this.events.splice(a,1),o}return null}removeTopLevelVariableDeclaration(i){if(i.type!==f.VariableDeclaration)return null;const a=this.variableDeclarations.findIndex(o=>o.id===i.id);if(a>-1){const o=this.variableDeclarations[a];return this.variableDeclarations.splice(a,1),o}return null}getEntryPoints(){return[...this.functions,...this.events,...this.entities.flatMap(a=>a.methods)]}getTerminationStatements(){return[...this.getEntryPoints().reduce((a,o)=>{const p=Rt(o);return[...a,...p.filter(e=>e.type===f.ReturnStatement||e.type===f.ContinueStatement||e.type===f.BreakStatement)]},[])]}getFunctionDeclaration(i){return this.functions.find(a=>a.id===i)||null}getConditions(){return[...this.conditions,...this.getEntryPoints().reduce((a,o)=>{const p=Rt(o);return[...a,...p.filter(e=>e.type===f.Condition)]},[]),...this.functionCalls.reduce((a,o)=>{const p=Rt(o);return[...a,...p.filter(e=>e.type===f.Condition)]},[]),...this.operations.reduce((a,o)=>{const p=Rt(o);return[...a,...p.filter(e=>e.type===f.Condition)]},[]),...this.loops.reduce((a,o)=>{const p=Rt(o);return[...a,...p.filter(e=>e.type===f.Condition)]},[]),...this.searches.reduce((a,o)=>{const p=Rt(o);return[...a,...p.filter(e=>e.type===f.Condition)]},[])]}getOperations(){return[...this.operations,...this.getEntryPoints().reduce((a,o)=>{const p=Rt(o);return[...a,...p.filter(e=>e.type===f.Operation)]},[]),...this.functionCalls.reduce((a,o)=>{const p=Rt(o);return[...a,...p.filter(e=>e.type===f.Operation)]},[]),...this.conditions.reduce((a,o)=>{const p=Rt(o);return[...a,...p.filter(e=>e.type===f.Operation)]},[]),...this.loops.reduce((a,o)=>{const p=Rt(o);return[...a,...p.filter(e=>e.type===f.Operation)]},[]),...this.searches.reduce((a,o)=>{const p=Rt(o);return[...a,...p.filter(e=>e.type===f.Operation)]},[])]}getFunctionCalls(){return[...this.functionCalls,...this.getEntryPoints().reduce((a,o)=>{const p=Rt(o);return[...a,...p.filter(e=>e.type===f.FunctionCall)]},[]),...this.conditions.reduce((a,o)=>{const p=Rt(o);return[...a,...p.filter(e=>e.type===f.FunctionCall)]},[]),...this.operations.reduce((a,o)=>{const p=Rt(o);return[...a,...p.filter(e=>e.type===f.FunctionCall)]},[]),...this.loops.reduce((a,o)=>{const p=Rt(o);return[...a,...p.filter(e=>e.type===f.FunctionCall)]},[]),...this.searches.reduce((a,o)=>{const p=Rt(o);return[...a,...p.filter(e=>e.type===f.FunctionCall)]},[])]}getVariables(){return[...this.variableDeclarations,...this.getEntryPoints().reduce((a,o)=>{const p=mr(o);return[...a,...p]},[]),...this.functionCalls.reduce((a,o)=>{const p=mr(o);return[...a,...p]},[]),...this.conditions.reduce((a,o)=>{const p=mr(o);return[...a,...p]},[]),...this.operations.reduce((a,o)=>{const p=mr(o);return[...a,...p]},[]),...this.loops.reduce((a,o)=>{const p=mr(o);return[...a,...p]},[]),...this.searches.reduce((a,o)=>{const p=mr(o);return[...a,...p]},[])]}getVariableInstances(){return[...this.variableInstances,...this.entities.reduce((a,o)=>[...a,...o.methods.flatMap(p=>{const y=Rt(p).filter(v=>v.type===f.VariableInstance);return[...a,...y]})],[]),...this.getEntryPoints().reduce((a,o)=>{const e=mr(o).filter(y=>y.type===f.VariableInstance);return[...a,...e]},[]),...this.functionCalls.reduce((a,o)=>{const e=mr(o).filter(y=>y.type===f.VariableInstance);return[...a,...e]},[]),...this.conditions.reduce((a,o)=>{const e=mr(o).filter(y=>y.type===f.VariableInstance);return[...a,...e]},[]),...this.operations.reduce((a,o)=>{const e=mr(o).filter(y=>y.type===f.VariableInstance);return[...a,...e]},[]),...this.loops.reduce((a,o)=>{const e=mr(o).filter(y=>y.type===f.VariableInstance);return[...a,...e]},[]),...this.searches.reduce((a,o)=>{const e=mr(o).filter(y=>y.type===f.VariableInstance);return[...a,...e]},[])]}getVariableDeclarations(){return R([...this.variableDeclarations,...this.entities.reduce((a,o)=>[...a,...o.methods.flatMap(p=>{const y=Rt(p).filter(v=>v.type===f.VariableDeclaration);return[...a,...y]})],[]),...this.getEntryPoints().reduce((a,o)=>{const e=mr(o).filter(y=>y.type===f.VariableDeclaration);return[...a,...e]},[]),...this.functionCalls.reduce((a,o)=>{const e=mr(o).filter(y=>y.type===f.VariableDeclaration);return[...a,...e]},[]),...this.conditions.reduce((a,o)=>{const e=mr(o).filter(y=>y.type===f.VariableDeclaration);return[...a,...e]},[]),...this.operations.reduce((a,o)=>{const e=mr(o).filter(y=>y.type===f.VariableDeclaration);return[...a,...e]},[]),...this.loops.reduce((a,o)=>{const e=mr(o).filter(y=>y.type===f.VariableDeclaration);return[...a,...e]},[]),...this.searches.reduce((a,o)=>{const e=mr(o).filter(y=>y.type===f.VariableDeclaration);return[...a,...e]},[])])}getLoops(){return[...this.loops,...this.getEntryPoints().reduce((a,o)=>{const p=Rt(o);return[...a,...p.filter(e=>e.type===f.Loop)]},[]),...this.functionCalls.reduce((a,o)=>{const p=Rt(o);return[...a,...p.filter(e=>e.type===f.Loop)]},[]),...this.conditions.reduce((a,o)=>{const p=Rt(o);return[...a,...p.filter(e=>e.type===f.Loop)]},[]),...this.operations.reduce((a,o)=>{const p=Rt(o);return[...a,...p.filter(e=>e.type===f.Loop)]},[]),...this.searches.reduce((a,o)=>{const p=Rt(o);return[...a,...p.filter(e=>e.type===f.Loop)]},[])]}getSearches(){return[...this.searches,...this.getEntryPoints().reduce((a,o)=>{const p=Rt(o);return[...a,...p.filter(e=>e.type===f.Search)]},[]),...this.functionCalls.reduce((a,o)=>{const p=Rt(o);return[...a,...p.filter(e=>e.type===f.Search)]},[]),...this.conditions.reduce((a,o)=>{const p=Rt(o);return[...a,...p.filter(e=>e.type===f.Search)]},[]),...this.operations.reduce((a,o)=>{const p=Rt(o);return[...a,...p.filter(e=>e.type===f.Search)]},[]),...this.loops.reduce((a,o)=>{const p=Rt(o);return[...a,...p.filter(e=>e.type===f.Search)]},[])]}attachOrphanReferences(){const i=this.getVariableInstances(),a=this.getVariableDeclarations();return i.forEach(o=>{if(!o.declaration){const p=o.initialData,e=p.declaration.entityId||p.declaration.id,y=a.find(v=>v.id===e);y&&o.setDeclaration(y)}}),this}getBuiltInPersistedEntity(){return this.builtInBaseEntities.find(i=>i.name===Ue.PERSISTED_ENTITY)||null}requestActiveDynamicValue(i){var o,p;const a=(p=(o=this.parentContext).requestActiveDynamicValue)==null?void 0:p.call(o,i);if(!a){const e=i.getDefaultValue();return e?{value:e,type:Ae.DefaultValue,inheritanceLink:null,valueOwner:i}:null}return a||null}requestModule(i){if(this.parentContext.requestModule){const a=this.parentContext.requestModule(i);return!a&&i==="uuid"?Ju:a||null}return i==="uuid"?Ju:null}undo(){Me.log("Undoing, from: ",this.undoableStackValueIndex),this.undoableStackValueIndex=this.undoableStackValueIndex-1,Me.log("To: ",this.undoableStackValueIndex);const i=this.history[this.undoableStackValueIndex+1],a=this.history[this.undoableStackValueIndex];return Me.log("Current change set: ",i==null?void 0:i.toJSON()),Me.log("Change set to restore: ",a==null?void 0:a.toJSON()),sA(i||"initial",a||"initial",this)}redo(){Me.log("Undoing, from: ",this.undoableStackValueIndex),this.undoableStackValueIndex=this.undoableStackValueIndex+1,Me.log("To: ",this.undoableStackValueIndex);const i=this.history[this.undoableStackValueIndex-1],a=this.history[this.undoableStackValueIndex];return Me.log("Current change set: ",i==null?void 0:i.toJSON()),Me.log("Change set to restore: ",a.toJSON()),sA(i||"initial",a||"initial",this)}applyExternalChangeSet(i){const a=i.payload,o=this.addChangeSet(new F(this,i.userAuthor,i.emittedAt,this)),p=a.updated[this.id];if(!p)throw new Error("Project root not found in change set transfer. Cannot apply changes.");const e={...a.added,...a.updated,...a.removed},y=[...Object.keys(a.added),...Object.keys(a.updated),...Object.keys(a.removed)];y.forEach(E=>{var w;if(!e[E]){Me.warn(`Entity '${E}' not found in change set transfer. Cannot apply changes.`);const A=(w=this.get(E))==null?void 0:w.toShallowJSON();throw A?Me.warn("Entity in project: ",A):Me.warn("Entity not in project"),new Error(`Entity '${E}' not found in change set transfer. Cannot apply changes.`)}});const v=new ea(p);return v.flatRecord=e,v.order=y,v.orderEntities(),Me.log("All entities: ",v.order.map((E,w)=>`${w+1}: ${e[E].type} - ${E}`).join(`,
408
+ Alternatively you can update the parent data-type entity with 'update' action to remove the existing value of the field.`}))}return{errors:p,modifiedData:o}}get interactive(){return this.implements.length?this.implements.every(i=>i.interactive):!0}get allMethods(){return R([...this.ownDeclaredMethods,...this.allBaseMethodsFromOriginalParents])}get allProperties(){return R([...this.ownDeclaredProperties,...this.allBasePropertiesFromOriginalParents])}get allBaseMethodsFromOriginalParents(){return R([...this.extends.flatMap(i=>i.allMethods,[]),...this.implements.flatMap(i=>i.allMethods,[])])}get allBasePropertiesFromOriginalParents(){return R([...this.extends.flatMap(i=>i.allProperties,[]),...this.implements.flatMap(i=>i.allProperties,[])])}get allBasePropertiesFromExtendedAndImplementedEntities(){return R([...this.extends.reduce((i,a)=>[...[...a.ownDeclaredProperties,...a.allBasePropertiesFromExtendedAndImplementedEntities].filter(p=>!p.abstract),...i],[]),...this.implements.reduce((i,a)=>[...[...a.ownDeclaredProperties,...a.allBasePropertiesFromExtendedAndImplementedEntities].filter(p=>!p.abstract),...i],[])])}get allBaseMethodsFromExtendedAndImplementedEntities(){return R([...this.extends.reduce((i,a)=>a.type!==f.DefinitionEntity?[]:[...[...a.ownDeclaredMethods,...a.allBaseMethodsFromExtendedAndImplementedEntities].filter(p=>p.type!==f.ActionDescriptor),...i],[]),...this.implements.reduce((i,a)=>a.type!==f.DefinitionEntity?a.abstractMethods:[...[...a.ownDeclaredMethods,...a.allBaseMethodsFromExtendedAndImplementedEntities].filter(p=>p.type!==f.ActionDescriptor),...i],[])])}get extendedPropertiesFromOriginalParents(){return R(this.extends.reduce((i,a)=>{const o=[...a.ownDeclaredProperties,...a.extendedPropertiesFromOriginalParents].filter(p=>!p.abstract);return[...i,...o]},[]))}get implementedPropertiesFromOriginalParents(){return R([...this.extends.reduce((i,a)=>{const o=a.implementedPropertiesFromOriginalParents,p=[...a.ownDeclaredProperties].filter(e=>!!e.abstract&&!o.find(y=>y.name===e.name));return[...o,...p,...i]},[]),...this.implements.reduce((i,a)=>{const o=a.implementedPropertiesFromOriginalParents,p=[...a.ownDeclaredProperties].filter(e=>!!e.abstract&&!o.find(y=>y.name===e.name));return[...o,...p,...i]},[])].filter(i=>!!i.abstract))}get extendedMethodsFromOriginalParents(){return R(this.extends.reduce((i,a)=>{if(a.type!==f.DefinitionEntity)return[];const o=[...a.ownDeclaredMethods,...a.extendedMethodsFromOriginalParents].filter(p=>p.type!==f.ActionDescriptor);return[...i,...o]},[]))}get implementedMethodsFromOriginalParents(){return R([...this.extends.reduce((i,a)=>{const o=a.type===f.DefinitionEntity?a.methods:[],p=[...a.abstractMethods].filter(e=>!o.find(y=>y.name===e.name));return[...o,...p,...i]},[]),...this.implements.reduce((i,a)=>[...a.abstractMethods,...i],[])].filter(i=>i.type===f.ActionDescriptor))}get extendedProperties(){return this.properties.filter(i=>i.isExtendedProperty)}get ownDeclaredProperties(){return this.properties.filter(i=>!i.isExtendedProperty)}get extendedMethods(){return this.methods.filter(i=>i.isExtendedMethod)}get ownDeclaredMethods(){return this.methods.filter(i=>!i.isExtendedMethod)}validateGeneratedUpdate(i){const a=[];return i.parent&&a.push(new ee({id:`${this.id}--${k.InvalidParentUpdate}`,code:k.InvalidParentUpdate,severity:q.Error,message:`Entity of type '${this.type}' with id '${this.id}' cannot have the 'parent' property updated. The 'parent' on an '${this.type}', must be the root project as it is a globally declared entity.`})),{errors:a,modifiedData:i}}subscribeDependents(i){return i.forEach(a=>{this.detachedDependents[a.entity.id]||(this.detachedDependents[a.entity.id]=a)}),this}unsubscribeDependents(i){return i.forEach(a=>{this.detachedDependents[a.entity.id]&&delete this.detachedDependents[a.entity.id]}),this}syncDependents(i=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"sync-dependents"))){const a=[],o=[],p=[],e=[];return Object.values(this.detachedDependents).forEach(y=>{const v=y.entity.afterAllChildrenInitialized(i);a.push(...v.updated),o.push(...v.added),p.push(...v.removed),e.push(...v.affected)}),i==null||i.attemptAutoclose("sync-dependents",this.id),{updated:R(a),added:R(o),removed:R(p),affected:R(e),self:this}}onDetachedDependencyRemoved(i,a,o){const p=[],e=[],y=[],v=[];return a==="implements"&&this.removeImplementation(i),a==="extends"&&this.removeExtension(i),{updated:R(p),added:R(e),removed:R(y),affected:R(v),self:this}}onDetachedDependencyRestored(i,a,o){const p=[],e=[],y=[],v=[];return a==="implements"&&this.addImplementation(i),a==="extends"&&this.addExtension(i),{updated:R(p),added:R(e),removed:R(y),affected:R(v),self:this}}unsubscribeFromDependencies(){return this.implements.forEach(i=>{Wi.includes(i.type)||i.unsubscribeDependents([{entity:this,field:"implements"}])}),this}subscribeToDependencies(){return this.implements.forEach(i=>{Wi.includes(i.type)||i.subscribeDependents([{entity:this,field:"implements"}])}),this.extends.forEach(i=>{Wi.includes(i.type)||i.subscribeDependents([{entity:this,field:"extends"}])}),this}increaseVersion(i){if(i&&!L(i).isValid())throw new Error(`The shared timestamp '${i}' is not a valid ISO 8601 date string.`);return i&&L(i).isSame(L(this.createdAt))?this:(this.previousVersion=this.version,this.version=N.UUID.uuid(),this.createdAt=L(i).toISOString()||L().toISOString(),this)}captureVersion(){var a;const i=((a=this.knownVersions)==null?void 0:a.get(this.version))||new qt(this,this.project);return i.metaSync(this.toMeta(),null),this.knownVersions=this.knownVersions?this.knownVersions.set(this.version,i):new Map([[this.version,i]]),i.properties=[...this.properties],i.methods=[...this.methods],i.abstractMethods=[...this.abstractMethods],i.extends=[...this.extends],i.implements=[...this.implements],i.parent=this.parent,this}recursiveCaptureUpstreamVersions(i){const a=[],o=[],p=[],e=[];if(this.parent){this.parent.increaseVersion(i);const y=this.parent.recursiveCaptureUpstreamVersions(i);a.push(this.parent,...y.updated),o.push(...y.added),p.push(...y.removed)}return{updated:R(a),added:R(o),removed:R(p),affected:R(e),self:this}}async restoreVersion(i){var v;const a=[],o=[],p=[],e=[];if(this.version===i)return{updated:R(a),added:R(o),removed:R(p),affected:R(e),self:this};if(!this.knownVersions){const E=new Map;for(const[w,A]of this.knownVersions||new Map){if(E.set(w,A),A.activeVersion=!1,A.knownVersions)for(const[$,V]of A.knownVersions)E.set($,V);A.knownVersions=null}}let y=(v=this.knownVersions)==null?void 0:v.get(i);if(!y){const E=await this.APILoadVersion({},i);if(!E)throw new Error(`Version with id '${i}' for entity with id '${this.id}' not found.`);y=new qt(E,this.project)}return this.metaSync(y.toShallowJSON(),null),this.previousVersion=y.previousVersion,this.version=y.version,this.createdAt=y.createdAt,this.author=y.author,this.deleted=y.deleted,this.properties=y.properties,this.methods=y.methods,this.abstractMethods=y.abstractMethods,this.extends=y.extends,this.implements=y.implements,this.parent=y.parent,{updated:R(a),added:R(o),removed:R(p),affected:R(e),self:this}}updateWithShallowTransfer(i,a=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"update-with-shallow-transfer"))){if(this.metaSync(i,a),this.version=i.version,this.createdAt=i.createdAt,this.author=i.author,this.deleted=i.deleted,this.previousVersion=i.previousVersion,this.unsubscribeFromDependencies(),i.parent){const o=J(i.parent),p=this.project.get(o),e=this.parent;if(e&&e.id!==(p==null?void 0:p.id)&&this.removeFromParent(a),p)this.setParent(p,a);else throw a==null||a.attemptAutoclose("update-with-shallow-transfer",this.id),new Error(`${this.type} with id '${this.id}' has a 'parent' reference '${o}' that isn't found in the project`)}else throw a==null||a.attemptAutoclose("update-with-shallow-transfer",this.id),new Error(`${this.type} with id '${this.id}' must have a 'parent'`);return i.extends.forEach(o=>{const p=J(o),e=this.project.get(p);e&&this.addExtension(e)}),i.implements.forEach(o=>{const p=J(o),e=this.project.get(p);e&&this.addImplementation(e)}),this.captureVersion(),this.subscribeToDependencies(),a==null||a.attemptAutoclose("update-with-shallow-transfer",this.id),this}hydrateAncestors(){const i=[],a=[],o=[],p=[];if(this.initialData.parent){const e=J(this.initialData.parent),y=this.project.get(e);if(y)this.setParent(y,null),i.push(y);else throw new Error(`${this.type} with id '${this.id}' has a 'parent' reference '${e}' that isn't found in the project`)}else throw new Error(`${this.type} with id '${this.id}' must have a 'parent'`);return this.initialData.extends.forEach(e=>{const y=J(e),v=this.project.get(y);v&&(this.addExtension(v),v.type!==f.BuiltInBaseEntity&&i.push(v))}),this.initialData.implements.forEach(e=>{const y=J(e),v=this.project.get(y);v&&(this.addImplementation(v),v.type!==f.BuiltInBaseEntity&&i.push(v))}),{updated:R(i),added:R(a),removed:R(o),affected:R(p),self:this}}afterAllChildrenInitialized(i=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"after-all-children-initialized"))){const a=[],o=[],p=[],e=[];this.initialized=!0;const{updated:y,added:v,removed:E,affected:w}=this.syncImplementationProperties(i);a.push(...y),o.push(...v),p.push(...E),e.push(...w);const{updated:A,added:$,removed:V,affected:U}=this.addExtendedProperties(i);a.push(...A),o.push(...$),p.push(...V),e.push(...U);const{updated:G,added:K,removed:Z}=this.removeUnrecognizedProperties(i);a.push(...G),o.push(...K),p.push(...Z);const{updated:ie,added:X,removed:ue,affected:re}=this.syncImplementationMethods(i);a.push(...ie),o.push(...X),p.push(...ue),e.push(...re);const{updated:fe,added:Y,removed:H,affected:ce}=this.addExtendedMethods(i);a.push(...fe),o.push(...Y),p.push(...H),e.push(...ce);const{updated:z,added:oe,removed:we}=this.removeUnrecognizedMethods(i);return a.push(...z),o.push(...oe),p.push(...we),this.addSuggestions(),this.captureVersion(),i==null||i.attemptAutoclose("after-all-children-initialized",this.id),{updated:R(a),added:R(o),removed:R(p),affected:R(e),self:this}}addSelfToProject(i=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"add-self-to-project"))){const a=[this],o=[],p=[],e=[];if(this.parent.type===f.DataType){const y=this.parent;y.entity=this,a.push(y)}else this.project.addDefinitionEntity(this);return this.subscribe(),this.subscribeToDependencies(),i==null||i.attemptAutoclose("add-self-to-project",this.id),{updated:R(a),added:R(o),removed:R(p),affected:R(e),self:this}}setParent(i,a=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"set-parent"))){var o;return((o=this.parent)==null?void 0:o.id)!==(i==null?void 0:i.id)&&(this.parent=i,a&&(a==null||a.add(this,S.Updated))),a==null||a.attemptAutoclose("set-parent",this.id),this}addExtension(i){return this.extends.includes(i)||this.extends.push(i),this}removeExtension(i){return this.extends=this.extends.filter(a=>a.id!==i.id),this}addImplementation(i){return this.implements.includes(i)||this.implements.push(i),this}removeImplementation(i){return this.implements=this.implements.filter(a=>a.id!==i.id),this}removeProperty(i){return this.properties=this.properties.filter(a=>a.id!==i.id),this}addMethod(i){return this.methods.includes(i)||(this.methods.push(i),this.suggestedMethods=this.suggestedMethods.filter(a=>a.name!==i.name)),this}removeMethod(i){return this.methods=this.methods.filter(a=>a.id!==i.id),this}addProperty(i){return this.properties.includes(i)||(this.properties.push(i),this.suggestedProperties=this.suggestedProperties.filter(a=>a.name!==i.name)),this}addSuggestedProperty(i){return this.suggestedProperties.includes(i)||this.suggestedProperties.push(i),this}addSuggestedMethod(i){return this.suggestedMethods.includes(i)||this.suggestedMethods.push(i),this}removeSuggestedProperty(i){return this.suggestedProperties=this.suggestedProperties.filter(a=>a.id!==i.id),this}removeSuggestedMethod(i){return this.suggestedMethods=this.suggestedMethods.filter(a=>a.id!==i.id),this}addAbstractMethod(i){return this.abstractMethods.includes(i)||this.abstractMethods.push(i),this}removeAbstractMethod(i){return this.abstractMethods=this.abstractMethods.filter(a=>a.id!==i.id),this}initChildren(i=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"init-children"))){return this.initialized||this.startedInitialization?this:(this.startedInitialization=!0,this.properties=this.initialData.properties.map(a=>{const o=te(a,this.project);return o.setParent(this,null),o.initChildren(i),o}),this.methods=this.initialData.methods.map(a=>{const o=te(a,this.project);return o.setParent(this,null),o.initChildren(i),o}),this.abstractMethods=this.initialData.abstractMethods.map(a=>{const o=te(a,this.project);return o.setParent(this,null),o.initChildren(i),o}),this.extends=this.initialData.extends.map(a=>te(a,this.project)),this.implements=this.initialData.implements.map(a=>te(a,this.project)),this.subscribeToDependencies(),this.afterAllChildrenInitialized(i),i==null||i.attemptAutoclose("init-children",this.id),this)}removeUnrecognizedProperties(i=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"remove-unrecognized-properties"))){const a=[],o=[],p=[],e=[];let y=[...this.properties];y=y.filter(E=>E.parent.id===this.id),y=y.filter(E=>!E.isExtendedProperty);const v=this.implementedPropertiesFromOriginalParents;return y=y.filter(E=>this.interactive&&!E.implements?!1:!v.find(w=>{var A;return w.id===((A=E.implements)==null?void 0:A.id)})),y.forEach(E=>{const w=E.remove({ignoreUpstream:!1},i);p.push(...w.removed),a.push(...w.updated)}),i==null||i.attemptAutoclose("remove-unrecognized-properties",this.id),{updated:R(a),added:R(o),removed:R(p),affected:R(e),self:this}}removeUnrecognizedMethods(i=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"remove-unrecognized-methods"))){const a=[],o=[],p=[],e=[];let y=[...this.methods];y=y.filter(E=>E.parent.id===this.id),y=y.filter(E=>!E.isExtendedMethod);const v=this.implementedMethodsFromOriginalParents;return y=y.filter(E=>this.interactive&&!E.implements?!1:!v.find(w=>{var A;return w.id===((A=E.implements)==null?void 0:A.id)})),y.forEach(E=>{const w=E.remove({ignoreUpstream:!1},i);p.push(...w.removed),a.push(...w.updated)}),i==null||i.attemptAutoclose("remove-unrecognized-methods",this.id),{updated:R(a),added:R(o),removed:R(p),affected:R(e),self:this}}syncImplementationMethods(i=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"sync-implementation-methods"))){const a=[],o=[],p=[],e=[],y=this.methods,v=this.implementedMethodsFromOriginalParents,E=[...this.allBaseMethodsFromExtendedAndImplementedEntities,...y];return v.filter(A=>!E.find(V=>{var U;return((U=V.implements)==null?void 0:U.id)===A.id})).forEach(A=>{if(this.methods.find(G=>{var K;return((K=G.implements)==null?void 0:K.id)===A.id}))return;const V=this.methods.find(G=>{var ue,re;if(G.name===A.name&&!G.implements)return!0;const K=As(this,Ue.CRON_JOB),Z=As(this,Ue.HTTP_ENDPOINT),ie=((ue=G.implements)==null?void 0:ue.id)===Ee["built-in-base-entity"].BUILT_IN_HTTP_ENDPOINT_ENTITY.methods.handler.id,X=((re=G.implements)==null?void 0:re.id)===Ee["built-in-base-entity"].BUILT_IN_CRON_JOB_ENTITY.methods.handler.id;return!!(K&&!X&&!Z&&ie||Z&&!ie&&!K&&X)});if(V&&V.type===f.FunctionDeclaration){V.setImplements(A,i),V.metaSync({name:A.name},i),i==null||i.add(V,S.Updated),i==null||i.add(this,S.Updated);return}const U=A.implementAsFunctionDeclaration(i,this);o.push(U),i==null||i.add(U,S.Added),this.addMethod(U)}),i==null||i.attemptAutoclose("sync-implementation-methods",this.id),{updated:R(a),added:R(o),removed:R(p),affected:R(e),self:this}}syncImplementationProperties(i=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"sync-implementation-properties"))){const a=[],o=[],p=[],e=[],y=this.properties,v=this.implementedPropertiesFromOriginalParents,E=[...this.allBasePropertiesFromExtendedAndImplementedEntities,...y];return v.filter(A=>!E.find(V=>{var U;return((U=V.implements)==null?void 0:U.id)===A.id})).forEach(A=>{if(this.properties.find(G=>{var K;return((K=G.implements)==null?void 0:K.id)===A.id}))return;const V=this.properties.find(G=>G.name===A.name&&!!G.abstract&&!G.implements);if(V){V.setImplements(A,i),V.metaSync({abstract:!1},i),V.afterAllChildrenInitialized(i);return}const U=A.implement(this,i,N.UUID.uuid());o.push(U),i==null||i.add(U,S.Added)}),i==null||i.attemptAutoclose("sync-implementation-properties",this.id),{updated:R(a),added:R(o),removed:R(p),affected:R(e),self:this}}addExtendedMethods(i=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"add-extended-methods"))){const a=[],o=[],p=[],e=[],y=this.methods,E=this.extendedMethodsFromOriginalParents.filter(A=>A.type===f.FunctionDeclaration),w=new Set(y.filter(A=>{var $;return!!(($=A.extends)!=null&&$.id)}).map(A=>A.extends.id));return E.forEach(A=>{if(w.has(A.id))return;w.add(A.id);const $=A.clone(i,this,N.UUID.uuid());$.setExtends(A,i),$.initChildren(i),o.push($),i==null||i.add($,S.Added),this.addMethod($)}),i==null||i.attemptAutoclose("add-extended-methods",this.id),{updated:R(a),added:R(o),removed:R(p),affected:R(e),self:this}}addExtendedProperties(i=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"add-extended-properties"))){const a=[],o=[],p=[],e=[],y=this.properties,v=this.extendedPropertiesFromOriginalParents,E=v.filter(A=>v.find(V=>{var U;return((U=V.implements)==null?void 0:U.id)===A.id})?!1:!A.abstract),w=new Set(y.filter(A=>{var $;return!!(($=A.extends)!=null&&$.id)}).map(A=>A.extends.id));return E.forEach(A=>{if(w.has(A.id))return;w.add(A.id);const $=A.clone(i,this,N.UUID.uuid());$.setExtends(A,i),$.initChildren(i),o.push($),i==null||i.add($,S.Added),this.addProperty($)}),i==null||i.attemptAutoclose("add-extended-properties",this.id),{updated:R(a),added:R(o),removed:R(p),affected:R(e),self:this}}addSuggestions(){return this.implements.forEach(i=>{GS(this,i).forEach(p=>{const e=p.toJSON();e.id=`_suggestion--parent--${this.id}--${p.id}`;const y=te(e,this.project);y.suggestion=!0,y.setParent(this,null),y.initChildren(null),this.addSuggestedProperty(y)}),SS(this,i).forEach(p=>{const e=`_suggestion--parent--${this.id}--${p.id}`,y=p.implementAsFunctionDeclaration(null,this,e),v=te(y,this.project);if(v.suggestion=!0,v.setParent(this,null),v.initChildren(null),this.methods=this.methods.filter(E=>E.id!==e),v.inputs.forEach(E=>{E.suggestion=!0}),v.returnStatements.length){const E=v.returnStatements[0];E.suggestion=!0,E.outputs.forEach(w=>{w.suggestion=!0})}this.addSuggestedMethod(v)})}),this}subscribe(){return this.activeVersion=!0,this.project.subscribeInstance(this),this}unsubscribe(){return this.project.unsubscribeInstance(this),this}metaSync(i,a=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"meta-sync"))){const o=Ur(this,i),p=this.toMeta();return this.name=i.name!==void 0?i.name:p.name,this.codeName=i.codeName!==void 0?i.codeName:p.codeName,this.description=i.description!==void 0?i.description:p.description,this.x=i.x||p.x,this.y=i.y||p.y,this.static=i.static!==void 0?i.static:this.static,this.abstract=i.abstract!==void 0?i.abstract:this.abstract,super.metaSync(i),i.deleted===!0&&!p.deleted?a==null||a.add(this,S.Removed):i.deleted===!1&&p.deleted?a==null||a.add(this,S.Added):o&&(a==null||a.add(this,S.Updated)),a==null||a.attemptAutoclose("meta-sync",this.id),this}async APILoad(i=ve,...a){return await qt.repository.APILoad(this.id,...a),this}async APICreate(i=ve,...a){return await qt.repository.APICreate(this.toShallowJSON(),...a),this}async APIUpdate(i=ve,...a){return await qt.repository.APIUpdate(this.toShallowJSON(),...a),this}async APIDelete(i=ve,...a){return await qt.repository.APIDelete(this.toShallowJSON(),...a),this}async APIClone(i=ve,...a){return await qt.repository.APIClone(this.id,...a),this}async APILoadVersion(i=ve,a,...o){return await qt.repository.APILoadVersion(this.id,a,...o)}removeFromParent(i=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"remove-from-parent"))){const a=[],o=[],p=[],e=[];if(this.parent.type===f.Project)this.parent.removeDefinitionEntity(this);else if(this.parent.type===f.DataType&&this.parent.entity&&this.parent.entity.id===this.id){const y=this.parent.setEntity(null,i);a.push(y)}return i==null||i.attemptAutoclose("remove-from-parent",this.id),{added:R(p),updated:R(a),removed:R(o),affected:R(e),self:this}}remove({ignoreUpstream:i}={ignoreUpstream:!1},a=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"remove-entity"))){const o=[],p=[],e=[],y=[];if(a!=null&&a.hasRemoved(this.id))return a==null||a.attemptAutoclose("remove-entity",this.id),{added:[],updated:[],removed:[],affected:[],self:this};if(p.push(this),this.unsubscribe(),this.unsubscribeFromDependencies(),this.project.subscribeDeletedInstance(this),this.metaSync({deleted:!0},a),Object.values(this.detachedDependents).forEach(v=>{const{updated:E,removed:w,added:A}=v.entity.onDetachedDependencyRemoved(this,v.field,a);o.push(...E),p.push(...w),e.push(...A)}),this.properties.forEach(v=>{const{updated:E,removed:w}=v.remove({ignoreUpstream:!0},a);o.push(...E),p.push(...w)}),this.methods.forEach(v=>{const{updated:E,removed:w}=v.remove({ignoreUpstream:!0},a);o.push(...E),p.push(...w)}),this.abstractMethods.forEach(v=>{const{updated:E,removed:w}=v.remove({ignoreUpstream:!0},a);o.push(...E),p.push(...w)}),this.suggestedProperties.forEach(v=>{const{updated:E,removed:w}=v.remove({ignoreUpstream:!0},a);o.push(...E),p.push(...w)}),this.suggestedMethods.forEach(v=>{const{updated:E,removed:w}=v.remove({ignoreUpstream:!0},a);o.push(...E),p.push(...w)}),!i){const v=this.removeFromParent(a);e.push(...v.added),o.push(...v.updated),p.push(...v.removed),y.push(...v.affected)}return a==null||a.attemptAutoclose("remove-entity",this.id),{added:R(e),updated:R(o),removed:R(p),affected:R(y),self:this}}restore({}={},i=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"restore-entity"))){const a=[],o=[],p=[],e=[];return i!=null&&i.hasAdded(this.id)?(i==null||i.attemptAutoclose("restore-entity",this.id),{added:[],updated:[],removed:[],affected:[],self:this}):(this.subscribe(),this.project.unsubscribeDeletedInstance(this),this.metaSync({deleted:!1},i),Object.values(this.detachedDependents).forEach(y=>{const{updated:v,removed:E,added:w}=y.entity.onDetachedDependencyRestored(this,y.field,i);o.push(...v),p.push(...E),a.push(...w)}),this.properties.forEach(y=>{const{updated:v}=y.restore({},i);o.push(...v)}),this.methods.forEach(y=>{const{updated:v}=y.restore({},i);o.push(...v)}),this.abstractMethods.forEach(y=>{const{updated:v}=y.restore({},i);o.push(...v)}),this.suggestedProperties.forEach(y=>{const{updated:v}=y.restore({},i);o.push(...v)}),this.suggestedMethods.forEach(y=>{const{updated:v}=y.restore({},i);o.push(...v)}),i==null||i.attemptAutoclose("restore-entity",this.id),{added:R(a),updated:R(o),removed:R(p),affected:R(e),self:this})}toFlat(i=new Set){return i.has(this.id)?[]:(i.add(this.id),[this,...this.extends.flatMap(o=>o.toFlat(i)),...this.implements.flatMap(o=>o.toFlat(i)),...this.properties.flatMap(o=>o.toFlat(i)),...this.methods.flatMap(o=>o.toFlat(i)),...this.abstractMethods.flatMap(o=>o.toFlat(i)),...this.parent.toFlat(i)])}toFlatIds(i=new Set){return i.has(this.id)?[]:(i.add(this.id),[this.id,...this.extends.flatMap(o=>o.toFlatIds(i)),...this.implements.flatMap(o=>o.toFlatIds(i)),...this.properties.flatMap(o=>o.toFlatIds(i)),...this.methods.flatMap(o=>o.toFlatIds(i)),...this.abstractMethods.flatMap(o=>o.toFlatIds(i)),...this.parent.toFlatIds(i)])}toMeta(){return{id:this.id,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,codeName:this.codeName,description:this.description,static:this.static,abstract:this.abstract,x:this.x,y:this.y,type:this.type,name:this.name}}toJSON(i=new Set){return i.has(this.id)?this.toReference():(i.add(this.id),{id:this.id,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,type:this.type,name:this.name,codeName:this.codeName,description:this.description,x:this.x,y:this.y,static:this.static,abstract:this.abstract,properties:this.properties.map(a=>a.toJSON(i)),methods:this.methods.map(a=>a.toJSON(i)),abstractMethods:this.abstractMethods.map(a=>a.toJSON(i)),implements:this.implements.map(a=>a.toJSON(i)),extends:this.extends.map(a=>a.toJSON(i)),parent:this.parent.toReference()})}toJSONClone(i=ke){var o,p,e,y,v;let a;return(o=i.seenEntityMaps)!=null&&o.has(this.id)?a=i.seenEntityMaps.get(this.id):(a=i.newId||Gr(this,this.project,i.uuidStrategy),i.seenEntityMaps&&i.seenEntityMaps.set(this.id,a)),(p=i.seenEntities)!=null&&p.has(a)||(e=i.seenEntities)!=null&&e.has(this.id)?this.toReference({seenEntityMaps:i.seenEntityMaps}):((y=i.seenEntities)==null||y.add(a),(v=i.seenEntities)==null||v.add(this.id),{id:a,version:N.UUID.uuid(),createdAt:i.timestamp||L().toISOString(),author:N.sessionAuthor,previousVersion:null,deleted:!1,type:this.type,name:this.name,codeName:this.codeName,description:this.description,x:this.x,y:this.y,static:this.static,abstract:this.abstract,properties:this.properties.map(E=>E.toJSONClone({...i,newId:null})),methods:this.methods.map(E=>E.toJSONClone({...i,newId:null})),abstractMethods:this.abstractMethods.map(E=>E.toJSONClone({...i,newId:null})),implements:this.implements.map(E=>E.type===f.BuiltInBaseEntity?E.toJSON(i.seenEntities):E.toJSONClone({...i,newId:null})),extends:this.extends.map(E=>E.type===f.BuiltInBaseEntity?E.toJSON(i.seenEntities):E.toJSONClone({...i,newId:null})),parent:this.parent.toReference({seenEntityMaps:i.seenEntityMaps})})}toReference(i=ke){var o;let a=this.id;return(o=i.seenEntityMaps)!=null&&o.has(this.id)&&(a=i.seenEntityMaps.get(this.id)),{id:a+"--"+N.UUID.uuid()+"--ref",type:f.GenericReference,entityId:a,version:this.version,entityType:this.type}}toShallowJSON(i=ke){var o;let a=this.id;return(o=i.seenEntityMaps)!=null&&o.has(this.id)&&(a=i.seenEntityMaps.get(this.id)),{id:a,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,name:this.name,codeName:this.codeName,description:this.description,type:this.type,x:this.x,y:this.y,static:this.static,abstract:this.abstract,properties:this.properties.map(p=>p.toReference(i)),methods:this.methods.map(p=>p.toReference(i)),abstractMethods:this.abstractMethods.map(p=>p.toReference(i)),implements:this.implements.map(p=>p.toReference(i)),extends:this.extends.map(p=>p.toReference(i)),parent:this.parent.toReference(i)}}toFlatJSON(i=new Set){return i.has(this.id)?[]:(i.add(this.id),[this.toShallowJSON(),...this.properties.flatMap(o=>o.toFlatJSON(i)),...this.methods.flatMap(o=>o.toFlatJSON(i)),...this.abstractMethods.flatMap(o=>o.toFlatJSON(i)),...this.implements.flatMap(o=>o.toFlatJSON(i)),...this.extends.flatMap(o=>o.toFlatJSON(i)),...this.parent.toFlatJSON(i)])}toGenerationTarget(){const i=this.parent.type===f.Project?void 0:this.parent.id;return{id:this.id,name:this.name,description:this.description,type:this.type,static:this.static,abstract:this.abstract,extends:this.extends.map(a=>a.id),implements:this.implements.map(a=>a.id),parent:i}}toFlatGenerationTarget(i=new Set){return i.has(this.id)?[]:(i.add(this.id),[this.toGenerationTarget(),...this.properties.flatMap(o=>o.toFlatGenerationTarget(i)),...this.methods.flatMap(o=>o.toFlatGenerationTarget(i)),...this.abstractMethods.flatMap(o=>o.toFlatGenerationTarget(i)),...this.implements.filter(o=>o.type===f.DefinitionEntity).flatMap(o=>o.toFlatGenerationTarget(i)),...this.implements.filter(o=>o.type===f.DefinitionEntity).flatMap(o=>o.toFlatGenerationTarget(i)),...this.parent.toFlatGenerationTarget(i)])}clearErrors(){return this.errors=[],this.properties.forEach(i=>i.clearErrors()),this.methods.forEach(i=>i.clearErrors()),this.abstractMethods.forEach(i=>i.clearErrors()),this}validate(){return this.errors=FS(this),{success:!0}}getErrors(){return[...this.errors,...this.properties.flatMap(a=>a.getErrors()),...this.methods.flatMap(a=>a.getErrors()),...this.abstractMethods.flatMap(a=>a.getErrors())]}getShallowErrors(){return this.errors}clone(i=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"clone-entity")),a=null,o=null,p=!0){var G,K,Z;let e=Fr(a,this);const y=this.toJSON(),v=o||N.UUID.uuid();y.properties=[],y.methods=[],y.abstractMethods=[];const E=v.split("-id"),w=E[E.length-1||0]||v;y.id=v,y.version=N.UUID.uuid(),y.createdAt=(i==null?void 0:i.timestamp)||L().toISOString(),y.author=(i==null?void 0:i.author)||"1",y.previousVersion=null,y.deleted=!1;const A=lr(y,e);a&&A.setParent(a,null),p&&A.subscribe(),A.initChildren(i),i==null||i.add(A,S.Added);const $=(G=this.properties)==null?void 0:G.map(ie=>ie.clone(i,A,N.UUID.uuid(),p));A.properties=$;const V=(K=this.methods)==null?void 0:K.map((ie,X)=>ie.clone(i,A,w+"-method-"+X+"-id",p));A.methods=V;const U=(Z=this.abstractMethods)==null?void 0:Z.map((ie,X)=>ie.clone(i,A,w+"-abstract-method-"+X+"-id",p));return A.abstractMethods=U,i==null||i.attemptAutoclose("clone-entity",this.id),A}getFunctionDeclaration(i){return this.methods.find(a=>a.id===i)}implement(i,a=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"implement-definition-entity")),o){const p=wm(this,i,a,o);return a==null||a.attemptAutoclose("implement-definition-entity",this.id),p}getAllInteractiveMethods(){const i=this.implements.filter(o=>o.type===f.DefinitionEntity||o.type===f.BuiltInBaseEntity&&o.interactive);return R([...this.methods,...this.extends.flatMap(o=>o.getAllInteractiveMethods()),...i.flatMap(o=>o.getAllInteractiveMethods())])}inferFromInputs(i,a=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"infer-definition-entity-from-inputs"))){const o=[],p=[],e=[],y=[];if(this.parent.type!==f.DataType||!this.parent.inferred)return a==null||a.attemptAutoclose("infer-definition-entity-from-inputs",this.id),{added:[],updated:[],removed:[],affected:[],self:this};const v=[];i.forEach(A=>{v.find(V=>ne(V,this.project)===ne(A,this.project))||v.push(A)});const E=this.properties.filter(A=>!A.dataType);v.forEach(A=>{var ie,X,ue;const $=E.find(re=>ne(re,this.project)===ne(A,this.project));if(!$)return;const U=Vi(A.parent).getMasterInputWithValueWritterFromAllInstances(A),G=yn(U,a),K=G==null?void 0:G.clone(a,$,N.UUID.uuid(),!0);K&&((ie=$.dataType)==null||ie.merge(K,a),K.id!==((X=$.dataType)==null?void 0:X.id)&&K.remove({ignoreUpstream:!1},a),$.dataType&&($.dataType.metaSync({inferred:!0,like:!0},a),$.setDataType($.dataType,a),a==null||a.add($,S.Affected)));let Z=null;if(A.declaration&&$.id!==((ue=A.declaration)==null?void 0:ue.id)&&(Z=A.declaration),A.setDeclaration($,a),a==null||a.add(A,S.Updated),Z){const{updated:re,removed:fe}=Z.remove({ignoreUpstream:!1},a);p.push(...re),e.push(...fe)}});const w=[];return v.forEach(A=>{if(!A.declaration){w.push(A);return}}),w.length===0?(a==null||a.attemptAutoclose("infer-definition-entity-from-inputs",this.id),{added:[],updated:[],removed:[],affected:[],self:this}):(w.forEach(A=>{var X,ue,re,fe;const $=this.properties.find(Y=>ne(Y,this.project)===ne(A,this.project));if($){if(A.setDeclaration($,a),!$.getDataType(a)){const H=Vi(A.parent).getMasterInputWithValueWritterFromAllInstances(A),ce=yn(H),z=ce==null?void 0:ce.clone(a,$,N.UUID.uuid(),!0);z&&((X=$.dataType)==null||X.merge(z,a),z.id!==((ue=$.dataType)==null?void 0:ue.id)&&z.remove({ignoreUpstream:!1},a),$.dataType&&($.dataType.metaSync({inferred:!0,like:!0},a),$.setDataType($.dataType,a),a==null||a.add($,S.Affected)))}return}const V=ta.new(a);V.parent=this.toReference(),V.index=A.index,V.name=ne(A,this.project),V.codeName=A.codeName,V.description=A.description;const U=te(V,this.project);U.hydrateAncestors(),a==null||a.add(U,S.Added),U.setParent(this,a),U.initChildren(a);const K=Vi(A.parent).getMasterInputWithValueWritterFromAllInstances(A),Z=yn(K),ie=Z==null?void 0:Z.clone(a,U,N.UUID.uuid(),!0);return ie&&((re=U.dataType)==null||re.merge(ie,a),ie.id!==((fe=U.dataType)==null?void 0:fe.id)&&ie.remove({ignoreUpstream:!1},a),U.dataType&&(U.dataType.metaSync({inferred:!0,like:!0},a),U.setDataType(U.dataType,a),a==null||a.add(U,S.Affected))),this.addProperty(U),A.setDeclaration(U,a),a==null||a.add(A,S.Updated),U}),a==null||a.attemptAutoclose("infer-definition-entity-from-inputs",this.id),{added:R(o),updated:R(p),removed:R(e),affected:R(y),self:this})}getRawDefaultValue(){const i={};return this.properties.forEach(a=>{var p;if(!Zb(a))return;const o=jr(a.name);i[o]=((p=a.getDefaultValue())==null?void 0:p.value)||null}),i}getActiveRawDefaultValue(){const i={};return this.properties.forEach(a=>{var e;if(!Zb(a))return;const o=jr(a.name),p=(e=this.project.requestActiveDynamicValue(a))==null?void 0:e.value;i[o]=(p==null?void 0:p.value)||null}),i}};g(qt,"repository",{APICreate:async(i,...a)=>i,APIUpdate:async(i,...a)=>i,APIDelete:async(i,...a)=>i,APIClone:async(i,...a)=>{},APILoad:async(i,...a)=>null,APILoadVersion:async(i,a,...o)=>null}),g(qt,"type",f.DefinitionEntity),g(qt,"USER_MANAGED_PARENT_TYPES",[f.Project,f.DataType]),g(qt,"PARENT_TYPES",[...qt.USER_MANAGED_PARENT_TYPES]),g(qt,"MUTABLE_BASE_PROPERTIES",["name","codeName","description","static","abstract"]),g(qt,"INMUTABLE_BASE_PROPERTIES",["id","type","version","createdAt","author","previousVersion"]),g(qt,"BASE_PROPERTIES",[...qt.MUTABLE_BASE_PROPERTIES,...qt.INMUTABLE_BASE_PROPERTIES]),g(qt,"MUTABLE_META_PROPERTIES",[...qt.MUTABLE_BASE_PROPERTIES,"x","y"]),g(qt,"INMUTABLE_META_PROPERTIES",[...qt.INMUTABLE_BASE_PROPERTIES]),g(qt,"META_PROPERTIES",[...qt.MUTABLE_META_PROPERTIES,...qt.INMUTABLE_META_PROPERTIES]),g(qt,"MUTABLE_UPSTREAM_PROPERTIES",["extends","implements"]),g(qt,"INMUTABLE_UPSTREAM_PROPERTIES",["parent"]),g(qt,"UPSTREAM_PROPERTIES",[...qt.MUTABLE_UPSTREAM_PROPERTIES,...qt.INMUTABLE_UPSTREAM_PROPERTIES]),g(qt,"MUTABLE_DOWNSTREAM_PROPERTIES",["properties","methods","abstractMethods"]),g(qt,"INMUTABLE_DOWNSTREAM_PROPERTIES",[]),g(qt,"DOWNSTREAM_PROPERTIES",[...qt.MUTABLE_DOWNSTREAM_PROPERTIES,...qt.INMUTABLE_DOWNSTREAM_PROPERTIES]),g(qt,"PROPERTIES",[...qt.META_PROPERTIES,...qt.UPSTREAM_PROPERTIES,...qt.DOWNSTREAM_PROPERTIES]);let ra=qt;function MAe(d){const u=Ehe(),i=d.toJSON();u.safeParse(i).success;const o=[];return vr(d.errors,o)}const pf=class pf extends Nr{constructor(i,a){super(i);g(this,"initialData");g(this,"id");g(this,"version");g(this,"name");g(this,"description",null);g(this,"type",f.BuiltInBaseEntity);g(this,"abstract",!1);g(this,"static");g(this,"properties",[]);g(this,"methods",[]);g(this,"abstractMethods",[]);g(this,"extends",[]);g(this,"interactive",!1);g(this,"errors",[]);g(this,"project");this.initialData=this.initialData||i,this.project=this.project||a,this.id=this.id||i.id,this.version=this.version||i.version,this.name=this.name||i.name,this.static=this.static||i.static,this.interactive=this.interactive||i.interactive,this.abstract=i.abstract,this.properties=this.initialData.properties.map(o=>{const p=te(o,this.project);return p.setParent(this,null),p.initChildren(null),p}),this.methods=this.initialData.methods.map(o=>{const p=te(o,this.project);return p.setParent(this,null),p.initChildren(null),p}),this.abstractMethods=this.initialData.abstractMethods.map(o=>{const p=te(o,this.project);return p.setParent(this,null),p.initChildren(null),p}),this.extends=this.initialData.extends.map(o=>te(o,this.project))}get allMethods(){return R([...this.ownDeclaredMethods,...this.allBaseMethodsFromOriginalParents])}get allProperties(){return R([...this.ownDeclaredProperties,...this.allBasePropertiesFromOriginalParents])}get allBaseMethodsFromOriginalParents(){return R([...this.extends.flatMap(i=>i.allMethods,[])])}get allBasePropertiesFromOriginalParents(){return R([...this.extends.flatMap(i=>i.allProperties,[])])}get allBasePropertiesFromExtendedAndImplementedEntities(){return R(this.extends.reduce((i,a)=>{const o=[...a.ownDeclaredProperties,...a.allBasePropertiesFromExtendedAndImplementedEntities].filter(p=>!p.abstract);return[...i,...o]},[]))}get extendedPropertiesFromOriginalParents(){return R(this.extends.reduce((i,a)=>{const o=[...a.ownDeclaredProperties,...a.extendedPropertiesFromOriginalParents].filter(p=>!p.abstract);return[...i,...o]},[]))}get implementedPropertiesFromOriginalParents(){return R([...this.extends.reduce((i,a)=>{const o=a.implementedPropertiesFromOriginalParents,p=[...a.ownDeclaredProperties].filter(e=>!!e.abstract&&!o.find(y=>y.name===e.name));return[...o,...p,...i]},[])])}get extendedProperties(){return this.properties.filter(i=>i.isExtendedProperty)}get ownDeclaredMethods(){return this.methods.filter(i=>!i.isExtendedMethod)}get ownDeclaredProperties(){return this.properties.filter(i=>!i.isExtendedProperty)}subscribe(){return this.project.subscribeInstance(this),this}unsubscribe(){return this.project.unsubscribeInstance(this),this}async APILoad(i=ve,...a){return await pf.repository.APILoad(this.id,...a),this}toFlat(i=new Set){return i.has(this.id)?[]:(i.add(this.id),[this,...this.properties.flatMap(o=>o.toFlat(i)),...this.methods.flatMap(o=>o.toFlat(i)),...this.abstractMethods.flatMap(o=>o.toFlat(i)),...this.extends.flatMap(o=>o.toFlat(i))])}toFlatIds(i=new Set){return i.has(this.id)?[]:(i.add(this.id),[this.id,...this.properties.flatMap(o=>o.toFlatIds(i)),...this.methods.flatMap(o=>o.toFlatIds(i)),...this.abstractMethods.flatMap(o=>o.toFlatIds(i)),...this.extends.flatMap(o=>o.toFlatIds(i))])}toMeta(){return{id:this.id,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,description:this.description,interactive:this.interactive,abstract:this.abstract,static:this.static,type:this.type,name:this.name}}toJSON(i=new Set){return i.has(this.id)?this.toReference():(i.add(this.id),{id:this.id,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,type:this.type,name:this.name,description:this.description,abstract:this.abstract,static:this.static,interactive:this.interactive,properties:this.properties.map(a=>a.toJSON(i)),methods:this.methods.map(a=>a.toJSON(i)),abstractMethods:this.abstractMethods.map(a=>a.toJSON(i)),extends:this.extends.map(a=>a.toJSON(i))})}toReference(i=ke){return{id:this.id+"--"+N.UUID.uuid()+"--ref",type:f.GenericReference,entityId:this.id,version:this.version,entityType:this.type}}toShallowJSON(i=ke){return{id:this.id,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,type:this.type,name:this.name,description:this.description,abstract:this.abstract,static:this.static,interactive:this.interactive,properties:this.properties.map(a=>a.toReference()),methods:this.methods.map(a=>a.toReference()),abstractMethods:this.abstractMethods.map(a=>a.toReference()),extends:this.extends.map(a=>a.toReference())}}toFlatJSON(i=new Set){return i.has(this.id)?[]:(i.add(this.id),[this.toShallowJSON(),...this.properties.flatMap(o=>o.toFlatJSON(i)),...this.methods.flatMap(o=>o.toFlatJSON(i)),...this.abstractMethods.flatMap(o=>o.toFlatJSON(i))])}toGenerationTarget(){return{id:this.id,type:this.type,name:this.name,description:this.description,static:this.static,abstract:this.abstract,interactive:this.interactive,extends:this.extends.map(i=>i.id)}}toFlatGenerationTarget(i=new Set){return i.has(this.id)?[]:(i.add(this.id),[this.toGenerationTarget(),...this.properties.flatMap(o=>o.toFlatGenerationTarget(i)),...this.methods.flatMap(o=>o.toFlatGenerationTarget(i)),...this.abstractMethods.flatMap(o=>o.toFlatGenerationTarget(i))])}clearErrors(){return this.errors=[],this.properties.forEach(i=>i.clearErrors()),this.methods.forEach(i=>i.clearErrors()),this.abstractMethods.forEach(i=>i.clearErrors()),this}validate(){const i=MAe(this);return this.errors=i,{success:!0}}getErrors(){return[...this.errors,...this.properties.flatMap(a=>a.getErrors()),...this.methods.flatMap(a=>a.getErrors()),...this.abstractMethods.flatMap(a=>a.getErrors())]}getShallowErrors(){return this.errors}implement(i,a=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),null,!0,"implement-built-in-base-entity")),o){const p=wm(this,i,a,o);return a==null||a.attemptAutoclose("implement-built-in-base-entity",this.id),p}getAllInteractiveMethods(){const i=[];return this.interactive&&(i.push(...this.methods),this.extends.filter(o=>o.type===f.BuiltInBaseEntity&&o.interactive||o.type===f.PrimitiveEntity).forEach(o=>{o instanceof pf&&i.push(...o.getAllInteractiveMethods())})),R(i)}};g(pf,"repository",{APILoad:async(i,...a)=>null});let ia=pf;function BAe(d){const u=dhe(),i=d.toJSON();u.safeParse(i).success;const o=[];return vr(d.errors,o)}const qm=class qm extends Nr{constructor(i,a){super(i);g(this,"initialData");g(this,"id");g(this,"name");g(this,"description",null);g(this,"type",f.PrimitiveEntity);g(this,"static");g(this,"abstract");g(this,"properties",[]);g(this,"methods",[]);g(this,"abstractMethods",[]);g(this,"extends",[]);g(this,"errors",[]);g(this,"project");this.initialData=i,this.project=a,this.id=i.id,this.name=i.name,this.static=i.static,this.abstract=i.abstract,this.properties=this.initialData.properties.map(o=>{const p=te(o,this.project);return p.setParent(this,null),p.initChildren(null),p}),this.methods=this.initialData.methods.map(o=>{const p=te(o,this.project);return p.parent=this,p}),this.abstractMethods=this.initialData.abstractMethods.map(o=>{const p=te(o,this.project);return p.parent=this,p})}get allMethods(){return R([...this.ownDeclaredMethods,...this.allBaseMethodsFromOriginalParents])}get allProperties(){return R([...this.ownDeclaredProperties,...this.allBasePropertiesFromOriginalParents])}get allBaseMethodsFromOriginalParents(){return R([...this.extends.flatMap(i=>i.allMethods,[])])}get allBasePropertiesFromOriginalParents(){return R([...this.extends.flatMap(i=>i.allProperties,[])])}get allBasePropertiesFromExtendedAndImplementedEntities(){return R(this.extends.reduce((i,a)=>{const o=[...a.ownDeclaredProperties,...a.allBasePropertiesFromExtendedAndImplementedEntities].filter(p=>!p.abstract);return[...i,...o]},[]))}get extendedPropertiesFromOriginalParents(){return R(this.extends.reduce((i,a)=>{const o=[...a.ownDeclaredProperties,...a.extendedPropertiesFromOriginalParents].filter(p=>!p.abstract);return[...i,...o]},[]))}get implementedPropertiesFromOriginalParents(){return R([...this.extends.reduce((i,a)=>{const o=a.implementedPropertiesFromOriginalParents,p=[...a.ownDeclaredProperties].filter(e=>!!e.abstract&&!o.find(y=>y.name===e.name));return[...o,...p,...i]},[])])}get extendedProperties(){return this.properties.filter(i=>i.isExtendedProperty)}get ownDeclaredMethods(){return this.methods.filter(i=>!i.isExtendedMethod)}get ownDeclaredProperties(){return this.properties.filter(i=>!i.isExtendedProperty)}subscribe(){return this.project.subscribeInstance(this),this}unsubscribe(){return this.project.unsubscribeInstance(this),this}async APILoad(i=ve,...a){return await qm.repository.APILoad(this.id,...a),this}toFlat(i=new Set){return i.has(this.id)?[]:(i.add(this.id),[this,...this.properties.flatMap(o=>o.toFlat(i)),...this.methods.flatMap(o=>o.toFlat(i)),...this.abstractMethods.flatMap(o=>o.toFlat(i))])}toFlatIds(i=new Set){return i.has(this.id)?[]:(i.add(this.id),[this.id,...this.properties.flatMap(o=>o.toFlatIds(i)),...this.methods.flatMap(o=>o.toFlatIds(i)),...this.abstractMethods.flatMap(o=>o.toFlatIds(i))])}toMeta(){return{id:this.id,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,description:this.description,static:this.static,abstract:this.abstract,type:this.type,name:this.name}}toJSON(i=new Set){return i.has(this.id)?this.toReference():(i.add(this.id),{id:this.id,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,type:this.type,name:this.name,description:this.description,static:this.static,abstract:this.abstract,properties:this.properties.map(a=>a.toJSON(i)),methods:this.methods.map(a=>a.toJSON(i)),abstractMethods:this.abstractMethods.map(a=>a.toJSON(i)),extends:this.extends.map(a=>a.toJSON(i))})}toReference(i=ke){return{id:this.id+"--"+N.UUID.uuid()+"--ref",type:f.GenericReference,entityId:this.id,version:this.version,entityType:this.type}}toShallowJSON(i=ke){return{id:this.id,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,type:this.type,name:this.name,description:this.description,abstract:this.abstract,static:this.static,properties:this.properties.map(a=>a.toReference()),methods:this.methods.map(a=>a.toReference()),abstractMethods:this.abstractMethods.map(a=>a.toReference()),extends:this.extends.map(a=>a.toReference())}}toFlatJSON(i=new Set){return i.has(this.id)?[]:(i.add(this.id),[this.toShallowJSON(),...this.properties.flatMap(o=>o.toFlatJSON(i)),...this.methods.flatMap(o=>o.toFlatJSON(i)),...this.abstractMethods.flatMap(o=>o.toFlatJSON(i))])}toGenerationTarget(){return{id:this.id,type:this.type,name:this.name,description:this.description,static:this.static,abstract:this.abstract,extends:this.extends.map(i=>i.id)}}toFlatGenerationTarget(i=new Set){return i.has(this.id)?[]:(i.add(this.id),[this.toGenerationTarget(),...this.properties.flatMap(o=>o.toFlatGenerationTarget(i)),...this.methods.flatMap(o=>o.toFlatGenerationTarget(i)),...this.abstractMethods.flatMap(o=>o.toFlatGenerationTarget(i))])}clearErrors(){return this.errors=[],this.properties.forEach(i=>i.clearErrors()),this.methods.forEach(i=>i.clearErrors()),this.abstractMethods.forEach(i=>i.clearErrors()),this}validate(){const i=BAe(this);return this.errors=i,{success:!0}}getErrors(){return[...this.errors,...this.properties.flatMap(a=>a.getErrors()),...this.methods.flatMap(a=>a.getErrors()),...this.abstractMethods.flatMap(a=>a.getErrors())]}getShallowErrors(){return this.errors}getAllInteractiveMethods(){const i=[];return i.push(...this.methods),this.extends.filter(o=>o.type===f.BuiltInBaseEntity&&o.interactive||o.type===f.PrimitiveEntity).forEach(o=>{o instanceof ia&&i.push(...o.getAllInteractiveMethods())}),R(i)}};g(qm,"repository",{APILoad:async(i,...a)=>null});let ss=qm;function lr(d,u){if(!d)throw new Error("Entity is null");const i=u.get(d.id);switch(d.type){case f.LiteralValue:return i||new ki(d,u);case f.DefinitionEntity:return i||new ra(d,u);case f.PrimitiveEntity:return i||new ss(d,u);case f.FunctionDeclaration:return i||new io(d,u);case f.GlobalEvent:return i||new ao(d,u);case f.DataType:return i||new vs(d,u);case f.Property:return i||new ta(d,u);case f.FunctionCall:return i||new Ao(d,u);case f.Condition:return i||new oo(d,u);case f.Operation:return i||new so(d,u);case f.VariableDeclaration:return i||new uo(d,u);case f.VariableInstance:return i||new lo(d,u);case f.OutputMap:return i||new mn(d,u);case f.ReturnDeclaration:return i||new is(d,u);case f.ArgumentDeclaration:return i||new Jn(d,u);case f.InputMap:return i||new Yn(d,u);case f.Project:return i||new N(d);case f.InstalledProject:return i||new po(d,u);case f.ActionDescriptor:return i||new wt(d,u);case f.ReturnStatement:return i||new no(d,u);case f.Loop:return i||new Si(d,u);case f.Search:return i||new co(d,u);case f.ValueDescriptor:return i||new vn(d,u);case f.BuiltInBaseEntity:return i||new ia(d,u);case f.InternalCall:return i||new fo(d,u);case f.ContinueStatement:return i||new Ni(d,u);case f.BreakStatement:return i||new ho(d,u);case f.GenericReference:return u.get(d.entityId);default:throw new Error("Invalid entity type: "+d.type)}}function te(d,u){if(!d)throw new Error("Entity is null");const i=lr(d,u);return i.subscribe(),i}function UAe(d,u){if(!d)throw new Error("Entity is null");switch(d.type){case f.LiteralValue:return ki.fromGenerationTarget(d,u);case f.DefinitionEntity:return ra.fromGenerationTarget(d,u);case f.FunctionDeclaration:return io.fromGenerationTarget(d,u);case f.GlobalEvent:return ao.fromGenerationTarget(d,u);case f.DataType:return vs.fromGenerationTarget(d,u);case f.Property:return ta.fromGenerationTarget(d,u);case f.FunctionCall:return Ao.fromGenerationTarget(d,u);case f.Condition:return oo.fromGenerationTarget(d,u);case f.Operation:return so.fromGenerationTarget(d,u);case f.VariableDeclaration:return uo.fromGenerationTarget(d,u);case f.VariableInstance:return lo.fromGenerationTarget(d,u);case f.OutputMap:return mn.fromGenerationTarget(d,u);case f.ReturnDeclaration:return is.fromGenerationTarget(d,u);case f.ArgumentDeclaration:return Jn.fromGenerationTarget(d,u);case f.InputMap:return Yn.fromGenerationTarget(d,u);case f.InstalledProject:return po.fromGenerationTarget(d,u);case f.ReturnStatement:return no.fromGenerationTarget(d,u);case f.Loop:return Si.fromGenerationTarget(d,u);case f.Search:return co.fromGenerationTarget(d,u);case f.ActionDescriptor:return wt.fromGenerationTarget(d,u);case f.ValueDescriptor:return vn.fromGenerationTarget(d,u);case f.InternalCall:return fo.fromGenerationTarget(d,u);case f.ContinueStatement:return Ni.fromGenerationTarget(d,u);case f.BreakStatement:return ho.fromGenerationTarget(d,u);default:throw new Error("Invalid entity type: "+d.type)}}const ke={seenEntityMaps:new Map,seenEntities:new Set,timestamp:L().toISOString()};class kS{constructor(){g(this,"initialData")}}const ve={cascade:!1},qS={APILoad:async(d,...u)=>null},jAe={APICreate:async(d,...u)=>d,APIUpdate:async(d,...u)=>d,APIDelete:async(d,...u)=>d,APIClone:async(d,...u)=>{},APILoadVersion:async(d,u,...i)=>null,...qS};class xAe{}class FAe extends kS{}class GAe{}class SAe{}class KAe{}class tw{}class kAe extends tw{}class qAe extends tw{}class ZAe{}class df{static initReadsValue(u){if(u.initialData.readsValue&&u.initialData.readsValue.type!==f.GenericReference)u.readsValue=te(u.initialData.readsValue,u.project);else if(u.initialData.readsValue&&u.initialData.readsValue.type===f.GenericReference){const i=Ji(u.initialData.readsValue,u.project);i&&(u.readsValue=i)}if(u.readsValue){if(mt.includes(u.readsValue.type)){let i=u.parent;Mr.includes(i.type)||(i=i.parent);const a=u.type===f.InputMap&&u.parent.type===f.Loop;a&&(i=u.parent.parent),u.readsValue.setParent(i,null),u.readsValue.initChildren(null),i&&i.type!==f.Project&&!a&&i.detachedChildren.includes(u)?i.replaceDetachedChild(u,u.readsValue):i&&i.type!==f.Project&&!a&&i.subscribeDetachedChild(u.readsValue)}u.readsValue.addValueReader(u,null)}return u.readsValue}}class uf{static initWritesValues(u,i){const a=u.initialData.writesValues.reduce((p,e)=>{if(e.type===f.GenericReference||u.writesValues.some(v=>v.id===e.id))return p;const y=te(e,u.project);return y.setValueWriter(u,null),mt.includes(y.type)&&(y.setParent(i,null),y.initChildren(null)),[...p,y]},[]),o=[...u.writesValues];return u.writesValues=R([...o,...a]),u.writesValues}}class JAe{}var Vr=(d=>(d.PROJECT_INITIALIZED="project-initialized",d.CHANGE_SET_CLOSED="change-set-closed",d.EXPLICIT_DEFINITION_ENTITY_ADDED="explicit-definition-entity-added",d.EXPLICIT_DEFINITION_ENTITY_REMOVED="explicit-definition-entity-removed",d.EXPLICIT_DEFINITION_ENTITY_UPDATED="explicit-definition-entity-updated",d.PERSISTED_DEFINITION_ENTITY_ADDED="persisted-definition-entity-added",d.PERSISTED_DEFINITION_ENTITY_REMOVED="persisted-definition-entity-removed",d.PERSISTED_DEFINITION_ENTITY_UPDATED="persisted-definition-entity-updated",d.RELATIONAL_DATABASE_DEFINITION_ENTITY_ADDED="relational-database-definition-entity-added",d.RELATIONAL_DATABASE_DEFINITION_ENTITY_REMOVED="relational-database-definition-entity-removed",d.RELATIONAL_DATABASE_DEFINITION_ENTITY_UPDATED="relational-database-definition-entity-updated",d))(Vr||{});const rw={...rb,events:new Kp},ZS={requestActiveDynamicValue:d=>null,...rw},pt=class pt extends Nr{constructor(i,a={...ZS,events:new Kp}){super(i);g(this,"initialData");g(this,"id");g(this,"type",f.Project);g(this,"name",null);g(this,"description",null);g(this,"x");g(this,"y");g(this,"entities",[]);g(this,"projects",[]);g(this,"functions",[]);g(this,"events",[]);g(this,"variableDeclarations",[]);g(this,"variableInstances",[]);g(this,"conditions",[]);g(this,"operations",[]);g(this,"functionCalls",[]);g(this,"loops",[]);g(this,"searches",[]);g(this,"primitives",[]);g(this,"builtInBaseEntities",[]);g(this,"operationDeclarations",[]);g(this,"globalEventActionDescriptors",[]);g(this,"loopDeclarations",[]);g(this,"loopDeclarationsBodies",[]);g(this,"conditionDeclarations",[]);g(this,"valueDescriptors",[]);g(this,"dataTypes",[]);g(this,"project");g(this,"instances",{});g(this,"builtInInstances",{});g(this,"deletedInstances",{});g(this,"errors",[]);g(this,"references",[]);g(this,"history",[]);g(this,"undoableStackValueIndex",-1);g(this,"detachedDependents",{});g(this,"knownVersions",null);g(this,"activeVersion",!1);g(this,"initialized",!1);g(this,"startedInitialization",!1);g(this,"onCloseChangeSetCallback",null);g(this,"onAddChangeSetCallback",null);g(this,"onDiscardChangeSetCallback",null);if(this.parentContext=a,this.initialData=i,this.id=i.id,this.name=i.name,this.description=i.description,this.x=0,this.y=0,this.instances[this.id]=this,!pt.UUID)throw new Error("UUID module is already initialized. Please inject a valid UUID module.")}static get UUID(){return this.parentContext.requestModule("uuid")}static new(i=null){return{id:pt.UUID.uuid(),version:pt.UUID.uuid(),createdAt:(i==null?void 0:i.timestamp)||L().toISOString(),author:(i==null?void 0:i.author)||pt.sessionAuthor,previousVersion:null,deleted:!1,type:f.Project,name:"",description:"",entities:[],functions:[],events:[],projects:[],variableDeclarations:[],variableInstances:[],conditions:[],operations:[],functionCalls:[],loops:[],searches:[]}}static validateGenerationTarget(i,a){let o=JSON.parse(JSON.stringify(i));const p=[];return p.push(...Br(o)),{errors:p,modifiedData:o}}get off(){return this.parentContext.events.off}get on(){return this.parentContext.events.on}get emit(){return this.parentContext.events.emit}async closePendingChangeSets(){const i=this.history.find(a=>a.dirty&&!a.open);i&&await this.closeChangeSet(i)}async onCloseChangeSet(i){this.onCloseChangeSetCallback=i,await this.closePendingChangeSets()}onAddChangeSet(i){this.onAddChangeSetCallback=i}onDiscardChangeSet(i){this.onDiscardChangeSetCallback=i}async closeChangeSet(i){const a=this.history.findIndex(e=>e.id===i.id),o=this.history.slice(0,a),p=o[o.length-1];if(!(p!=null&&p.dirty)&&this.onCloseChangeSetCallback){(await this.onCloseChangeSetCallback(i)).success&&(i.dirty=!1,this.emit("change-set-closed",i),this.closePendingChangeSets());return}}toLatestChangeSet(i,a,o,p=!1,e="here-this"){if(!this.history.length)return new F(this,i,a,o,p,e);const y=this.history[this.history.length-1];return y.open?y:this.addChangeSet(new F(this,i,a,o,p,e))}addChangeSet(i){var p,e;if(!this.history.length)return this.undoableStackValueIndex=aA(this.undoableStackValueIndex,this.history,i),(p=this.onAddChangeSetCallback)==null||p.call(this,i,this.undoableStackValueIndex),i;const a=this.history.find(y=>y.id===(i==null?void 0:i.id));if(a)return a;const o=this.history.find(y=>y.open);if(o)throw Me.warn("Previous still open: ",o),Me.warn("New change set: ",i),new Error(`There is already an open change-set with id '${o.id}'.`);return this.undoableStackValueIndex=aA(this.undoableStackValueIndex,this.history,i),(e=this.onAddChangeSetCallback)==null||e.call(this,i,this.undoableStackValueIndex),i}discardChangeSet(i){var o;const a=this.history.findIndex(p=>p.id===(i==null?void 0:i.id));return a!==-1&&(this.history.splice(a,1),this.undoableStackValueIndex=this.undoableStackValueIndex-1,(o=this.onDiscardChangeSetCallback)==null||o.call(this,i)),this}validateGeneratedUpdate(i){return{errors:[],modifiedData:i}}subscribeDependents(i){return i.forEach(a=>{this.detachedDependents[a.entity.id]||(this.detachedDependents[a.entity.id]=a)}),this}unsubscribeDependents(i){return i.forEach(a=>{this.detachedDependents[a.entity.id]&&delete this.detachedDependents[a.entity.id]}),this}syncDependents(i=this.project.addChangeSet(new F(this.project,pt.sessionAuthor,L().toISOString(),this,!0,"sync-dependents"))){const a=[],o=[],p=[],e=[];return Object.values(this.detachedDependents).forEach(y=>{const v=y.entity.afterAllChildrenInitialized(i);a.push(...v.updated),o.push(...v.added),p.push(...v.removed),e.push(...v.affected)}),i==null||i.attemptAutoclose("sync-dependents",this.id),{updated:R(a),added:R(o),removed:R(p),affected:R(e),self:this}}onDetachedDependencyRemoved(i,a,o){const p=[],e=[],y=[],v=[];return{updated:R(p),added:R(e),removed:R(y),affected:R(v),self:this}}onDetachedDependencyRestored(i,a,o){const p=[],e=[],y=[],v=[];return{updated:R(p),added:R(e),removed:R(y),affected:R(v),self:this}}unsubscribeFromDependencies(){return this}subscribeToDependencies(){return this}increaseVersion(i){if(i&&!L(i).isValid())throw new Error(`The shared timestamp '${i}' is not a valid ISO 8601 date string.`);return i&&L(i).isSame(L(this.createdAt))?this:(this.previousVersion=this.version,this.version=pt.UUID.uuid(),this.createdAt=L(i).toISOString()||L().toISOString(),this)}captureVersion(){var a;const i=((a=this.knownVersions)==null?void 0:a.get(this.version))||new pt(this);return i.metaSync(this.toMeta(),null),this.knownVersions=this.knownVersions?this.knownVersions.set(this.version,i):new Map([[this.version,i]]),i.entities=[...this.entities],i.projects=[...this.projects],i.functions=[...this.functions],i.events=[...this.events],i.variableDeclarations=[...this.variableDeclarations],i.variableInstances=[...this.variableInstances],i.conditions=[...this.conditions],i.operations=[...this.operations],i.functionCalls=[...this.functionCalls],i.loops=[...this.loops],i.searches=[...this.searches],this}recursiveCaptureUpstreamVersions(i){const a=[],o=[],p=[],e=[];return{updated:R(a),added:R(o),removed:R(p),affected:R(e),self:this}}async restoreVersion(i){var v;const a=[],o=[],p=[],e=[];if(this.version===i)return{updated:R(a),added:R(o),removed:R(p),affected:R(e),self:this};if(!this.knownVersions){const E=new Map;for(const[w,A]of this.knownVersions||new Map){if(E.set(w,A),A.activeVersion=!1,A.knownVersions)for(const[$,V]of A.knownVersions)E.set($,V);A.knownVersions=null}}let y=(v=this.knownVersions)==null?void 0:v.get(i);if(!y){const E=await this.APILoadVersion({},i);if(!E)throw new Error(`Version with id '${i}' for entity with id '${this.id}' not found.`);y=new pt(E)}return this.metaSync(y.toShallowJSON(),null),this.previousVersion=y.previousVersion,this.version=y.version,this.createdAt=y.createdAt,this.author=y.author,this.deleted=y.deleted,this.entities=y.entities,this.projects=y.projects,this.functions=y.functions,this.events=y.events,this.variableDeclarations=y.variableDeclarations,this.variableInstances=y.variableInstances,this.conditions=y.conditions,this.operations=y.operations,this.functionCalls=y.functionCalls,this.loops=y.loops,this.searches=y.searches,{updated:R(a),added:R(o),removed:R(p),affected:R(e),self:this}}updateWithShallowTransfer(i,a=this.project.addChangeSet(new F(this.project,pt.sessionAuthor,L().toISOString(),this,!0,"update-with-shallow-transfer"))){return this.metaSync(i,a),this.version=i.version,this.createdAt=i.createdAt,this.author=i.author,this.deleted=i.deleted,this.previousVersion=i.previousVersion,this.captureVersion(),this.subscribeToDependencies(),a==null||a.attemptAutoclose("update-with-shallow-transfer",this.id),this}hydrateAncestors(){const i=[],a=[],o=[],p=[];return{updated:R(i),added:R(a),removed:R(o),affected:R(p),self:this}}afterAllChildrenInitialized(i=null){const a=[],o=[],p=[],e=[];return this.initialized||(this.initialized=!0,this.emit("project-initialized",this,i)),this.validate(),this.captureVersion(),{updated:R(a),added:R(o),removed:R(p),affected:R(e),self:this}}addSelfToProject(i){const a=[],o=[],p=[],e=[];return this.subscribe(),this.subscribeToDependencies(),{updated:R(a),added:R(o),removed:R(p),affected:R(e),self:this}}get instancesList(){return Object.values(this.instances)}isOperationDeclaration(i){return this.operationDeclarations.includes(i)}isGlobalEventActionDescriptor(i){return this.globalEventActionDescriptors.includes(i)}isLoopDeclaration(i){return this.loopDeclarations.includes(i)}isConditionDeclaration(i){return this.conditionDeclarations.includes(i)}initChildren(i=this.project.addChangeSet(new F(this.project,pt.sessionAuthor,L().toISOString(),this,!0,"init-children"))){return this.initialized||this.startedInitialization?this:(this.startedInitialization=!0,this.entities=this.initialData.entities.map(a=>{const o=te(a,this);return o.setParent(this,null),o.initChildren(i),o}),this.projects=this.initialData.projects.map(a=>{const o=te(a,this);return o.setParent(this,null),o.initChildren(i),o}),this.variableDeclarations=this.initialData.variableDeclarations.map(a=>{const o=te(a,this);return o.setParent(this,null),o.initChildren(i),o}),this.variableInstances=this.initialData.variableInstances.map(a=>{const o=te(a,this);return o.setParent(this,null),o.initChildren(i),o}),this.conditions=this.initialData.conditions.map(a=>{const o=te(a,this);return o.setParent(this,null),o.initChildren(i),o}),this.operations=this.initialData.operations.map(a=>{const o=te(a,this);return o.setParent(this,null),o.initChildren(i),o}),this.functions=this.initialData.functions.map(a=>{const o=te(a,this);return o.setParent(this,null),o.initChildren(i),o}),this.events=this.initialData.events.map(a=>{const o=te(a,this);return o.setParent(this,null),o.initChildren(i),o}),this.functionCalls=this.initialData.functionCalls.map(a=>{const o=te(a,this);return o.setParent(this,null),o.initChildren(i),o}),this.loops=this.initialData.loops.map(a=>{const o=te(a,this);return o.setParent(this,null),o.initChildren(i),o}),this.searches=this.initialData.searches.map(a=>{const o=te(a,this);return o.setParent(this,null),o.initChildren(i),o}),this.attachOrphanReferences(),this.subscribeToDependencies(),this.afterAllChildrenInitialized(i),i==null||i.attemptAutoclose("init-children",this.id),this)}subscribeInstance(i){return(!this.instances[i.id]||this.instances[i.id]!==i)&&(this.instances[i.id]=i),this}subscribeDeletedInstance(i){return(!this.deletedInstances[i.id]||this.deletedInstances[i.id]!==i)&&(this.deletedInstances[i.id]=i),this}subscribeBuiltInInstance(i){return(!this.builtInInstances[i.id]||this.builtInInstances[i.id]!==i)&&(this.builtInInstances[i.id]=i),this}subscribe(){return this}unsubscribe(){return this}unsubscribeInstance(i){return delete this.instances[i.id],this}unsubscribeDeletedInstance(i){return delete this.deletedInstances[i.id],this}findSubscribedBuiltInInstance(i){return this.builtInInstances[i.id]||null}get(i){return this.instances[i]||this.builtInInstances[i]||null}getDeleted(i){return this.deletedInstances[i]||null}getManaged(i){return this.getBuiltIn(i)?null:this.instances[i]||null}getBuiltIn(i){return this.builtInInstances[i]||null}findSubscribedInstanceFromReference(i){return this.instances[i.entityId]||null}findSubscribedBuiltInInstanceFromReference(i){return this.builtInInstances[i.entityId]||null}metaSync(i,a=this.project.addChangeSet(new F(this.project,pt.sessionAuthor,L().toISOString(),this,!0,"meta-sync"))){const o=Ur(this,i),p=this.toMeta();return this.name=i.name!==void 0?i.name:p.name,this.description=i.description!==void 0?i.description:p.description,this.x=i.x||p.x,this.y=i.y||p.y,super.metaSync(i),i.deleted===!0&&!p.deleted?a==null||a.add(this,S.Removed):i.deleted===!1&&p.deleted?a==null||a.add(this,S.Added):o&&(a==null||a.add(this,S.Updated)),a==null||a.attemptAutoclose("meta-sync",this.id),this}async APILoad(i=ve,...a){return await pt.repository.APILoad(this.id,...a),this}async APICreate(i=ve,...a){return await pt.repository.APICreate(this.toShallowJSON(),...a),this}async APIUpdate(i=ve,...a){return await pt.repository.APIUpdate(this.toShallowJSON(),...a),this}async APIDelete(i=ve,...a){return await pt.repository.APIDelete(this.toShallowJSON(),...a),this}async APIClone(i=ve,...a){return await pt.repository.APIClone(this.id,...a),this}async APILoadVersion(i=ve,a,...o){return await pt.repository.APILoadVersion(this.id,a,...o)}remove({ignoreUpstream:i}={ignoreUpstream:!1},a=this.project.addChangeSet(new F(this.project,pt.sessionAuthor,L().toISOString(),this,!0,"remove-entity"))){return{added:[],updated:[],removed:[],affected:[],self:this}}restore({}={},i=this.project.addChangeSet(new F(this.project,pt.sessionAuthor,L().toISOString(),this,!0,"restore-entity"))){return{added:[],updated:[],removed:[],affected:[],self:this}}getAllBuiltInIds(){const i=new Set;return[...this.primitives.flatMap(a=>a.toFlatIds(i)),...this.builtInBaseEntities.flatMap(a=>a.toFlatIds(i)),...this.operationDeclarations.flatMap(a=>a.toFlatIds(i)),...this.globalEventActionDescriptors.flatMap(a=>a.toFlatIds(i)),...this.loopDeclarations.flatMap(a=>a.toFlatIds(i)),...this.conditionDeclarations.flatMap(a=>a.toFlatIds(i)),...this.valueDescriptors.flatMap(a=>a.toFlatIds(i)),...this.dataTypes.flatMap(a=>a.toFlatIds(i))]}getAllBuiltIn(){const i=new Set;return[...this.primitives.flatMap(a=>a.toFlat(i)),...this.builtInBaseEntities.flatMap(a=>a.toFlat(i)),...this.operationDeclarations.flatMap(a=>a.toFlat(i)),...this.globalEventActionDescriptors.flatMap(a=>a.toFlat(i)),...this.loopDeclarations.flatMap(a=>a.toFlat(i)),...this.conditionDeclarations.flatMap(a=>a.toFlat(i)),...this.valueDescriptors.flatMap(a=>a.toFlat(i)),...this.dataTypes.flatMap(a=>a.toFlat(i))]}toFlat(i=new Set){return i.has(this.id)?[]:(i.add(this.id),[this,...this.entities.flatMap(o=>o.toFlat(i)),...this.functions.flatMap(o=>o.toFlat(i)),...this.events.flatMap(o=>o.toFlat(i)),...this.projects.flatMap(o=>o.toFlat(i)),...this.variableDeclarations.flatMap(o=>o.toFlat(i)),...this.variableInstances.flatMap(o=>o.toFlat(i)),...this.conditions.flatMap(o=>o.toFlat(i)),...this.operations.flatMap(o=>o.toFlat(i)),...this.functionCalls.flatMap(o=>o.toFlat(i)),...this.loops.flatMap(o=>o.toFlat(i)),...this.searches.flatMap(o=>o.toFlat(i))])}toFlatIds(i=new Set){return i.has(this.id)?[]:(i.add(this.id),[this.id,...this.entities.flatMap(o=>o.toFlatIds(i)),...this.functions.flatMap(o=>o.toFlatIds(i)),...this.events.flatMap(o=>o.toFlatIds(i)),...this.projects.flatMap(o=>o.toFlatIds(i)),...this.variableDeclarations.flatMap(o=>o.toFlatIds(i)),...this.variableInstances.flatMap(o=>o.toFlatIds(i)),...this.conditions.flatMap(o=>o.toFlatIds(i)),...this.operations.flatMap(o=>o.toFlatIds(i)),...this.functionCalls.flatMap(o=>o.toFlatIds(i)),...this.loops.flatMap(o=>o.toFlatIds(i)),...this.searches.flatMap(o=>o.toFlatIds(i))])}toMeta(){return{id:this.id,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,description:this.description,type:this.type,name:this.name}}toJSON(i=new Set){return i.has(this.id)?this.toReference():(i.add(this.id),{id:this.id,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,type:this.type,name:this.name,description:this.description,entities:this.entities.map(a=>a.toJSON(i)),variableDeclarations:this.variableDeclarations.map(a=>a.toJSON(i)),variableInstances:this.variableInstances.map(a=>a.toJSON(i)),conditions:this.conditions.map(a=>a.toJSON(i)),operations:this.operations.map(a=>a.toJSON(i)),loops:this.loops.map(a=>a.toJSON(i)),searches:this.searches.map(a=>a.toJSON(i)),functions:this.functions.map(a=>a.toJSON(i)),events:this.events.map(a=>a.toJSON(i)),projects:this.projects.map(a=>a.toJSON(i)),functionCalls:this.functionCalls.map(a=>a.toJSON(i))})}toJSONClone(i={uuidStrategy:"uuid"}){const a=new Map,o=new Set,p=this.getAllBuiltInIds();return Object.keys(this.instances).forEach(e=>{if(p.includes(e)){a.set(e,e);return}a.set(e,pt.UUID.uuid())}),o.add(this.id),{id:a.get(this.id),version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,type:this.type,name:this.name,description:this.description,entities:this.entities.map(e=>e.toJSONClone({...i,seenEntityMaps:a,seenEntities:o,newId:null})),projects:this.projects.map(e=>e.toJSONClone({...i,seenEntityMaps:a,seenEntities:o,newId:null})),variableDeclarations:this.variableDeclarations.map(e=>e.toJSONClone({...i,seenEntityMaps:a,seenEntities:o,newId:null})),variableInstances:this.variableInstances.map(e=>e.toJSONClone({...i,seenEntityMaps:a,seenEntities:o,newId:null})),conditions:this.conditions.map(e=>e.toJSONClone({...i,seenEntityMaps:a,seenEntities:o,newId:null})),operations:this.operations.map(e=>e.toJSONClone({...i,seenEntityMaps:a,seenEntities:o,newId:null})),functions:this.functions.map(e=>e.toJSONClone({...i,seenEntityMaps:a,seenEntities:o,newId:null})),events:this.events.map(e=>e.toJSONClone({...i,seenEntityMaps:a,seenEntities:o,newId:null})),functionCalls:this.functionCalls.map(e=>e.toJSONClone({...i,seenEntityMaps:a,seenEntities:o,newId:null})),loops:this.loops.map(e=>e.toJSONClone({...i,seenEntityMaps:a,seenEntities:o,newId:null})),searches:this.searches.map(e=>e.toJSONClone({...i,seenEntityMaps:a,seenEntities:o,newId:null}))}}toReference(i=ke){var o;let a=this.id;return(o=i.seenEntityMaps)!=null&&o.has(this.id)&&(a=i.seenEntityMaps.get(this.id)),{id:a+"--"+pt.UUID.uuid()+"--ref",type:f.GenericReference,entityId:a,version:this.version,entityType:this.type}}toShallowJSON(i=ke){var o;let a=this.id;return(o=i.seenEntityMaps)!=null&&o.has(this.id)&&(a=i.seenEntityMaps.get(this.id)),{id:a,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,type:this.type,name:this.name,description:this.description,entities:this.entities.map(p=>p.toReference(i)),functions:this.functions.map(p=>p.toReference(i)),events:this.events.map(p=>p.toReference(i)),projects:this.projects.map(p=>p.toReference(i)),variableDeclarations:this.variableDeclarations.map(p=>p.toReference(i)),variableInstances:this.variableInstances.map(p=>p.toReference(i)),conditions:this.conditions.map(p=>p.toReference(i)),operations:this.operations.map(p=>p.toReference(i)),functionCalls:this.functionCalls.map(p=>p.toReference(i)),loops:this.loops.map(p=>p.toReference(i)),searches:this.searches.map(p=>p.toReference(i))}}toFlatJSON(i=new Set){return i.has(this.id)?[]:(i.add(this.id),[this.toShallowJSON(),...this.entities.flatMap(o=>o.toFlatJSON(i)),...this.functions.flatMap(o=>o.toFlatJSON(i)),...this.events.flatMap(o=>o.toFlatJSON(i)),...this.projects.flatMap(o=>o.toFlatJSON(i)),...this.variableDeclarations.flatMap(o=>o.toFlatJSON(i)),...this.variableInstances.flatMap(o=>o.toFlatJSON(i)),...this.conditions.flatMap(o=>o.toFlatJSON(i)),...this.operations.flatMap(o=>o.toFlatJSON(i)),...this.functionCalls.flatMap(o=>o.toFlatJSON(i)),...this.loops.flatMap(o=>o.toFlatJSON(i)),...this.searches.flatMap(o=>o.toFlatJSON(i))])}toGenerationTarget(){return{id:this.id,type:this.type,name:this.name,description:this.description}}toFlatGenerationTarget(i=new Set){return i.has(this.id)?[]:(i.add(this.id),[...this.entities.flatMap(o=>o.toFlatGenerationTarget(i)),...this.functions.flatMap(o=>o.toFlatGenerationTarget(i)),...this.events.flatMap(o=>o.toFlatGenerationTarget(i)),...this.projects.flatMap(o=>o.toFlatGenerationTarget(i)),...this.variableDeclarations.flatMap(o=>o.toFlatGenerationTarget(i)),...this.variableInstances.flatMap(o=>o.toFlatGenerationTarget(i)),...this.conditions.flatMap(o=>o.toFlatGenerationTarget(i)),...this.operations.flatMap(o=>o.toFlatGenerationTarget(i)),...this.functionCalls.flatMap(o=>o.toFlatGenerationTarget(i)),...this.loops.flatMap(o=>o.toFlatGenerationTarget(i)),...this.searches.flatMap(o=>o.toFlatGenerationTarget(i))])}clearErrors(){return this.errors=[],this.entities.forEach(i=>i.clearErrors()),this.projects.forEach(i=>i.clearErrors()),this.functions.forEach(i=>i.clearErrors()),this.events.forEach(i=>i.clearErrors()),this.variableDeclarations.forEach(i=>i.clearErrors()),this.variableInstances.forEach(i=>i.clearErrors()),this.conditions.forEach(i=>i.clearErrors()),this.operations.forEach(i=>i.clearErrors()),this.functionCalls.forEach(i=>i.clearErrors()),this.loops.forEach(i=>i.clearErrors()),this.searches.forEach(i=>i.clearErrors()),this}validate(){return this.validateChildren(),eI([...this.errors]),{success:!0}}validateChildren(){this.entities.forEach(i=>i.validate()),this.projects.forEach(i=>i.validate()),this.functions.forEach(i=>i.validate()),this.events.forEach(i=>i.validate()),this.variableDeclarations.forEach(i=>i.validate()),this.variableInstances.forEach(i=>i.validate()),this.conditions.forEach(i=>i.validate()),this.operations.forEach(i=>i.validate()),this.functionCalls.forEach(i=>i.validate()),this.loops.forEach(i=>i.validate()),this.searches.forEach(i=>i.validate())}getErrors(){return[...this.errors,...this.entities.flatMap(a=>a.getErrors()),...this.projects.flatMap(a=>a.getErrors()),...this.functions.flatMap(a=>a.getErrors()),...this.events.flatMap(a=>a.getErrors()),...this.variableDeclarations.flatMap(a=>a.getErrors()),...this.variableInstances.flatMap(a=>a.getErrors()),...this.conditions.flatMap(a=>a.getErrors()),...this.operations.flatMap(a=>a.getErrors()),...this.functionCalls.flatMap(a=>a.getErrors()),...this.loops.flatMap(a=>a.getErrors()),...this.searches.flatMap(a=>a.getErrors())]}getShallowErrors(){return this.errors}clone(){return this}getDefinitionEntity(i){return this.entities.find(a=>a.id===i)||null}addDefinitionEntity(i){return this.entities.includes(i)||this.entities.push(i),i}addFunctionDeclaration(i){return this.functions.includes(i)||this.functions.push(i),i}addFunctionCall(i){return this.functionCalls.includes(i)||this.functionCalls.push(i),i}addVariableDeclaration(i){return this.variableDeclarations.includes(i)||this.variableDeclarations.push(i),i}addVariableInstance(i){return this.variableInstances.includes(i)||this.variableInstances.push(i),i}addInstalledProject(i){return this.projects.includes(i)||this.projects.push(i),this}addGlobalEvent(i){return this.events.includes(i)||this.events.push(i),this}addCondition(i){return this.conditions.includes(i)||this.conditions.push(i),this}addOperation(i){return this.operations.includes(i)||this.operations.push(i),this}addLoop(i){return this.loops.includes(i)||this.loops.push(i),this}addSearch(i){return this.searches.includes(i)||this.searches.push(i),this}removeDefinitionEntity(i){const a=this.entities.findIndex(o=>o.id===i.id);if(a>-1){const o=this.entities[a];return this.entities.splice(a,1),o}return null}removeCondition(i){const a=this.conditions.findIndex(o=>o.id===i.id);if(a>-1){const o=this.conditions[a];return this.conditions.splice(a,1),o}return null}removeOperation(i){const a=this.operations.findIndex(o=>o.id===i.id);if(a>-1){const o=this.operations[a];return this.operations.splice(a,1),o}return null}removeLoop(i){const a=this.loops.findIndex(o=>o.id===i.id);if(a>-1){const o=this.loops[a];return this.loops.splice(a,1),o}return null}removeSearch(i){const a=this.searches.findIndex(o=>o.id===i.id);if(a>-1){const o=this.searches[a];return this.searches.splice(a,1),o}return null}removeFunctionCall(i){const a=this.functionCalls.findIndex(o=>o.id===i.id);if(a>-1){const o=this.functionCalls[a];return this.functionCalls.splice(a,1),o}return null}removeVariableInstance(i){const a=this.variableInstances.findIndex(o=>o.id===i.id);if(a>-1){const o=this.variableInstances[a];return this.variableInstances.splice(a,1),o}return null}removeVariableDeclaration(i){const a=this.variableDeclarations.findIndex(o=>o.id===i.id);if(a>-1){const o=this.variableDeclarations[a];return this.variableDeclarations.splice(a,1),o}return null}removeFunctionDeclaration(i){const a=this.functions.findIndex(o=>o.id===i.id);if(a>-1){const o=this.functions[a];return this.functions.splice(a,1),o}return null}removeInstalledProject(i){const a=this.projects.findIndex(o=>o.id===i.id);if(a>-1){const o=this.projects[a];return this.projects.splice(a,1),o}return null}removeGlobalEvent(i){const a=this.events.findIndex(o=>o.id===i.id);if(a>-1){const o=this.events[a];return this.events.splice(a,1),o}return null}removeTopLevelVariableDeclaration(i){if(i.type!==f.VariableDeclaration)return null;const a=this.variableDeclarations.findIndex(o=>o.id===i.id);if(a>-1){const o=this.variableDeclarations[a];return this.variableDeclarations.splice(a,1),o}return null}getEntryPoints(){return[...this.functions,...this.events,...this.entities.flatMap(a=>a.methods)]}getTerminationStatements(){return[...this.getEntryPoints().reduce((a,o)=>{const p=Rt(o);return[...a,...p.filter(e=>e.type===f.ReturnStatement||e.type===f.ContinueStatement||e.type===f.BreakStatement)]},[])]}getFunctionDeclaration(i){return this.functions.find(a=>a.id===i)||null}getConditions(){return[...this.conditions,...this.getEntryPoints().reduce((a,o)=>{const p=Rt(o);return[...a,...p.filter(e=>e.type===f.Condition)]},[]),...this.functionCalls.reduce((a,o)=>{const p=Rt(o);return[...a,...p.filter(e=>e.type===f.Condition)]},[]),...this.operations.reduce((a,o)=>{const p=Rt(o);return[...a,...p.filter(e=>e.type===f.Condition)]},[]),...this.loops.reduce((a,o)=>{const p=Rt(o);return[...a,...p.filter(e=>e.type===f.Condition)]},[]),...this.searches.reduce((a,o)=>{const p=Rt(o);return[...a,...p.filter(e=>e.type===f.Condition)]},[])]}getOperations(){return[...this.operations,...this.getEntryPoints().reduce((a,o)=>{const p=Rt(o);return[...a,...p.filter(e=>e.type===f.Operation)]},[]),...this.functionCalls.reduce((a,o)=>{const p=Rt(o);return[...a,...p.filter(e=>e.type===f.Operation)]},[]),...this.conditions.reduce((a,o)=>{const p=Rt(o);return[...a,...p.filter(e=>e.type===f.Operation)]},[]),...this.loops.reduce((a,o)=>{const p=Rt(o);return[...a,...p.filter(e=>e.type===f.Operation)]},[]),...this.searches.reduce((a,o)=>{const p=Rt(o);return[...a,...p.filter(e=>e.type===f.Operation)]},[])]}getFunctionCalls(){return[...this.functionCalls,...this.getEntryPoints().reduce((a,o)=>{const p=Rt(o);return[...a,...p.filter(e=>e.type===f.FunctionCall)]},[]),...this.conditions.reduce((a,o)=>{const p=Rt(o);return[...a,...p.filter(e=>e.type===f.FunctionCall)]},[]),...this.operations.reduce((a,o)=>{const p=Rt(o);return[...a,...p.filter(e=>e.type===f.FunctionCall)]},[]),...this.loops.reduce((a,o)=>{const p=Rt(o);return[...a,...p.filter(e=>e.type===f.FunctionCall)]},[]),...this.searches.reduce((a,o)=>{const p=Rt(o);return[...a,...p.filter(e=>e.type===f.FunctionCall)]},[])]}getVariables(){return[...this.variableDeclarations,...this.getEntryPoints().reduce((a,o)=>{const p=mr(o);return[...a,...p]},[]),...this.functionCalls.reduce((a,o)=>{const p=mr(o);return[...a,...p]},[]),...this.conditions.reduce((a,o)=>{const p=mr(o);return[...a,...p]},[]),...this.operations.reduce((a,o)=>{const p=mr(o);return[...a,...p]},[]),...this.loops.reduce((a,o)=>{const p=mr(o);return[...a,...p]},[]),...this.searches.reduce((a,o)=>{const p=mr(o);return[...a,...p]},[])]}getVariableInstances(){return[...this.variableInstances,...this.entities.reduce((a,o)=>[...a,...o.methods.flatMap(p=>{const y=Rt(p).filter(v=>v.type===f.VariableInstance);return[...a,...y]})],[]),...this.getEntryPoints().reduce((a,o)=>{const e=mr(o).filter(y=>y.type===f.VariableInstance);return[...a,...e]},[]),...this.functionCalls.reduce((a,o)=>{const e=mr(o).filter(y=>y.type===f.VariableInstance);return[...a,...e]},[]),...this.conditions.reduce((a,o)=>{const e=mr(o).filter(y=>y.type===f.VariableInstance);return[...a,...e]},[]),...this.operations.reduce((a,o)=>{const e=mr(o).filter(y=>y.type===f.VariableInstance);return[...a,...e]},[]),...this.loops.reduce((a,o)=>{const e=mr(o).filter(y=>y.type===f.VariableInstance);return[...a,...e]},[]),...this.searches.reduce((a,o)=>{const e=mr(o).filter(y=>y.type===f.VariableInstance);return[...a,...e]},[])]}getVariableDeclarations(){return R([...this.variableDeclarations,...this.entities.reduce((a,o)=>[...a,...o.methods.flatMap(p=>{const y=Rt(p).filter(v=>v.type===f.VariableDeclaration);return[...a,...y]})],[]),...this.getEntryPoints().reduce((a,o)=>{const e=mr(o).filter(y=>y.type===f.VariableDeclaration);return[...a,...e]},[]),...this.functionCalls.reduce((a,o)=>{const e=mr(o).filter(y=>y.type===f.VariableDeclaration);return[...a,...e]},[]),...this.conditions.reduce((a,o)=>{const e=mr(o).filter(y=>y.type===f.VariableDeclaration);return[...a,...e]},[]),...this.operations.reduce((a,o)=>{const e=mr(o).filter(y=>y.type===f.VariableDeclaration);return[...a,...e]},[]),...this.loops.reduce((a,o)=>{const e=mr(o).filter(y=>y.type===f.VariableDeclaration);return[...a,...e]},[]),...this.searches.reduce((a,o)=>{const e=mr(o).filter(y=>y.type===f.VariableDeclaration);return[...a,...e]},[])])}getLoops(){return[...this.loops,...this.getEntryPoints().reduce((a,o)=>{const p=Rt(o);return[...a,...p.filter(e=>e.type===f.Loop)]},[]),...this.functionCalls.reduce((a,o)=>{const p=Rt(o);return[...a,...p.filter(e=>e.type===f.Loop)]},[]),...this.conditions.reduce((a,o)=>{const p=Rt(o);return[...a,...p.filter(e=>e.type===f.Loop)]},[]),...this.operations.reduce((a,o)=>{const p=Rt(o);return[...a,...p.filter(e=>e.type===f.Loop)]},[]),...this.searches.reduce((a,o)=>{const p=Rt(o);return[...a,...p.filter(e=>e.type===f.Loop)]},[])]}getSearches(){return[...this.searches,...this.getEntryPoints().reduce((a,o)=>{const p=Rt(o);return[...a,...p.filter(e=>e.type===f.Search)]},[]),...this.functionCalls.reduce((a,o)=>{const p=Rt(o);return[...a,...p.filter(e=>e.type===f.Search)]},[]),...this.conditions.reduce((a,o)=>{const p=Rt(o);return[...a,...p.filter(e=>e.type===f.Search)]},[]),...this.operations.reduce((a,o)=>{const p=Rt(o);return[...a,...p.filter(e=>e.type===f.Search)]},[]),...this.loops.reduce((a,o)=>{const p=Rt(o);return[...a,...p.filter(e=>e.type===f.Search)]},[])]}attachOrphanReferences(){const i=this.getVariableInstances(),a=this.getVariableDeclarations();return i.forEach(o=>{if(!o.declaration){const p=o.initialData,e=p.declaration.entityId||p.declaration.id,y=a.find(v=>v.id===e);y&&o.setDeclaration(y)}}),this}getBuiltInPersistedEntity(){return this.builtInBaseEntities.find(i=>i.name===Ue.PERSISTED_ENTITY)||null}requestActiveDynamicValue(i){var o,p;const a=(p=(o=this.parentContext).requestActiveDynamicValue)==null?void 0:p.call(o,i);if(!a){const e=i.getDefaultValue();return e?{value:e,type:Ae.DefaultValue,inheritanceLink:null,valueOwner:i}:null}return a||null}requestModule(i){if(this.parentContext.requestModule){const a=this.parentContext.requestModule(i);return!a&&i==="uuid"?Ju:a||null}return i==="uuid"?Ju:null}undo(){Me.log("Undoing, from: ",this.undoableStackValueIndex),this.undoableStackValueIndex=this.undoableStackValueIndex-1,Me.log("To: ",this.undoableStackValueIndex);const i=this.history[this.undoableStackValueIndex+1],a=this.history[this.undoableStackValueIndex];return Me.log("Current change set: ",i==null?void 0:i.toJSON()),Me.log("Change set to restore: ",a==null?void 0:a.toJSON()),sA(i||"initial",a||"initial",this)}redo(){Me.log("Undoing, from: ",this.undoableStackValueIndex),this.undoableStackValueIndex=this.undoableStackValueIndex+1,Me.log("To: ",this.undoableStackValueIndex);const i=this.history[this.undoableStackValueIndex-1],a=this.history[this.undoableStackValueIndex];return Me.log("Current change set: ",i==null?void 0:i.toJSON()),Me.log("Change set to restore: ",a.toJSON()),sA(i||"initial",a||"initial",this)}applyExternalChangeSet(i){const a=i.payload,o=this.addChangeSet(new F(this,i.userAuthor,i.emittedAt,this)),p=a.updated[this.id];if(!p)throw new Error("Project root not found in change set transfer. Cannot apply changes.");const e={...a.added,...a.updated,...a.removed},y=[...Object.keys(a.added),...Object.keys(a.updated),...Object.keys(a.removed)];y.forEach(E=>{var w;if(!e[E]){Me.warn(`Entity '${E}' not found in change set transfer. Cannot apply changes.`);const A=(w=this.get(E))==null?void 0:w.toShallowJSON();throw A?Me.warn("Entity in project: ",A):Me.warn("Entity not in project"),new Error(`Entity '${E}' not found in change set transfer. Cannot apply changes.`)}});const v=new ea(p);return v.flatRecord=e,v.order=y,v.orderEntities(),Me.log("All entities: ",v.order.map((E,w)=>`${w+1}: ${e[E].type} - ${E}`).join(`,
409
409
  `)),Me.log("Persisting new additions"),v.visit(async(E,w)=>{if(a.added[E.id]){Me.log("Adding: ",E.id);try{const A=te(E,this);if(A.hydrateAncestors(),A.addSelfToProject(o),o.add(A,S.Added),!this.get(E.id))throw new Error(`Entity ${E.id} was not added to the project`)}catch(A){Me.error("Error: ",A),Me.error("Errored entity: ",E)}}}),Me.log("Persisting updates"),v.visit(async(E,w)=>{if(a.updated[E.id]){Me.log("Updating: ",E.id);try{const A=this.get(E.id);A?(A.updateWithShallowTransfer(E,o),o.add(A,S.Updated)):Me.warn(`Active version of ${E.id} not found when applying external changes`)}catch(A){Me.error("Error: ",A),Me.error("Errored entity: ",E)}}}),Me.log("Persisting removals"),v.visit(async(E,w)=>{if(a.removed[E.id]){Me.log("Removing: ",E.id);try{const A=this.get(E.id);A&&A.remove({ignoreUpstream:!1},o)}catch(A){Me.error("Error: ",A),Me.error("Errored entity: ",E)}}}),o}toFullProjectTransfer(){const i=new ea(this),a={};return i.visit(o=>{const p=o.toShallowJSON();a[o.id]=p}),{order:i.order,size:i.order.length,record:a}}};g(pt,"parentContext",rw),g(pt,"sessionAuthor","1"),g(pt,"repository",{APICreate:async(i,...a)=>i,APIUpdate:async(i,...a)=>i,APIDelete:async(i,...a)=>i,APIClone:async(i,...a)=>{},APILoad:async(i,...a)=>null,APILoadVersion:async(i,a,...o)=>null}),g(pt,"type",f.Project),g(pt,"USER_MANAGED_PARENT_TYPES",[]),g(pt,"PARENT_TYPES",[...pt.USER_MANAGED_PARENT_TYPES]),g(pt,"MUTABLE_BASE_PROPERTIES",["name","description"]),g(pt,"INMUTABLE_BASE_PROPERTIES",["id","type","version","createdAt","author","previousVersion"]),g(pt,"BASE_PROPERTIES",[...pt.MUTABLE_BASE_PROPERTIES,...pt.INMUTABLE_BASE_PROPERTIES]),g(pt,"MUTABLE_META_PROPERTIES",[...pt.MUTABLE_BASE_PROPERTIES,"x","y"]),g(pt,"INMUTABLE_META_PROPERTIES",[...pt.INMUTABLE_BASE_PROPERTIES]),g(pt,"META_PROPERTIES",[...pt.MUTABLE_META_PROPERTIES,...pt.INMUTABLE_META_PROPERTIES]),g(pt,"MUTABLE_UPSTREAM_PROPERTIES",[]),g(pt,"INMUTABLE_UPSTREAM_PROPERTIES",["primitives","builtInBaseEntities","operationDeclarations","globalEventActionDescriptors","loopDeclarations","builtInInstances"]),g(pt,"UPSTREAM_PROPERTIES",[...pt.MUTABLE_UPSTREAM_PROPERTIES,...pt.INMUTABLE_UPSTREAM_PROPERTIES]),g(pt,"MUTABLE_DOWNSTREAM_PROPERTIES",["entities","projects","functions","events","variableDeclarations","variableInstances","conditions","operations","functionCalls","loops","searches"]),g(pt,"INMUTABLE_DOWNSTREAM_PROPERTIES",[]),g(pt,"DOWNSTREAM_PROPERTIES",[...pt.MUTABLE_DOWNSTREAM_PROPERTIES,...pt.INMUTABLE_DOWNSTREAM_PROPERTIES]),g(pt,"PROPERTIES",[...pt.META_PROPERTIES,...pt.UPSTREAM_PROPERTIES,...pt.DOWNSTREAM_PROPERTIES]);let N=pt;class JS extends wt{constructor(i){super(cn,i);g(this,"id",rr.Parallel);g(this,"name",rr.Parallel);g(this,"description","Programmatically execute a list of actions one after the other");g(this,"version","1");g(this,"autoexecutable",!0);g(this,"initialData",cn);g(this,"type",f.ActionDescriptor);g(this,"inputs",[]);g(this,"outputs",[]);g(this,"error",null);g(this,"project");this.project=i,this.inputs=cn.inputs.map(a=>{const o=te(a,this.project);return o.setParent(this,null),o.initChildren(null),o}),this.outputs=cn.outputs.map(a=>{const o=te(a,this.project);return o.setParent(this,null),o.initChildren(null),o}),this.error=cn.error?te(cn.error,this.project):null}}class HS extends wt{constructor(i){super(Yi,i);g(this,"id",Yi.id);g(this,"name",Yi.name);g(this,"description",Yi.description);g(this,"version",Yi.version);g(this,"autoexecutable",!1);g(this,"initialData",Yi);g(this,"type",f.ActionDescriptor);g(this,"inputs",[]);g(this,"outputs",[]);g(this,"error",null);g(this,"project");this.project=i,this.inputs=Yi.inputs.map(a=>{const o=te(a,this.project);return o.setParent(this,null),o.initChildren(null),o}),this.outputs=Yi.outputs.map(a=>{const o=te(a,this.project);return o.setParent(this,null),o.initChildren(null),o}),this.error=Yi.error?te(Yi.error,this.project):null}}class WS extends wt{constructor(i){super(_a,i);g(this,"id",rr.Sequential);g(this,"name",rr.Sequential);g(this,"description","Programmatically execute a list of actions one after the other");g(this,"version","1");g(this,"autoexecutable",!0);g(this,"initialData",_a);g(this,"type",f.ActionDescriptor);g(this,"inputs",[]);g(this,"outputs",[]);g(this,"error",null);g(this,"project");this.project=i,this.inputs=_a.inputs.map(a=>{const o=te(a,this.project);return o.setParent(this,null),o.initChildren(null),o}),this.outputs=_a.outputs.map(a=>{const o=te(a,this.project);return o.setParent(this,null),o.initChildren(null),o}),this.error=_a.error?te(_a.error,this.project):null}}class HAe extends wt{constructor(u){super(Yu,u)}}class WAe extends wt{constructor(u){super(ko,u)}}class YAe extends wt{constructor(i){super(qo,i);g(this,"autoexecutable",!0)}getEntityToMatchInputMap(i){return i.inputs.find(a=>{var o;return((o=a.declaration)==null?void 0:o.id)===Ee.operation[pr.Validate].inputs.entityToMatch.id})||null}getDataToValidateInputMap(i){return i.inputs.find(a=>{var o;return((o=a.declaration)==null?void 0:o.id)===Ee.operation[pr.Validate].inputs.dataToValidate.id})||null}getOutputDataOutputMap(i){return i.outputs.find(a=>{var o;return((o=a.declaration)==null?void 0:o.id)===Ee.operation[pr.Validate].outputs.outputEntity.id})||null}getEntityToMatch(i,a=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"get-entity-to-match-validate-data"))){var e;const o=((e=this.project.requestActiveDynamicValue(i))==null?void 0:e.value)||null,p=o==null?void 0:o.valueAsTypeSingle;return a==null||a.attemptAutoclose("get-entity-to-match-validate-data",this.id),p}syncOperationInstance(i,a=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"sync-operation-instance-validate-data"))){const o=[],p=[],e=[],y=[],v=this.getEntityToMatchInputMap(i);if(v){const{added:A,updated:$,removed:V,affected:U}=this.syncEntityToMatchInputMapDataType(v,a);o.push(...$),p.push(...A),e.push(...V),y.push(...U)}const E=this.getDataToValidateInputMap(i);if(E){const{added:A,updated:$,removed:V,affected:U}=this.syncDataToValidateInputMapDataType(E,a);o.push(...$),p.push(...A),e.push(...V),y.push(...U)}const w=this.getOutputDataOutputMap(i);if(w){const{added:A,updated:$,removed:V,affected:U}=this.syncOutputDataOutputMapDataType(w,a);o.push(...$),p.push(...A),e.push(...V),y.push(...U)}return a==null||a.attemptAutoclose("sync-operation-instance-validate-data",this.id),{updated:R(o),added:R(p),removed:R(e),affected:R(y),self:i}}syncEntityToMatchInputMapDataType(i,a=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"sync-entity-to-match-input-map-data-type"))){var w,A,$,V,U,G,K,Z,ie,X,ue,re,fe,Y,H,ce;const o=[],p=[],e=[],y=[];if(((w=i.declaration)==null?void 0:w.id)!==Ee.operation[pr.Validate].inputs.entityToMatch.id)return a==null||a.attemptAutoclose("sync-entity-to-match-input-map-data-type",this.id),{updated:[],added:[],removed:[],affected:[],self:null};const v=((A=this.project.requestActiveDynamicValue(i))==null?void 0:A.value)||null,E=v==null?void 0:v.valueAsTypeSingle;if(!i.dataType){const z={id:N.UUID.uuid(),version:N.UUID.uuid(),createdAt:(a==null?void 0:a.timestamp)||new Date().toISOString(),author:(a==null?void 0:a.author)||N.sessionAuthor,previousVersion:null,deleted:!1,type:f.DataType,parentRelationType:null,options:(($=i.declaration.dataType)==null?void 0:$.options)||null,implementationChooseOne:((V=i.declaration.dataType)==null?void 0:V.implementationChooseOne)||!1,staticEntities:((U=i.declaration.dataType)==null?void 0:U.staticEntities)??null,interactiveEntities:((G=i.declaration.dataType)==null?void 0:G.interactiveEntities)??null,actionEntities:((K=i.declaration.dataType)==null?void 0:K.actionEntities)??null,isList:((Z=i.declaration.dataType)==null?void 0:Z.isList)||!1,andChildrenGroup:null,orChildrenGroup:null,asType:!0,entity:(E==null?void 0:E.toJSON())||null,like:!0,inferred:!0,parent:i.toReference()},oe=te(z,i.project);oe.hydrateAncestors(),oe.setParent(i,a),oe.initChildren(a),oe.setEntity(E,a),a==null||a.add(oe,S.Added),o.push(oe),i.setDataType(oe,a)}return(H=i.dataType)==null||H.metaSync({inferred:!0,like:!1,asType:!0,options:((ie=i.declaration.dataType)==null?void 0:ie.options)||null,implementationChooseOne:((X=i.declaration.dataType)==null?void 0:X.implementationChooseOne)||!1,staticEntities:((ue=i.declaration.dataType)==null?void 0:ue.staticEntities)??null,interactiveEntities:((re=i.declaration.dataType)==null?void 0:re.interactiveEntities)??null,actionEntities:((fe=i.declaration.dataType)==null?void 0:fe.actionEntities)??null,isList:((Y=i.declaration.dataType)==null?void 0:Y.isList)||!1},a),(ce=i.dataType)==null||ce.setEntity(E,a),i.dataType&&p.push(i.dataType),a==null||a.attemptAutoclose("sync-entity-to-match-input-map-data-type",this.id),{updated:R(p),added:R(o),removed:R(e),affected:R(y),self:i.dataType}}syncDataToValidateInputMapDataType(i,a=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"sync-data-to-validate-input-map-data-type"))){var A,$,V;const o=[],p=[],e=[],y=[];if(((A=i.declaration)==null?void 0:A.id)!==Ee.operation[pr.Validate].inputs.dataToValidate.id)return a==null||a.attemptAutoclose("sync-data-to-validate-input-map-data-type",this.id),{updated:[],added:[],removed:[],affected:[],self:null};const v=this.getEntityToMatchInputMap(i.parent);if(!v)return a==null||a.attemptAutoclose("sync-data-to-validate-input-map-data-type",this.id),{updated:[],added:[],removed:[],affected:[],self:null};if(!this.getEntityToMatch(v,a))return a==null||a.attemptAutoclose("sync-data-to-validate-input-map-data-type",this.id),{updated:[],added:[],removed:[],affected:[],self:null};if(!i.dataType){const U={id:N.UUID.uuid(),version:N.UUID.uuid(),createdAt:(a==null?void 0:a.timestamp)||new Date().toISOString(),author:(a==null?void 0:a.author)||N.sessionAuthor,previousVersion:null,deleted:!1,type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,isList:!1,andChildrenGroup:null,orChildrenGroup:null,staticEntities:null,interactiveEntities:null,actionEntities:null,asType:!1,entity:null,like:!0,inferred:!0,parent:i.toReference()},G=te(U,i.project);G.setParent(i,a),G.initChildren(a),a==null||a.add(G,S.Added),o.push(G),i.setDataType(G,a)}($=i.dataType)==null||$.metaSync({inferred:!0,like:!0,asType:!1},a);const w=this.getEntityToMatch(v,a);return(V=i.dataType)==null||V.setEntity(w,a),i.dataType&&p.push(i.dataType),a==null||a.attemptAutoclose("sync-data-to-validate-input-map-data-type",this.id),{updated:R(p),added:R(o),removed:R(e),affected:R(y),self:i.dataType}}syncOutputDataOutputMapDataType(i,a=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"sync-output-data-output-map-data-type"))){var $,V,U,G;const o=[],p=[],e=[],y=[];if((($=i.declaration)==null?void 0:$.id)!==Ee.operation[pr.Validate].outputs.outputEntity.id)return a==null||a.attemptAutoclose("sync-output-data-output-map-data-type",this.id),{updated:[],added:[],removed:[],affected:[],self:null};const v=this.getEntityToMatchInputMap(i.parent);if(!v)return a==null||a.attemptAutoclose("sync-output-data-output-map-data-type",this.id),{updated:[],added:[],removed:[],affected:[],self:null};if(!this.getEntityToMatch(v,a))return a==null||a.attemptAutoclose("sync-output-data-output-map-data-type",this.id),{updated:[],added:[],removed:[],affected:[],self:null};const w=((V=this.project.requestActiveDynamicValue(v))==null?void 0:V.value)||null,A=(w==null?void 0:w.valueAsTypeSingle)||null;if(!i.dataType){const K={id:N.UUID.uuid(),version:N.UUID.uuid(),createdAt:(a==null?void 0:a.timestamp)||new Date().toISOString(),author:(a==null?void 0:a.author)||N.sessionAuthor,previousVersion:null,deleted:!1,type:f.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,isList:!1,andChildrenGroup:null,orChildrenGroup:null,asType:!1,entity:(A==null?void 0:A.toJSON())||null,like:!0,inferred:!0,parent:i.toReference()},Z=te(K,i.project);Z.hydrateAncestors(),Z.setParent(i,a),Z.initChildren(a),Z.setEntity(A,a),a==null||a.add(Z,S.Added),o.push(Z),i.setDataType(Z,a)}return(U=i.dataType)==null||U.metaSync({inferred:!0,like:!0,asType:!1},a),(G=i.dataType)==null||G.setEntity(A,a),i.dataType&&p.push(i.dataType),a==null||a.attemptAutoclose("sync-output-data-output-map-data-type",this.id),{updated:R(p),added:R(o),removed:R(e),affected:R(y),self:i.dataType}}inferInputMapDataType(i,a=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"infer-input-map-data-type-validate-data"))){var p,e,y;if(((p=i.declaration)==null?void 0:p.id)===Ee.operation[pr.Validate].inputs.entityToMatch.id){const{added:v,updated:E,removed:w,affected:A}=this.syncEntityToMatchInputMapDataType(i,a);return a==null||a.attemptAutoclose("infer-input-map-data-type",this.id),{updated:R(E),added:R(v),removed:R(w),affected:R(A),self:i.dataType}}if(((e=i.declaration)==null?void 0:e.id)===Ee.operation[pr.Validate].inputs.dataToValidate.id){const{added:v,updated:E,removed:w,affected:A}=this.syncDataToValidateInputMapDataType(i,a);return a==null||a.attemptAutoclose("infer-input-map-data-type",this.id),{updated:R(E),added:R(v),removed:R(w),affected:R(A),self:i.dataType}}const o=(y=i.declaration)==null?void 0:y.getDataType(a);if(o&&o.isResolved)return a==null||a.attemptAutoclose("infer-input-map-data-type-validate-data",this.id),{updated:[],added:[],removed:[],affected:[],self:o};if(i.readsValue){const v=yn(i.readsValue,a);return a==null||a.attemptAutoclose("infer-input-map-data-type-validate-data",this.id),{updated:[],added:[],removed:[],affected:[],self:v}}return a==null||a.attemptAutoclose("infer-input-map-data-type-validate-data",this.id),{updated:[],added:[],removed:[],affected:[],self:null}}inferOutputMapDataType(i,a=this.project.addChangeSet(new F(this.project,N.sessionAuthor,L().toISOString(),this,!0,"infer-output-map-data-type-validate-data"))){var o;if(((o=i.declaration)==null?void 0:o.id)===Ee.operation[pr.Validate].outputs.outputEntity.id){const{added:p,updated:e,removed:y,affected:v}=this.syncOutputDataOutputMapDataType(i,a);return a==null||a.attemptAutoclose("infer-output-map-data-type-validate-data",this.id),{updated:R(e),added:R(p),removed:R(y),affected:R(v),self:i.dataType}}return{updated:[],added:[],removed:[],affected:[],self:null}}}class zAe extends wt{constructor(u){super(qv,u)}}class XAe extends wt{constructor(u){super(Jv,u)}}class QAe extends wt{constructor(u){super(Hv,u)}}class ebe extends wt{constructor(u){super(oh,u)}}class tbe extends wt{constructor(u){super(sh,u)}}class rbe extends wt{constructor(u){super(Wu,u)}}function ibe(d){const u=[new WS(d),new JS(d),new HS(d),new HAe(d),new WAe(d),new YAe(d),new ebe(d),new zAe(d),new QAe(d),new XAe(d),new tbe(d),new rbe(d),new wt(kv,d),new wt(Kv,d),new wt(sE,d),new wt(nE,d),new wt(aE,d),new wt(oE,d),new wt(lE,d),new wt(dE,d),new wt(uE,d),new wt(cE,d),new wt(pE,d),new wt(fE,d)];return u.forEach(i=>{i.initChildren(null),d.subscribeBuiltInInstance(i)}),d.operationDeclarations=u,u}class YS extends ia{constructor(i){super(Di,i);g(this,"initialData");g(this,"id",Ue.PERSISTED_ENTITY);g(this,"version","1");g(this,"name",Ue.PERSISTED_ENTITY);g(this,"description",Di.description);g(this,"type",f.BuiltInBaseEntity);g(this,"abstract",Di.abstract);g(this,"static",Di.static);g(this,"properties",[]);g(this,"methods",[]);g(this,"abstractMethods",[]);g(this,"extends",[]);g(this,"errors",[]);g(this,"project");this.initialData=Di,this.project=i,this.id=Di.id,this.version=Di.version,this.name=Di.name,this.static=Di.static,this.abstract=Di.abstract,this.properties=this.initialData.properties.map(a=>{const o=te(a,this.project);return o.setParent(this,null),o.initChildren(null),o}),this.methods=this.initialData.methods.map(a=>{const o=te(a,this.project);return o.parent=this,o}),this.abstractMethods=this.initialData.abstractMethods.map(a=>{const o=te(a,this.project);return o.parent=this,o}),this.extends=this.initialData.extends.map(a=>te(a,this.project))}}var zS=(d=>(d.StatusCodeMustBeNumber="status-code-must-be-number",d.StatusCodeMustBeBetween100And599="status-code-must-be-between-100-and-599",d))(zS||{});function XS(d,u){const i=[];if(typeof u!="number"){const a=new dr({id:d.id+"--status-code-must-be-number",message:`Entity of type ${d.type} with id "${d.id}" has an invalid value "${u}". The value must be a number.`,severity:q.Error,code:"status-code-must-be-number",entity:d});return i.push(a),{errors:i,override:u}}if(u<100){const a=new dr({id:d.id+"--status-code-must-be-between-100-and-599",message:`Entity of type ${d.type} with id "${d.id}" has an invalid value "${u}". The value must be a number between 100 and 599.`,severity:q.Error,code:"status-code-must-be-between-100-and-599",entity:d});i.push(a)}if(u>599){const a=new dr({id:d.id+"--status-code-must-be-between-100-and-599",message:`Entity of type ${d.type} with id "${d.id}" has an invalid value "${u}". The value must be a number between 100 and 599.`,severity:q.Error,code:"status-code-must-be-between-100-and-599",entity:d});i.push(a)}return{errors:i,override:u}}class QS extends ia{constructor(i){super(ps,i);g(this,"initialData");g(this,"id",Ue.PERSISTED_ENTITY);g(this,"version","1");g(this,"name",Ue.PERSISTED_ENTITY);g(this,"description",ps.description);g(this,"type",f.BuiltInBaseEntity);g(this,"abstract",ps.abstract);g(this,"static",ps.static);g(this,"properties",[]);g(this,"methods",[]);g(this,"abstractMethods",[]);g(this,"extends",[]);g(this,"errors",[]);g(this,"project");this.initialData=ps,this.project=i,this.id=ps.id,this.version=ps.version,this.name=ps.name,this.static=ps.static,this.abstract=ps.abstract,this.properties=this.initialData.properties.map(e=>{const y=te(e,this.project);return y.setParent(this,null),y.initChildren(null),y}),this.methods=this.initialData.methods.map(e=>{const y=te(e,this.project);return y.parent=this,y}),this.abstractMethods=this.initialData.abstractMethods.map(e=>{const y=te(e,this.project);return y.parent=this,y}),this.extends=this.initialData.extends.map(e=>te(e,this.project));const a=this.properties.find(e=>e.id===Ee["built-in-base-entity"].BUILT_IN_HTTP_ENDPOINT_ENTITY.properties.path.id);if(!a)throw new Error("Path property not found in endpoint entity");a._codeNativeValueValidation=(e,y)=>A5(e,y);const o=this.abstractMethods.find(e=>e.id===Ee["built-in-base-entity"].BUILT_IN_HTTP_ENDPOINT_ENTITY.methods.handler.id);if(!o)throw new Error("Handler method not found in endpoint entity");const p=o.outputs.find(e=>e.id===Ee["built-in-base-entity"].BUILT_IN_HTTP_ENDPOINT_ENTITY.methods.handler.outputs.statusCode.id);if(!p)throw new Error("Status code output not found in handler method");p.codeNativeValueValidation=(e,y)=>XS(e,y)}}const sbe="test_primitive_entities_export";class nbe extends ia{constructor(i){super(Ti,i);g(this,"initialData");g(this,"id",Ue.PERSISTED_ENTITY);g(this,"version","1");g(this,"name",Ue.PERSISTED_ENTITY);g(this,"description",Ti.description);g(this,"type",f.BuiltInBaseEntity);g(this,"abstract",Ti.abstract);g(this,"static",Ti.static);g(this,"properties",[]);g(this,"methods",[]);g(this,"abstractMethods",[]);g(this,"extends",[]);g(this,"errors",[]);g(this,"project");this.initialData=Ti,this.project=i,this.id=Ti.id,this.version=Ti.version,this.name=Ti.name,this.static=Ti.static,this.abstract=Ti.abstract,this.properties=this.initialData.properties.map(o=>{const p=te(o,this.project);return p.setParent(this,null),p.initChildren(null),p}),this.methods=this.initialData.methods.map(o=>{const p=te(o,this.project);return p.parent=this,p}),this.abstractMethods=this.initialData.abstractMethods.map(o=>{const p=te(o,this.project);return p.parent=this,p}),this.extends=this.initialData.extends.map(o=>te(o,this.project));const a=this.properties.find(o=>o.id===Ee["built-in-base-entity"].BUILT_IN_RELATIONAL_DATABASE_ENTITY.properties.identifier.id);if(!a)throw new Error("Path property not found in endpoint entity");a._codeNativeValueValidation=(o,p)=>b5(o,p)}}function abe(d){const u=[new YS(d),new QS(d),new nbe(d),new ia(Oh,d)];return u.forEach(i=>{d.subscribeBuiltInInstance(i)}),d.builtInBaseEntities=u,u}function obe(d){const u=[new ss(Ye,d),new ss(Aa,d),new ss(vt,d),new ss(Uv,d),new ss(Ei,d),new ss(ba,d),new ss(Mn,d),new ss(wa,d),new ss(td,d)];return u.forEach(i=>{d.subscribeBuiltInInstance(i)}),d.primitives=u,u}function lbe(d){const u=[new wt($h,d)];return u.forEach(i=>{i.initChildren(null),d.subscribeBuiltInInstance(i)}),d.globalEventActionDescriptors=u,u}function dbe(d){const u=[new wt(ec,d),new wt(Ja,d),new wt(Xu,d),new wt(sd,d),new wt(nd,d),new wt(Th,d)];u.forEach(a=>{a.initChildren(null),d.subscribeBuiltInInstance(a)}),d.loopDeclarations=u;const i=[new wt(wh,d),new wt(Qu,d),new wt(Ah,d),new wt(EE,d),new wt(IE,d),new wt(Ih,d)];return i.forEach(a=>{a.initChildren(null),d.subscribeBuiltInInstance(a)}),d.loopDeclarationsBodies=i,u}function ube(d){const u=[new vn(Ph,d),new vn(GE,d)];return u.forEach(i=>{i.initChildren(null),d.subscribeBuiltInInstance(i)}),d.valueDescriptors=u,u}function cbe(d){const u=[new wt(el,d),new wt(jE,d),new wt(ud,d)];return u.forEach(i=>{i.initChildren(null),d.subscribeBuiltInInstance(i)}),d.conditionDeclarations=u,u}const Dl={},Sm={},cf={empty:!1,enrich:!0,mock:!1,ignoreCache:!1,onFetch:async()=>null,manuallyInit:!1};function eK(d,u={enrich:!0,shallowErrors:!1},i){const a={enrich:!0,shallowErrors:!1,...u},{enrich:o,shallowErrors:p}=a,e=d.project,y=d.record,v=new ea(e),E=new Set;y[e.id]=e,E.add(e.id);const w=L().toISOString();Object.values(y).forEach(V=>{!V||v.allBuiltInEntityIds.includes(V.id)||E.add(V.id)}),v.order=Array.from(E),v.flatRecord=y,v.orderEntities();const A=Km(d.project,i);A.instances[e.id]=A;const $=o?A.addChangeSet(new F(A,N.sessionAuthor,w,A,!0,"project-init-from-fetch-result")):null;return v.visit(V=>{if(V.id===A.id)return;const U=te(V,A);try{U.hydrateAncestors(),U.addSelfToProject(null);const G=Yd(V);Object.keys(G.downstream).forEach(K=>{const Z=A.get(K);Z&&Z.hydrateAncestors()})}catch(G){if(p)Me.error("Error hydrating ancestors: ",G);else throw G}}),o?(v.visit(V=>{if(V.id===A.id)return;const U=A.get(V.id);U&&U.afterAllChildrenInitialized($)}),A.afterAllChildrenInitialized($)):km(A,w).forEach(U=>{U.remove({ignoreUpstream:!0},null)}),A.instancesList.forEach(V=>{V.previousVersion=null}),$==null||$.attemptAutoclose("project-init-from-fetch-result",A.id),A}async function pbe(d,u=cf){const i={...cf,...u};if(i.empty)return{data:{project:{id:d.id,type:f.Project,version:N.UUID.uuid(),createdAt:L().toISOString(),author:N.sessionAuthor,previousVersion:null,deleted:!1,name:null,description:null,projects:[],entities:[],operations:[],functions:[],variableDeclarations:[],variableInstances:[],functionCalls:[],conditions:[],loops:[],searches:[],events:[]},record:{}}};if(i.mock){const o={...QT};return o.id=d.id,{data:{project:o,record:{}}}}return Me.log("Fetching project from external API"),new Promise(async o=>{try{if(i.onFetch){const p=await i.onFetch(d.id);if(p){o({data:p});return}}else o({data:null})}catch(p){Me.error("Error fetching project: ",p),o({data:null})}})}function Km(d,u){const i=new N(d,u);return obe(i),abe(i),ibe(i),lbe(i),dbe(i),ube(i),cbe(i),Array.from(new Set([...i.getAllBuiltInIds(),...Xs()])).forEach(o=>{if(!i.builtInInstances[o]&&i.instances[o])i.builtInInstances[o]=i.instances[o],delete i.instances[o];else if(!i.builtInInstances[o])throw new Error(`Built in entity was not properly initialized: ${o}`)}),i.instances[i.id]=i,i}function km(d,u){return d.instancesList.filter(a=>L(a.createdAt).isAfter(L(u)||!!a.previousVersion))}function fbe(d,{enrich:u}={enrich:!0},i){const a=new Map,o=new Map,p=Array.from(new Set([...d.getAllBuiltInIds(),...Xs()]));Object.keys(d.instances).forEach(A=>{if(p.includes(A)){a.set(A,A),o.set(A,A);return}const $=d.get(A);if(!Um($,{...d.instances,...d.builtInInstances}).every(K=>!p.includes(K))){a.set(A,A),o.set(A,A);return}const G=N.UUID.uuid();a.set(A,G),o.set(G,A)});const e=L().toISOString(),y=d.toShallowJSON({seenEntityMaps:a});y.previousVersion=null,y.createdAt=e,y.version=N.UUID.uuid();const v=Km(y,i);v.instances[v.id]=v;const E=u?v.addChangeSet(new F(v,N.sessionAuthor,e,v,!0,"project-clone")):null,w=new ea(d);return w.visit(A=>{const $=A.toShallowJSON({seenEntityMaps:a});$.previousVersion=null,$.createdAt=e,$.version=N.UUID.uuid();const V=Yd($,j5(w.flatRecord,a));if(Object.keys(V.upstream).length){let G=!1;if(Object.keys(V.upstream).forEach(K=>{if(!G&&(!v.get(K)||v.getDeleted(K))){G=!0;return}}),G)return}const U=te($,v);U.hydrateAncestors(),U.addSelfToProject(E),E==null||E.add(U,S.Added)}),u?(w.visit(A=>{if(A.id===v.id)return;const $=v.get(a.get(A.id));$&&$.afterAllChildrenInitialized(E)}),v.afterAllChildrenInitialized(E)):km(v,e).forEach($=>{$.remove({ignoreUpstream:!0},null)}),v.instancesList.forEach(A=>{A.previousVersion=null}),E==null||E.attemptAutoclose("project-clone",v.id),v}function tK(d,{enrich:u}={enrich:!0},i){const a=Km(d,i),o=L().toISOString(),p=u?a.addChangeSet(new F(a,N.sessionAuthor,o,a,!0,"project-init")):null;p&&(p.type=iA.Automatic);const e=new ea(d);return e.visit(y=>{const v=te(y,a);v.hydrateAncestors(),v.addSelfToProject(p)}),u?(e.visit(y=>{if(y.id===a.id)return;const v=a.get(y.id);v&&v.afterAllChildrenInitialized(p)}),a.afterAllChildrenInitialized(p)):(km(a,o).forEach(E=>{E.remove({ignoreUpstream:!0},null)}),new ea(a).visit(E=>{E.initialized=!0,E.captureVersion()})),a.initialized=!0,p==null||p.attemptAutoclose("project-init",a.id),a}async function hbe(d,u=cf,i){const a={...cf,...u};if(d.id&&Dl[d.id]&&!a.ignoreCache)return Dl[d.id];if(d.id&&Sm[d.id]&&!a.ignoreCache)return await Sm[d.id],Dl[d.id];const o=pbe(d,a);d.id&&(Sm[d.id]=o);const p=await o;if(p.data){let e;return a.mock?e=tK(QT,{enrich:!!a.enrich},i):p.data instanceof N?e=p.data:e=eK(p.data,{enrich:!!a.enrich},i),Dl[d.id]=e,d.id&&delete Sm[d.id],e}return null}function ybe(d){return Dl[d.id]&&delete Dl[d.id],null}D.AI_VALUE_CONNECTION_GENERATION_ACTION_EXPLANATION=gb,D.ALL_BUILT_IN_BASE_ENTITIES=KL,D.ALL_BUILT_IN_CONDITION_ENTITIES=n2,D.ALL_BUILT_IN_GLOBAL_EVENT_ENTITIES=o2,D.ALL_BUILT_IN_LOOP_BODY_ENTITIES=mV,D.ALL_BUILT_IN_LOOP_ENTITIES=yV,D.ALL_BUILT_IN_OPERATION_ENTITIES=DP,D.ALL_BUILT_IN_PRIMITIVE_ENTITIES=Ng,D.ALL_BUILT_IN_TOP_LEVEL_ENTITIES=f2,D.ALL_BUILT_IN_VALUE_DESCRIPTORS=p2,D.ALL_CONNECTION_DISABLED_REASONS=aIe,D.ALL_OTHER_DISABLED_REASONS=lIe,D.ALL_TESTING_DISABLED_REASONS=oIe,D.ActionDescriptorState=wt,D.ActionInputMapState=eEe,D.ActionOutputMapState=iEe,D.AppendToListOperationInputIds=FD,D.AppendToListOperationOutputIds=GD,D.Area=bi,D.ArgumentDeclarationDependencyField=Pj,D.ArgumentDeclarationState=Jn,D.BREAK_AND_CONTINUE_STATEMENTS_RETURN_DECLARATIONS_EXPLANATION=bb,D.BUILT_INT_OPERATIONS_IMPLEMENTATIONS__PREFIX=ot,D.BUILT_IN_BASE_ENTITY_IDS=Ee,D.BUILT_IN_ENTITY_TYPES=Wi,D.BUILT_IN_FUNCTION_IMPLEMENTATIONS__PREFIX=kp,D.BaseCanvasDraggableState=GAe,D.BaseEntityNames=Ue,D.BaseRegisteredExtension=st,D.BaseState=FAe,D.BaseValueDescriptorIds=ed,D.BreakStatementDependencyField=OF,D.BreakStatementState=ho,D.BuiltInBaseEntityState=ia,D.BuiltInFunctionIds=Hi,D.BuiltInFunctionImplementationAbortExecutionModule=JF,D.BuiltInFunctionImplementationDeletePersistedEntityModule=HF,D.BuiltInFunctionImplementationSavePersistedEntityModule=WF,D.CACHED_PROJECTS_BY_ID=Dl,D.CALLABLE_ENTITIES_EXPLANATION=bIe,D.CALLABLE_TYPES=Ri,D.CALLER_ENTITIES_EXPLANATION=n5,D.CALLER_TYPES=_i,D.CALLS_UPDATE_EXPLANATION=Eo,D.CANVAS_BASE_X=J6,D.CANVAS_BASE_Y=H6,D.CANVAS_CARD_HEADER_CENTER_HEIGHT=Hd,D.CANVAS_CARD_WIDTH=k6,D.CANVAS_COMPLEX_CARD_HEIGHT=eIe,D.CANVAS_HORIZONTAL_BUFFER_BETWEEN_CARDS=ub,D.CANVAS_SIMPLE_CARD_HEIGHT=lb,D.CANVAS_SIZE=ob,D.CANVAS_VERTICAL_BUFFER_BETWEEN_CARDS=hm,D.CARD_FOOTER_HEIGHT=fm,D.CARD_PROPERTIES_SECTION_PADDING=Ba,D.CARD_PROPERTIES_SECTION_SINGLE_PADDING=db,D.CHILDREN_TYPES=CZ,D.COMPARISON_CONDITIONS=i2,D.CONDITIONS=s2,D.CUSTOM_ENTITY_OPERATIONS=aC,D.CallableEntityClass=KAe,D.CallerEntityClass=tw,D.CanvasEntityConnectionDisabledReason=cb,D.CanvasEntityOtherDisabledReason=fb,D.CanvasEntityTestingDisabledReason=pb,D.ChangeSet=F,D.ChangeSetChangeCaptureType=iA,D.ChangeSetEntityChangeType=S,D.ChildEntityBaseClass=SAe,D.CommonStringValidationErrorCodes=I5,D.ComparisonOperatorTypes=_r,D.ConditionDependencyField=Jj,D.ConditionState=oo,D.ContinueStatementDependencyField=Sj,D.ContinueStatementState=Ni,D.CreateNewInputIds=LO,D.CreateNewOutputIds=MO,D.DEFAULT_BASE_EXTENSIONS_CONTEXT=rb,D.DEFAULT_EXECUTION_INSTANCE_PARENT_CONTEXT=S6,D.DEFAULT_MODULE_IDS=it,D.DEFAULT_PROJECT_INSTANCE_PARENT_CONTEXT=ZS,D.DEFAULT_PROJECT_STATIC_PARENT_CONTEXT=rw,D.DEFAULT_UUID_MODULE=Ju,D.DRAGGABLE_CALLABLE_TYPES=Bv,D.DRAGGABLE_CALLER_TYPES=bg,D.DRAGGABLE_ELEMENT_TYPES=ih,D.DRAGGABLE_EXECUTABLE_TYPES=DZ,D.DRAGGABLE_PASS_THROUGH_CALLABLE_TYPES=rh,D.DRAGGABLE_PASS_THROUGH_CALLABLE_TYPES_WITH_OUTPUTS=Mv,D.DataTypeCompatibilityTypes=Ws,D.DataTypeDependencyField=oA,D.DataTypeParentChildRelation=vi,D.DataTypeState=vs,D.DefaultEditorContext=tb,D.DefaultProjectLogicContext=jA,D.DefinitionEntityDependencyField=Gm,D.DefinitionEntityState=ra,D.DynamicValueTypes=Ae,D.EDITABLE_PERSISTANCE_REPOSITORY_DEFAULTS=jAe,D.ENTITIES_WITH_VALLUES_EXPLANATION=Em,D.ENTITY_PERSISTANCE_OPTIONS_DEFAULTS=ve,D.ENTITY_RECUSION_OPTIONS_DEFAULTS=ke,D.ENTITY_TYPES=OZ,D.ENTITY_WITH_CODE_NAMES_TYPES=_g,D.ENTITY_WITH_DECLARATION_TYPES=gZ,D.ENTITY_WITH_LOGIC_SCOPE_TYPES=Mr,D.ENTITY_WITH_NAMES_TYPES=Rg,D.ENTITY_WITH_PARENT_TYPES=RZ,D.ENTITY_WITH_USER_MANAGED_DECLARATION_TYPES=Ig,D.ENTITY_WITH_USER_MANAGED_SINGLE_IMPLEMENTS_TYPES=_Z,D.ENTITY_WITH_VALUE_TYPES=Lv,D.ENTRY_POINT_ENTITIES_EXPLANATION=Yp,D.ENTRY_POINT_TYPES=Jt,D.ERROR_PROPERTY_HEIGHT=pm,D.EVENT_TYPES=So,D.EXECUTABLE_TYPES=wg,D.EXECUTION_OPERATIONS=VO,D.EfimeralValueStore=Mp,D.EndpointEntity=QS,D.EntityError=dr,D.EntityErrorSeverity=q,D.EntityGenerationError=ee,D.EntityGenerationErrorCode=k,D.EntityInstanceErrorCode=le,D.EntityOperations=pr,D.EntityType=f,D.EntityWithLogicScopeClass=JAe,D.EntityWithValueClass=ZAe,D.EntryPointEntityClass=kAe,D.Execution=zs,D.ExecutionOperations=rr,D.ExecutionState=ib,D.ExecutionTerminationType=se,D.ExplicitInfrastructureResource=vb,D.ExtensionContextBase=UA,D.ExtensionContextType=be,D.ExtensionPermissions=rt,D.ExtensionsRegistry=G6,D.ExtentionPriority=Xe,D.FunctionCallDependencyField=m5,D.FunctionCallState=Ao,D.FunctionDeclarationDependencyField=Lj,D.FunctionDeclarationState=io,D.GET_PROJECT_OPTIONS_DEFAULTS=cf,D.GLOBAL_EVENT_DECLARATIONS=a2,D.GetLastInListOperationInputIds=OD,D.GetLastInListOperationOutputIds=CD,D.GlobalEventNames=Ia,D.GlobalEventState=ao,D.HTTPOperations=mi,D.HTTPStatucCodeValidationErrorCodes=zS,D.HTTP_OPERATIONS=FC,D.ImplicitGlobalInfrastructureResource=Eb,D.InfrastructureResource=mb,D.InfrastructureResourceStatus=t5,D.InputMapDependencyField=bF,D.InputMapState=Yn,D.InstalledProjectState=po,D.InternalCallDependencyField=IF,D.InternalCallState=fo,D.JoinListOperationInputIds=H1,D.JoinListOperationOutputIds=W1,D.LIST_OPERATIONS=eO,D.ListOperations=Je,D.LiteralValueDependencyField=gF,D.LiteralValueState=ki,D.Logger=Me,D.LoopDependencyField=qj,D.LoopState=Si,D.LoopTypes=ze,D.MAIN_VALUE_PROPERTY_HEADER_HEIGHT=cm,D.MAIN_VALUE_SUB_PROPERTY_HEIGHT=tIe,D.NESTED_PROPERTY_HEIGHT=q6,D.NON_INTERACTIVE_BASE_ENTITIES_EXPLANATION=To,D.NUMBER_OPERATIONS=l1,D.NumberOperations=Zt,D.OPERATION_DECLARATIONS=gP,D.OperationDependencyField=Uj,D.OperationState=so,D.OperationsImplementationsEntityCreateNewInstanceModule=j6,D.OperationsImplementationsEntityValidateModule=x6,D.OperationsImplementationsExecutionParallelModule=M6,D.OperationsImplementationsExecutionSequentialModule=B6,D.OperationsImplementationsExecutionWaitModule=U6,D.OperationsImplementationsHttpRequestModule=F6,D.OperationsImplementationsListAddIndexModule=g6,D.OperationsImplementationsListAppendModule=V6,D.OperationsImplementationsListDeleteFirstModule=_6,D.OperationsImplementationsListDeleteLastModule=R6,D.OperationsImplementationsListGetFirstModule=P6,D.OperationsImplementationsListGetIndexItemModule=$6,D.OperationsImplementationsListGetLastModule=N6,D.OperationsImplementationsListJoinModule=A6,D.OperationsImplementationsListPrependModule=L6,D.OperationsImplementationsListReplaceFirstModule=O6,D.OperationsImplementationsListReplaceIndexModule=D6,D.OperationsImplementationsListReplaceLastModule=C6,D.OperationsImplementationsListReverseModule=w6,D.OperationsImplementationsListSplitModule=b6,D.OperationsImplementationsNumberAdditionModule=xG,D.OperationsImplementationsNumberDivisionModule=SG,D.OperationsImplementationsNumberExponentiationModule=kG,D.OperationsImplementationsNumberMultiplicationModule=GG,D.OperationsImplementationsNumberRemainderModule=KG,D.OperationsImplementationsNumberSubstractionModule=FG,D.OperationsImplementationsRandomGenerateHexadecimalTokenModule=e6,D.OperationsImplementationsRandomGenerateIdentifierModule=zG,D.OperationsImplementationsRandomGenerateShortIdentifierModule=QG,D.OperationsImplementationsRandomGenerateUUIDv4Module=XG,D.OperationsImplementationsRandomnessGenerateRandomAlphaNumericModule=YG,D.OperationsImplementationsRandomnessGenerateRandomBase62Module=HG,D.OperationsImplementationsRandomnessGenerateRandomBase64Module=WG,D.OperationsImplementationsRandomnessGenerateRandomFloatModule=ZG,D.OperationsImplementationsRandomnessGenerateRandomHexadecimalModule=JG,D.OperationsImplementationsRandomnessGenerateRandomIntegerModule=qG,D.OperationsImplementationsStringAddIndexModule=d6,D.OperationsImplementationsStringAppendModule=T6,D.OperationsImplementationsStringDeleteFirstModule=s6,D.OperationsImplementationsStringDeleteIndexModule=l6,D.OperationsImplementationsStringDeleteLastModule=i6,D.OperationsImplementationsStringGetFirstModule=m6,D.OperationsImplementationsStringGetIndexItemModule=y6,D.OperationsImplementationsStringGetIndexOfModule=E6,D.OperationsImplementationsStringGetLastModule=v6,D.OperationsImplementationsStringJoinModule=t6,D.OperationsImplementationsStringPrependModule=I6,D.OperationsImplementationsStringReplaceAllMatchesModule=h6,D.OperationsImplementationsStringReplaceFirstModule=u6,D.OperationsImplementationsStringReplaceIndexModule=p6,D.OperationsImplementationsStringReplaceLastModule=c6,D.OperationsImplementationsStringReplaceSingleMatchModule=f6,D.OperationsImplementationsStringReverseModule=n6,D.OperationsImplementationsStringSplitModule=r6,D.OperationsImplementationsStringToLowerCaseModule=a6,D.OperationsImplementationsStringToUpperCaseModule=o6,D.OutputMapDependencyField=RF,D.OutputMapParentChildRelation=Ql,D.OutputMapState=mn,D.PARENT_AUTO_CALCULATION_FROM_CALLER_EXPLANATION=Tm,D.PASS_THROUGH_CALLABLE_ENTITIES_EXPLANATION=vo,D.PASS_THROUGH_CALLABLE_TYPES=fr,D.PASS_THROUGH_CALLABLE_TYPES_WITH_OUTPUTS=Ag,D.PLACEHOLDER_VALUE_STORE_CLIENT=PF,D.PROPERTY_HEIGHT=um,D.PROPERTY_NOT_VALUE_READER_WRITTER_EXPLANATION=_b,D.PUBLISHING_DISABLED_REASONS=r5,D.ParallelExecutionOperation=JS,D.PassThroughCallableEntityClass=qAe,D.PersistedEntity=YS,D.PrimitiveEntityState=ss,D.PrimitiveTypes=Q,D.ProjectState=N,D.ProjectStateEvents=Vr,D.PropertyDependencyField=xS,D.PropertyState=ta,D.PublicationRun=fIe,D.PublicationStep=e5,D.RANDOMNESS_OPERATIONS=_P,D.READABLE_ENTITY_TYPES=sb,D.READ_ONLY_ENTITY_PERSISTANCE_REPOSITORY=qS,D.RETURN_STATEMENT_RETURN_DECLARATIONS_EXPLANATION=wIe,D.RandomnessOperations=De,D.ReturnDeclarationDependencyField=xj,D.ReturnDeclarationState=is,D.ReturnStatementDependencyField=lA,D.ReturnStatementState=no,D.SQLAST=kve,D.STANDALONE_CONDITIONS=HL,D.STATIC_PROPERTY_HEIGHT=Z6,D.STRING_OPERATIONS=J1,D.ScopeCompatibilityType=Mm,D.SearchDependencyField=dF,D.SearchNodeImplementationModule=YF,D.SearchState=co,D.SequentialExecutionOperation=WS,D.SequentialExecutionOperationInputIds=IO,D.SequentialExecutionOperationOutputIds=AO,D.SharedEntityErrorCode=ae,D.SharedStateFunctionality=kS,D.SplitListOperationInputIds=uD,D.SplitListOperationOutputIds=cD,D.StandaloneOperatorTypes=zr,D.StringOperations=Se,D.TERMINATION_TYPES=Ar,D.Traverser=ea,D.USER_MANAGED_ENTITY_TYPES=gg,D.UUIDModule=zF,D.UserManagedEntityStateTemplate=xAe,D.VALUE_READING_ENTITIES_EXPLANATION=Rb,D.VALUE_READING_TYPES=Ln,D.VALUE_WRITING_ENTITIES_EXPLANATION=a5,D.VALUE_WRITING_TYPES=qr,D.VARIABLE_DATA_TYPE_INFERRANCE_EXPLANATION=wb,D.VARIABLE_TYPES=mt,D.ValueAutogenerationType=kr,D.ValueDescriptorDependencyField=$F,D.ValueDescriptorParentChildRelation=de,D.ValueDescriptorState=vn,D.ValueReadingEntityClass=df,D.ValueWritingEntityClass=uf,D.VariableDeclarationDependencyField=zj,D.VariableDeclarationState=uo,D.VariableInputMapState=Qve,D.VariableInstanceDependencyField=uA,D.VariableInstanceState=lo,D.VariableOutputMapState=rEe,D.WaitOperation=HS,D.actionDescriptorValidation=Qme,D.addDisabledReasons=uIe,D.afterLiteralValueAsTypeChangeSideEffects=qF,D.afterLiteralValueAsTypeDeleteSideEffects=kF,D.afterLiteralValueChangeSideEffects=SF,D.afterLiteralValueDeleteSideEffects=GF,D.aggregateVariableInputsNextValues=Up,D.aggregateVariableInputsValues=ky,D.appendToListOperation=oh,D.appendToListOperationElementToAppendArgument=Yv,D.appendToListOperationElementToAppendArgumentParentRef=WD,D.appendToListOperationElementToAppendArgumentRef=kD,D.appendToListOperationError=QD,D.appendToListOperationErrorParentRef=XD,D.appendToListOperationListArgument=Wv,D.appendToListOperationListArgumentParentRef=HD,D.appendToListOperationListArgumentRef=SD,D.appendToListOperationListDataType=KD,D.appendToListOperationResultListDataType=JD,D.appendToListOperationResultListReturn=zD,D.appendToListOperationResultListReturnParentRef=YD,D.appendToListOperationResultListReturnRef=ZD,D.appendToListOperationSecondListDataType=qD,D.applyNewScope=We,D.argumentDeclarationValidation=jme,D.asGenerationActionExample=Qn,D.assembleAndAddLiteralValueFromDataType=En,D.assembleStandaloneLiteralValueFromDataType=dt,D.booleanPrototype=Aa,D.breakStatementValidation=aEe,D.calculateCardSize=Y6,D.calculateMethodCardSize=W6,D.calculateNewParentBasedOnCallers=Xp,D.capitalizeFirstLetter=Ii,D.changeSetJSONRecordToUniqueIds=xme,D.checkAreDataTypesCompatible=Ys,D.checkAreDefinitionEntitiesCompatibleAsDataType=hF,D.checkArePropertiesCompatibleAsDataType=fF,D.checkExtendsBaseEntity=Bm,D.checkHasBaseEntity=As,D.checkHasMetadataChanged=Ur,D.checkImplementationsOverlap=ja,D.checkImplementsBaseEntity=aAe,D.checkIsBranchDependentButNotDirectlyOnBranch=gl,D.checkIsBranchDependentOnBranch=Bb,D.checkIsBuiltIn=qb,D.checkIsCallableEntityReachable=of,D.checkIsCallerBranchDependentOnBranch=FIe,D.checkIsCanvasEntity=sAe,D.checkIsDefEntityInlineDeclaredForSearchOutputType=DA,D.checkIsDetachedBranch=IS,D.checkIsDetachedBranchShallow=Kb,D.checkIsEmptyValue=Ky,D.checkIsGlobalVariable=rAe,D.checkIsGloballyDeclared=Sb,D.checkIsLiteralValueEmpty=Bp,D.checkIsMethod=kb,D.checkIsNestedScope=Lm,D.checkIsRequiredValue=zn,D.checkScopeCompatibility=Qs,D.checkShouldInputOrOutputBePartOfFinalVariableObjectValue=lf,D.checkShouldPropertyBePartOfFinalVariableObjectValue=Zb,D.cloneProject=fbe,D.conditionValidation=e0e,D.continueStatementValidation=Wme,D.convertToAbstract=MIe,D.convertToNonAbstract=BIe,D.convertToNonStatic=jIe,D.convertToStatic=UIe,D.countedLoopActionDescriptor=ec,D.countedLoopActionDescriptorDynamicReturnDeclaration=oV,D.countedLoopActionDescriptorDynamicReturnDeclarationParentRef=aV,D.countedLoopActionDescriptorStringArgumentDeclaration=nV,D.countedLoopActionDescriptorStringArgumentDeclarationDataType=iV,D.countedLoopActionDescriptorStringArgumentDeclarationDataTypeDefaultValue=tV,D.countedLoopActionDescriptorStringArgumentDeclarationDataTypeDefaultValueParentRef=eV,D.countedLoopActionDescriptorStringArgumentDeclarationDataTypeParentRef=rV,D.countedLoopActionDescriptorStringArgumentDeclarationParentRef=sV,D.countedLoopBodyActionDescriptor=wh,D.countedLoopBodyActionDescriptorAnyDynamicArgument=pV,D.countedLoopBodyActionDescriptorAnyDynamicArgumentParentRef=cV,D.countedLoopBodyActionDescriptorAnyDynamicReturn=hV,D.countedLoopBodyActionDescriptorAnyDynamicReturnParentRef=fV,D.countedLoopBodyActionDescriptorIterationNumberArgumentDeclaration=bE,D.countedLoopBodyActionDescriptorIterationNumberArgumentDeclarationDataType=dV,D.countedLoopBodyActionDescriptorIterationNumberArgumentDeclarationDataTypeParentRef=lV,D.countedLoopBodyActionDescriptorIterationNumberArgumentDeclarationParentRef=uV,D.createDefinitionEntityFromJSONObject=Rm,D.createEntityError=ft,D.createNestedDataTypeForEntity=T5,D.createNewInstanceOperation=ko,D.createNewInstanceOperationEntityToInstanciateArgument=KO,D.createNewInstanceOperationEntityToInstanciateArgumentRef=FO,D.createNewInstanceOperationEntityToInstanciateDataType=GO,D.createNewInstanceOperationError=JO,D.createNewInstanceOperationErrorParentRef=ZO,D.createNewInstanceOperationNewEntityDataArgument=xO,D.createNewInstanceOperationNewEntityDataArgumentDataType=jO,D.createNewInstanceOperationNewEntityDataArgumentDataTypeParentRef=UO,D.createNewInstanceOperationNewEntityDataArgumentParentRef=BO,D.createNewInstanceOperationOutputEntityDeclaration=qO,D.createNewInstanceOperationOutputEntityDeclarationParentRef=kO,D.createNewInstanceOperationRef=SO,D.createSemanticId=LS,D.createStateFromGenerationTargetType=UAe,D.createStateFromType=lr,D.createStateFromTypeAndSubscribe=te,D.cronJobBuiltInBaseEntity=Oh,D.cronJobBuiltInBaseEntityExpressionProperty=GL,D.cronJobBuiltInBaseEntityExpressionPropertyDataTypeRef=BZ,D.cronJobBuiltInBaseEntityExpressionPropertyRef=xL,D.cronJobBuiltInBaseEntityRef=FL,D.cronJobTriggeredFunctionDeclarationBlueprint=BE,D.cronJobTriggeredFunctionDeclarationBlueprintParentRef=UL,D.dataTypeCompatibilityToErrorExplanation=h5,D.dataTypeValidation=Kme,D.datePrototype=Mn,D.dateValueAutogenerationSchema=PI,D.definitionEntityToZodSchema=lT,D.definitionEntityValidation=VAe,D.deletePersistedEntityMethod=ME,D.deletePersistedEntityMethodParentRef=AL,D.deleteRootProject=ybe,D.emitSideEffects=$j,D.emptyCondition=jE,D.emptyConditionArgument=JL,D.emptyConditionRef=ZL,D.endpointBuiltInBaseEntity=ps,D.endpointBuiltInBaseEntityRef=IV,D.endpointBuiltInBaseEntityRefFour=rL,D.endpointBuiltInBaseEntityRefThree=CV,D.endpointBuiltInBaseEntityRefTwo=_V,D.endpointBuiltInCorsProperty=AV,D.endpointBuiltInCorsPropertyDataType=TV,D.endpointBuiltInCorsPropertyDataTypeRef=vV,D.endpointBuiltInCorsPropertyRef=EV,D.endpointBuiltInMethodProperty=RE,D.endpointBuiltInMethodPropertyDataType=OV,D.endpointBuiltInMethodPropertyDataTypeRef=gV,D.endpointBuiltInMethodPropertyRef=DV,D.endpointBuiltInPathProperty=wE,D.endpointBuiltInPathPropertyDataType=RV,D.endpointBuiltInPathPropertyDataTypeRef=bV,D.endpointBuiltInPathPropertyRef=wV,D.endpointPathParamsArgumentDeclaration=gE,D.endpointPathParamsArgumentDeclarationRef=xV,D.endpointPathParamsVariableDataType=FV,D.endpointPathParamsVariableDataTypeRef=jV,D.endpointReachedTriggerActionDescriptor=NE,D.endpointReachedTriggerActionDescriptorRef=GV,D.endpointReachedTriggerActionDescriptorRefFour=kV,D.endpointReachedTriggerActionDescriptorRefThree=KV,D.endpointReachedTriggerActionDescriptorRefTwo=SV,D.endpointRequestBodyArgumentDeclaration=OE,D.endpointRequestBodyArgumentDeclarationRef=VV,D.endpointRequestBodyVariableDataType=LV,D.endpointRequestHeadersArgumentDeclaration=_E,D.endpointRequestHeadersArgumentDeclarationRef=PV,D.endpointRequestHeadersVariableDataType=NV,D.endpointRequestHeadersVariableDataTypeRef=$V,D.endpointRequestQueryParamsArgumentDeclaration=DE,D.endpointRequestQueryParamsArgumentDeclarationRef=BV,D.endpointRequestQueryParamsVariableDataType=UV,D.endpointRequestQueryParamsVariableDataTypeRef=MV,D.endpointResponseBodyDataType=eL,D.endpointResponseBodyReturnDeclaration=PE,D.endpointResponseBodyReturnDeclarationRef=QV,D.endpointResponseCodeDataType=ZV,D.endpointResponseCodeReturnDeclaration=CE,D.endpointResponseCodeReturnDeclarationDefaultValueParentRef=HV,D.endpointResponseCodeReturnDeclarationRef=qV,D.endpointResponseHeadersDataType=zV,D.endpointResponseHeadersDataTypeRef=WV,D.endpointResponseHeadersReturnDeclaration=$E,D.endpointResponseHeadersReturnDeclarationRef=YV,D.endpointReturnStatementRef=JV,D.endpointReturnStatementRefThree=tL,D.endpointReturnStatementRefTwo=XV,D.enerateRandomIntegerOperationError=e$,D.enerateRandomIntegerOperationErrorParentRef=QC,D.enrichFromKnownEntities=ef,D.enumOptionsProperty=Pg,D.enumOptionsPropertyDataType=Cg,D.enumOptionsPropertyDataTypeRef=Dg,D.enumOptionsPropertyRef=Og,D.enumPrototype=ba,D.enumPrototypeRef=$g,D.errorCodeToMessage=Hp,D.executionBuiltInBaseEntity=Ch,D.executionBuiltInEntityAbortMethod=UE,D.executionBuiltInEntityAbortMethodParentRef=SL,D.filterOutDuplicateEntities=R,D.filterOutDuplicateErrors=eI,D.findEntityFromKeys=$b,D.findNextIndividualCommonCallerAncestorFromGiven=Mb,D.findReferenceToSelfInList=U5,D.findReferencesToSelfInProject=WIe,D.flattenActionDescriptor=x5,D.flattenArgumentDeclaration=F5,D.flattenBreakStatement=G5,D.flattenBuiltInBaseEntity=S5,D.flattenCallerAncestorsUntil=_l,D.flattenCalls=Li,D.flattenCanvasAncestorsUntil=Wd,D.flattenCondition=K5,D.flattenContinueStatement=k5,D.flattenDataType=Z5,D.flattenDefinitionEntity=q5,D.flattenDefinitionEntityExtensionAndImplementationTypes=Qd,D.flattenDefinitionEntityExtensionTypes=rf,D.flattenDefinitionEntityExtensions=xb,D.flattenDefinitionEntityImplementations=Fb,D.flattenDefinitionEntityImplementionTypes=tf,D.flattenDerivedCanvasEntities=Is,D.flattenDetachedBranch=bS,D.flattenElementCalls=Rt,D.flattenElementCallsOnTheSameScope=HIe,D.flattenElementCallsWithCallType=Vb,D.flattenEntity=me,D.flattenFunctionCall=J5,D.flattenFunctionDeclaration=H5,D.flattenGlobalEvent=W5,D.flattenInputMap=Y5,D.flattenInstalledProject=z5,D.flattenInternalCall=X5,D.flattenLiteralValue=Q5,D.flattenLoop=eS,D.flattenOperation=tS,D.flattenOutputMap=rS,D.flattenPrimitiveEntity=iS,D.flattenProject=sS,D.flattenProjectElements=B5,D.flattenProperty=nS,D.flattenRelatedCallableElementsOnTheRight=ES,D.flattenRelatedCanvasElementsOnTheLeft=TS,D.flattenRelatedCanvasElementsOnTheRight=Nm,D.flattenReturnDeclaration=aS,D.flattenReturnStatement=oS,D.flattenSearch=lS,D.flattenValueDescriptor=dS,D.flattenVariableDeclaration=uS,D.flattenVariableInstance=cS,D.flattenVariableReads=M5,D.flattenVariableWrites=L5,D.flattenVariables=mr,D.fromChangeSetToRecordChangeSet=pAe,D.fromLiteralValueTypeToPrimitiveType=_A,D.fromPublishingDisabledCodeToReadable=mIe,D.fromZodParseToEntityGenerationErrors=Tb,D.functionCallValidation=NIe,D.functionDeclarationValidation=Sme,D.generate=Uh,D.generateActionExample=RIe,D.generateExecutionDataType=Yve,D.generateHexadecimalTokenOperation=fE,D.generateHexadecimalTokenOperationError=RP,D.generateHexadecimalTokenOperationErrorParentRef=wP,D.generateHexadecimalTokenOperationResultStringDataType=IP,D.generateHexadecimalTokenOperationResultStringDataTypeParentRef=TP,D.generateHexadecimalTokenOperationResultStringOutput=bP,D.generateHexadecimalTokenOperationResultStringOutputParentRef=AP,D.generateIdFromStrategy=Gr,D.generateIdentifierOperation=uE,D.generateIdentifierOperationAlphabetInput=eP,D.generateIdentifierOperationAlphabetInputParentRef=z$,D.generateIdentifierOperationAlphabetInputType=Q$,D.generateIdentifierOperationAlphabetInputTypeParentRef=X$,D.generateIdentifierOperationError=aP,D.generateIdentifierOperationErrorParentRef=nP,D.generateIdentifierOperationLengthInput=Y$,D.generateIdentifierOperationLengthInputParentRef=J$,D.generateIdentifierOperationLengthInputType=W$,D.generateIdentifierOperationLengthInputTypeParentRef=H$,D.generateIdentifierOperationResultStringDataType=iP,D.generateIdentifierOperationResultStringDataTypeParentRef=rP,D.generateIdentifierOperationResultStringOutput=sP,D.generateIdentifierOperationResultStringOutputParentRef=tP,D.generateMutablePropertiesExplanation=ym,D.generatePlaceholderValueStore=lEe,D.generateRandomAlphanumericOperation=dE,D.generateRandomAlphanumericOperationError=Z$,D.generateRandomAlphanumericOperationErrorParentRef=q$,D.generateRandomAlphanumericOperationLengthInput=F$,D.generateRandomAlphanumericOperationLengthInputParentRef=U$,D.generateRandomAlphanumericOperationLengthInputType=x$,D.generateRandomAlphanumericOperationLengthInputTypeParentRef=j$,D.generateRandomAlphanumericOperationResultStringDataType=S$,D.generateRandomAlphanumericOperationResultStringDataTypeParentRef=G$,D.generateRandomAlphanumericOperationResultStringOutput=k$,D.generateRandomAlphanumericOperationResultStringOutputParentRef=K$,D.generateRandomBase62Operation=oE,D.generateRandomBase62OperationError=g$,D.generateRandomBase62OperationErrorParentRef=_$,D.generateRandomBase62OperationLengthInput=I$,D.generateRandomBase62OperationLengthInputParentRef=v$,D.generateRandomBase62OperationLengthInputType=T$,D.generateRandomBase62OperationLengthInputTypeParentRef=E$,D.generateRandomBase62OperationResultStringDataType=b$,D.generateRandomBase62OperationResultStringDataTypeParentRef=A$,D.generateRandomBase62OperationResultStringOutput=R$,D.generateRandomBase62OperationResultStringOutputParentRef=w$,D.generateRandomBase64Operation=lE,D.generateRandomBase64OperationError=B$,D.generateRandomBase64OperationErrorParentRef=M$,D.generateRandomBase64OperationLengthInput=$$,D.generateRandomBase64OperationLengthInputParentRef=D$,D.generateRandomBase64OperationLengthInputType=C$,D.generateRandomBase64OperationLengthInputTypeParentRef=O$,D.generateRandomBase64OperationResultStringDataType=N$,D.generateRandomBase64OperationResultStringDataTypeParentRef=P$,D.generateRandomBase64OperationResultStringOutput=L$,D.generateRandomBase64OperationResultStringOutputParentRef=V$,D.generateRandomBoolean=M2,D.generateRandomDate=_2,D.generateRandomDateAfter=b2,D.generateRandomDateBefore=w2,D.generateRandomDateBetweenRange=R2,D.generateRandomFloatOperation=nE,D.generateRandomFloatOperationError=a$,D.generateRandomFloatOperationErrorParentRef=n$,D.generateRandomFloatOperationResultNumberDataType=r$,D.generateRandomFloatOperationResultNumberDataTypeParentRef=t$,D.generateRandomFloatOperationResultNumberOutput=s$,D.generateRandomFloatOperationResultNumberOutputParentRef=i$,D.generateRandomHexadecimalOperation=aE,D.generateRandomHexadecimalOperationError=m$,D.generateRandomHexadecimalOperationErrorParentRef=y$,D.generateRandomHexadecimalOperationLengthInput=u$,D.generateRandomHexadecimalOperationLengthInputParentRef=o$,D.generateRandomHexadecimalOperationLengthInputType=d$,D.generateRandomHexadecimalOperationLengthInputTypeParentRef=l$,D.generateRandomHexadecimalOperationResultStringDataType=p$,D.generateRandomHexadecimalOperationResultStringDataTypeParentRef=c$,D.generateRandomHexadecimalOperationResultStringOutput=h$,D.generateRandomHexadecimalOperationResultStringOutputParentRef=f$,D.generateRandomIntegerOperation=sE,D.generateRandomIntegerOperationMaxValueInput=HC,D.generateRandomIntegerOperationMaxValueInputParentRef=qC,D.generateRandomIntegerOperationMaxValueInputType=JC,D.generateRandomIntegerOperationMaxValueInputTypeParentRef=ZC,D.generateRandomIntegerOperationMinValueInput=XC,D.generateRandomIntegerOperationMinValueInputParentRef=WC,D.generateRandomIntegerOperationMinValueInputType=zC,D.generateRandomIntegerOperationMinValueInputTypeParentRef=YC,D.generateRandomIntegerOperationResultNumberDataType=SC,D.generateRandomIntegerOperationResultNumberDataTypeParentRef=GC,D.generateRandomIntegerOperationResultNumberOutput=kC,D.generateRandomIntegerOperationResultNumberOutputParentRef=KC,D.generateRandomNumber=$2,D.generateRandomNumberAfter=D2,D.generateRandomNumberBefore=O2,D.generateRandomNumberBetweenRange=C2,D.generateRandomText=L2,D.generateRandomTextAfter=P2,D.generateRandomTextBefore=N2,D.generateRandomTextBetweenRange=V2,D.generateRandomUUIDv4Operation=cE,D.generateRandomUUIDv4OperationError=pP,D.generateRandomUUIDv4OperationErrorParentRef=cP,D.generateRandomUUIDv4OperationResultStringDataType=lP,D.generateRandomUUIDv4OperationResultStringDataTypeParentRef=oP,D.generateRandomUUIDv4OperationResultStringOutput=uP,D.generateRandomUUIDv4OperationResultStringOutputParentRef=dP,D.generateShortIdentifierOperation=pE,D.generateShortIdentifierOperationError=EP,D.generateShortIdentifierOperationErrorParentRef=vP,D.generateShortIdentifierOperationResultStringDataType=hP,D.generateShortIdentifierOperationResultStringDataTypeParentRef=fP,D.generateShortIdentifierOperationResultStringOutput=mP,D.generateShortIdentifierOperationResultStringOutputParentRef=yP,D.generateStandaloneIfDefault=dEe,D.generateUniqueUUID=g2,D.getAllActionDescriptorsForConditions=bm,D.getAllActionDescriptorsForGlobalEvents=Im,D.getAllActionDescriptorsForLoops=Am,D.getAllActionDescriptorsForOperations=OIe,D.getAllBuiltInEntityIds=Xs,D.getAllGloballyDeclaredFunctionDeclarationsExplanation=c5,D.getAllVariablesInScope=yAe,D.getBaseBuiltInEntities=Mi,D.getBaseSchemaBasedOnType=i5,D.getBuiltInEntityOwner=wo,D.getCallableEntitiesDerivedFromInternalCalls=mS,D.getCallableEntitiesDerivedFromWrites=Xd,D.getCallableEntityReferenceSchema=Ai,D.getCallableEntityTypeSchema=gj,D.getCalledBy=Bs,D.getCallerEntityReferenceSchema=mme,D.getCallerEntityTypeSchema=yme,D.getCalls=Dm,D.getCanvasEntitiesDerivedFromInternalCalls=yS,D.getCanvasEntitiesDerivedFromWrites=zd,D.getCanvasEntityDerivedFromValueReadingEntity=$m,D.getCanvasEntityDerivedFromValueReadingEntityFromTransfer=hS,D.getCanvasEntityReferenceSchema=Vme,D.getCanvasEntityTypeSchema=Nme,D.getChildrenEntityWithValues=SIe,D.getColumnProperties=eu,D.getCommonAncestor=Ub,D.getCommonChildren=_m,D.getDatabaseEntities=lAe,D.getDatabaseEntity=uAe,D.getDeclaration=Vi,D.getDeclarationOutputedError=hAe,D.getDeepestScope=RS,D.getDefaultRelationalDatabaseEntityOrFirst=gS,D.getDraggableCallableEntityReferenceSchema=Oj,D.getDraggableCallableEntityTypeSchema=Dj,D.getDraggableCallerEntityReferenceSchema=Eme,D.getDraggableCallerEntityTypeSchema=vme,D.getDraggableExecutableEntityReferenceSchema=bme,D.getDraggableExecutableEntityTypeSchema=Ame,D.getDraggablePassThroughCallableEntityReferenceSchema=Oy,D.getDraggablePassThroughCallableEntityTypeSchema=Dy,D.getDraggablePlayableEntityReferenceSchema=Dme,D.getDraggablePlayableEntityTypeSchema=gme,D.getEarliestCommonAncestorOfAllCallers=xIe,D.getEarliestCommonCallerAncestor=GIe,D.getEarliestIndividualCommonCallerAncestor=w5,D.getEntitiesCreatedSinceInitialization=km,D.getEntitiesToPropagateValuesTo=Tn,D.getEntityArgumentDeclarations=jb,D.getEntityInputMaps=pS,D.getEntityOutputMaps=QIe,D.getEntityReferenceSchema=Pme,D.getEntityReturnDeclarations=fS,D.getEntityTypeSchema=$me,D.getEntityWithLogicScopeReferenceSchema=La,D.getEntityWithLogicScopeTypeSchema=wme,D.getEntityWithValueReferenceSchema=_j,D.getEntityWithValueTypeSchema=hme,D.getEntryPointEntityReferenceSchema=pi,D.getEntryPointEntityTypeSchema=ro,D.getEventEntityReferenceSchema=_y,D.getEventEntityTypeSchema=Ry,D.getEventNameFromDefinition=yIe,D.getExecutableEntityReferenceSchema=Ime,D.getExecutableEntityTypeSchema=Tme,D.getExtendedBuiltInEntity=eAe,D.getExtendedDefinitionEntity=Vm,D.getFirstNonLoopScopeOwner=Wr,D.getFirstParentExecutableEntity=vS,D.getGenerationTargetSchemaBasedOnType=s5,D.getHTTPAPINameFromProjectId=X6,D.getHeadIfPartOfDetachedBranch=AS,D.getHighestScope=wS,D.getImplementedBuiltInEntity=tAe,D.getIsInteractive=sf,D.getLastInListOperation=Hv,D.getLastInListOperationError=xD,D.getLastInListOperationErrorParentRef=jD,D.getLastInListOperationInputListArgument=MD,D.getLastInListOperationInputListArgumentParentRef=LD,D.getLastInListOperationInputListArgumentRef=$D,D.getLastInListOperationInputListDataType=PD,D.getLastInListOperationOutputElementDataType=VD,D.getLastInListOperationOutputElementReturn=UD,D.getLastInListOperationOutputElementReturnParentRef=BD,D.getLastInListOperationOutputElementReturnRef=ND,D.getLinkedEntitiesFromArgumentDeclaration=JIe,D.getLiteralValueNameFromDataType=El,D.getLowestPersistedEntityImplementation=Gb,D.getOnlyRelevantErrorsForPublication=PIe,D.getParentCallableEntity=R5,D.getParentCallerEntity=g5,D.getParentCanvasEntities=ei,D.getParentCanvasEntity=Er,D.getParentCanvasEntityFromTransfer=gm,D.getParentEntryPoint=Qp,D.getParentPassthroughCallableEntity=_5,D.getPassThroughCallableEntityReferenceSchema=Dr,D.getPassThroughCallableEntityTypeSchema=gy,D.getPeristedEntities=oAe,D.getPlayableEntityReferenceSchema=_me,D.getPlayableEntityTypeSchema=Rme,D.getProject=hbe,D.getPrototypeByType=nf,D.getRecordOrderForTraversal=LIe,D.getRecusriveParentsIds=Um,D.getReferenceEntityId=J,D.getReferencedEntitiesStateOrErrors=vm,D.getReferencedEntityStateOrErrors=Ib,D.getReferencedIds=Yd,D.getRelatedCallableElementsOnTheRight=Pm,D.getRelatedCanvasElementsOnTheLeft=bo,D.getRelatedCanvasElementsOnTheLeftFromTransfer=YIe,D.getRelatedCanvasElementsOnTheRight=wn,D.getRelationalDBInstanceNameFromEntityId=Q6,D.getRootEntryPointScopeOwner=af,D.getScopeOwner=Zi,D.getStateClassFromType=cAe,D.getStepNameFromDefinition=hIe,D.getTerminationReferenceSchema=Cme,D.getTerminationTypeSchema=Ome,D.getTopLevelParentEntityId=DS,D.getTouchedCanvasEntitiesFromChangeSet=fAe,D.getUsedArgFromDeclaration=zIe,D.getUsedReturnFromDeclaration=XIe,D.getValueReadingEntityReferenceSchema=Rj,D.getValueReadingEntityTypeSchema=Va,D.getValueWritingEntityReferenceSchema=fme,D.getValueWritingEntityTypeSchema=Mc,D.getVariableFromInputMapping=O5,D.getVariableFromReturnVariablePointer=P5,D.getVariableReferenceSchema=to,D.getVariableTypeSchema=hl,D.getVariablesFromArgumentDeclarations=Cm,D.getVariablesFromInputMaps=C5,D.getVariablesFromOutputMapping=N5,D.getVariablesFromOutputMaps=V5,D.getVariablesFromReturnDeclarations=$5,D.getVariablesInSameOrHigherScope=NA,D.getWrites=Om,D.globalEventValidation=Yme,D.groupCallsBasedOnParallelizableExecution=kIe,D.handleAfterEntityImplementationSideEffects=E5,D.handleBeforeEntityImplementationSideEffects=v5,D.handleLiteralValueChange=uEe,D.handleLiteralValueDelete=KF,D.handleValueAsTypeChange=cEe,D.handleValueAsTypeDelete=ZF,D.httpRequestBodyArgument=ch,D.httpRequestBodyArgumentRef=TC,D.httpRequestBodyDataType=IC,D.httpRequestHeadersArgument=uh,D.httpRequestHeadersArgumentRef=vC,D.httpRequestHeadersDataType=EC,D.httpRequestMethodArgument=lh,D.httpRequestMethodArgumentRef=yC,D.httpRequestMethodDataType=mC,D.httpRequestMethodDataTypeRef=fC,D.httpRequestOperation=Yu,D.httpRequestOperationErrorValueDescriptor=iE,D.httpRequestOperationErrorValueDescriptorDatatype=xC,D.httpRequestOperationErrorValueDescriptorRef=jC,D.httpRequestOperationRef=LC,D.httpRequestOperationRefEight=BC,D.httpRequestOperationRefFive=NC,D.httpRequestOperationRefFour=PC,D.httpRequestOperationRefNine=UC,D.httpRequestOperationRefSeven=MC,D.httpRequestOperationRefSix=VC,D.httpRequestOperationRefThree=$C,D.httpRequestOperationRefTwo=CC,D.httpRequestQueryParamsArgument=rE,D.httpRequestQueryParamsArgumentRef=cC,D.httpRequestQueryParamsDataType=pC,D.httpRequestVariableURLArgument=dh,D.httpRequestVariableURLArgumentRef=dC,D.httpRequestVariableURLDataType=uC,D.httpRequestVariableURLDataTypeRef=oC,D.httpResponseBodyReturnDataType=OC,D.httpResponseBodyReturnDataTypeRef=gC,D.httpResponseBodyReturnReturn=hh,D.httpResponseBodyReturnReturnRef=DC,D.httpResponseCodeDataType=bC,D.httpResponseCodeReturn=ph,D.httpResponseCodeReturnRef=AC,D.httpResponseHeadersDataType=_C,D.httpResponseHeadersDataTypeRef=wC,D.httpResponseHeadersReturn=fh,D.httpResponseHeadersReturnRef=RC,D.httpStatusCodeValueValidation=XS,D.hydrateOrDiscardLiteralValue=NF,D.implement=wm,D.inferArgumentDeclarationDataType=yF,D.inferDataType=yn,D.inferInputMapDataType=CA,D.inferOutputMapDataType=PA,D.inferPropertyDataType=EF,D.inferReturnDeclarationDataType=$A,D.inferValueDescriptorDataType=TF,D.inferVariableDeclarationDataType=vF,D.inferVariableInstanceDataType=mF,D.initBaseProjectEntity=Km,D.initProject=tK,D.initProjectFromFetchResult=eK,D.inputMapValidation=zve,D.installedProjectValidation=Hve,D.internalCallValidation=Wve,D.isPromise=Cb,D.isUUID=MS,D.iterateOverListActionDescriptorListArgumentDeclaration=sN,D.iterateOverListActionDescriptorListArgumentDeclarationDataType=rN,D.iterateOverListActionDescriptorListArgumentDeclarationDataTypeParentRef=tN,D.iterateOverListActionDescriptorListArgumentDeclarationParentRef=iN,D.iterateOverListLoopActionDescriptor=Ja,D.iterateOverListLoopActionDescriptorDynamicReturnDeclaration=aN,D.iterateOverListLoopActionDescriptorDynamicReturnDeclarationParentRef=nN,D.iterateOverListLoopBodyActionDescriptor=Qu,D.iterateOverListLoopBodyActionDescriptorAnyDynamicArgument=yN,D.iterateOverListLoopBodyActionDescriptorAnyDynamicArgumentParentRef=hN,D.iterateOverListLoopBodyActionDescriptorAnyDynamicReturn=vN,D.iterateOverListLoopBodyActionDescriptorAnyDynamicReturnParentRef=mN,D.iterateOverListLoopBodyActionDescriptorCurrentValueArgumentDeclaration=bh,D.iterateOverListLoopBodyActionDescriptorCurrentValueArgumentDeclarationDataType=lN,D.iterateOverListLoopBodyActionDescriptorCurrentValueArgumentDeclarationDataTypeParentRef=oN,D.iterateOverListLoopBodyActionDescriptorCurrentValueArgumentDeclarationParentRef=dN,D.iterateOverListLoopBodyActionDescriptorIterationNumberArgumentDeclaration=fN,D.iterateOverListLoopBodyActionDescriptorIterationNumberArgumentDeclarationDataType=cN,D.iterateOverListLoopBodyActionDescriptorIterationNumberArgumentDeclarationDataTypeParentRef=uN,D.iterateOverListLoopBodyActionDescriptorIterationNumberArgumentDeclarationParentRef=pN,D.iterateOverObjectKeysActionDescriptorObjectArgumentDeclaration=bN,D.iterateOverObjectKeysActionDescriptorObjectArgumentDeclarationDataType=IN,D.iterateOverObjectKeysActionDescriptorObjectArgumentDeclarationDataTypeParentRef=TN,D.iterateOverObjectKeysActionDescriptorObjectArgumentDeclarationParentRef=AN,D.iterateOverObjectKeysLoopActionDescriptor=sd,D.iterateOverObjectKeysLoopActionDescriptorDynamicReturnDeclaration=RN,D.iterateOverObjectKeysLoopActionDescriptorDynamicReturnDeclarationParentRef=wN,D.iterateOverObjectKeysLoopBodyActionDescriptor=EE,D.iterateOverObjectKeysLoopBodyActionDescriptorAnyDynamicArgument=VN,D.iterateOverObjectKeysLoopBodyActionDescriptorAnyDynamicArgumentParentRef=NN,D.iterateOverObjectKeysLoopBodyActionDescriptorAnyDynamicReturn=MN,D.iterateOverObjectKeysLoopBodyActionDescriptorAnyDynamicReturnParentRef=LN,D.iterateOverObjectKeysLoopBodyActionDescriptorCurrentValueArgumentDeclaration=vE,D.iterateOverObjectKeysLoopBodyActionDescriptorCurrentValueArgumentDeclarationDataType=gN,D.iterateOverObjectKeysLoopBodyActionDescriptorCurrentValueArgumentDeclarationDataTypeParentRef=_N,D.iterateOverObjectKeysLoopBodyActionDescriptorCurrentValueArgumentDeclarationParentRef=DN,D.iterateOverObjectKeysLoopBodyActionDescriptorIterationNumberArgumentDeclaration=PN,D.iterateOverObjectKeysLoopBodyActionDescriptorIterationNumberArgumentDeclarationDataType=CN,D.iterateOverObjectKeysLoopBodyActionDescriptorIterationNumberArgumentDeclarationDataTypeParentRef=ON,D.iterateOverObjectKeysLoopBodyActionDescriptorIterationNumberArgumentDeclarationParentRef=$N,D.iterateOverObjectValuesActionDescriptorObjectArgumentDeclaration=FN,D.iterateOverObjectValuesActionDescriptorObjectArgumentDeclarationDataType=jN,D.iterateOverObjectValuesActionDescriptorObjectArgumentDeclarationDataTypeParentRef=UN,D.iterateOverObjectValuesActionDescriptorObjectArgumentDeclarationParentRef=xN,D.iterateOverObjectValuesLoopActionDescriptor=nd,D.iterateOverObjectValuesLoopActionDescriptorDynamicReturnDeclaration=SN,D.iterateOverObjectValuesLoopActionDescriptorDynamicReturnDeclarationParentRef=GN,D.iterateOverObjectValuesLoopBodyActionDescriptor=IE,D.iterateOverObjectValuesLoopBodyActionDescriptorAnyDynamicArgument=zN,D.iterateOverObjectValuesLoopBodyActionDescriptorAnyDynamicArgumentParentRef=YN,D.iterateOverObjectValuesLoopBodyActionDescriptorAnyDynamicReturn=QN,D.iterateOverObjectValuesLoopBodyActionDescriptorAnyDynamicReturnParentRef=XN,D.iterateOverObjectValuesLoopBodyActionDescriptorCurrentValueArgumentDeclaration=TE,D.iterateOverObjectValuesLoopBodyActionDescriptorCurrentValueArgumentDeclarationDataType=kN,D.iterateOverObjectValuesLoopBodyActionDescriptorCurrentValueArgumentDeclarationDataTypeParentRef=KN,D.iterateOverObjectValuesLoopBodyActionDescriptorCurrentValueArgumentDeclarationParentRef=qN,D.iterateOverObjectValuesLoopBodyActionDescriptorIterationNumberArgumentDeclaration=WN,D.iterateOverObjectValuesLoopBodyActionDescriptorIterationNumberArgumentDeclarationDataType=JN,D.iterateOverObjectValuesLoopBodyActionDescriptorIterationNumberArgumentDeclarationDataTypeParentRef=ZN,D.iterateOverObjectValuesLoopBodyActionDescriptorIterationNumberArgumentDeclarationParentRef=HN,D.iterateOverStringActionDescriptorDynamicReturnDeclaration=KP,D.iterateOverStringActionDescriptorDynamicReturnDeclarationParentRef=SP,D.iterateOverStringActionDescriptorStringArgumentDeclaration=GP,D.iterateOverStringActionDescriptorStringArgumentDeclarationDataType=xP,D.iterateOverStringActionDescriptorStringArgumentDeclarationDataTypeParentRef=jP,D.iterateOverStringActionDescriptorStringArgumentDeclarationParentRef=FP,D.iterateOverStringLoopActionDescriptor=Xu,D.iterateOverStringLoopBodyActionDescriptor=Ah,D.iterateOverStringLoopBodyActionDescriptorAnyDynamicArgument=zP,D.iterateOverStringLoopBodyActionDescriptorAnyDynamicArgumentParentRef=YP,D.iterateOverStringLoopBodyActionDescriptorAnyDynamicReturn=QP,D.iterateOverStringLoopBodyActionDescriptorAnyDynamicReturnParentRef=XP,D.iterateOverStringLoopBodyActionDescriptorCurrentValueArgumentDeclaration=yE,D.iterateOverStringLoopBodyActionDescriptorCurrentValueArgumentDeclarationDataType=qP,D.iterateOverStringLoopBodyActionDescriptorCurrentValueArgumentDeclarationDataTypeParentRef=kP,D.iterateOverStringLoopBodyActionDescriptorCurrentValueArgumentDeclarationParentRef=ZP,D.iterateOverStringLoopBodyActionDescriptorIterationNumberArgumentDeclaration=mE,D.iterateOverStringLoopBodyActionDescriptorIterationNumberArgumentDeclarationDataType=HP,D.iterateOverStringLoopBodyActionDescriptorIterationNumberArgumentDeclarationDataTypeParentRef=JP,D.iterateOverStringLoopBodyActionDescriptorIterationNumberArgumentDeclarationParentRef=WP,D.joinListOperation=qv,D.joinListOperationError=dD,D.joinListOperationErrorParentRef=lD,D.joinListOperationFirstListArgument=iD,D.joinListOperationFirstListArgumentParentRef=rD,D.joinListOperationFirstListArgumentRef=Y1,D.joinListOperationFirstListDataType=z1,D.joinListOperationResultListDataType=tD,D.joinListOperationResultListReturn=oD,D.joinListOperationResultListReturnParentRef=aD,D.joinListOperationResultListReturnRef=eD,D.joinListOperationSecondListArgument=nD,D.joinListOperationSecondListArgumentParentRef=sD,D.joinListOperationSecondListArgumentRef=X1,D.joinListOperationSecondListDataType=Q1,D.joinListWithLastSeparator=at,D.joinStringsOperation=Wu,D.joinStringsOperationDynamicStringArgument=C1,D.joinStringsOperationDynamicStringArgumentParentRef=O1,D.joinStringsOperationDynamicStringArgumentRef=g1,D.joinStringsOperationDynamicStringDataType=D1,D.joinStringsOperationError=_1,D.joinStringsOperationErrorParentRef=R1,D.joinStringsOperationFirstStringArgument=nh,D.joinStringsOperationFirstStringArgumentParentRef=y1,D.joinStringsOperationFirstStringArgumentRef=d1,D.joinStringsOperationFirstStringDataType=u1,D.joinStringsOperationResultStringDataType=h1,D.joinStringsOperationResultStringReturn=Hu,D.joinStringsOperationResultStringReturnParentRef=w1,D.joinStringsOperationResultStringReturnRef=f1,D.joinStringsOperationSecondStringArgument=ah,D.joinStringsOperationSecondStringArgumentParentRef=b1,D.joinStringsOperationSecondStringArgumentRef=c1,D.joinStringsOperationSecondStringDataType=p1,D.joinStringsOperationSeparatorStringArgument=A1,D.joinStringsOperationSeparatorStringArgumentParentRef=I1,D.joinStringsOperationSeparatorStringArgumentRef=m1,D.joinStringsOperationSeparatorStringDataType=T1,D.joinStringsOperationSeparatorStringDataTypeDefaultValue=E1,D.joinStringsOperationSeparatorStringDataTypeDefaultValueParentRef=v1,D.keyValuePrototype=td,D.literalValueValidation=sEe,D.loopValidation=Xme,D.lowercaseFirstLetter=Dd,D.manualFlowActionDescriptorDeclarationArgumentDeclaration=hE,D.manualFlowActionDescriptorDeclarationArgumentDeclarationDataType=PP,D.manualFlowActionDescriptorDeclarationArgumentDeclarationDataTypeParentRef=$P,D.manualFlowActionDescriptorDeclarationArgumentDeclarationParentRef=NP,D.manualFlowLoopActionDescriptor=Th,D.manualFlowLoopActionDescriptorDynamicReturnDeclaration=CP,D.manualFlowLoopActionDescriptorDynamicReturnDeclarationParentRef=OP,D.manualFlowLoopBodyActionDescriptor=Ih,D.manualFlowLoopBodyActionDescriptorAnyDynamicArgument=LP,D.manualFlowLoopBodyActionDescriptorAnyDynamicArgumentParentRef=VP,D.manualFlowLoopBodyActionDescriptorAnyDynamicReturn=BP,D.manualFlowLoopBodyActionDescriptorAnyDynamicReturnParentRef=MP,D.mapActionDescriptorToTypeItRepresents=nAe,D.mapRecord=j5,D.mergeArraysOfStringsWithoutDuplicates=dIe,D.mergeEntityErrorsList=cpe,D.mergeListOfEntities=iAe,D.methodDefaultValue=hC,D.mockClientProject=QT,D.moreThanOrEqualCondition=ud,D.moreThanOrEqualConditionLeftHandArgument=XL,D.moreThanOrEqualConditionLeftHandArgumentDataType=YL,D.moreThanOrEqualConditionLeftHandArgumentDataTypeParentRef=WL,D.moreThanOrEqualConditionLeftHandArgumentParentRef=zL,D.moreThanOrEqualConditionRightHandArgument=r2,D.moreThanOrEqualConditionRightHandArgumentDataType=e2,D.moreThanOrEqualConditionRightHandArgumentDataTypeParentRef=QL,D.moreThanOrEqualConditionRightHandArgumentParentRef=t2,D.noSpacesOrDashesValueValidation=b5,D.noSpacesValueValidation=A5,D.notEmptyCondition=el,D.notEmptyConditionArgument=qL,D.notEmptyConditionRef=kL,D.nullPrototype=Uv,D.numberAdditionOperation=sh,D.numberAdditionOperationDynamicSummandArgument=qg,D.numberAdditionOperationDynamicSummandArgumentType=kg,D.numberAdditionOperationDynamicSummandArgumentTypeParentRef=Kg,D.numberAdditionOperationError=Sg,D.numberAdditionOperationErrorParentRef=Gg,D.numberAdditionOperationFirstNumberArgument=jv,D.numberAdditionOperationFirstNumberArgumentRef=Vg,D.numberAdditionOperationFirstNumberDataType=Lg,D.numberAdditionOperationRef=xg,D.numberAdditionOperationRefThree=Fv,D.numberAdditionOperationRefTwo=Fg,D.numberAdditionOperationResultNumberDataType=jg,D.numberAdditionOperationResultNumberReturn=Gv,D.numberAdditionOperationResultNumberReturnRef=Ug,D.numberAdditionOperationSecondNumberArgument=xv,D.numberAdditionOperationSecondNumberArgumentRef=Mg,D.numberAdditionOperationSecondNumberDataType=Bg,D.numberPrototype=vt,D.numberSubtractionOperation=Kv,D.numberSubtractionOperationDynamicSubtrahendArgument=o1,D.numberSubtractionOperationDynamicSubtrahendArgumentType=a1,D.numberSubtractionOperationDynamicSubtrahendArgumentTypeParentRef=n1,D.numberSubtractionOperationError=s1,D.numberSubtractionOperationErrorParentRef=i1,D.numberSubtractionOperationFirstNumberArgument=Xg,D.numberSubtractionOperationFirstNumberArgumentRef=Zg,D.numberSubtractionOperationFirstNumberDataType=Jg,D.numberSubtractionOperationRef=Sv,D.numberSubtractionOperationRefThree=t1,D.numberSubtractionOperationRefTwo=Qg,D.numberSubtractionOperationResultNumberDataType=zg,D.numberSubtractionOperationResultNumberReturn=r1,D.numberSubtractionOperationResultNumberReturnRef=Yg,D.numberSubtractionOperationSecondNumberArgument=e1,D.numberSubtractionOperationSecondNumberArgumentRef=Hg,D.numberSubtractionOperationSecondNumberDataType=Wg,D.numberValueAutogenerationSchema=$I,D.operationValidation=Zme,D.orderEntitiesForTraversal=VIe,D.outputMapValidation=tEe,D.parallelExecutionOperation=cn,D.parallelExecutionOperationError=hO,D.parallelExecutionOperationErrorParentRef=fO,D.parallelExecutionOperationListOfExecutionResultsDataType=uO,D.parallelExecutionOperationListOfExecutionResultsReturn=Xv,D.parallelExecutionOperationListOfExecutionResultsReturnRef=dO,D.parallelExecutionOperationListOfFunctionsArgument=zv,D.parallelExecutionOperationListOfFunctionsArgumentDatatype=lO,D.parallelExecutionOperationListOfFunctionsArgumentRef=oO,D.parallelExecutionOperationListOfFunctionsBlueprint=aO,D.parallelExecutionOperationListOfFunctionsBlueprintDynamicInput=sO,D.parallelExecutionOperationListOfFunctionsBlueprintDynamicInputParentRef=iO,D.parallelExecutionOperationListOfFunctionsBlueprintDynamicOutput=rO,D.parallelExecutionOperationListOfFunctionsBlueprintDynamicOutputParentRef=tO,D.parallelExecutionOperationListOfFunctionsBlueprintParentRef=nO,D.parallelExecutionOperationRef=cO,D.parallelExecutionOperationRefThree=pO,D.persistedBuiltInBaseEntity=Di,D.persistedBuiltInBaseEntityDatabaseProperty=od,D.persistedBuiltInBaseEntityDatabasePropertyDataType=gL,D.persistedBuiltInBaseEntityDatabasePropertyDataTypeRef=LZ,D.persistedBuiltInBaseEntityDatabasePropertyParentRef=DL,D.persistedBuiltInBaseEntityDatabasePropertyRef=_L,D.persistedBuiltInBaseEntityPrimaryKeyProperty=ld,D.persistedBuiltInBaseEntityPrimaryKeyPropertyDataType=ML,D.persistedBuiltInBaseEntityPrimaryKeyPropertyNumberDataTypeOption=CL,D.persistedBuiltInBaseEntityPrimaryKeyPropertyNumberDataTypeOptionParentRef=OL,D.persistedBuiltInBaseEntityPrimaryKeyPropertyParentRef=BL,D.persistedBuiltInBaseEntityPrimaryKeyPropertyRef=LL,D.persistedBuiltInBaseEntityPrimaryKeyPropertyStringDataTypeOption=PL,D.persistedBuiltInBaseEntityPrimaryKeyPropertyStringDataTypeOptionParentRef=$L,D.persistedBuiltInBaseEntityPrimaryKeyPropertyUUIDDataTypeOption=VL,D.persistedBuiltInBaseEntityPrimaryKeyPropertyUUIDDataTypeOptionParentRef=NL,D.printEntity=Nb,D.processOutputGlobalValueDescriptorDataType=d2,D.processOutputGlobalValueDescriptorReturn=Ph,D.processOutputGlobalValueDescriptorReturnRef=l2,D.projectPublicationCompletedGlobalEvent=$h,D.propagateNewInputOrOutputMapValueAsTypeToParentVariable=Sp,D.propagateNewInputOrOutputMapValueToParentVariable=Gp,D.propagateNewStaticPropertyValueAsTypeToVariables=Al,D.propagateNewStaticPropertyValueToVariables=Il,D.propertyToZodSchema=A2,D.propertyValidation=AAe,D.readValueFromWritter=kd,D.rebaseStack=aA,D.relationalDatabaseBuiltInBaseEntity=Ti,D.relationalDatabaseBuiltInBaseEntityAutoscalingProperty=LE,D.relationalDatabaseBuiltInBaseEntityAutoscalingPropertyDataType=TL,D.relationalDatabaseBuiltInBaseEntityAutoscalingPropertyDataTypeRef=EL,D.relationalDatabaseBuiltInBaseEntityAutoscalingPropertyParentRef=IL,D.relationalDatabaseBuiltInBaseEntityAutoscalingPropertyRef=vL,D.relationalDatabaseBuiltInBaseEntityDefaultProperty=VE,D.relationalDatabaseBuiltInBaseEntityDefaultPropertyDataType=mL,D.relationalDatabaseBuiltInBaseEntityDefaultPropertyDataTypeRef=hL,D.relationalDatabaseBuiltInBaseEntityDefaultPropertyRef=yL,D.relationalDatabaseBuiltInBaseEntityIdentifierProperty=Rh,D.relationalDatabaseBuiltInBaseEntityIdentifierPropertyDataType=nL,D.relationalDatabaseBuiltInBaseEntityIdentifierPropertyDataTypeRef=iL,D.relationalDatabaseBuiltInBaseEntityIdentifierPropertyRef=sL,D.relationalDatabaseBuiltInBaseEntityMinSizeProperty=Dh,D.relationalDatabaseBuiltInBaseEntityMinSizePropertyDataType=fL,D.relationalDatabaseBuiltInBaseEntityMinSizePropertyDataTypeRef=cL,D.relationalDatabaseBuiltInBaseEntityMinSizePropertyRef=pL,D.relationalDatabaseBuiltInBaseEntityPasswordProperty=gh,D.relationalDatabaseBuiltInBaseEntityPasswordPropertyDataType=dL,D.relationalDatabaseBuiltInBaseEntityPasswordPropertyDataTypeRef=VZ,D.relationalDatabaseBuiltInBaseEntityPasswordPropertyDefaultValueParentRef=uL,D.relationalDatabaseBuiltInBaseEntityPasswordPropertyRef=lL,D.relationalDatabaseBuiltInBaseEntityRef=ad,D.relationalDatabaseBuiltInBaseEntityUsernameProperty=_h,D.relationalDatabaseBuiltInBaseEntityUsernamePropertyDataType=oL,D.relationalDatabaseBuiltInBaseEntityUsernamePropertyDataTypeRef=NZ,D.relationalDatabaseBuiltInBaseEntityUsernamePropertyRef=aL,D.removeDisabledReasons=cIe,D.resolveActionDescriptorName=VS,D.resolveArgumentDeclarationValue=LA,D.resolveBaseEntityName=CS,D.resolveBuiltInBaseEntityDataTypeLabel=$S,D.resolveCardSubheader=XTe,D.resolveClonedEntityProject=Fr,D.resolveConditionOperatorLabel=Fm,D.resolveDataType=Sy,D.resolveDataTypeEntityOrNestedChildrenFromLiteralValue=Pb,D.resolveDataTypeLabel=ru,D.resolveDatatypeIconName=zTe,D.resolveDefinitionEntityDataTypeLabel=EAe,D.resolveDefinitionEntitySubheader=nb,D.resolveEntityCodeName=Qb,D.resolveEntityDataTypeLabel=vAe,D.resolveEntityName=ne,D.resolveEntitySubheader=QTe,D.resolveFirstCallsSecond=qIe,D.resolveFirstWritesSecond=ZIe,D.resolveFunctionDeclarationCardSubheader=ab,D.resolveInputMapNextStandaloneValue=xp,D.resolveInputMapNextValue=Zy,D.resolveInputMapNextValueAsPropertyOfAnObject=BF,D.resolveInputMapStandaloneValue=Fp,D.resolveInputMapValue=jF,D.resolveInputMapValueAsPropertyOfAnObject=UF,D.resolveMethodCardSubheader=K6,D.resolveNextValue=Jy,D.resolveOutputMapValue=BA,D.resolvePersistedDefinitionEntityDatabaseEntity=_S,D.resolvePrimaryKeyProperty=dAe,D.resolvePrimitiveEntityForSearchLiteralValueType=gA,D.resolvePrimitiveEntityName=NS,D.resolvePropertyValue=xF,D.resolvePublicationStepStatusFromType=EIe,D.resolveResourceNameFromType=vIe,D.resolveReturnDeclarationValue=MA,D.resolveSearchName=PS,D.resolveValue=Tl,D.resolveValueDescriptorValue=FF,D.resolveVarDeclarationAggregateObjectValue=LF,D.resolveVarDeclarationNextAggregateObjectValue=VF,D.resolveVarDeclarationNextValue=jp,D.resolveVarDeclarationValue=VA,D.resolveVarInstanceNextValue=qy,D.resolveVarInstanceValue=MF,D.resolveVariableScope=Xve,D.returnDeclarationValidation=Jme,D.returnStatementValidation=Hme,D.savePersistedEntityMethod=wL,D.savePersistedEntityMethodParentRef=bL,D.searchStatementErrorGlobalValueDescriptor=GE,D.searchStatementErrorGlobalValueDescriptorDataType=c2,D.searchStatementErrorGlobalValueDescriptorRef=u2,D.searchStatementState=qve,D.searchStatementUtils=Jve,D.searchValidation=i0e,D.sequentialExecutionOperation=_a,D.sequentialExecutionOperationError=NO,D.sequentialExecutionOperationErrorParentRef=PO,D.sequentialExecutionOperationListOfExecutionResultsDataType=OO,D.sequentialExecutionOperationListOfExecutionResultsReturn=tE,D.sequentialExecutionOperationListOfExecutionResultsReturnParentRef=$O,D.sequentialExecutionOperationListOfExecutionResultsReturnRef=DO,D.sequentialExecutionOperationListOfFunctionsArgument=eE,D.sequentialExecutionOperationListOfFunctionsArgumentDatatype=gO,D.sequentialExecutionOperationListOfFunctionsArgumentParentRef=CO,D.sequentialExecutionOperationListOfFunctionsArgumentRef=_O,D.sequentialExecutionOperationListOfFunctionsBlueprint=RO,D.sequentialExecutionOperationListOfFunctionsBlueprintDynamicInput=wO,D.sequentialExecutionOperationListOfFunctionsBlueprintDynamicOutput=bO,D.sortCallsBasedOnExecutionDependencies=D5,D.sortChildrenEntitiesBasedOnExecutionDependencies=KIe,D.splitListOperation=Jv,D.splitListOperationError=DD,D.splitListOperationErrorParentRef=gD,D.splitListOperationFirstOutputListDataType=mD,D.splitListOperationFirstOutputListReturn=bD,D.splitListOperationFirstOutputListReturnParentRef=AD,D.splitListOperationFirstOutputListReturnRef=Zv,D.splitListOperationInputListArgument=ED,D.splitListOperationInputListArgumentParentRef=vD,D.splitListOperationInputListArgumentRef=pD,D.splitListOperationInputListDataType=fD,D.splitListOperationSecondOutputListDataType=wD,D.splitListOperationSecondOutputListReturn=_D,D.splitListOperationSecondOutputListReturnParentRef=RD,D.splitListOperationSplitIndexArgument=ID,D.splitListOperationSplitIndexArgumentParentRef=TD,D.splitListOperationSplitIndexArgumentRef=hD,D.splitListOperationSplitIndexDataType=yD,D.splitStringOperation=kv,D.splitStringOperationError=Z1,D.splitStringOperationErrorParentRef=q1,D.splitStringOperationFirstPartResultStringDataType=M1,D.splitStringOperationFirstPartResultStringReturn=k1,D.splitStringOperationFirstPartResultStringReturnParentRef=K1,D.splitStringOperationFirstPartResultStringReturnRef=L1,D.splitStringOperationIndexArgument=G1,D.splitStringOperationIndexArgumentParentRef=F1,D.splitStringOperationIndexArgumentRef=N1,D.splitStringOperationIndexDataType=V1,D.splitStringOperationSecondPartResultStringDataType=U1,D.splitStringOperationSecondPartResultStringReturn=$Z,D.splitStringOperationSecondPartResultStringReturnParentRef=S1,D.splitStringOperationSecondPartResultStringReturnRef=B1,D.splitStringOperationStringArgument=x1,D.splitStringOperationStringArgumentParentRef=j1,D.splitStringOperationStringArgumentRef=$1,D.splitStringOperationStringDataType=P1,D.stringPrototype=Ye,D.stringValueAutogenerationSchema=CI,D.suggestNewIdForEntity=ew,D.syncSearchEntityOutput=OA,D.test_primitive_entities_export=sbe,D.toCamelCase=jr,D.toEditorContext=WTe,D.toEntityState=Ji,D.toKebabCase=OS,D.toLowerCaseKebabCase=xm,D.toPascalCase=tu,D.toProjectLogicContext=yEe,D.toSnakeCase=mAe,D.transitionProjectVersion=sA,D.translateLogicErrorCode=rIe,D.translateLogicErrorCodeShort=iIe,D.translateLogicErrorCodeShortWithEntityName=sIe,D.translateLogicErrorCodeWithEntityName=nIe,D.traverseChangeSet=nA,D.untypedDataPrototype=Ei,D.updateErrorsList=vr,D.urlDefaultValue=lC,D.uuidPrototype=wa,D.validateArgumentDeclarationName=zb,D.validateCalledByErrorIdInAction=gIe,D.validateCalledByIdInAction=_Ie,D.validateCallers=u5,D.validateConditionEntityDeclaration=CIe,D.validateDataOperation=qo,D.validateDataOperationDataToValidateArgument=zO,D.validateDataOperationDataToValidateArgumentParentRef=YO,D.validateDataOperationDataToValidateArgumentRef=HO,D.validateDataOperationDataToValidateDataType=WO,D.validateDataOperationEntityToMatchTypeArgument=tC,D.validateDataOperationEntityToMatchTypeArgumentParentRef=eC,D.validateDataOperationEntityToMatchTypeArgumentRef=XO,D.validateDataOperationEntityToMatchTypeDataType=QO,D.validateDataOperationError=nC,D.validateDataOperationErrorParentRef=sC,D.validateDataOperationOutputEntityDeclaration=iC,D.validateDataOperationOutputEntityDeclarationParentRef=rC,D.validateDefinitionEntityName=Jb,D.validateEntryCaller=d5,D.validateErrorCaller=l5,D.validateFunctionCallDeclaration=p5,D.validateFunctionDeclarationName=Hb,D.validateGeneratedEntityParentIsNotBuiltInEntity=AIe,D.validateGeneration=TIe,D.validateGenerationTarget=Br,D.validateGenerationUpdate=IIe,D.validateLoopEntityDeclaration=$Ie,D.validateMissingValue=Io,D.validateName=TAe,D.validateOperationEntityDeclaration=f5,D.validatePropertyName=Yb,D.validateReachability=Ua,D.validateReadsValueInActionPayload=DIe,D.validateReferenceObject=mm,D.validateReferenceToOne=Ab,D.validateReferences=ai,D.validateReturnDeclarationName=Xb,D.validateSuccessCaller=o5,D.validateValueReaderGenerationUpdate=zp,D.validateValueWritter=Db,D.validateVariableDeclarationName=Wb,D.validateVariableInternalCallUse=Ob,D.valueAutogenerationCurrentDateAndTimeSchema=ej,D.valueAutogenerationGenericSchema=oy,D.valueAutogenerationOptions=NI,D.valueAutogenerationOptionsSchema=QU,D.valueAutogenerationRandomBooleanSchema=OI,D.valueAutogenerationRandomDateBetweenSchema=dj,D.valueAutogenerationRandomDateFromSchema=oj,D.valueAutogenerationRandomDateSchema=uy,D.valueAutogenerationRandomDateUntilSchema=lj,D.valueAutogenerationRandomNumberBetweenSchema=ij,D.valueAutogenerationRandomNumberFromSchema=tj,D.valueAutogenerationRandomNumberSchema=ly,D.valueAutogenerationRandomNumberUntilSchema=rj,D.valueAutogenerationRandomSchema=_c,D.valueAutogenerationRandomTextBetweenSchema=aj,D.valueAutogenerationRandomTextFromSchema=sj,D.valueAutogenerationRandomTextSchema=dy,D.valueAutogenerationRandomTextUntilSchema=nj,D.valueAutogenerationRangeValueTypesSchema=Rc,D.valueAutogenerationUniqueSchema=DI,D.valueDescriptorValidation=oEe,D.variableDeclarationValidation=t0e,D.variableInstanceValidation=r0e,D.waitOperation=Yi,D.waitOperationMillisecondsNumberArgument=Ko,D.waitOperationMillisecondsNumberArgumentRef=yO,D.waitOperationMillisecondsNumberDataType=mO,D.waitOperationOperationError=TO,D.waitOperationOperationErrorParentRef=EO,D.waitOperationRef=vO,Object.defineProperty(D,Symbol.toStringTag,{value:"Module"})});