exocortex-cli 13.103.1 → 13.103.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.103.1
2
+ // exocortex-cli v13.103.3
3
3
  // CLI tool for Exocortex knowledge management system - SPARQL queries, task management, and more
4
4
  // License: MIT
5
5
 
@@ -92,7 +92,7 @@ ${n}
92
92
  `,n=this.composePrefixes(t),s=this.serializePrefixes(n,i),a=this.nTriplesSerializer.serialize(e,{newline:i}).trimEnd();return s?a?`${s}${i}${i}${a}${i}`:`${s}${i}`:a?`${a}${i}`:""}serializePrefixes(e,t){let i=Object.entries(e);return i.length===0?"":i.map(([n,s])=>`@prefix ${n}: <${s}> .`).join(t)}composePrefixes(e){return e.includeDefaultPrefixes??!0?{...MA,...e.prefixes??{}}:{...e.prefixes??{}}}serializeTriplesOnly(e,t){return this.nTriplesSerializer.serializeChunk(e,t).trimEnd()}};Yc.TurtleSerializer=Td});var K0=y(Qc=>{"use strict";Object.defineProperty(Qc,"__esModule",{value:!0});Qc.JSONLDSerializer=void 0;var H0=xt(),z0=pi(),LA=Ht(),xs=ji(),VA={rdf:xs.Namespace.RDF.iri.value,rdfs:xs.Namespace.RDFS.iri.value,owl:xs.Namespace.OWL.iri.value,xsd:xs.Namespace.XSD.iri.value,exo:xs.Namespace.EXO.iri.value,ems:xs.Namespace.EMS.iri.value},Ad=class{static{o(this,"JSONLDSerializer")}toDocument(e,t={}){let i={...VA,...t.context??{}},n=new Map;for(let s of e){let a=this.subjectToId(s.subject),c=this.compactIri(s.predicate.value,i),u=this.objectToJSONLD(s.object,i),f=n.get(a)??{"@id":a},l=f[c];l===void 0?f[c]=u:Array.isArray(l)?l.push(u):f[c]=[l,u],n.set(a,f)}return{"@context":i,"@graph":Array.from(n.values())}}serialize(e,t={}){let i=this.toDocument(e,t),n=t.pretty?t.indent??2:void 0;return JSON.stringify(i,null,n)}subjectToId(e){return e instanceof H0.IRI?e.value:e instanceof z0.BlankNode?`_:${e.id}`:String(e)}compactIri(e,t){for(let[i,n]of Object.entries(t))if(e.startsWith(n)){let s=e.slice(n.length);if(s.length>0)return`${i}:${s}`}return e}objectToJSONLD(e,t){if(e instanceof H0.IRI)return{"@id":e.value};if(e instanceof z0.BlankNode)return{"@id":`_:${e.id}`};if(e instanceof LA.Literal){let i={"@value":e.value};return e.datatype?i["@type"]=this.compactIri(e.datatype.value,t):e.language&&(i["@language"]=e.language),i}return e}};Qc.JSONLDSerializer=Ad});var Cd=y(Jc=>{"use strict";Object.defineProperty(Jc,"__esModule",{value:!0});Jc.NTriplesParser=void 0;var qA=kn(),Y0=xt(),xd=Ht(),BA=pi(),Os=ji(),UA={rdf:Os.Namespace.RDF.iri.value,rdfs:Os.Namespace.RDFS.iri.value,owl:Os.Namespace.OWL.iri.value,xsd:Os.Namespace.XSD.iri.value,exo:Os.Namespace.EXO.iri.value,ems:Os.Namespace.EMS.iri.value},Od=class{static{o(this,"NTriplesParser")}parse(e,t={}){let i={prefixes:{...UA,...t.prefixes??{}},strict:t.strict??!1},n=[];return e.split(/\r?\n/).forEach((a,c)=>{let u=a.trim();!u||u.startsWith("#")||n.push(this.parseLine(u,c+1,i))}),n}parseLine(e,t,i){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,i);s=a.rest.trim();let c=this.parsePredicate(s,t,i);s=c.rest.trim();let u=this.parseObject(s,t,i);if(s=u.rest.trim(),s.length>0)throw new Error(`Unexpected tokens after object at line ${t}`);return new qA.Triple(a.node,c.node,u.node)}parseSubject(e,t,i){return e.startsWith("<")?this.consumeIRI(e,t,i):e.startsWith("_:")?this.consumeBlankNode(e,t):this.consumePrefixedName(e,t,i)}parsePredicate(e,t,i){return e.startsWith("<")?this.consumeIRI(e,t,i):this.consumePrefixedName(e,t,i)}parseObject(e,t,i){return e.startsWith("<")?this.consumeIRI(e,t,i):e.startsWith("_:")?this.consumeBlankNode(e,t):e.startsWith('"')?this.consumeLiteral(e,t,i):this.consumePrefixedName(e,t,i)}consumePrefixedName(e,t,i){let n=e.match(/^([a-zA-Z_][\w-]*):([^\s]+)(?:\s+(.*))?$/);if(!n)throw new Error(`Invalid token at line ${t}: ${e}`);let[,s,a,c]=n,u=i.prefixes[s];if(!u)throw new Error(`Unknown prefix "${s}" at line ${t}`);return{node:new Y0.IRI(`${u}${a}`),rest:(c??"").trimStart()}}consumeIRI(e,t,i){let n=this.findClosingBracket(e,"<",">");if(n===-1)throw new Error(`Invalid IRI at line ${t}`);let s=e.slice(1,n),a=new Y0.IRI(s),c=e.slice(n+1).trimStart();return{node:a,rest:c}}consumeBlankNode(e,t){let i=e.match(/^_:(\w+)(?:\s+(.*))?$/);if(!i)throw new Error(`Invalid blank node identifier at line ${t}`);let[,n,s]=i;return{node:new BA.BlankNode(n),rest:(s??"").trimStart()}}consumeLiteral(e,t,i){let{value:n,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,i):this.consumePrefixedName(a,t,i);return{node:new xd.Literal(n,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 xd.Literal(n,void 0,u),rest:(f??"").trimStart()}}return{node:new xd.Literal(n),rest:a}}consumeQuotedString(e,t){if(!e.startsWith('"'))throw new Error(`Expected quoted string at line ${t}`);let i="";for(let n=1;n<e.length;n++){let s=e[n];if(s==="\\"){if(n+1>=e.length)throw new Error(`Invalid escape sequence at line ${t}`);let a=e[n+1];switch(a){case"t":i+=" ",n+=1;break;case"b":i+="\b",n+=1;break;case"n":i+=`
93
93
  `,n+=1;break;case"r":i+="\r",n+=1;break;case"f":i+="\f",n+=1;break;case'"':i+='"',n+=1;break;case"\\":i+="\\",n+=1;break;case"u":{let c=e.slice(n+2,n+6);if(c.length!==4||!/^[0-9a-fA-F]{4}$/.test(c))throw new Error(`Invalid \\u escape at line ${t}`);i+=String.fromCharCode(parseInt(c,16)),n+=5;break}case"U":{let c=e.slice(n+2,n+10);if(c.length!==8||!/^[0-9a-fA-F]{8}$/.test(c))throw new Error(`Invalid \\U escape at line ${t}`);i+=String.fromCodePoint(parseInt(c,16)),n+=9;break}default:throw new Error(`Unknown escape sequence \\${a} at line ${t}`)}continue}if(s==='"'){let a=e.slice(n+1);return{value:i,rest:a}}i+=s}throw new Error(`Unterminated string literal at line ${t}`)}findClosingBracket(e,t,i){let n=0;for(let s=0;s<e.length;s++){let a=e[s];if(a===t){n++;continue}if(a===i&&(n--,n===0))return s}return-1}};Jc.NTriplesParser=Od});var Q0=y(Xc=>{"use strict";Object.defineProperty(Xc,"__esModule",{value:!0});Xc.TurtleParser=void 0;var Cs=ji(),$A=Cd(),WA={rdf:Cs.Namespace.RDF.iri.value,rdfs:Cs.Namespace.RDFS.iri.value,owl:Cs.Namespace.OWL.iri.value,xsd:Cs.Namespace.XSD.iri.value,exo:Cs.Namespace.EXO.iri.value,ems:Cs.Namespace.EMS.iri.value},GA=/^@prefix\s+([a-zA-Z_][\w-]*):\s*<([^>]+)>\s*\.$/,Fd=class{static{o(this,"TurtleParser")}constructor(){this.nTriplesParser=new $A.NTriplesParser}parse(e,t={}){let i={...WA,...t.prefixes??{}},n=this.collectStatements(e),s=[];return n.forEach(({statement:a,lineNumber:c})=>{if(this.isPrefixStatement(a)){let f=a.match(GA);if(!f)throw new Error(`Invalid prefix declaration at line ${c}`);let[,l,h]=f;i[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:i,strict:!1}))}),s}collectStatements(e){let t=e.split(/\r?\n/),i=[],n="",s=0;if(t.forEach((a,c)=>{let u=a.trim();!u||u.startsWith("#")||(n||(s=c+1),n=n?`${n} ${u}`:u,u.endsWith(".")&&(i.push({statement:n,lineNumber:s}),n=""))}),n)throw new Error(`Unterminated Turtle statement near line ${s}`);return i}isPrefixStatement(e){return e.startsWith("@prefix")}normalizeShortcuts(e){return e.includes(" a ")?e.replace(/\sa\s/g," rdf:type "):e}};Xc.TurtleParser=Fd});var J0=y(Zc=>{"use strict";Object.defineProperty(Zc,"__esModule",{value:!0});Zc.RDFSerializer=void 0;var Fs=kn(),Kn=xt(),Ps=Ht(),Pd=pi(),yi=ji(),HA=G0(),zA=Ed(),KA=K0(),YA=Q0(),QA=Cd(),JA=1024,XA=`
94
94
  `,ZA={rdf:yi.Namespace.RDF.iri.value,rdfs:yi.Namespace.RDFS.iri.value,owl:yi.Namespace.OWL.iri.value,xsd:yi.Namespace.XSD.iri.value,exo:yi.Namespace.EXO.iri.value,ems:yi.Namespace.EMS.iri.value},Id=class{static{o(this,"RDFSerializer")}constructor(e){this.store=e,this.turtleSerializer=new HA.TurtleSerializer,this.nTriplesSerializer=new zA.NTriplesSerializer,this.jsonldSerializer=new KA.JSONLDSerializer,this.turtleParser=new YA.TurtleParser,this.nTriplesParser=new QA.NTriplesParser}async serialize(e,t={}){let i=await this.store.match();return this.serializeTriples(i,e,t)}serializeTriples(e,t,i={}){switch(t){case"turtle":return this.turtleSerializer.serialize(e,{prefixes:i.prefixes,includeDefaultPrefixes:i.includeDefaultPrefixes,newline:i.newline});case"n-triples":return this.nTriplesSerializer.serialize(e,{newline:i.newline});case"json-ld":return this.jsonldSerializer.serialize(e,{context:i.prefixes,pretty:i.pretty,indent:i.indent});default:throw new Error(`Unsupported serialization format: ${t}`)}}stream(e,t={}){let i=t.newline??XA,n=t.batchSize??JA,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 S=c.jsonldSerializer.toDocument(l,{context:a,pretty:!1});f.push(...c.buildJsonLdChunks(S))}else if(e==="turtle"){let S=c.turtleSerializer.serializePrefixes(c.composePrefixes(a,s),i);S&&f.push(`${S}${i}${i}`)}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 S=l.slice(h,h+n);h+=S.length;let b="";if(e==="turtle"){let x=c.turtleSerializer.serializeTriplesOnly(S,i);x&&(b=`${x}${i}`)}else e==="n-triples"&&(b=c.nTriplesSerializer.serializeChunk(S,i));return b?{value:b,done:!1}:this.next()},async return(){return f=[],l=[],h=0,{value:void 0,done:!0}},[Symbol.asyncIterator](){return this}}}async load(e,t,i={}){let n=this.parse(e,t,i);return i.mode!=="append"&&await this.store.clear(),await this.store.addAll(n),n.length}parse(e,t,i={}){switch(t){case"turtle":return this.turtleParser.parse(e,this.buildTurtleParseOptions(i));case"n-triples":return this.nTriplesParser.parse(e,this.buildNTriplesParseOptions(i));case"json-ld":return this.parseJsonLd(e,i);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?{...ZA,...e??{}}:{...e??{}}}parseJsonLd(e,t){let i;try{i=JSON.parse(e)}catch(f){throw new Error(`Invalid JSON-LD document: ${f.message}`)}let n=this.composePrefixes(t.prefixes,!0),s=this.extractContext(i),a={...n,...s},c=this.extractGraph(i),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,S]of p){if(g==="@id"||g==="@context")continue;if(g==="@type"){this.collectTypeTriples(h,S,u,a);continue}let b=this.expandTerm(g,a),x=new Kn.IRI(b);this.collectTriplesForValue(h,x,S,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 i={};return Object.entries(t).forEach(([n,s])=>{typeof s=="string"&&(i[n]=s)}),i}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,i){let n=e["@id"];if(typeof n=="string"){if(n.startsWith("_:"))return new Pd.BlankNode(n.slice(2));if(this.isAbsoluteIri(n))return new Kn.IRI(n);let s=this.expandTerm(n,t);return new Kn.IRI(s)}return new Pd.BlankNode(`jsonld_${i}`)}collectTypeTriples(e,t,i,n){let s=yi.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,n);i.push(new Fs.Triple(e,s,new Kn.IRI(u)))})}collectTriplesForValue(e,t,i,n,s){if(i!=null){if(Array.isArray(i)){i.forEach(a=>this.collectTriplesForValue(e,t,a,n,s));return}if(typeof i=="object"){let a=i;if(typeof a["@id"]=="string"){let c=this.parseIdNode(a["@id"],s);n.push(new Fs.Triple(e,t,c));return}if(a["@value"]!==void 0){let c=this.parseLiteralObject(a,s);n.push(new Fs.Triple(e,t,c));return}}if(typeof i=="string"){n.push(new Fs.Triple(e,t,new Ps.Literal(i)));return}if(typeof i=="number"){let a=Number.isInteger(i)?yi.Namespace.XSD.term("integer"):yi.Namespace.XSD.term("decimal");n.push(new Fs.Triple(e,t,new Ps.Literal(i.toString(),a)));return}if(typeof i=="boolean"){let a=yi.Namespace.XSD.term("boolean");n.push(new Fs.Triple(e,t,new Ps.Literal(i.toString(),a)));return}throw new Error("Unsupported JSON-LD value encountered")}}parseIdNode(e,t){if(e.startsWith("_:"))return new Pd.BlankNode(e.slice(2));if(this.isAbsoluteIri(e))return new Kn.IRI(e);let i=this.expandTerm(e,t);return new Kn.IRI(i)}parseLiteralObject(e,t){let i=e["@value"];if(typeof i!="string")throw new Error("JSON-LD literal values must be strings");if(typeof e["@language"]=="string")return new Ps.Literal(i,void 0,e["@language"]);if(typeof e["@type"]=="string"){let n=this.expandTerm(e["@type"],t);return new Ps.Literal(i,new Kn.IRI(n))}return new Ps.Literal(i)}expandTerm(e,t){if(this.isAbsoluteIri(e))return e;let i=e.indexOf(":");if(i>0){let s=e.slice(0,i),a=e.slice(i+1),c=t[s];if(!c)throw new Error(`Unknown prefix "${s}" in JSON-LD document`);return`${c}${a}`}let n=t["@vocab"];if(n)return`${n}${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=[],i=JSON.stringify(e["@context"]);return t.push(`{"@context":${i},"@graph":[`),e["@graph"].forEach((n,s)=>{let a=JSON.stringify(n);s>0?t.push(`,${a}`):t.push(a)}),t.push(`]}
95
- `),t}};Zc.RDFSerializer=Id});var X0=y(an=>{"use strict";Object.defineProperty(an,"__esModule",{value:!0});an.TransactionError=an.TripleNotFoundError=an.TripleAlreadyExistsError=void 0;var Dd=class extends Error{static{o(this,"TripleAlreadyExistsError")}constructor(e){super(`Triple already exists: ${e.toString()}`),this.name="TripleAlreadyExistsError"}};an.TripleAlreadyExistsError=Dd;var Rd=class extends Error{static{o(this,"TripleNotFoundError")}constructor(e){super(`Triple not found: ${e.toString()}`),this.name="TripleNotFoundError"}};an.TripleNotFoundError=Rd;var Nd=class extends Error{static{o(this,"TransactionError")}constructor(e){super(e),this.name="TransactionError"}};an.TransactionError=Nd});var jd=y(eu=>{"use strict";Object.defineProperty(eu,"__esModule",{value:!0});eu.LRUCache=void 0;var kd=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 i=this.cache.keys().next().value;i!==void 0&&this.cache.delete(i)}this.cache.set(e,t)}clear(){this.cache.clear()}size(){return this.cache.size}};eu.LRUCache=kd});var Z0=y(tu=>{"use strict";Object.defineProperty(tu,"__esModule",{value:!0});tu.InMemoryTripleStore=void 0;var on=X0(),ex=xt(),tx=pi(),rx=Ht(),ix=jd(),Md=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 ix.LRUCache(1e3)}async add(e){let t=this.getTripleKey(e);if(this.triples.has(t))return;this.triples.set(t,e);let i=this.getNodeKey(e.subject),n=this.getNodeKey(e.predicate),s=this.getNodeKey(e.object);this.addToIndex(this.spo,i,n,s),this.addToIndex(this.sop,i,s,n),this.addToIndex(this.pso,n,i,s),this.addToIndex(this.pos,n,s,i),this.addToIndex(this.osp,s,i,n),this.addToIndex(this.ops,s,n,i),this.queryCache.clear()}async remove(e){let t=this.getTripleKey(e);if(!this.triples.has(t))return!1;this.triples.delete(t);let i=this.getNodeKey(e.subject),n=this.getNodeKey(e.predicate),s=this.getNodeKey(e.object);return this.removeFromIndex(this.spo,i,n,s),this.removeFromIndex(this.sop,i,s,n),this.removeFromIndex(this.pso,n,i,s),this.removeFromIndex(this.pos,n,s,i),this.removeFromIndex(this.osp,s,i,n),this.removeFromIndex(this.ops,s,n,i),this.queryCache.clear(),!0}async has(e){let t=this.getTripleKey(e);return this.triples.has(t)}async match(e,t,i){let n=this.getMatchCacheKey(e,t,i),s=this.queryCache.get(n);if(s!==void 0)return s;let a;return!e&&!t&&!i?a=Array.from(this.triples.values()):e&&t&&i?a=this.matchSPO(e,t,i):e&&t?a=this.matchSP(e,t):e&&i?a=this.matchSO(e,i):t&&i?a=this.matchPO(t,i):e?a=this.matchS(e):t?a=this.matchP(t):i?a=this.matchO(i):a=[],this.queryCache.set(n,a),a}async addAll(e){for(let t of e)await this.add(t)}async removeAll(e){let t=0;for(let i of e)await this.remove(i)&&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 Ld(this)}matchSPO(e,t,i){let n=this.getNodeKey(e),s=this.getNodeKey(t),a=this.getNodeKey(i),c=this.spo.get(n);if(!c)return[];let u=c.get(s);if(!u)return[];if(u.has(a)){let f=this.buildTripleKey(n,s,a),l=this.triples.get(f);return l?[l]:[]}return[]}matchSP(e,t){let i=this.getNodeKey(e),n=this.getNodeKey(t),s=this.spo.get(i);if(!s)return[];let a=s.get(n);return a?this.getTriplesByKeys(Array.from(a).map(c=>this.buildTripleKey(i,n,c))):[]}matchSO(e,t){let i=this.getNodeKey(e),n=this.getNodeKey(t),s=this.sop.get(i);if(!s)return[];let a=s.get(n);return a?this.getTriplesByKeys(Array.from(a).map(c=>this.buildTripleKey(i,c,n))):[]}matchPO(e,t){let i=this.getNodeKey(e),n=this.getNodeKey(t),s=this.pos.get(i);if(!s)return[];let a=s.get(n);return a?this.getTriplesByKeys(Array.from(a).map(c=>this.buildTripleKey(c,i,n))):[]}matchS(e){let t=this.getNodeKey(e),i=this.spo.get(t);if(!i)return[];let n=[];for(let[s,a]of i.entries())for(let c of a)n.push(this.buildTripleKey(t,s,c));return this.getTriplesByKeys(n)}matchP(e){let t=this.getNodeKey(e),i=this.pso.get(t);if(!i)return[];let n=[];for(let[s,a]of i.entries())for(let c of a)n.push(this.buildTripleKey(s,t,c));return this.getTriplesByKeys(n)}matchO(e){let t=this.getNodeKey(e),i=this.osp.get(t);if(!i)return[];let n=[];for(let[s,a]of i.entries())for(let c of a)n.push(this.buildTripleKey(s,c,t));return this.getTriplesByKeys(n)}getTriplesByKeys(e){let t=[];for(let i of e){let n=this.triples.get(i);n&&t.push(n)}return t}addToIndex(e,t,i,n){e.has(t)||e.set(t,new Map);let s=e.get(t);s.has(i)||s.set(i,new Set),s.get(i).add(n)}removeFromIndex(e,t,i,n){let s=e.get(t);if(!s)return;let a=s.get(i);a&&(a.delete(n),a.size===0&&s.delete(i),s.size===0&&e.delete(t))}getTripleKey(e){let t=this.getNodeKey(e.subject),i=this.getNodeKey(e.predicate),n=this.getNodeKey(e.object);return this.buildTripleKey(t,i,n)}buildTripleKey(e,t,i){return`${e}|${t}|${i}`}getNodeKey(e){if(e instanceof ex.IRI)return`i:${e.value}`;if(e instanceof tx.BlankNode)return`b:${e.id}`;if(e instanceof rx.Literal){let t=`l:${e.value}`;return e.datatype?t+=`^^${e.datatype.value}`:e.language&&(t+=`@${e.language}`),t}return""}getMatchCacheKey(e,t,i){let n=e?this.getNodeKey(e):"?",s=t?this.getNodeKey(t):"?",a=i?this.getNodeKey(i):"?";return`${n}|${s}|${a}`}};tu.InMemoryTripleStore=Md;var Ld=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 on.TransactionError("Transaction already committed");if(this.rolledBack)throw new on.TransactionError("Transaction already rolled back");this.operations.push({type:"add",triple:e})}async remove(e){if(this.committed)throw new on.TransactionError("Transaction already committed");if(this.rolledBack)throw new on.TransactionError("Transaction already rolled back");return this.operations.push({type:"remove",triple:e}),!0}async commit(){if(this.committed)throw new on.TransactionError("Transaction already committed");if(this.rolledBack)throw new on.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 on.TransactionError("Transaction already committed");if(this.rolledBack)throw new on.TransactionError("Transaction already rolled back");this.operations=[],this.rolledBack=!0}}});var tg=y(ru=>{"use strict";Object.defineProperty(ru,"__esModule",{value:!0});ru.RDFVocabularyMapper=void 0;var gr=kn(),eg=xt(),he=ji(),Vd=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 gr.Triple(he.Namespace.EXO.term("Asset"),he.Namespace.RDFS.term("subClassOf"),he.Namespace.RDFS.term("Resource"))),e.push(new gr.Triple(he.Namespace.EXO.term("Class"),he.Namespace.RDFS.term("subClassOf"),he.Namespace.RDFS.term("Class"))),e.push(new gr.Triple(he.Namespace.EXO.term("Property"),he.Namespace.RDFS.term("subClassOf"),he.Namespace.RDF.term("Property"))),e.push(new gr.Triple(he.Namespace.EMS.term("Task"),he.Namespace.RDFS.term("subClassOf"),he.Namespace.EXO.term("Asset"))),e.push(new gr.Triple(he.Namespace.EMS.term("Project"),he.Namespace.RDFS.term("subClassOf"),he.Namespace.EXO.term("Asset"))),e.push(new gr.Triple(he.Namespace.EMS.term("Area"),he.Namespace.RDFS.term("subClassOf"),he.Namespace.EXO.term("Asset"))),e}generatePropertyHierarchyTriples(){let e=[];return e.push(new gr.Triple(he.Namespace.EXO.term("Instance_class"),he.Namespace.RDFS.term("subPropertyOf"),he.Namespace.RDF.term("type"))),e.push(new gr.Triple(he.Namespace.EXO.term("Asset_isDefinedBy"),he.Namespace.RDFS.term("subPropertyOf"),he.Namespace.RDFS.term("isDefinedBy"))),e.push(new gr.Triple(he.Namespace.EXO.term("Class_superClass"),he.Namespace.RDFS.term("subPropertyOf"),he.Namespace.RDFS.term("subClassOf"))),e.push(new gr.Triple(he.Namespace.EXO.term("Property_range"),he.Namespace.RDFS.term("subPropertyOf"),he.Namespace.RDFS.term("range"))),e.push(new gr.Triple(he.Namespace.EXO.term("Property_domain"),he.Namespace.RDFS.term("subPropertyOf"),he.Namespace.RDFS.term("domain"))),e.push(new gr.Triple(he.Namespace.EXO.term("Property_superProperty"),he.Namespace.RDFS.term("subPropertyOf"),he.Namespace.RDFS.term("subPropertyOf"))),e}generateMappedTriple(e,t,i){let n=this.propertyMappings.get(t);if(!n)return null;let s;if(i instanceof eg.IRI)s=i;else{let a=i.match(/^(ems|exo)__(.+)$/);if(a){let[,c,u]=a;s=(c==="ems"?he.Namespace.EMS:he.Namespace.EXO).term(u)}else s=new eg.IRI(i)}return new gr.Triple(e,n,s)}hasMappingFor(e){return this.propertyMappings.has(e)}};ru.RDFVocabularyMapper=Vd});var Bd=y(ei=>{"use strict";var nx=ei&&ei.__decorate||function(r,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,i);else for(var c=r.length-1;c>=0;c--)(a=r[c])&&(s=(n<3?a(s):n>3?a(e,t,s):a(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},sx=ei&&ei.__metadata||function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},ax=ei&&ei.__param||function(r,e){return function(t,i){e(t,i,r)}};Object.defineProperty(ei,"__esModule",{value:!0});ei.NoteToRDFConverter=void 0;var rg=Qe(),ig=kn(),ox=xt(),Yn=Ht(),cn=ji(),cx=tt(),qd=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 i=[],n=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);i.push(new ig.Triple(n,c,l))}if(s==="exo__Instance_class")for(let f of u){let l=this.expandClassValue(f);if(l){let h=cn.Namespace.RDF.term("type");i.push(new ig.Triple(n,h,l))}}}return i}async convertVault(){let e=this.vault.getAllFiles(),t=[];for(let i of e)try{let n=await this.convertNote(i);t.push(...n)}catch(n){throw console.error(`\u274C Error converting note: ${i.path}`),console.error(` Error: ${n instanceof Error?n.message:String(n)}`),n}return t}notePathToIRI(e){let t=encodeURIComponent(e);return new ox.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 cn.Namespace.EXO.term(t)}if(e.startsWith("ems__")){let t=e.substring(5);return cn.Namespace.EMS.term(t)}throw new Error(`Invalid property key: ${e}`)}async valueToRDFObject(e,t){if(typeof e=="string"){let i=this.removeQuotes(e),n=this.extractWikilink(i);if(n){let s=this.vault.getFirstLinkpathDest(n,t.path);return s?this.notePathToIRI(s.path):new Yn.Literal(i)}if(this.isClassReference(i)){let s=this.expandClassValue(i);if(s)return s}return this.isISO8601DateTime(i)?new Yn.Literal(i,cn.Namespace.XSD.term("dateTime")):new Yn.Literal(i)}return typeof e=="boolean"?new Yn.Literal(e.toString()):typeof e=="number"?new Yn.Literal(e.toString(),cn.Namespace.XSD.term("decimal")):e instanceof Date?new Yn.Literal(e.toISOString(),cn.Namespace.XSD.term("dateTime")):new Yn.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 i=t.substring(5);return cn.Namespace.EMS.term(i)}if(t.startsWith("exo__")){let i=t.substring(5);return cn.Namespace.EXO.term(i)}return null}};ei.NoteToRDFConverter=qd;ei.NoteToRDFConverter=qd=nx([(0,rg.injectable)(),ax(0,(0,rg.inject)(cx.DI_TOKENS.IVaultAdapter)),sx("design:paramtypes",[Object])],qd)});var Ud=y((NN,ng)=>{var Is=class{static{o(this,"Wildcard")}constructor(){return ux||this}equals(e){return e&&this.termType===e.termType}};Object.defineProperty(Is.prototype,"value",{enumerable:!0,value:"*"});Object.defineProperty(Is.prototype,"termType",{enumerable:!0,value:"Wildcard"});var ux=new Is;ng.exports.Wildcard=Is});var ag=y((jN,sg)=>{var lx=(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],i=[100,110,113,115,116,123,126,131,329,330,331,332,333],n=[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],S=[123,126],b=[1,67],x=[39,45,87],F=[13,16,45,197,224,308],P=[1,87],V=[2,281],H=[1,86],K=[13,16,45,82,87,89,231,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312],Pe=[6,28,29,53,63,70,73,81,83,85],Ze=[6,13,16,28,29,53,63,70,73,81,83,85,87,308],ct=[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],Xe=[13,16,112,132,308],$e=[1,111],He=[1,117],Ie=[112,132,327,328,334],Ne=[13,16,112,132,308,328],Ce=[28,29,45,53,87],W=[1,138],R=[1,151],ke=[1,128],qe=[1,127],j=[1,129],le=[1,140],Se=[1,141],$=[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],ie=[1,175],ne=[1,176],ae=[1,167],U=[1,168],G=[1,169],oe=[1,170],De=[1,157],Oe=[1,166],Ae=[1,161],_=[1,162],v=[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],Ke=[6,31,73,81,83,85],me=[2,285],N=[1,199],k=[1,201],M=[6,31,70,73,81,83,85],L=[2,283],de=[1,207],je=[1,218],Me=[1,223],Et=[1,219],ir=[1,225],hr=[1,226],Ut=[1,224],$m=[6,63,70,73,81,83,85],Wm=[1,236],Gm=[2,334],Hm=[1,243],zm=[1,241],Tt=[6,193],Co=[2,349],Km=[2,339],Xi=[28,128],Ym=[47,48,193,272],Fo=[47,48,193,242,272],cs=[47,48,193,242,246,272],us=[47,48,193,242,246,250,263,265,272,290,297,298,299,300,301,302,341,342,343,344,345,346],gt=[39,47,48,193,242,246,250,263,265,272,290,297,298,299,300,301,302,338,341,342,343,344,345,346],Qm=[1,271],Jm=[1,270],ut=[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],Xm=[1,281],Zm=[1,280],$t=[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],da=[45,89],Po=[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],Io=[13,16,31,82,174,294,295,296,297,298,299,300,301,302,303,304,305,306,308,312],Do=[31,89],Ro=[48,87],An=[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],oi=[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],e1=[1,313],ls=[6,85],Fl=[6,31,81,83,85],t1=[2,361],Oi=[2,353],xn=[1,343],pa=[31,112,335],Ci=[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],Pl=[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],r1=[6,109,193],On=[31,112],lt=[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],Il=[1,390],Dl=[1,391],Zi=[13,16,87,197,308,314],i1=[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],No=[1,417],ko=[1,418],n1=[13,16,48,197,229,308],en=[6,31,85],s1=[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],Rl=[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],Cn=[29,31,85,112,159,160,161,163,164],jo=[1,443],Mo=[1,444],a1=[1,449],Fn=[31,112,193,232,318,335],Lo=[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],o1=[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],Nl=[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],ma=[13,16,31,48,82,174,294,295,296,297,298,299,300,301,302,303,304,305,306,308,312],ga=[31,45],c1=[1,507],u1=[1,508],l1=[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],Vo=[29,31,85,112,159,160,161,163,164,335],Pn=[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],f1=[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],h1=[2,352],kl=[13,16,197,308,314],d1=[1,565],fs=[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],p1=[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],Fi=[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],m1=[13,16,87,308],Pi=[2,364],hs=[29,31,85,112,159,160,161,163,164,193,232,318,335],qo=[31,112,193,232,272,318,335],Ii=[2,359],g1=[13,16,48,82,174,294,295,296,297,298,299,300,301,302,303,304,305,306,308,312],Bo=[29,31,85,112,159,160,161,163,164,193,232,272,318,335],y1=[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],_1=[2,347],jl={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,Gt){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 et of d[m-1].updates)if(et.updateType==="insert"){let Le={};for(let Ue of et.insert)if(Ue.type==="bgp"||Ue.type==="graph")for(let nr of Ue.triples)nr.subject.termType==="BlankNode"&&(Le[nr.subject.value]=!0),nr.predicate.termType==="BlankNode"&&(Le[nr.predicate.value]=!0),nr.object.termType==="BlankNode"&&(Le[nr.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=ya(d[m]);break;case 5:ve.prefixes||(ve.prefixes={}),d[m-1]=d[m-1].substr(0,d[m-1].length-1),d[m]=ya(d[m]),ve.prefixes[d[m-1]]=d[m];break;case 6:this.$={...d[m-3],...Rn(d[m-2]),...d[m-1],...d[m]};break;case 7:if(!ve.skipValidation&&(Wl(d[m-3].variables.map(et=>$l(et.expression))).some(et=>et.aggregation==="count"&&!(et.expression instanceof Uo))||d[m].group)){for(let et of d[m-3].variables)if(et.termType==="Variable"){if(!d[m].group||!d[m].group.map(Le=>gs(Le)).includes(gs(et)))throw Error("Projection of ungrouped variable (?"+gs(et)+")")}else if($l(et.expression).length===0){let Le=vS(et.expression);for(let Ue of Le)if(!d[m].group||!d[m].group.map||!d[m].group.map(nr=>gs(nr)).includes(gs(Ue)))throw Error("Use of ungrouped variable in projection of operation (?"+gs(Ue)+")")}}let fi=d[m-1].where.filter(Ge=>Ge.type==="query");if(fi.length>0){let Ge=d[m-3].variables.filter(Le=>Le.variable&&Le.variable.value).map(Le=>Le.variable.value),et=Wl(fi.map(Le=>Le.variables)).map(Le=>Le.value||Le.variable.value);for(let Le of Ge)if(et.indexOf(Le)>=0)throw Error("Target id of 'AS' (?"+Le+") already used in subquery")}this.$=at(d[m-3],Rn(d[m-2]),d[m-1],d[m]);break;case 8:this.$=at({queryType:"CONSTRUCT",template:d[m-3]},Rn(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:[]},Rn(d[m-5]),{where:[{type:"bgp",triples:Dn([],d[m-2])}]},d[m]);break;case 10:this.$=at({queryType:"DESCRIBE",variables:d[m-3]==="*"?[new Uo]:d[m-3]},Rn(d[m-2]),d[m-1],d[m]);break;case 11:this.$=at({queryType:"ASK"},Rn(d[m-2]),d[m-1],d[m]);break;case 12:this.$=at(d[m-1],{variables:[new Uo]});break;case 13:let wa=d[m].map(Ge=>Ge.value||Ge.variable.value),ys=SS(wa);if(ys.length>0)throw Error("Two or more of the resulting columns have the same name (?"+ys[0]+")");this.$=at(d[m-1],{variables:d[m]});break;case 14:this.$=at({queryType:"SELECT"},d[m]&&(d[m-1]=Wt(d[m]),d[m]={},d[m][d[m-1]]=!0,d[m]));break;case 16:case 27:this.$=ds(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.$=ds(d[m]);break;case 26:this.$=ds(d[m-1]);break;case 29:this.$={having:d[m]};break;case 30:this.$={order:d[m]};break;case 32:this.$=ds(d[m],{descending:!0});break;case 35:this.$={limit:ms(d[m])};break;case 36:this.$={offset:ms(d[m])};break;case 37:this.$={limit:ms(d[m-2]),offset:ms(d[m])};break;case 38:this.$={limit:ms(d[m]),offset:ms(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 li=d[m-4].length;d[m-4]=d[m-4].map(Ml),this.$=d[m-1].map(function(Ge){if(Ge.length!==li)throw Error("Inconsistent VALUES length");for(var et={},Le=0;Le<li;Le++)et["?"+d[m-4][Le].value]=Ge[Le];return et});break;case 44:case 65:case 100:case 126:case 175:this.$=d[m-1];break;case 45:this.$={type:"update",updates:Di(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:Wt(d[m-2]),silent:!!d[m-1],graph:d[m]};break;case 48:this.$={type:Wt(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:F1(d[m])};break;case 51:this.$={updateType:"delete",delete:zl(F1(d[m]))};break;case 52:this.$={updateType:"deletewhere",delete:zl(d[m])};break;case 53:this.$={updateType:"insertdelete",...d[m-4],...d[m-3],...Rn(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.$={[Wt(d[m])]:!0};break;case 66:this.$=d[m-1]?ci(d[m],[d[m-1]]):ci(d[m]);break;case 67:var Sa=at(d[m-3]||{triples:[]},{type:"graph",name:d[m-5]});this.$=d[m]?[Sa,d[m]]:[Sa];break;case 68:case 73:this.$={type:"bgp",triples:ci(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(et=>et.type==="bind")){let et=d[m-1].indexOf(Ge),Le=new Set;for(let Ue of d[m-1].slice(0,et))(Ue.type==="group"||Ue.type==="bgp")&&O1(Ue).forEach(nr=>Le.add(nr));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]?ci([d[m-1]],d[m]):ci(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.$=va(d[m]);break;case 90:this.$=void 0;break;case 91:this.$=d[m-1].length?{type:"union",patterns:ci(d[m-1].map(Vl),[Vl(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:Di(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.$=Di(d[m-2],d[m-1]);break;case 101:this.$=ci(d[m-2],[d[m-1]]);break;case 102:case 112:this.$=Hl(d[m].map(Ge=>at(Ri(d[m-1]),Ge)));break;case 103:this.$=Hl(Dn(d[m].map(Ge=>at(Ri(d[m-1].entity),Ge)),d[m-1].triples));break;case 105:this.$=ci([d[m-1]],d[m]);break;case 106:this.$=ci(d[m]);break;case 107:this.$=Ul(d[m-1],d[m]);break;case 109:case 237:this.$=ve.factory.namedNode(uS);break;case 110:case 118:this.$=Di(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]?Hl(Dn(d[m].map(Ge=>at(Ri(d[m-1].entity),Ge)),d[m-1].triples)):d[m-1].triples;break;case 114:this.$=Ul(...d[m-1],d[m]);break;case 116:this.$=Ul(...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?ps("|",Di(d[m-1],d[m])):d[m];break;case 121:this.$=d[m-1].length?ps("/",Di(d[m-1],d[m])):d[m];break;case 122:this.$=d[m]?ps(d[m],[d[m-1]]):d[m-1];break;case 123:this.$=d[m-1]?ps(d[m-1],[d[m]]):d[m];break;case 125:case 131:this.$=ps(d[m-1],[d[m]]);break;case 129:this.$=ps("|",Di(d[m-2],d[m-1]));break;case 132:case 134:this.$=yS(d[m-1]);break;case 133:case 135:this.$=_S(d[m-1]);break;case 140:this.$={entity:d[m],triples:[]};break;case 145:this.$=Ml(d[m]);break;case 149:this.$=ve.factory.namedNode(v1);break;case 151:case 153:case 158:case 162:this.$=Ll(d[m-1],d[m]);break;case 152:this.$=["||",d[m]];break;case 154:this.$=["&&",d[m]];break;case 156:this.$=At(d[m-1],[d[m-2],d[m]]);break;case 157:this.$=At(d[m-2]?"notin":"in",[d[m-3],d[m]]);break;case 160:this.$=["+",Ll(d[m-1],d[m])];break;case 161:var Go=ui(d[m-1].value.replace("-",""),d[m-1].datatype);this.$=["-",Ll(Go,d[m])];break;case 164:this.$=At("UPLUS",[d[m]]);break;case 165:this.$=At(d[m-1],[d[m]]);break;case 166:this.$=At("UMINUS",[d[m]]);break;case 177:this.$=At(Wt(d[m-1]));break;case 178:this.$=At(Wt(d[m-3]),[d[m-1]]);break;case 179:this.$=va(At(Wt(d[m-3]),[d[m-1]]));break;case 180:this.$=At(Wt(d[m-5]),[d[m-3],d[m-1]]);break;case 181:this.$=At(Wt(d[m-7]),[d[m-5],d[m-3],d[m-1]]);break;case 182:this.$=va(At(Wt(d[m-7]),[d[m-5],d[m-3],d[m-1]]));break;case 183:this.$=At(Wt(d[m-1]),d[m]);break;case 184:this.$=At("bound",[Ml(d[m-1])]);break;case 185:this.$=At(d[m-1],[]);break;case 186:this.$=At(d[m-3],[d[m-1]]);break;case 187:this.$=At(d[m-2]?"notexists":"exists",[Vl(d[m])]);break;case 188:case 189:this.$=ds(d[m-1],{type:"aggregate",aggregation:Wt(d[m-4]),distinct:!!d[m-2]});break;case 190:this.$=ds(d[m-2],{type:"aggregate",aggregation:Wt(d[m-5]),distinct:!!d[m-3],separator:typeof d[m-1]=="string"?d[m-1]:" "});break;case 192:this.$=ui(d[m]);break;case 193:this.$=dS(d[m-1],Wt(d[m].substr(1)));break;case 194:this.$=ui(d[m-2],d[m]);break;case 195:case 204:this.$=ui(d[m],S1);break;case 196:case 205:this.$=ui(d[m],b1);break;case 197:case 206:this.$=ui(Wt(d[m]),w1);break;case 200:this.$=ui(d[m].toLowerCase(),hS);break;case 201:this.$=ui(d[m].substr(1),S1);break;case 202:this.$=ui(d[m].substr(1),b1);break;case 203:this.$=ui(d[m].substr(1).toLowerCase(),w1);break;case 207:case 208:this.$=x1(d[m],1);break;case 209:case 210:this.$=x1(d[m],3);break;case 211:this.$=ve.factory.namedNode(ya(d[m]));break;case 213:var Ho=d[m].indexOf(":"),ba=d[m].substr(0,Ho),zo=ve.prefixes[ba];if(!zo)throw new Error("Unknown prefix: "+ba);var nt=ya(zo+d[m].substr(Ho+1));this.$=ve.factory.namedNode(nt);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 nt=ya(ve.prefixes[d[m]]);this.$=ve.factory.namedNode(nt);break;case 215:this.$=_a(d[m].replace(/^(_:)/,""));break;case 216:this.$=_a();break;case 217:case 218:case 232:this.$=va(ql(d[m-3],d[m-2],d[m-1]));break;case 230:case 231:this.$=va(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(i,[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:n,16:n,45:n,197:n,224:n,229:n,308:n,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(S,[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:b,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:V,52:84,53:H,56:85},{19:88,28:P,29:V,52:89,53:H,56:85},r(u,[2,253],{26:90}),{28:[1,91],52:92,53:H},r(K,[2,385],{181:93,182:94,183:95,31:[2,383]}),r(Pe,[2,263],{34:96}),r(Pe,[2,261],{44:39,55:40,307:43,139:97,13:l,16:h,87:p,308:g}),r(Pe,[2,262]),r(Ze,[2,259]),r(ct,[2,143]),r(ct,[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:V,52:99,53:H,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(Xe,[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(Ie,[2,315]),r(Ie,[2,316]),r(Ne,[2,319]),r(Ne,[2,320]),r(Ne,[2,321]),r(S,[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:b,87:p}),r(Ce,[2,269]),r(Ce,[2,15]),{13:l,16:h,44:136,45:W,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:$,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:ie,302:ne,303:ae,304:U,305:G,306:oe,307:43,308:g,312:De,346:Oe,347:Ae,348:_,349:v,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(Ke,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,L,{23:204,58:205,62:206,63:de}),r(u,[2,252]),{19:208,28:P,29:V,52:209,53:H,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:Et,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:ie,302:ne,303:ae,304:U,305:G,306:oe,307:43,308:g,309:ir,310:hr,311:217,312:Ut},r($m,[2,265],{56:85,35:227,52:228,19:229,28:P,29:V,53:H}),r(Ze,[2,260]),r(M,L,{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:Wm,122:234,132:[1,237],134:235,327:[1,238],334:[1,239]},r(xe,[2,318]),r(ce,Gm,{108:240,133:242,112:Hm,132:zm}),r(Xe,[2,323]),{112:[1,244]},{112:[2,325]},r(Tt,[2,50]),r(K,Co,{135:245,136:246,143:247,144:248,31:Km,112:Km}),r(Tt,[2,51]),r(Tt,[2,52]),r(Xi,[2,328],{119:249}),{29:$e,114:250},r(Xi,[2,56]),{29:$e,114:251},r(S,[2,59]),r(Ce,[2,270]),{47:[1,252]},r(Ym,[2,150]),r(Fo,[2,428],{240:253}),r(cs,[2,430],{244:254}),r(cs,[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(us,[2,440],{252:264}),r(gt,[2,448],{260:265}),{13:l,16:h,44:136,45:W,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:$,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:ie,302:ne,303:ae,304:U,305:G,306:oe,307:43,308:g,312:De,346:Oe,347:Ae,348:_,349:v,350:w,351:C},{13:l,16:h,44:136,45:W,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:$,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:ie,302:ne,303:ae,304:U,305:G,306:oe,307:43,308:g,312:De,346:Oe,347:Ae,348:_,349:v,350:w,351:C},{13:l,16:h,44:136,45:W,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:$,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:ie,302:ne,303:ae,304:U,305:G,306:oe,307:43,308:g,312:De,346:Oe,347:Ae,348:_,349:v,350:w,351:C},r(gt,[2,167]),r(gt,[2,168]),r(gt,[2,169]),r(gt,[2,170],{176:269,45:Qm,89:Jm}),r(gt,[2,171]),r(gt,[2,172]),r(gt,[2,173]),r(gt,[2,174]),{13:l,16:h,44:136,45:W,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:$,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:ie,302:ne,303:ae,304:U,305:G,306:oe,307:43,308:g,312:De,346:Oe,347:Ae,348:_,349:v,350:w,351:C},r(ut,[2,176]),{89:[1,273]},{45:[1,274]},{45:[1,275]},{45:[1,276]},{45:[1,277]},{45:[1,278]},{45:Xm,89:Zm,179:279},{45:[1,282]},{45:[1,284],89:[1,283]},{279:[1,285]},r($t,[2,192],{292:[1,286],293:[1,287]}),r($t,[2,195]),r($t,[2,196]),r($t,[2,197]),r($t,[2,198]),r($t,[2,199]),r($t,[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:ie,302:ne,303:ae,304:U,305:G,306:oe,307:43,308:g,312:De,320:288},{45:[1,292]},{45:[1,293]},{45:[1,294]},r(da,[2,452]),r(da,[2,453]),r(da,[2,454]),r(da,[2,455]),r(da,[2,456]),{279:[2,458]},r(Po,[2,207]),r(Po,[2,208]),r(Po,[2,209]),r(Po,[2,210]),r($t,[2,201]),r($t,[2,202]),r($t,[2,203]),r($t,[2,204]),r($t,[2,205]),r($t,[2,206]),r(e,[2,5]),r(Io,[2,297],{88:295}),r(Do,[2,299],{90:296}),{48:[1,297],87:[1,298]},r(Ro,[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(An,[2,123]),r(An,[2,416],{221:303,339:304,39:[1,306],263:[1,307],340:[1,305]}),r(oi,[2,124]),{13:l,16:h,45:[1,311],55:194,89:[1,310],197:We,223:312,225:308,226:309,229:e1,307:43,308:g},r(c,n,{215:10,214:314}),r(oi,[2,236]),r(oi,[2,237]),r(ls,[2,6]),r(Fl,[2,287],{60:315,72:316,73:[1,317]}),r(Ke,[2,286]),{13:l,16:h,45:W,55:323,67:321,68:322,71:318,77:320,79:319,267:139,268:le,269:Se,270:$,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:v,350:w,351:C},r([6,31,63,70,73,81,83,85],[2,20]),r(K,t1,{38:17,49:324,147:325,17:326,21:327,148:328,154:329,155:330,29:Oi,31:Oi,85:Oi,112:Oi,159:Oi,160:Oi,161:Oi,163:Oi,164:Oi,41:s}),{13:l,16:h,55:331,307:43,308:g},r(ce,[2,280]),r(ls,[2,7]),r(Ke,me,{59:197,69:198,20:332,70:N}),r(M,[2,284]),{64:[1,333]},r(M,L,{58:205,62:206,23:334,63:de}),r(u,[2,254]),r(K,Co,{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:xn,307:43,308:g},r(pa,[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:xn,308:g}),r(Ci,[2,227]),r(Ci,[2,228]),r(Ci,[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:Et,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:ie,302:ne,303:ae,304:U,305:G,306:oe,307:43,308:g,309:ir,310:hr,311:217,312:Ut},{13:l,16:h,44:39,55:40,87:p,139:342,186:352,190:340,195:341,197:xn,307:43,308:g},r(Ci,[2,146]),r(Ci,[2,147]),r(Ci,[2,148]),r(Ci,[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:ie,302:ne,303:ae,304:U,305:G,306:oe,307:43,308:g,309:ir,310:hr,311:358,312:Ut,313:353},r(Pl,[2,215]),r(Pl,[2,216]),r(M,L,{58:205,62:206,23:359,63:de}),r(Pe,[2,264]),r($m,[2,266]),r(ls,[2,11]),r(i,[2,308],{6:[2,310]}),r(Tt,[2,313],{102:360,120:361,121:[1,362]}),r(Tt,[2,47]),r(Tt,[2,63]),r(Tt,[2,64]),{13:l,16:h,55:363,307:43,308:g},r(Tt,[2,336]),r(Tt,[2,337]),r(Tt,[2,338]),{109:[1,364]},r(r1,[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(On,[2,341],{137:368}),r(On,[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:Et,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:ie,302:ne,303:ae,304:U,305:G,306:oe,307:43,308:g,309:ir,310:hr,311:217,312:Ut},{28:[1,370],127:371,128:[1,372]},r(Xi,[2,330],{124:373,125:374,126:He}),r(Xi,[2,57]),{44:375,87:p},r(Ym,[2,151],{241:376,242:[1,377]}),r(Fo,[2,153],{245:378,246:[1,379]}),{13:l,16:h,44:136,45:W,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:$,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:ie,302:ne,303:ae,304:U,305:G,306:oe,307:43,308:g,312:De,346:Oe,347:Ae,348:_,349:v,350:w,351:C},{250:[1,381]},r(lt,[2,432]),r(lt,[2,433]),r(lt,[2,434]),r(lt,[2,435]),r(lt,[2,436]),r(lt,[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:ie,302:ne}),r(us,[2,162],{261:388,262:389,39:Il,338:Dl}),r(gt,[2,164]),r(gt,[2,165]),r(gt,[2,166]),r(ut,[2,95]),r(ut,[2,96]),r(lt,[2,377],{177:392,325:[1,393]}),{48:[1,394]},r(ut,[2,177]),{13:l,16:h,44:136,45:W,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:$,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:ie,302:ne,303:ae,304:U,305:G,306:oe,307:43,308:g,312:De,346:Oe,347:Ae,348:_,349:v,350:w,351:C},{13:l,16:h,44:136,45:W,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:$,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:ie,302:ne,303:ae,304:U,305:G,306:oe,307:43,308:g,312:De,346:Oe,347:Ae,348:_,349:v,350:w,351:C},{13:l,16:h,44:136,45:W,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:$,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:ie,302:ne,303:ae,304:U,305:G,306:oe,307:43,308:g,312:De,346:Oe,347:Ae,348:_,349:v,350:w,351:C},{13:l,16:h,44:136,45:W,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:$,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:ie,302:ne,303:ae,304:U,305:G,306:oe,307:43,308:g,312:De,346:Oe,347:Ae,348:_,349:v,350:w,351:C},{13:l,16:h,44:136,45:W,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:$,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:ie,302:ne,303:ae,304:U,305:G,306:oe,307:43,308:g,312:De,346:Oe,347:Ae,348:_,349:v,350:w,351:C},r(ut,[2,183]),r(ut,[2,98]),r(lt,[2,381],{180:400}),{87:[1,401]},r(ut,[2,185]),{13:l,16:h,44:136,45:W,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:$,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:ie,302:ne,303:ae,304:U,305:G,306:oe,307:43,308:g,312:De,346:Oe,347:Ae,348:_,349:v,350:w,351:C},{29:k,57:403},r($t,[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:xn,307:43,308:g},r(Zi,[2,233]),r(Zi,[2,234]),r(Zi,[2,235]),r(i1,[2,459],{281:406,325:[1,407]}),r(lt,[2,463],{284:408,325:[1,409]}),r(lt,[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:No,255:154,257:155,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ie,302:ne,303:ae,304:U,305:G,306:oe,307:43,308:g,312:ko},{31:[1,419],89:[1,420]},{29:[1,421]},r(Ro,[2,302]),r(Io,[2,367],{167:422}),r(Do,[2,369],{168:423}),{48:[1,424],87:[1,425]},r(Ro,[2,371]),r(An,[2,122]),r(An,[2,417]),r(An,[2,413]),r(An,[2,414]),r(An,[2,415]),r(oi,[2,125]),r(oi,[2,127]),r(oi,[2,128]),r(n1,[2,420],{227:426}),r(oi,[2,130]),{13:l,16:h,55:194,197:We,223:427,307:43,308:g},{48:[1,428]},r(en,[2,289],{61:429,80:430,81:[1,431],83:[1,432]}),r(Fl,[2,288]),{64:[1,433]},r(Ke,[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:W,268:le,269:Se,270:$,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:v,350:w,351:C}),r(s1,[2,293]),r(Rl,[2,92]),r(Rl,[2,93]),r(Rl,[2,94]),{45:Qm,89:Jm,176:269},{31:[1,435]},{31:[1,436]},{19:437,28:P,29:V,56:85},{19:438,28:P,29:V,56:85},r(Cn,[2,355],{149:439}),r(Cn,[2,354]),{13:l,16:h,44:215,45:jo,55:220,82:R,87:p,89:Me,156:440,172:221,185:441,203:442,231:Mo,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:ie,302:ne,303:ae,304:U,305:G,306:oe,307:43,308:g,309:ir,310:hr,311:217,312:Ut},r(Pe,[2,19]),r(en,[2,21]),{13:l,16:h,44:450,45:a1,55:323,65:445,66:446,67:447,68:448,87:p,267:139,268:le,269:Se,270:$,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:v,350:w,351:C},r(ls,[2,8]),{31:[1,451]},{31:[2,258]},{31:[2,101]},r(K,[2,386],{31:[2,388]}),r(pa,[2,102]),r(Fn,[2,391],{191:452}),r(K,[2,395],{196:453,198:454}),r(K,[2,108]),r(K,[2,109]),r(pa,[2,103]),r(pa,[2,104]),r(pa,[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:Et,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:ie,302:ne,303:ae,304:U,305:G,306:oe,307:43,308:g,309:ir,310:hr,311:217,312:Ut},r(Lo,[2,424]),r(o1,[2,136]),r(o1,[2,137]),r(Nl,[2,140]),{232:[1,457]},{13:l,16:h,44:39,55:40,87:p,139:342,195:458,197:xn,307:43,308:g},r(Zi,[2,219]),r(Zi,[2,220]),r(Zi,[2,221]),r(Zi,[2,222]),r(Zi,[2,223]),r(ls,[2,10]),r(Tt,[2,46]),r(Tt,[2,314]),{112:Wm,122:459},r(Tt,[2,62]),r(ce,Gm,{133:242,108:460,112:Hm,132:zm}),r(r1,[2,61]),r(Tt,[2,49]),r([6,28,126,128,193],[2,65]),{31:[2,66],112:[1,462],138:461},r(On,[2,351],{146:463,335:[1,464]}),{29:k,57:465},r(Xi,[2,329]),r(ce,[2,332],{129:466,327:[1,467]}),r(Xi,[2,55]),r(Xi,[2,331]),{48:[1,468]},r(Fo,[2,429]),{13:l,16:h,44:136,45:W,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:$,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:ie,302:ne,303:ae,304:U,305:G,306:oe,307:43,308:g,312:De,346:Oe,347:Ae,348:_,349:v,350:w,351:C},r(cs,[2,431]),{13:l,16:h,44:136,45:W,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:$,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:ie,302:ne,303:ae,304:U,305:G,306:oe,307:43,308:g,312:De,346:Oe,347:Ae,348:_,349:v,350:w,351:C},r(cs,[2,156]),{45:Xm,89:Zm,179:471},r(us,[2,441]),{13:l,16:h,44:136,45:W,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:$,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:ie,302:ne,303:ae,304:U,305:G,306:oe,307:43,308:g,312:De,346:Oe,347:Ae,348:_,349:v,350:w,351:C},r(gt,[2,444],{256:473}),r(gt,[2,446],{258:474}),r(lt,[2,442]),r(lt,[2,443]),r(gt,[2,449]),{13:l,16:h,44:136,45:W,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:$,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:ie,302:ne,303:ae,304:U,305:G,306:oe,307:43,308:g,312:De,346:Oe,347:Ae,348:_,349:v,350:w,351:C},r(lt,[2,450]),r(lt,[2,451]),r(lt,[2,379],{178:476}),r(lt,[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:W,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:$,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:ie,302:ne,303:ae,304:U,305:G,306:oe,307:43,308:g,312:De,346:Oe,347:Ae,348:_,349:v,350:w,351:C},{48:[1,483]},{48:[1,484]},r(ut,[2,187]),r($t,[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:ie,302:ne,303:ae,304:U,305:G,306:oe,307:43,308:g,312:De,320:485},{13:l,16:h,39:[1,487],44:136,45:W,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:$,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:ie,302:ne,303:ae,304:U,305:G,306:oe,307:43,308:g,312:De,346:Oe,347:Ae,348:_,349:v,350:w,351:C},r(i1,[2,460]),{13:l,16:h,44:136,45:W,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:$,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:ie,302:ne,303:ae,304:U,305:G,306:oe,307:43,308:g,312:De,346:Oe,347:Ae,348:_,349:v,350:w,351:C},r(lt,[2,464]),{13:l,16:h,44:136,45:W,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:$,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:ie,302:ne,303:ae,304:U,305:G,306:oe,307:43,308:g,312:De,346:Oe,347:Ae,348:_,349:v,350:w,351:C},r(lt,[2,466]),r(q,[2,40]),r(Io,[2,298]),r(ma,[2,87]),r(ma,[2,88]),r(ma,[2,89]),r(ma,[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:ie,302:ne,303:ae,304:U,305:G,306:oe,307:43,308:g,311:494,312:Ut,315:491},r(q,[2,41]),r(Do,[2,300]),r(ga,[2,303],{92:495}),{13:l,16:h,31:[1,496],55:414,82:R,171:497,172:415,173:416,174:No,255:154,257:155,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ie,302:ne,303:ae,304:U,305:G,306:oe,307:43,308:g,312:ko},{31:[1,498],89:[1,499]},{29:[1,500]},r(Ro,[2,372]),{13:l,16:h,48:[2,422],55:194,197:We,223:312,226:502,228:501,229:e1,307:43,308:g},r(oi,[2,131]),r(oi,[2,126]),r(en,[2,22]),r(en,[2,290]),{82:[1,503]},{82:[1,504]},{13:l,16:h,44:510,45:W,55:323,67:321,68:322,74:505,75:506,76:c1,77:320,78:u1,79:509,87:p,267:139,268:le,269:Se,270:$,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:v,350:w,351:C},r(s1,[2,294]),r(l1,[2,69]),r(l1,[2,70]),r(Ke,me,{59:197,69:198,20:511,70:N}),r(M,L,{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(Cn,[2,363],{157:524,335:[1,525]}),r(c,n,{215:10,202:526,205:527,208:528,214:529,44:530,87:p}),r(Vo,[2,399],{215:10,205:527,208:528,214:529,44:530,204:531,202:532,13:n,16:n,45:n,197:n,224:n,229:n,308:n,87:p}),{13:l,16:h,44:215,45:jo,55:220,82:R,87:p,89:Me,172:221,185:351,203:536,212:534,231:Mo,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:ie,302:ne,303:ae,304:U,305:G,306:oe,307:43,308:g,309:ir,310:hr,311:217,312:Ut},r(c,n,{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:a1,87:p,268:le,269:Se,270:$,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:v,350:w,351:C}),r(Pn,[2,291]),r(Pn,[2,24]),r(Pn,[2,25]),{13:l,16:h,44:136,45:W,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:$,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:ie,302:ne,303:ae,304:U,305:G,306:oe,307:43,308:g,312:De,346:Oe,347:Ae,348:_,349:v,350:w,351:C},r(Pn,[2,28]),r(M,L,{58:205,62:206,23:540,63:de}),r([31,112,232,318,335],[2,105],{192:541,193:[1,542]}),r(Fn,[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:Et,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:ie,302:ne,303:ae,304:U,305:G,306:oe,307:43,308:g,309:ir,310:hr,311:217,312:Ut},r(f1,[2,132]),r(Lo,[2,425]),r(f1,[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:ie,302:ne,303:ae,304:U,305:G,306:oe,307:43,308:g,309:ir,310:hr,311:358,312:Ut,313:545},r(Tt,[2,54]),r(Tt,[2,48]),r(On,[2,342]),{13:l,16:h,44:39,55:40,87:p,139:546,307:43,308:g},r(On,[2,68]),r(K,[2,350],{31:h1,112:h1}),r(Tt,[2,53]),{13:l,16:h,55:547,307:43,308:g},r(ce,[2,333]),r(Ce,[2,16]),r(Fo,[2,152]),r(cs,[2,154]),r(cs,[2,157]),r(us,[2,159]),r(us,[2,160],{262:389,261:548,39:Il,338:Dl}),r(us,[2,161],{262:389,261:549,39:Il,338:Dl}),r(gt,[2,163]),{13:l,16:h,44:136,45:W,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:$,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:ie,302:ne,303:ae,304:U,305:G,306:oe,307:43,308:g,312:De,346:Oe,347:Ae,348:_,349:v,350:w,351:C},r(ut,[2,178]),r(ut,[2,179]),{13:l,16:h,44:136,45:W,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:$,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:ie,302:ne,303:ae,304:U,305:G,306:oe,307:43,308:g,312:De,346:Oe,347:Ae,348:_,349:v,350:w,351:C},{13:l,16:h,44:136,45:W,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:$,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:ie,302:ne,303:ae,304:U,305:G,306:oe,307:43,308:g,312:De,346:Oe,347:Ae,348:_,349:v,350:w,351:C},{13:l,16:h,44:136,45:W,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:$,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:ie,302:ne,303:ae,304:U,305:G,306:oe,307:43,308:g,312:De,346:Oe,347:Ae,348:_,349:v,350:w,351:C},{48:[1,554],272:[1,555]},r(ut,[2,184]),r(ut,[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(kl,[2,224]),r(kl,[2,225]),r(kl,[2,226]),{31:[1,563],45:d1,94:564},r(q,[2,84]),r(Io,[2,368]),r(q,[2,85]),r(Do,[2,370]),r(ga,[2,373],{170:566}),{48:[1,567]},{48:[2,423],337:[1,568]},r(en,[2,35],{83:[1,569]}),r(en,[2,36],{81:[1,570]}),r(Fl,[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:W,76:c1,78:u1,87:p,268:le,269:Se,270:$,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:v,350:w,351:C}),r(fs,[2,295]),{45:W,77:572},{45:W,77:573},r(fs,[2,33]),r(fs,[2,34]),{31:[2,275],50:574,84:575,85:a},{31:[2,277],51:576,84:577,85:a},r(Cn,[2,356]),r(p1,[2,357],{152:578,335:[1,579]}),r(Fi,[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(m1,[2,365],{162:583,328:[1,584]}),{13:l,16:h,45:W,55:323,67:321,68:322,77:320,79:585,267:139,268:le,269:Se,270:$,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:v,350:w,351:C},{45:[1,586]},r(Fi,[2,81]),{29:k,57:587},r(Cn,[2,73]),r(K,[2,362],{29:Pi,31:Pi,85:Pi,112:Pi,159:Pi,160:Pi,161:Pi,163:Pi,164:Pi}),r(Vo,[2,112]),r(hs,[2,401],{206:588}),r(K,[2,405],{209:589,210:590}),r(K,[2,403]),r(K,[2,404]),r(Vo,[2,113]),r(Vo,[2,400]),{13:l,16:h,44:215,45:jo,48:[1,591],55:220,82:R,87:p,89:Me,172:221,185:351,203:536,212:592,231:Mo,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:ie,302:ne,303:ae,304:U,305:G,306:oe,307:43,308:g,309:ir,310:hr,311:217,312:Ut},r(Lo,[2,426]),r(Nl,[2,138]),r(Nl,[2,139]),{232:[1,593]},r(Pn,[2,292]),{47:[1,595],48:[1,594]},r(ls,[2,9]),r(Fn,[2,392]),r(Fn,[2,393],{44:39,55:40,307:43,195:341,139:342,194:596,190:597,13:l,16:h,87:p,197:xn,308:g}),r(Fn,[2,110],{272:[1,598]}),r(qo,[2,397],{201:599,316:600,317:[1,601]}),{314:[1,602]},{29:[1,603]},r(Xi,[2,58]),r(gt,[2,445]),r(gt,[2,447]),{48:[1,604],272:[1,605]},{48:[1,606]},{272:[1,607]},{272:[1,608]},r(ut,[2,99]),r(lt,[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(ut,[2,188]),r(ut,[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:ie,302:ne,303:ae,304:U,305:G,306:oe,307:43,308:g,311:494,312:Ut,315:611},r(q,[2,42]),r(ga,[2,304]),{13:l,16:h,55:414,82:R,95:612,171:613,172:415,173:416,174:No,255:154,257:155,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ie,302:ne,303:ae,304:U,305:G,306:oe,307:43,308:g,312:ko},{31:[1,614],45:d1,94:615},r(oi,[2,129]),r(n1,[2,421]),{82:[1,616]},{82:[1,617]},r(fs,[2,296]),r(fs,[2,31]),r(fs,[2,32]),{31:[2,17]},{31:[2,276]},{31:[2,18]},{31:[2,278]},r(K,t1,{155:330,153:618,154:619,29:Ii,31:Ii,85:Ii,112:Ii,159:Ii,160:Ii,161:Ii,163:Ii,164:Ii}),r(p1,[2,358]),r(Fi,[2,75]),r(Fi,[2,76]),{29:k,57:620},{13:l,16:h,44:39,55:40,87:p,139:621,307:43,308:g},r(m1,[2,366]),r(Fi,[2,79]),{13:l,16:h,44:136,45:W,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:$,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:ie,302:ne,303:ae,304:U,305:G,306:oe,307:43,308:g,312:De,346:Oe,347:Ae,348:_,349:v,350:w,351:C},r(Fi,[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(hs,[2,117]),{13:l,16:h,44:215,45:jo,55:220,82:R,87:p,89:Me,172:221,185:351,203:536,211:626,212:627,231:Mo,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:ie,302:ne,303:ae,304:U,305:G,306:oe,307:43,308:g,309:ir,310:hr,311:217,312:Ut},r(Ci,[2,134]),r(Lo,[2,427]),r(Ci,[2,135]),r(Pn,[2,26]),{44:628,87:p},r(Fn,[2,106]),r(Fn,[2,394]),r(K,[2,396]),r(qo,[2,111]),r(qo,[2,398]),{13:l,16:h,44:39,55:40,87:p,139:342,186:629,190:340,195:341,197:xn,307:43,308:g},r(Pl,[2,217]),r(K,Co,{144:248,140:630,143:631,31:[2,343]}),r(ut,[2,97]),r(lt,[2,380]),r(ut,[2,180]),{13:l,16:h,44:136,45:W,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:$,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:ie,302:ne,303:ae,304:U,305:G,306:oe,307:43,308:g,312:De,346:Oe,347:Ae,348:_,349:v,350:w,351:C},{13:l,16:h,44:136,45:W,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:$,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:ie,302:ne,303:ae,304:U,305:G,306:oe,307:43,308:g,312:De,346:Oe,347:Ae,348:_,349:v,350:w,351:C},r(ut,[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:No,255:154,257:155,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ie,302:ne,303:ae,304:U,305:G,306:oe,307:43,308:g,312:ko},r(g1,[2,305]),r(q,[2,86]),r(ga,[2,374]),r(en,[2,37]),r(en,[2,38]),r(Cn,[2,72]),r(Cn,[2,360]),r(Fi,[2,77]),{29:k,57:638},{47:[1,639]},{29:[2,376]},r(hs,[2,402]),r(hs,[2,115],{215:10,208:528,214:529,44:530,205:640,13:n,16:n,45:n,197:n,224:n,229:n,308:n,87:p}),r(hs,[2,118],{272:[1,641]}),r(Bo,[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:G,306:oe},r(ma,[2,218]),r(ga,[2,44]),r(g1,[2,306]),r(Fi,[2,78]),{44:651,87:p},r(hs,[2,116]),r(K,[2,406]),r(Bo,[2,119]),r(Bo,[2,408]),r(c,n,{215:10,205:527,208:528,214:529,44:530,202:652,87:p}),r(Pn,[2,27]),r(qo,[2,230]),r(y1,[2,345],{141:653,335:[1,654]}),r(ut,[2,181]),r(ut,[2,182]),{48:[2,191]},{48:[1,655]},{318:[1,656]},r(K,Co,{144:248,142:657,143:658,31:_1,112:_1}),r(y1,[2,346]),r(Fi,[2,80]),r(Bo,[2,231]),r(On,[2,67]),r(On,[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=[],Gt=this.table,m="",li=0,Sa=0,Go=0,Ho=2,ba=1,zo=d.slice.call(arguments,1),nt=Object.create(this.lexer),fi={yy:{}};for(var wa in this.yy)Object.prototype.hasOwnProperty.call(this.yy,wa)&&(fi.yy[wa]=this.yy[wa]);nt.setInput(E,fi.yy),fi.yy.lexer=nt,fi.yy.parser=this,typeof nt.yylloc>"u"&&(nt.yylloc={});var ys=nt.yylloc;d.push(ys);var Ge=nt.options&&nt.options.ranges;typeof fi.yy.parseError=="function"?this.parseError=fi.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function et(hi){I.length=I.length-2*hi,pe.length=pe.length-hi,d.length=d.length-hi}o(et,"popStack");for(var Le=o(function(){var hi;return hi=nt.lex()||ba,typeof hi!="number"&&(hi=O.symbols_[hi]||hi),hi},"lex"),Ue,nr,Nn,wr,CP,Kl,_s={},Ko,Ni,P1,Yo;;){if(Nn=I[I.length-1],this.defaultActions[Nn]?wr=this.defaultActions[Nn]:((Ue===null||typeof Ue>"u")&&(Ue=Le()),wr=Gt[Nn]&&Gt[Nn][Ue]),typeof wr>"u"||!wr.length||!wr[0]){var Yl="";Yo=[];for(Ko in Gt[Nn])this.terminals_[Ko]&&Ko>Ho&&Yo.push("'"+this.terminals_[Ko]+"'");nt.showPosition?Yl="Parse error on line "+(li+1)+`:
95
+ `),t}};Zc.RDFSerializer=Id});var X0=y(an=>{"use strict";Object.defineProperty(an,"__esModule",{value:!0});an.TransactionError=an.TripleNotFoundError=an.TripleAlreadyExistsError=void 0;var Dd=class extends Error{static{o(this,"TripleAlreadyExistsError")}constructor(e){super(`Triple already exists: ${e.toString()}`),this.name="TripleAlreadyExistsError"}};an.TripleAlreadyExistsError=Dd;var Rd=class extends Error{static{o(this,"TripleNotFoundError")}constructor(e){super(`Triple not found: ${e.toString()}`),this.name="TripleNotFoundError"}};an.TripleNotFoundError=Rd;var Nd=class extends Error{static{o(this,"TransactionError")}constructor(e){super(e),this.name="TransactionError"}};an.TransactionError=Nd});var jd=y(eu=>{"use strict";Object.defineProperty(eu,"__esModule",{value:!0});eu.LRUCache=void 0;var kd=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 i=this.cache.keys().next().value;i!==void 0&&this.cache.delete(i)}this.cache.set(e,t)}clear(){this.cache.clear()}size(){return this.cache.size}};eu.LRUCache=kd});var Z0=y(tu=>{"use strict";Object.defineProperty(tu,"__esModule",{value:!0});tu.InMemoryTripleStore=void 0;var on=X0(),ex=xt(),tx=pi(),rx=Ht(),ix=jd(),Md=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 ix.LRUCache(1e3)}async add(e){let t=this.getTripleKey(e);if(this.triples.has(t))return;this.triples.set(t,e);let i=this.getNodeKey(e.subject),n=this.getNodeKey(e.predicate),s=this.getNodeKey(e.object);this.addToIndex(this.spo,i,n,s),this.addToIndex(this.sop,i,s,n),this.addToIndex(this.pso,n,i,s),this.addToIndex(this.pos,n,s,i),this.addToIndex(this.osp,s,i,n),this.addToIndex(this.ops,s,n,i),this.queryCache.clear()}async remove(e){let t=this.getTripleKey(e);if(!this.triples.has(t))return!1;this.triples.delete(t);let i=this.getNodeKey(e.subject),n=this.getNodeKey(e.predicate),s=this.getNodeKey(e.object);return this.removeFromIndex(this.spo,i,n,s),this.removeFromIndex(this.sop,i,s,n),this.removeFromIndex(this.pso,n,i,s),this.removeFromIndex(this.pos,n,s,i),this.removeFromIndex(this.osp,s,i,n),this.removeFromIndex(this.ops,s,n,i),this.queryCache.clear(),!0}async has(e){let t=this.getTripleKey(e);return this.triples.has(t)}async match(e,t,i){let n=this.getMatchCacheKey(e,t,i),s=this.queryCache.get(n);if(s!==void 0)return s;let a;return!e&&!t&&!i?a=Array.from(this.triples.values()):e&&t&&i?a=this.matchSPO(e,t,i):e&&t?a=this.matchSP(e,t):e&&i?a=this.matchSO(e,i):t&&i?a=this.matchPO(t,i):e?a=this.matchS(e):t?a=this.matchP(t):i?a=this.matchO(i):a=[],this.queryCache.set(n,a),a}async addAll(e){for(let t of e)await this.add(t)}async removeAll(e){let t=0;for(let i of e)await this.remove(i)&&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 Ld(this)}matchSPO(e,t,i){let n=this.getNodeKey(e),s=this.getNodeKey(t),a=this.getNodeKey(i),c=this.spo.get(n);if(!c)return[];let u=c.get(s);if(!u)return[];if(u.has(a)){let f=this.buildTripleKey(n,s,a),l=this.triples.get(f);return l?[l]:[]}return[]}matchSP(e,t){let i=this.getNodeKey(e),n=this.getNodeKey(t),s=this.spo.get(i);if(!s)return[];let a=s.get(n);return a?this.getTriplesByKeys(Array.from(a).map(c=>this.buildTripleKey(i,n,c))):[]}matchSO(e,t){let i=this.getNodeKey(e),n=this.getNodeKey(t),s=this.sop.get(i);if(!s)return[];let a=s.get(n);return a?this.getTriplesByKeys(Array.from(a).map(c=>this.buildTripleKey(i,c,n))):[]}matchPO(e,t){let i=this.getNodeKey(e),n=this.getNodeKey(t),s=this.pos.get(i);if(!s)return[];let a=s.get(n);return a?this.getTriplesByKeys(Array.from(a).map(c=>this.buildTripleKey(c,i,n))):[]}matchS(e){let t=this.getNodeKey(e),i=this.spo.get(t);if(!i)return[];let n=[];for(let[s,a]of i.entries())for(let c of a)n.push(this.buildTripleKey(t,s,c));return this.getTriplesByKeys(n)}matchP(e){let t=this.getNodeKey(e),i=this.pso.get(t);if(!i)return[];let n=[];for(let[s,a]of i.entries())for(let c of a)n.push(this.buildTripleKey(s,t,c));return this.getTriplesByKeys(n)}matchO(e){let t=this.getNodeKey(e),i=this.osp.get(t);if(!i)return[];let n=[];for(let[s,a]of i.entries())for(let c of a)n.push(this.buildTripleKey(s,c,t));return this.getTriplesByKeys(n)}getTriplesByKeys(e){let t=[];for(let i of e){let n=this.triples.get(i);n&&t.push(n)}return t}addToIndex(e,t,i,n){e.has(t)||e.set(t,new Map);let s=e.get(t);s.has(i)||s.set(i,new Set),s.get(i).add(n)}removeFromIndex(e,t,i,n){let s=e.get(t);if(!s)return;let a=s.get(i);a&&(a.delete(n),a.size===0&&s.delete(i),s.size===0&&e.delete(t))}getTripleKey(e){let t=this.getNodeKey(e.subject),i=this.getNodeKey(e.predicate),n=this.getNodeKey(e.object);return this.buildTripleKey(t,i,n)}buildTripleKey(e,t,i){return`${e}|${t}|${i}`}getNodeKey(e){if(e instanceof ex.IRI)return`i:${e.value}`;if(e instanceof tx.BlankNode)return`b:${e.id}`;if(e instanceof rx.Literal){let t=`l:${e.value}`;return e.datatype?t+=`^^${e.datatype.value}`:e.language&&(t+=`@${e.language}`),t}return""}getMatchCacheKey(e,t,i){let n=e?this.getNodeKey(e):"?",s=t?this.getNodeKey(t):"?",a=i?this.getNodeKey(i):"?";return`${n}|${s}|${a}`}};tu.InMemoryTripleStore=Md;var Ld=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 on.TransactionError("Transaction already committed");if(this.rolledBack)throw new on.TransactionError("Transaction already rolled back");this.operations.push({type:"add",triple:e})}async remove(e){if(this.committed)throw new on.TransactionError("Transaction already committed");if(this.rolledBack)throw new on.TransactionError("Transaction already rolled back");return this.operations.push({type:"remove",triple:e}),!0}async commit(){if(this.committed)throw new on.TransactionError("Transaction already committed");if(this.rolledBack)throw new on.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 on.TransactionError("Transaction already committed");if(this.rolledBack)throw new on.TransactionError("Transaction already rolled back");this.operations=[],this.rolledBack=!0}}});var tg=y(ru=>{"use strict";Object.defineProperty(ru,"__esModule",{value:!0});ru.RDFVocabularyMapper=void 0;var gr=kn(),eg=xt(),he=ji(),Vd=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 gr.Triple(he.Namespace.EXO.term("Asset"),he.Namespace.RDFS.term("subClassOf"),he.Namespace.RDFS.term("Resource"))),e.push(new gr.Triple(he.Namespace.EXO.term("Class"),he.Namespace.RDFS.term("subClassOf"),he.Namespace.RDFS.term("Class"))),e.push(new gr.Triple(he.Namespace.EXO.term("Property"),he.Namespace.RDFS.term("subClassOf"),he.Namespace.RDF.term("Property"))),e.push(new gr.Triple(he.Namespace.EMS.term("Task"),he.Namespace.RDFS.term("subClassOf"),he.Namespace.EXO.term("Asset"))),e.push(new gr.Triple(he.Namespace.EMS.term("Project"),he.Namespace.RDFS.term("subClassOf"),he.Namespace.EXO.term("Asset"))),e.push(new gr.Triple(he.Namespace.EMS.term("Area"),he.Namespace.RDFS.term("subClassOf"),he.Namespace.EXO.term("Asset"))),e}generatePropertyHierarchyTriples(){let e=[];return e.push(new gr.Triple(he.Namespace.EXO.term("Instance_class"),he.Namespace.RDFS.term("subPropertyOf"),he.Namespace.RDF.term("type"))),e.push(new gr.Triple(he.Namespace.EXO.term("Asset_isDefinedBy"),he.Namespace.RDFS.term("subPropertyOf"),he.Namespace.RDFS.term("isDefinedBy"))),e.push(new gr.Triple(he.Namespace.EXO.term("Class_superClass"),he.Namespace.RDFS.term("subPropertyOf"),he.Namespace.RDFS.term("subClassOf"))),e.push(new gr.Triple(he.Namespace.EXO.term("Property_range"),he.Namespace.RDFS.term("subPropertyOf"),he.Namespace.RDFS.term("range"))),e.push(new gr.Triple(he.Namespace.EXO.term("Property_domain"),he.Namespace.RDFS.term("subPropertyOf"),he.Namespace.RDFS.term("domain"))),e.push(new gr.Triple(he.Namespace.EXO.term("Property_superProperty"),he.Namespace.RDFS.term("subPropertyOf"),he.Namespace.RDFS.term("subPropertyOf"))),e}generateMappedTriple(e,t,i){let n=this.propertyMappings.get(t);if(!n)return null;let s;if(i instanceof eg.IRI)s=i;else{let a=i.match(/^(ems|exo)__(.+)$/);if(a){let[,c,u]=a;s=(c==="ems"?he.Namespace.EMS:he.Namespace.EXO).term(u)}else s=new eg.IRI(i)}return new gr.Triple(e,n,s)}hasMappingFor(e){return this.propertyMappings.has(e)}};ru.RDFVocabularyMapper=Vd});var Bd=y(ei=>{"use strict";var nx=ei&&ei.__decorate||function(r,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,i);else for(var c=r.length-1;c>=0;c--)(a=r[c])&&(s=(n<3?a(s):n>3?a(e,t,s):a(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},sx=ei&&ei.__metadata||function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},ax=ei&&ei.__param||function(r,e){return function(t,i){e(t,i,r)}};Object.defineProperty(ei,"__esModule",{value:!0});ei.NoteToRDFConverter=void 0;var rg=Qe(),ig=kn(),ox=xt(),Yn=Ht(),cn=ji(),cx=tt(),qd=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 i=[],n=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);i.push(new ig.Triple(n,c,l))}if(s==="exo__Instance_class")for(let f of u){let l=this.expandClassValue(f);if(l){let h=cn.Namespace.RDF.term("type");i.push(new ig.Triple(n,h,l))}}}return i}async convertVault(){let e=this.vault.getAllFiles(),t=[];for(let i of e)try{let n=await this.convertNote(i);t.push(...n)}catch(n){throw console.error(`\u274C Error converting note: ${i.path}`),console.error(` Error: ${n instanceof Error?n.message:String(n)}`),n}return t}notePathToIRI(e){let t=encodeURI(e);return new ox.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 cn.Namespace.EXO.term(t)}if(e.startsWith("ems__")){let t=e.substring(5);return cn.Namespace.EMS.term(t)}throw new Error(`Invalid property key: ${e}`)}async valueToRDFObject(e,t){if(typeof e=="string"){let i=this.removeQuotes(e),n=this.extractWikilink(i);if(n){let s=this.vault.getFirstLinkpathDest(n,t.path);return s?this.notePathToIRI(s.path):new Yn.Literal(i)}if(this.isClassReference(i)){let s=this.expandClassValue(i);if(s)return s}return this.isISO8601DateTime(i)?new Yn.Literal(i,cn.Namespace.XSD.term("dateTime")):new Yn.Literal(i)}return typeof e=="boolean"?new Yn.Literal(e.toString()):typeof e=="number"?new Yn.Literal(e.toString(),cn.Namespace.XSD.term("decimal")):e instanceof Date?new Yn.Literal(e.toISOString(),cn.Namespace.XSD.term("dateTime")):new Yn.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 i=t.substring(5);return cn.Namespace.EMS.term(i)}if(t.startsWith("exo__")){let i=t.substring(5);return cn.Namespace.EXO.term(i)}return null}};ei.NoteToRDFConverter=qd;ei.NoteToRDFConverter=qd=nx([(0,rg.injectable)(),ax(0,(0,rg.inject)(cx.DI_TOKENS.IVaultAdapter)),sx("design:paramtypes",[Object])],qd)});var Ud=y((NN,ng)=>{var Is=class{static{o(this,"Wildcard")}constructor(){return ux||this}equals(e){return e&&this.termType===e.termType}};Object.defineProperty(Is.prototype,"value",{enumerable:!0,value:"*"});Object.defineProperty(Is.prototype,"termType",{enumerable:!0,value:"Wildcard"});var ux=new Is;ng.exports.Wildcard=Is});var ag=y((jN,sg)=>{var lx=(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],i=[100,110,113,115,116,123,126,131,329,330,331,332,333],n=[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],S=[123,126],b=[1,67],x=[39,45,87],F=[13,16,45,197,224,308],P=[1,87],V=[2,281],H=[1,86],K=[13,16,45,82,87,89,231,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312],Pe=[6,28,29,53,63,70,73,81,83,85],Ze=[6,13,16,28,29,53,63,70,73,81,83,85,87,308],ct=[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],Xe=[13,16,112,132,308],$e=[1,111],He=[1,117],Ie=[112,132,327,328,334],Ne=[13,16,112,132,308,328],Ce=[28,29,45,53,87],W=[1,138],R=[1,151],ke=[1,128],qe=[1,127],j=[1,129],le=[1,140],Se=[1,141],$=[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],ie=[1,175],ne=[1,176],ae=[1,167],U=[1,168],G=[1,169],oe=[1,170],De=[1,157],Oe=[1,166],Ae=[1,161],_=[1,162],v=[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],Ke=[6,31,73,81,83,85],me=[2,285],N=[1,199],k=[1,201],M=[6,31,70,73,81,83,85],L=[2,283],de=[1,207],je=[1,218],Me=[1,223],Et=[1,219],ir=[1,225],hr=[1,226],Ut=[1,224],$m=[6,63,70,73,81,83,85],Wm=[1,236],Gm=[2,334],Hm=[1,243],zm=[1,241],Tt=[6,193],Co=[2,349],Km=[2,339],Xi=[28,128],Ym=[47,48,193,272],Fo=[47,48,193,242,272],cs=[47,48,193,242,246,272],us=[47,48,193,242,246,250,263,265,272,290,297,298,299,300,301,302,341,342,343,344,345,346],gt=[39,47,48,193,242,246,250,263,265,272,290,297,298,299,300,301,302,338,341,342,343,344,345,346],Qm=[1,271],Jm=[1,270],ut=[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],Xm=[1,281],Zm=[1,280],$t=[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],da=[45,89],Po=[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],Io=[13,16,31,82,174,294,295,296,297,298,299,300,301,302,303,304,305,306,308,312],Do=[31,89],Ro=[48,87],An=[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],oi=[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],e1=[1,313],ls=[6,85],Fl=[6,31,81,83,85],t1=[2,361],Oi=[2,353],xn=[1,343],pa=[31,112,335],Ci=[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],Pl=[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],r1=[6,109,193],On=[31,112],lt=[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],Il=[1,390],Dl=[1,391],Zi=[13,16,87,197,308,314],i1=[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],No=[1,417],ko=[1,418],n1=[13,16,48,197,229,308],en=[6,31,85],s1=[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],Rl=[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],Cn=[29,31,85,112,159,160,161,163,164],jo=[1,443],Mo=[1,444],a1=[1,449],Fn=[31,112,193,232,318,335],Lo=[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],o1=[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],Nl=[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],ma=[13,16,31,48,82,174,294,295,296,297,298,299,300,301,302,303,304,305,306,308,312],ga=[31,45],c1=[1,507],u1=[1,508],l1=[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],Vo=[29,31,85,112,159,160,161,163,164,335],Pn=[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],f1=[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],h1=[2,352],kl=[13,16,197,308,314],d1=[1,565],fs=[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],p1=[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],Fi=[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],m1=[13,16,87,308],Pi=[2,364],hs=[29,31,85,112,159,160,161,163,164,193,232,318,335],qo=[31,112,193,232,272,318,335],Ii=[2,359],g1=[13,16,48,82,174,294,295,296,297,298,299,300,301,302,303,304,305,306,308,312],Bo=[29,31,85,112,159,160,161,163,164,193,232,272,318,335],y1=[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],_1=[2,347],jl={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,Gt){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 et of d[m-1].updates)if(et.updateType==="insert"){let Le={};for(let Ue of et.insert)if(Ue.type==="bgp"||Ue.type==="graph")for(let nr of Ue.triples)nr.subject.termType==="BlankNode"&&(Le[nr.subject.value]=!0),nr.predicate.termType==="BlankNode"&&(Le[nr.predicate.value]=!0),nr.object.termType==="BlankNode"&&(Le[nr.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=ya(d[m]);break;case 5:ve.prefixes||(ve.prefixes={}),d[m-1]=d[m-1].substr(0,d[m-1].length-1),d[m]=ya(d[m]),ve.prefixes[d[m-1]]=d[m];break;case 6:this.$={...d[m-3],...Rn(d[m-2]),...d[m-1],...d[m]};break;case 7:if(!ve.skipValidation&&(Wl(d[m-3].variables.map(et=>$l(et.expression))).some(et=>et.aggregation==="count"&&!(et.expression instanceof Uo))||d[m].group)){for(let et of d[m-3].variables)if(et.termType==="Variable"){if(!d[m].group||!d[m].group.map(Le=>gs(Le)).includes(gs(et)))throw Error("Projection of ungrouped variable (?"+gs(et)+")")}else if($l(et.expression).length===0){let Le=vS(et.expression);for(let Ue of Le)if(!d[m].group||!d[m].group.map||!d[m].group.map(nr=>gs(nr)).includes(gs(Ue)))throw Error("Use of ungrouped variable in projection of operation (?"+gs(Ue)+")")}}let fi=d[m-1].where.filter(Ge=>Ge.type==="query");if(fi.length>0){let Ge=d[m-3].variables.filter(Le=>Le.variable&&Le.variable.value).map(Le=>Le.variable.value),et=Wl(fi.map(Le=>Le.variables)).map(Le=>Le.value||Le.variable.value);for(let Le of Ge)if(et.indexOf(Le)>=0)throw Error("Target id of 'AS' (?"+Le+") already used in subquery")}this.$=at(d[m-3],Rn(d[m-2]),d[m-1],d[m]);break;case 8:this.$=at({queryType:"CONSTRUCT",template:d[m-3]},Rn(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:[]},Rn(d[m-5]),{where:[{type:"bgp",triples:Dn([],d[m-2])}]},d[m]);break;case 10:this.$=at({queryType:"DESCRIBE",variables:d[m-3]==="*"?[new Uo]:d[m-3]},Rn(d[m-2]),d[m-1],d[m]);break;case 11:this.$=at({queryType:"ASK"},Rn(d[m-2]),d[m-1],d[m]);break;case 12:this.$=at(d[m-1],{variables:[new Uo]});break;case 13:let wa=d[m].map(Ge=>Ge.value||Ge.variable.value),ys=SS(wa);if(ys.length>0)throw Error("Two or more of the resulting columns have the same name (?"+ys[0]+")");this.$=at(d[m-1],{variables:d[m]});break;case 14:this.$=at({queryType:"SELECT"},d[m]&&(d[m-1]=Wt(d[m]),d[m]={},d[m][d[m-1]]=!0,d[m]));break;case 16:case 27:this.$=ds(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.$=ds(d[m]);break;case 26:this.$=ds(d[m-1]);break;case 29:this.$={having:d[m]};break;case 30:this.$={order:d[m]};break;case 32:this.$=ds(d[m],{descending:!0});break;case 35:this.$={limit:ms(d[m])};break;case 36:this.$={offset:ms(d[m])};break;case 37:this.$={limit:ms(d[m-2]),offset:ms(d[m])};break;case 38:this.$={limit:ms(d[m]),offset:ms(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 li=d[m-4].length;d[m-4]=d[m-4].map(Ml),this.$=d[m-1].map(function(Ge){if(Ge.length!==li)throw Error("Inconsistent VALUES length");for(var et={},Le=0;Le<li;Le++)et["?"+d[m-4][Le].value]=Ge[Le];return et});break;case 44:case 65:case 100:case 126:case 175:this.$=d[m-1];break;case 45:this.$={type:"update",updates:Di(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:Wt(d[m-2]),silent:!!d[m-1],graph:d[m]};break;case 48:this.$={type:Wt(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:F1(d[m])};break;case 51:this.$={updateType:"delete",delete:zl(F1(d[m]))};break;case 52:this.$={updateType:"deletewhere",delete:zl(d[m])};break;case 53:this.$={updateType:"insertdelete",...d[m-4],...d[m-3],...Rn(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.$={[Wt(d[m])]:!0};break;case 66:this.$=d[m-1]?ci(d[m],[d[m-1]]):ci(d[m]);break;case 67:var Sa=at(d[m-3]||{triples:[]},{type:"graph",name:d[m-5]});this.$=d[m]?[Sa,d[m]]:[Sa];break;case 68:case 73:this.$={type:"bgp",triples:ci(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(et=>et.type==="bind")){let et=d[m-1].indexOf(Ge),Le=new Set;for(let Ue of d[m-1].slice(0,et))(Ue.type==="group"||Ue.type==="bgp")&&O1(Ue).forEach(nr=>Le.add(nr));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]?ci([d[m-1]],d[m]):ci(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.$=va(d[m]);break;case 90:this.$=void 0;break;case 91:this.$=d[m-1].length?{type:"union",patterns:ci(d[m-1].map(Vl),[Vl(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:Di(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.$=Di(d[m-2],d[m-1]);break;case 101:this.$=ci(d[m-2],[d[m-1]]);break;case 102:case 112:this.$=Hl(d[m].map(Ge=>at(Ri(d[m-1]),Ge)));break;case 103:this.$=Hl(Dn(d[m].map(Ge=>at(Ri(d[m-1].entity),Ge)),d[m-1].triples));break;case 105:this.$=ci([d[m-1]],d[m]);break;case 106:this.$=ci(d[m]);break;case 107:this.$=Ul(d[m-1],d[m]);break;case 109:case 237:this.$=ve.factory.namedNode(uS);break;case 110:case 118:this.$=Di(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]?Hl(Dn(d[m].map(Ge=>at(Ri(d[m-1].entity),Ge)),d[m-1].triples)):d[m-1].triples;break;case 114:this.$=Ul(...d[m-1],d[m]);break;case 116:this.$=Ul(...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?ps("|",Di(d[m-1],d[m])):d[m];break;case 121:this.$=d[m-1].length?ps("/",Di(d[m-1],d[m])):d[m];break;case 122:this.$=d[m]?ps(d[m],[d[m-1]]):d[m-1];break;case 123:this.$=d[m-1]?ps(d[m-1],[d[m]]):d[m];break;case 125:case 131:this.$=ps(d[m-1],[d[m]]);break;case 129:this.$=ps("|",Di(d[m-2],d[m-1]));break;case 132:case 134:this.$=yS(d[m-1]);break;case 133:case 135:this.$=_S(d[m-1]);break;case 140:this.$={entity:d[m],triples:[]};break;case 145:this.$=Ml(d[m]);break;case 149:this.$=ve.factory.namedNode(v1);break;case 151:case 153:case 158:case 162:this.$=Ll(d[m-1],d[m]);break;case 152:this.$=["||",d[m]];break;case 154:this.$=["&&",d[m]];break;case 156:this.$=At(d[m-1],[d[m-2],d[m]]);break;case 157:this.$=At(d[m-2]?"notin":"in",[d[m-3],d[m]]);break;case 160:this.$=["+",Ll(d[m-1],d[m])];break;case 161:var Go=ui(d[m-1].value.replace("-",""),d[m-1].datatype);this.$=["-",Ll(Go,d[m])];break;case 164:this.$=At("UPLUS",[d[m]]);break;case 165:this.$=At(d[m-1],[d[m]]);break;case 166:this.$=At("UMINUS",[d[m]]);break;case 177:this.$=At(Wt(d[m-1]));break;case 178:this.$=At(Wt(d[m-3]),[d[m-1]]);break;case 179:this.$=va(At(Wt(d[m-3]),[d[m-1]]));break;case 180:this.$=At(Wt(d[m-5]),[d[m-3],d[m-1]]);break;case 181:this.$=At(Wt(d[m-7]),[d[m-5],d[m-3],d[m-1]]);break;case 182:this.$=va(At(Wt(d[m-7]),[d[m-5],d[m-3],d[m-1]]));break;case 183:this.$=At(Wt(d[m-1]),d[m]);break;case 184:this.$=At("bound",[Ml(d[m-1])]);break;case 185:this.$=At(d[m-1],[]);break;case 186:this.$=At(d[m-3],[d[m-1]]);break;case 187:this.$=At(d[m-2]?"notexists":"exists",[Vl(d[m])]);break;case 188:case 189:this.$=ds(d[m-1],{type:"aggregate",aggregation:Wt(d[m-4]),distinct:!!d[m-2]});break;case 190:this.$=ds(d[m-2],{type:"aggregate",aggregation:Wt(d[m-5]),distinct:!!d[m-3],separator:typeof d[m-1]=="string"?d[m-1]:" "});break;case 192:this.$=ui(d[m]);break;case 193:this.$=dS(d[m-1],Wt(d[m].substr(1)));break;case 194:this.$=ui(d[m-2],d[m]);break;case 195:case 204:this.$=ui(d[m],S1);break;case 196:case 205:this.$=ui(d[m],b1);break;case 197:case 206:this.$=ui(Wt(d[m]),w1);break;case 200:this.$=ui(d[m].toLowerCase(),hS);break;case 201:this.$=ui(d[m].substr(1),S1);break;case 202:this.$=ui(d[m].substr(1),b1);break;case 203:this.$=ui(d[m].substr(1).toLowerCase(),w1);break;case 207:case 208:this.$=x1(d[m],1);break;case 209:case 210:this.$=x1(d[m],3);break;case 211:this.$=ve.factory.namedNode(ya(d[m]));break;case 213:var Ho=d[m].indexOf(":"),ba=d[m].substr(0,Ho),zo=ve.prefixes[ba];if(!zo)throw new Error("Unknown prefix: "+ba);var nt=ya(zo+d[m].substr(Ho+1));this.$=ve.factory.namedNode(nt);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 nt=ya(ve.prefixes[d[m]]);this.$=ve.factory.namedNode(nt);break;case 215:this.$=_a(d[m].replace(/^(_:)/,""));break;case 216:this.$=_a();break;case 217:case 218:case 232:this.$=va(ql(d[m-3],d[m-2],d[m-1]));break;case 230:case 231:this.$=va(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(i,[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:n,16:n,45:n,197:n,224:n,229:n,308:n,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(S,[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:b,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:V,52:84,53:H,56:85},{19:88,28:P,29:V,52:89,53:H,56:85},r(u,[2,253],{26:90}),{28:[1,91],52:92,53:H},r(K,[2,385],{181:93,182:94,183:95,31:[2,383]}),r(Pe,[2,263],{34:96}),r(Pe,[2,261],{44:39,55:40,307:43,139:97,13:l,16:h,87:p,308:g}),r(Pe,[2,262]),r(Ze,[2,259]),r(ct,[2,143]),r(ct,[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:V,52:99,53:H,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(Xe,[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(Ie,[2,315]),r(Ie,[2,316]),r(Ne,[2,319]),r(Ne,[2,320]),r(Ne,[2,321]),r(S,[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:b,87:p}),r(Ce,[2,269]),r(Ce,[2,15]),{13:l,16:h,44:136,45:W,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:$,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:ie,302:ne,303:ae,304:U,305:G,306:oe,307:43,308:g,312:De,346:Oe,347:Ae,348:_,349:v,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(Ke,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,L,{23:204,58:205,62:206,63:de}),r(u,[2,252]),{19:208,28:P,29:V,52:209,53:H,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:Et,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:ie,302:ne,303:ae,304:U,305:G,306:oe,307:43,308:g,309:ir,310:hr,311:217,312:Ut},r($m,[2,265],{56:85,35:227,52:228,19:229,28:P,29:V,53:H}),r(Ze,[2,260]),r(M,L,{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:Wm,122:234,132:[1,237],134:235,327:[1,238],334:[1,239]},r(xe,[2,318]),r(ce,Gm,{108:240,133:242,112:Hm,132:zm}),r(Xe,[2,323]),{112:[1,244]},{112:[2,325]},r(Tt,[2,50]),r(K,Co,{135:245,136:246,143:247,144:248,31:Km,112:Km}),r(Tt,[2,51]),r(Tt,[2,52]),r(Xi,[2,328],{119:249}),{29:$e,114:250},r(Xi,[2,56]),{29:$e,114:251},r(S,[2,59]),r(Ce,[2,270]),{47:[1,252]},r(Ym,[2,150]),r(Fo,[2,428],{240:253}),r(cs,[2,430],{244:254}),r(cs,[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(us,[2,440],{252:264}),r(gt,[2,448],{260:265}),{13:l,16:h,44:136,45:W,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:$,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:ie,302:ne,303:ae,304:U,305:G,306:oe,307:43,308:g,312:De,346:Oe,347:Ae,348:_,349:v,350:w,351:C},{13:l,16:h,44:136,45:W,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:$,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:ie,302:ne,303:ae,304:U,305:G,306:oe,307:43,308:g,312:De,346:Oe,347:Ae,348:_,349:v,350:w,351:C},{13:l,16:h,44:136,45:W,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:$,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:ie,302:ne,303:ae,304:U,305:G,306:oe,307:43,308:g,312:De,346:Oe,347:Ae,348:_,349:v,350:w,351:C},r(gt,[2,167]),r(gt,[2,168]),r(gt,[2,169]),r(gt,[2,170],{176:269,45:Qm,89:Jm}),r(gt,[2,171]),r(gt,[2,172]),r(gt,[2,173]),r(gt,[2,174]),{13:l,16:h,44:136,45:W,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:$,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:ie,302:ne,303:ae,304:U,305:G,306:oe,307:43,308:g,312:De,346:Oe,347:Ae,348:_,349:v,350:w,351:C},r(ut,[2,176]),{89:[1,273]},{45:[1,274]},{45:[1,275]},{45:[1,276]},{45:[1,277]},{45:[1,278]},{45:Xm,89:Zm,179:279},{45:[1,282]},{45:[1,284],89:[1,283]},{279:[1,285]},r($t,[2,192],{292:[1,286],293:[1,287]}),r($t,[2,195]),r($t,[2,196]),r($t,[2,197]),r($t,[2,198]),r($t,[2,199]),r($t,[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:ie,302:ne,303:ae,304:U,305:G,306:oe,307:43,308:g,312:De,320:288},{45:[1,292]},{45:[1,293]},{45:[1,294]},r(da,[2,452]),r(da,[2,453]),r(da,[2,454]),r(da,[2,455]),r(da,[2,456]),{279:[2,458]},r(Po,[2,207]),r(Po,[2,208]),r(Po,[2,209]),r(Po,[2,210]),r($t,[2,201]),r($t,[2,202]),r($t,[2,203]),r($t,[2,204]),r($t,[2,205]),r($t,[2,206]),r(e,[2,5]),r(Io,[2,297],{88:295}),r(Do,[2,299],{90:296}),{48:[1,297],87:[1,298]},r(Ro,[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(An,[2,123]),r(An,[2,416],{221:303,339:304,39:[1,306],263:[1,307],340:[1,305]}),r(oi,[2,124]),{13:l,16:h,45:[1,311],55:194,89:[1,310],197:We,223:312,225:308,226:309,229:e1,307:43,308:g},r(c,n,{215:10,214:314}),r(oi,[2,236]),r(oi,[2,237]),r(ls,[2,6]),r(Fl,[2,287],{60:315,72:316,73:[1,317]}),r(Ke,[2,286]),{13:l,16:h,45:W,55:323,67:321,68:322,71:318,77:320,79:319,267:139,268:le,269:Se,270:$,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:v,350:w,351:C},r([6,31,63,70,73,81,83,85],[2,20]),r(K,t1,{38:17,49:324,147:325,17:326,21:327,148:328,154:329,155:330,29:Oi,31:Oi,85:Oi,112:Oi,159:Oi,160:Oi,161:Oi,163:Oi,164:Oi,41:s}),{13:l,16:h,55:331,307:43,308:g},r(ce,[2,280]),r(ls,[2,7]),r(Ke,me,{59:197,69:198,20:332,70:N}),r(M,[2,284]),{64:[1,333]},r(M,L,{58:205,62:206,23:334,63:de}),r(u,[2,254]),r(K,Co,{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:xn,307:43,308:g},r(pa,[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:xn,308:g}),r(Ci,[2,227]),r(Ci,[2,228]),r(Ci,[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:Et,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:ie,302:ne,303:ae,304:U,305:G,306:oe,307:43,308:g,309:ir,310:hr,311:217,312:Ut},{13:l,16:h,44:39,55:40,87:p,139:342,186:352,190:340,195:341,197:xn,307:43,308:g},r(Ci,[2,146]),r(Ci,[2,147]),r(Ci,[2,148]),r(Ci,[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:ie,302:ne,303:ae,304:U,305:G,306:oe,307:43,308:g,309:ir,310:hr,311:358,312:Ut,313:353},r(Pl,[2,215]),r(Pl,[2,216]),r(M,L,{58:205,62:206,23:359,63:de}),r(Pe,[2,264]),r($m,[2,266]),r(ls,[2,11]),r(i,[2,308],{6:[2,310]}),r(Tt,[2,313],{102:360,120:361,121:[1,362]}),r(Tt,[2,47]),r(Tt,[2,63]),r(Tt,[2,64]),{13:l,16:h,55:363,307:43,308:g},r(Tt,[2,336]),r(Tt,[2,337]),r(Tt,[2,338]),{109:[1,364]},r(r1,[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(On,[2,341],{137:368}),r(On,[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:Et,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:ie,302:ne,303:ae,304:U,305:G,306:oe,307:43,308:g,309:ir,310:hr,311:217,312:Ut},{28:[1,370],127:371,128:[1,372]},r(Xi,[2,330],{124:373,125:374,126:He}),r(Xi,[2,57]),{44:375,87:p},r(Ym,[2,151],{241:376,242:[1,377]}),r(Fo,[2,153],{245:378,246:[1,379]}),{13:l,16:h,44:136,45:W,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:$,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:ie,302:ne,303:ae,304:U,305:G,306:oe,307:43,308:g,312:De,346:Oe,347:Ae,348:_,349:v,350:w,351:C},{250:[1,381]},r(lt,[2,432]),r(lt,[2,433]),r(lt,[2,434]),r(lt,[2,435]),r(lt,[2,436]),r(lt,[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:ie,302:ne}),r(us,[2,162],{261:388,262:389,39:Il,338:Dl}),r(gt,[2,164]),r(gt,[2,165]),r(gt,[2,166]),r(ut,[2,95]),r(ut,[2,96]),r(lt,[2,377],{177:392,325:[1,393]}),{48:[1,394]},r(ut,[2,177]),{13:l,16:h,44:136,45:W,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:$,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:ie,302:ne,303:ae,304:U,305:G,306:oe,307:43,308:g,312:De,346:Oe,347:Ae,348:_,349:v,350:w,351:C},{13:l,16:h,44:136,45:W,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:$,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:ie,302:ne,303:ae,304:U,305:G,306:oe,307:43,308:g,312:De,346:Oe,347:Ae,348:_,349:v,350:w,351:C},{13:l,16:h,44:136,45:W,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:$,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:ie,302:ne,303:ae,304:U,305:G,306:oe,307:43,308:g,312:De,346:Oe,347:Ae,348:_,349:v,350:w,351:C},{13:l,16:h,44:136,45:W,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:$,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:ie,302:ne,303:ae,304:U,305:G,306:oe,307:43,308:g,312:De,346:Oe,347:Ae,348:_,349:v,350:w,351:C},{13:l,16:h,44:136,45:W,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:$,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:ie,302:ne,303:ae,304:U,305:G,306:oe,307:43,308:g,312:De,346:Oe,347:Ae,348:_,349:v,350:w,351:C},r(ut,[2,183]),r(ut,[2,98]),r(lt,[2,381],{180:400}),{87:[1,401]},r(ut,[2,185]),{13:l,16:h,44:136,45:W,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:$,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:ie,302:ne,303:ae,304:U,305:G,306:oe,307:43,308:g,312:De,346:Oe,347:Ae,348:_,349:v,350:w,351:C},{29:k,57:403},r($t,[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:xn,307:43,308:g},r(Zi,[2,233]),r(Zi,[2,234]),r(Zi,[2,235]),r(i1,[2,459],{281:406,325:[1,407]}),r(lt,[2,463],{284:408,325:[1,409]}),r(lt,[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:No,255:154,257:155,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ie,302:ne,303:ae,304:U,305:G,306:oe,307:43,308:g,312:ko},{31:[1,419],89:[1,420]},{29:[1,421]},r(Ro,[2,302]),r(Io,[2,367],{167:422}),r(Do,[2,369],{168:423}),{48:[1,424],87:[1,425]},r(Ro,[2,371]),r(An,[2,122]),r(An,[2,417]),r(An,[2,413]),r(An,[2,414]),r(An,[2,415]),r(oi,[2,125]),r(oi,[2,127]),r(oi,[2,128]),r(n1,[2,420],{227:426}),r(oi,[2,130]),{13:l,16:h,55:194,197:We,223:427,307:43,308:g},{48:[1,428]},r(en,[2,289],{61:429,80:430,81:[1,431],83:[1,432]}),r(Fl,[2,288]),{64:[1,433]},r(Ke,[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:W,268:le,269:Se,270:$,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:v,350:w,351:C}),r(s1,[2,293]),r(Rl,[2,92]),r(Rl,[2,93]),r(Rl,[2,94]),{45:Qm,89:Jm,176:269},{31:[1,435]},{31:[1,436]},{19:437,28:P,29:V,56:85},{19:438,28:P,29:V,56:85},r(Cn,[2,355],{149:439}),r(Cn,[2,354]),{13:l,16:h,44:215,45:jo,55:220,82:R,87:p,89:Me,156:440,172:221,185:441,203:442,231:Mo,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:ie,302:ne,303:ae,304:U,305:G,306:oe,307:43,308:g,309:ir,310:hr,311:217,312:Ut},r(Pe,[2,19]),r(en,[2,21]),{13:l,16:h,44:450,45:a1,55:323,65:445,66:446,67:447,68:448,87:p,267:139,268:le,269:Se,270:$,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:v,350:w,351:C},r(ls,[2,8]),{31:[1,451]},{31:[2,258]},{31:[2,101]},r(K,[2,386],{31:[2,388]}),r(pa,[2,102]),r(Fn,[2,391],{191:452}),r(K,[2,395],{196:453,198:454}),r(K,[2,108]),r(K,[2,109]),r(pa,[2,103]),r(pa,[2,104]),r(pa,[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:Et,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:ie,302:ne,303:ae,304:U,305:G,306:oe,307:43,308:g,309:ir,310:hr,311:217,312:Ut},r(Lo,[2,424]),r(o1,[2,136]),r(o1,[2,137]),r(Nl,[2,140]),{232:[1,457]},{13:l,16:h,44:39,55:40,87:p,139:342,195:458,197:xn,307:43,308:g},r(Zi,[2,219]),r(Zi,[2,220]),r(Zi,[2,221]),r(Zi,[2,222]),r(Zi,[2,223]),r(ls,[2,10]),r(Tt,[2,46]),r(Tt,[2,314]),{112:Wm,122:459},r(Tt,[2,62]),r(ce,Gm,{133:242,108:460,112:Hm,132:zm}),r(r1,[2,61]),r(Tt,[2,49]),r([6,28,126,128,193],[2,65]),{31:[2,66],112:[1,462],138:461},r(On,[2,351],{146:463,335:[1,464]}),{29:k,57:465},r(Xi,[2,329]),r(ce,[2,332],{129:466,327:[1,467]}),r(Xi,[2,55]),r(Xi,[2,331]),{48:[1,468]},r(Fo,[2,429]),{13:l,16:h,44:136,45:W,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:$,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:ie,302:ne,303:ae,304:U,305:G,306:oe,307:43,308:g,312:De,346:Oe,347:Ae,348:_,349:v,350:w,351:C},r(cs,[2,431]),{13:l,16:h,44:136,45:W,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:$,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:ie,302:ne,303:ae,304:U,305:G,306:oe,307:43,308:g,312:De,346:Oe,347:Ae,348:_,349:v,350:w,351:C},r(cs,[2,156]),{45:Xm,89:Zm,179:471},r(us,[2,441]),{13:l,16:h,44:136,45:W,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:$,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:ie,302:ne,303:ae,304:U,305:G,306:oe,307:43,308:g,312:De,346:Oe,347:Ae,348:_,349:v,350:w,351:C},r(gt,[2,444],{256:473}),r(gt,[2,446],{258:474}),r(lt,[2,442]),r(lt,[2,443]),r(gt,[2,449]),{13:l,16:h,44:136,45:W,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:$,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:ie,302:ne,303:ae,304:U,305:G,306:oe,307:43,308:g,312:De,346:Oe,347:Ae,348:_,349:v,350:w,351:C},r(lt,[2,450]),r(lt,[2,451]),r(lt,[2,379],{178:476}),r(lt,[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:W,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:$,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:ie,302:ne,303:ae,304:U,305:G,306:oe,307:43,308:g,312:De,346:Oe,347:Ae,348:_,349:v,350:w,351:C},{48:[1,483]},{48:[1,484]},r(ut,[2,187]),r($t,[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:ie,302:ne,303:ae,304:U,305:G,306:oe,307:43,308:g,312:De,320:485},{13:l,16:h,39:[1,487],44:136,45:W,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:$,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:ie,302:ne,303:ae,304:U,305:G,306:oe,307:43,308:g,312:De,346:Oe,347:Ae,348:_,349:v,350:w,351:C},r(i1,[2,460]),{13:l,16:h,44:136,45:W,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:$,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:ie,302:ne,303:ae,304:U,305:G,306:oe,307:43,308:g,312:De,346:Oe,347:Ae,348:_,349:v,350:w,351:C},r(lt,[2,464]),{13:l,16:h,44:136,45:W,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:$,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:ie,302:ne,303:ae,304:U,305:G,306:oe,307:43,308:g,312:De,346:Oe,347:Ae,348:_,349:v,350:w,351:C},r(lt,[2,466]),r(q,[2,40]),r(Io,[2,298]),r(ma,[2,87]),r(ma,[2,88]),r(ma,[2,89]),r(ma,[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:ie,302:ne,303:ae,304:U,305:G,306:oe,307:43,308:g,311:494,312:Ut,315:491},r(q,[2,41]),r(Do,[2,300]),r(ga,[2,303],{92:495}),{13:l,16:h,31:[1,496],55:414,82:R,171:497,172:415,173:416,174:No,255:154,257:155,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ie,302:ne,303:ae,304:U,305:G,306:oe,307:43,308:g,312:ko},{31:[1,498],89:[1,499]},{29:[1,500]},r(Ro,[2,372]),{13:l,16:h,48:[2,422],55:194,197:We,223:312,226:502,228:501,229:e1,307:43,308:g},r(oi,[2,131]),r(oi,[2,126]),r(en,[2,22]),r(en,[2,290]),{82:[1,503]},{82:[1,504]},{13:l,16:h,44:510,45:W,55:323,67:321,68:322,74:505,75:506,76:c1,77:320,78:u1,79:509,87:p,267:139,268:le,269:Se,270:$,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:v,350:w,351:C},r(s1,[2,294]),r(l1,[2,69]),r(l1,[2,70]),r(Ke,me,{59:197,69:198,20:511,70:N}),r(M,L,{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(Cn,[2,363],{157:524,335:[1,525]}),r(c,n,{215:10,202:526,205:527,208:528,214:529,44:530,87:p}),r(Vo,[2,399],{215:10,205:527,208:528,214:529,44:530,204:531,202:532,13:n,16:n,45:n,197:n,224:n,229:n,308:n,87:p}),{13:l,16:h,44:215,45:jo,55:220,82:R,87:p,89:Me,172:221,185:351,203:536,212:534,231:Mo,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:ie,302:ne,303:ae,304:U,305:G,306:oe,307:43,308:g,309:ir,310:hr,311:217,312:Ut},r(c,n,{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:a1,87:p,268:le,269:Se,270:$,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:v,350:w,351:C}),r(Pn,[2,291]),r(Pn,[2,24]),r(Pn,[2,25]),{13:l,16:h,44:136,45:W,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:$,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:ie,302:ne,303:ae,304:U,305:G,306:oe,307:43,308:g,312:De,346:Oe,347:Ae,348:_,349:v,350:w,351:C},r(Pn,[2,28]),r(M,L,{58:205,62:206,23:540,63:de}),r([31,112,232,318,335],[2,105],{192:541,193:[1,542]}),r(Fn,[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:Et,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:ie,302:ne,303:ae,304:U,305:G,306:oe,307:43,308:g,309:ir,310:hr,311:217,312:Ut},r(f1,[2,132]),r(Lo,[2,425]),r(f1,[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:ie,302:ne,303:ae,304:U,305:G,306:oe,307:43,308:g,309:ir,310:hr,311:358,312:Ut,313:545},r(Tt,[2,54]),r(Tt,[2,48]),r(On,[2,342]),{13:l,16:h,44:39,55:40,87:p,139:546,307:43,308:g},r(On,[2,68]),r(K,[2,350],{31:h1,112:h1}),r(Tt,[2,53]),{13:l,16:h,55:547,307:43,308:g},r(ce,[2,333]),r(Ce,[2,16]),r(Fo,[2,152]),r(cs,[2,154]),r(cs,[2,157]),r(us,[2,159]),r(us,[2,160],{262:389,261:548,39:Il,338:Dl}),r(us,[2,161],{262:389,261:549,39:Il,338:Dl}),r(gt,[2,163]),{13:l,16:h,44:136,45:W,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:$,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:ie,302:ne,303:ae,304:U,305:G,306:oe,307:43,308:g,312:De,346:Oe,347:Ae,348:_,349:v,350:w,351:C},r(ut,[2,178]),r(ut,[2,179]),{13:l,16:h,44:136,45:W,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:$,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:ie,302:ne,303:ae,304:U,305:G,306:oe,307:43,308:g,312:De,346:Oe,347:Ae,348:_,349:v,350:w,351:C},{13:l,16:h,44:136,45:W,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:$,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:ie,302:ne,303:ae,304:U,305:G,306:oe,307:43,308:g,312:De,346:Oe,347:Ae,348:_,349:v,350:w,351:C},{13:l,16:h,44:136,45:W,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:$,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:ie,302:ne,303:ae,304:U,305:G,306:oe,307:43,308:g,312:De,346:Oe,347:Ae,348:_,349:v,350:w,351:C},{48:[1,554],272:[1,555]},r(ut,[2,184]),r(ut,[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(kl,[2,224]),r(kl,[2,225]),r(kl,[2,226]),{31:[1,563],45:d1,94:564},r(q,[2,84]),r(Io,[2,368]),r(q,[2,85]),r(Do,[2,370]),r(ga,[2,373],{170:566}),{48:[1,567]},{48:[2,423],337:[1,568]},r(en,[2,35],{83:[1,569]}),r(en,[2,36],{81:[1,570]}),r(Fl,[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:W,76:c1,78:u1,87:p,268:le,269:Se,270:$,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:v,350:w,351:C}),r(fs,[2,295]),{45:W,77:572},{45:W,77:573},r(fs,[2,33]),r(fs,[2,34]),{31:[2,275],50:574,84:575,85:a},{31:[2,277],51:576,84:577,85:a},r(Cn,[2,356]),r(p1,[2,357],{152:578,335:[1,579]}),r(Fi,[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(m1,[2,365],{162:583,328:[1,584]}),{13:l,16:h,45:W,55:323,67:321,68:322,77:320,79:585,267:139,268:le,269:Se,270:$,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:v,350:w,351:C},{45:[1,586]},r(Fi,[2,81]),{29:k,57:587},r(Cn,[2,73]),r(K,[2,362],{29:Pi,31:Pi,85:Pi,112:Pi,159:Pi,160:Pi,161:Pi,163:Pi,164:Pi}),r(Vo,[2,112]),r(hs,[2,401],{206:588}),r(K,[2,405],{209:589,210:590}),r(K,[2,403]),r(K,[2,404]),r(Vo,[2,113]),r(Vo,[2,400]),{13:l,16:h,44:215,45:jo,48:[1,591],55:220,82:R,87:p,89:Me,172:221,185:351,203:536,212:592,231:Mo,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:ie,302:ne,303:ae,304:U,305:G,306:oe,307:43,308:g,309:ir,310:hr,311:217,312:Ut},r(Lo,[2,426]),r(Nl,[2,138]),r(Nl,[2,139]),{232:[1,593]},r(Pn,[2,292]),{47:[1,595],48:[1,594]},r(ls,[2,9]),r(Fn,[2,392]),r(Fn,[2,393],{44:39,55:40,307:43,195:341,139:342,194:596,190:597,13:l,16:h,87:p,197:xn,308:g}),r(Fn,[2,110],{272:[1,598]}),r(qo,[2,397],{201:599,316:600,317:[1,601]}),{314:[1,602]},{29:[1,603]},r(Xi,[2,58]),r(gt,[2,445]),r(gt,[2,447]),{48:[1,604],272:[1,605]},{48:[1,606]},{272:[1,607]},{272:[1,608]},r(ut,[2,99]),r(lt,[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(ut,[2,188]),r(ut,[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:ie,302:ne,303:ae,304:U,305:G,306:oe,307:43,308:g,311:494,312:Ut,315:611},r(q,[2,42]),r(ga,[2,304]),{13:l,16:h,55:414,82:R,95:612,171:613,172:415,173:416,174:No,255:154,257:155,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ie,302:ne,303:ae,304:U,305:G,306:oe,307:43,308:g,312:ko},{31:[1,614],45:d1,94:615},r(oi,[2,129]),r(n1,[2,421]),{82:[1,616]},{82:[1,617]},r(fs,[2,296]),r(fs,[2,31]),r(fs,[2,32]),{31:[2,17]},{31:[2,276]},{31:[2,18]},{31:[2,278]},r(K,t1,{155:330,153:618,154:619,29:Ii,31:Ii,85:Ii,112:Ii,159:Ii,160:Ii,161:Ii,163:Ii,164:Ii}),r(p1,[2,358]),r(Fi,[2,75]),r(Fi,[2,76]),{29:k,57:620},{13:l,16:h,44:39,55:40,87:p,139:621,307:43,308:g},r(m1,[2,366]),r(Fi,[2,79]),{13:l,16:h,44:136,45:W,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:$,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:ie,302:ne,303:ae,304:U,305:G,306:oe,307:43,308:g,312:De,346:Oe,347:Ae,348:_,349:v,350:w,351:C},r(Fi,[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(hs,[2,117]),{13:l,16:h,44:215,45:jo,55:220,82:R,87:p,89:Me,172:221,185:351,203:536,211:626,212:627,231:Mo,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:ie,302:ne,303:ae,304:U,305:G,306:oe,307:43,308:g,309:ir,310:hr,311:217,312:Ut},r(Ci,[2,134]),r(Lo,[2,427]),r(Ci,[2,135]),r(Pn,[2,26]),{44:628,87:p},r(Fn,[2,106]),r(Fn,[2,394]),r(K,[2,396]),r(qo,[2,111]),r(qo,[2,398]),{13:l,16:h,44:39,55:40,87:p,139:342,186:629,190:340,195:341,197:xn,307:43,308:g},r(Pl,[2,217]),r(K,Co,{144:248,140:630,143:631,31:[2,343]}),r(ut,[2,97]),r(lt,[2,380]),r(ut,[2,180]),{13:l,16:h,44:136,45:W,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:$,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:ie,302:ne,303:ae,304:U,305:G,306:oe,307:43,308:g,312:De,346:Oe,347:Ae,348:_,349:v,350:w,351:C},{13:l,16:h,44:136,45:W,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:$,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:ie,302:ne,303:ae,304:U,305:G,306:oe,307:43,308:g,312:De,346:Oe,347:Ae,348:_,349:v,350:w,351:C},r(ut,[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:No,255:154,257:155,291:150,294:J,295:te,296:re,297:X,298:Z,299:ee,300:Q,301:ie,302:ne,303:ae,304:U,305:G,306:oe,307:43,308:g,312:ko},r(g1,[2,305]),r(q,[2,86]),r(ga,[2,374]),r(en,[2,37]),r(en,[2,38]),r(Cn,[2,72]),r(Cn,[2,360]),r(Fi,[2,77]),{29:k,57:638},{47:[1,639]},{29:[2,376]},r(hs,[2,402]),r(hs,[2,115],{215:10,208:528,214:529,44:530,205:640,13:n,16:n,45:n,197:n,224:n,229:n,308:n,87:p}),r(hs,[2,118],{272:[1,641]}),r(Bo,[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:G,306:oe},r(ma,[2,218]),r(ga,[2,44]),r(g1,[2,306]),r(Fi,[2,78]),{44:651,87:p},r(hs,[2,116]),r(K,[2,406]),r(Bo,[2,119]),r(Bo,[2,408]),r(c,n,{215:10,205:527,208:528,214:529,44:530,202:652,87:p}),r(Pn,[2,27]),r(qo,[2,230]),r(y1,[2,345],{141:653,335:[1,654]}),r(ut,[2,181]),r(ut,[2,182]),{48:[2,191]},{48:[1,655]},{318:[1,656]},r(K,Co,{144:248,142:657,143:658,31:_1,112:_1}),r(y1,[2,346]),r(Fi,[2,80]),r(Bo,[2,231]),r(On,[2,67]),r(On,[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=[],Gt=this.table,m="",li=0,Sa=0,Go=0,Ho=2,ba=1,zo=d.slice.call(arguments,1),nt=Object.create(this.lexer),fi={yy:{}};for(var wa in this.yy)Object.prototype.hasOwnProperty.call(this.yy,wa)&&(fi.yy[wa]=this.yy[wa]);nt.setInput(E,fi.yy),fi.yy.lexer=nt,fi.yy.parser=this,typeof nt.yylloc>"u"&&(nt.yylloc={});var ys=nt.yylloc;d.push(ys);var Ge=nt.options&&nt.options.ranges;typeof fi.yy.parseError=="function"?this.parseError=fi.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function et(hi){I.length=I.length-2*hi,pe.length=pe.length-hi,d.length=d.length-hi}o(et,"popStack");for(var Le=o(function(){var hi;return hi=nt.lex()||ba,typeof hi!="number"&&(hi=O.symbols_[hi]||hi),hi},"lex"),Ue,nr,Nn,wr,CP,Kl,_s={},Ko,Ni,P1,Yo;;){if(Nn=I[I.length-1],this.defaultActions[Nn]?wr=this.defaultActions[Nn]:((Ue===null||typeof Ue>"u")&&(Ue=Le()),wr=Gt[Nn]&&Gt[Nn][Ue]),typeof wr>"u"||!wr.length||!wr[0]){var Yl="";Yo=[];for(Ko in Gt[Nn])this.terminals_[Ko]&&Ko>Ho&&Yo.push("'"+this.terminals_[Ko]+"'");nt.showPosition?Yl="Parse error on line "+(li+1)+`:
96
96
  `+nt.showPosition()+`
97
97
  Expecting `+Yo.join(", ")+", got '"+(this.terminals_[Ue]||Ue)+"'":Yl="Parse error on line "+(li+1)+": Unexpected "+(Ue==ba?"end of input":"'"+(this.terminals_[Ue]||Ue)+"'"),this.parseError(Yl,{text:nt.match,token:this.terminals_[Ue]||Ue,line:nt.yylineno,loc:ys,expected:Yo})}if(wr[0]instanceof Array&&wr.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Nn+", token: "+Ue);switch(wr[0]){case 1:I.push(Ue),pe.push(nt.yytext),d.push(nt.yylloc),I.push(wr[1]),Ue=null,nr?(Ue=nr,nr=null):(Sa=nt.yyleng,m=nt.yytext,li=nt.yylineno,ys=nt.yylloc,Go>0&&Go--);break;case 2:if(Ni=this.productions_[wr[1]][1],_s.$=pe[pe.length-Ni],_s._$={first_line:d[d.length-(Ni||1)].first_line,last_line:d[d.length-1].last_line,first_column:d[d.length-(Ni||1)].first_column,last_column:d[d.length-1].last_column},Ge&&(_s._$.range=[d[d.length-(Ni||1)].range[0],d[d.length-1].range[1]]),Kl=this.performAction.apply(_s,[m,Sa,li,fi.yy,wr[1],pe,d].concat(zo)),typeof Kl<"u")return Kl;Ni&&(I=I.slice(0,-1*Ni*2),pe=pe.slice(0,-1*Ni),d=d.slice(0,-1*Ni)),I.push(this.productions_[wr[1]][0]),pe.push(_s.$),d.push(_s._$),P1=Gt[I[I.length-2]][I[I.length-1]],I.push(P1);break;case 3:return!0}}return!0},"parse")},Uo=Ud().Wildcard,$o="http://www.w3.org/1999/02/22-rdf-syntax-ns#",uS=$o+"type",lS=$o+"first",fS=$o+"rest",v1=$o+"nil",Wo="http://www.w3.org/2001/XMLSchema#",S1=Wo+"integer",b1=Wo+"decimal",w1=Wo+"double",hS=Wo+"boolean",In="",E1="",T1="";function Wt(T){return T.toLowerCase()}o(Wt,"lowercase");function Di(T,E){return T.push(E),T}o(Di,"appendTo");function Dn(T,E){return T.push.apply(T,E),T}o(Dn,"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 ci(){for(var T=[],E=0,O=arguments.length;E<O;E++)T=T.concat.apply(T,arguments[E]);return T}o(ci,"unionAll");function ya(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(In!==ve.base&&(In=ve.base,E1=In.replace(/[^\/:]*$/,""),T1=In.match(/^(?:[a-z]+:\/*)?[^\/]*/)[0]),T[0]){case void 0:return In;case"#":return In+T;case"?":return In.replace(/(?:\?.*)?$/,T);case"/":return T1+T;default:return E1+T}}o(ya,"resolveIRI");function Ml(T){if(T){var E=T[0];if(E==="?"||E==="$")return ve.factory.variable(T.substr(1))}return T}o(Ml,"toVar");function At(T,E){return{type:"operation",operator:T,args:E||[]}}o(At,"operation");function ds(T,E){var O={expression:T==="*"?new Uo:T};if(E)for(var I in E)O[I]=E[I];return O}o(ds,"expression");function ps(T,E){return{type:"path",pathType:T,items:E}}o(ps,"path");function Ll(T,E){for(var O=0,I=E.length,z;O<I&&(z=E[O]);O++)T=At(z[0],[T,z[1]]);return T}o(Ll,"createOperationTree");function Rn(T,E){var O=[],I=[],z=T.length,pe,d={};if(!z)return null;for(var Gt=0;Gt<z&&(pe=T[Gt]);Gt++)(pe.named?I:O).push(pe.iri);return d[E||"from"]={default:O,named:I},d}o(Rn,"groupDatasets");function ms(T){return parseInt(T,10)}o(ms,"toInt");function Vl(T){return T.type==="group"&&T.patterns.length===1?T.patterns[0]:T}o(Vl,"degroupSingle");function ui(T,E){return E&&E.termType!=="NamedNode"&&(E=ve.factory.namedNode(E)),ve.factory.literal(T,E)}o(ui,"createTypedLiteral");function dS(T,E){return ve.factory.literal(T,E)}o(dS,"createLangLiteral");function ql(T,E,O){if(!("termType"in E))throw new Error("Nested triples cannot contain paths");return ve.factory.quad(T,E,O)}o(ql,"nestedTriple");function Ri(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(Ri,"triple");function _a(T){return typeof T=="string"?T.startsWith("e_")?ve.factory.blankNode(T):ve.factory.blankNode("e_"+T):ve.factory.blankNode("g_"+A1++)}o(_a,"blank");var A1=0;ve._resetBlanks=function(){A1=0};var pS=/\\u([a-fA-F0-9]{4})|\\U([a-fA-F0-9]{8})|\\(.)/g,mS={"\\":"\\","'":"'",'"':'"',t:" ",b:"\b",n:`
98
98
  `,r:"\r",f:"\f"},gS=/[\uD800-\uDBFF]([^\uDC00-\uDFFF]|$)/,Bl=String.fromCharCode;function x1(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 Bl(d)}else if(z){if(d=parseInt(z,16),isNaN(d))throw new Error;return d<65535?Bl(d):Bl(55296+((d-=65536)>>10),56320+(d&1023))}else{var Gt=mS[pe];if(!Gt)throw new Error;return Gt}})}catch{return""}if(gS.exec(T))throw new Error("Invalid unicode codepoint of surrogate pair without corresponding codepoint in "+T);return T}o(x1,"unescapeString");function yS(T){var E=_a(),O=E,I=[],z,pe=[];T.forEach(function(li){I.push(li.entity),Dn(pe,li.triples)});for(var d=0,Gt=0,m=I.length,z=Array(m*2);d<m;)z[Gt++]=Ri(O,ve.factory.namedNode(lS),I[d]),z[Gt++]=Ri(O,ve.factory.namedNode(fS),O=++d<m?_a():ve.factory.namedNode(v1));return{entity:E,triples:Dn(z,pe)}}o(yS,"createList");function _S(T){var E=_a();return{entity:E,triples:T.map(function(O){return at(Ri(E),O)})}}o(_S,"createAnonymousObject");function Ul(T,E,O){var I=[],z=[];return E.forEach(function(pe){let d=null;pe.annotation&&(d=pe.annotation,pe=pe.object),I.push(Ri(null,T,pe.entity,d)),Dn(z,pe.triples)}),ci(I,O||[],z)}o(Ul,"objectListToTriples");function xP(T){for(var E=[],O,I=0,z;z=T[I];I++)switch(z.type){case"bgp":z.triples.length&&(O?Dn(O.triples,z.triples):Di(E,O=z));break;default:(!z.patterns||z.patterns.length>0)&&(Di(E,z),O=null)}return E}o(xP,"mergeAdjacentBGPs");function gs(T){return T.variable?T.variable.value:T.value||T.expression.value}o(gs,"getExpressionId");function $l(T){if(!T)return[];if(T.type==="aggregate")return[T];if(T.type==="operation"){let E=[];for(let O of T.args)E.push(...$l(O));return E}return[]}o($l,"getAggregatesOfExpression");function vS(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(vS,"getVariablesFromExpression");function Wl(T,E=1,O=[]){for(let I of T)E>0&&I instanceof Array?Wl(I,E-1,O):O.push(I);return O}o(Wl,"flatten");function Gl(T){return T.termType==="Variable"}o(Gl,"isVariable");function O1(T){if(T.triples){let E=[];for(let O of T.triples)Gl(O.subject)&&E.push(O.subject.value),Gl(O.predicate)&&E.push(O.predicate.value),Gl(O.object)&&E.push(O.object.value);return E}else if(T.patterns){let E=[];for(let O of T.patterns)E.push(...O1(O));return E}return[]}o(O1,"getBoundVarsFromGroupGraphPattern");function SS(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(SS,"getDuplicatesInArray");function va(T){if(!ve.sparqlStar)throw new Error("SPARQL-star support is not enabled");return T}o(va,"ensureSparqlStar");function C1(T,E,O){for(let I of E){let z=Ri("subject"in I?I.subject:T,I.predicate,I.object);O.push(z),I.annotations&&C1(ql(T,I.predicate,I.object),I.annotations,O)}}o(C1,"_applyAnnotations");function Hl(T){if(ve.sparqlStar){let E=[];return T.forEach(O=>{let I=Ri(O.subject,O.predicate,O.object);E.push(I),O.annotations&&C1(ql(O.subject,O.predicate,O.object),O.annotations,E)}),E}return T}o(Hl,"applyAnnotations");function OP(T){if(!ve.sparqlStarNestedQuads)throw new Error("Lenient SPARQL-star support with nested quads is not enabled");return T}o(OP,"ensureSparqlStarNestedQuads");function F1(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(F1,"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 bS=(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).
@@ -247,7 +247,7 @@ globstar while`,e,p,t,g,S),this.matchOne(e.slice(p),t.slice(g),i))return this.de
247
247
  \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(n){Fe.handle(n)}}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,i={}){return this.creationExecutor.executeCreateTask(e,t,i)}async executeCreateMeeting(e,t,i={}){return this.creationExecutor.executeCreateMeeting(e,t,i)}async executeCreateProject(e,t,i={}){return this.creationExecutor.executeCreateProject(e,t,i)}async executeCreateArea(e,t,i={}){return this.creationExecutor.executeCreateArea(e,t,i)}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 Bt(r,e,t,i,n){if(r==="json"){let s={command:e,filepath:t,action:i,...n&&{changes:n}},a=er.success(s);console.log(JSON.stringify(a,null,2))}else console.log(`\u2705 ${i}`)}o(Bt,"outputResult");function os(r,e,t,i){let n=new st(`--${e} option is required for ${t} command`,i,{command:t,missingOption:e});Fe.handle(n)}o(os,"handleMissingOption");function nS(){return new di("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 i=t.format||"text";Fe.setFormat(i);try{let n=(0,iS.resolve)(t.vault),s=new xl(n,t.dryRun);switch(r){case"rename-to-uid":await s.executeRenameToUid(e),Bt(i,r,e,"Renamed file to UID-based name");break;case"update-label":t.label||os(i,"label","update-label",'exocortex command update-label <filepath> --label "<value>"'),await s.executeUpdateLabel(e,t.label),Bt(i,r,e,`Updated label to "${t.label}"`,{label:t.label});break;case"start":await s.executeStart(e),Bt(i,r,e,"Started task");break;case"complete":await s.executeComplete(e),Bt(i,r,e,"Completed task");break;case"trash":await s.executeTrash(e),Bt(i,r,e,"Moved task to trash");break;case"archive":await s.executeArchive(e),Bt(i,r,e,"Archived task");break;case"move-to-backlog":await s.executeMoveToBacklog(e),Bt(i,r,e,"Moved task to backlog");break;case"move-to-analysis":await s.executeMoveToAnalysis(e),Bt(i,r,e,"Moved task to analysis");break;case"move-to-todo":await s.executeMoveToToDo(e),Bt(i,r,e,"Moved task to todo");break;case"create-task":t.label||os(i,"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}),Bt(i,r,e,`Created task "${t.label}"`,{label:t.label,prototype:t.prototype,area:t.area,parent:t.parent});break;case"create-meeting":t.label||os(i,"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}),Bt(i,r,e,`Created meeting "${t.label}"`,{label:t.label,prototype:t.prototype,area:t.area,parent:t.parent});break;case"create-project":t.label||os(i,"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}),Bt(i,r,e,`Created project "${t.label}"`,{label:t.label,prototype:t.prototype,area:t.area,parent:t.parent});break;case"create-area":t.label||os(i,"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}),Bt(i,r,e,`Created area "${t.label}"`,{label:t.label,prototype:t.prototype,area:t.area,parent:t.parent});break;case"schedule":t.date||os(i,"date","schedule",'exocortex command schedule <filepath> --date "YYYY-MM-DD"'),await s.executeSchedule(e,t.date),Bt(i,r,e,`Scheduled task for ${t.date}`,{date:t.date});break;case"set-deadline":t.date||os(i,"date","set-deadline",'exocortex command set-deadline <filepath> --date "YYYY-MM-DD"'),await s.executeSetDeadline(e,t.date),Bt(i,r,e,`Set deadline to ${t.date}`,{date:t.date});break;default:await s.execute(r,e,t),Bt(i,r,e,`Executed ${r}`);break}}catch(n){Fe.handle(n)}})}o(nS,"commandCommand");var aS=require("path");var Ji=Ye(require("fs")),Lm=Ye(require("path")),sS=require("events");var TP={watch:Ji.default.watch.bind(Ji.default),existsSync:Ji.default.existsSync.bind(Ji.default),statSync:Ji.default.statSync.bind(Ji.default),readFileSync:Ji.default.readFileSync.bind(Ji.default)},Ol=class extends sS.EventEmitter{constructor(t,i={}){super();this.watcher=null;this.debounceTimers=new Map;this.isRunning=!1;this.vaultPath=Lm.default.resolve(t),this.fsAdapter=i.fsAdapter??TP,this.options={pattern:i.pattern??"**/*.md",assetType:i.assetType??"",debounceMs:i.debounceMs??100,recursive:i.recursive??!0}}static{o(this,"FileSystemWatcher")}start(){this.isRunning||(this.watcher=this.fsAdapter.watch(this.vaultPath,{recursive:this.options.recursive},(t,i)=>{i&&this.handleFileEvent(t,i.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,i){let n=Lm.default.join(this.vaultPath,i),s=i;if(!this.matchesPattern(s))return;let a=this.debounceTimers.get(n);a&&clearTimeout(a);let c=setTimeout(()=>{this.debounceTimers.delete(n),this.processFileEvent(n,s)},this.options.debounceMs);this.debounceTimers.set(n,c)}processFileEvent(t,i){let n=this.fsAdapter.existsSync(t),s;if(!n)s="delete";else{let u=this.fsAdapter.statSync(t);s=Date.now()-u.birthtimeMs<1e3?"create":"modify"}let a;if(n&&t.endsWith(".md")&&(a=this.extractAssetType(t)),this.options.assetType&&a!==this.options.assetType)return;let c={type:s,path:t,relativePath:i,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 n=this.fsAdapter.readFileSync(t,"utf-8").match(/^---\n([\s\S]*?)\n---/);if(!n)return;let a=n[1].match(/exo__Instance_class:\s*(?:\[?"?\[\[([^\]]+)\]\]"?\]?|"?\[\[([^\]]+)\]\]"?)/);return a?a[1]||a[2]:void 0}catch{return}}};var Vm=Ye(require("fs"));function oS(){return new di("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=>{Fe.setFormat("json");try{let e=(0,aS.resolve)(r.vault);if(!Vm.default.existsSync(e))throw new is(e);if(!Vm.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 i=new Ol(e,{pattern:r.pattern,assetType:r.assetType,debounceMs:t});i.on("change",s=>{console.log(JSON.stringify(s))}),i.on("error",s=>{let a=er.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 n=o(()=>{i.stop(),process.exit(0)},"shutdown");process.on("SIGINT",n),process.on("SIGTERM",n),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"),i.start()}catch(e){Fe.handle(e)}})}o(oS,"watchCommand");var Bm=require("path"),Um=Ye(Hs());var fa=Ye(dn());var ai=Ye(Hs()),qm=Ye(require("crypto"));var Cl=class{constructor(){this.backups=new Map;this.fileHashes=new Map}static{o(this,"TransactionManager")}async begin(e){if(!ai.default.existsSync(e))throw new Error(`Cannot backup non-existent file: ${e}`);let t=await ai.default.readFile(e,"utf-8"),i=qm.default.createHash("sha256").update(t).digest("hex");this.fileHashes.set(e,i);let n=`${e}.backup.${Date.now()}`;await ai.default.writeFile(n,t,"utf-8"),this.backups.set(e,n)}async verify(e){let t=this.fileHashes.get(e);if(!t)return!0;if(!ai.default.existsSync(e))return!1;let i=await ai.default.readFile(e,"utf-8");return qm.default.createHash("sha256").update(i).digest("hex")===t}async commit(){for(let e of this.backups.values())ai.default.existsSync(e)&&await ai.default.remove(e);this.backups.clear(),this.fileHashes.clear()}async rollback(){for(let[e,t]of this.backups.entries())ai.default.existsSync(t)&&(await ai.default.copy(t,e,{overwrite:!0}),await ai.default.remove(t));this.backups.clear(),this.fileHashes.clear()}getTrackedFiles(){return Array.from(this.backups.keys())}};var Oo=class{static{o(this,"BatchExecutor")}constructor(e,t=!1){this.pathResolver=new ua(e),this.fsAdapter=new ca(e),this.frontmatterService=new fa.FrontmatterService,this.transactionManager=new Cl,this.dryRun=t}async executeBatch(e,t=!1){let i=Date.now(),n=[],s=0,a=0,c=!1;if(e.length===0)return{success:!0,total:0,succeeded:0,failed:0,results:[],durationMs:Date.now()-i,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()-i,atomic:t}}for(let f of e){let l=await this.executeSingleOperation(f);if(n.push(l),l.success)s++;else if(a++,t&&!this.dryRun){await this.transactionManager.rollback(),c=!0;let h=n.length;for(let p=h;p<e.length;p++)n.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:n,durationMs:Date.now()-i,atomic:t,rolledBack:!0}}}return t&&!this.dryRun&&!c&&await this.transactionManager.commit(),{success:a===0,total:e.length,succeeded:s,failed:a,results:n,durationMs:Date.now()-i,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 i of t){if(!i.command||typeof i.command!="string")throw new st('Each operation must have a "command" string property','{"command":"start","filepath":"task.md"}');if(!i.filepath||typeof i.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 i of e){let n=this.pathResolver.resolve(i.filepath);t.add(n)}for(let i of t)await this.transactionManager.begin(i)}async executeSingleOperation(e){try{let t=this.pathResolver.resolve(e.filepath);this.pathResolver.validate(t);let i=t.replace(this.pathResolver.getVaultRoot()+"/",""),n=await this.fsAdapter.readFile(i);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(i,e);case"complete":return await this.executeComplete(i,e);case"trash":return await this.executeTrash(i,e);case"archive":return await this.executeArchive(i,e);case"move-to-backlog":return await this.executeStatusUpdate(i,e,"ems__EffortStatusBacklog","Moved to backlog");case"move-to-analysis":return await this.executeStatusUpdate(i,e,"ems__EffortStatusAnalysis","Moved to analysis");case"move-to-todo":return await this.executeStatusUpdate(i,e,"ems__EffortStatusToDo","Moved to todo");case"update-label":return await this.executeUpdateLabel(i,e);case"schedule":return await this.executeSchedule(i,e);case"set-deadline":return await this.executeSetDeadline(i,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 fa.DateFormatter.toLocalTimestamp(new Date)}async executeStart(e,t){let i=await this.fsAdapter.readFile(e),n=this.getCurrentTimestamp(),s=this.frontmatterService.updateProperty(i,"ems__Effort_status",'"[[ems__EffortStatusDoing]]"');return s=this.frontmatterService.updateProperty(s,"ems__Effort_startTimestamp",n),await this.fsAdapter.updateFile(e,s),{success:!0,command:t.command,filepath:t.filepath,action:"Started task",changes:{status:"Doing",startTimestamp:n}}}async executeComplete(e,t){let i=await this.fsAdapter.readFile(e),n=this.getCurrentTimestamp(),s=this.frontmatterService.updateProperty(i,"ems__Effort_status",'"[[ems__EffortStatusDone]]"');return s=this.frontmatterService.updateProperty(s,"ems__Effort_endTimestamp",n),s=this.frontmatterService.updateProperty(s,"ems__Effort_resolutionTimestamp",n),await this.fsAdapter.updateFile(e,s),{success:!0,command:t.command,filepath:t.filepath,action:"Completed task",changes:{status:"Done",endTimestamp:n,resolutionTimestamp:n}}}async executeTrash(e,t){let i=await this.fsAdapter.readFile(e),n=this.getCurrentTimestamp(),s=this.frontmatterService.updateProperty(i,"ems__Effort_status",'"[[ems__EffortStatusTrashed]]"');return s=this.frontmatterService.updateProperty(s,"ems__Effort_resolutionTimestamp",n),await this.fsAdapter.updateFile(e,s),{success:!0,command:t.command,filepath:t.filepath,action:"Trashed task",changes:{status:"Trashed",resolutionTimestamp:n}}}async executeArchive(e,t){let i=await this.fsAdapter.readFile(e),n=this.frontmatterService.updateProperty(i,"archived","true");return n=this.frontmatterService.removeProperty(n,"aliases"),await this.fsAdapter.updateFile(e,n),{success:!0,command:t.command,filepath:t.filepath,action:"Archived task",changes:{archived:!0,aliasesRemoved:!0}}}async executeStatusUpdate(e,t,i,n){let s=await this.fsAdapter.readFile(e),a=this.frontmatterService.updateProperty(s,"ems__Effort_status",`"[[${i}]]"`);return await this.fsAdapter.updateFile(e,a),{success:!0,command:t.command,filepath:t.filepath,action:n,changes:{status:i.replace("ems__EffortStatus","")}}}async executeUpdateLabel(e,t){let i=t.options?.label;if(!i||i.trim()==="")return{success:!1,command:t.command,filepath:t.filepath,error:'Missing required option: "label"'};let n=i.trim(),s=await this.fsAdapter.readFile(e),a=this.frontmatterService.updateProperty(s,"exo__Asset_label",`"${n}"`);return await this.fsAdapter.updateFile(e,a),{success:!0,command:t.command,filepath:t.filepath,action:`Updated label to "${n}"`,changes:{label:n}}}async executeSchedule(e,t){let i=t.options?.date;if(!i)return{success:!1,command:t.command,filepath:t.filepath,error:'Missing required option: "date"'};if(!/^\d{4}-\d{2}-\d{2}$/.test(i))return{success:!1,command:t.command,filepath:t.filepath,error:`Invalid date format: ${i}. Expected YYYY-MM-DD`};let n=await this.fsAdapter.readFile(e),s=fa.DateFormatter.toTimestampAtStartOfDay(i),a=this.frontmatterService.updateProperty(n,"ems__Effort_scheduledTimestamp",s);return await this.fsAdapter.updateFile(e,a),{success:!0,command:t.command,filepath:t.filepath,action:`Scheduled for ${i}`,changes:{scheduledTimestamp:s}}}async executeSetDeadline(e,t){let i=t.options?.date;if(!i)return{success:!1,command:t.command,filepath:t.filepath,error:'Missing required option: "date"'};if(!/^\d{4}-\d{2}-\d{2}$/.test(i))return{success:!1,command:t.command,filepath:t.filepath,error:`Invalid date format: ${i}. Expected YYYY-MM-DD`};let n=await this.fsAdapter.readFile(e),s=fa.DateFormatter.toTimestampAtStartOfDay(i),a=this.frontmatterService.updateProperty(n,"ems__Effort_deadlineTimestamp",s);return await this.fsAdapter.updateFile(e,a),{success:!0,command:t.command,filepath:t.filepath,action:`Set deadline to ${i}`,changes:{deadlineTimestamp:s}}}};function AP(r,e){if(r==="json"){let t=er.success(e,{durationMs:e.durationMs,itemCount:e.total});console.log(JSON.stringify(t,null,2))}else{if(console.log(`
248
248
  \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(`
249
249
  \u{1F4CB} Failed Operations:`);for(let t of e.results.filter(i=>!i.success))console.log(` \u274C ${t.command} ${t.filepath}: ${t.error}`)}if(e.succeeded>0&&r==="text"){console.log(`
250
- \u{1F4CB} Successful Operations:`);for(let t of e.results.filter(i=>i.success))console.log(` \u2705 ${t.command} ${t.filepath}: ${t.action}`)}}}o(AP,"outputResult");function cS(){return new di("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";Fe.setFormat(e);try{let t=(0,Bm.resolve)(r.vault),i;if(r.input)i=r.input;else if(r.file){let c=(0,Bm.resolve)(r.file);if(!Um.default.existsSync(c))throw new st(`Batch file not found: ${c}`,"exocortex batch --file operations.json");i=await Um.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 n=Oo.parseInput(i);if(n.length===0)throw new st("Batch input contains no operations",`exocortex batch --input '[{"command":"start","filepath":"task.md"}]'`);let a=await new Oo(t,r.dryRun).executeBatch(n,r.atomic);AP(e,a),process.exit(a.success?0:5)}catch(t){Fe.handle(t)}})}o(cS,"batchCommand");var ha=new di;ha.name("exocortex").description("CLI tool for Exocortex knowledge management system").version("13.103.1");ha.command("sparql").description("SPARQL query execution").addCommand(J_());ha.addCommand(nS());ha.addCommand(oS());ha.addCommand(cS());ha.parse();
250
+ \u{1F4CB} Successful Operations:`);for(let t of e.results.filter(i=>i.success))console.log(` \u2705 ${t.command} ${t.filepath}: ${t.action}`)}}}o(AP,"outputResult");function cS(){return new di("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";Fe.setFormat(e);try{let t=(0,Bm.resolve)(r.vault),i;if(r.input)i=r.input;else if(r.file){let c=(0,Bm.resolve)(r.file);if(!Um.default.existsSync(c))throw new st(`Batch file not found: ${c}`,"exocortex batch --file operations.json");i=await Um.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 n=Oo.parseInput(i);if(n.length===0)throw new st("Batch input contains no operations",`exocortex batch --input '[{"command":"start","filepath":"task.md"}]'`);let a=await new Oo(t,r.dryRun).executeBatch(n,r.atomic);AP(e,a),process.exit(a.success?0:5)}catch(t){Fe.handle(t)}})}o(cS,"batchCommand");var ha=new di;ha.name("exocortex").description("CLI tool for Exocortex knowledge management system").version("13.103.3");ha.command("sparql").description("SPARQL query execution").addCommand(J_());ha.addCommand(nS());ha.addCommand(oS());ha.addCommand(cS());ha.parse();
251
251
  /*! Bundled license information:
252
252
 
253
253
  reflect-metadata/Reflect.js:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "exocortex-cli",
3
- "version": "13.103.1",
3
+ "version": "13.103.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": {