exocortex-cli 13.112.1 → 13.112.3

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.
Files changed (2) hide show
  1. package/dist/index.js +3 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- // exocortex-cli v13.112.1
2
+ // exocortex-cli v13.112.3
3
3
  // CLI tool for Exocortex knowledge management system - SPARQL queries, task management, and more
4
4
  // License: MIT
5
5
 
@@ -97,7 +97,7 @@ ${i}
97
97
  `,i=this.composePrefixes(t),s=this.serializePrefixes(i,n),a=this.nTriplesSerializer.serialize(e,{newline:n}).trimEnd();return s?a?`${s}${n}${n}${a}${n}`:`${s}${n}`:a?`${a}${n}`:""}serializePrefixes(e,t){let n=Object.entries(e);return n.length===0?"":n.map(([i,s])=>`@prefix ${i}: <${s}> .`).join(t)}composePrefixes(e){return e.includeDefaultPrefixes??!0?{...ax,...e.prefixes??{}}:{...e.prefixes??{}}}serializeTriplesOnly(e,t){return this.nTriplesSerializer.serializeChunk(e,t).trimEnd()}};tu.TurtleSerializer=Dd});var ag=y(ru=>{"use strict";Object.defineProperty(ru,"__esModule",{value:!0});ru.JSONLDSerializer=void 0;var ig=pt(),sg=xr(),ox=kt(),Fs=yn(),cx={rdf:Fs.Namespace.RDF.iri.value,rdfs:Fs.Namespace.RDFS.iri.value,owl:Fs.Namespace.OWL.iri.value,xsd:Fs.Namespace.XSD.iri.value,exo:Fs.Namespace.EXO.iri.value,ems:Fs.Namespace.EMS.iri.value},Rd=class{static{o(this,"JSONLDSerializer")}toDocument(e,t={}){let n={...cx,...t.context??{}},i=new Map;for(let s of e){let a=this.subjectToId(s.subject),c=this.compactIri(s.predicate.value,n),u=this.objectToJSONLD(s.object,n),f=i.get(a)??{"@id":a},l=f[c];l===void 0?f[c]=u:Array.isArray(l)?l.push(u):f[c]=[l,u],i.set(a,f)}return{"@context":n,"@graph":Array.from(i.values())}}serialize(e,t={}){let n=this.toDocument(e,t),i=t.pretty?t.indent??2:void 0;return JSON.stringify(n,null,i)}subjectToId(e){return e instanceof ig.IRI?e.value:e instanceof sg.BlankNode?`_:${e.id}`:String(e)}compactIri(e,t){for(let[n,i]of Object.entries(t))if(e.startsWith(i)){let s=e.slice(i.length);if(s.length>0)return`${n}:${s}`}return e}objectToJSONLD(e,t){if(e instanceof ig.IRI)return{"@id":e.value};if(e instanceof sg.BlankNode)return{"@id":`_:${e.id}`};if(e instanceof ox.Literal){let n={"@value":e.value};return e.datatype?n["@type"]=this.compactIri(e.datatype.value,t):e.language&&(n["@language"]=e.language),n}return e}};ru.JSONLDSerializer=Rd});var jd=y(nu=>{"use strict";Object.defineProperty(nu,"__esModule",{value:!0});nu.NTriplesParser=void 0;var ux=Mi(),og=pt(),Nd=kt(),lx=xr(),Ps=yn(),fx={rdf:Ps.Namespace.RDF.iri.value,rdfs:Ps.Namespace.RDFS.iri.value,owl:Ps.Namespace.OWL.iri.value,xsd:Ps.Namespace.XSD.iri.value,exo:Ps.Namespace.EXO.iri.value,ems:Ps.Namespace.EMS.iri.value},kd=class{static{o(this,"NTriplesParser")}parse(e,t={}){let n={prefixes:{...fx,...t.prefixes??{}},strict:t.strict??!1},i=[];return e.split(/\r?\n/).forEach((a,c)=>{let u=a.trim();!u||u.startsWith("#")||i.push(this.parseLine(u,c+1,n))}),i}parseLine(e,t,n){if(!e.endsWith("."))throw new Error(`Invalid RDF statement at line ${t}: missing '.' terminator`);let s=e.slice(0,-1).trim(),a=this.parseSubject(s,t,n);s=a.rest.trim();let c=this.parsePredicate(s,t,n);s=c.rest.trim();let u=this.parseObject(s,t,n);if(s=u.rest.trim(),s.length>0)throw new Error(`Unexpected tokens after object at line ${t}`);return new ux.Triple(a.node,c.node,u.node)}parseSubject(e,t,n){return e.startsWith("<")?this.consumeIRI(e,t,n):e.startsWith("_:")?this.consumeBlankNode(e,t):this.consumePrefixedName(e,t,n)}parsePredicate(e,t,n){return e.startsWith("<")?this.consumeIRI(e,t,n):this.consumePrefixedName(e,t,n)}parseObject(e,t,n){return e.startsWith("<")?this.consumeIRI(e,t,n):e.startsWith("_:")?this.consumeBlankNode(e,t):e.startsWith('"')?this.consumeLiteral(e,t,n):this.consumePrefixedName(e,t,n)}consumePrefixedName(e,t,n){let i=e.match(/^([a-zA-Z_][\w-]*):([^\s]+)(?:\s+(.*))?$/);if(!i)throw new Error(`Invalid token at line ${t}: ${e}`);let[,s,a,c]=i,u=n.prefixes[s];if(!u)throw new Error(`Unknown prefix "${s}" at line ${t}`);return{node:new og.IRI(`${u}${a}`),rest:(c??"").trimStart()}}consumeIRI(e,t,n){let i=this.findClosingBracket(e,"<",">");if(i===-1)throw new Error(`Invalid IRI at line ${t}`);let s=e.slice(1,i),a=new og.IRI(s),c=e.slice(i+1).trimStart();return{node:a,rest:c}}consumeBlankNode(e,t){let n=e.match(/^_:(\w+)(?:\s+(.*))?$/);if(!n)throw new Error(`Invalid blank node identifier at line ${t}`);let[,i,s]=n;return{node:new lx.BlankNode(i),rest:(s??"").trimStart()}}consumeLiteral(e,t,n){let{value:i,rest:s}=this.consumeQuotedString(e,t),a=s.trimStart();if(a.startsWith("^^")){a=a.slice(2).trimStart();let c=a.startsWith("<")?this.consumeIRI(a,t,n):this.consumePrefixedName(a,t,n);return{node:new Nd.Literal(i,c.node),rest:c.rest}}if(a.startsWith("@")){let c=a.match(/^@([a-zA-Z-]+)(?:\s+(.*))?$/);if(!c)throw new Error(`Invalid language tag at line ${t}`);let[,u,f]=c;return{node:new Nd.Literal(i,void 0,u),rest:(f??"").trimStart()}}return{node:new Nd.Literal(i),rest:a}}consumeQuotedString(e,t){if(!e.startsWith('"'))throw new Error(`Expected quoted string at line ${t}`);let n="";for(let i=1;i<e.length;i++){let s=e[i];if(s==="\\"){if(i+1>=e.length)throw new Error(`Invalid escape sequence at line ${t}`);let a=e[i+1];switch(a){case"t":n+=" ",i+=1;break;case"b":n+="\b",i+=1;break;case"n":n+=`
98
98
  `,i+=1;break;case"r":n+="\r",i+=1;break;case"f":n+="\f",i+=1;break;case'"':n+='"',i+=1;break;case"\\":n+="\\",i+=1;break;case"u":{let c=e.slice(i+2,i+6);if(c.length!==4||!/^[0-9a-fA-F]{4}$/.test(c))throw new Error(`Invalid \\u escape at line ${t}`);n+=String.fromCharCode(parseInt(c,16)),i+=5;break}case"U":{let c=e.slice(i+2,i+10);if(c.length!==8||!/^[0-9a-fA-F]{8}$/.test(c))throw new Error(`Invalid \\U escape at line ${t}`);n+=String.fromCodePoint(parseInt(c,16)),i+=9;break}default:throw new Error(`Unknown escape sequence \\${a} at line ${t}`)}continue}if(s==='"'){let a=e.slice(i+1);return{value:n,rest:a}}n+=s}throw new Error(`Unterminated string literal at line ${t}`)}findClosingBracket(e,t,n){let i=0;for(let s=0;s<e.length;s++){let a=e[s];if(a===t){i++;continue}if(a===n&&(i--,i===0))return s}return-1}};nu.NTriplesParser=kd});var cg=y(iu=>{"use strict";Object.defineProperty(iu,"__esModule",{value:!0});iu.TurtleParser=void 0;var Is=yn(),hx=jd(),dx={rdf:Is.Namespace.RDF.iri.value,rdfs:Is.Namespace.RDFS.iri.value,owl:Is.Namespace.OWL.iri.value,xsd:Is.Namespace.XSD.iri.value,exo:Is.Namespace.EXO.iri.value,ems:Is.Namespace.EMS.iri.value},px=/^@prefix\s+([a-zA-Z_][\w-]*):\s*<([^>]+)>\s*\.$/,Md=class{static{o(this,"TurtleParser")}constructor(){this.nTriplesParser=new hx.NTriplesParser}parse(e,t={}){let n={...dx,...t.prefixes??{}},i=this.collectStatements(e),s=[];return i.forEach(({statement:a,lineNumber:c})=>{if(this.isPrefixStatement(a)){let f=a.match(px);if(!f)throw new Error(`Invalid prefix declaration at line ${c}`);let[,l,h]=f;n[l]=h;return}if(a.includes(";")||a.includes(","))throw new Error(`Complex Turtle statements with ';' or ',' are not supported (line ${c})`);let u=this.normalizeShortcuts(a);s.push(this.nTriplesParser.parseLine(u,c,{prefixes:n,strict:!1}))}),s}collectStatements(e){let t=e.split(/\r?\n/),n=[],i="",s=0;if(t.forEach((a,c)=>{let u=a.trim();!u||u.startsWith("#")||(i||(s=c+1),i=i?`${i} ${u}`:u,u.endsWith(".")&&(n.push({statement:i,lineNumber:s}),i=""))}),i)throw new Error(`Unterminated Turtle statement near line ${s}`);return n}isPrefixStatement(e){return e.startsWith("@prefix")}normalizeShortcuts(e){return e.includes(" a ")?e.replace(/\sa\s/g," rdf:type "):e}};iu.TurtleParser=Md});var ug=y(su=>{"use strict";Object.defineProperty(su,"__esModule",{value:!0});su.RDFSerializer=void 0;var Ds=Mi(),Xi=pt(),Rs=kt(),Ld=xr(),vn=yn(),mx=ng(),gx=Id(),yx=ag(),_x=cg(),vx=jd(),Sx=1024,bx=`
99
99
  `,wx={rdf:vn.Namespace.RDF.iri.value,rdfs:vn.Namespace.RDFS.iri.value,owl:vn.Namespace.OWL.iri.value,xsd:vn.Namespace.XSD.iri.value,exo:vn.Namespace.EXO.iri.value,ems:vn.Namespace.EMS.iri.value},Vd=class{static{o(this,"RDFSerializer")}constructor(e){this.store=e,this.turtleSerializer=new mx.TurtleSerializer,this.nTriplesSerializer=new gx.NTriplesSerializer,this.jsonldSerializer=new yx.JSONLDSerializer,this.turtleParser=new _x.TurtleParser,this.nTriplesParser=new vx.NTriplesParser}async serialize(e,t={}){let n=await this.store.match();return this.serializeTriples(n,e,t)}serializeTriples(e,t,n={}){switch(t){case"turtle":return this.turtleSerializer.serialize(e,{prefixes:n.prefixes,includeDefaultPrefixes:n.includeDefaultPrefixes,newline:n.newline});case"n-triples":return this.nTriplesSerializer.serialize(e,{newline:n.newline});case"json-ld":return this.jsonldSerializer.serialize(e,{context:n.prefixes,pretty:n.pretty,indent:n.indent});default:throw new Error(`Unsupported serialization format: ${t}`)}}stream(e,t={}){let n=t.newline??bx,i=t.batchSize??Sx,s=t.includeDefaultPrefixes,a=t.prefixes,c=this,u=!1,f=[],l=[],h=0,p=o(async()=>{if(!u){if(l=await c.store.match(),e==="json-ld"){let b=c.jsonldSerializer.toDocument(l,{context:a,pretty:!1});f.push(...c.buildJsonLdChunks(b))}else if(e==="turtle"){let b=c.turtleSerializer.serializePrefixes(c.composePrefixes(a,s),n);b&&f.push(`${b}${n}${n}`)}u=!0}},"ensureInitialized");return{async next(){if(await p(),f.length>0)return{value:f.shift(),done:!1};if(e==="json-ld")return{value:void 0,done:!0};if(h>=l.length)return{value:void 0,done:!0};let b=l.slice(h,h+i);h+=b.length;let v="";if(e==="turtle"){let x=c.turtleSerializer.serializeTriplesOnly(b,n);x&&(v=`${x}${n}`)}else e==="n-triples"&&(v=c.nTriplesSerializer.serializeChunk(b,n));return v?{value:v,done:!1}:this.next()},async return(){return f=[],l=[],h=0,{value:void 0,done:!0}},[Symbol.asyncIterator](){return this}}}async load(e,t,n={}){let i=this.parse(e,t,n);return n.mode!=="append"&&await this.store.clear(),await this.store.addAll(i),i.length}parse(e,t,n={}){switch(t){case"turtle":return this.turtleParser.parse(e,this.buildTurtleParseOptions(n));case"n-triples":return this.nTriplesParser.parse(e,this.buildNTriplesParseOptions(n));case"json-ld":return this.parseJsonLd(e,n);default:throw new Error(`Unsupported serialization format: ${t}`)}}buildTurtleParseOptions(e){return{prefixes:this.composePrefixes(e.prefixes,!0),strict:e.strict}}buildNTriplesParseOptions(e){return{prefixes:this.composePrefixes(e.prefixes,!0),strict:e.strict}}composePrefixes(e,t){return t??!0?{...wx,...e??{}}:{...e??{}}}parseJsonLd(e,t){let n;try{n=JSON.parse(e)}catch(f){throw new Error(`Invalid JSON-LD document: ${f.message}`)}let i=this.composePrefixes(t.prefixes,!0),s=this.extractContext(n),a={...i,...s},c=this.extractGraph(n),u=[];return c.forEach((f,l)=>{if(!f||typeof f!="object"||Array.isArray(f))throw new Error(`Invalid JSON-LD node at index ${l}`);let h=this.parseSubjectFromNode(f,a,l),p=Object.entries(f);for(let[g,b]of p){if(g==="@id"||g==="@context")continue;if(g==="@type"){this.collectTypeTriples(h,b,u,a);continue}let v=this.expandTerm(g,a),x=new Xi.IRI(v);this.collectTriplesForValue(h,x,b,u,a)}}),u}extractContext(e){if(!e||typeof e!="object"||Array.isArray(e))return{};let t=e["@context"];if(!t||typeof t!="object"||Array.isArray(t))return{};let n={};return Object.entries(t).forEach(([i,s])=>{typeof s=="string"&&(n[i]=s)}),n}extractGraph(e){if(Array.isArray(e))return e;if(!e||typeof e!="object")return[];let t=e["@graph"];return Array.isArray(t)?t:[e]}parseSubjectFromNode(e,t,n){let i=e["@id"];if(typeof i=="string"){if(i.startsWith("_:"))return new Ld.BlankNode(i.slice(2));if(this.isAbsoluteIri(i))return new Xi.IRI(i);let s=this.expandTerm(i,t);return new Xi.IRI(s)}return new Ld.BlankNode(`jsonld_${n}`)}collectTypeTriples(e,t,n,i){let s=vn.Namespace.RDF.term("type");(Array.isArray(t)?t:[t]).forEach(c=>{if(typeof c!="string")throw new Error("Invalid @type value in JSON-LD node");let u=this.expandTerm(c,i);n.push(new Ds.Triple(e,s,new Xi.IRI(u)))})}collectTriplesForValue(e,t,n,i,s){if(n!=null){if(Array.isArray(n)){n.forEach(a=>this.collectTriplesForValue(e,t,a,i,s));return}if(typeof n=="object"){let a=n;if(typeof a["@id"]=="string"){let c=this.parseIdNode(a["@id"],s);i.push(new Ds.Triple(e,t,c));return}if(a["@value"]!==void 0){let c=this.parseLiteralObject(a,s);i.push(new Ds.Triple(e,t,c));return}}if(typeof n=="string"){i.push(new Ds.Triple(e,t,new Rs.Literal(n)));return}if(typeof n=="number"){let a=Number.isInteger(n)?vn.Namespace.XSD.term("integer"):vn.Namespace.XSD.term("decimal");i.push(new Ds.Triple(e,t,new Rs.Literal(n.toString(),a)));return}if(typeof n=="boolean"){let a=vn.Namespace.XSD.term("boolean");i.push(new Ds.Triple(e,t,new Rs.Literal(n.toString(),a)));return}throw new Error("Unsupported JSON-LD value encountered")}}parseIdNode(e,t){if(e.startsWith("_:"))return new Ld.BlankNode(e.slice(2));if(this.isAbsoluteIri(e))return new Xi.IRI(e);let n=this.expandTerm(e,t);return new Xi.IRI(n)}parseLiteralObject(e,t){let n=e["@value"];if(typeof n!="string")throw new Error("JSON-LD literal values must be strings");if(typeof e["@language"]=="string")return new Rs.Literal(n,void 0,e["@language"]);if(typeof e["@type"]=="string"){let i=this.expandTerm(e["@type"],t);return new Rs.Literal(n,new Xi.IRI(i))}return new Rs.Literal(n)}expandTerm(e,t){if(this.isAbsoluteIri(e))return e;let n=e.indexOf(":");if(n>0){let s=e.slice(0,n),a=e.slice(n+1),c=t[s];if(!c)throw new Error(`Unknown prefix "${s}" in JSON-LD document`);return`${c}${a}`}let i=t["@vocab"];if(i)return`${i}${e}`;throw new Error(`Unable to expand JSON-LD term "${e}"`)}isAbsoluteIri(e){return/^[a-z][a-z0-9+.-]*:/i.test(e)}buildJsonLdChunks(e){let t=[],n=JSON.stringify(e["@context"]);return t.push(`{"@context":${n},"@graph":[`),e["@graph"].forEach((i,s)=>{let a=JSON.stringify(i);s>0?t.push(`,${a}`):t.push(a)}),t.push(`]}
100
- `),t}};su.RDFSerializer=Vd});var lg=y(ci=>{"use strict";Object.defineProperty(ci,"__esModule",{value:!0});ci.TransactionError=ci.TripleNotFoundError=ci.TripleAlreadyExistsError=void 0;var qd=class extends Error{static{o(this,"TripleAlreadyExistsError")}constructor(e){super(`Triple already exists: ${e.toString()}`),this.name="TripleAlreadyExistsError"}};ci.TripleAlreadyExistsError=qd;var Bd=class extends Error{static{o(this,"TripleNotFoundError")}constructor(e){super(`Triple not found: ${e.toString()}`),this.name="TripleNotFoundError"}};ci.TripleNotFoundError=Bd;var Ud=class extends Error{static{o(this,"TransactionError")}constructor(e){super(e),this.name="TransactionError"}};ci.TransactionError=Ud});var Wd=y(au=>{"use strict";Object.defineProperty(au,"__esModule",{value:!0});au.LRUCache=void 0;var $d=class{static{o(this,"LRUCache")}constructor(e){this.maxSize=e,this.cache=new Map}get(e){let t=this.cache.get(e);return t!==void 0&&(this.cache.delete(e),this.cache.set(e,t)),t}set(e,t){if(this.cache.has(e))this.cache.delete(e);else if(this.cache.size>=this.maxSize){let n=this.cache.keys().next().value;n!==void 0&&this.cache.delete(n)}this.cache.set(e,t)}clear(){this.cache.clear()}size(){return this.cache.size}};au.LRUCache=$d});var fg=y(ou=>{"use strict";Object.defineProperty(ou,"__esModule",{value:!0});ou.InMemoryTripleStore=void 0;var ui=lg(),Ex=pt(),Tx=xr(),Ax=kt(),xx=yn(),Ox=Wd(),Cx=xx.Namespace.XSD.term("string").value,Gd=class{static{o(this,"InMemoryTripleStore")}constructor(){this.triples=new Map,this.spo=new Map,this.sop=new Map,this.pso=new Map,this.pos=new Map,this.osp=new Map,this.ops=new Map,this.queryCache=new Ox.LRUCache(1e3)}async add(e){let t=this.getTripleKey(e);if(this.triples.has(t))return;this.triples.set(t,e);let n=this.getNodeKey(e.subject),i=this.getNodeKey(e.predicate),s=this.getNodeKey(e.object);this.addToIndex(this.spo,n,i,s),this.addToIndex(this.sop,n,s,i),this.addToIndex(this.pso,i,n,s),this.addToIndex(this.pos,i,s,n),this.addToIndex(this.osp,s,n,i),this.addToIndex(this.ops,s,i,n),this.queryCache.clear()}async remove(e){let t=this.getTripleKey(e);if(!this.triples.has(t))return!1;this.triples.delete(t);let n=this.getNodeKey(e.subject),i=this.getNodeKey(e.predicate),s=this.getNodeKey(e.object);return this.removeFromIndex(this.spo,n,i,s),this.removeFromIndex(this.sop,n,s,i),this.removeFromIndex(this.pso,i,n,s),this.removeFromIndex(this.pos,i,s,n),this.removeFromIndex(this.osp,s,n,i),this.removeFromIndex(this.ops,s,i,n),this.queryCache.clear(),!0}async has(e){let t=this.getTripleKey(e);return this.triples.has(t)}async match(e,t,n){let i=this.getMatchCacheKey(e,t,n),s=this.queryCache.get(i);if(s!==void 0)return s;let a;return!e&&!t&&!n?a=Array.from(this.triples.values()):e&&t&&n?a=this.matchSPO(e,t,n):e&&t?a=this.matchSP(e,t):e&&n?a=this.matchSO(e,n):t&&n?a=this.matchPO(t,n):e?a=this.matchS(e):t?a=this.matchP(t):n?a=this.matchO(n):a=[],this.queryCache.set(i,a),a}async addAll(e){for(let t of e)await this.add(t)}async removeAll(e){let t=0;for(let n of e)await this.remove(n)&&t++;return t}async clear(){this.triples.clear(),this.spo.clear(),this.sop.clear(),this.pso.clear(),this.pos.clear(),this.osp.clear(),this.ops.clear(),this.queryCache.clear()}async count(){return this.triples.size}async subjects(){let e=new Set;for(let t of this.triples.values())e.add(t.subject);return Array.from(e)}async predicates(){let e=new Set;for(let t of this.triples.values())e.add(t.predicate);return Array.from(e)}async objects(){let e=new Set;for(let t of this.triples.values())e.add(t.object);return Array.from(e)}async beginTransaction(){return new Hd(this)}matchSPO(e,t,n){let i=this.getNodeKey(e),s=this.getNodeKey(t),a=this.getNodeKey(n),c=this.spo.get(i);if(!c)return[];let u=c.get(s);if(!u)return[];if(u.has(a)){let f=this.buildTripleKey(i,s,a),l=this.triples.get(f);return l?[l]:[]}return[]}matchSP(e,t){let n=this.getNodeKey(e),i=this.getNodeKey(t),s=this.spo.get(n);if(!s)return[];let a=s.get(i);return a?this.getTriplesByKeys(Array.from(a).map(c=>this.buildTripleKey(n,i,c))):[]}matchSO(e,t){let n=this.getNodeKey(e),i=this.getNodeKey(t),s=this.sop.get(n);if(!s)return[];let a=s.get(i);return a?this.getTriplesByKeys(Array.from(a).map(c=>this.buildTripleKey(n,c,i))):[]}matchPO(e,t){let n=this.getNodeKey(e),i=this.getNodeKey(t),s=this.pos.get(n);if(!s)return[];let a=s.get(i);return a?this.getTriplesByKeys(Array.from(a).map(c=>this.buildTripleKey(c,n,i))):[]}matchS(e){let t=this.getNodeKey(e),n=this.spo.get(t);if(!n)return[];let i=[];for(let[s,a]of n.entries())for(let c of a)i.push(this.buildTripleKey(t,s,c));return this.getTriplesByKeys(i)}matchP(e){let t=this.getNodeKey(e),n=this.pso.get(t);if(!n)return[];let i=[];for(let[s,a]of n.entries())for(let c of a)i.push(this.buildTripleKey(s,t,c));return this.getTriplesByKeys(i)}matchO(e){let t=this.getNodeKey(e),n=this.osp.get(t);if(!n)return[];let i=[];for(let[s,a]of n.entries())for(let c of a)i.push(this.buildTripleKey(s,c,t));return this.getTriplesByKeys(i)}getTriplesByKeys(e){let t=[];for(let n of e){let i=this.triples.get(n);i&&t.push(i)}return t}addToIndex(e,t,n,i){e.has(t)||e.set(t,new Map);let s=e.get(t);s.has(n)||s.set(n,new Set),s.get(n).add(i)}removeFromIndex(e,t,n,i){let s=e.get(t);if(!s)return;let a=s.get(n);a&&(a.delete(i),a.size===0&&s.delete(n),s.size===0&&e.delete(t))}getTripleKey(e){let t=this.getNodeKey(e.subject),n=this.getNodeKey(e.predicate),i=this.getNodeKey(e.object);return this.buildTripleKey(t,n,i)}buildTripleKey(e,t,n){return`${e}|${t}|${n}`}getNodeKey(e){if(e instanceof Ex.IRI)return`i:${e.value}`;if(e instanceof Tx.BlankNode)return`b:${e.id}`;if(e instanceof Ax.Literal){let t=`l:${e.value}`;return e.datatype&&e.datatype.value!==Cx?t+=`^^${e.datatype.value}`:e.language&&(t+=`@${e.language}`),t}return""}getMatchCacheKey(e,t,n){let i=e?this.getNodeKey(e):"?",s=t?this.getNodeKey(t):"?",a=n?this.getNodeKey(n):"?";return`${i}|${s}|${a}`}};ou.InMemoryTripleStore=Gd;var Hd=class{static{o(this,"InMemoryTransaction")}constructor(e){this.store=e,this.operations=[],this.committed=!1,this.rolledBack=!1}async add(e){if(this.committed)throw new ui.TransactionError("Transaction already committed");if(this.rolledBack)throw new ui.TransactionError("Transaction already rolled back");this.operations.push({type:"add",triple:e})}async remove(e){if(this.committed)throw new ui.TransactionError("Transaction already committed");if(this.rolledBack)throw new ui.TransactionError("Transaction already rolled back");return this.operations.push({type:"remove",triple:e}),!0}async commit(){if(this.committed)throw new ui.TransactionError("Transaction already committed");if(this.rolledBack)throw new ui.TransactionError("Transaction already rolled back");for(let e of this.operations)e.type==="add"?await this.store.add(e.triple):await this.store.remove(e.triple);this.committed=!0,this.operations=[]}async rollback(){if(this.committed)throw new ui.TransactionError("Transaction already committed");if(this.rolledBack)throw new ui.TransactionError("Transaction already rolled back");this.operations=[],this.rolledBack=!0}}});var dg=y(cu=>{"use strict";Object.defineProperty(cu,"__esModule",{value:!0});cu.RDFVocabularyMapper=void 0;var yr=Mi(),hg=pt(),he=yn(),zd=class{static{o(this,"RDFVocabularyMapper")}constructor(){this.propertyMappings=new Map([["exo__Instance_class",he.Namespace.RDF.term("type")],["exo__Asset_isDefinedBy",he.Namespace.RDFS.term("isDefinedBy")],["exo__Class_superClass",he.Namespace.RDFS.term("subClassOf")],["exo__Property_range",he.Namespace.RDFS.term("range")],["exo__Property_domain",he.Namespace.RDFS.term("domain")],["exo__Property_superProperty",he.Namespace.RDFS.term("subPropertyOf")]])}generateClassHierarchyTriples(){let e=[];return e.push(new yr.Triple(he.Namespace.EXO.term("Asset"),he.Namespace.RDFS.term("subClassOf"),he.Namespace.RDFS.term("Resource"))),e.push(new yr.Triple(he.Namespace.EXO.term("Class"),he.Namespace.RDFS.term("subClassOf"),he.Namespace.RDFS.term("Class"))),e.push(new yr.Triple(he.Namespace.EXO.term("Property"),he.Namespace.RDFS.term("subClassOf"),he.Namespace.RDF.term("Property"))),e.push(new yr.Triple(he.Namespace.EMS.term("Task"),he.Namespace.RDFS.term("subClassOf"),he.Namespace.EXO.term("Asset"))),e.push(new yr.Triple(he.Namespace.EMS.term("Project"),he.Namespace.RDFS.term("subClassOf"),he.Namespace.EXO.term("Asset"))),e.push(new yr.Triple(he.Namespace.EMS.term("Area"),he.Namespace.RDFS.term("subClassOf"),he.Namespace.EXO.term("Asset"))),e}generatePropertyHierarchyTriples(){let e=[];return e.push(new yr.Triple(he.Namespace.EXO.term("Instance_class"),he.Namespace.RDFS.term("subPropertyOf"),he.Namespace.RDF.term("type"))),e.push(new yr.Triple(he.Namespace.EXO.term("Asset_isDefinedBy"),he.Namespace.RDFS.term("subPropertyOf"),he.Namespace.RDFS.term("isDefinedBy"))),e.push(new yr.Triple(he.Namespace.EXO.term("Class_superClass"),he.Namespace.RDFS.term("subPropertyOf"),he.Namespace.RDFS.term("subClassOf"))),e.push(new yr.Triple(he.Namespace.EXO.term("Property_range"),he.Namespace.RDFS.term("subPropertyOf"),he.Namespace.RDFS.term("range"))),e.push(new yr.Triple(he.Namespace.EXO.term("Property_domain"),he.Namespace.RDFS.term("subPropertyOf"),he.Namespace.RDFS.term("domain"))),e.push(new yr.Triple(he.Namespace.EXO.term("Property_superProperty"),he.Namespace.RDFS.term("subPropertyOf"),he.Namespace.RDFS.term("subPropertyOf"))),e}generateMappedTriple(e,t,n){let i=this.propertyMappings.get(t);if(!i)return null;let s;if(n instanceof hg.IRI)s=n;else{let a=n.match(/^(ems|exo)__(.+)$/);if(a){let[,c,u]=a;s=(c==="ems"?he.Namespace.EMS:he.Namespace.EXO).term(u)}else s=new hg.IRI(n)}return new yr.Triple(e,i,s)}hasMappingFor(e){return this.propertyMappings.has(e)}};cu.RDFVocabularyMapper=zd});var Yd=y(rn=>{"use strict";var Fx=rn&&rn.__decorate||function(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var c=r.length-1;c>=0;c--)(a=r[c])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s},Px=rn&&rn.__metadata||function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},Ix=rn&&rn.__param||function(r,e){return function(t,n){e(t,n,r)}};Object.defineProperty(rn,"__esModule",{value:!0});rn.NoteToRDFConverter=void 0;var pg=Ke(),mg=Mi(),Dx=pt(),Zi=kt(),li=yn(),Rx=rt(),Kd=class{static{o(this,"NoteToRDFConverter")}constructor(e){this.vault=e,this.OBSIDIAN_VAULT_SCHEME="obsidian://vault/"}async convertNote(e){let t=this.vault.getFrontmatter(e);if(!t)return[];let n=[],i=this.notePathToIRI(e.path);for(let[s,a]of Object.entries(t)){if(!this.isExocortexProperty(s))continue;let c=this.propertyKeyToIRI(s),u=Array.isArray(a)?a:[a];for(let f of u){let l=await this.valueToRDFObject(f,e);n.push(new mg.Triple(i,c,l))}if(s==="exo__Instance_class")for(let f of u){let l=this.expandClassValue(f);if(l){let h=li.Namespace.RDF.term("type");n.push(new mg.Triple(i,h,l))}}}return n}async convertVault(){let e=this.vault.getAllFiles(),t=[];for(let n of e)try{let i=await this.convertNote(n);t.push(...i)}catch(i){throw console.error(`\u274C Error converting note: ${n.path}`),console.error(` Error: ${i instanceof Error?i.message:String(i)}`),i}return t}notePathToIRI(e){let t=encodeURI(e);return new Dx.IRI(`${this.OBSIDIAN_VAULT_SCHEME}${t}`)}isExocortexProperty(e){return e.startsWith("exo__")||e.startsWith("ems__")}propertyKeyToIRI(e){if(e.startsWith("exo__")){let t=e.substring(5);return li.Namespace.EXO.term(t)}if(e.startsWith("ems__")){let t=e.substring(5);return li.Namespace.EMS.term(t)}throw new Error(`Invalid property key: ${e}`)}async valueToRDFObject(e,t){if(typeof e=="string"){let n=this.removeQuotes(e),i=this.extractWikilink(n);if(i){let s=this.vault.getFirstLinkpathDest(i,t.path);return s?this.notePathToIRI(s.path):new Zi.Literal(n)}if(this.isClassReference(n)){let s=this.expandClassValue(n);if(s)return s}return this.isISO8601DateTime(n)?new Zi.Literal(n,li.Namespace.XSD.term("dateTime")):new Zi.Literal(n)}return typeof e=="boolean"?new Zi.Literal(e.toString()):typeof e=="number"?new Zi.Literal(e.toString(),li.Namespace.XSD.term("decimal")):e instanceof Date?new Zi.Literal(e.toISOString(),li.Namespace.XSD.term("dateTime")):new Zi.Literal(String(e))}isISO8601DateTime(e){return/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{1,3})?(Z|[+-]\d{2}:\d{2})?$/.test(e)}removeQuotes(e){let t=e.trim();return t.startsWith('"')&&t.endsWith('"')||t.startsWith("'")&&t.endsWith("'")?t.substring(1,t.length-1):e}extractWikilink(e){let t=e.match(/^\[\[([^\]]+)\]\]$/);return t?t[1]:null}isClassReference(e){return(e.startsWith("ems__")||e.startsWith("exo__"))&&!/\s/.test(e)}expandClassValue(e){let t=this.removeQuotes(e);if(t.startsWith("ems__")){let n=t.substring(5);return li.Namespace.EMS.term(n)}if(t.startsWith("exo__")){let n=t.substring(5);return li.Namespace.EXO.term(n)}return null}};rn.NoteToRDFConverter=Kd;rn.NoteToRDFConverter=Kd=Fx([(0,pg.injectable)(),Ix(0,(0,pg.inject)(Rx.DI_TOKENS.IVaultAdapter)),Px("design:paramtypes",[Object])],Kd)});var Qd=y((pk,gg)=>{var Ns=class{static{o(this,"Wildcard")}constructor(){return Nx||this}equals(e){return e&&this.termType===e.termType}};Object.defineProperty(Ns.prototype,"value",{enumerable:!0,value:"*"});Object.defineProperty(Ns.prototype,"termType",{enumerable:!0,value:"Wildcard"});var Nx=new Ns;gg.exports.Wildcard=Ns});var _g=y((gk,yg)=>{var kx=(function(){var r=o(function(T,E,O,I){for(O=O||{},I=T.length;I--;O[T[I]]=E);return O},"o"),e=[6,12,13,15,16,24,32,36,41,45,100,110,113,115,116,123,126,131,197,224,229,308,329,330,331,332,333],t=[2,247],n=[100,110,113,115,116,123,126,131,329,330,331,332,333],i=[2,409],s=[1,18],a=[1,27],c=[13,16,45,197,224,229,308],u=[28,29,53],f=[28,53],l=[1,42],h=[1,45],p=[1,41],g=[1,44],b=[123,126],v=[1,67],x=[39,45,87],F=[13,16,45,197,224,308],P=[1,87],L=[2,281],$=[1,86],Y=[13,16,45,82,87,89,231,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312],Ce=[6,28,29,53,63,70,73,81,83,85],Ye=[6,13,16,28,29,53,63,70,73,81,83,85,87,308],ut=[6,13,16,28,29,45,53,63,70,73,81,82,83,85,87,89,197,231,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,314],B=[6,13,16,28,29,31,39,45,47,48,53,63,70,73,81,82,83,85,87,89,109,112,121,123,126,128,159,160,161,163,164,174,193,197,224,229,231,232,242,246,250,263,265,272,290,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,314,317,318,335,337,338,340,341,342,343,344,345,346],ce=[13,16,308],xe=[112,132,327,334],Ze=[13,16,112,132,308],$e=[1,111],He=[1,117],De=[112,132,327,328,334],Ne=[13,16,112,132,308,328],Fe=[28,29,45,53,87],G=[1,138],R=[1,151],ke=[1,128],qe=[1,127],j=[1,129],le=[1,140],Se=[1,141],W=[1,142],be=[1,143],we=[1,144],ge=[1,145],Ee=[1,147],ue=[1,148],ye=[2,457],fe=[1,158],_e=[1,159],Te=[1,160],J=[1,152],te=[1,153],re=[1,156],X=[1,171],Z=[1,172],ee=[1,173],Q=[1,174],ne=[1,175],ie=[1,176],ae=[1,167],U=[1,168],H=[1,169],oe=[1,170],Re=[1,157],Oe=[1,166],Ae=[1,161],_=[1,162],S=[1,163],w=[1,164],C=[1,165],q=[6,13,16,29,31,45,82,85,87,89,112,159,160,161,163,164,231,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,335],We=[1,195],Qe=[6,31,73,81,83,85],me=[2,285],N=[1,199],k=[1,201],M=[6,31,70,73,81,83,85],V=[2,283],de=[1,207],je=[1,218],Me=[1,223],Tt=[1,219],sr=[1,225],pr=[1,226],Gt=[1,224],Zm=[6,63,70,73,81,83,85],e1=[1,236],t1=[2,334],r1=[1,243],n1=[1,241],At=[6,193],No=[2,349],i1=[2,339],Zn=[28,128],s1=[47,48,193,272],ko=[47,48,193,242,272],ds=[47,48,193,242,246,272],ps=[47,48,193,242,246,250,263,265,272,290,297,298,299,300,301,302,341,342,343,344,345,346],_t=[39,47,48,193,242,246,250,263,265,272,290,297,298,299,300,301,302,338,341,342,343,344,345,346],a1=[1,271],o1=[1,270],lt=[6,13,16,29,31,39,45,47,48,70,73,76,78,81,82,83,85,87,89,112,159,160,161,163,164,193,231,242,246,250,263,265,268,269,270,271,272,273,274,276,277,279,280,283,285,290,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,335,338,341,342,343,344,345,346,347,348,349,350,351],c1=[1,281],u1=[1,280],Ht=[13,16,29,31,39,45,47,48,82,85,87,89,112,159,160,161,163,164,174,193,197,224,229,231,232,242,246,250,263,265,272,290,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,314,317,318,335,338,341,342,343,344,345,346],ga=[45,89],jo=[13,16,29,31,39,45,47,48,82,85,87,89,112,159,160,161,163,164,174,193,197,224,229,231,232,242,246,250,263,265,272,290,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,314,317,318,335,338,341,342,343,344,345,346],Mo=[13,16,31,82,174,294,295,296,297,298,299,300,301,302,303,304,305,306,308,312],Lo=[31,89],Vo=[48,87],Oi=[6,13,16,45,48,82,87,89,231,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,337,338],ln=[6,13,16,39,45,48,82,87,89,231,263,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,337,338,340],l1=[1,313],ms=[6,85],kl=[6,31,81,83,85],f1=[2,361],Fn=[2,353],Ci=[1,343],ya=[31,112,335],Pn=[13,16,29,31,45,48,82,85,87,89,112,159,160,161,163,164,193,197,224,229,231,232,272,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,317,318,335],jl=[13,16,29,31,45,48,82,85,87,89,112,159,160,161,163,164,193,197,224,229,231,232,272,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,314,317,318,335],h1=[6,109,193],Fi=[31,112],ft=[13,16,45,82,87,224,263,265,268,269,270,271,273,274,276,277,279,280,283,285,294,295,296,297,298,299,300,301,302,303,304,305,306,308,312,346,347,348,349,350,351],Ml=[1,390],Ll=[1,391],ei=[13,16,87,197,308,314],d1=[13,16,39,45,82,87,224,263,265,268,269,270,271,273,274,276,277,279,280,283,285,294,295,296,297,298,299,300,301,302,303,304,305,306,308,312,346,347,348,349,350,351],qo=[1,417],Bo=[1,418],p1=[13,16,48,197,229,308],ti=[6,31,85],m1=[6,13,16,31,45,73,81,83,85,268,269,270,271,273,274,276,277,279,280,283,285,308,346,347,348,349,350,351],Vl=[6,13,16,29,31,45,73,76,78,81,82,83,85,87,89,112,159,160,161,163,164,231,268,269,270,271,273,274,276,277,279,280,283,285,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,335,346,347,348,349,350,351],Pi=[29,31,85,112,159,160,161,163,164],Uo=[1,443],$o=[1,444],g1=[1,449],Ii=[31,112,193,232,318,335],Wo=[13,16,45,48,82,87,89,231,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312],y1=[13,16,31,45,48,82,87,89,112,193,231,232,272,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,317,318,335],ql=[13,16,29,31,45,48,82,85,87,89,112,159,160,161,163,164,193,231,232,272,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,317,318,335],_a=[13,16,31,48,82,174,294,295,296,297,298,299,300,301,302,303,304,305,306,308,312],va=[31,45],_1=[1,507],v1=[1,508],S1=[6,13,16,29,31,39,45,47,48,63,70,73,76,78,81,82,83,85,87,89,112,159,160,161,163,164,193,231,242,246,250,263,265,268,269,270,271,272,273,274,276,277,279,280,283,285,290,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,335,336,338,341,342,343,344,345,346,347,348,349,350,351],Go=[29,31,85,112,159,160,161,163,164,335],Di=[6,13,16,31,45,70,73,81,83,85,87,268,269,270,271,273,274,276,277,279,280,283,285,308,346,347,348,349,350,351],b1=[13,16,31,45,48,82,87,89,112,193,197,231,232,272,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,317,318,335],w1=[2,352],Bl=[13,16,197,308,314],E1=[1,565],gs=[6,13,16,31,45,76,78,81,83,85,87,268,269,270,271,273,274,276,277,279,280,283,285,308,346,347,348,349,350,351],T1=[13,16,29,31,45,82,85,87,89,112,159,160,161,163,164,231,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312],In=[13,16,29,31,45,82,85,87,89,112,159,160,161,163,164,231,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,335],A1=[13,16,87,308],Dn=[2,364],ys=[29,31,85,112,159,160,161,163,164,193,232,318,335],Ho=[31,112,193,232,272,318,335],Rn=[2,359],x1=[13,16,48,82,174,294,295,296,297,298,299,300,301,302,303,304,305,306,308,312],zo=[29,31,85,112,159,160,161,163,164,193,232,272,318,335],O1=[13,16,31,45,82,87,89,112,231,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312],C1=[2,347],Ul={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,QueryOrUpdate:3,Prologue:4,QueryOrUpdate_group0:5,EOF:6,Query:7,Qry:8,Query_option0:9,Prologue_repetition0:10,BaseDecl:11,BASE:12,IRIREF:13,PrefixDecl:14,PREFIX:15,PNAME_NS:16,SelectClauseWildcard:17,Qry_repetition0:18,WhereClause:19,SolutionModifierNoGroup:20,SelectClauseVars:21,Qry_repetition1:22,SolutionModifier:23,CONSTRUCT:24,ConstructTemplate:25,Qry_repetition2:26,Qry_repetition3:27,WHERE:28,"{":29,Qry_option0:30,"}":31,DESCRIBE:32,Qry_group0:33,Qry_repetition4:34,Qry_option1:35,ASK:36,Qry_repetition5:37,SelectClauseBase:38,"*":39,SelectClauseVars_repetition_plus0:40,SELECT:41,SelectClauseBase_option0:42,SelectClauseItem:43,Var:44,"(":45,Expression:46,AS:47,")":48,SubSelect:49,SubSelect_option0:50,SubSelect_option1:51,DatasetClause:52,FROM:53,DatasetClause_option0:54,iri:55,WhereClause_option0:56,GroupGraphPattern:57,SolutionModifier_option0:58,SolutionModifierNoGroup_option0:59,SolutionModifierNoGroup_option1:60,SolutionModifierNoGroup_option2:61,GroupClause:62,GROUP:63,BY:64,GroupClause_repetition_plus0:65,GroupCondition:66,BuiltInCall:67,FunctionCall:68,HavingClause:69,HAVING:70,HavingClause_repetition_plus0:71,OrderClause:72,ORDER:73,OrderClause_repetition_plus0:74,OrderCondition:75,ASC:76,BrackettedExpression:77,DESC:78,Constraint:79,LimitOffsetClauses:80,LIMIT:81,INTEGER:82,OFFSET:83,ValuesClause:84,VALUES:85,InlineData:86,VAR:87,InlineData_repetition0:88,NIL:89,InlineData_repetition1:90,InlineData_repetition_plus2:91,InlineData_repetition3:92,DataBlock:93,DataBlockValueList:94,DataBlockValueList_repetition_plus0:95,Update:96,Update_repetition0:97,Update1:98,Update_option0:99,LOAD:100,Update1_option0:101,Update1_option1:102,Update1_group0:103,Update1_option2:104,GraphRefAll:105,Update1_group1:106,Update1_option3:107,GraphOrDefault:108,TO:109,CREATE:110,Update1_option4:111,GRAPH:112,INSERTDATA:113,QuadPattern:114,DELETEDATA:115,DELETEWHERE:116,Update1_option5:117,InsertDeleteClause:118,Update1_repetition0:119,IntoGraphClause:120,INTO:121,GraphRef:122,DELETE:123,InsertDeleteClause_option0:124,InsertClause:125,INSERT:126,UsingClause:127,USING:128,UsingClause_option0:129,WithClause:130,WITH:131,DEFAULT:132,GraphOrDefault_option0:133,GraphRefAll_group0:134,Quads:135,Quads_option0:136,Quads_repetition0:137,QuadsNotTriples:138,VarOrIri:139,QuadsNotTriples_option0:140,QuadsNotTriples_option1:141,QuadsNotTriples_option2:142,TriplesTemplate:143,TriplesTemplate_repetition0:144,TriplesSameSubject:145,TriplesTemplate_option0:146,GroupGraphPatternSub:147,GroupGraphPatternSub_option0:148,GroupGraphPatternSub_repetition0:149,GroupGraphPatternSubTail:150,GraphPatternNotTriples:151,GroupGraphPatternSubTail_option0:152,GroupGraphPatternSubTail_option1:153,TriplesBlock:154,TriplesBlock_repetition0:155,TriplesSameSubjectPath:156,TriplesBlock_option0:157,GroupOrUnionGraphPattern:158,OPTIONAL:159,MINUS:160,SERVICE:161,GraphPatternNotTriples_option0:162,FILTER:163,BIND:164,InlineDataOneVar:165,InlineDataFull:166,InlineDataOneVar_repetition0:167,InlineDataFull_repetition0:168,InlineDataFull_repetition_plus1:169,InlineDataFull_repetition2:170,DataBlockValue:171,Literal:172,QuotedTriple:173,UNDEF:174,GroupOrUnionGraphPattern_repetition0:175,ArgList:176,ArgList_option0:177,ArgList_repetition0:178,ExpressionList:179,ExpressionList_repetition0:180,ConstructTemplate_option0:181,ConstructTriples:182,ConstructTriples_repetition0:183,ConstructTriples_option0:184,VarOrTermOrQuotedTP:185,PropertyListNotEmpty:186,TriplesNode:187,PropertyList:188,PropertyList_option0:189,VerbObjectList:190,PropertyListNotEmpty_repetition0:191,SemiOptionalVerbObjectList:192,";":193,SemiOptionalVerbObjectList_option0:194,Verb:195,ObjectList:196,a:197,ObjectList_repetition0:198,Object:199,GraphNode:200,Object_option0:201,PropertyListPathNotEmpty:202,TriplesNodePath:203,TriplesSameSubjectPath_option0:204,O:205,PropertyListPathNotEmpty_repetition0:206,PropertyListPathNotEmptyTail:207,O_group0:208,ObjectListPath:209,ObjectListPath_repetition0:210,ObjectPath:211,GraphNodePath:212,ObjectPath_option0:213,Path:214,Path_repetition0:215,PathSequence:216,PathSequence_repetition0:217,PathEltOrInverse:218,PathElt:219,PathPrimary:220,PathElt_option0:221,PathEltOrInverse_option0:222,IriOrA:223,"!":224,PathNegatedPropertySet:225,PathOneInPropertySet:226,PathNegatedPropertySet_repetition0:227,PathNegatedPropertySet_option0:228,"^":229,TriplesNode_repetition_plus0:230,"[":231,"]":232,TriplesNodePath_repetition_plus0:233,VarOrTermOrQuotedTPExpr:234,VarOrTerm:235,GraphTerm:236,BlankNode:237,ConditionalOrExpression:238,ConditionalAndExpression:239,ConditionalOrExpression_repetition0:240,ConditionalOrExpressionTail:241,"||":242,RelationalExpression:243,ConditionalAndExpression_repetition0:244,ConditionalAndExpressionTail:245,"&&":246,NumericExpression:247,RelationalExpression_group0:248,RelationalExpression_option0:249,IN:250,MultiplicativeExpression:251,NumericExpression_repetition0:252,AdditiveExpressionTail:253,AdditiveExpressionTail_group0:254,NumericLiteralPositive:255,AdditiveExpressionTail_repetition0:256,NumericLiteralNegative:257,AdditiveExpressionTail_repetition1:258,UnaryExpression:259,MultiplicativeExpression_repetition0:260,MultiplicativeExpressionTail:261,MultiplicativeExpressionTail_group0:262,"+":263,PrimaryExpression:264,"-":265,ExprQuotedTP:266,Aggregate:267,FUNC_ARITY0:268,FUNC_ARITY1:269,FUNC_ARITY1_SPARQL_STAR:270,FUNC_ARITY2:271,",":272,FUNC_ARITY3:273,FUNC_ARITY3_SPARQL_STAR:274,BuiltInCall_group0:275,BOUND:276,BNODE:277,BuiltInCall_option0:278,EXISTS:279,COUNT:280,Aggregate_option0:281,Aggregate_group0:282,FUNC_AGGREGATE:283,Aggregate_option1:284,GROUP_CONCAT:285,Aggregate_option2:286,Aggregate_option3:287,GroupConcatSeparator:288,SEPARATOR:289,"=":290,String:291,LANGTAG:292,"^^":293,DECIMAL:294,DOUBLE:295,BOOLEAN:296,INTEGER_POSITIVE:297,DECIMAL_POSITIVE:298,DOUBLE_POSITIVE:299,INTEGER_NEGATIVE:300,DECIMAL_NEGATIVE:301,DOUBLE_NEGATIVE:302,STRING_LITERAL1:303,STRING_LITERAL2:304,STRING_LITERAL_LONG1:305,STRING_LITERAL_LONG2:306,PrefixedName:307,PNAME_LN:308,BLANK_NODE_LABEL:309,ANON:310,QuotedTP:311,"<<":312,qtSubjectOrObject:313,">>":314,DataValueTerm:315,AnnotationPattern:316,"{|":317,"|}":318,AnnotationPatternPath:319,ExprVarOrTerm:320,QueryOrUpdate_group0_option0:321,Prologue_repetition0_group0:322,Qry_group0_repetition_plus0:323,SelectClauseBase_option0_group0:324,DISTINCT:325,REDUCED:326,NAMED:327,SILENT:328,CLEAR:329,DROP:330,ADD:331,MOVE:332,COPY:333,ALL:334,".":335,UNION:336,"|":337,"/":338,PathElt_option0_group0:339,"?":340,"!=":341,"<":342,">":343,"<=":344,">=":345,NOT:346,CONCAT:347,COALESCE:348,SUBSTR:349,REGEX:350,REPLACE:351,$accept:0,$end:1},terminals_:{2:"error",6:"EOF",12:"BASE",13:"IRIREF",15:"PREFIX",16:"PNAME_NS",24:"CONSTRUCT",28:"WHERE",29:"{",31:"}",32:"DESCRIBE",36:"ASK",39:"*",41:"SELECT",45:"(",47:"AS",48:")",53:"FROM",63:"GROUP",64:"BY",70:"HAVING",73:"ORDER",76:"ASC",78:"DESC",81:"LIMIT",82:"INTEGER",83:"OFFSET",85:"VALUES",87:"VAR",89:"NIL",100:"LOAD",109:"TO",110:"CREATE",112:"GRAPH",113:"INSERTDATA",115:"DELETEDATA",116:"DELETEWHERE",121:"INTO",123:"DELETE",126:"INSERT",128:"USING",131:"WITH",132:"DEFAULT",159:"OPTIONAL",160:"MINUS",161:"SERVICE",163:"FILTER",164:"BIND",174:"UNDEF",193:";",197:"a",224:"!",229:"^",231:"[",232:"]",242:"||",246:"&&",250:"IN",263:"+",265:"-",268:"FUNC_ARITY0",269:"FUNC_ARITY1",270:"FUNC_ARITY1_SPARQL_STAR",271:"FUNC_ARITY2",272:",",273:"FUNC_ARITY3",274:"FUNC_ARITY3_SPARQL_STAR",276:"BOUND",277:"BNODE",279:"EXISTS",280:"COUNT",283:"FUNC_AGGREGATE",285:"GROUP_CONCAT",289:"SEPARATOR",290:"=",292:"LANGTAG",293:"^^",294:"DECIMAL",295:"DOUBLE",296:"BOOLEAN",297:"INTEGER_POSITIVE",298:"DECIMAL_POSITIVE",299:"DOUBLE_POSITIVE",300:"INTEGER_NEGATIVE",301:"DECIMAL_NEGATIVE",302:"DOUBLE_NEGATIVE",303:"STRING_LITERAL1",304:"STRING_LITERAL2",305:"STRING_LITERAL_LONG1",306:"STRING_LITERAL_LONG2",308:"PNAME_LN",309:"BLANK_NODE_LABEL",310:"ANON",312:"<<",314:">>",317:"{|",318:"|}",325:"DISTINCT",326:"REDUCED",327:"NAMED",328:"SILENT",329:"CLEAR",330:"DROP",331:"ADD",332:"MOVE",333:"COPY",334:"ALL",335:".",336:"UNION",337:"|",338:"/",340:"?",341:"!=",342:"<",343:">",344:"<=",345:">=",346:"NOT",347:"CONCAT",348:"COALESCE",349:"SUBSTR",350:"REGEX",351:"REPLACE"},productions_:[0,[3,3],[7,2],[4,1],[11,2],[14,3],[8,4],[8,4],[8,5],[8,7],[8,5],[8,4],[17,2],[21,2],[38,2],[43,1],[43,5],[49,4],[49,4],[52,3],[19,2],[23,2],[20,3],[62,3],[66,1],[66,1],[66,3],[66,5],[66,1],[69,2],[72,3],[75,2],[75,2],[75,1],[75,1],[80,2],[80,2],[80,4],[80,4],[84,2],[86,4],[86,4],[86,6],[86,2],[94,3],[96,3],[98,4],[98,3],[98,5],[98,4],[98,2],[98,2],[98,2],[98,5],[120,2],[118,3],[118,1],[125,2],[127,3],[130,2],[108,1],[108,2],[122,2],[105,1],[105,1],[114,3],[135,2],[138,7],[143,3],[57,3],[57,3],[147,2],[150,3],[154,3],[151,1],[151,2],[151,2],[151,3],[151,4],[151,2],[151,6],[151,1],[93,1],[93,1],[165,4],[166,4],[166,6],[171,1],[171,1],[171,1],[171,1],[158,2],[79,1],[79,1],[79,1],[68,2],[176,1],[176,5],[179,1],[179,4],[25,3],[182,3],[145,2],[145,2],[188,1],[186,2],[192,2],[190,2],[195,1],[195,1],[196,2],[199,2],[156,2],[156,2],[202,2],[207,1],[207,2],[205,2],[209,2],[211,2],[214,2],[216,2],[219,2],[218,2],[220,1],[220,2],[220,3],[225,1],[225,1],[225,4],[226,1],[226,2],[187,3],[187,3],[203,3],[203,3],[200,1],[200,1],[212,1],[212,1],[234,1],[235,1],[235,1],[139,1],[139,1],[44,1],[236,1],[236,1],[236,1],[236,1],[46,1],[238,2],[241,2],[239,2],[245,2],[243,1],[243,3],[243,4],[247,2],[253,2],[253,2],[253,2],[251,2],[261,2],[259,2],[259,2],[259,2],[259,1],[264,1],[264,1],[264,1],[264,1],[264,1],[264,1],[264,1],[77,3],[67,1],[67,2],[67,4],[67,4],[67,6],[67,8],[67,8],[67,2],[67,4],[67,2],[67,4],[67,3],[267,5],[267,5],[267,6],[288,4],[172,1],[172,2],[172,3],[172,1],[172,1],[172,1],[172,1],[172,1],[172,1],[255,1],[255,1],[255,1],[257,1],[257,1],[257,1],[291,1],[291,1],[291,1],[291,1],[55,1],[55,1],[307,1],[307,1],[237,1],[237,1],[311,5],[173,5],[313,1],[313,1],[313,1],[313,1],[313,1],[315,1],[315,1],[315,1],[185,1],[185,1],[185,1],[316,3],[319,3],[266,5],[320,1],[320,1],[320,1],[223,1],[223,1],[321,0],[321,1],[5,1],[5,1],[5,1],[9,0],[9,1],[322,1],[322,1],[10,0],[10,2],[18,0],[18,2],[22,0],[22,2],[26,0],[26,2],[27,0],[27,2],[30,0],[30,1],[323,1],[323,2],[33,1],[33,1],[34,0],[34,2],[35,0],[35,1],[37,0],[37,2],[40,1],[40,2],[324,1],[324,1],[42,0],[42,1],[50,0],[50,1],[51,0],[51,1],[54,0],[54,1],[56,0],[56,1],[58,0],[58,1],[59,0],[59,1],[60,0],[60,1],[61,0],[61,1],[65,1],[65,2],[71,1],[71,2],[74,1],[74,2],[88,0],[88,2],[90,0],[90,2],[91,1],[91,2],[92,0],[92,2],[95,1],[95,2],[97,0],[97,4],[99,0],[99,2],[101,0],[101,1],[102,0],[102,1],[103,1],[103,1],[104,0],[104,1],[106,1],[106,1],[106,1],[107,0],[107,1],[111,0],[111,1],[117,0],[117,1],[119,0],[119,2],[124,0],[124,1],[129,0],[129,1],[133,0],[133,1],[134,1],[134,1],[134,1],[136,0],[136,1],[137,0],[137,2],[140,0],[140,1],[141,0],[141,1],[142,0],[142,1],[144,0],[144,3],[146,0],[146,1],[148,0],[148,1],[149,0],[149,2],[152,0],[152,1],[153,0],[153,1],[155,0],[155,3],[157,0],[157,1],[162,0],[162,1],[167,0],[167,2],[168,0],[168,2],[169,1],[169,2],[170,0],[170,2],[175,0],[175,3],[177,0],[177,1],[178,0],[178,3],[180,0],[180,3],[181,0],[181,1],[183,0],[183,3],[184,0],[184,1],[189,0],[189,1],[191,0],[191,2],[194,0],[194,1],[198,0],[198,3],[201,0],[201,1],[204,0],[204,1],[206,0],[206,2],[208,1],[208,1],[210,0],[210,3],[213,0],[213,1],[215,0],[215,3],[217,0],[217,3],[339,1],[339,1],[339,1],[221,0],[221,1],[222,0],[222,1],[227,0],[227,3],[228,0],[228,1],[230,1],[230,2],[233,1],[233,2],[240,0],[240,2],[244,0],[244,2],[248,1],[248,1],[248,1],[248,1],[248,1],[248,1],[249,0],[249,1],[252,0],[252,2],[254,1],[254,1],[256,0],[256,2],[258,0],[258,2],[260,0],[260,2],[262,1],[262,1],[275,1],[275,1],[275,1],[275,1],[275,1],[278,0],[278,1],[281,0],[281,1],[282,1],[282,1],[284,0],[284,1],[286,0],[286,1],[287,0],[287,1]],performAction:o(function(E,O,I,z,pe,d,Kt){var m=d.length-1;switch(pe){case 1:if(d[m-1]=d[m-1]||{},ve.base&&(d[m-1].base=ve.base),ve.base="",d[m-1].prefixes=ve.prefixes,ve.prefixes=null,ve.pathOnly){if(d[m-1].type==="path"||"termType"in d[m-1])return d[m-1];throw new Error("Received full SPARQL query in path only mode")}else if(d[m-1].type==="path"||"termType"in d[m-1])throw new Error("Received only path in full SPARQL mode");if(d[m-1].type==="update"){let Ge={};for(let tt of d[m-1].updates)if(tt.updateType==="insert"){let Le={};for(let Ue of tt.insert)if(Ue.type==="bgp"||Ue.type==="graph")for(let ar of Ue.triples)ar.subject.termType==="BlankNode"&&(Le[ar.subject.value]=!0),ar.predicate.termType==="BlankNode"&&(Le[ar.predicate.value]=!0),ar.object.termType==="BlankNode"&&(Le[ar.object.value]=!0);for(let Ue of Object.keys(Le)){if(Ge[Ue])throw new Error("Detected reuse blank node across different INSERT DATA clauses");Ge[Ue]=!0}}}return d[m-1];case 2:this.$={...d[m-1],...d[m],type:"query"};break;case 4:ve.base=Sa(d[m]);break;case 5:ve.prefixes||(ve.prefixes={}),d[m-1]=d[m-1].substr(0,d[m-1].length-1),d[m]=Sa(d[m]),ve.prefixes[d[m-1]]=d[m];break;case 6:this.$={...d[m-3],...ki(d[m-2]),...d[m-1],...d[m]};break;case 7:if(!ve.skipValidation&&(Ql(d[m-3].variables.map(tt=>Yl(tt.expression))).some(tt=>tt.aggregation==="count"&&!(tt.expression instanceof Ko))||d[m].group)){for(let tt of d[m-3].variables)if(tt.termType==="Variable"){if(!d[m].group||!d[m].group.map(Le=>bs(Le)).includes(bs(tt)))throw Error("Projection of ungrouped variable (?"+bs(tt)+")")}else if(Yl(tt.expression).length===0){let Le=kS(tt.expression);for(let Ue of Le)if(!d[m].group||!d[m].group.map||!d[m].group.map(ar=>bs(ar)).includes(bs(Ue)))throw Error("Use of ungrouped variable in projection of operation (?"+bs(Ue)+")")}}let pn=d[m-1].where.filter(Ge=>Ge.type==="query");if(pn.length>0){let Ge=d[m-3].variables.filter(Le=>Le.variable&&Le.variable.value).map(Le=>Le.variable.value),tt=Ql(pn.map(Le=>Le.variables)).map(Le=>Le.value||Le.variable.value);for(let Le of Ge)if(tt.indexOf(Le)>=0)throw Error("Target id of 'AS' (?"+Le+") already used in subquery")}this.$=at(d[m-3],ki(d[m-2]),d[m-1],d[m]);break;case 8:this.$=at({queryType:"CONSTRUCT",template:d[m-3]},ki(d[m-2]),d[m-1],d[m]);break;case 9:this.$=at({queryType:"CONSTRUCT",template:d[m-2]=d[m-2]?d[m-2].triples:[]},ki(d[m-5]),{where:[{type:"bgp",triples:Ni([],d[m-2])}]},d[m]);break;case 10:this.$=at({queryType:"DESCRIBE",variables:d[m-3]==="*"?[new Ko]:d[m-3]},ki(d[m-2]),d[m-1],d[m]);break;case 11:this.$=at({queryType:"ASK"},ki(d[m-2]),d[m-1],d[m]);break;case 12:this.$=at(d[m-1],{variables:[new Ko]});break;case 13:let Aa=d[m].map(Ge=>Ge.value||Ge.variable.value),ws=jS(Aa);if(ws.length>0)throw Error("Two or more of the resulting columns have the same name (?"+ws[0]+")");this.$=at(d[m-1],{variables:d[m]});break;case 14:this.$=at({queryType:"SELECT"},d[m]&&(d[m-1]=zt(d[m]),d[m]={},d[m][d[m-1]]=!0,d[m]));break;case 16:case 27:this.$=_s(d[m-3],{variable:d[m-1]});break;case 17:case 18:this.$=at(d[m-3],d[m-2],d[m-1],d[m],{type:"query"});break;case 19:case 58:this.$={iri:d[m],named:!!d[m-1]};break;case 20:this.$={where:d[m].patterns};break;case 21:this.$=at(d[m-1],d[m]);break;case 22:this.$=at(d[m-2],d[m-1],d[m]);break;case 23:this.$={group:d[m]};break;case 24:case 25:case 28:case 31:case 33:case 34:this.$=_s(d[m]);break;case 26:this.$=_s(d[m-1]);break;case 29:this.$={having:d[m]};break;case 30:this.$={order:d[m]};break;case 32:this.$=_s(d[m],{descending:!0});break;case 35:this.$={limit:Ss(d[m])};break;case 36:this.$={offset:Ss(d[m])};break;case 37:this.$={limit:Ss(d[m-2]),offset:Ss(d[m])};break;case 38:this.$={limit:Ss(d[m]),offset:Ss(d[m-2])};break;case 39:case 43:this.$={type:"values",values:d[m]};break;case 40:case 84:this.$=d[m-1].map(Ge=>({[d[m-3]]:Ge}));break;case 41:case 85:this.$=d[m-1].map(()=>({}));break;case 42:case 86:var dn=d[m-4].length;d[m-4]=d[m-4].map($l),this.$=d[m-1].map(function(Ge){if(Ge.length!==dn)throw Error("Inconsistent VALUES length");for(var tt={},Le=0;Le<dn;Le++)tt["?"+d[m-4][Le].value]=Ge[Le];return tt});break;case 44:case 65:case 100:case 126:case 175:this.$=d[m-1];break;case 45:this.$={type:"update",updates:Nn(d[m-2],d[m-1])};break;case 46:this.$=at({type:"load",silent:!!d[m-2],source:d[m-1]},d[m]&&{destination:d[m]});break;case 47:this.$={type:zt(d[m-2]),silent:!!d[m-1],graph:d[m]};break;case 48:this.$={type:zt(d[m-4]),silent:!!d[m-3],source:d[m-2],destination:d[m]};break;case 49:this.$={type:"create",silent:!!d[m-2],graph:{type:"graph",name:d[m]}};break;case 50:this.$={updateType:"insert",insert:V1(d[m])};break;case 51:this.$={updateType:"delete",delete:Zl(V1(d[m]))};break;case 52:this.$={updateType:"deletewhere",delete:Zl(d[m])};break;case 53:this.$={updateType:"insertdelete",...d[m-4],...d[m-3],...ki(d[m-2],"using"),where:d[m].patterns};break;case 54:case 57:case 62:case 167:case 191:case 236:this.$=d[m];break;case 55:this.$={delete:Zl(d[m-1]),insert:d[m]||[]};break;case 56:this.$={delete:[],insert:d[m]};break;case 59:this.$={graph:d[m]};break;case 60:this.$={type:"graph",default:!0};break;case 61:case 63:this.$={type:"graph",name:d[m]};break;case 64:this.$={[zt(d[m])]:!0};break;case 66:this.$=d[m-1]?fn(d[m],[d[m-1]]):fn(d[m]);break;case 67:var Ea=at(d[m-3]||{triples:[]},{type:"graph",name:d[m-5]});this.$=d[m]?[Ea,d[m]]:[Ea];break;case 68:case 73:this.$={type:"bgp",triples:fn(d[m-2],[d[m-1]])};break;case 69:this.$={type:"group",patterns:[d[m-1]]};break;case 70:for(let Ge of d[m-1].filter(tt=>tt.type==="bind")){let tt=d[m-1].indexOf(Ge),Le=new Set;for(let Ue of d[m-1].slice(0,tt))(Ue.type==="group"||Ue.type==="bgp")&&M1(Ue).forEach(ar=>Le.add(ar));if(Le.has(Ge.variable.value))throw Error("Variable used to bind is already bound (?"+Ge.variable.value+")")}this.$={type:"group",patterns:d[m-1]};break;case 71:this.$=d[m-1]?fn([d[m-1]],d[m]):fn(d[m]);break;case 72:this.$=d[m]?[d[m-2],d[m]]:d[m-2];break;case 75:this.$=at(d[m],{type:"optional"});break;case 76:this.$=at(d[m],{type:"minus"});break;case 77:this.$=at(d[m],{type:"graph",name:d[m-1]});break;case 78:this.$=at(d[m],{type:"service",name:d[m-1],silent:!!d[m-2]});break;case 79:this.$={type:"filter",expression:d[m]};break;case 80:this.$={type:"bind",variable:d[m-1],expression:d[m-3]};break;case 89:this.$=wa(d[m]);break;case 90:this.$=void 0;break;case 91:this.$=d[m-1].length?{type:"union",patterns:fn(d[m-1].map(Gl),[Gl(d[m])])}:d[m];break;case 95:this.$={...d[m],function:d[m-1]};break;case 96:this.$={type:"functionCall",args:[]};break;case 97:this.$={type:"functionCall",args:Nn(d[m-2],d[m-1]),distinct:!!d[m-3]};break;case 98:case 115:case 128:case 247:case 249:case 251:case 253:case 255:case 263:case 267:case 297:case 299:case 303:case 307:case 328:case 341:case 349:case 355:case 361:case 367:case 369:case 373:case 375:case 379:case 381:case 385:case 391:case 395:case 401:case 405:case 409:case 411:case 420:case 428:case 430:case 440:case 444:case 446:case 448:this.$=[];break;case 99:this.$=Nn(d[m-2],d[m-1]);break;case 101:this.$=fn(d[m-2],[d[m-1]]);break;case 102:case 112:this.$=Xl(d[m].map(Ge=>at(kn(d[m-1]),Ge)));break;case 103:this.$=Xl(Ni(d[m].map(Ge=>at(kn(d[m-1].entity),Ge)),d[m-1].triples));break;case 105:this.$=fn([d[m-1]],d[m]);break;case 106:this.$=fn(d[m]);break;case 107:this.$=Kl(d[m-1],d[m]);break;case 109:case 237:this.$=ve.factory.namedNode(AS);break;case 110:case 118:this.$=Nn(d[m-1],d[m]);break;case 111:this.$=d[m]?{annotation:d[m],object:d[m-1]}:d[m-1];break;case 113:this.$=d[m]?Xl(Ni(d[m].map(Ge=>at(kn(d[m-1].entity),Ge)),d[m-1].triples)):d[m-1].triples;break;case 114:this.$=Kl(...d[m-1],d[m]);break;case 116:this.$=Kl(...d[m]);break;case 117:case 159:case 163:this.$=[d[m-1],d[m]];break;case 119:this.$=d[m]?{object:d[m-1],annotation:d[m]}:d[m-1];break;case 120:this.$=d[m-1].length?vs("|",Nn(d[m-1],d[m])):d[m];break;case 121:this.$=d[m-1].length?vs("/",Nn(d[m-1],d[m])):d[m];break;case 122:this.$=d[m]?vs(d[m],[d[m-1]]):d[m-1];break;case 123:this.$=d[m-1]?vs(d[m-1],[d[m]]):d[m];break;case 125:case 131:this.$=vs(d[m-1],[d[m]]);break;case 129:this.$=vs("|",Nn(d[m-2],d[m-1]));break;case 132:case 134:this.$=RS(d[m-1]);break;case 133:case 135:this.$=NS(d[m-1]);break;case 140:this.$={entity:d[m],triples:[]};break;case 145:this.$=$l(d[m]);break;case 149:this.$=ve.factory.namedNode(F1);break;case 151:case 153:case 158:case 162:this.$=Wl(d[m-1],d[m]);break;case 152:this.$=["||",d[m]];break;case 154:this.$=["&&",d[m]];break;case 156:this.$=xt(d[m-1],[d[m-2],d[m]]);break;case 157:this.$=xt(d[m-2]?"notin":"in",[d[m-3],d[m]]);break;case 160:this.$=["+",Wl(d[m-1],d[m])];break;case 161:var Jo=hn(d[m-1].value.replace("-",""),d[m-1].datatype);this.$=["-",Wl(Jo,d[m])];break;case 164:this.$=xt("UPLUS",[d[m]]);break;case 165:this.$=xt(d[m-1],[d[m]]);break;case 166:this.$=xt("UMINUS",[d[m]]);break;case 177:this.$=xt(zt(d[m-1]));break;case 178:this.$=xt(zt(d[m-3]),[d[m-1]]);break;case 179:this.$=wa(xt(zt(d[m-3]),[d[m-1]]));break;case 180:this.$=xt(zt(d[m-5]),[d[m-3],d[m-1]]);break;case 181:this.$=xt(zt(d[m-7]),[d[m-5],d[m-3],d[m-1]]);break;case 182:this.$=wa(xt(zt(d[m-7]),[d[m-5],d[m-3],d[m-1]]));break;case 183:this.$=xt(zt(d[m-1]),d[m]);break;case 184:this.$=xt("bound",[$l(d[m-1])]);break;case 185:this.$=xt(d[m-1],[]);break;case 186:this.$=xt(d[m-3],[d[m-1]]);break;case 187:this.$=xt(d[m-2]?"notexists":"exists",[Gl(d[m])]);break;case 188:case 189:this.$=_s(d[m-1],{type:"aggregate",aggregation:zt(d[m-4]),distinct:!!d[m-2]});break;case 190:this.$=_s(d[m-2],{type:"aggregate",aggregation:zt(d[m-5]),distinct:!!d[m-3],separator:typeof d[m-1]=="string"?d[m-1]:" "});break;case 192:this.$=hn(d[m]);break;case 193:this.$=FS(d[m-1],zt(d[m].substr(1)));break;case 194:this.$=hn(d[m-2],d[m]);break;case 195:case 204:this.$=hn(d[m],P1);break;case 196:case 205:this.$=hn(d[m],I1);break;case 197:case 206:this.$=hn(zt(d[m]),D1);break;case 200:this.$=hn(d[m].toLowerCase(),CS);break;case 201:this.$=hn(d[m].substr(1),P1);break;case 202:this.$=hn(d[m].substr(1),I1);break;case 203:this.$=hn(d[m].substr(1).toLowerCase(),D1);break;case 207:case 208:this.$=j1(d[m],1);break;case 209:case 210:this.$=j1(d[m],3);break;case 211:this.$=ve.factory.namedNode(Sa(d[m]));break;case 213:var Xo=d[m].indexOf(":"),Ta=d[m].substr(0,Xo),Zo=ve.prefixes[Ta];if(!Zo)throw new Error("Unknown prefix: "+Ta);var it=Sa(Zo+d[m].substr(Xo+1));this.$=ve.factory.namedNode(it);break;case 214:if(d[m]=d[m].substr(0,d[m].length-1),!(d[m]in ve.prefixes))throw new Error("Unknown prefix: "+d[m]);var it=Sa(ve.prefixes[d[m]]);this.$=ve.factory.namedNode(it);break;case 215:this.$=ba(d[m].replace(/^(_:)/,""));break;case 216:this.$=ba();break;case 217:case 218:case 232:this.$=wa(Hl(d[m-3],d[m-2],d[m-1]));break;case 230:case 231:this.$=wa(d[m-1]);break;case 248:case 250:case 252:case 254:case 256:case 260:case 264:case 268:case 270:case 292:case 294:case 296:case 298:case 300:case 302:case 304:case 306:case 329:case 342:case 356:case 368:case 370:case 372:case 374:case 392:case 402:case 425:case 427:case 429:case 431:case 441:case 445:case 447:case 449:d[m-1].push(d[m]);break;case 259:case 269:case 291:case 293:case 295:case 301:case 305:case 371:case 424:case 426:this.$=[d[m]];break;case 308:d[m-3].push(d[m-2]);break;case 350:case 362:case 376:case 380:case 382:case 386:case 396:case 406:case 410:case 412:case 421:d[m-2].push(d[m-1]);break}},"anonymous"),table:[r(e,t,{3:1,4:2,10:3}),{1:[3]},r(n,[2,307],{5:4,7:5,321:6,214:7,8:8,96:9,215:10,17:11,21:12,97:16,38:17,6:[2,238],13:i,16:i,45:i,197:i,224:i,229:i,308:i,24:[1,13],32:[1,14],36:[1,15],41:s}),r([6,13,16,24,32,36,41,45,100,110,113,115,116,123,126,131,197,224,229,308,329,330,331,332,333],[2,3],{322:19,11:20,14:21,12:[1,22],15:[1,23]}),{6:[1,24]},{6:[2,240]},{6:[2,241]},{6:[2,242]},{6:[2,243],9:25,84:26,85:a},{6:[2,239]},r(c,[2,411],{216:28,217:29}),r(u,[2,249],{18:30}),r(u,[2,251],{22:31}),r(f,[2,255],{25:32,27:33,29:[1,34]}),{13:l,16:h,33:35,39:[1,37],44:39,55:40,87:p,139:38,307:43,308:g,323:36},r(u,[2,267],{37:46}),r(b,[2,326],{98:47,103:49,106:50,117:55,130:61,100:[1,48],110:[1,51],113:[1,52],115:[1,53],116:[1,54],131:[1,62],329:[1,56],330:[1,57],331:[1,58],332:[1,59],333:[1,60]}),{39:[1,63],40:64,43:65,44:66,45:v,87:p},r(x,[2,273],{42:68,324:69,325:[1,70],326:[1,71]}),r(e,[2,248]),r(e,[2,245]),r(e,[2,246]),{13:[1,72]},{16:[1,73]},{1:[2,1]},{6:[2,2]},{6:[2,244]},{45:[1,77],85:[1,78],86:74,87:[1,75],89:[1,76]},r([6,13,16,45,48,82,87,89,231,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312],[2,120],{337:[1,79]}),r(F,[2,418],{218:80,222:81,229:[1,82]}),{19:83,28:P,29:L,52:84,53:$,56:85},{19:88,28:P,29:L,52:89,53:$,56:85},r(u,[2,253],{26:90}),{28:[1,91],52:92,53:$},r(Y,[2,385],{181:93,182:94,183:95,31:[2,383]}),r(Ce,[2,263],{34:96}),r(Ce,[2,261],{44:39,55:40,307:43,139:97,13:l,16:h,87:p,308:g}),r(Ce,[2,262]),r(Ye,[2,259]),r(ut,[2,143]),r(ut,[2,144]),r([6,13,16,28,29,31,39,45,47,48,53,63,70,73,76,78,81,82,83,85,87,89,112,159,160,161,163,164,193,197,224,229,231,232,242,246,250,263,265,268,269,270,271,272,273,274,276,277,279,280,283,285,290,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,314,317,318,335,338,341,342,343,344,345,346,347,348,349,350,351],[2,145]),r(B,[2,211]),r(B,[2,212]),r(B,[2,213]),r(B,[2,214]),{19:98,28:P,29:L,52:99,53:$,56:85},{6:[2,309],99:100,193:[1,101]},r(ce,[2,311],{101:102,328:[1,103]}),r(xe,[2,317],{104:104,328:[1,105]}),r(Ze,[2,322],{107:106,328:[1,107]}),{111:108,112:[2,324],328:[1,109]},{29:$e,114:110},{29:$e,114:112},{29:$e,114:113},{118:114,123:[1,115],125:116,126:He},r(De,[2,315]),r(De,[2,316]),r(Ne,[2,319]),r(Ne,[2,320]),r(Ne,[2,321]),r(b,[2,327]),{13:l,16:h,55:118,307:43,308:g},r(u,[2,12]),r(u,[2,13],{44:66,43:119,45:v,87:p}),r(Fe,[2,269]),r(Fe,[2,15]),{13:l,16:h,44:136,45:G,46:120,55:133,67:132,68:134,77:131,82:R,87:p,172:135,224:ke,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:qe,264:130,265:j,266:137,267:139,268:le,269:Se,270:W,271:be,273:we,274:ge,275:146,276:Ee,277:ue,278:149,279:ye,280:fe,283:_e,285:Te,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,312:Re,346:Oe,347:Ae,348:_,349:S,350:w,351:C},r(x,[2,14]),r(x,[2,274]),r(x,[2,271]),r(x,[2,272]),r(e,[2,4]),{13:[1,177]},r(q,[2,39]),{29:[1,178]},{29:[1,179]},{87:[1,181],91:180},{45:[1,187],87:[1,185],89:[1,186],93:182,165:183,166:184},r(c,[2,410]),r([6,13,16,45,48,82,87,89,231,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,337],[2,121],{338:[1,188]}),{13:l,16:h,45:[1,193],55:194,197:We,219:189,220:190,223:191,224:[1,192],307:43,308:g},r(F,[2,419]),r(Qe,me,{20:196,59:197,69:198,70:N}),r(u,[2,250]),{29:k,57:200},r(ce,[2,279],{54:202,327:[1,203]}),{29:[2,282]},r(M,V,{23:204,58:205,62:206,63:de}),r(u,[2,252]),{19:208,28:P,29:L,52:209,53:$,56:85},{29:[1,210]},r(f,[2,256]),{31:[1,211]},{31:[2,384]},{13:l,16:h,44:215,45:je,55:220,82:R,87:p,89:Me,145:212,172:221,185:213,187:214,231:Tt,236:216,237:222,255:154,257:155,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,309:sr,310:pr,311:217,312:Gt},r(Zm,[2,265],{56:85,35:227,52:228,19:229,28:P,29:L,53:$}),r(Ye,[2,260]),r(M,V,{58:205,62:206,23:230,63:de}),r(u,[2,268]),{6:[2,45]},r(e,t,{10:3,4:231}),{13:l,16:h,55:232,307:43,308:g},r(ce,[2,312]),{105:233,112:e1,122:234,132:[1,237],134:235,327:[1,238],334:[1,239]},r(xe,[2,318]),r(ce,t1,{108:240,133:242,112:r1,132:n1}),r(Ze,[2,323]),{112:[1,244]},{112:[2,325]},r(At,[2,50]),r(Y,No,{135:245,136:246,143:247,144:248,31:i1,112:i1}),r(At,[2,51]),r(At,[2,52]),r(Zn,[2,328],{119:249}),{29:$e,114:250},r(Zn,[2,56]),{29:$e,114:251},r(b,[2,59]),r(Fe,[2,270]),{47:[1,252]},r(s1,[2,150]),r(ko,[2,428],{240:253}),r(ds,[2,430],{244:254}),r(ds,[2,155],{248:255,249:256,250:[2,438],290:[1,257],341:[1,258],342:[1,259],343:[1,260],344:[1,261],345:[1,262],346:[1,263]}),r(ps,[2,440],{252:264}),r(_t,[2,448],{260:265}),{13:l,16:h,44:136,45:G,55:133,67:132,68:134,77:131,82:R,87:p,172:135,255:154,257:155,264:266,266:137,267:139,268:le,269:Se,270:W,271:be,273:we,274:ge,275:146,276:Ee,277:ue,278:149,279:ye,280:fe,283:_e,285:Te,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,312:Re,346:Oe,347:Ae,348:_,349:S,350:w,351:C},{13:l,16:h,44:136,45:G,55:133,67:132,68:134,77:131,82:R,87:p,172:135,255:154,257:155,264:267,266:137,267:139,268:le,269:Se,270:W,271:be,273:we,274:ge,275:146,276:Ee,277:ue,278:149,279:ye,280:fe,283:_e,285:Te,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,312:Re,346:Oe,347:Ae,348:_,349:S,350:w,351:C},{13:l,16:h,44:136,45:G,55:133,67:132,68:134,77:131,82:R,87:p,172:135,255:154,257:155,264:268,266:137,267:139,268:le,269:Se,270:W,271:be,273:we,274:ge,275:146,276:Ee,277:ue,278:149,279:ye,280:fe,283:_e,285:Te,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,312:Re,346:Oe,347:Ae,348:_,349:S,350:w,351:C},r(_t,[2,167]),r(_t,[2,168]),r(_t,[2,169]),r(_t,[2,170],{176:269,45:a1,89:o1}),r(_t,[2,171]),r(_t,[2,172]),r(_t,[2,173]),r(_t,[2,174]),{13:l,16:h,44:136,45:G,46:272,55:133,67:132,68:134,77:131,82:R,87:p,172:135,224:ke,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:qe,264:130,265:j,266:137,267:139,268:le,269:Se,270:W,271:be,273:we,274:ge,275:146,276:Ee,277:ue,278:149,279:ye,280:fe,283:_e,285:Te,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,312:Re,346:Oe,347:Ae,348:_,349:S,350:w,351:C},r(lt,[2,176]),{89:[1,273]},{45:[1,274]},{45:[1,275]},{45:[1,276]},{45:[1,277]},{45:[1,278]},{45:c1,89:u1,179:279},{45:[1,282]},{45:[1,284],89:[1,283]},{279:[1,285]},r(Ht,[2,192],{292:[1,286],293:[1,287]}),r(Ht,[2,195]),r(Ht,[2,196]),r(Ht,[2,197]),r(Ht,[2,198]),r(Ht,[2,199]),r(Ht,[2,200]),{13:l,16:h,44:39,55:40,82:R,87:p,139:289,172:291,255:154,257:155,266:290,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,312:Re,320:288},{45:[1,292]},{45:[1,293]},{45:[1,294]},r(ga,[2,452]),r(ga,[2,453]),r(ga,[2,454]),r(ga,[2,455]),r(ga,[2,456]),{279:[2,458]},r(jo,[2,207]),r(jo,[2,208]),r(jo,[2,209]),r(jo,[2,210]),r(Ht,[2,201]),r(Ht,[2,202]),r(Ht,[2,203]),r(Ht,[2,204]),r(Ht,[2,205]),r(Ht,[2,206]),r(e,[2,5]),r(Mo,[2,297],{88:295}),r(Lo,[2,299],{90:296}),{48:[1,297],87:[1,298]},r(Vo,[2,301]),r(q,[2,43]),r(q,[2,82]),r(q,[2,83]),{29:[1,299]},{29:[1,300]},{87:[1,302],169:301},r(c,[2,412]),r(Oi,[2,123]),r(Oi,[2,416],{221:303,339:304,39:[1,306],263:[1,307],340:[1,305]}),r(ln,[2,124]),{13:l,16:h,45:[1,311],55:194,89:[1,310],197:We,223:312,225:308,226:309,229:l1,307:43,308:g},r(c,i,{215:10,214:314}),r(ln,[2,236]),r(ln,[2,237]),r(ms,[2,6]),r(kl,[2,287],{60:315,72:316,73:[1,317]}),r(Qe,[2,286]),{13:l,16:h,45:G,55:323,67:321,68:322,71:318,77:320,79:319,267:139,268:le,269:Se,270:W,271:be,273:we,274:ge,275:146,276:Ee,277:ue,278:149,279:ye,280:fe,283:_e,285:Te,307:43,308:g,346:Oe,347:Ae,348:_,349:S,350:w,351:C},r([6,31,63,70,73,81,83,85],[2,20]),r(Y,f1,{38:17,49:324,147:325,17:326,21:327,148:328,154:329,155:330,29:Fn,31:Fn,85:Fn,112:Fn,159:Fn,160:Fn,161:Fn,163:Fn,164:Fn,41:s}),{13:l,16:h,55:331,307:43,308:g},r(ce,[2,280]),r(ms,[2,7]),r(Qe,me,{59:197,69:198,20:332,70:N}),r(M,[2,284]),{64:[1,333]},r(M,V,{58:205,62:206,23:334,63:de}),r(u,[2,254]),r(Y,No,{144:248,30:335,143:336,31:[2,257]}),r(u,[2,100]),{31:[2,387],184:337,335:[1,338]},{13:l,16:h,44:39,55:40,87:p,139:342,186:339,190:340,195:341,197:Ci,307:43,308:g},r(ya,[2,389],{44:39,55:40,307:43,190:340,195:341,139:342,188:344,189:345,186:346,13:l,16:h,87:p,197:Ci,308:g}),r(Pn,[2,227]),r(Pn,[2,228]),r(Pn,[2,229]),{13:l,16:h,44:215,45:je,55:220,82:R,87:p,89:Me,172:221,185:351,187:350,200:348,230:347,231:Tt,234:349,236:216,237:222,255:154,257:155,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,309:sr,310:pr,311:217,312:Gt},{13:l,16:h,44:39,55:40,87:p,139:342,186:352,190:340,195:341,197:Ci,307:43,308:g},r(Pn,[2,146]),r(Pn,[2,147]),r(Pn,[2,148]),r(Pn,[2,149]),{13:l,16:h,44:354,55:355,82:R,87:p,172:357,237:356,255:154,257:155,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,309:sr,310:pr,311:358,312:Gt,313:353},r(jl,[2,215]),r(jl,[2,216]),r(M,V,{58:205,62:206,23:359,63:de}),r(Ce,[2,264]),r(Zm,[2,266]),r(ms,[2,11]),r(n,[2,308],{6:[2,310]}),r(At,[2,313],{102:360,120:361,121:[1,362]}),r(At,[2,47]),r(At,[2,63]),r(At,[2,64]),{13:l,16:h,55:363,307:43,308:g},r(At,[2,336]),r(At,[2,337]),r(At,[2,338]),{109:[1,364]},r(h1,[2,60]),{13:l,16:h,55:365,307:43,308:g},r(ce,[2,335]),{13:l,16:h,55:366,307:43,308:g},{31:[1,367]},r(Fi,[2,341],{137:368}),r(Fi,[2,340]),{13:l,16:h,44:215,45:je,55:220,82:R,87:p,89:Me,145:369,172:221,185:213,187:214,231:Tt,236:216,237:222,255:154,257:155,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,309:sr,310:pr,311:217,312:Gt},{28:[1,370],127:371,128:[1,372]},r(Zn,[2,330],{124:373,125:374,126:He}),r(Zn,[2,57]),{44:375,87:p},r(s1,[2,151],{241:376,242:[1,377]}),r(ko,[2,153],{245:378,246:[1,379]}),{13:l,16:h,44:136,45:G,55:133,67:132,68:134,77:131,82:R,87:p,172:135,224:ke,247:380,251:125,255:154,257:155,259:126,263:qe,264:130,265:j,266:137,267:139,268:le,269:Se,270:W,271:be,273:we,274:ge,275:146,276:Ee,277:ue,278:149,279:ye,280:fe,283:_e,285:Te,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,312:Re,346:Oe,347:Ae,348:_,349:S,350:w,351:C},{250:[1,381]},r(ft,[2,432]),r(ft,[2,433]),r(ft,[2,434]),r(ft,[2,435]),r(ft,[2,436]),r(ft,[2,437]),{250:[2,439]},r([47,48,193,242,246,250,272,290,341,342,343,344,345,346],[2,158],{253:382,254:383,255:384,257:385,263:[1,386],265:[1,387],297:X,298:Z,299:ee,300:Q,301:ne,302:ie}),r(ps,[2,162],{261:388,262:389,39:Ml,338:Ll}),r(_t,[2,164]),r(_t,[2,165]),r(_t,[2,166]),r(lt,[2,95]),r(lt,[2,96]),r(ft,[2,377],{177:392,325:[1,393]}),{48:[1,394]},r(lt,[2,177]),{13:l,16:h,44:136,45:G,46:395,55:133,67:132,68:134,77:131,82:R,87:p,172:135,224:ke,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:qe,264:130,265:j,266:137,267:139,268:le,269:Se,270:W,271:be,273:we,274:ge,275:146,276:Ee,277:ue,278:149,279:ye,280:fe,283:_e,285:Te,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,312:Re,346:Oe,347:Ae,348:_,349:S,350:w,351:C},{13:l,16:h,44:136,45:G,46:396,55:133,67:132,68:134,77:131,82:R,87:p,172:135,224:ke,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:qe,264:130,265:j,266:137,267:139,268:le,269:Se,270:W,271:be,273:we,274:ge,275:146,276:Ee,277:ue,278:149,279:ye,280:fe,283:_e,285:Te,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,312:Re,346:Oe,347:Ae,348:_,349:S,350:w,351:C},{13:l,16:h,44:136,45:G,46:397,55:133,67:132,68:134,77:131,82:R,87:p,172:135,224:ke,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:qe,264:130,265:j,266:137,267:139,268:le,269:Se,270:W,271:be,273:we,274:ge,275:146,276:Ee,277:ue,278:149,279:ye,280:fe,283:_e,285:Te,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,312:Re,346:Oe,347:Ae,348:_,349:S,350:w,351:C},{13:l,16:h,44:136,45:G,46:398,55:133,67:132,68:134,77:131,82:R,87:p,172:135,224:ke,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:qe,264:130,265:j,266:137,267:139,268:le,269:Se,270:W,271:be,273:we,274:ge,275:146,276:Ee,277:ue,278:149,279:ye,280:fe,283:_e,285:Te,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,312:Re,346:Oe,347:Ae,348:_,349:S,350:w,351:C},{13:l,16:h,44:136,45:G,46:399,55:133,67:132,68:134,77:131,82:R,87:p,172:135,224:ke,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:qe,264:130,265:j,266:137,267:139,268:le,269:Se,270:W,271:be,273:we,274:ge,275:146,276:Ee,277:ue,278:149,279:ye,280:fe,283:_e,285:Te,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,312:Re,346:Oe,347:Ae,348:_,349:S,350:w,351:C},r(lt,[2,183]),r(lt,[2,98]),r(ft,[2,381],{180:400}),{87:[1,401]},r(lt,[2,185]),{13:l,16:h,44:136,45:G,46:402,55:133,67:132,68:134,77:131,82:R,87:p,172:135,224:ke,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:qe,264:130,265:j,266:137,267:139,268:le,269:Se,270:W,271:be,273:we,274:ge,275:146,276:Ee,277:ue,278:149,279:ye,280:fe,283:_e,285:Te,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,312:Re,346:Oe,347:Ae,348:_,349:S,350:w,351:C},{29:k,57:403},r(Ht,[2,193]),{13:l,16:h,55:404,307:43,308:g},{13:l,16:h,44:39,55:40,87:p,139:342,195:405,197:Ci,307:43,308:g},r(ei,[2,233]),r(ei,[2,234]),r(ei,[2,235]),r(d1,[2,459],{281:406,325:[1,407]}),r(ft,[2,463],{284:408,325:[1,409]}),r(ft,[2,465],{286:410,325:[1,411]}),{13:l,16:h,31:[1,412],55:414,82:R,171:413,172:415,173:416,174:qo,255:154,257:155,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,312:Bo},{31:[1,419],89:[1,420]},{29:[1,421]},r(Vo,[2,302]),r(Mo,[2,367],{167:422}),r(Lo,[2,369],{168:423}),{48:[1,424],87:[1,425]},r(Vo,[2,371]),r(Oi,[2,122]),r(Oi,[2,417]),r(Oi,[2,413]),r(Oi,[2,414]),r(Oi,[2,415]),r(ln,[2,125]),r(ln,[2,127]),r(ln,[2,128]),r(p1,[2,420],{227:426}),r(ln,[2,130]),{13:l,16:h,55:194,197:We,223:427,307:43,308:g},{48:[1,428]},r(ti,[2,289],{61:429,80:430,81:[1,431],83:[1,432]}),r(kl,[2,288]),{64:[1,433]},r(Qe,[2,29],{307:43,267:139,275:146,278:149,77:320,67:321,68:322,55:323,79:434,13:l,16:h,45:G,268:le,269:Se,270:W,271:be,273:we,274:ge,276:Ee,277:ue,279:ye,280:fe,283:_e,285:Te,308:g,346:Oe,347:Ae,348:_,349:S,350:w,351:C}),r(m1,[2,293]),r(Vl,[2,92]),r(Vl,[2,93]),r(Vl,[2,94]),{45:a1,89:o1,176:269},{31:[1,435]},{31:[1,436]},{19:437,28:P,29:L,56:85},{19:438,28:P,29:L,56:85},r(Pi,[2,355],{149:439}),r(Pi,[2,354]),{13:l,16:h,44:215,45:Uo,55:220,82:R,87:p,89:Me,156:440,172:221,185:441,203:442,231:$o,236:216,237:222,255:154,257:155,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,309:sr,310:pr,311:217,312:Gt},r(Ce,[2,19]),r(ti,[2,21]),{13:l,16:h,44:450,45:g1,55:323,65:445,66:446,67:447,68:448,87:p,267:139,268:le,269:Se,270:W,271:be,273:we,274:ge,275:146,276:Ee,277:ue,278:149,279:ye,280:fe,283:_e,285:Te,307:43,308:g,346:Oe,347:Ae,348:_,349:S,350:w,351:C},r(ms,[2,8]),{31:[1,451]},{31:[2,258]},{31:[2,101]},r(Y,[2,386],{31:[2,388]}),r(ya,[2,102]),r(Ii,[2,391],{191:452}),r(Y,[2,395],{196:453,198:454}),r(Y,[2,108]),r(Y,[2,109]),r(ya,[2,103]),r(ya,[2,104]),r(ya,[2,390]),{13:l,16:h,44:215,45:je,48:[1,455],55:220,82:R,87:p,89:Me,172:221,185:351,187:350,200:456,231:Tt,234:349,236:216,237:222,255:154,257:155,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,309:sr,310:pr,311:217,312:Gt},r(Wo,[2,424]),r(y1,[2,136]),r(y1,[2,137]),r(ql,[2,140]),{232:[1,457]},{13:l,16:h,44:39,55:40,87:p,139:342,195:458,197:Ci,307:43,308:g},r(ei,[2,219]),r(ei,[2,220]),r(ei,[2,221]),r(ei,[2,222]),r(ei,[2,223]),r(ms,[2,10]),r(At,[2,46]),r(At,[2,314]),{112:e1,122:459},r(At,[2,62]),r(ce,t1,{133:242,108:460,112:r1,132:n1}),r(h1,[2,61]),r(At,[2,49]),r([6,28,126,128,193],[2,65]),{31:[2,66],112:[1,462],138:461},r(Fi,[2,351],{146:463,335:[1,464]}),{29:k,57:465},r(Zn,[2,329]),r(ce,[2,332],{129:466,327:[1,467]}),r(Zn,[2,55]),r(Zn,[2,331]),{48:[1,468]},r(ko,[2,429]),{13:l,16:h,44:136,45:G,55:133,67:132,68:134,77:131,82:R,87:p,172:135,224:ke,239:469,243:123,247:124,251:125,255:154,257:155,259:126,263:qe,264:130,265:j,266:137,267:139,268:le,269:Se,270:W,271:be,273:we,274:ge,275:146,276:Ee,277:ue,278:149,279:ye,280:fe,283:_e,285:Te,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,312:Re,346:Oe,347:Ae,348:_,349:S,350:w,351:C},r(ds,[2,431]),{13:l,16:h,44:136,45:G,55:133,67:132,68:134,77:131,82:R,87:p,172:135,224:ke,243:470,247:124,251:125,255:154,257:155,259:126,263:qe,264:130,265:j,266:137,267:139,268:le,269:Se,270:W,271:be,273:we,274:ge,275:146,276:Ee,277:ue,278:149,279:ye,280:fe,283:_e,285:Te,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,312:Re,346:Oe,347:Ae,348:_,349:S,350:w,351:C},r(ds,[2,156]),{45:c1,89:u1,179:471},r(ps,[2,441]),{13:l,16:h,44:136,45:G,55:133,67:132,68:134,77:131,82:R,87:p,172:135,224:ke,251:472,255:154,257:155,259:126,263:qe,264:130,265:j,266:137,267:139,268:le,269:Se,270:W,271:be,273:we,274:ge,275:146,276:Ee,277:ue,278:149,279:ye,280:fe,283:_e,285:Te,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,312:Re,346:Oe,347:Ae,348:_,349:S,350:w,351:C},r(_t,[2,444],{256:473}),r(_t,[2,446],{258:474}),r(ft,[2,442]),r(ft,[2,443]),r(_t,[2,449]),{13:l,16:h,44:136,45:G,55:133,67:132,68:134,77:131,82:R,87:p,172:135,224:ke,255:154,257:155,259:475,263:qe,264:130,265:j,266:137,267:139,268:le,269:Se,270:W,271:be,273:we,274:ge,275:146,276:Ee,277:ue,278:149,279:ye,280:fe,283:_e,285:Te,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,312:Re,346:Oe,347:Ae,348:_,349:S,350:w,351:C},r(ft,[2,450]),r(ft,[2,451]),r(ft,[2,379],{178:476}),r(ft,[2,378]),r([6,13,16,29,31,39,45,47,48,73,76,78,81,82,83,85,87,89,112,159,160,161,163,164,193,231,242,246,250,263,265,268,269,270,271,272,273,274,276,277,279,280,283,285,290,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,335,338,341,342,343,344,345,346,347,348,349,350,351],[2,175]),{48:[1,477]},{48:[1,478]},{272:[1,479]},{272:[1,480]},{272:[1,481]},{13:l,16:h,44:136,45:G,46:482,55:133,67:132,68:134,77:131,82:R,87:p,172:135,224:ke,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:qe,264:130,265:j,266:137,267:139,268:le,269:Se,270:W,271:be,273:we,274:ge,275:146,276:Ee,277:ue,278:149,279:ye,280:fe,283:_e,285:Te,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,312:Re,346:Oe,347:Ae,348:_,349:S,350:w,351:C},{48:[1,483]},{48:[1,484]},r(lt,[2,187]),r(Ht,[2,194]),{13:l,16:h,44:39,55:40,82:R,87:p,139:289,172:291,255:154,257:155,266:290,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,312:Re,320:485},{13:l,16:h,39:[1,487],44:136,45:G,46:488,55:133,67:132,68:134,77:131,82:R,87:p,172:135,224:ke,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:qe,264:130,265:j,266:137,267:139,268:le,269:Se,270:W,271:be,273:we,274:ge,275:146,276:Ee,277:ue,278:149,279:ye,280:fe,282:486,283:_e,285:Te,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,312:Re,346:Oe,347:Ae,348:_,349:S,350:w,351:C},r(d1,[2,460]),{13:l,16:h,44:136,45:G,46:489,55:133,67:132,68:134,77:131,82:R,87:p,172:135,224:ke,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:qe,264:130,265:j,266:137,267:139,268:le,269:Se,270:W,271:be,273:we,274:ge,275:146,276:Ee,277:ue,278:149,279:ye,280:fe,283:_e,285:Te,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,312:Re,346:Oe,347:Ae,348:_,349:S,350:w,351:C},r(ft,[2,464]),{13:l,16:h,44:136,45:G,46:490,55:133,67:132,68:134,77:131,82:R,87:p,172:135,224:ke,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:qe,264:130,265:j,266:137,267:139,268:le,269:Se,270:W,271:be,273:we,274:ge,275:146,276:Ee,277:ue,278:149,279:ye,280:fe,283:_e,285:Te,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,312:Re,346:Oe,347:Ae,348:_,349:S,350:w,351:C},r(ft,[2,466]),r(q,[2,40]),r(Mo,[2,298]),r(_a,[2,87]),r(_a,[2,88]),r(_a,[2,89]),r(_a,[2,90]),{13:l,16:h,55:492,82:R,172:493,255:154,257:155,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,311:494,312:Gt,315:491},r(q,[2,41]),r(Lo,[2,300]),r(va,[2,303],{92:495}),{13:l,16:h,31:[1,496],55:414,82:R,171:497,172:415,173:416,174:qo,255:154,257:155,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,312:Bo},{31:[1,498],89:[1,499]},{29:[1,500]},r(Vo,[2,372]),{13:l,16:h,48:[2,422],55:194,197:We,223:312,226:502,228:501,229:l1,307:43,308:g},r(ln,[2,131]),r(ln,[2,126]),r(ti,[2,22]),r(ti,[2,290]),{82:[1,503]},{82:[1,504]},{13:l,16:h,44:510,45:G,55:323,67:321,68:322,74:505,75:506,76:_1,77:320,78:v1,79:509,87:p,267:139,268:le,269:Se,270:W,271:be,273:we,274:ge,275:146,276:Ee,277:ue,278:149,279:ye,280:fe,283:_e,285:Te,307:43,308:g,346:Oe,347:Ae,348:_,349:S,350:w,351:C},r(m1,[2,294]),r(S1,[2,69]),r(S1,[2,70]),r(Qe,me,{59:197,69:198,20:511,70:N}),r(M,V,{58:205,62:206,23:512,63:de}),{29:[2,375],31:[2,71],84:522,85:a,112:[1,518],150:513,151:514,158:515,159:[1,516],160:[1,517],161:[1,519],163:[1,520],164:[1,521],175:523},r(Pi,[2,363],{157:524,335:[1,525]}),r(c,i,{215:10,202:526,205:527,208:528,214:529,44:530,87:p}),r(Go,[2,399],{215:10,205:527,208:528,214:529,44:530,204:531,202:532,13:i,16:i,45:i,197:i,224:i,229:i,308:i,87:p}),{13:l,16:h,44:215,45:Uo,55:220,82:R,87:p,89:Me,172:221,185:351,203:536,212:534,231:$o,233:533,234:535,236:216,237:222,255:154,257:155,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,309:sr,310:pr,311:217,312:Gt},r(c,i,{215:10,205:527,208:528,214:529,44:530,202:537,87:p}),r(M,[2,23],{307:43,267:139,275:146,278:149,55:323,67:447,68:448,44:450,66:538,13:l,16:h,45:g1,87:p,268:le,269:Se,270:W,271:be,273:we,274:ge,276:Ee,277:ue,279:ye,280:fe,283:_e,285:Te,308:g,346:Oe,347:Ae,348:_,349:S,350:w,351:C}),r(Di,[2,291]),r(Di,[2,24]),r(Di,[2,25]),{13:l,16:h,44:136,45:G,46:539,55:133,67:132,68:134,77:131,82:R,87:p,172:135,224:ke,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:qe,264:130,265:j,266:137,267:139,268:le,269:Se,270:W,271:be,273:we,274:ge,275:146,276:Ee,277:ue,278:149,279:ye,280:fe,283:_e,285:Te,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,312:Re,346:Oe,347:Ae,348:_,349:S,350:w,351:C},r(Di,[2,28]),r(M,V,{58:205,62:206,23:540,63:de}),r([31,112,232,318,335],[2,105],{192:541,193:[1,542]}),r(Ii,[2,107]),{13:l,16:h,44:215,45:je,55:220,82:R,87:p,89:Me,172:221,185:351,187:350,199:543,200:544,231:Tt,234:349,236:216,237:222,255:154,257:155,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,309:sr,310:pr,311:217,312:Gt},r(b1,[2,132]),r(Wo,[2,425]),r(b1,[2,133]),{13:l,16:h,44:354,55:355,82:R,87:p,172:357,237:356,255:154,257:155,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,309:sr,310:pr,311:358,312:Gt,313:545},r(At,[2,54]),r(At,[2,48]),r(Fi,[2,342]),{13:l,16:h,44:39,55:40,87:p,139:546,307:43,308:g},r(Fi,[2,68]),r(Y,[2,350],{31:w1,112:w1}),r(At,[2,53]),{13:l,16:h,55:547,307:43,308:g},r(ce,[2,333]),r(Fe,[2,16]),r(ko,[2,152]),r(ds,[2,154]),r(ds,[2,157]),r(ps,[2,159]),r(ps,[2,160],{262:389,261:548,39:Ml,338:Ll}),r(ps,[2,161],{262:389,261:549,39:Ml,338:Ll}),r(_t,[2,163]),{13:l,16:h,44:136,45:G,46:550,55:133,67:132,68:134,77:131,82:R,87:p,172:135,224:ke,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:qe,264:130,265:j,266:137,267:139,268:le,269:Se,270:W,271:be,273:we,274:ge,275:146,276:Ee,277:ue,278:149,279:ye,280:fe,283:_e,285:Te,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,312:Re,346:Oe,347:Ae,348:_,349:S,350:w,351:C},r(lt,[2,178]),r(lt,[2,179]),{13:l,16:h,44:136,45:G,46:551,55:133,67:132,68:134,77:131,82:R,87:p,172:135,224:ke,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:qe,264:130,265:j,266:137,267:139,268:le,269:Se,270:W,271:be,273:we,274:ge,275:146,276:Ee,277:ue,278:149,279:ye,280:fe,283:_e,285:Te,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,312:Re,346:Oe,347:Ae,348:_,349:S,350:w,351:C},{13:l,16:h,44:136,45:G,46:552,55:133,67:132,68:134,77:131,82:R,87:p,172:135,224:ke,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:qe,264:130,265:j,266:137,267:139,268:le,269:Se,270:W,271:be,273:we,274:ge,275:146,276:Ee,277:ue,278:149,279:ye,280:fe,283:_e,285:Te,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,312:Re,346:Oe,347:Ae,348:_,349:S,350:w,351:C},{13:l,16:h,44:136,45:G,46:553,55:133,67:132,68:134,77:131,82:R,87:p,172:135,224:ke,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:qe,264:130,265:j,266:137,267:139,268:le,269:Se,270:W,271:be,273:we,274:ge,275:146,276:Ee,277:ue,278:149,279:ye,280:fe,283:_e,285:Te,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,312:Re,346:Oe,347:Ae,348:_,349:S,350:w,351:C},{48:[1,554],272:[1,555]},r(lt,[2,184]),r(lt,[2,186]),{314:[1,556]},{48:[1,557]},{48:[2,461]},{48:[2,462]},{48:[1,558]},{48:[2,467],193:[1,561],287:559,288:560},{13:l,16:h,55:194,197:We,223:562,307:43,308:g},r(Bl,[2,224]),r(Bl,[2,225]),r(Bl,[2,226]),{31:[1,563],45:E1,94:564},r(q,[2,84]),r(Mo,[2,368]),r(q,[2,85]),r(Lo,[2,370]),r(va,[2,373],{170:566}),{48:[1,567]},{48:[2,423],337:[1,568]},r(ti,[2,35],{83:[1,569]}),r(ti,[2,36],{81:[1,570]}),r(kl,[2,30],{307:43,267:139,275:146,278:149,77:320,67:321,68:322,55:323,79:509,44:510,75:571,13:l,16:h,45:G,76:_1,78:v1,87:p,268:le,269:Se,270:W,271:be,273:we,274:ge,276:Ee,277:ue,279:ye,280:fe,283:_e,285:Te,308:g,346:Oe,347:Ae,348:_,349:S,350:w,351:C}),r(gs,[2,295]),{45:G,77:572},{45:G,77:573},r(gs,[2,33]),r(gs,[2,34]),{31:[2,275],50:574,84:575,85:a},{31:[2,277],51:576,84:577,85:a},r(Pi,[2,356]),r(T1,[2,357],{152:578,335:[1,579]}),r(In,[2,74]),{29:k,57:580},{29:k,57:581},{13:l,16:h,44:39,55:40,87:p,139:582,307:43,308:g},r(A1,[2,365],{162:583,328:[1,584]}),{13:l,16:h,45:G,55:323,67:321,68:322,77:320,79:585,267:139,268:le,269:Se,270:W,271:be,273:we,274:ge,275:146,276:Ee,277:ue,278:149,279:ye,280:fe,283:_e,285:Te,307:43,308:g,346:Oe,347:Ae,348:_,349:S,350:w,351:C},{45:[1,586]},r(In,[2,81]),{29:k,57:587},r(Pi,[2,73]),r(Y,[2,362],{29:Dn,31:Dn,85:Dn,112:Dn,159:Dn,160:Dn,161:Dn,163:Dn,164:Dn}),r(Go,[2,112]),r(ys,[2,401],{206:588}),r(Y,[2,405],{209:589,210:590}),r(Y,[2,403]),r(Y,[2,404]),r(Go,[2,113]),r(Go,[2,400]),{13:l,16:h,44:215,45:Uo,48:[1,591],55:220,82:R,87:p,89:Me,172:221,185:351,203:536,212:592,231:$o,234:535,236:216,237:222,255:154,257:155,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,309:sr,310:pr,311:217,312:Gt},r(Wo,[2,426]),r(ql,[2,138]),r(ql,[2,139]),{232:[1,593]},r(Di,[2,292]),{47:[1,595],48:[1,594]},r(ms,[2,9]),r(Ii,[2,392]),r(Ii,[2,393],{44:39,55:40,307:43,195:341,139:342,194:596,190:597,13:l,16:h,87:p,197:Ci,308:g}),r(Ii,[2,110],{272:[1,598]}),r(Ho,[2,397],{201:599,316:600,317:[1,601]}),{314:[1,602]},{29:[1,603]},r(Zn,[2,58]),r(_t,[2,445]),r(_t,[2,447]),{48:[1,604],272:[1,605]},{48:[1,606]},{272:[1,607]},{272:[1,608]},r(lt,[2,99]),r(ft,[2,382]),r([13,16,39,47,48,87,193,197,242,246,250,263,265,272,290,297,298,299,300,301,302,308,314,338,341,342,343,344,345,346],[2,232]),r(lt,[2,188]),r(lt,[2,189]),{48:[1,609]},{48:[2,468]},{289:[1,610]},{13:l,16:h,55:492,82:R,172:493,255:154,257:155,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,311:494,312:Gt,315:611},r(q,[2,42]),r(va,[2,304]),{13:l,16:h,55:414,82:R,95:612,171:613,172:415,173:416,174:qo,255:154,257:155,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,312:Bo},{31:[1,614],45:E1,94:615},r(ln,[2,129]),r(p1,[2,421]),{82:[1,616]},{82:[1,617]},r(gs,[2,296]),r(gs,[2,31]),r(gs,[2,32]),{31:[2,17]},{31:[2,276]},{31:[2,18]},{31:[2,278]},r(Y,f1,{155:330,153:618,154:619,29:Rn,31:Rn,85:Rn,112:Rn,159:Rn,160:Rn,161:Rn,163:Rn,164:Rn}),r(T1,[2,358]),r(In,[2,75]),r(In,[2,76]),{29:k,57:620},{13:l,16:h,44:39,55:40,87:p,139:621,307:43,308:g},r(A1,[2,366]),r(In,[2,79]),{13:l,16:h,44:136,45:G,46:622,55:133,67:132,68:134,77:131,82:R,87:p,172:135,224:ke,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:qe,264:130,265:j,266:137,267:139,268:le,269:Se,270:W,271:be,273:we,274:ge,275:146,276:Ee,277:ue,278:149,279:ye,280:fe,283:_e,285:Te,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,312:Re,346:Oe,347:Ae,348:_,349:S,350:w,351:C},r(In,[2,91],{336:[1,623]}),r([29,31,85,112,159,160,161,163,164,232,318,335],[2,114],{207:624,193:[1,625]}),r(ys,[2,117]),{13:l,16:h,44:215,45:Uo,55:220,82:R,87:p,89:Me,172:221,185:351,203:536,211:626,212:627,231:$o,234:535,236:216,237:222,255:154,257:155,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,309:sr,310:pr,311:217,312:Gt},r(Pn,[2,134]),r(Wo,[2,427]),r(Pn,[2,135]),r(Di,[2,26]),{44:628,87:p},r(Ii,[2,106]),r(Ii,[2,394]),r(Y,[2,396]),r(Ho,[2,111]),r(Ho,[2,398]),{13:l,16:h,44:39,55:40,87:p,139:342,186:629,190:340,195:341,197:Ci,307:43,308:g},r(jl,[2,217]),r(Y,No,{144:248,140:630,143:631,31:[2,343]}),r(lt,[2,97]),r(ft,[2,380]),r(lt,[2,180]),{13:l,16:h,44:136,45:G,46:632,55:133,67:132,68:134,77:131,82:R,87:p,172:135,224:ke,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:qe,264:130,265:j,266:137,267:139,268:le,269:Se,270:W,271:be,273:we,274:ge,275:146,276:Ee,277:ue,278:149,279:ye,280:fe,283:_e,285:Te,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,312:Re,346:Oe,347:Ae,348:_,349:S,350:w,351:C},{13:l,16:h,44:136,45:G,46:633,55:133,67:132,68:134,77:131,82:R,87:p,172:135,224:ke,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:qe,264:130,265:j,266:137,267:139,268:le,269:Se,270:W,271:be,273:we,274:ge,275:146,276:Ee,277:ue,278:149,279:ye,280:fe,283:_e,285:Te,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,312:Re,346:Oe,347:Ae,348:_,349:S,350:w,351:C},r(lt,[2,190]),{290:[1,634]},{314:[1,635]},{13:l,16:h,48:[1,636],55:414,82:R,171:637,172:415,173:416,174:qo,255:154,257:155,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,312:Bo},r(x1,[2,305]),r(q,[2,86]),r(va,[2,374]),r(ti,[2,37]),r(ti,[2,38]),r(Pi,[2,72]),r(Pi,[2,360]),r(In,[2,77]),{29:k,57:638},{47:[1,639]},{29:[2,376]},r(ys,[2,402]),r(ys,[2,115],{215:10,208:528,214:529,44:530,205:640,13:i,16:i,45:i,197:i,224:i,229:i,308:i,87:p}),r(ys,[2,118],{272:[1,641]}),r(zo,[2,407],{213:642,319:643,317:[1,644]}),{48:[1,645]},{318:[1,646]},{31:[1,647]},{31:[2,344]},{48:[1,648]},{48:[1,649]},{291:650,303:ae,304:U,305:H,306:oe},r(_a,[2,218]),r(va,[2,44]),r(x1,[2,306]),r(In,[2,78]),{44:651,87:p},r(ys,[2,116]),r(Y,[2,406]),r(zo,[2,119]),r(zo,[2,408]),r(c,i,{215:10,205:527,208:528,214:529,44:530,202:652,87:p}),r(Di,[2,27]),r(Ho,[2,230]),r(O1,[2,345],{141:653,335:[1,654]}),r(lt,[2,181]),r(lt,[2,182]),{48:[2,191]},{48:[1,655]},{318:[1,656]},r(Y,No,{144:248,142:657,143:658,31:C1,112:C1}),r(O1,[2,346]),r(In,[2,80]),r(zo,[2,231]),r(Fi,[2,67]),r(Fi,[2,348])],defaultActions:{5:[2,240],6:[2,241],7:[2,242],9:[2,239],24:[2,1],25:[2,2],26:[2,244],87:[2,282],94:[2,384],100:[2,45],109:[2,325],166:[2,458],263:[2,439],336:[2,258],337:[2,101],487:[2,461],488:[2,462],560:[2,468],574:[2,17],575:[2,276],576:[2,18],577:[2,278],623:[2,376],631:[2,344],650:[2,191]},parseError:o(function(E,O){if(O.recoverable)this.trace(E);else{var I=new Error(E);throw I.hash=O,I}},"parseError"),parse:o(function(E){var O=this,I=[0],z=[],pe=[null],d=[],Kt=this.table,m="",dn=0,Ea=0,Jo=0,Xo=2,Ta=1,Zo=d.slice.call(arguments,1),it=Object.create(this.lexer),pn={yy:{}};for(var Aa in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Aa)&&(pn.yy[Aa]=this.yy[Aa]);it.setInput(E,pn.yy),pn.yy.lexer=it,pn.yy.parser=this,typeof it.yylloc>"u"&&(it.yylloc={});var ws=it.yylloc;d.push(ws);var Ge=it.options&&it.options.ranges;typeof pn.yy.parseError=="function"?this.parseError=pn.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function tt(mn){I.length=I.length-2*mn,pe.length=pe.length-mn,d.length=d.length-mn}o(tt,"popStack");for(var Le=o(function(){var mn;return mn=it.lex()||Ta,typeof mn!="number"&&(mn=O.symbols_[mn]||mn),mn},"lex"),Ue,ar,ji,Tr,s8,ef,Es={},ec,jn,q1,tc;;){if(ji=I[I.length-1],this.defaultActions[ji]?Tr=this.defaultActions[ji]:((Ue===null||typeof Ue>"u")&&(Ue=Le()),Tr=Kt[ji]&&Kt[ji][Ue]),typeof Tr>"u"||!Tr.length||!Tr[0]){var tf="";tc=[];for(ec in Kt[ji])this.terminals_[ec]&&ec>Xo&&tc.push("'"+this.terminals_[ec]+"'");it.showPosition?tf="Parse error on line "+(dn+1)+`:
100
+ `),t}};su.RDFSerializer=Vd});var lg=y(ci=>{"use strict";Object.defineProperty(ci,"__esModule",{value:!0});ci.TransactionError=ci.TripleNotFoundError=ci.TripleAlreadyExistsError=void 0;var qd=class extends Error{static{o(this,"TripleAlreadyExistsError")}constructor(e){super(`Triple already exists: ${e.toString()}`),this.name="TripleAlreadyExistsError"}};ci.TripleAlreadyExistsError=qd;var Bd=class extends Error{static{o(this,"TripleNotFoundError")}constructor(e){super(`Triple not found: ${e.toString()}`),this.name="TripleNotFoundError"}};ci.TripleNotFoundError=Bd;var Ud=class extends Error{static{o(this,"TransactionError")}constructor(e){super(e),this.name="TransactionError"}};ci.TransactionError=Ud});var Wd=y(au=>{"use strict";Object.defineProperty(au,"__esModule",{value:!0});au.LRUCache=void 0;var $d=class{static{o(this,"LRUCache")}constructor(e){this.maxSize=e,this.cache=new Map}get(e){let t=this.cache.get(e);return t!==void 0&&(this.cache.delete(e),this.cache.set(e,t)),t}set(e,t){if(this.cache.has(e))this.cache.delete(e);else if(this.cache.size>=this.maxSize){let n=this.cache.keys().next().value;n!==void 0&&this.cache.delete(n)}this.cache.set(e,t)}clear(){this.cache.clear()}size(){return this.cache.size}};au.LRUCache=$d});var fg=y(ou=>{"use strict";Object.defineProperty(ou,"__esModule",{value:!0});ou.InMemoryTripleStore=void 0;var ui=lg(),Ex=pt(),Tx=xr(),Ax=kt(),xx=yn(),Ox=Wd(),Cx=xx.Namespace.XSD.term("string").value,Gd=class{static{o(this,"InMemoryTripleStore")}constructor(){this.triples=new Map,this.spo=new Map,this.sop=new Map,this.pso=new Map,this.pos=new Map,this.osp=new Map,this.ops=new Map,this.queryCache=new Ox.LRUCache(1e3)}async add(e){let t=this.getTripleKey(e);if(this.triples.has(t))return;this.triples.set(t,e);let n=this.getNodeKey(e.subject),i=this.getNodeKey(e.predicate),s=this.getNodeKey(e.object);this.addToIndex(this.spo,n,i,s),this.addToIndex(this.sop,n,s,i),this.addToIndex(this.pso,i,n,s),this.addToIndex(this.pos,i,s,n),this.addToIndex(this.osp,s,n,i),this.addToIndex(this.ops,s,i,n),this.queryCache.clear()}async remove(e){let t=this.getTripleKey(e);if(!this.triples.has(t))return!1;this.triples.delete(t);let n=this.getNodeKey(e.subject),i=this.getNodeKey(e.predicate),s=this.getNodeKey(e.object);return this.removeFromIndex(this.spo,n,i,s),this.removeFromIndex(this.sop,n,s,i),this.removeFromIndex(this.pso,i,n,s),this.removeFromIndex(this.pos,i,s,n),this.removeFromIndex(this.osp,s,n,i),this.removeFromIndex(this.ops,s,i,n),this.queryCache.clear(),!0}async has(e){let t=this.getTripleKey(e);return this.triples.has(t)}async match(e,t,n){let i=this.getMatchCacheKey(e,t,n),s=this.queryCache.get(i);if(s!==void 0)return s;let a;return!e&&!t&&!n?a=Array.from(this.triples.values()):e&&t&&n?a=this.matchSPO(e,t,n):e&&t?a=this.matchSP(e,t):e&&n?a=this.matchSO(e,n):t&&n?a=this.matchPO(t,n):e?a=this.matchS(e):t?a=this.matchP(t):n?a=this.matchO(n):a=[],this.queryCache.set(i,a),a}async addAll(e){for(let t of e)await this.add(t)}async removeAll(e){let t=0;for(let n of e)await this.remove(n)&&t++;return t}async clear(){this.triples.clear(),this.spo.clear(),this.sop.clear(),this.pso.clear(),this.pos.clear(),this.osp.clear(),this.ops.clear(),this.queryCache.clear()}async count(){return this.triples.size}async subjects(){let e=new Set;for(let t of this.triples.values())e.add(t.subject);return Array.from(e)}async predicates(){let e=new Set;for(let t of this.triples.values())e.add(t.predicate);return Array.from(e)}async objects(){let e=new Set;for(let t of this.triples.values())e.add(t.object);return Array.from(e)}async beginTransaction(){return new Hd(this)}matchSPO(e,t,n){let i=this.getNodeKey(e),s=this.getNodeKey(t),a=this.getNodeKey(n),c=this.spo.get(i);if(!c)return[];let u=c.get(s);if(!u)return[];if(u.has(a)){let f=this.buildTripleKey(i,s,a),l=this.triples.get(f);return l?[l]:[]}return[]}matchSP(e,t){let n=this.getNodeKey(e),i=this.getNodeKey(t),s=this.spo.get(n);if(!s)return[];let a=s.get(i);return a?this.getTriplesByKeys(Array.from(a).map(c=>this.buildTripleKey(n,i,c))):[]}matchSO(e,t){let n=this.getNodeKey(e),i=this.getNodeKey(t),s=this.sop.get(n);if(!s)return[];let a=s.get(i);return a?this.getTriplesByKeys(Array.from(a).map(c=>this.buildTripleKey(n,c,i))):[]}matchPO(e,t){let n=this.getNodeKey(e),i=this.getNodeKey(t),s=this.pos.get(n);if(!s)return[];let a=s.get(i);return a?this.getTriplesByKeys(Array.from(a).map(c=>this.buildTripleKey(c,n,i))):[]}matchS(e){let t=this.getNodeKey(e),n=this.spo.get(t);if(!n)return[];let i=[];for(let[s,a]of n.entries())for(let c of a)i.push(this.buildTripleKey(t,s,c));return this.getTriplesByKeys(i)}matchP(e){let t=this.getNodeKey(e),n=this.pso.get(t);if(!n)return[];let i=[];for(let[s,a]of n.entries())for(let c of a)i.push(this.buildTripleKey(s,t,c));return this.getTriplesByKeys(i)}matchO(e){let t=this.getNodeKey(e),n=this.osp.get(t);if(!n)return[];let i=[];for(let[s,a]of n.entries())for(let c of a)i.push(this.buildTripleKey(s,c,t));return this.getTriplesByKeys(i)}getTriplesByKeys(e){let t=[];for(let n of e){let i=this.triples.get(n);i&&t.push(i)}return t}addToIndex(e,t,n,i){e.has(t)||e.set(t,new Map);let s=e.get(t);s.has(n)||s.set(n,new Set),s.get(n).add(i)}removeFromIndex(e,t,n,i){let s=e.get(t);if(!s)return;let a=s.get(n);a&&(a.delete(i),a.size===0&&s.delete(n),s.size===0&&e.delete(t))}getTripleKey(e){let t=this.getNodeKey(e.subject),n=this.getNodeKey(e.predicate),i=this.getNodeKey(e.object);return this.buildTripleKey(t,n,i)}buildTripleKey(e,t,n){return`${e}|${t}|${n}`}getNodeKey(e){if(e instanceof Ex.IRI)return`i:${e.value}`;if(e instanceof Tx.BlankNode)return`b:${e.id}`;if(e instanceof Ax.Literal){let t=`l:${e.value}`;return e.datatype&&e.datatype.value!==Cx?t+=`^^${e.datatype.value}`:e.language&&(t+=`@${e.language}`),t}return""}getMatchCacheKey(e,t,n){let i=e?this.getNodeKey(e):"?",s=t?this.getNodeKey(t):"?",a=n?this.getNodeKey(n):"?";return`${i}|${s}|${a}`}};ou.InMemoryTripleStore=Gd;var Hd=class{static{o(this,"InMemoryTransaction")}constructor(e){this.store=e,this.operations=[],this.committed=!1,this.rolledBack=!1}async add(e){if(this.committed)throw new ui.TransactionError("Transaction already committed");if(this.rolledBack)throw new ui.TransactionError("Transaction already rolled back");this.operations.push({type:"add",triple:e})}async remove(e){if(this.committed)throw new ui.TransactionError("Transaction already committed");if(this.rolledBack)throw new ui.TransactionError("Transaction already rolled back");return this.operations.push({type:"remove",triple:e}),!0}async commit(){if(this.committed)throw new ui.TransactionError("Transaction already committed");if(this.rolledBack)throw new ui.TransactionError("Transaction already rolled back");for(let e of this.operations)e.type==="add"?await this.store.add(e.triple):await this.store.remove(e.triple);this.committed=!0,this.operations=[]}async rollback(){if(this.committed)throw new ui.TransactionError("Transaction already committed");if(this.rolledBack)throw new ui.TransactionError("Transaction already rolled back");this.operations=[],this.rolledBack=!0}}});var dg=y(cu=>{"use strict";Object.defineProperty(cu,"__esModule",{value:!0});cu.RDFVocabularyMapper=void 0;var yr=Mi(),hg=pt(),he=yn(),zd=class{static{o(this,"RDFVocabularyMapper")}constructor(){this.propertyMappings=new Map([["exo__Instance_class",he.Namespace.RDF.term("type")],["exo__Asset_isDefinedBy",he.Namespace.RDFS.term("isDefinedBy")],["exo__Class_superClass",he.Namespace.RDFS.term("subClassOf")],["exo__Property_range",he.Namespace.RDFS.term("range")],["exo__Property_domain",he.Namespace.RDFS.term("domain")],["exo__Property_superProperty",he.Namespace.RDFS.term("subPropertyOf")]])}generateClassHierarchyTriples(){let e=[];return e.push(new yr.Triple(he.Namespace.EXO.term("Asset"),he.Namespace.RDFS.term("subClassOf"),he.Namespace.RDFS.term("Resource"))),e.push(new yr.Triple(he.Namespace.EXO.term("Class"),he.Namespace.RDFS.term("subClassOf"),he.Namespace.RDFS.term("Class"))),e.push(new yr.Triple(he.Namespace.EXO.term("Property"),he.Namespace.RDFS.term("subClassOf"),he.Namespace.RDF.term("Property"))),e.push(new yr.Triple(he.Namespace.EMS.term("Task"),he.Namespace.RDFS.term("subClassOf"),he.Namespace.EXO.term("Asset"))),e.push(new yr.Triple(he.Namespace.EMS.term("Project"),he.Namespace.RDFS.term("subClassOf"),he.Namespace.EXO.term("Asset"))),e.push(new yr.Triple(he.Namespace.EMS.term("Area"),he.Namespace.RDFS.term("subClassOf"),he.Namespace.EXO.term("Asset"))),e}generatePropertyHierarchyTriples(){let e=[];return e.push(new yr.Triple(he.Namespace.EXO.term("Instance_class"),he.Namespace.RDFS.term("subPropertyOf"),he.Namespace.RDF.term("type"))),e.push(new yr.Triple(he.Namespace.EXO.term("Asset_isDefinedBy"),he.Namespace.RDFS.term("subPropertyOf"),he.Namespace.RDFS.term("isDefinedBy"))),e.push(new yr.Triple(he.Namespace.EXO.term("Class_superClass"),he.Namespace.RDFS.term("subPropertyOf"),he.Namespace.RDFS.term("subClassOf"))),e.push(new yr.Triple(he.Namespace.EXO.term("Property_range"),he.Namespace.RDFS.term("subPropertyOf"),he.Namespace.RDFS.term("range"))),e.push(new yr.Triple(he.Namespace.EXO.term("Property_domain"),he.Namespace.RDFS.term("subPropertyOf"),he.Namespace.RDFS.term("domain"))),e.push(new yr.Triple(he.Namespace.EXO.term("Property_superProperty"),he.Namespace.RDFS.term("subPropertyOf"),he.Namespace.RDFS.term("subPropertyOf"))),e}generateMappedTriple(e,t,n){let i=this.propertyMappings.get(t);if(!i)return null;let s;if(n instanceof hg.IRI)s=n;else{let a=n.match(/^(ems|exo)__(.+)$/);if(a){let[,c,u]=a;s=(c==="ems"?he.Namespace.EMS:he.Namespace.EXO).term(u)}else s=new hg.IRI(n)}return new yr.Triple(e,i,s)}hasMappingFor(e){return this.propertyMappings.has(e)}};cu.RDFVocabularyMapper=zd});var Yd=y(rn=>{"use strict";var Fx=rn&&rn.__decorate||function(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var c=r.length-1;c>=0;c--)(a=r[c])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s},Px=rn&&rn.__metadata||function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},Ix=rn&&rn.__param||function(r,e){return function(t,n){e(t,n,r)}};Object.defineProperty(rn,"__esModule",{value:!0});rn.NoteToRDFConverter=void 0;var pg=Ke(),mg=Mi(),Dx=pt(),Zi=kt(),li=yn(),Rx=rt(),Kd=class{static{o(this,"NoteToRDFConverter")}constructor(e){this.vault=e,this.OBSIDIAN_VAULT_SCHEME="obsidian://vault/"}async convertNote(e){let t=this.vault.getFrontmatter(e);if(!t)return[];let n=[],i=this.notePathToIRI(e.path);for(let[s,a]of Object.entries(t)){if(!this.isExocortexProperty(s))continue;let c=this.propertyKeyToIRI(s),u=Array.isArray(a)?a:[a];for(let f of u){let l=await this.valueToRDFObject(f,e);n.push(new mg.Triple(i,c,l))}if(s==="exo__Instance_class")for(let f of u){let l=this.expandClassValue(f);if(l){let h=li.Namespace.RDF.term("type");n.push(new mg.Triple(i,h,l))}}}return n}async convertVault(){let e=this.vault.getAllFiles(),t=[];for(let n of e)try{let i=await this.convertNote(n);t.push(...i)}catch(i){throw console.error(`\u274C Error converting note: ${n.path}`),console.error(` Error: ${i instanceof Error?i.message:String(i)}`),i}return t}notePathToIRI(e){let t=encodeURI(e);return new Dx.IRI(`${this.OBSIDIAN_VAULT_SCHEME}${t}`)}isExocortexProperty(e){return e.startsWith("exo__")||e.startsWith("ems__")}propertyKeyToIRI(e){if(e.startsWith("exo__")){let t=e.substring(5);return li.Namespace.EXO.term(t)}if(e.startsWith("ems__")){let t=e.substring(5);return li.Namespace.EMS.term(t)}throw new Error(`Invalid property key: ${e}`)}async valueToRDFObject(e,t){if(typeof e=="string"){let n=this.removeQuotes(e),i=this.extractWikilink(n);if(i){let s=this.vault.getFirstLinkpathDest(i,t.path);if(s)return this.notePathToIRI(s.path);if(this.isClassReference(i)){let a=this.expandClassValue(i);if(a)return a}return new Zi.Literal(n)}if(this.isClassReference(n)){let s=this.expandClassValue(n);if(s)return s}return this.isISO8601DateTime(n)?new Zi.Literal(n,li.Namespace.XSD.term("dateTime")):new Zi.Literal(n)}return typeof e=="boolean"?new Zi.Literal(e.toString()):typeof e=="number"?new Zi.Literal(e.toString(),li.Namespace.XSD.term("decimal")):e instanceof Date?new Zi.Literal(e.toISOString(),li.Namespace.XSD.term("dateTime")):new Zi.Literal(String(e))}isISO8601DateTime(e){return/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{1,3})?(Z|[+-]\d{2}:\d{2})?$/.test(e)}removeQuotes(e){let t=e.trim();return t.startsWith('"')&&t.endsWith('"')||t.startsWith("'")&&t.endsWith("'")?t.substring(1,t.length-1):e}extractWikilink(e){let t=e.match(/^\[\[([^\]]+)\]\]$/);return t?t[1]:null}isClassReference(e){return(e.startsWith("ems__")||e.startsWith("exo__"))&&!/\s/.test(e)}expandClassValue(e){let t=this.removeQuotes(e);if(t.startsWith("ems__")){let n=t.substring(5);return li.Namespace.EMS.term(n)}if(t.startsWith("exo__")){let n=t.substring(5);return li.Namespace.EXO.term(n)}return null}};rn.NoteToRDFConverter=Kd;rn.NoteToRDFConverter=Kd=Fx([(0,pg.injectable)(),Ix(0,(0,pg.inject)(Rx.DI_TOKENS.IVaultAdapter)),Px("design:paramtypes",[Object])],Kd)});var Qd=y((pk,gg)=>{var Ns=class{static{o(this,"Wildcard")}constructor(){return Nx||this}equals(e){return e&&this.termType===e.termType}};Object.defineProperty(Ns.prototype,"value",{enumerable:!0,value:"*"});Object.defineProperty(Ns.prototype,"termType",{enumerable:!0,value:"Wildcard"});var Nx=new Ns;gg.exports.Wildcard=Ns});var _g=y((gk,yg)=>{var kx=(function(){var r=o(function(T,E,O,I){for(O=O||{},I=T.length;I--;O[T[I]]=E);return O},"o"),e=[6,12,13,15,16,24,32,36,41,45,100,110,113,115,116,123,126,131,197,224,229,308,329,330,331,332,333],t=[2,247],n=[100,110,113,115,116,123,126,131,329,330,331,332,333],i=[2,409],s=[1,18],a=[1,27],c=[13,16,45,197,224,229,308],u=[28,29,53],f=[28,53],l=[1,42],h=[1,45],p=[1,41],g=[1,44],b=[123,126],v=[1,67],x=[39,45,87],F=[13,16,45,197,224,308],P=[1,87],L=[2,281],$=[1,86],Y=[13,16,45,82,87,89,231,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312],Ce=[6,28,29,53,63,70,73,81,83,85],Ye=[6,13,16,28,29,53,63,70,73,81,83,85,87,308],ut=[6,13,16,28,29,45,53,63,70,73,81,82,83,85,87,89,197,231,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,314],B=[6,13,16,28,29,31,39,45,47,48,53,63,70,73,81,82,83,85,87,89,109,112,121,123,126,128,159,160,161,163,164,174,193,197,224,229,231,232,242,246,250,263,265,272,290,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,314,317,318,335,337,338,340,341,342,343,344,345,346],ce=[13,16,308],xe=[112,132,327,334],Ze=[13,16,112,132,308],$e=[1,111],He=[1,117],De=[112,132,327,328,334],Ne=[13,16,112,132,308,328],Fe=[28,29,45,53,87],G=[1,138],R=[1,151],ke=[1,128],qe=[1,127],j=[1,129],le=[1,140],Se=[1,141],W=[1,142],be=[1,143],we=[1,144],ge=[1,145],Ee=[1,147],ue=[1,148],ye=[2,457],fe=[1,158],_e=[1,159],Te=[1,160],J=[1,152],te=[1,153],re=[1,156],X=[1,171],Z=[1,172],ee=[1,173],Q=[1,174],ne=[1,175],ie=[1,176],ae=[1,167],U=[1,168],H=[1,169],oe=[1,170],Re=[1,157],Oe=[1,166],Ae=[1,161],_=[1,162],S=[1,163],w=[1,164],C=[1,165],q=[6,13,16,29,31,45,82,85,87,89,112,159,160,161,163,164,231,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,335],We=[1,195],Qe=[6,31,73,81,83,85],me=[2,285],N=[1,199],k=[1,201],M=[6,31,70,73,81,83,85],V=[2,283],de=[1,207],je=[1,218],Me=[1,223],Tt=[1,219],sr=[1,225],pr=[1,226],Gt=[1,224],Zm=[6,63,70,73,81,83,85],e1=[1,236],t1=[2,334],r1=[1,243],n1=[1,241],At=[6,193],No=[2,349],i1=[2,339],Zn=[28,128],s1=[47,48,193,272],ko=[47,48,193,242,272],ds=[47,48,193,242,246,272],ps=[47,48,193,242,246,250,263,265,272,290,297,298,299,300,301,302,341,342,343,344,345,346],_t=[39,47,48,193,242,246,250,263,265,272,290,297,298,299,300,301,302,338,341,342,343,344,345,346],a1=[1,271],o1=[1,270],lt=[6,13,16,29,31,39,45,47,48,70,73,76,78,81,82,83,85,87,89,112,159,160,161,163,164,193,231,242,246,250,263,265,268,269,270,271,272,273,274,276,277,279,280,283,285,290,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,335,338,341,342,343,344,345,346,347,348,349,350,351],c1=[1,281],u1=[1,280],Ht=[13,16,29,31,39,45,47,48,82,85,87,89,112,159,160,161,163,164,174,193,197,224,229,231,232,242,246,250,263,265,272,290,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,314,317,318,335,338,341,342,343,344,345,346],ga=[45,89],jo=[13,16,29,31,39,45,47,48,82,85,87,89,112,159,160,161,163,164,174,193,197,224,229,231,232,242,246,250,263,265,272,290,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,314,317,318,335,338,341,342,343,344,345,346],Mo=[13,16,31,82,174,294,295,296,297,298,299,300,301,302,303,304,305,306,308,312],Lo=[31,89],Vo=[48,87],Oi=[6,13,16,45,48,82,87,89,231,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,337,338],ln=[6,13,16,39,45,48,82,87,89,231,263,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,337,338,340],l1=[1,313],ms=[6,85],kl=[6,31,81,83,85],f1=[2,361],Fn=[2,353],Ci=[1,343],ya=[31,112,335],Pn=[13,16,29,31,45,48,82,85,87,89,112,159,160,161,163,164,193,197,224,229,231,232,272,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,317,318,335],jl=[13,16,29,31,45,48,82,85,87,89,112,159,160,161,163,164,193,197,224,229,231,232,272,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,314,317,318,335],h1=[6,109,193],Fi=[31,112],ft=[13,16,45,82,87,224,263,265,268,269,270,271,273,274,276,277,279,280,283,285,294,295,296,297,298,299,300,301,302,303,304,305,306,308,312,346,347,348,349,350,351],Ml=[1,390],Ll=[1,391],ei=[13,16,87,197,308,314],d1=[13,16,39,45,82,87,224,263,265,268,269,270,271,273,274,276,277,279,280,283,285,294,295,296,297,298,299,300,301,302,303,304,305,306,308,312,346,347,348,349,350,351],qo=[1,417],Bo=[1,418],p1=[13,16,48,197,229,308],ti=[6,31,85],m1=[6,13,16,31,45,73,81,83,85,268,269,270,271,273,274,276,277,279,280,283,285,308,346,347,348,349,350,351],Vl=[6,13,16,29,31,45,73,76,78,81,82,83,85,87,89,112,159,160,161,163,164,231,268,269,270,271,273,274,276,277,279,280,283,285,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,335,346,347,348,349,350,351],Pi=[29,31,85,112,159,160,161,163,164],Uo=[1,443],$o=[1,444],g1=[1,449],Ii=[31,112,193,232,318,335],Wo=[13,16,45,48,82,87,89,231,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312],y1=[13,16,31,45,48,82,87,89,112,193,231,232,272,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,317,318,335],ql=[13,16,29,31,45,48,82,85,87,89,112,159,160,161,163,164,193,231,232,272,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,317,318,335],_a=[13,16,31,48,82,174,294,295,296,297,298,299,300,301,302,303,304,305,306,308,312],va=[31,45],_1=[1,507],v1=[1,508],S1=[6,13,16,29,31,39,45,47,48,63,70,73,76,78,81,82,83,85,87,89,112,159,160,161,163,164,193,231,242,246,250,263,265,268,269,270,271,272,273,274,276,277,279,280,283,285,290,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,335,336,338,341,342,343,344,345,346,347,348,349,350,351],Go=[29,31,85,112,159,160,161,163,164,335],Di=[6,13,16,31,45,70,73,81,83,85,87,268,269,270,271,273,274,276,277,279,280,283,285,308,346,347,348,349,350,351],b1=[13,16,31,45,48,82,87,89,112,193,197,231,232,272,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,317,318,335],w1=[2,352],Bl=[13,16,197,308,314],E1=[1,565],gs=[6,13,16,31,45,76,78,81,83,85,87,268,269,270,271,273,274,276,277,279,280,283,285,308,346,347,348,349,350,351],T1=[13,16,29,31,45,82,85,87,89,112,159,160,161,163,164,231,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312],In=[13,16,29,31,45,82,85,87,89,112,159,160,161,163,164,231,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,335],A1=[13,16,87,308],Dn=[2,364],ys=[29,31,85,112,159,160,161,163,164,193,232,318,335],Ho=[31,112,193,232,272,318,335],Rn=[2,359],x1=[13,16,48,82,174,294,295,296,297,298,299,300,301,302,303,304,305,306,308,312],zo=[29,31,85,112,159,160,161,163,164,193,232,272,318,335],O1=[13,16,31,45,82,87,89,112,231,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312],C1=[2,347],Ul={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,QueryOrUpdate:3,Prologue:4,QueryOrUpdate_group0:5,EOF:6,Query:7,Qry:8,Query_option0:9,Prologue_repetition0:10,BaseDecl:11,BASE:12,IRIREF:13,PrefixDecl:14,PREFIX:15,PNAME_NS:16,SelectClauseWildcard:17,Qry_repetition0:18,WhereClause:19,SolutionModifierNoGroup:20,SelectClauseVars:21,Qry_repetition1:22,SolutionModifier:23,CONSTRUCT:24,ConstructTemplate:25,Qry_repetition2:26,Qry_repetition3:27,WHERE:28,"{":29,Qry_option0:30,"}":31,DESCRIBE:32,Qry_group0:33,Qry_repetition4:34,Qry_option1:35,ASK:36,Qry_repetition5:37,SelectClauseBase:38,"*":39,SelectClauseVars_repetition_plus0:40,SELECT:41,SelectClauseBase_option0:42,SelectClauseItem:43,Var:44,"(":45,Expression:46,AS:47,")":48,SubSelect:49,SubSelect_option0:50,SubSelect_option1:51,DatasetClause:52,FROM:53,DatasetClause_option0:54,iri:55,WhereClause_option0:56,GroupGraphPattern:57,SolutionModifier_option0:58,SolutionModifierNoGroup_option0:59,SolutionModifierNoGroup_option1:60,SolutionModifierNoGroup_option2:61,GroupClause:62,GROUP:63,BY:64,GroupClause_repetition_plus0:65,GroupCondition:66,BuiltInCall:67,FunctionCall:68,HavingClause:69,HAVING:70,HavingClause_repetition_plus0:71,OrderClause:72,ORDER:73,OrderClause_repetition_plus0:74,OrderCondition:75,ASC:76,BrackettedExpression:77,DESC:78,Constraint:79,LimitOffsetClauses:80,LIMIT:81,INTEGER:82,OFFSET:83,ValuesClause:84,VALUES:85,InlineData:86,VAR:87,InlineData_repetition0:88,NIL:89,InlineData_repetition1:90,InlineData_repetition_plus2:91,InlineData_repetition3:92,DataBlock:93,DataBlockValueList:94,DataBlockValueList_repetition_plus0:95,Update:96,Update_repetition0:97,Update1:98,Update_option0:99,LOAD:100,Update1_option0:101,Update1_option1:102,Update1_group0:103,Update1_option2:104,GraphRefAll:105,Update1_group1:106,Update1_option3:107,GraphOrDefault:108,TO:109,CREATE:110,Update1_option4:111,GRAPH:112,INSERTDATA:113,QuadPattern:114,DELETEDATA:115,DELETEWHERE:116,Update1_option5:117,InsertDeleteClause:118,Update1_repetition0:119,IntoGraphClause:120,INTO:121,GraphRef:122,DELETE:123,InsertDeleteClause_option0:124,InsertClause:125,INSERT:126,UsingClause:127,USING:128,UsingClause_option0:129,WithClause:130,WITH:131,DEFAULT:132,GraphOrDefault_option0:133,GraphRefAll_group0:134,Quads:135,Quads_option0:136,Quads_repetition0:137,QuadsNotTriples:138,VarOrIri:139,QuadsNotTriples_option0:140,QuadsNotTriples_option1:141,QuadsNotTriples_option2:142,TriplesTemplate:143,TriplesTemplate_repetition0:144,TriplesSameSubject:145,TriplesTemplate_option0:146,GroupGraphPatternSub:147,GroupGraphPatternSub_option0:148,GroupGraphPatternSub_repetition0:149,GroupGraphPatternSubTail:150,GraphPatternNotTriples:151,GroupGraphPatternSubTail_option0:152,GroupGraphPatternSubTail_option1:153,TriplesBlock:154,TriplesBlock_repetition0:155,TriplesSameSubjectPath:156,TriplesBlock_option0:157,GroupOrUnionGraphPattern:158,OPTIONAL:159,MINUS:160,SERVICE:161,GraphPatternNotTriples_option0:162,FILTER:163,BIND:164,InlineDataOneVar:165,InlineDataFull:166,InlineDataOneVar_repetition0:167,InlineDataFull_repetition0:168,InlineDataFull_repetition_plus1:169,InlineDataFull_repetition2:170,DataBlockValue:171,Literal:172,QuotedTriple:173,UNDEF:174,GroupOrUnionGraphPattern_repetition0:175,ArgList:176,ArgList_option0:177,ArgList_repetition0:178,ExpressionList:179,ExpressionList_repetition0:180,ConstructTemplate_option0:181,ConstructTriples:182,ConstructTriples_repetition0:183,ConstructTriples_option0:184,VarOrTermOrQuotedTP:185,PropertyListNotEmpty:186,TriplesNode:187,PropertyList:188,PropertyList_option0:189,VerbObjectList:190,PropertyListNotEmpty_repetition0:191,SemiOptionalVerbObjectList:192,";":193,SemiOptionalVerbObjectList_option0:194,Verb:195,ObjectList:196,a:197,ObjectList_repetition0:198,Object:199,GraphNode:200,Object_option0:201,PropertyListPathNotEmpty:202,TriplesNodePath:203,TriplesSameSubjectPath_option0:204,O:205,PropertyListPathNotEmpty_repetition0:206,PropertyListPathNotEmptyTail:207,O_group0:208,ObjectListPath:209,ObjectListPath_repetition0:210,ObjectPath:211,GraphNodePath:212,ObjectPath_option0:213,Path:214,Path_repetition0:215,PathSequence:216,PathSequence_repetition0:217,PathEltOrInverse:218,PathElt:219,PathPrimary:220,PathElt_option0:221,PathEltOrInverse_option0:222,IriOrA:223,"!":224,PathNegatedPropertySet:225,PathOneInPropertySet:226,PathNegatedPropertySet_repetition0:227,PathNegatedPropertySet_option0:228,"^":229,TriplesNode_repetition_plus0:230,"[":231,"]":232,TriplesNodePath_repetition_plus0:233,VarOrTermOrQuotedTPExpr:234,VarOrTerm:235,GraphTerm:236,BlankNode:237,ConditionalOrExpression:238,ConditionalAndExpression:239,ConditionalOrExpression_repetition0:240,ConditionalOrExpressionTail:241,"||":242,RelationalExpression:243,ConditionalAndExpression_repetition0:244,ConditionalAndExpressionTail:245,"&&":246,NumericExpression:247,RelationalExpression_group0:248,RelationalExpression_option0:249,IN:250,MultiplicativeExpression:251,NumericExpression_repetition0:252,AdditiveExpressionTail:253,AdditiveExpressionTail_group0:254,NumericLiteralPositive:255,AdditiveExpressionTail_repetition0:256,NumericLiteralNegative:257,AdditiveExpressionTail_repetition1:258,UnaryExpression:259,MultiplicativeExpression_repetition0:260,MultiplicativeExpressionTail:261,MultiplicativeExpressionTail_group0:262,"+":263,PrimaryExpression:264,"-":265,ExprQuotedTP:266,Aggregate:267,FUNC_ARITY0:268,FUNC_ARITY1:269,FUNC_ARITY1_SPARQL_STAR:270,FUNC_ARITY2:271,",":272,FUNC_ARITY3:273,FUNC_ARITY3_SPARQL_STAR:274,BuiltInCall_group0:275,BOUND:276,BNODE:277,BuiltInCall_option0:278,EXISTS:279,COUNT:280,Aggregate_option0:281,Aggregate_group0:282,FUNC_AGGREGATE:283,Aggregate_option1:284,GROUP_CONCAT:285,Aggregate_option2:286,Aggregate_option3:287,GroupConcatSeparator:288,SEPARATOR:289,"=":290,String:291,LANGTAG:292,"^^":293,DECIMAL:294,DOUBLE:295,BOOLEAN:296,INTEGER_POSITIVE:297,DECIMAL_POSITIVE:298,DOUBLE_POSITIVE:299,INTEGER_NEGATIVE:300,DECIMAL_NEGATIVE:301,DOUBLE_NEGATIVE:302,STRING_LITERAL1:303,STRING_LITERAL2:304,STRING_LITERAL_LONG1:305,STRING_LITERAL_LONG2:306,PrefixedName:307,PNAME_LN:308,BLANK_NODE_LABEL:309,ANON:310,QuotedTP:311,"<<":312,qtSubjectOrObject:313,">>":314,DataValueTerm:315,AnnotationPattern:316,"{|":317,"|}":318,AnnotationPatternPath:319,ExprVarOrTerm:320,QueryOrUpdate_group0_option0:321,Prologue_repetition0_group0:322,Qry_group0_repetition_plus0:323,SelectClauseBase_option0_group0:324,DISTINCT:325,REDUCED:326,NAMED:327,SILENT:328,CLEAR:329,DROP:330,ADD:331,MOVE:332,COPY:333,ALL:334,".":335,UNION:336,"|":337,"/":338,PathElt_option0_group0:339,"?":340,"!=":341,"<":342,">":343,"<=":344,">=":345,NOT:346,CONCAT:347,COALESCE:348,SUBSTR:349,REGEX:350,REPLACE:351,$accept:0,$end:1},terminals_:{2:"error",6:"EOF",12:"BASE",13:"IRIREF",15:"PREFIX",16:"PNAME_NS",24:"CONSTRUCT",28:"WHERE",29:"{",31:"}",32:"DESCRIBE",36:"ASK",39:"*",41:"SELECT",45:"(",47:"AS",48:")",53:"FROM",63:"GROUP",64:"BY",70:"HAVING",73:"ORDER",76:"ASC",78:"DESC",81:"LIMIT",82:"INTEGER",83:"OFFSET",85:"VALUES",87:"VAR",89:"NIL",100:"LOAD",109:"TO",110:"CREATE",112:"GRAPH",113:"INSERTDATA",115:"DELETEDATA",116:"DELETEWHERE",121:"INTO",123:"DELETE",126:"INSERT",128:"USING",131:"WITH",132:"DEFAULT",159:"OPTIONAL",160:"MINUS",161:"SERVICE",163:"FILTER",164:"BIND",174:"UNDEF",193:";",197:"a",224:"!",229:"^",231:"[",232:"]",242:"||",246:"&&",250:"IN",263:"+",265:"-",268:"FUNC_ARITY0",269:"FUNC_ARITY1",270:"FUNC_ARITY1_SPARQL_STAR",271:"FUNC_ARITY2",272:",",273:"FUNC_ARITY3",274:"FUNC_ARITY3_SPARQL_STAR",276:"BOUND",277:"BNODE",279:"EXISTS",280:"COUNT",283:"FUNC_AGGREGATE",285:"GROUP_CONCAT",289:"SEPARATOR",290:"=",292:"LANGTAG",293:"^^",294:"DECIMAL",295:"DOUBLE",296:"BOOLEAN",297:"INTEGER_POSITIVE",298:"DECIMAL_POSITIVE",299:"DOUBLE_POSITIVE",300:"INTEGER_NEGATIVE",301:"DECIMAL_NEGATIVE",302:"DOUBLE_NEGATIVE",303:"STRING_LITERAL1",304:"STRING_LITERAL2",305:"STRING_LITERAL_LONG1",306:"STRING_LITERAL_LONG2",308:"PNAME_LN",309:"BLANK_NODE_LABEL",310:"ANON",312:"<<",314:">>",317:"{|",318:"|}",325:"DISTINCT",326:"REDUCED",327:"NAMED",328:"SILENT",329:"CLEAR",330:"DROP",331:"ADD",332:"MOVE",333:"COPY",334:"ALL",335:".",336:"UNION",337:"|",338:"/",340:"?",341:"!=",342:"<",343:">",344:"<=",345:">=",346:"NOT",347:"CONCAT",348:"COALESCE",349:"SUBSTR",350:"REGEX",351:"REPLACE"},productions_:[0,[3,3],[7,2],[4,1],[11,2],[14,3],[8,4],[8,4],[8,5],[8,7],[8,5],[8,4],[17,2],[21,2],[38,2],[43,1],[43,5],[49,4],[49,4],[52,3],[19,2],[23,2],[20,3],[62,3],[66,1],[66,1],[66,3],[66,5],[66,1],[69,2],[72,3],[75,2],[75,2],[75,1],[75,1],[80,2],[80,2],[80,4],[80,4],[84,2],[86,4],[86,4],[86,6],[86,2],[94,3],[96,3],[98,4],[98,3],[98,5],[98,4],[98,2],[98,2],[98,2],[98,5],[120,2],[118,3],[118,1],[125,2],[127,3],[130,2],[108,1],[108,2],[122,2],[105,1],[105,1],[114,3],[135,2],[138,7],[143,3],[57,3],[57,3],[147,2],[150,3],[154,3],[151,1],[151,2],[151,2],[151,3],[151,4],[151,2],[151,6],[151,1],[93,1],[93,1],[165,4],[166,4],[166,6],[171,1],[171,1],[171,1],[171,1],[158,2],[79,1],[79,1],[79,1],[68,2],[176,1],[176,5],[179,1],[179,4],[25,3],[182,3],[145,2],[145,2],[188,1],[186,2],[192,2],[190,2],[195,1],[195,1],[196,2],[199,2],[156,2],[156,2],[202,2],[207,1],[207,2],[205,2],[209,2],[211,2],[214,2],[216,2],[219,2],[218,2],[220,1],[220,2],[220,3],[225,1],[225,1],[225,4],[226,1],[226,2],[187,3],[187,3],[203,3],[203,3],[200,1],[200,1],[212,1],[212,1],[234,1],[235,1],[235,1],[139,1],[139,1],[44,1],[236,1],[236,1],[236,1],[236,1],[46,1],[238,2],[241,2],[239,2],[245,2],[243,1],[243,3],[243,4],[247,2],[253,2],[253,2],[253,2],[251,2],[261,2],[259,2],[259,2],[259,2],[259,1],[264,1],[264,1],[264,1],[264,1],[264,1],[264,1],[264,1],[77,3],[67,1],[67,2],[67,4],[67,4],[67,6],[67,8],[67,8],[67,2],[67,4],[67,2],[67,4],[67,3],[267,5],[267,5],[267,6],[288,4],[172,1],[172,2],[172,3],[172,1],[172,1],[172,1],[172,1],[172,1],[172,1],[255,1],[255,1],[255,1],[257,1],[257,1],[257,1],[291,1],[291,1],[291,1],[291,1],[55,1],[55,1],[307,1],[307,1],[237,1],[237,1],[311,5],[173,5],[313,1],[313,1],[313,1],[313,1],[313,1],[315,1],[315,1],[315,1],[185,1],[185,1],[185,1],[316,3],[319,3],[266,5],[320,1],[320,1],[320,1],[223,1],[223,1],[321,0],[321,1],[5,1],[5,1],[5,1],[9,0],[9,1],[322,1],[322,1],[10,0],[10,2],[18,0],[18,2],[22,0],[22,2],[26,0],[26,2],[27,0],[27,2],[30,0],[30,1],[323,1],[323,2],[33,1],[33,1],[34,0],[34,2],[35,0],[35,1],[37,0],[37,2],[40,1],[40,2],[324,1],[324,1],[42,0],[42,1],[50,0],[50,1],[51,0],[51,1],[54,0],[54,1],[56,0],[56,1],[58,0],[58,1],[59,0],[59,1],[60,0],[60,1],[61,0],[61,1],[65,1],[65,2],[71,1],[71,2],[74,1],[74,2],[88,0],[88,2],[90,0],[90,2],[91,1],[91,2],[92,0],[92,2],[95,1],[95,2],[97,0],[97,4],[99,0],[99,2],[101,0],[101,1],[102,0],[102,1],[103,1],[103,1],[104,0],[104,1],[106,1],[106,1],[106,1],[107,0],[107,1],[111,0],[111,1],[117,0],[117,1],[119,0],[119,2],[124,0],[124,1],[129,0],[129,1],[133,0],[133,1],[134,1],[134,1],[134,1],[136,0],[136,1],[137,0],[137,2],[140,0],[140,1],[141,0],[141,1],[142,0],[142,1],[144,0],[144,3],[146,0],[146,1],[148,0],[148,1],[149,0],[149,2],[152,0],[152,1],[153,0],[153,1],[155,0],[155,3],[157,0],[157,1],[162,0],[162,1],[167,0],[167,2],[168,0],[168,2],[169,1],[169,2],[170,0],[170,2],[175,0],[175,3],[177,0],[177,1],[178,0],[178,3],[180,0],[180,3],[181,0],[181,1],[183,0],[183,3],[184,0],[184,1],[189,0],[189,1],[191,0],[191,2],[194,0],[194,1],[198,0],[198,3],[201,0],[201,1],[204,0],[204,1],[206,0],[206,2],[208,1],[208,1],[210,0],[210,3],[213,0],[213,1],[215,0],[215,3],[217,0],[217,3],[339,1],[339,1],[339,1],[221,0],[221,1],[222,0],[222,1],[227,0],[227,3],[228,0],[228,1],[230,1],[230,2],[233,1],[233,2],[240,0],[240,2],[244,0],[244,2],[248,1],[248,1],[248,1],[248,1],[248,1],[248,1],[249,0],[249,1],[252,0],[252,2],[254,1],[254,1],[256,0],[256,2],[258,0],[258,2],[260,0],[260,2],[262,1],[262,1],[275,1],[275,1],[275,1],[275,1],[275,1],[278,0],[278,1],[281,0],[281,1],[282,1],[282,1],[284,0],[284,1],[286,0],[286,1],[287,0],[287,1]],performAction:o(function(E,O,I,z,pe,d,Kt){var m=d.length-1;switch(pe){case 1:if(d[m-1]=d[m-1]||{},ve.base&&(d[m-1].base=ve.base),ve.base="",d[m-1].prefixes=ve.prefixes,ve.prefixes=null,ve.pathOnly){if(d[m-1].type==="path"||"termType"in d[m-1])return d[m-1];throw new Error("Received full SPARQL query in path only mode")}else if(d[m-1].type==="path"||"termType"in d[m-1])throw new Error("Received only path in full SPARQL mode");if(d[m-1].type==="update"){let Ge={};for(let tt of d[m-1].updates)if(tt.updateType==="insert"){let Le={};for(let Ue of tt.insert)if(Ue.type==="bgp"||Ue.type==="graph")for(let ar of Ue.triples)ar.subject.termType==="BlankNode"&&(Le[ar.subject.value]=!0),ar.predicate.termType==="BlankNode"&&(Le[ar.predicate.value]=!0),ar.object.termType==="BlankNode"&&(Le[ar.object.value]=!0);for(let Ue of Object.keys(Le)){if(Ge[Ue])throw new Error("Detected reuse blank node across different INSERT DATA clauses");Ge[Ue]=!0}}}return d[m-1];case 2:this.$={...d[m-1],...d[m],type:"query"};break;case 4:ve.base=Sa(d[m]);break;case 5:ve.prefixes||(ve.prefixes={}),d[m-1]=d[m-1].substr(0,d[m-1].length-1),d[m]=Sa(d[m]),ve.prefixes[d[m-1]]=d[m];break;case 6:this.$={...d[m-3],...ki(d[m-2]),...d[m-1],...d[m]};break;case 7:if(!ve.skipValidation&&(Ql(d[m-3].variables.map(tt=>Yl(tt.expression))).some(tt=>tt.aggregation==="count"&&!(tt.expression instanceof Ko))||d[m].group)){for(let tt of d[m-3].variables)if(tt.termType==="Variable"){if(!d[m].group||!d[m].group.map(Le=>bs(Le)).includes(bs(tt)))throw Error("Projection of ungrouped variable (?"+bs(tt)+")")}else if(Yl(tt.expression).length===0){let Le=kS(tt.expression);for(let Ue of Le)if(!d[m].group||!d[m].group.map||!d[m].group.map(ar=>bs(ar)).includes(bs(Ue)))throw Error("Use of ungrouped variable in projection of operation (?"+bs(Ue)+")")}}let pn=d[m-1].where.filter(Ge=>Ge.type==="query");if(pn.length>0){let Ge=d[m-3].variables.filter(Le=>Le.variable&&Le.variable.value).map(Le=>Le.variable.value),tt=Ql(pn.map(Le=>Le.variables)).map(Le=>Le.value||Le.variable.value);for(let Le of Ge)if(tt.indexOf(Le)>=0)throw Error("Target id of 'AS' (?"+Le+") already used in subquery")}this.$=at(d[m-3],ki(d[m-2]),d[m-1],d[m]);break;case 8:this.$=at({queryType:"CONSTRUCT",template:d[m-3]},ki(d[m-2]),d[m-1],d[m]);break;case 9:this.$=at({queryType:"CONSTRUCT",template:d[m-2]=d[m-2]?d[m-2].triples:[]},ki(d[m-5]),{where:[{type:"bgp",triples:Ni([],d[m-2])}]},d[m]);break;case 10:this.$=at({queryType:"DESCRIBE",variables:d[m-3]==="*"?[new Ko]:d[m-3]},ki(d[m-2]),d[m-1],d[m]);break;case 11:this.$=at({queryType:"ASK"},ki(d[m-2]),d[m-1],d[m]);break;case 12:this.$=at(d[m-1],{variables:[new Ko]});break;case 13:let Aa=d[m].map(Ge=>Ge.value||Ge.variable.value),ws=jS(Aa);if(ws.length>0)throw Error("Two or more of the resulting columns have the same name (?"+ws[0]+")");this.$=at(d[m-1],{variables:d[m]});break;case 14:this.$=at({queryType:"SELECT"},d[m]&&(d[m-1]=zt(d[m]),d[m]={},d[m][d[m-1]]=!0,d[m]));break;case 16:case 27:this.$=_s(d[m-3],{variable:d[m-1]});break;case 17:case 18:this.$=at(d[m-3],d[m-2],d[m-1],d[m],{type:"query"});break;case 19:case 58:this.$={iri:d[m],named:!!d[m-1]};break;case 20:this.$={where:d[m].patterns};break;case 21:this.$=at(d[m-1],d[m]);break;case 22:this.$=at(d[m-2],d[m-1],d[m]);break;case 23:this.$={group:d[m]};break;case 24:case 25:case 28:case 31:case 33:case 34:this.$=_s(d[m]);break;case 26:this.$=_s(d[m-1]);break;case 29:this.$={having:d[m]};break;case 30:this.$={order:d[m]};break;case 32:this.$=_s(d[m],{descending:!0});break;case 35:this.$={limit:Ss(d[m])};break;case 36:this.$={offset:Ss(d[m])};break;case 37:this.$={limit:Ss(d[m-2]),offset:Ss(d[m])};break;case 38:this.$={limit:Ss(d[m]),offset:Ss(d[m-2])};break;case 39:case 43:this.$={type:"values",values:d[m]};break;case 40:case 84:this.$=d[m-1].map(Ge=>({[d[m-3]]:Ge}));break;case 41:case 85:this.$=d[m-1].map(()=>({}));break;case 42:case 86:var dn=d[m-4].length;d[m-4]=d[m-4].map($l),this.$=d[m-1].map(function(Ge){if(Ge.length!==dn)throw Error("Inconsistent VALUES length");for(var tt={},Le=0;Le<dn;Le++)tt["?"+d[m-4][Le].value]=Ge[Le];return tt});break;case 44:case 65:case 100:case 126:case 175:this.$=d[m-1];break;case 45:this.$={type:"update",updates:Nn(d[m-2],d[m-1])};break;case 46:this.$=at({type:"load",silent:!!d[m-2],source:d[m-1]},d[m]&&{destination:d[m]});break;case 47:this.$={type:zt(d[m-2]),silent:!!d[m-1],graph:d[m]};break;case 48:this.$={type:zt(d[m-4]),silent:!!d[m-3],source:d[m-2],destination:d[m]};break;case 49:this.$={type:"create",silent:!!d[m-2],graph:{type:"graph",name:d[m]}};break;case 50:this.$={updateType:"insert",insert:V1(d[m])};break;case 51:this.$={updateType:"delete",delete:Zl(V1(d[m]))};break;case 52:this.$={updateType:"deletewhere",delete:Zl(d[m])};break;case 53:this.$={updateType:"insertdelete",...d[m-4],...d[m-3],...ki(d[m-2],"using"),where:d[m].patterns};break;case 54:case 57:case 62:case 167:case 191:case 236:this.$=d[m];break;case 55:this.$={delete:Zl(d[m-1]),insert:d[m]||[]};break;case 56:this.$={delete:[],insert:d[m]};break;case 59:this.$={graph:d[m]};break;case 60:this.$={type:"graph",default:!0};break;case 61:case 63:this.$={type:"graph",name:d[m]};break;case 64:this.$={[zt(d[m])]:!0};break;case 66:this.$=d[m-1]?fn(d[m],[d[m-1]]):fn(d[m]);break;case 67:var Ea=at(d[m-3]||{triples:[]},{type:"graph",name:d[m-5]});this.$=d[m]?[Ea,d[m]]:[Ea];break;case 68:case 73:this.$={type:"bgp",triples:fn(d[m-2],[d[m-1]])};break;case 69:this.$={type:"group",patterns:[d[m-1]]};break;case 70:for(let Ge of d[m-1].filter(tt=>tt.type==="bind")){let tt=d[m-1].indexOf(Ge),Le=new Set;for(let Ue of d[m-1].slice(0,tt))(Ue.type==="group"||Ue.type==="bgp")&&M1(Ue).forEach(ar=>Le.add(ar));if(Le.has(Ge.variable.value))throw Error("Variable used to bind is already bound (?"+Ge.variable.value+")")}this.$={type:"group",patterns:d[m-1]};break;case 71:this.$=d[m-1]?fn([d[m-1]],d[m]):fn(d[m]);break;case 72:this.$=d[m]?[d[m-2],d[m]]:d[m-2];break;case 75:this.$=at(d[m],{type:"optional"});break;case 76:this.$=at(d[m],{type:"minus"});break;case 77:this.$=at(d[m],{type:"graph",name:d[m-1]});break;case 78:this.$=at(d[m],{type:"service",name:d[m-1],silent:!!d[m-2]});break;case 79:this.$={type:"filter",expression:d[m]};break;case 80:this.$={type:"bind",variable:d[m-1],expression:d[m-3]};break;case 89:this.$=wa(d[m]);break;case 90:this.$=void 0;break;case 91:this.$=d[m-1].length?{type:"union",patterns:fn(d[m-1].map(Gl),[Gl(d[m])])}:d[m];break;case 95:this.$={...d[m],function:d[m-1]};break;case 96:this.$={type:"functionCall",args:[]};break;case 97:this.$={type:"functionCall",args:Nn(d[m-2],d[m-1]),distinct:!!d[m-3]};break;case 98:case 115:case 128:case 247:case 249:case 251:case 253:case 255:case 263:case 267:case 297:case 299:case 303:case 307:case 328:case 341:case 349:case 355:case 361:case 367:case 369:case 373:case 375:case 379:case 381:case 385:case 391:case 395:case 401:case 405:case 409:case 411:case 420:case 428:case 430:case 440:case 444:case 446:case 448:this.$=[];break;case 99:this.$=Nn(d[m-2],d[m-1]);break;case 101:this.$=fn(d[m-2],[d[m-1]]);break;case 102:case 112:this.$=Xl(d[m].map(Ge=>at(kn(d[m-1]),Ge)));break;case 103:this.$=Xl(Ni(d[m].map(Ge=>at(kn(d[m-1].entity),Ge)),d[m-1].triples));break;case 105:this.$=fn([d[m-1]],d[m]);break;case 106:this.$=fn(d[m]);break;case 107:this.$=Kl(d[m-1],d[m]);break;case 109:case 237:this.$=ve.factory.namedNode(AS);break;case 110:case 118:this.$=Nn(d[m-1],d[m]);break;case 111:this.$=d[m]?{annotation:d[m],object:d[m-1]}:d[m-1];break;case 113:this.$=d[m]?Xl(Ni(d[m].map(Ge=>at(kn(d[m-1].entity),Ge)),d[m-1].triples)):d[m-1].triples;break;case 114:this.$=Kl(...d[m-1],d[m]);break;case 116:this.$=Kl(...d[m]);break;case 117:case 159:case 163:this.$=[d[m-1],d[m]];break;case 119:this.$=d[m]?{object:d[m-1],annotation:d[m]}:d[m-1];break;case 120:this.$=d[m-1].length?vs("|",Nn(d[m-1],d[m])):d[m];break;case 121:this.$=d[m-1].length?vs("/",Nn(d[m-1],d[m])):d[m];break;case 122:this.$=d[m]?vs(d[m],[d[m-1]]):d[m-1];break;case 123:this.$=d[m-1]?vs(d[m-1],[d[m]]):d[m];break;case 125:case 131:this.$=vs(d[m-1],[d[m]]);break;case 129:this.$=vs("|",Nn(d[m-2],d[m-1]));break;case 132:case 134:this.$=RS(d[m-1]);break;case 133:case 135:this.$=NS(d[m-1]);break;case 140:this.$={entity:d[m],triples:[]};break;case 145:this.$=$l(d[m]);break;case 149:this.$=ve.factory.namedNode(F1);break;case 151:case 153:case 158:case 162:this.$=Wl(d[m-1],d[m]);break;case 152:this.$=["||",d[m]];break;case 154:this.$=["&&",d[m]];break;case 156:this.$=xt(d[m-1],[d[m-2],d[m]]);break;case 157:this.$=xt(d[m-2]?"notin":"in",[d[m-3],d[m]]);break;case 160:this.$=["+",Wl(d[m-1],d[m])];break;case 161:var Jo=hn(d[m-1].value.replace("-",""),d[m-1].datatype);this.$=["-",Wl(Jo,d[m])];break;case 164:this.$=xt("UPLUS",[d[m]]);break;case 165:this.$=xt(d[m-1],[d[m]]);break;case 166:this.$=xt("UMINUS",[d[m]]);break;case 177:this.$=xt(zt(d[m-1]));break;case 178:this.$=xt(zt(d[m-3]),[d[m-1]]);break;case 179:this.$=wa(xt(zt(d[m-3]),[d[m-1]]));break;case 180:this.$=xt(zt(d[m-5]),[d[m-3],d[m-1]]);break;case 181:this.$=xt(zt(d[m-7]),[d[m-5],d[m-3],d[m-1]]);break;case 182:this.$=wa(xt(zt(d[m-7]),[d[m-5],d[m-3],d[m-1]]));break;case 183:this.$=xt(zt(d[m-1]),d[m]);break;case 184:this.$=xt("bound",[$l(d[m-1])]);break;case 185:this.$=xt(d[m-1],[]);break;case 186:this.$=xt(d[m-3],[d[m-1]]);break;case 187:this.$=xt(d[m-2]?"notexists":"exists",[Gl(d[m])]);break;case 188:case 189:this.$=_s(d[m-1],{type:"aggregate",aggregation:zt(d[m-4]),distinct:!!d[m-2]});break;case 190:this.$=_s(d[m-2],{type:"aggregate",aggregation:zt(d[m-5]),distinct:!!d[m-3],separator:typeof d[m-1]=="string"?d[m-1]:" "});break;case 192:this.$=hn(d[m]);break;case 193:this.$=FS(d[m-1],zt(d[m].substr(1)));break;case 194:this.$=hn(d[m-2],d[m]);break;case 195:case 204:this.$=hn(d[m],P1);break;case 196:case 205:this.$=hn(d[m],I1);break;case 197:case 206:this.$=hn(zt(d[m]),D1);break;case 200:this.$=hn(d[m].toLowerCase(),CS);break;case 201:this.$=hn(d[m].substr(1),P1);break;case 202:this.$=hn(d[m].substr(1),I1);break;case 203:this.$=hn(d[m].substr(1).toLowerCase(),D1);break;case 207:case 208:this.$=j1(d[m],1);break;case 209:case 210:this.$=j1(d[m],3);break;case 211:this.$=ve.factory.namedNode(Sa(d[m]));break;case 213:var Xo=d[m].indexOf(":"),Ta=d[m].substr(0,Xo),Zo=ve.prefixes[Ta];if(!Zo)throw new Error("Unknown prefix: "+Ta);var it=Sa(Zo+d[m].substr(Xo+1));this.$=ve.factory.namedNode(it);break;case 214:if(d[m]=d[m].substr(0,d[m].length-1),!(d[m]in ve.prefixes))throw new Error("Unknown prefix: "+d[m]);var it=Sa(ve.prefixes[d[m]]);this.$=ve.factory.namedNode(it);break;case 215:this.$=ba(d[m].replace(/^(_:)/,""));break;case 216:this.$=ba();break;case 217:case 218:case 232:this.$=wa(Hl(d[m-3],d[m-2],d[m-1]));break;case 230:case 231:this.$=wa(d[m-1]);break;case 248:case 250:case 252:case 254:case 256:case 260:case 264:case 268:case 270:case 292:case 294:case 296:case 298:case 300:case 302:case 304:case 306:case 329:case 342:case 356:case 368:case 370:case 372:case 374:case 392:case 402:case 425:case 427:case 429:case 431:case 441:case 445:case 447:case 449:d[m-1].push(d[m]);break;case 259:case 269:case 291:case 293:case 295:case 301:case 305:case 371:case 424:case 426:this.$=[d[m]];break;case 308:d[m-3].push(d[m-2]);break;case 350:case 362:case 376:case 380:case 382:case 386:case 396:case 406:case 410:case 412:case 421:d[m-2].push(d[m-1]);break}},"anonymous"),table:[r(e,t,{3:1,4:2,10:3}),{1:[3]},r(n,[2,307],{5:4,7:5,321:6,214:7,8:8,96:9,215:10,17:11,21:12,97:16,38:17,6:[2,238],13:i,16:i,45:i,197:i,224:i,229:i,308:i,24:[1,13],32:[1,14],36:[1,15],41:s}),r([6,13,16,24,32,36,41,45,100,110,113,115,116,123,126,131,197,224,229,308,329,330,331,332,333],[2,3],{322:19,11:20,14:21,12:[1,22],15:[1,23]}),{6:[1,24]},{6:[2,240]},{6:[2,241]},{6:[2,242]},{6:[2,243],9:25,84:26,85:a},{6:[2,239]},r(c,[2,411],{216:28,217:29}),r(u,[2,249],{18:30}),r(u,[2,251],{22:31}),r(f,[2,255],{25:32,27:33,29:[1,34]}),{13:l,16:h,33:35,39:[1,37],44:39,55:40,87:p,139:38,307:43,308:g,323:36},r(u,[2,267],{37:46}),r(b,[2,326],{98:47,103:49,106:50,117:55,130:61,100:[1,48],110:[1,51],113:[1,52],115:[1,53],116:[1,54],131:[1,62],329:[1,56],330:[1,57],331:[1,58],332:[1,59],333:[1,60]}),{39:[1,63],40:64,43:65,44:66,45:v,87:p},r(x,[2,273],{42:68,324:69,325:[1,70],326:[1,71]}),r(e,[2,248]),r(e,[2,245]),r(e,[2,246]),{13:[1,72]},{16:[1,73]},{1:[2,1]},{6:[2,2]},{6:[2,244]},{45:[1,77],85:[1,78],86:74,87:[1,75],89:[1,76]},r([6,13,16,45,48,82,87,89,231,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312],[2,120],{337:[1,79]}),r(F,[2,418],{218:80,222:81,229:[1,82]}),{19:83,28:P,29:L,52:84,53:$,56:85},{19:88,28:P,29:L,52:89,53:$,56:85},r(u,[2,253],{26:90}),{28:[1,91],52:92,53:$},r(Y,[2,385],{181:93,182:94,183:95,31:[2,383]}),r(Ce,[2,263],{34:96}),r(Ce,[2,261],{44:39,55:40,307:43,139:97,13:l,16:h,87:p,308:g}),r(Ce,[2,262]),r(Ye,[2,259]),r(ut,[2,143]),r(ut,[2,144]),r([6,13,16,28,29,31,39,45,47,48,53,63,70,73,76,78,81,82,83,85,87,89,112,159,160,161,163,164,193,197,224,229,231,232,242,246,250,263,265,268,269,270,271,272,273,274,276,277,279,280,283,285,290,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,314,317,318,335,338,341,342,343,344,345,346,347,348,349,350,351],[2,145]),r(B,[2,211]),r(B,[2,212]),r(B,[2,213]),r(B,[2,214]),{19:98,28:P,29:L,52:99,53:$,56:85},{6:[2,309],99:100,193:[1,101]},r(ce,[2,311],{101:102,328:[1,103]}),r(xe,[2,317],{104:104,328:[1,105]}),r(Ze,[2,322],{107:106,328:[1,107]}),{111:108,112:[2,324],328:[1,109]},{29:$e,114:110},{29:$e,114:112},{29:$e,114:113},{118:114,123:[1,115],125:116,126:He},r(De,[2,315]),r(De,[2,316]),r(Ne,[2,319]),r(Ne,[2,320]),r(Ne,[2,321]),r(b,[2,327]),{13:l,16:h,55:118,307:43,308:g},r(u,[2,12]),r(u,[2,13],{44:66,43:119,45:v,87:p}),r(Fe,[2,269]),r(Fe,[2,15]),{13:l,16:h,44:136,45:G,46:120,55:133,67:132,68:134,77:131,82:R,87:p,172:135,224:ke,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:qe,264:130,265:j,266:137,267:139,268:le,269:Se,270:W,271:be,273:we,274:ge,275:146,276:Ee,277:ue,278:149,279:ye,280:fe,283:_e,285:Te,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,312:Re,346:Oe,347:Ae,348:_,349:S,350:w,351:C},r(x,[2,14]),r(x,[2,274]),r(x,[2,271]),r(x,[2,272]),r(e,[2,4]),{13:[1,177]},r(q,[2,39]),{29:[1,178]},{29:[1,179]},{87:[1,181],91:180},{45:[1,187],87:[1,185],89:[1,186],93:182,165:183,166:184},r(c,[2,410]),r([6,13,16,45,48,82,87,89,231,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,337],[2,121],{338:[1,188]}),{13:l,16:h,45:[1,193],55:194,197:We,219:189,220:190,223:191,224:[1,192],307:43,308:g},r(F,[2,419]),r(Qe,me,{20:196,59:197,69:198,70:N}),r(u,[2,250]),{29:k,57:200},r(ce,[2,279],{54:202,327:[1,203]}),{29:[2,282]},r(M,V,{23:204,58:205,62:206,63:de}),r(u,[2,252]),{19:208,28:P,29:L,52:209,53:$,56:85},{29:[1,210]},r(f,[2,256]),{31:[1,211]},{31:[2,384]},{13:l,16:h,44:215,45:je,55:220,82:R,87:p,89:Me,145:212,172:221,185:213,187:214,231:Tt,236:216,237:222,255:154,257:155,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,309:sr,310:pr,311:217,312:Gt},r(Zm,[2,265],{56:85,35:227,52:228,19:229,28:P,29:L,53:$}),r(Ye,[2,260]),r(M,V,{58:205,62:206,23:230,63:de}),r(u,[2,268]),{6:[2,45]},r(e,t,{10:3,4:231}),{13:l,16:h,55:232,307:43,308:g},r(ce,[2,312]),{105:233,112:e1,122:234,132:[1,237],134:235,327:[1,238],334:[1,239]},r(xe,[2,318]),r(ce,t1,{108:240,133:242,112:r1,132:n1}),r(Ze,[2,323]),{112:[1,244]},{112:[2,325]},r(At,[2,50]),r(Y,No,{135:245,136:246,143:247,144:248,31:i1,112:i1}),r(At,[2,51]),r(At,[2,52]),r(Zn,[2,328],{119:249}),{29:$e,114:250},r(Zn,[2,56]),{29:$e,114:251},r(b,[2,59]),r(Fe,[2,270]),{47:[1,252]},r(s1,[2,150]),r(ko,[2,428],{240:253}),r(ds,[2,430],{244:254}),r(ds,[2,155],{248:255,249:256,250:[2,438],290:[1,257],341:[1,258],342:[1,259],343:[1,260],344:[1,261],345:[1,262],346:[1,263]}),r(ps,[2,440],{252:264}),r(_t,[2,448],{260:265}),{13:l,16:h,44:136,45:G,55:133,67:132,68:134,77:131,82:R,87:p,172:135,255:154,257:155,264:266,266:137,267:139,268:le,269:Se,270:W,271:be,273:we,274:ge,275:146,276:Ee,277:ue,278:149,279:ye,280:fe,283:_e,285:Te,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,312:Re,346:Oe,347:Ae,348:_,349:S,350:w,351:C},{13:l,16:h,44:136,45:G,55:133,67:132,68:134,77:131,82:R,87:p,172:135,255:154,257:155,264:267,266:137,267:139,268:le,269:Se,270:W,271:be,273:we,274:ge,275:146,276:Ee,277:ue,278:149,279:ye,280:fe,283:_e,285:Te,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,312:Re,346:Oe,347:Ae,348:_,349:S,350:w,351:C},{13:l,16:h,44:136,45:G,55:133,67:132,68:134,77:131,82:R,87:p,172:135,255:154,257:155,264:268,266:137,267:139,268:le,269:Se,270:W,271:be,273:we,274:ge,275:146,276:Ee,277:ue,278:149,279:ye,280:fe,283:_e,285:Te,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,312:Re,346:Oe,347:Ae,348:_,349:S,350:w,351:C},r(_t,[2,167]),r(_t,[2,168]),r(_t,[2,169]),r(_t,[2,170],{176:269,45:a1,89:o1}),r(_t,[2,171]),r(_t,[2,172]),r(_t,[2,173]),r(_t,[2,174]),{13:l,16:h,44:136,45:G,46:272,55:133,67:132,68:134,77:131,82:R,87:p,172:135,224:ke,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:qe,264:130,265:j,266:137,267:139,268:le,269:Se,270:W,271:be,273:we,274:ge,275:146,276:Ee,277:ue,278:149,279:ye,280:fe,283:_e,285:Te,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,312:Re,346:Oe,347:Ae,348:_,349:S,350:w,351:C},r(lt,[2,176]),{89:[1,273]},{45:[1,274]},{45:[1,275]},{45:[1,276]},{45:[1,277]},{45:[1,278]},{45:c1,89:u1,179:279},{45:[1,282]},{45:[1,284],89:[1,283]},{279:[1,285]},r(Ht,[2,192],{292:[1,286],293:[1,287]}),r(Ht,[2,195]),r(Ht,[2,196]),r(Ht,[2,197]),r(Ht,[2,198]),r(Ht,[2,199]),r(Ht,[2,200]),{13:l,16:h,44:39,55:40,82:R,87:p,139:289,172:291,255:154,257:155,266:290,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,312:Re,320:288},{45:[1,292]},{45:[1,293]},{45:[1,294]},r(ga,[2,452]),r(ga,[2,453]),r(ga,[2,454]),r(ga,[2,455]),r(ga,[2,456]),{279:[2,458]},r(jo,[2,207]),r(jo,[2,208]),r(jo,[2,209]),r(jo,[2,210]),r(Ht,[2,201]),r(Ht,[2,202]),r(Ht,[2,203]),r(Ht,[2,204]),r(Ht,[2,205]),r(Ht,[2,206]),r(e,[2,5]),r(Mo,[2,297],{88:295}),r(Lo,[2,299],{90:296}),{48:[1,297],87:[1,298]},r(Vo,[2,301]),r(q,[2,43]),r(q,[2,82]),r(q,[2,83]),{29:[1,299]},{29:[1,300]},{87:[1,302],169:301},r(c,[2,412]),r(Oi,[2,123]),r(Oi,[2,416],{221:303,339:304,39:[1,306],263:[1,307],340:[1,305]}),r(ln,[2,124]),{13:l,16:h,45:[1,311],55:194,89:[1,310],197:We,223:312,225:308,226:309,229:l1,307:43,308:g},r(c,i,{215:10,214:314}),r(ln,[2,236]),r(ln,[2,237]),r(ms,[2,6]),r(kl,[2,287],{60:315,72:316,73:[1,317]}),r(Qe,[2,286]),{13:l,16:h,45:G,55:323,67:321,68:322,71:318,77:320,79:319,267:139,268:le,269:Se,270:W,271:be,273:we,274:ge,275:146,276:Ee,277:ue,278:149,279:ye,280:fe,283:_e,285:Te,307:43,308:g,346:Oe,347:Ae,348:_,349:S,350:w,351:C},r([6,31,63,70,73,81,83,85],[2,20]),r(Y,f1,{38:17,49:324,147:325,17:326,21:327,148:328,154:329,155:330,29:Fn,31:Fn,85:Fn,112:Fn,159:Fn,160:Fn,161:Fn,163:Fn,164:Fn,41:s}),{13:l,16:h,55:331,307:43,308:g},r(ce,[2,280]),r(ms,[2,7]),r(Qe,me,{59:197,69:198,20:332,70:N}),r(M,[2,284]),{64:[1,333]},r(M,V,{58:205,62:206,23:334,63:de}),r(u,[2,254]),r(Y,No,{144:248,30:335,143:336,31:[2,257]}),r(u,[2,100]),{31:[2,387],184:337,335:[1,338]},{13:l,16:h,44:39,55:40,87:p,139:342,186:339,190:340,195:341,197:Ci,307:43,308:g},r(ya,[2,389],{44:39,55:40,307:43,190:340,195:341,139:342,188:344,189:345,186:346,13:l,16:h,87:p,197:Ci,308:g}),r(Pn,[2,227]),r(Pn,[2,228]),r(Pn,[2,229]),{13:l,16:h,44:215,45:je,55:220,82:R,87:p,89:Me,172:221,185:351,187:350,200:348,230:347,231:Tt,234:349,236:216,237:222,255:154,257:155,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,309:sr,310:pr,311:217,312:Gt},{13:l,16:h,44:39,55:40,87:p,139:342,186:352,190:340,195:341,197:Ci,307:43,308:g},r(Pn,[2,146]),r(Pn,[2,147]),r(Pn,[2,148]),r(Pn,[2,149]),{13:l,16:h,44:354,55:355,82:R,87:p,172:357,237:356,255:154,257:155,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,309:sr,310:pr,311:358,312:Gt,313:353},r(jl,[2,215]),r(jl,[2,216]),r(M,V,{58:205,62:206,23:359,63:de}),r(Ce,[2,264]),r(Zm,[2,266]),r(ms,[2,11]),r(n,[2,308],{6:[2,310]}),r(At,[2,313],{102:360,120:361,121:[1,362]}),r(At,[2,47]),r(At,[2,63]),r(At,[2,64]),{13:l,16:h,55:363,307:43,308:g},r(At,[2,336]),r(At,[2,337]),r(At,[2,338]),{109:[1,364]},r(h1,[2,60]),{13:l,16:h,55:365,307:43,308:g},r(ce,[2,335]),{13:l,16:h,55:366,307:43,308:g},{31:[1,367]},r(Fi,[2,341],{137:368}),r(Fi,[2,340]),{13:l,16:h,44:215,45:je,55:220,82:R,87:p,89:Me,145:369,172:221,185:213,187:214,231:Tt,236:216,237:222,255:154,257:155,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,309:sr,310:pr,311:217,312:Gt},{28:[1,370],127:371,128:[1,372]},r(Zn,[2,330],{124:373,125:374,126:He}),r(Zn,[2,57]),{44:375,87:p},r(s1,[2,151],{241:376,242:[1,377]}),r(ko,[2,153],{245:378,246:[1,379]}),{13:l,16:h,44:136,45:G,55:133,67:132,68:134,77:131,82:R,87:p,172:135,224:ke,247:380,251:125,255:154,257:155,259:126,263:qe,264:130,265:j,266:137,267:139,268:le,269:Se,270:W,271:be,273:we,274:ge,275:146,276:Ee,277:ue,278:149,279:ye,280:fe,283:_e,285:Te,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,312:Re,346:Oe,347:Ae,348:_,349:S,350:w,351:C},{250:[1,381]},r(ft,[2,432]),r(ft,[2,433]),r(ft,[2,434]),r(ft,[2,435]),r(ft,[2,436]),r(ft,[2,437]),{250:[2,439]},r([47,48,193,242,246,250,272,290,341,342,343,344,345,346],[2,158],{253:382,254:383,255:384,257:385,263:[1,386],265:[1,387],297:X,298:Z,299:ee,300:Q,301:ne,302:ie}),r(ps,[2,162],{261:388,262:389,39:Ml,338:Ll}),r(_t,[2,164]),r(_t,[2,165]),r(_t,[2,166]),r(lt,[2,95]),r(lt,[2,96]),r(ft,[2,377],{177:392,325:[1,393]}),{48:[1,394]},r(lt,[2,177]),{13:l,16:h,44:136,45:G,46:395,55:133,67:132,68:134,77:131,82:R,87:p,172:135,224:ke,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:qe,264:130,265:j,266:137,267:139,268:le,269:Se,270:W,271:be,273:we,274:ge,275:146,276:Ee,277:ue,278:149,279:ye,280:fe,283:_e,285:Te,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,312:Re,346:Oe,347:Ae,348:_,349:S,350:w,351:C},{13:l,16:h,44:136,45:G,46:396,55:133,67:132,68:134,77:131,82:R,87:p,172:135,224:ke,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:qe,264:130,265:j,266:137,267:139,268:le,269:Se,270:W,271:be,273:we,274:ge,275:146,276:Ee,277:ue,278:149,279:ye,280:fe,283:_e,285:Te,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,312:Re,346:Oe,347:Ae,348:_,349:S,350:w,351:C},{13:l,16:h,44:136,45:G,46:397,55:133,67:132,68:134,77:131,82:R,87:p,172:135,224:ke,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:qe,264:130,265:j,266:137,267:139,268:le,269:Se,270:W,271:be,273:we,274:ge,275:146,276:Ee,277:ue,278:149,279:ye,280:fe,283:_e,285:Te,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,312:Re,346:Oe,347:Ae,348:_,349:S,350:w,351:C},{13:l,16:h,44:136,45:G,46:398,55:133,67:132,68:134,77:131,82:R,87:p,172:135,224:ke,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:qe,264:130,265:j,266:137,267:139,268:le,269:Se,270:W,271:be,273:we,274:ge,275:146,276:Ee,277:ue,278:149,279:ye,280:fe,283:_e,285:Te,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,312:Re,346:Oe,347:Ae,348:_,349:S,350:w,351:C},{13:l,16:h,44:136,45:G,46:399,55:133,67:132,68:134,77:131,82:R,87:p,172:135,224:ke,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:qe,264:130,265:j,266:137,267:139,268:le,269:Se,270:W,271:be,273:we,274:ge,275:146,276:Ee,277:ue,278:149,279:ye,280:fe,283:_e,285:Te,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,312:Re,346:Oe,347:Ae,348:_,349:S,350:w,351:C},r(lt,[2,183]),r(lt,[2,98]),r(ft,[2,381],{180:400}),{87:[1,401]},r(lt,[2,185]),{13:l,16:h,44:136,45:G,46:402,55:133,67:132,68:134,77:131,82:R,87:p,172:135,224:ke,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:qe,264:130,265:j,266:137,267:139,268:le,269:Se,270:W,271:be,273:we,274:ge,275:146,276:Ee,277:ue,278:149,279:ye,280:fe,283:_e,285:Te,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,312:Re,346:Oe,347:Ae,348:_,349:S,350:w,351:C},{29:k,57:403},r(Ht,[2,193]),{13:l,16:h,55:404,307:43,308:g},{13:l,16:h,44:39,55:40,87:p,139:342,195:405,197:Ci,307:43,308:g},r(ei,[2,233]),r(ei,[2,234]),r(ei,[2,235]),r(d1,[2,459],{281:406,325:[1,407]}),r(ft,[2,463],{284:408,325:[1,409]}),r(ft,[2,465],{286:410,325:[1,411]}),{13:l,16:h,31:[1,412],55:414,82:R,171:413,172:415,173:416,174:qo,255:154,257:155,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,312:Bo},{31:[1,419],89:[1,420]},{29:[1,421]},r(Vo,[2,302]),r(Mo,[2,367],{167:422}),r(Lo,[2,369],{168:423}),{48:[1,424],87:[1,425]},r(Vo,[2,371]),r(Oi,[2,122]),r(Oi,[2,417]),r(Oi,[2,413]),r(Oi,[2,414]),r(Oi,[2,415]),r(ln,[2,125]),r(ln,[2,127]),r(ln,[2,128]),r(p1,[2,420],{227:426}),r(ln,[2,130]),{13:l,16:h,55:194,197:We,223:427,307:43,308:g},{48:[1,428]},r(ti,[2,289],{61:429,80:430,81:[1,431],83:[1,432]}),r(kl,[2,288]),{64:[1,433]},r(Qe,[2,29],{307:43,267:139,275:146,278:149,77:320,67:321,68:322,55:323,79:434,13:l,16:h,45:G,268:le,269:Se,270:W,271:be,273:we,274:ge,276:Ee,277:ue,279:ye,280:fe,283:_e,285:Te,308:g,346:Oe,347:Ae,348:_,349:S,350:w,351:C}),r(m1,[2,293]),r(Vl,[2,92]),r(Vl,[2,93]),r(Vl,[2,94]),{45:a1,89:o1,176:269},{31:[1,435]},{31:[1,436]},{19:437,28:P,29:L,56:85},{19:438,28:P,29:L,56:85},r(Pi,[2,355],{149:439}),r(Pi,[2,354]),{13:l,16:h,44:215,45:Uo,55:220,82:R,87:p,89:Me,156:440,172:221,185:441,203:442,231:$o,236:216,237:222,255:154,257:155,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,309:sr,310:pr,311:217,312:Gt},r(Ce,[2,19]),r(ti,[2,21]),{13:l,16:h,44:450,45:g1,55:323,65:445,66:446,67:447,68:448,87:p,267:139,268:le,269:Se,270:W,271:be,273:we,274:ge,275:146,276:Ee,277:ue,278:149,279:ye,280:fe,283:_e,285:Te,307:43,308:g,346:Oe,347:Ae,348:_,349:S,350:w,351:C},r(ms,[2,8]),{31:[1,451]},{31:[2,258]},{31:[2,101]},r(Y,[2,386],{31:[2,388]}),r(ya,[2,102]),r(Ii,[2,391],{191:452}),r(Y,[2,395],{196:453,198:454}),r(Y,[2,108]),r(Y,[2,109]),r(ya,[2,103]),r(ya,[2,104]),r(ya,[2,390]),{13:l,16:h,44:215,45:je,48:[1,455],55:220,82:R,87:p,89:Me,172:221,185:351,187:350,200:456,231:Tt,234:349,236:216,237:222,255:154,257:155,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,309:sr,310:pr,311:217,312:Gt},r(Wo,[2,424]),r(y1,[2,136]),r(y1,[2,137]),r(ql,[2,140]),{232:[1,457]},{13:l,16:h,44:39,55:40,87:p,139:342,195:458,197:Ci,307:43,308:g},r(ei,[2,219]),r(ei,[2,220]),r(ei,[2,221]),r(ei,[2,222]),r(ei,[2,223]),r(ms,[2,10]),r(At,[2,46]),r(At,[2,314]),{112:e1,122:459},r(At,[2,62]),r(ce,t1,{133:242,108:460,112:r1,132:n1}),r(h1,[2,61]),r(At,[2,49]),r([6,28,126,128,193],[2,65]),{31:[2,66],112:[1,462],138:461},r(Fi,[2,351],{146:463,335:[1,464]}),{29:k,57:465},r(Zn,[2,329]),r(ce,[2,332],{129:466,327:[1,467]}),r(Zn,[2,55]),r(Zn,[2,331]),{48:[1,468]},r(ko,[2,429]),{13:l,16:h,44:136,45:G,55:133,67:132,68:134,77:131,82:R,87:p,172:135,224:ke,239:469,243:123,247:124,251:125,255:154,257:155,259:126,263:qe,264:130,265:j,266:137,267:139,268:le,269:Se,270:W,271:be,273:we,274:ge,275:146,276:Ee,277:ue,278:149,279:ye,280:fe,283:_e,285:Te,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,312:Re,346:Oe,347:Ae,348:_,349:S,350:w,351:C},r(ds,[2,431]),{13:l,16:h,44:136,45:G,55:133,67:132,68:134,77:131,82:R,87:p,172:135,224:ke,243:470,247:124,251:125,255:154,257:155,259:126,263:qe,264:130,265:j,266:137,267:139,268:le,269:Se,270:W,271:be,273:we,274:ge,275:146,276:Ee,277:ue,278:149,279:ye,280:fe,283:_e,285:Te,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,312:Re,346:Oe,347:Ae,348:_,349:S,350:w,351:C},r(ds,[2,156]),{45:c1,89:u1,179:471},r(ps,[2,441]),{13:l,16:h,44:136,45:G,55:133,67:132,68:134,77:131,82:R,87:p,172:135,224:ke,251:472,255:154,257:155,259:126,263:qe,264:130,265:j,266:137,267:139,268:le,269:Se,270:W,271:be,273:we,274:ge,275:146,276:Ee,277:ue,278:149,279:ye,280:fe,283:_e,285:Te,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,312:Re,346:Oe,347:Ae,348:_,349:S,350:w,351:C},r(_t,[2,444],{256:473}),r(_t,[2,446],{258:474}),r(ft,[2,442]),r(ft,[2,443]),r(_t,[2,449]),{13:l,16:h,44:136,45:G,55:133,67:132,68:134,77:131,82:R,87:p,172:135,224:ke,255:154,257:155,259:475,263:qe,264:130,265:j,266:137,267:139,268:le,269:Se,270:W,271:be,273:we,274:ge,275:146,276:Ee,277:ue,278:149,279:ye,280:fe,283:_e,285:Te,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,312:Re,346:Oe,347:Ae,348:_,349:S,350:w,351:C},r(ft,[2,450]),r(ft,[2,451]),r(ft,[2,379],{178:476}),r(ft,[2,378]),r([6,13,16,29,31,39,45,47,48,73,76,78,81,82,83,85,87,89,112,159,160,161,163,164,193,231,242,246,250,263,265,268,269,270,271,272,273,274,276,277,279,280,283,285,290,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,335,338,341,342,343,344,345,346,347,348,349,350,351],[2,175]),{48:[1,477]},{48:[1,478]},{272:[1,479]},{272:[1,480]},{272:[1,481]},{13:l,16:h,44:136,45:G,46:482,55:133,67:132,68:134,77:131,82:R,87:p,172:135,224:ke,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:qe,264:130,265:j,266:137,267:139,268:le,269:Se,270:W,271:be,273:we,274:ge,275:146,276:Ee,277:ue,278:149,279:ye,280:fe,283:_e,285:Te,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,312:Re,346:Oe,347:Ae,348:_,349:S,350:w,351:C},{48:[1,483]},{48:[1,484]},r(lt,[2,187]),r(Ht,[2,194]),{13:l,16:h,44:39,55:40,82:R,87:p,139:289,172:291,255:154,257:155,266:290,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,312:Re,320:485},{13:l,16:h,39:[1,487],44:136,45:G,46:488,55:133,67:132,68:134,77:131,82:R,87:p,172:135,224:ke,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:qe,264:130,265:j,266:137,267:139,268:le,269:Se,270:W,271:be,273:we,274:ge,275:146,276:Ee,277:ue,278:149,279:ye,280:fe,282:486,283:_e,285:Te,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,312:Re,346:Oe,347:Ae,348:_,349:S,350:w,351:C},r(d1,[2,460]),{13:l,16:h,44:136,45:G,46:489,55:133,67:132,68:134,77:131,82:R,87:p,172:135,224:ke,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:qe,264:130,265:j,266:137,267:139,268:le,269:Se,270:W,271:be,273:we,274:ge,275:146,276:Ee,277:ue,278:149,279:ye,280:fe,283:_e,285:Te,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,312:Re,346:Oe,347:Ae,348:_,349:S,350:w,351:C},r(ft,[2,464]),{13:l,16:h,44:136,45:G,46:490,55:133,67:132,68:134,77:131,82:R,87:p,172:135,224:ke,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:qe,264:130,265:j,266:137,267:139,268:le,269:Se,270:W,271:be,273:we,274:ge,275:146,276:Ee,277:ue,278:149,279:ye,280:fe,283:_e,285:Te,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,312:Re,346:Oe,347:Ae,348:_,349:S,350:w,351:C},r(ft,[2,466]),r(q,[2,40]),r(Mo,[2,298]),r(_a,[2,87]),r(_a,[2,88]),r(_a,[2,89]),r(_a,[2,90]),{13:l,16:h,55:492,82:R,172:493,255:154,257:155,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,311:494,312:Gt,315:491},r(q,[2,41]),r(Lo,[2,300]),r(va,[2,303],{92:495}),{13:l,16:h,31:[1,496],55:414,82:R,171:497,172:415,173:416,174:qo,255:154,257:155,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,312:Bo},{31:[1,498],89:[1,499]},{29:[1,500]},r(Vo,[2,372]),{13:l,16:h,48:[2,422],55:194,197:We,223:312,226:502,228:501,229:l1,307:43,308:g},r(ln,[2,131]),r(ln,[2,126]),r(ti,[2,22]),r(ti,[2,290]),{82:[1,503]},{82:[1,504]},{13:l,16:h,44:510,45:G,55:323,67:321,68:322,74:505,75:506,76:_1,77:320,78:v1,79:509,87:p,267:139,268:le,269:Se,270:W,271:be,273:we,274:ge,275:146,276:Ee,277:ue,278:149,279:ye,280:fe,283:_e,285:Te,307:43,308:g,346:Oe,347:Ae,348:_,349:S,350:w,351:C},r(m1,[2,294]),r(S1,[2,69]),r(S1,[2,70]),r(Qe,me,{59:197,69:198,20:511,70:N}),r(M,V,{58:205,62:206,23:512,63:de}),{29:[2,375],31:[2,71],84:522,85:a,112:[1,518],150:513,151:514,158:515,159:[1,516],160:[1,517],161:[1,519],163:[1,520],164:[1,521],175:523},r(Pi,[2,363],{157:524,335:[1,525]}),r(c,i,{215:10,202:526,205:527,208:528,214:529,44:530,87:p}),r(Go,[2,399],{215:10,205:527,208:528,214:529,44:530,204:531,202:532,13:i,16:i,45:i,197:i,224:i,229:i,308:i,87:p}),{13:l,16:h,44:215,45:Uo,55:220,82:R,87:p,89:Me,172:221,185:351,203:536,212:534,231:$o,233:533,234:535,236:216,237:222,255:154,257:155,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,309:sr,310:pr,311:217,312:Gt},r(c,i,{215:10,205:527,208:528,214:529,44:530,202:537,87:p}),r(M,[2,23],{307:43,267:139,275:146,278:149,55:323,67:447,68:448,44:450,66:538,13:l,16:h,45:g1,87:p,268:le,269:Se,270:W,271:be,273:we,274:ge,276:Ee,277:ue,279:ye,280:fe,283:_e,285:Te,308:g,346:Oe,347:Ae,348:_,349:S,350:w,351:C}),r(Di,[2,291]),r(Di,[2,24]),r(Di,[2,25]),{13:l,16:h,44:136,45:G,46:539,55:133,67:132,68:134,77:131,82:R,87:p,172:135,224:ke,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:qe,264:130,265:j,266:137,267:139,268:le,269:Se,270:W,271:be,273:we,274:ge,275:146,276:Ee,277:ue,278:149,279:ye,280:fe,283:_e,285:Te,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,312:Re,346:Oe,347:Ae,348:_,349:S,350:w,351:C},r(Di,[2,28]),r(M,V,{58:205,62:206,23:540,63:de}),r([31,112,232,318,335],[2,105],{192:541,193:[1,542]}),r(Ii,[2,107]),{13:l,16:h,44:215,45:je,55:220,82:R,87:p,89:Me,172:221,185:351,187:350,199:543,200:544,231:Tt,234:349,236:216,237:222,255:154,257:155,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,309:sr,310:pr,311:217,312:Gt},r(b1,[2,132]),r(Wo,[2,425]),r(b1,[2,133]),{13:l,16:h,44:354,55:355,82:R,87:p,172:357,237:356,255:154,257:155,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,309:sr,310:pr,311:358,312:Gt,313:545},r(At,[2,54]),r(At,[2,48]),r(Fi,[2,342]),{13:l,16:h,44:39,55:40,87:p,139:546,307:43,308:g},r(Fi,[2,68]),r(Y,[2,350],{31:w1,112:w1}),r(At,[2,53]),{13:l,16:h,55:547,307:43,308:g},r(ce,[2,333]),r(Fe,[2,16]),r(ko,[2,152]),r(ds,[2,154]),r(ds,[2,157]),r(ps,[2,159]),r(ps,[2,160],{262:389,261:548,39:Ml,338:Ll}),r(ps,[2,161],{262:389,261:549,39:Ml,338:Ll}),r(_t,[2,163]),{13:l,16:h,44:136,45:G,46:550,55:133,67:132,68:134,77:131,82:R,87:p,172:135,224:ke,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:qe,264:130,265:j,266:137,267:139,268:le,269:Se,270:W,271:be,273:we,274:ge,275:146,276:Ee,277:ue,278:149,279:ye,280:fe,283:_e,285:Te,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,312:Re,346:Oe,347:Ae,348:_,349:S,350:w,351:C},r(lt,[2,178]),r(lt,[2,179]),{13:l,16:h,44:136,45:G,46:551,55:133,67:132,68:134,77:131,82:R,87:p,172:135,224:ke,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:qe,264:130,265:j,266:137,267:139,268:le,269:Se,270:W,271:be,273:we,274:ge,275:146,276:Ee,277:ue,278:149,279:ye,280:fe,283:_e,285:Te,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,312:Re,346:Oe,347:Ae,348:_,349:S,350:w,351:C},{13:l,16:h,44:136,45:G,46:552,55:133,67:132,68:134,77:131,82:R,87:p,172:135,224:ke,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:qe,264:130,265:j,266:137,267:139,268:le,269:Se,270:W,271:be,273:we,274:ge,275:146,276:Ee,277:ue,278:149,279:ye,280:fe,283:_e,285:Te,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,312:Re,346:Oe,347:Ae,348:_,349:S,350:w,351:C},{13:l,16:h,44:136,45:G,46:553,55:133,67:132,68:134,77:131,82:R,87:p,172:135,224:ke,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:qe,264:130,265:j,266:137,267:139,268:le,269:Se,270:W,271:be,273:we,274:ge,275:146,276:Ee,277:ue,278:149,279:ye,280:fe,283:_e,285:Te,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,312:Re,346:Oe,347:Ae,348:_,349:S,350:w,351:C},{48:[1,554],272:[1,555]},r(lt,[2,184]),r(lt,[2,186]),{314:[1,556]},{48:[1,557]},{48:[2,461]},{48:[2,462]},{48:[1,558]},{48:[2,467],193:[1,561],287:559,288:560},{13:l,16:h,55:194,197:We,223:562,307:43,308:g},r(Bl,[2,224]),r(Bl,[2,225]),r(Bl,[2,226]),{31:[1,563],45:E1,94:564},r(q,[2,84]),r(Mo,[2,368]),r(q,[2,85]),r(Lo,[2,370]),r(va,[2,373],{170:566}),{48:[1,567]},{48:[2,423],337:[1,568]},r(ti,[2,35],{83:[1,569]}),r(ti,[2,36],{81:[1,570]}),r(kl,[2,30],{307:43,267:139,275:146,278:149,77:320,67:321,68:322,55:323,79:509,44:510,75:571,13:l,16:h,45:G,76:_1,78:v1,87:p,268:le,269:Se,270:W,271:be,273:we,274:ge,276:Ee,277:ue,279:ye,280:fe,283:_e,285:Te,308:g,346:Oe,347:Ae,348:_,349:S,350:w,351:C}),r(gs,[2,295]),{45:G,77:572},{45:G,77:573},r(gs,[2,33]),r(gs,[2,34]),{31:[2,275],50:574,84:575,85:a},{31:[2,277],51:576,84:577,85:a},r(Pi,[2,356]),r(T1,[2,357],{152:578,335:[1,579]}),r(In,[2,74]),{29:k,57:580},{29:k,57:581},{13:l,16:h,44:39,55:40,87:p,139:582,307:43,308:g},r(A1,[2,365],{162:583,328:[1,584]}),{13:l,16:h,45:G,55:323,67:321,68:322,77:320,79:585,267:139,268:le,269:Se,270:W,271:be,273:we,274:ge,275:146,276:Ee,277:ue,278:149,279:ye,280:fe,283:_e,285:Te,307:43,308:g,346:Oe,347:Ae,348:_,349:S,350:w,351:C},{45:[1,586]},r(In,[2,81]),{29:k,57:587},r(Pi,[2,73]),r(Y,[2,362],{29:Dn,31:Dn,85:Dn,112:Dn,159:Dn,160:Dn,161:Dn,163:Dn,164:Dn}),r(Go,[2,112]),r(ys,[2,401],{206:588}),r(Y,[2,405],{209:589,210:590}),r(Y,[2,403]),r(Y,[2,404]),r(Go,[2,113]),r(Go,[2,400]),{13:l,16:h,44:215,45:Uo,48:[1,591],55:220,82:R,87:p,89:Me,172:221,185:351,203:536,212:592,231:$o,234:535,236:216,237:222,255:154,257:155,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,309:sr,310:pr,311:217,312:Gt},r(Wo,[2,426]),r(ql,[2,138]),r(ql,[2,139]),{232:[1,593]},r(Di,[2,292]),{47:[1,595],48:[1,594]},r(ms,[2,9]),r(Ii,[2,392]),r(Ii,[2,393],{44:39,55:40,307:43,195:341,139:342,194:596,190:597,13:l,16:h,87:p,197:Ci,308:g}),r(Ii,[2,110],{272:[1,598]}),r(Ho,[2,397],{201:599,316:600,317:[1,601]}),{314:[1,602]},{29:[1,603]},r(Zn,[2,58]),r(_t,[2,445]),r(_t,[2,447]),{48:[1,604],272:[1,605]},{48:[1,606]},{272:[1,607]},{272:[1,608]},r(lt,[2,99]),r(ft,[2,382]),r([13,16,39,47,48,87,193,197,242,246,250,263,265,272,290,297,298,299,300,301,302,308,314,338,341,342,343,344,345,346],[2,232]),r(lt,[2,188]),r(lt,[2,189]),{48:[1,609]},{48:[2,468]},{289:[1,610]},{13:l,16:h,55:492,82:R,172:493,255:154,257:155,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,311:494,312:Gt,315:611},r(q,[2,42]),r(va,[2,304]),{13:l,16:h,55:414,82:R,95:612,171:613,172:415,173:416,174:qo,255:154,257:155,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,312:Bo},{31:[1,614],45:E1,94:615},r(ln,[2,129]),r(p1,[2,421]),{82:[1,616]},{82:[1,617]},r(gs,[2,296]),r(gs,[2,31]),r(gs,[2,32]),{31:[2,17]},{31:[2,276]},{31:[2,18]},{31:[2,278]},r(Y,f1,{155:330,153:618,154:619,29:Rn,31:Rn,85:Rn,112:Rn,159:Rn,160:Rn,161:Rn,163:Rn,164:Rn}),r(T1,[2,358]),r(In,[2,75]),r(In,[2,76]),{29:k,57:620},{13:l,16:h,44:39,55:40,87:p,139:621,307:43,308:g},r(A1,[2,366]),r(In,[2,79]),{13:l,16:h,44:136,45:G,46:622,55:133,67:132,68:134,77:131,82:R,87:p,172:135,224:ke,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:qe,264:130,265:j,266:137,267:139,268:le,269:Se,270:W,271:be,273:we,274:ge,275:146,276:Ee,277:ue,278:149,279:ye,280:fe,283:_e,285:Te,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,312:Re,346:Oe,347:Ae,348:_,349:S,350:w,351:C},r(In,[2,91],{336:[1,623]}),r([29,31,85,112,159,160,161,163,164,232,318,335],[2,114],{207:624,193:[1,625]}),r(ys,[2,117]),{13:l,16:h,44:215,45:Uo,55:220,82:R,87:p,89:Me,172:221,185:351,203:536,211:626,212:627,231:$o,234:535,236:216,237:222,255:154,257:155,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,309:sr,310:pr,311:217,312:Gt},r(Pn,[2,134]),r(Wo,[2,427]),r(Pn,[2,135]),r(Di,[2,26]),{44:628,87:p},r(Ii,[2,106]),r(Ii,[2,394]),r(Y,[2,396]),r(Ho,[2,111]),r(Ho,[2,398]),{13:l,16:h,44:39,55:40,87:p,139:342,186:629,190:340,195:341,197:Ci,307:43,308:g},r(jl,[2,217]),r(Y,No,{144:248,140:630,143:631,31:[2,343]}),r(lt,[2,97]),r(ft,[2,380]),r(lt,[2,180]),{13:l,16:h,44:136,45:G,46:632,55:133,67:132,68:134,77:131,82:R,87:p,172:135,224:ke,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:qe,264:130,265:j,266:137,267:139,268:le,269:Se,270:W,271:be,273:we,274:ge,275:146,276:Ee,277:ue,278:149,279:ye,280:fe,283:_e,285:Te,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,312:Re,346:Oe,347:Ae,348:_,349:S,350:w,351:C},{13:l,16:h,44:136,45:G,46:633,55:133,67:132,68:134,77:131,82:R,87:p,172:135,224:ke,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:qe,264:130,265:j,266:137,267:139,268:le,269:Se,270:W,271:be,273:we,274:ge,275:146,276:Ee,277:ue,278:149,279:ye,280:fe,283:_e,285:Te,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,312:Re,346:Oe,347:Ae,348:_,349:S,350:w,351:C},r(lt,[2,190]),{290:[1,634]},{314:[1,635]},{13:l,16:h,48:[1,636],55:414,82:R,171:637,172:415,173:416,174:qo,255:154,257:155,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ne,302:ie,303:ae,304:U,305:H,306:oe,307:43,308:g,312:Bo},r(x1,[2,305]),r(q,[2,86]),r(va,[2,374]),r(ti,[2,37]),r(ti,[2,38]),r(Pi,[2,72]),r(Pi,[2,360]),r(In,[2,77]),{29:k,57:638},{47:[1,639]},{29:[2,376]},r(ys,[2,402]),r(ys,[2,115],{215:10,208:528,214:529,44:530,205:640,13:i,16:i,45:i,197:i,224:i,229:i,308:i,87:p}),r(ys,[2,118],{272:[1,641]}),r(zo,[2,407],{213:642,319:643,317:[1,644]}),{48:[1,645]},{318:[1,646]},{31:[1,647]},{31:[2,344]},{48:[1,648]},{48:[1,649]},{291:650,303:ae,304:U,305:H,306:oe},r(_a,[2,218]),r(va,[2,44]),r(x1,[2,306]),r(In,[2,78]),{44:651,87:p},r(ys,[2,116]),r(Y,[2,406]),r(zo,[2,119]),r(zo,[2,408]),r(c,i,{215:10,205:527,208:528,214:529,44:530,202:652,87:p}),r(Di,[2,27]),r(Ho,[2,230]),r(O1,[2,345],{141:653,335:[1,654]}),r(lt,[2,181]),r(lt,[2,182]),{48:[2,191]},{48:[1,655]},{318:[1,656]},r(Y,No,{144:248,142:657,143:658,31:C1,112:C1}),r(O1,[2,346]),r(In,[2,80]),r(zo,[2,231]),r(Fi,[2,67]),r(Fi,[2,348])],defaultActions:{5:[2,240],6:[2,241],7:[2,242],9:[2,239],24:[2,1],25:[2,2],26:[2,244],87:[2,282],94:[2,384],100:[2,45],109:[2,325],166:[2,458],263:[2,439],336:[2,258],337:[2,101],487:[2,461],488:[2,462],560:[2,468],574:[2,17],575:[2,276],576:[2,18],577:[2,278],623:[2,376],631:[2,344],650:[2,191]},parseError:o(function(E,O){if(O.recoverable)this.trace(E);else{var I=new Error(E);throw I.hash=O,I}},"parseError"),parse:o(function(E){var O=this,I=[0],z=[],pe=[null],d=[],Kt=this.table,m="",dn=0,Ea=0,Jo=0,Xo=2,Ta=1,Zo=d.slice.call(arguments,1),it=Object.create(this.lexer),pn={yy:{}};for(var Aa in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Aa)&&(pn.yy[Aa]=this.yy[Aa]);it.setInput(E,pn.yy),pn.yy.lexer=it,pn.yy.parser=this,typeof it.yylloc>"u"&&(it.yylloc={});var ws=it.yylloc;d.push(ws);var Ge=it.options&&it.options.ranges;typeof pn.yy.parseError=="function"?this.parseError=pn.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function tt(mn){I.length=I.length-2*mn,pe.length=pe.length-mn,d.length=d.length-mn}o(tt,"popStack");for(var Le=o(function(){var mn;return mn=it.lex()||Ta,typeof mn!="number"&&(mn=O.symbols_[mn]||mn),mn},"lex"),Ue,ar,ji,Tr,s8,ef,Es={},ec,jn,q1,tc;;){if(ji=I[I.length-1],this.defaultActions[ji]?Tr=this.defaultActions[ji]:((Ue===null||typeof Ue>"u")&&(Ue=Le()),Tr=Kt[ji]&&Kt[ji][Ue]),typeof Tr>"u"||!Tr.length||!Tr[0]){var tf="";tc=[];for(ec in Kt[ji])this.terminals_[ec]&&ec>Xo&&tc.push("'"+this.terminals_[ec]+"'");it.showPosition?tf="Parse error on line "+(dn+1)+`:
101
101
  `+it.showPosition()+`
102
102
  Expecting `+tc.join(", ")+", got '"+(this.terminals_[Ue]||Ue)+"'":tf="Parse error on line "+(dn+1)+": Unexpected "+(Ue==Ta?"end of input":"'"+(this.terminals_[Ue]||Ue)+"'"),this.parseError(tf,{text:it.match,token:this.terminals_[Ue]||Ue,line:it.yylineno,loc:ws,expected:tc})}if(Tr[0]instanceof Array&&Tr.length>1)throw new Error("Parse Error: multiple actions possible at state: "+ji+", token: "+Ue);switch(Tr[0]){case 1:I.push(Ue),pe.push(it.yytext),d.push(it.yylloc),I.push(Tr[1]),Ue=null,ar?(Ue=ar,ar=null):(Ea=it.yyleng,m=it.yytext,dn=it.yylineno,ws=it.yylloc,Jo>0&&Jo--);break;case 2:if(jn=this.productions_[Tr[1]][1],Es.$=pe[pe.length-jn],Es._$={first_line:d[d.length-(jn||1)].first_line,last_line:d[d.length-1].last_line,first_column:d[d.length-(jn||1)].first_column,last_column:d[d.length-1].last_column},Ge&&(Es._$.range=[d[d.length-(jn||1)].range[0],d[d.length-1].range[1]]),ef=this.performAction.apply(Es,[m,Ea,dn,pn.yy,Tr[1],pe,d].concat(Zo)),typeof ef<"u")return ef;jn&&(I=I.slice(0,-1*jn*2),pe=pe.slice(0,-1*jn),d=d.slice(0,-1*jn)),I.push(this.productions_[Tr[1]][0]),pe.push(Es.$),d.push(Es._$),q1=Kt[I[I.length-2]][I[I.length-1]],I.push(q1);break;case 3:return!0}}return!0},"parse")},Ko=Qd().Wildcard,Yo="http://www.w3.org/1999/02/22-rdf-syntax-ns#",AS=Yo+"type",xS=Yo+"first",OS=Yo+"rest",F1=Yo+"nil",Qo="http://www.w3.org/2001/XMLSchema#",P1=Qo+"integer",I1=Qo+"decimal",D1=Qo+"double",CS=Qo+"boolean",Ri="",R1="",N1="";function zt(T){return T.toLowerCase()}o(zt,"lowercase");function Nn(T,E){return T.push(E),T}o(Nn,"appendTo");function Ni(T,E){return T.push.apply(T,E),T}o(Ni,"appendAllTo");function at(T){T||(T={});for(var E=1,O=arguments.length,I;E<O&&(I=arguments[E]||{});E++)for(var z in I)T[z]=I[z];return T}o(at,"extend");function fn(){for(var T=[],E=0,O=arguments.length;E<O;E++)T=T.concat.apply(T,arguments[E]);return T}o(fn,"unionAll");function Sa(T){if(T[0]==="<"&&(T=T.substring(1,T.length-1)),/^[a-z][a-z0-9.+-]*:/i.test(T))return T;if(!ve.base)throw new Error("Cannot resolve relative IRI "+T+" because no base IRI was set.");switch(Ri!==ve.base&&(Ri=ve.base,R1=Ri.replace(/[^\/:]*$/,""),N1=Ri.match(/^(?:[a-z]+:\/*)?[^\/]*/)[0]),T[0]){case void 0:return Ri;case"#":return Ri+T;case"?":return Ri.replace(/(?:\?.*)?$/,T);case"/":return N1+T;default:return R1+T}}o(Sa,"resolveIRI");function $l(T){if(T){var E=T[0];if(E==="?"||E==="$")return ve.factory.variable(T.substr(1))}return T}o($l,"toVar");function xt(T,E){return{type:"operation",operator:T,args:E||[]}}o(xt,"operation");function _s(T,E){var O={expression:T==="*"?new Ko:T};if(E)for(var I in E)O[I]=E[I];return O}o(_s,"expression");function vs(T,E){return{type:"path",pathType:T,items:E}}o(vs,"path");function Wl(T,E){for(var O=0,I=E.length,z;O<I&&(z=E[O]);O++)T=xt(z[0],[T,z[1]]);return T}o(Wl,"createOperationTree");function ki(T,E){var O=[],I=[],z=T.length,pe,d={};if(!z)return null;for(var Kt=0;Kt<z&&(pe=T[Kt]);Kt++)(pe.named?I:O).push(pe.iri);return d[E||"from"]={default:O,named:I},d}o(ki,"groupDatasets");function Ss(T){return parseInt(T,10)}o(Ss,"toInt");function Gl(T){return T.type==="group"&&T.patterns.length===1?T.patterns[0]:T}o(Gl,"degroupSingle");function hn(T,E){return E&&E.termType!=="NamedNode"&&(E=ve.factory.namedNode(E)),ve.factory.literal(T,E)}o(hn,"createTypedLiteral");function FS(T,E){return ve.factory.literal(T,E)}o(FS,"createLangLiteral");function Hl(T,E,O){if(!("termType"in E))throw new Error("Nested triples cannot contain paths");return ve.factory.quad(T,E,O)}o(Hl,"nestedTriple");function kn(T,E,O,I){var z={};return T!=null&&(z.subject=T),E!=null&&(z.predicate=E),O!=null&&(z.object=O),I!=null&&(z.annotations=I),z}o(kn,"triple");function ba(T){return typeof T=="string"?T.startsWith("e_")?ve.factory.blankNode(T):ve.factory.blankNode("e_"+T):ve.factory.blankNode("g_"+k1++)}o(ba,"blank");var k1=0;ve._resetBlanks=function(){k1=0};var PS=/\\u([a-fA-F0-9]{4})|\\U([a-fA-F0-9]{8})|\\(.)/g,IS={"\\":"\\","'":"'",'"':'"',t:" ",b:"\b",n:`
103
103
  `,r:"\r",f:"\f"},DS=/[\uD800-\uDBFF]([^\uDC00-\uDFFF]|$)/,zl=String.fromCharCode;function j1(T,E){T=T.substring(E,T.length-E);try{T=T.replace(PS,function(O,I,z,pe){var d;if(I){if(d=parseInt(I,16),isNaN(d))throw new Error;return zl(d)}else if(z){if(d=parseInt(z,16),isNaN(d))throw new Error;return d<65535?zl(d):zl(55296+((d-=65536)>>10),56320+(d&1023))}else{var Kt=IS[pe];if(!Kt)throw new Error;return Kt}})}catch{return""}if(DS.exec(T))throw new Error("Invalid unicode codepoint of surrogate pair without corresponding codepoint in "+T);return T}o(j1,"unescapeString");function RS(T){var E=ba(),O=E,I=[],z,pe=[];T.forEach(function(dn){I.push(dn.entity),Ni(pe,dn.triples)});for(var d=0,Kt=0,m=I.length,z=Array(m*2);d<m;)z[Kt++]=kn(O,ve.factory.namedNode(xS),I[d]),z[Kt++]=kn(O,ve.factory.namedNode(OS),O=++d<m?ba():ve.factory.namedNode(F1));return{entity:E,triples:Ni(z,pe)}}o(RS,"createList");function NS(T){var E=ba();return{entity:E,triples:T.map(function(O){return at(kn(E),O)})}}o(NS,"createAnonymousObject");function Kl(T,E,O){var I=[],z=[];return E.forEach(function(pe){let d=null;pe.annotation&&(d=pe.annotation,pe=pe.object),I.push(kn(null,T,pe.entity,d)),Ni(z,pe.triples)}),fn(I,O||[],z)}o(Kl,"objectListToTriples");function n8(T){for(var E=[],O,I=0,z;z=T[I];I++)switch(z.type){case"bgp":z.triples.length&&(O?Ni(O.triples,z.triples):Nn(E,O=z));break;default:(!z.patterns||z.patterns.length>0)&&(Nn(E,z),O=null)}return E}o(n8,"mergeAdjacentBGPs");function bs(T){return T.variable?T.variable.value:T.value||T.expression.value}o(bs,"getExpressionId");function Yl(T){if(!T)return[];if(T.type==="aggregate")return[T];if(T.type==="operation"){let E=[];for(let O of T.args)E.push(...Yl(O));return E}return[]}o(Yl,"getAggregatesOfExpression");function kS(T){let E=new Set,O=o(function(I){I&&(I.termType==="Variable"?E.add(I):I.type==="operation"&&I.args.forEach(O))},"visitExpression");return O(T),E}o(kS,"getVariablesFromExpression");function Ql(T,E=1,O=[]){for(let I of T)E>0&&I instanceof Array?Ql(I,E-1,O):O.push(I);return O}o(Ql,"flatten");function Jl(T){return T.termType==="Variable"}o(Jl,"isVariable");function M1(T){if(T.triples){let E=[];for(let O of T.triples)Jl(O.subject)&&E.push(O.subject.value),Jl(O.predicate)&&E.push(O.predicate.value),Jl(O.object)&&E.push(O.object.value);return E}else if(T.patterns){let E=[];for(let O of T.patterns)E.push(...M1(O));return E}return[]}o(M1,"getBoundVarsFromGroupGraphPattern");function jS(T){let E=T.slice().sort(),O=[];for(let I=0;I<E.length-1;I++)E[I+1]==E[I]&&O.push(E[I]);return O}o(jS,"getDuplicatesInArray");function wa(T){if(!ve.sparqlStar)throw new Error("SPARQL-star support is not enabled");return T}o(wa,"ensureSparqlStar");function L1(T,E,O){for(let I of E){let z=kn("subject"in I?I.subject:T,I.predicate,I.object);O.push(z),I.annotations&&L1(Hl(T,I.predicate,I.object),I.annotations,O)}}o(L1,"_applyAnnotations");function Xl(T){if(ve.sparqlStar){let E=[];return T.forEach(O=>{let I=kn(O.subject,O.predicate,O.object);E.push(I),O.annotations&&L1(Hl(O.subject,O.predicate,O.object),O.annotations,E)}),E}return T}o(Xl,"applyAnnotations");function i8(T){if(!ve.sparqlStarNestedQuads)throw new Error("Lenient SPARQL-star support with nested quads is not enabled");return T}o(i8,"ensureSparqlStarNestedQuads");function V1(T){for(let E of T){if(E.type==="graph"&&E.name.termType==="Variable")throw new Error("Detected illegal variable in GRAPH");if(E.type==="bgp"||E.type==="graph"){for(let O of E.triples)if(O.subject.termType==="Variable"||O.predicate.termType==="Variable"||O.object.termType==="Variable")throw new Error("Detected illegal variable in BGP")}}return T}o(V1,"ensureNoVariables");function Zl(T){for(let E of T)if(E.type==="bgp"){for(let O of E.triples)if(O.subject.termType==="BlankNode"||O.predicate.termType==="BlankNode"||O.object.termType==="BlankNode")throw new Error("Detected illegal blank node in BGP")}return T}o(Zl,"ensureNoBnodes");var MS=(function(){var T={EOF:1,parseError:o(function(O,I){if(this.yy.parser)this.yy.parser.parseError(O,I);else throw new Error(O)},"parseError"),setInput:o(function(E,O){return this.yy=O||this.yy||{},this._input=E,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:o(function(){var E=this._input[0];this.yytext+=E,this.yyleng++,this.offset++,this.match+=E,this.matched+=E;var O=E.match(/(?:\r\n?|\n).*/g);return O?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),E},"input"),unput:o(function(E){var O=E.length,I=E.split(/(?:\r\n?|\n)/g);this._input=E+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-O),this.offset-=O;var z=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),I.length-1&&(this.yylineno-=I.length-1);var pe=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:I?(I.length===z.length?this.yylloc.first_column:0)+z[z.length-I.length].length-I[0].length:this.yylloc.first_column-O},this.options.ranges&&(this.yylloc.range=[pe[0],pe[0]+this.yyleng-O]),this.yyleng=this.yytext.length,this},"unput"),more:o(function(){return this._more=!0,this},"more"),reject:o(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
@@ -255,7 +255,7 @@ globstar while`,e,p,t,g,b),this.matchOne(e.slice(p),t.slice(g),n))return this.de
255
255
  \u{1F4DD} Note: Actual command execution will be implemented in follow-up issues.`),console.log(" This PR establishes the infrastructure foundation."),process.exit(0)}catch(i){Pe.handle(i)}}getVaultRoot(){return this.context.pathResolver.getVaultRoot()}async executeStart(e){return this.statusExecutor.executeStart(e)}async executeComplete(e){return this.statusExecutor.executeComplete(e)}async executeTrash(e){return this.statusExecutor.executeTrash(e)}async executeArchive(e){return this.statusExecutor.executeArchive(e)}async executeMoveToBacklog(e){return this.statusExecutor.executeMoveToBacklog(e)}async executeMoveToAnalysis(e){return this.statusExecutor.executeMoveToAnalysis(e)}async executeMoveToToDo(e){return this.statusExecutor.executeMoveToToDo(e)}async executeCreateTask(e,t,n={}){return this.creationExecutor.executeCreateTask(e,t,n)}async executeCreateMeeting(e,t,n={}){return this.creationExecutor.executeCreateMeeting(e,t,n)}async executeCreateProject(e,t,n={}){return this.creationExecutor.executeCreateProject(e,t,n)}async executeCreateArea(e,t,n={}){return this.creationExecutor.executeCreateArea(e,t,n)}async executeRenameToUid(e){return this.propertyExecutor.executeRenameToUid(e)}async executeUpdateLabel(e,t){return this.propertyExecutor.executeUpdateLabel(e,t)}async executeSchedule(e,t){return this.propertyExecutor.executeSchedule(e,t)}async executeSetDeadline(e,t){return this.propertyExecutor.executeSetDeadline(e,t)}};function Wt(r,e,t,n,i){if(r==="json"){let s={command:e,filepath:t,action:n,...i&&{changes:i}},a=Bt.success(s);console.log(JSON.stringify(a,null,2))}else console.log(`\u2705 ${n}`)}o(Wt,"outputResult");function hs(r,e,t,n){let i=new st(`--${e} option is required for ${t} command`,n,{command:t,missingOption:e});Pe.handle(i)}o(hs,"handleMissingOption");function SS(){return new gn("command").description("Execute plugin command on single asset").argument("<command-name>","Command to execute (rename-to-uid, start, complete, schedule, set-deadline, etc.)").argument("<filepath>","Path to asset file (relative to vault root or absolute)").option("--vault <path>","Path to Obsidian vault",process.cwd()).option("--label <value>","Asset label (required for update-label and creation commands)").option("--prototype <uid>","Prototype UID for inheritance (creation commands)").option("--area <uid>","Area UID for effort linkage (creation commands)").option("--parent <uid>","Parent UID for effort linkage (creation commands)").option("--date <value>","Date in YYYY-MM-DD format (required for schedule and set-deadline commands)").option("--dry-run","Preview changes without modifying files").option("--format <type>","Output format: text|json (default: text)","text").action(async(r,e,t)=>{let n=t.format||"text";Pe.setFormat(n);try{let i=(0,vS.resolve)(t.vault),s=new Dl(i,t.dryRun);switch(r){case"rename-to-uid":await s.executeRenameToUid(e),Wt(n,r,e,"Renamed file to UID-based name");break;case"update-label":t.label||hs(n,"label","update-label",'exocortex command update-label <filepath> --label "<value>"'),await s.executeUpdateLabel(e,t.label),Wt(n,r,e,`Updated label to "${t.label}"`,{label:t.label});break;case"start":await s.executeStart(e),Wt(n,r,e,"Started task");break;case"complete":await s.executeComplete(e),Wt(n,r,e,"Completed task");break;case"trash":await s.executeTrash(e),Wt(n,r,e,"Moved task to trash");break;case"archive":await s.executeArchive(e),Wt(n,r,e,"Archived task");break;case"move-to-backlog":await s.executeMoveToBacklog(e),Wt(n,r,e,"Moved task to backlog");break;case"move-to-analysis":await s.executeMoveToAnalysis(e),Wt(n,r,e,"Moved task to analysis");break;case"move-to-todo":await s.executeMoveToToDo(e),Wt(n,r,e,"Moved task to todo");break;case"create-task":t.label||hs(n,"label","create-task",'exocortex command create-task <filepath> --label "<value>"'),await s.executeCreateTask(e,t.label,{prototype:t.prototype,area:t.area,parent:t.parent}),Wt(n,r,e,`Created task "${t.label}"`,{label:t.label,prototype:t.prototype,area:t.area,parent:t.parent});break;case"create-meeting":t.label||hs(n,"label","create-meeting",'exocortex command create-meeting <filepath> --label "<value>"'),await s.executeCreateMeeting(e,t.label,{prototype:t.prototype,area:t.area,parent:t.parent}),Wt(n,r,e,`Created meeting "${t.label}"`,{label:t.label,prototype:t.prototype,area:t.area,parent:t.parent});break;case"create-project":t.label||hs(n,"label","create-project",'exocortex command create-project <filepath> --label "<value>"'),await s.executeCreateProject(e,t.label,{prototype:t.prototype,area:t.area,parent:t.parent}),Wt(n,r,e,`Created project "${t.label}"`,{label:t.label,prototype:t.prototype,area:t.area,parent:t.parent});break;case"create-area":t.label||hs(n,"label","create-area",'exocortex command create-area <filepath> --label "<value>"'),await s.executeCreateArea(e,t.label,{prototype:t.prototype,area:t.area,parent:t.parent}),Wt(n,r,e,`Created area "${t.label}"`,{label:t.label,prototype:t.prototype,area:t.area,parent:t.parent});break;case"schedule":t.date||hs(n,"date","schedule",'exocortex command schedule <filepath> --date "YYYY-MM-DD"'),await s.executeSchedule(e,t.date),Wt(n,r,e,`Scheduled task for ${t.date}`,{date:t.date});break;case"set-deadline":t.date||hs(n,"date","set-deadline",'exocortex command set-deadline <filepath> --date "YYYY-MM-DD"'),await s.executeSetDeadline(e,t.date),Wt(n,r,e,`Set deadline to ${t.date}`,{date:t.date});break;default:await s.execute(r,e,t),Wt(n,r,e,`Executed ${r}`);break}}catch(i){Pe.handle(i)}})}o(SS,"commandCommand");var wS=require("path");var Xn=Je(require("fs")),Km=Je(require("path")),bS=require("events");var t8={watch:Xn.default.watch.bind(Xn.default),existsSync:Xn.default.existsSync.bind(Xn.default),statSync:Xn.default.statSync.bind(Xn.default),readFileSync:Xn.default.readFileSync.bind(Xn.default)},Rl=class extends bS.EventEmitter{constructor(t,n={}){super();this.watcher=null;this.debounceTimers=new Map;this.isRunning=!1;this.vaultPath=Km.default.resolve(t),this.fsAdapter=n.fsAdapter??t8,this.options={pattern:n.pattern??"**/*.md",assetType:n.assetType??"",debounceMs:n.debounceMs??100,recursive:n.recursive??!0}}static{o(this,"FileSystemWatcher")}start(){this.isRunning||(this.watcher=this.fsAdapter.watch(this.vaultPath,{recursive:this.options.recursive},(t,n)=>{n&&this.handleFileEvent(t,n.toString())}),this.watcher.on("error",t=>{this.emit("error",t)}),this.isRunning=!0,this.emit("started"))}stop(){if(this.isRunning){for(let t of this.debounceTimers.values())clearTimeout(t);this.debounceTimers.clear(),this.watcher&&(this.watcher.close(),this.watcher=null),this.isRunning=!1,this.emit("stopped")}}isWatching(){return this.isRunning}handleFileEvent(t,n){let i=Km.default.join(this.vaultPath,n),s=n;if(!this.matchesPattern(s))return;let a=this.debounceTimers.get(i);a&&clearTimeout(a);let c=setTimeout(()=>{this.debounceTimers.delete(i),this.processFileEvent(i,s)},this.options.debounceMs);this.debounceTimers.set(i,c)}processFileEvent(t,n){let i=this.fsAdapter.existsSync(t),s;if(!i)s="delete";else{let u=this.fsAdapter.statSync(t);s=Date.now()-u.birthtimeMs<1e3?"create":"modify"}let a;if(i&&t.endsWith(".md")&&(a=this.extractAssetType(t)),this.options.assetType&&a!==this.options.assetType)return;let c={type:s,path:t,relativePath:n,timestamp:new Date().toISOString(),assetType:a};this.emit("change",c)}matchesPattern(t){return this.options.pattern?Rt(t,this.options.pattern):!0}extractAssetType(t){try{let i=this.fsAdapter.readFileSync(t,"utf-8").match(/^---\n([\s\S]*?)\n---/);if(!i)return;let a=i[1].match(/exo__Instance_class:\s*(?:\[?"?\[\[([^\]]+)\]\]"?\]?|"?\[\[([^\]]+)\]\]"?)/);return a?a[1]||a[2]:void 0}catch{return}}};var Ym=Je(require("fs"));function ES(){return new gn("watch").description("Watch vault for file changes and emit NDJSON events").option("--vault <path>","Path to Obsidian vault",process.cwd()).option("--pattern <glob>","Glob pattern to filter files (e.g., '*.md', 'tasks/**')").option("--asset-type <type>","Filter by asset type (e.g., 'ems__Task', 'ems__Project')").option("--debounce <ms>","Debounce interval in milliseconds","100").action(async r=>{Pe.setFormat("json");try{let e=(0,wS.resolve)(r.vault);if(!Ym.default.existsSync(e))throw new cs(e);if(!Ym.default.statSync(e).isDirectory())throw new st(`Vault path is not a directory: ${e}`,"Provide a path to a directory, not a file",{vaultPath:e});let t=parseInt(r.debounce?.toString()??"100",10);if(isNaN(t)||t<0)throw new st("--debounce must be a non-negative integer","Use a positive integer value for debounce",{debounce:r.debounce});let n=new Rl(e,{pattern:r.pattern,assetType:r.assetType,debounceMs:t});n.on("change",s=>{console.log(JSON.stringify(s))}),n.on("error",s=>{let a=Bt.error("INTERNAL_OPERATION_FAILED",s.message,5,{recovery:{message:"Check file permissions and vault access",suggestion:"Ensure the vault directory is accessible"}});console.log(JSON.stringify(a))});let i=o(()=>{n.stop(),process.exit(0)},"shutdown");process.on("SIGINT",i),process.on("SIGTERM",i),console.error(`Watching vault: ${e}`),r.pattern&&console.error(` Pattern filter: ${r.pattern}`),r.assetType&&console.error(` Asset type filter: ${r.assetType}`),console.error(` Debounce: ${t}ms`),console.error("Press Ctrl+C to stop"),n.start()}catch(e){Pe.handle(e)}})}o(ES,"watchCommand");var Jm=require("path"),Xm=Je(Ys());var pa=Je(mi());var un=Je(Ys()),Qm=Je(require("crypto"));var Nl=class{constructor(){this.backups=new Map;this.fileHashes=new Map}static{o(this,"TransactionManager")}async begin(e){if(!un.default.existsSync(e))throw new Error(`Cannot backup non-existent file: ${e}`);let t=await un.default.readFile(e,"utf-8"),n=Qm.default.createHash("sha256").update(t).digest("hex");this.fileHashes.set(e,n);let i=`${e}.backup.${Date.now()}`;await un.default.writeFile(i,t,"utf-8"),this.backups.set(e,i)}async verify(e){let t=this.fileHashes.get(e);if(!t)return!0;if(!un.default.existsSync(e))return!1;let n=await un.default.readFile(e,"utf-8");return Qm.default.createHash("sha256").update(n).digest("hex")===t}async commit(){for(let e of this.backups.values())un.default.existsSync(e)&&await un.default.remove(e);this.backups.clear(),this.fileHashes.clear()}async rollback(){for(let[e,t]of this.backups.entries())un.default.existsSync(t)&&(await un.default.copy(t,e,{overwrite:!0}),await un.default.remove(t));this.backups.clear(),this.fileHashes.clear()}getTrackedFiles(){return Array.from(this.backups.keys())}};var Ro=class{static{o(this,"BatchExecutor")}constructor(e,t=!1){this.pathResolver=new ha(e),this.fsAdapter=new fa(e),this.frontmatterService=new pa.FrontmatterService,this.transactionManager=new Nl,this.dryRun=t}async executeBatch(e,t=!1){let n=Date.now(),i=[],s=0,a=0,c=!1;if(e.length===0)return{success:!0,total:0,succeeded:0,failed:0,results:[],durationMs:Date.now()-n,atomic:t};if(t&&!this.dryRun)try{await this.backupAllFiles(e)}catch(f){return{success:!1,total:e.length,succeeded:0,failed:e.length,results:e.map(l=>({success:!1,command:l.command,filepath:l.filepath,error:`Backup failed: ${f.message}`})),durationMs:Date.now()-n,atomic:t}}for(let f of e){let l=await this.executeSingleOperation(f);if(i.push(l),l.success)s++;else if(a++,t&&!this.dryRun){await this.transactionManager.rollback(),c=!0;let h=i.length;for(let p=h;p<e.length;p++)i.push({success:!1,command:e[p].command,filepath:e[p].filepath,error:"Not executed due to atomic rollback"}),a++;return{success:!1,total:e.length,succeeded:0,failed:e.length,results:i,durationMs:Date.now()-n,atomic:t,rolledBack:!0}}}return t&&!this.dryRun&&!c&&await this.transactionManager.commit(),{success:a===0,total:e.length,succeeded:s,failed:a,results:i,durationMs:Date.now()-n,atomic:t,...t&&{rolledBack:c}}}static parseInput(e){try{let t=JSON.parse(e);if(!Array.isArray(t))throw new st("Batch input must be a JSON array of operations",`exo batch --input '[{"command":"start","filepath":"task.md"}]'`);for(let n of t){if(!n.command||typeof n.command!="string")throw new st('Each operation must have a "command" string property','{"command":"start","filepath":"task.md"}');if(!n.filepath||typeof n.filepath!="string")throw new st('Each operation must have a "filepath" string property','{"command":"start","filepath":"task.md"}')}return t}catch(t){throw t instanceof st?t:new st(`Failed to parse batch input: ${t.message}`,`exo batch --input '[{"command":"start","filepath":"task.md"}]'`)}}async backupAllFiles(e){let t=new Set;for(let n of e){let i=this.pathResolver.resolve(n.filepath);t.add(i)}for(let n of t)await this.transactionManager.begin(n)}async executeSingleOperation(e){try{let t=this.pathResolver.resolve(e.filepath);this.pathResolver.validate(t);let n=t.replace(this.pathResolver.getVaultRoot()+"/",""),i=await this.fsAdapter.readFile(n);if(this.dryRun)return{success:!0,command:e.command,filepath:e.filepath,action:`Would execute ${e.command} (dry-run)`};switch(e.command){case"start":return await this.executeStart(n,e);case"complete":return await this.executeComplete(n,e);case"trash":return await this.executeTrash(n,e);case"archive":return await this.executeArchive(n,e);case"move-to-backlog":return await this.executeStatusUpdate(n,e,"ems__EffortStatusBacklog","Moved to backlog");case"move-to-analysis":return await this.executeStatusUpdate(n,e,"ems__EffortStatusAnalysis","Moved to analysis");case"move-to-todo":return await this.executeStatusUpdate(n,e,"ems__EffortStatusToDo","Moved to todo");case"update-label":return await this.executeUpdateLabel(n,e);case"schedule":return await this.executeSchedule(n,e);case"set-deadline":return await this.executeSetDeadline(n,e);default:return{success:!1,command:e.command,filepath:e.filepath,error:`Unknown command: ${e.command}`}}}catch(t){return{success:!1,command:e.command,filepath:e.filepath,error:t.message}}}getCurrentTimestamp(){return pa.DateFormatter.toLocalTimestamp(new Date)}async executeStart(e,t){let n=await this.fsAdapter.readFile(e),i=this.getCurrentTimestamp(),s=this.frontmatterService.updateProperty(n,"ems__Effort_status",'"[[ems__EffortStatusDoing]]"');return s=this.frontmatterService.updateProperty(s,"ems__Effort_startTimestamp",i),await this.fsAdapter.updateFile(e,s),{success:!0,command:t.command,filepath:t.filepath,action:"Started task",changes:{status:"Doing",startTimestamp:i}}}async executeComplete(e,t){let n=await this.fsAdapter.readFile(e),i=this.getCurrentTimestamp(),s=this.frontmatterService.updateProperty(n,"ems__Effort_status",'"[[ems__EffortStatusDone]]"');return s=this.frontmatterService.updateProperty(s,"ems__Effort_endTimestamp",i),s=this.frontmatterService.updateProperty(s,"ems__Effort_resolutionTimestamp",i),await this.fsAdapter.updateFile(e,s),{success:!0,command:t.command,filepath:t.filepath,action:"Completed task",changes:{status:"Done",endTimestamp:i,resolutionTimestamp:i}}}async executeTrash(e,t){let n=await this.fsAdapter.readFile(e),i=this.getCurrentTimestamp(),s=this.frontmatterService.updateProperty(n,"ems__Effort_status",'"[[ems__EffortStatusTrashed]]"');return s=this.frontmatterService.updateProperty(s,"ems__Effort_resolutionTimestamp",i),await this.fsAdapter.updateFile(e,s),{success:!0,command:t.command,filepath:t.filepath,action:"Trashed task",changes:{status:"Trashed",resolutionTimestamp:i}}}async executeArchive(e,t){let n=await this.fsAdapter.readFile(e),i=this.frontmatterService.updateProperty(n,"archived","true");return i=this.frontmatterService.removeProperty(i,"aliases"),await this.fsAdapter.updateFile(e,i),{success:!0,command:t.command,filepath:t.filepath,action:"Archived task",changes:{archived:!0,aliasesRemoved:!0}}}async executeStatusUpdate(e,t,n,i){let s=await this.fsAdapter.readFile(e),a=this.frontmatterService.updateProperty(s,"ems__Effort_status",`"[[${n}]]"`);return await this.fsAdapter.updateFile(e,a),{success:!0,command:t.command,filepath:t.filepath,action:i,changes:{status:n.replace("ems__EffortStatus","")}}}async executeUpdateLabel(e,t){let n=t.options?.label;if(!n||n.trim()==="")return{success:!1,command:t.command,filepath:t.filepath,error:'Missing required option: "label"'};let i=n.trim(),s=await this.fsAdapter.readFile(e),a=this.frontmatterService.updateProperty(s,"exo__Asset_label",`"${i}"`);return await this.fsAdapter.updateFile(e,a),{success:!0,command:t.command,filepath:t.filepath,action:`Updated label to "${i}"`,changes:{label:i}}}async executeSchedule(e,t){let n=t.options?.date;if(!n)return{success:!1,command:t.command,filepath:t.filepath,error:'Missing required option: "date"'};if(!/^\d{4}-\d{2}-\d{2}$/.test(n))return{success:!1,command:t.command,filepath:t.filepath,error:`Invalid date format: ${n}. Expected YYYY-MM-DD`};let i=await this.fsAdapter.readFile(e),s=pa.DateFormatter.toTimestampAtStartOfDay(n),a=this.frontmatterService.updateProperty(i,"ems__Effort_scheduledTimestamp",s);return await this.fsAdapter.updateFile(e,a),{success:!0,command:t.command,filepath:t.filepath,action:`Scheduled for ${n}`,changes:{scheduledTimestamp:s}}}async executeSetDeadline(e,t){let n=t.options?.date;if(!n)return{success:!1,command:t.command,filepath:t.filepath,error:'Missing required option: "date"'};if(!/^\d{4}-\d{2}-\d{2}$/.test(n))return{success:!1,command:t.command,filepath:t.filepath,error:`Invalid date format: ${n}. Expected YYYY-MM-DD`};let i=await this.fsAdapter.readFile(e),s=pa.DateFormatter.toTimestampAtStartOfDay(n),a=this.frontmatterService.updateProperty(i,"ems__Effort_deadlineTimestamp",s);return await this.fsAdapter.updateFile(e,a),{success:!0,command:t.command,filepath:t.filepath,action:`Set deadline to ${n}`,changes:{deadlineTimestamp:s}}}};function r8(r,e){if(r==="json"){let t=Bt.success(e,{durationMs:e.durationMs,itemCount:e.total});console.log(JSON.stringify(t,null,2))}else{if(console.log(`
256
256
  \u{1F4E6} Batch Execution ${e.success?"Complete":"Failed"}`),console.log(` Total: ${e.total} operations`),console.log(` \u2705 Succeeded: ${e.succeeded}`),console.log(` \u274C Failed: ${e.failed}`),console.log(` \u23F1\uFE0F Duration: ${e.durationMs}ms`),e.atomic&&console.log(` \u{1F512} Atomic mode: ${e.rolledBack?"Rolled back":"Committed"}`),e.failed>0){console.log(`
257
257
  \u{1F4CB} Failed Operations:`);for(let t of e.results.filter(n=>!n.success))console.log(` \u274C ${t.command} ${t.filepath}: ${t.error}`)}if(e.succeeded>0&&r==="text"){console.log(`
258
- \u{1F4CB} Successful Operations:`);for(let t of e.results.filter(n=>n.success))console.log(` \u2705 ${t.command} ${t.filepath}: ${t.action}`)}}}o(r8,"outputResult");function TS(){return new gn("batch").description("Execute multiple operations in a single CLI invocation").option("--vault <path>","Path to Obsidian vault",process.cwd()).option("--input <json>","JSON array of operations to execute").option("--file <path>","Path to JSON file containing operations").option("--atomic","All-or-nothing execution (rollback on any failure)").option("--dry-run","Preview changes without modifying files").option("--format <type>","Output format: text|json (default: text)","text").action(async r=>{let e=r.format||"text";Pe.setFormat(e);try{let t=(0,Jm.resolve)(r.vault),n;if(r.input)n=r.input;else if(r.file){let c=(0,Jm.resolve)(r.file);if(!Xm.default.existsSync(c))throw new st(`Batch file not found: ${c}`,"exocortex batch --file operations.json");n=await Xm.default.readFile(c,"utf-8")}else throw new st("Either --input or --file option is required",`exocortex batch --input '[{"command":"start","filepath":"task.md"}]' or exocortex batch --file operations.json`);let i=Ro.parseInput(n);if(i.length===0)throw new st("Batch input contains no operations",`exocortex batch --input '[{"command":"start","filepath":"task.md"}]'`);let a=await new Ro(t,r.dryRun).executeBatch(i,r.atomic);r8(e,a),process.exit(a.success?0:5)}catch(t){Pe.handle(t)}})}o(TS,"batchCommand");var ma=new gn;ma.name("exocortex").description("CLI tool for Exocortex knowledge management system").version("13.112.1");ma.command("sparql").description("SPARQL query execution").addCommand(dv());ma.addCommand(SS());ma.addCommand(ES());ma.addCommand(TS());ma.parse();
258
+ \u{1F4CB} Successful Operations:`);for(let t of e.results.filter(n=>n.success))console.log(` \u2705 ${t.command} ${t.filepath}: ${t.action}`)}}}o(r8,"outputResult");function TS(){return new gn("batch").description("Execute multiple operations in a single CLI invocation").option("--vault <path>","Path to Obsidian vault",process.cwd()).option("--input <json>","JSON array of operations to execute").option("--file <path>","Path to JSON file containing operations").option("--atomic","All-or-nothing execution (rollback on any failure)").option("--dry-run","Preview changes without modifying files").option("--format <type>","Output format: text|json (default: text)","text").action(async r=>{let e=r.format||"text";Pe.setFormat(e);try{let t=(0,Jm.resolve)(r.vault),n;if(r.input)n=r.input;else if(r.file){let c=(0,Jm.resolve)(r.file);if(!Xm.default.existsSync(c))throw new st(`Batch file not found: ${c}`,"exocortex batch --file operations.json");n=await Xm.default.readFile(c,"utf-8")}else throw new st("Either --input or --file option is required",`exocortex batch --input '[{"command":"start","filepath":"task.md"}]' or exocortex batch --file operations.json`);let i=Ro.parseInput(n);if(i.length===0)throw new st("Batch input contains no operations",`exocortex batch --input '[{"command":"start","filepath":"task.md"}]'`);let a=await new Ro(t,r.dryRun).executeBatch(i,r.atomic);r8(e,a),process.exit(a.success?0:5)}catch(t){Pe.handle(t)}})}o(TS,"batchCommand");var ma=new gn;ma.name("exocortex").description("CLI tool for Exocortex knowledge management system").version("13.112.3");ma.command("sparql").description("SPARQL query execution").addCommand(dv());ma.addCommand(SS());ma.addCommand(ES());ma.addCommand(TS());ma.parse();
259
259
  /*! Bundled license information:
260
260
 
261
261
  reflect-metadata/Reflect.js:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "exocortex-cli",
3
- "version": "13.112.1",
3
+ "version": "13.112.3",
4
4
  "description": "CLI tool for Exocortex knowledge management system - SPARQL queries, task management, and more",
5
5
  "main": "dist/index.js",
6
6
  "bin": {